content
stringlengths 15
442k
| obf_code
stringlengths 15
442k
| probability
float64 0
1
| obf_dict
stringlengths 0
13.5k
| lang
stringclasses 3
values | classification
stringclasses 5
values | confiability
stringlengths 1
10
|
---|---|---|---|---|---|---|
/*
test how many open files this server supports on the one socket
*/
bool run_maxfidtest(struct torture_context *tctx, struct smbcli_state *cli, int dummy)
{
#define MAXFID_TEMPLATE "\\maxfid\\fid%d\\maxfid.%d.%d"
char *fname;
int fnums[0x11000], i;
int retries=4, maxfid;
bool correct = true;
if (retries <= 0) {
torture_comment(tctx, "failed to connect\n");
return false;
}
if (smbcli_deltree(cli->tree, "\\maxfid") == -1) {
torture_comment(tctx, "Failed to deltree \\maxfid - %s\n",
smbcli_errstr(cli->tree));
return false;
}
if (NT_STATUS_IS_ERR(smbcli_mkdir(cli->tree, "\\maxfid"))) {
torture_comment(tctx, "Failed to mkdir \\maxfid, error=%s\n",
smbcli_errstr(cli->tree));
return false;
}
torture_comment(tctx, "Testing maximum number of open files\n");
for (i=0; i<0x11000; i++) {
if (i % 1000 == 0) {
asprintf(&fname, "\\maxfid\\fid%d", i/1000);
if (NT_STATUS_IS_ERR(smbcli_mkdir(cli->tree, fname))) {
torture_comment(tctx, "Failed to mkdir %s, error=%s\n",
fname, smbcli_errstr(cli->tree));
return false;
}
free(fname);
}
asprintf(&fname, MAXFID_TEMPLATE, i/1000, i,(int)getpid());
if ((fnums[i] = smbcli_open(cli->tree, fname,
O_RDWR|O_CREAT|O_TRUNC, DENY_NONE)) ==
-1) {
torture_comment(tctx, "open of %s failed (%s)\n",
fname, smbcli_errstr(cli->tree));
torture_comment(tctx, "maximum fnum is %d\n", i);
break;
}
free(fname);
if (torture_setting_bool(tctx, "progress", true)) {
torture_comment(tctx, "%6d\r", i);
fflush(stdout);
}
}
torture_comment(tctx, "%6d\n", i);
i--;
maxfid = i;
torture_comment(tctx, "cleaning up\n");
for (i=0;i<maxfid/2;i++) {
asprintf(&fname, MAXFID_TEMPLATE, i/1000, i,(int)getpid());
if (NT_STATUS_IS_ERR(smbcli_close(cli->tree, fnums[i]))) {
torture_comment(tctx, "Close of fnum %d failed - %s\n", fnums[i], smbcli_errstr(cli->tree));
}
if (NT_STATUS_IS_ERR(smbcli_unlink(cli->tree, fname))) {
torture_comment(tctx, "unlink of %s failed (%s)\n",
fname, smbcli_errstr(cli->tree));
correct = false;
}
free(fname);
asprintf(&fname, MAXFID_TEMPLATE, (maxfid-i)/1000, maxfid-i,(int)getpid());
if (NT_STATUS_IS_ERR(smbcli_close(cli->tree, fnums[maxfid-i]))) {
torture_comment(tctx, "Close of fnum %d failed - %s\n", fnums[maxfid-i], smbcli_errstr(cli->tree));
}
if (NT_STATUS_IS_ERR(smbcli_unlink(cli->tree, fname))) {
torture_comment(tctx, "unlink of %s failed (%s)\n",
fname, smbcli_errstr(cli->tree));
correct = false;
}
free(fname);
if (torture_setting_bool(tctx, "progress", true)) {
torture_comment(tctx, "%6d %6d\r", i, maxfid-i);
fflush(stdout);
}
}
torture_comment(tctx, "%6d\n", 0);
if (smbcli_deltree(cli->tree, "\\maxfid") == -1) {
torture_comment(tctx, "Failed to deltree \\maxfid - %s\n",
smbcli_errstr(cli->tree));
return false;
}
torture_comment(tctx, "maxfid test finished\n");
if (!torture_close_connection(cli)) {
correct = false;
}
return correct;
#undef MAXFID_TEMPLATE
} | /*
test how many open files this server supports on the one socket
*/
bool FUNC_0(struct CLASS_0 *VAR_0, struct smbcli_state *VAR_1, int VAR_2)
{
#define VAR_3 "\\maxfid\\fid%d\\maxfid.%d.%d"
char *VAR_4;
int fnums[0x11000], i;
int VAR_5=4, VAR_6;
bool VAR_7 = true;
if (VAR_5 <= 0) {
FUNC_1(VAR_0, "failed to connect\n");
return false;
}
if (FUNC_2(VAR_1->VAR_8, "\\maxfid") == -1) {
FUNC_1(VAR_0, "Failed to deltree \\maxfid - %s\n",
FUNC_3(VAR_1->VAR_8));
return false;
}
if (NT_STATUS_IS_ERR(smbcli_mkdir(VAR_1->VAR_8, "\\maxfid"))) {
FUNC_1(VAR_0, "Failed to mkdir \\maxfid, error=%s\n",
FUNC_3(VAR_1->VAR_8));
return false;
}
FUNC_1(VAR_0, "Testing maximum number of open files\n");
for (i=0; i<0x11000; i++) {
if (i % 1000 == 0) {
FUNC_4(&VAR_4, "\\maxfid\\fid%d", i/1000);
if (NT_STATUS_IS_ERR(smbcli_mkdir(VAR_1->VAR_8, VAR_4))) {
FUNC_1(VAR_0, "Failed to mkdir %s, error=%s\n",
VAR_4, FUNC_3(VAR_1->VAR_8));
return false;
}
FUNC_5(VAR_4);
}
FUNC_4(&VAR_4, VAR_3, i/1000, i,(int)FUNC_6());
if ((fnums[i] = FUNC_7(VAR_1->VAR_8, VAR_4,
O_RDWR|VAR_9|VAR_10, DENY_NONE)) ==
-1) {
FUNC_1(VAR_0, "open of %s failed (%s)\n",
VAR_4, FUNC_3(VAR_1->VAR_8));
FUNC_1(VAR_0, "maximum fnum is %d\n", i);
break;
}
FUNC_5(VAR_4);
if (FUNC_8(VAR_0, "progress", true)) {
FUNC_1(VAR_0, "%6d\r", i);
FUNC_9(stdout);
}
}
FUNC_1(VAR_0, "%6d\n", i);
i--;
VAR_6 = i;
FUNC_1(VAR_0, "cleaning up\n");
for (i=0;i<VAR_6/2;i++) {
FUNC_4(&VAR_4, VAR_3, i/1000, i,(int)FUNC_6());
if (NT_STATUS_IS_ERR(FUNC_10(VAR_1->VAR_8, fnums[i]))) {
FUNC_1(VAR_0, "Close of fnum %d failed - %s\n", fnums[i], FUNC_3(VAR_1->VAR_8));
}
if (NT_STATUS_IS_ERR(smbcli_unlink(VAR_1->VAR_8, VAR_4))) {
FUNC_1(VAR_0, "unlink of %s failed (%s)\n",
VAR_4, FUNC_3(VAR_1->VAR_8));
VAR_7 = false;
}
FUNC_5(VAR_4);
FUNC_4(&VAR_4, VAR_3, (VAR_6-i)/1000, VAR_6-i,(int)FUNC_6());
if (NT_STATUS_IS_ERR(FUNC_10(VAR_1->VAR_8, fnums[VAR_6-i]))) {
FUNC_1(VAR_0, "Close of fnum %d failed - %s\n", fnums[VAR_6-i], FUNC_3(VAR_1->VAR_8));
}
if (NT_STATUS_IS_ERR(smbcli_unlink(VAR_1->VAR_8, VAR_4))) {
FUNC_1(VAR_0, "unlink of %s failed (%s)\n",
VAR_4, FUNC_3(VAR_1->VAR_8));
VAR_7 = false;
}
FUNC_5(VAR_4);
if (FUNC_8(VAR_0, "progress", true)) {
FUNC_1(VAR_0, "%6d %6d\r", i, VAR_6-i);
FUNC_9(stdout);
}
}
FUNC_1(VAR_0, "%6d\n", 0);
if (FUNC_2(VAR_1->VAR_8, "\\maxfid") == -1) {
FUNC_1(VAR_0, "Failed to deltree \\maxfid - %s\n",
FUNC_3(VAR_1->VAR_8));
return false;
}
FUNC_1(VAR_0, "maxfid test finished\n");
if (!FUNC_11(VAR_1)) {
VAR_7 = false;
}
return VAR_7;
#undef MAXFID_TEMPLATE
} | 0.708507 | {'FUNC_0': 'run_maxfidtest', 'CLASS_0': 'torture_context', 'VAR_0': 'tctx', 'VAR_1': 'cli', 'VAR_2': 'dummy', 'VAR_3': 'MAXFID_TEMPLATE', 'VAR_4': 'fname', 'VAR_5': 'retries', 'VAR_6': 'maxfid', 'VAR_7': 'correct', 'FUNC_1': 'torture_comment', 'FUNC_2': 'smbcli_deltree', 'VAR_8': 'tree', 'FUNC_3': 'smbcli_errstr', 'FUNC_4': 'asprintf', 'FUNC_5': 'free', 'FUNC_6': 'getpid', 'FUNC_7': 'smbcli_open', 'VAR_9': 'O_CREAT', 'VAR_10': 'O_TRUNC', 'FUNC_8': 'torture_setting_bool', 'FUNC_9': 'fflush', 'FUNC_10': 'smbcli_close', 'FUNC_11': 'torture_close_connection'} | c | Procedural | 3.54% |
//---------------------------------------------------------------------------
/*
TVP2 ( T Visual Presenter 2 ) A script authoring tool
Copyright (C) 2000-2007 W.Dee <<EMAIL>> and contributors
See details of license at "license.txt"
*/
//---------------------------------------------------------------------------
// Layer Management
//---------------------------------------------------------------------------
#ifndef LayerImplH
#define LayerImplH
#include "LayerIntf.h"
//---------------------------------------------------------------------------
// tTJSNI_Layer
//---------------------------------------------------------------------------
class tTJSNI_Layer : public tTJSNI_BaseLayer
{
public:
tTJSNI_Layer(void);
~tTJSNI_Layer();
tjs_error TJS_INTF_METHOD Construct(tjs_int numparams, tTJSVariant **param,
iTJSDispatch2 *tjs_obj);
void TJS_INTF_METHOD Invalidate();
HRGN CreateMaskRgn(tjs_uint threshold);
};
//---------------------------------------------------------------------------
#endif
| //---------------------------------------------------------------------------
/*
TVP2 ( T Visual Presenter 2 ) A script authoring tool
Copyright (C) 2000-2007 W.Dee <<EMAIL>> and contributors
See details of license at "license.txt"
*/
//---------------------------------------------------------------------------
// Layer Management
//---------------------------------------------------------------------------
#ifndef VAR_0
#define VAR_0
#include "IMPORT_0"
//---------------------------------------------------------------------------
// tTJSNI_Layer
//---------------------------------------------------------------------------
class tTJSNI_Layer : VAR_1 VAR_2
{
public:
tTJSNI_Layer(VAR_3);
~tTJSNI_Layer();
CLASS_0 TJS_INTF_METHOD FUNC_0(tjs_int VAR_4, CLASS_1 **VAR_5,
CLASS_2 *tjs_obj);
void TJS_INTF_METHOD FUNC_1();
CLASS_3 CreateMaskRgn(CLASS_4 VAR_6);
};
//---------------------------------------------------------------------------
#endif
| 0.739675 | {'VAR_0': 'LayerImplH', 'IMPORT_0': 'LayerIntf.h', 'VAR_1': 'public', 'VAR_2': 'tTJSNI_BaseLayer', 'VAR_3': 'void', 'CLASS_0': 'tjs_error', 'FUNC_0': 'Construct', 'VAR_4': 'numparams', 'CLASS_1': 'tTJSVariant', 'VAR_5': 'param', 'CLASS_2': 'iTJSDispatch2', 'FUNC_1': 'Invalidate', 'CLASS_3': 'HRGN', 'CLASS_4': 'tjs_uint', 'VAR_6': 'threshold'} | c | Hibrido | 100.00% |
//
// Created by xww on 2020/5/25.
//
#ifndef RUN_PL0_GETSYM_H
#define RUN_PL0_GETSYM_H
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
using namespace std;
vector<int> integerArray;
vector<string> identifierArray;
const string keywords[13] = {"const", "var", "procedure", "begin", "end", "odd",//NOLINT
"if", "then", "call", "while", "do", "read", "write"};
int lineSum = 0; //记录源程序的行数,用于出错处理
ifstream fcin; //打开文件NOLINT
int SYM_type;
int numValue = 0;
string id;
//#if DEBUG
string debugId; //词法分析产生的标识符
string debugNum; //词法分析产生的无符号整数的string形式
int debugNumber; //词法分析产生的无符号整数
//#endif
enum SYM_class {
//关键字
CONST_SYM, //const
VAR_SYM, //var
PROCEDURE_SYM, //procedure
BEGIN_SYM, //begin
END_SYM, //end
ODD_SYM, //odd
IF_SYM, //if
THEN_SYM, //then
CALL_SYM, //call
WHILE_SYM, //while
DO_SYM, //do
READ_SYM, //read
WRITE_SYM, //write
//算符与界符
ADD_SYM, // +
SUB_SYM, // -
MULT_SYM, // *
DIV_SYM, // /
EQUAL_SYM, // =
NEQUAL_SYM, // #
LESS_SYM, // <
ELESS_SYM, // <=
GRE_SYM, // >
EGRE_SYM, // >=
LEFTP_SYM, // (
RIGHTP_SYM, // )
DOT_SYM, // .
COMMA_SYM, // ,
ASSI_SYM, // :=
SEMICOLON_SYM, // ;
NUM_SYM, //数字
IDE_SYM //标识符
};
enum ERROR_CODE {
TOOLANG,
ASSI_ERROR,
ANOTHER_WORD,
WRONG_NUMBER
};
int insertIdentifier(const string& str) //插入到标识符符号表
{
int location = 0;
auto itd = identifierArray.begin();
for (; itd != identifierArray.end(); ++itd) {
if (*itd == str)
break;
location++;
}
if (itd == identifierArray.end()) {
identifierArray.push_back(str);
return location;
}
else
return location;
}
int insertConst(int number) //插入到常数表
{
int location = 0;
auto itd = integerArray.begin();
for (; itd != integerArray.end(); ++itd) {
if (*itd == number)
break;
location++;
}
if (itd == integerArray.end()) {
integerArray.push_back(number);
return location;
}
else
return location;
}
int error(int ERROR_CODE_TYPE) { //NOLINT
switch (ERROR_CODE_TYPE) {
case TOOLANG:
cout << "Identifier " << id << " in line " << lineSum << " is too long" << endl;
break;
case ASSI_ERROR:
cout << "wrong assignment in line " << lineSum << endl;
break;
case ANOTHER_WORD:
cout << "wrong words in line " << lineSum << endl;
break;
case WRONG_NUMBER:
cout << "wrong number in line " << lineSum << endl;
break;
default:
break;
}
return -1;
}
/*template<class T>
void print_result(int sym, T name, int value)
{
;
switch (sym) {
case NUM_SYM:
cout << "( number," << name << "," << value << " )" << endl;
break;
case IDE_SYM:
cout << "( identifier," << name << "," << value << " )" << endl;
break;
default:
break;
}
}*/
/*void print_result(int sym)
{
;
switch (sym) {
case CONST_SYM:
cout << "( 'const',- )" << endl;
break;
case VAR_SYM:
cout << "( 'var',- )" << endl;
break;
case PROCEDURE_SYM:
cout << "( 'procedure',- )" << endl;
break;
case BEGIN_SYM:
cout << "( 'begin',- )" << endl;
break;
case END_SYM:
cout << "( 'end',- )" << endl;
break;
case ODD_SYM:
cout << "( 'odd',- )" << endl;
break;
case IF_SYM:
cout << "( 'if',- )" << endl;
break;
case THEN_SYM:
cout << "( 'then',- )" << endl;
break;
case CALL_SYM:
cout << "( 'call',- )" << endl;
break;
case WHILE_SYM:
cout << "( 'while',- )" << endl;
break;
case DO_SYM:
cout << "( 'do',- )" << endl;
break;
case READ_SYM:
cout << "( 'read',- )" << endl;
break;
case WRITE_SYM:
cout << "( 'write',- )" << endl;
break;
case ADD_SYM:
cout << "( '+',- )" << endl;
break;
case SUB_SYM:
cout << "( '-',- )" << endl;
break;
case MULT_SYM:
cout << "( '*',- )" << endl;
break;
case DIV_SYM:
cout << "( '/',- )" << endl;
break;
case EQUAL_SYM:
cout << "( '=',- )" << endl;
break;
case NEQUAL_SYM:
cout << "( '#',- )" << endl;
break;
case LESS_SYM:
cout << "( '<',- )" << endl;
break;
case ELESS_SYM:
cout << "( '<=',- )" << endl;
break;
case GRE_SYM:
cout << "( '>',- )" << endl;
break;
case EGRE_SYM:
cout << "( '>=',- )" << endl;
break;
case LEFTP_SYM:
cout << "( '(',- )" << endl;
break;
case RIGHTP_SYM:
cout << "( ')',- )" << endl;
break;
case DOT_SYM:
cout << "( '.',- )" << endl;
break;
case COMMA_SYM:
cout << "( ',',- )" << endl;
break;
case ASSI_SYM:
cout << "( ':=',- )" << endl;
break;
case SEMICOLON_SYM:
cout << "( ';',- )" << endl;
break;
default:
break;
}
}*/
string GETSYM()
{
string strToken; //存放构成单词的字符串
strToken = "";
char ch; //存放最新读进的源程序字符
ch = cin.get();
while(ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r') {
if (ch == '\n')
lineSum++;
ch = cin.get();
} //过滤空格、tab、换行符,并对换行符进行统计,以便于定位出错位置。
if (ch == EOF) {
return "finish";
}
if (isalpha(ch)) { //ch是字母,则单词可能是标识符或者关键字
do {
strToken += ch;
ch = cin.get();
}while (isalpha(ch) || isdigit(ch));
id = strToken;
if (id.size() > 10) { //关键词与标识符的大小限制为10
error(TOOLANG);
return "error";
}
bool isKey = false;
for (int i = 0; i < 13; ++i) //查找是否属于关键字
if (id == keywords[i]) {
isKey = true;
SYM_type = i;
break;
}
if (isKey) { //关键字的输出
;//print_result(SYM_type);
}
else { //标识符的输出
SYM_type = IDE_SYM;
insertIdentifier(id);
//print_result<string>(SYM_type, id, insertIdentifier(id));
//#if DEBUG
debugId = id;
//#endif
id = "identifier";
}
fcin.seekg(-1,ios::cur); //退回读取的多余的字符
return id;
}
else if (isdigit(ch)) {
int count = 0;
do {
strToken += ch;
count = count * 10 + ch - '0';
ch = cin.get();
}while (isdigit(ch));
if (isalpha(ch)) {
error(WRONG_NUMBER);
return "error";
}
SYM_type = NUM_SYM;
numValue = count;
fcin.seekg(-1,ios::cur); //数字的输出
insertConst(numValue);
//print_result<int>(SYM_type, numValue, insertConst(numValue));
//#if DEBUG
debugNum = strToken;
debugNumber = numValue;
//#endif
return "number";
}
else if (ch == '+') {
SYM_type = ADD_SYM;
//print_result(SYM_type);
return "+";
}
else if (ch == '-') {
SYM_type = SUB_SYM;
//print_result(SYM_type);
return "-";
}
else if (ch == '*') {
SYM_type = MULT_SYM;
//print_result(SYM_type);
return "*";
}
else if (ch == '/') {
SYM_type = DIV_SYM;
//print_result(SYM_type);
return "/";
}
else if (ch == '=') {
SYM_type = EQUAL_SYM;
//print_result(SYM_type);
return "=";
}
else if (ch == '#') {
SYM_type = NEQUAL_SYM;
//print_result(SYM_type);
return "#";
}
else if (ch == '<') {
ch = cin.get();
if (ch == '=') {
SYM_type = ELESS_SYM;
//print_result(SYM_type);
return "<=";
}
else {
SYM_type = LESS_SYM;
//print_result(SYM_type);
fcin.seekg(-1,ios::cur);
return "<";
}
}
else if (ch == '>') {
ch = cin.get();
if (ch == '=') {
SYM_type = EGRE_SYM;
//print_result(SYM_type);
return ">=";
}
else {
SYM_type = GRE_SYM;
//print_result(SYM_type);
fcin.seekg(-1, ios::cur);
return ">";
}
}
else if (ch == '(') {
SYM_type = LEFTP_SYM;
//print_result(SYM_type);
return "(";
}
else if (ch == ')') {
SYM_type = RIGHTP_SYM;
//print_result(SYM_type);
return ")";
}
else if (ch == '.') {
SYM_type = DOT_SYM;
//print_result(SYM_type);
return ".";
}
else if (ch == ',') {
SYM_type = COMMA_SYM;
//print_result(SYM_type);
return ",";
}
else if (ch == ':') {
ch = cin.get();
if (ch == '=') {
SYM_type = ASSI_SYM;
//print_result(SYM_type);
return ":=";
}
else {
error(ASSI_ERROR);
return "error_assi_error";
}
}
else if (ch == ';') {
SYM_type = SEMICOLON_SYM;
//print_result(SYM_type);
return ";";
}
else {
error(ANOTHER_WORD);
return "error";
}
return nullptr;
}
#endif //RUN_PL0_GETSYM_H
| //
// Created by xww on 2020/5/25.
//
#ifndef RUN_PL0_GETSYM_H
#define RUN_PL0_GETSYM_H
#include <IMPORT_0>
#include <IMPORT_1>
#include <IMPORT_2>
#include <IMPORT_3>
CLASS_0 namespace std;
IMPORT_3<VAR_0> VAR_1;
IMPORT_3<IMPORT_1> VAR_2;
const IMPORT_1 VAR_3[13] = {"const", "var", "procedure", "begin", "end", "odd",//NOLINT
"if", "then", "call", "while", "do", "read", "write"};
int VAR_4 = 0; //记录源程序的行数,用于出错处理
ifstream VAR_5; //打开文件NOLINT
int VAR_6;
int VAR_7 = 0;
IMPORT_1 id;
//#if DEBUG
IMPORT_1 debugId; //词法分析产生的标识符
IMPORT_1 VAR_8; //词法分析产生的无符号整数的string形式
int VAR_9; //词法分析产生的无符号整数
//#endif
enum CLASS_1 {
//关键字
VAR_10, //const
VAR_SYM, //var
PROCEDURE_SYM, //procedure
VAR_11, //begin
VAR_12, //end
VAR_13, //odd
IF_SYM, //if
VAR_14, //then
VAR_15, //call
WHILE_SYM, //while
VAR_16, //do
VAR_17, //read
VAR_18, //write
//算符与界符
ADD_SYM, // +
SUB_SYM, // -
VAR_19, // *
DIV_SYM, // /
EQUAL_SYM, // =
VAR_20, // #
VAR_21, // <
VAR_22, // <=
VAR_23, // >
VAR_24, // >=
VAR_25, // (
VAR_26, // )
VAR_27, // .
VAR_28, // ,
ASSI_SYM, // :=
SEMICOLON_SYM, // ;
VAR_29, //数字
VAR_30 //标识符
};
enum ERROR_CODE {
TOOLANG,
ASSI_ERROR,
VAR_31,
VAR_32
};
int FUNC_0(const IMPORT_1& str) //插入到标识符符号表
{
int location = 0;
auto itdVAR_33 = VAR_2.FUNC_1();
for (; itd != VAR_2.FUNC_2(); ++itd) {
if (*itd == str)
break;
location++;
}
if (itd == VAR_2.FUNC_2()) {
VAR_2.FUNC_3(str);
return location;
}
else
return location;
}
int insertConst(int number) //插入到常数表
{
int location = 0;
auto itdVAR_33 = VAR_1.FUNC_1();
for (; itd != VAR_1.FUNC_2(); ++itd) {
if (*itd == number)
break;
location++;
}
if (itd == VAR_1.FUNC_2()) {
VAR_1.FUNC_3(number);
return location;
}
else
return location;
}
int FUNC_4(int ERROR_CODE_TYPE) { //NOLINT
switch (ERROR_CODE_TYPE) {
case TOOLANG:
VAR_34 << "Identifier " << id << " in line " << VAR_4 << " is too long" << VAR_35;
break;
case ASSI_ERROR:
VAR_34 << "wrong assignment in line " << VAR_4 << VAR_35;
break;
case VAR_31:
VAR_34 << "wrong words in line " << VAR_4 << VAR_35;
break;
case VAR_32:
VAR_34 << "wrong number in line " << VAR_4 << VAR_35;
break;
default:
break;
}
return -1;
}
/*template<class T>
void print_result(int sym, T name, int value)
{
;
switch (sym) {
case NUM_SYM:
cout << "( number," << name << "," << value << " )" << endl;
break;
case IDE_SYM:
cout << "( identifier," << name << "," << value << " )" << endl;
break;
default:
break;
}
}*/
/*void print_result(int sym)
{
;
switch (sym) {
case CONST_SYM:
cout << "( 'const',- )" << endl;
break;
case VAR_SYM:
cout << "( 'var',- )" << endl;
break;
case PROCEDURE_SYM:
cout << "( 'procedure',- )" << endl;
break;
case BEGIN_SYM:
cout << "( 'begin',- )" << endl;
break;
case END_SYM:
cout << "( 'end',- )" << endl;
break;
case ODD_SYM:
cout << "( 'odd',- )" << endl;
break;
case IF_SYM:
cout << "( 'if',- )" << endl;
break;
case THEN_SYM:
cout << "( 'then',- )" << endl;
break;
case CALL_SYM:
cout << "( 'call',- )" << endl;
break;
case WHILE_SYM:
cout << "( 'while',- )" << endl;
break;
case DO_SYM:
cout << "( 'do',- )" << endl;
break;
case READ_SYM:
cout << "( 'read',- )" << endl;
break;
case WRITE_SYM:
cout << "( 'write',- )" << endl;
break;
case ADD_SYM:
cout << "( '+',- )" << endl;
break;
case SUB_SYM:
cout << "( '-',- )" << endl;
break;
case MULT_SYM:
cout << "( '*',- )" << endl;
break;
case DIV_SYM:
cout << "( '/',- )" << endl;
break;
case EQUAL_SYM:
cout << "( '=',- )" << endl;
break;
case NEQUAL_SYM:
cout << "( '#',- )" << endl;
break;
case LESS_SYM:
cout << "( '<',- )" << endl;
break;
case ELESS_SYM:
cout << "( '<=',- )" << endl;
break;
case GRE_SYM:
cout << "( '>',- )" << endl;
break;
case EGRE_SYM:
cout << "( '>=',- )" << endl;
break;
case LEFTP_SYM:
cout << "( '(',- )" << endl;
break;
case RIGHTP_SYM:
cout << "( ')',- )" << endl;
break;
case DOT_SYM:
cout << "( '.',- )" << endl;
break;
case COMMA_SYM:
cout << "( ',',- )" << endl;
break;
case ASSI_SYM:
cout << "( ':=',- )" << endl;
break;
case SEMICOLON_SYM:
cout << "( ';',- )" << endl;
break;
default:
break;
}
}*/
IMPORT_1 FUNC_5()
{
IMPORT_1 strToken; //存放构成单词的字符串
strToken = "";
char VAR_36; //存放最新读进的源程序字符
VAR_36 = VAR_37.get();
while(VAR_36 == ' ' || VAR_36 == '\t' || VAR_36 == '\n' || VAR_36 == '\r') {
if (VAR_36 == '\n')
VAR_4++;
VAR_36 = VAR_37.get();
} //过滤空格、tab、换行符,并对换行符进行统计,以便于定位出错位置。
if (VAR_36 == EOF) {
return "finish";
}
if (FUNC_6(VAR_36)) { //ch是字母,则单词可能是标识符或者关键字
do {
strToken += VAR_36;
VAR_36 = VAR_37.get();
}while (FUNC_6(VAR_36) || isdigit(VAR_36));
id = strToken;
if (id.FUNC_7() > 10) { //关键词与标识符的大小限制为10
FUNC_4(TOOLANG);
return "error";
}
bool VAR_38 = false;
for (int VAR_39 = 0; VAR_39 < 13; ++VAR_39) //查找是否属于关键字
if (id == VAR_3[VAR_39]) {
VAR_38 = true;
VAR_6 = VAR_39;
break;
}
if (VAR_38) { //关键字的输出
;//print_result(SYM_type);
}
else { //标识符的输出
VAR_6 = VAR_30;
FUNC_0(id);
//print_result<string>(SYM_type, id, insertIdentifier(id));
//#if DEBUG
debugId = id;
//#endif
id = "identifier";
}
VAR_5.FUNC_8(-1,VAR_40::cur); //退回读取的多余的字符
return id;
}
else if (isdigit(VAR_36)) {
int VAR_41 = 0;
do {
strToken += VAR_36;
VAR_41 = VAR_41 * 10 + VAR_36 - '0';
VAR_36 = VAR_37.get();
}while (isdigit(VAR_36));
if (FUNC_6(VAR_36)) {
FUNC_4(VAR_32);
return "error";
}
VAR_6 = VAR_29;
VAR_7 = VAR_41;
VAR_5.FUNC_8(-1,VAR_40::cur); //数字的输出
insertConst(VAR_7);
//print_result<int>(SYM_type, numValue, insertConst(numValue));
//#if DEBUG
VAR_8 = strToken;
VAR_9 = VAR_7;
//#endif
return "number";
}
else if (VAR_36 == '+') {
VAR_6 = ADD_SYM;
//print_result(SYM_type);
return "+";
}
else if (VAR_36 == '-') {
VAR_6 = SUB_SYM;
//print_result(SYM_type);
return "-";
}
else if (VAR_36 == '*') {
VAR_6 = VAR_19;
//print_result(SYM_type);
return "*";
}
else if (VAR_36 == '/') {
VAR_6 = DIV_SYM;
//print_result(SYM_type);
return "/";
}
else if (VAR_36 == '=') {
VAR_6 = EQUAL_SYM;
//print_result(SYM_type);
return "=";
}
else if (VAR_36 == '#') {
VAR_6 = VAR_20;
//print_result(SYM_type);
return "#";
}
else if (VAR_36 == '<') {
VAR_36 = VAR_37.get();
if (VAR_36 == '=') {
VAR_6 = VAR_22;
//print_result(SYM_type);
return "<=";
}
else {
VAR_6 = VAR_21;
//print_result(SYM_type);
VAR_5.FUNC_8(-1,VAR_40::cur);
return "<";
}
}
else if (VAR_36 == '>') {
VAR_36 = VAR_37.get();
if (VAR_36 == '=') {
VAR_6 = VAR_24;
//print_result(SYM_type);
return ">=";
}
else {
VAR_6 = VAR_23;
//print_result(SYM_type);
VAR_5.FUNC_8(-1, VAR_40::cur);
return ">";
}
}
else if (VAR_36 == '(') {
VAR_6 = VAR_25;
//print_result(SYM_type);
return "(";
}
else if (VAR_36 == ')') {
VAR_6 = VAR_26;
//print_result(SYM_type);
return ")";
}
else if (VAR_36 == '.') {
VAR_6 = VAR_27;
//print_result(SYM_type);
return ".";
}
else if (VAR_36 == ',') {
VAR_6 = VAR_28;
//print_result(SYM_type);
return ",";
}
else if (VAR_36 == ':') {
VAR_36 = VAR_37.get();
if (VAR_36 == '=') {
VAR_6 = ASSI_SYM;
//print_result(SYM_type);
return ":=";
}
else {
FUNC_4(ASSI_ERROR);
return "error_assi_error";
}
}
else if (VAR_36 == ';') {
VAR_6 = SEMICOLON_SYM;
//print_result(SYM_type);
return ";";
}
else {
FUNC_4(VAR_31);
return "error";
}
return nullptr;
}
#endif //RUN_PL0_GETSYM_H
| 0.715458 | {'IMPORT_0': 'iostream', 'IMPORT_1': 'string', 'IMPORT_2': 'fstream', 'IMPORT_3': 'vector', 'CLASS_0': 'using', 'VAR_0': 'int', 'VAR_1': 'integerArray', 'VAR_2': 'identifierArray', 'VAR_3': 'keywords', 'VAR_4': 'lineSum', 'VAR_5': 'fcin', 'VAR_6': 'SYM_type', 'VAR_7': 'numValue', 'VAR_8': 'debugNum', 'VAR_9': 'debugNumber', 'CLASS_1': 'SYM_class', 'VAR_10': 'CONST_SYM', 'VAR_11': 'BEGIN_SYM', 'VAR_12': 'END_SYM', 'VAR_13': 'ODD_SYM', 'VAR_14': 'THEN_SYM', 'VAR_15': 'CALL_SYM', 'VAR_16': 'DO_SYM', 'VAR_17': 'READ_SYM', 'VAR_18': 'WRITE_SYM', 'VAR_19': 'MULT_SYM', 'VAR_20': 'NEQUAL_SYM', 'VAR_21': 'LESS_SYM', 'VAR_22': 'ELESS_SYM', 'VAR_23': 'GRE_SYM', 'VAR_24': 'EGRE_SYM', 'VAR_25': 'LEFTP_SYM', 'VAR_26': 'RIGHTP_SYM', 'VAR_27': 'DOT_SYM', 'VAR_28': 'COMMA_SYM', 'VAR_29': 'NUM_SYM', 'VAR_30': 'IDE_SYM', 'VAR_31': 'ANOTHER_WORD', 'VAR_32': 'WRONG_NUMBER', 'FUNC_0': 'insertIdentifier', 'VAR_33': '', 'FUNC_1': 'begin', 'FUNC_2': 'end', 'FUNC_3': 'push_back', 'FUNC_4': 'error', 'VAR_34': 'cout', 'VAR_35': 'endl', 'FUNC_5': 'GETSYM', 'VAR_36': 'ch', 'VAR_37': 'cin', 'FUNC_6': 'isalpha', 'FUNC_7': 'size', 'VAR_38': 'isKey', 'VAR_39': 'i', 'FUNC_8': 'seekg', 'VAR_40': 'ios', 'VAR_41': 'count'} | c | Texto | 2.95% |
/* Function: rsearch_CMProbifyEmissions()
* Date: EPN, Wed Mar 14 06:14:51 2007
*
* Purpose: Convert emissions in a counts-based CM built from a single sequence,
* we expect 1 count in each vector to be 1.0, all others 0.0,
* to probability form, using a RIBOSUM matrix with background
* and target frequencies.
*
* The code that does this in RSEARCH is buildcm.c::SingleSequenceLogoddsify(),
* but that's different in that it fills in log odds scores, here we
* fill in probabilities, derived from the RIBOSUM log odds scores.
*
* Returns: <eslOK> on success.
*
* Throws: <eslEINVAL> if an emission vector does not have exactly 1 non-zero
* count that is exactly 1.0 (or within 0.000001 of it)
*/
int
rsearch_CMProbifyEmissions(CM_t *cm, fullmat_t *fullmat)
{
int v,x,y;
int cur_emission;
float thresh;
int found_ct_flag;
thresh = 0.000001;
if(fullmat->scores_flag) ESL_EXCEPTION(eslEINVAL, "in rsearch_CMProbifyEmissions(), matrix is in log odds mode, it should be in probs mode");
if(!(cm->flags & CM_RSEARCHEMIT)) ESL_EXCEPTION(eslEINVAL, "in rsearch_CMProbifyEmissions(), CM_RSEARCHEMIT flag is down");
for (v = 0; v < cm->M; v++)
{
found_ct_flag = FALSE;
if (cm->stid[v] == MATP_MP)
{
for (x=0; x<cm->abc->K; x++)
for (y=0; y<cm->abc->K; y++)
if (fabs(cm->e[v][x*cm->abc->K+y] - 0.) > thresh)
{
if(found_ct_flag)
{
for (x=0; x<cm->abc->K; x++)
for (y=0; y<cm->abc->K; y++)
printf("cm->e[v:%d][%d]: %f\n", v, (x*cm->abc->K+y), cm->e[v][(x*cm->abc->K+y)]);
ESL_EXCEPTION(eslEINVAL, "cm->e[v:%d] a MATP_MP has > 1 non-zero count", v);
}
cur_emission = numbered_basepair(cm->abc->sym[x], cm->abc->sym[y]);
found_ct_flag = TRUE;
}
for (x=0; x<cm->abc->K*cm->abc->K; x++)
cm->e[v][x] = fullmat->paired->matrix[matrix_index(cur_emission, x)];
esl_vec_FNorm(cm->e[v], cm->abc->K*cm->abc->K);
}
else if (cm->stid[v] == MATL_ML || cm->stid[v] == MATR_MR)
{
for (x=0; x<cm->abc->K; x++)
if (fabs(cm->e[v][x] - 0.) > thresh)
{
if(found_ct_flag) {
for (y=0; y<cm->abc->K; y++) printf("cm->e[v:%d][%d]: %f\n", v, x, cm->e[v][x]);
ESL_EXCEPTION(eslEINVAL, "cm->e[v:%d] a MAT{L,R}_M{L,R} has > 1 non-zero count", v);
}
cur_emission = numbered_nucleotide(cm->abc->sym[x]);
found_ct_flag = TRUE;
}
for (x=0; x<cm->abc->K; x++)
cm->e[v][x] = fullmat->unpaired->matrix[matrix_index(cur_emission, x)];
esl_vec_FNorm(cm->e[v], cm->abc->K);
}
else if (cm->stid[v] == MATP_ML || cm->stid[v] == MATP_MR)
{
for (x=0; x<cm->abc->K; x++)
for (y=0; y<cm->abc->K; y++)
{
if (cm->stid[v] == MATP_ML && (fabs(cm->e[(v-1)][x*cm->abc->K + y] - 0.) > thresh))
cur_emission = numbered_nucleotide(cm->abc->sym[x]);
else if (cm->stid[v] == MATP_MR && (fabs(cm->e[(v-2)][x*cm->abc->K + y] - 0.) > thresh))
cur_emission = numbered_nucleotide(cm->abc->sym[y]);
}
for (x=0; x<cm->abc->K; x++)
cm->e[v][x] = fullmat->unpaired->matrix[matrix_index(cur_emission, x)];
esl_vec_FNorm(cm->e[v], cm->abc->K);
}
else if (cm->sttype[v] == IL_st || cm->sttype[v] == IR_st)
{
for (x = 0; x < cm->abc->K; x++)
if(fabs(cm->e[v][x] - 0.) > thresh) ESL_EXCEPTION(eslEINVAL, "cm->e[v:%d] an I{L,R} has > 0 non-zero count", v);
esl_vec_FNorm(cm->e[v], cm->abc->K);
}
}
return eslOK;
} | /* Function: rsearch_CMProbifyEmissions()
* Date: EPN, Wed Mar 14 06:14:51 2007
*
* Purpose: Convert emissions in a counts-based CM built from a single sequence,
* we expect 1 count in each vector to be 1.0, all others 0.0,
* to probability form, using a RIBOSUM matrix with background
* and target frequencies.
*
* The code that does this in RSEARCH is buildcm.c::SingleSequenceLogoddsify(),
* but that's different in that it fills in log odds scores, here we
* fill in probabilities, derived from the RIBOSUM log odds scores.
*
* Returns: <eslOK> on success.
*
* Throws: <eslEINVAL> if an emission vector does not have exactly 1 non-zero
* count that is exactly 1.0 (or within 0.000001 of it)
*/
int
FUNC_0(CLASS_0 *VAR_0, CLASS_1 *VAR_1)
{
int VAR_2,VAR_3,VAR_4;
int VAR_5;
float VAR_6;
int VAR_7;
VAR_6 = 0.000001;
if(VAR_1->VAR_8) FUNC_1(VAR_9, "in rsearch_CMProbifyEmissions(), matrix is in log odds mode, it should be in probs mode");
if(!(VAR_0->VAR_10 & VAR_11)) FUNC_1(VAR_9, "in rsearch_CMProbifyEmissions(), CM_RSEARCHEMIT flag is down");
for (VAR_2 = 0; VAR_2 < VAR_0->VAR_12; VAR_2++)
{
VAR_7 = FALSE;
if (VAR_0->VAR_13[VAR_2] == VAR_14)
{
for (VAR_3=0; VAR_3<VAR_0->VAR_15->VAR_16; VAR_3++)
for (VAR_4=0; VAR_4<VAR_0->VAR_15->VAR_16; VAR_4++)
if (FUNC_2(VAR_0->VAR_17[VAR_2][VAR_3*VAR_0->VAR_15->VAR_16+VAR_4] - 0.) > VAR_6)
{
if(VAR_7)
{
for (VAR_3=0; VAR_3<VAR_0->VAR_15->VAR_16; VAR_3++)
for (VAR_4=0; VAR_4<VAR_0->VAR_15->VAR_16; VAR_4++)
FUNC_3("cm->e[v:%d][%d]: %f\n", VAR_2, (VAR_3*VAR_0->VAR_15->VAR_16+VAR_4), VAR_0->VAR_17[VAR_2][(VAR_3*VAR_0->VAR_15->VAR_16+VAR_4)]);
FUNC_1(VAR_9, "cm->e[v:%d] a MATP_MP has > 1 non-zero count", VAR_2);
}
VAR_5 = FUNC_4(VAR_0->VAR_15->VAR_18[VAR_3], VAR_0->VAR_15->VAR_18[VAR_4]);
VAR_7 = TRUE;
}
for (VAR_3=0; VAR_3<VAR_0->VAR_15->VAR_16*VAR_0->VAR_15->VAR_16; VAR_3++)
VAR_0->VAR_17[VAR_2][VAR_3] = VAR_1->VAR_19->VAR_20[FUNC_5(VAR_5, VAR_3)];
FUNC_6(VAR_0->VAR_17[VAR_2], VAR_0->VAR_15->VAR_16*VAR_0->VAR_15->VAR_16);
}
else if (VAR_0->VAR_13[VAR_2] == MATL_ML || VAR_0->VAR_13[VAR_2] == VAR_21)
{
for (VAR_3=0; VAR_3<VAR_0->VAR_15->VAR_16; VAR_3++)
if (FUNC_2(VAR_0->VAR_17[VAR_2][VAR_3] - 0.) > VAR_6)
{
if(VAR_7) {
for (VAR_4=0; VAR_4<VAR_0->VAR_15->VAR_16; VAR_4++) FUNC_3("cm->e[v:%d][%d]: %f\n", VAR_2, VAR_3, VAR_0->VAR_17[VAR_2][VAR_3]);
FUNC_1(VAR_9, "cm->e[v:%d] a MAT{L,R}_M{L,R} has > 1 non-zero count", VAR_2);
}
VAR_5 = numbered_nucleotide(VAR_0->VAR_15->VAR_18[VAR_3]);
VAR_7 = TRUE;
}
for (VAR_3=0; VAR_3<VAR_0->VAR_15->VAR_16; VAR_3++)
VAR_0->VAR_17[VAR_2][VAR_3] = VAR_1->VAR_22->VAR_20[FUNC_5(VAR_5, VAR_3)];
FUNC_6(VAR_0->VAR_17[VAR_2], VAR_0->VAR_15->VAR_16);
}
else if (VAR_0->VAR_13[VAR_2] == VAR_23 || VAR_0->VAR_13[VAR_2] == VAR_24)
{
for (VAR_3=0; VAR_3<VAR_0->VAR_15->VAR_16; VAR_3++)
for (VAR_4=0; VAR_4<VAR_0->VAR_15->VAR_16; VAR_4++)
{
if (VAR_0->VAR_13[VAR_2] == VAR_23 && (FUNC_2(VAR_0->VAR_17[(VAR_2-1)][VAR_3*VAR_0->VAR_15->VAR_16 + VAR_4] - 0.) > VAR_6))
VAR_5 = numbered_nucleotide(VAR_0->VAR_15->VAR_18[VAR_3]);
else if (VAR_0->VAR_13[VAR_2] == VAR_24 && (FUNC_2(VAR_0->VAR_17[(VAR_2-2)][VAR_3*VAR_0->VAR_15->VAR_16 + VAR_4] - 0.) > VAR_6))
VAR_5 = numbered_nucleotide(VAR_0->VAR_15->VAR_18[VAR_4]);
}
for (VAR_3=0; VAR_3<VAR_0->VAR_15->VAR_16; VAR_3++)
VAR_0->VAR_17[VAR_2][VAR_3] = VAR_1->VAR_22->VAR_20[FUNC_5(VAR_5, VAR_3)];
FUNC_6(VAR_0->VAR_17[VAR_2], VAR_0->VAR_15->VAR_16);
}
else if (VAR_0->VAR_25[VAR_2] == VAR_26 || VAR_0->VAR_25[VAR_2] == VAR_27)
{
for (VAR_3 = 0; VAR_3 < VAR_0->VAR_15->VAR_16; VAR_3++)
if(FUNC_2(VAR_0->VAR_17[VAR_2][VAR_3] - 0.) > VAR_6) FUNC_1(VAR_9, "cm->e[v:%d] an I{L,R} has > 0 non-zero count", VAR_2);
FUNC_6(VAR_0->VAR_17[VAR_2], VAR_0->VAR_15->VAR_16);
}
}
return eslOK;
} | 0.911486 | {'FUNC_0': 'rsearch_CMProbifyEmissions', 'CLASS_0': 'CM_t', 'VAR_0': 'cm', 'CLASS_1': 'fullmat_t', 'VAR_1': 'fullmat', 'VAR_2': 'v', 'VAR_3': 'x', 'VAR_4': 'y', 'VAR_5': 'cur_emission', 'VAR_6': 'thresh', 'VAR_7': 'found_ct_flag', 'VAR_8': 'scores_flag', 'FUNC_1': 'ESL_EXCEPTION', 'VAR_9': 'eslEINVAL', 'VAR_10': 'flags', 'VAR_11': 'CM_RSEARCHEMIT', 'VAR_12': 'M', 'VAR_13': 'stid', 'VAR_14': 'MATP_MP', 'VAR_15': 'abc', 'VAR_16': 'K', 'FUNC_2': 'fabs', 'VAR_17': 'e', 'FUNC_3': 'printf', 'FUNC_4': 'numbered_basepair', 'VAR_18': 'sym', 'VAR_19': 'paired', 'VAR_20': 'matrix', 'FUNC_5': 'matrix_index', 'FUNC_6': 'esl_vec_FNorm', 'VAR_21': 'MATR_MR', 'VAR_22': 'unpaired', 'VAR_23': 'MATP_ML', 'VAR_24': 'MATP_MR', 'VAR_25': 'sttype', 'VAR_26': 'IL_st', 'VAR_27': 'IR_st'} | c | Procedural | 100.00% |
/* Remove a wait node from the specified queue. It is assumed
that the removal takes place concurrently with only atomic insertions at the
head of the queue. */
static void wait_node_dequeue(struct wait_node **pp_head,
struct wait_node **pp_node,
struct wait_node *p_node)
{
if (pp_node == pp_head) {
long oldvalue = (long) p_node;
long newvalue = (long) p_node->next;
if (__compare_and_swap((long *) pp_node, oldvalue, newvalue))
return;
for (pp_node = pp_head; p_node != *pp_node; ) {
pp_node = &(*pp_node)->next;
READ_MEMORY_BARRIER();
}
}
*pp_node = p_node->next;
return;
} | /* Remove a wait node from the specified queue. It is assumed
that the removal takes place concurrently with only atomic insertions at the
head of the queue. */
static void wait_node_dequeue(struct wait_node **pp_head,
struct wait_node **pp_node,
struct wait_node *p_node)
{
if (pp_node == pp_head) {
long VAR_0 = (long) p_node;
long newvalue = (long) p_node->next;
if (__compare_and_swap((long *) pp_node, VAR_0, newvalue))
return;
for (pp_node = pp_head; p_node != *pp_node; ) {
pp_node = &(*pp_node)->next;
READ_MEMORY_BARRIER();
}
}
*pp_node = p_node->next;
return;
} | 0.063177 | {'VAR_0': 'oldvalue'} | c | Procedural | 32.99% |
//
// Generated by the J2ObjC translator. DO NOT EDIT!
// source: ./core/src/java/org/apache/lucene/util/packed/AbstractPagedMutable.java
//
#include "J2ObjC_header.h"
#pragma push_macro("INCLUDE_ALL_OrgApacheLuceneUtilPackedAbstractPagedMutable")
#ifdef RESTRICT_OrgApacheLuceneUtilPackedAbstractPagedMutable
#define INCLUDE_ALL_OrgApacheLuceneUtilPackedAbstractPagedMutable 0
#else
#define INCLUDE_ALL_OrgApacheLuceneUtilPackedAbstractPagedMutable 1
#endif
#undef RESTRICT_OrgApacheLuceneUtilPackedAbstractPagedMutable
#if __has_feature(nullability)
#pragma clang diagnostic push
#pragma GCC diagnostic ignored "-Wnullability"
#pragma GCC diagnostic ignored "-Wnullability-completeness"
#endif
#if !defined (OrgApacheLuceneUtilPackedAbstractPagedMutable_) && (INCLUDE_ALL_OrgApacheLuceneUtilPackedAbstractPagedMutable || defined(INCLUDE_OrgApacheLuceneUtilPackedAbstractPagedMutable))
#define OrgApacheLuceneUtilPackedAbstractPagedMutable_
#define RESTRICT_OrgApacheLuceneUtilLongValues 1
#define INCLUDE_OrgApacheLuceneUtilLongValues 1
#include "org/apache/lucene/util/LongValues.h"
#define RESTRICT_OrgApacheLuceneUtilAccountable 1
#define INCLUDE_OrgApacheLuceneUtilAccountable 1
#include "org/apache/lucene/util/Accountable.h"
@class IOSObjectArray;
@class OrgApacheLuceneUtilPackedPackedInts_Mutable;
@protocol JavaUtilCollection;
/*!
@brief Base implementation for <code>PagedMutable</code> and <code>PagedGrowableWriter</code>.
*/
@interface OrgApacheLuceneUtilPackedAbstractPagedMutable : OrgApacheLuceneUtilLongValues < OrgApacheLuceneUtilAccountable > {
@public
jlong size_;
jint pageShift_;
jint pageMask_;
IOSObjectArray *subMutables_;
jint bitsPerValue_;
}
@property (readonly, class) jint MIN_BLOCK_SIZE NS_SWIFT_NAME(MIN_BLOCK_SIZE);
@property (readonly, class) jint MAX_BLOCK_SIZE NS_SWIFT_NAME(MAX_BLOCK_SIZE);
#pragma mark Public
- (jlong)getWithLong:(jlong)index;
- (id<JavaUtilCollection>)getChildResources;
/*!
@brief Similar to <code>ArrayUtil.grow(long[])</code>.
*/
- (OrgApacheLuceneUtilPackedAbstractPagedMutable *)grow;
/*!
@brief Similar to <code>ArrayUtil.grow(long[], int)</code>.
*/
- (OrgApacheLuceneUtilPackedAbstractPagedMutable *)growWithLong:(jlong)minSize;
- (jlong)ramBytesUsed;
/*!
@brief Create a new copy of size <code>newSize</code> based on the content of
this buffer.This method is much more efficient than creating a new
instance and copying values one by one.
*/
- (OrgApacheLuceneUtilPackedAbstractPagedMutable *)resizeWithLong:(jlong)newSize;
/*!
@brief Set value at <code>index</code>.
*/
- (void)setWithLong:(jlong)index
withLong:(jlong)value;
/*!
@brief The number of values.
*/
- (jlong)size;
- (NSString *)description;
#pragma mark Protected
- (jlong)baseRamBytesUsed;
- (void)fillPages;
- (OrgApacheLuceneUtilPackedPackedInts_Mutable *)newMutableWithInt:(jint)valueCount
withInt:(jint)bitsPerValue OBJC_METHOD_FAMILY_NONE;
- (OrgApacheLuceneUtilPackedAbstractPagedMutable *)newUnfilledCopyWithLong:(jlong)newSize OBJC_METHOD_FAMILY_NONE;
#pragma mark Package-Private
- (instancetype __nonnull)initPackagePrivateWithInt:(jint)bitsPerValue
withLong:(jlong)size
withInt:(jint)pageSize;
- (jint)indexInPageWithLong:(jlong)index;
- (jint)lastPageSizeWithLong:(jlong)size;
- (jint)pageIndexWithLong:(jlong)index;
- (jint)pageSize;
// Disallowed inherited constructors, do not use.
- (instancetype __nonnull)init NS_UNAVAILABLE;
@end
J2OBJC_EMPTY_STATIC_INIT(OrgApacheLuceneUtilPackedAbstractPagedMutable)
J2OBJC_FIELD_SETTER(OrgApacheLuceneUtilPackedAbstractPagedMutable, subMutables_, IOSObjectArray *)
inline jint OrgApacheLuceneUtilPackedAbstractPagedMutable_get_MIN_BLOCK_SIZE(void);
#define OrgApacheLuceneUtilPackedAbstractPagedMutable_MIN_BLOCK_SIZE 64
J2OBJC_STATIC_FIELD_CONSTANT(OrgApacheLuceneUtilPackedAbstractPagedMutable, MIN_BLOCK_SIZE, jint)
inline jint OrgApacheLuceneUtilPackedAbstractPagedMutable_get_MAX_BLOCK_SIZE(void);
#define OrgApacheLuceneUtilPackedAbstractPagedMutable_MAX_BLOCK_SIZE 1073741824
J2OBJC_STATIC_FIELD_CONSTANT(OrgApacheLuceneUtilPackedAbstractPagedMutable, MAX_BLOCK_SIZE, jint)
FOUNDATION_EXPORT void OrgApacheLuceneUtilPackedAbstractPagedMutable_initPackagePrivateWithInt_withLong_withInt_(OrgApacheLuceneUtilPackedAbstractPagedMutable *self, jint bitsPerValue, jlong size, jint pageSize);
J2OBJC_TYPE_LITERAL_HEADER(OrgApacheLuceneUtilPackedAbstractPagedMutable)
#endif
#if __has_feature(nullability)
#pragma clang diagnostic pop
#endif
#pragma pop_macro("INCLUDE_ALL_OrgApacheLuceneUtilPackedAbstractPagedMutable")
| //
// Generated by the J2ObjC translator. DO NOT EDIT!
// source: ./core/src/java/org/apache/lucene/util/packed/AbstractPagedMutable.java
//
#include "J2ObjC_header.h"
#pragma push_macro("INCLUDE_ALL_OrgApacheLuceneUtilPackedAbstractPagedMutable")
#ifdef RESTRICT_OrgApacheLuceneUtilPackedAbstractPagedMutable
#define INCLUDE_ALL_OrgApacheLuceneUtilPackedAbstractPagedMutable 0
#else
#define INCLUDE_ALL_OrgApacheLuceneUtilPackedAbstractPagedMutable 1
#endif
#undef RESTRICT_OrgApacheLuceneUtilPackedAbstractPagedMutable
#if FUNC_0(nullability)
#pragma clang diagnostic push
#pragma GCC diagnostic ignored "-Wnullability"
#pragma GCC diagnostic ignored "-Wnullability-completeness"
#endif
#if !defined (OrgApacheLuceneUtilPackedAbstractPagedMutable_) && (INCLUDE_ALL_OrgApacheLuceneUtilPackedAbstractPagedMutable || defined(INCLUDE_OrgApacheLuceneUtilPackedAbstractPagedMutable))
#define OrgApacheLuceneUtilPackedAbstractPagedMutable_
#define RESTRICT_OrgApacheLuceneUtilLongValues 1
#define INCLUDE_OrgApacheLuceneUtilLongValues 1
#include "org/apache/lucene/util/LongValues.h"
#define RESTRICT_OrgApacheLuceneUtilAccountable 1
#define VAR_0 1
#include "org/apache/lucene/util/Accountable.h"
@CLASS_0 IOSObjectArray;
@CLASS_0 OrgApacheLuceneUtilPackedPackedInts_Mutable;
@CLASS_1 JavaUtilCollection;
/*!
@brief Base implementation for <code>PagedMutable</code> and <code>PagedGrowableWriter</code>.
*/
@CLASS_2 VAR_2 : OrgApacheLuceneUtilLongValues < OrgApacheLuceneUtilAccountable > {
@public
jlong size_;
CLASS_4 VAR_4;
CLASS_4 VAR_5;
IOSObjectArray *subMutables_;
CLASS_4 bitsPerValue_;
}
@property (VAR_6, VAR_1) VAR_3 MIN_BLOCK_SIZE NS_SWIFT_NAME(MIN_BLOCK_SIZE);
@property (VAR_6, VAR_1) VAR_3 CLASS_5 NS_SWIFT_NAME(CLASS_5);
#pragma mark Public
- (jlong)getWithLong:(jlong)VAR_8;
- (VAR_9<JavaUtilCollection>)VAR_10;
/*!
@brief Similar to <code>ArrayUtil.grow(long[])</code>.
*/
- (CLASS_3 *)grow;
/*!
@brief Similar to <code>ArrayUtil.grow(long[], int)</code>.
*/
- (CLASS_3 *)VAR_11:(jlong)minSize;
- (jlong)ramBytesUsed;
/*!
@brief Create a new copy of size <code>newSize</code> based on the content of
this buffer.This method is much more efficient than creating a new
instance and copying values one by one.
*/
- (CLASS_3 *)resizeWithLong:(jlong)newSize;
/*!
@brief Set value at <code>index</code>.
*/
- (void)setWithLong:(jlong)CLASS_6
withLong:(jlong)value;
/*!
@brief The number of values.
*/
- (jlong)VAR_12;
- (NSString *)description;
#pragma mark Protected
- (jlong)baseRamBytesUsed;
- (void)fillPages;
- (OrgApacheLuceneUtilPackedPackedInts_Mutable *)newMutableWithInt:(VAR_3)valueCount
withInt:(VAR_3)VAR_13 OBJC_METHOD_FAMILY_NONE;
- (CLASS_3 *)newUnfilledCopyWithLong:(jlong)newSize OBJC_METHOD_FAMILY_NONE;
#pragma mark Package-Private
- (instancetype __nonnull)initPackagePrivateWithInt:(VAR_3)CLASS_7
withLong:(jlong)VAR_12
withInt:(VAR_3)pageSize;
- (ID_1)VAR_14:(jlong)VAR_8;
- (ID_1)lastPageSizeWithLong:(jlong)VAR_12;
- (ID_1)VAR_15:(jlong)VAR_8;
- (ID_1)pageSize;
// Disallowed inherited constructors, do not use.
- (instancetype __nonnull)VAR_16 NS_UNAVAILABLE;
@end
J2OBJC_EMPTY_STATIC_INIT(VAR_2)
J2OBJC_FIELD_SETTER(ID_0, subMutables_, IOSObjectArray *)
inline VAR_3 OrgApacheLuceneUtilPackedAbstractPagedMutable_get_MIN_BLOCK_SIZE(void);
#define OrgApacheLuceneUtilPackedAbstractPagedMutable_MIN_BLOCK_SIZE 64
J2OBJC_STATIC_FIELD_CONSTANT(VAR_2, MIN_BLOCK_SIZE, VAR_3)
inline CLASS_4 OrgApacheLuceneUtilPackedAbstractPagedMutable_get_MAX_BLOCK_SIZE(void);
#define OrgApacheLuceneUtilPackedAbstractPagedMutable_MAX_BLOCK_SIZE 1073741824
J2OBJC_STATIC_FIELD_CONSTANT(VAR_2, VAR_7, VAR_3)
FOUNDATION_EXPORT void OrgApacheLuceneUtilPackedAbstractPagedMutable_initPackagePrivateWithInt_withLong_withInt_(CLASS_3 *self, CLASS_4 VAR_13, jlong VAR_12, CLASS_4 pageSize);
J2OBJC_TYPE_LITERAL_HEADER(ID_0)
#endif
#if FUNC_0(nullability)
#pragma clang diagnostic pop
#endif
#pragma pop_macro("INCLUDE_ALL_OrgApacheLuceneUtilPackedAbstractPagedMutable")
| 0.192915 | {'FUNC_0': '__has_feature', 'VAR_0': 'INCLUDE_OrgApacheLuceneUtilAccountable', 'CLASS_0': 'class', 'VAR_1': 'class', 'CLASS_1': 'protocol', 'CLASS_2': 'interface', 'VAR_2': 'OrgApacheLuceneUtilPackedAbstractPagedMutable', 'CLASS_3': 'OrgApacheLuceneUtilPackedAbstractPagedMutable', 'ID_0': 'OrgApacheLuceneUtilPackedAbstractPagedMutable', 'CLASS_4': 'jint', 'VAR_3': 'jint', 'ID_1': 'jint', 'VAR_4': 'pageShift_', 'VAR_5': 'pageMask_', 'VAR_6': 'readonly', 'CLASS_5': 'MAX_BLOCK_SIZE', 'VAR_7': 'MAX_BLOCK_SIZE', 'VAR_8': 'index', 'CLASS_6': 'index', 'VAR_9': 'id', 'VAR_10': 'getChildResources', 'VAR_11': 'growWithLong', 'VAR_12': 'size', 'VAR_13': 'bitsPerValue', 'CLASS_7': 'bitsPerValue', 'VAR_14': 'indexInPageWithLong', 'VAR_15': 'pageIndexWithLong', 'VAR_16': 'init'} | c | Hibrido | 26.64% |
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#ifndef NFA_H
#define NFA_H
#include <QByteArray>
#include <QDebug>
#include <QHash>
#include <QList>
#include <QMap>
#include <QStack>
#include <QString>
#include "global.h"
typedef QHash<InputType, int> TransitionMap;
struct State
{
QString symbol;
TransitionMap transitions;
};
inline QDataStream &operator<<(QDataStream &stream, const State &state)
{
return stream << state.symbol << state.transitions;
}
inline QDataStream &operator>>(QDataStream &stream, State &state)
{
return stream >> state.symbol >> state.transitions;
}
struct DFA : public QList<State>
{
void debug() const;
DFA minimize() const;
};
class NFA
{
public:
static NFA createSingleInputNFA(InputType input);
static NFA createSymbolNFA(const QString &symbol);
static NFA createAlternatingNFA(const NFA &a, const NFA &b);
static NFA createConcatenatingNFA(const NFA &a, const NFA &b);
static NFA createOptionalNFA(const NFA &a);
// convenience
static NFA createStringNFA(const QByteArray &str);
static NFA createSetNFA(const QSet<InputType> &set);
static NFA createZeroOrOneNFA(const NFA &a);
static NFA applyQuantity(const NFA &a, int minOccurrences, int maxOccurrences);
void setTerminationSymbol(const QString &symbol);
DFA toDFA() const;
inline bool isEmpty() const { return states.isEmpty(); }
inline int stateCount() const { return states.count(); }
void debug();
private:
void initialize(int size);
void addTransition(int from, InputType input, int to);
void copyFrom(const NFA &other, int baseState);
void initializeFromPair(const NFA &a, const NFA &b,
int *initialA, int *finalA,
int *initialB, int *finalB);
QSet<int> epsilonClosure(const QSet<int> &initialClosure) const;
inline void assertValidState(int state)
{ Q_UNUSED(state); Q_ASSERT(state >= 0); Q_ASSERT(state < states.count()); }
#if defined(AUTOTEST)
public:
#endif
int initialState;
int finalState;
QList<State> states;
};
#endif // NFA_H
| // Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#ifndef VAR_0
#define VAR_0
#include <QByteArray>
#include <QDebug>
#include <QHash>
#include <IMPORT_0>
#include <QMap>
#include <QStack>
#include <IMPORT_1>
#include "global.h"
typedef QHash<ID_0, int> TransitionMap;
struct State
{
IMPORT_1 symbol;
TransitionMap VAR_2;
};
inline CLASS_1 &operator<<(VAR_3 &stream, VAR_4 State &VAR_5)
{
return stream << VAR_5.symbol << VAR_5.VAR_2;
}
inline CLASS_1 &operator>>(VAR_3 &stream, State &VAR_5)
{
return stream >> VAR_5.symbol >> VAR_5.VAR_2;
}
struct CLASS_2 : VAR_6 IMPORT_0<State>
{
void debug() const;
CLASS_2 minimize() const;
};
class VAR_7
{
public:
VAR_8 CLASS_3 FUNC_0(CLASS_0 VAR_9);
static CLASS_3 createSymbolNFA(const IMPORT_1 &symbol);
static CLASS_3 FUNC_1(const CLASS_3 &a, const CLASS_3 &VAR_10);
static CLASS_3 FUNC_2(const CLASS_3 &a, const CLASS_3 &VAR_10);
static CLASS_3 FUNC_3(const CLASS_3 &a);
// convenience
static CLASS_3 createStringNFA(const QByteArray &VAR_11);
static CLASS_3 createSetNFA(const CLASS_4<VAR_1> &set);
static CLASS_3 createZeroOrOneNFA(const CLASS_3 &a);
static CLASS_3 FUNC_4(const CLASS_3 &a, int VAR_12, int maxOccurrences);
void setTerminationSymbol(const IMPORT_1 &symbol);
CLASS_2 FUNC_5() const;
inline bool FUNC_6() VAR_4 { return states.FUNC_6(); }
inline int stateCount() VAR_4 { return states.count(); }
void debug();
private:
void FUNC_7(int size);
void addTransition(int from, CLASS_0 VAR_9, int VAR_13);
void FUNC_8(const CLASS_3 &VAR_14, int baseState);
void FUNC_9(const CLASS_3 &a, const CLASS_3 &VAR_10,
int *initialA, int *finalA,
int *VAR_15, int *VAR_16);
CLASS_4<int> FUNC_10(const CLASS_4<int> &initialClosure) VAR_4;
inline void FUNC_11(int VAR_5)
{ Q_UNUSED(VAR_5); Q_ASSERT(VAR_5 >= 0); Q_ASSERT(VAR_5 < states.count()); }
#if defined(VAR_17)
public:
#endif
int initialState;
int VAR_18;
IMPORT_0<State> states;
};
#endif // NFA_H
| 0.447519 | {'VAR_0': 'NFA_H', 'IMPORT_0': 'QList', 'IMPORT_1': 'QString', 'ID_0': 'InputType', 'CLASS_0': 'InputType', 'VAR_1': 'InputType', 'VAR_2': 'transitions', 'CLASS_1': 'QDataStream', 'VAR_3': 'QDataStream', 'VAR_4': 'const', 'VAR_5': 'state', 'CLASS_2': 'DFA', 'VAR_6': 'public', 'VAR_7': 'NFA', 'CLASS_3': 'NFA', 'VAR_8': 'static', 'FUNC_0': 'createSingleInputNFA', 'VAR_9': 'input', 'FUNC_1': 'createAlternatingNFA', 'VAR_10': 'b', 'FUNC_2': 'createConcatenatingNFA', 'FUNC_3': 'createOptionalNFA', 'VAR_11': 'str', 'CLASS_4': 'QSet', 'FUNC_4': 'applyQuantity', 'VAR_12': 'minOccurrences', 'FUNC_5': 'toDFA', 'FUNC_6': 'isEmpty', 'FUNC_7': 'initialize', 'VAR_13': 'to', 'FUNC_8': 'copyFrom', 'VAR_14': 'other', 'FUNC_9': 'initializeFromPair', 'VAR_15': 'initialB', 'VAR_16': 'finalB', 'FUNC_10': 'epsilonClosure', 'FUNC_11': 'assertValidState', 'VAR_17': 'AUTOTEST', 'VAR_18': 'finalState'} | c | Hibrido | 100.00% |
//
// 2017-06-26, jjuiddong
// - Transform
// - Calc Order = Scale * Rotation * Position
//
// 2020-01-19
// - add constructor
//
#pragma once
namespace common
{
struct Transform
{
Transform();
explicit Transform(const Vector3 &pos_);
explicit Transform(const Quaternion &rot_);
explicit Transform(const Vector3 &pos_, const Vector3 &scale_);
explicit Transform(const Vector3 &pos_, const Quaternion &rot_);
explicit Transform(const Vector3 &pos_, const Vector3 &scale_, const Quaternion &rot_);
Matrix44 GetMatrix() const;
#ifdef USE_D3D11_MATH
Transform(const XMMATRIX &rhs);
XMMATRIX GetMatrixXM() const;
const Transform& operator=(const XMMATRIX &rhs);
#endif
Transform Inverse() const;
Transform operator*(const Transform &rhs) const;
const Transform& operator*=(const Transform &rhs);
Vector3 pos;
Vector3 scale;
Quaternion rot;
const static Transform Identity;
};
#ifdef USE_D3D11_MATH
inline Transform::Transform(const XMMATRIX &rhs)
{
operator=(rhs);
}
inline XMMATRIX Transform::GetMatrixXM() const
{
XMVECTOR q = XMLoadFloat4((XMFLOAT4*)&rot);
XMMATRIX mRot = XMMatrixRotationQuaternion(q);
return XMMatrixScaling(scale.x, scale.y, scale.z) * mRot * XMMatrixTranslation(pos.x, pos.y, pos.z);
}
inline const Transform& Transform::operator=(const XMMATRIX &rhs)
{
XMVECTOR _scale, _xq, _tran;
XMMatrixDecompose(&_scale, &_xq, &_tran, rhs);
XMStoreFloat3((XMFLOAT3*)&scale, _scale);
XMStoreFloat3((XMFLOAT3*)&pos, _tran);
XMStoreFloat4((XMFLOAT4*)&rot, _xq);
rot.Normalize();
return *this;
}
#endif
}
| //
// 2017-06-26, jjuiddong
// - Transform
// - Calc Order = Scale * Rotation * Position
//
// 2020-01-19
// - add constructor
//
#pragma once
CLASS_0 VAR_0
{
struct CLASS_1
{
VAR_1(ID_0);
CLASS_2 VAR_1(const Vector3 &VAR_2);
CLASS_2 VAR_1(const CLASS_3 &rot_);
CLASS_2 VAR_1(const Vector3 &VAR_2, const Vector3 &VAR_3);
CLASS_2 VAR_1(const Vector3 &VAR_2, const CLASS_3 &rot_);
CLASS_2 VAR_1(const Vector3 &VAR_2, const Vector3 &VAR_3, const CLASS_3 &rot_);
CLASS_4 GetMatrix() VAR_4;
#ifdef VAR_5
VAR_1(const XMMATRIX &VAR_6);
XMMATRIX VAR_7() VAR_4;
const CLASS_1& VAR_8=(const XMMATRIX &VAR_6);
#endif
CLASS_1 VAR_9() VAR_4;
CLASS_1 VAR_8*(VAR_4 VAR_1 &VAR_6) VAR_4;
const CLASS_1& VAR_8*=(const VAR_1 &VAR_6);
Vector3 VAR_10;
Vector3 VAR_11;
CLASS_3 rot;
const static CLASS_1 Identity;
};
#ifdef VAR_5
inline CLASS_1::FUNC_0(const XMMATRIX &VAR_6)
{
VAR_8=(VAR_6);
}
inline XMMATRIX VAR_1::FUNC_1() const
{
CLASS_5 VAR_12 = FUNC_2((XMFLOAT4*)&rot);
XMMATRIX VAR_13 = XMMatrixRotationQuaternion(VAR_12);
return FUNC_3(VAR_11.VAR_14, VAR_11.VAR_15, VAR_11.z) * VAR_13 * FUNC_4(VAR_10.VAR_14, VAR_10.VAR_15, VAR_10.z);
}
inline const CLASS_1& VAR_1::VAR_8=(const XMMATRIX &VAR_6)
{
CLASS_5 VAR_16, VAR_17, VAR_18;
XMMatrixDecompose(&VAR_16, &VAR_17, &VAR_18, VAR_6);
FUNC_5((XMFLOAT3*)&VAR_11, VAR_16);
FUNC_5((XMFLOAT3*)&VAR_10, VAR_18);
FUNC_6((XMFLOAT4*)&rot, VAR_17);
rot.FUNC_7();
return *VAR_19;
}
#endif
}
| 0.785482 | {'CLASS_0': 'namespace', 'VAR_0': 'common', 'CLASS_1': 'Transform', 'VAR_1': 'Transform', 'FUNC_0': 'Transform', 'ID_0': '', 'CLASS_2': 'explicit', 'VAR_2': 'pos_', 'CLASS_3': 'Quaternion', 'VAR_3': 'scale_', 'CLASS_4': 'Matrix44', 'VAR_4': 'const', 'VAR_5': 'USE_D3D11_MATH', 'VAR_6': 'rhs', 'VAR_7': 'GetMatrixXM', 'FUNC_1': 'GetMatrixXM', 'VAR_8': 'operator', 'VAR_9': 'Inverse', 'VAR_10': 'pos', 'VAR_11': 'scale', 'CLASS_5': 'XMVECTOR', 'VAR_12': 'q', 'FUNC_2': 'XMLoadFloat4', 'VAR_13': 'mRot', 'FUNC_3': 'XMMatrixScaling', 'VAR_14': 'x', 'VAR_15': 'y', 'FUNC_4': 'XMMatrixTranslation', 'VAR_16': '_scale', 'VAR_17': '_xq', 'VAR_18': '_tran', 'FUNC_5': 'XMStoreFloat3', 'FUNC_6': 'XMStoreFloat4', 'FUNC_7': 'Normalize', 'VAR_19': 'this'} | c | Texto | 5.81% |
/* This is free and unencumbered software released into the public domain. */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <string.h> /* for NULL, size_t, strchr(), strspn() */
/**
* @date 2014-11-23
* @author <NAME>
* @see http://libc11.org/string/strspn.html
*/
size_t
strspn(const char* s1,
const char* const s2) {
size_t result = 0;
while (*s1 != '\0' && strchr(s2, *s1) != NULL) {
s1++, result++;
}
return result;
}
| /* This is free and unencumbered software released into the public domain. */
#ifdef VAR_0
#include <IMPORT_0>
#endif
#include <IMPORT_1> /* for NULL, size_t, strchr(), strspn() */
/**
* @date 2014-11-23
* @author <NAME>
* @see http://libc11.org/string/strspn.html
*/
size_t
FUNC_0(const char* VAR_1,
const char* const VAR_2) {
size_t result = 0;
while (*VAR_1 != '\0' && FUNC_1(VAR_2, *VAR_1) != NULL) {
VAR_1++, result++;
}
return result;
}
| 0.627632 | {'VAR_0': 'HAVE_CONFIG_H', 'IMPORT_0': 'config.h', 'IMPORT_1': 'string.h', 'FUNC_0': 'strspn', 'VAR_1': 's1', 'VAR_2': 's2', 'FUNC_1': 'strchr'} | c | Procedural | 100.00% |
#include <stdio.h>
int main(){
int n,m,x,i,j,c[12],a[12][12],u[13],min,s[12],cs,mino;
scanf("%d %d %d",&n,&m,&x);
min=1;
for (i=0;i<n;i++) {
scanf("%d",&c[i]);
min+=c[i];
u[i]=0;
for (j=0;j<m;j++) scanf("%d",&a[i][j]);
}
mino=min;
u[n]=0;
for (;;) {
for (i=0;i<n;i++)
if (u[i]==0) {
u[i]=1;
break;
} else u[i]=0;
if (i==n) break;
for (i=0;i<m;i++) s[i]=0;
cs=0;
for (i=0;i<n;i++)
if (u[i]) {
for (j=0;j<m;j++) s[j]+=a[i][j];
cs+=c[i];
}
for (i=0;i<m;i++)
if (s[i]<x) break;
if (i==m && cs<min) min=cs;
}
if (min<mino) printf("%d\n",min);
else puts("-1");
return 0;
}
| #include <stdio.h>
int main(){
int n,m,VAR_0,i,j,c[12],a[12][12],u[13],min,s[12],cs,mino;
scanf("%d %d %d",&n,&m,&VAR_0);
min=1;
for (i=0;i<n;i++) {
scanf("%d",&c[i]);
min+=c[i];
u[i]=0;
for (j=0;j<m;j++) scanf("%d",&a[i][j]);
}
mino=min;
u[n]=0;
for (;;) {
for (i=0;i<n;i++)
if (u[i]==0) {
u[i]=1;
break;
} else u[i]=0;
if (i==n) break;
for (i=0;i<m;i++) s[i]=0;
cs=0;
for (i=0;i<n;i++)
if (u[i]) {
for (j=0;j<m;j++) s[j]+=a[i][j];
cs+=c[i];
}
for (i=0;i<m;i++)
if (s[i]<VAR_0) break;
if (i==m && cs<min) min=cs;
}
if (min<mino) printf("%d\n",min);
else FUNC_0("-1");
return 0;
}
| 0.112432 | {'VAR_0': 'x', 'FUNC_0': 'puts'} | c | Procedural | 100.00% |
/* libcda; BCC/DOS component.
*
* Quick port of some old freeware code I found by <NAME>
* (<EMAIL>), with our API hacked over the top.
*
* <NAME> <<EMAIL>>
*/
#include <dos.h>
#include <io.h>
#include <mem.h>
#include <fcntl.h>
#include "libcda.h"
#define MIN(x,y) (((x) < (y)) ? (x) : (y))
#define MAX(x,y) (((x) > (y)) ? (x) : (y))
#define MID(x,y,z) MAX((x), MIN((y), (z)))
static char _cd_error[256] = "(error strings not available yet)";
const char *cd_error = _cd_error;
#define CDROM 0x21
#define EJECT_TRAY 0
#define RESET 2
#define CLOSE_TRAY 5
#define MEDIA_CHANGE 9
#define BUSY 512
#define TRACK_MASK 208
typedef struct playinfo {
unsigned char control;
unsigned char adr;
unsigned char track;
unsigned char index;
unsigned char min;
unsigned char sec;
unsigned char frame;
unsigned char zero;
unsigned char amin;
unsigned char asec;
unsigned char aframe;
};
static struct {
unsigned short drives;
unsigned char first_drive;
unsigned short current_track;
unsigned long track_position;
unsigned char track_type;
unsigned char low_audio;
unsigned char high_audio;
unsigned char disk_length_min;
unsigned char disk_length_sec;
unsigned char disk_length_frames;
unsigned long endofdisk;
unsigned char upc[7];
unsigned char diskid[6];
unsigned long status;
unsigned short error; /* bit 15 means error */
} cdrom_data;
static struct {
unsigned char mode;
unsigned char input0;
unsigned char volume0;
unsigned char input1;
unsigned char volume1;
unsigned char input2;
unsigned char volume2;
unsigned char input3;
unsigned char volume3;
} vol;
static int paused;
static union REGS inregs, outregs;
static struct SREGS sregs;
static void device_request(void *block)
{
inregs.x.ax = 0x1510;
inregs.x.cx = cdrom_data.first_drive;
inregs.x.bx = FP_OFF(block);
sregs.es = FP_SEG(block);
int86x(0x2f, &inregs, &outregs, &sregs);
}
static void red_book(unsigned long value, unsigned char *min,
unsigned char *sec, unsigned char *frame)
{
*frame = value & 0x000000ff;
*sec = (value & 0x0000ff00) >> 8;
*min = (value & 0x00ff0000) >> 16;
}
static unsigned long hsg(unsigned long value)
{
unsigned char min, sec, frame;
red_book (value, &min, &sec, &frame);
value = (unsigned long)min * 4500;
value += (short)sec * 75;
value += frame - 150;
return value;
}
static unsigned long head_position(void)
{
struct {
unsigned char length;
unsigned char subunit;
unsigned char comcode;
unsigned short status;
char ununsed[8];
unsigned char media;
unsigned long address;
unsigned short bytes;
unsigned short sector;
unsigned long volid;
unsigned char unused[4];
} tray_request;
struct {
unsigned char mode;
unsigned char adr_mode;
unsigned long address;
} head_data;
memset(&tray_request, 0, sizeof tray_request);
tray_request.length = sizeof tray_request;
tray_request.comcode = 3;
tray_request.address = (unsigned long)&head_data;
tray_request.bytes = 6;
head_data.mode = 0x01;
head_data.adr_mode = 0x00;
device_request(&tray_request);
cdrom_data.error = tray_request.status;
return head_data.address;
}
static int get_audio_info(void)
{
struct {
unsigned char length;
unsigned char subunit;
unsigned char comcode;
unsigned short status;
char ununsed[8];
unsigned char media;
long address;
short bytes;
short sector;
long volid;
} ioctli;
struct {
unsigned char mode;
unsigned char lowest;
unsigned char highest;
unsigned long address;
} track_data;
ioctli.length = sizeof ioctli;
ioctli.subunit = 0;
ioctli.comcode = 3;
ioctli.media = 0;
ioctli.sector = 0;
ioctli.volid = 0;
ioctli.address = (long)&track_data;
ioctli.bytes = sizeof track_data;
track_data.mode = 0x0a;
device_request(&ioctli);
memcpy(&cdrom_data.diskid, &track_data.lowest, 6);
cdrom_data.low_audio = track_data.lowest;
cdrom_data.high_audio = track_data.highest;
red_book(track_data.address, &cdrom_data.disk_length_min,
&cdrom_data.disk_length_sec, &cdrom_data.disk_length_frames);
cdrom_data.endofdisk = hsg (track_data.address);
cdrom_data.error = ioctli.status;
return !(cdrom_data.error & 0x8000);
}
static void set_track(short tracknum)
{
struct {
unsigned char length;
unsigned char subunit;
unsigned char comcode;
unsigned short status;
char ununsed[8];
unsigned char media;
unsigned long address;
unsigned short bytes;
unsigned short sector;
unsigned long volid;
} tray_request;
struct {
unsigned char mode;
unsigned char track;
unsigned long address;
unsigned char control;
} track_data;
tray_request.length = sizeof tray_request;
tray_request.subunit = 0;
tray_request.comcode = 3;
tray_request.media = 0;
tray_request.media = tray_request.sector = tray_request.volid = 0;
tray_request.address = (unsigned long)&track_data;
tray_request.bytes = 7;
track_data.mode = 0x0b;
track_data.track = tracknum;
device_request(&tray_request);
cdrom_data.error = tray_request.status;
cdrom_data.track_position = hsg(track_data.address);
cdrom_data.current_track = tracknum;
cdrom_data.track_type = (track_data.control & TRACK_MASK);
}
static int device_status(void)
{
struct {
unsigned char length;
unsigned char subunit;
unsigned char comcode;
unsigned short status;
char ununsed[8];
unsigned char media;
unsigned long address;
unsigned short bytes;
unsigned short sector;
unsigned long volid;
} tray_request;
struct {
unsigned char mode;
unsigned long status;
} cd_data;
tray_request.length = sizeof tray_request;
tray_request.subunit = 0;
tray_request.comcode = 3;
tray_request.media = 0;
tray_request.media = tray_request.sector = tray_request.volid = 0;
tray_request.address = (unsigned long)&cd_data;
tray_request.bytes = 5;
cd_data.mode = 0x06;
device_request (&tray_request);
cdrom_data.status = cd_data.status;
cdrom_data.error = tray_request.status;
return cdrom_data.status;
}
static int audio_busy(void)
{
if (device_status() & 1) /* door open */
return 0;
return (cdrom_data.error & BUSY);
}
static void stop(void)
{
struct {
unsigned char length;
unsigned char subunit;
unsigned char comcode;
unsigned short status;
char ununsed[8];
} stop_request;
stop_request.length = sizeof stop_request;
stop_request.subunit = 0;
stop_request.comcode = 133;
device_request(&stop_request);
cdrom_data.error = stop_request.status;
}
static int play(unsigned long begin, unsigned long end)
{
unsigned long leng;
struct {
unsigned char length;
unsigned char subunit;
unsigned char comcode;
unsigned short status;
char ununsed[8];
unsigned char addressmode;
unsigned long start;
unsigned long playlength;
} play_request;
stop();
play_request.length = sizeof play_request;
play_request.subunit = 0;
play_request.comcode = 132;
play_request.addressmode = 0;
play_request.start = begin;
play_request.playlength = end - begin;
device_request(&play_request);
cdrom_data.error = play_request.status;
paused = 0;
return !(cdrom_data.error & 0x8000);
}
static void cd_cmd(unsigned char mode)
{
struct {
unsigned char length;
unsigned char subunit;
unsigned char comcode;
unsigned short status;
char ununsed[8];
unsigned char media;
unsigned long address;
unsigned short bytes;
unsigned char unused[4];
} tray_request;
unsigned char cd_mode;
cd_mode = mode;
tray_request.length = sizeof tray_request;
tray_request.subunit = 0;
tray_request.comcode = 12;
tray_request.media = 0;
tray_request.address = (unsigned long)&cd_mode;
tray_request.bytes = 1;
device_request(&tray_request);
cdrom_data.error = tray_request.status;
}
/*
* libcda interface
*/
int cd_init(void)
{
inregs.h.ah = 0x15;
inregs.h.al = 0x00;
inregs.x.bx = 0;
int86 (0x2f, &inregs, &outregs);
if (outregs.x.bx == 0)
return -1;
cdrom_data.drives = outregs.x.bx;
cdrom_data.first_drive = outregs.x.cx;
get_audio_info();
paused = 0;
return 0;
}
void cd_exit(void)
{
/* do nothing */
}
static unsigned long start_position(int start)
{
set_track(start);
return cdrom_data.track_position;
}
static unsigned long end_position(int end)
{
if (end == cdrom_data.high_audio)
return cdrom_data.endofdisk;
else {
set_track(end + 1);
return cdrom_data.track_position;
}
}
int cd_play(int track)
{
unsigned long startpos, endpos;
if ((!get_audio_info()) ||
(track < cdrom_data.low_audio) ||
(track > cdrom_data.high_audio))
return -1;
startpos = start_position(track);
endpos = end_position(track);
return (!play(startpos, endpos)) ? -1 : 0;
}
int cd_play_range(int start, int end)
{
unsigned long startpos, endpos;
if ((!get_audio_info()) ||
(MIN(start, end) < cdrom_data.low_audio) ||
(MAX(start, end) > cdrom_data.high_audio))
return -1;
startpos = start_position(start);
endpos = end_position(end);
return (!play(startpos, endpos)) ? -1 : 0;
}
int cd_play_from(int track)
{
unsigned long startpos, endpos;
if (!get_audio_info() ||
(track < cdrom_data.low_audio) ||
(track > cdrom_data.high_audio))
return -1;
startpos = start_position(track);
endpos = cdrom_data.endofdisk;
return (!play(startpos, endpos)) ? -1 : 0;
}
int cd_current_track(void)
{
unsigned long loc;
short i;
if (!audio_busy() || !get_audio_info())
return 0;
loc = head_position();
for (i = cdrom_data.high_audio; i > cdrom_data.low_audio; i--) {
set_track(i);
if (loc > cdrom_data.track_position)
return i;
}
return cdrom_data.low_audio;
}
void cd_pause(void)
{
if (!paused) {
stop();
paused = 1;
}
}
void cd_resume(void)
{
struct {
unsigned char length;
unsigned char subunit;
unsigned char comcode;
unsigned short status;
char ununsed[8];
} stop_request;
stop_request.length = sizeof stop_request;
stop_request.subunit = 0;
stop_request.comcode = 136;
device_request(&stop_request);
cdrom_data.error = stop_request.status;
paused = 0;
}
int cd_is_paused(void)
{
return paused;
}
void cd_stop(void)
{
stop(); /* Two stops is correct. */
stop();
paused = 0;
}
int cd_get_tracks(int *first, int *last)
{
if (!get_audio_info())
return -1;
if (first) *first = cdrom_data.low_audio;
if (last) *last = cdrom_data.high_audio;
return 0;
}
int cd_is_audio(int track)
{
if (!get_audio_info())
return -1;
set_track(track);
return (cdrom_data.track_type == 64) ? 0 : 1;
}
void cd_get_volume(int *c0, int *c1)
{
struct {
unsigned char length;
unsigned char subunit;
unsigned char comcode;
unsigned short status;
char ununsed[8];
unsigned char media;
unsigned long address;
unsigned short bytes;
unsigned short sector;
unsigned long volid;
} tray_request;
memset(&tray_request, 0, sizeof tray_request);
tray_request.length = sizeof tray_request;
tray_request.comcode = 3;
tray_request.address = (unsigned long)&vol;
tray_request.bytes = sizeof vol;
vol.mode = 4;
device_request(&tray_request);
if (c0) *c0 = vol.volume0;
if (c1) *c1 = vol.volume1;
}
void cd_set_volume(int c0, int c1)
{
struct {
unsigned char length;
unsigned char subunit;
unsigned char comcode;
unsigned short status;
char ununsed[8];
unsigned char media;
unsigned long address;
unsigned short bytes;
unsigned char unused[4];
} cd_request;
vol.mode = 3;
vol.volume0 = MID(0, c0, 255);
vol.volume1 = MID(0, c1, 255);
vol.volume2 = 0;
vol.volume3 = 0;
vol.input0 = 0;
vol.input1 = 1;
vol.input2 = 2;
vol.input3 = 3;
cd_request.length = sizeof cd_request;
cd_request.subunit = 0;
cd_request.comcode = 12;
cd_request.media = 0;
cd_request.address = (unsigned long)&vol;
cd_request.bytes = 9;
device_request(&cd_request);
}
void cd_eject(void)
{
cd_cmd(EJECT_TRAY);
paused = 0;
}
void cd_close(void)
{
cd_cmd(CLOSE_TRAY);
paused = 0;
}
| /* libcda; BCC/DOS component.
*
* Quick port of some old freeware code I found by <NAME>
* (<EMAIL>), with our API hacked over the top.
*
* <NAME> <<EMAIL>>
*/
#include <IMPORT_0>
#include <IMPORT_1>
#include <IMPORT_2>
#include <IMPORT_3>
#include "libcda.h"
#define FUNC_0(x,VAR_0) (((x) < (y)) ? (x) : (y))
#define FUNC_1(x,VAR_0) (((x) > (y)) ? (x) : (y))
#define FUNC_2(x,VAR_0,VAR_1) MAX((x), MIN((y), (z)))
static char VAR_2[256] = "(error strings not available yet)";
const char *VAR_3 = VAR_2;
#define VAR_4 0x21
#define VAR_5 0
#define VAR_6 2
#define CLOSE_TRAY 5
#define VAR_7 9
#define VAR_8 512
#define VAR_9 208
typedef struct CLASS_0 {
unsigned char VAR_10;
unsigned char VAR_11;
unsigned char VAR_12;
unsigned char index;
unsigned char VAR_13;
unsigned char VAR_14;
unsigned char VAR_15;
unsigned char zero;
unsigned char VAR_16;
unsigned char VAR_17;
unsigned char VAR_18;
}ID_0;
static struct {
unsigned short VAR_19;
unsigned char first_drive;
unsigned short VAR_20;
unsigned long VAR_21;
unsigned char VAR_22;
unsigned char VAR_23;
unsigned char VAR_24;
unsigned char disk_length_min;
unsigned char disk_length_sec;
unsigned char disk_length_frames;
unsigned long VAR_25;
unsigned char upc[7];
unsigned char VAR_26[6];
unsigned long status;
unsigned short VAR_27; /* bit 15 means error */
} VAR_28;
static struct {
unsigned char VAR_29;
unsigned char VAR_30;
unsigned char VAR_31;
unsigned char VAR_32;
unsigned char VAR_33;
unsigned char VAR_34;
unsigned char volume2;
unsigned char VAR_35;
unsigned char VAR_36;
} VAR_37;
static int paused;
static union REGS inregs, VAR_38;
static struct CLASS_1 VAR_39;
static void FUNC_3(void *VAR_40)
{
inregs.x.VAR_41 = 0x1510;
inregs.x.VAR_42 = VAR_28.first_drive;
inregs.x.bx = FUNC_4(VAR_40);
VAR_39.es = FUNC_5(VAR_40);
FUNC_6(0x2f, &inregs, &VAR_38, &VAR_39);
}
static void FUNC_7(unsigned long VAR_43, unsigned char *VAR_13,
unsigned char *VAR_14, unsigned char *VAR_15)
{
*VAR_15 = VAR_43 & 0x000000ff;
*VAR_14 = (VAR_43 & 0x0000ff00) >> 8;
*VAR_13 = (VAR_43 & 0x00ff0000) >> 16;
}
static unsigned long FUNC_8(unsigned long VAR_43)
{
unsigned char VAR_13, VAR_14, VAR_15;
FUNC_7 (VAR_43, &VAR_13, &VAR_14, &VAR_15);
VAR_43 = (unsigned long)VAR_13 * 4500;
VAR_43 += (short)VAR_14 * 75;
VAR_43 += VAR_15 - 150;
return VAR_43;
}
static unsigned long FUNC_9(void)
{
struct {
unsigned char VAR_44;
unsigned char subunit;
unsigned char VAR_45;
unsigned short status;
char VAR_46[8];
unsigned char VAR_47;
unsigned long address;
unsigned short VAR_48;
unsigned short sector;
unsigned long volid;
unsigned char unused[4];
} VAR_49;
struct {
unsigned char VAR_29;
unsigned char VAR_50;
unsigned long address;
} head_data;
FUNC_10(&VAR_49, 0, sizeof VAR_49);
VAR_49.VAR_44 = sizeof VAR_49;
VAR_49.VAR_45 = 3;
VAR_49.address = (unsigned long)&head_data;
VAR_49.VAR_48 = 6;
head_data.VAR_29 = 0x01;
head_data.VAR_50 = 0x00;
FUNC_3(&VAR_49);
VAR_28.VAR_27 = VAR_49.status;
return head_data.address;
}
static int FUNC_11(void)
{
struct {
unsigned char VAR_44;
unsigned char subunit;
unsigned char VAR_45;
unsigned short status;
char VAR_46[8];
unsigned char VAR_47;
long address;
short VAR_48;
short sector;
long volid;
} VAR_51;
struct {
unsigned char VAR_29;
unsigned char VAR_52;
unsigned char VAR_53;
unsigned long address;
} VAR_54;
VAR_51.VAR_44 = sizeof VAR_51;
VAR_51.subunit = 0;
VAR_51.VAR_45 = 3;
VAR_51.VAR_47 = 0;
VAR_51.sector = 0;
VAR_51.volid = 0;
VAR_51.address = (long)&VAR_54;
VAR_51.VAR_48 = sizeof VAR_54;
VAR_54.VAR_29 = 0x0a;
FUNC_3(&VAR_51);
FUNC_12(&VAR_28.VAR_26, &VAR_54.VAR_52, 6);
VAR_28.VAR_23 = VAR_54.VAR_52;
VAR_28.VAR_24 = VAR_54.VAR_53;
FUNC_7(VAR_54.address, &VAR_28.disk_length_min,
&VAR_28.disk_length_sec, &VAR_28.disk_length_frames);
VAR_28.VAR_25 = FUNC_8 (VAR_54.address);
VAR_28.VAR_27 = VAR_51.status;
return !(VAR_28.VAR_27 & 0x8000);
}
static void FUNC_13(short VAR_55)
{
struct {
unsigned char VAR_44;
unsigned char subunit;
unsigned char VAR_45;
unsigned short status;
char VAR_46[8];
unsigned char VAR_47;
unsigned long address;
unsigned short VAR_48;
unsigned short sector;
unsigned long volid;
} VAR_49;
struct {
unsigned char VAR_29;
unsigned char VAR_12;
unsigned long address;
unsigned char VAR_10;
} VAR_54;
VAR_49.VAR_44 = sizeof VAR_49;
VAR_49.subunit = 0;
VAR_49.VAR_45 = 3;
VAR_49.VAR_47 = 0;
VAR_49.VAR_47 = VAR_49.sector = VAR_49.volid = 0;
VAR_49.address = (unsigned long)&VAR_54;
VAR_49.VAR_48 = 7;
VAR_54.VAR_29 = 0x0b;
VAR_54.VAR_12 = VAR_55;
FUNC_3(&VAR_49);
VAR_28.VAR_27 = VAR_49.status;
VAR_28.VAR_21 = FUNC_8(VAR_54.address);
VAR_28.VAR_20 = VAR_55;
VAR_28.VAR_22 = (VAR_54.VAR_10 & VAR_9);
}
static int FUNC_14(void)
{
struct {
unsigned char VAR_44;
unsigned char subunit;
unsigned char VAR_45;
unsigned short status;
char VAR_46[8];
unsigned char VAR_47;
unsigned long address;
unsigned short VAR_48;
unsigned short sector;
unsigned long volid;
} VAR_49;
struct {
unsigned char VAR_29;
unsigned long status;
} VAR_56;
VAR_49.VAR_44 = sizeof VAR_49;
VAR_49.subunit = 0;
VAR_49.VAR_45 = 3;
VAR_49.VAR_47 = 0;
VAR_49.VAR_47 = VAR_49.sector = VAR_49.volid = 0;
VAR_49.address = (unsigned long)&VAR_56;
VAR_49.VAR_48 = 5;
VAR_56.VAR_29 = 0x06;
FUNC_3 (&VAR_49);
VAR_28.status = VAR_56.status;
VAR_28.VAR_27 = VAR_49.status;
return VAR_28.status;
}
static int FUNC_15(void)
{
if (FUNC_14() & 1) /* door open */
return 0;
return (VAR_28.VAR_27 & VAR_8);
}
static void FUNC_16(void)
{
struct {
unsigned char VAR_44;
unsigned char subunit;
unsigned char VAR_45;
unsigned short status;
char VAR_46[8];
} stop_request;
stop_request.VAR_44 = sizeof stop_request;
stop_request.subunit = 0;
stop_request.VAR_45 = 133;
FUNC_3(&stop_request);
VAR_28.VAR_27 = stop_request.status;
}
static int play(unsigned long VAR_57, unsigned long VAR_58)
{
unsigned long VAR_59;
struct {
unsigned char VAR_44;
unsigned char subunit;
unsigned char VAR_45;
unsigned short status;
char VAR_46[8];
unsigned char VAR_60;
unsigned long VAR_61;
unsigned long VAR_62;
} VAR_63;
FUNC_16();
VAR_63.VAR_44 = sizeof VAR_63;
VAR_63.subunit = 0;
VAR_63.VAR_45 = 132;
VAR_63.VAR_60 = 0;
VAR_63.VAR_61 = VAR_57;
VAR_63.VAR_62 = VAR_58 - VAR_57;
FUNC_3(&VAR_63);
VAR_28.VAR_27 = VAR_63.status;
paused = 0;
return !(VAR_28.VAR_27 & 0x8000);
}
static void cd_cmd(unsigned char VAR_29)
{
struct {
unsigned char VAR_44;
unsigned char subunit;
unsigned char VAR_45;
unsigned short status;
char VAR_46[8];
unsigned char VAR_47;
unsigned long address;
unsigned short VAR_48;
unsigned char unused[4];
} VAR_49;
unsigned char VAR_64;
VAR_64 = VAR_29;
VAR_49.VAR_44 = sizeof VAR_49;
VAR_49.subunit = 0;
VAR_49.VAR_45 = 12;
VAR_49.VAR_47 = 0;
VAR_49.address = (unsigned long)&VAR_64;
VAR_49.VAR_48 = 1;
FUNC_3(&VAR_49);
VAR_28.VAR_27 = VAR_49.status;
}
/*
* libcda interface
*/
int FUNC_17(void)
{
inregs.VAR_65.ah = 0x15;
inregs.VAR_65.VAR_66 = 0x00;
inregs.x.bx = 0;
FUNC_18 (0x2f, &inregs, &VAR_38);
if (VAR_38.x.bx == 0)
return -1;
VAR_28.VAR_19 = VAR_38.x.bx;
VAR_28.first_drive = VAR_38.x.VAR_42;
FUNC_11();
paused = 0;
return 0;
}
void FUNC_19(void)
{
/* do nothing */
}
static unsigned long FUNC_20(int VAR_61)
{
FUNC_13(VAR_61);
return VAR_28.VAR_21;
}
static unsigned long FUNC_21(int VAR_58)
{
if (VAR_58 == VAR_28.VAR_24)
return VAR_28.VAR_25;
else {
FUNC_13(VAR_58 + 1);
return VAR_28.VAR_21;
}
}
int cd_play(int VAR_12)
{
unsigned long VAR_67, VAR_68;
if ((!FUNC_11()) ||
(VAR_12 < VAR_28.VAR_23) ||
(VAR_12 > VAR_28.VAR_24))
return -1;
VAR_67 = FUNC_20(VAR_12);
VAR_68 = FUNC_21(VAR_12);
return (!play(VAR_67, VAR_68)) ? -1 : 0;
}
int FUNC_22(int VAR_61, int VAR_58)
{
unsigned long VAR_67, VAR_68;
if ((!FUNC_11()) ||
(FUNC_0(VAR_61, VAR_58) < VAR_28.VAR_23) ||
(FUNC_1(VAR_61, VAR_58) > VAR_28.VAR_24))
return -1;
VAR_67 = FUNC_20(VAR_61);
VAR_68 = FUNC_21(VAR_58);
return (!play(VAR_67, VAR_68)) ? -1 : 0;
}
int FUNC_23(int VAR_12)
{
unsigned long VAR_67, VAR_68;
if (!FUNC_11() ||
(VAR_12 < VAR_28.VAR_23) ||
(VAR_12 > VAR_28.VAR_24))
return -1;
VAR_67 = FUNC_20(VAR_12);
VAR_68 = VAR_28.VAR_25;
return (!play(VAR_67, VAR_68)) ? -1 : 0;
}
int FUNC_24(void)
{
unsigned long VAR_69;
short VAR_70;
if (!FUNC_15() || !FUNC_11())
return 0;
VAR_69 = FUNC_9();
for (VAR_70 = VAR_28.VAR_24; VAR_70 > VAR_28.VAR_23; VAR_70--) {
FUNC_13(VAR_70);
if (VAR_69 > VAR_28.VAR_21)
return VAR_70;
}
return VAR_28.VAR_23;
}
void FUNC_25(void)
{
if (!paused) {
FUNC_16();
paused = 1;
}
}
void FUNC_26(void)
{
struct {
unsigned char VAR_44;
unsigned char subunit;
unsigned char VAR_45;
unsigned short status;
char VAR_46[8];
} stop_request;
stop_request.VAR_44 = sizeof stop_request;
stop_request.subunit = 0;
stop_request.VAR_45 = 136;
FUNC_3(&stop_request);
VAR_28.VAR_27 = stop_request.status;
paused = 0;
}
int FUNC_27(void)
{
return paused;
}
void FUNC_28(void)
{
FUNC_16(); /* Two stops is correct. */
FUNC_16();
paused = 0;
}
int FUNC_29(int *VAR_71, int *VAR_72)
{
if (!FUNC_11())
return -1;
if (VAR_71) *VAR_71 = VAR_28.VAR_23;
if (VAR_72) *VAR_72 = VAR_28.VAR_24;
return 0;
}
int FUNC_30(int VAR_12)
{
if (!FUNC_11())
return -1;
FUNC_13(VAR_12);
return (VAR_28.VAR_22 == 64) ? 0 : 1;
}
void FUNC_31(int *c0, int *VAR_73)
{
struct {
unsigned char VAR_44;
unsigned char subunit;
unsigned char VAR_45;
unsigned short status;
char VAR_46[8];
unsigned char VAR_47;
unsigned long address;
unsigned short VAR_48;
unsigned short sector;
unsigned long volid;
} VAR_49;
FUNC_10(&VAR_49, 0, sizeof VAR_49);
VAR_49.VAR_44 = sizeof VAR_49;
VAR_49.VAR_45 = 3;
VAR_49.address = (unsigned long)&VAR_37;
VAR_49.VAR_48 = sizeof VAR_37;
VAR_37.VAR_29 = 4;
FUNC_3(&VAR_49);
if (c0) *c0 = VAR_37.VAR_31;
if (VAR_73) *VAR_73 = VAR_37.VAR_33;
}
void cd_set_volume(int c0, int VAR_73)
{
struct {
unsigned char VAR_44;
unsigned char subunit;
unsigned char VAR_45;
unsigned short status;
char VAR_46[8];
unsigned char VAR_47;
unsigned long address;
unsigned short VAR_48;
unsigned char unused[4];
} VAR_74;
VAR_37.VAR_29 = 3;
VAR_37.VAR_31 = FUNC_2(0, c0, 255);
VAR_37.VAR_33 = FUNC_2(0, VAR_73, 255);
VAR_37.volume2 = 0;
VAR_37.VAR_36 = 0;
VAR_37.VAR_30 = 0;
VAR_37.VAR_32 = 1;
VAR_37.VAR_34 = 2;
VAR_37.VAR_35 = 3;
VAR_74.VAR_44 = sizeof VAR_74;
VAR_74.subunit = 0;
VAR_74.VAR_45 = 12;
VAR_74.VAR_47 = 0;
VAR_74.address = (unsigned long)&VAR_37;
VAR_74.VAR_48 = 9;
FUNC_3(&VAR_74);
}
void FUNC_32(void)
{
cd_cmd(VAR_5);
paused = 0;
}
void FUNC_33(void)
{
cd_cmd(CLOSE_TRAY);
paused = 0;
}
| 0.79684 | {'IMPORT_0': 'dos.h', 'IMPORT_1': 'io.h', 'IMPORT_2': 'mem.h', 'IMPORT_3': 'fcntl.h', 'FUNC_0': 'MIN', 'VAR_0': 'y', 'FUNC_1': 'MAX', 'FUNC_2': 'MID', 'VAR_1': 'z', 'VAR_2': '_cd_error', 'VAR_3': 'cd_error', 'VAR_4': 'CDROM', 'VAR_5': 'EJECT_TRAY', 'VAR_6': 'RESET', 'VAR_7': 'MEDIA_CHANGE', 'VAR_8': 'BUSY', 'VAR_9': 'TRACK_MASK', 'CLASS_0': 'playinfo', 'VAR_10': 'control', 'VAR_11': 'adr', 'VAR_12': 'track', 'VAR_13': 'min', 'VAR_14': 'sec', 'VAR_15': 'frame', 'VAR_16': 'amin', 'VAR_17': 'asec', 'VAR_18': 'aframe', 'ID_0': '', 'VAR_19': 'drives', 'VAR_20': 'current_track', 'VAR_21': 'track_position', 'VAR_22': 'track_type', 'VAR_23': 'low_audio', 'VAR_24': 'high_audio', 'VAR_25': 'endofdisk', 'VAR_26': 'diskid', 'VAR_27': 'error', 'VAR_28': 'cdrom_data', 'VAR_29': 'mode', 'VAR_30': 'input0', 'VAR_31': 'volume0', 'VAR_32': 'input1', 'VAR_33': 'volume1', 'VAR_34': 'input2', 'VAR_35': 'input3', 'VAR_36': 'volume3', 'VAR_37': 'vol', 'VAR_38': 'outregs', 'CLASS_1': 'SREGS', 'VAR_39': 'sregs', 'FUNC_3': 'device_request', 'VAR_40': 'block', 'VAR_41': 'ax', 'VAR_42': 'cx', 'FUNC_4': 'FP_OFF', 'FUNC_5': 'FP_SEG', 'FUNC_6': 'int86x', 'FUNC_7': 'red_book', 'VAR_43': 'value', 'FUNC_8': 'hsg', 'FUNC_9': 'head_position', 'VAR_44': 'length', 'VAR_45': 'comcode', 'VAR_46': 'ununsed', 'VAR_47': 'media', 'VAR_48': 'bytes', 'VAR_49': 'tray_request', 'VAR_50': 'adr_mode', 'FUNC_10': 'memset', 'FUNC_11': 'get_audio_info', 'VAR_51': 'ioctli', 'VAR_52': 'lowest', 'VAR_53': 'highest', 'VAR_54': 'track_data', 'FUNC_12': 'memcpy', 'FUNC_13': 'set_track', 'VAR_55': 'tracknum', 'FUNC_14': 'device_status', 'VAR_56': 'cd_data', 'FUNC_15': 'audio_busy', 'FUNC_16': 'stop', 'VAR_57': 'begin', 'VAR_58': 'end', 'VAR_59': 'leng', 'VAR_60': 'addressmode', 'VAR_61': 'start', 'VAR_62': 'playlength', 'VAR_63': 'play_request', 'VAR_64': 'cd_mode', 'FUNC_17': 'cd_init', 'VAR_65': 'h', 'VAR_66': 'al', 'FUNC_18': 'int86', 'FUNC_19': 'cd_exit', 'FUNC_20': 'start_position', 'FUNC_21': 'end_position', 'VAR_67': 'startpos', 'VAR_68': 'endpos', 'FUNC_22': 'cd_play_range', 'FUNC_23': 'cd_play_from', 'FUNC_24': 'cd_current_track', 'VAR_69': 'loc', 'VAR_70': 'i', 'FUNC_25': 'cd_pause', 'FUNC_26': 'cd_resume', 'FUNC_27': 'cd_is_paused', 'FUNC_28': 'cd_stop', 'FUNC_29': 'cd_get_tracks', 'VAR_71': 'first', 'VAR_72': 'last', 'FUNC_30': 'cd_is_audio', 'FUNC_31': 'cd_get_volume', 'VAR_73': 'c1', 'VAR_74': 'cd_request', 'FUNC_32': 'cd_eject', 'FUNC_33': 'cd_close'} | c | Hibrido | 100.00% |
//Returns 1 if fail
//Returns 0 if success
uint8_t pio_28bit_wait_busy_drq(pio_device device, uint32_t timeout)
{
uint8_t timeout_timer = timeout;
for (;;)
{
if (timeout_timer < 1)
{
return 1;
}
uint8_t rb = inb(device.BAR1 + CTRL_PORT);
if ((rb & 0x80) == 0)
{
if ((rb & 0x8) == 0x8)
{
break;
}
}
}
return 0;
} | //Returns 1 if fail
//Returns 0 if success
uint8_t FUNC_0(pio_device VAR_0, uint32_t VAR_1)
{
uint8_t VAR_2 = VAR_1;
for (;;)
{
if (VAR_2 < 1)
{
return 1;
}
uint8_t VAR_3 = FUNC_1(VAR_0.VAR_4 + VAR_5);
if ((VAR_3 & 0x80) == 0)
{
if ((VAR_3 & 0x8) == 0x8)
{
break;
}
}
}
return 0;
} | 0.883005 | {'FUNC_0': 'pio_28bit_wait_busy_drq', 'VAR_0': 'device', 'VAR_1': 'timeout', 'VAR_2': 'timeout_timer', 'VAR_3': 'rb', 'FUNC_1': 'inb', 'VAR_4': 'BAR1', 'VAR_5': 'CTRL_PORT'} | c | Procedural | 100.00% |
/*
* Copyright (c) 2012 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#include "vp9/common/vp9_mvref_common.h"
// This function searches the neighborhood of a given MB/SB
// to try and find candidate reference vectors.
static void find_mv_refs_idx(const VP9_COMMON *cm, const MACROBLOCKD *xd,
MODE_INFO *mi, MV_REFERENCE_FRAME ref_frame,
int_mv *mv_ref_list, int block, int mi_row,
int mi_col, uint8_t *mode_context) {
const int *ref_sign_bias = cm->ref_frame_sign_bias;
int i, refmv_count = 0;
const POSITION *const mv_ref_search = mv_ref_blocks[mi->sb_type];
int different_ref_found = 0;
int context_counter = 0;
const MV_REF *const prev_frame_mvs =
cm->use_prev_frame_mvs
? cm->prev_frame->mvs + mi_row * cm->mi_cols + mi_col
: NULL;
const TileInfo *const tile = &xd->tile;
// Blank the reference vector list
memset(mv_ref_list, 0, sizeof(*mv_ref_list) * MAX_MV_REF_CANDIDATES);
// The nearest 2 blocks are treated differently
// if the size < 8x8 we get the mv from the bmi substructure,
// and we also need to keep a mode count.
for (i = 0; i < 2; ++i) {
const POSITION *const mv_ref = &mv_ref_search[i];
if (is_inside(tile, mi_col, mi_row, cm->mi_rows, mv_ref)) {
const MODE_INFO *const candidate_mi =
xd->mi[mv_ref->col + mv_ref->row * xd->mi_stride];
// Keep counts for entropy encoding.
context_counter += mode_2_counter[candidate_mi->mode];
different_ref_found = 1;
if (candidate_mi->ref_frame[0] == ref_frame)
ADD_MV_REF_LIST(get_sub_block_mv(candidate_mi, 0, mv_ref->col, block),
refmv_count, mv_ref_list, Done);
else if (candidate_mi->ref_frame[1] == ref_frame)
ADD_MV_REF_LIST(get_sub_block_mv(candidate_mi, 1, mv_ref->col, block),
refmv_count, mv_ref_list, Done);
}
}
// Check the rest of the neighbors in much the same way
// as before except we don't need to keep track of sub blocks or
// mode counts.
for (; i < MVREF_NEIGHBOURS; ++i) {
const POSITION *const mv_ref = &mv_ref_search[i];
if (is_inside(tile, mi_col, mi_row, cm->mi_rows, mv_ref)) {
const MODE_INFO *const candidate_mi =
xd->mi[mv_ref->col + mv_ref->row * xd->mi_stride];
different_ref_found = 1;
if (candidate_mi->ref_frame[0] == ref_frame)
ADD_MV_REF_LIST(candidate_mi->mv[0], refmv_count, mv_ref_list, Done);
else if (candidate_mi->ref_frame[1] == ref_frame)
ADD_MV_REF_LIST(candidate_mi->mv[1], refmv_count, mv_ref_list, Done);
}
}
// Check the last frame's mode and mv info.
if (cm->use_prev_frame_mvs) {
if (prev_frame_mvs->ref_frame[0] == ref_frame) {
ADD_MV_REF_LIST(prev_frame_mvs->mv[0], refmv_count, mv_ref_list, Done);
} else if (prev_frame_mvs->ref_frame[1] == ref_frame) {
ADD_MV_REF_LIST(prev_frame_mvs->mv[1], refmv_count, mv_ref_list, Done);
}
}
// Since we couldn't find 2 mvs from the same reference frame
// go back through the neighbors and find motion vectors from
// different reference frames.
if (different_ref_found) {
for (i = 0; i < MVREF_NEIGHBOURS; ++i) {
const POSITION *mv_ref = &mv_ref_search[i];
if (is_inside(tile, mi_col, mi_row, cm->mi_rows, mv_ref)) {
const MODE_INFO *const candidate_mi =
xd->mi[mv_ref->col + mv_ref->row * xd->mi_stride];
// If the candidate is INTRA we don't want to consider its mv.
IF_DIFF_REF_FRAME_ADD_MV(candidate_mi, ref_frame, ref_sign_bias,
refmv_count, mv_ref_list, Done);
}
}
}
// Since we still don't have a candidate we'll try the last frame.
if (cm->use_prev_frame_mvs) {
if (prev_frame_mvs->ref_frame[0] != ref_frame &&
prev_frame_mvs->ref_frame[0] > INTRA_FRAME) {
int_mv mv = prev_frame_mvs->mv[0];
if (ref_sign_bias[prev_frame_mvs->ref_frame[0]] !=
ref_sign_bias[ref_frame]) {
mv.as_mv.row *= -1;
mv.as_mv.col *= -1;
}
ADD_MV_REF_LIST(mv, refmv_count, mv_ref_list, Done);
}
if (prev_frame_mvs->ref_frame[1] > INTRA_FRAME &&
prev_frame_mvs->ref_frame[1] != ref_frame &&
prev_frame_mvs->mv[1].as_int != prev_frame_mvs->mv[0].as_int) {
int_mv mv = prev_frame_mvs->mv[1];
if (ref_sign_bias[prev_frame_mvs->ref_frame[1]] !=
ref_sign_bias[ref_frame]) {
mv.as_mv.row *= -1;
mv.as_mv.col *= -1;
}
ADD_MV_REF_LIST(mv, refmv_count, mv_ref_list, Done);
}
}
Done:
mode_context[ref_frame] = counter_to_context[context_counter];
// Clamp vectors
for (i = 0; i < MAX_MV_REF_CANDIDATES; ++i)
clamp_mv_ref(&mv_ref_list[i].as_mv, xd);
}
void vp9_find_mv_refs(const VP9_COMMON *cm, const MACROBLOCKD *xd,
MODE_INFO *mi, MV_REFERENCE_FRAME ref_frame,
int_mv *mv_ref_list, int mi_row, int mi_col,
uint8_t *mode_context) {
find_mv_refs_idx(cm, xd, mi, ref_frame, mv_ref_list, -1, mi_row, mi_col,
mode_context);
}
void vp9_find_best_ref_mvs(MACROBLOCKD *xd, int allow_hp, int_mv *mvlist,
int_mv *nearest_mv, int_mv *near_mv) {
int i;
// Make sure all the candidates are properly clamped etc
for (i = 0; i < MAX_MV_REF_CANDIDATES; ++i) {
lower_mv_precision(&mvlist[i].as_mv, allow_hp);
clamp_mv2(&mvlist[i].as_mv, xd);
}
*nearest_mv = mvlist[0];
*near_mv = mvlist[1];
}
void vp9_append_sub8x8_mvs_for_idx(VP9_COMMON *cm, MACROBLOCKD *xd, int block,
int ref, int mi_row, int mi_col,
int_mv *nearest_mv, int_mv *near_mv,
uint8_t *mode_context) {
int_mv mv_list[MAX_MV_REF_CANDIDATES];
MODE_INFO *const mi = xd->mi[0];
b_mode_info *bmi = mi->bmi;
int n;
assert(MAX_MV_REF_CANDIDATES == 2);
find_mv_refs_idx(cm, xd, mi, mi->ref_frame[ref], mv_list, block, mi_row,
mi_col, mode_context);
near_mv->as_int = 0;
switch (block) {
case 0:
nearest_mv->as_int = mv_list[0].as_int;
near_mv->as_int = mv_list[1].as_int;
break;
case 1:
case 2:
nearest_mv->as_int = bmi[0].as_mv[ref].as_int;
for (n = 0; n < MAX_MV_REF_CANDIDATES; ++n)
if (nearest_mv->as_int != mv_list[n].as_int) {
near_mv->as_int = mv_list[n].as_int;
break;
}
break;
case 3: {
int_mv candidates[2 + MAX_MV_REF_CANDIDATES];
candidates[0] = bmi[1].as_mv[ref];
candidates[1] = bmi[0].as_mv[ref];
candidates[2] = mv_list[0];
candidates[3] = mv_list[1];
nearest_mv->as_int = bmi[2].as_mv[ref].as_int;
for (n = 0; n < 2 + MAX_MV_REF_CANDIDATES; ++n)
if (nearest_mv->as_int != candidates[n].as_int) {
near_mv->as_int = candidates[n].as_int;
break;
}
break;
}
default: assert(0 && "Invalid block index.");
}
}
|
/*
* Copyright (c) 2012 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#include "IMPORT_0"
// This function searches the neighborhood of a given MB/SB
// to try and find candidate reference vectors.
static void find_mv_refs_idx(const VP9_COMMON *cm, const CLASS_0 *xd,
CLASS_1 *VAR_0, CLASS_2 VAR_1,
int_mv *mv_ref_list, int block, int mi_row,
int VAR_2, uint8_t *mode_context) {
const int *VAR_3 = cm->ref_frame_sign_bias;
int i, refmv_count = 0;
const CLASS_3 *const mv_ref_search = mv_ref_blocks[VAR_0->VAR_4];
int VAR_5 = 0;
int context_counter = 0;
const CLASS_4 *const prev_frame_mvs =
cm->use_prev_frame_mvs
? cm->prev_frame->mvs + mi_row * cm->mi_cols + VAR_2
: NULL;
const CLASS_5 *const VAR_6 = &xd->VAR_6;
// Blank the reference vector list
memset(mv_ref_list, 0, sizeof(*mv_ref_list) * VAR_7);
// The nearest 2 blocks are treated differently
// if the size < 8x8 we get the mv from the bmi substructure,
// and we also need to keep a mode count.
for (i = 0; i < 2; ++i) {
const CLASS_3 *const mv_ref = &mv_ref_search[i];
if (FUNC_0(VAR_6, VAR_2, mi_row, cm->mi_rows, mv_ref)) {
const CLASS_1 *const VAR_8 =
xd->VAR_0[mv_ref->col + mv_ref->VAR_9 * xd->mi_stride];
// Keep counts for entropy encoding.
context_counter += mode_2_counter[VAR_8->VAR_10];
VAR_5 = 1;
if (VAR_8->VAR_1[0] == VAR_1)
ADD_MV_REF_LIST(FUNC_1(VAR_8, 0, mv_ref->col, block),
refmv_count, mv_ref_list, Done);
else if (VAR_8->VAR_1[1] == VAR_1)
ADD_MV_REF_LIST(FUNC_1(VAR_8, 1, mv_ref->col, block),
refmv_count, mv_ref_list, Done);
}
}
// Check the rest of the neighbors in much the same way
// as before except we don't need to keep track of sub blocks or
// mode counts.
for (; i < MVREF_NEIGHBOURS; ++i) {
const CLASS_3 *const mv_ref = &mv_ref_search[i];
if (FUNC_0(VAR_6, VAR_2, mi_row, cm->mi_rows, mv_ref)) {
const CLASS_1 *const VAR_8 =
xd->VAR_0[mv_ref->col + mv_ref->VAR_9 * xd->mi_stride];
VAR_5 = 1;
if (VAR_8->VAR_1[0] == VAR_1)
ADD_MV_REF_LIST(VAR_8->mv[0], refmv_count, mv_ref_list, Done);
else if (VAR_8->VAR_1[1] == VAR_1)
ADD_MV_REF_LIST(VAR_8->mv[1], refmv_count, mv_ref_list, Done);
}
}
// Check the last frame's mode and mv info.
if (cm->use_prev_frame_mvs) {
if (prev_frame_mvs->VAR_1[0] == VAR_1) {
ADD_MV_REF_LIST(prev_frame_mvs->mv[0], refmv_count, mv_ref_list, Done);
} else if (prev_frame_mvs->VAR_1[1] == VAR_1) {
ADD_MV_REF_LIST(prev_frame_mvs->mv[1], refmv_count, mv_ref_list, Done);
}
}
// Since we couldn't find 2 mvs from the same reference frame
// go back through the neighbors and find motion vectors from
// different reference frames.
if (VAR_5) {
for (i = 0; i < MVREF_NEIGHBOURS; ++i) {
const CLASS_3 *mv_ref = &mv_ref_search[i];
if (FUNC_0(VAR_6, VAR_2, mi_row, cm->mi_rows, mv_ref)) {
const CLASS_1 *const VAR_8 =
xd->VAR_0[mv_ref->col + mv_ref->VAR_9 * xd->mi_stride];
// If the candidate is INTRA we don't want to consider its mv.
FUNC_2(VAR_8, VAR_1, VAR_3,
refmv_count, mv_ref_list, Done);
}
}
}
// Since we still don't have a candidate we'll try the last frame.
if (cm->use_prev_frame_mvs) {
if (prev_frame_mvs->VAR_1[0] != VAR_1 &&
prev_frame_mvs->VAR_1[0] > INTRA_FRAME) {
int_mv mv = prev_frame_mvs->mv[0];
if (VAR_3[prev_frame_mvs->VAR_1[0]] !=
VAR_3[VAR_1]) {
mv.VAR_11.VAR_9 *= -1;
mv.VAR_11.col *= -1;
}
ADD_MV_REF_LIST(mv, refmv_count, mv_ref_list, Done);
}
if (prev_frame_mvs->VAR_1[1] > INTRA_FRAME &&
prev_frame_mvs->VAR_1[1] != VAR_1 &&
prev_frame_mvs->mv[1].VAR_12 != prev_frame_mvs->mv[0].VAR_12) {
int_mv mv = prev_frame_mvs->mv[1];
if (VAR_3[prev_frame_mvs->VAR_1[1]] !=
VAR_3[VAR_1]) {
mv.VAR_11.VAR_9 *= -1;
mv.VAR_11.col *= -1;
}
ADD_MV_REF_LIST(mv, refmv_count, mv_ref_list, Done);
}
}
Done:
mode_context[VAR_1] = VAR_13[context_counter];
// Clamp vectors
for (i = 0; i < VAR_7; ++i)
clamp_mv_ref(&mv_ref_list[i].VAR_11, xd);
}
void vp9_find_mv_refs(const VP9_COMMON *cm, const CLASS_0 *xd,
CLASS_1 *VAR_0, CLASS_2 VAR_1,
int_mv *mv_ref_list, int mi_row, int VAR_2,
uint8_t *mode_context) {
find_mv_refs_idx(cm, xd, VAR_0, VAR_1, mv_ref_list, -1, mi_row, VAR_2,
mode_context);
}
void vp9_find_best_ref_mvs(CLASS_0 *xd, int allow_hp, int_mv *VAR_14,
int_mv *nearest_mv, int_mv *near_mv) {
int i;
// Make sure all the candidates are properly clamped etc
for (i = 0; i < VAR_7; ++i) {
lower_mv_precision(&VAR_14[i].VAR_11, allow_hp);
clamp_mv2(&VAR_14[i].VAR_11, xd);
}
*nearest_mv = VAR_14[0];
*near_mv = VAR_14[1];
}
void vp9_append_sub8x8_mvs_for_idx(VP9_COMMON *cm, CLASS_0 *xd, int block,
int ref, int mi_row, int VAR_2,
int_mv *nearest_mv, int_mv *near_mv,
uint8_t *mode_context) {
int_mv mv_list[VAR_7];
CLASS_1 *const VAR_0 = xd->VAR_0[0];
b_mode_info *bmi = VAR_0->bmi;
int VAR_15;
assert(VAR_7 == 2);
find_mv_refs_idx(cm, xd, VAR_0, VAR_0->VAR_1[ref], mv_list, block, mi_row,
VAR_2, mode_context);
near_mv->VAR_12 = 0;
switch (block) {
case 0:
nearest_mv->VAR_12 = mv_list[0].VAR_12;
near_mv->VAR_12 = mv_list[1].VAR_12;
break;
case 1:
case 2:
nearest_mv->VAR_12 = bmi[0].VAR_11[ref].VAR_12;
for (VAR_15 = 0; VAR_15 < VAR_7; ++VAR_15)
if (nearest_mv->VAR_12 != mv_list[VAR_15].VAR_12) {
near_mv->VAR_12 = mv_list[VAR_15].VAR_12;
break;
}
break;
case 3: {
int_mv candidates[2 + VAR_7];
candidates[0] = bmi[1].VAR_11[ref];
candidates[1] = bmi[0].VAR_11[ref];
candidates[2] = mv_list[0];
candidates[3] = mv_list[1];
nearest_mv->VAR_12 = bmi[2].VAR_11[ref].VAR_12;
for (VAR_15 = 0; VAR_15 < 2 + VAR_7; ++VAR_15)
if (nearest_mv->VAR_12 != candidates[VAR_15].VAR_12) {
near_mv->VAR_12 = candidates[VAR_15].VAR_12;
break;
}
break;
}
default: assert(0 && "Invalid block index.");
}
}
| 0.413355 | {'IMPORT_0': 'vp9/common/vp9_mvref_common.h', 'CLASS_0': 'MACROBLOCKD', 'CLASS_1': 'MODE_INFO', 'VAR_0': 'mi', 'CLASS_2': 'MV_REFERENCE_FRAME', 'VAR_1': 'ref_frame', 'VAR_2': 'mi_col', 'VAR_3': 'ref_sign_bias', 'CLASS_3': 'POSITION', 'VAR_4': 'sb_type', 'VAR_5': 'different_ref_found', 'CLASS_4': 'MV_REF', 'CLASS_5': 'TileInfo', 'VAR_6': 'tile', 'VAR_7': 'MAX_MV_REF_CANDIDATES', 'FUNC_0': 'is_inside', 'VAR_8': 'candidate_mi', 'VAR_9': 'row', 'VAR_10': 'mode', 'FUNC_1': 'get_sub_block_mv', 'FUNC_2': 'IF_DIFF_REF_FRAME_ADD_MV', 'VAR_11': 'as_mv', 'VAR_12': 'as_int', 'VAR_13': 'counter_to_context', 'VAR_14': 'mvlist', 'VAR_15': 'n'} | c | Procedural | 100.00% |
//
// AXPathUtility.h
// AppiumForMac
//
// Created by <NAME> on 11/25/16.
// Copyright © 2016 Appium. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Carbon/Carbon.h>
extern NSString * const kNewTextPostedNotification;
@interface AXPathUtility : NSObject
- (NSString *)axPathAtMousePosition:(HIPoint)mousePosition offsetPercent:(NSSize *)offsetPercent;
@end
| //
// AXPathUtility.h
// AppiumForMac
//
// Created by <NAME> on 11/25/16.
// Copyright © 2016 Appium. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Carbon/Carbon.h>
extern CLASS_0 * const VAR_0;
@CLASS_1 VAR_1 : VAR_2
- (CLASS_0 *)VAR_3:(CLASS_2)VAR_4 offsetPercent:(CLASS_3 *)VAR_5;
@CLASS_4
| 0.994406 | {'CLASS_0': 'NSString', 'VAR_0': 'kNewTextPostedNotification', 'CLASS_1': 'interface', 'VAR_1': 'AXPathUtility', 'VAR_2': 'NSObject', 'VAR_3': 'axPathAtMousePosition', 'CLASS_2': 'HIPoint', 'VAR_4': 'mousePosition', 'VAR_5': 'offsetPercent', 'CLASS_3': 'NSSize', 'CLASS_4': 'end'} | c | Procedural | 100.00% |
/*
* Copyright (c) 2021 <NAME>
*
*/
#include "msg.h"
#include "rbnng.h"
#include "socket.h"
#include <nng/protocol/reqrep0/rep.h>
#include <ruby.h>
#include <ruby/thread.h>
static VALUE
socket_rep0_listen(VALUE self, VALUE url)
{
Check_Type(url, T_STRING);
int rv;
RbnngSocket* p_rbnngSocket;
Data_Get_Struct(self, RbnngSocket, p_rbnngSocket);
if ((rv = nng_listen(p_rbnngSocket->socket, StringValueCStr(url), NULL, 0)) !=
0) {
raise_error(rv);
}
}
void*
rep0_get_msg_blocking(RbnngSocket* p_rbnngSocket)
{
nng_aio* p_aio;
int rv;
if ((rv = nng_aio_alloc(&p_aio, 0, 0)) != 0) {
return rv;
}
nng_ctx_recv(p_rbnngSocket->ctx, p_aio);
nng_aio_wait(p_aio);
if ((rv = nng_aio_result(p_aio)) != 0) {
return rv;
}
nng_msg* p_msg = nng_aio_get_msg(p_aio);
p_rbnngSocket->p_getMsgResult = p_msg;
nng_aio_free(p_aio);
return 0;
}
static VALUE
socket_rep0_get_msg(VALUE self)
{
RbnngSocket* p_rbnngSocket;
Data_Get_Struct(self, RbnngSocket, p_rbnngSocket);
int rv =
rb_thread_call_without_gvl(rep0_get_msg_blocking, p_rbnngSocket, 0, 0);
if (rv == 0) {
RbnngMsg* p_newMsg;
VALUE newMsg = rb_class_new_instance(0, 0, rbnng_MsgClass);
Data_Get_Struct(newMsg, RbnngMsg, p_newMsg);
p_newMsg->p_msg = p_rbnngSocket->p_getMsgResult;
return newMsg;
} else {
raise_error(rv);
return Qnil;
}
}
void*
rep0_send_msg_blocking(void* data)
{
RbnngSendMsgReq* p_sendMsgReq = (RbnngSendMsgReq*)data;
RbnngSocket* p_rbnngSocket;
Data_Get_Struct(p_sendMsgReq->socketObj, RbnngSocket, p_rbnngSocket);
nng_aio* p_aio;
int rv;
if ((rv = nng_aio_alloc(&p_aio, 0, 0)) != 0) {
return rv;
}
nng_msg* p_msg;
if ((rv = nng_msg_alloc(&p_msg, 0)) != 0) {
return rv;
}
nng_msg_clear(p_msg);
rv = nng_msg_append(p_msg,
StringValuePtr(p_sendMsgReq->nextMsg),
RSTRING_LEN(p_sendMsgReq->nextMsg));
if (rv != 0) {
return rv;
}
nng_aio_set_msg(p_aio, p_msg);
nng_ctx_send(p_rbnngSocket->ctx, p_aio);
nng_aio_wait(p_aio);
if ((rv = nng_aio_result(p_aio)) != 0) {
return rv;
}
nng_aio_free(p_aio);
return 0;
}
static VALUE
socket_rep0_send_msg(VALUE self, VALUE rb_strMsg)
{
Check_Type(rb_strMsg, T_STRING);
RbnngSendMsgReq sendMsgReq = {
.socketObj = self,
.nextMsg = rb_strMsg,
};
int rv =
rb_thread_call_without_gvl(rep0_send_msg_blocking, &sendMsgReq, 0, 0);
if (rv != 0) {
raise_error(rv);
}
}
static VALUE
socket_rep0_initialize(VALUE self)
{
RbnngSocket* p_rbnngSocket;
Data_Get_Struct(self, RbnngSocket, p_rbnngSocket);
int rv;
if ((rv = nng_rep0_open(&p_rbnngSocket->socket)) != 0) {
raise_error(rv);
}
if ((rv = nng_ctx_open(&p_rbnngSocket->ctx, p_rbnngSocket->socket)) != 0) {
raise_error(rv);
}
return self;
}
void
rbnng_rep0_Init(VALUE nng_module)
{
VALUE rbnng_SocketModule = rb_define_module_under(nng_module, "Socket");
VALUE rbnng_SocketRep0Class =
rb_define_class_under(rbnng_SocketModule, "Rep0", rb_cObject);
rb_define_alloc_func(rbnng_SocketRep0Class, socket_alloc);
rb_define_method(
rbnng_SocketRep0Class, "initialize", socket_rep0_initialize, 0);
rb_define_method(rbnng_SocketRep0Class, "get_msg", socket_rep0_get_msg, 0);
rb_define_method(rbnng_SocketRep0Class, "send_msg", socket_rep0_send_msg, 1);
rb_define_method(rbnng_SocketRep0Class, "listen", socket_rep0_listen, 1);
}
| /*
* Copyright (c) 2021 <NAME>
*
*/
#include "IMPORT_0"
#include "IMPORT_1"
#include "IMPORT_2"
#include <IMPORT_3>
#include <IMPORT_4>
#include <IMPORT_5>
static CLASS_0
FUNC_0(CLASS_0 VAR_1, CLASS_0 VAR_2)
{
FUNC_1(VAR_2, VAR_3);
int VAR_4;
CLASS_1* VAR_6;
FUNC_2(VAR_1, VAR_5, VAR_6);
if ((VAR_4 = FUNC_3(VAR_6->VAR_7, FUNC_4(VAR_2), NULL, 0)) !=
0) {
FUNC_5(VAR_4);
}
}
void*
FUNC_6(CLASS_1* VAR_6)
{
CLASS_2* VAR_9;
int VAR_4;
if ((VAR_4 = FUNC_7(&VAR_9, 0, 0)) != 0) {
return VAR_4;
}
FUNC_8(VAR_6->VAR_10, VAR_9);
FUNC_9(VAR_9);
if ((VAR_4 = FUNC_10(VAR_9)) != 0) {
return VAR_4;
}
CLASS_3* VAR_11 = FUNC_11(VAR_9);
VAR_6->VAR_12 = VAR_11;
FUNC_12(VAR_9);
return 0;
}
static CLASS_0
FUNC_13(CLASS_0 VAR_1)
{
CLASS_1* VAR_6;
FUNC_2(VAR_1, VAR_5, VAR_6);
int VAR_4 =
FUNC_14(VAR_8, VAR_6, 0, 0);
if (VAR_4 == 0) {
CLASS_4* VAR_15;
CLASS_0 VAR_16 = FUNC_15(0, 0, VAR_17);
FUNC_2(VAR_16, VAR_14, VAR_15);
VAR_15->VAR_11 = VAR_6->VAR_12;
return VAR_16;
} else {
FUNC_5(VAR_4);
return Qnil;
}
}
void*
FUNC_16(void* VAR_19)
{
CLASS_5* VAR_20 = (CLASS_5*)VAR_19;
CLASS_1* VAR_6;
FUNC_2(VAR_20->VAR_21, VAR_5, VAR_6);
CLASS_2* VAR_9;
int VAR_4;
if ((VAR_4 = FUNC_7(&VAR_9, 0, 0)) != 0) {
return VAR_4;
}
CLASS_3* VAR_11;
if ((VAR_4 = FUNC_17(&VAR_11, 0)) != 0) {
return VAR_4;
}
FUNC_18(VAR_11);
VAR_4 = FUNC_19(VAR_11,
FUNC_20(VAR_20->VAR_22),
FUNC_21(VAR_20->VAR_22));
if (VAR_4 != 0) {
return VAR_4;
}
FUNC_22(VAR_9, VAR_11);
FUNC_23(VAR_6->VAR_10, VAR_9);
FUNC_9(VAR_9);
if ((VAR_4 = FUNC_10(VAR_9)) != 0) {
return VAR_4;
}
FUNC_12(VAR_9);
return 0;
}
static CLASS_0
FUNC_24(CLASS_0 VAR_1, CLASS_0 VAR_24)
{
FUNC_1(VAR_24, VAR_3);
CLASS_5 VAR_25 = {
.VAR_21 = VAR_1,
.VAR_22 = VAR_24,
};
int VAR_4 =
FUNC_14(VAR_18, &VAR_25, 0, 0);
if (VAR_4 != 0) {
FUNC_5(VAR_4);
}
}
static CLASS_0
FUNC_25(CLASS_0 VAR_1)
{
CLASS_1* VAR_6;
FUNC_2(VAR_1, VAR_5, VAR_6);
int VAR_4;
if ((VAR_4 = FUNC_26(&VAR_6->VAR_7)) != 0) {
FUNC_5(VAR_4);
}
if ((VAR_4 = FUNC_27(&VAR_6->VAR_10, VAR_6->VAR_7)) != 0) {
FUNC_5(VAR_4);
}
return VAR_1;
}
void
FUNC_28(CLASS_0 VAR_27)
{
CLASS_0 VAR_28 = FUNC_29(VAR_27, "Socket");
CLASS_0 VAR_29 =
FUNC_30(VAR_28, "Rep0", VAR_30);
FUNC_31(VAR_29, VAR_31);
FUNC_32(
VAR_29, "initialize", VAR_26, 0);
FUNC_32(VAR_29, "get_msg", VAR_13, 0);
FUNC_32(VAR_29, "send_msg", VAR_23, 1);
FUNC_32(VAR_29, "listen", VAR_0, 1);
}
| 0.976223 | {'IMPORT_0': 'msg.h', 'IMPORT_1': 'rbnng.h', 'IMPORT_2': 'socket.h', 'IMPORT_3': 'nng/protocol/reqrep0/rep.h', 'IMPORT_4': 'ruby.h', 'IMPORT_5': 'ruby/thread.h', 'CLASS_0': 'VALUE', 'FUNC_0': 'socket_rep0_listen', 'VAR_0': 'socket_rep0_listen', 'VAR_1': 'self', 'VAR_2': 'url', 'FUNC_1': 'Check_Type', 'VAR_3': 'T_STRING', 'VAR_4': 'rv', 'CLASS_1': 'RbnngSocket', 'VAR_5': 'RbnngSocket', 'VAR_6': 'p_rbnngSocket', 'FUNC_2': 'Data_Get_Struct', 'FUNC_3': 'nng_listen', 'VAR_7': 'socket', 'FUNC_4': 'StringValueCStr', 'FUNC_5': 'raise_error', 'FUNC_6': 'rep0_get_msg_blocking', 'VAR_8': 'rep0_get_msg_blocking', 'CLASS_2': 'nng_aio', 'VAR_9': 'p_aio', 'FUNC_7': 'nng_aio_alloc', 'FUNC_8': 'nng_ctx_recv', 'VAR_10': 'ctx', 'FUNC_9': 'nng_aio_wait', 'FUNC_10': 'nng_aio_result', 'CLASS_3': 'nng_msg', 'VAR_11': 'p_msg', 'FUNC_11': 'nng_aio_get_msg', 'VAR_12': 'p_getMsgResult', 'FUNC_12': 'nng_aio_free', 'FUNC_13': 'socket_rep0_get_msg', 'VAR_13': 'socket_rep0_get_msg', 'FUNC_14': 'rb_thread_call_without_gvl', 'CLASS_4': 'RbnngMsg', 'VAR_14': 'RbnngMsg', 'VAR_15': 'p_newMsg', 'VAR_16': 'newMsg', 'FUNC_15': 'rb_class_new_instance', 'VAR_17': 'rbnng_MsgClass', 'FUNC_16': 'rep0_send_msg_blocking', 'VAR_18': 'rep0_send_msg_blocking', 'VAR_19': 'data', 'CLASS_5': 'RbnngSendMsgReq', 'VAR_20': 'p_sendMsgReq', 'VAR_21': 'socketObj', 'FUNC_17': 'nng_msg_alloc', 'FUNC_18': 'nng_msg_clear', 'FUNC_19': 'nng_msg_append', 'FUNC_20': 'StringValuePtr', 'VAR_22': 'nextMsg', 'FUNC_21': 'RSTRING_LEN', 'FUNC_22': 'nng_aio_set_msg', 'FUNC_23': 'nng_ctx_send', 'FUNC_24': 'socket_rep0_send_msg', 'VAR_23': 'socket_rep0_send_msg', 'VAR_24': 'rb_strMsg', 'VAR_25': 'sendMsgReq', 'FUNC_25': 'socket_rep0_initialize', 'VAR_26': 'socket_rep0_initialize', 'FUNC_26': 'nng_rep0_open', 'FUNC_27': 'nng_ctx_open', 'FUNC_28': 'rbnng_rep0_Init', 'VAR_27': 'nng_module', 'VAR_28': 'rbnng_SocketModule', 'FUNC_29': 'rb_define_module_under', 'VAR_29': 'rbnng_SocketRep0Class', 'FUNC_30': 'rb_define_class_under', 'VAR_30': 'rb_cObject', 'FUNC_31': 'rb_define_alloc_func', 'VAR_31': 'socket_alloc', 'FUNC_32': 'rb_define_method'} | c | Procedural | 100.00% |
//
// YKCodeView.h
// YK
//
// Created by edz on 2018/11/13.
// Copyright © 2018年 YK. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface YKCodeView : UIView
typedef void(^OnFinishedEnterCode)(NSString *code);
- (instancetype)initWithFrame:(CGRect)frame onFinishedEnterCode:(OnFinishedEnterCode)onFinishedEnterCode;
- (void)resetDefaultStatus;
- (void)codeBecomeFirstResponder;
@end
| //
// YKCodeView.h
// YK
//
// Created by edz on 2018/11/13.
// Copyright © 2018年 YK. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface YKCodeView : UIView
typedef void(^OnFinishedEnterCode)(NSString *VAR_0);
- (instancetype)initWithFrame:(CGRect)frame onFinishedEnterCode:(OnFinishedEnterCode)onFinishedEnterCode;
- (void)resetDefaultStatus;
- (void)codeBecomeFirstResponder;
@CLASS_0
| 0.213342 | {'VAR_0': 'code', 'CLASS_0': 'end'} | c | Procedural | 100.00% |
/*
* Generic SH-4 / SH-4A PCIC operations (SH7751, SH7780).
*
* Copyright (C) 2002 - 2006 Paul Mundt
*
* This file is subject to the terms and conditions of the GNU General Public
* License v2. See the file "COPYING" in the main directory of this archive
* for more details.
*/
#include <linux/pci.h>
#include <asm/addrspace.h>
#include <asm/io.h>
#include "pci-sh4.h"
/*
* Direct access to PCI hardware...
*/
#define CONFIG_CMD(bus, devfn, where) \
P1SEGADDR((bus->number << 16) | (devfn << 8) | (where & ~3))
static DEFINE_SPINLOCK(sh4_pci_lock);
/*
* Functions for accessing PCI configuration space with type 1 accesses
*/
static int sh4_pci_read(struct pci_bus *bus, unsigned int devfn,
int where, int size, u32 *val)
{
unsigned long flags;
u32 data;
/*
* PCIPDR may only be accessed as 32 bit words,
* so we must do byte alignment by hand
*/
spin_lock_irqsave(&sh4_pci_lock, flags);
pci_write_reg(CONFIG_CMD(bus, devfn, where), SH4_PCIPAR);
data = pci_read_reg(SH4_PCIPDR);
spin_unlock_irqrestore(&sh4_pci_lock, flags);
switch (size) {
case 1:
*val = (data >> ((where & 3) << 3)) & 0xff;
break;
case 2:
*val = (data >> ((where & 2) << 3)) & 0xffff;
break;
case 4:
*val = data;
break;
default:
return PCIBIOS_FUNC_NOT_SUPPORTED;
}
return PCIBIOS_SUCCESSFUL;
}
/*
* Since SH4 only does 32bit access we'll have to do a read,
* mask,write operation.
* We'll allow an odd byte offset, though it should be illegal.
*/
static int sh4_pci_write(struct pci_bus *bus, unsigned int devfn,
int where, int size, u32 val)
{
unsigned long flags;
int shift;
u32 data;
spin_lock_irqsave(&sh4_pci_lock, flags);
pci_write_reg(CONFIG_CMD(bus, devfn, where), SH4_PCIPAR);
data = pci_read_reg(SH4_PCIPDR);
spin_unlock_irqrestore(&sh4_pci_lock, flags);
switch (size) {
case 1:
shift = (where & 3) << 3;
data &= ~(0xff << shift);
data |= ((val & 0xff) << shift);
break;
case 2:
shift = (where & 2) << 3;
data &= ~(0xffff << shift);
data |= ((val & 0xffff) << shift);
break;
case 4:
data = val;
break;
default:
return PCIBIOS_FUNC_NOT_SUPPORTED;
}
pci_write_reg(data, SH4_PCIPDR);
return PCIBIOS_SUCCESSFUL;
}
struct pci_ops sh4_pci_ops = {
.read = sh4_pci_read,
.write = sh4_pci_write,
};
/*
* Not really related to pci_ops, but it's common and not worth shoving
* somewhere else for now..
*/
static unsigned int pci_probe = PCI_PROBE_CONF1;
int __init sh4_pci_check_direct(void)
{
/*
* Check if configuration works.
*/
if (pci_probe & PCI_PROBE_CONF1) {
unsigned int tmp = pci_read_reg(SH4_PCIPAR);
pci_write_reg(P1SEG, SH4_PCIPAR);
if (pci_read_reg(SH4_PCIPAR) == P1SEG) {
pci_write_reg(tmp, SH4_PCIPAR);
printk(KERN_INFO "PCI: Using configuration type 1\n");
request_region(PCI_REG(SH4_PCIPAR), 8, "PCI conf1");
return 0;
}
pci_write_reg(tmp, SH4_PCIPAR);
}
pr_debug("PCI: pci_check_direct failed\n");
return -EINVAL;
}
/* Handle generic fixups */
static void __init pci_fixup_ide_bases(struct pci_dev *d)
{
int i;
/*
* PCI IDE controllers use non-standard I/O port decoding, respect it.
*/
if ((d->class >> 8) != PCI_CLASS_STORAGE_IDE)
return;
pr_debug("PCI: IDE base address fixup for %s\n", pci_name(d));
for(i = 0; i < 4; i++) {
struct resource *r = &d->resource[i];
if ((r->start & ~0x80) == 0x374) {
r->start |= 2;
r->end = r->start;
}
}
}
DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, pci_fixup_ide_bases);
char * __init pcibios_setup(char *str)
{
if (!strcmp(str, "off")) {
pci_probe = 0;
return NULL;
}
return str;
}
int __attribute__((weak)) pci_fixup_pcic(void)
{
/* Nothing to do. */
return 0;
}
| /*
* Generic SH-4 / SH-4A PCIC operations (SH7751, SH7780).
*
* Copyright (C) 2002 - 2006 Paul Mundt
*
* This file is subject to the terms and conditions of the GNU General Public
* License v2. See the file "COPYING" in the main directory of this archive
* for more details.
*/
#include <linux/pci.h>
#include <asm/addrspace.h>
#include <asm/io.h>
#include "pci-sh4.h"
/*
* Direct access to PCI hardware...
*/
#define CONFIG_CMD(bus, devfn, where) \
P1SEGADDR((bus->number << 16) | (devfn << 8) | (where & ~3))
static DEFINE_SPINLOCK(sh4_pci_lock);
/*
* Functions for accessing PCI configuration space with type 1 accesses
*/
static int sh4_pci_read(struct pci_bus *bus, unsigned int devfn,
int where, int size, u32 *val)
{
unsigned long flags;
u32 data;
/*
* PCIPDR may only be accessed as 32 bit words,
* so we must do byte alignment by hand
*/
spin_lock_irqsave(&sh4_pci_lock, flags);
pci_write_reg(CONFIG_CMD(bus, devfn, where), SH4_PCIPAR);
data = pci_read_reg(SH4_PCIPDR);
spin_unlock_irqrestore(&sh4_pci_lock, flags);
switch (size) {
case 1:
*val = (data >> ((where & 3) << 3)) & 0xff;
break;
case 2:
*val = (data >> ((where & 2) << 3)) & 0xffff;
break;
case 4:
*val = data;
break;
default:
return PCIBIOS_FUNC_NOT_SUPPORTED;
}
return PCIBIOS_SUCCESSFUL;
}
/*
* Since SH4 only does 32bit access we'll have to do a read,
* mask,write operation.
* We'll allow an odd byte offset, though it should be illegal.
*/
static int sh4_pci_write(struct pci_bus *bus, unsigned int devfn,
int where, int size, u32 val)
{
unsigned long flags;
int shift;
u32 data;
spin_lock_irqsave(&sh4_pci_lock, flags);
pci_write_reg(CONFIG_CMD(bus, devfn, where), SH4_PCIPAR);
data = pci_read_reg(SH4_PCIPDR);
spin_unlock_irqrestore(&sh4_pci_lock, flags);
switch (size) {
case 1:
shift = (where & 3) << 3;
data &= ~(0xff << shift);
data |= ((val & 0xff) << shift);
break;
case 2:
shift = (where & 2) << 3;
data &= ~(0xffff << shift);
data |= ((val & 0xffff) << shift);
break;
case 4:
data = val;
break;
default:
return PCIBIOS_FUNC_NOT_SUPPORTED;
}
pci_write_reg(data, SH4_PCIPDR);
return PCIBIOS_SUCCESSFUL;
}
struct pci_ops sh4_pci_ops = {
.read = sh4_pci_read,
.write = sh4_pci_write,
};
/*
* Not really related to pci_ops, but it's common and not worth shoving
* somewhere else for now..
*/
static unsigned int pci_probe = PCI_PROBE_CONF1;
int __init sh4_pci_check_direct(void)
{
/*
* Check if configuration works.
*/
if (pci_probe & PCI_PROBE_CONF1) {
unsigned int tmp = pci_read_reg(SH4_PCIPAR);
pci_write_reg(P1SEG, SH4_PCIPAR);
if (pci_read_reg(SH4_PCIPAR) == P1SEG) {
pci_write_reg(tmp, SH4_PCIPAR);
printk(KERN_INFO "PCI: Using configuration type 1\n");
request_region(PCI_REG(SH4_PCIPAR), 8, "PCI conf1");
return 0;
}
pci_write_reg(tmp, SH4_PCIPAR);
}
pr_debug("PCI: pci_check_direct failed\n");
return -EINVAL;
}
/* Handle generic fixups */
static void __init pci_fixup_ide_bases(struct pci_dev *d)
{
int i;
/*
* PCI IDE controllers use non-standard I/O port decoding, respect it.
*/
if ((d->class >> 8) != PCI_CLASS_STORAGE_IDE)
return;
pr_debug("PCI: IDE base address fixup for %s\n", pci_name(d));
for(i = 0; i < 4; i++) {
struct resource *r = &d->resource[i];
if ((r->start & ~0x80) == 0x374) {
r->start |= 2;
r->end = r->start;
}
}
}
DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, pci_fixup_ide_bases);
char * __init pcibios_setup(char *str)
{
if (!strcmp(str, "off")) {
pci_probe = 0;
return NULL;
}
return str;
}
int __attribute__((weak)) pci_fixup_pcic(void)
{
/* Nothing to do. */
return 0;
}
| 0.027351 | {} | c | Procedural | 18.28% |
/*
** Return the name of the object's metatable.
** This function is used by `tostring'.
*/
static int luasql_tostring (lua_State *L) {
char buff[100];
pseudo_data *obj = (pseudo_data *)lua_touserdata (L, 1);
if (obj->closed)
strcpy (buff, "closed");
else
sprintf (buff, "%p", (void *)obj);
lua_pushfstring (L, "%s (%s)", lua_tostring(L,lua_upvalueindex(1)), buff);
return 1;
} | /*
** Return the name of the object's metatable.
** This function is used by `tostring'.
*/
static int luasql_tostring (lua_State *L) {
char VAR_0[100];
pseudo_data *obj = (pseudo_data *)lua_touserdata (L, 1);
if (obj->VAR_1)
strcpy (VAR_0, "closed");
else
sprintf (VAR_0, "%p", (void *)obj);
lua_pushfstring (L, "%s (%s)", lua_tostring(L,lua_upvalueindex(1)), VAR_0);
return 1;
} | 0.155547 | {'VAR_0': 'buff', 'VAR_1': 'closed'} | c | Procedural | 100.00% |
// Give up the CPU for one scheduling round.
void
yield(void)
{
acquire(&ptable.lock);
if (removeFromStateList(&ptable.pLists.running, proc, RUNNING) < 0)
panic("The proc is not in the running list - yield() routine");
proc->state = RUNNABLE;
proc->budget = proc->budget - (ticks - proc->cpu_ticks_in);
if (proc->budget <= 0) {
if (proc->priority < MAX)
proc->priority++;
proc->budget = BUDGET;
}
addProcToLast(&ptable.pLists.ready[proc->priority], proc);
sched();
release(&ptable.lock);
} | // Give up the CPU for one scheduling round.
void
yield(void)
{
FUNC_0(&VAR_0.VAR_1);
if (FUNC_1(&VAR_0.VAR_2.running, VAR_3, RUNNING) < 0)
FUNC_2("The proc is not in the running list - yield() routine");
VAR_3->VAR_4 = VAR_5;
VAR_3->VAR_6 = VAR_3->VAR_6 - (VAR_7 - VAR_3->VAR_8);
if (VAR_3->VAR_6 <= 0) {
if (VAR_3->VAR_9 < VAR_10)
VAR_3->VAR_9++;
VAR_3->VAR_6 = VAR_11;
}
FUNC_3(&VAR_0.VAR_2.VAR_12[VAR_3->VAR_9], VAR_3);
FUNC_4();
release(&VAR_0.VAR_1);
} | 0.827246 | {'FUNC_0': 'acquire', 'VAR_0': 'ptable', 'VAR_1': 'lock', 'FUNC_1': 'removeFromStateList', 'VAR_2': 'pLists', 'VAR_3': 'proc', 'FUNC_2': 'panic', 'VAR_4': 'state', 'VAR_5': 'RUNNABLE', 'VAR_6': 'budget', 'VAR_7': 'ticks', 'VAR_8': 'cpu_ticks_in', 'VAR_9': 'priority', 'VAR_10': 'MAX', 'VAR_11': 'BUDGET', 'FUNC_3': 'addProcToLast', 'VAR_12': 'ready', 'FUNC_4': 'sched'} | c | Procedural | 100.00% |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include <stdint.h>
#include <memory>
#include <string>
#include <vector>
#include <folly/Portability.h>
namespace folly {
class RequestContext;
/**
* WorkerProvider is a simple interface that can be used
* to collect information about worker threads that are pulling work
* from a given queue.
*/
class WorkerProvider {
public:
virtual ~WorkerProvider() {}
/**
* Abstract type returned by the collectThreadIds() method.
* Implementations of the WorkerProvider interface need to define this class.
* The intent is to return a guard along with a list of worker IDs which can
* be removed on destruction of this object.
*/
class KeepAlive {
public:
virtual ~KeepAlive() = 0;
};
// collectThreadIds() will return this aggregate type which includes an
// instance of the WorkersGuard.
struct IdsWithKeepAlive {
std::unique_ptr<KeepAlive> guard;
std::vector<pid_t> threadIds;
};
// Capture the Thread IDs of all threads consuming from a given queue.
// The provided vector should be populated with the OS Thread IDs and the
// method should return a SharedMutex which the caller can lock.
virtual IdsWithKeepAlive collectThreadIds() = 0;
};
class QueueObserver {
public:
virtual ~QueueObserver() {}
virtual intptr_t onEnqueued(const RequestContext*) = 0;
virtual void onDequeued(intptr_t) = 0;
};
class QueueObserverFactory {
public:
virtual ~QueueObserverFactory() {}
virtual std::unique_ptr<QueueObserver> create(int8_t pri) = 0;
static std::unique_ptr<QueueObserverFactory> make(
const std::string& context,
size_t numPriorities,
WorkerProvider* workerProvider = nullptr);
};
using MakeQueueObserverFactory = std::unique_ptr<QueueObserverFactory>(
const std::string&, size_t, WorkerProvider*);
#if FOLLY_HAVE_WEAK_SYMBOLS
FOLLY_ATTR_WEAK MakeQueueObserverFactory make_queue_observer_factory;
#else
constexpr MakeQueueObserverFactory* make_queue_observer_factory = nullptr;
#endif
} // namespace folly
| /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include <IMPORT_0>
#include <IMPORT_1>
#include <IMPORT_2>
#include <IMPORT_3>
#include <IMPORT_4>
CLASS_0 VAR_0 {
CLASS_1 VAR_1;
/**
* WorkerProvider is a simple interface that can be used
* to collect information about worker threads that are pulling work
* from a given queue.
*/
CLASS_1 VAR_2 {
public:
VAR_3 ~FUNC_0() {}
/**
* Abstract type returned by the collectThreadIds() method.
* Implementations of the WorkerProvider interface need to define this class.
* The intent is to return a guard along with a list of worker IDs which can
* be removed on destruction of this object.
*/
CLASS_1 VAR_4 {
public:
VAR_3 ~FUNC_1() = 0;
};
// collectThreadIds() will return this aggregate type which includes an
// instance of the WorkersGuard.
struct CLASS_5 {
CLASS_6::VAR_7<VAR_4> VAR_8;
CLASS_6::IMPORT_3<VAR_9> VAR_10;
};
// Capture the Thread IDs of all threads consuming from a given queue.
// The provided vector should be populated with the OS Thread IDs and the
// method should return a SharedMutex which the caller can lock.
CLASS_4 VAR_5 FUNC_2() = 0;
};
CLASS_1 VAR_11 {
public:
VAR_3 ~FUNC_3() {}
CLASS_4 VAR_12 FUNC_4(const CLASS_2*) = 0;
CLASS_4 VAR_13 FUNC_5(intptr_t) = 0;
};
CLASS_1 VAR_14 {
public:
VAR_3 ~FUNC_6() {}
CLASS_4 VAR_6::VAR_7<VAR_11> FUNC_7(int8_t VAR_15) = 0;
static CLASS_6::VAR_7<VAR_14> FUNC_8(
const CLASS_6::IMPORT_2& VAR_16,
size_t VAR_17,
CLASS_3* workerProvider = nullptr);
};
CLASS_7 VAR_18 = VAR_6::VAR_7<VAR_14>(
const CLASS_6::IMPORT_2&VAR_19, VAR_20, VAR_2*);
#if VAR_21
CLASS_9 VAR_18 VAR_22;
#else
constexpr CLASS_8* VAR_22 = nullptr;
#endif
} // namespace folly
| 0.791315 | {'IMPORT_0': 'stdint.h', 'IMPORT_1': 'memory', 'IMPORT_2': 'string', 'IMPORT_3': 'vector', 'IMPORT_4': 'folly/Portability.h', 'CLASS_0': 'namespace', 'VAR_0': 'folly', 'CLASS_1': 'class', 'VAR_1': 'RequestContext', 'CLASS_2': 'RequestContext', 'VAR_2': 'WorkerProvider', 'FUNC_0': 'WorkerProvider', 'CLASS_3': 'WorkerProvider', 'VAR_3': 'virtual', 'CLASS_4': 'virtual', 'VAR_4': 'KeepAlive', 'FUNC_1': 'KeepAlive', 'CLASS_5': 'IdsWithKeepAlive', 'VAR_5': 'IdsWithKeepAlive', 'CLASS_6': 'std', 'VAR_6': 'std', 'VAR_7': 'unique_ptr', 'VAR_8': 'guard', 'VAR_9': 'pid_t', 'VAR_10': 'threadIds', 'FUNC_2': 'collectThreadIds', 'VAR_11': 'QueueObserver', 'FUNC_3': 'QueueObserver', 'VAR_12': 'intptr_t', 'FUNC_4': 'onEnqueued', 'VAR_13': 'void', 'FUNC_5': 'onDequeued', 'VAR_14': 'QueueObserverFactory', 'FUNC_6': 'QueueObserverFactory', 'FUNC_7': 'create', 'VAR_15': 'pri', 'FUNC_8': 'make', 'VAR_16': 'context', 'VAR_17': 'numPriorities', 'CLASS_7': 'using', 'VAR_18': 'MakeQueueObserverFactory', 'CLASS_8': 'MakeQueueObserverFactory', 'VAR_19': '', 'VAR_20': 'size_t', 'VAR_21': 'FOLLY_HAVE_WEAK_SYMBOLS', 'CLASS_9': 'FOLLY_ATTR_WEAK', 'VAR_22': 'make_queue_observer_factory'} | c | Procedural | 31.03% |
/*
* Copyright (c) 2017 Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file parc_ArrayList.h
* @ingroup datastructures
* @brief A dynamic array of void * pointers.
*
* This module implements a dynamic array of simple void pointers.
* Users can create an empty array, or preprovisioned with an initial capacity of N elements.
*
*/
#ifndef libparc_parc_ArrayList_h
#define libparc_parc_ArrayList_h
#include <stdint.h>
#include <stdbool.h>
#include <parc/algol/parc_List.h>
#include <parc/algol/parc_Iterator.h>
#ifdef PARCLibrary_DISABLE_VALIDATION
# define parcArrayList_OptionalAssertValid(_instance_)
#else
# define parcArrayList_OptionalAssertValid(_instance_) parcArrayList_AssertValid(_instance_)
#endif
struct parc_array_list;
typedef struct parc_array_list PARCArrayList;
/**
* The mapping of a `PARCArrayList` to the generic `PARCList`.
*/
extern PARCListInterface *PARCArrayListAsPARCList;
/**
* Determine if a `PARCArrayList` is valid.
*
* @param [in] instance A pointer to a PARCArrayList instance.
*
* @return true The instance is valid.
* @return true The instance is invalid.
*
* Example:
* @code
* {
* PARCArrayList *list = parcArrayList_Create(NULL);
* if (parcArrayList_IsValid(list)) {
* printf("The list is valid.");
* }
* parcArrayList_Destroy((list);
* @endcode
*/
bool parcArrayList_IsValid(const PARCArrayList *instance);
/**
* Assert that a `PARCArrayList` is valid.
*
* @param [in] instance A pointer to a PARCArrayList instance.
*
* Example:
* @code
* {
* PARCArrayList *list = parcArrayList_Create(NULL);
*
* parcArrayList_AssertValid(list);
*
* parcArrayList_Destroy((list);
* @endcode
*/
void parcArrayList_AssertValid(const PARCArrayList *instance);
/**
* Add an element to the given PARCArrayList.
*
* If the PARCArrayList was constructed with a destroyer,
* the pointer will be destroyed when element is removed or the list is destroyed.
*
* @param [in] array A pointer to a `PARCArrayList`.
* @param [in] pointer A void pointer to the item to be added to the list.
*
* @return True If the value was successfully added to the list.
* @return False Otherwise
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
* void *elements[] = {
* strdup("a"),
* strdup("b"),
* strdup("c"),
* };
*
* bool wasAdded = parcArrayList_Add(array, elements);
* printf("Successfully added the base pointer? %d\n", wasAdded);
*
* ...
*
* parcArrayList_Destroy(&array);
* }
* @endcode
*/
bool parcArrayList_Add(PARCArrayList *array, const void *pointer);
/**
* Add all of the pointers in the given array of pointers to the `PARCArrayList`.
*
* This is synonymous with calling {@link parcArrayList_Add()} multiple times
*
* @param [in] array A pointer to `PARCArrayList`.
* @param [in] argv A pointer to the base list of pointers.
* @param [in] argc The number of items to add to the list, starting from the abse void pointer.
*
* @return A pointer to the modified PARCArrayList.
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
* void *elements[] = {
* strdup("a"),
* strdup("b"),
* strdup("c"),
* };
*
* parcArrayList_AddAll(array, elements, 3);
*
* ...
*
* parcArrayList_Destroy(&array);
* }
* @endcode
*/
PARCArrayList *parcArrayList_AddAll(PARCArrayList *array, void **argv, size_t argc);
/**
* Remove an element at a specific index from a `PARCArrayList`.
*
* The element is destroyed via the function provided when calling {@link parcArrayList_Create()}.
* The index must be 0 <= index < length.
*
* @param [in,out] array A pointer to `PARCArrayList`.
* @param [in] index The index of the element to remove and destroy.
*
* @return A pointer to the modified `PARCArrayList`.
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
* void *elements[] = {
* strdup("a"),
* strdup("b"),
* strdup("c"),
* };
*
* parcArrayList_AddAll(array, elements, 3);
* parcArrayList_RemoveAndDestroyAtIndex(array, 0);
*
* size_t size = parcArrayList_Size(array);
* // size will now be three
*
* ...
*
* parcArrayList_Destroy(&array);
* }
* @endcode
*/
PARCArrayList *parcArrayList_RemoveAndDestroyAtIndex(PARCArrayList *array, size_t index);
/**
* Return the element at index. Remove the element from the array.
*
* The index must be 0 <= index < length.
*
* @param [in,out] array A pointer to a `PARCArrayList` instance.
* @param [in] index The index of the element to remove.
*
* @return void* A pointer (void *) to the element that was removed.
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
* void *elements[] = {
* strdup("a"),
* strdup("b"),
* strdup("c"),
* };
*
* parcArrayList_AddAll(array, elements, 3);
* void *firstString = parcArrayList_RemoveAtIndex(array, 0);
*
* printf("First string: %s\n", firstString);
*
* ...
*
* parcArrayList_Destroy(&array);
* }
* @endcode
*/
void *parcArrayList_RemoveAtIndex(PARCArrayList *array, size_t index);
/**
* Insert an element at the index location. Elements will be moved up if required.
*
* You may not insert beyond the list end. (You can insert at the end, but not any more).
*
* @param [in,out] array A `PARCArrayList`
* @param [in] pointer A pointer to the element to insert
* @param [in] index An index in the `PARCArrayList`
* @return A pointer to the modified `PARCArrayList`
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
*
* parcArrayList_InsertAtIndex(array, strdup("a"), 0);
* void *firstString = parcArrayList_RemoveAtIndex(array, 0);
* printf("First string is 'a': %s\n", firstString);
*
* ...
*
* parcArrayList_Destroy(&array);
* }
* @endcode
*/
PARCArrayList *parcArrayList_InsertAtIndex(PARCArrayList *array, size_t index, const void *pointer);
/**
* Create an instance of an empty `PARCArrayList`.
*
* @param [in] destroyElement
* A pointer to a function that will destroy (or equivalent) the element pointed to by `element`
*
* @return A pointer to the new `PARCArrayList` instance, or NULL if no memory could be allocated.
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
* ...
* }
* @endcode
*/
PARCArrayList *parcArrayList_Create(void (*destroyElement)(void **elementAddress));
/**
* Create an instance of a PARCArrayList pre-provisioned to contain the specified number of elements.
*
* @param [in] equalsElement
* A pointer to a function that will determine equality between two elements in the array.
* @param [in] destroyElement
* A pointer to a function that will destroy (or equivalent) the element pointed to by <code>element</code>
* @param [in] size
* The number of initial elements to provision for.
* @return A pointer to a new `PARCArrayList` instance, or NULL if no memory could be allocated.
*
* Example:
* @code
* <#example#>
* @endcode
*/
PARCArrayList *parcArrayList_Create_Capacity(bool (*equalsElement)(void *x, void *y), void (*destroyElement)(void **elementAddress), size_t size);
/**
* Copy a `PARCArrayList` instance.
*
* Create a new `PARCArrayList` instance with the same structure and content as the original.
*
* @param [in] array A pointer to a `PARCArrayList` instance to copy.
*
* @return A pointer to a new `PARCArrayList` instance with a copy of the original, or NULL if no memory could be allocated.
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
* parcArrayList_InsertAtIndex(array, strdup("a"), 0);
*
* PARCArrayList *sameList = parcArrayList_Copy(array);
*
* if (parcArrayList_Equals(array, sameList)) {
* // true
* } else {
* // false
* }
*
* parcArrayList_Destroy(&array);
* }
* @endcode
*/
PARCArrayList *parcArrayList_Copy(const PARCArrayList *array);
/**
* Destroy a `PARCArrayList` instance.
*
* Destroy the given `PARCArrayList` by freeing all memory used by it.
*
* @param [in,out] arrayPtr A pointer to the pointer of the `PARCArrayList` to be destroyed.
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
*
* ...
*
* parcArrayList_Destroy(&array);
* }
* @endcode
*/
void parcArrayList_Destroy(PARCArrayList **arrayPtr);
/**
* Set an element from the given `PARCArrayList` at a specified index to a value.
*
* The index must be 0 <= index < length.
*
* @param [in] array A pointer to a `PARCArrayList` instance.
* @param [in] index The index into the `PARCArrayList` instance.
* @param [in] pointer A void pointer to the item to be assigned to the index
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
* void *elements[] = {
* strdup("a"),
* strdup("b"),
* strdup("c"),
* };
*
* bool wasAdded = parcArrayList_Add(array, elements);
* // how to free the pointer at index 1 without deallocating the slot? XXX
* parcArrayList_Set(array, 1, strdup("d");
* parcArrayList_Destroy(&array);
* }
* @endcode
*/
void parcArrayList_Set(const PARCArrayList *array, size_t index, void *pointer);
/**
* Get an element from the given `PARCArrayList` at a specified index.
*
* The index must be 0 <= index < length.
*
* @param [in] array A pointer to a `PARCArrayList` instance.
* @param [in] index The index into the `PARCArrayList` instance.
*
* @return A pointer (void *) to the element in the list.
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
* void *elements[] = {
* strdup("a"),
* strdup("b"),
* strdup("c"),
* };
*
* parcArrayList_AddAll(array, elements, 3);
* void *firstString = parcArrayList_Get(array, 0);
*
* printf("First string: %s\n", firstString);
*
* ...
*
* parcArrayList_Destroy(&array);
* }
* @endcode
*/
void *parcArrayList_Get(const PARCArrayList *array, size_t index);
/**
* Return the number of elements in the given `PARCArrayList`.
*
* The size is the number of elements, NOT the size in bytes of all elements maintained in the list.
*
* @param [in] array A pointer to a `PARCArrayList` instance.
*
* @return A size_t of the number of elements in the given `PARCArrayList`.
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
* void *elements[] = {
* strdup("a"),
* strdup("b"),
* strdup("c"),
* };
*
* parcArrayList_AddAll(array, elements, 3);
*
* size_t size = parcArrayList_Size(array);
* printf("Size =?= 3: %d\n", size == 3);
*
* parcArrayList_Destroy(&array);
* }
* @endcode
*/
size_t parcArrayList_Size(const PARCArrayList *array);
/**
* Determine if two `PARCArrayList` instances are equal.
*
* The following equivalence relations on non-null `PARCArrayList` instances are maintained:
*
* * It is reflexive: for any non-null reference value x, parcArrayList_Equals(x, x) must return true.
*
* * It is symmetric: for any non-null reference values x and y, parcArrayList_Equals(x, y) must return true if and only if
* parcArrayList_Equals(y x) returns true.
*
* * It is transitive: for any non-null reference values x, y, and z, if
* parcArrayList_Equals(x, y) returns true and
* parcArrayList_Equals(y, z) returns true,
* then parcArrayList_Equals(x, z) must return true.
*
* * It is consistent: for any non-null reference values x and y, multiple invocations of parcArrayList_Equals(x, y)
* consistently return true or consistently return false.
*
* * For any non-null reference value x, parcArrayList_Equals(x, NULL)) must return false.
*
* @param [in] a The first `PARCArrayList` instance.
* @param [in] b The second `PARCArrayList` instance.
*
* @return true the given PARCArrayList instances are equal.
* @return false the given PARCArrayList instances are not equal.
*
* Example:
* @code
* {
* PARCArrayList *a = parcArrayList_Create();
* PARCArrayList *b = parcArrayList_Create();
*
* if (parcArrayList_Equals(a, b)) {
* // true
* } else {
* // false
* }
* }
* @endcode
*/
bool parcArrayList_Equals(const PARCArrayList *a, const PARCArrayList *b);
/**
* Standard library free(3) wrapper for use as a destructor function for elements of a `PARCArrayList`.
*
* The create functions for `PARCArrayList` have an input parameter that is a pointer to a function that
* will be called for each element when the `PARCArrayList` is destroyed, and when an element is removed via
* {@link parcArrayList_RemoveAndDestroyAtIndex}.
* This destroy function has a different calling signature than the standard library's free(3) function.
* This function is a wrapper providing the correct facade for the standard library free(3) function.
*
* @param [in,out] element A pointer to the element to be destroyed.
*
* Example:
* @code
* <#example#>
* @endcode
*/
void parcArrayList_StdlibFreeFunction(void **element);
/**
* PARC_Memory free() wrapper for use as a destructor function for elements of a `PARCArrayList`.
*
* The create functions for `PARCArrayList` have an input parameter that is a pointer to a function that
* will be called for each element when the `PARCArrayList` is destroyed, and when an element is removed via
* {@link parcArrayList_RemoveAndDestroyAtIndex}.
* This destroy function has a different calling signature than the PARC_Memory's free(3) function.
* This function is a wrapper providing the correct facade for the PARC_Memory's free(3) function.
*
* @param [in,out] elementPtr A pointer to the element to be destroyed.
*
* Example:
* @code
* <#example#>
* @endcode
*/
void parcArrayList_PARCMemoryFreeFunction(void **elementPtr);
/**
* Tests if this list is empty.
*
*
* @param [in] list A pointer to the `PARCArrayList` to test.
* @return true if the stack is empty.
*
* Example:
* @code
* <#example#>
* @endcode
*/
bool parcArrayList_IsEmpty(const PARCArrayList *list);
/**
* Returns a pointer to object at the top of this stack without removing it from the stack.
*
* @param [in] list A pointer to `PARCArrayList`.
* @return A pointer to the first element of the `PARCArrayList`.
*
* Example:
* @code
* <#example#>
* @endcode
*/
void *parcArrayList_Peek(const PARCArrayList *list);
/**
* Removes the object at the top of this stack and returns that object as the value of this function.
*
* @param [in,out] list A pointer to the `PARCArrayList`.
* @return A pointer to what was the first element of the `PARCArrayList`.
*
* Example:
* @code
* <#example#>
* @endcode
*/
void *parcArrayList_Pop(PARCArrayList *list);
/**
* Removes all objects from this stack.
*
* @param [in,out] list A pointer to the `PARCArrayList`.
*
* Example:
* @code
* <#example#>
* @endcode
*/
void parcArrayList_Clear(PARCArrayList *list);
/**
* Pushes an item onto the top of this stack.
*
* @param [in,out] list A pointer to a `PARCArrayList`.
* @param [in] item A pointer to an element to be added to the `PARCArrayList`.
* @return A pointer to the item just pushed on to the `PARCArrayLis.
*
* Example:
* @code
* <#example#>
* @endcode
*/
void *parcArrayList_Push(PARCArrayList *list, void *item);
/**
* Returns the 1-based position where an object is on this stack.
*
* @param [in] list A pointer to `PARCArrayList`.
* @param [in] element A pointer to the element to locate in the `PARCArrayList`.
* @return int The index of the located element in the `PARCArrayList`
*
* Example:
* @code
* <#example#>
* @endcode
*/
int parcArrayList_Search(PARCArrayList *list, void *element);
#endif // libparc_parc_ArrayList_h
| /*
* Copyright (c) 2017 Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file parc_ArrayList.h
* @ingroup datastructures
* @brief A dynamic array of void * pointers.
*
* This module implements a dynamic array of simple void pointers.
* Users can create an empty array, or preprovisioned with an initial capacity of N elements.
*
*/
#ifndef VAR_0
#define VAR_0
#include <IMPORT_0>
#include <IMPORT_1>
#include <IMPORT_2>
#include <IMPORT_3>
#ifdef VAR_1
# define FUNC_0(VAR_2)
#else
# define FUNC_0(VAR_2) parcArrayList_AssertValid(_instance_)
#endif
struct CLASS_0;
typedef struct CLASS_0 ID_0;
/**
* The mapping of a `PARCArrayList` to the generic `PARCList`.
*/
extern CLASS_2 *VAR_4;
/**
* Determine if a `PARCArrayList` is valid.
*
* @param [in] instance A pointer to a PARCArrayList instance.
*
* @return true The instance is valid.
* @return true The instance is invalid.
*
* Example:
* @code
* {
* PARCArrayList *list = parcArrayList_Create(NULL);
* if (parcArrayList_IsValid(list)) {
* printf("The list is valid.");
* }
* parcArrayList_Destroy((list);
* @endcode
*/
bool FUNC_1(const CLASS_1 *VAR_5);
/**
* Assert that a `PARCArrayList` is valid.
*
* @param [in] instance A pointer to a PARCArrayList instance.
*
* Example:
* @code
* {
* PARCArrayList *list = parcArrayList_Create(NULL);
*
* parcArrayList_AssertValid(list);
*
* parcArrayList_Destroy((list);
* @endcode
*/
void FUNC_2(const CLASS_1 *VAR_5);
/**
* Add an element to the given PARCArrayList.
*
* If the PARCArrayList was constructed with a destroyer,
* the pointer will be destroyed when element is removed or the list is destroyed.
*
* @param [in] array A pointer to a `PARCArrayList`.
* @param [in] pointer A void pointer to the item to be added to the list.
*
* @return True If the value was successfully added to the list.
* @return False Otherwise
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
* void *elements[] = {
* strdup("a"),
* strdup("b"),
* strdup("c"),
* };
*
* bool wasAdded = parcArrayList_Add(array, elements);
* printf("Successfully added the base pointer? %d\n", wasAdded);
*
* ...
*
* parcArrayList_Destroy(&array);
* }
* @endcode
*/
bool FUNC_3(CLASS_1 *VAR_6, const void *VAR_7);
/**
* Add all of the pointers in the given array of pointers to the `PARCArrayList`.
*
* This is synonymous with calling {@link parcArrayList_Add()} multiple times
*
* @param [in] array A pointer to `PARCArrayList`.
* @param [in] argv A pointer to the base list of pointers.
* @param [in] argc The number of items to add to the list, starting from the abse void pointer.
*
* @return A pointer to the modified PARCArrayList.
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
* void *elements[] = {
* strdup("a"),
* strdup("b"),
* strdup("c"),
* };
*
* parcArrayList_AddAll(array, elements, 3);
*
* ...
*
* parcArrayList_Destroy(&array);
* }
* @endcode
*/
CLASS_1 *FUNC_4(CLASS_1 *VAR_6, void **VAR_8, size_t VAR_9);
/**
* Remove an element at a specific index from a `PARCArrayList`.
*
* The element is destroyed via the function provided when calling {@link parcArrayList_Create()}.
* The index must be 0 <= index < length.
*
* @param [in,out] array A pointer to `PARCArrayList`.
* @param [in] index The index of the element to remove and destroy.
*
* @return A pointer to the modified `PARCArrayList`.
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
* void *elements[] = {
* strdup("a"),
* strdup("b"),
* strdup("c"),
* };
*
* parcArrayList_AddAll(array, elements, 3);
* parcArrayList_RemoveAndDestroyAtIndex(array, 0);
*
* size_t size = parcArrayList_Size(array);
* // size will now be three
*
* ...
*
* parcArrayList_Destroy(&array);
* }
* @endcode
*/
CLASS_1 *FUNC_5(CLASS_1 *VAR_6, size_t VAR_10);
/**
* Return the element at index. Remove the element from the array.
*
* The index must be 0 <= index < length.
*
* @param [in,out] array A pointer to a `PARCArrayList` instance.
* @param [in] index The index of the element to remove.
*
* @return void* A pointer (void *) to the element that was removed.
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
* void *elements[] = {
* strdup("a"),
* strdup("b"),
* strdup("c"),
* };
*
* parcArrayList_AddAll(array, elements, 3);
* void *firstString = parcArrayList_RemoveAtIndex(array, 0);
*
* printf("First string: %s\n", firstString);
*
* ...
*
* parcArrayList_Destroy(&array);
* }
* @endcode
*/
void *FUNC_6(CLASS_1 *VAR_6, size_t VAR_10);
/**
* Insert an element at the index location. Elements will be moved up if required.
*
* You may not insert beyond the list end. (You can insert at the end, but not any more).
*
* @param [in,out] array A `PARCArrayList`
* @param [in] pointer A pointer to the element to insert
* @param [in] index An index in the `PARCArrayList`
* @return A pointer to the modified `PARCArrayList`
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
*
* parcArrayList_InsertAtIndex(array, strdup("a"), 0);
* void *firstString = parcArrayList_RemoveAtIndex(array, 0);
* printf("First string is 'a': %s\n", firstString);
*
* ...
*
* parcArrayList_Destroy(&array);
* }
* @endcode
*/
CLASS_1 *FUNC_7(CLASS_1 *VAR_6, size_t VAR_10, const void *VAR_7);
/**
* Create an instance of an empty `PARCArrayList`.
*
* @param [in] destroyElement
* A pointer to a function that will destroy (or equivalent) the element pointed to by `element`
*
* @return A pointer to the new `PARCArrayList` instance, or NULL if no memory could be allocated.
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
* ...
* }
* @endcode
*/
VAR_3 *FUNC_8(FUNC_9 (*VAR_12)(VAR_11 **VAR_13));
/**
* Create an instance of a PARCArrayList pre-provisioned to contain the specified number of elements.
*
* @param [in] equalsElement
* A pointer to a function that will determine equality between two elements in the array.
* @param [in] destroyElement
* A pointer to a function that will destroy (or equivalent) the element pointed to by <code>element</code>
* @param [in] size
* The number of initial elements to provision for.
* @return A pointer to a new `PARCArrayList` instance, or NULL if no memory could be allocated.
*
* Example:
* @code
* <#example#>
* @endcode
*/
CLASS_1 *FUNC_10(bool (*VAR_14)(void *VAR_15, void *VAR_16), void (*VAR_12)(void **VAR_13), size_t VAR_17);
/**
* Copy a `PARCArrayList` instance.
*
* Create a new `PARCArrayList` instance with the same structure and content as the original.
*
* @param [in] array A pointer to a `PARCArrayList` instance to copy.
*
* @return A pointer to a new `PARCArrayList` instance with a copy of the original, or NULL if no memory could be allocated.
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
* parcArrayList_InsertAtIndex(array, strdup("a"), 0);
*
* PARCArrayList *sameList = parcArrayList_Copy(array);
*
* if (parcArrayList_Equals(array, sameList)) {
* // true
* } else {
* // false
* }
*
* parcArrayList_Destroy(&array);
* }
* @endcode
*/
CLASS_1 *FUNC_11(const CLASS_1 *VAR_6);
/**
* Destroy a `PARCArrayList` instance.
*
* Destroy the given `PARCArrayList` by freeing all memory used by it.
*
* @param [in,out] arrayPtr A pointer to the pointer of the `PARCArrayList` to be destroyed.
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
*
* ...
*
* parcArrayList_Destroy(&array);
* }
* @endcode
*/
void parcArrayList_Destroy(CLASS_1 **VAR_18);
/**
* Set an element from the given `PARCArrayList` at a specified index to a value.
*
* The index must be 0 <= index < length.
*
* @param [in] array A pointer to a `PARCArrayList` instance.
* @param [in] index The index into the `PARCArrayList` instance.
* @param [in] pointer A void pointer to the item to be assigned to the index
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
* void *elements[] = {
* strdup("a"),
* strdup("b"),
* strdup("c"),
* };
*
* bool wasAdded = parcArrayList_Add(array, elements);
* // how to free the pointer at index 1 without deallocating the slot? XXX
* parcArrayList_Set(array, 1, strdup("d");
* parcArrayList_Destroy(&array);
* }
* @endcode
*/
void FUNC_12(const CLASS_1 *VAR_6, size_t VAR_10, void *VAR_7);
/**
* Get an element from the given `PARCArrayList` at a specified index.
*
* The index must be 0 <= index < length.
*
* @param [in] array A pointer to a `PARCArrayList` instance.
* @param [in] index The index into the `PARCArrayList` instance.
*
* @return A pointer (void *) to the element in the list.
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
* void *elements[] = {
* strdup("a"),
* strdup("b"),
* strdup("c"),
* };
*
* parcArrayList_AddAll(array, elements, 3);
* void *firstString = parcArrayList_Get(array, 0);
*
* printf("First string: %s\n", firstString);
*
* ...
*
* parcArrayList_Destroy(&array);
* }
* @endcode
*/
void *FUNC_13(const CLASS_1 *VAR_6, size_t VAR_10);
/**
* Return the number of elements in the given `PARCArrayList`.
*
* The size is the number of elements, NOT the size in bytes of all elements maintained in the list.
*
* @param [in] array A pointer to a `PARCArrayList` instance.
*
* @return A size_t of the number of elements in the given `PARCArrayList`.
*
* Example:
* @code
* {
* PARCArrayList *array = parcArrayList_Create(parcArrayList_StdlibFreeFunction);
* void *elements[] = {
* strdup("a"),
* strdup("b"),
* strdup("c"),
* };
*
* parcArrayList_AddAll(array, elements, 3);
*
* size_t size = parcArrayList_Size(array);
* printf("Size =?= 3: %d\n", size == 3);
*
* parcArrayList_Destroy(&array);
* }
* @endcode
*/
size_t FUNC_14(const CLASS_1 *VAR_6);
/**
* Determine if two `PARCArrayList` instances are equal.
*
* The following equivalence relations on non-null `PARCArrayList` instances are maintained:
*
* * It is reflexive: for any non-null reference value x, parcArrayList_Equals(x, x) must return true.
*
* * It is symmetric: for any non-null reference values x and y, parcArrayList_Equals(x, y) must return true if and only if
* parcArrayList_Equals(y x) returns true.
*
* * It is transitive: for any non-null reference values x, y, and z, if
* parcArrayList_Equals(x, y) returns true and
* parcArrayList_Equals(y, z) returns true,
* then parcArrayList_Equals(x, z) must return true.
*
* * It is consistent: for any non-null reference values x and y, multiple invocations of parcArrayList_Equals(x, y)
* consistently return true or consistently return false.
*
* * For any non-null reference value x, parcArrayList_Equals(x, NULL)) must return false.
*
* @param [in] a The first `PARCArrayList` instance.
* @param [in] b The second `PARCArrayList` instance.
*
* @return true the given PARCArrayList instances are equal.
* @return false the given PARCArrayList instances are not equal.
*
* Example:
* @code
* {
* PARCArrayList *a = parcArrayList_Create();
* PARCArrayList *b = parcArrayList_Create();
*
* if (parcArrayList_Equals(a, b)) {
* // true
* } else {
* // false
* }
* }
* @endcode
*/
bool FUNC_15(const CLASS_1 *VAR_19, const CLASS_1 *VAR_20);
/**
* Standard library free(3) wrapper for use as a destructor function for elements of a `PARCArrayList`.
*
* The create functions for `PARCArrayList` have an input parameter that is a pointer to a function that
* will be called for each element when the `PARCArrayList` is destroyed, and when an element is removed via
* {@link parcArrayList_RemoveAndDestroyAtIndex}.
* This destroy function has a different calling signature than the standard library's free(3) function.
* This function is a wrapper providing the correct facade for the standard library free(3) function.
*
* @param [in,out] element A pointer to the element to be destroyed.
*
* Example:
* @code
* <#example#>
* @endcode
*/
void FUNC_16(void **VAR_21);
/**
* PARC_Memory free() wrapper for use as a destructor function for elements of a `PARCArrayList`.
*
* The create functions for `PARCArrayList` have an input parameter that is a pointer to a function that
* will be called for each element when the `PARCArrayList` is destroyed, and when an element is removed via
* {@link parcArrayList_RemoveAndDestroyAtIndex}.
* This destroy function has a different calling signature than the PARC_Memory's free(3) function.
* This function is a wrapper providing the correct facade for the PARC_Memory's free(3) function.
*
* @param [in,out] elementPtr A pointer to the element to be destroyed.
*
* Example:
* @code
* <#example#>
* @endcode
*/
void FUNC_17(void **VAR_22);
/**
* Tests if this list is empty.
*
*
* @param [in] list A pointer to the `PARCArrayList` to test.
* @return true if the stack is empty.
*
* Example:
* @code
* <#example#>
* @endcode
*/
bool FUNC_18(const CLASS_1 *VAR_23);
/**
* Returns a pointer to object at the top of this stack without removing it from the stack.
*
* @param [in] list A pointer to `PARCArrayList`.
* @return A pointer to the first element of the `PARCArrayList`.
*
* Example:
* @code
* <#example#>
* @endcode
*/
void *parcArrayList_Peek(const CLASS_1 *VAR_23);
/**
* Removes the object at the top of this stack and returns that object as the value of this function.
*
* @param [in,out] list A pointer to the `PARCArrayList`.
* @return A pointer to what was the first element of the `PARCArrayList`.
*
* Example:
* @code
* <#example#>
* @endcode
*/
void *FUNC_19(CLASS_1 *VAR_23);
/**
* Removes all objects from this stack.
*
* @param [in,out] list A pointer to the `PARCArrayList`.
*
* Example:
* @code
* <#example#>
* @endcode
*/
void FUNC_20(CLASS_1 *VAR_23);
/**
* Pushes an item onto the top of this stack.
*
* @param [in,out] list A pointer to a `PARCArrayList`.
* @param [in] item A pointer to an element to be added to the `PARCArrayList`.
* @return A pointer to the item just pushed on to the `PARCArrayLis.
*
* Example:
* @code
* <#example#>
* @endcode
*/
void *FUNC_21(CLASS_1 *VAR_23, void *VAR_24);
/**
* Returns the 1-based position where an object is on this stack.
*
* @param [in] list A pointer to `PARCArrayList`.
* @param [in] element A pointer to the element to locate in the `PARCArrayList`.
* @return int The index of the located element in the `PARCArrayList`
*
* Example:
* @code
* <#example#>
* @endcode
*/
int FUNC_22(CLASS_1 *VAR_23, void *VAR_21);
#endif // libparc_parc_ArrayList_h
| 0.944461 | {'VAR_0': 'libparc_parc_ArrayList_h', 'IMPORT_0': 'stdint.h', 'IMPORT_1': 'stdbool.h', 'IMPORT_2': 'parc/algol/parc_List.h', 'IMPORT_3': 'parc/algol/parc_Iterator.h', 'VAR_1': 'PARCLibrary_DISABLE_VALIDATION', 'FUNC_0': 'parcArrayList_OptionalAssertValid', 'VAR_2': '_instance_', 'CLASS_0': 'parc_array_list', 'ID_0': 'PARCArrayList', 'CLASS_1': 'PARCArrayList', 'VAR_3': 'PARCArrayList', 'CLASS_2': 'PARCListInterface', 'VAR_4': 'PARCArrayListAsPARCList', 'FUNC_1': 'parcArrayList_IsValid', 'VAR_5': 'instance', 'FUNC_2': 'parcArrayList_AssertValid', 'FUNC_3': 'parcArrayList_Add', 'VAR_6': 'array', 'VAR_7': 'pointer', 'FUNC_4': 'parcArrayList_AddAll', 'VAR_8': 'argv', 'VAR_9': 'argc', 'FUNC_5': 'parcArrayList_RemoveAndDestroyAtIndex', 'VAR_10': 'index', 'FUNC_6': 'parcArrayList_RemoveAtIndex', 'FUNC_7': 'parcArrayList_InsertAtIndex', 'FUNC_8': 'parcArrayList_Create', 'FUNC_9': 'void', 'VAR_11': 'void', 'VAR_12': 'destroyElement', 'VAR_13': 'elementAddress', 'FUNC_10': 'parcArrayList_Create_Capacity', 'VAR_14': 'equalsElement', 'VAR_15': 'x', 'VAR_16': 'y', 'VAR_17': 'size', 'FUNC_11': 'parcArrayList_Copy', 'VAR_18': 'arrayPtr', 'FUNC_12': 'parcArrayList_Set', 'FUNC_13': 'parcArrayList_Get', 'FUNC_14': 'parcArrayList_Size', 'FUNC_15': 'parcArrayList_Equals', 'VAR_19': 'a', 'VAR_20': 'b', 'FUNC_16': 'parcArrayList_StdlibFreeFunction', 'VAR_21': 'element', 'FUNC_17': 'parcArrayList_PARCMemoryFreeFunction', 'VAR_22': 'elementPtr', 'FUNC_18': 'parcArrayList_IsEmpty', 'VAR_23': 'list', 'FUNC_19': 'parcArrayList_Pop', 'FUNC_20': 'parcArrayList_Clear', 'FUNC_21': 'parcArrayList_Push', 'VAR_24': 'item', 'FUNC_22': 'parcArrayList_Search'} | c | Hibrido | 11.97% |
/* PR target/59644 */
/* { dg-do run { target lp64 } } */
/* { dg-options "-O2 -ffreestanding -mno-sse -mpreferred-stack-boundary=3 -maccumulate-outgoing-args -mno-red-zone" } */
/* This test uses __builtin_trap () instead of e.g. abort,
because due to -mpreferred-stack-boundary=3 it should not call
any library function from within main (). */
#include <stdarg.h>
__attribute__((noinline, noclone))
int
bar (int x, int y, int z, int w, const char *fmt, va_list ap)
{
if (x != 1 || y != 2 || z != 3 || w != 4)
__builtin_trap ();
if (fmt[0] != 'f' || fmt[1] != 'o' || fmt[2] != 'o' || fmt[3])
__builtin_trap ();
if (va_arg (ap, int) != 5 || va_arg (ap, int) != 6
|| va_arg (ap, long long) != 7LL)
__builtin_trap ();
return 9;
}
__attribute__((noinline, noclone, optimize ("Os")))
int
foo (const char *fmt, ...)
{
va_list ap;
va_start (ap, fmt);
int r = bar (1, 2, 3, 4, fmt, ap);
va_end (ap);
return r;
}
int
main ()
{
if (foo ("foo", 5, 6, 7LL) != 9)
__builtin_trap ();
return 0;
}
| /* PR target/59644 */
/* { dg-do run { target lp64 } } */
/* { dg-options "-O2 -ffreestanding -mno-sse -mpreferred-stack-boundary=3 -maccumulate-outgoing-args -mno-red-zone" } */
/* This test uses __builtin_trap () instead of e.g. abort,
because due to -mpreferred-stack-boundary=3 it should not call
any library function from within main (). */
#include <stdarg.h>
__attribute__((noinline, noclone))
int
FUNC_0 (int VAR_0, int y, int z, int w, const char *fmt, CLASS_0 ap)
{
if (VAR_0 != 1 || y != 2 || z != 3 || w != 4)
__builtin_trap ();
if (fmt[0] != 'f' || fmt[1] != 'o' || fmt[2] != 'o' || fmt[3])
__builtin_trap ();
if (FUNC_1 (ap, int) != 5 || FUNC_1 (ap, int) != 6
|| FUNC_1 (ap, long long) != 7LL)
__builtin_trap ();
return 9;
}
__attribute__((noinline, noclone, optimize ("Os")))
int
foo (const char *fmt, ...)
{
CLASS_0 ap;
FUNC_2 (ap, fmt);
int r = FUNC_0 (1, 2, 3, 4, fmt, ap);
FUNC_3 (ap);
return r;
}
int
main ()
{
if (foo ("foo", 5, 6, 7LL) != 9)
__builtin_trap ();
return 0;
}
| 0.296912 | {'FUNC_0': 'bar', 'VAR_0': 'x', 'CLASS_0': 'va_list', 'FUNC_1': 'va_arg', 'FUNC_2': 'va_start', 'FUNC_3': 'va_end'} | c | Texto | 1.70% |
/******************************************************************************
* qLibc
*
* Copyright (c) 2010-2015 <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************/
/* This code is written and updated by following people and released under
* the same license as above qLibc license.
* Copyright (c) 2015 <NAME> - https://github.com/darkdh
*****************************************************************************/
#include "qunit.h"
#include "qlibc.h"
#include <errno.h>
QUNIT_START("Test qhasharr.c by darkdh");
qhasharr_t *tbl;
char *memory;
TEST("qhasharr()")
{
int memsize = qhasharr_calculate_memsize(5);
memory = (char*) malloc(memsize * sizeof(char));
tbl = qhasharr(memory, memsize);
ASSERT_NOT_NULL(tbl);
int maxslots, usedslots;
tbl->size(tbl, &maxslots, &usedslots);
ASSERT(maxslots > 0);
ASSERT(usedslots == 0);
}
char *key[] = { "key1", "key2", "key3", "key4", "key5" };
char *value[] = { "data1", "data2", "data3", "data4", "data5" };
#define TARGET_NUM sizeof(key)/sizeof(char*)
int valuesize[TARGET_NUM];
int found[TARGET_NUM];
int i, j;
for (i = 0; i < TARGET_NUM; i++) {
valuesize[i] = strlen(value[i]);
found[i] = 0;
}
char *extra_key[] = { "extra1", "extra2", "extra3" };
char *extra_value[] = { "extra_data1", "extra_data2", "extra_data3" };
#define EXTRA_NUM sizeof(extra_key)/sizeof(char*)
int extra_valuesize[EXTRA_NUM];
for (i = 0; i < EXTRA_NUM; i++) {
extra_valuesize[i] = strlen(extra_value[i]);
}
TEST("put() to full")
{
size_t size;
for (i = 0; i < TARGET_NUM; i++) {
ASSERT_TRUE(tbl->put(tbl, key[i], value[i], valuesize[i]));
char *target_got = (char*) tbl->get(tbl, key[i], &size);
ASSERT_NOT_NULL(target_got);
ASSERT_EQUAL_MEM(target_got, value[i], valuesize[i]);
free(target_got);
}
ASSERT_EQUAL_INT(tbl->size(tbl, NULL, NULL), TARGET_NUM);
ASSERT_FALSE(
tbl->put(tbl, extra_key[0], extra_value[0], extra_valuesize[0]));
ASSERT_NULL(tbl->get(tbl, extra_key[0], &size));
ASSERT_EQUAL_INT(tbl->size(tbl, NULL, NULL), TARGET_NUM);
}
TEST("get() non-exist key")
{
size_t size;
char *target_got = (char*) tbl->get(tbl, extra_key[0], &size);
ASSERT_NULL(target_got);
}
TEST("remove() to empty")
{
for (i = 0; i < TARGET_NUM; i++) {
ASSERT_TRUE(tbl->remove(tbl, key[i]));
}
ASSERT_EQUAL_INT(tbl->size(tbl, NULL, NULL), 0);
ASSERT_FALSE(tbl->remove(tbl, key[0]));
ASSERT_EQUAL_INT(tbl->size(tbl, NULL, NULL), 0);
}
TEST("add() same key")
{
size_t size;
ASSERT_TRUE(tbl->put(tbl, key[0], value[0], valuesize[0]));
ASSERT_TRUE(tbl->put(tbl, key[0], value[1], valuesize[1]));
char *target_got = (char*) tbl->get(tbl, key[0], &size);
ASSERT_NOT_NULL(target_got);
ASSERT_EQUAL_MEM(target_got, value[1], valuesize[1]);
free(target_got);
ASSERT_TRUE(tbl->remove(tbl, key[0]));
}
TEST("getnext()")
{
size_t size;
for (i = 0; i < TARGET_NUM; i++) {
ASSERT_TRUE(tbl->put(tbl, key[i], value[i], valuesize[i]));
char *target_got = (char*) tbl->get(tbl, key[i], &size);
ASSERT_NOT_NULL(target_got);
ASSERT_EQUAL_MEM(target_got, value[i], valuesize[i]);
free(target_got);
}
ASSERT_EQUAL_INT(tbl->size(tbl, NULL, NULL), TARGET_NUM);
int idx = 0;
qhasharr_obj_t obj;
for (i = 0; i < TARGET_NUM; i++) {
ASSERT_TRUE(tbl->getnext(tbl, &obj, &idx));
for (j = 0; j < TARGET_NUM; j++) {
if (!memcmp(obj.data, value[j], valuesize[j]) && found[j] == 0)
found[j] = 1;
}
free(obj.name);
free(obj.data);
}
ASSERT_FALSE(tbl->getnext(tbl, &obj, &idx));
for (i = 0; i < TARGET_NUM; i++) {
ASSERT_EQUAL_INT(found[i], 1);
}
ASSERT_EQUAL_INT(tbl->size(tbl, NULL, NULL), TARGET_NUM);
}
// free table reference object.
tbl->free(tbl);
free(memory);
QUNIT_END();
| /******************************************************************************
* qLibc
*
* Copyright (c) 2010-2015 <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************/
/* This code is written and updated by following people and released under
* the same license as above qLibc license.
* Copyright (c) 2015 <NAME> - https://github.com/darkdh
*****************************************************************************/
#include "qunit.h"
#include "IMPORT_0"
#include <IMPORT_1>
FUNC_0("Test qhasharr.c by darkdh");
CLASS_0 *VAR_0;
char *VAR_1;
TEST("qhasharr()")
{
int memsize = FUNC_1(5);
VAR_1 = (char*) FUNC_2(memsize * sizeof(char));
VAR_0 = FUNC_3(VAR_1, memsize);
ASSERT_NOT_NULL(VAR_0);
int maxslots, VAR_2;
VAR_0->FUNC_4(VAR_0, &maxslots, &VAR_2);
ASSERT(maxslots > 0);
ASSERT(VAR_2 == 0);
}
char *VAR_4[] = { "key1", "key2", "key3", "key4", "key5" };
char *value[] = { "data1", "data2", "data3", "data4", "data5" };
#define VAR_5 sizeof(key)/sizeof(char*)
int valuesize[VAR_5];
int VAR_6[VAR_5];
int i, VAR_7;
for (i = 0; i < VAR_5; i++) {
valuesize[i] = strlen(value[i]);
VAR_6[i] = 0;
}
char *extra_key[] = { "extra1", "extra2", "extra3" };
char *extra_value[] = { "extra_data1", "extra_data2", "extra_data3" };
#define VAR_8 sizeof(extra_key)/sizeof(char*)
int extra_valuesize[VAR_8];
for (i = 0; i < VAR_8; i++) {
extra_valuesize[i] = strlen(extra_value[i]);
}
TEST("put() to full")
{
size_t VAR_3;
for (i = 0; i < VAR_5; i++) {
FUNC_5(VAR_0->FUNC_6(VAR_0, VAR_4[i], value[i], valuesize[i]));
char *VAR_9 = (char*) VAR_0->FUNC_7(VAR_0, VAR_4[i], &VAR_3);
ASSERT_NOT_NULL(VAR_9);
ASSERT_EQUAL_MEM(VAR_9, value[i], valuesize[i]);
free(VAR_9);
}
FUNC_8(VAR_0->FUNC_4(VAR_0, NULL, NULL), VAR_5);
ASSERT_FALSE(
VAR_0->FUNC_6(VAR_0, extra_key[0], extra_value[0], extra_valuesize[0]));
FUNC_9(VAR_0->FUNC_7(VAR_0, extra_key[0], &VAR_3));
FUNC_8(VAR_0->FUNC_4(VAR_0, NULL, NULL), VAR_5);
}
TEST("get() non-exist key")
{
size_t VAR_3;
char *VAR_9 = (char*) VAR_0->FUNC_7(VAR_0, extra_key[0], &VAR_3);
FUNC_9(VAR_9);
}
TEST("remove() to empty")
{
for (i = 0; i < VAR_5; i++) {
FUNC_5(VAR_0->remove(VAR_0, VAR_4[i]));
}
FUNC_8(VAR_0->FUNC_4(VAR_0, NULL, NULL), 0);
ASSERT_FALSE(VAR_0->remove(VAR_0, VAR_4[0]));
FUNC_8(VAR_0->FUNC_4(VAR_0, NULL, NULL), 0);
}
TEST("add() same key")
{
size_t VAR_3;
FUNC_5(VAR_0->FUNC_6(VAR_0, VAR_4[0], value[0], valuesize[0]));
FUNC_5(VAR_0->FUNC_6(VAR_0, VAR_4[0], value[1], valuesize[1]));
char *VAR_9 = (char*) VAR_0->FUNC_7(VAR_0, VAR_4[0], &VAR_3);
ASSERT_NOT_NULL(VAR_9);
ASSERT_EQUAL_MEM(VAR_9, value[1], valuesize[1]);
free(VAR_9);
FUNC_5(VAR_0->remove(VAR_0, VAR_4[0]));
}
TEST("getnext()")
{
size_t VAR_3;
for (i = 0; i < VAR_5; i++) {
FUNC_5(VAR_0->FUNC_6(VAR_0, VAR_4[i], value[i], valuesize[i]));
char *VAR_9 = (char*) VAR_0->FUNC_7(VAR_0, VAR_4[i], &VAR_3);
ASSERT_NOT_NULL(VAR_9);
ASSERT_EQUAL_MEM(VAR_9, value[i], valuesize[i]);
free(VAR_9);
}
FUNC_8(VAR_0->FUNC_4(VAR_0, NULL, NULL), VAR_5);
int VAR_10 = 0;
CLASS_1 obj;
for (i = 0; i < VAR_5; i++) {
FUNC_5(VAR_0->FUNC_10(VAR_0, &obj, &VAR_10));
for (VAR_7 = 0; VAR_7 < VAR_5; VAR_7++) {
if (!FUNC_11(obj.data, value[VAR_7], valuesize[VAR_7]) && VAR_6[VAR_7] == 0)
VAR_6[VAR_7] = 1;
}
free(obj.VAR_11);
free(obj.data);
}
ASSERT_FALSE(VAR_0->FUNC_10(VAR_0, &obj, &VAR_10));
for (i = 0; i < VAR_5; i++) {
FUNC_8(VAR_6[i], 1);
}
FUNC_8(VAR_0->FUNC_4(VAR_0, NULL, NULL), VAR_5);
}
// free table reference object.
VAR_0->free(VAR_0);
free(VAR_1);
QUNIT_END();
| 0.525141 | {'IMPORT_0': 'qlibc.h', 'IMPORT_1': 'errno.h', 'FUNC_0': 'QUNIT_START', 'CLASS_0': 'qhasharr_t', 'VAR_0': 'tbl', 'VAR_1': 'memory', 'FUNC_1': 'qhasharr_calculate_memsize', 'FUNC_2': 'malloc', 'FUNC_3': 'qhasharr', 'VAR_2': 'usedslots', 'FUNC_4': 'size', 'VAR_3': 'size', 'VAR_4': 'key', 'VAR_5': 'TARGET_NUM', 'VAR_6': 'found', 'VAR_7': 'j', 'VAR_8': 'EXTRA_NUM', 'FUNC_5': 'ASSERT_TRUE', 'FUNC_6': 'put', 'VAR_9': 'target_got', 'FUNC_7': 'get', 'FUNC_8': 'ASSERT_EQUAL_INT', 'FUNC_9': 'ASSERT_NULL', 'VAR_10': 'idx', 'CLASS_1': 'qhasharr_obj_t', 'FUNC_10': 'getnext', 'FUNC_11': 'memcmp', 'VAR_11': 'name'} | c | Procedural | 36.55% |
// draw a sprite at 1X, using the passed mask as a transparency bitmap
// instead of the mask that comes with the sprite
void drawsprite1x_mask(int xoff, int yoff, unsigned int snum, uchar mask[MAX_SPRITE_HEIGHT][MAX_SPRITE_WIDTH])
{
int x,y,startx,starty,endx,endy;
if (!sprites[snum].xsize || !sprites[snum].ysize) return;
if (xoff<-sprites[snum].xsize) return;
else if (xoff<0) startx = -xoff;
else startx = 0;
if (yoff<-sprites[snum].ysize) return;
else if (yoff<0) starty = -yoff;
else starty = 0;
if (xoff >= WINDOW_WIDTH)
return;
else if (xoff+sprites[snum].xsize >= WINDOW_WIDTH)
endx = WINDOW_WIDTH - xoff;
else endx = sprites[snum].xsize;
if (yoff >= WINDOW_HEIGHT)
return;
else if (yoff+sprites[snum].ysize >= WINDOW_HEIGHT)
endy = WINDOW_HEIGHT - yoff;
else endy = sprites[snum].ysize;
for(y=starty;y<endy;y++)
for(x=startx;x<endx;x++)
{
if (mask[y][x])
setpixel(x+xoff,y+yoff,sprites[snum].imgdata[y][x]);
}
} | // draw a sprite at 1X, using the passed mask as a transparency bitmap
// instead of the mask that comes with the sprite
void drawsprite1x_mask(int xoff, int yoff, unsigned int snum, uchar VAR_0[MAX_SPRITE_HEIGHT][MAX_SPRITE_WIDTH])
{
int x,y,startx,starty,endx,endy;
if (!sprites[snum].xsize || !sprites[snum].ysize) return;
if (xoff<-sprites[snum].xsize) return;
else if (xoff<0) startx = -xoff;
else startx = 0;
if (yoff<-sprites[snum].ysize) return;
else if (yoff<0) starty = -yoff;
else starty = 0;
if (xoff >= WINDOW_WIDTH)
return;
else if (xoff+sprites[snum].xsize >= WINDOW_WIDTH)
endx = WINDOW_WIDTH - xoff;
else endx = sprites[snum].xsize;
if (yoff >= WINDOW_HEIGHT)
return;
else if (yoff+sprites[snum].ysize >= WINDOW_HEIGHT)
endy = WINDOW_HEIGHT - yoff;
else endy = sprites[snum].ysize;
for(y=starty;y<endy;y++)
for(x=startx;x<endx;x++)
{
if (VAR_0[y][x])
setpixel(x+xoff,y+yoff,sprites[snum].imgdata[y][x]);
}
} | 0.08008 | {'VAR_0': 'mask'} | c | Procedural | 100.00% |
// Copyright 2021 The BladeDISC Authors. 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.
#pragma once
#include <string>
namespace torch {
namespace jit {
class Value;
}
} // namespace torch
namespace torch {
namespace blade {
bool CheckConstAttribute(
const torch::jit::Value* attr_val,
const std::string& op_name,
const std::string& param_name);
} // namespace blade
} // namespace torch
| // Copyright 2021 The BladeDISC Authors. 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.
#pragma once
#include <IMPORT_0>
CLASS_0 VAR_0 {
CLASS_0 jit {
CLASS_2 VAR_1;
}
} // namespace torch
CLASS_0 VAR_0 {
CLASS_0 VAR_2 {
bool FUNC_0(
const CLASS_1::jit::VAR_1* VAR_3,
const CLASS_3::IMPORT_0& VAR_4,
const CLASS_3::IMPORT_0& VAR_5);
} // namespace blade
} // namespace torch
| 0.967233 | {'IMPORT_0': 'string', 'CLASS_0': 'namespace', 'VAR_0': 'torch', 'CLASS_1': 'torch', 'CLASS_2': 'class', 'VAR_1': 'Value', 'VAR_2': 'blade', 'FUNC_0': 'CheckConstAttribute', 'VAR_3': 'attr_val', 'CLASS_3': 'std', 'VAR_4': 'op_name', 'VAR_5': 'param_name'} | c | Procedural | 71.43% |
#ifndef SIMDJSON_SRC_GENERIC_STAGE1_JSON_STRING_SCANNER_H
#ifndef SIMDJSON_AMALGAMATED
#define SIMDJSON_SRC_GENERIC_STAGE1_JSON_STRING_SCANNER_H
#include "generic/stage1/base.h"
#endif // SIMDJSON_AMALGAMATED
namespace simdjson {
namespace SIMDJSON_IMPLEMENTATION {
namespace {
namespace stage1 {
struct json_string_block {
// We spell out the constructors in the hope of resolving inlining issues with Visual Studio 2017
simdjson_inline json_string_block(uint64_t backslash, uint64_t escaped, uint64_t quote, uint64_t in_string) :
_backslash(backslash), _escaped(escaped), _quote(quote), _in_string(in_string) {}
// Escaped characters (characters following an escape() character)
simdjson_inline uint64_t escaped() const { return _escaped; }
// Escape characters (backslashes that are not escaped--i.e. in \\, includes only the first \)
simdjson_inline uint64_t escape() const { return _backslash & ~_escaped; }
// Real (non-backslashed) quotes
simdjson_inline uint64_t quote() const { return _quote; }
// Start quotes of strings
simdjson_inline uint64_t string_start() const { return _quote & _in_string; }
// End quotes of strings
simdjson_inline uint64_t string_end() const { return _quote & ~_in_string; }
// Only characters inside the string (not including the quotes)
simdjson_inline uint64_t string_content() const { return _in_string & ~_quote; }
// Return a mask of whether the given characters are inside a string (only works on non-quotes)
simdjson_inline uint64_t non_quote_inside_string(uint64_t mask) const { return mask & _in_string; }
// Return a mask of whether the given characters are inside a string (only works on non-quotes)
simdjson_inline uint64_t non_quote_outside_string(uint64_t mask) const { return mask & ~_in_string; }
// Tail of string (everything except the start quote)
simdjson_inline uint64_t string_tail() const { return _in_string ^ _quote; }
// backslash characters
uint64_t _backslash;
// escaped characters (backslashed--does not include the hex characters after \u)
uint64_t _escaped;
// real quotes (non-backslashed ones)
uint64_t _quote;
// string characters (includes start quote but not end quote)
uint64_t _in_string;
};
// Scans blocks for string characters, storing the state necessary to do so
class json_string_scanner {
public:
simdjson_inline json_string_block next(const simd::simd8x64<uint8_t>& in);
// Returns either UNCLOSED_STRING or SUCCESS
simdjson_inline error_code finish();
private:
// Intended to be defined by the implementation
simdjson_inline uint64_t find_escaped(uint64_t escape);
simdjson_inline uint64_t find_escaped_branchless(uint64_t escape);
// Whether the last iteration was still inside a string (all 1's = true, all 0's = false).
uint64_t prev_in_string = 0ULL;
// Whether the first character of the next iteration is escaped.
uint64_t prev_escaped = 0ULL;
};
//
// Finds escaped characters (characters following \).
//
// Handles runs of backslashes like \\\" and \\\\" correctly (yielding 0101 and 01010, respectively).
//
// Does this by:
// - Shift the escape mask to get potentially escaped characters (characters after backslashes).
// - Mask escaped sequences that start on *even* bits with 1010101010 (odd bits are escaped, even bits are not)
// - Mask escaped sequences that start on *odd* bits with 0101010101 (even bits are escaped, odd bits are not)
//
// To distinguish between escaped sequences starting on even/odd bits, it finds the start of all
// escape sequences, filters out the ones that start on even bits, and adds that to the mask of
// escape sequences. This causes the addition to clear out the sequences starting on odd bits (since
// the start bit causes a carry), and leaves even-bit sequences alone.
//
// Example:
//
// text | \\\ | \\\"\\\" \\\" \\"\\" |
// escape | xxx | xx xxx xxx xx xx | Removed overflow backslash; will | it into follows_escape
// odd_starts | x | x x x | escape & ~even_bits & ~follows_escape
// even_seq | c| cxxx c xx c | c = carry bit -- will be masked out later
// invert_mask | | cxxx c xx c| even_seq << 1
// follows_escape | xx | x xx xxx xxx xx xx | Includes overflow bit
// escaped | x | x x x x x x x x |
// desired | x | x x x x x x x x |
// text | \\\ | \\\"\\\" \\\" \\"\\" |
//
simdjson_inline uint64_t json_string_scanner::find_escaped_branchless(uint64_t backslash) {
// If there was overflow, pretend the first character isn't a backslash
backslash &= ~prev_escaped;
uint64_t follows_escape = backslash << 1 | prev_escaped;
// Get sequences starting on even bits by clearing out the odd series using +
const uint64_t even_bits = 0x5555555555555555ULL;
uint64_t odd_sequence_starts = backslash & ~even_bits & ~follows_escape;
uint64_t sequences_starting_on_even_bits;
prev_escaped = add_overflow(odd_sequence_starts, backslash, &sequences_starting_on_even_bits);
uint64_t invert_mask = sequences_starting_on_even_bits << 1; // The mask we want to return is the *escaped* bits, not escapes.
// Mask every other backslashed character as an escaped character
// Flip the mask for sequences that start on even bits, to correct them
return (even_bits ^ invert_mask) & follows_escape;
}
//
// Return a mask of all string characters plus end quotes.
//
// prev_escaped is overflow saying whether the next character is escaped.
// prev_in_string is overflow saying whether we're still in a string.
//
// Backslash sequences outside of quotes will be detected in stage 2.
//
simdjson_inline json_string_block json_string_scanner::next(const simd::simd8x64<uint8_t>& in) {
const uint64_t backslash = in.eq('\\');
const uint64_t escaped = find_escaped(backslash);
const uint64_t quote = in.eq('"') & ~escaped;
//
// prefix_xor flips on bits inside the string (and flips off the end quote).
//
// Then we xor with prev_in_string: if we were in a string already, its effect is flipped
// (characters inside strings are outside, and characters outside strings are inside).
//
const uint64_t in_string = prefix_xor(quote) ^ prev_in_string;
//
// Check if we're still in a string at the end of the box so the next block will know
//
// right shift of a signed value expected to be well-defined and standard
// compliant as of C++20, John Regher from Utah U. says this is fine code
//
prev_in_string = uint64_t(static_cast<int64_t>(in_string) >> 63);
// Use ^ to turn the beginning quote off, and the end quote on.
// We are returning a function-local object so either we get a move constructor
// or we get copy elision.
return json_string_block(
backslash,
escaped,
quote,
in_string
);
}
simdjson_inline error_code json_string_scanner::finish() {
if (prev_in_string) {
return UNCLOSED_STRING;
}
return SUCCESS;
}
} // namespace stage1
} // unnamed namespace
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace simdjson
#endif // SIMDJSON_SRC_GENERIC_STAGE1_JSON_STRING_SCANNER_H | #ifndef SIMDJSON_SRC_GENERIC_STAGE1_JSON_STRING_SCANNER_H
#ifndef SIMDJSON_AMALGAMATED
#define SIMDJSON_SRC_GENERIC_STAGE1_JSON_STRING_SCANNER_H
#include "IMPORT_0"
#endif // SIMDJSON_AMALGAMATED
namespace VAR_0 {
namespace SIMDJSON_IMPLEMENTATION {
namespace {
namespace stage1 {
struct json_string_block {
// We spell out the constructors in the hope of resolving inlining issues with Visual Studio 2017
CLASS_0 json_string_block(uint64_t backslash, uint64_t escaped, uint64_t quote, uint64_t in_string) :
_backslash(backslash), _escaped(escaped), _quote(quote), _in_string(in_string) {}
// Escaped characters (characters following an escape() character)
VAR_1 uint64_t escaped() const { return _escaped; }
// Escape characters (backslashes that are not escaped--i.e. in \\, includes only the first \)
VAR_1 uint64_t escape() const { return _backslash & ~_escaped; }
// Real (non-backslashed) quotes
CLASS_0 uint64_t quote() const { return _quote; }
// Start quotes of strings
CLASS_0 uint64_t string_start() const { return _quote & _in_string; }
// End quotes of strings
CLASS_0 uint64_t string_end() const { return _quote & ~_in_string; }
// Only characters inside the string (not including the quotes)
CLASS_0 uint64_t string_content() const { return _in_string & ~_quote; }
// Return a mask of whether the given characters are inside a string (only works on non-quotes)
CLASS_0 uint64_t non_quote_inside_string(uint64_t mask) const { return mask & _in_string; }
// Return a mask of whether the given characters are inside a string (only works on non-quotes)
CLASS_0 uint64_t non_quote_outside_string(uint64_t mask) const { return mask & ~_in_string; }
// Tail of string (everything except the start quote)
CLASS_0 uint64_t string_tail() const { return _in_string ^ _quote; }
// backslash characters
uint64_t _backslash;
// escaped characters (backslashed--does not include the hex characters after \u)
uint64_t _escaped;
// real quotes (non-backslashed ones)
uint64_t _quote;
// string characters (includes start quote but not end quote)
uint64_t _in_string;
};
// Scans blocks for string characters, storing the state necessary to do so
class json_string_scanner {
public:
VAR_1 json_string_block FUNC_0(const simd::VAR_2<uint8_t>& in);
// Returns either UNCLOSED_STRING or SUCCESS
CLASS_0 error_code finish();
private:
// Intended to be defined by the implementation
VAR_1 uint64_t find_escaped(uint64_t escape);
CLASS_0 uint64_t find_escaped_branchless(uint64_t escape);
// Whether the last iteration was still inside a string (all 1's = true, all 0's = false).
uint64_t VAR_3 = 0ULL;
// Whether the first character of the next iteration is escaped.
uint64_t VAR_4 = 0ULL;
};
//
// Finds escaped characters (characters following \).
//
// Handles runs of backslashes like \\\" and \\\\" correctly (yielding 0101 and 01010, respectively).
//
// Does this by:
// - Shift the escape mask to get potentially escaped characters (characters after backslashes).
// - Mask escaped sequences that start on *even* bits with 1010101010 (odd bits are escaped, even bits are not)
// - Mask escaped sequences that start on *odd* bits with 0101010101 (even bits are escaped, odd bits are not)
//
// To distinguish between escaped sequences starting on even/odd bits, it finds the start of all
// escape sequences, filters out the ones that start on even bits, and adds that to the mask of
// escape sequences. This causes the addition to clear out the sequences starting on odd bits (since
// the start bit causes a carry), and leaves even-bit sequences alone.
//
// Example:
//
// text | \\\ | \\\"\\\" \\\" \\"\\" |
// escape | xxx | xx xxx xxx xx xx | Removed overflow backslash; will | it into follows_escape
// odd_starts | x | x x x | escape & ~even_bits & ~follows_escape
// even_seq | c| cxxx c xx c | c = carry bit -- will be masked out later
// invert_mask | | cxxx c xx c| even_seq << 1
// follows_escape | xx | x xx xxx xxx xx xx | Includes overflow bit
// escaped | x | x x x x x x x x |
// desired | x | x x x x x x x x |
// text | \\\ | \\\"\\\" \\\" \\"\\" |
//
CLASS_0 uint64_t json_string_scanner::find_escaped_branchless(uint64_t backslash) {
// If there was overflow, pretend the first character isn't a backslash
backslash &= ~VAR_4;
uint64_t follows_escape = backslash << 1 | VAR_4;
// Get sequences starting on even bits by clearing out the odd series using +
const uint64_t even_bits = 0x5555555555555555ULL;
uint64_t odd_sequence_starts = backslash & ~even_bits & ~follows_escape;
uint64_t sequences_starting_on_even_bits;
VAR_4 = add_overflow(odd_sequence_starts, backslash, &sequences_starting_on_even_bits);
uint64_t invert_mask = sequences_starting_on_even_bits << 1; // The mask we want to return is the *escaped* bits, not escapes.
// Mask every other backslashed character as an escaped character
// Flip the mask for sequences that start on even bits, to correct them
return (even_bits ^ invert_mask) & follows_escape;
}
//
// Return a mask of all string characters plus end quotes.
//
// prev_escaped is overflow saying whether the next character is escaped.
// prev_in_string is overflow saying whether we're still in a string.
//
// Backslash sequences outside of quotes will be detected in stage 2.
//
CLASS_0 json_string_block json_string_scanner::FUNC_0(const simd::VAR_2<VAR_5>& in) {
const uint64_t backslash = in.eq('\\');
const uint64_t escaped = find_escaped(backslash);
const uint64_t quote = in.eq('"') & ~escaped;
//
// prefix_xor flips on bits inside the string (and flips off the end quote).
//
// Then we xor with prev_in_string: if we were in a string already, its effect is flipped
// (characters inside strings are outside, and characters outside strings are inside).
//
const uint64_t in_string = prefix_xor(quote) ^ VAR_3;
//
// Check if we're still in a string at the end of the box so the next block will know
//
// right shift of a signed value expected to be well-defined and standard
// compliant as of C++20, John Regher from Utah U. says this is fine code
//
VAR_3 = uint64_t(VAR_6<int64_t>(in_string) >> 63);
// Use ^ to turn the beginning quote off, and the end quote on.
// We are returning a function-local object so either we get a move constructor
// or we get copy elision.
return json_string_block(
backslash,
escaped,
quote,
in_string
);
}
CLASS_0 error_code json_string_scanner::finish() {
if (VAR_3) {
return UNCLOSED_STRING;
}
return SUCCESS;
}
} // namespace stage1
} // unnamed namespace
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace simdjson
#endif // SIMDJSON_SRC_GENERIC_STAGE1_JSON_STRING_SCANNER_H | 0.149495 | {'IMPORT_0': 'generic/stage1/base.h', 'VAR_0': 'simdjson', 'CLASS_0': 'simdjson_inline', 'VAR_1': 'simdjson_inline', 'FUNC_0': 'next', 'VAR_2': 'simd8x64', 'VAR_3': 'prev_in_string', 'VAR_4': 'prev_escaped', 'VAR_5': 'uint8_t', 'VAR_6': 'static_cast'} | c | error | 0 |
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include "instruction_defs.h"
#include "emulator_functions.h"
#include "modrm.h"
#include "io.h"
/*
* mov al moffs8: 5 bytes
* Copies moffs value to AL. (8 bit)
* 1 byte: op (A0)
* 4 byte: moffs
*/
void mov_al_moffs8(Emulator *emu)
{
uint32_t offset = get_code32(emu, 1);
uint8_t mem_val = get_memory8(emu, DS, offset);
set_register8(emu, AL, mem_val);
emu->eip += 5;
}
/*
* mov eax moffs16/32: 5 bytes
* Copies moffs value to AX/EAX. (16/32 bit)
* 1 byte: op (A1)
* 4 byte: moffs
*/
void mov_eax_moffs32(Emulator *emu)
{
uint32_t offset = get_code32(emu, 1);
uint32_t mem_val = get_memory32(emu, DS, offset);
set_register32(emu, EAX, mem_val);
emu->eip += 5;
}
/*
* mov moffs8 al: 5 bytes
* Copies AL value to moffs. (8 bit)
* 1 byte: op (A2)
* 4 byte: moffs
*/
void mov_moffs8_al(Emulator *emu)
{
uint32_t offset = get_code32(emu, 1);
uint8_t al_val = get_register8(emu, AL);
set_memory8(emu, DS, offset, al_val);
emu->eip += 5;
}
/*
* mov moffs16 ax: 5 bytes
* Copies AX value to moffs. (16 bit)
* 1 byte: op (A3)
* 4 byte: moffs
*/
void mov_moffs16_ax(Emulator *emu)
{
uint32_t offset = get_code32(emu, 1);
uint16_t ax_val = get_register32(emu, EAX);
set_memory16(emu, DS, offset, ax_val);
emu->eip += 5;
}
/*
* mov moffs16/32 eax: 5 bytes
* Copies AX/EAX value to moffs. (16/32 bit)
* 1 byte: op (A3)
* 4 byte: moffs
*/
void mov_moffs32_eax(Emulator *emu)
{
uint32_t offset = get_code32(emu, 1);
uint32_t eax_val = get_register32(emu, EAX);
set_memory32(emu, DS, offset, eax_val);
emu->eip += 5;
}
static void update_counter(Emulator *emu, int reg_index, uint32_t val, uint32_t byte_num)
{
if (is_direction_down(emu))
{
set_register32(emu, reg_index, val - byte_num);
}
else
{
set_register32(emu, reg_index, val + byte_num);
}
}
static void update_esi_edi(Emulator *emu, uint32_t esi_val, uint32_t edi_val, uint32_t byte_num)
{
update_counter(emu, ESI, esi_val, byte_num);
update_counter(emu, EDI, edi_val, byte_num);
}
/*
* movsb: 1 byte
* Moves byte at DS:SI/ESI to ES:DI/EDI.
* 1 byte: op (A4)
*/
void movsb(Emulator *emu)
{
uint32_t esi_val = get_register32(emu, ESI);
uint32_t edi_val = get_register32(emu, EDI);
uint8_t ds_esi_val = get_memory8(emu, DS, esi_val);
set_memory8(emu, ES, edi_val, ds_esi_val);
update_esi_edi(emu, esi_val, edi_val, 1);
emu->eip += 1;
}
/*
* movsd: 1 byte
* Moves word/double word at DS:SI/ESI to ES:DI/EDI.
* 1 byte: op (A5)
*/
void movsd(Emulator *emu)
{
uint32_t esi_val = get_register32(emu, ESI);
uint32_t edi_val = get_register32(emu, EDI);
uint32_t ds_esi_val = get_memory32(emu, DS, esi_val);
set_memory32(emu, ES, edi_val, ds_esi_val);
update_esi_edi(emu, esi_val, edi_val, 4);
emu->eip += 1;
}
/*
* cmpsd: 1 byte
* Compares byte of DS:SI/ESI value and ES:DI/EDI by subtracting in order.
* 1 byte: op (A6)
*/
void cmpsb(Emulator *emu)
{
uint32_t esi_val = get_register32(emu, ESI);
uint32_t edi_val = get_register32(emu, EDI);
uint8_t ds_esi_val = get_memory8(emu, DS, esi_val);
uint8_t es_edi_val = get_memory8(emu, ES, edi_val);
uint64_t result = (uint16_t)ds_esi_val - (uint16_t)es_edi_val;
update_eflags_sub(emu, ds_esi_val, es_edi_val, result);
update_esi_edi(emu, esi_val, edi_val, 1);
emu->eip += 1;
}
/*
* cmpsd: 1 byte
* Compares dword of DS:SI/ESI value and ES:DI/EDI by subtracting in order.
* 1 byte: op (A7)
*/
void cmpsd(Emulator *emu)
{
uint32_t esi_val = get_register32(emu, ESI);
uint32_t edi_val = get_register32(emu, EDI);
uint32_t ds_esi_val = get_memory32(emu, DS, esi_val);
uint32_t es_edi_val = get_memory32(emu, ES, edi_val);
uint64_t result = (uint64_t)ds_esi_val - (uint64_t)es_edi_val;
update_eflags_sub(emu, ds_esi_val, es_edi_val, result);
update_esi_edi(emu, esi_val, edi_val, 4);
emu->eip += 1;
}
/*
* test al imm8: 2 bytes
* Performs logical AND of operands and updates flags. No result store.
* 1 byte: op (A8)
* 1 byte: imm8 value
*/
void test_al_imm8(Emulator *emu)
{
uint8_t imm8_val = get_code8(emu, 1);
uint8_t al_val = get_register8(emu, AL);
uint8_t result = al_val & imm8_val;
update_eflags_logical_ops_8bit(emu, result);
emu->eip += 2;
}
/*
* test eax imm32: 5 bytes
* Performs logical AND of operands and updates flags. No result store.
* 1 byte: op (A9)
* 4 bytes: imm32 value
*/
void test_eax_imm32(Emulator *emu)
{
uint32_t eax_val = get_register32(emu, EAX);
uint32_t imm32_val = get_code32(emu, 1);
uint32_t result = eax_val & imm32_val;
update_eflags_logical_ops(emu, result);
emu->eip += 5;
}
/*
* stosb: 1 byte
* Stores byte value of AL to ES:DI/EDI.
* 1 byte: op (AA)
*/
void stosb(Emulator *emu)
{
uint8_t al_val = get_register8(emu, AL);
uint32_t edi_val = get_register32(emu, EDI);
set_memory8(emu, ES, edi_val, al_val);
update_counter(emu, EDI, edi_val, 1);
emu->eip += 1;
}
/*
* stosb: 1 byte
* Stores double word value of EAX to ES:DI/EDI.
* 1 byte: op (AB)
*/
void stosd(Emulator *emu)
{
uint32_t eax_val = get_register32(emu, EAX);
uint32_t edi_val = get_register32(emu, EDI);
set_memory32(emu, ES, edi_val, eax_val);
update_counter(emu, EDI, edi_val, 4);
emu->eip += 1;
}
/*
* lodsb: 1 byte
* Loads byte value DS:SI/ESI to AL.
* 1 byte: op (AC)
*/
void lodsb(Emulator *emu)
{
uint32_t esi_val = get_register32(emu, ESI);
uint8_t ds_esi_val = get_memory8(emu, DS, esi_val);
set_register8(emu, AL, ds_esi_val);
update_counter(emu, ESI, esi_val, 1);
emu->eip += 1;
}
/*
* lodsd: 1 byte
* Loads double word value DS:SI/ESI to EAX.
* 1 byte: op (AD)
*/
void lodsd(Emulator *emu)
{
uint32_t esi_val = get_register32(emu, ESI);
uint32_t ds_esi_val = get_memory32(emu, DS, esi_val);
set_register32(emu, EAX, ds_esi_val);
update_counter(emu, ESI, esi_val, 4);
emu->eip += 1;
}
/*
* scasb: 1 byte
* Compares AL and ES:DI/EDI by subtracting in order.
* 1 byte: op (AE)
*/
void scasb(Emulator *emu)
{
uint8_t al_val = get_register8(emu, AL);
uint32_t edi_val = get_register32(emu, EDI);
uint8_t es_edi_val = get_memory8(emu, ES, edi_val);
uint64_t result = (uint16_t)al_val - (uint16_t)es_edi_val;
update_eflags_sub(emu, al_val, es_edi_val, result);
update_counter(emu, EDI, edi_val, 1);
emu->eip += 1;
}
/*
* scasd: 1 byte
* Compares EAX and ES:DI/EDI by subtracting in order.
* 1 byte: op (AF)
*/
void scasd(Emulator *emu)
{
uint32_t eax_val = get_register32(emu, EAX);
uint32_t edi_val = get_register32(emu, EDI);
uint32_t es_edi_val = get_memory32(emu, ES, edi_val);
uint64_t result = (uint64_t)eax_val - (uint64_t)es_edi_val;
update_eflags_sub(emu, eax_val, es_edi_val, result);
update_counter(emu, EDI, edi_val, 4);
emu->eip += 1;
} | #include <IMPORT_0>
#include <IMPORT_1>
#include <IMPORT_2>
#include <IMPORT_3>
#include <sys/types.h>
#include "IMPORT_4"
#include "IMPORT_5"
#include "IMPORT_6"
#include "io.h"
/*
* mov al moffs8: 5 bytes
* Copies moffs value to AL. (8 bit)
* 1 byte: op (A0)
* 4 byte: moffs
*/
void mov_al_moffs8(CLASS_0 *VAR_0)
{
uint32_t offset = FUNC_0(VAR_0, 1);
uint8_t mem_val = get_memory8(VAR_0, DS, offset);
set_register8(VAR_0, VAR_1, mem_val);
VAR_0->eip += 5;
}
/*
* mov eax moffs16/32: 5 bytes
* Copies moffs value to AX/EAX. (16/32 bit)
* 1 byte: op (A1)
* 4 byte: moffs
*/
void FUNC_1(CLASS_0 *VAR_0)
{
uint32_t offset = FUNC_0(VAR_0, 1);
uint32_t mem_val = FUNC_2(VAR_0, DS, offset);
FUNC_3(VAR_0, VAR_2, mem_val);
VAR_0->eip += 5;
}
/*
* mov moffs8 al: 5 bytes
* Copies AL value to moffs. (8 bit)
* 1 byte: op (A2)
* 4 byte: moffs
*/
void FUNC_4(CLASS_0 *VAR_0)
{
uint32_t offset = FUNC_0(VAR_0, 1);
uint8_t al_val = FUNC_5(VAR_0, VAR_1);
set_memory8(VAR_0, DS, offset, al_val);
VAR_0->eip += 5;
}
/*
* mov moffs16 ax: 5 bytes
* Copies AX value to moffs. (16 bit)
* 1 byte: op (A3)
* 4 byte: moffs
*/
void FUNC_6(CLASS_0 *VAR_0)
{
uint32_t offset = FUNC_0(VAR_0, 1);
uint16_t VAR_3 = FUNC_7(VAR_0, VAR_2);
set_memory16(VAR_0, DS, offset, VAR_3);
VAR_0->eip += 5;
}
/*
* mov moffs16/32 eax: 5 bytes
* Copies AX/EAX value to moffs. (16/32 bit)
* 1 byte: op (A3)
* 4 byte: moffs
*/
void mov_moffs32_eax(CLASS_0 *VAR_0)
{
uint32_t offset = FUNC_0(VAR_0, 1);
uint32_t VAR_4 = FUNC_7(VAR_0, VAR_2);
set_memory32(VAR_0, DS, offset, VAR_4);
VAR_0->eip += 5;
}
static void FUNC_8(CLASS_0 *VAR_0, int VAR_5, uint32_t VAR_6, uint32_t byte_num)
{
if (FUNC_9(VAR_0))
{
FUNC_3(VAR_0, VAR_5, VAR_6 - byte_num);
}
else
{
FUNC_3(VAR_0, VAR_5, VAR_6 + byte_num);
}
}
static void FUNC_10(CLASS_0 *VAR_0, uint32_t VAR_7, uint32_t VAR_8, uint32_t byte_num)
{
FUNC_8(VAR_0, ESI, VAR_7, byte_num);
FUNC_8(VAR_0, VAR_9, VAR_8, byte_num);
}
/*
* movsb: 1 byte
* Moves byte at DS:SI/ESI to ES:DI/EDI.
* 1 byte: op (A4)
*/
void FUNC_11(CLASS_0 *VAR_0)
{
uint32_t VAR_7 = FUNC_7(VAR_0, ESI);
uint32_t VAR_8 = FUNC_7(VAR_0, VAR_9);
uint8_t VAR_10 = get_memory8(VAR_0, DS, VAR_7);
set_memory8(VAR_0, VAR_11, VAR_8, VAR_10);
FUNC_10(VAR_0, VAR_7, VAR_8, 1);
VAR_0->eip += 1;
}
/*
* movsd: 1 byte
* Moves word/double word at DS:SI/ESI to ES:DI/EDI.
* 1 byte: op (A5)
*/
void FUNC_12(CLASS_0 *VAR_0)
{
uint32_t VAR_7 = FUNC_7(VAR_0, ESI);
uint32_t VAR_8 = FUNC_7(VAR_0, VAR_9);
uint32_t VAR_10 = FUNC_2(VAR_0, DS, VAR_7);
set_memory32(VAR_0, VAR_11, VAR_8, VAR_10);
FUNC_10(VAR_0, VAR_7, VAR_8, 4);
VAR_0->eip += 1;
}
/*
* cmpsd: 1 byte
* Compares byte of DS:SI/ESI value and ES:DI/EDI by subtracting in order.
* 1 byte: op (A6)
*/
void cmpsb(CLASS_0 *VAR_0)
{
uint32_t VAR_7 = FUNC_7(VAR_0, ESI);
uint32_t VAR_8 = FUNC_7(VAR_0, VAR_9);
uint8_t VAR_10 = get_memory8(VAR_0, DS, VAR_7);
uint8_t VAR_12 = get_memory8(VAR_0, VAR_11, VAR_8);
uint64_t VAR_13 = (uint16_t)VAR_10 - (uint16_t)VAR_12;
FUNC_13(VAR_0, VAR_10, VAR_12, VAR_13);
FUNC_10(VAR_0, VAR_7, VAR_8, 1);
VAR_0->eip += 1;
}
/*
* cmpsd: 1 byte
* Compares dword of DS:SI/ESI value and ES:DI/EDI by subtracting in order.
* 1 byte: op (A7)
*/
void FUNC_14(CLASS_0 *VAR_0)
{
uint32_t VAR_7 = FUNC_7(VAR_0, ESI);
uint32_t VAR_8 = FUNC_7(VAR_0, VAR_9);
uint32_t VAR_10 = FUNC_2(VAR_0, DS, VAR_7);
uint32_t VAR_12 = FUNC_2(VAR_0, VAR_11, VAR_8);
uint64_t VAR_13 = (uint64_t)VAR_10 - (uint64_t)VAR_12;
FUNC_13(VAR_0, VAR_10, VAR_12, VAR_13);
FUNC_10(VAR_0, VAR_7, VAR_8, 4);
VAR_0->eip += 1;
}
/*
* test al imm8: 2 bytes
* Performs logical AND of operands and updates flags. No result store.
* 1 byte: op (A8)
* 1 byte: imm8 value
*/
void test_al_imm8(CLASS_0 *VAR_0)
{
uint8_t VAR_14 = FUNC_15(VAR_0, 1);
uint8_t al_val = FUNC_5(VAR_0, VAR_1);
uint8_t VAR_13 = al_val & VAR_14;
FUNC_16(VAR_0, VAR_13);
VAR_0->eip += 2;
}
/*
* test eax imm32: 5 bytes
* Performs logical AND of operands and updates flags. No result store.
* 1 byte: op (A9)
* 4 bytes: imm32 value
*/
void FUNC_17(CLASS_0 *VAR_0)
{
uint32_t VAR_4 = FUNC_7(VAR_0, VAR_2);
uint32_t VAR_15 = FUNC_0(VAR_0, 1);
uint32_t VAR_13 = VAR_4 & VAR_15;
update_eflags_logical_ops(VAR_0, VAR_13);
VAR_0->eip += 5;
}
/*
* stosb: 1 byte
* Stores byte value of AL to ES:DI/EDI.
* 1 byte: op (AA)
*/
void FUNC_18(CLASS_0 *VAR_0)
{
uint8_t al_val = FUNC_5(VAR_0, VAR_1);
uint32_t VAR_8 = FUNC_7(VAR_0, VAR_9);
set_memory8(VAR_0, VAR_11, VAR_8, al_val);
FUNC_8(VAR_0, VAR_9, VAR_8, 1);
VAR_0->eip += 1;
}
/*
* stosb: 1 byte
* Stores double word value of EAX to ES:DI/EDI.
* 1 byte: op (AB)
*/
void FUNC_19(CLASS_0 *VAR_0)
{
uint32_t VAR_4 = FUNC_7(VAR_0, VAR_2);
uint32_t VAR_8 = FUNC_7(VAR_0, VAR_9);
set_memory32(VAR_0, VAR_11, VAR_8, VAR_4);
FUNC_8(VAR_0, VAR_9, VAR_8, 4);
VAR_0->eip += 1;
}
/*
* lodsb: 1 byte
* Loads byte value DS:SI/ESI to AL.
* 1 byte: op (AC)
*/
void FUNC_20(CLASS_0 *VAR_0)
{
uint32_t VAR_7 = FUNC_7(VAR_0, ESI);
uint8_t VAR_10 = get_memory8(VAR_0, DS, VAR_7);
set_register8(VAR_0, VAR_1, VAR_10);
FUNC_8(VAR_0, ESI, VAR_7, 1);
VAR_0->eip += 1;
}
/*
* lodsd: 1 byte
* Loads double word value DS:SI/ESI to EAX.
* 1 byte: op (AD)
*/
void FUNC_21(CLASS_0 *VAR_0)
{
uint32_t VAR_7 = FUNC_7(VAR_0, ESI);
uint32_t VAR_10 = FUNC_2(VAR_0, DS, VAR_7);
FUNC_3(VAR_0, VAR_2, VAR_10);
FUNC_8(VAR_0, ESI, VAR_7, 4);
VAR_0->eip += 1;
}
/*
* scasb: 1 byte
* Compares AL and ES:DI/EDI by subtracting in order.
* 1 byte: op (AE)
*/
void FUNC_22(CLASS_0 *VAR_0)
{
uint8_t al_val = FUNC_5(VAR_0, VAR_1);
uint32_t VAR_8 = FUNC_7(VAR_0, VAR_9);
uint8_t VAR_12 = get_memory8(VAR_0, VAR_11, VAR_8);
uint64_t VAR_13 = (uint16_t)al_val - (uint16_t)VAR_12;
FUNC_13(VAR_0, al_val, VAR_12, VAR_13);
FUNC_8(VAR_0, VAR_9, VAR_8, 1);
VAR_0->eip += 1;
}
/*
* scasd: 1 byte
* Compares EAX and ES:DI/EDI by subtracting in order.
* 1 byte: op (AF)
*/
void FUNC_23(CLASS_0 *VAR_0)
{
uint32_t VAR_4 = FUNC_7(VAR_0, VAR_2);
uint32_t VAR_8 = FUNC_7(VAR_0, VAR_9);
uint32_t VAR_12 = FUNC_2(VAR_0, VAR_11, VAR_8);
uint64_t VAR_13 = (uint64_t)VAR_4 - (uint64_t)VAR_12;
FUNC_13(VAR_0, VAR_4, VAR_12, VAR_13);
FUNC_8(VAR_0, VAR_9, VAR_8, 4);
VAR_0->eip += 1;
} | 0.681443 | {'IMPORT_0': 'stdint.h', 'IMPORT_1': 'string.h', 'IMPORT_2': 'stdio.h', 'IMPORT_3': 'stdlib.h', 'IMPORT_4': 'instruction_defs.h', 'IMPORT_5': 'emulator_functions.h', 'IMPORT_6': 'modrm.h', 'CLASS_0': 'Emulator', 'VAR_0': 'emu', 'FUNC_0': 'get_code32', 'VAR_1': 'AL', 'FUNC_1': 'mov_eax_moffs32', 'FUNC_2': 'get_memory32', 'FUNC_3': 'set_register32', 'VAR_2': 'EAX', 'FUNC_4': 'mov_moffs8_al', 'FUNC_5': 'get_register8', 'FUNC_6': 'mov_moffs16_ax', 'VAR_3': 'ax_val', 'FUNC_7': 'get_register32', 'VAR_4': 'eax_val', 'FUNC_8': 'update_counter', 'VAR_5': 'reg_index', 'VAR_6': 'val', 'FUNC_9': 'is_direction_down', 'FUNC_10': 'update_esi_edi', 'VAR_7': 'esi_val', 'VAR_8': 'edi_val', 'VAR_9': 'EDI', 'FUNC_11': 'movsb', 'VAR_10': 'ds_esi_val', 'VAR_11': 'ES', 'FUNC_12': 'movsd', 'VAR_12': 'es_edi_val', 'VAR_13': 'result', 'FUNC_13': 'update_eflags_sub', 'FUNC_14': 'cmpsd', 'VAR_14': 'imm8_val', 'FUNC_15': 'get_code8', 'FUNC_16': 'update_eflags_logical_ops_8bit', 'FUNC_17': 'test_eax_imm32', 'VAR_15': 'imm32_val', 'FUNC_18': 'stosb', 'FUNC_19': 'stosd', 'FUNC_20': 'lodsb', 'FUNC_21': 'lodsd', 'FUNC_22': 'scasb', 'FUNC_23': 'scasd'} | c | Procedural | 100.00% |
extern int fout_calib_mom2mom_iter_FLAG;
extern int mom2mom_step_geometric_FLAG;
extern int fout_get_optimal_step_mom2mom_FLAG;
// calibration function given benchmark (moments, parameters, eqm) and target moments - this function uses fmin() as the inner loop
int calib_mom2mom(double *momBM, double *paramBM, double *xeqmBM,
double *momXP, double *paramXP, double *xeqmXP,
double (*fct_calib)(double *p), int (*constraint_set)(double *p),
void (*mom_extract)(double *m), double *gxeqm,
int Nmom, int Nxeqm, int Nparam, ParamFmin pm_fmin, double percent_step);
// obsolete
int calib_mom2mom(double *momBM, double *paramBM, double *xeqmBM,
double *momXP, double *paramXP, double *xeqmXP,
double (*fct_calib)(double *p), int (*constraint_set)(double *p),
void (*mom_extract)(double *m), double *gxeqm,
int Nmom, int Nxeqm, int Nparam, int Nsteps,
int Nmaxrecr, int& jrecr, ParamFmin pm_fmin, double percent_Nstep);
// calibration using newton_method() for inner loop
int calib_mom2mom(double *momBM, double *paramBM, double *xeqmBM,
double *momXP, double *paramXP, double *xeqmXP,
void (*fct_calib)(double *fp, double *p), int (*constraint_set)(double *p),
void (*mom_extract)(double *m), double *gxeqm,
int Nmom, int Nxeqm, int Nparam, ParamNewton pm_newt, double percent_step);
// writes diag for calib_mom2mom recursion
void fout_calib_mom2mom_recr_diag(ofstream& fout, double *momBM_tmp, double *paramBM_tmp,
double *xeqmBM_tmp, double *momXP_tmp,
int Nmom, int Nxeqm, int Nparam,
int Nsteps, int Nmaxrecr, int jrecr);
// writes fct call summary upon exit
void fout_mom2mom_final(ofstream& fout, double *momBM_tmp, double *paramCur,
double *xeqmCur, double *momCur, double *paramXP_tmp,
double *xeqmXP_tmp, int Nmom, int Nxeqm, int Nparam,
int Nsteps, double percent_step, double time_used);
// fct call iter diag
void fout_mom2mom_iter(ofstream& fout, double *momBM, double *paramBM,
double *xeqmBM, double *momCur, double *paramCur,
double *xeqmCur, int Nmom, int Nxeqm, int Nparam,
int i_step, int Nsteps, double time_used);
void get_optimal_step(double *x_BM, double *x_XP, int Nx, double percent_Nstep,
double *dx, int& Nsteps);
void fout_get_optimal_step(ofstream& fout, double max_change, double min_change,
double Napprox, int Nsteps, double percent_Nstep,
double *x_BM, double *x_XP, double *change, double *dmom,
int Nmom);
// given a benchmark set of parameters and its eqm, computes the eqm for another set of parameters by proceeding to new parameters in constant percentage changes (assumes all parameters are positive)
int eqm2eqm(double *param_bm, double *eqm_bm, double *param_target, double *eqm_target,
double percent_step, int Nparam, int Neqm, void (*param_extract)(double *p),
void (*fct)(double *fx, double *x), int (*fct_constraints)(double *x),
ParamNewton pm_newt, ofstream& fout);
int eqm2eqm(double *param_bm, double *eqm_bm, double *param_target, double *eqm_target,
double percent_step, int Nparam, int Neqm, void (*param_extract)(double *p),
void (*fct)(double *fx, double *x), int (*fct_constraints)(double *x),
ParamNewton pm_newt);
// summary/diagnostics for eqm2eqm()
void fout_eqm2eqm_iter(ofstream& fout, double *param_bm, double *param_cur, double *param_target,
int Nparam, double *eqm_bm, double *eqm_cur, int Neqm, double timeused,
int i, int Nsteps);
void fout_eqm2eqm_iter_error(ofstream& fout, double *param_bm, double *param_cur,
double *param_target, int Nparam,
double *eqm_bm, double *eqm_cur, int Neqm, int Nsteps);
// fct summary for eqm2eqm_solver
void fout_eqm2eqm_final(ofstream& fout, double *param_BM, double *xeqm_BM, double *param_XP,
double *xeqm_XP, int Nparam_tmp, int Nx_tmp, int Nsteps, double timeused);
| extern int VAR_0;
extern int VAR_1;
extern int fout_get_optimal_step_mom2mom_FLAG;
// calibration function given benchmark (moments, parameters, eqm) and target moments - this function uses fmin() as the inner loop
int FUNC_0(double *momBM, double *paramBM, double *VAR_2,
double *VAR_3, double *VAR_4, double *xeqmXP,
double (*VAR_5)(double *VAR_6), int (*constraint_set)(double *VAR_6),
void (*mom_extract)(double *VAR_7), double *gxeqm,
int VAR_8, int VAR_9, int VAR_10, ParamFmin VAR_11, double percent_step);
// obsolete
int FUNC_0(double *momBM, double *paramBM, double *VAR_2,
double *VAR_3, double *VAR_4, double *xeqmXP,
double (*VAR_5)(double *VAR_6), int (*constraint_set)(double *VAR_6),
void (*mom_extract)(double *VAR_7), double *gxeqm,
int VAR_8, int VAR_9, int VAR_10, int VAR_12,
int Nmaxrecr, int& VAR_13, ParamFmin VAR_11, double VAR_14);
// calibration using newton_method() for inner loop
int FUNC_0(double *momBM, double *paramBM, double *VAR_2,
double *VAR_3, double *VAR_4, double *xeqmXP,
void (*VAR_5)(double *VAR_15, double *VAR_6), int (*constraint_set)(double *VAR_6),
void (*mom_extract)(double *VAR_7), double *gxeqm,
int VAR_8, int VAR_9, int VAR_10, ParamNewton VAR_16, double percent_step);
// writes diag for calib_mom2mom recursion
void FUNC_1(ofstream& fout, double *VAR_17, double *paramBM_tmp,
double *xeqmBM_tmp, double *VAR_18,
int VAR_8, int VAR_9, int VAR_10,
int VAR_12, int Nmaxrecr, int VAR_13);
// writes fct call summary upon exit
void fout_mom2mom_final(ofstream& fout, double *VAR_17, double *VAR_19,
double *VAR_20, double *VAR_21, double *VAR_22,
double *VAR_23, int VAR_8, int VAR_9, int VAR_10,
int VAR_12, double percent_step, double VAR_24);
// fct call iter diag
void fout_mom2mom_iter(ofstream& fout, double *momBM, double *paramBM,
double *VAR_2, double *VAR_21, double *VAR_19,
double *VAR_20, int VAR_8, int VAR_9, int VAR_10,
int i_step, int VAR_12, double VAR_24);
void FUNC_2(double *x_BM, double *x_XP, int VAR_25, double VAR_14,
double *dx, int& VAR_12);
void FUNC_3(ofstream& fout, double max_change, double min_change,
double VAR_26, int VAR_12, double VAR_14,
double *x_BM, double *x_XP, double *change, double *VAR_27,
int VAR_8);
// given a benchmark set of parameters and its eqm, computes the eqm for another set of parameters by proceeding to new parameters in constant percentage changes (assumes all parameters are positive)
int FUNC_4(double *param_bm, double *VAR_28, double *param_target, double *VAR_29,
double percent_step, int VAR_10, int VAR_30, void (*param_extract)(double *VAR_6),
void (*fct)(double *fx, double *VAR_31), int (*fct_constraints)(double *VAR_31),
ParamNewton VAR_16, ofstream& fout);
int FUNC_4(double *param_bm, double *VAR_28, double *param_target, double *VAR_29,
double percent_step, int VAR_10, int VAR_30, void (*param_extract)(double *VAR_6),
void (*fct)(double *fx, double *VAR_31), int (*fct_constraints)(double *VAR_31),
ParamNewton VAR_16);
// summary/diagnostics for eqm2eqm()
void fout_eqm2eqm_iter(ofstream& fout, double *param_bm, double *VAR_32, double *param_target,
int VAR_10, double *VAR_28, double *VAR_33, int VAR_30, double timeused,
int VAR_34, int VAR_12);
void FUNC_5(ofstream& fout, double *param_bm, double *VAR_32,
double *param_target, int VAR_10,
double *VAR_28, double *VAR_33, int VAR_30, int VAR_12);
// fct summary for eqm2eqm_solver
void fout_eqm2eqm_final(ofstream& fout, double *VAR_35, double *VAR_36, double *param_XP,
double *xeqm_XP, int Nparam_tmp, int Nx_tmp, int VAR_12, double timeused);
| 0.551383 | {'VAR_0': 'fout_calib_mom2mom_iter_FLAG', 'VAR_1': 'mom2mom_step_geometric_FLAG', 'FUNC_0': 'calib_mom2mom', 'VAR_2': 'xeqmBM', 'VAR_3': 'momXP', 'VAR_4': 'paramXP', 'VAR_5': 'fct_calib', 'VAR_6': 'p', 'VAR_7': 'm', 'VAR_8': 'Nmom', 'VAR_9': 'Nxeqm', 'VAR_10': 'Nparam', 'VAR_11': 'pm_fmin', 'VAR_12': 'Nsteps', 'VAR_13': 'jrecr', 'VAR_14': 'percent_Nstep', 'VAR_15': 'fp', 'VAR_16': 'pm_newt', 'FUNC_1': 'fout_calib_mom2mom_recr_diag', 'VAR_17': 'momBM_tmp', 'VAR_18': 'momXP_tmp', 'VAR_19': 'paramCur', 'VAR_20': 'xeqmCur', 'VAR_21': 'momCur', 'VAR_22': 'paramXP_tmp', 'VAR_23': 'xeqmXP_tmp', 'VAR_24': 'time_used', 'FUNC_2': 'get_optimal_step', 'VAR_25': 'Nx', 'FUNC_3': 'fout_get_optimal_step', 'VAR_26': 'Napprox', 'VAR_27': 'dmom', 'FUNC_4': 'eqm2eqm', 'VAR_28': 'eqm_bm', 'VAR_29': 'eqm_target', 'VAR_30': 'Neqm', 'VAR_31': 'x', 'VAR_32': 'param_cur', 'VAR_33': 'eqm_cur', 'VAR_34': 'i', 'FUNC_5': 'fout_eqm2eqm_iter_error', 'VAR_35': 'param_BM', 'VAR_36': 'xeqm_BM'} | c | Procedural | 100.00% |
/**
* Copyright © 2017 <NAME> - INDIGO-DataCloud
*
* 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 RPC_MANAGER_H_
#define RPC_MANAGER_H_
#include "Manager.h"
#include <unistd.h>
#include <xmlrpc-c/base.hpp>
#include <xmlrpc-c/registry.hpp>
#include <xmlrpc-c/server_abyss.hpp>
using namespace std;
//extern "C" void * rm_action_loop(void *arg);
extern "C" void * rm_xml_server_loop(void *arg);
class RPCManager: public Manager
{
public:
RPCManager(
const string& _one_endpoint,
const string& _port,
// int _port,
int _max_conn,
int _max_conn_backlog,
int _keepalive_timeout,
int _keepalive_max_conn,
int _timeout,
const string _xml_log_file,
const string _call_log_format,
const string _listen_address,
int _message_size);
~RPCManager(){};
/** This functions starts the associated listener thread (XML server), and
creates a new thread for the Request Manager. This thread will wait in
an action loop till it receives ACTION_FINALIZE. */
int start();
pthread_t get_thread_id() const
{
// return rm_thread;
return rm_xml_server_thread;
};
void finalize() {
lock();
AbyssServer->terminate();
pthread_cond_signal(&cond);
pthread_cancel(rm_xml_server_thread);
pthread_join(rm_xml_server_thread,0);
// AbyssServer->terminate();
delete AbyssServer;
if ( socket_fd != -1 )
{
close(socket_fd);
}
unlock();
};
private:
/// Friends, thread functions require C-linkage
friend void * rm_xml_server_loop(void *arg);
//friend void * rm_action_loop(void *arg);
pthread_attr_t pattr; /// Thread attributes
pthread_t rm_thread; /// Thread ID for the RPCMananger
pthread_t rm_xml_server_thread; /// Thread ID for the XML server
string one_endpoint;
string port;
//int port; /// Port number where connection is opened
int socket_fd;
int max_conn;
int max_conn_backlog;
int keepalive_timeout;
int keepalive_max_conn;
int timeout;
string xml_log_file;
string call_log_format;
string listen_address;
int message_size;
bool setup_socket();
int setup_socket_new();
void register_xml_methods();
xmlrpc_c::registry RPCManagerRegistry;
xmlrpc_c::serverAbyss * AbyssServer;
};
#endif
| /**
* Copyright © 2017 <NAME> - INDIGO-DataCloud
*
* 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 VAR_0
#define VAR_0
#include "IMPORT_0"
#include <unistd.h>
#include <IMPORT_1>
#include <IMPORT_2>
#include <IMPORT_3>
CLASS_0 VAR_1 VAR_2;
//extern "C" void * rm_action_loop(void *arg);
extern "C" void * rm_xml_server_loop(void *VAR_3);
CLASS_1 VAR_4: VAR_5 Manager
{
public:
FUNC_0(
VAR_6 VAR_7& _one_endpoint,
VAR_6 VAR_7& VAR_8,
// int _port,
VAR_9 VAR_10,
VAR_9 VAR_11,
VAR_9 VAR_12,
VAR_9 VAR_13,
VAR_9 VAR_14,
VAR_6 VAR_7 _xml_log_file,
VAR_6 VAR_7 _call_log_format,
VAR_6 VAR_7 VAR_15,
VAR_9 VAR_16);
~FUNC_0(){};
/** This functions starts the associated listener thread (XML server), and
creates a new thread for the Request Manager. This thread will wait in
an action loop till it receives ACTION_FINALIZE. */
int FUNC_1();
CLASS_3 FUNC_2() const
{
// return rm_thread;
return VAR_17;
};
void finalize() {
FUNC_3();
VAR_18->FUNC_4();
FUNC_5(&VAR_19);
pthread_cancel(VAR_17);
pthread_join(VAR_17,0);
// AbyssServer->terminate();
CLASS_4 VAR_18;
if ( VAR_20 != -1 )
{
FUNC_6(VAR_20);
}
unlock();
};
private:
/// Friends, thread functions require C-linkage
VAR_21 void * rm_xml_server_loop(void *VAR_3);
//friend void * rm_action_loop(void *arg);
pthread_attr_t VAR_22; /// Thread attributes
CLASS_3 VAR_23; /// Thread ID for the RPCMananger
CLASS_3 VAR_17; /// Thread ID for the XML server
CLASS_2 VAR_24;
CLASS_2 VAR_25;
//int port; /// Port number where connection is opened
int VAR_20;
int VAR_26;
int VAR_27;
int VAR_28;
int keepalive_max_conn;
int timeout;
CLASS_2 VAR_29;
CLASS_2 VAR_30;
CLASS_2 VAR_31;
int VAR_32;
bool FUNC_7();
int setup_socket_new();
void FUNC_8();
xmlrpc_c::VAR_33 VAR_34;
xmlrpc_c::VAR_35 * VAR_18;
};
#endif
| 0.808445 | {'VAR_0': 'RPC_MANAGER_H_', 'IMPORT_0': 'Manager.h', 'IMPORT_1': 'xmlrpc-c/base.hpp', 'IMPORT_2': 'xmlrpc-c/registry.hpp', 'IMPORT_3': 'xmlrpc-c/server_abyss.hpp', 'CLASS_0': 'using', 'VAR_1': 'namespace', 'VAR_2': 'std', 'VAR_3': 'arg', 'CLASS_1': 'class', 'VAR_4': 'RPCManager', 'FUNC_0': 'RPCManager', 'VAR_5': 'public', 'VAR_6': 'const', 'VAR_7': 'string', 'CLASS_2': 'string', 'VAR_8': '_port', 'VAR_9': 'int', 'VAR_10': '_max_conn', 'VAR_11': '_max_conn_backlog', 'VAR_12': '_keepalive_timeout', 'VAR_13': '_keepalive_max_conn', 'VAR_14': '_timeout', 'VAR_15': '_listen_address', 'VAR_16': '_message_size', 'FUNC_1': 'start', 'CLASS_3': 'pthread_t', 'FUNC_2': 'get_thread_id', 'VAR_17': 'rm_xml_server_thread', 'FUNC_3': 'lock', 'VAR_18': 'AbyssServer', 'FUNC_4': 'terminate', 'FUNC_5': 'pthread_cond_signal', 'VAR_19': 'cond', 'CLASS_4': 'delete', 'VAR_20': 'socket_fd', 'FUNC_6': 'close', 'VAR_21': 'friend', 'VAR_22': 'pattr', 'VAR_23': 'rm_thread', 'VAR_24': 'one_endpoint', 'VAR_25': 'port', 'VAR_26': 'max_conn', 'VAR_27': 'max_conn_backlog', 'VAR_28': 'keepalive_timeout', 'VAR_29': 'xml_log_file', 'VAR_30': 'call_log_format', 'VAR_31': 'listen_address', 'VAR_32': 'message_size', 'FUNC_7': 'setup_socket', 'FUNC_8': 'register_xml_methods', 'VAR_33': 'registry', 'VAR_34': 'RPCManagerRegistry', 'VAR_35': 'serverAbyss'} | c | Hibrido | 100.00% |
#pragma once
#pragma warning(disable:4996)
#include <cstddef>
#include <string>
using namespace std::string_literals;
#define _STR(x) x
#define STR(x) _STR(x)
namespace ServWork
{
using byte = unsigned char;
using uint8 = unsigned char;
using uint16 = unsigned short;
using uint32 = unsigned int;
using uint64 = unsigned long long;
using int8 = signed char;
using int16 = signed short;
using int32 = signed int;
using int64 = signed long long;
using char_t = char;
using String = std::string;
#pragma pack(push, 1)
extern "C" struct Header
{
uint8 check;
uint8 id;
uint32 size;
};
#pragma pack(pop)
constexpr auto HEADER_SIZE = sizeof(Header);
constexpr char_t ROOT_PATH[] = ROOT_DIR;
constexpr char_t CUR_PATH[] = CUR_DIR;
template <typename T, size_t N>
constexpr size_t ArrSize(T(&)[N]) noexcept { return N; }
} | #pragma once
#pragma warning(disable:4996)
#include <cstddef>
#include <string>
using namespace std::string_literals;
#define _STR(x) x
#define STR(x) _STR(x)
namespace ServWork
{
using byte = unsigned char;
using uint8 = unsigned char;
using uint16 = unsigned short;
using uint32 = unsigned int;
using VAR_0 = unsigned long long;
using int8 = VAR_1 char;
using int16 = VAR_1 short;
using int32 = VAR_1 int;
using int64 = VAR_1 long long;
using char_t = char;
using String = std::string;
#pragma pack(push, 1)
extern "C" struct Header
{
uint8 check;
uint8 id;
uint32 size;
};
#pragma pack(pop)
constexpr auto HEADER_SIZE = sizeof(Header);
constexpr char_t ROOT_PATH[] = ROOT_DIR;
constexpr char_t VAR_2[] = CUR_DIR;
template <typename T, size_t N>
constexpr size_t ArrSize(T(&)[N]) noexcept { return N; }
} | 0.075939 | {'VAR_0': 'uint64', 'VAR_1': 'signed', 'VAR_2': 'CUR_PATH'} | c | Procedural | 24.63% |
/*
* linux/include/asm-arm/mach/irq.h
*
* Copyright (C) 1995-2000 <NAME>.
*
* 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.
*/
#ifndef __ASM_ARM_MACH_IRQ_H
#define __ASM_ARM_MACH_IRQ_H
struct irqdesc;
struct pt_regs;
struct seq_file;
typedef void (*irq_handler_t)(unsigned int, struct irqdesc *, struct pt_regs *);
typedef void (*irq_control_t)(unsigned int);
struct irqchip {
/*
* Acknowledge the IRQ.
* If this is a level-based IRQ, then it is expected to mask the IRQ
* as well.
*/
void (*ack)(unsigned int);
/*
* Mask the IRQ in hardware.
*/
void (*mask)(unsigned int);
/*
* Unmask the IRQ in hardware.
*/
void (*unmask)(unsigned int);
/*
* Re-run the IRQ
*/
void (*rerun)(unsigned int);
/*
* Set the type of the IRQ.
*/
int (*type)(unsigned int, unsigned int);
};
struct irqdesc {
irq_handler_t handle;
struct irqchip *chip;
struct irqaction *action;
unsigned int enabled : 1; /* IRQ is currently enabled */
unsigned int triggered: 1; /* IRQ has occurred */
unsigned int running : 1; /* IRQ is running */
unsigned int pending : 1; /* IRQ is pending */
unsigned int probing : 1; /* IRQ in use for a probe */
unsigned int probe_ok : 1; /* IRQ can be used for probe */
unsigned int valid : 1; /* IRQ claimable */
unsigned int noautoenable : 1; /* don't automatically enable IRQ */
unsigned int unused :23;
unsigned int depth; /* disable depth */
/*
* IRQ lock detection
*/
unsigned int lck_cnt;
unsigned int lck_pc;
unsigned int lck_jif;
};
extern struct irqdesc irq_desc[];
/*
* This is internal. Do not use it.
*/
extern void (*init_arch_irq)(void);
extern void init_FIQ(void);
extern int show_fiq_list(struct seq_file *, void *);
void __set_irq_handler(unsigned int irq, irq_handler_t, int);
/*
* External stuff.
*/
#define set_irq_handler(irq,handler) __set_irq_handler(irq,handler,0)
#define set_irq_chained_handler(irq,handler) __set_irq_handler(irq,handler,1)
void set_irq_chip(unsigned int irq, struct irqchip *);
void set_irq_flags(unsigned int irq, unsigned int flags);
#ifdef not_yet
/*
* This is to be used by the top-level machine IRQ decoder only.
*/
static inline void call_irq(struct pt_regs *regs, unsigned int irq)
{
struct irqdesc *desc = irq_desc + irq;
spin_lock(&irq_controller_lock);
desc->handle(irq, desc, regs);
spin_unlock(&irq_controller_lock);
if (softirq_pending(smp_processor_id()))
do_softirq();
}
#endif
#define IRQF_VALID (1 << 0)
#define IRQF_PROBE (1 << 1)
#define IRQF_NOAUTOEN (1 << 2)
/*
* Built-in IRQ handlers.
*/
void do_level_IRQ(unsigned int irq, struct irqdesc *desc, struct pt_regs *regs);
void do_edge_IRQ(unsigned int irq, struct irqdesc *desc, struct pt_regs *regs);
void do_simple_IRQ(unsigned int irq, struct irqdesc *desc, struct pt_regs *regs);
void do_bad_IRQ(unsigned int irq, struct irqdesc *desc, struct pt_regs *regs);
void dummy_mask_unmask_irq(unsigned int irq);
#endif
| /*
* linux/include/asm-arm/mach/irq.h
*
* Copyright (C) 1995-2000 <NAME>.
*
* 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.
*/
#ifndef VAR_0
#define VAR_0
struct CLASS_0;
struct CLASS_1;
struct CLASS_2;
typedef void (*CLASS_3)(unsigned int, struct CLASS_0 *, struct CLASS_1 *);
typedef void (*CLASS_4)(unsigned int);
struct CLASS_5 {
/*
* Acknowledge the IRQ.
* If this is a level-based IRQ, then it is expected to mask the IRQ
* as well.
*/
void (*FUNC_0)(unsigned int);
/*
* Mask the IRQ in hardware.
*/
void (*FUNC_1)(unsigned int);
/*
* Unmask the IRQ in hardware.
*/
void (*FUNC_2)(unsigned int);
/*
* Re-run the IRQ
*/
void (*FUNC_3)(unsigned int);
/*
* Set the type of the IRQ.
*/
int (*FUNC_4)(unsigned int, unsigned int);
};
struct CLASS_0 {
CLASS_3 VAR_1;
struct CLASS_5 *VAR_2;
struct CLASS_6 *VAR_3;
unsigned int VAR_4 : 1; /* IRQ is currently enabled */
unsigned int VAR_5: 1; /* IRQ has occurred */
unsigned int VAR_6 : 1; /* IRQ is running */
unsigned int VAR_7 : 1; /* IRQ is pending */
unsigned int VAR_8 : 1; /* IRQ in use for a probe */
unsigned int VAR_9 : 1; /* IRQ can be used for probe */
unsigned int VAR_10 : 1; /* IRQ claimable */
unsigned int VAR_11 : 1; /* don't automatically enable IRQ */
unsigned int VAR_12 :23;
unsigned int VAR_13; /* disable depth */
/*
* IRQ lock detection
*/
unsigned int VAR_14;
unsigned int VAR_15;
unsigned int VAR_16;
};
extern struct CLASS_0 VAR_17[];
/*
* This is internal. Do not use it.
*/
extern void (*VAR_18)(void);
extern void FUNC_6(void);
extern int FUNC_7(struct CLASS_2 *, void *);
void FUNC_8(unsigned int VAR_19, CLASS_3, int);
/*
* External stuff.
*/
#define FUNC_9(VAR_19,VAR_20) __set_irq_handler(irq,handler,0)
#define FUNC_10(VAR_19,VAR_20) __set_irq_handler(irq,handler,1)
void FUNC_11(unsigned int VAR_19, struct CLASS_5 *);
void FUNC_12(unsigned int VAR_19, unsigned int VAR_21);
#ifdef not_yet
/*
* This is to be used by the top-level machine IRQ decoder only.
*/
static inline void FUNC_13(struct CLASS_1 *VAR_22, unsigned int VAR_19)
{
struct CLASS_0 *VAR_23 = VAR_17 + VAR_19;
FUNC_14(&VAR_24);
VAR_23->FUNC_5(VAR_19, VAR_23, VAR_22);
FUNC_15(&VAR_24);
if (FUNC_16(FUNC_17()))
FUNC_18();
}
#endif
#define VAR_25 (1 << 0)
#define VAR_26 (1 << 1)
#define VAR_27 (1 << 2)
/*
* Built-in IRQ handlers.
*/
void FUNC_19(unsigned int VAR_19, struct CLASS_0 *VAR_23, struct CLASS_1 *VAR_22);
void FUNC_20(unsigned int VAR_19, struct CLASS_0 *VAR_23, struct CLASS_1 *VAR_22);
void FUNC_21(unsigned int VAR_19, struct CLASS_0 *VAR_23, struct CLASS_1 *VAR_22);
void FUNC_22(unsigned int VAR_19, struct CLASS_0 *VAR_23, struct CLASS_1 *VAR_22);
void FUNC_23(unsigned int VAR_19);
#endif
| 0.979563 | {'VAR_0': '__ASM_ARM_MACH_IRQ_H', 'CLASS_0': 'irqdesc', 'CLASS_1': 'pt_regs', 'CLASS_2': 'seq_file', 'CLASS_3': 'irq_handler_t', 'CLASS_4': 'irq_control_t', 'CLASS_5': 'irqchip', 'FUNC_0': 'ack', 'FUNC_1': 'mask', 'FUNC_2': 'unmask', 'FUNC_3': 'rerun', 'FUNC_4': 'type', 'VAR_1': 'handle', 'FUNC_5': 'handle', 'VAR_2': 'chip', 'CLASS_6': 'irqaction', 'VAR_3': 'action', 'VAR_4': 'enabled', 'VAR_5': 'triggered', 'VAR_6': 'running', 'VAR_7': 'pending', 'VAR_8': 'probing', 'VAR_9': 'probe_ok', 'VAR_10': 'valid', 'VAR_11': 'noautoenable', 'VAR_12': 'unused', 'VAR_13': 'depth', 'VAR_14': 'lck_cnt', 'VAR_15': 'lck_pc', 'VAR_16': 'lck_jif', 'VAR_17': 'irq_desc', 'VAR_18': 'init_arch_irq', 'FUNC_6': 'init_FIQ', 'FUNC_7': 'show_fiq_list', 'FUNC_8': '__set_irq_handler', 'VAR_19': 'irq', 'FUNC_9': 'set_irq_handler', 'VAR_20': 'handler', 'FUNC_10': 'set_irq_chained_handler', 'FUNC_11': 'set_irq_chip', 'FUNC_12': 'set_irq_flags', 'VAR_21': 'flags', 'FUNC_13': 'call_irq', 'VAR_22': 'regs', 'VAR_23': 'desc', 'FUNC_14': 'spin_lock', 'VAR_24': 'irq_controller_lock', 'FUNC_15': 'spin_unlock', 'FUNC_16': 'softirq_pending', 'FUNC_17': 'smp_processor_id', 'FUNC_18': 'do_softirq', 'VAR_25': 'IRQF_VALID', 'VAR_26': 'IRQF_PROBE', 'VAR_27': 'IRQF_NOAUTOEN', 'FUNC_19': 'do_level_IRQ', 'FUNC_20': 'do_edge_IRQ', 'FUNC_21': 'do_simple_IRQ', 'FUNC_22': 'do_bad_IRQ', 'FUNC_23': 'dummy_mask_unmask_irq'} | c | Hibrido | 12.95% |
#include <stdio.h>
#define N 14
long long int hole[N]={0,};
long long int he[N]={0,};
int main(void)
{
int k1,k2,flag;
long long int score=0;
for(k1=0;k1<N;k1++) scanf("%I64d",&hole[k1]);
for(k1=0;k1<N;k1++)
{
if(hole[k1]>0)
{
for(k2=0;k2<N;k2++) he[k2]=hole[k2];
long long int m=hole[k1];
long long int m1=m/N;
long long int m2=m%N;
hole[k1]=0;
for(k2=0;k2<N;k2++) hole[k2]+=m1;
flag=0;
k2=0;
while(m2)
{
if(k2==k1)flag=1;
if((flag)&&(m2--)) hole[(k2+1)%N]+=1;
k2++;
}
long long int s=0;
for(k2=0;k2<N;k2++)
{
if((hole[k2]%2)==0) s+=hole[k2];
}
if(s>score)score=s;
for(k2=0;k2<N;k2++) hole[k2]=he[k2];
}
}
printf("%I64d",score);
}
| #include <stdio.h>
#define N 14
long long int hole[N]={0,};
long long int he[N]={0,};
int main(void)
{
int k1,k2,VAR_0;
long long int score=0;
for(k1=0;k1<N;k1++) scanf("%I64d",&hole[k1]);
for(k1=0;k1<N;k1++)
{
if(hole[k1]>0)
{
for(k2=0;k2<N;k2++) he[k2]=hole[k2];
long long int m=hole[k1];
long long int m1=m/N;
long long int m2=m%N;
hole[k1]=0;
for(k2=0;k2<N;k2++) hole[k2]+=m1;
VAR_0=0;
k2=0;
while(m2)
{
if(k2==k1)VAR_0=1;
if((ID_0)&&(m2--)) hole[(k2+1)%N]+=1;
k2++;
}
long long int s=0;
for(k2=0;k2<N;k2++)
{
if((hole[k2]%2)==0) s+=hole[k2];
}
if(s>score)score=s;
for(k2=0;k2<N;k2++) hole[k2]=he[k2];
}
}
FUNC_0("%I64d",score);
}
| 0.243395 | {'VAR_0': 'flag', 'ID_0': 'flag', 'FUNC_0': 'printf'} | c | Texto | 6.21% |
/*
* This header is generated by classdump-dyld 1.5
* on Tuesday, November 10, 2020 at 10:15:40 PM Mountain Standard Time
* Operating System: Version 14.2 (Build 18K57)
* Image Source: /System/Library/Frameworks/MetalKit.framework/MetalKit
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. Updated by <NAME>.
*/
@class MTKMeshBuffer, MTKMesh, NSString;
@interface MTKSubmesh : NSObject {
unsigned long long _primitiveType;
unsigned long long _indexType;
MTKMeshBuffer* _indexBuffer;
unsigned long long _indexCount;
MTKMesh* _mesh;
NSString* _name;
}
@property (nonatomic,readonly) unsigned long long primitiveType; //@synthesize primitiveType=_primitiveType - In the implementation block
@property (nonatomic,readonly) unsigned long long indexType; //@synthesize indexType=_indexType - In the implementation block
@property (nonatomic,readonly) MTKMeshBuffer * indexBuffer; //@synthesize indexBuffer=_indexBuffer - In the implementation block
@property (nonatomic,readonly) unsigned long long indexCount; //@synthesize indexCount=_indexCount - In the implementation block
@property (nonatomic,__weak,readonly) MTKMesh * mesh; //@synthesize mesh=_mesh - In the implementation block
@property (nonatomic,copy) NSString * name; //@synthesize name=_name - In the implementation block
-(NSString *)name;
-(void)setName:(NSString *)arg1 ;
-(unsigned long long)indexType;
-(unsigned long long)primitiveType;
-(unsigned long long)indexCount;
-(MTKMesh *)mesh;
-(MTKMeshBuffer *)indexBuffer;
-(id)initWithMesh:(id)arg1 submesh:(id)arg2 device:(id)arg3 error:(id*)arg4 ;
@end
| /*
* This header is generated by classdump-dyld 1.5
* on Tuesday, November 10, 2020 at 10:15:40 PM Mountain Standard Time
* Operating System: Version 14.2 (Build 18K57)
* Image Source: /System/Library/Frameworks/MetalKit.framework/MetalKit
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. Updated by <NAME>.
*/
@CLASS_0 VAR_0, VAR_1, VAR_2;
@interface VAR_3 : VAR_4 {
unsigned long long VAR_5;
unsigned long long _indexType;
CLASS_1* _indexBuffer;
unsigned long long _indexCount;
CLASS_2* _mesh;
CLASS_3* _name;
}
@property (nonatomic,VAR_6) unsigned long long primitiveType; //@synthesize primitiveType=_primitiveType - In the implementation block
@property (nonatomic,VAR_6) unsigned long long VAR_7; //@synthesize indexType=_indexType - In the implementation block
@property (nonatomic,VAR_6) CLASS_1 * indexBuffer; //@synthesize indexBuffer=_indexBuffer - In the implementation block
@property (nonatomic,VAR_6) unsigned long long VAR_8; //@synthesize indexCount=_indexCount - In the implementation block
@property (nonatomic,VAR_9,VAR_6) CLASS_2 * mesh; //@synthesize mesh=_mesh - In the implementation block
@property (nonatomic,VAR_10) CLASS_3 * name; //@synthesize name=_name - In the implementation block
-(CLASS_3 *)name;
-(void)VAR_11:(VAR_2 *)VAR_12 ;
-(unsigned long long)VAR_7;
-(unsigned long long)primitiveType;
-(unsigned long long)VAR_8;
-(CLASS_2 *)mesh;
-(CLASS_1 *)indexBuffer;
-(ID_0)initWithMesh:(VAR_13)CLASS_4 VAR_14:(VAR_13)arg2 device:(VAR_13)VAR_15 VAR_16:(VAR_13*)VAR_17 ;
@CLASS_5
| 0.509333 | {'CLASS_0': 'class', 'VAR_0': 'MTKMeshBuffer', 'CLASS_1': 'MTKMeshBuffer', 'VAR_1': 'MTKMesh', 'CLASS_2': 'MTKMesh', 'VAR_2': 'NSString', 'CLASS_3': 'NSString', 'VAR_3': 'MTKSubmesh', 'VAR_4': 'NSObject', 'VAR_5': '_primitiveType', 'VAR_6': 'readonly', 'VAR_7': 'indexType', 'VAR_8': 'indexCount', 'VAR_9': '__weak', 'VAR_10': 'copy', 'VAR_11': 'setName', 'VAR_12': 'arg1', 'CLASS_4': 'arg1', 'ID_0': 'id', 'VAR_13': 'id', 'VAR_14': 'submesh', 'VAR_15': 'arg3', 'VAR_16': 'error', 'VAR_17': 'arg4', 'CLASS_5': 'end'} | c | Hibrido | 100.00% |
#include <openlibm_math.h>
#include "math_private.h"
OLM_DLLEXPORT int isopenlibm(void) {
return 1;
}
| #include <openlibm_math.h>
#include "math_private.h"
CLASS_0 int isopenlibm(void) {
return 1;
}
| 0.099565 | {'CLASS_0': 'OLM_DLLEXPORT'} | c | Procedural | 100.00% |
/*
Cetak bilangan kompleks dalam domain waktu
Input : bilangan kompleks, frekuensi
Output : representasi domain waktu dicetak ke layar (sudut dalam derajat)
*/
void PrintPhasor(kompleks_t kompleks, int freq){
if (kompleks.angle>0) {
printf("%.2f cos(%dt + %.2f)", kompleks.mag, freq, kompleks.angle);
}
if (kompleks.angle<0) {
printf("%.2f cos(%dt - %.2f)", kompleks.mag, freq, (-1)*kompleks.angle);
}
if (kompleks.angle==0){
printf("%.2f cos(%dt)", kompleks.mag, freq);
}
} | /*
Cetak bilangan kompleks dalam domain waktu
Input : bilangan kompleks, frekuensi
Output : representasi domain waktu dicetak ke layar (sudut dalam derajat)
*/
void PrintPhasor(kompleks_t VAR_0, int freq){
if (VAR_0.angle>0) {
printf("%.2f cos(%dt + %.2f)", VAR_0.VAR_1, freq, VAR_0.angle);
}
if (VAR_0.angle<0) {
printf("%.2f cos(%dt - %.2f)", VAR_0.VAR_1, freq, (-1)*VAR_0.angle);
}
if (VAR_0.angle==0){
printf("%.2f cos(%dt)", VAR_0.VAR_1, freq);
}
} | 0.290689 | {'VAR_0': 'kompleks', 'VAR_1': 'mag'} | c | Procedural | 100.00% |
/*********************************************************************/
/**
**
** CreateGetInstancesResp
**
** Dynamically creates an GetInstancesResponse object
** NOTE: The object should be deleted using usp__msg__free_unpacked()
**
** \param msg_id - string containing the message id of the request, which initiated this response
**
** \return Pointer to a GetInstances Response object
** NOTE: If out of memory, USP Agent is terminated
**
**************************************************************************/
Usp__Msg *CreateGetInstancesResp(char *msg_id)
{
Usp__Msg *resp;
Usp__Header *header;
Usp__Body *body;
Usp__Response *response;
Usp__GetInstancesResp *get_inst_resp;
resp = USP_MALLOC(sizeof(Usp__Msg));
usp__msg__init(resp);
header = USP_MALLOC(sizeof(Usp__Header));
usp__header__init(header);
body = USP_MALLOC(sizeof(Usp__Body));
usp__body__init(body);
response = USP_MALLOC(sizeof(Usp__Response));
usp__response__init(response);
get_inst_resp = USP_MALLOC(sizeof(Usp__GetInstancesResp));
usp__get_instances_resp__init(get_inst_resp);
resp->header = header;
header->msg_id = USP_STRDUP(msg_id);
header->msg_type = USP__HEADER__MSG_TYPE__GET_INSTANCES_RESP;
resp->body = body;
body->msg_body_case = USP__BODY__MSG_BODY_RESPONSE;
body->response = response;
response->resp_type_case = USP__RESPONSE__RESP_TYPE_GET_INSTANCES_RESP;
response->get_instances_resp = get_inst_resp;
return resp;
} | /*********************************************************************/
/**
**
** CreateGetInstancesResp
**
** Dynamically creates an GetInstancesResponse object
** NOTE: The object should be deleted using usp__msg__free_unpacked()
**
** \param msg_id - string containing the message id of the request, which initiated this response
**
** \return Pointer to a GetInstances Response object
** NOTE: If out of memory, USP Agent is terminated
**
**************************************************************************/
CLASS_0 *CreateGetInstancesResp(char *VAR_1)
{
CLASS_0 *VAR_2;
Usp__Header *header;
CLASS_1 *VAR_4;
CLASS_2 *response;
CLASS_3 *get_inst_resp;
VAR_2 = USP_MALLOC(sizeof(VAR_0));
FUNC_0(VAR_2);
header = USP_MALLOC(sizeof(Usp__Header));
usp__header__init(header);
VAR_4 = USP_MALLOC(sizeof(VAR_3));
FUNC_1(VAR_4);
response = USP_MALLOC(sizeof(VAR_5));
FUNC_2(response);
get_inst_resp = USP_MALLOC(sizeof(VAR_6));
usp__get_instances_resp__init(get_inst_resp);
VAR_2->header = header;
header->VAR_1 = FUNC_3(VAR_1);
header->msg_type = VAR_7;
VAR_2->VAR_4 = VAR_4;
VAR_4->VAR_8 = USP__BODY__MSG_BODY_RESPONSE;
VAR_4->response = response;
response->VAR_9 = VAR_10;
response->get_instances_resp = get_inst_resp;
return VAR_2;
} | 0.538115 | {'CLASS_0': 'Usp__Msg', 'VAR_0': 'Usp__Msg', 'VAR_1': 'msg_id', 'VAR_2': 'resp', 'CLASS_1': 'Usp__Body', 'VAR_3': 'Usp__Body', 'VAR_4': 'body', 'CLASS_2': 'Usp__Response', 'VAR_5': 'Usp__Response', 'CLASS_3': 'Usp__GetInstancesResp', 'VAR_6': 'Usp__GetInstancesResp', 'FUNC_0': 'usp__msg__init', 'FUNC_1': 'usp__body__init', 'FUNC_2': 'usp__response__init', 'FUNC_3': 'USP_STRDUP', 'VAR_7': 'USP__HEADER__MSG_TYPE__GET_INSTANCES_RESP', 'VAR_8': 'msg_body_case', 'VAR_9': 'resp_type_case', 'VAR_10': 'USP__RESPONSE__RESP_TYPE_GET_INSTANCES_RESP'} | c | Procedural | 100.00% |
/******************************************************************************
*
* Copyright(c) 2012 - 2017 Realtek Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License 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 for
* more details.
*
*****************************************************************************/
#ifndef __RTL8192E_HAL_H__
#define __RTL8192E_HAL_H__
/* #include "hal_com.h" */
#include "hal_data.h"
/* include HAL Related header after HAL Related compiling flags */
#include "rtl8192e_spec.h"
#include "rtl8192e_rf.h"
#include "rtl8192e_dm.h"
#include "rtl8192e_recv.h"
#include "rtl8192e_xmit.h"
#include "rtl8192e_cmd.h"
#include "rtl8192e_led.h"
#include "Hal8192EPwrSeq.h"
#include "Hal8192EPhyReg.h"
#include "Hal8192EPhyCfg.h"
#ifdef DBG_CONFIG_ERROR_DETECT
#include "rtl8192e_sreset.h"
#endif
/* ---------------------------------------------------------------------
* RTL8192E Power Configuration CMDs for PCIe interface
* --------------------------------------------------------------------- */
#define Rtl8192E_NIC_PWR_ON_FLOW rtl8192E_power_on_flow
#define Rtl8192E_NIC_RF_OFF_FLOW rtl8192E_radio_off_flow
#define Rtl8192E_NIC_DISABLE_FLOW rtl8192E_card_disable_flow
#define Rtl8192E_NIC_ENABLE_FLOW rtl8192E_card_enable_flow
#define Rtl8192E_NIC_SUSPEND_FLOW rtl8192E_suspend_flow
#define Rtl8192E_NIC_RESUME_FLOW rtl8192E_resume_flow
#define Rtl8192E_NIC_PDN_FLOW rtl8192E_hwpdn_flow
#define Rtl8192E_NIC_LPS_ENTER_FLOW rtl8192E_enter_lps_flow
#define Rtl8192E_NIC_LPS_LEAVE_FLOW rtl8192E_leave_lps_flow
#if 1 /* download firmware related data structure */
#define FW_SIZE_8192E 0x8000 /* Compatible with RTL8192e Maximal RAM code size 32k */
#define FW_START_ADDRESS 0x1000
#define FW_END_ADDRESS 0x5FFF
#define IS_FW_HEADER_EXIST_8192E(_pFwHdr) ((GET_FIRMWARE_HDR_SIGNATURE_8192E(_pFwHdr) & 0xFFF0) == 0x92E0)
typedef struct _RT_FIRMWARE_8192E {
FIRMWARE_SOURCE eFWSource;
#ifdef CONFIG_EMBEDDED_FWIMG
u8 *szFwBuffer;
#else
u8 szFwBuffer[FW_SIZE_8192E];
#endif
u32 ulFwLength;
} RT_FIRMWARE_8192E, *PRT_FIRMWARE_8192E;
/*
* This structure must be cared byte-ordering
*
* Added by tynli. 2009.12.04. */
/* *****************************************************
* Firmware Header(8-byte alinment required)
* *****************************************************
* --- LONG WORD 0 ---- */
#define GET_FIRMWARE_HDR_SIGNATURE_8192E(__FwHdr) LE_BITS_TO_4BYTE(__FwHdr, 0, 16) /* 92C0: test chip; 92C, 88C0: test chip; 88C1: MP A-cut; 92C1: MP A-cut */
#define GET_FIRMWARE_HDR_CATEGORY_8192E(__FwHdr) LE_BITS_TO_4BYTE(__FwHdr, 16, 8) /* AP/NIC and USB/PCI */
#define GET_FIRMWARE_HDR_FUNCTION_8192E(__FwHdr) LE_BITS_TO_4BYTE(__FwHdr, 24, 8) /* Reserved for different FW function indcation, for further use when driver needs to download different FW in different conditions */
#define GET_FIRMWARE_HDR_VERSION_8192E(__FwHdr) LE_BITS_TO_4BYTE(__FwHdr+4, 0, 16)/* FW Version */
#define GET_FIRMWARE_HDR_SUB_VER_8192E(__FwHdr) LE_BITS_TO_4BYTE(__FwHdr+4, 16, 8) /* FW Subversion, default 0x00 */
#define GET_FIRMWARE_HDR_RSVD1_8192E(__FwHdr) LE_BITS_TO_4BYTE(__FwHdr+4, 24, 8)
/* --- LONG WORD 1 ---- */
#define GET_FIRMWARE_HDR_MONTH_8192E(__FwHdr) LE_BITS_TO_4BYTE(__FwHdr+8, 0, 8) /* Release time Month field */
#define GET_FIRMWARE_HDR_DATE_8192E(__FwHdr) LE_BITS_TO_4BYTE(__FwHdr+8, 8, 8) /* Release time Date field */
#define GET_FIRMWARE_HDR_HOUR_8192E(__FwHdr) LE_BITS_TO_4BYTE(__FwHdr+8, 16, 8)/* Release time Hour field */
#define GET_FIRMWARE_HDR_MINUTE_8192E(__FwHdr) LE_BITS_TO_4BYTE(__FwHdr+8, 24, 8)/* Release time Minute field */
#define GET_FIRMWARE_HDR_ROMCODE_SIZE_8192E(__FwHdr) LE_BITS_TO_4BYTE(__FwHdr+12, 0, 16)/* The size of RAM code */
#define GET_FIRMWARE_HDR_RSVD2_8192E(__FwHdr) LE_BITS_TO_4BYTE(__FwHdr+12, 16, 16)
/* --- LONG WORD 2 ---- */
#define GET_FIRMWARE_HDR_SVN_IDX_8192E(__FwHdr) LE_BITS_TO_4BYTE(__FwHdr+16, 0, 32)/* The SVN entry index */
#define GET_FIRMWARE_HDR_RSVD3_8192E(__FwHdr) LE_BITS_TO_4BYTE(__FwHdr+20, 0, 32)
/* --- LONG WORD 3 ---- */
#define GET_FIRMWARE_HDR_RSVD4_8192E(__FwHdr) LE_BITS_TO_4BYTE(__FwHdr+24, 0, 32)
#define GET_FIRMWARE_HDR_RSVD5_8192E(__FwHdr) LE_BITS_TO_4BYTE(__FwHdr+28, 0, 32)
#endif /* download firmware related data structure */
#define DRIVER_EARLY_INT_TIME_8192E 0x05
#define BCN_DMA_ATIME_INT_TIME_8192E 0x02
#define RX_DMA_SIZE_8192E 0x4000 /* 16K*/
#ifdef CONFIG_WOWLAN
#define RESV_FMWF (WKFMCAM_SIZE * MAX_WKFM_CAM_NUM) /* 16 entries, for each is 24 bytes*/
#else
#define RESV_FMWF 0
#endif
#ifdef CONFIG_FW_C2H_DEBUG
#define RX_DMA_RESERVED_SIZE_8192E 0x100 /* 256B, reserved for c2h debug message*/
#else
#define RX_DMA_RESERVED_SIZE_8192E 0x40 /* 64B, reserved for c2h event(16bytes) or ccx(8 Bytes)*/
#endif
#define MAX_RX_DMA_BUFFER_SIZE_8192E (RX_DMA_SIZE_8192E-RX_DMA_RESERVED_SIZE_8192E) /*RX 16K*/
/* For General Reserved Page Number(Beacon Queue is reserved page)
* if (CONFIG_2BCN_EN) Beacon:4, PS-Poll:1, Null Data:1,Prob Rsp:1,Qos Null Data:1
* Beacon:2, PS-Poll:1, Null Data:1,Prob Rsp:1,Qos Null Data:1 */
#define RSVD_PAGE_NUM_8192E 0x08
/* For WoWLan , more reserved page
* ARP Rsp:1, RWC:1, GTK Info:1,GTK RSP:2,GTK EXT MEM:2, AOAC rpt: 1,PNO: 6
* NS offload: 2 NDP info: 1
*/
#ifdef CONFIG_WOWLAN
#define WOWLAN_PAGE_NUM_8192E 0x0b
#else
#define WOWLAN_PAGE_NUM_8192E 0x00
#endif
#ifdef CONFIG_PNO_SUPPORT
#undef WOWLAN_PAGE_NUM_8192E
#define WOWLAN_PAGE_NUM_8192E 0x0d
#endif
/* Note:
Tx FIFO Size : 64KB
Tx page Size : 256B
Total page numbers : 256(0x100)
*/
#define TOTAL_RSVD_PAGE_NUMBER_8192E (RSVD_PAGE_NUM_8192E + WOWLAN_PAGE_NUM_8192E)
#define TOTAL_PAGE_NUMBER_8192E (0x100)
#define TX_TOTAL_PAGE_NUMBER_8192E (TOTAL_PAGE_NUMBER_8192E - TOTAL_RSVD_PAGE_NUMBER_8192E)
#define TX_PAGE_BOUNDARY_8192E (TX_TOTAL_PAGE_NUMBER_8192E) /* beacon header start address */
#define PAGE_SIZE_TX_92E PAGE_SIZE_256
#define RSVD_PKT_LEN_92E (TOTAL_RSVD_PAGE_NUMBER_8192E * PAGE_SIZE_TX_92E)
#define TX_PAGE_LOAD_FW_BOUNDARY_8192E 0x47 /* 0xA5 */
#define TX_PAGE_BOUNDARY_WOWLAN_8192E 0xE0
/* For Normal Chip Setting
* (HPQ + LPQ + NPQ + PUBQ) shall be TX_TOTAL_PAGE_NUMBER_92C */
#define NORMAL_PAGE_NUM_HPQ_8192E 0x10
#define NORMAL_PAGE_NUM_LPQ_8192E 0x10
#define NORMAL_PAGE_NUM_NPQ_8192E 0x10
#define NORMAL_PAGE_NUM_EPQ_8192E 0x00
/* Note: For WMM Normal Chip Setting ,modify later */
#define WMM_NORMAL_PAGE_NUM_HPQ_8192E NORMAL_PAGE_NUM_HPQ_8192E
#define WMM_NORMAL_PAGE_NUM_LPQ_8192E NORMAL_PAGE_NUM_LPQ_8192E
#define WMM_NORMAL_PAGE_NUM_NPQ_8192E NORMAL_PAGE_NUM_NPQ_8192E
/* -------------------------------------------------------------------------
* Chip specific
* ------------------------------------------------------------------------- */
/* pic buffer descriptor */
#define RTL8192EE_SEG_NUM TX_BUFFER_SEG_NUM
#define TX_DESC_NUM_92E 128
#define RX_DESC_NUM_92E 128
/* -------------------------------------------------------------------------
* Channel Plan
* ------------------------------------------------------------------------- */
#define HWSET_MAX_SIZE_8192E 512
#define EFUSE_REAL_CONTENT_LEN_8192E 512
#define EFUSE_MAP_LEN_8192E 512
#define EFUSE_MAX_SECTION_8192E 64
#define EFUSE_MAX_WORD_UNIT_8192E 4
#define EFUSE_IC_ID_OFFSET_8192E 506 /* For some inferiority IC purpose. added by Roger, 2009.09.02. */
#define AVAILABLE_EFUSE_ADDR_8192E(addr) (addr < EFUSE_REAL_CONTENT_LEN_8192E)
/*
* <Roger_Notes> To prevent out of boundary programming case, leave 1byte and program full section
* 9bytes + 1byt + 5bytes and pre 1byte.
* For worst case:
* | 1byte|----8bytes----|1byte|--5bytes--|
* | | Reserved(14bytes) |
* */
#define EFUSE_OOB_PROTECT_BYTES_8192E 15 /* PG data exclude header, dummy 6 bytes frome CP test and reserved 1byte. */
/* ********************************************************
* EFUSE for BT definition
* ******************************************************** */
#define EFUSE_BT_REAL_BANK_CONTENT_LEN_8192E 512
#define EFUSE_BT_REAL_CONTENT_LEN_8192E 1024 /* 512*2 */
#define EFUSE_BT_MAP_LEN_8192E 1024 /* 1k bytes */
#define EFUSE_BT_MAX_SECTION_8192E 128 /* 1024/8 */
#define EFUSE_PROTECT_BYTES_BANK_8192E 16
#define EFUSE_MAX_BANK_8192E 3
/* *********************************************************** */
#define INCLUDE_MULTI_FUNC_BT(_Adapter) (GET_HAL_DATA(_Adapter)->MultiFunc & RT_MULTI_FUNC_BT)
#define INCLUDE_MULTI_FUNC_GPS(_Adapter) (GET_HAL_DATA(_Adapter)->MultiFunc & RT_MULTI_FUNC_GPS)
/* #define IS_MULTI_FUNC_CHIP(_Adapter) (((((PHAL_DATA_TYPE)(_Adapter->HalData))->MultiFunc) & (RT_MULTI_FUNC_BT|RT_MULTI_FUNC_GPS)) ? _TRUE : _FALSE) */
/* #define RT_IS_FUNC_DISABLED(__pAdapter, __FuncBits) ( (__pAdapter)->DisabledFunctions & (__FuncBits) ) */
/* rtl8812_hal_init.c */
void _8051Reset8192E(PADAPTER padapter);
s32 FirmwareDownload8192E(PADAPTER Adapter, BOOLEAN bUsedWoWLANFw);
void InitializeFirmwareVars8192E(PADAPTER padapter);
s32 InitLLTTable8192E(PADAPTER padapter, u8 txpktbuf_bndy);
/* EFuse */
u8 GetEEPROMSize8192E(PADAPTER padapter);
void hal_InitPGData_8192E(PADAPTER padapter, u8 *PROMContent);
void Hal_EfuseParseIDCode8192E(PADAPTER padapter, u8 *hwinfo);
void Hal_ReadPROMVersion8192E(PADAPTER padapter, u8 *hwinfo, BOOLEAN AutoLoadFail);
void Hal_ReadPowerSavingMode8192E(PADAPTER padapter, u8 *hwinfo, BOOLEAN AutoLoadFail);
void Hal_ReadTxPowerInfo8192E(PADAPTER padapter, u8 *hwinfo, BOOLEAN AutoLoadFail);
void Hal_ReadBoardType8192E(PADAPTER pAdapter, u8 *hwinfo, BOOLEAN AutoLoadFail);
void Hal_ReadThermalMeter_8192E(PADAPTER Adapter, u8 *PROMContent, BOOLEAN AutoloadFail);
void Hal_ReadChannelPlan8192E(PADAPTER padapter, u8 *hwinfo, BOOLEAN AutoLoadFail);
void Hal_EfuseParseXtal_8192E(PADAPTER pAdapter, u8 *hwinfo, BOOLEAN AutoLoadFail);
void Hal_ReadAntennaDiversity8192E(PADAPTER pAdapter, u8 *PROMContent, BOOLEAN AutoLoadFail);
void Hal_ReadPAType_8192E(PADAPTER Adapter, u8 *PROMContent, BOOLEAN AutoloadFail);
void Hal_ReadAmplifierType_8192E(PADAPTER Adapter, u8 *PROMContent, BOOLEAN AutoloadFail);
void Hal_ReadRFEType_8192E(PADAPTER Adapter, u8 *PROMContent, BOOLEAN AutoloadFail);
void Hal_EfuseParseBTCoexistInfo8192E(PADAPTER Adapter, u8 *hwinfo, BOOLEAN AutoLoadFail);
void Hal_EfuseParseKFreeData_8192E(PADAPTER pAdapter, u8 *hwinfo, BOOLEAN AutoLoadFail);
u8 Hal_CrystalAFEAdjust(_adapter *Adapter);
BOOLEAN HalDetectPwrDownMode8192E(PADAPTER Adapter);
#if defined(CONFIG_WOWLAN) || defined(CONFIG_AP_WOWLAN)
void Hal_DetectWoWMode(PADAPTER pAdapter);
#endif /* CONFIG_WOWLAN */
/***********************************************************/
/* RTL8192E-MAC Setting */
VOID _InitQueueReservedPage_8192E(IN PADAPTER Adapter);
VOID _InitQueuePriority_8192E(IN PADAPTER Adapter);
VOID _InitTxBufferBoundary_8192E(IN PADAPTER Adapter, IN u8 txpktbuf_bndy);
VOID _InitPageBoundary_8192E(IN PADAPTER Adapter);
/* VOID _InitTransferPageSize_8192E(IN PADAPTER Adapter); */
VOID _InitDriverInfoSize_8192E(IN PADAPTER Adapter, IN u8 drvInfoSize);
VOID _InitRDGSetting_8192E(PADAPTER Adapter);
void _InitID_8192E(IN PADAPTER Adapter);
VOID _InitNetworkType_8192E(IN PADAPTER Adapter);
VOID _InitWMACSetting_8192E(IN PADAPTER Adapter);
VOID _InitAdaptiveCtrl_8192E(IN PADAPTER Adapter);
VOID _InitEDCA_8192E(IN PADAPTER Adapter);
VOID _InitRetryFunction_8192E(IN PADAPTER Adapter);
VOID _BBTurnOnBlock_8192E(IN PADAPTER Adapter);
VOID _InitBeaconParameters_8192E(IN PADAPTER Adapter);
VOID _InitBeaconMaxError_8192E(
IN PADAPTER Adapter,
IN BOOLEAN InfraMode
);
void SetBeaconRelatedRegisters8192E(PADAPTER padapter);
VOID hal_ReadRFType_8192E(PADAPTER Adapter);
/* RTL8192E-MAC Setting
***********************************************************/
u8 SetHwReg8192E(PADAPTER Adapter, u8 variable, u8 *val);
void GetHwReg8192E(PADAPTER Adapter, u8 variable, u8 *val);
u8
SetHalDefVar8192E(
IN PADAPTER Adapter,
IN HAL_DEF_VARIABLE eVariable,
IN PVOID pValue
);
u8
GetHalDefVar8192E(
IN PADAPTER Adapter,
IN HAL_DEF_VARIABLE eVariable,
IN PVOID pValue
);
void rtl8192e_set_hal_ops(struct hal_ops *pHalFunc);
void init_hal_spec_8192e(_adapter *adapter);
void rtl8192e_init_default_value(_adapter *padapter);
/* register */
void SetBcnCtrlReg(PADAPTER padapter, u8 SetBits, u8 ClearBits);
void rtl8192e_start_thread(_adapter *padapter);
void rtl8192e_stop_thread(_adapter *padapter);
#ifdef CONFIG_PCI_HCI
BOOLEAN InterruptRecognized8192EE(PADAPTER Adapter);
u16 get_txbd_rw_reg(u16 ff_hwaddr);
#endif
#ifdef CONFIG_SDIO_HCI
#ifdef CONFIG_SDIO_TX_ENABLE_AVAL_INT
void _init_available_page_threshold(PADAPTER padapter, u8 numHQ, u8 numNQ, u8 numLQ, u8 numPubQ);
#endif
#endif
#ifdef CONFIG_BT_COEXIST
void rtl8192e_combo_card_WifiOnlyHwInit(PADAPTER Adapter);
#endif
#endif /* __RTL8192E_HAL_H__ */
| /******************************************************************************
*
* Copyright(c) 2012 - 2017 Realtek Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License 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 for
* more details.
*
*****************************************************************************/
#ifndef VAR_0
#define VAR_0
/* #include "hal_com.h" */
#include "IMPORT_0"
/* include HAL Related header after HAL Related compiling flags */
#include "IMPORT_1"
#include "IMPORT_2"
#include "IMPORT_3"
#include "IMPORT_4"
#include "IMPORT_5"
#include "IMPORT_6"
#include "IMPORT_7"
#include "IMPORT_8"
#include "IMPORT_9"
#include "IMPORT_10"
#ifdef VAR_1
#include "IMPORT_11"
#endif
/* ---------------------------------------------------------------------
* RTL8192E Power Configuration CMDs for PCIe interface
* --------------------------------------------------------------------- */
#define VAR_2 rtl8192E_power_on_flow
#define Rtl8192E_NIC_RF_OFF_FLOW rtl8192E_radio_off_flow
#define VAR_3 rtl8192E_card_disable_flow
#define VAR_4 rtl8192E_card_enable_flow
#define VAR_5 rtl8192E_suspend_flow
#define VAR_6 rtl8192E_resume_flow
#define VAR_7 rtl8192E_hwpdn_flow
#define VAR_8 rtl8192E_enter_lps_flow
#define VAR_9 rtl8192E_leave_lps_flow
#if 1 /* download firmware related data structure */
#define VAR_10 0x8000 /* Compatible with RTL8192e Maximal RAM code size 32k */
#define VAR_11 0x1000
#define VAR_12 0x5FFF
#define FUNC_0(VAR_13) ((GET_FIRMWARE_HDR_SIGNATURE_8192E(_pFwHdr) & 0xFFF0) == 0x92E0)
typedef struct CLASS_0 {
CLASS_1 VAR_14;
#ifdef VAR_15
CLASS_2 *szFwBuffer;
#else
CLASS_2 szFwBuffer[VAR_10];
#endif
CLASS_3 VAR_17;
} ID_0, *CLASS_4;
/*
* This structure must be cared byte-ordering
*
* Added by tynli. 2009.12.04. */
/* *****************************************************
* Firmware Header(8-byte alinment required)
* *****************************************************
* --- LONG WORD 0 ---- */
#define FUNC_1(VAR_18) LE_BITS_TO_4BYTE(__FwHdr, 0, 16) /* 92C0: test chip; 92C, 88C0: test chip; 88C1: MP A-cut; 92C1: MP A-cut */
#define FUNC_2(VAR_18) LE_BITS_TO_4BYTE(__FwHdr, 16, 8) /* AP/NIC and USB/PCI */
#define FUNC_3(VAR_18) LE_BITS_TO_4BYTE(__FwHdr, 24, 8) /* Reserved for different FW function indcation, for further use when driver needs to download different FW in different conditions */
#define FUNC_4(VAR_18) LE_BITS_TO_4BYTE(__FwHdr+4, 0, 16)/* FW Version */
#define FUNC_5(VAR_18) LE_BITS_TO_4BYTE(__FwHdr+4, 16, 8) /* FW Subversion, default 0x00 */
#define FUNC_6(VAR_18) LE_BITS_TO_4BYTE(__FwHdr+4, 24, 8)
/* --- LONG WORD 1 ---- */
#define FUNC_7(VAR_18) LE_BITS_TO_4BYTE(__FwHdr+8, 0, 8) /* Release time Month field */
#define FUNC_8(VAR_18) LE_BITS_TO_4BYTE(__FwHdr+8, 8, 8) /* Release time Date field */
#define FUNC_9(VAR_18) LE_BITS_TO_4BYTE(__FwHdr+8, 16, 8)/* Release time Hour field */
#define FUNC_10(VAR_18) LE_BITS_TO_4BYTE(__FwHdr+8, 24, 8)/* Release time Minute field */
#define FUNC_11(VAR_18) LE_BITS_TO_4BYTE(__FwHdr+12, 0, 16)/* The size of RAM code */
#define FUNC_12(VAR_18) LE_BITS_TO_4BYTE(__FwHdr+12, 16, 16)
/* --- LONG WORD 2 ---- */
#define FUNC_13(VAR_18) LE_BITS_TO_4BYTE(__FwHdr+16, 0, 32)/* The SVN entry index */
#define FUNC_14(VAR_18) LE_BITS_TO_4BYTE(__FwHdr+20, 0, 32)
/* --- LONG WORD 3 ---- */
#define FUNC_15(VAR_18) LE_BITS_TO_4BYTE(__FwHdr+24, 0, 32)
#define FUNC_16(VAR_18) LE_BITS_TO_4BYTE(__FwHdr+28, 0, 32)
#endif /* download firmware related data structure */
#define VAR_19 0x05
#define VAR_20 0x02
#define VAR_21 0x4000 /* 16K*/
#ifdef VAR_22
#define VAR_23 (WKFMCAM_SIZE * MAX_WKFM_CAM_NUM) /* 16 entries, for each is 24 bytes*/
#else
#define VAR_23 0
#endif
#ifdef VAR_24
#define VAR_25 0x100 /* 256B, reserved for c2h debug message*/
#else
#define VAR_25 0x40 /* 64B, reserved for c2h event(16bytes) or ccx(8 Bytes)*/
#endif
#define VAR_26 (RX_DMA_SIZE_8192E-RX_DMA_RESERVED_SIZE_8192E) /*RX 16K*/
/* For General Reserved Page Number(Beacon Queue is reserved page)
* if (CONFIG_2BCN_EN) Beacon:4, PS-Poll:1, Null Data:1,Prob Rsp:1,Qos Null Data:1
* Beacon:2, PS-Poll:1, Null Data:1,Prob Rsp:1,Qos Null Data:1 */
#define VAR_27 0x08
/* For WoWLan , more reserved page
* ARP Rsp:1, RWC:1, GTK Info:1,GTK RSP:2,GTK EXT MEM:2, AOAC rpt: 1,PNO: 6
* NS offload: 2 NDP info: 1
*/
#ifdef VAR_22
#define VAR_28 0x0b
#else
#define VAR_28 0x00
#endif
#ifdef VAR_29
#undef WOWLAN_PAGE_NUM_8192E
#define VAR_28 0x0d
#endif
/* Note:
Tx FIFO Size : 64KB
Tx page Size : 256B
Total page numbers : 256(0x100)
*/
#define VAR_30 (RSVD_PAGE_NUM_8192E + WOWLAN_PAGE_NUM_8192E)
#define VAR_31 (0x100)
#define VAR_32 (TOTAL_PAGE_NUMBER_8192E - TOTAL_RSVD_PAGE_NUMBER_8192E)
#define VAR_33 (TX_TOTAL_PAGE_NUMBER_8192E) /* beacon header start address */
#define VAR_34 PAGE_SIZE_256
#define VAR_35 (TOTAL_RSVD_PAGE_NUMBER_8192E * PAGE_SIZE_TX_92E)
#define VAR_36 0x47 /* 0xA5 */
#define VAR_37 0xE0
/* For Normal Chip Setting
* (HPQ + LPQ + NPQ + PUBQ) shall be TX_TOTAL_PAGE_NUMBER_92C */
#define VAR_38 0x10
#define VAR_39 0x10
#define VAR_40 0x10
#define VAR_41 0x00
/* Note: For WMM Normal Chip Setting ,modify later */
#define VAR_42 NORMAL_PAGE_NUM_HPQ_8192E
#define VAR_43 NORMAL_PAGE_NUM_LPQ_8192E
#define VAR_44 NORMAL_PAGE_NUM_NPQ_8192E
/* -------------------------------------------------------------------------
* Chip specific
* ------------------------------------------------------------------------- */
/* pic buffer descriptor */
#define VAR_45 TX_BUFFER_SEG_NUM
#define VAR_46 128
#define VAR_47 128
/* -------------------------------------------------------------------------
* Channel Plan
* ------------------------------------------------------------------------- */
#define VAR_48 512
#define VAR_49 512
#define VAR_50 512
#define VAR_51 64
#define VAR_52 4
#define VAR_53 506 /* For some inferiority IC purpose. added by Roger, 2009.09.02. */
#define FUNC_17(VAR_54) (addr < EFUSE_REAL_CONTENT_LEN_8192E)
/*
* <Roger_Notes> To prevent out of boundary programming case, leave 1byte and program full section
* 9bytes + 1byt + 5bytes and pre 1byte.
* For worst case:
* | 1byte|----8bytes----|1byte|--5bytes--|
* | | Reserved(14bytes) |
* */
#define VAR_55 15 /* PG data exclude header, dummy 6 bytes frome CP test and reserved 1byte. */
/* ********************************************************
* EFUSE for BT definition
* ******************************************************** */
#define VAR_56 512
#define VAR_57 1024 /* 512*2 */
#define VAR_58 1024 /* 1k bytes */
#define VAR_59 128 /* 1024/8 */
#define VAR_60 16
#define VAR_61 3
/* *********************************************************** */
#define FUNC_18(VAR_62) (GET_HAL_DATA(_Adapter)->MultiFunc & RT_MULTI_FUNC_BT)
#define INCLUDE_MULTI_FUNC_GPS(VAR_62) (GET_HAL_DATA(_Adapter)->MultiFunc & RT_MULTI_FUNC_GPS)
/* #define IS_MULTI_FUNC_CHIP(_Adapter) (((((PHAL_DATA_TYPE)(_Adapter->HalData))->MultiFunc) & (RT_MULTI_FUNC_BT|RT_MULTI_FUNC_GPS)) ? _TRUE : _FALSE) */
/* #define RT_IS_FUNC_DISABLED(__pAdapter, __FuncBits) ( (__pAdapter)->DisabledFunctions & (__FuncBits) ) */
/* rtl8812_hal_init.c */
void FUNC_19(CLASS_5 VAR_64);
CLASS_6 FUNC_20(CLASS_5 VAR_65, CLASS_7 VAR_67);
void FUNC_21(CLASS_5 VAR_64);
CLASS_6 FUNC_22(CLASS_5 VAR_64, CLASS_2 VAR_68);
/* EFuse */
CLASS_2 FUNC_23(CLASS_5 VAR_64);
void FUNC_24(CLASS_5 VAR_64, CLASS_2 *VAR_69);
void FUNC_25(CLASS_5 VAR_64, CLASS_2 *VAR_70);
void FUNC_26(CLASS_5 VAR_64, CLASS_2 *VAR_70, CLASS_7 VAR_71);
void FUNC_27(CLASS_5 VAR_64, CLASS_2 *VAR_70, CLASS_7 VAR_71);
void FUNC_28(CLASS_5 VAR_64, CLASS_2 *VAR_70, CLASS_7 VAR_71);
void FUNC_29(CLASS_5 VAR_72, CLASS_2 *VAR_70, CLASS_7 VAR_71);
void FUNC_30(CLASS_5 VAR_65, CLASS_2 *VAR_69, CLASS_7 VAR_73);
void FUNC_31(CLASS_5 VAR_64, CLASS_2 *VAR_70, CLASS_7 VAR_71);
void FUNC_32(CLASS_5 VAR_72, CLASS_2 *VAR_70, CLASS_7 VAR_71);
void FUNC_33(CLASS_5 VAR_72, CLASS_2 *VAR_69, CLASS_7 VAR_71);
void FUNC_34(CLASS_5 VAR_65, CLASS_2 *VAR_69, CLASS_7 VAR_73);
void FUNC_35(CLASS_5 VAR_65, CLASS_2 *VAR_69, CLASS_7 VAR_73);
void FUNC_36(CLASS_5 VAR_65, CLASS_2 *VAR_69, CLASS_7 VAR_73);
void FUNC_37(CLASS_5 VAR_65, CLASS_2 *VAR_70, CLASS_7 VAR_71);
void FUNC_38(CLASS_5 VAR_72, CLASS_2 *VAR_70, CLASS_7 VAR_71);
CLASS_2 FUNC_39(CLASS_8 *VAR_65);
CLASS_7 FUNC_40(CLASS_5 VAR_65);
#if defined(VAR_22) || defined(VAR_74)
void FUNC_41(CLASS_5 VAR_72);
#endif /* CONFIG_WOWLAN */
/***********************************************************/
/* RTL8192E-MAC Setting */
CLASS_9 FUNC_42(CLASS_10 VAR_63 VAR_65);
CLASS_9 FUNC_43(CLASS_10 VAR_63 VAR_65);
CLASS_9 FUNC_44(CLASS_10 VAR_63 VAR_65, CLASS_10 VAR_16 VAR_68);
CLASS_9 FUNC_45(CLASS_10 VAR_63 VAR_65);
/* VOID _InitTransferPageSize_8192E(IN PADAPTER Adapter); */
CLASS_9 FUNC_46(CLASS_10 VAR_63 VAR_65, CLASS_10 VAR_16 VAR_75);
CLASS_9 FUNC_47(CLASS_5 VAR_65);
void FUNC_48(CLASS_10 VAR_63 VAR_65);
CLASS_9 FUNC_49(CLASS_10 VAR_63 VAR_65);
CLASS_9 FUNC_50(CLASS_10 VAR_63 VAR_65);
CLASS_9 FUNC_51(CLASS_10 VAR_63 VAR_65);
CLASS_9 FUNC_52(CLASS_10 VAR_63 VAR_65);
CLASS_9 FUNC_53(CLASS_10 VAR_63 VAR_65);
CLASS_9 FUNC_54(CLASS_10 VAR_63 VAR_65);
CLASS_9 FUNC_55(CLASS_10 VAR_63 VAR_65);
CLASS_9 FUNC_56(
CLASS_10 VAR_63 VAR_65,
CLASS_10 VAR_66 VAR_76
);
void FUNC_57(CLASS_5 VAR_64);
CLASS_9 FUNC_58(CLASS_5 VAR_65);
/* RTL8192E-MAC Setting
***********************************************************/
CLASS_2 FUNC_59(CLASS_5 VAR_65, CLASS_2 VAR_77, CLASS_2 *VAR_78);
void FUNC_60(CLASS_5 VAR_65, CLASS_2 VAR_77, CLASS_2 *VAR_78);
CLASS_2
FUNC_61(
CLASS_10 VAR_63 VAR_65,
CLASS_10 VAR_79 VAR_80,
CLASS_10 VAR_81 pValue
);
CLASS_2
FUNC_62(
CLASS_10 VAR_63 VAR_65,
CLASS_10 VAR_79 VAR_80,
CLASS_10 VAR_81 pValue
);
void FUNC_63(struct CLASS_11 *VAR_82);
void FUNC_64(CLASS_8 *VAR_83);
void FUNC_65(CLASS_8 *VAR_64);
/* register */
void FUNC_66(CLASS_5 VAR_64, CLASS_2 VAR_84, CLASS_2 VAR_85);
void FUNC_67(CLASS_8 *VAR_64);
void FUNC_68(CLASS_8 *VAR_64);
#ifdef VAR_86
CLASS_7 FUNC_69(CLASS_5 VAR_65);
CLASS_12 FUNC_70(CLASS_12 VAR_87);
#endif
#ifdef VAR_88
#ifdef VAR_89
void FUNC_71(CLASS_5 VAR_64, CLASS_2 VAR_90, CLASS_2 VAR_91, CLASS_2 VAR_92, CLASS_2 VAR_93);
#endif
#endif
#ifdef VAR_94
void FUNC_72(CLASS_5 VAR_65);
#endif
#endif /* __RTL8192E_HAL_H__ */
| 0.983475 | {'VAR_0': '__RTL8192E_HAL_H__', 'IMPORT_0': 'hal_data.h', 'IMPORT_1': 'rtl8192e_spec.h', 'IMPORT_2': 'rtl8192e_rf.h', 'IMPORT_3': 'rtl8192e_dm.h', 'IMPORT_4': 'rtl8192e_recv.h', 'IMPORT_5': 'rtl8192e_xmit.h', 'IMPORT_6': 'rtl8192e_cmd.h', 'IMPORT_7': 'rtl8192e_led.h', 'IMPORT_8': 'Hal8192EPwrSeq.h', 'IMPORT_9': 'Hal8192EPhyReg.h', 'IMPORT_10': 'Hal8192EPhyCfg.h', 'VAR_1': 'DBG_CONFIG_ERROR_DETECT', 'IMPORT_11': 'rtl8192e_sreset.h', 'VAR_2': 'Rtl8192E_NIC_PWR_ON_FLOW', 'VAR_3': 'Rtl8192E_NIC_DISABLE_FLOW', 'VAR_4': 'Rtl8192E_NIC_ENABLE_FLOW', 'VAR_5': 'Rtl8192E_NIC_SUSPEND_FLOW', 'VAR_6': 'Rtl8192E_NIC_RESUME_FLOW', 'VAR_7': 'Rtl8192E_NIC_PDN_FLOW', 'VAR_8': 'Rtl8192E_NIC_LPS_ENTER_FLOW', 'VAR_9': 'Rtl8192E_NIC_LPS_LEAVE_FLOW', 'VAR_10': 'FW_SIZE_8192E', 'VAR_11': 'FW_START_ADDRESS', 'VAR_12': 'FW_END_ADDRESS', 'FUNC_0': 'IS_FW_HEADER_EXIST_8192E', 'VAR_13': '_pFwHdr', 'CLASS_0': '_RT_FIRMWARE_8192E', 'CLASS_1': 'FIRMWARE_SOURCE', 'VAR_14': 'eFWSource', 'VAR_15': 'CONFIG_EMBEDDED_FWIMG', 'CLASS_2': 'u8', 'VAR_16': 'u8', 'CLASS_3': 'u32', 'VAR_17': 'ulFwLength', 'ID_0': 'RT_FIRMWARE_8192E', 'CLASS_4': 'PRT_FIRMWARE_8192E', 'FUNC_1': 'GET_FIRMWARE_HDR_SIGNATURE_8192E', 'VAR_18': '__FwHdr', 'FUNC_2': 'GET_FIRMWARE_HDR_CATEGORY_8192E', 'FUNC_3': 'GET_FIRMWARE_HDR_FUNCTION_8192E', 'FUNC_4': 'GET_FIRMWARE_HDR_VERSION_8192E', 'FUNC_5': 'GET_FIRMWARE_HDR_SUB_VER_8192E', 'FUNC_6': 'GET_FIRMWARE_HDR_RSVD1_8192E', 'FUNC_7': 'GET_FIRMWARE_HDR_MONTH_8192E', 'FUNC_8': 'GET_FIRMWARE_HDR_DATE_8192E', 'FUNC_9': 'GET_FIRMWARE_HDR_HOUR_8192E', 'FUNC_10': 'GET_FIRMWARE_HDR_MINUTE_8192E', 'FUNC_11': 'GET_FIRMWARE_HDR_ROMCODE_SIZE_8192E', 'FUNC_12': 'GET_FIRMWARE_HDR_RSVD2_8192E', 'FUNC_13': 'GET_FIRMWARE_HDR_SVN_IDX_8192E', 'FUNC_14': 'GET_FIRMWARE_HDR_RSVD3_8192E', 'FUNC_15': 'GET_FIRMWARE_HDR_RSVD4_8192E', 'FUNC_16': 'GET_FIRMWARE_HDR_RSVD5_8192E', 'VAR_19': 'DRIVER_EARLY_INT_TIME_8192E', 'VAR_20': 'BCN_DMA_ATIME_INT_TIME_8192E', 'VAR_21': 'RX_DMA_SIZE_8192E', 'VAR_22': 'CONFIG_WOWLAN', 'VAR_23': 'RESV_FMWF', 'VAR_24': 'CONFIG_FW_C2H_DEBUG', 'VAR_25': 'RX_DMA_RESERVED_SIZE_8192E', 'VAR_26': 'MAX_RX_DMA_BUFFER_SIZE_8192E', 'VAR_27': 'RSVD_PAGE_NUM_8192E', 'VAR_28': 'WOWLAN_PAGE_NUM_8192E', 'VAR_29': 'CONFIG_PNO_SUPPORT', 'VAR_30': 'TOTAL_RSVD_PAGE_NUMBER_8192E', 'VAR_31': 'TOTAL_PAGE_NUMBER_8192E', 'VAR_32': 'TX_TOTAL_PAGE_NUMBER_8192E', 'VAR_33': 'TX_PAGE_BOUNDARY_8192E', 'VAR_34': 'PAGE_SIZE_TX_92E', 'VAR_35': 'RSVD_PKT_LEN_92E', 'VAR_36': 'TX_PAGE_LOAD_FW_BOUNDARY_8192E', 'VAR_37': 'TX_PAGE_BOUNDARY_WOWLAN_8192E', 'VAR_38': 'NORMAL_PAGE_NUM_HPQ_8192E', 'VAR_39': 'NORMAL_PAGE_NUM_LPQ_8192E', 'VAR_40': 'NORMAL_PAGE_NUM_NPQ_8192E', 'VAR_41': 'NORMAL_PAGE_NUM_EPQ_8192E', 'VAR_42': 'WMM_NORMAL_PAGE_NUM_HPQ_8192E', 'VAR_43': 'WMM_NORMAL_PAGE_NUM_LPQ_8192E', 'VAR_44': 'WMM_NORMAL_PAGE_NUM_NPQ_8192E', 'VAR_45': 'RTL8192EE_SEG_NUM', 'VAR_46': 'TX_DESC_NUM_92E', 'VAR_47': 'RX_DESC_NUM_92E', 'VAR_48': 'HWSET_MAX_SIZE_8192E', 'VAR_49': 'EFUSE_REAL_CONTENT_LEN_8192E', 'VAR_50': 'EFUSE_MAP_LEN_8192E', 'VAR_51': 'EFUSE_MAX_SECTION_8192E', 'VAR_52': 'EFUSE_MAX_WORD_UNIT_8192E', 'VAR_53': 'EFUSE_IC_ID_OFFSET_8192E', 'FUNC_17': 'AVAILABLE_EFUSE_ADDR_8192E', 'VAR_54': 'addr', 'VAR_55': 'EFUSE_OOB_PROTECT_BYTES_8192E', 'VAR_56': 'EFUSE_BT_REAL_BANK_CONTENT_LEN_8192E', 'VAR_57': 'EFUSE_BT_REAL_CONTENT_LEN_8192E', 'VAR_58': 'EFUSE_BT_MAP_LEN_8192E', 'VAR_59': 'EFUSE_BT_MAX_SECTION_8192E', 'VAR_60': 'EFUSE_PROTECT_BYTES_BANK_8192E', 'VAR_61': 'EFUSE_MAX_BANK_8192E', 'FUNC_18': 'INCLUDE_MULTI_FUNC_BT', 'VAR_62': '_Adapter', 'FUNC_19': '_8051Reset8192E', 'CLASS_5': 'PADAPTER', 'VAR_63': 'PADAPTER', 'VAR_64': 'padapter', 'CLASS_6': 's32', 'FUNC_20': 'FirmwareDownload8192E', 'VAR_65': 'Adapter', 'CLASS_7': 'BOOLEAN', 'VAR_66': 'BOOLEAN', 'VAR_67': 'bUsedWoWLANFw', 'FUNC_21': 'InitializeFirmwareVars8192E', 'FUNC_22': 'InitLLTTable8192E', 'VAR_68': 'txpktbuf_bndy', 'FUNC_23': 'GetEEPROMSize8192E', 'FUNC_24': 'hal_InitPGData_8192E', 'VAR_69': 'PROMContent', 'FUNC_25': 'Hal_EfuseParseIDCode8192E', 'VAR_70': 'hwinfo', 'FUNC_26': 'Hal_ReadPROMVersion8192E', 'VAR_71': 'AutoLoadFail', 'FUNC_27': 'Hal_ReadPowerSavingMode8192E', 'FUNC_28': 'Hal_ReadTxPowerInfo8192E', 'FUNC_29': 'Hal_ReadBoardType8192E', 'VAR_72': 'pAdapter', 'FUNC_30': 'Hal_ReadThermalMeter_8192E', 'VAR_73': 'AutoloadFail', 'FUNC_31': 'Hal_ReadChannelPlan8192E', 'FUNC_32': 'Hal_EfuseParseXtal_8192E', 'FUNC_33': 'Hal_ReadAntennaDiversity8192E', 'FUNC_34': 'Hal_ReadPAType_8192E', 'FUNC_35': 'Hal_ReadAmplifierType_8192E', 'FUNC_36': 'Hal_ReadRFEType_8192E', 'FUNC_37': 'Hal_EfuseParseBTCoexistInfo8192E', 'FUNC_38': 'Hal_EfuseParseKFreeData_8192E', 'FUNC_39': 'Hal_CrystalAFEAdjust', 'CLASS_8': '_adapter', 'FUNC_40': 'HalDetectPwrDownMode8192E', 'VAR_74': 'CONFIG_AP_WOWLAN', 'FUNC_41': 'Hal_DetectWoWMode', 'CLASS_9': 'VOID', 'FUNC_42': '_InitQueueReservedPage_8192E', 'CLASS_10': 'IN', 'FUNC_43': '_InitQueuePriority_8192E', 'FUNC_44': '_InitTxBufferBoundary_8192E', 'FUNC_45': '_InitPageBoundary_8192E', 'FUNC_46': '_InitDriverInfoSize_8192E', 'VAR_75': 'drvInfoSize', 'FUNC_47': '_InitRDGSetting_8192E', 'FUNC_48': '_InitID_8192E', 'FUNC_49': '_InitNetworkType_8192E', 'FUNC_50': '_InitWMACSetting_8192E', 'FUNC_51': '_InitAdaptiveCtrl_8192E', 'FUNC_52': '_InitEDCA_8192E', 'FUNC_53': '_InitRetryFunction_8192E', 'FUNC_54': '_BBTurnOnBlock_8192E', 'FUNC_55': '_InitBeaconParameters_8192E', 'FUNC_56': '_InitBeaconMaxError_8192E', 'VAR_76': 'InfraMode', 'FUNC_57': 'SetBeaconRelatedRegisters8192E', 'FUNC_58': 'hal_ReadRFType_8192E', 'FUNC_59': 'SetHwReg8192E', 'VAR_77': 'variable', 'VAR_78': 'val', 'FUNC_60': 'GetHwReg8192E', 'FUNC_61': 'SetHalDefVar8192E', 'VAR_79': 'HAL_DEF_VARIABLE', 'VAR_80': 'eVariable', 'VAR_81': 'PVOID', 'FUNC_62': 'GetHalDefVar8192E', 'FUNC_63': 'rtl8192e_set_hal_ops', 'CLASS_11': 'hal_ops', 'VAR_82': 'pHalFunc', 'FUNC_64': 'init_hal_spec_8192e', 'VAR_83': 'adapter', 'FUNC_65': 'rtl8192e_init_default_value', 'FUNC_66': 'SetBcnCtrlReg', 'VAR_84': 'SetBits', 'VAR_85': 'ClearBits', 'FUNC_67': 'rtl8192e_start_thread', 'FUNC_68': 'rtl8192e_stop_thread', 'VAR_86': 'CONFIG_PCI_HCI', 'FUNC_69': 'InterruptRecognized8192EE', 'CLASS_12': 'u16', 'FUNC_70': 'get_txbd_rw_reg', 'VAR_87': 'ff_hwaddr', 'VAR_88': 'CONFIG_SDIO_HCI', 'VAR_89': 'CONFIG_SDIO_TX_ENABLE_AVAL_INT', 'FUNC_71': '_init_available_page_threshold', 'VAR_90': 'numHQ', 'VAR_91': 'numNQ', 'VAR_92': 'numLQ', 'VAR_93': 'numPubQ', 'VAR_94': 'CONFIG_BT_COEXIST', 'FUNC_72': 'rtl8192e_combo_card_WifiOnlyHwInit'} | c | Hibrido | 93.74% |
/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86Configure.c,v 3.96 2008/11/23 17:32:22 tsi Exp $ */
/*
* Copyright 2000-2002 by <NAME>, Flint Mountain, North Wales.
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the name of Alan Hourihane not be used in
* advertising or publicity pertaining to distribution of the software without
* specific, written prior permission. Alan Hourihane makes no representations
* about the suitability of this software for any purpose. It is provided
* "as is" without express or implied warranty.
*
* ALAN HOURIHANE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
* EVENT SHALL ALAN HOURIHANE BE LIABLE FOR ANY SPECIAL, INDIRECT OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*
* Author: <NAME>, <EMAIL>
*
*/
/*
* Copyright (c) 2004-2005 by The XFree86 Project, Inc.
* All rights reserved.
*
* 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:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions, and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer
* in the documentation and/or other materials provided with the
* distribution, and in the same place and form as other copyright,
* license and disclaimer information.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment: "This product
* includes software developed by The XFree86 Project, Inc
* (http://www.xfree86.org/) and its contributors", in the same
* place and form as other third-party acknowledgments. Alternately,
* this acknowledgment may appear in the software itself, in the
* same form and location as other such third-party acknowledgments.
*
* 4. Except as contained in this notice, the name of The XFree86
* Project, Inc shall not be used in advertising or otherwise to
* promote the sale, use or other dealings in this Software without
* prior written authorization from The XFree86 Project, Inc.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE XFREE86 PROJECT, INC OR ITS CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <X11/X.h>
#include <X11/Xmd.h>
#include "os.h"
#ifdef XFree86LOADER
#include "loaderProcs.h"
#endif
#include "xf86.h"
#include "xf86Config.h"
#include "xf86Priv.h"
#include "xf86PciData.h"
#define IN_XSERVER
#include "xf86Parser.h"
#include "xf86tokens.h"
#include "xf86DDC.h"
#if defined(__sparc__)
#include "xf86Bus.h"
#include "xf86Sbus.h"
#endif
#include "globals.h"
typedef struct _DevToConfig {
GDevRec GDev;
pciVideoPtr pVideo;
#if defined(__sparc__)
sbusDevicePtr sVideo;
#endif
int iDriver;
} DevToConfigRec, *DevToConfigPtr;
static DevToConfigPtr DevToConfig = NULL;
static int nDevToConfig = 0, CurrentDriver;
xf86MonPtr ConfiguredMonitor;
Bool xf86DoConfigurePass1 = TRUE;
static Bool foundMouse = FALSE;
#if defined(__UNIXOS2__)
#define DFLT_MOUSE_DEV "mouse$"
#define DFLT_MOUSE_PROTO "OS2Mouse"
#elif defined(__SCO__)
static char *DFLT_MOUSE_PROTO = "OSMouse";
#elif defined(QNX4)
static char *DFLT_MOUSE_PROTO = "OSMouse";
static char *DFLT_MOUSE_DEV = "/dev/mouse";
#elif defined(__QNXNTO__)
static char *DFLT_MOUSE_PROTO = "OSMouse";
static char *DFLT_MOUSE_DEV = "/dev/devi/mouse0";
#elif defined(__FreeBSD__)
static char *DFLT_MOUSE_DEV = "/dev/sysmouse";
static char *DFLT_MOUSE_PROTO = "auto";
#else
static char *DFLT_MOUSE_DEV = "/dev/mouse";
static char *DFLT_MOUSE_PROTO = "auto";
#endif
/*
* This is called by the driver, either through xf86Match???Instances() or
* directly. We allocate a GDevRec and fill it in as much as we can, letting
* the caller fill in the rest and/or change it as it sees fit.
*/
GDevPtr
xf86AddBusDeviceToConfigure(const char *driver, BusType bus, void *busData, int chipset)
{
int i, j;
pciVideoPtr pVideo = NULL;
Bool isPrimary = FALSE;
if (xf86DoProbe || !xf86DoConfigure || !xf86DoConfigurePass1)
return NULL;
/* Check for duplicates */
switch (bus) {
case BUS_PCI:
pVideo = (pciVideoPtr) busData;
for (i = 0; i < nDevToConfig; i++)
if (DevToConfig[i].pVideo &&
(DevToConfig[i].pVideo->bus == pVideo->bus) &&
(DevToConfig[i].pVideo->device == pVideo->device) &&
(DevToConfig[i].pVideo->func == pVideo->func))
return NULL;
isPrimary = xf86IsPrimaryPci(pVideo);
break;
case BUS_ISA:
/*
* This needs to be revisited as it doesn't allow for non-PCI
* multihead.
*/
if (!xf86IsPrimaryIsa())
return NULL;
isPrimary = TRUE;
for (i = 0; i < nDevToConfig; i++)
if (!DevToConfig[i].pVideo)
return NULL;
break;
#if defined(__sparc__)
case BUS_SBUS:
for (i = 0; i < nDevToConfig; i++)
if (DevToConfig[i].sVideo &&
DevToConfig[i].sVideo->fbNum == ((sbusDevicePtr) busData)->fbNum)
return NULL;
break;
#endif
default:
return NULL;
}
/* Allocate new structure occurrence */
i = nDevToConfig++;
DevToConfig =
xnfrealloc(DevToConfig, nDevToConfig * sizeof(DevToConfigRec));
#if 1 /* Doesn't work when a driver detects more than one adapter */
if ((i > 0) && isPrimary) {
memmove(DevToConfig + 1,DevToConfig,
(nDevToConfig - 1) * sizeof(DevToConfigRec));
i = 0;
}
#endif
memset(DevToConfig + i, 0, sizeof(DevToConfigRec));
# define NewDevice DevToConfig[i]
NewDevice.GDev.chipID = NewDevice.GDev.chipRev = NewDevice.GDev.irq = -1;
NewDevice.iDriver = CurrentDriver;
/* Fill in what we know, converting the driver name to lower case */
NewDevice.GDev.driver = xnfalloc(strlen(driver) + 1);
for (j = 0; (NewDevice.GDev.driver[j] = tolower(driver[j])); j++);
switch (bus) {
case BUS_PCI: {
const char *VendorName;
const char *CardName;
char busnum[8];
NewDevice.pVideo = pVideo;
xf86FindPciNamesByDevice(pVideo->vendor, pVideo->chipType,
NOVENDOR, NOSUBSYS,
&VendorName, &CardName, NULL, NULL);
if (!VendorName) {
VendorName = xnfalloc(15);
sprintf((char*)VendorName, "Unknown Vendor");
}
if (!CardName) {
CardName = xnfalloc(14);
sprintf((char*)CardName, "Unknown Board");
}
NewDevice.GDev.identifier =
xnfalloc(strlen(VendorName) + strlen(CardName) + 2);
sprintf(NewDevice.GDev.identifier, "%s %s", VendorName, CardName);
NewDevice.GDev.vendor = (char *)VendorName;
NewDevice.GDev.board = (char *)CardName;
NewDevice.GDev.busID = xnfalloc(16);
xf86FormatPciBusNumber(pVideo->bus, busnum);
sprintf(NewDevice.GDev.busID, "PCI:%s:%d:%d",
busnum, pVideo->device, pVideo->func);
NewDevice.GDev.chipID = pVideo->chipType;
NewDevice.GDev.chipRev = pVideo->chipRev;
if (chipset < 0)
chipset = (pVideo->vendor << 16) | pVideo->chipType;
}
break;
case BUS_ISA:
NewDevice.GDev.identifier = "ISA Adapter";
NewDevice.GDev.busID = "ISA";
break;
#if defined(__sparc__)
case BUS_SBUS: {
char *promPath = NULL;
NewDevice.sVideo = (sbusDevicePtr) busData;
NewDevice.GDev.identifier = NewDevice.sVideo->descr;
if (sparcPromInit() >= 0) {
promPath = sparcPromNode2Pathname(&NewDevice.sVideo->node);
sparcPromClose();
}
if (promPath) {
NewDevice.GDev.busID = xnfalloc(strlen(promPath) + 6);
sprintf(NewDevice.GDev.busID, "SBUS:%s", promPath);
xfree(promPath);
} else {
NewDevice.GDev.busID = xnfalloc(12);
sprintf(NewDevice.GDev.busID, "SBUS:fb%d", NewDevice.sVideo->fbNum);
}
}
break;
#endif
default:
break;
}
/* Get driver's available options */
if (xf86DriverList[CurrentDriver]->AvailableOptions)
NewDevice.GDev.options = (OptionInfoPtr)
(*xf86DriverList[CurrentDriver]->AvailableOptions)(chipset,
bus);
return &NewDevice.GDev;
# undef NewDevice
}
/*
* Backwards compatibility
*/
GDevPtr
xf86AddDeviceToConfigure(const char *driver, pciVideoPtr pVideo, int chipset)
{
return xf86AddBusDeviceToConfigure(driver, pVideo ? BUS_PCI : BUS_ISA,
pVideo, chipset);
}
#define configPrologue(type) \
type ptr; \
if (!(ptr = xf86confcalloc(1, sizeof(*ptr)))) \
return NULL;
static XF86ConfInputPtr
configureInputSection (void)
{
XF86ConfInputPtr mouse = NULL;
configPrologue(XF86ConfInputPtr)
ptr->inp_identifier = "Keyboard0";
#if defined(WSCONS_SUPPORT)
/* check for /dev/wskbd */
{
#if defined(__NetBSD__)
# define WSKBD "/dev/wskbd"
#elif defined(__OpenBSD__)
# define WSKBD "/dev/wskbd0"
#endif
int fd = open(WSKBD, 0);
if (fd > 0) {
close(fd);
ptr->inp_driver = "kbd";
ptr->inp_option_lst =
xf86addNewOption(ptr->inp_option_lst, "Protocol", "wskbd");
ptr->inp_option_lst =
xf86addNewOption(ptr->inp_option_lst, "Device", WSKBD);
} else {
/* no /dev/wskbd - fall back to legacy driver */
ptr->inp_driver = "keyboard";
}
}
#else
ptr->inp_driver = "keyboard";
#endif
ptr->list.next = NULL;
/* Crude mechanism to auto-detect mouse (os dependent) */
{
int fd;
#if 0 && defined linux
/* Our autodetection code can do a better job */
int len;
char path[32];
if ((len = readlink(DFLT_MOUSE_DEV, path, sizeof(path) - 1)) > 0) {
path[len] = '\0';
if (strstr(path, "psaux") != NULL)
DFLT_MOUSE_PROTO = "PS/2";
}
#endif
#ifdef WSCONS_SUPPORT
fd = open("/dev/wsmouse", 0);
if (fd > 0) {
DFLT_MOUSE_DEV = "/dev/wsmouse";
DFLT_MOUSE_PROTO = "wsmouse";
close(fd);
} else {
ErrorF("cannot open /dev/wsmouse\n");
}
#endif
#ifndef __SCO__
fd = open(DFLT_MOUSE_DEV, 0);
if (fd != -1) {
foundMouse = TRUE;
close(fd);
}
#else
foundMouse = TRUE;
#endif
}
mouse = xf86confmalloc(sizeof(XF86ConfInputRec));
memset((XF86ConfInputPtr)mouse,0,sizeof(XF86ConfInputRec));
mouse->inp_identifier = "Mouse0";
mouse->inp_driver = "mouse";
mouse->inp_option_lst =
xf86addNewOption(mouse->inp_option_lst, "Protocol", DFLT_MOUSE_PROTO);
#ifndef __SCO__
mouse->inp_option_lst =
xf86addNewOption(mouse->inp_option_lst, "Device", DFLT_MOUSE_DEV);
#endif
ptr = (XF86ConfInputPtr)xf86addListItem((glp)ptr, (glp)mouse);
return ptr;
}
static XF86ConfDRIPtr
configureDRISection (void)
{
#ifdef NOTYET
configPrologue(XF86ConfDRIPtr)
return ptr;
#else
return NULL;
#endif
}
static XF86ConfVendorPtr
configureVendorSection (void)
{
return NULL;
}
static XF86ConfScreenPtr
configureScreenSection (int screennum)
{
int i;
int depths[] = { 1, 4, 8, 15, 16, 24/*, 32*/ };
configPrologue(XF86ConfScreenPtr)
ptr->scrn_identifier = xf86confmalloc(18);
sprintf(ptr->scrn_identifier, "Screen%d", screennum);
ptr->scrn_monitor_str = xf86confmalloc(19);
sprintf(ptr->scrn_monitor_str, "Monitor%d", screennum);
ptr->scrn_device_str = xf86confmalloc(16);
sprintf(ptr->scrn_device_str, "Card%d", screennum);
for (i=0; i<sizeof(depths)/sizeof(depths[0]); i++)
{
XF86ConfDisplayPtr display;
display = xf86confmalloc(sizeof(XF86ConfDisplayRec));
memset((XF86ConfDisplayPtr)display,0,sizeof(XF86ConfDisplayRec));
display->disp_depth = depths[i];
display->disp_black.red = display->disp_white.red = -1;
display->disp_black.green = display->disp_white.green = -1;
display->disp_black.blue = display->disp_white.blue = -1;
ptr->scrn_display_lst = (XF86ConfDisplayPtr)xf86addListItem(
(glp)ptr->scrn_display_lst, (glp)display);
}
return ptr;
}
static const char*
optionTypeToString(OptionValueType type)
{
switch (type) {
case OPTV_NONE:
return "";
case OPTV_INTEGER:
return "<i>";
case OPTV_STRING:
return "<str>";
case OPTV_ANYSTR:
return "[<str>]";
case OPTV_REAL:
return "<f>";
case OPTV_BOOLEAN:
return "[<bool>]";
case OPTV_FREQ:
return "<freq>";
default:
return "";
}
}
static XF86ConfDevicePtr
configureDeviceSection (int screennum)
{
char identifier[16];
OptionInfoPtr p;
int i = 0;
#ifdef DO_FBDEV_PROBE
Bool foundFBDEV = FALSE;
#endif
configPrologue(XF86ConfDevicePtr)
/* Move device info to parser structure */
sprintf(identifier, "Card%d", screennum);
ptr->dev_identifier = strdup(identifier);
/* ptr->dev_identifier = DevToConfig[screennum].GDev.identifier;*/
ptr->dev_vendor = DevToConfig[screennum].GDev.vendor;
ptr->dev_board = DevToConfig[screennum].GDev.board;
ptr->dev_chipset = DevToConfig[screennum].GDev.chipset;
ptr->dev_busid = DevToConfig[screennum].GDev.busID;
ptr->dev_driver = DevToConfig[screennum].GDev.driver;
ptr->dev_ramdac = DevToConfig[screennum].GDev.ramdac;
for (i = 0; (i < MAXDACSPEEDS) && (i < CONF_MAXDACSPEEDS); i++)
ptr->dev_dacSpeeds[i] = DevToConfig[screennum].GDev.dacSpeeds[i];
ptr->dev_videoram = DevToConfig[screennum].GDev.videoRam;
ptr->dev_textclockfreq = DevToConfig[screennum].GDev.textClockFreq;
ptr->dev_bios_base = DevToConfig[screennum].GDev.BiosBase;
ptr->dev_mem_base = DevToConfig[screennum].GDev.MemBase;
ptr->dev_io_base = DevToConfig[screennum].GDev.IOBase;
ptr->dev_clockchip = DevToConfig[screennum].GDev.clockchip;
for (i = 0; (i < MAXCLOCKS) && (i < DevToConfig[screennum].GDev.numclocks); i++)
ptr->dev_clock[i] = DevToConfig[screennum].GDev.clock[i];
ptr->dev_clocks = i;
ptr->dev_chipid = DevToConfig[screennum].GDev.chipID;
ptr->dev_chiprev = DevToConfig[screennum].GDev.chipRev;
ptr->dev_irq = DevToConfig[screennum].GDev.irq;
/* Make sure older drivers don't segv */
if (DevToConfig[screennum].GDev.options) {
/* Fill in the available driver options for people to use */
const char *descrip =
" ### Available Driver options are:-\n"
" ### Values: <i>: integer, <f>: float, "
"<bool>: \"True\"/\"False\",\n"
" ### <string>: \"String\", <freq>: \"<f> Hz/kHz/MHz\"\n"
" ### [arg]: arg optional\n";
ptr->dev_comment = xstrdup(descrip);
if (ptr->dev_comment) {
for (p = DevToConfig[screennum].GDev.options;
p->name != NULL; p++) {
char *p_e;
const char *prefix = " #Option ";
const char *middle = " \t# ";
const char *suffix = "\n";
const char *opttype = optionTypeToString(p->type);
char *optname;
int len = strlen(ptr->dev_comment) + strlen(prefix) +
strlen(middle) + strlen(suffix) + 1;
optname = xalloc(strlen(p->name) + 2 + 1);
if (!optname)
break;
sprintf(optname, "\"%s\"", p->name);
len += max(20, strlen(optname));
len += strlen(opttype);
ptr->dev_comment = xrealloc(ptr->dev_comment, len);
if (!ptr->dev_comment)
break;
p_e = ptr->dev_comment + strlen(ptr->dev_comment);
sprintf(p_e, "%s%-20s%s%s%s", prefix, optname, middle,
opttype, suffix);
xfree(optname);
}
}
}
#ifdef DO_FBDEV_PROBE
/* Crude mechanism to auto-detect fbdev (os dependent) */
/* Skip it for now. Options list it anyway, and we can't
* determine which screen/driver this belongs too anyway. */
{
int fd;
fd = open("/dev/fb0", 0);
if (fd != -1) {
foundFBDEV = TRUE;
close(fd);
}
}
if (foundFBDEV) {
XF86OptionPtr fbdev;
fbdev = xf86confmalloc(sizeof(XF86OptionRec));
memset((XF86OptionPtr)fbdev,0,sizeof(XF86OptionRec));
fbdev->opt_name = "UseFBDev";
fbdev->opt_val = "ON";
ptr->dev_option_lst = (XF86OptionPtr)xf86addListItem(
(glp)ptr->dev_option_lst, (glp)fbdev);
}
#endif
return ptr;
}
static XF86ConfLayoutPtr
configureLayoutSection (void)
{
int scrnum = 0;
configPrologue(XF86ConfLayoutPtr)
ptr->lay_identifier = "XFree86 Configured";
{
XF86ConfInputrefPtr iptr;
iptr = xf86confmalloc (sizeof (XF86ConfInputrefRec));
iptr->list.next = NULL;
iptr->iref_option_lst = NULL;
iptr->iref_inputdev_str = "Mouse0";
iptr->iref_option_lst =
xf86addNewOption (iptr->iref_option_lst, "CorePointer", NULL);
ptr->lay_input_lst = (XF86ConfInputrefPtr)
xf86addListItem ((glp) ptr->lay_input_lst, (glp) iptr);
}
{
XF86ConfInputrefPtr iptr;
iptr = xf86confmalloc (sizeof (XF86ConfInputrefRec));
iptr->list.next = NULL;
iptr->iref_option_lst = NULL;
iptr->iref_inputdev_str = "Keyboard0";
iptr->iref_option_lst =
xf86addNewOption (iptr->iref_option_lst, "CoreKeyboard", NULL);
ptr->lay_input_lst = (XF86ConfInputrefPtr)
xf86addListItem ((glp) ptr->lay_input_lst, (glp) iptr);
}
for (scrnum = 0; scrnum < nDevToConfig; scrnum++) {
XF86ConfAdjacencyPtr aptr;
aptr = xf86confmalloc (sizeof (XF86ConfAdjacencyRec));
aptr->list.next = NULL;
aptr->adj_x = 0;
aptr->adj_y = 0;
aptr->adj_scrnum = scrnum;
aptr->adj_screen_str = xnfalloc(18);
sprintf(aptr->adj_screen_str, "Screen%d", scrnum);
if (scrnum == 0) {
aptr->adj_where = CONF_ADJ_ABSOLUTE;
aptr->adj_refscreen = NULL;
}
else {
aptr->adj_where = CONF_ADJ_RIGHTOF;
aptr->adj_refscreen = xnfalloc(18);
sprintf(aptr->adj_refscreen, "Screen%d", scrnum - 1);
}
ptr->lay_adjacency_lst =
(XF86ConfAdjacencyPtr)xf86addListItem((glp)ptr->lay_adjacency_lst,
(glp)aptr);
}
return ptr;
}
static XF86ConfModesPtr
configureModesSection (void)
{
#ifdef NOTYET
configPrologue(XF86ConfModesPtr)
return ptr;
#else
return NULL;
#endif
}
static XF86ConfVideoAdaptorPtr
configureVideoAdaptorSection (void)
{
return NULL;
}
static XF86ConfFlagsPtr
configureFlagsSection (void)
{
return NULL;
}
static XF86ConfModulePtr
configureModuleSection (void)
{
#ifdef XFree86LOADER
char **elist, **el;
/* Find the list of extension modules. */
const char *esubdirs[] = {
"extensions",
NULL
};
const char *fsubdirs[] = {
"fonts",
NULL
};
configPrologue(XF86ConfModulePtr)
elist = LoaderListDirs(esubdirs, NULL);
if (elist) {
for (el = elist; *el; el++) {
XF86LoadPtr module;
module = xf86confmalloc(sizeof(XF86LoadRec));
memset((XF86LoadPtr)module,0,sizeof(XF86LoadRec));
module->load_name = *el;
/* HACK, remove GLcore, glx, loads it as a submodule */
if (strcmp(*el, "GLcore"))
ptr->mod_load_lst = (XF86LoadPtr)xf86addListItem(
(glp)ptr->mod_load_lst, (glp)module);
}
xfree(elist);
}
/* Process list of font backends separately to include only required ones */
elist = LoaderListDirs(fsubdirs, NULL);
if (elist) {
for (el = elist; *el; el++) {
XF86LoadPtr module;
module = xf86confmalloc(sizeof(XF86LoadRec));
memset((XF86LoadPtr)module,0,sizeof(XF86LoadRec));
module->load_name = *el;
/* Add only those font backends which are referenced by fontpath */
/* 'strstr(dFP,"/dir")' is meant as 'dFP =~ m(/dir\W)' */
if (defaultFontPath && (
(strcmp(*el, "xtt") == 0 &&
strstr(defaultFontPath, "/TrueType")) ||
(strcmp(*el, "type1") == 0 &&
strstr(defaultFontPath, "/Type1")) ||
(strcmp(*el, "speedo") == 0 &&
strstr(defaultFontPath, "/Speedo"))))
ptr->mod_load_lst = (XF86LoadPtr)xf86addListItem(
(glp)ptr->mod_load_lst, (glp)module);
}
xfree(elist);
}
return ptr;
#else
return NULL;
#endif
}
static XF86ConfFilesPtr
configureFilesSection (void)
{
configPrologue(XF86ConfFilesPtr)
if (xf86FilePaths->modulePath)
ptr->file_modulepath = strdup(xf86FilePaths->modulePath);
if (defaultFontPath)
ptr->file_fontpath = strdup(defaultFontPath);
if (rgbPath)
ptr->file_rgbpath = strdup(rgbPath);
return ptr;
}
static XF86ConfMonitorPtr
configureMonitorSection (int screennum)
{
configPrologue(XF86ConfMonitorPtr)
ptr->mon_identifier = xf86confmalloc(19);
sprintf(ptr->mon_identifier, "Monitor%d", screennum);
ptr->mon_vendor = strdup("Monitor Vendor");
ptr->mon_modelname = strdup("Monitor Model");
return ptr;
}
static XF86ConfMonitorPtr
configureDDCMonitorSection (int screennum)
{
int i = 0;
int len, mon_width, mon_height;
#define displaySizeMaxLen 80
char displaySize_string[displaySizeMaxLen];
int displaySizeLen;
configPrologue(XF86ConfMonitorPtr)
ptr->mon_identifier = xf86confmalloc(19);
sprintf(ptr->mon_identifier, "Monitor%d", screennum);
ptr->mon_vendor = strdup(ConfiguredMonitor->vendor.name);
ptr->mon_modelname = xf86confmalloc(12);
sprintf(ptr->mon_modelname, "%x", ConfiguredMonitor->vendor.prod_id);
/* features in centimetres, we want millimetres */
mon_width = 10 * ConfiguredMonitor->features.hsize ;
mon_height = 10 * ConfiguredMonitor->features.vsize ;
#ifdef CONFIGURE_DISPLAYSIZE
ptr->mon_width = mon_width;
ptr->mon_height = mon_height;
#else
if (mon_width && mon_height) {
/* when values available add DisplaySize option AS A COMMENT */
displaySizeLen = snprintf(displaySize_string, displaySizeMaxLen,
"\t#DisplaySize\t%5d %5d\t# mm\n",
mon_width, mon_height);
if (displaySizeLen>0 && displaySizeLen<displaySizeMaxLen) {
if (ptr->mon_comment) {
len = strlen(ptr->mon_comment);
} else {
len = 0;
}
if ((ptr->mon_comment =
xf86confrealloc(ptr->mon_comment,
len+strlen(displaySize_string)))) {
strcpy(ptr->mon_comment + len, displaySize_string);
}
}
}
#endif /* def CONFIGURE_DISPLAYSIZE */
for (i=0;i<4;i++) {
switch (ConfiguredMonitor->det_mon[i].type) {
case DT:
case DS_STD_TIMINGS:
case DS_WHITE_P:
break;
case DS_NAME:
ptr->mon_modelname = xf86confrealloc(ptr->mon_modelname,
strlen((char*)(ConfiguredMonitor->det_mon[i].section.name))
+ 1);
strcpy(ptr->mon_modelname,
(char*)(ConfiguredMonitor->det_mon[i].section.name));
break;
case DS_ASCII_STR:
case DS_SERIAL:
case DS_RANGES:
default:
break;
}
}
if (ConfiguredMonitor->features.dpms) {
ptr->mon_option_lst = xf86addNewOption(ptr->mon_option_lst, "DPMS", NULL);
}
return ptr;
}
void
DoConfigure()
{
int i,j, screennum = -1;
char *home = NULL;
char *filename = NULL;
XF86ConfigPtr xf86config = NULL;
const char **vlist, **vl;
int *dev2screen;
vlist = xf86DriverlistFromCompile();
if (!vlist) {
ErrorF("Missing output drivers. Configuration failed.\n");
goto bail;
}
ErrorF("List of video drivers:\n");
for (vl = vlist; *vl; vl++)
ErrorF("\t%s\n", *vl);
#ifdef XFree86LOADER
/* Load all the drivers that were found. */
xf86LoadModules(vlist, NULL);
#endif /* XFree86LOADER */
xfree(vlist);
/* Disable PCI devices */
xf86ResourceBrokerInit();
xf86AccessInit();
xf86FindPrimaryDevice();
/* Create XF86Config file structure */
xf86config = malloc(sizeof(XF86ConfigRec));
memset ((XF86ConfigPtr)xf86config, 0, sizeof(XF86ConfigRec));
xf86config->conf_device_lst = NULL;
xf86config->conf_screen_lst = NULL;
xf86config->conf_monitor_lst = NULL;
/* Call all of the probe functions, reporting the results. */
for (CurrentDriver = 0; CurrentDriver < xf86NumDrivers; CurrentDriver++) {
if (xf86DriverList[CurrentDriver]->Probe == NULL) continue;
if ((*xf86DriverList[CurrentDriver]->Probe)(
xf86DriverList[CurrentDriver], PROBE_DETECT) &&
xf86DriverList[CurrentDriver]->Identify)
(*xf86DriverList[CurrentDriver]->Identify)(0);
}
if (nDevToConfig <= 0) {
ErrorF("No devices to configure. Configuration failed.\n");
goto bail;
}
/* Add device, monitor and screen sections for detected devices */
for (screennum = 0; screennum < nDevToConfig; screennum++) {
XF86ConfDevicePtr DevicePtr;
XF86ConfMonitorPtr MonitorPtr;
XF86ConfScreenPtr ScreenPtr;
DevicePtr = configureDeviceSection(screennum);
xf86config->conf_device_lst = (XF86ConfDevicePtr)xf86addListItem(
(glp)xf86config->conf_device_lst, (glp)DevicePtr);
MonitorPtr = configureMonitorSection(screennum);
xf86config->conf_monitor_lst = (XF86ConfMonitorPtr)xf86addListItem(
(glp)xf86config->conf_monitor_lst, (glp)MonitorPtr);
ScreenPtr = configureScreenSection(screennum);
xf86config->conf_screen_lst = (XF86ConfScreenPtr)xf86addListItem(
(glp)xf86config->conf_screen_lst, (glp)ScreenPtr);
}
xf86config->conf_files_lst = configureFilesSection();
xf86config->conf_modules_lst = configureModuleSection();
xf86config->conf_flags_lst = configureFlagsSection();
xf86config->conf_videoadaptor_lst = configureVideoAdaptorSection();
xf86config->conf_modes_lst = configureModesSection();
xf86config->conf_vendor_lst = configureVendorSection();
xf86config->conf_dri_lst = configureDRISection();
xf86config->conf_input_lst = configureInputSection();
xf86config->conf_layout_lst = configureLayoutSection();
if (!(home = getenv("HOME")))
home = "/";
{
#ifdef __UNIXOS2__
#define PATH_MAX 2048
#endif
#ifndef PATH_MAX
#define PATH_MAX 1024
#endif
const char* configfile = XF86CONFIGFILE".new";
char homebuf[PATH_MAX];
/* getenv might return R/O memory, as with OS/2 */
strncpy(homebuf,home,PATH_MAX-1);
homebuf[PATH_MAX-1] = '\0';
home = homebuf;
if (!(filename =
(char *)ALLOCATE_LOCAL(strlen(home) +
strlen(configfile) + 3)))
goto bail;
if (home[0] == '/' && home[1] == '\0')
home[0] = '\0';
#ifndef QNX4
sprintf(filename, "%s/%s", home,configfile);
#else
sprintf(filename, "//%d%s/%s", getnid(),home,configfile);
#endif
}
xf86writeConfigFile(filename, xf86config);
xf86DoConfigurePass1 = FALSE;
/* Try to get DDC information filled in. */
xf86ConfigFile = filename;
if (xf86LoadConfigFile(NULL, FALSE) != CONFIG_OK ||
xf86ProcessConfiguration() != CONFIG_OK) {
goto bail;
}
dev2screen = xnfcalloc(1, nDevToConfig * sizeof(int));
{
Bool *driverProbed = xnfcalloc(1, xf86NumDrivers * sizeof(Bool));
int nextPrimary = 0;
for (screennum = 0; screennum < nDevToConfig; screennum++) {
int k, l, n, oldNumScreens;
i = DevToConfig[screennum].iDriver;
if (driverProbed[i])
continue;
driverProbed[i] = TRUE;
oldNumScreens = xf86NumScreens;
(*xf86DriverList[i]->Probe)(xf86DriverList[i], 0);
/* Possibly reorder */
for (l = oldNumScreens; l < xf86NumScreens; l++) {
/* is screen primary? */
Bool primary = FALSE;
for (n = 0; n<xf86Screens[l]->numEntities; n++) {
if (xf86IsEntityPrimary(xf86Screens[l]->entityList[n])) {
dev2screen[0] = l;
primary = TRUE;
break;
}
}
if (primary) {
for (k = l; --k >= nextPrimary; )
dev2screen[k + 1] = dev2screen[k];
dev2screen[nextPrimary++] = l;
} else {
dev2screen[l] = l;
}
}
xf86SetPciVideo(NULL, NONE);
}
xfree(driverProbed);
}
if (nDevToConfig != xf86NumScreens) {
ErrorF("Number of created screens does not match number of detected"
" devices.\n Configuration failed.\n");
goto bail;
}
xf86PostProbe();
xf86EntityInit();
for (j = 0; j < xf86NumScreens; j++) {
xf86Screens[j]->scrnIndex = j;
}
xf86freeMonitorList(xf86config->conf_monitor_lst);
xf86config->conf_monitor_lst = NULL;
xf86freeScreenList(xf86config->conf_screen_lst);
xf86config->conf_screen_lst = NULL;
for (j = 0; j < xf86NumScreens; j++) {
XF86ConfMonitorPtr MonitorPtr;
XF86ConfScreenPtr ScreenPtr;
ConfiguredMonitor = NULL;
xf86EnableAccess(xf86Screens[dev2screen[j]]);
if ((*xf86Screens[dev2screen[j]]->PreInit)(xf86Screens[dev2screen[j]],
PROBE_DETECT) &&
ConfiguredMonitor) {
MonitorPtr = configureDDCMonitorSection(j);
} else {
MonitorPtr = configureMonitorSection(j);
}
ScreenPtr = configureScreenSection(j);
xf86config->conf_monitor_lst = (XF86ConfMonitorPtr)xf86addListItem(
(glp)xf86config->conf_monitor_lst, (glp)MonitorPtr);
xf86config->conf_screen_lst = (XF86ConfScreenPtr)xf86addListItem(
(glp)xf86config->conf_screen_lst, (glp)ScreenPtr);
}
xf86writeConfigFile(filename, xf86config);
ErrorF("\n");
#ifdef __SCO__
ErrorF("\nXFree86 is using the kernel event driver to access the mouse.\n"
"If you wish to use the internal XFree86 mouse drivers, please\n"
"edit the file and correct the Device.\n");
#else /* !__SCO__ */
if (!foundMouse) {
ErrorF("\nXFree86 is not able to detect your mouse.\n"
"Edit the file and correct the Device.\n");
} else {
#ifndef __UNIXOS2__ /* OS/2 definitely has a mouse */
ErrorF("\nXFree86 detected your mouse at device %s.\n"
"Please check your config if the mouse is still not\n"
"operational, as by default XFree86 tries to autodetect\n"
"the protocol.\n",DFLT_MOUSE_DEV);
#endif
}
#endif /* !__SCO__ */
if (xf86NumScreens > 1) {
ErrorF("\nXFree86 has configured a multihead system, please check your config.\n");
}
ErrorF("\nYour XF86Config file is %s\n\n", filename);
ErrorF("To test the server, run 'XFree86 -xf86config %s'\n\n", filename);
bail:
OsCleanup(TRUE);
AbortDDX();
fflush(stderr);
exit(0);
}
| /* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86Configure.c,v 3.96 2008/11/23 17:32:22 tsi Exp $ */
/*
* Copyright 2000-2002 by <NAME>, Flint Mountain, North Wales.
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the name of Alan Hourihane not be used in
* advertising or publicity pertaining to distribution of the software without
* specific, written prior permission. Alan Hourihane makes no representations
* about the suitability of this software for any purpose. It is provided
* "as is" without express or implied warranty.
*
* ALAN HOURIHANE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
* EVENT SHALL ALAN HOURIHANE BE LIABLE FOR ANY SPECIAL, INDIRECT OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*
* Author: <NAME>, <EMAIL>
*
*/
/*
* Copyright (c) 2004-2005 by The XFree86 Project, Inc.
* All rights reserved.
*
* 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:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions, and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer
* in the documentation and/or other materials provided with the
* distribution, and in the same place and form as other copyright,
* license and disclaimer information.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment: "This product
* includes software developed by The XFree86 Project, Inc
* (http://www.xfree86.org/) and its contributors", in the same
* place and form as other third-party acknowledgments. Alternately,
* this acknowledgment may appear in the software itself, in the
* same form and location as other such third-party acknowledgments.
*
* 4. Except as contained in this notice, the name of The XFree86
* Project, Inc shall not be used in advertising or otherwise to
* promote the sale, use or other dealings in this Software without
* prior written authorization from The XFree86 Project, Inc.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE XFREE86 PROJECT, INC OR ITS CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <ctype.h>
#include <stdlib.h>
#include <IMPORT_17>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <X11/X.h>
#include <IMPORT_18>
#include "os.h"
#ifdef XFree86LOADER
#include "loaderProcs.h"
#endif
#include "IMPORT_19"
#include "xf86Config.h"
#include "IMPORT_20"
#include "xf86PciData.h"
#define VAR_151
#include "xf86Parser.h"
#include "xf86tokens.h"
#include "IMPORT_21"
#if defined(VAR_152)
#include "xf86Bus.h"
#include "xf86Sbus.h"
#endif
#include "globals.h"
typedef struct _DevToConfig {
GDevRec VAR_153;
CLASS_23 pVideo;
#if defined(VAR_152)
sbusDevicePtr VAR_154;
#endif
int VAR_155;
} DevToConfigRec, *DevToConfigPtr;
static DevToConfigPtr DevToConfig = NULL;
static int nDevToConfig = 0, CurrentDriver;
CLASS_24 VAR_156;
CLASS_25 xf86DoConfigurePass1 = TRUE;
static CLASS_25 VAR_158 = FALSE;
#if defined(__UNIXOS2__)
#define DFLT_MOUSE_DEV "mouse$"
#define VAR_159 "OS2Mouse"
#elif defined(VAR_160)
static char *VAR_159 = "OSMouse";
#elif defined(QNX4)
static char *VAR_159 = "OSMouse";
static char *DFLT_MOUSE_DEV = "/dev/mouse";
#elif defined(__QNXNTO__)
static char *VAR_159 = "OSMouse";
static char *DFLT_MOUSE_DEV = "/dev/devi/mouse0";
#elif defined(__FreeBSD__)
static char *DFLT_MOUSE_DEV = "/dev/sysmouse";
static char *VAR_159 = "auto";
#else
static char *DFLT_MOUSE_DEV = "/dev/mouse";
static char *VAR_159 = "auto";
#endif
/*
* This is called by the driver, either through xf86Match???Instances() or
* directly. We allocate a GDevRec and fill it in as much as we can, letting
* the caller fill in the rest and/or change it as it sees fit.
*/
CLASS_26
xf86AddBusDeviceToConfigure(const char *driver, BusType bus, void *busData, int VAR_161)
{
int VAR_162, j;
CLASS_23 pVideo = NULL;
CLASS_25 VAR_163 = FALSE;
if (xf86DoProbe || !VAR_164 || !xf86DoConfigurePass1)
return NULL;
/* Check for duplicates */
switch (bus) {
case BUS_PCI:
pVideo = (ID_13) busData;
for (VAR_162 = 0; VAR_162 < nDevToConfig; VAR_162++)
if (DevToConfig[VAR_162].pVideo &&
(DevToConfig[VAR_162].pVideo->bus == pVideo->bus) &&
(DevToConfig[VAR_162].pVideo->device == pVideo->device) &&
(DevToConfig[VAR_162].pVideo->VAR_165 == pVideo->VAR_165))
return NULL;
VAR_163 = xf86IsPrimaryPci(pVideo);
break;
case VAR_166:
/*
* This needs to be revisited as it doesn't allow for non-PCI
* multihead.
*/
if (!FUNC_2())
return NULL;
VAR_163 = TRUE;
for (VAR_162 = 0; VAR_162 < nDevToConfig; VAR_162++)
if (!DevToConfig[VAR_162].pVideo)
return NULL;
break;
#if defined(VAR_152)
case BUS_SBUS:
for (VAR_162 = 0; VAR_162 < nDevToConfig; VAR_162++)
if (DevToConfig[VAR_162].VAR_154 &&
DevToConfig[VAR_162].VAR_154->VAR_167 == ((sbusDevicePtr) busData)->VAR_167)
return NULL;
break;
#endif
default:
return NULL;
}
/* Allocate new structure occurrence */
VAR_162 = nDevToConfig++;
DevToConfig =
xnfrealloc(DevToConfig, nDevToConfig * sizeof(DevToConfigRec));
#if 1 /* Doesn't work when a driver detects more than one adapter */
if ((VAR_162 > 0) && VAR_163) {
memmove(DevToConfig + 1,DevToConfig,
(nDevToConfig - 1) * sizeof(DevToConfigRec));
VAR_162 = 0;
}
#endif
memset(DevToConfig + VAR_162, 0, sizeof(DevToConfigRec));
# define NewDevice DevToConfig[i]
NewDevice.VAR_153.chipID = NewDevice.VAR_153.VAR_168 = NewDevice.VAR_153.irq = -1;
NewDevice.VAR_155 = CurrentDriver;
/* Fill in what we know, converting the driver name to lower case */
NewDevice.VAR_153.driver = FUNC_5(strlen(driver) + 1);
for (j = 0; (NewDevice.VAR_153.driver[j] = tolower(driver[j])); j++);
switch (bus) {
case BUS_PCI: {
const char *VendorName;
const char *CardName;
char busnum[8];
NewDevice.pVideo = pVideo;
FUNC_8(pVideo->vendor, pVideo->chipType,
VAR_169, NOSUBSYS,
&VendorName, &CardName, NULL, NULL);
if (!VendorName) {
VendorName = FUNC_5(15);
sprintf((char*)VendorName, "Unknown Vendor");
}
if (!CardName) {
CardName = FUNC_5(14);
sprintf((char*)CardName, "Unknown Board");
}
NewDevice.VAR_153.VAR_170 =
FUNC_5(strlen(VendorName) + strlen(CardName) + 2);
sprintf(NewDevice.VAR_153.VAR_170, "%s %s", VendorName, CardName);
NewDevice.VAR_153.vendor = (char *)VendorName;
NewDevice.VAR_153.board = (char *)CardName;
NewDevice.VAR_153.busID = FUNC_5(16);
xf86FormatPciBusNumber(pVideo->bus, busnum);
sprintf(NewDevice.VAR_153.busID, "PCI:%s:%d:%d",
busnum, pVideo->device, pVideo->VAR_165);
NewDevice.VAR_153.chipID = pVideo->chipType;
NewDevice.VAR_153.VAR_168 = pVideo->VAR_168;
if (VAR_161 < 0)
VAR_161 = (pVideo->vendor << 16) | pVideo->chipType;
}
break;
case VAR_166:
NewDevice.VAR_153.VAR_170 = "ISA Adapter";
NewDevice.VAR_153.busID = "ISA";
break;
#if defined(VAR_152)
case BUS_SBUS: {
char *VAR_171 = NULL;
NewDevice.VAR_154 = (sbusDevicePtr) busData;
NewDevice.VAR_153.VAR_170 = NewDevice.VAR_154->descr;
if (FUNC_11() >= 0) {
VAR_171 = FUNC_12(&NewDevice.VAR_154->VAR_172);
sparcPromClose();
}
if (VAR_171) {
NewDevice.VAR_153.busID = FUNC_5(strlen(VAR_171) + 6);
sprintf(NewDevice.VAR_153.busID, "SBUS:%s", VAR_171);
xfree(VAR_171);
} else {
NewDevice.VAR_153.busID = FUNC_5(12);
sprintf(NewDevice.VAR_153.busID, "SBUS:fb%d", NewDevice.VAR_154->VAR_167);
}
}
break;
#endif
default:
break;
}
/* Get driver's available options */
if (xf86DriverList[CurrentDriver]->AvailableOptions)
NewDevice.VAR_153.options = (VAR_173)
(*xf86DriverList[CurrentDriver]->AvailableOptions)(VAR_161,
bus);
return &NewDevice.VAR_153;
# undef NewDevice
}
/*
* Backwards compatibility
*/
CLASS_26
xf86AddDeviceToConfigure(const char *driver, CLASS_23 pVideo, int VAR_161)
{
return xf86AddBusDeviceToConfigure(driver, pVideo ? BUS_PCI : VAR_166,
pVideo, VAR_161);
}
#define configPrologue(VAR_174) \
type ptr; \
if (!(ptr = xf86confcalloc(1, sizeof(*ptr)))) \
return NULL;
static XF86ConfInputPtr
FUNC_17 (void)
{
XF86ConfInputPtr mouse = NULL;
configPrologue(XF86ConfInputPtr)
ptr->inp_identifier = "Keyboard0";
#if defined(WSCONS_SUPPORT)
/* check for /dev/wskbd */
{
#if defined(__NetBSD__)
# define WSKBD "/dev/wskbd"
#elif defined(VAR_175)
# define WSKBD "/dev/wskbd0"
#endif
int fd = FUNC_18(WSKBD, 0);
if (fd > 0) {
FUNC_19(fd);
ptr->inp_driver = "kbd";
ptr->VAR_176 =
FUNC_20(ptr->VAR_176, "Protocol", "wskbd");
ptr->VAR_176 =
FUNC_20(ptr->VAR_176, "Device", WSKBD);
} else {
/* no /dev/wskbd - fall back to legacy driver */
ptr->inp_driver = "keyboard";
}
}
#else
ptr->inp_driver = "keyboard";
#endif
ptr->list.next = NULL;
/* Crude mechanism to auto-detect mouse (os dependent) */
{
int fd;
#if 0 && defined linux
/* Our autodetection code can do a better job */
int VAR_177;
char path[32];
if ((VAR_177 = readlink(DFLT_MOUSE_DEV, path, sizeof(path) - 1)) > 0) {
path[VAR_177] = '\0';
if (strstr(path, "psaux") != NULL)
VAR_159 = "PS/2";
}
#endif
#ifdef WSCONS_SUPPORT
fd = FUNC_18("/dev/wsmouse", 0);
if (fd > 0) {
DFLT_MOUSE_DEV = "/dev/wsmouse";
VAR_159 = "wsmouse";
FUNC_19(fd);
} else {
ErrorF("cannot open /dev/wsmouse\n");
}
#endif
#ifndef VAR_160
fd = FUNC_18(DFLT_MOUSE_DEV, 0);
if (fd != -1) {
VAR_158 = TRUE;
FUNC_19(fd);
}
#else
VAR_158 = TRUE;
#endif
}
mouse = FUNC_40(sizeof(VAR_178));
memset((XF86ConfInputPtr)mouse,0,sizeof(VAR_178));
mouse->inp_identifier = "Mouse0";
mouse->inp_driver = "mouse";
mouse->VAR_176 =
FUNC_20(mouse->VAR_176, "Protocol", VAR_159);
#ifndef VAR_160
mouse->VAR_176 =
FUNC_20(mouse->VAR_176, "Device", DFLT_MOUSE_DEV);
#endif
ptr = (XF86ConfInputPtr)xf86addListItem((glp)ptr, (glp)mouse);
return ptr;
}
static CLASS_29
configureDRISection (void)
{
#ifdef NOTYET
configPrologue(ID_14)
VAR_179 ptr;
#else
return NULL;
#endif
}
static XF86ConfVendorPtr
configureVendorSection (void)
{
return NULL;
}
static XF86ConfScreenPtr
FUNC_27 (int screennum)
{
int VAR_162;
int VAR_180[] = { 1, 4, 8, 15, 16, 24/*, 32*/ };
configPrologue(XF86ConfScreenPtr)
ptr->VAR_181 = FUNC_40(18);
sprintf(ptr->VAR_181, "Screen%d", screennum);
ptr->scrn_monitor_str = FUNC_40(19);
sprintf(ptr->scrn_monitor_str, "Monitor%d", screennum);
ptr->scrn_device_str = FUNC_40(16);
sprintf(ptr->scrn_device_str, "Card%d", screennum);
for (VAR_162=0; VAR_162<sizeof(VAR_180)/sizeof(VAR_180[0]); VAR_162++)
{
XF86ConfDisplayPtr display;
display = FUNC_40(sizeof(VAR_182));
memset((XF86ConfDisplayPtr)display,0,sizeof(VAR_182));
display->disp_depth = VAR_180[VAR_162];
display->VAR_183.VAR_184 = display->disp_white.VAR_184 = -1;
display->VAR_183.green = display->disp_white.green = -1;
display->VAR_183.VAR_185 = display->disp_white.VAR_185 = -1;
ptr->scrn_display_lst = (XF86ConfDisplayPtr)xf86addListItem(
(glp)ptr->scrn_display_lst, (glp)display);
}
return ptr;
}
static const char*
FUNC_28(OptionValueType VAR_174)
{
switch (VAR_174) {
case OPTV_NONE:
return "";
case VAR_186:
return "<i>";
case VAR_187:
return "<str>";
case OPTV_ANYSTR:
return "[<str>]";
case OPTV_REAL:
return "<f>";
case OPTV_BOOLEAN:
return "[<bool>]";
case VAR_188:
return "<freq>";
default:
return "";
}
}
static XF86ConfDevicePtr
FUNC_29 (int screennum)
{
char VAR_170[16];
CLASS_28 p;
int VAR_162 = 0;
#ifdef VAR_189
CLASS_25 foundFBDEV = FALSE;
#endif
configPrologue(XF86ConfDevicePtr)
/* Move device info to parser structure */
sprintf(CLASS_27, "Card%VAR_190", screennum);
ptr->VAR_191 = strdup(VAR_170);
/* ptr->dev_identifier = DevToConfig[screennum].GDev.identifier;*/
ptr->VAR_192 = DevToConfig[screennum].VAR_153.vendor;
ptr->dev_board = DevToConfig[screennum].VAR_153.board;
ptr->dev_chipset = DevToConfig[screennum].VAR_153.VAR_161;
ptr->VAR_193 = DevToConfig[screennum].VAR_153.busID;
ptr->dev_driver = DevToConfig[screennum].VAR_153.driver;
ptr->VAR_194 = DevToConfig[screennum].VAR_153.ramdac;
for (VAR_162 = 0; (VAR_162 < MAXDACSPEEDS) && (VAR_162 < VAR_195); VAR_162++)
ptr->dev_dacSpeeds[VAR_162] = DevToConfig[screennum].VAR_153.VAR_196[VAR_162];
ptr->dev_videoram = DevToConfig[screennum].VAR_153.videoRam;
ptr->VAR_197 = DevToConfig[screennum].VAR_153.VAR_198;
ptr->VAR_199 = DevToConfig[screennum].VAR_153.VAR_200;
ptr->VAR_201 = DevToConfig[screennum].VAR_153.VAR_202;
ptr->dev_io_base = DevToConfig[screennum].VAR_153.IOBase;
ptr->dev_clockchip = DevToConfig[screennum].VAR_153.clockchip;
for (VAR_162 = 0; (VAR_162 < MAXCLOCKS) && (VAR_162 < DevToConfig[screennum].VAR_153.numclocks); VAR_162++)
ptr->VAR_203[VAR_162] = DevToConfig[screennum].VAR_153.clock[VAR_162];
ptr->VAR_204 = VAR_162;
ptr->dev_chipid = DevToConfig[screennum].VAR_153.chipID;
ptr->dev_chiprev = DevToConfig[screennum].VAR_153.VAR_168;
ptr->dev_irq = DevToConfig[screennum].VAR_153.irq;
/* Make sure older drivers don't segv */
if (DevToConfig[screennum].VAR_153.options) {
/* Fill in the available driver options for people to use */
const char *descrip =
" ### Available Driver options are:-\n"
" ### Values: <i>: integer, <f>: float, "
"<bool>: \"True\"/\"False\",\n"
" ### <string>: \"String\", <freq>: \"<f> Hz/kHz/MHz\"\n"
" ### [arg]: arg optional\n";
ptr->dev_comment = xstrdup(descrip);
if (ptr->dev_comment) {
for (p = DevToConfig[screennum].VAR_153.options;
p->VAR_205 != NULL; p++) {
char *VAR_206;
const char *prefix = " #Option ";
const char *middle = " \t# ";
const char *suffix = "\n";
const char *VAR_207 = FUNC_28(p->VAR_174);
char *optname;
int VAR_177 = strlen(ptr->dev_comment) + strlen(prefix) +
strlen(middle) + strlen(suffix) + 1;
optname = FUNC_32(strlen(p->VAR_205) + 2 + 1);
if (!optname)
break;
sprintf(optname, "\"%s\"", p->VAR_205);
VAR_177 += FUNC_33(20, strlen(optname));
VAR_177 += strlen(VAR_207);
ptr->dev_comment = FUNC_34(ptr->dev_comment, VAR_177);
if (!ptr->dev_comment)
break;
VAR_206 = ptr->dev_comment + strlen(ptr->dev_comment);
sprintf(VAR_206, "%s%-20s%s%s%s", prefix, optname, middle,
VAR_207, suffix);
xfree(optname);
}
}
}
#ifdef VAR_189
/* Crude mechanism to auto-detect fbdev (os dependent) */
/* Skip it for now. Options list it anyway, and we can't
* determine which screen/driver this belongs too anyway. */
{
int fd;
fd = FUNC_18("/dev/fb0", 0);
if (fd != -1) {
foundFBDEV = TRUE;
FUNC_19(fd);
}
}
if (foundFBDEV) {
CLASS_30 fbdev;
fbdev = FUNC_40(sizeof(XF86OptionRec));
memset((ID_15)fbdev,0,sizeof(XF86OptionRec));
fbdev->opt_name = "UseFBDev";
fbdev->VAR_208 = "ON";
ptr->dev_option_lst = (ID_15)xf86addListItem(
(glp)ptr->dev_option_lst, (glp)fbdev);
}
#endif
return ptr;
}
static CLASS_31
FUNC_35 (void)
{
int VAR_209 = 0;
configPrologue(ID_16)
ptr->lay_identifier = "XFree86 Configured";
{
CLASS_32 VAR_210;
VAR_210 = FUNC_40 (sizeof (VAR_211));
VAR_210->list.next = NULL;
VAR_210->VAR_212 = NULL;
VAR_210->iref_inputdev_str = "Mouse0";
VAR_210->VAR_212 =
FUNC_20 (VAR_210->VAR_212, "CorePointer", NULL);
ptr->lay_input_lst = (ID_17)
xf86addListItem ((glp) ptr->lay_input_lst, (glp) VAR_210);
}
{
CLASS_32 VAR_210;
VAR_210 = FUNC_40 (sizeof (VAR_211));
VAR_210->list.next = NULL;
VAR_210->VAR_212 = NULL;
VAR_210->iref_inputdev_str = "Keyboard0";
VAR_210->VAR_212 =
FUNC_20 (VAR_210->VAR_212, "CoreKeyboard", NULL);
ptr->lay_input_lst = (ID_17)
xf86addListItem ((glp) ptr->lay_input_lst, (glp) VAR_210);
}
for (VAR_209 = 0; VAR_209 < nDevToConfig; VAR_209++) {
XF86ConfAdjacencyPtr VAR_213;
VAR_213 = FUNC_40 (sizeof (XF86ConfAdjacencyRec));
VAR_213->list.next = NULL;
VAR_213->VAR_214 = 0;
VAR_213->adj_y = 0;
VAR_213->adj_scrnum = VAR_209;
VAR_213->adj_screen_str = FUNC_5(18);
sprintf(VAR_213->adj_screen_str, "Screen%d", VAR_209);
if (VAR_209 == 0) {
VAR_213->VAR_215 = CONF_ADJ_ABSOLUTE;
VAR_213->VAR_216 = NULL;
}
else {
VAR_213->VAR_215 = CONF_ADJ_RIGHTOF;
VAR_213->VAR_216 = FUNC_5(18);
sprintf(VAR_213->VAR_216, "Screen%d", VAR_209 - 1);
}
ptr->lay_adjacency_lst =
(XF86ConfAdjacencyPtr)xf86addListItem((glp)ptr->lay_adjacency_lst,
(glp)VAR_213);
}
return ptr;
}
static XF86ConfModesPtr
configureModesSection (void)
{
#ifdef NOTYET
configPrologue(XF86ConfModesPtr)
VAR_179 ptr;
#else
return NULL;
#endif
}
static CLASS_33
FUNC_37 (void)
{
return NULL;
}
static XF86ConfFlagsPtr
configureFlagsSection (void)
{
return NULL;
}
static XF86ConfModulePtr
FUNC_39 (void)
{
#ifdef XFree86LOADER
char **elist, **VAR_217;
/* Find the list of extension modules. */
const char *esubdirs[] = {
"extensions",
NULL
};
const char *fsubdirs[] = {
"fonts",
NULL
};
configPrologue(XF86ConfModulePtr)
elist = FUNC_41(esubdirs, NULL);
if (elist) {
for (VAR_217 = elist; *VAR_217; VAR_217++) {
CLASS_34 module;
module = FUNC_40(sizeof(XF86LoadRec));
memset((ID_18)module,0,sizeof(XF86LoadRec));
module->VAR_218 = *VAR_217;
/* HACK, remove GLcore, glx, loads it as a submodule */
if (FUNC_42(*VAR_217, "GLcore"))
ptr->mod_load_lst = (ID_18)xf86addListItem(
(glp)ptr->mod_load_lst, (glp)module);
}
xfree(elist);
}
/* Process list of font backends separately to include only required ones */
elist = FUNC_41(fsubdirs, NULL);
if (elist) {
for (VAR_217 = elist; *VAR_217; VAR_217++) {
CLASS_34 module;
module = FUNC_40(sizeof(XF86LoadRec));
memset((ID_18)module,0,sizeof(XF86LoadRec));
module->VAR_218 = *VAR_217;
/* Add only those font backends which are referenced by fontpath */
/* 'strstr(dFP,"/dir")' is meant as 'dFP =~ m(/dir\W)' */
if (VAR_219 && (
(FUNC_42(*VAR_217, "xtt") == 0 &&
strstr(VAR_219, "/TrueType")) ||
(FUNC_42(*VAR_217, "type1") == 0 &&
strstr(VAR_219, "/Type1")) ||
(FUNC_42(*VAR_217, "speedo") == 0 &&
strstr(VAR_219, "/Speedo"))))
ptr->mod_load_lst = (ID_18)xf86addListItem(
(glp)ptr->mod_load_lst, (glp)module);
}
xfree(elist);
}
return ptr;
#else
return NULL;
#endif
}
static XF86ConfFilesPtr
FUNC_43 (void)
{
configPrologue(XF86ConfFilesPtr)
FUNC_44 (CLASS_35->VAR_221)
ptr->VAR_222 = strdup(VAR_220->VAR_221);
if (VAR_219)
ptr->file_fontpath = strdup(VAR_219);
if (rgbPath)
ptr->file_rgbpath = strdup(rgbPath);
return ptr;
}
static CLASS_36
configureMonitorSection (int screennum)
{
configPrologue(ID_19)
ptr->VAR_223 = FUNC_40(19);
sprintf(ptr->VAR_223, "Monitor%d", screennum);
ptr->VAR_224 = strdup("Monitor Vendor");
ptr->mon_modelname = strdup("Monitor Model");
return ptr;
}
static CLASS_36
configureDDCMonitorSection (int screennum)
{
int VAR_162 = 0;
int VAR_177, mon_width, VAR_225;
#define displaySizeMaxLen 80
char displaySize_string[displaySizeMaxLen];
int VAR_226;
configPrologue(ID_19)
ptr->VAR_223 = FUNC_40(19);
sprintf(ptr->VAR_223, "Monitor%d", screennum);
ptr->VAR_224 = strdup(VAR_156->vendor.VAR_205);
ptr->mon_modelname = FUNC_40(12);
sprintf(ptr->mon_modelname, "%x", VAR_156->vendor.VAR_227);
/* features in centimetres, we want millimetres */
mon_width = 10 * VAR_156->features.hsize ;
VAR_225 = 10 * VAR_156->features.vsize ;
#ifdef VAR_228
ptr->mon_width = mon_width;
ptr->VAR_225 = VAR_225;
#else
if (mon_width && VAR_225) {
/* when values available add DisplaySize option AS A COMMENT */
VAR_226 = FUNC_45(displaySize_string, displaySizeMaxLen,
"\t#DisplaySize\t%5d %5d\t# mm\n",
mon_width, VAR_225);
if (VAR_226>0 && VAR_226<displaySizeMaxLen) {
if (ptr->VAR_229) {
VAR_177 = strlen(ptr->VAR_229);
} else {
VAR_177 = 0;
}
if ((ptr->VAR_229 =
FUNC_46(ptr->VAR_229,
VAR_177+strlen(displaySize_string)))) {
strcpy(ptr->VAR_229 + VAR_177, displaySize_string);
}
}
}
#endif /* def CONFIGURE_DISPLAYSIZE */
for (VAR_162=0;VAR_162<4;VAR_162++) {
switch (VAR_156->VAR_230[VAR_162].VAR_174) {
case DT:
case VAR_231:
case VAR_232:
break;
case VAR_233:
ptr->mon_modelname = FUNC_46(ptr->mon_modelname,
strlen((char*)(VAR_156->VAR_230[VAR_162].section.VAR_205))
+ 1);
strcpy(ptr->mon_modelname,
(char*)(VAR_156->VAR_230[VAR_162].section.VAR_205));
break;
case VAR_234:
case DS_SERIAL:
case DS_RANGES:
default:
break;
}
}
if (VAR_156->features.dpms) {
ptr->mon_option_lst = FUNC_20(ptr->mon_option_lst, "DPMS", NULL);
}
return ptr;
}
void
DoConfigure()
{
int VAR_162,j, screennum = -1;
char *VAR_235 = NULL;
char *filename = NULL;
XF86ConfigPtr xf86config = NULL;
const char **vlist, **vl;
int *dev2screen;
vlist = xf86DriverlistFromCompile();
if (!vlist) {
ErrorF("Missing output drivers. Configuration failed.\n");
goto bail;
}
ErrorF("List of video drivers:\n");
for (vl = vlist; *vl; vl++)
ErrorF("\t%s\n", *vl);
#ifdef XFree86LOADER
/* Load all the drivers that were found. */
FUNC_47(vlist, NULL);
#endif /* XFree86LOADER */
xfree(vlist);
/* Disable PCI devices */
xf86ResourceBrokerInit();
FUNC_48();
xf86FindPrimaryDevice();
/* Create XF86Config file structure */
xf86config = FUNC_49(sizeof(VAR_236));
memset ((XF86ConfigPtr)xf86config, 0, sizeof(VAR_236));
xf86config->VAR_237 = NULL;
xf86config->conf_screen_lst = NULL;
xf86config->conf_monitor_lst = NULL;
/* Call all of the probe functions, reporting the results. */
for (CurrentDriver = 0; CurrentDriver < VAR_238; CurrentDriver++) {
if (xf86DriverList[CurrentDriver]->Probe == NULL) continue;
if ((*xf86DriverList[CurrentDriver]->Probe)(
xf86DriverList[CurrentDriver], PROBE_DETECT) &&
xf86DriverList[CurrentDriver]->VAR_239)
(*xf86DriverList[CurrentDriver]->VAR_239)(0);
}
if (nDevToConfig <= 0) {
ErrorF("No devices to configure. Configuration failed.\n");
goto bail;
}
/* Add device, monitor and screen sections for detected devices */
for (screennum = 0; screennum < nDevToConfig; screennum++) {
XF86ConfDevicePtr VAR_240;
CLASS_36 VAR_241;
XF86ConfScreenPtr VAR_242;
VAR_240 = FUNC_29(screennum);
xf86config->VAR_237 = (XF86ConfDevicePtr)xf86addListItem(
(glp)xf86config->VAR_237, (glp)VAR_240);
VAR_241 = configureMonitorSection(screennum);
xf86config->conf_monitor_lst = (ID_19)xf86addListItem(
(glp)xf86config->conf_monitor_lst, (glp)VAR_241);
VAR_242 = FUNC_27(screennum);
xf86config->conf_screen_lst = (XF86ConfScreenPtr)xf86addListItem(
(glp)xf86config->conf_screen_lst, (glp)VAR_242);
}
xf86config->VAR_243 = FUNC_43();
xf86config->conf_modules_lst = FUNC_39();
xf86config->VAR_244 = configureFlagsSection();
xf86config->conf_videoadaptor_lst = FUNC_37();
xf86config->VAR_245 = configureModesSection();
xf86config->conf_vendor_lst = configureVendorSection();
xf86config->conf_dri_lst = configureDRISection();
xf86config->conf_input_lst = FUNC_17();
xf86config->conf_layout_lst = FUNC_35();
if (!(VAR_235 = FUNC_50("HOME")))
VAR_235 = "/";
{
#ifdef __UNIXOS2__
#define VAR_246 2048
#endif
#ifndef VAR_246
#define VAR_246 1024
#endif
const char* configfile = XF86CONFIGFILE".new";
char VAR_247[VAR_246];
/* getenv might return R/O memory, as with OS/2 */
FUNC_51(VAR_247,VAR_235,VAR_246-1);
VAR_247[VAR_246-1] = '\0';
VAR_235 = VAR_247;
if (!(filename =
(char *)ALLOCATE_LOCAL(strlen(VAR_235) +
strlen(configfile) + 3)))
goto bail;
if (VAR_235[0] == '/' && VAR_235[1] == '\0')
VAR_235[0] = '\0';
#ifndef QNX4
sprintf(filename, "%s/%s", VAR_235,configfile);
#else
sprintf(filename, "//%d%s/%s", getnid(),VAR_235,configfile);
#endif
}
xf86writeConfigFile(filename, xf86config);
xf86DoConfigurePass1 = FALSE;
/* Try to get DDC information filled in. */
xf86ConfigFile = filename;
if (FUNC_52(NULL, FALSE) != VAR_248 ||
xf86ProcessConfiguration() != VAR_248) {
goto bail;
}
dev2screen = FUNC_53(1, nDevToConfig * sizeof(int));
{
CLASS_25 *driverProbed = FUNC_53(1, VAR_238 * sizeof(VAR_157));
int nextPrimary = 0;
for (screennum = 0; screennum < nDevToConfig; screennum++) {
int VAR_249, l, n, VAR_250;
VAR_162 = DevToConfig[screennum].VAR_155;
if (driverProbed[VAR_162])
continue;
driverProbed[VAR_162] = TRUE;
VAR_250 = xf86NumScreens;
(*xf86DriverList[VAR_162]->Probe)(xf86DriverList[VAR_162], 0);
/* Possibly reorder */
for (l = VAR_250; l < xf86NumScreens; l++) {
/* is screen primary? */
CLASS_25 primary = FALSE;
for (n = 0; n<xf86Screens[l]->VAR_251; n++) {
if (FUNC_54(xf86Screens[l]->VAR_252[n])) {
dev2screen[0] = l;
primary = TRUE;
break;
}
}
if (primary) {
for (VAR_249 = l; --VAR_249 >= nextPrimary; )
dev2screen[VAR_249 + 1] = dev2screen[VAR_249];
dev2screen[nextPrimary++] = l;
} else {
dev2screen[l] = l;
}
}
FUNC_55(NULL, NONE);
}
xfree(driverProbed);
}
if (nDevToConfig != xf86NumScreens) {
ErrorF("Number of created screens does not match number of detected"
" devices.\n Configuration failed.\n");
goto bail;
}
xf86PostProbe();
FUNC_56();
for (j = 0; j < xf86NumScreens; j++) {
xf86Screens[j]->scrnIndex = j;
}
xf86freeMonitorList(xf86config->conf_monitor_lst);
xf86config->conf_monitor_lst = NULL;
FUNC_57(xf86config->conf_screen_lst);
xf86config->conf_screen_lst = NULL;
for (j = 0; j < xf86NumScreens; j++) {
CLASS_36 VAR_241;
XF86ConfScreenPtr VAR_242;
VAR_156 = NULL;
xf86EnableAccess(xf86Screens[dev2screen[j]]);
if ((*xf86Screens[dev2screen[j]]->VAR_253)(xf86Screens[dev2screen[j]],
PROBE_DETECT) &&
VAR_156) {
VAR_241 = configureDDCMonitorSection(j);
} else {
VAR_241 = configureMonitorSection(j);
}
VAR_242 = FUNC_27(j);
xf86config->conf_monitor_lst = (ID_19)xf86addListItem(
(glp)xf86config->conf_monitor_lst, (glp)VAR_241);
xf86config->conf_screen_lst = (XF86ConfScreenPtr)xf86addListItem(
(glp)xf86config->conf_screen_lst, (glp)VAR_242);
}
xf86writeConfigFile(filename, xf86config);
ErrorF("\n");
#ifdef VAR_160
ErrorF("\nXFree86 is using the kernel event driver to access the mouse.\n"
"If you wish to use the internal XFree86 mouse drivers, please\n"
"edit the file and correct the Device.\n");
#else /* !__SCO__ */
if (!VAR_158) {
ErrorF("\nXFree86 is not able to detect your mouse.\n"
"Edit the file and correct the Device.\n");
} else {
#ifndef __UNIXOS2__ /* OS/2 definitely has a mouse */
ErrorF("\nXFree86 detected your mouse at device %s.\n"
"Please check your config if the mouse is still not\n"
"operational, as by default XFree86 tries to autodetect\n"
"the protocol.\n",DFLT_MOUSE_DEV);
#endif
}
#endif /* !__SCO__ */
if (xf86NumScreens > 1) {
ErrorF("\nXFree86 has configured a multihead system, please check your config.\n");
}
ErrorF("\nYour XF86Config file is %s\n\n", filename);
ErrorF("To test the server, run 'XFree86 -xf86config %s'\n\n", filename);
bail:
OsCleanup(TRUE);
AbortDDX();
fflush(VAR_254);
FUNC_58(0);
}
| 0.856603 | {'IMPORT_17': 'unistd.h', 'IMPORT_18': 'X11/Xmd.h', 'IMPORT_19': 'xf86.h', 'IMPORT_20': 'xf86Priv.h', 'VAR_151': 'IN_XSERVER', 'IMPORT_21': 'xf86DDC.h', 'VAR_152': '__sparc__', 'VAR_153': 'GDev', 'CLASS_23': 'pciVideoPtr', 'ID_13': 'pciVideoPtr', 'VAR_154': 'sVideo', 'VAR_155': 'iDriver', 'CLASS_24': 'xf86MonPtr', 'VAR_156': 'ConfiguredMonitor', 'CLASS_25': 'Bool', 'VAR_157': 'Bool', 'VAR_158': 'foundMouse', 'VAR_159': 'DFLT_MOUSE_PROTO', 'VAR_160': '__SCO__', 'CLASS_26': 'GDevPtr', 'VAR_161': 'chipset', 'VAR_162': 'i', 'VAR_163': 'isPrimary', 'VAR_164': 'xf86DoConfigure', 'VAR_165': 'func', 'VAR_166': 'BUS_ISA', 'FUNC_2': 'xf86IsPrimaryIsa', 'VAR_167': 'fbNum', 'VAR_168': 'chipRev', 'FUNC_5': 'xnfalloc', 'FUNC_8': 'xf86FindPciNamesByDevice', 'VAR_169': 'NOVENDOR', 'VAR_170': 'identifier', 'CLASS_27': 'identifier', 'VAR_171': 'promPath', 'FUNC_11': 'sparcPromInit', 'FUNC_12': 'sparcPromNode2Pathname', 'VAR_172': 'node', 'VAR_173': 'OptionInfoPtr', 'CLASS_28': 'OptionInfoPtr', 'VAR_174': 'type', 'FUNC_17': 'configureInputSection', 'VAR_175': '__OpenBSD__', 'FUNC_18': 'open', 'FUNC_19': 'close', 'VAR_176': 'inp_option_lst', 'FUNC_20': 'xf86addNewOption', 'VAR_177': 'len', 'FUNC_40': 'xf86confmalloc', 'VAR_178': 'XF86ConfInputRec', 'CLASS_29': 'XF86ConfDRIPtr', 'ID_14': 'XF86ConfDRIPtr', 'VAR_179': 'return', 'FUNC_27': 'configureScreenSection', 'VAR_180': 'depths', 'VAR_181': 'scrn_identifier', 'VAR_182': 'XF86ConfDisplayRec', 'VAR_183': 'disp_black', 'VAR_184': 'red', 'VAR_185': 'blue', 'FUNC_28': 'optionTypeToString', 'VAR_186': 'OPTV_INTEGER', 'VAR_187': 'OPTV_STRING', 'VAR_188': 'OPTV_FREQ', 'FUNC_29': 'configureDeviceSection', 'VAR_189': 'DO_FBDEV_PROBE', 'VAR_190': 'd', 'VAR_191': 'dev_identifier', 'VAR_192': 'dev_vendor', 'VAR_193': 'dev_busid', 'VAR_194': 'dev_ramdac', 'VAR_195': 'CONF_MAXDACSPEEDS', 'VAR_196': 'dacSpeeds', 'VAR_197': 'dev_textclockfreq', 'VAR_198': 'textClockFreq', 'VAR_199': 'dev_bios_base', 'VAR_200': 'BiosBase', 'VAR_201': 'dev_mem_base', 'VAR_202': 'MemBase', 'VAR_203': 'dev_clock', 'VAR_204': 'dev_clocks', 'VAR_205': 'name', 'VAR_206': 'p_e', 'VAR_207': 'opttype', 'FUNC_32': 'xalloc', 'FUNC_33': 'max', 'FUNC_34': 'xrealloc', 'CLASS_30': 'XF86OptionPtr', 'ID_15': 'XF86OptionPtr', 'VAR_208': 'opt_val', 'CLASS_31': 'XF86ConfLayoutPtr', 'ID_16': 'XF86ConfLayoutPtr', 'FUNC_35': 'configureLayoutSection', 'VAR_209': 'scrnum', 'CLASS_32': 'XF86ConfInputrefPtr', 'ID_17': 'XF86ConfInputrefPtr', 'VAR_210': 'iptr', 'VAR_211': 'XF86ConfInputrefRec', 'VAR_212': 'iref_option_lst', 'VAR_213': 'aptr', 'VAR_214': 'adj_x', 'VAR_215': 'adj_where', 'VAR_216': 'adj_refscreen', 'CLASS_33': 'XF86ConfVideoAdaptorPtr', 'FUNC_37': 'configureVideoAdaptorSection', 'FUNC_39': 'configureModuleSection', 'VAR_217': 'el', 'FUNC_41': 'LoaderListDirs', 'CLASS_34': 'XF86LoadPtr', 'ID_18': 'XF86LoadPtr', 'VAR_218': 'load_name', 'FUNC_42': 'strcmp', 'VAR_219': 'defaultFontPath', 'FUNC_43': 'configureFilesSection', 'FUNC_44': 'if', 'CLASS_35': 'xf86FilePaths', 'VAR_220': 'xf86FilePaths', 'VAR_221': 'modulePath', 'VAR_222': 'file_modulepath', 'CLASS_36': 'XF86ConfMonitorPtr', 'ID_19': 'XF86ConfMonitorPtr', 'VAR_223': 'mon_identifier', 'VAR_224': 'mon_vendor', 'VAR_225': 'mon_height', 'VAR_226': 'displaySizeLen', 'VAR_227': 'prod_id', 'VAR_228': 'CONFIGURE_DISPLAYSIZE', 'FUNC_45': 'snprintf', 'VAR_229': 'mon_comment', 'FUNC_46': 'xf86confrealloc', 'VAR_230': 'det_mon', 'VAR_231': 'DS_STD_TIMINGS', 'VAR_232': 'DS_WHITE_P', 'VAR_233': 'DS_NAME', 'VAR_234': 'DS_ASCII_STR', 'VAR_235': 'home', 'FUNC_47': 'xf86LoadModules', 'FUNC_48': 'xf86AccessInit', 'FUNC_49': 'malloc', 'VAR_236': 'XF86ConfigRec', 'VAR_237': 'conf_device_lst', 'VAR_238': 'xf86NumDrivers', 'VAR_239': 'Identify', 'VAR_240': 'DevicePtr', 'VAR_241': 'MonitorPtr', 'VAR_242': 'ScreenPtr', 'VAR_243': 'conf_files_lst', 'VAR_244': 'conf_flags_lst', 'VAR_245': 'conf_modes_lst', 'FUNC_50': 'getenv', 'VAR_246': 'PATH_MAX', 'VAR_247': 'homebuf', 'FUNC_51': 'strncpy', 'FUNC_52': 'xf86LoadConfigFile', 'VAR_248': 'CONFIG_OK', 'FUNC_53': 'xnfcalloc', 'VAR_249': 'k', 'VAR_250': 'oldNumScreens', 'VAR_251': 'numEntities', 'FUNC_54': 'xf86IsEntityPrimary', 'VAR_252': 'entityList', 'FUNC_55': 'xf86SetPciVideo', 'FUNC_56': 'xf86EntityInit', 'FUNC_57': 'xf86freeScreenList', 'VAR_253': 'PreInit', 'VAR_254': 'stderr', 'FUNC_58': 'exit'} | c | error | 0 |
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* 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 SA_CLIENT_ADAPTER_H
#define SA_CLIENT_ADAPTER_H
#include <mutex>
#include "client_executor/include/client_factory.h"
#include "platform/threadpool/include/thread_pool.h"
namespace OHOS {
namespace AI {
/**
* SA client thread class
*/
class ConnectMgrWorker : public IWorker {
public:
ConnectMgrWorker(const ConfigInfo &configInfo, ClientInfo &clientInfo);
~ConnectMgrWorker() override = default;
const char *GetName() const override;
bool OneAction() override;
bool Initialize() override;
void Uninitialize() override;
private:
ConfigInfo configInfo_;
ClientInfo clientInfo_;
};
class SaClientAdapter : public ClientFactory {
FORBID_COPY_AND_ASSIGN(SaClientAdapter);
FORBID_CREATE_BY_SELF(SaClientAdapter);
public:
static SaClientAdapter *GetInstance();
static void ReleaseInstance();
private:
/**
* Start a thread {@link StartConnectMgrThread(ConfigInfo, ClientInfo, AlgorithmInfo)}
* to Init client and connect to AI SA server.
*
* @param [in] configInfo Engine configuration information.
* @param [out] clientInfo Client information.
* @param [in] algorithmInfo Algorithm information.
* @return Returns 0 if the operation is successful, returns a non-zero value otherwise.
*/
int InitAiServer(const ConfigInfo &configInfo, ClientInfo &clientInfo,
const AlgorithmInfo &algorithmInfo) override;
/**
* Stop a thread {@link StopConnectMgrThread()} to destroy client, and disconnect from AI SA server.
*
* @return Returns 0 if the operation is successful, returns a non-zero value otherwise.
*/
int CloseAiServer() override;
/**
* Call SA client, to load algorithm plugin and model based on algorithm information and client information.
*
* @param [in] clientInfo Client information.
* @param [in] algorithmInfo Algorithm information.
* @param [in] inputInfo Data information needed to load algorithm plugin.
* @param [out] outputInfo The returned data information after loading the algorithm plugin.
* @return Returns 0 if the operation is successful, returns a non-zero value otherwise.
*/
int LoadAlgorithm(const ClientInfo &clientInfo, const AlgorithmInfo &algorithmInfo,
const DataInfo &inputInfo, DataInfo &outputInfo) override;
/**
* Call SA client, to unload model and plugin.
*
* After the algorithm is executed successfully, the method needs to be called when exiting.
*
* @param [in] clientInfo Client information.
* @param [in] algorithmInfo Algorithm information.
* @param [in] inputInfo Data information needed to unload the plugin.
* @return Returns 0 if the operation is successful, returns a non-zero value otherwise.
*/
int UnLoadAlgorithm(const ClientInfo &clientInfo, const AlgorithmInfo &algorithmInfo,
const DataInfo &inputInfo) override;
/**
* Call SA client, to execute algorithm inference synchronously.
*
* @param [in] clientInfo Client information.
* @param [in] AlgorithmInfo Algorithm information.
* @param [in] inputInfo Data information needed to synchronous execution algorithm.
* @param [out] outputInfo Algorithm inference results.
* @return Returns 0 if the operation is successful, returns a non-zero value otherwise.
*/
int SyncExecute(const ClientInfo &clientInfo, const AlgorithmInfo &algorithmInfo,
const DataInfo &inputInfo, DataInfo &outputInfo) override;
/**
* Call SA client, to execute algorithm inference asynchronously.
*
* The inference result is notified to the client through callback function passed in by the callback
* saved by SaAsyncHandler
*
* @param [in] clientInfo Client information.
* @param [in] algorithmInfo Algorithm information.
* @param [in] inputInfo Data information needed to asynchronous execution algorithm.
* @return Returns 0 if the operation is successful, returns a non-zero value otherwise.
*/
int AsyncExecute(const ClientInfo &clientInfo, const AlgorithmInfo &algorithmInfo,
const DataInfo &inputInfo) override;
/**
* Call SA client, to set the configuration parameters of the engine or plugin.
*
* @param [in] clientInfo Client information.
* @param [in] optionType The type of setting option.
* @param [in] inputInfo Configuration parameter needed to set up the engine or plugin.
* @return Returns 0 if the operation is successful, returns a non-zero value otherwise.
*/
int SetOption(const ClientInfo &clientInfo, int optionType, const DataInfo &inputInfo) override;
/**
* Call SA client, to get the configuration parameters of the engine or plugin.
*
* @param [in] clientInfo Client information.
* @param [in] optionType The type of getting option.
* @param [in] inputInfo Parameter information for getting options.
* @param [out] outputInfo The configuration parameter information.
* @return Returns 0 if the operation is successful, returns a non-zero value otherwise.
*/
int GetOption(const ClientInfo &clientInfo, int optionType, const DataInfo &inputInfo,
DataInfo &outputInfo) override;
private:
static std::mutex instance_mutex_;
static SaClientAdapter *instance_;
std::shared_ptr<Thread> connectMgrThread_ = nullptr;
ConnectMgrWorker *connectMgrWorker_ {nullptr};
};
} // namespace AI
} // namespace OHOS
#endif // SA_CLIENT_ADAPTER_H
| /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* 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 VAR_0
#define VAR_0
#include <IMPORT_0>
#include "IMPORT_1"
#include "IMPORT_2"
CLASS_0 VAR_1 {
CLASS_0 VAR_2 {
/**
* SA client thread class
*/
CLASS_1 VAR_3 : VAR_4 VAR_5 {
public:
FUNC_0(VAR_6 VAR_7 &VAR_8, ClientInfo &VAR_9);
~FUNC_0() VAR_10 = VAR_11;
const char *FUNC_1() const VAR_10;
bool FUNC_2() CLASS_4VAR_12;
bool FUNC_3() VAR_10;
void Uninitialize() VAR_10;
CLASS_5:
VAR_7 VAR_13;
ClientInfo VAR_14;
};
CLASS_1 VAR_15 : VAR_4 VAR_16 {
FUNC_4(VAR_15);
FUNC_5(VAR_15);
public:
VAR_17 VAR_15 *FUNC_6();
static void FUNC_7();
private:
/**
* Start a thread {@link StartConnectMgrThread(ConfigInfo, ClientInfo, AlgorithmInfo)}
* to Init client and connect to AI SA server.
*
* @param [in] configInfo Engine configuration information.
* @param [out] clientInfo Client information.
* @param [in] algorithmInfo Algorithm information.
* @return Returns 0 if the operation is successful, returns a non-zero value otherwise.
*/
VAR_18 VAR_19(const CLASS_3 &VAR_8, ClientInfo &VAR_9,
VAR_6 VAR_20 &VAR_21) VAR_10;
/**
* Stop a thread {@link StopConnectMgrThread()} to destroy client, and disconnect from AI SA server.
*
* @return Returns 0 if the operation is successful, returns a non-zero value otherwise.
*/
int FUNC_8() CLASS_4VAR_12;
/**
* Call SA client, to load algorithm plugin and model based on algorithm information and client information.
*
* @param [in] clientInfo Client information.
* @param [in] algorithmInfo Algorithm information.
* @param [in] inputInfo Data information needed to load algorithm plugin.
* @param [out] outputInfo The returned data information after loading the algorithm plugin.
* @return Returns 0 if the operation is successful, returns a non-zero value otherwise.
*/
int FUNC_9(const ClientInfo &VAR_9, const CLASS_7 &VAR_21,
const CLASS_8 &VAR_22, CLASS_8 &VAR_23) VAR_10;
/**
* Call SA client, to unload model and plugin.
*
* After the algorithm is executed successfully, the method needs to be called when exiting.
*
* @param [in] clientInfo Client information.
* @param [in] algorithmInfo Algorithm information.
* @param [in] inputInfo Data information needed to unload the plugin.
* @return Returns 0 if the operation is successful, returns a non-zero value otherwise.
*/
int UnLoadAlgorithm(const ClientInfo &VAR_9, const CLASS_7 &VAR_21,
const CLASS_8 &VAR_22) VAR_10;
/**
* Call SA client, to execute algorithm inference synchronously.
*
* @param [in] clientInfo Client information.
* @param [in] AlgorithmInfo Algorithm information.
* @param [in] inputInfo Data information needed to synchronous execution algorithm.
* @param [out] outputInfo Algorithm inference results.
* @return Returns 0 if the operation is successful, returns a non-zero value otherwise.
*/
int FUNC_10(const ClientInfo &VAR_9, const CLASS_7 &VAR_21,
const CLASS_8 &VAR_22, CLASS_8 &VAR_23) VAR_10;
/**
* Call SA client, to execute algorithm inference asynchronously.
*
* The inference result is notified to the client through callback function passed in by the callback
* saved by SaAsyncHandler
*
* @param [in] clientInfo Client information.
* @param [in] algorithmInfo Algorithm information.
* @param [in] inputInfo Data information needed to asynchronous execution algorithm.
* @return Returns 0 if the operation is successful, returns a non-zero value otherwise.
*/
int AsyncExecute(const ClientInfo &VAR_9, const CLASS_7 &VAR_21,
const CLASS_8 &VAR_22) VAR_10;
/**
* Call SA client, to set the configuration parameters of the engine or plugin.
*
* @param [in] clientInfo Client information.
* @param [in] optionType The type of setting option.
* @param [in] inputInfo Configuration parameter needed to set up the engine or plugin.
* @return Returns 0 if the operation is successful, returns a non-zero value otherwise.
*/
int FUNC_11(const ClientInfo &VAR_9, int VAR_24, const CLASS_8 &VAR_22) VAR_10;
/**
* Call SA client, to get the configuration parameters of the engine or plugin.
*
* @param [in] clientInfo Client information.
* @param [in] optionType The type of getting option.
* @param [in] inputInfo Parameter information for getting options.
* @param [out] outputInfo The configuration parameter information.
* @return Returns 0 if the operation is successful, returns a non-zero value otherwise.
*/
int FUNC_12(const ClientInfo &VAR_9, int VAR_24, const CLASS_8 &VAR_22,
CLASS_8 &VAR_23) VAR_10;
CLASS_5:
static VAR_25::IMPORT_0 instance_mutex_;
static CLASS_6 *VAR_26;
CLASS_9::VAR_27<VAR_28> VAR_29 = nullptr;
CLASS_2 *VAR_30 {nullptr};
};
} // namespace AI
} // namespace OHOS
#endif // SA_CLIENT_ADAPTER_H
| 0.873009 | {'VAR_0': 'SA_CLIENT_ADAPTER_H', 'IMPORT_0': 'mutex', 'IMPORT_1': 'client_executor/include/client_factory.h', 'IMPORT_2': 'platform/threadpool/include/thread_pool.h', 'CLASS_0': 'namespace', 'VAR_1': 'OHOS', 'VAR_2': 'AI', 'CLASS_1': 'class', 'VAR_3': 'ConnectMgrWorker', 'FUNC_0': 'ConnectMgrWorker', 'CLASS_2': 'ConnectMgrWorker', 'VAR_4': 'public', 'VAR_5': 'IWorker', 'VAR_6': 'const', 'VAR_7': 'ConfigInfo', 'CLASS_3': 'ConfigInfo', 'VAR_8': 'configInfo', 'VAR_9': 'clientInfo', 'VAR_10': 'override', 'CLASS_4': 'override', 'VAR_11': 'default', 'FUNC_1': 'GetName', 'FUNC_2': 'OneAction', 'VAR_12': '', 'FUNC_3': 'Initialize', 'CLASS_5': 'private', 'VAR_13': 'configInfo_', 'VAR_14': 'clientInfo_', 'VAR_15': 'SaClientAdapter', 'CLASS_6': 'SaClientAdapter', 'VAR_16': 'ClientFactory', 'FUNC_4': 'FORBID_COPY_AND_ASSIGN', 'FUNC_5': 'FORBID_CREATE_BY_SELF', 'VAR_17': 'static', 'FUNC_6': 'GetInstance', 'FUNC_7': 'ReleaseInstance', 'VAR_18': 'int', 'VAR_19': 'InitAiServer', 'VAR_20': 'AlgorithmInfo', 'CLASS_7': 'AlgorithmInfo', 'VAR_21': 'algorithmInfo', 'FUNC_8': 'CloseAiServer', 'FUNC_9': 'LoadAlgorithm', 'CLASS_8': 'DataInfo', 'VAR_22': 'inputInfo', 'VAR_23': 'outputInfo', 'FUNC_10': 'SyncExecute', 'FUNC_11': 'SetOption', 'VAR_24': 'optionType', 'FUNC_12': 'GetOption', 'VAR_25': 'std', 'CLASS_9': 'std', 'VAR_26': 'instance_', 'VAR_27': 'shared_ptr', 'VAR_28': 'Thread', 'VAR_29': 'connectMgrThread_', 'VAR_30': 'connectMgrWorker_'} | c | Procedural | 13.85% |
/**
* Rt_ArrayAllocate - allocate a new item in the array and return it
* @a: the array
*
* Returns: Pointer to item
*/
static inline void *
Rt_ArrayAllocate(Array *a)
{
void *ptr = NULL;
if (a->count == a->size)
if (!Rt_ResizeArray(a, _Rt_CalcGrowSize(a->size,
a->elem_size, a->size + RT_DEF_INC)))
return NULL;
ptr = a->data + a->elem_size * a->count++;
memset(ptr, 0x0, a->elem_size);
return ptr;
} | /**
* Rt_ArrayAllocate - allocate a new item in the array and return it
* @a: the array
*
* Returns: Pointer to item
*/
static inline void *
FUNC_0(CLASS_0 *VAR_0)
{
void *VAR_1 = NULL;
if (VAR_0->VAR_2 == VAR_0->VAR_3)
if (!FUNC_1(VAR_0, FUNC_2(VAR_0->VAR_3,
VAR_0->VAR_4, VAR_0->VAR_3 + VAR_5)))
return NULL;
VAR_1 = VAR_0->VAR_6 + VAR_0->VAR_4 * VAR_0->VAR_2++;
memset(VAR_1, 0x0, VAR_0->VAR_4);
return VAR_1;
} | 0.950803 | {'FUNC_0': 'Rt_ArrayAllocate', 'CLASS_0': 'Array', 'VAR_0': 'a', 'VAR_1': 'ptr', 'VAR_2': 'count', 'VAR_3': 'size', 'FUNC_1': 'Rt_ResizeArray', 'FUNC_2': '_Rt_CalcGrowSize', 'VAR_4': 'elem_size', 'VAR_5': 'RT_DEF_INC', 'VAR_6': 'data'} | c | Procedural | 100.00% |
/*
* Copyright (c) 2018, <NAME>, KEBA Corp
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*
* Created on: Feb 1, 2018
* Author: <NAME>
*/
#ifndef INCLUDE_RMI_DRIVER_ROTATION_UTILS_H_
#define INCLUDE_RMI_DRIVER_ROTATION_UTILS_H_
#include "rmi_driver/util.h"
#include <tf2/LinearMath/Matrix3x3.h>
namespace rmi_driver
{
namespace util
{
/**
* \brief Create rotations for different Euler rotation orders
*
* Transformation formulas from "Introduction to Robotics"
*/
class RotationUtils
{
public:
/**
* \brief Create a rotation matrix rotated around Z
* @param th angle in radians
* @return Rotation matrix
*/
static tf2::Matrix3x3 rotZ(double th);
/**
* \brief Create a rotation matrix rotated around Y
* @param th angle in radians
* @return Rotation matrix
*/
static tf2::Matrix3x3 rotY(double th);
/**
* \brief Create a rotation matrix rotated around X
* @param th angle in radians
* @return Rotation matrix
*/
static tf2::Matrix3x3 rotX(double th);
/**
* \brief Create a rotation matrix from Euler ZYZ' angles
* @param Z Z rotation in radians
* @param Y Y rotation in radians
* @param ZZ Z' rotation in radians
* @return Rotation matrix equivalent to ZYZ'
*/
static tf2::Matrix3x3 rotZYZ(const tf2Scalar& Z, const tf2Scalar& Y, const tf2Scalar& ZZ);
/**
* \brief Create a normalized Quaternion from Euler ZYZ' angles
* @param Z Z rotation in radians
* @param Y Y rotation in radians
* @param ZZ Z' rotation in radians
* @return Quaternion equivalent to ZYZ'
*/
static tf2::Quaternion quatFromZYZ(const tf2Scalar& Z, const tf2Scalar& Y, const tf2Scalar& ZZ);
/**
* \brief Check if 2 quaternions are approximately equal.
*
* The quaternions will be normalized before comparing.
* @param quat1 Quaternion 1
* @param quat2 Quaternion 2
* @param range How close they have to be
* @return True if they are close
*/
static bool approxEqual(const tf2::Quaternion& quat1, const tf2::Quaternion& quat2, double range = 0.001);
/**
* \brief Format the quaternion as a nice string
* @param quat the quaternion
* @return formatted string
*/
static std::string quatToString(const tf2::Quaternion& quat);
};
inline std::ostream& operator<<(std::ostream& o, const tf2::Quaternion& quat)
{
auto quat_str = RotationUtils::quatToString(quat);
o << quat_str;
return o;
}
} // namespace util
} /* namespace rmi_driver */
#endif /* INCLUDE_RMI_DRIVER_ROTATION_UTILS_H_ */
| /*
* Copyright (c) 2018, <NAME>, KEBA Corp
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*
* Created on: Feb 1, 2018
* Author: <NAME>
*/
#ifndef INCLUDE_RMI_DRIVER_ROTATION_UTILS_H_
#define INCLUDE_RMI_DRIVER_ROTATION_UTILS_H_
#include "rmi_driver/util.h"
#include <tf2/LinearMath/Matrix3x3.h>
CLASS_0 rmi_driver
{
CLASS_0 util
{
/**
* \brief Create rotations for different Euler rotation orders
*
* Transformation formulas from "Introduction to Robotics"
*/
class RotationUtils
{
public:
/**
* \brief Create a rotation matrix rotated around Z
* @param th angle in radians
* @return Rotation matrix
*/
static tf2::Matrix3x3 rotZ(double th);
/**
* \brief Create a rotation matrix rotated around Y
* @param th angle in radians
* @return Rotation matrix
*/
static tf2::Matrix3x3 rotY(double th);
/**
* \brief Create a rotation matrix rotated around X
* @param th angle in radians
* @return Rotation matrix
*/
static tf2::Matrix3x3 FUNC_0(double th);
/**
* \brief Create a rotation matrix from Euler ZYZ' angles
* @param Z Z rotation in radians
* @param Y Y rotation in radians
* @param ZZ Z' rotation in radians
* @return Rotation matrix equivalent to ZYZ'
*/
static tf2::Matrix3x3 FUNC_1(const tf2Scalar& Z, const tf2Scalar& Y, const tf2Scalar& VAR_0);
/**
* \brief Create a normalized Quaternion from Euler ZYZ' angles
* @param Z Z rotation in radians
* @param Y Y rotation in radians
* @param ZZ Z' rotation in radians
* @return Quaternion equivalent to ZYZ'
*/
static tf2::Quaternion FUNC_2(const tf2Scalar& Z, const tf2Scalar& Y, const tf2Scalar& VAR_0);
/**
* \brief Check if 2 quaternions are approximately equal.
*
* The quaternions will be normalized before comparing.
* @param quat1 Quaternion 1
* @param quat2 Quaternion 2
* @param range How close they have to be
* @return True if they are close
*/
static bool approxEqual(const tf2::Quaternion& quat1, const tf2::Quaternion& quat2, double VAR_1 = 0.001);
/**
* \brief Format the quaternion as a nice string
* @param quat the quaternion
* @return formatted string
*/
static std::string quatToString(const tf2::Quaternion& quat);
};
inline std::ostream& operator<<(std::ostream& o, const tf2::Quaternion& quat)
{
auto quat_str = RotationUtils::quatToString(quat);
o << quat_str;
return o;
}
} // namespace util
} /* namespace rmi_driver */
#endif /* INCLUDE_RMI_DRIVER_ROTATION_UTILS_H_ */
| 0.117289 | {'CLASS_0': 'namespace', 'FUNC_0': 'rotX', 'FUNC_1': 'rotZYZ', 'VAR_0': 'ZZ', 'FUNC_2': 'quatFromZYZ', 'VAR_1': 'range'} | c | Procedural | 42.13% |
// Get a TX interrupt whenever the TX FIFO size is <= the threshold.
zx_status_t intel_serialio_i2c_set_tx_fifo_threshold(intel_serialio_i2c_device_t* controller,
uint32_t threshold) {
if (threshold - 1 > UINT8_MAX) {
return ZX_ERR_INVALID_ARGS;
}
RMWREG32(&controller->regs->tx_tl, 0, 8, threshold - 1);
return ZX_OK;
} | // Get a TX interrupt whenever the TX FIFO size is <= the threshold.
CLASS_0 intel_serialio_i2c_set_tx_fifo_threshold(intel_serialio_i2c_device_t* VAR_0,
uint32_t VAR_1) {
if (VAR_1 - 1 > VAR_2) {
return VAR_3;
}
FUNC_0(&VAR_0->regs->VAR_4, 0, 8, VAR_1 - 1);
return VAR_5;
} | 0.780763 | {'CLASS_0': 'zx_status_t', 'VAR_0': 'controller', 'VAR_1': 'threshold', 'VAR_2': 'UINT8_MAX', 'VAR_3': 'ZX_ERR_INVALID_ARGS', 'FUNC_0': 'RMWREG32', 'VAR_4': 'tx_tl', 'VAR_5': 'ZX_OK'} | c | Procedural | 100.00% |
/**
* link_stat_timer_handler - schedule work obtaining mac address and link status
* @data: pointer to USB device instance
*
* The handler runs in interrupt context. That's why we need to defer the
* tasks to a work queue.
*/
static void link_stat_timer_handler(struct timer_list *t)
{
struct most_dev *mdev = from_timer(mdev, t, link_stat_timer);
schedule_work(&mdev->poll_work_obj);
mdev->link_stat_timer.expires = jiffies + (2 * HZ);
add_timer(&mdev->link_stat_timer);
} | /**
* link_stat_timer_handler - schedule work obtaining mac address and link status
* @data: pointer to USB device instance
*
* The handler runs in interrupt context. That's why we need to defer the
* tasks to a work queue.
*/
static void FUNC_0(struct timer_list *VAR_0)
{
struct most_dev *mdev = FUNC_1(mdev, VAR_0, VAR_1);
FUNC_2(&mdev->VAR_2);
mdev->VAR_1.VAR_3 = VAR_4 + (2 * VAR_5);
FUNC_3(&mdev->VAR_1);
} | 0.869371 | {'FUNC_0': 'link_stat_timer_handler', 'VAR_0': 't', 'FUNC_1': 'from_timer', 'VAR_1': 'link_stat_timer', 'FUNC_2': 'schedule_work', 'VAR_2': 'poll_work_obj', 'VAR_3': 'expires', 'VAR_4': 'jiffies', 'VAR_5': 'HZ', 'FUNC_3': 'add_timer'} | c | Procedural | 55.71% |
/* FILE: exchange6ngbr.h -*-Mode: c++-*-
*
* 6 neighbor exchange energy on rectangular mesh,
* derived from Oxs_Energy class.
*
*/
#ifndef _OXS_EXCHANGE6NGBR
#define _OXS_EXCHANGE6NGBR
#include "atlas.h"
#include "key.h"
#include "chunkenergy.h"
#include "energy.h"
#include "mesh.h"
#include "meshvalue.h"
#include "simstate.h"
#include "threevector.h"
#include "rectangularmesh.h"
/* End includes */
class Oxs_Exchange6Ngbr
: public Oxs_ChunkEnergy, public Oxs_EnergyPreconditionerSupport {
private:
enum ExchangeCoefType {
A_UNKNOWN, A_TYPE, LEX_TYPE
} excoeftype;
OC_INDEX coef_size;
OC_REAL8m** coef;
OC_REAL8m max_abscoef;
mutable Oxs_Key<Oxs_Atlas> atlaskey;
Oxs_OwnedPointer<Oxs_Atlas> atlas;
mutable OC_UINT4m mesh_id;
mutable Oxs_MeshValue<OC_INDEX> region_id;
// Support for threaded maxang calculations
mutable std::vector<OC_REAL8m> maxdot;
mutable OC_REAL8m energy_density_error_estimate; // Cached value,
/// initialized when mesh changes. This estimate is based on the
/// largest value in the coef array (i.e., max_abscoef),
/// irrespective of whether or not that value is actually used.
void CalcEnergyA(const Oxs_SimState& state,
Oxs_ComputeEnergyDataThreaded& ocedt,
Oxs_ComputeEnergyDataThreadedAux& ocedtaux,
OC_INDEX node_start,OC_INDEX node_stop,
int threadnumber) const;
void CalcEnergyLex(const Oxs_SimState& state,
Oxs_ComputeEnergyDataThreaded& ocedt,
Oxs_ComputeEnergyDataThreadedAux& ocedtaux,
OC_INDEX node_start,OC_INDEX node_stop,
int threadnumber) const;
// Supplied outputs, in addition to those provided by Oxs_Energy.
Oxs_ScalarOutput<Oxs_Exchange6Ngbr> maxspinangle_output;
Oxs_ScalarOutput<Oxs_Exchange6Ngbr> stage_maxspinangle_output;
Oxs_ScalarOutput<Oxs_Exchange6Ngbr> run_maxspinangle_output;
void UpdateDerivedOutputs(const Oxs_SimState& state);
String MaxSpinAngleStateName() const {
String dummy_name = InstanceName();
dummy_name += ":Max Spin Angle";
return dummy_name;
}
String StageMaxSpinAngleStateName() const {
String dummy_name = InstanceName();
dummy_name += ":Stage Max Spin Angle";
return dummy_name;
}
String RunMaxSpinAngleStateName() const {
String dummy_name = InstanceName();
dummy_name += ":Run Max Spin Angle";
return dummy_name;
}
protected:
virtual void GetEnergy(const Oxs_SimState& state,
Oxs_EnergyData& oed) const {
GetEnergyAlt(state,oed);
}
virtual void ComputeEnergy(const Oxs_SimState& state,
Oxs_ComputeEnergyData& oced) const {
ComputeEnergyAlt(state,oced);
}
virtual void ComputeEnergyChunkInitialize
(const Oxs_SimState& state,
Oxs_ComputeEnergyDataThreaded& ocedt,
Oc_AlignedVector<Oxs_ComputeEnergyDataThreadedAux>& thread_ocedtaux,
int number_of_threads) const;
virtual void ComputeEnergyChunkFinalize
(const Oxs_SimState& state,
Oxs_ComputeEnergyDataThreaded& ocedt,
Oc_AlignedVector<Oxs_ComputeEnergyDataThreadedAux>& thread_ocedtaux,
int number_of_threads) const;
virtual void ComputeEnergyChunk(const Oxs_SimState& state,
Oxs_ComputeEnergyDataThreaded& ocedt,
Oxs_ComputeEnergyDataThreadedAux& ocedtaux,
OC_INDEX node_start,OC_INDEX node_stop,
int threadnumber) const;
public:
virtual const char* ClassName() const; // ClassName() is
/// automatically generated by the OXS_EXT_REGISTER macro.
Oxs_Exchange6Ngbr(const char* name, // Child instance id
Oxs_Director* newdtr, // App director
const char* argstr); // MIF input block parameters
virtual ~Oxs_Exchange6Ngbr();
virtual OC_BOOL Init();
// Optional interface for conjugate-gradient evolver.
virtual int IncrementPreconditioner(PreconditionerData& pcd);
};
#endif // _OXS_EXCHANGE6NGBR
| /* FILE: exchange6ngbr.h -*-Mode: c++-*-
*
* 6 neighbor exchange energy on rectangular mesh,
* derived from Oxs_Energy class.
*
*/
#ifndef _OXS_EXCHANGE6NGBR
#define _OXS_EXCHANGE6NGBR
#include "IMPORT_0"
#include "IMPORT_1"
#include "IMPORT_2"
#include "IMPORT_3"
#include "mesh.h"
#include "IMPORT_4"
#include "simstate.h"
#include "IMPORT_5"
#include "rectangularmesh.h"
/* End includes */
CLASS_0 Oxs_Exchange6Ngbr
: VAR_0 VAR_1, VAR_0 Oxs_EnergyPreconditionerSupport {
private:
VAR_2 VAR_3 {
VAR_4, VAR_5, VAR_6
} VAR_7;
OC_INDEX coef_size;
OC_REAL8m** VAR_8;
OC_REAL8m max_abscoef;
CLASS_1 VAR_9<Oxs_Atlas> atlaskey;
VAR_10<Oxs_Atlas> atlas;
CLASS_1 VAR_11 mesh_id;
CLASS_1 VAR_12<OC_INDEX> region_id;
// Support for threaded maxang calculations
CLASS_1 std::VAR_13<OC_REAL8m> VAR_14;
CLASS_1 OC_REAL8m VAR_15; // Cached value,
/// initialized when mesh changes. This estimate is based on the
/// largest value in the coef array (i.e., max_abscoef),
/// irrespective of whether or not that value is actually used.
void FUNC_0(const Oxs_SimState& VAR_16,
Oxs_ComputeEnergyDataThreaded& ocedt,
Oxs_ComputeEnergyDataThreadedAux& VAR_17,
OC_INDEX VAR_18,OC_INDEX VAR_19,
int threadnumber) VAR_20;
void CalcEnergyLex(const Oxs_SimState& VAR_16,
Oxs_ComputeEnergyDataThreaded& ocedt,
Oxs_ComputeEnergyDataThreadedAux& VAR_17,
OC_INDEX VAR_18,OC_INDEX VAR_19,
int threadnumber) VAR_20;
// Supplied outputs, in addition to those provided by Oxs_Energy.
Oxs_ScalarOutput<Oxs_Exchange6Ngbr> VAR_21;
Oxs_ScalarOutput<Oxs_Exchange6Ngbr> VAR_22;
Oxs_ScalarOutput<Oxs_Exchange6Ngbr> VAR_23;
void FUNC_1(const Oxs_SimState& VAR_16);
CLASS_2 MaxSpinAngleStateName() const {
CLASS_2 dummy_name = FUNC_2();
dummy_name += ":Max Spin Angle";
return dummy_name;
}
CLASS_2 FUNC_3() const {
CLASS_2 dummy_name = FUNC_2();
dummy_name += ":Stage Max Spin Angle";
return dummy_name;
}
CLASS_2 RunMaxSpinAngleStateName() const {
CLASS_2 dummy_name = FUNC_2();
dummy_name += ":Run Max Spin Angle";
return dummy_name;
}
protected:
virtual void GetEnergy(const Oxs_SimState& VAR_16,
Oxs_EnergyData& VAR_24) VAR_20 {
FUNC_4(VAR_16,VAR_24);
}
virtual void ComputeEnergy(const Oxs_SimState& VAR_16,
Oxs_ComputeEnergyData& oced) VAR_20 {
ComputeEnergyAlt(VAR_16,oced);
}
virtual void ComputeEnergyChunkInitialize
(const Oxs_SimState& VAR_16,
Oxs_ComputeEnergyDataThreaded& ocedt,
CLASS_3<Oxs_ComputeEnergyDataThreadedAux>& VAR_25,
int VAR_26) VAR_20;
virtual void FUNC_5
(const Oxs_SimState& VAR_16,
Oxs_ComputeEnergyDataThreaded& ocedt,
CLASS_3<Oxs_ComputeEnergyDataThreadedAux>& VAR_25,
int VAR_26) VAR_20;
virtual void ComputeEnergyChunk(const Oxs_SimState& VAR_16,
Oxs_ComputeEnergyDataThreaded& ocedt,
Oxs_ComputeEnergyDataThreadedAux& VAR_17,
OC_INDEX VAR_18,OC_INDEX VAR_19,
int threadnumber) VAR_20;
public:
virtual const char* FUNC_6() VAR_20; // ClassName() is
/// automatically generated by the OXS_EXT_REGISTER macro.
Oxs_Exchange6Ngbr(const char* VAR_27, // Child instance id
VAR_28* newdtr, // App director
VAR_20 VAR_29* VAR_30); // MIF input block parameters
virtual ~Oxs_Exchange6Ngbr();
virtual OC_BOOL Init();
// Optional interface for conjugate-gradient evolver.
virtual int FUNC_7(VAR_31& VAR_32);
};
#endif // _OXS_EXCHANGE6NGBR
| 0.627703 | {'IMPORT_0': 'atlas.h', 'IMPORT_1': 'key.h', 'IMPORT_2': 'chunkenergy.h', 'IMPORT_3': 'energy.h', 'IMPORT_4': 'meshvalue.h', 'IMPORT_5': 'threevector.h', 'CLASS_0': 'class', 'VAR_0': 'public', 'VAR_1': 'Oxs_ChunkEnergy', 'VAR_2': 'enum', 'VAR_3': 'ExchangeCoefType', 'VAR_4': 'A_UNKNOWN', 'VAR_5': 'A_TYPE', 'VAR_6': 'LEX_TYPE', 'VAR_7': 'excoeftype', 'VAR_8': 'coef', 'CLASS_1': 'mutable', 'VAR_9': 'Oxs_Key', 'VAR_10': 'Oxs_OwnedPointer', 'VAR_11': 'OC_UINT4m', 'VAR_12': 'Oxs_MeshValue', 'VAR_13': 'vector', 'VAR_14': 'maxdot', 'VAR_15': 'energy_density_error_estimate', 'FUNC_0': 'CalcEnergyA', 'VAR_16': 'state', 'VAR_17': 'ocedtaux', 'VAR_18': 'node_start', 'VAR_19': 'node_stop', 'VAR_20': 'const', 'VAR_21': 'maxspinangle_output', 'VAR_22': 'stage_maxspinangle_output', 'VAR_23': 'run_maxspinangle_output', 'FUNC_1': 'UpdateDerivedOutputs', 'CLASS_2': 'String', 'FUNC_2': 'InstanceName', 'FUNC_3': 'StageMaxSpinAngleStateName', 'VAR_24': 'oed', 'FUNC_4': 'GetEnergyAlt', 'CLASS_3': 'Oc_AlignedVector', 'VAR_25': 'thread_ocedtaux', 'VAR_26': 'number_of_threads', 'FUNC_5': 'ComputeEnergyChunkFinalize', 'FUNC_6': 'ClassName', 'VAR_27': 'name', 'VAR_28': 'Oxs_Director', 'VAR_29': 'char', 'VAR_30': 'argstr', 'FUNC_7': 'IncrementPreconditioner', 'VAR_31': 'PreconditionerData', 'VAR_32': 'pcd'} | c | OOP | 100.00% |
#define BOOST_TEST_MODULE OnesComplementOpTest
#include "../IntX.h"
#include "../Utils/Constants.h"
#include <vector>
#include <boost/test/included/unit_test.hpp>
BOOST_AUTO_TEST_SUITE(OnesComplementOpTest)
BOOST_AUTO_TEST_CASE(ShouldOnesComplementIntX)
{
IntX value = IntX(11);
IntX result = ~value;
long long temp = -(long long)(~(UInt32)11);
BOOST_CHECK(result == temp);
}
BOOST_AUTO_TEST_CASE(ShouldOnesComplementNegativeIntX)
{
IntX value = IntX(-11);
IntX result = ~value;
BOOST_CHECK(result == ~(UInt32)11);
}
BOOST_AUTO_TEST_CASE(ShouldOnesComplementZero)
{
IntX value = IntX();
IntX result = ~value;
BOOST_CHECK(result == 0);
}
BOOST_AUTO_TEST_CASE(ShouldOnesComplementBigIntX)
{
IntX value = IntX(vector<UInt32>({ 3, 5, Constants::MaxUInt32Value }), false);
IntX result = ~value;
BOOST_CHECK(result == IntX(vector<UInt32>({ ~(UInt32)3, ~(UInt32)5 }), true));
}
BOOST_AUTO_TEST_SUITE_END()
| #define BOOST_TEST_MODULE OnesComplementOpTest
#include "../IntX.h"
#include "../Utils/Constants.h"
#include <vector>
#include <boost/test/included/unit_test.hpp>
BOOST_AUTO_TEST_SUITE(OnesComplementOpTest)
BOOST_AUTO_TEST_CASE(ShouldOnesComplementIntX)
{
IntX value = IntX(11);
IntX VAR_0 = ~value;
long long temp = -(long long)(~(ID_0)11);
BOOST_CHECK(VAR_0 == temp);
}
BOOST_AUTO_TEST_CASE(ShouldOnesComplementNegativeIntX)
{
IntX value = IntX(-11);
IntX VAR_0 = ~value;
BOOST_CHECK(VAR_0 == ~(ID_0)11);
}
BOOST_AUTO_TEST_CASE(ShouldOnesComplementZero)
{
IntX value = IntX();
IntX VAR_0 = ~value;
BOOST_CHECK(VAR_0 == 0);
}
BOOST_AUTO_TEST_CASE(ShouldOnesComplementBigIntX)
{
IntX value = IntX(vector<VAR_1>({ 3, 5, Constants::MaxUInt32Value }), false);
IntX VAR_0 = ~value;
BOOST_CHECK(VAR_0 == IntX(vector<VAR_1>({ ~(ID_0)3, ~(ID_0)5 }), true));
}
BOOST_AUTO_TEST_SUITE_END()
| 0.136699 | {'VAR_0': 'result', 'ID_0': 'UInt32', 'VAR_1': 'UInt32'} | c | Procedural | 75.19% |
// This file lnpz_fieldquadtree.h is part of lineplz - Public domain simple drawing library
//
// The original author of this software is <NAME>, and its permanent
// home is <http://github.com/mkuitune/lineplz/>. If you find this software
// useful, an acknowledgement in your source text and/or product documentation
// is appreciated, but not required.
//
// This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, compile, sell, or
// distribute this software, either in source code form or as a compiled
// binary, for any purpose, commercial or non-commercial, and by any
// means.
//
// In jurisdictions that recognize copyright laws, the author or authors
// of this software dedicate any and all copyright interest in the
// software to the public domain. We make this dedication for the benefit
// of the public at large and to the detriment of our heirs and
// successors. We intend this dedication to be an overt act of
// relinquishment in perpetuity of all present and future rights to this
// software under copyright law.
//
// 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 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.
//
// For more information, please refer to <http://unlicense.org/>
#pragma once
#include <stdint.h>
#include <vector>
#include <functional>
#include <algorithm>
#include <stack>
#include <lnpz/lnpz_linalgd.h>
#include "lnpz_util.h"
namespace lnpz {
// i:th level cell
// x--x
// | |
// x--x
//
// vertex indices
// 3--2
// | |
// 0--1
//
// i+1:th level cells
//
// x--x--x
// |nw|ne|
// x--x--x
// |sw|se|
// x--x--x
//
// x--x--x
// |3 |2 |
// x--x--x
// |0 |1 |
// x--x--x
//
// Sample points in cell
// x--3--x
// | |
// 4 0 2
// | |
// x--1--x
struct fq_coordinate_t {
float x, y;
};
struct fq_corners_t {
fq_coordinate_t corners[4];
};
struct FieldQuadtreeNode;
struct fq_interpoloation_samples_t {
fq_coordinate_t coords[5];
float values[5];
float sampleDifference(float measured[5]) const {
float d = 0.f;
for (int i = 0; i < 5; i++) {
d += fabsf(values[i] - measured[i]);
}
return d;
}
float maxSampleDifference(float measured[5]) const {
float d = 0.f;
for (int i = 0; i < 5; i++) {
d += fabsf(values[i] - measured[i]);
}
return d;
}
float maxSampleDifferenceRelative(float measured[5]) const {
int i = 0;
float d = fabsf((values[i] - measured[i]) / measured[i]);
i++;
for (; i < 5; i++) {
d = std::max(d, fabsf((values[i] - measured[i]) / measured[i]));
}
return d;
}
void sampleField(float realValues[5], std::function<float(float, float)> field) const {
for (int i = 0; i < 5; i++) {
auto pnt = coords[i];
realValues[i] = field(pnt.x, pnt.y);
}
}
};
struct cornerdata_t {
float field;
};
struct FieldQuadtreeNode {
cornerdata_t cornerdata[4]; // store adf value here
size_t childs; // every subdividion creates four children
float x0, y0, d;
uint8_t depth = 0;
float maxVal, minVal;
// compute these after tree is built
void computeFieldDomain(std::vector<FieldQuadtreeNode>& buf) {
using namespace util;
maxVal = MaxOf(
cornerdata[0].field,
cornerdata[1].field,
cornerdata[2].field,
cornerdata[3].field);
minVal = MinOf(
cornerdata[0].field,
cornerdata[1].field,
cornerdata[2].field,
cornerdata[3].field);
if (childs != 0) {
buf[childs].computeFieldDomain(buf);
buf[childs + 1].computeFieldDomain(buf);
buf[childs + 2].computeFieldDomain(buf);
buf[childs + 3].computeFieldDomain(buf);
float childmax = MaxOf(
buf[childs].maxVal,
buf[childs + 1].maxVal,
buf[childs + 2].maxVal,
buf[childs + 3].maxVal);
float childmin = MinOf(
buf[childs].minVal,
buf[childs + 1].minVal,
buf[childs + 2].minVal,
buf[childs + 3].minVal);
maxVal = std::max(maxVal, childmax);
minVal = std::min(minVal, childmin);
}
}
fq_corners_t corners() const {
return {
{{x0,y0},{x0 + d, y0},{x0 + d, y0 + d},{x0, y0 + d}}
};
}
float divergence(float measured[5]) const;
float rot() const {
float s = 0.f;
for (int i = 1; i < 4; i++)
s += (cornerdata[i % 4].field - cornerdata[(i - 1) % 4].field);
return s;
}
bool isInside(float x, float y) const {
return (x >= x0 && x <= (x0 + d)) &&
(y >= y0 && y <= (y0 + d));
}
void applyField(std::function<float(float, float)> field) {
auto corpos = corners();
for (int i = 0; i < 4; i++) {
auto pos = corpos.corners[i];
cornerdata[i].field = field(pos.x, pos.y);
}
}
void applyFieldToExisting(std::function<float(float, float)> field) {
auto corpos = corners();
for (int i = 0; i < 4; i++) {
auto pos = corpos.corners[i];
float smp = field(pos.x, pos.y);
if (fabsf(cornerdata[i].field) > fabsf(smp))
cornerdata[i].field = smp;
}
}
void initFromPrevious(const FieldQuadtreeNode& prev) {
auto corpos = corners();
for (int i = 0; i < 4; i++) {
auto pos = corpos.corners[i];
cornerdata[i].field = prev.sampleCorners(pos.x, pos.y);
}
}
fq_interpoloation_samples_t samplepoints() const {
float h = d / 2;
fq_interpoloation_samples_t s = {
{{x0 + h,y0 + h},{x0 + h, y0},{x0 + d, y0 + h},{x0 + h, y0 + d}, {x0, y0 + h},
},
{0.f, 0.f, 0.f, 0.f, 0.f}
};
for (int i = 0; i < 5; i++) {
auto pnt = s.coords[i];
s.values[i] = sampleCorners(pnt.x, pnt.y);
}
return s;
}
float interpolateX(float x) const {
return (x - x0) / d;
}
float interpolateY(float y) const {
return (y - y0) / d;
}
// bilinear interpolation of corner values
float sampleCorners(float x, float y) const {
using namespace util;
float u = interpolateX(x);
float v = interpolateY(y);
#if 0 // uncomment if need to debug this for some reason
if (u < 0.f || u > 1.f)
throw std::exception("u wrong");
if (v < 0.f || v > 1.f)
throw std::exception("v wrong");
#endif
float r1 = Lerp(cornerdata[3].field, cornerdata[2].field, u);
float r0 = Lerp(cornerdata[0].field, cornerdata[1].field, u);
return Lerp(r0, r1, v);
}
//constexpr static float FieldInitial() {
// return -1.0e9;
// }
constexpr static float FieldInitial() {
return 1.0e9;
}
size_t getChildIdx(float x, float y) const {
size_t childIdx = 0;
float h = d / 2;
if ((y - y0) > h) {
childIdx = (x - x0) < h ? 3 : 2;
}
else {
childIdx = (x - x0) < h ? 0 : 1;
}
return childs + childIdx;
}
static FieldQuadtreeNode Init(float x, float y, float d) {
FieldQuadtreeNode n;
n.childs = 0;
n.x0 = x;
n.y0 = y;
n.d = d;
n.cornerdata[0].field = FieldInitial();
n.cornerdata[1].field = FieldInitial();
n.cornerdata[2].field = FieldInitial();
n.cornerdata[3].field = FieldInitial();
return n;
}
};
struct FieldQuadtree {
std::vector<FieldQuadtreeNode> nodes;
static const size_t NPOS = -1;
size_t maxDepth() const {
const float d0 = nodes[0].d;
float cd = 1.0f;
for (const auto& n : nodes) {
float cdn = (d0) / (n.d);
cd = std::max(cd, cdn);
}
return (size_t)(cd * 0.5f);
}
float getDeepSampleInt(size_t idx, float x, float y) const {
while (nodes[idx].childs != 0) {
idx = nodes[idx].getChildIdx(x, y);
}
return nodes[idx].sampleCorners(x, y);
}
float getDeepSampleIntClamped(size_t idx, float x, float y, float domainMin, float domainMax) const {
using namespace util;
float iMax = nodes[idx].maxVal;
float iMin = nodes[idx].minVal;
if (iMax < domainMin)
return iMax;
if (iMin > domainMax)
return iMin;
while (nodes[idx].childs != 0) {
idx = nodes[idx].getChildIdx(x, y);
iMax = nodes[idx].maxVal;
iMin = nodes[idx].minVal;
if (iMax < domainMin)
return iMax;
if (iMin > domainMax)
return iMin;
}
float sample = nodes[idx].sampleCorners(x, y);
return Clampf(sample, domainMin, domainMax);
}
float getDeepSample(float x, float y) const {
if (!nodes[0].isInside(x, y))
return FieldQuadtreeNode::FieldInitial();
return getDeepSampleInt(0, x, y);
}
// If the tree value is not within domain return just upper or lower value of the domain
// this can be used to limit the depth of tree and simplify the computation,
// but the input domain should be carefully selected
// In some cases the clamped sample is more or less equal in time as the
// unclampled one - test performance
float getDeepSampleClamped(float x, float y, float domainMin, float domainMax) const {
if (!nodes[0].isInside(x, y))
return FieldQuadtreeNode::FieldInitial();
return getDeepSampleIntClamped(0, x, y, domainMin, domainMax);
}
size_t getIdxAtFromInt(size_t idx, float x, float y) const {
while (nodes[idx].childs != 0) {
idx = nodes[idx].getChildIdx(x, y);
}
return idx;
}
size_t getIdxAt(float x, float y) const {
if (!nodes[0].isInside(x, y))
return NPOS;
return getIdxAtFromInt(0, x, y);
}
};
struct FieldQuadtreeBuilder {
FieldQuadtree tree;
float x; float y; float d;
//float threshold = 1.f; // jaggies in lines
//float threshold = 0.5f;
//float threshold = 0.2f;
float threshold = 0.1f;
float thresholdrelative = 0.01f;
uint8_t maxnodedepth = 10;
FieldQuadtreeBuilder(float xin, float yin, float din) :x(xin), y(yin), d(din) {
}
FieldQuadtree build() {
tree.nodes[0].computeFieldDomain(tree.nodes);
return tree;
}
void add(std::function<float(float, float)> field) {
if (tree.nodes.empty())
addNew(field);
else
addExisting(field);
}
void addExisting(std::function<float(float, float)> field);
void addNew(std::function<float(float, float)> field);
};
FieldQuadtree Transform(const FieldQuadtree& src, const util::LinearMap2D& map);
}
| // This file lnpz_fieldquadtree.h is part of lineplz - Public domain simple drawing library
//
// The original author of this software is <NAME>, and its permanent
// home is <http://github.com/mkuitune/lineplz/>. If you find this software
// useful, an acknowledgement in your source text and/or product documentation
// is appreciated, but not required.
//
// This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, compile, sell, or
// distribute this software, either in source code form or as a compiled
// binary, for any purpose, commercial or non-commercial, and by any
// means.
//
// In jurisdictions that recognize copyright laws, the author or authors
// of this software dedicate any and all copyright interest in the
// software to the public domain. We make this dedication for the benefit
// of the public at large and to the detriment of our heirs and
// successors. We intend this dedication to be an overt act of
// relinquishment in perpetuity of all present and future rights to this
// software under copyright law.
//
// 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 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.
//
// For more information, please refer to <http://unlicense.org/>
#pragma once
#include <stdint.h>
#include <vector>
#include <IMPORT_0>
#include <IMPORT_1>
#include <stack>
#include <lnpz/lnpz_linalgd.h>
#include "IMPORT_2"
namespace lnpz {
// i:th level cell
// x--x
// | |
// x--x
//
// vertex indices
// 3--2
// | |
// 0--1
//
// i+1:th level cells
//
// x--x--x
// |nw|ne|
// x--x--x
// |sw|se|
// x--x--x
//
// x--x--x
// |3 |2 |
// x--x--x
// |0 |1 |
// x--x--x
//
// Sample points in cell
// x--3--x
// | |
// 4 0 2
// | |
// x--1--x
struct fq_coordinate_t {
float x, y;
};
struct fq_corners_t {
fq_coordinate_t VAR_0[4];
};
struct FieldQuadtreeNode;
struct fq_interpoloation_samples_t {
fq_coordinate_t coords[5];
float values[5];
float VAR_1(float measured[5]) const {
float VAR_2 = 0.f;
VAR_3 (int VAR_4 = 0; VAR_4 < 5; VAR_4++) {
VAR_2 += fabsf(values[VAR_4] - measured[VAR_4]);
}
return VAR_2;
}
float maxSampleDifference(float measured[5]) const {
float VAR_2 = 0.f;
for (int VAR_4 = 0; VAR_4 < 5; VAR_4++) {
VAR_2 += fabsf(values[VAR_4] - measured[VAR_4]);
}
return VAR_2;
}
float maxSampleDifferenceRelative(float measured[5]) const {
int VAR_4 = 0;
float VAR_2 = fabsf((values[VAR_4] - measured[VAR_4]) / measured[VAR_4]);
VAR_4++;
for (; VAR_4 < 5; VAR_4++) {
VAR_2 = std::FUNC_1(VAR_2, fabsf((values[VAR_4] - measured[VAR_4]) / measured[VAR_4]));
}
return VAR_2;
}
void sampleField(float realValues[5], std::function<float(float, float)> field) const {
for (int VAR_4 = 0; VAR_4 < 5; VAR_4++) {
auto CLASS_0 = coords[VAR_4];
realValues[VAR_4] = field(VAR_5.x, VAR_5.y);
}
}
};
struct cornerdata_t {
float field;
};
struct FieldQuadtreeNode {
cornerdata_t VAR_6[4]; // store adf value here
size_t VAR_7; // every subdividion creates four children
float x0, y0, VAR_2;
uint8_t depth = 0;
float maxVal, VAR_8;
// compute these after tree is built
void computeFieldDomain(std::vector<FieldQuadtreeNode>& buf) {
using namespace util;
maxVal = MaxOf(
CLASS_1[0].field,
CLASS_1[1].field,
CLASS_1[2].field,
CLASS_1[3].field);
CLASS_2 = MinOf(
CLASS_1[0].field,
CLASS_1[1].field,
CLASS_1[2].field,
CLASS_1[3].field);
if (ID_0 != 0) {
buf[VAR_7].computeFieldDomain(buf);
buf[VAR_7 + 1].computeFieldDomain(buf);
buf[VAR_7 + 2].computeFieldDomain(buf);
buf[VAR_7 + 3].computeFieldDomain(buf);
float childmax = MaxOf(
buf[VAR_7].maxVal,
buf[VAR_7 + 1].maxVal,
buf[VAR_7 + 2].maxVal,
buf[VAR_7 + 3].maxVal);
float childmin = MinOf(
buf[VAR_7].VAR_8,
buf[VAR_7 + 1].VAR_8,
buf[VAR_7 + 2].VAR_8,
buf[VAR_7 + 3].VAR_8);
maxVal = std::FUNC_1(maxVal, childmax);
CLASS_2 = std::min(VAR_8, childmin);
}
}
fq_corners_t FUNC_0() const {
return {
{{x0,y0},{x0 + VAR_2, y0},{x0 + VAR_2, y0 + VAR_2},{x0, y0 + VAR_2}}
};
}
float divergence(float measured[5]) const;
float FUNC_2() const {
float s = 0.f;
for (int VAR_4 = 1; VAR_4 < 4; VAR_4++)
s += (VAR_6[VAR_4 % 4].field - VAR_6[(VAR_4 - 1) % 4].field);
return s;
}
bool isInside(float x, float y) const {
return (x >= x0 && x <= (x0 + VAR_2)) &&
(y >= y0 && y <= (y0 + VAR_2));
}
void applyField(std::function<float(float, float)> field) {
auto CLASS_3 = FUNC_0();
for (int VAR_4 = 0; VAR_4 < 4; VAR_4++) {
auto CLASS_4 = VAR_9.VAR_0[VAR_4];
VAR_6[VAR_4].field = field(VAR_10.x, VAR_10.y);
}
}
void applyFieldToExisting(std::function<float(float, float)> field) {
auto CLASS_3 = FUNC_0();
for (int VAR_4 = 0; VAR_4 < 4; VAR_4++) {
auto CLASS_4 = VAR_9.VAR_0[VAR_4];
float VAR_11 = field(VAR_10.x, VAR_10.y);
if (fabsf(VAR_6[VAR_4].field) > fabsf(VAR_11))
VAR_6[VAR_4].field = VAR_11;
}
}
void initFromPrevious(const FieldQuadtreeNode& prev) {
auto CLASS_3 = FUNC_0();
for (int VAR_4 = 0; VAR_4 < 4; VAR_4++) {
auto CLASS_4 = VAR_9.VAR_0[VAR_4];
VAR_6[VAR_4].field = prev.sampleCorners(VAR_10.x, VAR_10.y);
}
}
fq_interpoloation_samples_t samplepoints() const {
float VAR_12 = VAR_2 / 2;
fq_interpoloation_samples_t s = {
{{x0 + VAR_12,y0 + VAR_12},{x0 + VAR_12, y0},{x0 + VAR_2, y0 + VAR_12},{x0 + VAR_12, y0 + VAR_2}, {x0, y0 + VAR_12},
},
{0.f, 0.f, 0.f, 0.f, 0.f}
};
for (int VAR_4 = 0; VAR_4 < 5; VAR_4++) {
auto CLASS_0 = s.coords[VAR_4];
s.values[VAR_4] = sampleCorners(VAR_5.x, VAR_5.y);
}
return s;
}
float interpolateX(float x) const {
return (x - x0) / VAR_2;
}
float interpolateY(float y) const {
return (y - y0) / VAR_2;
}
// bilinear interpolation of corner values
float sampleCorners(float x, float y) const {
using namespace util;
float VAR_13 = interpolateX(x);
float VAR_14 = interpolateY(y);
#if 0 // uncomment if need to debug this for some reason
if (VAR_13 < 0.f || VAR_13 > 1.f)
throw std::exception("u wrong");
if (VAR_14 < 0.f || VAR_14 > 1.f)
throw std::exception("v wrong");
#endif
float VAR_15 = Lerp(VAR_6[3].field, VAR_6[2].field, VAR_13);
float r0 = Lerp(VAR_6[0].field, VAR_6[1].field, VAR_13);
return Lerp(r0, VAR_15, VAR_14);
}
//constexpr static float FieldInitial() {
// return -1.0e9;
// }
constexpr static float FieldInitial() {
return 1.0e9;
}
size_t getChildIdx(float x, float y) const {
size_t VAR_16 = 0;
float VAR_12 = VAR_2 / 2;
if ((y - y0) > VAR_12) {
VAR_16 = (x - x0) < VAR_12 ? 3 : 2;
}
else {
VAR_16 = (x - x0) < VAR_12 ? 0 : 1;
}
return VAR_7 + VAR_16;
}
static FieldQuadtreeNode Init(float x, float y, float VAR_2) {
FieldQuadtreeNode n;
n.VAR_7 = 0;
n.x0 = x;
n.y0 = y;
n.VAR_2 = VAR_2;
n.VAR_6[0].field = FieldInitial();
n.VAR_6[1].field = FieldInitial();
n.VAR_6[2].field = FieldInitial();
n.VAR_6[3].field = FieldInitial();
return n;
}
};
struct CLASS_5 {
std::vector<FieldQuadtreeNode> nodes;
static const size_t VAR_18 = -1;
size_t VAR_19() const {
const float VAR_20 = nodes[0].VAR_2;
float cd = 1.0f;
VAR_3 (const auto& n : nodes) {
float VAR_21 = (CLASS_6) / (n.VAR_2);
cd = std::FUNC_1(cd, VAR_21);
}
return (size_t)(cd * 0.5f);
}
float getDeepSampleInt(size_t idx, float x, float y) const {
while (nodes[idx].VAR_7 != 0) {
idx = nodes[idx].getChildIdx(x, y);
}
return nodes[idx].sampleCorners(x, y);
}
float getDeepSampleIntClamped(size_t idx, float x, float y, float VAR_22, float domainMax) const {
using namespace util;
float iMax = nodes[idx].maxVal;
float iMin = nodes[idx].VAR_8;
if (iMax < VAR_22)
return iMax;
if (iMin > domainMax)
return iMin;
while (nodes[idx].VAR_7 != 0) {
idx = nodes[idx].getChildIdx(x, y);
iMax = nodes[idx].maxVal;
iMin = nodes[idx].VAR_8;
if (iMax < VAR_22)
return iMax;
if (iMin > domainMax)
return iMin;
}
float sample = nodes[idx].sampleCorners(x, y);
return Clampf(sample, VAR_22, domainMax);
}
float FUNC_3(float x, float y) const {
if (!nodes[0].isInside(x, y))
return FieldQuadtreeNode::FieldInitial();
return getDeepSampleInt(0, x, y);
}
// If the tree value is not within domain return just upper or lower value of the domain
// this can be used to limit the depth of tree and simplify the computation,
// but the input domain should be carefully selected
// In some cases the clamped sample is more or less equal in time as the
// unclampled one - test performance
float getDeepSampleClamped(float x, float y, float VAR_22, float domainMax) const {
if (!nodes[0].isInside(x, y))
return FieldQuadtreeNode::FieldInitial();
return getDeepSampleIntClamped(0, x, y, VAR_22, domainMax);
}
size_t getIdxAtFromInt(size_t idx, float x, float y) const {
while (nodes[idx].VAR_7 != 0) {
idx = nodes[idx].getChildIdx(x, y);
}
return idx;
}
size_t getIdxAt(float x, float y) const {
if (!nodes[0].isInside(x, y))
return VAR_18;
return getIdxAtFromInt(0, x, y);
}
};
struct FieldQuadtreeBuilder {
CLASS_5 tree;
float x; float y; float VAR_2;
//float threshold = 1.f; // jaggies in lines
//float threshold = 0.5f;
//float threshold = 0.2f;
float threshold = 0.1f;
float thresholdrelative = 0.01f;
uint8_t VAR_23 = 10;
FieldQuadtreeBuilder(float xin, VAR_24 yin, VAR_24 din) :x(xin), y(yin), VAR_2(din) {
}
VAR_17 build() {
tree.nodes[0].computeFieldDomain(tree.nodes);
return tree;
}
void FUNC_4(std::function<float(float, float)> field) {
if (tree.nodes.empty())
addNew(field);
else
FUNC_5(field);
}
void FUNC_5(std::function<float(float, float)> field);
void addNew(std::function<float(float, float)> field);
};
CLASS_5 Transform(const CLASS_5& src, const util::LinearMap2D& map);
}
| 0.239538 | {'IMPORT_0': 'functional', 'IMPORT_1': 'algorithm', 'IMPORT_2': 'lnpz_util.h', 'VAR_0': 'corners', 'FUNC_0': 'corners', 'VAR_1': 'sampleDifference', 'VAR_2': 'd', 'VAR_3': 'for', 'VAR_4': 'i', 'FUNC_1': 'max', 'CLASS_0': 'pnt', 'VAR_5': 'pnt', 'VAR_6': 'cornerdata', 'CLASS_1': 'cornerdata', 'VAR_7': 'childs', 'ID_0': 'childs', 'VAR_8': 'minVal', 'CLASS_2': 'minVal', 'FUNC_2': 'rot', 'CLASS_3': 'corpos', 'VAR_9': 'corpos', 'CLASS_4': 'pos', 'VAR_10': 'pos', 'VAR_11': 'smp', 'VAR_12': 'h', 'VAR_13': 'u', 'VAR_14': 'v', 'VAR_15': 'r1', 'VAR_16': 'childIdx', 'CLASS_5': 'FieldQuadtree', 'VAR_17': 'FieldQuadtree', 'VAR_18': 'NPOS', 'VAR_19': 'maxDepth', 'VAR_20': 'd0', 'CLASS_6': 'd0', 'VAR_21': 'cdn', 'VAR_22': 'domainMin', 'FUNC_3': 'getDeepSample', 'VAR_23': 'maxnodedepth', 'VAR_24': 'float', 'FUNC_4': 'add', 'FUNC_5': 'addExisting'} | c | Texto | 15.79% |
#ifndef WSETTINGS_H
#define WSETTINGS_H
#include <QFrame>
#include "logger.h"
#include "indexer.h"
namespace Ui
{
class wSettings;
}
class wSettings : public QFrame
{
Q_OBJECT
public:
explicit wSettings(QWidget *parent = 0);
~wSettings();
void setEnv(logger* pLog, indexer* pIndexer);
protected:
logger* m_pLog;
indexer* m_pIndexer;
void refreshtableViewDirs(int iCfgEntriesLen);
void contextMenuAt(QPoint pos, int selectedItem);
private slots:
void on_toolButtonAdd_clicked();
void on_toolButtonDel_clicked();
void on_tableViewDirs_clicked(const QModelIndex &index);
void on_toolButtonInfo_clicked();
void on_init();
void on_updateIdxInfo();
void on_actionOpen();
void on_tableViewDirs_customContextMenuRequested(const QPoint &pos);
void on_tableWidgetDirsInfo_customContextMenuRequested(const QPoint &pos);
private:
Ui::wSettings *ui;
};
#endif // WSETTINGS_H
| #ifndef VAR_0
#define VAR_0
#include <IMPORT_0>
#include "IMPORT_1"
#include "IMPORT_2"
CLASS_0 Ui
{
CLASS_1 VAR_1;
}
CLASS_1 VAR_1 : VAR_2 IMPORT_0
{
CLASS_2
VAR_2:
VAR_3 FUNC_0(CLASS_3 *VAR_4 = 0);
~FUNC_0();
void FUNC_1(CLASS_4* VAR_6, indexer* VAR_7);
protected:
VAR_5* VAR_8;
indexer* VAR_9;
void FUNC_2(int VAR_10);
void FUNC_3(CLASS_5 VAR_11, int VAR_12);
private VAR_13:
void FUNC_4();
void on_toolButtonDel_clicked();
void FUNC_5(const CLASS_6 &VAR_14);
void on_toolButtonInfo_clicked();
void FUNC_6();
void on_updateIdxInfo();
void on_actionOpen();
void FUNC_7(const CLASS_5 &VAR_11);
void FUNC_8(const CLASS_5 &VAR_11);
private:
Ui::VAR_1 *VAR_15;
};
#endif // WSETTINGS_H
| 0.762717 | {'VAR_0': 'WSETTINGS_H', 'IMPORT_0': 'QFrame', 'IMPORT_1': 'logger.h', 'IMPORT_2': 'indexer.h', 'CLASS_0': 'namespace', 'CLASS_1': 'class', 'VAR_1': 'wSettings', 'FUNC_0': 'wSettings', 'VAR_2': 'public', 'CLASS_2': 'Q_OBJECT', 'VAR_3': 'explicit', 'CLASS_3': 'QWidget', 'VAR_4': 'parent', 'FUNC_1': 'setEnv', 'CLASS_4': 'logger', 'VAR_5': 'logger', 'VAR_6': 'pLog', 'VAR_7': 'pIndexer', 'VAR_8': 'm_pLog', 'VAR_9': 'm_pIndexer', 'FUNC_2': 'refreshtableViewDirs', 'VAR_10': 'iCfgEntriesLen', 'FUNC_3': 'contextMenuAt', 'CLASS_5': 'QPoint', 'VAR_11': 'pos', 'VAR_12': 'selectedItem', 'VAR_13': 'slots', 'FUNC_4': 'on_toolButtonAdd_clicked', 'FUNC_5': 'on_tableViewDirs_clicked', 'CLASS_6': 'QModelIndex', 'VAR_14': 'index', 'FUNC_6': 'on_init', 'FUNC_7': 'on_tableViewDirs_customContextMenuRequested', 'FUNC_8': 'on_tableWidgetDirsInfo_customContextMenuRequested', 'VAR_15': 'ui'} | c | Texto | 9.91% |
/*
always use original sql, other computing nodes will abandon unsupported
pieces just like done here.
concreate actions will be tracked by other functions.
*/
void TrackAlterTableGeneral(Oid relid)
{
if (g_root_stmt->top_stmt_tag != T_Invalid &&
g_remote_ddl_ctx.ddl_sql_src.len > 0)
return;
appendStringInfoString(&g_remote_ddl_ctx.ddl_sql_src,
g_remote_ddl_ctx.orig_sql);
Relation rel = relation_open(relid, AccessExclusiveLock);
SetRemoteDDLInfo(rel, DDL_OP_Type_alter, DDL_ObjType_table);
relation_close(rel, NoLock);
} | /*
always use original sql, other computing nodes will abandon unsupported
pieces just like done here.
concreate actions will be tracked by other functions.
*/
void FUNC_0(Oid relid)
{
if (VAR_0->top_stmt_tag != T_Invalid &&
VAR_1.VAR_2.VAR_3 > 0)
return;
appendStringInfoString(&VAR_1.VAR_2,
VAR_1.orig_sql);
CLASS_0 rel = FUNC_1(relid, VAR_4);
FUNC_2(rel, DDL_OP_Type_alter, DDL_ObjType_table);
FUNC_3(rel, NoLock);
} | 0.317538 | {'FUNC_0': 'TrackAlterTableGeneral', 'VAR_0': 'g_root_stmt', 'VAR_1': 'g_remote_ddl_ctx', 'VAR_2': 'ddl_sql_src', 'VAR_3': 'len', 'CLASS_0': 'Relation', 'FUNC_1': 'relation_open', 'VAR_4': 'AccessExclusiveLock', 'FUNC_2': 'SetRemoteDDLInfo', 'FUNC_3': 'relation_close'} | c | Procedural | 100.00% |
/* Copyright 2021 <NAME>. 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 ANNOTATION_HANDLER_H
#define ANNOTATION_HANDLER_H
#include <string>
#include <algorithm>
#include <opencv2/opencv.hpp>
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/tracking.hpp>
#include "../system/paths.h"
#include "../system/error.h"
/**
* This class handles the events which take
* place during the displaying and annotation
* of each individual image.
*
* In turn, it serves as a callback method for
* the @code cv::setMouseCallback @endcode
* event handler, as well as the trackbar which
* is created by the @code cv::createTrackbar @endcode
* callback (which is used for choosing the class).
*/
class AnnotationHandler {
protected:
/* The mode of the handler, e.g., whether
* to use a two-click or drag/drop interface. */
const char* mode;
/* For both modes, the initial position on
* each set of annotations will be tracked. */
int ix = -1;
int iy = -1;
/* Following the creation of an annotation, the
* final position will be tracked. */
int fx = -1;
int fy = -1;
/* For both modes, track when the user is
* in the middle of drawing a bounding box. */
bool is_drawing = false;
/* Following a button click, this tracks which
* button index was clicked, so that it can be cleared. */
int clicked_index = -1;
/* At all times, a specific image should be tracked. */
cv::Mat image;
/* Also, save a cache of the image for resetting. */
cv::Mat image_cache;
/* The class will always contain a list of labels
* which it will call from when choosing a one. */
std::vector<std::string> label_list;
/* Furthermore, the current label of the annotation
* being drawn will also be tracked at the time. */
const char* current_label = "";
/* Finally, there will always be a set of buttons
* corresponding to the different labels being tracked. */
std::vector<cv::Rect> buttons;
/* For each of the different labels, a different color will
* be picked out of this vector of colors. */
static std::vector<cv::Scalar> colors;
private:
/* During the period that each image is being annotated,
* each individual bounding box coordinates as well as its
* relevant label will be stored in this vector. */
std::vector<std::tuple<const char*, std::vector<int>>> bounding_boxes;
public:
/**
* Initializes the class with the chosen
* event handling mode.
* @param mode_choice: The mode of choice.
*/
explicit AnnotationHandler(const char* mode_choice,
const std::vector<std::string>& class_list);
/**
* Create an annotation session involving the
* provided image path.
*/
int annotate(const char* image_path);
/**
* Returns the bounding box annotation positions
* from the image annotation session.
*/
std::vector<std::tuple<const char*, std::vector<int>>> get_bounding_boxes() {
return bounding_boxes;
}
private:
/**
* Update the current image and class settings in
* order to transition between stages.
*/
void update_states(cv::Mat& image);
/**
* Updates the vector of bounding boxes with a new
* tuple consisting of a new label and bounding box.
*/
void update_bounding_boxes();
/**
* Initializes the image with a set of buttons which
* can be "clicked" to choose different labels.
*/
void add_buttons_to_image();
/**
* Similar to the above method `add_buttons_to_image`,
* however this is used as an update method as opposed
* to an initialization method, so it retains all of
* the different bounding boxes when called.
*/
void clear_buttons();
/**
* A static wrapper method for the primary dispatch
* handler which is contained in the class. This is the
* actual method which is used to handle mouse events,
* and is controlled internally as such.
*/
static void dispatch_handler(int event, int x, int y, int flags, void* param);
/**
* This is a method accessed by `dispatch_handler`,
* but rather than corresponding to a certain mode,
* this corresponds to any clicks in the region of
* the display window that correspond to a label button.
*/
bool button_click_handler(int event, int x, int y);
/**
* Handles the `two-click` mode, creating a
* rectangle corresponding to two clicks.
*/
void two_click_handler(int event, int x, int y);
/**
* Handles the `debug` mode, printing out info.
*/
static void print_info(int event, int x, int y);
/**
* Updates the different buttons following a click.
* First, all of the other static buttons have the
* clicking animation removed, and then the new button
* has the clicking animation added.
*/
void update_button_animations(int new_index);
/**
* Calculates the text coordinates on a button.
*/
static std::vector<int> calculate_text_coordinates(const cv::Rect& button, const char* label);
};
#endif //ANNOTATION_HANDLER_H
| /* Copyright 2021 <NAME>. 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 ANNOTATION_HANDLER_H
#define ANNOTATION_HANDLER_H
#include <IMPORT_0>
#include <algorithm>
#include <opencv2/opencv.hpp>
#include <IMPORT_1>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <IMPORT_2>
#include "IMPORT_3"
#include "../system/error.h"
/**
* This class handles the events which take
* place during the displaying and annotation
* of each individual image.
*
* In turn, it serves as a callback method for
* the @code cv::setMouseCallback @endcode
* event handler, as well as the trackbar which
* is created by the @code cv::createTrackbar @endcode
* callback (which is used for choosing the class).
*/
class VAR_0 {
protected:
/* The mode of the handler, e.g., whether
* to use a two-click or drag/drop interface. */
VAR_1 VAR_2* VAR_3;
/* For both modes, the initial position on
* each set of annotations will be tracked. */
int ix = -1;
int iy = -1;
/* Following the creation of an annotation, the
* final position will be tracked. */
int fx = -1;
int VAR_4 = -1;
/* For both modes, track when the user is
* in the middle of drawing a bounding box. */
bool is_drawing = false;
/* Following a button click, this tracks which
* button index was clicked, so that it can be cleared. */
int VAR_5 = -1;
/* At all times, a specific image should be tracked. */
cv::VAR_6 image;
/* Also, save a cache of the image for resetting. */
cv::VAR_6 VAR_7;
/* The class will always contain a list of labels
* which it will call from when choosing a one. */
std::vector<std::IMPORT_0> label_list;
/* Furthermore, the current label of the annotation
* being drawn will also be tracked at the time. */
const char* current_label = "";
/* Finally, there will always be a set of buttons
* corresponding to the different labels being tracked. */
std::vector<cv::Rect> buttons;
/* For each of the different labels, a different color will
* be picked out of this vector of colors. */
static std::vector<cv::Scalar> colors;
private:
/* During the period that each image is being annotated,
* each individual bounding box coordinates as well as its
* relevant label will be stored in this vector. */
std::vector<std::VAR_8<VAR_1 VAR_2*, std::vector<int>>> bounding_boxes;
public:
/**
* Initializes the class with the chosen
* event handling mode.
* @param mode_choice: The mode of choice.
*/
explicit VAR_0(const char* VAR_9,
VAR_1 std::vector<std::IMPORT_0>& class_list);
/**
* Create an annotation session involving the
* provided image path.
*/
int FUNC_0(const char* VAR_10);
/**
* Returns the bounding box annotation positions
* from the image annotation session.
*/
std::vector<std::VAR_8<VAR_1 VAR_2*, std::vector<int>>> get_bounding_boxes() {
return bounding_boxes;
}
private:
/**
* Update the current image and class settings in
* order to transition between stages.
*/
void update_states(cv::VAR_6& image);
/**
* Updates the vector of bounding boxes with a new
* tuple consisting of a new label and bounding box.
*/
void update_bounding_boxes();
/**
* Initializes the image with a set of buttons which
* can be "clicked" to choose different labels.
*/
void add_buttons_to_image();
/**
* Similar to the above method `add_buttons_to_image`,
* however this is used as an update method as opposed
* to an initialization method, so it retains all of
* the different bounding boxes when called.
*/
void clear_buttons();
/**
* A static wrapper method for the primary dispatch
* handler which is contained in the class. This is the
* actual method which is used to handle mouse events,
* and is controlled internally as such.
*/
static void dispatch_handler(int event, int x, int y, int VAR_11, void* VAR_12);
/**
* This is a method accessed by `dispatch_handler`,
* but rather than corresponding to a certain mode,
* this corresponds to any clicks in the region of
* the display window that correspond to a label button.
*/
bool button_click_handler(int event, int x, int y);
/**
* Handles the `two-click` mode, creating a
* rectangle corresponding to two clicks.
*/
void FUNC_1(int event, int x, int y);
/**
* Handles the `debug` mode, printing out info.
*/
static void print_info(int event, int x, int y);
/**
* Updates the different buttons following a click.
* First, all of the other static buttons have the
* clicking animation removed, and then the new button
* has the clicking animation added.
*/
void FUNC_2(int new_index);
/**
* Calculates the text coordinates on a button.
*/
static std::vector<int> calculate_text_coordinates(const cv::Rect& VAR_13, const char* VAR_14);
};
#endif //ANNOTATION_HANDLER_H
| 0.337914 | {'IMPORT_0': 'string', 'IMPORT_1': 'opencv2/core.hpp', 'IMPORT_2': 'opencv2/tracking.hpp', 'IMPORT_3': '../system/paths.h', 'VAR_0': 'AnnotationHandler', 'VAR_1': 'const', 'VAR_2': 'char', 'VAR_3': 'mode', 'VAR_4': 'fy', 'VAR_5': 'clicked_index', 'VAR_6': 'Mat', 'VAR_7': 'image_cache', 'VAR_8': 'tuple', 'VAR_9': 'mode_choice', 'FUNC_0': 'annotate', 'VAR_10': 'image_path', 'VAR_11': 'flags', 'VAR_12': 'param', 'FUNC_1': 'two_click_handler', 'FUNC_2': 'update_button_animations', 'VAR_13': 'button', 'VAR_14': 'label'} | c | Hibrido | 22.16% |
//
// NextViewController.h
// DoctorCare365
//
// Created by fly on 16/7/30.
// Copyright © 2016年 ios. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface NextViewController : UIViewController
//名字
@property (copy, nonatomic) NSString *name;
//身份证号
@property (copy, nonatomic) NSString *personNum;
//电话号码
@property (copy, nonatomic) NSString *phoneNum;
@end
| //
// NextViewController.h
// DoctorCare365
//
// Created by fly on 16/7/30.
// Copyright © 2016年 ios. All rights reserved.
//
#import <UIKit/UIKit.h>
@CLASS_0 VAR_0 : VAR_1
//名字
@FUNC_0 (VAR_3, VAR_4) NSString *VAR_5;
//身份证号
@VAR_2 (ID_0, ID_1) NSString *VAR_6;
//电话号码
@VAR_2 (ID_0, ID_1) NSString *phoneNum;
@VAR_7
| 0.879547 | {'CLASS_0': 'interface', 'VAR_0': 'NextViewController', 'VAR_1': 'UIViewController', 'FUNC_0': 'property', 'VAR_2': 'property', 'VAR_3': 'copy', 'ID_0': 'copy', 'VAR_4': 'nonatomic', 'ID_1': 'nonatomic', 'VAR_5': 'name', 'VAR_6': 'personNum', 'VAR_7': 'end'} | c | Procedural | 100.00% |
#pragma once
#include "../../pch.h"
#include "../math/math.h"
#include "resolution.h"
namespace engine
{
struct Config
{
UINT adapter = 0;
UINT window_resolution = 0;
UINT render_resolution = 0;
UINT scene = 0;
bool mouse_lock = false;
bool fullscreen = false;
bool free_camera = false;
bool frustum_culling = true;
};
} | #pragma once
#include "../../pch.h"
#include "IMPORT_0"
#include "resolution.h"
CLASS_0 engine
{
struct Config
{
CLASS_1 VAR_0 = 0;
CLASS_1 VAR_1 = 0;
CLASS_1 render_resolution = 0;
CLASS_1 VAR_2 = 0;
bool mouse_lock = false;
bool fullscreen = false;
bool VAR_3 = false;
bool VAR_4 = true;
};
} | 0.473328 | {'IMPORT_0': '../math/math.h', 'CLASS_0': 'namespace', 'CLASS_1': 'UINT', 'VAR_0': 'adapter', 'VAR_1': 'window_resolution', 'VAR_2': 'scene', 'VAR_3': 'free_camera', 'VAR_4': 'frustum_culling'} | c | Texto | 24.24% |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Multiply-included file, hence no include guard.
#include "content/common/child_process_messages.h"
#include "content/common/accessibility_messages.h"
#include "content/common/appcache_messages.h"
#include "content/common/clipboard_messages.h"
#include "content/common/database_messages.h"
#include "content/common/desktop_notification_messages.h"
#include "content/common/device_orientation_messages.h"
#include "content/common/devtools_messages.h"
#include "content/common/dom_storage_messages.h"
#include "content/common/drag_messages.h"
#include "content/common/file_utilities_messages.h"
#include "content/common/fileapi/file_system_messages.h"
#include "content/common/fileapi/webblob_messages.h"
#include "content/common/gamepad_messages.h"
#include "content/common/geolocation_messages.h"
#include "content/common/gpu/gpu_messages.h"
#include "content/common/indexed_db/indexed_db_messages.h"
#include "content/common/intents_messages.h"
#include "content/common/java_bridge_messages.h"
#include "content/common/media/audio_messages.h"
#include "content/common/media/media_stream_messages.h"
#include "content/common/media/video_capture_messages.h"
#include "content/common/mime_registry_messages.h"
#include "content/common/p2p_messages.h"
#include "content/common/pepper_file_messages.h"
#include "content/common/pepper_messages.h"
#include "content/common/plugin_messages.h"
#include "content/common/quota_messages.h"
#include "content/common/resource_messages.h"
#include "content/common/socket_stream_messages.h"
#include "content/common/speech_recognition_messages.h"
#include "content/common/text_input_client_messages.h"
#include "content/common/utility_messages.h"
#include "content/common/view_messages.h"
#include "content/common/worker_messages.h"
| // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Multiply-included file, hence no include guard.
#include "IMPORT_0"
#include "IMPORT_1"
#include "IMPORT_2"
#include "IMPORT_3"
#include "content/common/database_messages.h"
#include "IMPORT_4"
#include "content/common/device_orientation_messages.h"
#include "IMPORT_5"
#include "content/common/dom_storage_messages.h"
#include "IMPORT_6"
#include "content/common/file_utilities_messages.h"
#include "IMPORT_7"
#include "IMPORT_8"
#include "IMPORT_9"
#include "content/common/geolocation_messages.h"
#include "content/common/gpu/gpu_messages.h"
#include "content/common/indexed_db/indexed_db_messages.h"
#include "IMPORT_10"
#include "IMPORT_11"
#include "IMPORT_12"
#include "IMPORT_13"
#include "IMPORT_14"
#include "IMPORT_15"
#include "IMPORT_16"
#include "content/common/pepper_file_messages.h"
#include "IMPORT_17"
#include "IMPORT_18"
#include "content/common/quota_messages.h"
#include "content/common/resource_messages.h"
#include "content/common/socket_stream_messages.h"
#include "IMPORT_19"
#include "IMPORT_20"
#include "IMPORT_21"
#include "IMPORT_22"
#include "IMPORT_23"
| 0.676333 | {'IMPORT_0': 'content/common/child_process_messages.h', 'IMPORT_1': 'content/common/accessibility_messages.h', 'IMPORT_2': 'content/common/appcache_messages.h', 'IMPORT_3': 'content/common/clipboard_messages.h', 'IMPORT_4': 'content/common/desktop_notification_messages.h', 'IMPORT_5': 'content/common/devtools_messages.h', 'IMPORT_6': 'content/common/drag_messages.h', 'IMPORT_7': 'content/common/fileapi/file_system_messages.h', 'IMPORT_8': 'content/common/fileapi/webblob_messages.h', 'IMPORT_9': 'content/common/gamepad_messages.h', 'IMPORT_10': 'content/common/intents_messages.h', 'IMPORT_11': 'content/common/java_bridge_messages.h', 'IMPORT_12': 'content/common/media/audio_messages.h', 'IMPORT_13': 'content/common/media/media_stream_messages.h', 'IMPORT_14': 'content/common/media/video_capture_messages.h', 'IMPORT_15': 'content/common/mime_registry_messages.h', 'IMPORT_16': 'content/common/p2p_messages.h', 'IMPORT_17': 'content/common/pepper_messages.h', 'IMPORT_18': 'content/common/plugin_messages.h', 'IMPORT_19': 'content/common/speech_recognition_messages.h', 'IMPORT_20': 'content/common/text_input_client_messages.h', 'IMPORT_21': 'content/common/utility_messages.h', 'IMPORT_22': 'content/common/view_messages.h', 'IMPORT_23': 'content/common/worker_messages.h'} | c | Procedural | 100.00% |
//
// JCHATAvatarView.h
// JChat
//
// Created by HuminiOS on 15/7/28.
// Copyright (c) 2015年 HXHG. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "JChatConstants.h"
#import "UIImageView+LBBlurredImage.h"
//#import "GPUImage/GPUImage.h"
@interface JCHATAvatarView : UIImageView {
// GPUImageView * imageView;
// GPUImagePicture *sourcePicture;
// GPUImageiOSBlurFilter *sepiaFilter;
// GPUImagePicture *picture;
}
@property(strong, nonatomic)UIImage *originImage;
@property(strong, nonatomic)UIImageView *centeraverter;
@property(strong, nonatomic)UILabel *nameLable;
- (void)updataNameLable;
- (void)setDefoultAvatar;
@end
| //
// JCHATAvatarView.h
// JChat
//
// Created by HuminiOS on 15/7/28.
// Copyright (c) 2015年 HXHG. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "JChatConstants.h"
#import "UIImageView+LBBlurredImage.h"
//#import "GPUImage/GPUImage.h"
@CLASS_0 VAR_0 : VAR_1 {
// GPUImageView * imageView;
// GPUImagePicture *sourcePicture;
// GPUImageiOSBlurFilter *sepiaFilter;
// GPUImagePicture *picture;
}
@FUNC_0(VAR_2, VAR_3)CLASS_2 *VAR_4;
@FUNC_0(VAR_2, VAR_3)CLASS_1 *VAR_5;
@FUNC_0(VAR_2, VAR_3)CLASS_3 *VAR_6;
- (void)updataNameLable;
- (void)setDefoultAvatar;
@CLASS_4
| 0.890623 | {'CLASS_0': 'interface', 'VAR_0': 'JCHATAvatarView', 'VAR_1': 'UIImageView', 'CLASS_1': 'UIImageView', 'FUNC_0': 'property', 'VAR_2': 'strong', 'VAR_3': 'nonatomic', 'CLASS_2': 'UIImage', 'VAR_4': 'originImage', 'VAR_5': 'centeraverter', 'CLASS_3': 'UILabel', 'VAR_6': 'nameLable', 'CLASS_4': 'end'} | c | Procedural | 40.00% |
/* Isolates the current thread : request the ability to work while all other
* threads are harmless. Only returns once all of them are harmless, with the
* current thread's bit in threads_harmless_mask cleared. Needs to be completed
* using thread_release().
*/
void thread_isolate()
{
unsigned long old;
_HA_ATOMIC_OR(&threads_harmless_mask, tid_bit);
__ha_barrier_atomic_store();
_HA_ATOMIC_OR(&threads_want_rdv_mask, tid_bit);
old = threads_harmless_mask;
while (1) {
if (unlikely((old & all_threads_mask) != all_threads_mask))
old = threads_harmless_mask;
else if (_HA_ATOMIC_CAS(&threads_harmless_mask, &old, old & ~tid_bit))
break;
ha_thread_relax();
}
} | /* Isolates the current thread : request the ability to work while all other
* threads are harmless. Only returns once all of them are harmless, with the
* current thread's bit in threads_harmless_mask cleared. Needs to be completed
* using thread_release().
*/
void FUNC_0()
{
unsigned long VAR_0;
FUNC_1(&VAR_1, VAR_2);
FUNC_2();
FUNC_1(&VAR_3, VAR_2);
VAR_0 = VAR_1;
while (1) {
if (FUNC_3((VAR_0 & VAR_4) != VAR_4))
VAR_0 = VAR_1;
else if (FUNC_4(&VAR_1, &VAR_0, VAR_0 & ~VAR_2))
break;
FUNC_5();
}
} | 0.87516 | {'FUNC_0': 'thread_isolate', 'VAR_0': 'old', 'FUNC_1': '_HA_ATOMIC_OR', 'VAR_1': 'threads_harmless_mask', 'VAR_2': 'tid_bit', 'FUNC_2': '__ha_barrier_atomic_store', 'VAR_3': 'threads_want_rdv_mask', 'FUNC_3': 'unlikely', 'VAR_4': 'all_threads_mask', 'FUNC_4': '_HA_ATOMIC_CAS', 'FUNC_5': 'ha_thread_relax'} | c | Procedural | 100.00% |
/**
* Add an entry to a shadow password file
*
* Arguments:
* - path Path to /etc/shadow
* - name User name to add
*
* TODO: Add remaining shadow fields, which we don't care about today.
*
* Returns 0 on success, or -1 otherwise.
*/
static int
add_shadow(const char *path, const char *name)
{
int result = -1;
FILE *f = NULL;
if ((f = fopen(path, "a+")) == NULL) {
errmsg("Failed to open %s: %m\n", path);
goto out;
}
for (;;) {
struct spwd *sp = fgetspent(f);
if (sp == NULL)
break;
if (strcmp(sp->sp_namp, name) == 0) {
result = 0;
goto out;
}
}
struct spwd sp = {
.sp_namp = (char*) name,
.sp_pwdp = INVALID_PASSWORD,
.sp_lstchg = (long) -1,
.sp_min = (long) -1,
.sp_max = (long) -1,
.sp_warn = (long) -1,
.sp_inact = (long) -1,
.sp_expire = (long) -1,
.sp_flag = (long) -1,
};
if (putspent(&sp, f) != 0) {
errmsg("Failed to add user \"%s\" to %s: %m\n", name, path);
goto out;
}
verbose("Added user \"%s\" to %s\n", name, path);
result = 0;
out:
if (f != NULL)
fclose(f);
return result;
} | /**
* Add an entry to a shadow password file
*
* Arguments:
* - path Path to /etc/shadow
* - name User name to add
*
* TODO: Add remaining shadow fields, which we don't care about today.
*
* Returns 0 on success, or -1 otherwise.
*/
static int
FUNC_0(const char *VAR_0, const char *VAR_1)
{
int VAR_2 = -1;
CLASS_0 *VAR_3 = NULL;
if ((VAR_3 = FUNC_1(VAR_0, "a+")) == NULL) {
FUNC_2("Failed to open %s: %m\n", VAR_0);
goto out;
}
for (;;) {
struct CLASS_1 *VAR_4 = FUNC_3(VAR_3);
if (VAR_4 == NULL)
break;
if (strcmp(VAR_4->VAR_5, VAR_1) == 0) {
VAR_2 = 0;
goto out;
}
}
struct CLASS_1 VAR_4 = {
.VAR_5 = (char*) VAR_1,
.sp_pwdp = VAR_6,
.VAR_7 = (long) -1,
.VAR_8 = (long) -1,
.VAR_9 = (long) -1,
.VAR_10 = (long) -1,
.VAR_11 = (long) -1,
.sp_expire = (long) -1,
.sp_flag = (long) -1,
};
if (FUNC_4(&VAR_4, VAR_3) != 0) {
FUNC_2("Failed to add user \"%s\" to %s: %m\n", VAR_1, VAR_0);
goto out;
}
FUNC_5("Added user \"%s\" to %s\n", VAR_1, VAR_0);
VAR_2 = 0;
out:
if (VAR_3 != NULL)
FUNC_6(VAR_3);
return VAR_2;
} | 0.800006 | {'FUNC_0': 'add_shadow', 'VAR_0': 'path', 'VAR_1': 'name', 'VAR_2': 'result', 'CLASS_0': 'FILE', 'VAR_3': 'f', 'FUNC_1': 'fopen', 'FUNC_2': 'errmsg', 'CLASS_1': 'spwd', 'VAR_4': 'sp', 'FUNC_3': 'fgetspent', 'VAR_5': 'sp_namp', 'VAR_6': 'INVALID_PASSWORD', 'VAR_7': 'sp_lstchg', 'VAR_8': 'sp_min', 'VAR_9': 'sp_max', 'VAR_10': 'sp_warn', 'VAR_11': 'sp_inact', 'FUNC_4': 'putspent', 'FUNC_5': 'verbose', 'FUNC_6': 'fclose'} | c | Procedural | 100.00% |
#pragma once
#include "settings.h"
#include <Arduino.h>
// Additional CSS style
static const char _style[] = "<style>button{background-color:#03A9F4;}body{width:60%;margin:auto;}input:invalid{border:1px solid red;}input[type=checkbox]{width:20px;}</style>";
class Web
{
#pragma region Private
private:
#pragma endregion Private
#pragma region Public
public:
// constructor
Web(void) { _alive = false; }
// destructor
~Web(void) { _alive = false; }
void begin();
void loop();
const char *getStyle(void) { return _style; }
char *getUser(void) { return _configUser; }
void setUser(const char *value)
{
strncpy(_configUser, value, 32);
_configUser[31] = '\0';
}
char *getPassword(void) { return _configPassword; }
void setPassword(const char *value)
{
strncpy(_configPassword, value, 32);
_configPassword[31] = '\0';
}
void resetWifiManager(void);
void _handleNotFound();
void _handleRoot();
void _handleSaveConfig();
void _handleResetConfig();
void _handleReboot();
void telnetPrintLn(bool enabled, String message);
void telnetPrint(bool enabled, String message);
#pragma endregion Public
#pragma region Protected
protected:
bool _alive;
char _configUser[32]; // these two might belong in WebClass
char _configPassword[32]; // these two might belong in WebClass
uint32_t _tftFileSize;
bool _authenticated(void);
void _handleTelnetClient();
void _setupHTTP();
void _setupMDNS();
void _setupTelnet();
#pragma endregion Protected
}; | #pragma once
#include "settings.h"
#include <Arduino.h>
// Additional CSS style
static const char _style[] = "<style>button{background-color:#03A9F4;}body{width:60%;margin:auto;}input:invalid{border:1px solid red;}input[type=checkbox]{width:20px;}</style>";
class Web
{
#pragma region Private
private:
#pragma endregion Private
#pragma region Public
public:
// constructor
Web(void) { _alive = false; }
// destructor
~Web(void) { _alive = false; }
void begin();
void loop();
const char *getStyle(void) { return _style; }
char *FUNC_0(void) { return _configUser; }
void setUser(const char *value)
{
strncpy(_configUser, value, 32);
_configUser[31] = '\0';
}
char *getPassword(void) { return _configPassword; }
void setPassword(const char *value)
{
strncpy(_configPassword, value, 32);
_configPassword[31] = '\0';
}
void resetWifiManager(void);
void _handleNotFound();
void _handleRoot();
void _handleSaveConfig();
void FUNC_1();
void _handleReboot();
void telnetPrintLn(bool enabled, String message);
void telnetPrint(bool enabled, String message);
#pragma endregion Public
#pragma region Protected
protected:
bool _alive;
char _configUser[32]; // these two might belong in WebClass
char _configPassword[32]; // these two might belong in WebClass
uint32_t _tftFileSize;
bool _authenticated(void);
void _handleTelnetClient();
void _setupHTTP();
void _setupMDNS();
void _setupTelnet();
#pragma endregion Protected
}; | 0.188602 | {'FUNC_0': 'getUser', 'FUNC_1': '_handleResetConfig'} | c | Texto | 7.84% |
// This file was generated by LevelHelper
// http://www.levelhelper.org
//
// LevelHelperLoader.h
// Created by <NAME>
// Copyright 2011 <NAME>. All rights reserved.
//
////////////////////////////////////////////////////////////////////////////////
//
// 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:
// 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.
// Altered source versions must be plainly marked as such, and must not be
// misrepresented as being the original software.
// This notice may not be removed or altered from any source distribution.
// By "software" the author refers to this code file and not the application
// that was used to generate this file.
//
////////////////////////////////////////////////////////////////////////////////
#import "lhConfig.h"
#ifdef LH_USE_BOX2D
#import <Foundation/Foundation.h>
#import "cocos2d.h"
#include "Box2D.h"
@class LHSprite;
@class LevelHelperLoader;
enum LH_JOINT_TYPE
{
LH_DISTANCE_JOINT = 0,
LH_REVOLUTE_JOINT,
LH_PRISMATIC_JOINT,
LH_PULLEY_JOINT,
LH_GEAR_JOINT,
LH_WHEEL_JOINT,
LH_WELD_JOINT,
LH_ROPE_JOINT,
LH_FRICTION_JOINT,
LH_UNKNOWN_TYPE
};
@interface LHJoint : CCNode
{
b2Joint* joint; //week ptr
b2World* boxWorld;
NSString* uniqueName;
int tag;
LH_JOINT_TYPE type;
__unsafe_unretained NSObject* parentLoader;
bool shouldDestroyJointOnDealloc;
bool rope_showRepresentation;
NSString* rope_textureName;
int rope_z;
bool rope_wasCut;
int rope_numPoints;
NSMutableArray *rope_points;
NSMutableArray *rope_sticks;
NSMutableArray *rope_sprites;
CCSpriteBatchNode* rope_spriteSheet;
int rope_segmentFactor;
float antiSagHack;
}
@property (readonly) NSString* uniqueName;
@property enum LH_JOINT_TYPE type;
@property (readwrite) bool shouldDestroyJointOnDealloc;
////////////////////////////////////////////////////////////////////////////////
+(id) jointWithDictionary:(NSDictionary*)dictionary
world:(b2World*)box2d
loader:(NSObject*)pLoader;
#ifdef B2_ROPE_JOINT_H
+(id) ropeJointWithDictionary:(NSDictionary*)dictionary
joint:(b2RopeJoint*)ropeJt
loader:(NSObject*)pLoader;
#endif
////////////////////////////////////////////////////////////////////////////////
-(b2Joint*)joint;
-(bool) removeJointFromWorld;
-(LHSprite*) spriteA;
-(LHSprite*) spriteB;
//remove itself from the world - make sure you dont retain this object
//if the box2d world is locked it will mark the joint for removal
//you need to call [loader removeMarkedJoints]; at the end of your tick method
-(void)removeSelf;
//helper methods - to get properties from the box2d joint
+(bool) isLHJoint:(id)object;
+(LHJoint*) jointFromBox2dJoint:(b2Joint*)jt;
+(int) tagFromBox2dJoint:(b2Joint*)joint;
+(NSString*) uniqueNameFromBox2dJoint:(b2Joint*)joint;
//this method will return LH_UNKNOWN_TYPE if fail
+(enum LH_JOINT_TYPE) typeFromBox2dJoint:(b2Joint*)joint;
#ifdef B2_ROPE_JOINT_H
-(void)resetRopeJoint;
-(bool)ropeWasCut;
-(bool)cutRopeJointsIntesectingWithLineFromPointA:(CGPoint)a
toPointB:(CGPoint)b;
#endif
@end
#endif
| // This file was generated by LevelHelper
// http://www.levelhelper.org
//
// LevelHelperLoader.h
// Created by <NAME>
// Copyright 2011 <NAME>. All rights reserved.
//
////////////////////////////////////////////////////////////////////////////////
//
// 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:
// 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.
// Altered source versions must be plainly marked as such, and must not be
// misrepresented as being the original software.
// This notice may not be removed or altered from any source distribution.
// By "software" the author refers to this code file and not the application
// that was used to generate this file.
//
////////////////////////////////////////////////////////////////////////////////
#import "lhConfig.h"
#ifdef VAR_0
#import <Foundation/Foundation.h>
#import "cocos2d.h"
#include "IMPORT_0"
@CLASS_0 VAR_1;
@CLASS_0 LevelHelperLoader;
enum CLASS_2
{
LH_DISTANCE_JOINT = 0,
VAR_2,
VAR_3,
LH_PULLEY_JOINT,
VAR_4,
VAR_5,
VAR_6,
VAR_7,
VAR_8,
VAR_9
};
@CLASS_3 VAR_10 : VAR_11
{
b2Joint* VAR_12; //week ptr
CLASS_5* VAR_13;
CLASS_6* VAR_15;
int VAR_16;
CLASS_2 VAR_17;
CLASS_7 VAR_18* VAR_19;
bool shouldDestroyJointOnDealloc;
bool VAR_20;
CLASS_6* rope_textureName;
int VAR_21;
bool VAR_22;
int VAR_23;
CLASS_9 *VAR_24;
CLASS_9 *VAR_25;
CLASS_9 *VAR_26;
CLASS_10* VAR_27;
int VAR_28;
float VAR_29;
}
@VAR_30 (ID_0) VAR_14* VAR_15;
@CLASS_11 VAR_31 CLASS_2 VAR_17;
@VAR_30 (ID_1) VAR_32 shouldDestroyJointOnDealloc;
////////////////////////////////////////////////////////////////////////////////
+(ID_2) VAR_34:(VAR_35*)VAR_36
world:(CLASS_5*)VAR_37
loader:(CLASS_8*)pLoader;
#ifdef VAR_38
+(ID_2) VAR_39:(VAR_35*)VAR_36
joint:(CLASS_12*)VAR_40
loader:(CLASS_8*)pLoader;
#endif
////////////////////////////////////////////////////////////////////////////////
-(b2Joint*)VAR_12;
-(bool) VAR_41;
-(CLASS_1*) VAR_42;
-(CLASS_1*) VAR_43;
//remove itself from the world - make sure you dont retain this object
//if the box2d world is locked it will mark the joint for removal
//you need to call [loader removeMarkedJoints]; at the end of your tick method
-(void)VAR_44;
//helper methods - to get properties from the box2d joint
+(bool) isLHJoint:(VAR_33)VAR_45;
+(CLASS_4*) VAR_46:(b2Joint*)jt;
+(int) VAR_47:(b2Joint*)VAR_12;
+(CLASS_6*) VAR_48:(b2Joint*)VAR_12;
//this method will return LH_UNKNOWN_TYPE if fail
+(enum CLASS_2) VAR_49:(b2Joint*)VAR_12;
#ifdef VAR_38
-(void)VAR_50;
-(bool)VAR_51;
-(bool)VAR_52:(VAR_53)CLASS_13
VAR_54:(VAR_53)VAR_55;
#endif
@CLASS_14
#endif
| 0.842738 | {'VAR_0': 'LH_USE_BOX2D', 'IMPORT_0': 'Box2D.h', 'CLASS_0': 'class', 'VAR_1': 'LHSprite', 'CLASS_1': 'LHSprite', 'CLASS_2': 'LH_JOINT_TYPE', 'VAR_2': 'LH_REVOLUTE_JOINT', 'VAR_3': 'LH_PRISMATIC_JOINT', 'VAR_4': 'LH_GEAR_JOINT', 'VAR_5': 'LH_WHEEL_JOINT', 'VAR_6': 'LH_WELD_JOINT', 'VAR_7': 'LH_ROPE_JOINT', 'VAR_8': 'LH_FRICTION_JOINT', 'VAR_9': 'LH_UNKNOWN_TYPE', 'CLASS_3': 'interface', 'VAR_10': 'LHJoint', 'CLASS_4': 'LHJoint', 'VAR_11': 'CCNode', 'VAR_12': 'joint', 'CLASS_5': 'b2World', 'VAR_13': 'boxWorld', 'CLASS_6': 'NSString', 'VAR_14': 'NSString', 'VAR_15': 'uniqueName', 'VAR_16': 'tag', 'VAR_17': 'type', 'CLASS_7': '__unsafe_unretained', 'VAR_18': 'NSObject', 'CLASS_8': 'NSObject', 'VAR_19': 'parentLoader', 'VAR_20': 'rope_showRepresentation', 'VAR_21': 'rope_z', 'VAR_22': 'rope_wasCut', 'VAR_23': 'rope_numPoints', 'CLASS_9': 'NSMutableArray', 'VAR_24': 'rope_points', 'VAR_25': 'rope_sticks', 'VAR_26': 'rope_sprites', 'CLASS_10': 'CCSpriteBatchNode', 'VAR_27': 'rope_spriteSheet', 'VAR_28': 'rope_segmentFactor', 'VAR_29': 'antiSagHack', 'VAR_30': 'property', 'CLASS_11': 'property', 'ID_0': 'readonly', 'VAR_31': 'enum', 'ID_1': 'readwrite', 'VAR_32': 'bool', 'ID_2': 'id', 'VAR_33': 'id', 'VAR_34': 'jointWithDictionary', 'VAR_35': 'NSDictionary', 'VAR_36': 'dictionary', 'VAR_37': 'box2d', 'VAR_38': 'B2_ROPE_JOINT_H', 'VAR_39': 'ropeJointWithDictionary', 'CLASS_12': 'b2RopeJoint', 'VAR_40': 'ropeJt', 'VAR_41': 'removeJointFromWorld', 'VAR_42': 'spriteA', 'VAR_43': 'spriteB', 'VAR_44': 'removeSelf', 'VAR_45': 'object', 'VAR_46': 'jointFromBox2dJoint', 'VAR_47': 'tagFromBox2dJoint', 'VAR_48': 'uniqueNameFromBox2dJoint', 'VAR_49': 'typeFromBox2dJoint', 'VAR_50': 'resetRopeJoint', 'VAR_51': 'ropeWasCut', 'VAR_52': 'cutRopeJointsIntesectingWithLineFromPointA', 'VAR_53': 'CGPoint', 'CLASS_13': 'a', 'VAR_54': 'toPointB', 'VAR_55': 'b', 'CLASS_14': 'end'} | c | OOP | 45.87% |
// Reset All Player Models to on/off for Select Screen.
static void reset_playable_list(char which)
{
int i;
for(i = 0; i < models_cached; i++)
{
if(!which || (model_cache[i].model && model_cache[i].model->type == TYPE_PLAYER))
{
model_cache[i].selectable = which;
}
}
} | // Reset All Player Models to on/off for Select Screen.
static void reset_playable_list(char VAR_0)
{
int i;
for(i = 0; i < models_cached; i++)
{
if(!VAR_0 || (model_cache[i].model && model_cache[i].model->type == TYPE_PLAYER))
{
model_cache[i].selectable = VAR_0;
}
}
} | 0.059161 | {'VAR_0': 'which'} | c | Procedural | 100.00% |
/* macro_in_piu_righe.c */
#include <unistd.h>
#include <stdlib.h> /* serve per la funzione rand */
#include <stdio.h>
/* NB: il corpo della macro finirebbe alla fine della riga,
per farla continuare alla riga successiva devo mettere
un backslash \ come ultimo carattere della riga.
L'ultima riga percio' non necessita del backslash in fondo.
*/
#define SALUTAaCASO() srandom( time(NULL) ); \
if( random()%300 < 150 ) \
printf( "ciao\n" ); \
else \
/* notare che sotto non c'e' il ; */ \
/* e non c'e' il \ in fondo */ \
printf( "la vacca ti ha fatto \n" )
int main(void) {
printf( "inizio\n" );
SALUTAaCASO( );
printf( "fine\n" );
return(0);
}
| /* macro_in_piu_righe.c */
#include <unistd.h>
#include <IMPORT_0> /* serve per la funzione rand */
#include <IMPORT_1>
/* NB: il corpo della macro finirebbe alla fine della riga,
per farla continuare alla riga successiva devo mettere
un backslash \ come ultimo carattere della riga.
L'ultima riga percio' non necessita del backslash in fondo.
*/
#define FUNC_0() srandom( time(NULL) ); \
if( random()%300 < 150 ) \
printf( "ciao\n" ); \
else \
/* notare che sotto non c'e' il ; */ \
/* e non c'e' il \ in fondo */ \
printf( "la vacca ti ha fatto \n" )
int FUNC_1(void) {
printf( "inizio\n" );
FUNC_0( );
printf( "fine\n" );
return(0);
}
| 0.607341 | {'IMPORT_0': 'stdlib.h', 'IMPORT_1': 'stdio.h', 'FUNC_0': 'SALUTAaCASO', 'FUNC_1': 'main'} | c | Procedural | 100.00% |
/*++
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License.
Module Name:
mlas_float16.h
Abstract:
Utilities for half precision floating type conversions. Used internally
by MLAS on platforms without half precision support. Provided here as
convenience for tests or other client libraries/apps.
--*/
#pragma once
#include <cstddef>
#include <cstdint>
#include <cstdlib>
using _mlas_fp16_ = uint16_t;
union fp32_bits {
uint32_t u;
float f;
};
#if defined(_MSC_VER) && !defined(__clang__)
#pragma warning(push)
/*PreFast told us to convert them to constexpr but the compiler says we can't.*/
#pragma warning(disable : 26497)
/*Added whole bunch of casts, still can't get rid of these overflow warnings.*/
#pragma warning(disable : 26450)
#pragma warning(disable : 26451)
#endif
inline
_mlas_fp16_
MLAS_Float2Half(float ff)
{
constexpr fp32_bits f32infty = {255 << 23};
constexpr fp32_bits f16max = {(127 + 16) << 23};
constexpr fp32_bits denorm_magic = {((127 - 15) + (23 - 10) + 1) << 23};
constexpr uint32_t sign_mask = 0x80000000u;
auto val = static_cast<uint16_t>(0x0u);
fp32_bits f;
f.f = ff;
uint32_t sign = f.u & sign_mask;
f.u ^= sign;
if (f.u >= f16max.u) {
// Inf or NaN (all exponent bits set)
val = (f.u > f32infty.u) ? 0x7e00 : 0x7c00; // NaN->qNaN and Inf->Inf
} else {
if (f.u < (113 << 23)) {
// Subnormal or zero
// use a magic value to align our 10 mantissa bits at the bottom of
// the float. as long as FP addition is round-to-nearest-even this
// just works.
f.f += denorm_magic.f;
// and one integer subtract of the bias later, we have our final float!
val = static_cast<uint16_t>(f.u - denorm_magic.u);
} else {
uint32_t mant_odd = (f.u >> 13) & 1; // resulting mantissa is odd
// update exponent, rounding bias part 1
f.u += ((uint32_t)(15 - 127) << 23) + 0xfff;
// rounding bias part 2
f.u += mant_odd;
// take the bits!
val = static_cast<uint16_t>(f.u >> 13);
}
}
val |= static_cast<uint16_t>(sign >> 16);
return val;
}
inline
float
MLAS_Half2Float(_mlas_fp16_ val)
{
constexpr fp32_bits magic = {113 << 23};
constexpr uint32_t shifted_exp = 0x7c00 << 13; // exponent mask after shift
fp32_bits o;
o.u = (val & 0x7fff) << 13; // exponent/mantissa bits
uint32_t exp = shifted_exp & o.u; // just the exponent
o.u += (127 - 15) << 23; // exponent adjust
// handle exponent special cases
if (exp == shifted_exp) { // Inf/NaN?
o.u += (128 - 16) << 23; // extra exp adjust
} else if (exp == 0) { // Zero/Denormal?
o.u += 1 << 23; // extra exp adjust
o.f -= magic.f; // renormalize
}
o.u |= (val & 0x8000) << 16; // sign bit
return o.f;
}
#if defined(_MSC_VER) && !defined(__clang__)
#pragma warning(pop)
#endif | /*++
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License.
Module Name:
mlas_float16.h
Abstract:
Utilities for half precision floating type conversions. Used internally
by MLAS on platforms without half precision support. Provided here as
convenience for tests or other client libraries/apps.
--*/
#pragma once
#include <cstddef>
#include <cstdint>
#include <cstdlib>
using _mlas_fp16_ = uint16_t;
union fp32_bits {
uint32_t u;
float f;
};
#if defined(_MSC_VER) && !defined(VAR_0)
#pragma warning(push)
/*PreFast told us to convert them to constexpr but the compiler says we can't.*/
#pragma warning(disable : 26497)
/*Added whole bunch of casts, still can't get rid of these overflow warnings.*/
#pragma warning(disable : 26450)
#pragma warning(disable : 26451)
#endif
inline
_mlas_fp16_
MLAS_Float2Half(float ff)
{
constexpr fp32_bits f32infty = {255 << 23};
constexpr fp32_bits f16max = {(127 + 16) << 23};
constexpr fp32_bits denorm_magic = {((127 - 15) + (23 - 10) + 1) << 23};
constexpr uint32_t sign_mask = 0x80000000u;
auto val = static_cast<uint16_t>(0x0u);
fp32_bits f;
f.f = ff;
uint32_t sign = f.u & sign_mask;
f.u ^= sign;
if (f.u >= f16max.u) {
// Inf or NaN (all exponent bits set)
val = (f.u > f32infty.u) ? 0x7e00 : 0x7c00; // NaN->qNaN and Inf->Inf
} else {
if (f.u < (113 << 23)) {
// Subnormal or zero
// use a magic value to align our 10 mantissa bits at the bottom of
// the float. as long as FP addition is round-to-nearest-even this
// just works.
f.f += denorm_magic.f;
// and one integer subtract of the bias later, we have our final float!
val = static_cast<uint16_t>(f.u - denorm_magic.u);
} else {
uint32_t mant_odd = (f.u >> 13) & 1; // resulting mantissa is odd
// update exponent, rounding bias part 1
f.u += ((uint32_t)(15 - 127) << 23) + 0xfff;
// rounding bias part 2
f.u += mant_odd;
// take the bits!
val = static_cast<uint16_t>(f.u >> 13);
}
}
val |= static_cast<uint16_t>(sign >> 16);
return val;
}
inline
float
MLAS_Half2Float(_mlas_fp16_ val)
{
constexpr fp32_bits magic = {113 << 23};
constexpr uint32_t shifted_exp = 0x7c00 << 13; // exponent mask after shift
fp32_bits o;
o.u = (val & 0x7fff) << 13; // exponent/mantissa bits
uint32_t exp = shifted_exp & o.u; // just the exponent
o.u += (127 - 15) << 23; // exponent adjust
// handle exponent special cases
if (exp == shifted_exp) { // Inf/NaN?
o.u += (128 - 16) << 23; // extra exp adjust
} else if (exp == 0) { // Zero/Denormal?
o.u += 1 << 23; // extra exp adjust
o.f -= magic.f; // renormalize
}
o.u |= (val & 0x8000) << 16; // sign bit
return o.f;
}
#if defined(_MSC_VER) && !defined(VAR_0)
#pragma warning(pop)
#endif | 0.216974 | {'VAR_0': '__clang__'} | c | Procedural | 13.71% |
//thread for worker
//it is not sychronized and numbers of scves are mixed :D
void * scv(void * tmp) {
long n = (long) tmp + 1;
int minerals_count = 0;
int m = 0;
while (sum != mineral_blocks * 500) {
if (pthread_mutex_trylock( & mineral_block_mutex[m]) == 0) {
if (minerals_p[m] > 0) {
printf("SCV %ld is mining from mineral block %d\n", n, m + 1);
sleep(3);
if (minerals_p[m] < 8) {
minerals_count = 4;
minerals_p[m] -= 4;
} else {
minerals_p[m] -= 8;
minerals_count = 8;
}
pthread_mutex_unlock( & mineral_block_mutex[m]);
pthread_mutex_lock( & command_worker_mutex);
printf("SCV %ld is transporting minerals\n", n);
sleep(2);
sum += minerals_count;
sum_of_minerals += minerals_count;
minerals_count = 0;
printf("SCV %ld delivered minerals to the Command center\n", n);
pthread_mutex_unlock( & command_worker_mutex);
}
}
if (m == (mineral_blocks - 1)) {
m = 0;
} else {
m++;
}
}
return NULL;
} | //thread for worker
//it is not sychronized and numbers of scves are mixed :D
void * scv(void * VAR_0) {
long VAR_1 = (long) VAR_0 + 1;
int minerals_count = 0;
int VAR_2 = 0;
while (VAR_3 != mineral_blocks * 500) {
if (pthread_mutex_trylock( & mineral_block_mutex[VAR_2]) == 0) {
if (VAR_4[VAR_2] > 0) {
printf("SCV %ld is mining from mineral block %d\n", VAR_1, VAR_2 + 1);
sleep(3);
if (VAR_4[VAR_2] < 8) {
minerals_count = 4;
VAR_4[VAR_2] -= 4;
} else {
VAR_4[VAR_2] -= 8;
minerals_count = 8;
}
FUNC_0( & mineral_block_mutex[VAR_2]);
FUNC_1( & VAR_5);
printf("SCV %ld is transporting minerals\n", VAR_1);
sleep(2);
VAR_3 += minerals_count;
VAR_6 += minerals_count;
minerals_count = 0;
printf("SCV %ld delivered minerals to the Command center\n", VAR_1);
FUNC_0( & VAR_5);
}
}
if (VAR_2 == (mineral_blocks - 1)) {
VAR_2 = 0;
} else {
VAR_2++;
}
}
return NULL;
} | 0.41273 | {'VAR_0': 'tmp', 'VAR_1': 'n', 'VAR_2': 'm', 'VAR_3': 'sum', 'VAR_4': 'minerals_p', 'FUNC_0': 'pthread_mutex_unlock', 'FUNC_1': 'pthread_mutex_lock', 'VAR_5': 'command_worker_mutex', 'VAR_6': 'sum_of_minerals'} | c | Procedural | 100.00% |
/**
Support for Intel Camera Imaging ISP subsystem.
Copyright (c) 2010 - 2015, Intel Corporation.
This program is free software; you can redistribute it and/or modify it
under the terms and conditions of the GNU General Public License,
version 2, as published by the Free Software Foundation.
This program is distributed in the hope 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 __SH_CSS_DVS_INFO_H__
#define __SH_CSS_DVS_INFO_H__
#include <math_support.h>
/* horizontal 64x64 blocks round up to DVS_BLOCKDIM_X, make even */
#define DVS_NUM_BLOCKS_X(X) (CEIL_MUL(CEIL_DIV((X), DVS_BLOCKDIM_X), 2))
/* vertical 64x64 blocks round up to DVS_BLOCKDIM_Y */
#define DVS_NUM_BLOCKS_Y(X) (CEIL_DIV((X), DVS_BLOCKDIM_Y_LUMA))
/* Bilinear interpolation (HRT_GDC_BLI_MODE) is the supported method currently.
* Bicubic interpolation (HRT_GDC_BCI_MODE) is not supported yet */
#define DVS_GDC_INTERP_METHOD HRT_GDC_BLI_MODE
#define DVS_INPUT_BYTES_PER_PIXEL (1)
#define DVS_NUM_BLOCKS_X_CHROMA(X) (CEIL_DIV((X), DVS_BLOCKDIM_X))
#define DVS_NUM_BLOCKS_Y_CHROMA(X) (CEIL_DIV((X), DVS_BLOCKDIM_Y_CHROMA))
#endif /* __SH_CSS_DVS_INFO_H__ */
| /**
Support for Intel Camera Imaging ISP subsystem.
Copyright (c) 2010 - 2015, Intel Corporation.
This program is free software; you can redistribute it and/or modify it
under the terms and conditions of the GNU General Public License,
version 2, as published by the Free Software Foundation.
This program is distributed in the hope 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 VAR_0
#define VAR_0
#include <math_support.h>
/* horizontal 64x64 blocks round up to DVS_BLOCKDIM_X, make even */
#define FUNC_0(VAR_1) (CEIL_MUL(CEIL_DIV((X), DVS_BLOCKDIM_X), 2))
/* vertical 64x64 blocks round up to DVS_BLOCKDIM_Y */
#define FUNC_1(VAR_1) (CEIL_DIV((X), DVS_BLOCKDIM_Y_LUMA))
/* Bilinear interpolation (HRT_GDC_BLI_MODE) is the supported method currently.
* Bicubic interpolation (HRT_GDC_BCI_MODE) is not supported yet */
#define DVS_GDC_INTERP_METHOD HRT_GDC_BLI_MODE
#define DVS_INPUT_BYTES_PER_PIXEL (1)
#define FUNC_2(VAR_1) (CEIL_DIV((X), DVS_BLOCKDIM_X))
#define FUNC_3(VAR_1) (CEIL_DIV((X), DVS_BLOCKDIM_Y_CHROMA))
#endif /* __SH_CSS_DVS_INFO_H__ */
| 0.618576 | {'VAR_0': '__SH_CSS_DVS_INFO_H__', 'FUNC_0': 'DVS_NUM_BLOCKS_X', 'VAR_1': 'X', 'FUNC_1': 'DVS_NUM_BLOCKS_Y', 'FUNC_2': 'DVS_NUM_BLOCKS_X_CHROMA', 'FUNC_3': 'DVS_NUM_BLOCKS_Y_CHROMA'} | c | Procedural | 100.00% |
#include "slalib.h"
#include "slamac.h"
void slaAoppat ( double date, double aoprms[14] )
/*
** - - - - - - - - - -
** s l a A o p p a t
** - - - - - - - - - -
**
** Recompute the sidereal time in the apparent to observed place
** star-independent parameter block.
**
** Given:
** date double UTC date/time (Modified Julian Date, JD-2400000.5)
** (see slaAoppa source for comments on leap seconds)
** aoprms double[14] star-independent apparent-to-observed parameters
**
** (0-11) not required
** (12) longitude + eqn of equinoxes + sidereal dut
** (13) not required
**
** Returned:
** aoprms double[14] star-independent apparent-to-observed parameters:
**
** (0-12) not changed
** (13) local apparent sidereal time (radians)
**
** For more information, see slaAoppa.
**
** Called: slaGmst
**
** Last revision: 31 October 1993
**
** Copyright P.T.Wallace. All rights reserved.
*/
{
aoprms[13] = slaGmst ( date ) + aoprms[12];
}
| #include "IMPORT_0"
#include "IMPORT_1"
void FUNC_0 ( double VAR_0, double VAR_1[14] )
/*
** - - - - - - - - - -
** s l a A o p p a t
** - - - - - - - - - -
**
** Recompute the sidereal time in the apparent to observed place
** star-independent parameter block.
**
** Given:
** date double UTC date/time (Modified Julian Date, JD-2400000.5)
** (see slaAoppa source for comments on leap seconds)
** aoprms double[14] star-independent apparent-to-observed parameters
**
** (0-11) not required
** (12) longitude + eqn of equinoxes + sidereal dut
** (13) not required
**
** Returned:
** aoprms double[14] star-independent apparent-to-observed parameters:
**
** (0-12) not changed
** (13) local apparent sidereal time (radians)
**
** For more information, see slaAoppa.
**
** Called: slaGmst
**
** Last revision: 31 October 1993
**
** Copyright P.T.Wallace. All rights reserved.
*/
{
VAR_1[13] = FUNC_1 ( VAR_0 ) + VAR_1[12];
}
| 0.844591 | {'IMPORT_0': 'slalib.h', 'IMPORT_1': 'slamac.h', 'FUNC_0': 'slaAoppat', 'VAR_0': 'date', 'VAR_1': 'aoprms', 'FUNC_1': 'slaGmst'} | c | Procedural | 94.44% |
/*
* author: <NAME>
*/
#include <stdio.h>
#include "../store/directory.h"
#include "../store/file_stream.h"
void
bit_test_main()
{
int bits = 0000;
bits |= 0x2;
printf("%s\n", "HELLO");
printf("%d\n", bits);
}
void
bit_test_main2()
{
int i = 1;
short int li = 1;
printf("sizeof:int: %d\n", sizeof(i));
printf("sizeof:int: %d\n", sizeof(li));
}
void
bit_test_main3()
{
struct _directory* dir = directory_initial("/root/sdoc", "/root/index", 0);
struct _file_stream* in = directory_open_file(dir, "segments", ".x", "r");
char* name = fs_read_string(in);
printf("name: %s\n", name);
}
void
bit_test_main4()
{
struct _directory* dir = directory_initial("/root/sdoc", "/root/index", 0);
struct _file_stream* in = directory_open_file(dir, "segments", ".x", "w");
char* n = "hello";
fs_write_string(in, n);
}
| /*
* author: <NAME>
*/
#include <IMPORT_0>
#include "../store/directory.h"
#include "../store/file_stream.h"
void
FUNC_0()
{
int VAR_0 = 0000;
VAR_0 |= 0x2;
FUNC_1("%s\n", "HELLO");
FUNC_1("%d\n", VAR_0);
}
void
bit_test_main2()
{
int VAR_1 = 1;
short int VAR_2 = 1;
FUNC_1("sizeof:int: %d\n", sizeof(VAR_1));
FUNC_1("sizeof:int: %d\n", sizeof(VAR_2));
}
void
FUNC_2()
{
struct CLASS_0* dir = FUNC_3("/root/sdoc", "/root/index", 0);
struct _file_stream* in = directory_open_file(dir, "segments", ".x", "r");
char* name = fs_read_string(in);
FUNC_1("name: %s\n", name);
}
void
bit_test_main4()
{
struct CLASS_0* dir = FUNC_3("/root/sdoc", "/root/index", 0);
struct _file_stream* in = directory_open_file(dir, "segments", ".x", "w");
char* VAR_3 = "hello";
FUNC_4(in, VAR_3);
}
| 0.531754 | {'IMPORT_0': 'stdio.h', 'FUNC_0': 'bit_test_main', 'VAR_0': 'bits', 'FUNC_1': 'printf', 'VAR_1': 'i', 'VAR_2': 'li', 'FUNC_2': 'bit_test_main3', 'CLASS_0': '_directory', 'FUNC_3': 'directory_initial', 'VAR_3': 'n', 'FUNC_4': 'fs_write_string'} | c | Procedural | 100.00% |
#include <stdio.h>
int main(void) {
int map_size;
int map[20][20];
int road_num;
int a,b,c,d;
int start,goal,money,cost;
int i,j,k;
scanf("%d",&map_size);
for(a=0;a<map_size;a++) {
for(b=0;b<map_size;b++) {
map[a][b]=0x20000000;
}
map[a][a]=0;
}
scanf("%d",&road_num);
for(i=0;i<road_num;i++) {
scanf("%d,%d,%d,%d",&a,&b,&c,&d);
a--;b--;
map[a][b]=c;
map[b][a]=d;
}
scanf("%d,%d,%d,%d",&start,&goal,&money,&cost);
start--;goal--;
for(k=0;k<map_size;k++) {
for(i=0;i<map_size;i++) {
for(j=0;j<map_size;j++) {
if(map[i][k]+map[k][j]<map[i][j]) {
map[i][j]=map[i][k]+map[k][j];
}
}
}
}
printf("%d\n",money-cost-map[start][goal]-map[goal][start]);
return 0;
} | #include <IMPORT_0>
int main(void) {
int VAR_0;
int VAR_1[20][20];
int VAR_2;
int VAR_3,VAR_4,c,VAR_5;
int VAR_6,VAR_7,money,VAR_8;
int VAR_9,VAR_10,VAR_11;
FUNC_0("%d",&VAR_0);
for(VAR_3=0;VAR_3<VAR_0;VAR_3++) {
for(VAR_4=0;VAR_4<VAR_0;VAR_4++) {
VAR_1[VAR_3][VAR_4]=0x20000000;
}
VAR_1[VAR_3][VAR_3]=0;
}
FUNC_0("%d",&VAR_2);
for(VAR_9=0;VAR_9<VAR_2;VAR_9++) {
FUNC_0("%d,%d,%d,%d",&VAR_3,&VAR_4,&c,&VAR_5);
VAR_3--;VAR_4--;
VAR_1[VAR_3][VAR_4]=c;
VAR_1[VAR_4][VAR_3]=VAR_5;
}
FUNC_0("%d,%d,%d,%d",&VAR_6,&VAR_7,&money,&VAR_8);
VAR_6--;VAR_7--;
for(VAR_11=0;VAR_11<VAR_0;VAR_11++) {
for(VAR_9=0;VAR_9<VAR_0;VAR_9++) {
for(VAR_10=0;VAR_10<VAR_0;VAR_10++) {
if(VAR_1[VAR_9][VAR_11]+VAR_1[VAR_11][VAR_10]<VAR_1[VAR_9][VAR_10]) {
VAR_1[VAR_9][VAR_10]=VAR_1[VAR_9][VAR_11]+VAR_1[VAR_11][VAR_10];
}
}
}
}
FUNC_1("%d\n",money-VAR_8-VAR_1[VAR_6][VAR_7]-VAR_1[VAR_7][VAR_6]);
return 0;
} | 0.85436 | {'IMPORT_0': 'stdio.h', 'VAR_0': 'map_size', 'VAR_1': 'map', 'VAR_2': 'road_num', 'VAR_3': 'a', 'VAR_4': 'b', 'VAR_5': 'd', 'VAR_6': 'start', 'VAR_7': 'goal', 'VAR_8': 'cost', 'VAR_9': 'i', 'VAR_10': 'j', 'VAR_11': 'k', 'FUNC_0': 'scanf', 'FUNC_1': 'printf'} | c | Procedural | 100.00% |
/*
* Copyright (c) 2020 Bouffalolab.
*
* This file is part of
* *** Bouffalolab Software Dev Kit ***
* (see www.bouffalolab.com).
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of Bouffalo Lab nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**
* @file smp_null.c
* Security Manager Protocol stub
*/
/*
* Copyright (c) 2015-2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <errno.h>
#include <atomic.h>
#include <misc/util.h>
#include <bluetooth.h>
#include <conn.h>
#include <../include/bluetooth/buf.h>
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_CORE)
#define LOG_MODULE_NAME bt_smp
#include "log.h"
#include "hci_core.h"
#include "conn_internal.h"
#include "l2cap_internal.h"
#include "smp.h"
static struct bt_l2cap_le_chan bt_smp_pool[CONFIG_BT_MAX_CONN];
int bt_smp_sign_verify(struct bt_conn *conn, struct net_buf *buf)
{
return -ENOTSUP;
}
int bt_smp_sign(struct bt_conn *conn, struct net_buf *buf)
{
return -ENOTSUP;
}
static int bt_smp_recv(struct bt_l2cap_chan *chan, struct net_buf *buf)
{
struct bt_conn *conn = chan->conn;
struct bt_smp_pairing_fail *rsp;
struct bt_smp_hdr *hdr;
/* If a device does not support pairing then it shall respond with
* a Pairing Failed command with the reason set to "Pairing Not
* Supported" when any command is received.
* Core Specification Vol. 3, Part H, 3.3
*/
buf = bt_l2cap_create_pdu(NULL, 0);
/* NULL is not a possible return due to K_FOREVER */
hdr = net_buf_add(buf, sizeof(*hdr));
hdr->code = BT_SMP_CMD_PAIRING_FAIL;
rsp = net_buf_add(buf, sizeof(*rsp));
rsp->reason = BT_SMP_ERR_PAIRING_NOTSUPP;
bt_l2cap_send(conn, BT_L2CAP_CID_SMP, buf);
return 0;
}
static int bt_smp_accept(struct bt_conn *conn, struct bt_l2cap_chan **chan)
{
int i;
static struct bt_l2cap_chan_ops ops = {
.recv = bt_smp_recv,
};
BT_DBG("conn %p handle %u", conn, conn->handle);
for (i = 0; i < ARRAY_SIZE(bt_smp_pool); i++) {
struct bt_l2cap_le_chan *smp = &bt_smp_pool[i];
if (smp->chan.conn) {
continue;
}
smp->chan.ops = &ops;
*chan = &smp->chan;
return 0;
}
BT_ERR("No available SMP context for conn %p", conn);
return -ENOMEM;
}
BT_L2CAP_CHANNEL_DEFINE(smp_fixed_chan, BT_L2CAP_CID_SMP, bt_smp_accept);
int bt_smp_init(void)
{
return 0;
}
| /*
* Copyright (c) 2020 Bouffalolab.
*
* This file is part of
* *** Bouffalolab Software Dev Kit ***
* (see www.bouffalolab.com).
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of Bouffalo Lab nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**
* @file smp_null.c
* Security Manager Protocol stub
*/
/*
* Copyright (c) 2015-2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <errno.h>
#include <atomic.h>
#include <misc/util.h>
#include <bluetooth.h>
#include <conn.h>
#include <../include/bluetooth/buf.h>
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_CORE)
#define VAR_0 bt_smp
#include "log.h"
#include "hci_core.h"
#include "conn_internal.h"
#include "l2cap_internal.h"
#include "smp.h"
static struct bt_l2cap_le_chan bt_smp_pool[CONFIG_BT_MAX_CONN];
int bt_smp_sign_verify(struct bt_conn *conn, struct net_buf *buf)
{
return -ENOTSUP;
}
int bt_smp_sign(struct bt_conn *conn, struct net_buf *buf)
{
return -ENOTSUP;
}
static int bt_smp_recv(struct bt_l2cap_chan *chan, struct net_buf *buf)
{
struct bt_conn *conn = chan->conn;
struct bt_smp_pairing_fail *rsp;
struct bt_smp_hdr *hdr;
/* If a device does not support pairing then it shall respond with
* a Pairing Failed command with the reason set to "Pairing Not
* Supported" when any command is received.
* Core Specification Vol. 3, Part H, 3.3
*/
buf = bt_l2cap_create_pdu(NULL, 0);
/* NULL is not a possible return due to K_FOREVER */
hdr = net_buf_add(buf, sizeof(*hdr));
hdr->code = BT_SMP_CMD_PAIRING_FAIL;
rsp = net_buf_add(buf, sizeof(*rsp));
rsp->reason = BT_SMP_ERR_PAIRING_NOTSUPP;
bt_l2cap_send(conn, BT_L2CAP_CID_SMP, buf);
return 0;
}
static int bt_smp_accept(struct bt_conn *conn, struct bt_l2cap_chan **chan)
{
int i;
static struct bt_l2cap_chan_ops ops = {
.recv = bt_smp_recv,
};
BT_DBG("conn %p handle %u", conn, conn->handle);
for (i = 0; i < ARRAY_SIZE(bt_smp_pool); i++) {
struct bt_l2cap_le_chan *smp = &bt_smp_pool[i];
if (smp->chan.conn) {
continue;
}
smp->chan.ops = &ops;
*chan = &smp->chan;
return 0;
}
BT_ERR("No available SMP context for conn %p", conn);
return -ENOMEM;
}
BT_L2CAP_CHANNEL_DEFINE(smp_fixed_chan, BT_L2CAP_CID_SMP, bt_smp_accept);
int bt_smp_init(void)
{
return 0;
}
| 0.023158 | {'VAR_0': 'LOG_MODULE_NAME'} | c | Hibrido | 59.09% |
/********************************************************************************
** Form generated from reading UI file 'insertdialog.ui'
**
** Created by: Qt User Interface Compiler version 5.12.3
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_INSERTDIALOG_H
#define UI_INSERTDIALOG_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_InsertDialog
{
public:
QGridLayout *gridLayout_2;
QGridLayout *gridLayout;
QLabel *id_label;
QLabel *name_label;
QLineEdit *name_lineEdit;
QLineEdit *id_lineEdit;
QLabel *major_label;
QLabel *gender_label;
QComboBox *gender_comboBox;
QComboBox *major_comboBox;
QPushButton *cancel_pushButton;
QPushButton *ok_pushButton;
void setupUi(QWidget *InsertDialog)
{
if (InsertDialog->objectName().isEmpty())
InsertDialog->setObjectName(QString::fromUtf8("InsertDialog"));
InsertDialog->resize(346, 278);
gridLayout_2 = new QGridLayout(InsertDialog);
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
gridLayout = new QGridLayout();
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
id_label = new QLabel(InsertDialog);
id_label->setObjectName(QString::fromUtf8("id_label"));
gridLayout->addWidget(id_label, 3, 0, 1, 1);
name_label = new QLabel(InsertDialog);
name_label->setObjectName(QString::fromUtf8("name_label"));
gridLayout->addWidget(name_label, 4, 0, 1, 1);
name_lineEdit = new QLineEdit(InsertDialog);
name_lineEdit->setObjectName(QString::fromUtf8("name_lineEdit"));
gridLayout->addWidget(name_lineEdit, 4, 1, 1, 1);
id_lineEdit = new QLineEdit(InsertDialog);
id_lineEdit->setObjectName(QString::fromUtf8("id_lineEdit"));
gridLayout->addWidget(id_lineEdit, 3, 1, 1, 1);
major_label = new QLabel(InsertDialog);
major_label->setObjectName(QString::fromUtf8("major_label"));
gridLayout->addWidget(major_label, 9, 0, 1, 1);
gender_label = new QLabel(InsertDialog);
gender_label->setObjectName(QString::fromUtf8("gender_label"));
gridLayout->addWidget(gender_label, 8, 0, 1, 1);
gender_comboBox = new QComboBox(InsertDialog);
gender_comboBox->setObjectName(QString::fromUtf8("gender_comboBox"));
gridLayout->addWidget(gender_comboBox, 8, 1, 1, 1);
major_comboBox = new QComboBox(InsertDialog);
major_comboBox->setObjectName(QString::fromUtf8("major_comboBox"));
gridLayout->addWidget(major_comboBox, 9, 1, 1, 1);
gridLayout_2->addLayout(gridLayout, 0, 0, 1, 1);
cancel_pushButton = new QPushButton(InsertDialog);
cancel_pushButton->setObjectName(QString::fromUtf8("cancel_pushButton"));
gridLayout_2->addWidget(cancel_pushButton, 2, 0, 1, 1);
ok_pushButton = new QPushButton(InsertDialog);
ok_pushButton->setObjectName(QString::fromUtf8("ok_pushButton"));
gridLayout_2->addWidget(ok_pushButton, 1, 0, 1, 1);
retranslateUi(InsertDialog);
QMetaObject::connectSlotsByName(InsertDialog);
} // setupUi
void retranslateUi(QWidget *InsertDialog)
{
InsertDialog->setWindowTitle(QApplication::translate("InsertDialog", "Form", nullptr));
id_label->setText(QApplication::translate("InsertDialog", "ID", nullptr));
name_label->setText(QApplication::translate("InsertDialog", "Name", nullptr));
major_label->setText(QApplication::translate("InsertDialog", "Major", nullptr));
gender_label->setText(QApplication::translate("InsertDialog", "Gender", nullptr));
cancel_pushButton->setText(QApplication::translate("InsertDialog", "Cancel", nullptr));
ok_pushButton->setText(QApplication::translate("InsertDialog", "OK", nullptr));
} // retranslateUi
};
namespace Ui {
class InsertDialog: public Ui_InsertDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_INSERTDIALOG_H
| /********************************************************************************
** Form generated from reading UI file 'insertdialog.ui'
**
** Created by: Qt User Interface Compiler version 5.12.3
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef VAR_0
#define VAR_0
#include <QtCore/QVariant>
#include <IMPORT_0>
#include <IMPORT_1>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QPushButton>
#include <IMPORT_2>
QT_BEGIN_NAMESPACE
VAR_1 VAR_2
{
public:
QGridLayout *VAR_3;
QGridLayout *gridLayout;
CLASS_1 *VAR_4;
CLASS_1 *name_label;
CLASS_2 *VAR_5;
CLASS_2 *id_lineEdit;
CLASS_1 *major_label;
CLASS_1 *gender_label;
CLASS_3 *gender_comboBox;
CLASS_3 *VAR_6;
CLASS_4 *VAR_7;
CLASS_4 *VAR_8;
void setupUi(CLASS_5 *VAR_9)
{
if (VAR_9->objectName().isEmpty())
VAR_9->setObjectName(QString::FUNC_4("InsertDialog"));
VAR_9->resize(346, 278);
VAR_3 = VAR_10 QGridLayout(VAR_9);
VAR_3->setObjectName(QString::FUNC_4("gridLayout_2"));
gridLayout = VAR_10 QGridLayout();
gridLayout->setObjectName(QString::FUNC_4("gridLayout"));
VAR_4 = VAR_10 FUNC_0(VAR_9);
VAR_4->setObjectName(QString::FUNC_4("id_label"));
gridLayout->addWidget(VAR_4, 3, 0, 1, 1);
name_label = VAR_10 FUNC_0(VAR_9);
name_label->setObjectName(QString::FUNC_4("name_label"));
gridLayout->addWidget(name_label, 4, 0, 1, 1);
VAR_5 = VAR_10 FUNC_1(VAR_9);
VAR_5->setObjectName(QString::FUNC_4("name_lineEdit"));
gridLayout->addWidget(VAR_5, 4, 1, 1, 1);
id_lineEdit = VAR_10 FUNC_1(VAR_9);
id_lineEdit->setObjectName(QString::FUNC_4("id_lineEdit"));
gridLayout->addWidget(id_lineEdit, 3, 1, 1, 1);
major_label = VAR_10 FUNC_0(VAR_9);
major_label->setObjectName(QString::FUNC_4("major_label"));
gridLayout->addWidget(major_label, 9, 0, 1, 1);
gender_label = VAR_10 FUNC_0(VAR_9);
gender_label->setObjectName(QString::FUNC_4("gender_label"));
gridLayout->addWidget(gender_label, 8, 0, 1, 1);
gender_comboBox = VAR_10 FUNC_2(VAR_9);
gender_comboBox->setObjectName(QString::FUNC_4("gender_comboBox"));
gridLayout->addWidget(gender_comboBox, 8, 1, 1, 1);
VAR_6 = VAR_10 FUNC_2(VAR_9);
VAR_6->setObjectName(QString::FUNC_4("major_comboBox"));
gridLayout->addWidget(VAR_6, 9, 1, 1, 1);
VAR_3->addLayout(gridLayout, 0, 0, 1, 1);
VAR_7 = VAR_10 FUNC_3(VAR_9);
VAR_7->setObjectName(QString::FUNC_4("cancel_pushButton"));
VAR_3->addWidget(VAR_7, 2, 0, 1, 1);
VAR_8 = VAR_10 FUNC_3(VAR_9);
VAR_8->setObjectName(QString::FUNC_4("ok_pushButton"));
VAR_3->addWidget(VAR_8, 1, 0, 1, 1);
retranslateUi(VAR_9);
QMetaObject::FUNC_5(VAR_9);
} // setupUi
void retranslateUi(CLASS_5 *VAR_9)
{
VAR_9->FUNC_6(QApplication::translate("InsertDialog", "Form", nullptr));
VAR_4->setText(QApplication::translate("InsertDialog", "ID", nullptr));
name_label->setText(QApplication::translate("InsertDialog", "Name", nullptr));
major_label->setText(QApplication::translate("InsertDialog", "Major", nullptr));
gender_label->setText(QApplication::translate("InsertDialog", "Gender", nullptr));
VAR_7->setText(QApplication::translate("InsertDialog", "Cancel", nullptr));
VAR_8->setText(QApplication::translate("InsertDialog", "OK", nullptr));
} // retranslateUi
};
namespace Ui {
CLASS_0 VAR_9: public VAR_2 {};
} // namespace Ui
CLASS_6
#endif // UI_INSERTDIALOG_H
| 0.405631 | {'VAR_0': 'UI_INSERTDIALOG_H', 'IMPORT_0': 'QtWidgets/QApplication', 'IMPORT_1': 'QtWidgets/QComboBox', 'IMPORT_2': 'QtWidgets/QWidget', 'VAR_1': 'class', 'CLASS_0': 'class', 'VAR_2': 'Ui_InsertDialog', 'VAR_3': 'gridLayout_2', 'CLASS_1': 'QLabel', 'FUNC_0': 'QLabel', 'VAR_4': 'id_label', 'CLASS_2': 'QLineEdit', 'FUNC_1': 'QLineEdit', 'VAR_5': 'name_lineEdit', 'CLASS_3': 'QComboBox', 'FUNC_2': 'QComboBox', 'VAR_6': 'major_comboBox', 'CLASS_4': 'QPushButton', 'FUNC_3': 'QPushButton', 'VAR_7': 'cancel_pushButton', 'VAR_8': 'ok_pushButton', 'CLASS_5': 'QWidget', 'VAR_9': 'InsertDialog', 'FUNC_4': 'fromUtf8', 'VAR_10': 'new', 'FUNC_5': 'connectSlotsByName', 'FUNC_6': 'setWindowTitle', 'CLASS_6': 'QT_END_NAMESPACE'} | c | OOP | 97.25% |
//
// AppDelegate.h
// ConkyX
//
// Created by <NAME> on 08/07/2018.
// Copyright © 2018 <NAME>. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface AppDelegate : NSObject <NSApplicationDelegate>
@end
| //
// AppDelegate.h
// ConkyX
//
// Created by <NAME> on 08/07/2018.
// Copyright © 2018 <NAME>. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface AppDelegate : VAR_0 <VAR_1>
@VAR_2
| 0.741007 | {'VAR_0': 'NSObject', 'VAR_1': 'NSApplicationDelegate', 'VAR_2': 'end'} | c | Texto | 100.00% |
#ifndef RAYTRACER_WINDOW_H
#define RAYTRACER_WINDOW_H
#define GLEW_STATIC
#include <GLFW/glfw3.h>
#include "core/Raytracer.h"
class Window {
public:
/**
* @brief Handles window creation and
* displaying Gui.
* @param title
*/
Window(const char *title);
~Window();
private:
GLFWwindow *window_;
void render() const;
};
#endif //RAYTRACER_WINDOW_H
| #ifndef VAR_0
#define VAR_0
#define VAR_1
#include <IMPORT_0>
#include "IMPORT_1"
CLASS_0 VAR_2 {
public:
/**
* @brief Handles window creation and
* displaying Gui.
* @param title
*/
FUNC_0(const VAR_3 *VAR_4);
~FUNC_0();
private:
VAR_5 *VAR_6;
void FUNC_1() const;
};
#endif //RAYTRACER_WINDOW_H
| 0.718709 | {'VAR_0': 'RAYTRACER_WINDOW_H', 'VAR_1': 'GLEW_STATIC', 'IMPORT_0': 'GLFW/glfw3.h', 'IMPORT_1': 'core/Raytracer.h', 'CLASS_0': 'class', 'VAR_2': 'Window', 'FUNC_0': 'Window', 'VAR_3': 'char', 'VAR_4': 'title', 'VAR_5': 'GLFWwindow', 'VAR_6': 'window_', 'FUNC_1': 'render'} | c | Texto | 31.82% |
/*
* 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) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
* Lustre is a trademark of Sun Microsystems, Inc.
*
* lustre/include/lustre/ll_fiemap.h
*
* FIEMAP data structures and flags. This header file will be used until
* fiemap.h is available in the upstream kernel.
*
* Author: Kalpak Shah <[email protected]>
* Author: Andreas Dilger <[email protected]>
*/
#ifndef _LUSTRE_FIEMAP_H
#define _LUSTRE_FIEMAP_H
struct ll_fiemap_extent {
__u64 fe_logical; /* logical offset in bytes for the start of
* the extent from the beginning of the file */
__u64 fe_physical; /* physical offset in bytes for the start
* of the extent from the beginning of the disk */
__u64 fe_length; /* length in bytes for this extent */
__u64 fe_reserved64[2];
__u32 fe_flags; /* FIEMAP_EXTENT_* flags for this extent */
__u32 fe_device; /* device number for this extent */
__u32 fe_reserved[2];
};
struct ll_user_fiemap {
__u64 fm_start; /* logical offset (inclusive) at
* which to start mapping (in) */
__u64 fm_length; /* logical length of mapping which
* userspace wants (in) */
__u32 fm_flags; /* FIEMAP_FLAG_* flags for request (in/out) */
__u32 fm_mapped_extents;/* number of extents that were mapped (out) */
__u32 fm_extent_count; /* size of fm_extents array (in) */
__u32 fm_reserved;
struct ll_fiemap_extent fm_extents[0]; /* array of mapped extents (out) */
};
#define FIEMAP_MAX_OFFSET (~0ULL)
#define FIEMAP_FLAG_SYNC 0x00000001 /* sync file data before map */
#define FIEMAP_FLAG_XATTR 0x00000002 /* map extended attribute tree */
#define FIEMAP_EXTENT_LAST 0x00000001 /* Last extent in file. */
#define FIEMAP_EXTENT_UNKNOWN 0x00000002 /* Data location unknown. */
#define FIEMAP_EXTENT_DELALLOC 0x00000004 /* Location still pending.
* Sets EXTENT_UNKNOWN. */
#define FIEMAP_EXTENT_ENCODED 0x00000008 /* Data can not be read
* while fs is unmounted */
#define FIEMAP_EXTENT_DATA_ENCRYPTED 0x00000080 /* Data is encrypted by fs.
* Sets EXTENT_NO_DIRECT. */
#define FIEMAP_EXTENT_NOT_ALIGNED 0x00000100 /* Extent offsets may not be
* block aligned. */
#define FIEMAP_EXTENT_DATA_INLINE 0x00000200 /* Data mixed with metadata.
* Sets EXTENT_NOT_ALIGNED.*/
#define FIEMAP_EXTENT_DATA_TAIL 0x00000400 /* Multiple files in block.
* Sets EXTENT_NOT_ALIGNED.*/
#define FIEMAP_EXTENT_UNWRITTEN 0x00000800 /* Space allocated, but
* no data (i.e. zero). */
#define FIEMAP_EXTENT_MERGED 0x00001000 /* File does not natively
* support extents. Result
* merged for efficiency. */
static inline size_t fiemap_count_to_size(size_t extent_count)
{
return (sizeof(struct ll_user_fiemap) + extent_count *
sizeof(struct ll_fiemap_extent));
}
static inline unsigned fiemap_size_to_count(size_t array_size)
{
return ((array_size - sizeof(struct ll_user_fiemap)) /
sizeof(struct ll_fiemap_extent));
}
#define FIEMAP_FLAG_DEVICE_ORDER 0x40000000 /* return device ordered mapping */
#ifdef FIEMAP_FLAGS_COMPAT
#undef FIEMAP_FLAGS_COMPAT
#endif
/* Lustre specific flags - use a high bit, don't conflict with upstream flag */
#define FIEMAP_EXTENT_NO_DIRECT 0x40000000 /* Data mapping undefined */
#define FIEMAP_EXTENT_NET 0x80000000 /* Data stored remotely.
* Sets NO_DIRECT flag */
#endif /* _LUSTRE_FIEMAP_H */
| /*
* 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) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
* Lustre is a trademark of Sun Microsystems, Inc.
*
* lustre/include/lustre/ll_fiemap.h
*
* FIEMAP data structures and flags. This header file will be used until
* fiemap.h is available in the upstream kernel.
*
* Author: Kalpak Shah <[email protected]>
* Author: Andreas Dilger <[email protected]>
*/
#ifndef _LUSTRE_FIEMAP_H
#define _LUSTRE_FIEMAP_H
struct ll_fiemap_extent {
CLASS_0 VAR_0; /* logical offset in bytes for the start of
* the extent from the beginning of the file */
CLASS_0 fe_physical; /* physical offset in bytes for the start
* of the extent from the beginning of the disk */
CLASS_0 VAR_1; /* length in bytes for this extent */
CLASS_0 VAR_2[2];
CLASS_1 VAR_3; /* FIEMAP_EXTENT_* flags for this extent */
CLASS_1 VAR_4; /* device number for this extent */
CLASS_1 VAR_5[2];
};
struct CLASS_2 {
CLASS_0 VAR_6; /* logical offset (inclusive) at
* which to start mapping (in) */
CLASS_0 VAR_7; /* logical length of mapping which
* userspace wants (in) */
CLASS_1 VAR_8; /* FIEMAP_FLAG_* flags for request (in/out) */
CLASS_1 VAR_9;/* number of extents that were mapped (out) */
CLASS_1 VAR_10; /* size of fm_extents array (in) */
CLASS_1 VAR_11;
struct ll_fiemap_extent VAR_12[0]; /* array of mapped extents (out) */
};
#define VAR_13 (~0ULL)
#define VAR_14 0x00000001 /* sync file data before map */
#define VAR_15 0x00000002 /* map extended attribute tree */
#define VAR_16 0x00000001 /* Last extent in file. */
#define VAR_17 0x00000002 /* Data location unknown. */
#define VAR_18 0x00000004 /* Location still pending.
* Sets EXTENT_UNKNOWN. */
#define FIEMAP_EXTENT_ENCODED 0x00000008 /* Data can not be read
* while fs is unmounted */
#define VAR_19 0x00000080 /* Data is encrypted by fs.
* Sets EXTENT_NO_DIRECT. */
#define VAR_20 0x00000100 /* Extent offsets may not be
* block aligned. */
#define VAR_21 0x00000200 /* Data mixed with metadata.
* Sets EXTENT_NOT_ALIGNED.*/
#define VAR_22 0x00000400 /* Multiple files in block.
* Sets EXTENT_NOT_ALIGNED.*/
#define VAR_23 0x00000800 /* Space allocated, but
* no data (i.e. zero). */
#define VAR_24 0x00001000 /* File does not natively
* support extents. Result
* merged for efficiency. */
static inline size_t FUNC_0(size_t VAR_25)
{
return (sizeof(struct CLASS_2) + VAR_25 *
sizeof(struct ll_fiemap_extent));
}
static inline unsigned FUNC_1(size_t VAR_26)
{
return ((VAR_26 - sizeof(struct CLASS_2)) /
sizeof(struct ll_fiemap_extent));
}
#define VAR_27 0x40000000 /* return device ordered mapping */
#ifdef VAR_28
#undef FIEMAP_FLAGS_COMPAT
#endif
/* Lustre specific flags - use a high bit, don't conflict with upstream flag */
#define VAR_29 0x40000000 /* Data mapping undefined */
#define VAR_30 0x80000000 /* Data stored remotely.
* Sets NO_DIRECT flag */
#endif /* _LUSTRE_FIEMAP_H */
| 0.920494 | {'CLASS_0': '__u64', 'VAR_0': 'fe_logical', 'VAR_1': 'fe_length', 'VAR_2': 'fe_reserved64', 'CLASS_1': '__u32', 'VAR_3': 'fe_flags', 'VAR_4': 'fe_device', 'VAR_5': 'fe_reserved', 'CLASS_2': 'll_user_fiemap', 'VAR_6': 'fm_start', 'VAR_7': 'fm_length', 'VAR_8': 'fm_flags', 'VAR_9': 'fm_mapped_extents', 'VAR_10': 'fm_extent_count', 'VAR_11': 'fm_reserved', 'VAR_12': 'fm_extents', 'VAR_13': 'FIEMAP_MAX_OFFSET', 'VAR_14': 'FIEMAP_FLAG_SYNC', 'VAR_15': 'FIEMAP_FLAG_XATTR', 'VAR_16': 'FIEMAP_EXTENT_LAST', 'VAR_17': 'FIEMAP_EXTENT_UNKNOWN', 'VAR_18': 'FIEMAP_EXTENT_DELALLOC', 'VAR_19': 'FIEMAP_EXTENT_DATA_ENCRYPTED', 'VAR_20': 'FIEMAP_EXTENT_NOT_ALIGNED', 'VAR_21': 'FIEMAP_EXTENT_DATA_INLINE', 'VAR_22': 'FIEMAP_EXTENT_DATA_TAIL', 'VAR_23': 'FIEMAP_EXTENT_UNWRITTEN', 'VAR_24': 'FIEMAP_EXTENT_MERGED', 'FUNC_0': 'fiemap_count_to_size', 'VAR_25': 'extent_count', 'FUNC_1': 'fiemap_size_to_count', 'VAR_26': 'array_size', 'VAR_27': 'FIEMAP_FLAG_DEVICE_ORDER', 'VAR_28': 'FIEMAP_FLAGS_COMPAT', 'VAR_29': 'FIEMAP_EXTENT_NO_DIRECT', 'VAR_30': 'FIEMAP_EXTENT_NET'} | c | Hibrido | 86.60% |
#ifndef _M5GAUGE_H_
#define _M5GAUGE_H_
#include "M5Widget.h"
class M5Gauge : public M5Widget {
public:
void setRange(float minimum, float maximum);
void setValue(float value);
float value() const { return _valueReq; }
virtual void update(void);
virtual void draw(void);
private:
void drawPointer(uint16_t color, bool fillBg = false);
void drawLineAngle(int x, int y, int r1, int r2, float angle, uint16_t color);
void drawTickLine(int r1, int r2, float ang, uint16_t color);
float _minimum, _maximum, _value, _valueReq;
};
#endif | #ifndef VAR_0
#define VAR_0
#include "M5Widget.h"
CLASS_0 VAR_1 : VAR_2 VAR_3 {
public:
VAR_4 FUNC_0(VAR_5 VAR_6, VAR_5 VAR_7);
void FUNC_1(float VAR_8);
float FUNC_2() const { return VAR_9; }
CLASS_1 VAR_4 update(void);
CLASS_1 VAR_4 FUNC_3(void);
private:
VAR_4 FUNC_4(VAR_10 VAR_11, bool VAR_12 = false);
void FUNC_5(int VAR_13, int VAR_14, int VAR_15, int VAR_16, float VAR_17, uint16_t VAR_11);
void FUNC_6(int VAR_15, int VAR_16, float VAR_18, uint16_t VAR_11);
float VAR_19, VAR_20, VAR_21, VAR_9;
};
#endif | 0.909207 | {'VAR_0': '_M5GAUGE_H_', 'CLASS_0': 'class', 'VAR_1': 'M5Gauge', 'VAR_2': 'public', 'VAR_3': 'M5Widget', 'VAR_4': 'void', 'FUNC_0': 'setRange', 'VAR_5': 'float', 'VAR_6': 'minimum', 'VAR_7': 'maximum', 'FUNC_1': 'setValue', 'VAR_8': 'value', 'FUNC_2': 'value', 'VAR_9': '_valueReq', 'CLASS_1': 'virtual', 'FUNC_3': 'draw', 'FUNC_4': 'drawPointer', 'VAR_10': 'uint16_t', 'VAR_11': 'color', 'VAR_12': 'fillBg', 'FUNC_5': 'drawLineAngle', 'VAR_13': 'x', 'VAR_14': 'y', 'VAR_15': 'r1', 'VAR_16': 'r2', 'VAR_17': 'angle', 'FUNC_6': 'drawTickLine', 'VAR_18': 'ang', 'VAR_19': '_minimum', 'VAR_20': '_maximum', 'VAR_21': '_value'} | c | Texto | 11.11% |
// Number of frames: 17
// Number of chars per frame: 4
const unsigned int TransitionLayerATiles[] __attribute__((aligned(4))) =
{
0x00000000,0x00000000,0x00000000,0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,0x54005000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,0x54005000,0x55405500,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,0x54005000,0x55405500,0x55545550,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,
0x54005000,0x55405500,0x55545550,0x55555555,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,0x54005000,
0x55405500,0x55545550,0x55555555,0x55555555,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,0x54005000,0x55405500,
0x55545550,0x55555555,0x55555555,0x55555555,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,0x54005000,0x55405500,0x55545550,
0x55555555,0x55555555,0x55555555,0x55555555,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,
0x54005000,0x55405500,0x55545550,0x55555555,0x55555555,0x55555555,0x55555555,0x55555555,
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,0x54005000,
0x55405500,0x55545550,0x55555555,0x55555555,0x55555555,0x55555555,0x55555555,0x55555555,
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,0x54005000,0x55405500,
0x55545550,0x55555555,0x55555555,0x55555555,0x55555555,0x55555555,0x55555555,0x55555555,
0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,0x54005000,0x55405500,0x55545550,
0x55555555,0x55555555,0x55555555,0x55555555,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x54005000,0x55405500,0x55545550,0x55555555,
0x55555555,0x55555555,0x55555555,0x55555555,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x55405500,0x55545550,0x55555555,0x55555555,
0x55555555,0x55555555,0x55555555,0x55555555,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x55545550,0x55555555,0x55555555,0x55555555,
0x55555555,0x55555555,0x55555555,0x55555555,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x55555555,0x55555555,0x55555555,0x55555555,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
};
const unsigned short TransitionLayerAMap[] __attribute__((aligned(4)))=
{
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
};
| // Number of frames: 17
// Number of chars per frame: 4
const unsigned int TransitionLayerATiles[] __attribute__((aligned(4))) =
{
0x00000000,0x00000000,0x00000000,0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,0x54005000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,0x54005000,0x55405500,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,0x54005000,0x55405500,0x55545550,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,
0x54005000,0x55405500,0x55545550,0x55555555,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,0x54005000,
0x55405500,0x55545550,0x55555555,0x55555555,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,0x54005000,0x55405500,
0x55545550,0x55555555,0x55555555,0x55555555,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,0x54005000,0x55405500,0x55545550,
0x55555555,0x55555555,0x55555555,0x55555555,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,
0x54005000,0x55405500,0x55545550,0x55555555,0x55555555,0x55555555,0x55555555,0x55555555,
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,0x54005000,
0x55405500,0x55545550,0x55555555,0x55555555,0x55555555,0x55555555,0x55555555,0x55555555,
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,0x54005000,0x55405500,
0x55545550,0x55555555,0x55555555,0x55555555,0x55555555,0x55555555,0x55555555,0x55555555,
0x00000000,0x00000000,0x00000000,0x00000000,0x40000000,0x54005000,0x55405500,0x55545550,
0x55555555,0x55555555,0x55555555,0x55555555,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x54005000,0x55405500,0x55545550,0x55555555,
0x55555555,0x55555555,0x55555555,0x55555555,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x55405500,0x55545550,0x55555555,0x55555555,
0x55555555,0x55555555,0x55555555,0x55555555,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x55545550,0x55555555,0x55555555,0x55555555,
0x55555555,0x55555555,0x55555555,0x55555555,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x55555555,0x55555555,0x55555555,0x55555555,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
};
const unsigned short TransitionLayerAMap[] __attribute__((aligned(4)))=
{
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,0x0002,0x0003,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,0x0001,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
};
| 0 | c | Procedural | 100.00% |
|
/**
* Conformal time at given redshift.
*
* Returns tau(z) by interpolation from pre-computed table.
*
* @param pba Input: pointer to background structure
* @param z Input: redshift
* @param tau Output: conformal time
* @return the error status
*/
int background_tau_of_z(
struct background *pba,
double z,
double * tau
) {
int last_index;
class_test(z < pba->z_table[pba->bt_size-1],
pba->error_message,
"out of range: z=%e < z_min=%e\n",z,pba->z_table[pba->bt_size-1]);
class_test(z > pba->z_table[0],
pba->error_message,
"out of range: a=%e > a_max=%e\n",z,pba->z_table[0]);
class_call(array_interpolate_spline(
pba->z_table,
pba->bt_size,
pba->tau_table,
pba->d2tau_dz2_table,
1,
z,
&last_index,
tau,
1,
pba->error_message),
pba->error_message,
pba->error_message);
return _SUCCESS_;
} | /**
* Conformal time at given redshift.
*
* Returns tau(z) by interpolation from pre-computed table.
*
* @param pba Input: pointer to background structure
* @param z Input: redshift
* @param tau Output: conformal time
* @return the error status
*/
int FUNC_0(
struct CLASS_0 *VAR_0,
double z,
double * VAR_1
) {
int VAR_2;
FUNC_1(z < VAR_0->VAR_3[VAR_0->bt_size-1],
VAR_0->VAR_4,
"out of range: z=%e < z_min=%e\n",z,VAR_0->VAR_3[VAR_0->bt_size-1]);
FUNC_1(z > VAR_0->VAR_3[0],
VAR_0->VAR_4,
"out of range: a=%e > a_max=%e\n",z,VAR_0->VAR_3[0]);
FUNC_2(FUNC_3(
VAR_0->VAR_3,
VAR_0->bt_size,
VAR_0->VAR_5,
VAR_0->VAR_6,
1,
z,
&VAR_2,
VAR_1,
1,
VAR_0->VAR_4),
VAR_0->VAR_4,
VAR_0->VAR_4);
return VAR_7;
} | 0.865787 | {'FUNC_0': 'background_tau_of_z', 'CLASS_0': 'background', 'VAR_0': 'pba', 'VAR_1': 'tau', 'VAR_2': 'last_index', 'FUNC_1': 'class_test', 'VAR_3': 'z_table', 'VAR_4': 'error_message', 'FUNC_2': 'class_call', 'FUNC_3': 'array_interpolate_spline', 'VAR_5': 'tau_table', 'VAR_6': 'd2tau_dz2_table', 'VAR_7': '_SUCCESS_'} | c | Procedural | 39.22% |
/** computes a partitioning into edge-concave aggregations for a given (quadratic) nonlinear row; each aggregation has
* to contain a cycle with an odd number of positive weighted edges (good cycles) in the corresponding graph representation
*
* For this we use the following algorithm:
*
* -# use a MIP model based on binary flow variables to compute good cycles and store the implied subgraphs as an e.c. aggr.
* -# if we find a good cycle, store the implied subgraph, delete it from the graph representation and go to 1)
* -# if the MIP model is infeasible (there are no good cycles), STOP
* -# we compute a large clique C if the MIP model fails (because of working limits, etc)
* -# if we find a good cycle in C, store the implied subgraph of C, delete it from the graph representation and go to 1)
* -# if C is not large enough, STOP
*/
static
SCIP_RETCODE searchEcAggr(
SCIP* scip,
SCIP_SEPADATA* sepadata,
SCIP_NLROW* nlrow,
SCIP_SOL* sol,
SCIP_Bool rhsaggr,
int* quadvar2aggr,
int* nfound
)
{
SCIP* subscip;
SCIP_RETCODE retcode;
SCIP_CALL_FINALLY( SCIPcreate(&subscip), (void)SCIPfree(&subscip) );
retcode = doSeachEcAggr(scip, subscip, sepadata, nlrow, sol, rhsaggr, quadvar2aggr, nfound);
SCIP_CALL( SCIPfree(&subscip) );
SCIP_CALL( retcode );
return SCIP_OKAY;
} | /** computes a partitioning into edge-concave aggregations for a given (quadratic) nonlinear row; each aggregation has
* to contain a cycle with an odd number of positive weighted edges (good cycles) in the corresponding graph representation
*
* For this we use the following algorithm:
*
* -# use a MIP model based on binary flow variables to compute good cycles and store the implied subgraphs as an e.c. aggr.
* -# if we find a good cycle, store the implied subgraph, delete it from the graph representation and go to 1)
* -# if the MIP model is infeasible (there are no good cycles), STOP
* -# we compute a large clique C if the MIP model fails (because of working limits, etc)
* -# if we find a good cycle in C, store the implied subgraph of C, delete it from the graph representation and go to 1)
* -# if C is not large enough, STOP
*/
static
SCIP_RETCODE searchEcAggr(
SCIP* VAR_0,
SCIP_SEPADATA* sepadata,
SCIP_NLROW* nlrow,
SCIP_SOL* VAR_1,
CLASS_0 VAR_2,
int* quadvar2aggr,
int* VAR_3
)
{
SCIP* subscip;
SCIP_RETCODE VAR_4;
SCIP_CALL_FINALLY( FUNC_0(&subscip), (void)SCIPfree(&subscip) );
VAR_4 = FUNC_1(VAR_0, subscip, sepadata, nlrow, VAR_1, VAR_2, quadvar2aggr, VAR_3);
FUNC_2( SCIPfree(&subscip) );
FUNC_2( VAR_4 );
return SCIP_OKAY;
} | 0.355972 | {'VAR_0': 'scip', 'VAR_1': 'sol', 'CLASS_0': 'SCIP_Bool', 'VAR_2': 'rhsaggr', 'VAR_3': 'nfound', 'VAR_4': 'retcode', 'FUNC_0': 'SCIPcreate', 'FUNC_1': 'doSeachEcAggr', 'FUNC_2': 'SCIP_CALL'} | c | Procedural | 41.20% |
// The MIT License (MIT)
//
// Copyright (c) 2015 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#include <stdio.h>
#include <windows.h>
#include <stdbool.h>
#include <string.h>
#include <sys/stat.h>
#include <errno.h>
#include "alcdef_to_json.h"
#include "win32_converter.h"
// Gets the type of a given path
PathType GetPathType (const char *path) {
struct stat s;
char dir_path[MAX_PATH_LENGTH + 1];
char *filename;
if (stat(path, &s) == 0) {
if (s.st_mode & S_IFDIR) {
return kDirectoryPath;
} else if (s.st_mode & S_IFREG) {
return kFilePath;
} else {
return kOtherPath;
}
} else {
// Check if the path is valid but the file does not exist
if (errno == ENOENT) {
// Copy the path for safe modification
strcpy(dir_path, path);
// Find the beginning of the expected filename
filename = strrchr(dir_path, '/');
// Relace the first filename character with line termination character
*(filename + 1) = '\0';
// If the resulting directory path is valid and existing, we assume
// that the original path was a file path
if ((stat(dir_path, &s) == 0) && (s.st_mode & S_IFDIR)) {
return kFilePath;
}
}
return kWrongPath;
}
}
// Converts A single ALCDEF directory to a single JSON file
bool AlcdefFileToJsonFile (const char *alcdef_path, const char *json_path, const bool flat_mode) {
FILE *input = NULL;
input = fopen(alcdef_path, "r");
printf("Input path: [%s]\n", alcdef_path);
if (!input) {
printf("Input path error!\n");
return true;
}
FILE *output = NULL;
output = fopen(json_path, "w");
printf("Output path: [%s]\n", json_path);
if (!output) {
printf("Output path error!\n");
return true;
}
fprintf(output, "[");
AlcdefToJson(output, input, flat_mode);
fprintf(output, "]");
fclose(input);
input = NULL;
fclose(output);
output = NULL;
return false;
}
// Converts A single ALCDEF directory to a single JSON file
bool AlcdefDirToJsonFile (const char *alcdef_path, const char *json_path, const bool flat_mode) {
// The Win32 variables have names in mixed case due to the naming standard
// used in windows.h library
WIN32_FIND_DATA findData;
HANDLE findHandle = NULL;
// Get the ALCDEF path with *.* mask to find all the files in the directory
char masked_alcdef_path[MAX_PATH_LENGTH];
sprintf(masked_alcdef_path, "%s/*.*", alcdef_path);
printf("Input path: [%s]\n", alcdef_path);
// Check if the masked path is valid
if ((findHandle = FindFirstFile(masked_alcdef_path, &findData)) == INVALID_HANDLE_VALUE) {
printf("Path not found: [%s]\n", alcdef_path);
return true;
}
bool first_file_processed = false;
FILE *output = NULL;
output = fopen(json_path, "w");
printf("Output path: [%s]\n", json_path);
if (!output) {
printf("Output path error!\n");
return true;
}
fprintf(output, "[");
FILE *input = NULL;
do
{
// Find first file will always return "." and ".." as the first two
// directory children
if ((strcmp(findData.cFileName, ".") != 0) &&
(strcmp(findData.cFileName, "..") != 0)) {
// Generate the next input file path
sprintf(masked_alcdef_path, "%s/%s", alcdef_path, findData.cFileName);
// If not a directory
if (!(findData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) {
if (first_file_processed) {
fprintf(output, ",\n");
} else {
first_file_processed = true;
}
input = fopen(masked_alcdef_path, "r");
if (!input) {
printf("Input path error!\n");
return true;
}
AlcdefToJson(output, input, flat_mode);
fclose(input);
input = NULL;
}
}
} while (FindNextFile(findHandle, &findData)); //Find the next file.
FindClose(findHandle);
fprintf(output, "]");
fclose(output);
output = NULL;
return false;
}
// Converts A single ALCDEF directory to a single JSON file
bool AlcdefDirToJsonDir (const char *alcdef_path, const char *json_path, const bool flat_mode) {
// The Win32 variables have names in mixed case due to the naming standard
// used in windows.h library
WIN32_FIND_DATA findData;
HANDLE findHandle = NULL;
// Get the ALCDEF path with *.* mask to find all the files in the directory
char masked_alcdef_path[MAX_PATH_LENGTH];
sprintf(masked_alcdef_path, "%s/*.*", alcdef_path);
printf("Input path: [%s]\n", alcdef_path);
// Check if the masked path is valid
if ((findHandle = FindFirstFile(masked_alcdef_path, &findData)) == INVALID_HANDLE_VALUE) {
printf("Path not found: [%s]\n", alcdef_path);
return true;
}
char masked_json_path[MAX_PATH_LENGTH];
printf("Output path: [%s]\n", json_path);
FILE *output = NULL;
FILE *input = NULL;
do
{
// Find first file will always return "." and ".." as the first two
// directory children
if ((strcmp(findData.cFileName, ".") != 0) &&
(strcmp(findData.cFileName, "..") != 0)) {
// Generate the next input files paths
sprintf(masked_alcdef_path, "%s/%s", alcdef_path, findData.cFileName);
sprintf(masked_json_path, "%s/%s.json", json_path, findData.cFileName);
// If not a directory
if (!(findData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) {
input = fopen(masked_alcdef_path, "r");
if (!input) {
printf("Input path error!\n");
return true;
}
output = fopen(masked_json_path, "w");
if (!output) {
printf("Output path error!\n");
return true;
}
fprintf(output, "[");
AlcdefToJson(output, input, flat_mode);
fprintf(output, "]");
fclose(input);
input = NULL;
fclose(output);
output = NULL;
}
}
} while (FindNextFile(findHandle, &findData)); //Find the next file.
FindClose(findHandle);
return false;
}
// Converts ALCDEF file(s) to JSON file(s)
bool ConvertAlcdefToJson (const char *alcdef_path, const char *json_path, const bool flat_mode)
{
// Get ALCDEF path
PathType alcdef_path_type = GetPathType(alcdef_path);
if ((alcdef_path_type == kOtherPath) || (alcdef_path_type == kWrongPath)) {
printf("ERROR: wrong input path discovered! Path type: %d\n Path: [%s]\n", alcdef_path_type, alcdef_path);
return true;
}
// Get JSON path
PathType json_path_type = GetPathType(json_path);
if ((json_path_type == kOtherPath) || (json_path_type == kWrongPath)) {
printf("ERROR: wrong output path discovered! Path type: %d\n Path: [%s]\n", json_path_type, json_path);
return true;
}
char autonamed_json_file_path[MAX_PATH_LENGTH];
const char *alcdef_file_name;
if (alcdef_path_type == kDirectoryPath) {
if (json_path_type == kDirectoryPath) {
// 1. Directory to Directory. Converts all ALCDEF files in a directory into a
// directory of automatically named JSON files.
AlcdefDirToJsonDir(alcdef_path, json_path, flat_mode);
} else {
// 2. Directory to File. Converts all ALCDEF files in a directory into a single
// JSON file
AlcdefDirToJsonFile(alcdef_path, json_path, flat_mode);
}
} else {
if (json_path_type == kDirectoryPath) {
// 3. File to Directory. Equivalent to case 4., but the output file is named
// automatically
if ((alcdef_file_name = strrchr(alcdef_path, '/')) == NULL) {
alcdef_file_name = alcdef_path;
}
sprintf(autonamed_json_file_path, "%s%s.json", json_path, alcdef_file_name);
printf("Autonamed path: [%s]\n", autonamed_json_file_path);
AlcdefFileToJsonFile(alcdef_path, autonamed_json_file_path, flat_mode);
} else {
// 4. File to File (Single ALCDEF file into a single JSON file)
AlcdefFileToJsonFile(alcdef_path, json_path, flat_mode);
}
}
return false;
} | // The MIT License (MIT)
//
// Copyright (c) 2015 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#include <IMPORT_0>
#include <windows.h>
#include <IMPORT_1>
#include <string.h>
#include <sys/stat.h>
#include <errno.h>
#include "alcdef_to_json.h"
#include "win32_converter.h"
// Gets the type of a given path
PathType GetPathType (const char *path) {
struct stat s;
char dir_path[VAR_0 + 1];
char *filename;
if (stat(path, &s) == 0) {
if (s.st_mode & S_IFDIR) {
return kDirectoryPath;
} else if (s.st_mode & S_IFREG) {
return VAR_1;
} else {
return kOtherPath;
}
} else {
// Check if the path is valid but the file does not exist
if (errno == ENOENT) {
// Copy the path for safe modification
strcpy(dir_path, path);
// Find the beginning of the expected filename
filename = strrchr(dir_path, '/');
// Relace the first filename character with line termination character
*(filename + 1) = '\0';
// If the resulting directory path is valid and existing, we assume
// that the original path was a file path
if ((stat(dir_path, &s) == 0) && (s.st_mode & S_IFDIR)) {
return VAR_1;
}
}
return kWrongPath;
}
}
// Converts A single ALCDEF directory to a single JSON file
bool AlcdefFileToJsonFile (const char *alcdef_path, const char *json_path, const bool flat_mode) {
FILE *input = NULL;
input = fopen(alcdef_path, "r");
FUNC_0("Input path: [%s]\n", alcdef_path);
if (!input) {
FUNC_0("Input path error!\n");
return true;
}
FILE *output = NULL;
output = fopen(json_path, "w");
FUNC_0("Output path: [%s]\n", json_path);
if (!output) {
FUNC_0("Output path error!\n");
return true;
}
fprintf(output, "[");
AlcdefToJson(output, input, flat_mode);
fprintf(output, "]");
fclose(input);
input = NULL;
fclose(output);
output = NULL;
return false;
}
// Converts A single ALCDEF directory to a single JSON file
bool AlcdefDirToJsonFile (const char *alcdef_path, const char *json_path, const bool flat_mode) {
// The Win32 variables have names in mixed case due to the naming standard
// used in windows.h library
WIN32_FIND_DATA findData;
HANDLE findHandle = NULL;
// Get the ALCDEF path with *.* mask to find all the files in the directory
char masked_alcdef_path[VAR_0];
sprintf(masked_alcdef_path, "%s/*.*", alcdef_path);
FUNC_0("Input path: [%s]\n", alcdef_path);
// Check if the masked path is valid
if ((findHandle = FindFirstFile(masked_alcdef_path, &findData)) == INVALID_HANDLE_VALUE) {
FUNC_0("Path not found: [%s]\n", alcdef_path);
return true;
}
bool first_file_processed = false;
FILE *output = NULL;
output = fopen(json_path, "w");
FUNC_0("Output path: [%s]\n", json_path);
if (!output) {
FUNC_0("Output path error!\n");
return true;
}
fprintf(output, "[");
FILE *input = NULL;
do
{
// Find first file will always return "." and ".." as the first two
// directory children
if ((strcmp(findData.cFileName, ".") != 0) &&
(strcmp(findData.cFileName, "..") != 0)) {
// Generate the next input file path
sprintf(masked_alcdef_path, "%s/%s", alcdef_path, findData.cFileName);
// If not a directory
if (!(findData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) {
if (first_file_processed) {
fprintf(output, ",\n");
} else {
first_file_processed = true;
}
input = fopen(masked_alcdef_path, "r");
if (!input) {
FUNC_0("Input path error!\n");
return true;
}
AlcdefToJson(output, input, flat_mode);
fclose(input);
input = NULL;
}
}
} while (FindNextFile(findHandle, &findData)); //Find the next file.
FindClose(findHandle);
fprintf(output, "]");
fclose(output);
output = NULL;
return false;
}
// Converts A single ALCDEF directory to a single JSON file
bool AlcdefDirToJsonDir (const char *alcdef_path, const char *json_path, const bool flat_mode) {
// The Win32 variables have names in mixed case due to the naming standard
// used in windows.h library
WIN32_FIND_DATA findData;
HANDLE findHandle = NULL;
// Get the ALCDEF path with *.* mask to find all the files in the directory
char masked_alcdef_path[VAR_0];
sprintf(masked_alcdef_path, "%s/*.*", alcdef_path);
FUNC_0("Input path: [%s]\n", alcdef_path);
// Check if the masked path is valid
if ((findHandle = FindFirstFile(masked_alcdef_path, &findData)) == INVALID_HANDLE_VALUE) {
FUNC_0("Path not found: [%s]\n", alcdef_path);
return true;
}
char masked_json_path[VAR_0];
FUNC_0("Output path: [%s]\n", json_path);
FILE *output = NULL;
FILE *input = NULL;
do
{
// Find first file will always return "." and ".." as the first two
// directory children
if ((strcmp(findData.cFileName, ".") != 0) &&
(strcmp(findData.cFileName, "..") != 0)) {
// Generate the next input files paths
sprintf(masked_alcdef_path, "%s/%s", alcdef_path, findData.cFileName);
sprintf(masked_json_path, "%s/%s.json", json_path, findData.cFileName);
// If not a directory
if (!(findData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) {
input = fopen(masked_alcdef_path, "r");
if (!input) {
FUNC_0("Input path error!\n");
return true;
}
output = fopen(masked_json_path, "w");
if (!output) {
FUNC_0("Output path error!\n");
return true;
}
fprintf(output, "[");
AlcdefToJson(output, input, flat_mode);
fprintf(output, "]");
fclose(input);
input = NULL;
fclose(output);
output = NULL;
}
}
} while (FindNextFile(findHandle, &findData)); //Find the next file.
FindClose(findHandle);
return false;
}
// Converts ALCDEF file(s) to JSON file(s)
bool ConvertAlcdefToJson (const char *alcdef_path, const char *json_path, const bool flat_mode)
{
// Get ALCDEF path
PathType alcdef_path_type = GetPathType(alcdef_path);
if ((alcdef_path_type == kOtherPath) || (alcdef_path_type == kWrongPath)) {
FUNC_0("ERROR: wrong input path discovered! Path type: %d\n Path: [%s]\n", alcdef_path_type, alcdef_path);
return true;
}
// Get JSON path
PathType json_path_type = GetPathType(json_path);
if ((json_path_type == kOtherPath) || (json_path_type == kWrongPath)) {
FUNC_0("ERROR: wrong output path discovered! Path type: %d\n Path: [%s]\n", json_path_type, json_path);
return true;
}
char autonamed_json_file_path[VAR_0];
const char *alcdef_file_name;
if (alcdef_path_type == kDirectoryPath) {
if (json_path_type == kDirectoryPath) {
// 1. Directory to Directory. Converts all ALCDEF files in a directory into a
// directory of automatically named JSON files.
AlcdefDirToJsonDir(alcdef_path, json_path, flat_mode);
} else {
// 2. Directory to File. Converts all ALCDEF files in a directory into a single
// JSON file
AlcdefDirToJsonFile(alcdef_path, json_path, flat_mode);
}
} else {
if (json_path_type == kDirectoryPath) {
// 3. File to Directory. Equivalent to case 4., but the output file is named
// automatically
if ((alcdef_file_name = strrchr(alcdef_path, '/')) == NULL) {
alcdef_file_name = alcdef_path;
}
sprintf(autonamed_json_file_path, "%s%s.json", json_path, alcdef_file_name);
FUNC_0("Autonamed path: [%s]\n", autonamed_json_file_path);
AlcdefFileToJsonFile(alcdef_path, autonamed_json_file_path, flat_mode);
} else {
// 4. File to File (Single ALCDEF file into a single JSON file)
AlcdefFileToJsonFile(alcdef_path, json_path, flat_mode);
}
}
return false;
} | 0.040673 | {'IMPORT_0': 'stdio.h', 'IMPORT_1': 'stdbool.h', 'VAR_0': 'MAX_PATH_LENGTH', 'VAR_1': 'kFilePath', 'FUNC_0': 'printf'} | c | Procedural | 100.00% |
#include <zephyr/types.h>
#include <stddef.h>
#include <string.h>
#include <errno.h>
#include <misc/printk.h>
#include <misc/byteorder.h>
#include <zephyr.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
#include <bluetooth/conn.h>
#include <bluetooth/uuid.h>
#include <bluetooth/gatt.h>
#include <net/wifimgr_api.h>
#include "host/hci_core.h"
#include "wifi_manager_service.h"
#include <uki_utlis.h>
#define UINT16_TO_STREAM(p, u16) {*(p)++ = (uint8_t)(u16); *(p)++ = (uint8_t)((u16) >> 8);}
#define UINT8_TO_STREAM(p, u8) {*(p)++ = (uint8_t)(u8);}
#define GET_STATUS_TIMEOUT K_SECONDS(5)
#define SCAN_TIMEOUT K_SECONDS(10)
#define SCAN_NUM 1
#define HCI_OP_ENABLE_CMD 0xFCA1
static struct bt_uuid_128 wifimgr_service_uuid = BT_UUID_INIT_128(
0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80,
0x00, 0x10, 0x00, 0x00, 0xa5, 0xff, 0x00, 0x00);
static struct bt_uuid_128 wifimgr_char_uuid = BT_UUID_INIT_128(
0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80,
0x00, 0x10, 0x00, 0x00, 0xa6, 0xff, 0x00, 0x00);
static u8_t wifimgr_long_value[256] = {0};
static struct bt_gatt_ccc_cfg wifimgr_ccc_cfg[BT_GATT_CCC_MAX] = {};
static u8_t wifimgr_is_enabled;
static struct k_sem get_status_sem;
static struct k_sem scan_sem;
static wifi_status_type cur_wifi_status = {};
static u8_t wait_disconnect_done = 0;
static int disconnect_result = -1;
static struct k_sem disconnect_sem;
struct wifimgr_ctrl_cbs *get_wifimgr_cbs(void);
static int scan_result = 0;
extern int get_disable_buf(void *buf);
extern void sprd_bt_irq_disable(void);
static void wifimgr_ccc_cfg_changed(const struct bt_gatt_attr *attr, u16_t value)
{
BTD("%s\n", __func__);
wifimgr_is_enabled = (value == BT_GATT_CCC_NOTIFY) ? 1 : 0;
}
int wifimgr_check_wifi_status(char *iface_name)
{
BTD("%s, iface_name = %s\n", __func__,iface_name);
int ret = -1;
ret = wifimgr_get_ctrl(iface_name);
if (ret) {
BTD("%s: failed to get ctrl! %d\n", __func__, ret);
goto error;
}
if (wifimgr_get_ctrl_ops()->get_status) {
ret = wifimgr_get_ctrl_ops_cbs(get_wifimgr_cbs())->get_status(iface_name);
} else {
BTD("%s, get_status = NULL\n", __func__);
goto error;
}
wifimgr_release_ctrl(iface_name);
if (0 != ret) {
BTD("%s, get_status fail,err = %d\n", __func__,ret);
goto error;
} else {
if (0 != k_sem_take(&get_status_sem, GET_STATUS_TIMEOUT)) {
BTD("%s, take get_status_sem fail\n", __func__);
ret = -1;
} else {
BTD("%s, get_status success\n", __func__);
ret = 0;
}
}
error:
return ret;
}
void wifimgr_set_conf_and_connect(const void *buf)
{
BTD("%s\n", __func__);
wifi_config_type conf;
const u8_t *p = buf;
u16_t vlen = 0;
int ret = -1;
char data[2] = {0};
u8_t res_result = RESULT_SUCCESS;
u16_t bssid_len = 0;
u16_t pwd_len = 0;
u16_t ssid_len = 0;
memset(&conf, 0, sizeof(conf));
vlen = sys_get_le16(p);
p += 2;
BTD("%s, AllDateLen = 0x%x\n", __func__, vlen);
ssid_len = sys_get_le16(p);
p += 2;
BTD("%s, SsidDataLen = 0x%x\n", __func__, ssid_len);
memcpy(conf.ssid,p,ssid_len);
p+=ssid_len;
BTD("%s, ssid = %s\n", __func__, conf.ssid);
bssid_len = sys_get_le16(p);
p += 2;
BTD("%s, bSsidDataLen = 0x%x\n", __func__, bssid_len);
memcpy(conf.bssid,p,bssid_len);
p+=bssid_len;
for (int i = 0; i < bssid_len; i++) {
BTD("bssid = 0x%02x\n", conf.bssid[i]);
}
pwd_len = sys_get_le16(p);
p += 2;
BTD("%s, PsdDataLen = 0x%x\n", __func__, pwd_len);
memcpy(conf.passwd,p,pwd_len);
p+=pwd_len;
BTD("%s, passwd = %s\n", __func__, conf.passwd);
strcpy(cur_wifi_status.passwd, conf.passwd);
if (wifimgr_get_ctrl_ops()->set_conf) {
ret = wifimgr_get_ctrl_ops_cbs(get_wifimgr_cbs())->set_conf(WIFIMGR_IFACE_NAME_STA,
(ssid_len > 0 ? conf.ssid : NULL),
(bssid_len > 0 ? conf.bssid : NULL),
conf.security,
(pwd_len > 0 ? conf.passwd : ""),
conf.band,
conf.channel,
0,
conf.autorun);
} else {
BTD("%s, set_conf = NULL\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
if (0 != ret) {
BTD("%s, set_conf fail,error = %d\n", __func__,ret);
res_result = RESULT_FAIL;
goto error;
}
ret = wifimgr_check_wifi_status(WIFIMGR_IFACE_NAME_STA);
if (0 == ret) {
switch(cur_wifi_status.sta_status){
case WIFI_STA_STATUS_NODEV:
if (0 != wifimgr_do_open(WIFIMGR_IFACE_NAME_STA)) {
BTD("%s, open fail\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
break;
case WIFI_STA_STATUS_READY:
break;
case WIFI_STA_STATUS_CONNECTED:
if (0 != wifimgr_do_disconnect(1)) {
BTD("%s, STATUS_CONNECTED and do_disconnect fail\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
break;
case WIFI_STA_STATUS_SCANNING:
case WIFI_STA_STATUS_CONNECTING:
case WIFI_STA_STATUS_DISCONNECTING:
BTD("%s,status = %d ,wifi is busy\n", __func__, cur_wifi_status.sta_status);
res_result = RESULT_FAIL;
goto error;
break;
default:
BTD("%s,status = %d not found\n", __func__, cur_wifi_status.sta_status);
res_result = RESULT_FAIL;
goto error;
break;
}
}else {
res_result = RESULT_FAIL;
goto error;
}
if (0 != wifimgr_do_connect()) {
BTD("%s, connect fail\n", __func__);
res_result = RESULT_FAIL;
goto error;
} else {
return;
}
error:
data[0] = RESULT_SET_CONF_AND_CONNECT;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
void wifimgr_set_conf_and_interval(const void *buf)
{
BTD("%s\n", __func__);
wifi_config_type conf;
const u8_t *p = buf;
u16_t vlen = 0;
int ret = -1;
char data[2] = {0};
u8_t res_result = RESULT_SUCCESS;
u16_t bssid_len = 0;
u16_t pwd_len = 0;
u16_t ssid_len = 0;
memset(&conf, 0, sizeof(conf));
vlen = sys_get_le16(p);
p += 2;
BTD("%s, AllDateLen = 0x%x\n", __func__, vlen);
ssid_len = sys_get_le16(p);
p += 2;
BTD("%s, SsidDataLen = 0x%x\n", __func__, ssid_len);
memcpy(conf.ssid,p,ssid_len);
p+=ssid_len;
BTD("%s, ssid = %s\n", __func__, conf.ssid);
bssid_len = sys_get_le16(p);
p += 2;
BTD("%s, bSsidDataLen = 0x%x\n", __func__, bssid_len);
memcpy(conf.bssid,p,bssid_len);
p+=bssid_len;
for (int i = 0; i < bssid_len; i++) {
BTD("bssid = 0x%02x\n", conf.bssid[i]);
}
pwd_len = sys_get_le16(p);
p += 2;
BTD("%s, PsdDataLen = 0x%x\n", __func__, pwd_len);
memcpy(conf.passwd,p,pwd_len);
p+=pwd_len;
BTD("%s, passwd = %<PASSWORD>", __func__, conf.passwd);
strcpy(cur_wifi_status.passwd, conf.passwd);
conf.autorun = sys_get_le32(p);
p += 4;
BTD("%s, conf.autorun = %d\n", __func__, conf.autorun);
if (wifimgr_get_ctrl_ops()->set_conf) {
ret = wifimgr_get_ctrl_ops_cbs(get_wifimgr_cbs())->set_conf(WIFIMGR_IFACE_NAME_STA,
(ssid_len > 0 ? conf.ssid : NULL),
(bssid_len > 0 ? conf.bssid : NULL),
conf.security,
(pwd_len > 0 ? conf.passwd : ""),
conf.band,
conf.channel,
0,
conf.autorun);
} else {
BTD("%s, set_conf = NULL\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
if (0 != ret) {
BTD("%s, set_conf fail,error = %d\n", __func__,ret);
res_result = RESULT_FAIL;
goto error;
}
ret = wifimgr_check_wifi_status(WIFIMGR_IFACE_NAME_STA);
if (0 == ret) {
switch(cur_wifi_status.sta_status){
case WIFI_STA_STATUS_NODEV:
if (0 != wifimgr_do_open(WIFIMGR_IFACE_NAME_STA)) {
BTD("%s, open fail\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
break;
case WIFI_STA_STATUS_READY:
break;
case WIFI_STA_STATUS_CONNECTED:
if (0 != wifimgr_do_disconnect(1)) {
BTD("%s, STATUS_CONNECTED and do_disconnect fail\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
break;
case WIFI_STA_STATUS_SCANNING:
case WIFI_STA_STATUS_CONNECTING:
case WIFI_STA_STATUS_DISCONNECTING:
BTD("%s,status = %d ,wifi is busy\n", __func__, cur_wifi_status.sta_status);
res_result = RESULT_FAIL;
goto error;
break;
default:
BTD("%s,status = %d not found\n", __func__, cur_wifi_status.sta_status);
res_result = RESULT_FAIL;
goto error;
break;
}
}else {
res_result = RESULT_FAIL;
goto error;
}
error:
data[0] = RESULT_SET_CONF_AND_INTERVAL;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
void wifimgr_ctrl_iface_notify_connect(char result)
{
BTD("%s ,result = %d\n", __func__, result);
char data[2] = {0};
u8_t res_result = RESULT_SUCCESS;
if (0 == result) {
BTD("%s, connect succesfully\n", __func__);
res_result = RESULT_SUCCESS;
} else {
BTD("%s, connect failed\n", __func__);
res_result = RESULT_FAIL;
}
data[0] = RESULT_SET_CONF_AND_CONNECT;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
void wifimgr_ctrl_iface_notify_connect_timeout(void)
{
BTD("%s\n", __func__);
char data[2] = {0};
u8_t res_result = RESULT_FAIL;
data[0] = RESULT_SET_CONF_AND_CONNECT;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
void wifimgr_get_conf(const void *buf)
{
BTD("%s\n", __func__);
int ret = -1;
char data[2] = {0};
u8_t res_result = RESULT_SUCCESS;
ret = wifimgr_get_ctrl(WIFIMGR_IFACE_NAME_STA);
if (ret) {
BTD("%s: failed to get ctrl! %d\n", __func__, ret);
return;
}
if (wifimgr_get_ctrl_ops()->get_conf) {
ret = wifimgr_get_ctrl_ops_cbs(get_wifimgr_cbs())->get_conf(WIFIMGR_IFACE_NAME_STA);
} else {
BTD("%s, get_conf = NULL\n", __func__);
res_result = RESULT_FAIL;
}
wifimgr_release_ctrl(WIFIMGR_IFACE_NAME_STA);
if (0 != ret) {
BTD("%s, get_conf fail,err = %d\n", __func__,ret);
res_result = RESULT_FAIL;
} else {
return;
}
data[0] = RESULT_GET_CONF;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
void wifimgr_ctrl_iface_get_sta_conf_cb(char *ssid, char *bssid, char *passphrase,
unsigned char band, unsigned char channel,
enum wifimgr_security security, int autorun)
{
BTD("%s\n", __func__);
wifi_config_type conf;
u8_t res_result = RESULT_SUCCESS;
char data[255] = {0};
u16_t data_len = 0;
u16_t ssid_len = 0;
u16_t bssid_len = 0;
u16_t passwd_len = 0;
char *p = NULL;
int i;
if (ssid) {
ssid_len = strlen(ssid);
BTD("%s ,ssid = %s\n", __func__,ssid);
} else {
BTD("%s ,ssid = NULL\n", __func__);
ssid_len = 0;
}
if (passphrase) {
BTD("%s ,pwd = %s\n", __func__,passphrase);
passwd_len = strlen(passphrase);
} else {
BTD("%s ,pwd = NULL\n", __func__);
passwd_len = 0;
}
if (bssid) {
bssid_len = BSSID_LEN;
for (i = 0; i < bssid_len; i++) {
BTD("bssid = 0x%02x\n", bssid[i]);
}
} else {
BTD("%s ,bssid = NULL\n", __func__);
bssid_len = 0;
}
BTD("%s, band:%d, channel:%d\n", __func__, band, channel);
if ((ssid_len > MAX_SSID_LEN)
|| (bssid_len > BSSID_LEN)
|| (passwd_len > MAX_PSWD_LEN)) {
res_result = RESULT_FAIL;
data[0] = RESULT_GET_CONF;
data[1] = res_result;
BTD("%s ,len error\n", __func__);
wifi_manager_notify(data, 2);
return;
}
memset(&conf, 0, sizeof(conf));
memcpy(conf.ssid, ssid, ssid_len);
memcpy(conf.bssid, bssid, bssid_len);
memcpy(conf.passwd, <PASSWORD>, passwd_len);
data_len = 6 + ssid_len + bssid_len +passwd_len;
res_result = RESULT_SUCCESS;
p = data;
UINT8_TO_STREAM(p, RESULT_GET_CONF);
UINT8_TO_STREAM(p, res_result);
UINT16_TO_STREAM(p, data_len);
UINT16_TO_STREAM(p, ssid_len);
for (i = 0; i < ssid_len; i++) {
UINT8_TO_STREAM(p, conf.ssid[i]);
}
UINT16_TO_STREAM(p, bssid_len);
for (i = 0; i < bssid_len; i++) {
UINT8_TO_STREAM(p, conf.bssid[i]);
}
UINT16_TO_STREAM(p, passwd_len);
for (i = 0; i < passwd_len; i++) {
UINT8_TO_STREAM(p, conf.passwd[i]);
}
wifi_manager_notify(data, data_len + 4);
}
void wifimgr_ctrl_iface_get_ap_conf_cb(char *ssid, char *passphrase, unsigned char band,
unsigned char channel, unsigned char ch_width,
enum wifimgr_security security, int autorun)
{
BTD("%s\n", __func__);
wifi_config_type conf;
u8_t res_result = RESULT_SUCCESS;
char data[255] = {0};
u16_t data_len = 0;
u16_t ssid_len = 0;
u16_t bssid_len = 0;
u16_t passwd_len = 0;
char *p = NULL;
int i;
if (ssid) {
ssid_len = strlen(ssid);
BTD("%s ,ssid = %s\n", __func__,ssid);
} else {
BTD("%s ,ssid = NULL\n", __func__);
ssid_len = 0;
}
if (passphrase) {
BTD("%s ,pwd = %s\n", __func__,passphrase);
passwd_len = strlen(passphrase);
} else {
BTD("%s ,pwd = <PASSWORD>", __func__);
passwd_len = 0;
}
/*if (bssid) {
bssid_len = BSSID_LEN;
for (i = 0; i < bssid_len; i++) {
BTD("bssid = 0x%02x\n", bssid[i]);
}
} else {
BTD("%s ,bssid = NULL\n", __func__);
bssid_len = 0;
}*/
BTD("%s, band:%d, channel:%d\n", __func__, band, channel);
if ((ssid_len > MAX_SSID_LEN)
|| (bssid_len > BSSID_LEN)
|| (passwd_len > MAX_PSWD_LEN)) {
res_result = RESULT_FAIL;
data[0] = RESULT_GET_CONF;
data[1] = res_result;
BTD("%s ,len error\n", __func__);
wifi_manager_notify(data, 2);
return;
}
memset(&conf, 0, sizeof(conf));
memcpy(conf.ssid, ssid, ssid_len);
/*memcpy(conf.bssid, bssid, bssid_len);*/
memcpy(conf.passwd, passphrase, passwd_len);
data_len = 6 + ssid_len + bssid_len +passwd_len;
res_result = RESULT_SUCCESS;
p = data;
UINT8_TO_STREAM(p, RESULT_GET_CONF);
UINT8_TO_STREAM(p, res_result);
UINT16_TO_STREAM(p, data_len);
UINT16_TO_STREAM(p, ssid_len);
for (i = 0; i < ssid_len; i++) {
UINT8_TO_STREAM(p, conf.ssid[i]);
}
UINT16_TO_STREAM(p, bssid_len);
for (i = 0; i < bssid_len; i++) {
UINT8_TO_STREAM(p, conf.bssid[i]);
}
UINT16_TO_STREAM(p, passwd_len);
for (i = 0; i < passwd_len; i++) {
UINT8_TO_STREAM(p, conf.passwd[i]);
}
wifi_manager_notify(data, data_len + 4);
}
void wifimgr_get_status(const void *buf)
{
BTD("%s\n", __func__);
int ret = -1;
char data[200] = {0};
u8_t res_result = RESULT_SUCCESS;
int data_len = 2;
char *p = NULL;
int i;
p = &data[2];
ret = wifimgr_check_wifi_status(WIFIMGR_IFACE_NAME_STA);
if (0 != ret) {
data_len = 2;
res_result = RESULT_FAIL;
goto error;
} else {
UINT8_TO_STREAM(p, cur_wifi_status.sta_status);
for (i = 0; i < BSSID_LEN; i++) {
UINT8_TO_STREAM(p, cur_wifi_status.sta_mac[i]);
}
data_len += 7;
UINT16_TO_STREAM(p, cur_wifi_status.u.sta.h_ssid_len);
if (0 != cur_wifi_status.u.sta.h_ssid_len) {
for (i = 0; i < cur_wifi_status.u.sta.h_ssid_len; i++) {
UINT8_TO_STREAM(p, cur_wifi_status.u.sta.host_ssid[i]);
}
}
data_len += (2 + cur_wifi_status.u.sta.h_ssid_len);
UINT16_TO_STREAM(p, cur_wifi_status.u.sta.h_bssid_len);
if (0 != cur_wifi_status.u.sta.h_bssid_len) {
for (i = 0; i < cur_wifi_status.u.sta.h_bssid_len; i++) {
UINT8_TO_STREAM(p, cur_wifi_status.u.sta.host_bssid[i]);
}
}
data_len += (2 + cur_wifi_status.u.sta.h_bssid_len);
}
ret = wifimgr_check_wifi_status(WIFIMGR_IFACE_NAME_AP);
if (0 != ret) {
data_len = 2;
res_result = RESULT_FAIL;
goto error;
} else {
UINT8_TO_STREAM(p, cur_wifi_status.ap_status);
for (i = 0; i < BSSID_LEN; i++) {
UINT8_TO_STREAM(p, cur_wifi_status.ap_mac[i]);
}
data_len += 7;
UINT16_TO_STREAM(p, cur_wifi_status.u.ap.sta_nr * BSSID_LEN);
if (0 != cur_wifi_status.u.ap.sta_nr) {
memcpy(p, &cur_wifi_status.u.ap.sta_mac_addrs[0][0], BSSID_LEN * cur_wifi_status.u.ap.sta_nr);
}
data_len += (2 + BSSID_LEN * cur_wifi_status.u.ap.sta_nr);
}
error:
data[0] = RESULT_GET_STATUS;
data[1] = res_result;
wifi_manager_notify(data, data_len);
}
void wifimgr_ctrl_iface_get_sta_status_cb(char status, char *own_mac, char *host_bssid,
signed char host_rssi)
{
BTD("%s, status:%d, signal:%d\n", __func__,status,host_rssi);
BTD("%s, mac = %02X:%02X:%02X:%02X:%02X:%02X\n", __func__,own_mac[0],own_mac[1],own_mac[2],own_mac[3],own_mac[4],own_mac[5]);
cur_wifi_status.sta_status = status;
memcpy(cur_wifi_status.sta_mac, own_mac, 6);
if (WIFI_STA_STATUS_CONNECTED == status) {
/*if (host_ssid) {
memset(cur_wifi_status.u.sta.host_ssid, 0, sizeof(cur_wifi_status.u.sta.host_ssid));
memcpy(cur_wifi_status.u.sta.host_ssid, host_ssid, strlen(host_ssid));
cur_wifi_status.u.sta.h_ssid_len = strlen(host_ssid);
BTD("%s ,host_ssid = %s\n", __func__,host_ssid);
} else {
cur_wifi_status.u.sta.h_ssid_len = 0;
BTD("%s ,host_ssid = NULL\n", __func__);
}*/
if (host_bssid) {
memset(cur_wifi_status.u.sta.host_bssid, 0, sizeof(cur_wifi_status.u.sta.host_bssid));
memcpy(cur_wifi_status.u.sta.host_bssid, host_bssid, BSSID_LEN);
cur_wifi_status.u.sta.h_bssid_len = BSSID_LEN;
BTD("%s, host_bssid = %02X:%02X:%02X:%02X:%02X:%02X\n", __func__,host_bssid[0],host_bssid[1],host_bssid[2],host_bssid[3],host_bssid[4],host_bssid[5]);
} else {
cur_wifi_status.u.sta.h_bssid_len = 0;
BTD("%s ,host_bssid = NULL\n", __func__);
}
} else {
cur_wifi_status.u.sta.h_ssid_len = 0;
cur_wifi_status.u.sta.h_bssid_len = 0;
}
k_sem_give(&get_status_sem);
}
void wifimgr_ctrl_iface_get_ap_status_cb(char status, char *own_mac,
unsigned char sta_nr, char sta_mac_addrs[][6],
unsigned char acl_nr, char acl_mac_addrs[][6])
{
BTD("%s, status:%d, sta_nr:%d\n", __func__,status,sta_nr);
BTD("%s, mac = %02X:%02X:%02X:%02X:%02X:%02X\n", __func__,own_mac[0],own_mac[1],own_mac[2],own_mac[3],own_mac[4],own_mac[5]);
cur_wifi_status.ap_status = status;
memcpy(cur_wifi_status.ap_mac, own_mac, 6);
if (WIFI_AP_STATUS_STARTED == status) {
memset(cur_wifi_status.u.ap.sta_mac_addrs,0,sizeof(cur_wifi_status.u.ap.sta_mac_addrs));
cur_wifi_status.u.ap.sta_nr = (sta_nr > WIFI_MAX_STA_NR ? WIFI_MAX_STA_NR : sta_nr);
memcpy(&cur_wifi_status.u.ap.sta_mac_addrs[0][0], &sta_mac_addrs[0][0], BSSID_LEN * cur_wifi_status.u.ap.sta_nr);
} else {
cur_wifi_status.u.ap.sta_nr = 0;
}
k_sem_give(&get_status_sem);
}
void wifimgr_open(const void *buf)
{
BTD("%s\n", __func__);
char data[2] = {0};
u8_t res_result = RESULT_SUCCESS;
if (0 != wifimgr_do_open(WIFIMGR_IFACE_NAME_STA)) {
BTD("%s, open fail\n", __func__);
res_result = RESULT_FAIL;
} else {
BTD("%s, open success\n", __func__);
res_result = RESULT_SUCCESS;
}
data[0] = RESULT_OPEN;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
void wifimgr_close(const void *buf)
{
BTD("%s\n", __func__);
char data[2] = {0};
u8_t res_result = RESULT_SUCCESS;
if (0 != wifimgr_do_close(WIFIMGR_IFACE_NAME_STA)) {
BTD("%s, close fail\n", __func__);
res_result = RESULT_FAIL;
} else {
BTD("%s, close success\n", __func__);
res_result = RESULT_SUCCESS;
}
data[0] = RESULT_CLOSE;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
void wifimgr_scan(const void *buf)
{
BTD("%s\n", __func__);
int ret = -1;
char data[2] = {0};
u8_t res_result = RESULT_SUCCESS;
ret = wifimgr_do_scan(SCAN_NUM);
if (0 != ret) {
res_result = RESULT_FAIL;
}
data[0] = RESULT_SCAN_DONE;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
extern char *net_byte_to_hex(char *ptr, u8_t byte, char base, bool pad);
void wifimgr_start_ap(const void *buf)
{
BTD("%s\n", __func__);
char data[2] = {0};
char *ptr, mac_nic[7] = {0};
char ssid[MAX_SSID_LEN+1] = "UNISOC_";
char *passwd;
char security;
u8_t res_result = RESULT_SUCCESS;
int i;
int ret = -1;
u8_t data_len = 0;
const u8_t *p = buf;
data_len = sys_get_le16(p);
BTD("%s, data_len = %d\n", __func__, data_len);
p += 2;
if (1 == data_len && 0 == p[0]) {
ptr = mac_nic;
for (i = 0; i < 3; i++) {
net_byte_to_hex(ptr, cur_wifi_status.ap_mac[3 + i], 'A', true);
ptr += 2;
}
strcat(ssid, mac_nic);
} else {
memset(ssid, 0, sizeof(ssid));
memcpy(ssid, p, data_len);
}
if (!strlen(cur_wifi_status.passwd)) {
passwd = "";
security = WIFIMGR_SECURITY_OPEN;
} else {
passwd = cur_wifi_status.passwd;
security = WIFIMGR_SECURITY_PSK;
}
if (wifimgr_get_ctrl_ops()->set_conf) {
ret = wifimgr_get_ctrl_ops_cbs(get_wifimgr_cbs())->set_conf(WIFIMGR_IFACE_NAME_AP,
ssid,
NULL,
security,
passwd,
0, 0, 0,
0);
/* Set channel: 0 to tell the firmware using STA channle */
} else {
BTD("%s, set_conf = NULL\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
if (0 != ret) {
BTD("%s, set_conf fail,error = %d\n", __func__,ret);
res_result = RESULT_FAIL;
goto error;
}
if (0 != wifimgr_do_open(WIFIMGR_IFACE_NAME_AP)) {
BTD("%s, open fail\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
ret = wifimgr_get_ctrl(WIFIMGR_IFACE_NAME_AP);
if (ret) {
BTD("%s: failed to get ctrl! %d\n", __func__, ret);
goto error;
}
if (wifimgr_get_ctrl_ops()->start_ap) {
ret = wifimgr_get_ctrl_ops()->start_ap();
} else {
BTD("%s, start_ap = NULL\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
wifimgr_release_ctrl(WIFIMGR_IFACE_NAME_AP);
if (0 != ret) {
BTD("%s, start_ap fail,error = %d\n", __func__,ret);
res_result = RESULT_FAIL;
goto error;
}
error:
data[0] = RESULT_START_AP;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
void wifimgr_stop_ap(const void *buf)
{
BTD("%s\n", __func__);
char data[2] = {0};
u8_t res_result = RESULT_SUCCESS;
int ret = -1;
ret = wifimgr_get_ctrl(WIFIMGR_IFACE_NAME_AP);
if (ret) {
BTD("%s: failed to get ctrl! %d\n", __func__, ret);
goto error;
}
if (wifimgr_get_ctrl_ops()->stop_ap) {
ret = wifimgr_get_ctrl_ops()->stop_ap();
} else {
BTD("%s, stop_ap = NULL\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
wifimgr_release_ctrl(WIFIMGR_IFACE_NAME_AP);
if (0 != ret) {
BTD("%s, stop_ap fail,error = %d\n", __func__,ret);
res_result = RESULT_FAIL;
goto error;
}
if (0 != wifimgr_do_close(WIFIMGR_IFACE_NAME_AP)) {
BTD("%s, close fail\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
error:
data[0] = RESULT_STOP_AP;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
void wifimgr_set_mac_acl(const void *buf)
{
BTD("%s\n", __func__);
int ret = -1;
char data[20] = {0};
u8_t data_len = 0;
char station_mac[BSSID_LEN+1] = {0};
u8_t res_result = RESULT_SUCCESS;
u16_t vlen = 0;
char *pmac = NULL;
u8_t acl_subcmd = 0;
u8_t bssid_len = 0;
const u8_t *p = buf;
vlen = sys_get_le16(p);
p += 2;
BTD("%s, AllDateLen = 0x%x\n", __func__, vlen);
bssid_len = sys_get_le16(p);
BTD("%s, bssid_len = %d\n", __func__, bssid_len);
if (BSSID_LEN != bssid_len && 1 != bssid_len) {
BTD("%s, error! station mac len = %d\n", __func__, bssid_len);
res_result = RESULT_FAIL;
goto error_1;
} else if (BSSID_LEN == bssid_len) {
p += 2;
memcpy(station_mac, p, bssid_len);
}
pmac = bssid_len == BSSID_LEN ? station_mac : NULL;
p += bssid_len;
acl_subcmd = p[0];
p += 1;
BTD("%s, acl_subcmd = %d\n", __func__, acl_subcmd);
if (acl_subcmd <= 0) {
BTD("%s: failed to get acl_subcmd! %d\n", __func__, acl_subcmd);
res_result = RESULT_FAIL;
goto error_1;
}
ret = wifimgr_get_ctrl(WIFIMGR_IFACE_NAME_AP);
if (ret) {
BTD("%s: failed to get ctrl! %d\n", __func__, ret);
goto error_2;
}
if (wifimgr_get_ctrl_ops()->set_mac_acl) {
ret = wifimgr_get_ctrl_ops()->set_mac_acl((char)acl_subcmd, pmac);
} else {
BTD("%s, set_mac_acl = NULL\n", __func__);
res_result = RESULT_FAIL;
goto error_2;
}
BTD("%s, set_mac_acl ret = %d\n", __func__,ret);
if (0 != ret) {
BTD("%s, set_mac_acl fail,err = %d\n", __func__,ret);
res_result = RESULT_FAIL;
} else {
BTD("%s, set_mac_acl fail,err = %d\n", __func__, ret);
res_result = RESULT_SUCCESS;
}
error_2:
wifimgr_release_ctrl(WIFIMGR_IFACE_NAME_AP);
error_1:
if (!pmac) {
BTD("pmac = NULL\n");
res_result = RESULT_FAIL;
data_len = 2;
goto error;
}
BTD("res_result : %d, mac : %02x:%02x:%02x:%02x:%02x:%02x\n", res_result, pmac[0], pmac[1], pmac[2], pmac[3], pmac[4], pmac[5]);
data[2] = acl_subcmd;
memcpy(&data[3], pmac, BSSID_LEN);
res_result = RESULT_SUCCESS;
data_len = 9;
error:
data[0] = RESULT_MAC_ACL_REPORT;
data[1] = res_result;
wifi_manager_notify(data, data_len);
}
int wifimgr_do_scan(int retry_num)
{
//before connect need scan
BTD("%s\n", __func__);
int ret = -1;
int i =0;
for (i = 0, scan_result = 0; (i < retry_num) && (1 != scan_result); i++) {
BTD("%s,do the %dth scan\n", __func__,i+1);
ret = wifimgr_get_ctrl(WIFIMGR_IFACE_NAME_STA);
if (ret) {
BTD("%s: failed to get ctrl! %d\n", __func__, ret);
goto error;
}
if(wifimgr_get_ctrl_ops()->scan) {
ret = wifimgr_get_ctrl_ops_cbs(get_wifimgr_cbs())->scan();
} else {
BTD("%s, scan = NULL\n", __func__);
goto error;
}
wifimgr_release_ctrl(WIFIMGR_IFACE_NAME_STA);
if (0 != ret) {
BTD("%s, scan fail,err = %d\n", __func__,ret);
goto error;
} else {
if (0 != k_sem_take(&scan_sem, SCAN_TIMEOUT)) {
BTD("%s, take scan_sem fail\n", __func__);
scan_result = 0;
ret = -1;
} else {
ret = ((1 == scan_result) ? 0 : -1);
}
}
}
error:
return ret;
}
int wifimgr_do_connect(void)
{
BTD("%s\n", __func__);
int ret = -1;
ret = wifimgr_get_ctrl(WIFIMGR_IFACE_NAME_STA);
if (ret) {
BTD("%s: failed to get ctrl! %d\n", __func__, ret);
goto error;
}
if (wifimgr_get_ctrl_ops()->connect) {
ret = wifimgr_get_ctrl_ops_cbs(get_wifimgr_cbs())->connect();
} else {
BTD("%s, connect = NULL\n", __func__);
goto error;
}
wifimgr_release_ctrl(WIFIMGR_IFACE_NAME_STA);
if (0 != ret) {
BTD("%s, connect fail,err = %d\n", __func__,ret);
goto error;
} else {
ret = 0;
goto error;
}
error:
return ret;
}
int wifimgr_do_disconnect(u8_t flags)
{
BTD("%s\n", __func__);
int ret = -1;
ret = wifimgr_get_ctrl(WIFIMGR_IFACE_NAME_STA);
if (ret) {
BTD("%s: failed to get ctrl! %d\n", __func__, ret);
goto error;
}
if(wifimgr_get_ctrl_ops()->disconnect) {
ret = wifimgr_get_ctrl_ops_cbs(get_wifimgr_cbs())->disconnect();
} else {
BTD("%s, disconnect = NULL\n", __func__);
goto error;
}
wifimgr_release_ctrl(WIFIMGR_IFACE_NAME_STA);
if (0 != ret) {
BTD("%s, disconnect fail-1,err = %d\n", __func__,ret);
goto error;
} else {
if (1 == flags) {
wait_disconnect_done = 1;
k_sem_take(&disconnect_sem, K_FOREVER);
if (-1 == disconnect_result) {
BTD("%s, disconnect fail-2\n", __func__);
ret = -1;
} else {
ret = 0;
}
wait_disconnect_done = 0;
} else {
ret = 0;
}
goto error;
}
error:
return ret;
}
int wifimgr_do_open(char *iface_name)
{
BTD("%s\n", __func__);
int ret = -1;
ret = wifimgr_get_ctrl(iface_name);
if (ret) {
BTD("%s: failed to get ctrl! %d\n", __func__, ret);
goto error;
}
if (wifimgr_get_ctrl_ops()->open) {
ret = wifimgr_get_ctrl_ops()->open(iface_name);
} else {
BTD("%s, open = NULL\n", __func__);
goto error;
}
wifimgr_release_ctrl(iface_name);
if (0 != ret) {
BTD("%s, open fail,err = %d\n", __func__,ret);
goto error;
} else {
ret = 0;
goto error;
}
error:
return ret;
}
int wifimgr_do_close(char *iface_name)
{
BTD("%s\n", __func__);
int ret = -1;
ret = wifimgr_get_ctrl(iface_name);
if (ret) {
BTD("%s: failed to get ctrl! %d\n", __func__, ret);
goto error;
}
if (wifimgr_get_ctrl_ops()->close) {
ret = wifimgr_get_ctrl_ops()->close(iface_name);
} else {
BTD("%s, close = NULL\n", __func__);
goto error;
}
wifimgr_release_ctrl(iface_name);
if (0 != ret) {
BTD("%s, close fail,err = %d\n", __func__,ret);
goto error;
} else {
ret = 0;
goto error;
}
error:
return ret;
}
void wifimgr_disable_bt(const void *buf)
{
struct net_buf *buf_cmd;
int size;
char data[256] = {0};
BTD("%s, ->bt_unpair\n",__func__);
bt_unpair(BT_ID_DEFAULT, NULL);
BTD("%s, ->send disable\n",__func__);
size = get_disable_buf(data);
buf_cmd = bt_hci_cmd_create(HCI_OP_ENABLE_CMD, size);
net_buf_add_mem(buf_cmd, data, size);
bt_hci_cmd_send_sync(HCI_OP_ENABLE_CMD, buf_cmd, NULL);
BTD("%s, ->disable bt_irq\n",__func__);
sprd_bt_irq_disable();
}
void wifimgr_disconnect(const void *buf)
{
BTD("%s\n", __func__);
char data[2] = {0};
u8_t res_result = RESULT_SUCCESS;
if (0 != wifimgr_do_disconnect(0)) {
BTD("%s, disconnect fail\n", __func__);
res_result = RESULT_FAIL;
} else {
return;
}
data[0] = RESULT_DISCONNECT;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
void wifimgr_ctrl_iface_notify_disconnect(char reason)
{
BTD("%s ,reason = %d\n", __func__,reason);
char data[2] = {0};
u8_t res_result = RESULT_SUCCESS;
data[0] = RESULT_DISCONNECT;
data[1] = res_result;
if (1 == wait_disconnect_done) {
disconnect_result = 0;
k_sem_give(&disconnect_sem);
} else {
wifi_manager_notify(data, sizeof(data));
}
}
void wifimgr_ctrl_iface_notify_disconnect_timeout(void)
{
BTD("%s \n", __func__);
char data[2] = {0};
u8_t res_result = RESULT_FAIL;
data[0] = RESULT_DISCONNECT;
data[1] = res_result;
if (1 == wait_disconnect_done) {
disconnect_result = -1;
k_sem_give(&disconnect_sem);
} else {
wifi_manager_notify(data, sizeof(data));
}
}
static ssize_t wifi_manager_write(struct bt_conn *conn, const struct bt_gatt_attr *attr,
const void *buf, u16_t len, u16_t offset,
u8_t flags)
{
u8_t op_code = 0;
u8_t *value = attr->user_data;
static u16_t total_len = 0;
BTD("%s, len = %d, offset = %d, flags = %d\n", __func__,len,offset,flags);
//cur_conn = conn;
if (flags & BT_GATT_WRITE_FLAG_PREPARE) {
return 0;
}
if (offset + len > sizeof(wifimgr_long_value)) {
return BT_GATT_ERR(BT_ATT_ERR_INVALID_OFFSET);
}
if (0 == offset) {
memset(value, 0, sizeof(wifimgr_long_value));
total_len = sys_get_le16((u8_t *)buf + OPCODE_BYTE) + OPCODE_BYTE + LEN_BYTE;
BTD("%s,total_len = %d\n", __func__, total_len);
}
memcpy(value + offset, buf, len);
total_len -= len;
if (0 != total_len)
return len;
op_code = (u8_t)(*(value));
BTD("%s,op_code=0x%x\n", __func__,op_code);
switch(op_code) {
case CMD_SET_CONF_AND_CONNECT:
wifimgr_set_conf_and_connect(&value[1]);
break;
case CMD_GET_CONF:
wifimgr_get_conf(&value[1]);
break;
case CMD_GET_STATUS:
wifimgr_get_status(&value[1]);
break;
case CMD_OPEN:
wifimgr_open(&value[1]);
break;
case CMD_CLOSE:
wifimgr_close(&value[1]);
break;
case CMD_DISCONNECT:
wifimgr_disconnect(&value[1]);
break;
case CMD_START_AP:
wifimgr_start_ap(&value[1]);
break;
case CMD_DISABLE_BT:
wifimgr_disable_bt(&value[1]);
break;
case CMD_SCAN:
wifimgr_scan(&value[1]);
break;
case CMD_STOP_AP:
wifimgr_stop_ap(&value[1]);
break;
case CMD_SET_MAC_ACL:
wifimgr_set_mac_acl(&value[1]);
break;
case CMD_SET_INTERVAL:
wifimgr_set_conf_and_interval(&value[1]);
break;
default:
BTD("%s,op_code=0x%x not found\n", __func__,op_code);
break;
}
return len;
}
/* WiFi Manager Service Declaration */
static struct bt_gatt_attr attrs[] = {
BT_GATT_PRIMARY_SERVICE(&wifimgr_service_uuid),
BT_GATT_CHARACTERISTIC(&wifimgr_char_uuid.uuid, BT_GATT_CHRC_WRITE|BT_GATT_CHRC_NOTIFY,
BT_GATT_PERM_READ|BT_GATT_PERM_WRITE|BT_GATT_PERM_PREPARE_WRITE, NULL, wifi_manager_write,
&wifimgr_long_value),
BT_GATT_CCC(wifimgr_ccc_cfg, wifimgr_ccc_cfg_changed),
};
static struct bt_gatt_service wifi_manager_svc = BT_GATT_SERVICE(attrs);
void wifi_manager_service_init(void)
{
BTD("%s\n", __func__);
bt_gatt_service_register(&wifi_manager_svc);
k_sem_init(&get_status_sem, 0, 1);
k_sem_init(&scan_sem, 0, 1);
k_sem_init(&disconnect_sem, 0, 1);
}
void wifi_manager_notify(const void *data, u16_t len)
{
BTD("%s, len = %d\n", __func__, len);
if (!wifimgr_is_enabled) {
BTD("%s, rx is not enabled\n", __func__);
return;
}
/*
if(len > bt_gatt_get_mtu(cur_conn)){
BTD("%s, len > MTU\n", __func__);
do_gatt_exchange_mtu();
}*/
bt_gatt_notify(NULL, &attrs[2], data, len);
}
void wifimgr_ctrl_iface_notify_scan_res(char *ssid, char *bssid, unsigned char band,
unsigned char channel, signed char signal,
enum wifimgr_security security)
{
BTD("%s\n", __func__);
wifi_scan_res_type scan_res;
u8_t res_result = RESULT_SUCCESS;
char data[255] = {0};
u16_t data_len = 0;
u16_t ssid_len = 0;
u16_t bssid_len = 0;
char *p = NULL;
int i;
if (ssid) {
ssid_len = strlen(ssid);
BTD("ssid = %s\n", ssid);
} else {
BTD("ssid = NULL\n");
ssid_len = 0;
}
if (bssid) {
bssid_len = BSSID_LEN;
BTD("bssid = %02x:%02x:%02x:%02x:%02x:%02x\n", bssid[0], bssid[1], bssid[2], bssid[3], bssid[4], bssid[5]);
} else {
BTD("%s ,bssid = NULL\n", __func__);
bssid_len = 0;
}
BTD("band:%d, channel:%d, signal:%d\n", band, channel, signal);
if ((ssid_len > MAX_SSID_LEN)
|| (bssid_len > BSSID_LEN)) {
res_result = RESULT_FAIL;
data[0] = RESULT_SCAN_DONE;
data[1] = res_result;
BTD("%s ,len error\n", __func__);
wifi_manager_notify(data, 2);
return;
}
memset(&scan_res, 0, sizeof(scan_res));
memcpy(scan_res.ssid, ssid, ssid_len);
memcpy(scan_res.bssid, bssid, bssid_len);
scan_res.band = band;
scan_res.channel = channel;
scan_res.signal = signal;
data_len = 4 + ssid_len + bssid_len;
res_result = RESULT_SUCCESS;
p = data;
UINT8_TO_STREAM(p, RESULT_SCAN_REPORT);
UINT8_TO_STREAM(p, res_result);
UINT16_TO_STREAM(p, data_len);
UINT16_TO_STREAM(p, ssid_len);
for (i = 0; i < ssid_len; i++) {
UINT8_TO_STREAM(p, scan_res.ssid[i]);
}
UINT16_TO_STREAM(p, bssid_len);
for (i = 0; i < bssid_len; i++) {
UINT8_TO_STREAM(p, scan_res.bssid[i]);
}
wifi_manager_notify(data, data_len + 4);
}
void wifimgr_ctrl_iface_notify_scan_done(char result)
{
BTD("%s,result = %d\n", __func__,result);
scan_result = result;
k_sem_give(&scan_sem);
}
void wifimgr_ctrl_iface_notify_scan_timeout(void)
{
BTD("%s\n", __func__);
scan_result = 0;
k_sem_give(&scan_sem);
}
void wifimgr_ctrl_iface_notify_new_station(char status, char *mac)
{
BTD("%s\n", __func__);
u8_t res_result = RESULT_SUCCESS;
char data[20] = {0};
u8_t data_len = 0;
if (!mac) {
BTD("mac = NULL\n");
res_result = RESULT_FAIL;
data_len = 2;
goto error;
}
BTD("status : %d, mac : %02x:%02x:%02x:%02x:%02x:%02x\n", status, mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
data[2] = status;
memcpy(&data[3], mac, BSSID_LEN);
res_result = RESULT_SUCCESS;
data_len = 9;
error:
data[0] = RESULT_STATION_REPORT;
data[1] = res_result;
wifi_manager_notify(data, data_len);
}
/*
void wifimgr_ctrl_iface_notify_set_mac_acl_timeout(void)
{
BTD("%s \n", __func__);
char data[2] = {0};
u8_t res_result = RESULT_FAIL;
data[0] = RESULT_STATION_REPORT;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
*/
static struct wifimgr_ctrl_cbs wifi_ctrl_cbs = {
.get_sta_conf_cb = wifimgr_ctrl_iface_get_sta_conf_cb,
.get_ap_conf_cb = wifimgr_ctrl_iface_get_ap_conf_cb,
.get_sta_status_cb = wifimgr_ctrl_iface_get_sta_status_cb,
.get_ap_status_cb = wifimgr_ctrl_iface_get_ap_status_cb,
.notify_scan_res = wifimgr_ctrl_iface_notify_scan_res,
.notify_scan_done = wifimgr_ctrl_iface_notify_scan_done,
.notify_connect = wifimgr_ctrl_iface_notify_connect,
.notify_disconnect = wifimgr_ctrl_iface_notify_disconnect,
.notify_scan_timeout = wifimgr_ctrl_iface_notify_scan_timeout,
.notify_connect_timeout = wifimgr_ctrl_iface_notify_connect_timeout,
.notify_disconnect_timeout = wifimgr_ctrl_iface_notify_disconnect_timeout,
.notify_new_station = wifimgr_ctrl_iface_notify_new_station,
};
struct wifimgr_ctrl_cbs *get_wifimgr_cbs(void)
{
return &wifi_ctrl_cbs;
}
| #include <zephyr/types.h>
#include <stddef.h>
#include <string.h>
#include <errno.h>
#include <misc/printk.h>
#include <misc/byteorder.h>
#include <zephyr.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
#include <bluetooth/conn.h>
#include <bluetooth/uuid.h>
#include <bluetooth/gatt.h>
#include <net/wifimgr_api.h>
#include "host/hci_core.h"
#include "wifi_manager_service.h"
#include <uki_utlis.h>
#define UINT16_TO_STREAM(p, u16) {*(p)++ = (uint8_t)(u16); *(p)++ = (uint8_t)((u16) >> 8);}
#define UINT8_TO_STREAM(p, u8) {*(p)++ = (uint8_t)(u8);}
#define GET_STATUS_TIMEOUT K_SECONDS(5)
#define SCAN_TIMEOUT K_SECONDS(10)
#define SCAN_NUM 1
#define HCI_OP_ENABLE_CMD 0xFCA1
static struct bt_uuid_128 wifimgr_service_uuid = BT_UUID_INIT_128(
0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80,
0x00, 0x10, 0x00, 0x00, 0xa5, 0xff, 0x00, 0x00);
static struct bt_uuid_128 wifimgr_char_uuid = BT_UUID_INIT_128(
0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80,
0x00, 0x10, 0x00, 0x00, 0xa6, 0xff, 0x00, 0x00);
static u8_t wifimgr_long_value[256] = {0};
static struct bt_gatt_ccc_cfg wifimgr_ccc_cfg[BT_GATT_CCC_MAX] = {};
static u8_t wifimgr_is_enabled;
static struct k_sem get_status_sem;
static struct k_sem scan_sem;
static wifi_status_type cur_wifi_status = {};
static u8_t wait_disconnect_done = 0;
static int disconnect_result = -1;
static struct k_sem disconnect_sem;
struct wifimgr_ctrl_cbs *get_wifimgr_cbs(void);
static int scan_result = 0;
extern int get_disable_buf(void *buf);
extern void sprd_bt_irq_disable(void);
static void wifimgr_ccc_cfg_changed(const struct bt_gatt_attr *attr, u16_t value)
{
BTD("%s\n", __func__);
wifimgr_is_enabled = (value == BT_GATT_CCC_NOTIFY) ? 1 : 0;
}
int wifimgr_check_wifi_status(char *iface_name)
{
BTD("%s, iface_name = %s\n", __func__,iface_name);
int ret = -1;
ret = wifimgr_get_ctrl(iface_name);
if (ret) {
BTD("%s: failed to get ctrl! %d\n", __func__, ret);
goto error;
}
if (wifimgr_get_ctrl_ops()->get_status) {
ret = wifimgr_get_ctrl_ops_cbs(get_wifimgr_cbs())->get_status(iface_name);
} else {
BTD("%s, get_status = NULL\n", __func__);
goto error;
}
wifimgr_release_ctrl(iface_name);
if (0 != ret) {
BTD("%s, get_status fail,err = %d\n", __func__,ret);
goto error;
} else {
if (0 != k_sem_take(&get_status_sem, GET_STATUS_TIMEOUT)) {
BTD("%s, take get_status_sem fail\n", __func__);
ret = -1;
} else {
BTD("%s, get_status success\n", __func__);
ret = 0;
}
}
error:
return ret;
}
void FUNC_0(const void *buf)
{
BTD("%s\n", __func__);
wifi_config_type conf;
const u8_t *p = buf;
u16_t vlen = 0;
int ret = -1;
char data[2] = {0};
u8_t res_result = RESULT_SUCCESS;
u16_t bssid_len = 0;
u16_t pwd_len = 0;
u16_t ssid_len = 0;
memset(&conf, 0, sizeof(conf));
vlen = sys_get_le16(p);
p += 2;
BTD("%s, AllDateLen = 0x%x\n", __func__, vlen);
ssid_len = sys_get_le16(p);
p += 2;
BTD("%s, SsidDataLen = 0x%x\n", __func__, ssid_len);
memcpy(conf.ssid,p,ssid_len);
p+=ssid_len;
BTD("%s, ssid = %s\n", __func__, conf.ssid);
bssid_len = sys_get_le16(p);
p += 2;
BTD("%s, bSsidDataLen = 0x%x\n", __func__, bssid_len);
memcpy(conf.bssid,p,bssid_len);
p+=bssid_len;
for (int i = 0; i < bssid_len; i++) {
BTD("bssid = 0x%02x\n", conf.bssid[i]);
}
pwd_len = sys_get_le16(p);
p += 2;
BTD("%s, PsdDataLen = 0x%x\n", __func__, pwd_len);
memcpy(conf.passwd,p,pwd_len);
p+=pwd_len;
BTD("%s, passwd = %s\n", __func__, conf.passwd);
FUNC_1(cur_wifi_status.passwd, conf.passwd);
if (wifimgr_get_ctrl_ops()->set_conf) {
ret = wifimgr_get_ctrl_ops_cbs(get_wifimgr_cbs())->set_conf(WIFIMGR_IFACE_NAME_STA,
(ssid_len > 0 ? conf.ssid : NULL),
(bssid_len > 0 ? conf.bssid : NULL),
conf.security,
(pwd_len > 0 ? conf.passwd : ""),
conf.band,
conf.channel,
0,
conf.autorun);
} else {
BTD("%s, set_conf = NULL\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
if (0 != ret) {
BTD("%s, set_conf fail,error = %d\n", __func__,ret);
res_result = RESULT_FAIL;
goto error;
}
ret = wifimgr_check_wifi_status(WIFIMGR_IFACE_NAME_STA);
if (0 == ret) {
switch(cur_wifi_status.sta_status){
case WIFI_STA_STATUS_NODEV:
if (0 != wifimgr_do_open(WIFIMGR_IFACE_NAME_STA)) {
BTD("%s, open fail\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
break;
case WIFI_STA_STATUS_READY:
break;
case WIFI_STA_STATUS_CONNECTED:
if (0 != wifimgr_do_disconnect(1)) {
BTD("%s, STATUS_CONNECTED and do_disconnect fail\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
break;
case VAR_0:
case WIFI_STA_STATUS_CONNECTING:
case WIFI_STA_STATUS_DISCONNECTING:
BTD("%s,status = %d ,wifi is busy\n", __func__, cur_wifi_status.sta_status);
res_result = RESULT_FAIL;
goto error;
break;
default:
BTD("%s,status = %d not found\n", __func__, cur_wifi_status.sta_status);
res_result = RESULT_FAIL;
goto error;
break;
}
}else {
res_result = RESULT_FAIL;
goto error;
}
if (0 != wifimgr_do_connect()) {
BTD("%s, connect fail\n", __func__);
res_result = RESULT_FAIL;
goto error;
} else {
return;
}
error:
data[0] = RESULT_SET_CONF_AND_CONNECT;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
void wifimgr_set_conf_and_interval(const void *buf)
{
BTD("%s\n", __func__);
wifi_config_type conf;
const u8_t *p = buf;
u16_t vlen = 0;
int ret = -1;
char data[2] = {0};
u8_t res_result = RESULT_SUCCESS;
u16_t bssid_len = 0;
u16_t pwd_len = 0;
u16_t ssid_len = 0;
memset(&conf, 0, sizeof(conf));
vlen = sys_get_le16(p);
p += 2;
BTD("%s, AllDateLen = 0x%x\n", __func__, vlen);
ssid_len = sys_get_le16(p);
p += 2;
BTD("%s, SsidDataLen = 0x%x\n", __func__, ssid_len);
memcpy(conf.ssid,p,ssid_len);
p+=ssid_len;
BTD("%s, ssid = %s\n", __func__, conf.ssid);
bssid_len = sys_get_le16(p);
p += 2;
BTD("%s, bSsidDataLen = 0x%x\n", __func__, bssid_len);
memcpy(conf.bssid,p,bssid_len);
p+=bssid_len;
for (int i = 0; i < bssid_len; i++) {
BTD("bssid = 0x%02x\n", conf.bssid[i]);
}
pwd_len = sys_get_le16(p);
p += 2;
BTD("%s, PsdDataLen = 0x%x\n", __func__, pwd_len);
memcpy(conf.passwd,p,pwd_len);
p+=pwd_len;
BTD("%s, passwd = %<PASSWORD>", __func__, conf.passwd);
FUNC_1(cur_wifi_status.passwd, conf.passwd);
conf.autorun = sys_get_le32(p);
p += 4;
BTD("%s, conf.autorun = %d\n", __func__, conf.autorun);
if (wifimgr_get_ctrl_ops()->set_conf) {
ret = wifimgr_get_ctrl_ops_cbs(get_wifimgr_cbs())->set_conf(WIFIMGR_IFACE_NAME_STA,
(ssid_len > 0 ? conf.ssid : NULL),
(bssid_len > 0 ? conf.bssid : NULL),
conf.security,
(pwd_len > 0 ? conf.passwd : ""),
conf.band,
conf.channel,
0,
conf.autorun);
} else {
BTD("%s, set_conf = NULL\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
if (0 != ret) {
BTD("%s, set_conf fail,error = %d\n", __func__,ret);
res_result = RESULT_FAIL;
goto error;
}
ret = wifimgr_check_wifi_status(WIFIMGR_IFACE_NAME_STA);
if (0 == ret) {
switch(cur_wifi_status.sta_status){
case WIFI_STA_STATUS_NODEV:
if (0 != wifimgr_do_open(WIFIMGR_IFACE_NAME_STA)) {
BTD("%s, open fail\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
break;
case WIFI_STA_STATUS_READY:
break;
case WIFI_STA_STATUS_CONNECTED:
if (0 != wifimgr_do_disconnect(1)) {
BTD("%s, STATUS_CONNECTED and do_disconnect fail\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
break;
case VAR_0:
case WIFI_STA_STATUS_CONNECTING:
case WIFI_STA_STATUS_DISCONNECTING:
BTD("%s,status = %d ,wifi is busy\n", __func__, cur_wifi_status.sta_status);
res_result = RESULT_FAIL;
goto error;
break;
default:
BTD("%s,status = %d not found\n", __func__, cur_wifi_status.sta_status);
res_result = RESULT_FAIL;
goto error;
break;
}
}else {
res_result = RESULT_FAIL;
goto error;
}
error:
data[0] = RESULT_SET_CONF_AND_INTERVAL;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
void wifimgr_ctrl_iface_notify_connect(char result)
{
BTD("%s ,result = %d\n", __func__, result);
char data[2] = {0};
u8_t res_result = RESULT_SUCCESS;
if (0 == result) {
BTD("%s, connect succesfully\n", __func__);
res_result = RESULT_SUCCESS;
} else {
BTD("%s, connect failed\n", __func__);
res_result = RESULT_FAIL;
}
data[0] = RESULT_SET_CONF_AND_CONNECT;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
void wifimgr_ctrl_iface_notify_connect_timeout(void)
{
BTD("%s\n", __func__);
char data[2] = {0};
u8_t res_result = RESULT_FAIL;
data[0] = RESULT_SET_CONF_AND_CONNECT;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
void wifimgr_get_conf(const void *buf)
{
BTD("%s\n", __func__);
int ret = -1;
char data[2] = {0};
u8_t res_result = RESULT_SUCCESS;
ret = wifimgr_get_ctrl(WIFIMGR_IFACE_NAME_STA);
if (ret) {
BTD("%s: failed to get ctrl! %d\n", __func__, ret);
return;
}
if (wifimgr_get_ctrl_ops()->get_conf) {
ret = wifimgr_get_ctrl_ops_cbs(get_wifimgr_cbs())->get_conf(WIFIMGR_IFACE_NAME_STA);
} else {
BTD("%s, get_conf = NULL\n", __func__);
res_result = RESULT_FAIL;
}
wifimgr_release_ctrl(WIFIMGR_IFACE_NAME_STA);
if (0 != ret) {
BTD("%s, get_conf fail,err = %d\n", __func__,ret);
res_result = RESULT_FAIL;
} else {
return;
}
data[0] = RESULT_GET_CONF;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
void wifimgr_ctrl_iface_get_sta_conf_cb(char *ssid, char *bssid, char *passphrase,
unsigned char band, unsigned char channel,
enum wifimgr_security security, int autorun)
{
BTD("%s\n", __func__);
wifi_config_type conf;
u8_t res_result = RESULT_SUCCESS;
char data[255] = {0};
u16_t data_len = 0;
u16_t ssid_len = 0;
u16_t bssid_len = 0;
u16_t passwd_len = 0;
char *p = NULL;
int i;
if (ssid) {
ssid_len = strlen(ssid);
BTD("%s ,ssid = %s\n", __func__,ssid);
} else {
BTD("%s ,ssid = NULL\n", __func__);
ssid_len = 0;
}
if (passphrase) {
BTD("%s ,pwd = %s\n", __func__,passphrase);
passwd_len = strlen(passphrase);
} else {
BTD("%s ,pwd = NULL\n", __func__);
passwd_len = 0;
}
if (bssid) {
bssid_len = BSSID_LEN;
for (i = 0; i < bssid_len; i++) {
BTD("bssid = 0x%02x\n", bssid[i]);
}
} else {
BTD("%s ,bssid = NULL\n", __func__);
bssid_len = 0;
}
BTD("%s, band:%d, channel:%d\n", __func__, band, channel);
if ((ssid_len > MAX_SSID_LEN)
|| (bssid_len > BSSID_LEN)
|| (passwd_len > MAX_PSWD_LEN)) {
res_result = RESULT_FAIL;
data[0] = RESULT_GET_CONF;
data[1] = res_result;
BTD("%s ,len error\n", __func__);
wifi_manager_notify(data, 2);
return;
}
memset(&conf, 0, sizeof(conf));
memcpy(conf.ssid, ssid, ssid_len);
memcpy(conf.bssid, bssid, bssid_len);
memcpy(conf.passwd, <PASSWORD>, passwd_len);
data_len = 6 + ssid_len + bssid_len +passwd_len;
res_result = RESULT_SUCCESS;
p = data;
UINT8_TO_STREAM(p, RESULT_GET_CONF);
UINT8_TO_STREAM(p, res_result);
UINT16_TO_STREAM(p, data_len);
UINT16_TO_STREAM(p, ssid_len);
for (i = 0; i < ssid_len; i++) {
UINT8_TO_STREAM(p, conf.ssid[i]);
}
UINT16_TO_STREAM(p, bssid_len);
for (i = 0; i < bssid_len; i++) {
UINT8_TO_STREAM(p, conf.bssid[i]);
}
UINT16_TO_STREAM(p, passwd_len);
for (i = 0; i < passwd_len; i++) {
UINT8_TO_STREAM(p, conf.passwd[i]);
}
wifi_manager_notify(data, data_len + 4);
}
void wifimgr_ctrl_iface_get_ap_conf_cb(char *ssid, char *passphrase, unsigned char band,
unsigned char channel, unsigned char ch_width,
enum wifimgr_security security, int autorun)
{
BTD("%s\n", __func__);
wifi_config_type conf;
u8_t res_result = RESULT_SUCCESS;
char data[255] = {0};
u16_t data_len = 0;
u16_t ssid_len = 0;
u16_t bssid_len = 0;
u16_t passwd_len = 0;
char *p = NULL;
int i;
if (ssid) {
ssid_len = strlen(ssid);
BTD("%s ,ssid = %s\n", __func__,ssid);
} else {
BTD("%s ,ssid = NULL\n", __func__);
ssid_len = 0;
}
if (passphrase) {
BTD("%s ,pwd = %s\n", __func__,passphrase);
passwd_len = strlen(passphrase);
} else {
BTD("%s ,pwd = <PASSWORD>", __func__);
passwd_len = 0;
}
/*if (bssid) {
bssid_len = BSSID_LEN;
for (i = 0; i < bssid_len; i++) {
BTD("bssid = 0x%02x\n", bssid[i]);
}
} else {
BTD("%s ,bssid = NULL\n", __func__);
bssid_len = 0;
}*/
BTD("%s, band:%d, channel:%d\n", __func__, band, channel);
if ((ssid_len > MAX_SSID_LEN)
|| (bssid_len > BSSID_LEN)
|| (passwd_len > MAX_PSWD_LEN)) {
res_result = RESULT_FAIL;
data[0] = RESULT_GET_CONF;
data[1] = res_result;
BTD("%s ,len error\n", __func__);
wifi_manager_notify(data, 2);
return;
}
memset(&conf, 0, sizeof(conf));
memcpy(conf.ssid, ssid, ssid_len);
/*memcpy(conf.bssid, bssid, bssid_len);*/
memcpy(conf.passwd, passphrase, passwd_len);
data_len = 6 + ssid_len + bssid_len +passwd_len;
res_result = RESULT_SUCCESS;
p = data;
UINT8_TO_STREAM(p, RESULT_GET_CONF);
UINT8_TO_STREAM(p, res_result);
UINT16_TO_STREAM(p, data_len);
UINT16_TO_STREAM(p, ssid_len);
for (i = 0; i < ssid_len; i++) {
UINT8_TO_STREAM(p, conf.ssid[i]);
}
UINT16_TO_STREAM(p, bssid_len);
for (i = 0; i < bssid_len; i++) {
UINT8_TO_STREAM(p, conf.bssid[i]);
}
UINT16_TO_STREAM(p, passwd_len);
for (i = 0; i < passwd_len; i++) {
UINT8_TO_STREAM(p, conf.passwd[i]);
}
wifi_manager_notify(data, data_len + 4);
}
void wifimgr_get_status(const void *buf)
{
BTD("%s\n", __func__);
int ret = -1;
char data[200] = {0};
u8_t res_result = RESULT_SUCCESS;
int data_len = 2;
char *p = NULL;
int i;
p = &data[2];
ret = wifimgr_check_wifi_status(WIFIMGR_IFACE_NAME_STA);
if (0 != ret) {
data_len = 2;
res_result = RESULT_FAIL;
goto error;
} else {
UINT8_TO_STREAM(p, cur_wifi_status.sta_status);
for (i = 0; i < BSSID_LEN; i++) {
UINT8_TO_STREAM(p, cur_wifi_status.sta_mac[i]);
}
data_len += 7;
UINT16_TO_STREAM(p, cur_wifi_status.u.sta.h_ssid_len);
if (0 != cur_wifi_status.u.sta.h_ssid_len) {
for (i = 0; i < cur_wifi_status.u.sta.h_ssid_len; i++) {
UINT8_TO_STREAM(p, cur_wifi_status.u.sta.host_ssid[i]);
}
}
data_len += (2 + cur_wifi_status.u.sta.h_ssid_len);
UINT16_TO_STREAM(p, cur_wifi_status.u.sta.h_bssid_len);
if (0 != cur_wifi_status.u.sta.h_bssid_len) {
for (i = 0; i < cur_wifi_status.u.sta.h_bssid_len; i++) {
UINT8_TO_STREAM(p, cur_wifi_status.u.sta.host_bssid[i]);
}
}
data_len += (2 + cur_wifi_status.u.sta.h_bssid_len);
}
ret = wifimgr_check_wifi_status(WIFIMGR_IFACE_NAME_AP);
if (0 != ret) {
data_len = 2;
res_result = RESULT_FAIL;
goto error;
} else {
UINT8_TO_STREAM(p, cur_wifi_status.ap_status);
for (i = 0; i < BSSID_LEN; i++) {
UINT8_TO_STREAM(p, cur_wifi_status.ap_mac[i]);
}
data_len += 7;
UINT16_TO_STREAM(p, cur_wifi_status.u.ap.sta_nr * BSSID_LEN);
if (0 != cur_wifi_status.u.ap.sta_nr) {
memcpy(p, &cur_wifi_status.u.ap.sta_mac_addrs[0][0], BSSID_LEN * cur_wifi_status.u.ap.sta_nr);
}
data_len += (2 + BSSID_LEN * cur_wifi_status.u.ap.sta_nr);
}
error:
data[0] = RESULT_GET_STATUS;
data[1] = res_result;
wifi_manager_notify(data, data_len);
}
void wifimgr_ctrl_iface_get_sta_status_cb(char status, char *own_mac, char *host_bssid,
signed char host_rssi)
{
BTD("%s, status:%d, signal:%d\n", __func__,status,host_rssi);
BTD("%s, mac = %02X:%02X:%02X:%02X:%02X:%02X\n", __func__,own_mac[0],own_mac[1],own_mac[2],own_mac[3],own_mac[4],own_mac[5]);
cur_wifi_status.sta_status = status;
memcpy(cur_wifi_status.sta_mac, own_mac, 6);
if (WIFI_STA_STATUS_CONNECTED == status) {
/*if (host_ssid) {
memset(cur_wifi_status.u.sta.host_ssid, 0, sizeof(cur_wifi_status.u.sta.host_ssid));
memcpy(cur_wifi_status.u.sta.host_ssid, host_ssid, strlen(host_ssid));
cur_wifi_status.u.sta.h_ssid_len = strlen(host_ssid);
BTD("%s ,host_ssid = %s\n", __func__,host_ssid);
} else {
cur_wifi_status.u.sta.h_ssid_len = 0;
BTD("%s ,host_ssid = NULL\n", __func__);
}*/
if (host_bssid) {
memset(cur_wifi_status.u.sta.host_bssid, 0, sizeof(cur_wifi_status.u.sta.host_bssid));
memcpy(cur_wifi_status.u.sta.host_bssid, host_bssid, BSSID_LEN);
cur_wifi_status.u.sta.h_bssid_len = BSSID_LEN;
BTD("%s, host_bssid = %02X:%02X:%02X:%02X:%02X:%02X\n", __func__,host_bssid[0],host_bssid[1],host_bssid[2],host_bssid[3],host_bssid[4],host_bssid[5]);
} else {
cur_wifi_status.u.sta.h_bssid_len = 0;
BTD("%s ,host_bssid = NULL\n", __func__);
}
} else {
cur_wifi_status.u.sta.h_ssid_len = 0;
cur_wifi_status.u.sta.h_bssid_len = 0;
}
k_sem_give(&get_status_sem);
}
void wifimgr_ctrl_iface_get_ap_status_cb(char status, char *own_mac,
unsigned char sta_nr, char sta_mac_addrs[][6],
unsigned char acl_nr, char acl_mac_addrs[][6])
{
BTD("%s, status:%d, sta_nr:%d\n", __func__,status,sta_nr);
BTD("%s, mac = %02X:%02X:%02X:%02X:%02X:%02X\n", __func__,own_mac[0],own_mac[1],own_mac[2],own_mac[3],own_mac[4],own_mac[5]);
cur_wifi_status.ap_status = status;
memcpy(cur_wifi_status.ap_mac, own_mac, 6);
if (WIFI_AP_STATUS_STARTED == status) {
memset(cur_wifi_status.u.ap.sta_mac_addrs,0,sizeof(cur_wifi_status.u.ap.sta_mac_addrs));
cur_wifi_status.u.ap.sta_nr = (sta_nr > WIFI_MAX_STA_NR ? WIFI_MAX_STA_NR : sta_nr);
memcpy(&cur_wifi_status.u.ap.sta_mac_addrs[0][0], &sta_mac_addrs[0][0], BSSID_LEN * cur_wifi_status.u.ap.sta_nr);
} else {
cur_wifi_status.u.ap.sta_nr = 0;
}
k_sem_give(&get_status_sem);
}
void wifimgr_open(const void *buf)
{
BTD("%s\n", __func__);
char data[2] = {0};
u8_t res_result = RESULT_SUCCESS;
if (0 != wifimgr_do_open(WIFIMGR_IFACE_NAME_STA)) {
BTD("%s, open fail\n", __func__);
res_result = RESULT_FAIL;
} else {
BTD("%s, open success\n", __func__);
res_result = RESULT_SUCCESS;
}
data[0] = RESULT_OPEN;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
void wifimgr_close(const void *buf)
{
BTD("%s\n", __func__);
char data[2] = {0};
u8_t res_result = RESULT_SUCCESS;
if (0 != wifimgr_do_close(WIFIMGR_IFACE_NAME_STA)) {
BTD("%s, close fail\n", __func__);
res_result = RESULT_FAIL;
} else {
BTD("%s, close success\n", __func__);
res_result = RESULT_SUCCESS;
}
data[0] = RESULT_CLOSE;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
void wifimgr_scan(const void *buf)
{
BTD("%s\n", __func__);
int ret = -1;
char data[2] = {0};
u8_t res_result = RESULT_SUCCESS;
ret = wifimgr_do_scan(SCAN_NUM);
if (0 != ret) {
res_result = RESULT_FAIL;
}
data[0] = RESULT_SCAN_DONE;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
extern char *net_byte_to_hex(char *ptr, u8_t byte, char base, bool pad);
void wifimgr_start_ap(const void *buf)
{
BTD("%s\n", __func__);
char data[2] = {0};
char *ptr, mac_nic[7] = {0};
char ssid[MAX_SSID_LEN+1] = "UNISOC_";
char *passwd;
char security;
u8_t res_result = RESULT_SUCCESS;
int i;
int ret = -1;
u8_t data_len = 0;
const u8_t *p = buf;
data_len = sys_get_le16(p);
BTD("%s, data_len = %d\n", __func__, data_len);
p += 2;
if (1 == data_len && 0 == p[0]) {
ptr = mac_nic;
for (i = 0; i < 3; i++) {
net_byte_to_hex(ptr, cur_wifi_status.ap_mac[3 + i], 'A', true);
ptr += 2;
}
strcat(ssid, mac_nic);
} else {
memset(ssid, 0, sizeof(ssid));
memcpy(ssid, p, data_len);
}
if (!strlen(cur_wifi_status.passwd)) {
passwd = "";
security = WIFIMGR_SECURITY_OPEN;
} else {
passwd = cur_wifi_status.passwd;
security = WIFIMGR_SECURITY_PSK;
}
if (wifimgr_get_ctrl_ops()->set_conf) {
ret = wifimgr_get_ctrl_ops_cbs(get_wifimgr_cbs())->set_conf(WIFIMGR_IFACE_NAME_AP,
ssid,
NULL,
security,
passwd,
0, 0, 0,
0);
/* Set channel: 0 to tell the firmware using STA channle */
} else {
BTD("%s, set_conf = NULL\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
if (0 != ret) {
BTD("%s, set_conf fail,error = %d\n", __func__,ret);
res_result = RESULT_FAIL;
goto error;
}
if (0 != wifimgr_do_open(WIFIMGR_IFACE_NAME_AP)) {
BTD("%s, open fail\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
ret = wifimgr_get_ctrl(WIFIMGR_IFACE_NAME_AP);
if (ret) {
BTD("%s: failed to get ctrl! %d\n", __func__, ret);
goto error;
}
if (wifimgr_get_ctrl_ops()->start_ap) {
ret = wifimgr_get_ctrl_ops()->start_ap();
} else {
BTD("%s, start_ap = NULL\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
wifimgr_release_ctrl(WIFIMGR_IFACE_NAME_AP);
if (0 != ret) {
BTD("%s, start_ap fail,error = %d\n", __func__,ret);
res_result = RESULT_FAIL;
goto error;
}
error:
data[0] = VAR_1;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
void wifimgr_stop_ap(const void *buf)
{
BTD("%s\n", __func__);
char data[2] = {0};
u8_t res_result = RESULT_SUCCESS;
int ret = -1;
ret = wifimgr_get_ctrl(WIFIMGR_IFACE_NAME_AP);
if (ret) {
BTD("%s: failed to get ctrl! %d\n", __func__, ret);
goto error;
}
if (wifimgr_get_ctrl_ops()->stop_ap) {
ret = wifimgr_get_ctrl_ops()->stop_ap();
} else {
BTD("%s, stop_ap = NULL\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
wifimgr_release_ctrl(WIFIMGR_IFACE_NAME_AP);
if (0 != ret) {
BTD("%s, stop_ap fail,error = %d\n", __func__,ret);
res_result = RESULT_FAIL;
goto error;
}
if (0 != wifimgr_do_close(WIFIMGR_IFACE_NAME_AP)) {
BTD("%s, close fail\n", __func__);
res_result = RESULT_FAIL;
goto error;
}
error:
data[0] = RESULT_STOP_AP;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
void wifimgr_set_mac_acl(const void *buf)
{
BTD("%s\n", __func__);
int ret = -1;
char data[20] = {0};
u8_t data_len = 0;
char station_mac[BSSID_LEN+1] = {0};
u8_t res_result = RESULT_SUCCESS;
u16_t vlen = 0;
char *pmac = NULL;
u8_t acl_subcmd = 0;
u8_t bssid_len = 0;
const u8_t *p = buf;
vlen = sys_get_le16(p);
p += 2;
BTD("%s, AllDateLen = 0x%x\n", __func__, vlen);
bssid_len = sys_get_le16(p);
BTD("%s, bssid_len = %d\n", __func__, bssid_len);
if (BSSID_LEN != bssid_len && 1 != bssid_len) {
BTD("%s, error! station mac len = %d\n", __func__, bssid_len);
res_result = RESULT_FAIL;
goto error_1;
} else if (BSSID_LEN == bssid_len) {
p += 2;
memcpy(station_mac, p, bssid_len);
}
pmac = bssid_len == BSSID_LEN ? station_mac : NULL;
p += bssid_len;
acl_subcmd = p[0];
p += 1;
BTD("%s, acl_subcmd = %d\n", __func__, acl_subcmd);
if (acl_subcmd <= 0) {
BTD("%s: failed to get acl_subcmd! %d\n", __func__, acl_subcmd);
res_result = RESULT_FAIL;
goto error_1;
}
ret = wifimgr_get_ctrl(WIFIMGR_IFACE_NAME_AP);
if (ret) {
BTD("%s: failed to get ctrl! %d\n", __func__, ret);
goto error_2;
}
if (wifimgr_get_ctrl_ops()->set_mac_acl) {
ret = wifimgr_get_ctrl_ops()->set_mac_acl((char)acl_subcmd, pmac);
} else {
BTD("%s, set_mac_acl = NULL\n", __func__);
res_result = RESULT_FAIL;
goto error_2;
}
BTD("%s, set_mac_acl ret = %d\n", __func__,ret);
if (0 != ret) {
BTD("%s, set_mac_acl fail,err = %d\n", __func__,ret);
res_result = RESULT_FAIL;
} else {
BTD("%s, set_mac_acl fail,err = %d\n", __func__, ret);
res_result = RESULT_SUCCESS;
}
error_2:
wifimgr_release_ctrl(WIFIMGR_IFACE_NAME_AP);
error_1:
if (!pmac) {
BTD("pmac = NULL\n");
res_result = RESULT_FAIL;
data_len = 2;
goto error;
}
BTD("res_result : %d, mac : %02x:%02x:%02x:%02x:%02x:%02x\n", res_result, pmac[0], pmac[1], pmac[2], pmac[3], pmac[4], pmac[5]);
data[2] = acl_subcmd;
memcpy(&data[3], pmac, BSSID_LEN);
res_result = RESULT_SUCCESS;
data_len = 9;
error:
data[0] = RESULT_MAC_ACL_REPORT;
data[1] = res_result;
wifi_manager_notify(data, data_len);
}
int wifimgr_do_scan(int retry_num)
{
//before connect need scan
BTD("%s\n", __func__);
int ret = -1;
int i =0;
for (i = 0, scan_result = 0; (i < retry_num) && (1 != scan_result); i++) {
BTD("%s,do the %dth scan\n", __func__,i+1);
ret = wifimgr_get_ctrl(WIFIMGR_IFACE_NAME_STA);
if (ret) {
BTD("%s: failed to get ctrl! %d\n", __func__, ret);
goto error;
}
if(wifimgr_get_ctrl_ops()->scan) {
ret = wifimgr_get_ctrl_ops_cbs(get_wifimgr_cbs())->scan();
} else {
BTD("%s, scan = NULL\n", __func__);
goto error;
}
wifimgr_release_ctrl(WIFIMGR_IFACE_NAME_STA);
if (0 != ret) {
BTD("%s, scan fail,err = %d\n", __func__,ret);
goto error;
} else {
if (0 != k_sem_take(&scan_sem, SCAN_TIMEOUT)) {
BTD("%s, take scan_sem fail\n", __func__);
scan_result = 0;
ret = -1;
} else {
ret = ((1 == scan_result) ? 0 : -1);
}
}
}
error:
return ret;
}
int wifimgr_do_connect(void)
{
BTD("%s\n", __func__);
int ret = -1;
ret = wifimgr_get_ctrl(WIFIMGR_IFACE_NAME_STA);
if (ret) {
BTD("%s: failed to get ctrl! %d\n", __func__, ret);
goto error;
}
if (wifimgr_get_ctrl_ops()->connect) {
ret = wifimgr_get_ctrl_ops_cbs(get_wifimgr_cbs())->connect();
} else {
BTD("%s, connect = NULL\n", __func__);
goto error;
}
wifimgr_release_ctrl(WIFIMGR_IFACE_NAME_STA);
if (0 != ret) {
BTD("%s, connect fail,err = %d\n", __func__,ret);
goto error;
} else {
ret = 0;
goto error;
}
error:
return ret;
}
int wifimgr_do_disconnect(u8_t flags)
{
BTD("%s\n", __func__);
int ret = -1;
ret = wifimgr_get_ctrl(WIFIMGR_IFACE_NAME_STA);
if (ret) {
BTD("%s: failed to get ctrl! %d\n", __func__, ret);
goto error;
}
if(wifimgr_get_ctrl_ops()->disconnect) {
ret = wifimgr_get_ctrl_ops_cbs(get_wifimgr_cbs())->disconnect();
} else {
BTD("%s, disconnect = NULL\n", __func__);
goto error;
}
wifimgr_release_ctrl(WIFIMGR_IFACE_NAME_STA);
if (0 != ret) {
BTD("%s, disconnect fail-1,err = %d\n", __func__,ret);
goto error;
} else {
if (1 == flags) {
wait_disconnect_done = 1;
k_sem_take(&disconnect_sem, K_FOREVER);
if (-1 == disconnect_result) {
BTD("%s, disconnect fail-2\n", __func__);
ret = -1;
} else {
ret = 0;
}
wait_disconnect_done = 0;
} else {
ret = 0;
}
goto error;
}
error:
return ret;
}
int wifimgr_do_open(char *iface_name)
{
BTD("%s\n", __func__);
int ret = -1;
ret = wifimgr_get_ctrl(iface_name);
if (ret) {
BTD("%s: failed to get ctrl! %d\n", __func__, ret);
goto error;
}
if (wifimgr_get_ctrl_ops()->open) {
ret = wifimgr_get_ctrl_ops()->open(iface_name);
} else {
BTD("%s, open = NULL\n", __func__);
goto error;
}
wifimgr_release_ctrl(iface_name);
if (0 != ret) {
BTD("%s, open fail,err = %d\n", __func__,ret);
goto error;
} else {
ret = 0;
goto error;
}
error:
return ret;
}
int wifimgr_do_close(char *iface_name)
{
BTD("%s\n", __func__);
int ret = -1;
ret = wifimgr_get_ctrl(iface_name);
if (ret) {
BTD("%s: failed to get ctrl! %d\n", __func__, ret);
goto error;
}
if (wifimgr_get_ctrl_ops()->close) {
ret = wifimgr_get_ctrl_ops()->close(iface_name);
} else {
BTD("%s, close = NULL\n", __func__);
goto error;
}
wifimgr_release_ctrl(iface_name);
if (0 != ret) {
BTD("%s, close fail,err = %d\n", __func__,ret);
goto error;
} else {
ret = 0;
goto error;
}
error:
return ret;
}
void wifimgr_disable_bt(const void *buf)
{
struct net_buf *buf_cmd;
int size;
char data[256] = {0};
BTD("%s, ->bt_unpair\n",__func__);
bt_unpair(BT_ID_DEFAULT, NULL);
BTD("%s, ->send disable\n",__func__);
size = get_disable_buf(data);
buf_cmd = bt_hci_cmd_create(HCI_OP_ENABLE_CMD, size);
net_buf_add_mem(buf_cmd, data, size);
bt_hci_cmd_send_sync(HCI_OP_ENABLE_CMD, buf_cmd, NULL);
BTD("%s, ->disable bt_irq\n",__func__);
sprd_bt_irq_disable();
}
void wifimgr_disconnect(const void *buf)
{
BTD("%s\n", __func__);
char data[2] = {0};
u8_t res_result = RESULT_SUCCESS;
if (0 != wifimgr_do_disconnect(0)) {
BTD("%s, disconnect fail\n", __func__);
res_result = RESULT_FAIL;
} else {
return;
}
data[0] = RESULT_DISCONNECT;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
void wifimgr_ctrl_iface_notify_disconnect(char VAR_2)
{
BTD("%s ,reason = %d\n", __func__,VAR_2);
char data[2] = {0};
u8_t res_result = RESULT_SUCCESS;
data[0] = RESULT_DISCONNECT;
data[1] = res_result;
if (1 == wait_disconnect_done) {
disconnect_result = 0;
k_sem_give(&disconnect_sem);
} else {
wifi_manager_notify(data, sizeof(data));
}
}
void wifimgr_ctrl_iface_notify_disconnect_timeout(void)
{
BTD("%s \n", __func__);
char data[2] = {0};
u8_t res_result = RESULT_FAIL;
data[0] = RESULT_DISCONNECT;
data[1] = res_result;
if (1 == wait_disconnect_done) {
disconnect_result = -1;
k_sem_give(&disconnect_sem);
} else {
wifi_manager_notify(data, sizeof(data));
}
}
static ssize_t wifi_manager_write(struct bt_conn *conn, const struct bt_gatt_attr *attr,
const void *buf, u16_t len, u16_t offset,
u8_t flags)
{
u8_t op_code = 0;
u8_t *value = attr->user_data;
static u16_t total_len = 0;
BTD("%s, len = %d, offset = %d, flags = %d\n", __func__,len,offset,flags);
//cur_conn = conn;
if (flags & BT_GATT_WRITE_FLAG_PREPARE) {
return 0;
}
if (offset + len > sizeof(wifimgr_long_value)) {
return BT_GATT_ERR(BT_ATT_ERR_INVALID_OFFSET);
}
if (0 == offset) {
memset(value, 0, sizeof(wifimgr_long_value));
total_len = sys_get_le16((u8_t *)buf + OPCODE_BYTE) + OPCODE_BYTE + LEN_BYTE;
BTD("%s,total_len = %d\n", __func__, total_len);
}
memcpy(value + offset, buf, len);
total_len -= len;
if (0 != total_len)
return len;
op_code = (u8_t)(*(value));
BTD("%s,op_code=0x%x\n", __func__,op_code);
switch(op_code) {
case CMD_SET_CONF_AND_CONNECT:
FUNC_0(&value[1]);
break;
case CMD_GET_CONF:
wifimgr_get_conf(&value[1]);
break;
case CMD_GET_STATUS:
wifimgr_get_status(&value[1]);
break;
case CMD_OPEN:
wifimgr_open(&value[1]);
break;
case CMD_CLOSE:
wifimgr_close(&value[1]);
break;
case CMD_DISCONNECT:
wifimgr_disconnect(&value[1]);
break;
case CMD_START_AP:
wifimgr_start_ap(&value[1]);
break;
case CMD_DISABLE_BT:
wifimgr_disable_bt(&value[1]);
break;
case CMD_SCAN:
wifimgr_scan(&value[1]);
break;
case CMD_STOP_AP:
wifimgr_stop_ap(&value[1]);
break;
case CMD_SET_MAC_ACL:
wifimgr_set_mac_acl(&value[1]);
break;
case CMD_SET_INTERVAL:
wifimgr_set_conf_and_interval(&value[1]);
break;
default:
BTD("%s,op_code=0x%x not found\n", __func__,op_code);
break;
}
return len;
}
/* WiFi Manager Service Declaration */
static struct bt_gatt_attr attrs[] = {
BT_GATT_PRIMARY_SERVICE(&wifimgr_service_uuid),
BT_GATT_CHARACTERISTIC(&wifimgr_char_uuid.uuid, BT_GATT_CHRC_WRITE|BT_GATT_CHRC_NOTIFY,
BT_GATT_PERM_READ|BT_GATT_PERM_WRITE|BT_GATT_PERM_PREPARE_WRITE, NULL, wifi_manager_write,
&wifimgr_long_value),
BT_GATT_CCC(wifimgr_ccc_cfg, wifimgr_ccc_cfg_changed),
};
static struct bt_gatt_service wifi_manager_svc = BT_GATT_SERVICE(attrs);
void wifi_manager_service_init(void)
{
BTD("%s\n", __func__);
bt_gatt_service_register(&wifi_manager_svc);
k_sem_init(&get_status_sem, 0, 1);
k_sem_init(&scan_sem, 0, 1);
k_sem_init(&disconnect_sem, 0, 1);
}
void wifi_manager_notify(const void *data, u16_t len)
{
BTD("%s, len = %d\n", __func__, len);
if (!wifimgr_is_enabled) {
BTD("%s, rx is not enabled\n", __func__);
return;
}
/*
if(len > bt_gatt_get_mtu(cur_conn)){
BTD("%s, len > MTU\n", __func__);
do_gatt_exchange_mtu();
}*/
bt_gatt_notify(NULL, &attrs[2], data, len);
}
void wifimgr_ctrl_iface_notify_scan_res(char *ssid, char *bssid, unsigned char band,
unsigned char channel, signed char signal,
enum wifimgr_security security)
{
BTD("%s\n", __func__);
wifi_scan_res_type scan_res;
u8_t res_result = RESULT_SUCCESS;
char data[255] = {0};
u16_t data_len = 0;
u16_t ssid_len = 0;
u16_t bssid_len = 0;
char *p = NULL;
int i;
if (ssid) {
ssid_len = strlen(ssid);
BTD("ssid = %s\n", ssid);
} else {
BTD("ssid = NULL\n");
ssid_len = 0;
}
if (bssid) {
bssid_len = BSSID_LEN;
BTD("bssid = %02x:%02x:%02x:%02x:%02x:%02x\n", bssid[0], bssid[1], bssid[2], bssid[3], bssid[4], bssid[5]);
} else {
BTD("%s ,bssid = NULL\n", __func__);
bssid_len = 0;
}
BTD("band:%d, channel:%d, signal:%d\n", band, channel, signal);
if ((ssid_len > MAX_SSID_LEN)
|| (bssid_len > BSSID_LEN)) {
res_result = RESULT_FAIL;
data[0] = RESULT_SCAN_DONE;
data[1] = res_result;
BTD("%s ,len error\n", __func__);
wifi_manager_notify(data, 2);
return;
}
memset(&scan_res, 0, sizeof(scan_res));
memcpy(scan_res.ssid, ssid, ssid_len);
memcpy(scan_res.bssid, bssid, bssid_len);
scan_res.band = band;
scan_res.channel = channel;
scan_res.signal = signal;
data_len = 4 + ssid_len + bssid_len;
res_result = RESULT_SUCCESS;
p = data;
UINT8_TO_STREAM(p, RESULT_SCAN_REPORT);
UINT8_TO_STREAM(p, res_result);
UINT16_TO_STREAM(p, data_len);
UINT16_TO_STREAM(p, ssid_len);
for (i = 0; i < ssid_len; i++) {
UINT8_TO_STREAM(p, scan_res.ssid[i]);
}
UINT16_TO_STREAM(p, bssid_len);
for (i = 0; i < bssid_len; i++) {
UINT8_TO_STREAM(p, scan_res.bssid[i]);
}
wifi_manager_notify(data, data_len + 4);
}
void wifimgr_ctrl_iface_notify_scan_done(char result)
{
BTD("%s,result = %d\n", __func__,result);
scan_result = result;
k_sem_give(&scan_sem);
}
void wifimgr_ctrl_iface_notify_scan_timeout(void)
{
BTD("%s\n", __func__);
scan_result = 0;
k_sem_give(&scan_sem);
}
void wifimgr_ctrl_iface_notify_new_station(char status, char *mac)
{
BTD("%s\n", __func__);
u8_t res_result = RESULT_SUCCESS;
char data[20] = {0};
u8_t data_len = 0;
if (!mac) {
BTD("mac = NULL\n");
res_result = RESULT_FAIL;
data_len = 2;
goto error;
}
BTD("status : %d, mac : %02x:%02x:%02x:%02x:%02x:%02x\n", status, mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
data[2] = status;
memcpy(&data[3], mac, BSSID_LEN);
res_result = RESULT_SUCCESS;
data_len = 9;
error:
data[0] = RESULT_STATION_REPORT;
data[1] = res_result;
wifi_manager_notify(data, data_len);
}
/*
void wifimgr_ctrl_iface_notify_set_mac_acl_timeout(void)
{
BTD("%s \n", __func__);
char data[2] = {0};
u8_t res_result = RESULT_FAIL;
data[0] = RESULT_STATION_REPORT;
data[1] = res_result;
wifi_manager_notify(data, sizeof(data));
}
*/
static struct wifimgr_ctrl_cbs wifi_ctrl_cbs = {
.get_sta_conf_cb = wifimgr_ctrl_iface_get_sta_conf_cb,
.get_ap_conf_cb = wifimgr_ctrl_iface_get_ap_conf_cb,
.get_sta_status_cb = wifimgr_ctrl_iface_get_sta_status_cb,
.VAR_3 = wifimgr_ctrl_iface_get_ap_status_cb,
.notify_scan_res = wifimgr_ctrl_iface_notify_scan_res,
.notify_scan_done = wifimgr_ctrl_iface_notify_scan_done,
.notify_connect = wifimgr_ctrl_iface_notify_connect,
.notify_disconnect = wifimgr_ctrl_iface_notify_disconnect,
.notify_scan_timeout = wifimgr_ctrl_iface_notify_scan_timeout,
.notify_connect_timeout = wifimgr_ctrl_iface_notify_connect_timeout,
.notify_disconnect_timeout = wifimgr_ctrl_iface_notify_disconnect_timeout,
.notify_new_station = wifimgr_ctrl_iface_notify_new_station,
};
struct wifimgr_ctrl_cbs *get_wifimgr_cbs(void)
{
return &wifi_ctrl_cbs;
}
| 0.025598 | {'FUNC_0': 'wifimgr_set_conf_and_connect', 'FUNC_1': 'strcpy', 'VAR_0': 'WIFI_STA_STATUS_SCANNING', 'VAR_1': 'RESULT_START_AP', 'VAR_2': 'reason', 'VAR_3': 'get_ap_status_cb'} | c | Hibrido | 3.55% |
/*** emacsdel - emacs character delete function
*
* Input:
* Standard editing function
*
* Output:
* Returns TRUE on deletion
*
*************************************************************************/
flagType
emacscdel (
CMDDATA argData,
ARG *pArg,
flagType fMeta
) {
return DoCDelete (TRUE);
argData; pArg; fMeta;
} | /*** emacsdel - emacs character delete function
*
* Input:
* Standard editing function
*
* Output:
* Returns TRUE on deletion
*
*************************************************************************/
CLASS_0
emacscdel (
CLASS_1 VAR_0,
CLASS_2 *VAR_1,
CLASS_0 VAR_2
) {
return FUNC_0 (TRUE);
VAR_0; VAR_1; VAR_2;
} | 0.931746 | {'CLASS_0': 'flagType', 'CLASS_1': 'CMDDATA', 'VAR_0': 'argData', 'CLASS_2': 'ARG', 'VAR_1': 'pArg', 'VAR_2': 'fMeta', 'FUNC_0': 'DoCDelete'} | c | Procedural | 100.00% |
/*
Author: <NAME>
Created: July 2018
*/
#include <string>
using namespace std;
#ifndef SCRABBLE_SCORE_H
#define SCRABBLE_SCORE_H
namespace scrabble_score
{
int score( const string &sInputStr );
};
#endif | /*
Author: <NAME>
Created: July 2018
*/
#include <string>
CLASS_0 namespace std;
#ifndef SCRABBLE_SCORE_H
#define SCRABBLE_SCORE_H
namespace VAR_0
{
int score( const string &sInputStr );
};
#endif | 0.228616 | {'CLASS_0': 'using', 'VAR_0': 'scrabble_score'} | c | Texto | 66.67% |
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of the
// License at
//
// https://opensource.org/licenses/BSD-3-Clause
//
// 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 YADCC_CACHE_CACHE_SERVICE_IMPL_H_
#define YADCC_CACHE_CACHE_SERVICE_IMPL_H_
#include <memory>
#include <mutex>
#include <string>
#include <vector>
#include "flare/base/exposed_var.h"
#include "yadcc/api/cache.flare.pb.h"
#include "yadcc/cache/bloom_filter_generator.h"
#include "yadcc/cache/cache_engine.h"
#include "yadcc/cache/in_memory_cache.h"
#include "yadcc/common/token_verifier.h"
namespace yadcc::cache {
// Implements our cache server.
class CacheServiceImpl : public SyncCacheService {
public:
CacheServiceImpl();
void FetchBloomFilter(const FetchBloomFilterRequest& request,
FetchBloomFilterResponse* response,
flare::RpcServerController* controller) override;
void TryGetEntry(const TryGetEntryRequest& request,
TryGetEntryResponse* response,
flare::RpcServerController* controller) override;
void PutEntry(const PutEntryRequest& request, PutEntryResponse* response,
flare::RpcServerController* controller) override;
// Initialize the service. This must be called prior to starting the server.
void Start();
// Shutdown the service.
void Stop();
void Join();
private:
std::vector<std::string> GetKeys() const;
void OnRebuildTimer();
// Dumps internals about the cache.
Json::Value DumpInternals();
private:
std::unique_ptr<TokenVerifier> token_verifier_ = MakeTokenVerifierFromFlag();
std::unique_ptr<CacheEngine> cache_;
std::uint64_t cache_purge_timer_;
std::unique_ptr<InMemoryCache> in_memory_cache_;
std::mutex bf_lock_;
BloomFilterGenerator bf_gen_;
std::uint64_t bf_rebuild_timer_;
flare::ExposedVarDynamic<Json::Value> internal_exposer_;
};
} // namespace yadcc::cache
#endif // YADCC_CACHE_CACHE_SERVICE_IMPL_H_
| // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of the
// License at
//
// https://opensource.org/licenses/BSD-3-Clause
//
// 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 YADCC_CACHE_CACHE_SERVICE_IMPL_H_
#define YADCC_CACHE_CACHE_SERVICE_IMPL_H_
#include <memory>
#include <mutex>
#include <IMPORT_0>
#include <IMPORT_1>
#include "flare/base/exposed_var.h"
#include "yadcc/api/cache.flare.pb.h"
#include "IMPORT_2"
#include "yadcc/cache/cache_engine.h"
#include "yadcc/cache/in_memory_cache.h"
#include "IMPORT_3"
namespace yadcc::VAR_0 {
// Implements our cache server.
class CacheServiceImpl : VAR_1 SyncCacheService {
public:
CacheServiceImpl();
void FetchBloomFilter(const CLASS_0& request,
FetchBloomFilterResponse* VAR_2,
flare::VAR_3* VAR_4) VAR_5;
void TryGetEntry(const TryGetEntryRequest& request,
TryGetEntryResponse* VAR_2,
flare::VAR_3* VAR_4) VAR_5;
void PutEntry(const PutEntryRequest& request, CLASS_1* VAR_2,
flare::VAR_3* VAR_4) VAR_5;
// Initialize the service. This must be called prior to starting the server.
void FUNC_0();
// Shutdown the service.
void FUNC_1();
void Join();
private:
std::IMPORT_1<std::IMPORT_0> GetKeys() VAR_6;
void FUNC_2();
// Dumps internals about the cache.
Json::Value FUNC_3();
private:
std::unique_ptr<VAR_7> token_verifier_ = MakeTokenVerifierFromFlag();
std::unique_ptr<VAR_8> cache_;
std::uint64_t VAR_9;
std::unique_ptr<VAR_10> in_memory_cache_;
std::mutex bf_lock_;
BloomFilterGenerator bf_gen_;
std::uint64_t VAR_11;
flare::ExposedVarDynamic<Json::Value> VAR_12;
};
} // namespace yadcc::cache
#endif // YADCC_CACHE_CACHE_SERVICE_IMPL_H_
| 0.368362 | {'IMPORT_0': 'string', 'IMPORT_1': 'vector', 'IMPORT_2': 'yadcc/cache/bloom_filter_generator.h', 'IMPORT_3': 'yadcc/common/token_verifier.h', 'VAR_0': 'cache', 'VAR_1': 'public', 'CLASS_0': 'FetchBloomFilterRequest', 'VAR_2': 'response', 'VAR_3': 'RpcServerController', 'VAR_4': 'controller', 'VAR_5': 'override', 'CLASS_1': 'PutEntryResponse', 'FUNC_0': 'Start', 'FUNC_1': 'Stop', 'VAR_6': 'const', 'FUNC_2': 'OnRebuildTimer', 'FUNC_3': 'DumpInternals', 'VAR_7': 'TokenVerifier', 'VAR_8': 'CacheEngine', 'VAR_9': 'cache_purge_timer_', 'VAR_10': 'InMemoryCache', 'VAR_11': 'bf_rebuild_timer_', 'VAR_12': 'internal_exposer_'} | c | Procedural | 45.14% |
//
// Random Numbers
//
// -----------------------------------------------------------------------------------------------------------
void InitX917(int j, unsigned* puSeed, unsigned* pState)
{
}
void X917NextState(unsigned* puSeed, unsigned* pState)
{
}
void InitFIPS186(int j, unsigned* puSeed, unsigned* pState)
{
}
void FIPS186NextState(unsigned* puSeed, unsigned* pState)
{
}
// -----------------------------------------------------------------------------------------------------------
| //
// Random Numbers
//
// -----------------------------------------------------------------------------------------------------------
void InitX917(int j, unsigned* puSeed, unsigned* pState)
{
}
void X917NextState(unsigned* puSeed, unsigned* pState)
{
}
void InitFIPS186(int j, unsigned* puSeed, unsigned* pState)
{
}
void FIPS186NextState(unsigned* puSeed, unsigned* pState)
{
}
// -----------------------------------------------------------------------------------------------------------
| 0.088269 | {} | c | Procedural | 100.00% |
#include <stdio.h>
#include <stdlib.h>
#define MAX 2
struct ferramenta
{
char descricao[30];
float pot;
int fase;
};
void preencher (struct ferramenta dados [])
{
int i;
for(i=0;i<MAX;i++)
{
printf("insira os dados da ferramenta %i\n",i+1);
printf("insira a descrição ");
setbuf(stdin, NULL);
scanf("%[^\n]s", dados[i].descricao);
setbuf(stdin, NULL);
printf("insira a potencia ");
scanf("%f",&dados[i].pot);
printf("insira o numero de fases");
scanf("%i",&dados[i].fase);
printf("\n");
}
}
void escrever2fases(struct ferramenta dados [])
{
int i;
printf("\nferramentas com 2 fases\n");
for(i=0;i<MAX;i++)
{
if(dados[i].fase==2)
{
printf("%s\n",dados[i].descricao);
}
}
}
int main()
{
struct ferramenta dados [MAX];
preencher(dados);
escrever2fases(dados);
return 0;
}
| #include <IMPORT_0>
#include <stdlib.h>
#define VAR_0 2
struct CLASS_0
{
char VAR_1[30];
float VAR_2;
int fase;
};
void FUNC_0 (struct CLASS_0 VAR_3 [])
{
int VAR_4;
for(VAR_4=0;VAR_4<VAR_0;VAR_4++)
{
FUNC_1("insira os dados da ferramenta %i\n",VAR_4+1);
FUNC_1("insira a descrição ");
FUNC_2(VAR_5, NULL);
FUNC_3("%[^\n]s", VAR_3[VAR_4].VAR_1);
FUNC_2(VAR_5, NULL);
FUNC_1("insira a potencia ");
FUNC_3("%f",&VAR_3[VAR_4].VAR_2);
FUNC_1("insira o numero de fases");
FUNC_3("%i",&VAR_3[VAR_4].fase);
FUNC_1("\n");
}
}
void FUNC_4(struct CLASS_0 VAR_3 [])
{
int VAR_4;
FUNC_1("\nferramentas com 2 fases\n");
for(VAR_4=0;VAR_4<VAR_0;VAR_4++)
{
if(VAR_3[VAR_4].fase==2)
{
FUNC_1("%s\n",VAR_3[VAR_4].VAR_1);
}
}
}
int FUNC_5()
{
struct CLASS_0 VAR_3 [VAR_0];
FUNC_0(VAR_3);
FUNC_4(VAR_3);
return 0;
}
| 0.702544 | {'IMPORT_0': 'stdio.h', 'VAR_0': 'MAX', 'CLASS_0': 'ferramenta', 'VAR_1': 'descricao', 'VAR_2': 'pot', 'FUNC_0': 'preencher', 'VAR_3': 'dados', 'VAR_4': 'i', 'FUNC_1': 'printf', 'FUNC_2': 'setbuf', 'VAR_5': 'stdin', 'FUNC_3': 'scanf', 'FUNC_4': 'escrever2fases', 'FUNC_5': 'main'} | c | Hibrido | 35.48% |
/* Prints all pages in the generation */
void
PrintGen(Gen *gen)
{
long i;
Rp *p;
if ( gen )
{
fprintf(stderr,"\n Address of Gen: %p, First free word: %p, Border of region: %p\n ",gen,gen->a,rpBoundary(gen->a));
for ( p = clear_fp(gen->fp) , i = 1 ; p ; p = p->n , i++ )
{
fprintf(stderr,"-->Page%2ld:%p",i,p);
if (i%3 == 0)
fprintf(stderr,"\n ");
}
fprintf(stderr,"\n");
}
} | /* Prints all pages in the generation */
void
PrintGen(Gen *gen)
{
long i;
Rp *p;
if ( gen )
{
fprintf(stderr,"\n Address of Gen: %p, First free word: %p, Border of region: %p\n ",gen,gen->a,rpBoundary(gen->a));
for ( p = clear_fp(gen->fp) , i = 1 ; p ; p = p->n , i++ )
{
fprintf(stderr,"-->Page%2ld:%p",i,p);
if (i%3 == 0)
fprintf(stderr,"\n ");
}
fprintf(stderr,"\n");
}
} | 0.199878 | {} | c | Procedural | 100.00% |
//
// (C) <NAME> 2007-2010, all rights reserved. See the accompanying "License.txt" for licensed use.
//
#ifndef TEST_CONFIG
#define TEST_CONFIG
#if defined(_MSC_VER)
#pragma warning (disable: 4996)
#endif
// enable ASSERT() on linux
#ifndef _WIN32
#ifndef _DEBUG
#define _DEBUG
#endif
#else
#include <assert.h>
#endif
#include <stdio.h>
typedef unsigned char BYTE;
typedef unsigned short USHORT;
#endif
| //
// (C) <NAME> 2007-2010, all rights reserved. See the accompanying "License.txt" for licensed use.
//
#ifndef VAR_0
#define VAR_0
#if defined(VAR_1)
#pragma warning (disable: 4996)
#endif
// enable ASSERT() on linux
#ifndef _WIN32
#ifndef VAR_2
#define VAR_2
#endif
#else
#include <IMPORT_0>
#endif
#include <IMPORT_1>
typedef unsigned char ID_0;
typedef unsigned short ID_1;
#endif
| 0.832051 | {'VAR_0': 'TEST_CONFIG', 'VAR_1': '_MSC_VER', 'VAR_2': '_DEBUG', 'IMPORT_0': 'assert.h', 'IMPORT_1': 'stdio.h', 'ID_0': 'BYTE', 'ID_1': 'USHORT'} | c | Procedural | 100.00% |
//
// BaseJsonViewManager.h
// PYKit
//
// Created by 李鹏跃 on 2019/9/11.
// Copyright © 2019年 13lipengyue. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "BaseJsonViewStepModel.h"
#import "BaseJsonViewTableView.h"
NS_ASSUME_NONNULL_BEGIN
/// 索引功能
@interface BaseJsonViewMainView : UIView
/// 收起根节点时,是否自动收起子节点
@property (nonatomic,assign) BOOL isCloseChildPointWhenCloseSelf;
/// data 可以为数组、字典、json、或 oc string
- (void) reloadWithData:(id) data;
/// 当调用 reloadWithData 后 才会有数据
- (BaseJsonViewStepModel *) getCurrentModel;
/// 对data转化成json
@property (nonatomic,readonly,copy) NSString *jsonStr;
@property (nonatomic,strong) BaseJsonViewTableView *tableView;
/// 是否精准搜索
@property (nonatomic,assign) BOOL isAccurateSearch;
@property (nonatomic,assign) BOOL isEditingStatusSearch;
- (void) scrollToModel: (BaseJsonViewStepModel *)model;
@property (nonatomic,copy) void(^doubleClickCellBlock)(BaseJsonViewStepModel *model);
@property (nonatomic,copy) void(^longClickCellBlock)(BaseJsonViewStepModel *model);
@property (nonatomic,copy) void (^jumpNextLevelVc)(BaseJsonViewStepModel *model);
@property (nonatomic,assign) NSInteger currentLevelOffset;
- (void) openAll;
- (void) closeAll;
@end
NS_ASSUME_NONNULL_END
| //
// BaseJsonViewManager.h
// PYKit
//
// Created by 李鹏跃 on 2019/9/11.
// Copyright © 2019年 13lipengyue. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "BaseJsonViewStepModel.h"
#import "BaseJsonViewTableView.h"
NS_ASSUME_NONNULL_BEGIN
/// 索引功能
@VAR_0 BaseJsonViewMainView : UIView
/// 收起根节点时,是否自动收起子节点
@VAR_1 (nonatomic,assign) BOOL isCloseChildPointWhenCloseSelf;
/// data 可以为数组、字典、json、或 oc string
- (void) reloadWithData:(id) data;
/// 当调用 reloadWithData 后 才会有数据
- (BaseJsonViewStepModel *) getCurrentModel;
/// 对data转化成json
@FUNC_0 (nonatomic,readonly,copy) NSString *jsonStr;
@FUNC_0 (nonatomic,strong) BaseJsonViewTableView *tableView;
/// 是否精准搜索
@FUNC_0 (nonatomic,assign) BOOL isAccurateSearch;
@FUNC_0 (nonatomic,assign) BOOL isEditingStatusSearch;
- (void) scrollToModel: (BaseJsonViewStepModel *)model;
@VAR_1 (nonatomic,copy) void(^doubleClickCellBlock)(BaseJsonViewStepModel *model);
@FUNC_0 (nonatomic,copy) void(^longClickCellBlock)(BaseJsonViewStepModel *model);
@FUNC_0 (nonatomic,copy) void (^jumpNextLevelVc)(BaseJsonViewStepModel *model);
@FUNC_0 (nonatomic,assign) NSInteger VAR_2;
- (void) openAll;
- (void) closeAll;
@end
NS_ASSUME_NONNULL_END
| 0.092907 | {'VAR_0': 'interface', 'VAR_1': 'property', 'FUNC_0': 'property', 'VAR_2': 'currentLevelOffset'} | c | Procedural | 100.00% |
#include<stdio.h>
#include<math.h>
#include<string.h>
int main()
{
int s,count=0,answer,i,j,plc1,plc2,mat[100][100];
for(i=1;i<=5;i++)
{
for(j=1;j<=5;j++)
{scanf("%d",&mat[i][j]);
if(mat[i][j]>0){
plc1=i;
plc2=j;
}
}
}
for(s=0;s<3;s++)
{
if(plc1<3)
{plc1++;
count++;
}
else if(plc1>3)
{plc1--;
count++;
}
if(plc2<3)
{
plc2++;
count++;
}
else if(plc2>3)
{
plc2--;
count++;
}
else if(plc2==3&&plc1==3)
break;
}
printf("%d",count);
/*if (plc1<0)
answer=answer*(-1);
answer=(plc1-3)+(plc2-3);
printf("%d",answer);*/
}
| #include<stdio.h>
#include<math.h>
#include<IMPORT_0>
int main()
{
int VAR_0,count=0,answer,i,j,plc1,plc2,mat[100][100];
for(i=1;i<=5;i++)
{
for(j=1;j<=5;j++)
{scanf("%d",&mat[i][j]);
if(mat[i][j]>0){
plc1=i;
plc2=j;
}
}
}
for(VAR_0=0;VAR_0<3;VAR_0++)
{
if(plc1<3)
{plc1++;
count++;
}
else if(plc1>3)
{plc1--;
count++;
}
if(plc2<3)
{
plc2++;
count++;
}
else if(plc2>3)
{
plc2--;
count++;
}
else if(plc2==3&&plc1==3)
break;
}
printf("%d",count);
/*if (plc1<0)
answer=answer*(-1);
answer=(plc1-3)+(plc2-3);
printf("%d",answer);*/
}
| 0.199064 | {'IMPORT_0': 'string.h', 'VAR_0': 's'} | c | Procedural | 100.00% |
#pragma once
#include <stdint.h>
namespace sogo {
// Index is offset inside parent struct - index of node in graph, index of audio output in node etc
// Count is how many of a something - number of triggers queued, number of frames to render
// Offset is how far into a global array something is - offset to first audio input of a node in the graphs audio input array
typedef uint16_t TNodeIndex;
typedef int16_t TNodeOffset;
typedef uint8_t TParameterIndex;
typedef uint8_t TTriggerSocketIndex;
typedef uint16_t TTriggerCount;
typedef uint8_t TResourceIndex;
typedef uint8_t TAudioSocketIndex;
typedef uint8_t TChannelIndex;
typedef uint8_t TConnectionIndex;
typedef uint32_t TFrameIndex;
typedef uint32_t TSampleIndex;
typedef uint32_t TFrameRate;
typedef uint32_t TContextMemorySize;
typedef uint32_t TGraphSize;
typedef uint32_t TTriggerBufferSize;
typedef uint32_t TScratchBufferSize;
typedef uint32_t TContextMemorySize;
struct AudioOutput
{
float* m_Buffer;
TChannelIndex m_ChannelCount;
};
struct AudioInput
{
AudioOutput* m_AudioOutput;
};
struct TriggerOutput
{
TNodeIndex m_InputNode;
TTriggerSocketIndex m_Trigger;
};
struct TriggerInput
{
TTriggerSocketIndex* m_Buffer;
TTriggerCount m_Count;
};
struct Resource
{
void* m_Data;
uint32_t m_Size;
};
typedef struct Graph* HGraph;
typedef struct Node* HNode;
typedef float* (*AllocateAudioBufferFunc)(HGraph graph, HNode node, TChannelIndex channel_count, TFrameIndex frame_count);
struct GraphRuntimeSettings
{
TFrameRate m_FrameRate;
TFrameIndex m_MaxBatchSize;
TTriggerCount m_MaxTriggerEventCount;
};
union TParameter
{
float m_Float;
int32_t m_Int;
};
struct RenderParameters;
typedef void (*RenderCallback)(HGraph graph, HNode node, const RenderParameters* render_parameters);
struct RenderParameters
{
void* m_ContextMemory;
AllocateAudioBufferFunc m_AllocateAudioBuffer;
TFrameRate m_FrameRate;
TFrameIndex m_FrameCount;
AudioInput* m_AudioInputs;
AudioOutput* m_AudioOutputs;
TParameter* m_Parameters;
Resource* m_Resources;
TriggerInput* m_TriggerInput;
TriggerOutput* m_TriggerOutputs;
};
struct ParameterDescription
{
const char* m_ParameterName;
TParameter m_InitialValue;
};
struct TriggerDescription
{
const char* m_TriggerName;
};
struct AudioOutputDescription
{
enum AllocationMode
{
PASS_THROUGH, // Reuse buffer from Input[m_InputIndex]
FIXED, // Allocates a buffer with m_ChannelCount channels
AS_INPUT // Allocates a buffer with with same channel count as Input[m_InputIndex]
};
uint16_t m_Mode;
union
{
TChannelIndex m_ChannelCount; // FIXED
TAudioSocketIndex m_InputIndex; // AS_INPUT
};
};
typedef void (*InitCallback)(HGraph graph, HNode node, const GraphRuntimeSettings* graph_runtime_settings, void* context_memory);
struct NodeRuntimeDescription
{
InitCallback m_InitCallback;
RenderCallback m_RenderCallback;
TContextMemorySize m_ContextMemorySize;
};
typedef void (*GetNodeRuntimeDescription)(const GraphRuntimeSettings* graph_runtime_settings, NodeRuntimeDescription* out_node_runtime_desc);
struct NodeStaticDescription
{
GetNodeRuntimeDescription m_GetNodeRuntimeDescCallback;
const ParameterDescription* m_ParameterDescriptions;
const AudioOutputDescription* m_AudioOutputDescriptions;
const TriggerDescription* m_Triggers;
TAudioSocketIndex m_AudioInputCount;
TAudioSocketIndex m_AudioOutputCount;
TResourceIndex m_ResourceCount;
TParameterIndex m_ParameterCount;
TTriggerSocketIndex m_TriggerInputCount;
TTriggerSocketIndex m_TriggerOutputCount;
};
static const TNodeOffset EXTERNAL_NODE_OFFSET = 0;
struct NodeAudioConnection
{
TAudioSocketIndex m_InputIndex;
TNodeOffset m_OutputNodeOffset;
TAudioSocketIndex m_OutputIndex;
};
struct NodeTriggerConnection
{
TTriggerSocketIndex m_InputTriggerIndex;
TNodeOffset m_OutputNodeOffset;
TTriggerSocketIndex m_OutputIndex;
};
struct NodeDescription
{
NodeStaticDescription m_NodeStaticDescription;
TConnectionIndex m_AudioConnectionCount;
TConnectionIndex m_TriggerConnectionCount;
};
struct GraphDescription
{
TNodeIndex m_NodeCount;
const NodeDescription* m_NodeDescriptions;
const NodeAudioConnection* m_AudioConnections;
const NodeTriggerConnection* m_TriggerConnections;
AudioOutput** m_ExternalAudioInputs;
};
struct GraphSize
{
TGraphSize m_GraphSize;
TScratchBufferSize m_ScratchBufferSize;
TTriggerBufferSize m_TriggerBufferSize;
TContextMemorySize m_ContextMemorySize;
};
struct GraphBuffers
{
void* m_GraphMem; // Align to float
void* m_ScratchBufferMem; // Align to float
void* m_TriggerBufferMem; // Align to TTriggerIndex
void* m_ContextMem; // No need to align,
};
struct RenderJob
{
RenderParameters m_RenderParameters;
RenderCallback m_RenderCallback;
HGraph m_Graph;
HNode m_Node;
TNodeIndex m_DependencyCount;
TNodeIndex* m_Dependencies;
};
bool GetGraphSize(const GraphDescription* graph_description, const GraphRuntimeSettings* graph_runtime_settings, GraphSize* out_graph_size);
HGraph CreateGraph(const GraphDescription* graph_description, const GraphRuntimeSettings* graph_runtime_settings, const GraphBuffers* graph_buffers);
AudioOutput* GetOutput(HGraph graph, TNodeIndex node_index, TAudioSocketIndex output_index);
void GetRenderJobs(HGraph graph, TFrameIndex frame_count, RenderJob* out_render_jobs);
bool SetParameter(HGraph graph, TNodeIndex node_index, TParameterIndex parameter_index, TParameter value);
bool Trigger(HGraph graph, TNodeIndex node_index, TTriggerSocketIndex trigger_index);
bool SetResource(HGraph graph, TNodeIndex node_index, TResourceIndex resource_index, const Resource* resource);
void RenderGraph(HGraph graph, TFrameIndex frame_count);
AudioOutput* GetAudioOutput(HGraph graph, TNodeIndex node_index, TAudioSocketIndex output_index);
} // namespace sogo
| #pragma once
#include <IMPORT_0>
CLASS_0 VAR_0 {
// Index is offset inside parent struct - index of node in graph, index of audio output in node etc
// Count is how many of a something - number of triggers queued, number of frames to render
// Offset is how far into a global array something is - offset to first audio input of a node in the graphs audio input array
typedef uint16_t ID_0;
typedef int16_t ID_1;
typedef uint8_t ID_2;
typedef uint8_t ID_3;
typedef uint16_t ID_4;
typedef uint8_t ID_5;
typedef uint8_t ID_6;
typedef uint8_t ID_7;
typedef uint8_t ID_8;
typedef uint32_t ID_9;
typedef uint32_t ID_10;
typedef uint32_t ID_11;
typedef uint32_t ID_12;
typedef uint32_t ID_13;
typedef uint32_t ID_14;
typedef uint32_t ID_15;
typedef uint32_t ID_12;
struct CLASS_16
{
float* VAR_1;
CLASS_8 VAR_2;
};
struct CLASS_17
{
CLASS_16* VAR_3;
};
struct CLASS_18
{
CLASS_1 VAR_4;
CLASS_4 VAR_5;
};
struct CLASS_19
{
CLASS_4* VAR_1;
CLASS_5 VAR_6;
};
struct CLASS_20
{
void* VAR_7;
uint32_t VAR_8;
};
typedef struct CLASS_21* CLASS_22;
typedef struct CLASS_23* CLASS_24;
typedef float* (*CLASS_25)(CLASS_22 VAR_9, CLASS_24 VAR_10, CLASS_8 VAR_11, CLASS_10 VAR_12);
struct CLASS_26
{
CLASS_11 VAR_13;
CLASS_10 VAR_14;
CLASS_5 VAR_15;
};
union CLASS_27
{
float VAR_16;
int32_t VAR_17;
};
struct CLASS_28;
typedef void (*CLASS_29)(CLASS_22 VAR_9, CLASS_24 VAR_10, const CLASS_28* VAR_18);
struct CLASS_28
{
void* VAR_19;
CLASS_25 VAR_20;
CLASS_11 VAR_13;
CLASS_10 VAR_21;
CLASS_17* VAR_22;
CLASS_16* VAR_23;
CLASS_27* VAR_24;
CLASS_20* VAR_25;
CLASS_19* VAR_26;
CLASS_18* VAR_27;
};
struct CLASS_30
{
const char* VAR_28;
CLASS_27 VAR_29;
};
struct CLASS_31
{
const char* VAR_30;
};
struct CLASS_32
{
enum CLASS_33
{
VAR_31, // Reuse buffer from Input[m_InputIndex]
VAR_32, // Allocates a buffer with m_ChannelCount channels
VAR_33 // Allocates a buffer with with same channel count as Input[m_InputIndex]
};
uint16_t VAR_34;
union
{
CLASS_8 VAR_2; // FIXED
CLASS_7 VAR_35; // AS_INPUT
};
};
typedef void (*CLASS_34)(CLASS_22 VAR_9, CLASS_24 VAR_10, const CLASS_26* VAR_36, void* VAR_37);
struct CLASS_35
{
CLASS_34 m_InitCallback;
CLASS_29 VAR_38;
CLASS_12 VAR_39;
};
typedef void (*CLASS_36)(const CLASS_26* VAR_36, CLASS_35* VAR_40);
struct CLASS_37
{
CLASS_36 VAR_41;
const CLASS_30* m_ParameterDescriptions;
const CLASS_32* VAR_42;
const CLASS_31* VAR_43;
CLASS_7 VAR_44;
CLASS_7 VAR_45;
CLASS_6 VAR_46;
CLASS_3 VAR_47;
CLASS_4 VAR_48;
CLASS_4 VAR_49;
};
static const CLASS_2 VAR_50 = 0;
struct CLASS_38
{
CLASS_7 VAR_35;
CLASS_2 VAR_51;
CLASS_7 VAR_52;
};
struct CLASS_39
{
CLASS_4 VAR_53;
CLASS_2 VAR_51;
CLASS_4 VAR_52;
};
struct NodeDescription
{
CLASS_37 VAR_54;
CLASS_9 VAR_55;
CLASS_9 VAR_56;
};
struct CLASS_40
{
CLASS_1 VAR_57;
const NodeDescription* VAR_58;
const CLASS_38* VAR_59;
const CLASS_39* VAR_60;
CLASS_16** VAR_61;
};
struct CLASS_41
{
CLASS_13 VAR_62;
CLASS_15 VAR_63;
CLASS_14 VAR_64;
CLASS_12 VAR_39;
};
struct CLASS_42
{
void* VAR_65; // Align to float
void* VAR_66; // Align to float
void* m_TriggerBufferMem; // Align to TTriggerIndex
void* VAR_67; // No need to align,
};
struct CLASS_43
{
CLASS_28 VAR_68;
CLASS_29 VAR_38;
CLASS_22 VAR_69;
CLASS_24 VAR_70;
CLASS_1 VAR_71;
CLASS_1* VAR_72;
};
bool FUNC_0(const CLASS_40* VAR_73, const CLASS_26* VAR_36, CLASS_41* VAR_74);
CLASS_22 FUNC_1(const CLASS_40* VAR_73, const CLASS_26* VAR_36, const CLASS_42* graph_buffers);
CLASS_16* FUNC_2(CLASS_22 VAR_9, CLASS_1 VAR_75, CLASS_7 VAR_76);
void FUNC_3(CLASS_22 VAR_9, CLASS_10 VAR_12, CLASS_43* VAR_77);
bool FUNC_4(CLASS_22 VAR_9, CLASS_1 VAR_75, CLASS_3 VAR_78, CLASS_27 VAR_79);
bool FUNC_5(CLASS_22 VAR_9, CLASS_1 VAR_75, CLASS_4 VAR_80);
bool FUNC_6(CLASS_22 VAR_9, CLASS_1 VAR_75, CLASS_6 VAR_81, const CLASS_20* VAR_82);
void FUNC_7(CLASS_22 VAR_9, CLASS_10 VAR_12);
CLASS_16* FUNC_8(CLASS_22 VAR_9, CLASS_1 VAR_75, CLASS_7 VAR_76);
} // namespace sogo
| 0.981268 | {'IMPORT_0': 'stdint.h', 'CLASS_0': 'namespace', 'VAR_0': 'sogo', 'ID_0': 'TNodeIndex', 'CLASS_1': 'TNodeIndex', 'ID_1': 'TNodeOffset', 'CLASS_2': 'TNodeOffset', 'ID_2': 'TParameterIndex', 'CLASS_3': 'TParameterIndex', 'ID_3': 'TTriggerSocketIndex', 'CLASS_4': 'TTriggerSocketIndex', 'ID_4': 'TTriggerCount', 'CLASS_5': 'TTriggerCount', 'ID_5': 'TResourceIndex', 'CLASS_6': 'TResourceIndex', 'ID_6': 'TAudioSocketIndex', 'CLASS_7': 'TAudioSocketIndex', 'ID_7': 'TChannelIndex', 'CLASS_8': 'TChannelIndex', 'ID_8': 'TConnectionIndex', 'CLASS_9': 'TConnectionIndex', 'ID_9': 'TFrameIndex', 'CLASS_10': 'TFrameIndex', 'ID_10': 'TSampleIndex', 'ID_11': 'TFrameRate', 'CLASS_11': 'TFrameRate', 'ID_12': 'TContextMemorySize', 'CLASS_12': 'TContextMemorySize', 'ID_13': 'TGraphSize', 'CLASS_13': 'TGraphSize', 'ID_14': 'TTriggerBufferSize', 'CLASS_14': 'TTriggerBufferSize', 'ID_15': 'TScratchBufferSize', 'CLASS_15': 'TScratchBufferSize', 'CLASS_16': 'AudioOutput', 'VAR_1': 'm_Buffer', 'VAR_2': 'm_ChannelCount', 'CLASS_17': 'AudioInput', 'VAR_3': 'm_AudioOutput', 'CLASS_18': 'TriggerOutput', 'VAR_4': 'm_InputNode', 'VAR_5': 'm_Trigger', 'CLASS_19': 'TriggerInput', 'VAR_6': 'm_Count', 'CLASS_20': 'Resource', 'VAR_7': 'm_Data', 'VAR_8': 'm_Size', 'CLASS_21': 'Graph', 'CLASS_22': 'HGraph', 'CLASS_23': 'Node', 'CLASS_24': 'HNode', 'CLASS_25': 'AllocateAudioBufferFunc', 'VAR_9': 'graph', 'VAR_10': 'node', 'VAR_11': 'channel_count', 'VAR_12': 'frame_count', 'CLASS_26': 'GraphRuntimeSettings', 'VAR_13': 'm_FrameRate', 'VAR_14': 'm_MaxBatchSize', 'VAR_15': 'm_MaxTriggerEventCount', 'CLASS_27': 'TParameter', 'VAR_16': 'm_Float', 'VAR_17': 'm_Int', 'CLASS_28': 'RenderParameters', 'CLASS_29': 'RenderCallback', 'VAR_18': 'render_parameters', 'VAR_19': 'm_ContextMemory', 'VAR_20': 'm_AllocateAudioBuffer', 'VAR_21': 'm_FrameCount', 'VAR_22': 'm_AudioInputs', 'VAR_23': 'm_AudioOutputs', 'VAR_24': 'm_Parameters', 'VAR_25': 'm_Resources', 'VAR_26': 'm_TriggerInput', 'VAR_27': 'm_TriggerOutputs', 'CLASS_30': 'ParameterDescription', 'VAR_28': 'm_ParameterName', 'VAR_29': 'm_InitialValue', 'CLASS_31': 'TriggerDescription', 'VAR_30': 'm_TriggerName', 'CLASS_32': 'AudioOutputDescription', 'CLASS_33': 'AllocationMode', 'VAR_31': 'PASS_THROUGH', 'VAR_32': 'FIXED', 'VAR_33': 'AS_INPUT', 'VAR_34': 'm_Mode', 'VAR_35': 'm_InputIndex', 'CLASS_34': 'InitCallback', 'VAR_36': 'graph_runtime_settings', 'VAR_37': 'context_memory', 'CLASS_35': 'NodeRuntimeDescription', 'VAR_38': 'm_RenderCallback', 'VAR_39': 'm_ContextMemorySize', 'CLASS_36': 'GetNodeRuntimeDescription', 'VAR_40': 'out_node_runtime_desc', 'CLASS_37': 'NodeStaticDescription', 'VAR_41': 'm_GetNodeRuntimeDescCallback', 'VAR_42': 'm_AudioOutputDescriptions', 'VAR_43': 'm_Triggers', 'VAR_44': 'm_AudioInputCount', 'VAR_45': 'm_AudioOutputCount', 'VAR_46': 'm_ResourceCount', 'VAR_47': 'm_ParameterCount', 'VAR_48': 'm_TriggerInputCount', 'VAR_49': 'm_TriggerOutputCount', 'VAR_50': 'EXTERNAL_NODE_OFFSET', 'CLASS_38': 'NodeAudioConnection', 'VAR_51': 'm_OutputNodeOffset', 'VAR_52': 'm_OutputIndex', 'CLASS_39': 'NodeTriggerConnection', 'VAR_53': 'm_InputTriggerIndex', 'VAR_54': 'm_NodeStaticDescription', 'VAR_55': 'm_AudioConnectionCount', 'VAR_56': 'm_TriggerConnectionCount', 'CLASS_40': 'GraphDescription', 'VAR_57': 'm_NodeCount', 'VAR_58': 'm_NodeDescriptions', 'VAR_59': 'm_AudioConnections', 'VAR_60': 'm_TriggerConnections', 'VAR_61': 'm_ExternalAudioInputs', 'CLASS_41': 'GraphSize', 'VAR_62': 'm_GraphSize', 'VAR_63': 'm_ScratchBufferSize', 'VAR_64': 'm_TriggerBufferSize', 'CLASS_42': 'GraphBuffers', 'VAR_65': 'm_GraphMem', 'VAR_66': 'm_ScratchBufferMem', 'VAR_67': 'm_ContextMem', 'CLASS_43': 'RenderJob', 'VAR_68': 'm_RenderParameters', 'VAR_69': 'm_Graph', 'VAR_70': 'm_Node', 'VAR_71': 'm_DependencyCount', 'VAR_72': 'm_Dependencies', 'FUNC_0': 'GetGraphSize', 'VAR_73': 'graph_description', 'VAR_74': 'out_graph_size', 'FUNC_1': 'CreateGraph', 'FUNC_2': 'GetOutput', 'VAR_75': 'node_index', 'VAR_76': 'output_index', 'FUNC_3': 'GetRenderJobs', 'VAR_77': 'out_render_jobs', 'FUNC_4': 'SetParameter', 'VAR_78': 'parameter_index', 'VAR_79': 'value', 'FUNC_5': 'Trigger', 'VAR_80': 'trigger_index', 'FUNC_6': 'SetResource', 'VAR_81': 'resource_index', 'VAR_82': 'resource', 'FUNC_7': 'RenderGraph', 'FUNC_8': 'GetAudioOutput'} | c | Texto | 1.41% |
#ifndef SF_JOYSTICK_ANALOG_INPUT_EVENT_H
#define SF_JOYSTICK_ANALOG_INPUT_EVENT_H
#include "pch.h"
#include <SFML/Window/Joystick.hpp>
#include <boost/property_tree/ptree.hpp>
#include "InputEvent.h"
class SfJoystickAnalogInputEvent : public InputEvent
{
private:
unsigned int joystickIndex = 0;
sf::Joystick::Axis axis = sf::Joystick::X;
const double SCALING = 1.4;
public:
SfJoystickAnalogInputEvent() {};
SfJoystickAnalogInputEvent(unsigned int joystickIndex, sf::Joystick::Axis axis) {
this->joystickIndex = joystickIndex;
this->axis = axis;
assertConnected();
}
SfJoystickAnalogInputEvent(const boost::property_tree::ptree & tree) {
joystickIndex = tree.get("joystick index", 0);
axis = (sf::Joystick::Axis) tree.get("axis", 0);
assertConnected();
}
void assertConnected() {
if (!sf::Joystick::isConnected(joystickIndex))
std::cerr << "Joystick " << joystickIndex << " was requested but is not connected.\n";
}
int getInputValue() const override {
if (!sf::Joystick::isConnected(joystickIndex) || !sf::Joystick::hasAxis(joystickIndex, axis))
return 128;
int value = (100 + sf::Joystick::getAxisPosition(joystickIndex, axis) * SCALING) / 200.0 * 255.0;
if (value > 255)
value = 255;
if (value < 0)
value = 0;
return value;
}
bool isDigital() const override { return false; }
std::shared_ptr<InputEvent> makeShared(const boost::property_tree::ptree & tree, const std::map<std::string, std::shared_ptr<InputEvent>> & eventMap) const override { return nullptr; }
std::string getTypeName() const override { return ""; }
void update() override {}
std::string toString() const override { return ""; }
boost::property_tree::ptree toPtree() const override {return boost::property_tree::ptree(); }
bool operator==(const InputEvent& other) const override { return false; }
};
#endif | #ifndef SF_JOYSTICK_ANALOG_INPUT_EVENT_H
#define SF_JOYSTICK_ANALOG_INPUT_EVENT_H
#include "IMPORT_0"
#include <SFML/Window/Joystick.hpp>
#include <boost/property_tree/ptree.hpp>
#include "InputEvent.h"
CLASS_0 VAR_0 : VAR_1 InputEvent
{
private:
unsigned int VAR_2 = 0;
sf::Joystick::Axis axis = VAR_3::Joystick::VAR_5;
const double VAR_6 = 1.4;
public:
FUNC_0() {};
VAR_0(unsigned int VAR_2, VAR_3::VAR_4::Axis axis) {
VAR_7->VAR_2 = VAR_2;
VAR_7->axis = axis;
assertConnected();
}
SfJoystickAnalogInputEvent(const boost::property_tree::ptree & VAR_8) {
VAR_2 = VAR_8.FUNC_1("joystick index", 0);
axis = (VAR_3::VAR_4::Axis) VAR_8.FUNC_1("axis", 0);
assertConnected();
}
void assertConnected() {
if (!VAR_3::VAR_4::isConnected(VAR_2))
std::VAR_10 << "Joystick " << VAR_2 << " was requested but is not connected.\n";
}
int FUNC_2() const override {
if (!VAR_3::VAR_4::isConnected(VAR_2) || !VAR_3::VAR_4::hasAxis(VAR_2, axis))
return 128;
int VAR_11 = (100 + VAR_3::VAR_4::getAxisPosition(VAR_2, axis) * VAR_6) / 200.0 * 255.0;
if (VAR_11 > 255)
VAR_11 = 255;
if (VAR_11 < 0)
VAR_11 = 0;
return VAR_11;
}
bool isDigital() const override { return false; }
std::shared_ptr<InputEvent> makeShared(const boost::property_tree::ptree & VAR_8, const VAR_9::map<VAR_9::string, VAR_9::shared_ptr<InputEvent>> & VAR_12) const override { return nullptr; }
std::string getTypeName() const override { return ""; }
void update() override {}
std::string FUNC_3() const override { return ""; }
boost::property_tree::ptree FUNC_4() const override {return boost::property_tree::ptree(); }
bool operator==(const InputEvent& VAR_13) const override { return false; }
};
#endif | 0.40369 | {'IMPORT_0': 'pch.h', 'CLASS_0': 'class', 'VAR_0': 'SfJoystickAnalogInputEvent', 'FUNC_0': 'SfJoystickAnalogInputEvent', 'VAR_1': 'public', 'VAR_2': 'joystickIndex', 'VAR_3': 'sf', 'VAR_4': 'Joystick', 'VAR_5': 'X', 'VAR_6': 'SCALING', 'VAR_7': 'this', 'VAR_8': 'tree', 'FUNC_1': 'get', 'VAR_9': 'std', 'VAR_10': 'cerr', 'FUNC_2': 'getInputValue', 'VAR_11': 'value', 'VAR_12': 'eventMap', 'FUNC_3': 'toString', 'FUNC_4': 'toPtree', 'VAR_13': 'other'} | c | Texto | 8.40% |
//
// UIView+Effect.h
// CloudShop
//
// Created by Goko on 17/11/2017.
// Copyright © 2017 xiaojian. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIView (Effect)
+(UIVisualEffectView *)blurEffectViewWithStyle:(UIBlurEffectStyle)style;
-(void)bouceViewWithDuration:(CGFloat)duration;
-(void)horizontalGradientWithLeftColor:(UIColor *)leftColor rightColor:(UIColor *)rightColor;
@end
| //
// UIView+Effect.h
// CloudShop
//
// Created by Goko on 17/11/2017.
// Copyright © 2017 xiaojian. All rights reserved.
//
#import <UIKit/UIKit.h>
@CLASS_0 FUNC_0 (VAR_0)
+(CLASS_1 *)VAR_1:(UIBlurEffectStyle)VAR_2;
-(void)bouceViewWithDuration:(VAR_3)VAR_4;
-(void)VAR_5:(VAR_6 *)VAR_7 rightColor:(VAR_6 *)rightColor;
@VAR_8
| 0.554915 | {'CLASS_0': 'interface', 'FUNC_0': 'UIView', 'VAR_0': 'Effect', 'CLASS_1': 'UIVisualEffectView', 'VAR_1': 'blurEffectViewWithStyle', 'VAR_2': 'style', 'VAR_3': 'CGFloat', 'VAR_4': 'duration', 'VAR_5': 'horizontalGradientWithLeftColor', 'VAR_6': 'UIColor', 'VAR_7': 'leftColor', 'VAR_8': 'end'} | c | Procedural | 100.00% |
/*
The OptionMonad had some incorrect fundef_cong rules, which prevented
a function that called itself twice from being defined in isabelle.
For example, fib.
*/
unsigned fib(unsigned n) {
if(n == 0) return 0;
if(n == 1) return 1;
return fib(n - 1) + fib(n - 2);
} | /*
The OptionMonad had some incorrect fundef_cong rules, which prevented
a function that called itself twice from being defined in isabelle.
For example, fib.
*/
unsigned FUNC_0(unsigned n) {
if(n == 0) return 0;
if(n == 1) return 1;
return FUNC_0(n - 1) + FUNC_0(n - 2);
} | 0.430201 | {'FUNC_0': 'fib'} | c | Procedural | 100.00% |
// SPDX-License-Identifier: GPL-2.0-only
/****************************************************************************
* Driver for Solarflare network controllers and boards
* Copyright 2006-2011 Solarflare Communications Inc.
*/
/*
* Useful functions for working with MDIO clause 45 PHYs
*/
#include <linux/types.h>
#include <linux/ethtool.h>
#include <linux/delay.h>
#include "net_driver.h"
#include "mdio_10g.h"
#include "workarounds.h"
unsigned ef4_mdio_id_oui(u32 id)
{
unsigned oui = 0;
int i;
/* The bits of the OUI are designated a..x, with a=0 and b variable.
* In the id register c is the MSB but the OUI is conventionally
* written as bytes h..a, p..i, x..q. Reorder the bits accordingly. */
for (i = 0; i < 22; ++i)
if (id & (1 << (i + 10)))
oui |= 1 << (i ^ 7);
return oui;
}
int ef4_mdio_reset_mmd(struct ef4_nic *port, int mmd,
int spins, int spintime)
{
u32 ctrl;
/* Catch callers passing values in the wrong units (or just silly) */
EF4_BUG_ON_PARANOID(spins * spintime >= 5000);
ef4_mdio_write(port, mmd, MDIO_CTRL1, MDIO_CTRL1_RESET);
/* Wait for the reset bit to clear. */
do {
msleep(spintime);
ctrl = ef4_mdio_read(port, mmd, MDIO_CTRL1);
spins--;
} while (spins && (ctrl & MDIO_CTRL1_RESET));
return spins ? spins : -ETIMEDOUT;
}
static int ef4_mdio_check_mmd(struct ef4_nic *efx, int mmd)
{
int status;
if (mmd != MDIO_MMD_AN) {
/* Read MMD STATUS2 to check it is responding. */
status = ef4_mdio_read(efx, mmd, MDIO_STAT2);
if ((status & MDIO_STAT2_DEVPRST) != MDIO_STAT2_DEVPRST_VAL) {
netif_err(efx, hw, efx->net_dev,
"PHY MMD %d not responding.\n", mmd);
return -EIO;
}
}
return 0;
}
/* This ought to be ridiculous overkill. We expect it to fail rarely */
#define MDIO45_RESET_TIME 1000 /* ms */
#define MDIO45_RESET_ITERS 100
int ef4_mdio_wait_reset_mmds(struct ef4_nic *efx, unsigned int mmd_mask)
{
const int spintime = MDIO45_RESET_TIME / MDIO45_RESET_ITERS;
int tries = MDIO45_RESET_ITERS;
int rc = 0;
int in_reset;
while (tries) {
int mask = mmd_mask;
int mmd = 0;
int stat;
in_reset = 0;
while (mask) {
if (mask & 1) {
stat = ef4_mdio_read(efx, mmd, MDIO_CTRL1);
if (stat < 0) {
netif_err(efx, hw, efx->net_dev,
"failed to read status of"
" MMD %d\n", mmd);
return -EIO;
}
if (stat & MDIO_CTRL1_RESET)
in_reset |= (1 << mmd);
}
mask = mask >> 1;
mmd++;
}
if (!in_reset)
break;
tries--;
msleep(spintime);
}
if (in_reset != 0) {
netif_err(efx, hw, efx->net_dev,
"not all MMDs came out of reset in time."
" MMDs still in reset: %x\n", in_reset);
rc = -ETIMEDOUT;
}
return rc;
}
int ef4_mdio_check_mmds(struct ef4_nic *efx, unsigned int mmd_mask)
{
int mmd = 0, probe_mmd, devs1, devs2;
u32 devices;
/* Historically we have probed the PHYXS to find out what devices are
* present,but that doesn't work so well if the PHYXS isn't expected
* to exist, if so just find the first item in the list supplied. */
probe_mmd = (mmd_mask & MDIO_DEVS_PHYXS) ? MDIO_MMD_PHYXS :
__ffs(mmd_mask);
/* Check all the expected MMDs are present */
devs1 = ef4_mdio_read(efx, probe_mmd, MDIO_DEVS1);
devs2 = ef4_mdio_read(efx, probe_mmd, MDIO_DEVS2);
if (devs1 < 0 || devs2 < 0) {
netif_err(efx, hw, efx->net_dev,
"failed to read devices present\n");
return -EIO;
}
devices = devs1 | (devs2 << 16);
if ((devices & mmd_mask) != mmd_mask) {
netif_err(efx, hw, efx->net_dev,
"required MMDs not present: got %x, wanted %x\n",
devices, mmd_mask);
return -ENODEV;
}
netif_vdbg(efx, hw, efx->net_dev, "Devices present: %x\n", devices);
/* Check all required MMDs are responding and happy. */
while (mmd_mask) {
if ((mmd_mask & 1) && ef4_mdio_check_mmd(efx, mmd))
return -EIO;
mmd_mask = mmd_mask >> 1;
mmd++;
}
return 0;
}
bool ef4_mdio_links_ok(struct ef4_nic *efx, unsigned int mmd_mask)
{
/* If the port is in loopback, then we should only consider a subset
* of mmd's */
if (LOOPBACK_INTERNAL(efx))
return true;
else if (LOOPBACK_MASK(efx) & LOOPBACKS_WS)
return false;
else if (ef4_phy_mode_disabled(efx->phy_mode))
return false;
else if (efx->loopback_mode == LOOPBACK_PHYXS)
mmd_mask &= ~(MDIO_DEVS_PHYXS |
MDIO_DEVS_PCS |
MDIO_DEVS_PMAPMD |
MDIO_DEVS_AN);
else if (efx->loopback_mode == LOOPBACK_PCS)
mmd_mask &= ~(MDIO_DEVS_PCS |
MDIO_DEVS_PMAPMD |
MDIO_DEVS_AN);
else if (efx->loopback_mode == LOOPBACK_PMAPMD)
mmd_mask &= ~(MDIO_DEVS_PMAPMD |
MDIO_DEVS_AN);
return mdio45_links_ok(&efx->mdio, mmd_mask);
}
void ef4_mdio_transmit_disable(struct ef4_nic *efx)
{
ef4_mdio_set_flag(efx, MDIO_MMD_PMAPMD,
MDIO_PMA_TXDIS, MDIO_PMD_TXDIS_GLOBAL,
efx->phy_mode & PHY_MODE_TX_DISABLED);
}
void ef4_mdio_phy_reconfigure(struct ef4_nic *efx)
{
ef4_mdio_set_flag(efx, MDIO_MMD_PMAPMD,
MDIO_CTRL1, MDIO_PMA_CTRL1_LOOPBACK,
efx->loopback_mode == LOOPBACK_PMAPMD);
ef4_mdio_set_flag(efx, MDIO_MMD_PCS,
MDIO_CTRL1, MDIO_PCS_CTRL1_LOOPBACK,
efx->loopback_mode == LOOPBACK_PCS);
ef4_mdio_set_flag(efx, MDIO_MMD_PHYXS,
MDIO_CTRL1, MDIO_PHYXS_CTRL1_LOOPBACK,
efx->loopback_mode == LOOPBACK_PHYXS_WS);
}
static void ef4_mdio_set_mmd_lpower(struct ef4_nic *efx,
int lpower, int mmd)
{
int stat = ef4_mdio_read(efx, mmd, MDIO_STAT1);
netif_vdbg(efx, drv, efx->net_dev, "Setting low power mode for MMD %d to %d\n",
mmd, lpower);
if (stat & MDIO_STAT1_LPOWERABLE) {
ef4_mdio_set_flag(efx, mmd, MDIO_CTRL1,
MDIO_CTRL1_LPOWER, lpower);
}
}
void ef4_mdio_set_mmds_lpower(struct ef4_nic *efx,
int low_power, unsigned int mmd_mask)
{
int mmd = 0;
mmd_mask &= ~MDIO_DEVS_AN;
while (mmd_mask) {
if (mmd_mask & 1)
ef4_mdio_set_mmd_lpower(efx, low_power, mmd);
mmd_mask = (mmd_mask >> 1);
mmd++;
}
}
/**
* ef4_mdio_set_link_ksettings - Set (some of) the PHY settings over MDIO.
* @efx: Efx NIC
* @cmd: New settings
*/
int ef4_mdio_set_link_ksettings(struct ef4_nic *efx,
const struct ethtool_link_ksettings *cmd)
{
struct ethtool_link_ksettings prev = {
.base.cmd = ETHTOOL_GLINKSETTINGS
};
u32 prev_advertising, advertising;
u32 prev_supported;
efx->phy_op->get_link_ksettings(efx, &prev);
ethtool_convert_link_mode_to_legacy_u32(&advertising,
cmd->link_modes.advertising);
ethtool_convert_link_mode_to_legacy_u32(&prev_advertising,
prev.link_modes.advertising);
ethtool_convert_link_mode_to_legacy_u32(&prev_supported,
prev.link_modes.supported);
if (advertising == prev_advertising &&
cmd->base.speed == prev.base.speed &&
cmd->base.duplex == prev.base.duplex &&
cmd->base.port == prev.base.port &&
cmd->base.autoneg == prev.base.autoneg)
return 0;
/* We can only change these settings for -T PHYs */
if (prev.base.port != PORT_TP || cmd->base.port != PORT_TP)
return -EINVAL;
/* Check that PHY supports these settings */
if (!cmd->base.autoneg ||
(advertising | SUPPORTED_Autoneg) & ~prev_supported)
return -EINVAL;
ef4_link_set_advertising(efx, advertising | ADVERTISED_Autoneg);
ef4_mdio_an_reconfigure(efx);
return 0;
}
/**
* ef4_mdio_an_reconfigure - Push advertising flags and restart autonegotiation
* @efx: Efx NIC
*/
void ef4_mdio_an_reconfigure(struct ef4_nic *efx)
{
int reg;
WARN_ON(!(efx->mdio.mmds & MDIO_DEVS_AN));
/* Set up the base page */
reg = ADVERTISE_CSMA | ADVERTISE_RESV;
if (efx->link_advertising & ADVERTISED_Pause)
reg |= ADVERTISE_PAUSE_CAP;
if (efx->link_advertising & ADVERTISED_Asym_Pause)
reg |= ADVERTISE_PAUSE_ASYM;
ef4_mdio_write(efx, MDIO_MMD_AN, MDIO_AN_ADVERTISE, reg);
/* Set up the (extended) next page */
efx->phy_op->set_npage_adv(efx, efx->link_advertising);
/* Enable and restart AN */
reg = ef4_mdio_read(efx, MDIO_MMD_AN, MDIO_CTRL1);
reg |= MDIO_AN_CTRL1_ENABLE | MDIO_AN_CTRL1_RESTART | MDIO_AN_CTRL1_XNP;
ef4_mdio_write(efx, MDIO_MMD_AN, MDIO_CTRL1, reg);
}
u8 ef4_mdio_get_pause(struct ef4_nic *efx)
{
BUILD_BUG_ON(EF4_FC_AUTO & (EF4_FC_RX | EF4_FC_TX));
if (!(efx->wanted_fc & EF4_FC_AUTO))
return efx->wanted_fc;
WARN_ON(!(efx->mdio.mmds & MDIO_DEVS_AN));
return mii_resolve_flowctrl_fdx(
mii_advertise_flowctrl(efx->wanted_fc),
ef4_mdio_read(efx, MDIO_MMD_AN, MDIO_AN_LPA));
}
int ef4_mdio_test_alive(struct ef4_nic *efx)
{
int rc;
int devad = __ffs(efx->mdio.mmds);
u16 physid1, physid2;
mutex_lock(&efx->mac_lock);
physid1 = ef4_mdio_read(efx, devad, MDIO_DEVID1);
physid2 = ef4_mdio_read(efx, devad, MDIO_DEVID2);
if ((physid1 == 0x0000) || (physid1 == 0xffff) ||
(physid2 == 0x0000) || (physid2 == 0xffff)) {
netif_err(efx, hw, efx->net_dev,
"no MDIO PHY present with ID %d\n", efx->mdio.prtad);
rc = -EINVAL;
} else {
rc = ef4_mdio_check_mmds(efx, efx->mdio.mmds);
}
mutex_unlock(&efx->mac_lock);
return rc;
}
| // SPDX-License-Identifier: GPL-2.0-only
/****************************************************************************
* Driver for Solarflare network controllers and boards
* Copyright 2006-2011 Solarflare Communications Inc.
*/
/*
* Useful functions for working with MDIO clause 45 PHYs
*/
#include <linux/types.h>
#include <linux/ethtool.h>
#include <IMPORT_0>
#include "net_driver.h"
#include "mdio_10g.h"
#include "workarounds.h"
unsigned FUNC_0(u32 VAR_0)
{
unsigned VAR_1 = 0;
int VAR_2;
/* The bits of the OUI are designated a..x, with a=0 and b variable.
* In the id register c is the MSB but the OUI is conventionally
* written as bytes h..a, p..i, x..q. Reorder the bits accordingly. */
for (VAR_2 = 0; VAR_2 < 22; ++VAR_2)
if (VAR_0 & (1 << (VAR_2 + 10)))
VAR_1 |= 1 << (VAR_2 ^ 7);
return VAR_1;
}
int FUNC_1(struct ef4_nic *VAR_3, int mmd,
int VAR_4, int VAR_5)
{
u32 VAR_6;
/* Catch callers passing values in the wrong units (or just silly) */
FUNC_2(VAR_4 * VAR_5 >= 5000);
ef4_mdio_write(VAR_3, mmd, VAR_7, VAR_8);
/* Wait for the reset bit to clear. */
do {
FUNC_3(VAR_5);
VAR_6 = ef4_mdio_read(VAR_3, mmd, VAR_7);
VAR_4--;
} while (VAR_4 && (VAR_6 & VAR_8));
return VAR_4 ? VAR_4 : -VAR_9;
}
static int ef4_mdio_check_mmd(struct ef4_nic *VAR_10, int mmd)
{
int status;
if (mmd != VAR_11) {
/* Read MMD STATUS2 to check it is responding. */
status = ef4_mdio_read(VAR_10, mmd, VAR_12);
if ((status & VAR_13) != VAR_14) {
FUNC_4(VAR_10, VAR_15, VAR_10->VAR_16,
"PHY MMD %d not responding.\n", mmd);
return -VAR_17;
}
}
return 0;
}
/* This ought to be ridiculous overkill. We expect it to fail rarely */
#define VAR_18 1000 /* ms */
#define VAR_19 100
int FUNC_5(struct ef4_nic *VAR_10, unsigned int mmd_mask)
{
const int VAR_5 = VAR_18 / VAR_19;
int VAR_20 = VAR_19;
int VAR_21 = 0;
int in_reset;
while (VAR_20) {
int VAR_22 = mmd_mask;
int mmd = 0;
int VAR_23;
in_reset = 0;
while (VAR_22) {
if (VAR_22 & 1) {
VAR_23 = ef4_mdio_read(VAR_10, mmd, VAR_7);
if (VAR_23 < 0) {
FUNC_4(VAR_10, VAR_15, VAR_10->VAR_16,
"failed to read status of"
" MMD %d\n", mmd);
return -VAR_17;
}
if (VAR_23 & VAR_8)
in_reset |= (1 << mmd);
}
VAR_22 = VAR_22 >> 1;
mmd++;
}
if (!in_reset)
break;
VAR_20--;
FUNC_3(VAR_5);
}
if (in_reset != 0) {
FUNC_4(VAR_10, VAR_15, VAR_10->VAR_16,
"not all MMDs came out of reset in time."
" MMDs still in reset: %x\n", in_reset);
VAR_21 = -VAR_9;
}
return VAR_21;
}
int FUNC_6(struct ef4_nic *VAR_10, unsigned int mmd_mask)
{
int mmd = 0, probe_mmd, VAR_24, devs2;
u32 VAR_25;
/* Historically we have probed the PHYXS to find out what devices are
* present,but that doesn't work so well if the PHYXS isn't expected
* to exist, if so just find the first item in the list supplied. */
probe_mmd = (mmd_mask & MDIO_DEVS_PHYXS) ? MDIO_MMD_PHYXS :
FUNC_7(mmd_mask);
/* Check all the expected MMDs are present */
VAR_24 = ef4_mdio_read(VAR_10, probe_mmd, VAR_26);
devs2 = ef4_mdio_read(VAR_10, probe_mmd, VAR_27);
if (VAR_24 < 0 || devs2 < 0) {
FUNC_4(VAR_10, VAR_15, VAR_10->VAR_16,
"failed to read devices present\n");
return -VAR_17;
}
VAR_25 = VAR_24 | (devs2 << 16);
if ((VAR_25 & mmd_mask) != mmd_mask) {
FUNC_4(VAR_10, VAR_15, VAR_10->VAR_16,
"required MMDs not present: got %x, wanted %x\n",
VAR_25, mmd_mask);
return -VAR_28;
}
FUNC_8(VAR_10, VAR_15, VAR_10->VAR_16, "Devices present: %x\n", VAR_25);
/* Check all required MMDs are responding and happy. */
while (mmd_mask) {
if ((mmd_mask & 1) && ef4_mdio_check_mmd(VAR_10, mmd))
return -VAR_17;
mmd_mask = mmd_mask >> 1;
mmd++;
}
return 0;
}
bool FUNC_9(struct ef4_nic *VAR_10, unsigned int mmd_mask)
{
/* If the port is in loopback, then we should only consider a subset
* of mmd's */
if (FUNC_10(VAR_10))
return true;
else if (FUNC_11(VAR_10) & VAR_29)
return false;
else if (ef4_phy_mode_disabled(VAR_10->VAR_30))
return false;
else if (VAR_10->loopback_mode == VAR_31)
mmd_mask &= ~(MDIO_DEVS_PHYXS |
VAR_32 |
VAR_33 |
VAR_34);
else if (VAR_10->loopback_mode == VAR_35)
mmd_mask &= ~(VAR_32 |
VAR_33 |
VAR_34);
else if (VAR_10->loopback_mode == LOOPBACK_PMAPMD)
mmd_mask &= ~(VAR_33 |
VAR_34);
return mdio45_links_ok(&VAR_10->VAR_36, mmd_mask);
}
void FUNC_12(struct ef4_nic *VAR_10)
{
FUNC_13(VAR_10, VAR_37,
VAR_38, VAR_39,
VAR_10->VAR_30 & VAR_40);
}
void FUNC_14(struct ef4_nic *VAR_10)
{
FUNC_13(VAR_10, VAR_37,
VAR_7, MDIO_PMA_CTRL1_LOOPBACK,
VAR_10->loopback_mode == LOOPBACK_PMAPMD);
FUNC_13(VAR_10, VAR_41,
VAR_7, VAR_42,
VAR_10->loopback_mode == VAR_35);
FUNC_13(VAR_10, MDIO_MMD_PHYXS,
VAR_7, VAR_43,
VAR_10->loopback_mode == LOOPBACK_PHYXS_WS);
}
static void FUNC_15(struct ef4_nic *VAR_10,
int VAR_44, int mmd)
{
int VAR_23 = ef4_mdio_read(VAR_10, mmd, VAR_45);
FUNC_8(VAR_10, VAR_46, VAR_10->VAR_16, "Setting low power mode for MMD %d to %d\n",
mmd, VAR_44);
if (VAR_23 & VAR_47) {
FUNC_13(VAR_10, mmd, VAR_7,
VAR_48, VAR_44);
}
}
void FUNC_16(struct ef4_nic *VAR_10,
int VAR_49, unsigned int mmd_mask)
{
int mmd = 0;
mmd_mask &= ~VAR_34;
while (mmd_mask) {
if (mmd_mask & 1)
FUNC_15(VAR_10, VAR_49, mmd);
mmd_mask = (mmd_mask >> 1);
mmd++;
}
}
/**
* ef4_mdio_set_link_ksettings - Set (some of) the PHY settings over MDIO.
* @efx: Efx NIC
* @cmd: New settings
*/
int ef4_mdio_set_link_ksettings(struct ef4_nic *VAR_10,
const struct CLASS_0 *VAR_50)
{
struct CLASS_0 VAR_51 = {
.VAR_52.VAR_50 = VAR_53
};
u32 VAR_54, advertising;
u32 prev_supported;
VAR_10->phy_op->FUNC_17(VAR_10, &VAR_51);
FUNC_18(&advertising,
VAR_50->VAR_55.advertising);
FUNC_18(&VAR_54,
VAR_51.VAR_55.advertising);
FUNC_18(&prev_supported,
VAR_51.VAR_55.VAR_56);
if (advertising == VAR_54 &&
VAR_50->VAR_52.VAR_57 == VAR_51.VAR_52.VAR_57 &&
VAR_50->VAR_52.duplex == VAR_51.VAR_52.duplex &&
VAR_50->VAR_52.VAR_3 == VAR_51.VAR_52.VAR_3 &&
VAR_50->VAR_52.autoneg == VAR_51.VAR_52.autoneg)
return 0;
/* We can only change these settings for -T PHYs */
if (VAR_51.VAR_52.VAR_3 != VAR_58 || VAR_50->VAR_52.VAR_3 != VAR_58)
return -VAR_59;
/* Check that PHY supports these settings */
if (!VAR_50->VAR_52.autoneg ||
(advertising | VAR_60) & ~prev_supported)
return -VAR_59;
FUNC_19(VAR_10, advertising | ADVERTISED_Autoneg);
FUNC_20(VAR_10);
return 0;
}
/**
* ef4_mdio_an_reconfigure - Push advertising flags and restart autonegotiation
* @efx: Efx NIC
*/
void FUNC_20(struct ef4_nic *VAR_10)
{
int VAR_61;
FUNC_21(!(VAR_10->VAR_36.VAR_62 & VAR_34));
/* Set up the base page */
VAR_61 = VAR_63 | ADVERTISE_RESV;
if (VAR_10->VAR_64 & VAR_65)
VAR_61 |= ADVERTISE_PAUSE_CAP;
if (VAR_10->VAR_64 & ADVERTISED_Asym_Pause)
VAR_61 |= VAR_66;
ef4_mdio_write(VAR_10, VAR_11, VAR_67, VAR_61);
/* Set up the (extended) next page */
VAR_10->phy_op->set_npage_adv(VAR_10, VAR_10->VAR_64);
/* Enable and restart AN */
VAR_61 = ef4_mdio_read(VAR_10, VAR_11, VAR_7);
VAR_61 |= VAR_68 | MDIO_AN_CTRL1_RESTART | VAR_69;
ef4_mdio_write(VAR_10, VAR_11, VAR_7, VAR_61);
}
CLASS_1 FUNC_22(struct ef4_nic *VAR_10)
{
FUNC_23(VAR_70 & (VAR_71 | EF4_FC_TX));
if (!(VAR_10->VAR_72 & VAR_70))
return VAR_10->VAR_72;
FUNC_21(!(VAR_10->VAR_36.VAR_62 & VAR_34));
return FUNC_24(
FUNC_25(VAR_10->VAR_72),
ef4_mdio_read(VAR_10, VAR_11, VAR_73));
}
int ef4_mdio_test_alive(struct ef4_nic *VAR_10)
{
int VAR_21;
int VAR_74 = FUNC_7(VAR_10->VAR_36.VAR_62);
u16 VAR_75, VAR_76;
FUNC_26(&VAR_10->VAR_77);
VAR_75 = ef4_mdio_read(VAR_10, VAR_74, MDIO_DEVID1);
VAR_76 = ef4_mdio_read(VAR_10, VAR_74, MDIO_DEVID2);
if ((VAR_75 == 0x0000) || (VAR_75 == 0xffff) ||
(VAR_76 == 0x0000) || (VAR_76 == 0xffff)) {
FUNC_4(VAR_10, VAR_15, VAR_10->VAR_16,
"no MDIO PHY present with ID %d\n", VAR_10->VAR_36.VAR_78);
VAR_21 = -VAR_59;
} else {
VAR_21 = FUNC_6(VAR_10, VAR_10->VAR_36.VAR_62);
}
mutex_unlock(&VAR_10->VAR_77);
return VAR_21;
}
| 0.783914 | {'IMPORT_0': 'linux/delay.h', 'FUNC_0': 'ef4_mdio_id_oui', 'VAR_0': 'id', 'VAR_1': 'oui', 'VAR_2': 'i', 'FUNC_1': 'ef4_mdio_reset_mmd', 'VAR_3': 'port', 'VAR_4': 'spins', 'VAR_5': 'spintime', 'VAR_6': 'ctrl', 'FUNC_2': 'EF4_BUG_ON_PARANOID', 'VAR_7': 'MDIO_CTRL1', 'VAR_8': 'MDIO_CTRL1_RESET', 'FUNC_3': 'msleep', 'VAR_9': 'ETIMEDOUT', 'VAR_10': 'efx', 'VAR_11': 'MDIO_MMD_AN', 'VAR_12': 'MDIO_STAT2', 'VAR_13': 'MDIO_STAT2_DEVPRST', 'VAR_14': 'MDIO_STAT2_DEVPRST_VAL', 'FUNC_4': 'netif_err', 'VAR_15': 'hw', 'VAR_16': 'net_dev', 'VAR_17': 'EIO', 'VAR_18': 'MDIO45_RESET_TIME', 'VAR_19': 'MDIO45_RESET_ITERS', 'FUNC_5': 'ef4_mdio_wait_reset_mmds', 'VAR_20': 'tries', 'VAR_21': 'rc', 'VAR_22': 'mask', 'VAR_23': 'stat', 'FUNC_6': 'ef4_mdio_check_mmds', 'VAR_24': 'devs1', 'VAR_25': 'devices', 'FUNC_7': '__ffs', 'VAR_26': 'MDIO_DEVS1', 'VAR_27': 'MDIO_DEVS2', 'VAR_28': 'ENODEV', 'FUNC_8': 'netif_vdbg', 'FUNC_9': 'ef4_mdio_links_ok', 'FUNC_10': 'LOOPBACK_INTERNAL', 'FUNC_11': 'LOOPBACK_MASK', 'VAR_29': 'LOOPBACKS_WS', 'VAR_30': 'phy_mode', 'VAR_31': 'LOOPBACK_PHYXS', 'VAR_32': 'MDIO_DEVS_PCS', 'VAR_33': 'MDIO_DEVS_PMAPMD', 'VAR_34': 'MDIO_DEVS_AN', 'VAR_35': 'LOOPBACK_PCS', 'VAR_36': 'mdio', 'FUNC_12': 'ef4_mdio_transmit_disable', 'FUNC_13': 'ef4_mdio_set_flag', 'VAR_37': 'MDIO_MMD_PMAPMD', 'VAR_38': 'MDIO_PMA_TXDIS', 'VAR_39': 'MDIO_PMD_TXDIS_GLOBAL', 'VAR_40': 'PHY_MODE_TX_DISABLED', 'FUNC_14': 'ef4_mdio_phy_reconfigure', 'VAR_41': 'MDIO_MMD_PCS', 'VAR_42': 'MDIO_PCS_CTRL1_LOOPBACK', 'VAR_43': 'MDIO_PHYXS_CTRL1_LOOPBACK', 'FUNC_15': 'ef4_mdio_set_mmd_lpower', 'VAR_44': 'lpower', 'VAR_45': 'MDIO_STAT1', 'VAR_46': 'drv', 'VAR_47': 'MDIO_STAT1_LPOWERABLE', 'VAR_48': 'MDIO_CTRL1_LPOWER', 'FUNC_16': 'ef4_mdio_set_mmds_lpower', 'VAR_49': 'low_power', 'CLASS_0': 'ethtool_link_ksettings', 'VAR_50': 'cmd', 'VAR_51': 'prev', 'VAR_52': 'base', 'VAR_53': 'ETHTOOL_GLINKSETTINGS', 'VAR_54': 'prev_advertising', 'FUNC_17': 'get_link_ksettings', 'FUNC_18': 'ethtool_convert_link_mode_to_legacy_u32', 'VAR_55': 'link_modes', 'VAR_56': 'supported', 'VAR_57': 'speed', 'VAR_58': 'PORT_TP', 'VAR_59': 'EINVAL', 'VAR_60': 'SUPPORTED_Autoneg', 'FUNC_19': 'ef4_link_set_advertising', 'FUNC_20': 'ef4_mdio_an_reconfigure', 'VAR_61': 'reg', 'FUNC_21': 'WARN_ON', 'VAR_62': 'mmds', 'VAR_63': 'ADVERTISE_CSMA', 'VAR_64': 'link_advertising', 'VAR_65': 'ADVERTISED_Pause', 'VAR_66': 'ADVERTISE_PAUSE_ASYM', 'VAR_67': 'MDIO_AN_ADVERTISE', 'VAR_68': 'MDIO_AN_CTRL1_ENABLE', 'VAR_69': 'MDIO_AN_CTRL1_XNP', 'CLASS_1': 'u8', 'FUNC_22': 'ef4_mdio_get_pause', 'FUNC_23': 'BUILD_BUG_ON', 'VAR_70': 'EF4_FC_AUTO', 'VAR_71': 'EF4_FC_RX', 'VAR_72': 'wanted_fc', 'FUNC_24': 'mii_resolve_flowctrl_fdx', 'FUNC_25': 'mii_advertise_flowctrl', 'VAR_73': 'MDIO_AN_LPA', 'VAR_74': 'devad', 'VAR_75': 'physid1', 'VAR_76': 'physid2', 'FUNC_26': 'mutex_lock', 'VAR_77': 'mac_lock', 'VAR_78': 'prtad'} | c | Procedural | 9.76% |
#ifndef DATAPROVIDER_H
#define DATAPROVIDER_H
#include <QObject>
#include "IDataProvider.h"
class IDataProxy;
class DataProvider:public QObject, public IDataProvider
{
Q_OBJECT
Q_INTERFACES(IDataProvider)
public:
DataProvider(QObject* parent);
public slots:
void doSomeWork(ParamCommand cmd, IDataProxy* proxy) override;
signals:
void sigReplySomeWork(ParamCommand cmd, IDataProxy* proxy) override;
};
#endif // DATAPROVIDER
| #ifndef VAR_0
#define VAR_0
#include <IMPORT_0>
#include "IMPORT_1"
CLASS_0 VAR_1;
CLASS_0 VAR_2:VAR_3 IMPORT_0, VAR_3 VAR_4
{
CLASS_3
FUNC_1(VAR_4)
CLASS_2:
FUNC_0(IMPORT_0* VAR_5);
CLASS_2 VAR_6:
void FUNC_2(CLASS_4 VAR_7, CLASS_1* VAR_8) VAR_9;
CLASS_5:
void FUNC_3(CLASS_4 VAR_7, CLASS_1* VAR_8) VAR_9;
};
#endif // DATAPROVIDER
| 0.882409 | {'VAR_0': 'DATAPROVIDER_H', 'IMPORT_0': 'QObject', 'IMPORT_1': 'IDataProvider.h', 'CLASS_0': 'class', 'VAR_1': 'IDataProxy', 'CLASS_1': 'IDataProxy', 'VAR_2': 'DataProvider', 'FUNC_0': 'DataProvider', 'VAR_3': 'public', 'CLASS_2': 'public', 'VAR_4': 'IDataProvider', 'CLASS_3': 'Q_OBJECT', 'FUNC_1': 'Q_INTERFACES', 'VAR_5': 'parent', 'VAR_6': 'slots', 'FUNC_2': 'doSomeWork', 'CLASS_4': 'ParamCommand', 'VAR_7': 'cmd', 'VAR_8': 'proxy', 'VAR_9': 'override', 'CLASS_5': 'signals', 'FUNC_3': 'sigReplySomeWork'} | c | OOP | 100.00% |
@interface SunshineDurationRemark : Remark
@property (assign) NSUInteger duration; // minutes
@end
| @CLASS_0 FUNC_0 : VAR_0
@VAR_1 (VAR_2) NSUInteger duration; // minutes
@VAR_3
| 0.641406 | {'CLASS_0': 'interface', 'FUNC_0': 'SunshineDurationRemark', 'VAR_0': 'Remark', 'VAR_1': 'property', 'VAR_2': 'assign', 'VAR_3': 'end'} | c | Procedural | 100.00% |
#pragma once
#include "RendererApi.h"
namespace Running
{
class RenderCommand
{
public:
inline static void SetClearColor(const glm::vec4& color)
{
s_rendererApi->SetClearColor(color);
}
inline static void Clear()
{
s_rendererApi->Clear();
}
inline static void DrawIndexed(const std::shared_ptr<VertexArray>& vertexArray)
{
s_rendererApi->DrawIndexed(vertexArray);
}
private:
static RendererApi* s_rendererApi;
};
}
| #pragma once
#include "RendererApi.h"
namespace VAR_0
{
class VAR_1
{
public:
VAR_2 static void FUNC_0(const CLASS_0::VAR_3& color)
{
VAR_4->FUNC_0(color);
}
inline static void FUNC_1()
{
VAR_4->FUNC_1();
}
inline static void DrawIndexed(const CLASS_1::VAR_5<VAR_6>& vertexArray)
{
VAR_4->DrawIndexed(vertexArray);
}
private:
VAR_7 RendererApi* VAR_4;
};
}
| 0.611412 | {'VAR_0': 'Running', 'VAR_1': 'RenderCommand', 'VAR_2': 'inline', 'FUNC_0': 'SetClearColor', 'CLASS_0': 'glm', 'VAR_3': 'vec4', 'VAR_4': 's_rendererApi', 'FUNC_1': 'Clear', 'CLASS_1': 'std', 'VAR_5': 'shared_ptr', 'VAR_6': 'VertexArray', 'VAR_7': 'static'} | c | Texto | 9.52% |
/* Used to re-enable the controller after a controller-level reset. */
static int
enable_ctrlr(struct nvmf_vfio_user_ctrlr *vu_ctrlr)
{
int err;
assert(vu_ctrlr != NULL);
SPDK_DEBUGLOG(nvmf_vfio, "%s: enabling controller\n",
ctrlr_id(vu_ctrlr));
err = acq_setup(vu_ctrlr);
if (err != 0) {
return err;
}
err = asq_setup(vu_ctrlr);
if (err != 0) {
return err;
}
vu_ctrlr->sqs[0]->sq_state = VFIO_USER_SQ_ACTIVE;
return 0;
} | /* Used to re-enable the controller after a controller-level reset. */
static int
enable_ctrlr(struct nvmf_vfio_user_ctrlr *vu_ctrlr)
{
int VAR_0;
FUNC_0(vu_ctrlr != NULL);
FUNC_1(VAR_1, "%s: enabling controller\n",
ctrlr_id(vu_ctrlr));
VAR_0 = acq_setup(vu_ctrlr);
if (VAR_0 != 0) {
return VAR_0;
}
VAR_0 = asq_setup(vu_ctrlr);
if (VAR_0 != 0) {
return VAR_0;
}
vu_ctrlr->VAR_2[0]->sq_state = VFIO_USER_SQ_ACTIVE;
return 0;
} | 0.405365 | {'VAR_0': 'err', 'FUNC_0': 'assert', 'FUNC_1': 'SPDK_DEBUGLOG', 'VAR_1': 'nvmf_vfio', 'VAR_2': 'sqs'} | c | Procedural | 23.88% |
// Description:
// Same as GatherV except that the result is placed in all processes.
int AllGatherV(const int* sendBuffer, int* recvBuffer,
vtkIdType sendLength, vtkIdType* recvLengths,
vtkIdType* offsets) {
return this->Communicator->AllGatherV(sendBuffer, recvBuffer,
sendLength, recvLengths,
offsets);
} | // Description:
// Same as GatherV except that the result is placed in all processes.
int AllGatherV(const int* sendBuffer, int* VAR_0,
vtkIdType sendLength, vtkIdType* recvLengths,
vtkIdType* VAR_1) {
return this->Communicator->AllGatherV(sendBuffer, VAR_0,
sendLength, recvLengths,
VAR_1);
} | 0.259509 | {'VAR_0': 'recvBuffer', 'VAR_1': 'offsets'} | c | Procedural | 100.00% |
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2020 Intel Corporation. All Rights Reserved.
#pragma once
#include <unordered_map>
#include <functional>
#include <string>
#include <vector>
#include "http-downloader.h"
namespace rs2
{
namespace sw_update
{
// The version_db_manager class download, parse and supply queries for the RS components versions information.
// The version file can be stored locally on the file system or on a HTTP server.
class versions_db_manager
{
public:
struct version
{
int mjor, mnor, patch, build;
version() : mjor(0), mnor(0), patch(0), build(0) {}
version(long long ver) : version()
{
build = ver % 10000;
patch = (ver / 10000) % 100;
mnor = (ver / 1000000) % 100;
mjor = (ver / 100000000) % 100;
}
version(const std::string& str) : version()
{
constexpr int MINIMAL_MATCH_SECTIONS = 4;
constexpr int MATCH_SECTIONS_INC_BUILD_NUM = 5;
std::regex rgx("^(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,5})?$");
std::smatch match;
if (std::regex_search(str.begin(), str.end(), match, rgx) && match.size() >= MINIMAL_MATCH_SECTIONS)
{
mjor = atoi(std::string(match[1]).c_str());
mnor = atoi(std::string(match[2]).c_str());
patch = atoi(std::string(match[3]).c_str());
if (match.size() == MATCH_SECTIONS_INC_BUILD_NUM)
build = atoi(std::string(match[4]).c_str());
}
}
bool operator<=(const version& other) const
{
if (mjor > other.mjor) return false;
if ((mjor == other.mjor) && (mnor > other.mnor)) return false;
if ((mjor == other.mjor) && (mnor == other.mnor) && (patch > other.patch)) return false;
if ((mjor == other.mjor) && (mnor == other.mnor) && (patch == other.patch) && (build > other.build)) return false;
return true;
}
bool operator==(const version& other) const
{
return (other.mjor == mjor && other.mnor == mnor && other.patch == patch && other.build == build);
}
bool operator> (const version& other) const { return !(*this <= other); }
bool operator!=(const version& other) const { return !(*this == other); }
bool operator>=(const version& other) const { return (*this == other) || (*this > other); }
bool operator<(const version& other) const { return !(*this >= other); }
bool is_between(const version& from, const version& until) const
{
return (from <= *this) && (*this <= until);
}
operator std::string() const
{
std::stringstream ss;
ss << mjor << "." << mnor << "." << patch << "." << build;
return ss.str();
}
};
enum update_policy_type { EXPERIMENTAL, RECOMMENDED, ESSENTIAL };
enum component_part_type { LIBREALSENSE, VIEWER, DEPTH_QUALITY_TOOL, FIRMWARE };
enum update_source_type { FROM_FILE, FROM_SERVER };
explicit versions_db_manager(const std::string &url, const bool use_url_as_local_path = false, http::user_callback_func_type download_callback = http::user_callback_func_type())
: _dev_info_url(url), _local_source_file(use_url_as_local_path), _server_versions_vec(), _server_versions_loaded(false), _download_cb_func(download_callback) {};
~versions_db_manager() {};
bool query_versions(const std::string &device_name, component_part_type component, const update_policy_type policy, version& out_version);
bool get_version_download_link(const component_part_type component, const version& version, std::string& dl_link) { return get_version_data_common(component, version, "link", dl_link); };
bool get_version_release_notes(const component_part_type component, const version& version, std::string& version_release_notes_link) { return get_version_data_common(component, version, "release_notes_link", version_release_notes_link); };
bool get_version_description(const component_part_type component, const version& version, std::string& version_description) { return get_version_data_common(component, version, "description", version_description); };
std::string to_string(const component_part_type& component) const;
std::string to_string(const update_policy_type& policy) const;
bool from_string(std::string component_str, component_part_type& component_val) const;
bool from_string(std::string policy_str, update_policy_type& policy_val) const;
private:
struct server_version_type
{
std::string policy;
std::string component;
std::string version;
std::string platform;
std::string link;
std::string device_name;
std::string rel_notes_link;
std::string desc;
server_version_type() :
policy(),
component(),
version(),
platform(),
link(),
device_name(),
rel_notes_link(),
desc() {}
};
bool get_server_data(std::stringstream &ver_data);
void parse_versions_data(const std::stringstream &ver_data);
bool get_version_data_common(const component_part_type component, const version& version, const std::string& req_field, std::string& out);
bool is_device_name_equal(const std::string &str_from_db, const std::string &str_compared, bool allow_wildcard);
bool init();
void build_schema(std::unordered_map<std::string, std::function<bool(const std::string&)>>& verifier);
const std::string _dev_info_url;
bool _local_source_file;
bool _server_versions_loaded;
std::vector<std::unordered_map<std::string, std::string>> _server_versions_vec;
http::user_callback_func_type _download_cb_func;
};
}
}
| // License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2020 Intel Corporation. All Rights Reserved.
#pragma once
#include <unordered_map>
#include <functional>
#include <IMPORT_0>
#include <IMPORT_1>
#include "http-downloader.h"
CLASS_0 VAR_0
{
CLASS_0 VAR_1
{
// The version_db_manager class download, parse and supply queries for the RS components versions information.
// The version file can be stored locally on the file system or on a HTTP server.
CLASS_1 versions_db_manager
{
public:
VAR_2 VAR_3
{
int VAR_4, VAR_5, patch, build;
FUNC_0() : FUNC_1(0), FUNC_2(0), patch(0), build(0) {}
VAR_3(long long ID_0) : FUNC_0()
{
build = VAR_6 % 10000;
patch = (VAR_6 / 10000) % 100;
VAR_5 = (VAR_6 / 1000000) % 100;
VAR_4 = (VAR_6 / 100000000) % 100;
}
version(const std::IMPORT_0& VAR_7) : FUNC_0()
{
constexpr int MINIMAL_MATCH_SECTIONS = 4;
constexpr int MATCH_SECTIONS_INC_BUILD_NUM = 5;
std::regex rgx("^(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,5})?$");
std::VAR_8 VAR_9;
if (std::FUNC_4(VAR_7.FUNC_5(), VAR_7.end(), VAR_9, rgx) && VAR_9.size() >= MINIMAL_MATCH_SECTIONS)
{
VAR_4 = FUNC_6(std::IMPORT_0(VAR_9[1]).c_str());
VAR_5 = FUNC_6(std::IMPORT_0(VAR_9[2]).c_str());
patch = FUNC_6(std::IMPORT_0(VAR_9[3]).c_str());
if (VAR_9.size() == MATCH_SECTIONS_INC_BUILD_NUM)
build = FUNC_6(std::IMPORT_0(VAR_9[4]).c_str());
}
}
bool operator<=(const VAR_3& VAR_10) const
{
if (VAR_4 > VAR_10.VAR_4) return false;
if ((VAR_4 == VAR_10.VAR_4) && (VAR_5 > VAR_10.VAR_5)) return false;
if ((VAR_4 == VAR_10.VAR_4) && (VAR_5 == VAR_10.VAR_5) && (patch > VAR_10.patch)) return false;
if ((VAR_4 == VAR_10.VAR_4) && (VAR_5 == VAR_10.VAR_5) && (patch == VAR_10.patch) && (build > VAR_10.build)) return false;
return true;
}
bool operator==(const VAR_3& VAR_10) const
{
return (VAR_10.VAR_4 == VAR_4 && VAR_10.VAR_5 == VAR_5 && VAR_10.patch == patch && VAR_10.build == build);
}
bool operator> (const CLASS_2& VAR_10) VAR_11 { return !(*VAR_12 <= VAR_10); }
bool operator!=(const VAR_3& VAR_10) const { return !(*VAR_12 == VAR_10); }
bool operator>=(const VAR_3& VAR_10) const { return (*VAR_12 == VAR_10) || (*VAR_12 > VAR_10); }
bool operator<(const VAR_3& VAR_10) const { return !(*VAR_12 >= VAR_10); }
bool FUNC_7(const CLASS_2& VAR_13, const CLASS_2& VAR_14) VAR_11
{
return (VAR_13 <= *VAR_12) && (*VAR_12 <= VAR_14);
}
operator std::IMPORT_0() const
{
std::stringstream VAR_15;
VAR_15 << VAR_4 << "." << VAR_5 << "." << patch << "." << build;
return VAR_15.FUNC_3();
}
};
enum update_policy_type { VAR_16, VAR_17, VAR_18 };
enum CLASS_3 { VAR_20, VAR_21, VAR_22, VAR_23 };
enum CLASS_4 { VAR_24, VAR_25 };
CLASS_5 versions_db_manager(const std::IMPORT_0 &VAR_26, const bool VAR_27 = false, http::user_callback_func_type download_callback = http::user_callback_func_type())
: FUNC_8(VAR_26), FUNC_9(CLASS_6), FUNC_10(), FUNC_11(false), _download_cb_func(download_callback) {};
~versions_db_manager() {};
bool FUNC_12(const std::IMPORT_0 &device_name, CLASS_3 component, const update_policy_type VAR_32, CLASS_2& out_version);
bool get_version_download_link(const CLASS_3 component, const CLASS_2& VAR_3, std::IMPORT_0& VAR_33) { return FUNC_14(component, VAR_3, "link", VAR_33); };
bool FUNC_15(const CLASS_3 component, const CLASS_2& VAR_3, std::IMPORT_0& VAR_34) { return FUNC_14(component, VAR_3, "release_notes_link", VAR_34); };
bool FUNC_16(const CLASS_3 component, const CLASS_2& VAR_3, std::IMPORT_0& version_description) { return FUNC_14(component, VAR_3, "description", version_description); };
std::IMPORT_0 FUNC_17(VAR_11 VAR_19& component) VAR_11;
std::IMPORT_0 FUNC_17(VAR_11 update_policy_type& VAR_32) VAR_11;
bool FUNC_18(std::IMPORT_0 VAR_35, CLASS_3& component_val) VAR_11;
bool FUNC_18(std::IMPORT_0 VAR_36, update_policy_type& VAR_37) VAR_11;
private:
VAR_2 VAR_38
{
std::IMPORT_0 VAR_32;
std::IMPORT_0 component;
std::IMPORT_0 VAR_3;
std::IMPORT_0 VAR_39;
std::IMPORT_0 VAR_40;
std::IMPORT_0 device_name;
std::IMPORT_0 VAR_41;
std::IMPORT_0 desc;
FUNC_19() :
FUNC_13(),
component(),
FUNC_0(),
FUNC_20(),
FUNC_21(),
device_name(),
FUNC_22(),
desc() {}
};
bool get_server_data(std::stringstream &VAR_42);
void FUNC_23(const std::stringstream &VAR_42);
bool FUNC_14(const CLASS_3 component, const CLASS_2& VAR_3, const std::IMPORT_0& req_field, std::IMPORT_0& VAR_43);
bool FUNC_24(const std::IMPORT_0 &str_from_db, const std::IMPORT_0 &str_compared, bool allow_wildcard);
bool FUNC_25();
void FUNC_26(std::unordered_map<std::IMPORT_0, std::VAR_44<bool(const std::IMPORT_0&)>>& VAR_45);
const std::IMPORT_0 VAR_28;
bool VAR_29;
bool VAR_31;
std::IMPORT_1<std::unordered_map<std::IMPORT_0, std::IMPORT_0>> VAR_30;
http::user_callback_func_type _download_cb_func;
};
}
}
| 0.680604 | {'IMPORT_0': 'string', 'IMPORT_1': 'vector', 'CLASS_0': 'namespace', 'VAR_0': 'rs2', 'VAR_1': 'sw_update', 'CLASS_1': 'class', 'VAR_2': 'struct', 'VAR_3': 'version', 'FUNC_0': 'version', 'CLASS_2': 'version', 'VAR_4': 'mjor', 'FUNC_1': 'mjor', 'VAR_5': 'mnor', 'FUNC_2': 'mnor', 'ID_0': 'ver', 'VAR_6': 'ver', 'VAR_7': 'str', 'FUNC_3': 'str', 'VAR_8': 'smatch', 'VAR_9': 'match', 'FUNC_4': 'regex_search', 'FUNC_5': 'begin', 'FUNC_6': 'atoi', 'VAR_10': 'other', 'VAR_11': 'const', 'VAR_12': 'this', 'FUNC_7': 'is_between', 'VAR_13': 'from', 'VAR_14': 'until', 'VAR_15': 'ss', 'VAR_16': 'EXPERIMENTAL', 'VAR_17': 'RECOMMENDED', 'VAR_18': 'ESSENTIAL', 'CLASS_3': 'component_part_type', 'VAR_19': 'component_part_type', 'VAR_20': 'LIBREALSENSE', 'VAR_21': 'VIEWER', 'VAR_22': 'DEPTH_QUALITY_TOOL', 'VAR_23': 'FIRMWARE', 'CLASS_4': 'update_source_type', 'VAR_24': 'FROM_FILE', 'VAR_25': 'FROM_SERVER', 'CLASS_5': 'explicit', 'VAR_26': 'url', 'VAR_27': 'use_url_as_local_path', 'CLASS_6': 'use_url_as_local_path', 'FUNC_8': '_dev_info_url', 'VAR_28': '_dev_info_url', 'FUNC_9': '_local_source_file', 'VAR_29': '_local_source_file', 'FUNC_10': '_server_versions_vec', 'VAR_30': '_server_versions_vec', 'FUNC_11': '_server_versions_loaded', 'VAR_31': '_server_versions_loaded', 'FUNC_12': 'query_versions', 'VAR_32': 'policy', 'FUNC_13': 'policy', 'VAR_33': 'dl_link', 'FUNC_14': 'get_version_data_common', 'FUNC_15': 'get_version_release_notes', 'VAR_34': 'version_release_notes_link', 'FUNC_16': 'get_version_description', 'FUNC_17': 'to_string', 'FUNC_18': 'from_string', 'VAR_35': 'component_str', 'VAR_36': 'policy_str', 'VAR_37': 'policy_val', 'VAR_38': 'server_version_type', 'FUNC_19': 'server_version_type', 'VAR_39': 'platform', 'FUNC_20': 'platform', 'VAR_40': 'link', 'FUNC_21': 'link', 'VAR_41': 'rel_notes_link', 'FUNC_22': 'rel_notes_link', 'VAR_42': 'ver_data', 'FUNC_23': 'parse_versions_data', 'VAR_43': 'out', 'FUNC_24': 'is_device_name_equal', 'FUNC_25': 'init', 'FUNC_26': 'build_schema', 'VAR_44': 'function', 'VAR_45': 'verifier'} | c | error | 0 |
#pragma once
//fractal properties
constexpr int IMAGE_HEIGHT{ 4608 };
constexpr int IMAGE_WIDTH{ 8192 };
constexpr int MAX_ITERATIONS{ 128 };
//launch properties
constexpr unsigned int BLOCKDIM_X{ 32 };
constexpr unsigned int BLOCKDIM_Y{ 4 };
//images properties
constexpr float ZOOM_FACTOR{ 0.95f };
constexpr int NUM_PICTURES{ 200 };
constexpr const char* IMAGE_DIR{ "images/" };
constexpr const char* IMAGE_TYPE{ ".bmp" };
//target
constexpr float TARGET_REAL{ -0.745289981f };
constexpr float TARGET_IMAG{ 0.113075003f };
//start boundary
constexpr float REAL_MIN_START{ -2.74529004f };
constexpr float REAL_MAX_START{ 1.25470996f };
constexpr float IMAG_MIN_START{ -1.01192498f };
constexpr float IMAG_MAX_START{ 1.23807502f };
//streams
constexpr int NUM_STREAMS{ 5 };
| #pragma once
//fractal properties
constexpr int VAR_0{ 4608 };
constexpr int VAR_1{ 8192 };
constexpr int VAR_2{ 128 };
//launch properties
constexpr unsigned int VAR_3{ 32 };
constexpr unsigned int VAR_4{ 4 };
//images properties
constexpr float VAR_5{ 0.95f };
constexpr int VAR_6{ 200 };
constexpr const char* VAR_7{ "images/" };
constexpr const char* VAR_8{ ".bmp" };
//target
constexpr float VAR_9{ -0.745289981f };
constexpr float VAR_10{ 0.113075003f };
//start boundary
constexpr float VAR_11{ -2.74529004f };
constexpr float VAR_12{ 1.25470996f };
constexpr float VAR_13{ -1.01192498f };
constexpr float VAR_14{ 1.23807502f };
//streams
constexpr int VAR_15{ 5 };
| 0.848231 | {'VAR_0': 'IMAGE_HEIGHT', 'VAR_1': 'IMAGE_WIDTH', 'VAR_2': 'MAX_ITERATIONS', 'VAR_3': 'BLOCKDIM_X', 'VAR_4': 'BLOCKDIM_Y', 'VAR_5': 'ZOOM_FACTOR', 'VAR_6': 'NUM_PICTURES', 'VAR_7': 'IMAGE_DIR', 'VAR_8': 'IMAGE_TYPE', 'VAR_9': 'TARGET_REAL', 'VAR_10': 'TARGET_IMAG', 'VAR_11': 'REAL_MIN_START', 'VAR_12': 'REAL_MAX_START', 'VAR_13': 'IMAG_MIN_START', 'VAR_14': 'IMAG_MAX_START', 'VAR_15': 'NUM_STREAMS'} | c | Texto | 7.77% |
/**
* Schedules the first available task that's ready
*/
void
schedule()
{
int i = SetInts(0);
current = current->next;
while(current->state == TASK_PAUSED)
current = current->next;
SetInts(i);
} | /**
* Schedules the first available task that's ready
*/
void
schedule()
{
int VAR_0 = SetInts(0);
current = current->VAR_1;
while(current->state == VAR_2)
current = current->VAR_1;
SetInts(VAR_0);
} | 0.480718 | {'VAR_0': 'i', 'VAR_1': 'next', 'VAR_2': 'TASK_PAUSED'} | c | Procedural | 100.00% |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "SAUISnippet.h"
@interface SAUISnippet (Siriland)
- (void)svs_applySnippetProperties:(id)arg1; // IMP=0x000000010002e178
- (id)_searchCallHistoryIntentResponseForCallRecords:(id)arg1; // IMP=0x000000010002e0fc
- (id)_searchCallHistoryIntentForVoicemail:(_Bool)arg1; // IMP=0x000000010002dfc8
- (id)_callHistoryRowsForCalls:(id)arg1 callOperation:(CDUnknownBlockType)arg2; // IMP=0x000000010002dad4
@end
| //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "SAUISnippet.h"
@interface FUNC_0 (Siriland)
- (void)svs_applySnippetProperties:(CLASS_0)arg1; // IMP=0x000000010002e178
- (ID_0)VAR_1:(VAR_0)arg1; // IMP=0x000000010002e0fc
- (ID_0)VAR_2:(VAR_3)arg1; // IMP=0x000000010002dfc8
- (ID_0)_callHistoryRowsForCalls:(VAR_0)arg1 VAR_4:(CDUnknownBlockType)arg2; // IMP=0x000000010002dad4
@end
| 0.389058 | {'FUNC_0': 'SAUISnippet', 'CLASS_0': 'id', 'ID_0': 'id', 'VAR_0': 'id', 'VAR_1': '_searchCallHistoryIntentResponseForCallRecords', 'VAR_2': '_searchCallHistoryIntentForVoicemail', 'VAR_3': '_Bool', 'VAR_4': 'callOperation'} | c | Hibrido | 100.00% |
// SPDX-License-Identifier: GPL-2.0
#include <linux/fs.h>
#include <linux/gfp.h>
#include <linux/nfs.h>
#include <linux/nfs3.h>
#include <linux/nfs_fs.h>
#include <linux/posix_acl_xattr.h>
#include <linux/nfsacl.h>
#include "internal.h"
#include "nfs3_fs.h"
#define NFSDBG_FACILITY NFSDBG_PROC
/*
* nfs3_prepare_get_acl, nfs3_complete_get_acl, nfs3_abort_get_acl: Helpers for
* caching get_acl results in a race-free way. See fs/posix_acl.c:get_acl()
* for explanations.
*/
static void nfs3_prepare_get_acl(struct posix_acl **p)
{
struct posix_acl *sentinel = uncached_acl_sentinel(current);
if (cmpxchg(p, ACL_NOT_CACHED, sentinel) != ACL_NOT_CACHED) {
/* Not the first reader or sentinel already in place. */
}
}
static void nfs3_complete_get_acl(struct posix_acl **p, struct posix_acl *acl)
{
struct posix_acl *sentinel = uncached_acl_sentinel(current);
/* Only cache the ACL if our sentinel is still in place. */
posix_acl_dup(acl);
if (cmpxchg(p, sentinel, acl) != sentinel)
posix_acl_release(acl);
}
static void nfs3_abort_get_acl(struct posix_acl **p)
{
struct posix_acl *sentinel = uncached_acl_sentinel(current);
/* Remove our sentinel upon failure. */
cmpxchg(p, sentinel, ACL_NOT_CACHED);
}
struct posix_acl *nfs3_get_acl(struct inode *inode, int type)
{
struct nfs_server *server = NFS_SERVER(inode);
struct page *pages[NFSACL_MAXPAGES] = { };
struct nfs3_getaclargs args = {
.fh = NFS_FH(inode),
/* The xdr layer may allocate pages here. */
.pages = pages,
};
struct nfs3_getaclres res = {
NULL,
};
struct rpc_message msg = {
.rpc_argp = &args,
.rpc_resp = &res,
};
int status, count;
if (!nfs_server_capable(inode, NFS_CAP_ACLS))
return ERR_PTR(-EOPNOTSUPP);
status = nfs_revalidate_inode(inode, NFS_INO_INVALID_CHANGE);
if (status < 0)
return ERR_PTR(status);
/*
* Only get the access acl when explicitly requested: We don't
* need it for access decisions, and only some applications use
* it. Applications which request the access acl first are not
* penalized from this optimization.
*/
if (type == ACL_TYPE_ACCESS)
args.mask |= NFS_ACLCNT|NFS_ACL;
if (S_ISDIR(inode->i_mode))
args.mask |= NFS_DFACLCNT|NFS_DFACL;
if (args.mask == 0)
return NULL;
dprintk("NFS call getacl\n");
msg.rpc_proc = &server->client_acl->cl_procinfo[ACLPROC3_GETACL];
res.fattr = nfs_alloc_fattr();
if (res.fattr == NULL)
return ERR_PTR(-ENOMEM);
if (args.mask & NFS_ACL)
nfs3_prepare_get_acl(&inode->i_acl);
if (args.mask & NFS_DFACL)
nfs3_prepare_get_acl(&inode->i_default_acl);
status = rpc_call_sync(server->client_acl, &msg, 0);
dprintk("NFS reply getacl: %d\n", status);
/* pages may have been allocated at the xdr layer. */
for (count = 0; count < NFSACL_MAXPAGES && args.pages[count]; count++)
__free_page(args.pages[count]);
switch (status) {
case 0:
status = nfs_refresh_inode(inode, res.fattr);
break;
case -EPFNOSUPPORT:
case -EPROTONOSUPPORT:
dprintk("NFS_V3_ACL extension not supported; disabling\n");
server->caps &= ~NFS_CAP_ACLS;
fallthrough;
case -ENOTSUPP:
status = -EOPNOTSUPP;
goto getout;
default:
goto getout;
}
if ((args.mask & res.mask) != args.mask) {
status = -EIO;
goto getout;
}
if (res.acl_access != NULL) {
if ((posix_acl_equiv_mode(res.acl_access, NULL) == 0) ||
res.acl_access->a_count == 0) {
posix_acl_release(res.acl_access);
res.acl_access = NULL;
}
}
if (res.mask & NFS_ACL)
nfs3_complete_get_acl(&inode->i_acl, res.acl_access);
else
forget_cached_acl(inode, ACL_TYPE_ACCESS);
if (res.mask & NFS_DFACL)
nfs3_complete_get_acl(&inode->i_default_acl, res.acl_default);
else
forget_cached_acl(inode, ACL_TYPE_DEFAULT);
nfs_free_fattr(res.fattr);
if (type == ACL_TYPE_ACCESS) {
posix_acl_release(res.acl_default);
return res.acl_access;
} else {
posix_acl_release(res.acl_access);
return res.acl_default;
}
getout:
nfs3_abort_get_acl(&inode->i_acl);
nfs3_abort_get_acl(&inode->i_default_acl);
posix_acl_release(res.acl_access);
posix_acl_release(res.acl_default);
nfs_free_fattr(res.fattr);
return ERR_PTR(status);
}
static int __nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl,
struct posix_acl *dfacl)
{
struct nfs_server *server = NFS_SERVER(inode);
struct nfs_fattr *fattr;
struct page *pages[NFSACL_MAXPAGES];
struct nfs3_setaclargs args = {
.inode = inode,
.mask = NFS_ACL,
.acl_access = acl,
.pages = pages,
};
struct rpc_message msg = {
.rpc_argp = &args,
.rpc_resp = &fattr,
};
int status = 0;
if (acl == NULL && (!S_ISDIR(inode->i_mode) || dfacl == NULL))
goto out;
status = -EOPNOTSUPP;
if (!nfs_server_capable(inode, NFS_CAP_ACLS))
goto out;
/* We are doing this here because XDR marshalling does not
* return any results, it BUGs. */
status = -ENOSPC;
if (acl != NULL && acl->a_count > NFS_ACL_MAX_ENTRIES)
goto out;
if (dfacl != NULL && dfacl->a_count > NFS_ACL_MAX_ENTRIES)
goto out;
if (S_ISDIR(inode->i_mode)) {
args.mask |= NFS_DFACL;
args.acl_default = dfacl;
args.len = nfsacl_size(acl, dfacl);
} else
args.len = nfsacl_size(acl, NULL);
if (args.len > NFS_ACL_INLINE_BUFSIZE) {
unsigned int npages = 1 + ((args.len - 1) >> PAGE_SHIFT);
status = -ENOMEM;
do {
args.pages[args.npages] = alloc_page(GFP_KERNEL);
if (args.pages[args.npages] == NULL)
goto out_freepages;
args.npages++;
} while (args.npages < npages);
}
dprintk("NFS call setacl\n");
status = -ENOMEM;
fattr = nfs_alloc_fattr();
if (fattr == NULL)
goto out_freepages;
msg.rpc_proc = &server->client_acl->cl_procinfo[ACLPROC3_SETACL];
msg.rpc_resp = fattr;
status = rpc_call_sync(server->client_acl, &msg, 0);
nfs_access_zap_cache(inode);
nfs_zap_acl_cache(inode);
dprintk("NFS reply setacl: %d\n", status);
switch (status) {
case 0:
status = nfs_refresh_inode(inode, fattr);
break;
case -EPFNOSUPPORT:
case -EPROTONOSUPPORT:
dprintk("NFS_V3_ACL SETACL RPC not supported"
"(will not retry)\n");
server->caps &= ~NFS_CAP_ACLS;
fallthrough;
case -ENOTSUPP:
status = -EOPNOTSUPP;
}
nfs_free_fattr(fattr);
out_freepages:
while (args.npages != 0) {
args.npages--;
__free_page(args.pages[args.npages]);
}
out:
return status;
}
int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl,
struct posix_acl *dfacl)
{
int ret;
ret = __nfs3_proc_setacls(inode, acl, dfacl);
return (ret == -EOPNOTSUPP) ? 0 : ret;
}
int nfs3_set_acl(struct user_namespace *mnt_userns, struct inode *inode,
struct posix_acl *acl, int type)
{
struct posix_acl *orig = acl, *dfacl = NULL, *alloc;
int status;
if (S_ISDIR(inode->i_mode)) {
switch(type) {
case ACL_TYPE_ACCESS:
alloc = get_acl(inode, ACL_TYPE_DEFAULT);
if (IS_ERR(alloc))
goto fail;
dfacl = alloc;
break;
case ACL_TYPE_DEFAULT:
alloc = get_acl(inode, ACL_TYPE_ACCESS);
if (IS_ERR(alloc))
goto fail;
dfacl = acl;
acl = alloc;
break;
}
}
if (acl == NULL) {
alloc = posix_acl_from_mode(inode->i_mode, GFP_KERNEL);
if (IS_ERR(alloc))
goto fail;
acl = alloc;
}
status = __nfs3_proc_setacls(inode, acl, dfacl);
out:
if (acl != orig)
posix_acl_release(acl);
if (dfacl != orig)
posix_acl_release(dfacl);
return status;
fail:
status = PTR_ERR(alloc);
goto out;
}
const struct xattr_handler *nfs3_xattr_handlers[] = {
&posix_acl_access_xattr_handler,
&posix_acl_default_xattr_handler,
NULL,
};
static int
nfs3_list_one_acl(struct inode *inode, int type, const char *name, void *data,
size_t size, ssize_t *result)
{
struct posix_acl *acl;
char *p = data + *result;
acl = get_acl(inode, type);
if (IS_ERR_OR_NULL(acl))
return 0;
posix_acl_release(acl);
*result += strlen(name);
*result += 1;
if (!size)
return 0;
if (*result > size)
return -ERANGE;
strcpy(p, name);
return 0;
}
ssize_t
nfs3_listxattr(struct dentry *dentry, char *data, size_t size)
{
struct inode *inode = d_inode(dentry);
ssize_t result = 0;
int error;
error = nfs3_list_one_acl(inode, ACL_TYPE_ACCESS,
XATTR_NAME_POSIX_ACL_ACCESS, data, size, &result);
if (error)
return error;
error = nfs3_list_one_acl(inode, ACL_TYPE_DEFAULT,
XATTR_NAME_POSIX_ACL_DEFAULT, data, size, &result);
if (error)
return error;
return result;
}
| // SPDX-License-Identifier: GPL-2.0
#include <linux/fs.h>
#include <linux/gfp.h>
#include <linux/nfs.h>
#include <linux/nfs3.h>
#include <linux/nfs_fs.h>
#include <linux/posix_acl_xattr.h>
#include <linux/nfsacl.h>
#include "internal.h"
#include "nfs3_fs.h"
#define NFSDBG_FACILITY NFSDBG_PROC
/*
* nfs3_prepare_get_acl, nfs3_complete_get_acl, nfs3_abort_get_acl: Helpers for
* caching get_acl results in a race-free way. See fs/posix_acl.c:get_acl()
* for explanations.
*/
static void nfs3_prepare_get_acl(struct posix_acl **p)
{
struct posix_acl *sentinel = uncached_acl_sentinel(current);
if (cmpxchg(p, ACL_NOT_CACHED, sentinel) != ACL_NOT_CACHED) {
/* Not the first reader or sentinel already in place. */
}
}
static void FUNC_0(struct posix_acl **p, struct posix_acl *acl)
{
struct posix_acl *sentinel = uncached_acl_sentinel(current);
/* Only cache the ACL if our sentinel is still in place. */
posix_acl_dup(acl);
if (cmpxchg(p, sentinel, acl) != sentinel)
posix_acl_release(acl);
}
static void nfs3_abort_get_acl(struct posix_acl **p)
{
struct posix_acl *sentinel = uncached_acl_sentinel(current);
/* Remove our sentinel upon failure. */
cmpxchg(p, sentinel, ACL_NOT_CACHED);
}
struct posix_acl *nfs3_get_acl(struct inode *inode, int type)
{
struct nfs_server *server = NFS_SERVER(inode);
struct page *pages[NFSACL_MAXPAGES] = { };
struct nfs3_getaclargs args = {
.fh = NFS_FH(inode),
/* The xdr layer may allocate pages here. */
.pages = pages,
};
struct nfs3_getaclres res = {
NULL,
};
struct rpc_message msg = {
.rpc_argp = &args,
.rpc_resp = &res,
};
int status, VAR_0;
if (!nfs_server_capable(inode, NFS_CAP_ACLS))
return ERR_PTR(-EOPNOTSUPP);
status = nfs_revalidate_inode(inode, NFS_INO_INVALID_CHANGE);
if (status < 0)
return ERR_PTR(status);
/*
* Only get the access acl when explicitly requested: We don't
* need it for access decisions, and only some applications use
* it. Applications which request the access acl first are not
* penalized from this optimization.
*/
if (type == ACL_TYPE_ACCESS)
args.mask |= NFS_ACLCNT|NFS_ACL;
if (FUNC_1(inode->i_mode))
args.mask |= NFS_DFACLCNT|NFS_DFACL;
if (args.mask == 0)
return NULL;
dprintk("NFS call getacl\n");
msg.rpc_proc = &server->client_acl->cl_procinfo[ACLPROC3_GETACL];
res.fattr = nfs_alloc_fattr();
if (res.fattr == NULL)
return ERR_PTR(-ENOMEM);
if (args.mask & NFS_ACL)
nfs3_prepare_get_acl(&inode->i_acl);
if (args.mask & NFS_DFACL)
nfs3_prepare_get_acl(&inode->i_default_acl);
status = rpc_call_sync(server->client_acl, &msg, 0);
dprintk("NFS reply getacl: %d\n", status);
/* pages may have been allocated at the xdr layer. */
for (VAR_0 = 0; VAR_0 < NFSACL_MAXPAGES && args.pages[VAR_0]; VAR_0++)
__free_page(args.pages[VAR_0]);
switch (status) {
case 0:
status = nfs_refresh_inode(inode, res.fattr);
break;
case -EPFNOSUPPORT:
case -EPROTONOSUPPORT:
dprintk("NFS_V3_ACL extension not supported; disabling\n");
server->caps &= ~NFS_CAP_ACLS;
fallthrough;
case -ENOTSUPP:
status = -EOPNOTSUPP;
goto getout;
default:
goto getout;
}
if ((args.mask & res.mask) != args.mask) {
status = -EIO;
goto getout;
}
if (res.acl_access != NULL) {
if ((posix_acl_equiv_mode(res.acl_access, NULL) == 0) ||
res.acl_access->a_count == 0) {
posix_acl_release(res.acl_access);
res.acl_access = NULL;
}
}
if (res.mask & NFS_ACL)
FUNC_0(&inode->i_acl, res.acl_access);
else
forget_cached_acl(inode, ACL_TYPE_ACCESS);
if (res.mask & NFS_DFACL)
FUNC_0(&inode->i_default_acl, res.acl_default);
else
forget_cached_acl(inode, ACL_TYPE_DEFAULT);
nfs_free_fattr(res.fattr);
if (type == ACL_TYPE_ACCESS) {
posix_acl_release(res.acl_default);
return res.acl_access;
} else {
posix_acl_release(res.acl_access);
return res.acl_default;
}
getout:
nfs3_abort_get_acl(&inode->i_acl);
nfs3_abort_get_acl(&inode->i_default_acl);
posix_acl_release(res.acl_access);
posix_acl_release(res.acl_default);
nfs_free_fattr(res.fattr);
return ERR_PTR(status);
}
static int __nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl,
struct posix_acl *dfacl)
{
struct nfs_server *server = NFS_SERVER(inode);
struct nfs_fattr *fattr;
struct page *pages[NFSACL_MAXPAGES];
struct nfs3_setaclargs args = {
.inode = inode,
.mask = NFS_ACL,
.acl_access = acl,
.pages = pages,
};
struct rpc_message msg = {
.rpc_argp = &args,
.rpc_resp = &fattr,
};
int status = 0;
if (acl == NULL && (!FUNC_1(inode->i_mode) || dfacl == NULL))
goto out;
status = -EOPNOTSUPP;
if (!nfs_server_capable(inode, NFS_CAP_ACLS))
goto out;
/* We are doing this here because XDR marshalling does not
* return any results, it BUGs. */
status = -ENOSPC;
if (acl != NULL && acl->a_count > NFS_ACL_MAX_ENTRIES)
goto out;
if (dfacl != NULL && dfacl->a_count > NFS_ACL_MAX_ENTRIES)
goto out;
if (FUNC_1(inode->i_mode)) {
args.mask |= NFS_DFACL;
args.acl_default = dfacl;
args.len = nfsacl_size(acl, dfacl);
} else
args.len = nfsacl_size(acl, NULL);
if (args.len > NFS_ACL_INLINE_BUFSIZE) {
unsigned int npages = 1 + ((args.len - 1) >> PAGE_SHIFT);
status = -ENOMEM;
do {
args.pages[args.npages] = alloc_page(GFP_KERNEL);
if (args.pages[args.npages] == NULL)
goto out_freepages;
args.npages++;
} while (args.npages < npages);
}
dprintk("NFS call setacl\n");
status = -ENOMEM;
fattr = nfs_alloc_fattr();
if (fattr == NULL)
goto out_freepages;
msg.rpc_proc = &server->client_acl->cl_procinfo[ACLPROC3_SETACL];
msg.rpc_resp = fattr;
status = rpc_call_sync(server->client_acl, &msg, 0);
nfs_access_zap_cache(inode);
nfs_zap_acl_cache(inode);
dprintk("NFS reply setacl: %d\n", status);
switch (status) {
case 0:
status = nfs_refresh_inode(inode, fattr);
break;
case -EPFNOSUPPORT:
case -EPROTONOSUPPORT:
dprintk("NFS_V3_ACL SETACL RPC not supported"
"(will not retry)\n");
server->caps &= ~NFS_CAP_ACLS;
fallthrough;
case -ENOTSUPP:
status = -EOPNOTSUPP;
}
nfs_free_fattr(fattr);
out_freepages:
while (args.npages != 0) {
args.npages--;
__free_page(args.pages[args.npages]);
}
out:
return status;
}
int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl,
struct posix_acl *dfacl)
{
int ret;
ret = __nfs3_proc_setacls(inode, acl, dfacl);
return (ret == -EOPNOTSUPP) ? 0 : ret;
}
int nfs3_set_acl(struct user_namespace *mnt_userns, struct inode *inode,
struct posix_acl *acl, int type)
{
struct posix_acl *orig = acl, *dfacl = NULL, *alloc;
int status;
if (FUNC_1(inode->i_mode)) {
switch(type) {
case ACL_TYPE_ACCESS:
alloc = get_acl(inode, ACL_TYPE_DEFAULT);
if (FUNC_2(alloc))
goto fail;
dfacl = alloc;
break;
case ACL_TYPE_DEFAULT:
alloc = get_acl(inode, ACL_TYPE_ACCESS);
if (FUNC_2(alloc))
goto fail;
dfacl = acl;
acl = alloc;
break;
}
}
if (acl == NULL) {
alloc = posix_acl_from_mode(inode->i_mode, GFP_KERNEL);
if (FUNC_2(alloc))
goto fail;
acl = alloc;
}
status = __nfs3_proc_setacls(inode, acl, dfacl);
out:
if (acl != orig)
posix_acl_release(acl);
if (dfacl != orig)
posix_acl_release(dfacl);
return status;
fail:
status = PTR_ERR(alloc);
goto out;
}
const struct xattr_handler *nfs3_xattr_handlers[] = {
&posix_acl_access_xattr_handler,
&posix_acl_default_xattr_handler,
NULL,
};
static int
nfs3_list_one_acl(struct inode *inode, int type, const char *name, void *data,
size_t size, ssize_t *result)
{
struct posix_acl *acl;
char *p = data + *result;
acl = get_acl(inode, type);
if (IS_ERR_OR_NULL(acl))
return 0;
posix_acl_release(acl);
*result += strlen(name);
*result += 1;
if (!size)
return 0;
if (*result > size)
return -ERANGE;
strcpy(p, name);
return 0;
}
ssize_t
nfs3_listxattr(struct dentry *dentry, char *data, size_t size)
{
struct inode *inode = d_inode(dentry);
ssize_t result = 0;
int error;
error = nfs3_list_one_acl(inode, ACL_TYPE_ACCESS,
XATTR_NAME_POSIX_ACL_ACCESS, data, size, &result);
if (error)
return error;
error = nfs3_list_one_acl(inode, ACL_TYPE_DEFAULT,
XATTR_NAME_POSIX_ACL_DEFAULT, data, size, &result);
if (error)
return error;
return result;
}
| 0.041994 | {'FUNC_0': 'nfs3_complete_get_acl', 'VAR_0': 'count', 'FUNC_1': 'S_ISDIR', 'FUNC_2': 'IS_ERR'} | c | Procedural | 5.32% |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.