blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
264
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
5
140
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
986 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
3.89k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
145 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
10.4M
extension
stringclasses
122 values
content
stringlengths
3
10.4M
authors
listlengths
1
1
author_id
stringlengths
0
158
db5b806eb38fe57bfe29b0af3b57960e3c6f18ac
2d59117d4a411782bec09156840f0f413151edd5
/_old/engine/src/gridactor.cpp
a024ca79427937816497d1aa2bdffaba41f38062
[]
no_license
NamelessPerson/stengine
f7175e92eb11d9a4e64fd4650fb55db30f3eff1e
dad0369de2f019c4bbc111f8b7c0cbdf02c92651
refs/heads/master
2021-06-30T17:58:23.043369
2017-09-19T16:04:19
2017-09-19T16:04:19
49,088,274
6
0
null
null
null
null
UTF-8
C++
false
false
1,383
cpp
#include "engine/actor/gridactor.h" #include "util/debug.h" GridActor::~GridActor(){ } GridActor::GridActor(){ name = "Default Name"; node.actor = this; node.x = 0; node.y = 0; DEBUG_LOG(Debug::GAMEPLAY,"GridActor - New Actor "+name+" spawned at "+to_string(node.x)+", "+to_string(node.y)); } GridActor::GridActor(string _name){ name = _name; node.actor = this; node.x = 0; node.y = 0; DEBUG_LOG(Debug::GAMEPLAY,"GridActor - New Actor "+name+" spawned at "+to_string(node.x)+", "+to_string(node.y)); } GridActor::GridActor(string _name, int x, int y){ name = _name; node.actor = this; node.x = x; node.y = y; DEBUG_LOG(Debug::GAMEPLAY,"GridActor - New Actor "+name+" spawned at "+to_string(node.x)+", "+to_string(node.y)); } string GridActor::getName(){ DEBUG_LOG(Debug::ENGINE, "GridActor - Returning name of "+name); return name; } char GridActor::getCharacter(){ DEBUG_LOG(Debug::ENGINE, "GridActor - Returning character of D for "+name); return 'D'; } short GridActor::getColor(){ DEBUG_LOG(Debug::ENGINE, "GridActor - Returning color of 1 for "+name); return 1; } int GridActor::renderDepth(){ DEBUG_LOG(Debug::ENGINE, "GridActor - Returning depth of 3 for "+name); return 3; } SceneNode* GridActor::getNode(){ DEBUG_LOG(Debug::ENGINE, "GridActor - Returning SceneNode of "+name); return &node; }
[ "jjpman71@gmail.com" ]
jjpman71@gmail.com
f2afd57802bd976406a015be1e8703b72369111d
9506a40845f40f9f79e20ac87191c5b0d1ef6d7c
/practice/2000-2100/916B.cpp
355a05bd75470337b9329bb08babd90e22ac37b5
[]
no_license
anish-rajan/Cp-algos
9ab16374a154fe9598a49405d1a2b3bf10013320
9bcb7264769536cc4ff877a3b6d2f156fddee50a
refs/heads/master
2022-12-14T09:44:31.960833
2020-09-10T12:01:14
2020-09-10T12:01:14
265,180,210
2
0
null
null
null
null
UTF-8
C++
false
false
1,954
cpp
#include <iostream> #include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef long double ld; #define mp make_pair #define v vector #define inp_push(no, v) \ ll no; \ cin >> no; \ v.push_back(no); #define pb push_back #define fi first #define se second #define ALL(v) v.begin(), v.end() #define UN(v) sort((v).begin(), (v).end()), v.erase(unique(v.begin(), v.end()), v.end()) #define N 6 #define mod 1000000007 #define INF INT_MAX ll n, k; multiset<ll> p; long long powmod(long long x, long long y, long long m) { long long res = 1LL; while (y) { if (y & 1) res = (res * x) % m; // cout << x << " " << mod << "\n"; x = (x * x) % m; y /= 2; } return res; } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cin >> n >> k; ll power = 0; while (n > 0) { if (n % 2) p.insert(power); n /= 2; power++; } if (k < p.size()) { cout << "No\n"; return 0; } ll nos = p.size(); while (nos < k) { auto itr = p.end(); itr--; auto temp = *itr; ll temp1 = p.count(temp); if (temp1 + nos <= k) { p.erase(temp); while (temp1) { p.insert(temp - 1); p.insert(temp - 1); nos++; temp1--; } } else break; } while (nos < k) { auto itr = p.begin(); auto temp = *itr; p.erase(itr); p.insert(temp - 1); p.insert(temp - 1); nos++; } cout << "Yes\n"; v<ll> ans; for (auto itr = p.begin(); itr != p.end(); itr++) ans.pb(*itr); reverse(ans.begin(), ans.end()); for (ll i = 0; i < ans.size(); i++) cout << ans[i] << " "; cout << "\n"; }
[ "anishrajan2000@gmail.com" ]
anishrajan2000@gmail.com
3e78965f4f7bd5d6a86098edd8aca15a515eada3
142a6293964adf4b002d0fbabaa4c7b637664539
/autic/autic.ino
6a18be0581cfd9fd764c7bfaba1cec6667992c3f
[]
no_license
lovrosverko/Arduino-razno
0fd6dc3a45ce8d875e7298279e714b4c92b8076c
fdb59f5e2a3450577ea5fdd7eb2a5fdf1ae81704
refs/heads/main
2023-01-08T06:44:36.170171
2020-10-16T19:14:16
2020-10-16T19:14:16
304,687,957
0
0
null
null
null
null
UTF-8
C++
false
false
2,801
ino
#include <AFMotor.h> // import the Adafruit Motor Shield library #include <ServoTimer2.h> #include <RH_ASK.h> #include <SPI.h> // Not actualy used but needed to compile #define servoPin 10 RH_ASK driver (2000, 2, 0, 1); ServoTimer2 servo1; AF_DCMotor motor1(4); // Set up a DC Motor named 'motor1' on the channel M1 of the motor shield AF_DCMotor motor2(3); // Set up a DC Motor named 'motor2' on the channel M2 of the motor shield char var; void setup() { pinMode(servoPin, OUTPUT); Serial.begin(9600); // begin serial communication @ 9600 baud pinMode(LED_BUILTIN, OUTPUT); motor1.setSpeed(255); // Set the speed of motor1 to 125. You can choose any speed from 0 to 255 motor2.setSpeed(255); // Set the speed of motor2 to 125 servo1.attach(servoPin); servo1.write(1500); if (!driver.init()) Serial.println("init failed"); } void loop() { uint8_t buf[RH_ASK_MAX_MESSAGE_LEN]; uint8_t buflen = sizeof(buf); if (driver.recv(buf, &buflen)) // Non-blocking { digitalWrite(LED_BUILTIN, HIGH); //int i; // Message with a good checksum received, dump it. driver.printBuffer("Got: ", buf, buflen); delay(500); String rcv; for (int i = 0; i < buflen; i++) { rcv += (char)buf[i]; } Serial.println(rcv); digitalWrite(LED_BUILTIN, LOW); switch ((char)buf[0]) { case 's': stani(); break; case 'w': naprijed(); break; case 'a': lijevo(); break; case 'd': desno(); break; case 'e': naprijedDesno(); break; case 'q': naprijedLijevo(); break; case 'x': natrag(); break; case 'y': natragLijevo(); break; case 'c': natragDesno(); break; default: // if nothing else matches, do the default // default is optional break; } } else { } } void naprijed() { servo1.write(1500); motor1.run(FORWARD); motor2.run(FORWARD); } void natrag() { servo1.write(1500); motor1.run(BACKWARD); motor2.run(BACKWARD); } void stani() { servo1.write(1500); motor1.run(RELEASE); motor2.run(RELEASE); } void desno() { servo1.write (1900); } void lijevo() { servo1.write (1100); } void naprijedDesno() { servo1.write (1900); motor1.run(FORWARD); motor2.run(FORWARD); } void natragDesno() { servo1.write (1100); motor1.run(BACKWARD); motor2.run(BACKWARD); } void naprijedLijevo() { servo1.write (1100); motor1.run(FORWARD); motor2.run(FORWARD); } void natragLijevo() { servo1.write (1900); motor1.run(BACKWARD); motor2.run(BACKWARD); }
[ "noreply@github.com" ]
lovrosverko.noreply@github.com
046c23185c9ae9491d5205d60ff22d4772cc29a2
10f08f6430eee2daefd310bffe71d7740abf1a97
/Matrix.hpp
9e584ba1ad8cbe237efcec586702c1931a4a2ab6
[]
no_license
nkt/cpp-matrix
9908c80642255fa473df5e75e78b896d590ae26e
6fdfaac73394a1ed972268327b6fc2ea84e35fe2
refs/heads/master
2021-01-01T19:15:23.460567
2014-05-27T03:52:48
2014-05-27T03:52:48
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,586
hpp
#ifndef __Matrix_H_ #define __Matrix_H_ #include <iostream> template<typename T, typename K = double> class Matrix { protected: T **matrix; size_t n; size_t m; inline void checkIndexes(size_t i, size_t j) const { if (i > n || j > m) { throw new std::runtime_error("The indexes is outside the valid range"); } } inline void checkEqualSizes(const Matrix &arg) const { if (arg.n != n || arg.m != m) { throw new std::runtime_error("The matrix sizes not equals"); } } public: Matrix(size_t n, size_t m) : n(n), m(m) { matrix = new T *[n]; for (size_t i = 0; i < n; ++i) { matrix[i] = new T[m]; } } Matrix(const Matrix &arg) : Matrix(arg.n, arg.m) { for (size_t i = 0; i < n; ++i) { for (size_t j = 0; j < m; ++j) { matrix[i][j] = arg.matrix[i][j]; } } } void set(size_t i, size_t j, const T value) { checkIndexes(i, j); matrix[i][j] = value; } T get(size_t i, size_t j) const { checkIndexes(i, j); return matrix[i][j]; } Matrix operator+(const Matrix &arg) const { checkEqualSizes(arg); Matrix<T, K> result(n, m); for (size_t i = 0; i < n; ++i) { for (size_t j = 0; j < m; ++j) { result.matrix[i][j] = matrix[i][j] + arg.matrix[i][j]; } } return result; } Matrix operator*(const K &num) const { Matrix<T, K> result(n, m); for (size_t i = 0; i < n; ++i) { for (size_t j = 0; j < m; ++j) { result.matrix[i][j] = matrix[i][j] * num; } } return result; } Matrix operator-(const Matrix &arg) const { return (arg * -1) + *this; } Matrix operator*(const Matrix &arg) const { Matrix<T, K> result(n, m); for (size_t i = 0; i < n; ++i) { for (size_t j = 0; j < arg.m; ++j) { for (size_t k = 0; k < m; ++k) { result.matrix[i][j] = matrix[i][k] * arg.matrix[k][j]; } } } return result; } friend std::ostream &operator<<(std::ostream &output, Matrix &arg) { for (size_t i = 0; i < arg.n; ++i) { for (size_t j = 0; j < arg.m; ++j) { output << arg.matrix[i][j] << " "; } output << std::endl; } return output; } }; #endif
[ "dev@nkt.me" ]
dev@nkt.me
92a8e64cbdf8be1e9decadb93f7c556f32996f88
eaae835cc555550daeb5a60a299426bf9f9d3a2c
/src/test/script_tests.cpp
990a0454ccbcb99d0cf48a04681974bbe079b363
[ "MIT" ]
permissive
Bitcoin-LE/bitcoinle-core
24e1dd7c1e2e792427a38ae1af8692849c3cfcf5
2f4e1994d54c443c4292475aa976c48fda34d806
refs/heads/master
2021-07-11T13:41:07.040490
2019-01-27T01:22:36
2019-01-27T01:22:36
139,747,212
8
7
null
null
null
null
UTF-8
C++
false
false
89,551
cpp
// Copyright (c) 2011-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "data/script_tests.json.h" #include "core_io.h" #include "key.h" #include "keystore.h" #include "script/script.h" #include "script/script_error.h" #include "script/sign.h" #include "util.h" #include "utilstrencodings.h" #include "test/test_bitcoin.h" #include "rpc/server.h" #if defined(HAVE_CONSENSUS_LIB) #include "script/bitcoinleconsensus.h" #endif #include <fstream> #include <stdint.h> #include <string> #include <vector> #include <boost/test/unit_test.hpp> #include <univalue.h> // Uncomment if you want to output updated JSON tests. // #define UPDATE_JSON_TESTS static const unsigned int gFlags = SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC; unsigned int ParseScriptFlags(std::string strFlags); std::string FormatScriptFlags(unsigned int flags); UniValue read_json(const std::string& jsondata) { UniValue v; if (!v.read(jsondata) || !v.isArray()) { BOOST_ERROR("Parse error."); return UniValue(UniValue::VARR); } return v.get_array(); } struct ScriptErrorDesc { ScriptError_t err; const char *name; }; static ScriptErrorDesc script_errors[]={ {SCRIPT_ERR_OK, "OK"}, {SCRIPT_ERR_UNKNOWN_ERROR, "UNKNOWN_ERROR"}, {SCRIPT_ERR_EVAL_FALSE, "EVAL_FALSE"}, {SCRIPT_ERR_OP_RETURN, "OP_RETURN"}, {SCRIPT_ERR_SCRIPT_SIZE, "SCRIPT_SIZE"}, {SCRIPT_ERR_PUSH_SIZE, "PUSH_SIZE"}, {SCRIPT_ERR_OP_COUNT, "OP_COUNT"}, {SCRIPT_ERR_STACK_SIZE, "STACK_SIZE"}, {SCRIPT_ERR_SIG_COUNT, "SIG_COUNT"}, {SCRIPT_ERR_PUBKEY_COUNT, "PUBKEY_COUNT"}, {SCRIPT_ERR_VERIFY, "VERIFY"}, {SCRIPT_ERR_EQUALVERIFY, "EQUALVERIFY"}, {SCRIPT_ERR_CHECKMULTISIGVERIFY, "CHECKMULTISIGVERIFY"}, {SCRIPT_ERR_CHECKSIGVERIFY, "CHECKSIGVERIFY"}, {SCRIPT_ERR_NUMEQUALVERIFY, "NUMEQUALVERIFY"}, {SCRIPT_ERR_BAD_OPCODE, "BAD_OPCODE"}, {SCRIPT_ERR_DISABLED_OPCODE, "DISABLED_OPCODE"}, {SCRIPT_ERR_INVALID_STACK_OPERATION, "INVALID_STACK_OPERATION"}, {SCRIPT_ERR_INVALID_ALTSTACK_OPERATION, "INVALID_ALTSTACK_OPERATION"}, {SCRIPT_ERR_UNBALANCED_CONDITIONAL, "UNBALANCED_CONDITIONAL"}, {SCRIPT_ERR_NEGATIVE_LOCKTIME, "NEGATIVE_LOCKTIME"}, {SCRIPT_ERR_UNSATISFIED_LOCKTIME, "UNSATISFIED_LOCKTIME"}, {SCRIPT_ERR_SIG_HASHTYPE, "SIG_HASHTYPE"}, {SCRIPT_ERR_SIG_DER, "SIG_DER"}, {SCRIPT_ERR_MINIMALDATA, "MINIMALDATA"}, {SCRIPT_ERR_SIG_PUSHONLY, "SIG_PUSHONLY"}, {SCRIPT_ERR_SIG_HIGH_S, "SIG_HIGH_S"}, {SCRIPT_ERR_SIG_NULLDUMMY, "SIG_NULLDUMMY"}, {SCRIPT_ERR_PUBKEYTYPE, "PUBKEYTYPE"}, {SCRIPT_ERR_CLEANSTACK, "CLEANSTACK"}, {SCRIPT_ERR_MINIMALIF, "MINIMALIF"}, {SCRIPT_ERR_SIG_NULLFAIL, "NULLFAIL"}, {SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS, "DISCOURAGE_UPGRADABLE_NOPS"}, {SCRIPT_ERR_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM, "DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM"}, {SCRIPT_ERR_WITNESS_PROGRAM_WRONG_LENGTH, "WITNESS_PROGRAM_WRONG_LENGTH"}, {SCRIPT_ERR_WITNESS_PROGRAM_WITNESS_EMPTY, "WITNESS_PROGRAM_WITNESS_EMPTY"}, {SCRIPT_ERR_WITNESS_PROGRAM_MISMATCH, "WITNESS_PROGRAM_MISMATCH"}, {SCRIPT_ERR_WITNESS_MALLEATED, "WITNESS_MALLEATED"}, {SCRIPT_ERR_WITNESS_MALLEATED_P2SH, "WITNESS_MALLEATED_P2SH"}, {SCRIPT_ERR_WITNESS_UNEXPECTED, "WITNESS_UNEXPECTED"}, {SCRIPT_ERR_WITNESS_PUBKEYTYPE, "WITNESS_PUBKEYTYPE"}, }; const char *FormatScriptError(ScriptError_t err) { for (unsigned int i=0; i<ARRAYLEN(script_errors); ++i) if (script_errors[i].err == err) return script_errors[i].name; BOOST_ERROR("Unknown scripterror enumeration value, update script_errors in script_tests.cpp."); return ""; } ScriptError_t ParseScriptError(const std::string &name) { for (unsigned int i=0; i<ARRAYLEN(script_errors); ++i) if (script_errors[i].name == name) return script_errors[i].err; BOOST_ERROR("Unknown scripterror \"" << name << "\" in test description"); return SCRIPT_ERR_UNKNOWN_ERROR; } BOOST_FIXTURE_TEST_SUITE(script_tests, BasicTestingSetup) CMutableTransaction BuildCreditingTransaction(const CScript& scriptPubKey, int nValue = 0) { CMutableTransaction txCredit; txCredit.nVersion = 1; txCredit.nLockTime = 0; txCredit.vin.resize(1); txCredit.vout.resize(1); txCredit.vin[0].prevout.SetNull(); txCredit.vin[0].scriptSig = CScript() << CScriptNum(0) << CScriptNum(0); txCredit.vin[0].nSequence = CTxIn::SEQUENCE_FINAL; txCredit.vout[0].scriptPubKey = scriptPubKey; txCredit.vout[0].nValue = nValue; return txCredit; } CMutableTransaction BuildSpendingTransaction(const CScript& scriptSig, const CScriptWitness& scriptWitness, const CMutableTransaction& txCredit) { CMutableTransaction txSpend; txSpend.nVersion = 1; txSpend.nLockTime = 0; txSpend.vin.resize(1); txSpend.vout.resize(1); txSpend.vin[0].scriptWitness = scriptWitness; txSpend.vin[0].prevout.hash = txCredit.GetHash(); txSpend.vin[0].prevout.n = 0; txSpend.vin[0].scriptSig = scriptSig; txSpend.vin[0].nSequence = CTxIn::SEQUENCE_FINAL; txSpend.vout[0].scriptPubKey = CScript(); txSpend.vout[0].nValue = txCredit.vout[0].nValue; return txSpend; } void DoTest(const CScript& scriptPubKey, const CScript& scriptSig, const CScriptWitness& scriptWitness, int flags, const std::string& message, int scriptError, CAmount nValue = 0) { bool expect = (scriptError == SCRIPT_ERR_OK); if (flags & SCRIPT_VERIFY_CLEANSTACK) { flags |= SCRIPT_VERIFY_P2SH; flags |= SCRIPT_VERIFY_WITNESS; } ScriptError err; CMutableTransaction txCredit = BuildCreditingTransaction(scriptPubKey, nValue); CMutableTransaction tx = BuildSpendingTransaction(scriptSig, scriptWitness, txCredit); CMutableTransaction tx2 = tx; BOOST_CHECK_MESSAGE(VerifyScript(scriptSig, scriptPubKey, &scriptWitness, flags, MutableTransactionSignatureChecker(&tx, 0, txCredit.vout[0].nValue), &err) == expect, message); BOOST_CHECK_MESSAGE(err == scriptError, std::string(FormatScriptError(err)) + " where " + std::string(FormatScriptError((ScriptError_t)scriptError)) + " expected: " + message); #if defined(HAVE_CONSENSUS_LIB) CDataStream stream(SER_NETWORK, PROTOCOL_VERSION); stream << tx2; int libconsensus_flags = flags & bitcoinconsensus_SCRIPT_FLAGS_VERIFY_ALL; if (libconsensus_flags == flags) { if (flags & bitcoinconsensus_SCRIPT_FLAGS_VERIFY_WITNESS) { BOOST_CHECK_MESSAGE(bitcoinconsensus_verify_script_with_amount(scriptPubKey.data(), scriptPubKey.size(), txCredit.vout[0].nValue, (const unsigned char*)&stream[0], stream.size(), 0, libconsensus_flags, nullptr) == expect, message); } else { BOOST_CHECK_MESSAGE(bitcoinconsensus_verify_script_with_amount(scriptPubKey.data(), scriptPubKey.size(), 0, (const unsigned char*)&stream[0], stream.size(), 0, libconsensus_flags, nullptr) == expect, message); BOOST_CHECK_MESSAGE(bitcoinconsensus_verify_script(scriptPubKey.data(), scriptPubKey.size(), (const unsigned char*)&stream[0], stream.size(), 0, libconsensus_flags, nullptr) == expect,message); } } #endif } void static NegateSignatureS(std::vector<unsigned char>& vchSig) { // Parse the signature. std::vector<unsigned char> r, s; r = std::vector<unsigned char>(vchSig.begin() + 4, vchSig.begin() + 4 + vchSig[3]); s = std::vector<unsigned char>(vchSig.begin() + 6 + vchSig[3], vchSig.begin() + 6 + vchSig[3] + vchSig[5 + vchSig[3]]); // Really ugly to implement mod-n negation here, but it would be feature creep to expose such functionality from libsecp256k1. static const unsigned char order[33] = { 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xBA, 0xAE, 0xDC, 0xE6, 0xAF, 0x48, 0xA0, 0x3B, 0xBF, 0xD2, 0x5E, 0x8C, 0xD0, 0x36, 0x41, 0x41 }; while (s.size() < 33) { s.insert(s.begin(), 0x00); } int carry = 0; for (int p = 32; p >= 1; p--) { int n = (int)order[p] - s[p] - carry; s[p] = (n + 256) & 0xFF; carry = (n < 0); } assert(carry == 0); if (s.size() > 1 && s[0] == 0 && s[1] < 0x80) { s.erase(s.begin()); } // Reconstruct the signature. vchSig.clear(); vchSig.push_back(0x30); vchSig.push_back(4 + r.size() + s.size()); vchSig.push_back(0x02); vchSig.push_back(r.size()); vchSig.insert(vchSig.end(), r.begin(), r.end()); vchSig.push_back(0x02); vchSig.push_back(s.size()); vchSig.insert(vchSig.end(), s.begin(), s.end()); } namespace { const unsigned char vchKey0[32] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}; const unsigned char vchKey1[32] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0}; const unsigned char vchKey2[32] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0}; struct KeyData { CKey key0, key0C, key1, key1C, key2, key2C; CPubKey pubkey0, pubkey0C, pubkey0H; CPubKey pubkey1, pubkey1C; CPubKey pubkey2, pubkey2C; KeyData() { key0.Set(vchKey0, vchKey0 + 32, false); key0C.Set(vchKey0, vchKey0 + 32, true); pubkey0 = key0.GetPubKey(); pubkey0H = key0.GetPubKey(); pubkey0C = key0C.GetPubKey(); *const_cast<unsigned char*>(&pubkey0H[0]) = 0x06 | (pubkey0H[64] & 1); key1.Set(vchKey1, vchKey1 + 32, false); key1C.Set(vchKey1, vchKey1 + 32, true); pubkey1 = key1.GetPubKey(); pubkey1C = key1C.GetPubKey(); key2.Set(vchKey2, vchKey2 + 32, false); key2C.Set(vchKey2, vchKey2 + 32, true); pubkey2 = key2.GetPubKey(); pubkey2C = key2C.GetPubKey(); } }; enum WitnessMode { WITNESS_NONE, WITNESS_PKH, WITNESS_SH }; class TestBuilder { private: //! Actually executed script CScript script; //! The P2SH redeemscript CScript redeemscript; //! The Witness embedded script CScript witscript; CScriptWitness scriptWitness; CTransactionRef creditTx; CMutableTransaction spendTx; bool havePush; std::vector<unsigned char> push; std::string comment; int flags; int scriptError; CAmount nValue; void DoPush() { if (havePush) { spendTx.vin[0].scriptSig << push; havePush = false; } } void DoPush(const std::vector<unsigned char>& data) { DoPush(); push = data; havePush = true; } public: TestBuilder(const CScript& script_, const std::string& comment_, int flags_, bool P2SH = false, WitnessMode wm = WITNESS_NONE, int witnessversion = 0, CAmount nValue_ = 0) : script(script_), havePush(false), comment(comment_), flags(flags_), scriptError(SCRIPT_ERR_OK), nValue(nValue_) { CScript scriptPubKey = script; if (wm == WITNESS_PKH) { uint160 hash; CHash160().Write(&script[1], script.size() - 1).Finalize(hash.begin()); script = CScript() << OP_DUP << OP_HASH160 << ToByteVector(hash) << OP_EQUALVERIFY << OP_CHECKSIG; scriptPubKey = CScript() << witnessversion << ToByteVector(hash); } else if (wm == WITNESS_SH) { witscript = scriptPubKey; uint256 hash; CSHA256().Write(&witscript[0], witscript.size()).Finalize(hash.begin()); scriptPubKey = CScript() << witnessversion << ToByteVector(hash); } if (P2SH) { redeemscript = scriptPubKey; scriptPubKey = CScript() << OP_HASH160 << ToByteVector(CScriptID(redeemscript)) << OP_EQUAL; } creditTx = MakeTransactionRef(BuildCreditingTransaction(scriptPubKey, nValue)); spendTx = BuildSpendingTransaction(CScript(), CScriptWitness(), *creditTx); } TestBuilder& ScriptError(ScriptError_t err) { scriptError = err; return *this; } TestBuilder& Add(const CScript& _script) { DoPush(); spendTx.vin[0].scriptSig += _script; return *this; } TestBuilder& Num(int num) { DoPush(); spendTx.vin[0].scriptSig << num; return *this; } TestBuilder& Push(const std::string& hex) { DoPush(ParseHex(hex)); return *this; } TestBuilder& Push(const CScript& _script) { DoPush(std::vector<unsigned char>(_script.begin(), _script.end())); return *this; } TestBuilder& PushSig(const CKey& key, int nHashType = SIGHASH_ALL, unsigned int lenR = 32, unsigned int lenS = 32, SigVersion sigversion = SIGVERSION_BASE, CAmount amount = 0) { uint256 hash = SignatureHash(script, spendTx, 0, nHashType, amount, sigversion); std::vector<unsigned char> vchSig, r, s; uint32_t iter = 0; do { key.Sign(hash, vchSig, iter++); if ((lenS == 33) != (vchSig[5 + vchSig[3]] == 33)) { NegateSignatureS(vchSig); } r = std::vector<unsigned char>(vchSig.begin() + 4, vchSig.begin() + 4 + vchSig[3]); s = std::vector<unsigned char>(vchSig.begin() + 6 + vchSig[3], vchSig.begin() + 6 + vchSig[3] + vchSig[5 + vchSig[3]]); } while (lenR != r.size() || lenS != s.size()); vchSig.push_back(static_cast<unsigned char>(nHashType)); DoPush(vchSig); return *this; } TestBuilder& PushWitSig(const CKey& key, CAmount amount = -1, int nHashType = SIGHASH_ALL, unsigned int lenR = 32, unsigned int lenS = 32, SigVersion sigversion = SIGVERSION_WITNESS_V0) { if (amount == -1) amount = nValue; return PushSig(key, nHashType, lenR, lenS, sigversion, amount).AsWit(); } TestBuilder& Push(const CPubKey& pubkey) { DoPush(std::vector<unsigned char>(pubkey.begin(), pubkey.end())); return *this; } TestBuilder& PushRedeem() { DoPush(std::vector<unsigned char>(redeemscript.begin(), redeemscript.end())); return *this; } TestBuilder& PushWitRedeem() { DoPush(std::vector<unsigned char>(witscript.begin(), witscript.end())); return AsWit(); } TestBuilder& EditPush(unsigned int pos, const std::string& hexin, const std::string& hexout) { assert(havePush); std::vector<unsigned char> datain = ParseHex(hexin); std::vector<unsigned char> dataout = ParseHex(hexout); assert(pos + datain.size() <= push.size()); BOOST_CHECK_MESSAGE(std::vector<unsigned char>(push.begin() + pos, push.begin() + pos + datain.size()) == datain, comment); push.erase(push.begin() + pos, push.begin() + pos + datain.size()); push.insert(push.begin() + pos, dataout.begin(), dataout.end()); return *this; } TestBuilder& DamagePush(unsigned int pos) { assert(havePush); assert(pos < push.size()); push[pos] ^= 1; return *this; } TestBuilder& Test() { TestBuilder copy = *this; // Make a copy so we can rollback the push. DoPush(); DoTest(creditTx->vout[0].scriptPubKey, spendTx.vin[0].scriptSig, scriptWitness, flags, comment, scriptError, nValue); *this = copy; return *this; } TestBuilder& AsWit() { assert(havePush); scriptWitness.stack.push_back(push); havePush = false; return *this; } UniValue GetJSON() { DoPush(); UniValue array(UniValue::VARR); if (!scriptWitness.stack.empty()) { UniValue wit(UniValue::VARR); for (unsigned i = 0; i < scriptWitness.stack.size(); i++) { wit.push_back(HexStr(scriptWitness.stack[i])); } wit.push_back(ValueFromAmount(nValue)); array.push_back(wit); } array.push_back(FormatScript(spendTx.vin[0].scriptSig)); array.push_back(FormatScript(creditTx->vout[0].scriptPubKey)); array.push_back(FormatScriptFlags(flags)); array.push_back(FormatScriptError((ScriptError_t)scriptError)); array.push_back(comment); return array; } std::string GetComment() { return comment; } }; std::string JSONPrettyPrint(const UniValue& univalue) { std::string ret = univalue.write(4); // Workaround for libunivalue pretty printer, which puts a space between commas and newlines size_t pos = 0; while ((pos = ret.find(" \n", pos)) != std::string::npos) { ret.replace(pos, 2, "\n"); pos++; } return ret; } } // namespace BOOST_AUTO_TEST_CASE(script_build) { const KeyData keys; std::vector<TestBuilder> tests; tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0) << OP_CHECKSIG, "P2PK", 0 ).PushSig(keys.key0)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0) << OP_CHECKSIG, "P2PK, bad sig", 0 ).PushSig(keys.key0).DamagePush(10).ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << OP_DUP << OP_HASH160 << ToByteVector(keys.pubkey1C.GetID()) << OP_EQUALVERIFY << OP_CHECKSIG, "P2PKH", 0 ).PushSig(keys.key1).Push(keys.pubkey1C)); tests.push_back(TestBuilder(CScript() << OP_DUP << OP_HASH160 << ToByteVector(keys.pubkey2C.GetID()) << OP_EQUALVERIFY << OP_CHECKSIG, "P2PKH, bad pubkey", 0 ).PushSig(keys.key2).Push(keys.pubkey2C).DamagePush(5).ScriptError(SCRIPT_ERR_EQUALVERIFY)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1) << OP_CHECKSIG, "P2PK anyonecanpay", 0 ).PushSig(keys.key1, SIGHASH_ALL | SIGHASH_ANYONECANPAY)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1) << OP_CHECKSIG, "P2PK anyonecanpay marked with normal hashtype", 0 ).PushSig(keys.key1, SIGHASH_ALL | SIGHASH_ANYONECANPAY).EditPush(70, "81", "01").ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0C) << OP_CHECKSIG, "P2SH(P2PK)", SCRIPT_VERIFY_P2SH, true ).PushSig(keys.key0).PushRedeem()); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0C) << OP_CHECKSIG, "P2SH(P2PK), bad redeemscript", SCRIPT_VERIFY_P2SH, true ).PushSig(keys.key0).PushRedeem().DamagePush(10).ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << OP_DUP << OP_HASH160 << ToByteVector(keys.pubkey0.GetID()) << OP_EQUALVERIFY << OP_CHECKSIG, "P2SH(P2PKH)", SCRIPT_VERIFY_P2SH, true ).PushSig(keys.key0).Push(keys.pubkey0).PushRedeem()); tests.push_back(TestBuilder(CScript() << OP_DUP << OP_HASH160 << ToByteVector(keys.pubkey1.GetID()) << OP_EQUALVERIFY << OP_CHECKSIG, "P2SH(P2PKH), bad sig but no VERIFY_P2SH", 0, true ).PushSig(keys.key0).DamagePush(10).PushRedeem()); tests.push_back(TestBuilder(CScript() << OP_DUP << OP_HASH160 << ToByteVector(keys.pubkey1.GetID()) << OP_EQUALVERIFY << OP_CHECKSIG, "P2SH(P2PKH), bad sig", SCRIPT_VERIFY_P2SH, true ).PushSig(keys.key0).DamagePush(10).PushRedeem().ScriptError(SCRIPT_ERR_EQUALVERIFY)); tests.push_back(TestBuilder(CScript() << OP_3 << ToByteVector(keys.pubkey0C) << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey2C) << OP_3 << OP_CHECKMULTISIG, "3-of-3", 0 ).Num(0).PushSig(keys.key0).PushSig(keys.key1).PushSig(keys.key2)); tests.push_back(TestBuilder(CScript() << OP_3 << ToByteVector(keys.pubkey0C) << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey2C) << OP_3 << OP_CHECKMULTISIG, "3-of-3, 2 sigs", 0 ).Num(0).PushSig(keys.key0).PushSig(keys.key1).Num(0).ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << OP_2 << ToByteVector(keys.pubkey0C) << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey2C) << OP_3 << OP_CHECKMULTISIG, "P2SH(2-of-3)", SCRIPT_VERIFY_P2SH, true ).Num(0).PushSig(keys.key1).PushSig(keys.key2).PushRedeem()); tests.push_back(TestBuilder(CScript() << OP_2 << ToByteVector(keys.pubkey0C) << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey2C) << OP_3 << OP_CHECKMULTISIG, "P2SH(2-of-3), 1 sig", SCRIPT_VERIFY_P2SH, true ).Num(0).PushSig(keys.key1).Num(0).PushRedeem().ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1C) << OP_CHECKSIG, "P2PK with too much R padding but no DERSIG", 0 ).PushSig(keys.key1, SIGHASH_ALL, 31, 32).EditPush(1, "43021F", "44022000")); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1C) << OP_CHECKSIG, "P2PK with too much R padding", SCRIPT_VERIFY_DERSIG ).PushSig(keys.key1, SIGHASH_ALL, 31, 32).EditPush(1, "43021F", "44022000").ScriptError(SCRIPT_ERR_SIG_DER)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1C) << OP_CHECKSIG, "P2PK with too much S padding but no DERSIG", 0 ).PushSig(keys.key1, SIGHASH_ALL).EditPush(1, "44", "45").EditPush(37, "20", "2100")); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1C) << OP_CHECKSIG, "P2PK with too much S padding", SCRIPT_VERIFY_DERSIG ).PushSig(keys.key1, SIGHASH_ALL).EditPush(1, "44", "45").EditPush(37, "20", "2100").ScriptError(SCRIPT_ERR_SIG_DER)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1C) << OP_CHECKSIG, "P2PK with too little R padding but no DERSIG", 0 ).PushSig(keys.key1, SIGHASH_ALL, 33, 32).EditPush(1, "45022100", "440220")); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1C) << OP_CHECKSIG, "P2PK with too little R padding", SCRIPT_VERIFY_DERSIG ).PushSig(keys.key1, SIGHASH_ALL, 33, 32).EditPush(1, "45022100", "440220").ScriptError(SCRIPT_ERR_SIG_DER)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey2C) << OP_CHECKSIG << OP_NOT, "P2PK NOT with bad sig with too much R padding but no DERSIG", 0 ).PushSig(keys.key2, SIGHASH_ALL, 31, 32).EditPush(1, "43021F", "44022000").DamagePush(10)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey2C) << OP_CHECKSIG << OP_NOT, "P2PK NOT with bad sig with too much R padding", SCRIPT_VERIFY_DERSIG ).PushSig(keys.key2, SIGHASH_ALL, 31, 32).EditPush(1, "43021F", "44022000").DamagePush(10).ScriptError(SCRIPT_ERR_SIG_DER)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey2C) << OP_CHECKSIG << OP_NOT, "P2PK NOT with too much R padding but no DERSIG", 0 ).PushSig(keys.key2, SIGHASH_ALL, 31, 32).EditPush(1, "43021F", "44022000").ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey2C) << OP_CHECKSIG << OP_NOT, "P2PK NOT with too much R padding", SCRIPT_VERIFY_DERSIG ).PushSig(keys.key2, SIGHASH_ALL, 31, 32).EditPush(1, "43021F", "44022000").ScriptError(SCRIPT_ERR_SIG_DER)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1C) << OP_CHECKSIG, "BIP66 example 1, without DERSIG", 0 ).PushSig(keys.key1, SIGHASH_ALL, 33, 32).EditPush(1, "45022100", "440220")); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1C) << OP_CHECKSIG, "BIP66 example 1, with DERSIG", SCRIPT_VERIFY_DERSIG ).PushSig(keys.key1, SIGHASH_ALL, 33, 32).EditPush(1, "45022100", "440220").ScriptError(SCRIPT_ERR_SIG_DER)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1C) << OP_CHECKSIG << OP_NOT, "BIP66 example 2, without DERSIG", 0 ).PushSig(keys.key1, SIGHASH_ALL, 33, 32).EditPush(1, "45022100", "440220").ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1C) << OP_CHECKSIG << OP_NOT, "BIP66 example 2, with DERSIG", SCRIPT_VERIFY_DERSIG ).PushSig(keys.key1, SIGHASH_ALL, 33, 32).EditPush(1, "45022100", "440220").ScriptError(SCRIPT_ERR_SIG_DER)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1C) << OP_CHECKSIG, "BIP66 example 3, without DERSIG", 0 ).Num(0).ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1C) << OP_CHECKSIG, "BIP66 example 3, with DERSIG", SCRIPT_VERIFY_DERSIG ).Num(0).ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1C) << OP_CHECKSIG << OP_NOT, "BIP66 example 4, without DERSIG", 0 ).Num(0)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1C) << OP_CHECKSIG << OP_NOT, "BIP66 example 4, with DERSIG", SCRIPT_VERIFY_DERSIG ).Num(0)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1C) << OP_CHECKSIG, "BIP66 example 5, without DERSIG", 0 ).Num(1).ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1C) << OP_CHECKSIG, "BIP66 example 5, with DERSIG", SCRIPT_VERIFY_DERSIG ).Num(1).ScriptError(SCRIPT_ERR_SIG_DER)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1C) << OP_CHECKSIG << OP_NOT, "BIP66 example 6, without DERSIG", 0 ).Num(1)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1C) << OP_CHECKSIG << OP_NOT, "BIP66 example 6, with DERSIG", SCRIPT_VERIFY_DERSIG ).Num(1).ScriptError(SCRIPT_ERR_SIG_DER)); tests.push_back(TestBuilder(CScript() << OP_2 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey2C) << OP_2 << OP_CHECKMULTISIG, "BIP66 example 7, without DERSIG", 0 ).Num(0).PushSig(keys.key1, SIGHASH_ALL, 33, 32).EditPush(1, "45022100", "440220").PushSig(keys.key2)); tests.push_back(TestBuilder(CScript() << OP_2 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey2C) << OP_2 << OP_CHECKMULTISIG, "BIP66 example 7, with DERSIG", SCRIPT_VERIFY_DERSIG ).Num(0).PushSig(keys.key1, SIGHASH_ALL, 33, 32).EditPush(1, "45022100", "440220").PushSig(keys.key2).ScriptError(SCRIPT_ERR_SIG_DER)); tests.push_back(TestBuilder(CScript() << OP_2 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey2C) << OP_2 << OP_CHECKMULTISIG << OP_NOT, "BIP66 example 8, without DERSIG", 0 ).Num(0).PushSig(keys.key1, SIGHASH_ALL, 33, 32).EditPush(1, "45022100", "440220").PushSig(keys.key2).ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << OP_2 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey2C) << OP_2 << OP_CHECKMULTISIG << OP_NOT, "BIP66 example 8, with DERSIG", SCRIPT_VERIFY_DERSIG ).Num(0).PushSig(keys.key1, SIGHASH_ALL, 33, 32).EditPush(1, "45022100", "440220").PushSig(keys.key2).ScriptError(SCRIPT_ERR_SIG_DER)); tests.push_back(TestBuilder(CScript() << OP_2 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey2C) << OP_2 << OP_CHECKMULTISIG, "BIP66 example 9, without DERSIG", 0 ).Num(0).Num(0).PushSig(keys.key2, SIGHASH_ALL, 33, 32).EditPush(1, "45022100", "440220").ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << OP_2 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey2C) << OP_2 << OP_CHECKMULTISIG, "BIP66 example 9, with DERSIG", SCRIPT_VERIFY_DERSIG ).Num(0).Num(0).PushSig(keys.key2, SIGHASH_ALL, 33, 32).EditPush(1, "45022100", "440220").ScriptError(SCRIPT_ERR_SIG_DER)); tests.push_back(TestBuilder(CScript() << OP_2 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey2C) << OP_2 << OP_CHECKMULTISIG << OP_NOT, "BIP66 example 10, without DERSIG", 0 ).Num(0).Num(0).PushSig(keys.key2, SIGHASH_ALL, 33, 32).EditPush(1, "45022100", "440220")); tests.push_back(TestBuilder(CScript() << OP_2 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey2C) << OP_2 << OP_CHECKMULTISIG << OP_NOT, "BIP66 example 10, with DERSIG", SCRIPT_VERIFY_DERSIG ).Num(0).Num(0).PushSig(keys.key2, SIGHASH_ALL, 33, 32).EditPush(1, "45022100", "440220").ScriptError(SCRIPT_ERR_SIG_DER)); tests.push_back(TestBuilder(CScript() << OP_2 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey2C) << OP_2 << OP_CHECKMULTISIG, "BIP66 example 11, without DERSIG", 0 ).Num(0).PushSig(keys.key1, SIGHASH_ALL, 33, 32).EditPush(1, "45022100", "440220").Num(0).ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << OP_2 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey2C) << OP_2 << OP_CHECKMULTISIG, "BIP66 example 11, with DERSIG", SCRIPT_VERIFY_DERSIG ).Num(0).PushSig(keys.key1, SIGHASH_ALL, 33, 32).EditPush(1, "45022100", "440220").Num(0).ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << OP_2 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey2C) << OP_2 << OP_CHECKMULTISIG << OP_NOT, "BIP66 example 12, without DERSIG", 0 ).Num(0).PushSig(keys.key1, SIGHASH_ALL, 33, 32).EditPush(1, "45022100", "440220").Num(0)); tests.push_back(TestBuilder(CScript() << OP_2 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey2C) << OP_2 << OP_CHECKMULTISIG << OP_NOT, "BIP66 example 12, with DERSIG", SCRIPT_VERIFY_DERSIG ).Num(0).PushSig(keys.key1, SIGHASH_ALL, 33, 32).EditPush(1, "45022100", "440220").Num(0)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey2C) << OP_CHECKSIG, "P2PK with multi-byte hashtype, without DERSIG", 0 ).PushSig(keys.key2, SIGHASH_ALL).EditPush(70, "01", "0101")); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey2C) << OP_CHECKSIG, "P2PK with multi-byte hashtype, with DERSIG", SCRIPT_VERIFY_DERSIG ).PushSig(keys.key2, SIGHASH_ALL).EditPush(70, "01", "0101").ScriptError(SCRIPT_ERR_SIG_DER)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey2C) << OP_CHECKSIG, "P2PK with high S but no LOW_S", 0 ).PushSig(keys.key2, SIGHASH_ALL, 32, 33)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey2C) << OP_CHECKSIG, "P2PK with high S", SCRIPT_VERIFY_LOW_S ).PushSig(keys.key2, SIGHASH_ALL, 32, 33).ScriptError(SCRIPT_ERR_SIG_HIGH_S)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0H) << OP_CHECKSIG, "P2PK with hybrid pubkey but no STRICTENC", 0 ).PushSig(keys.key0, SIGHASH_ALL)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0H) << OP_CHECKSIG, "P2PK with hybrid pubkey", SCRIPT_VERIFY_STRICTENC ).PushSig(keys.key0, SIGHASH_ALL).ScriptError(SCRIPT_ERR_PUBKEYTYPE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0H) << OP_CHECKSIG << OP_NOT, "P2PK NOT with hybrid pubkey but no STRICTENC", 0 ).PushSig(keys.key0, SIGHASH_ALL).ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0H) << OP_CHECKSIG << OP_NOT, "P2PK NOT with hybrid pubkey", SCRIPT_VERIFY_STRICTENC ).PushSig(keys.key0, SIGHASH_ALL).ScriptError(SCRIPT_ERR_PUBKEYTYPE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0H) << OP_CHECKSIG << OP_NOT, "P2PK NOT with invalid hybrid pubkey but no STRICTENC", 0 ).PushSig(keys.key0, SIGHASH_ALL).DamagePush(10)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0H) << OP_CHECKSIG << OP_NOT, "P2PK NOT with invalid hybrid pubkey", SCRIPT_VERIFY_STRICTENC ).PushSig(keys.key0, SIGHASH_ALL).DamagePush(10).ScriptError(SCRIPT_ERR_PUBKEYTYPE)); tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey0H) << ToByteVector(keys.pubkey1C) << OP_2 << OP_CHECKMULTISIG, "1-of-2 with the second 1 hybrid pubkey and no STRICTENC", 0 ).Num(0).PushSig(keys.key1, SIGHASH_ALL)); tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey0H) << ToByteVector(keys.pubkey1C) << OP_2 << OP_CHECKMULTISIG, "1-of-2 with the second 1 hybrid pubkey", SCRIPT_VERIFY_STRICTENC ).Num(0).PushSig(keys.key1, SIGHASH_ALL)); tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey0H) << OP_2 << OP_CHECKMULTISIG, "1-of-2 with the first 1 hybrid pubkey", SCRIPT_VERIFY_STRICTENC ).Num(0).PushSig(keys.key1, SIGHASH_ALL).ScriptError(SCRIPT_ERR_PUBKEYTYPE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1) << OP_CHECKSIG, "P2PK with undefined hashtype but no STRICTENC", 0 ).PushSig(keys.key1, 5)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1) << OP_CHECKSIG, "P2PK with undefined hashtype", SCRIPT_VERIFY_STRICTENC ).PushSig(keys.key1, 5).ScriptError(SCRIPT_ERR_SIG_HASHTYPE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1) << OP_CHECKSIG << OP_NOT, "P2PK NOT with invalid sig and undefined hashtype but no STRICTENC", 0 ).PushSig(keys.key1, 5).DamagePush(10)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1) << OP_CHECKSIG << OP_NOT, "P2PK NOT with invalid sig and undefined hashtype", SCRIPT_VERIFY_STRICTENC ).PushSig(keys.key1, 5).DamagePush(10).ScriptError(SCRIPT_ERR_SIG_HASHTYPE)); tests.push_back(TestBuilder(CScript() << OP_3 << ToByteVector(keys.pubkey0C) << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey2C) << OP_3 << OP_CHECKMULTISIG, "3-of-3 with nonzero dummy but no NULLDUMMY", 0 ).Num(1).PushSig(keys.key0).PushSig(keys.key1).PushSig(keys.key2)); tests.push_back(TestBuilder(CScript() << OP_3 << ToByteVector(keys.pubkey0C) << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey2C) << OP_3 << OP_CHECKMULTISIG, "3-of-3 with nonzero dummy", SCRIPT_VERIFY_NULLDUMMY ).Num(1).PushSig(keys.key0).PushSig(keys.key1).PushSig(keys.key2).ScriptError(SCRIPT_ERR_SIG_NULLDUMMY)); tests.push_back(TestBuilder(CScript() << OP_3 << ToByteVector(keys.pubkey0C) << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey2C) << OP_3 << OP_CHECKMULTISIG << OP_NOT, "3-of-3 NOT with invalid sig and nonzero dummy but no NULLDUMMY", 0 ).Num(1).PushSig(keys.key0).PushSig(keys.key1).PushSig(keys.key2).DamagePush(10)); tests.push_back(TestBuilder(CScript() << OP_3 << ToByteVector(keys.pubkey0C) << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey2C) << OP_3 << OP_CHECKMULTISIG << OP_NOT, "3-of-3 NOT with invalid sig with nonzero dummy", SCRIPT_VERIFY_NULLDUMMY ).Num(1).PushSig(keys.key0).PushSig(keys.key1).PushSig(keys.key2).DamagePush(10).ScriptError(SCRIPT_ERR_SIG_NULLDUMMY)); tests.push_back(TestBuilder(CScript() << OP_2 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey1C) << OP_2 << OP_CHECKMULTISIG, "2-of-2 with two identical keys and sigs pushed using OP_DUP but no SIGPUSHONLY", 0 ).Num(0).PushSig(keys.key1).Add(CScript() << OP_DUP)); tests.push_back(TestBuilder(CScript() << OP_2 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey1C) << OP_2 << OP_CHECKMULTISIG, "2-of-2 with two identical keys and sigs pushed using OP_DUP", SCRIPT_VERIFY_SIGPUSHONLY ).Num(0).PushSig(keys.key1).Add(CScript() << OP_DUP).ScriptError(SCRIPT_ERR_SIG_PUSHONLY)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey2C) << OP_CHECKSIG, "P2SH(P2PK) with non-push scriptSig but no P2SH or SIGPUSHONLY", 0, true ).PushSig(keys.key2).Add(CScript() << OP_NOP8).PushRedeem()); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey2C) << OP_CHECKSIG, "P2PK with non-push scriptSig but with P2SH validation", 0 ).PushSig(keys.key2).Add(CScript() << OP_NOP8)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey2C) << OP_CHECKSIG, "P2SH(P2PK) with non-push scriptSig but no SIGPUSHONLY", SCRIPT_VERIFY_P2SH, true ).PushSig(keys.key2).Add(CScript() << OP_NOP8).PushRedeem().ScriptError(SCRIPT_ERR_SIG_PUSHONLY)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey2C) << OP_CHECKSIG, "P2SH(P2PK) with non-push scriptSig but not P2SH", SCRIPT_VERIFY_SIGPUSHONLY, true ).PushSig(keys.key2).Add(CScript() << OP_NOP8).PushRedeem().ScriptError(SCRIPT_ERR_SIG_PUSHONLY)); tests.push_back(TestBuilder(CScript() << OP_2 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey1C) << OP_2 << OP_CHECKMULTISIG, "2-of-2 with two identical keys and sigs pushed", SCRIPT_VERIFY_SIGPUSHONLY ).Num(0).PushSig(keys.key1).PushSig(keys.key1)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0) << OP_CHECKSIG, "P2PK with unnecessary input but no CLEANSTACK", SCRIPT_VERIFY_P2SH ).Num(11).PushSig(keys.key0)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0) << OP_CHECKSIG, "P2PK with unnecessary input", SCRIPT_VERIFY_CLEANSTACK | SCRIPT_VERIFY_P2SH ).Num(11).PushSig(keys.key0).ScriptError(SCRIPT_ERR_CLEANSTACK)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0) << OP_CHECKSIG, "P2SH with unnecessary input but no CLEANSTACK", SCRIPT_VERIFY_P2SH, true ).Num(11).PushSig(keys.key0).PushRedeem()); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0) << OP_CHECKSIG, "P2SH with unnecessary input", SCRIPT_VERIFY_CLEANSTACK | SCRIPT_VERIFY_P2SH, true ).Num(11).PushSig(keys.key0).PushRedeem().ScriptError(SCRIPT_ERR_CLEANSTACK)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0) << OP_CHECKSIG, "P2SH with CLEANSTACK", SCRIPT_VERIFY_CLEANSTACK | SCRIPT_VERIFY_P2SH, true ).PushSig(keys.key0).PushRedeem()); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0) << OP_CHECKSIG, "Basic P2WSH", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, false, WITNESS_SH, 0, 1).PushWitSig(keys.key0).PushWitRedeem()); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0), "Basic P2WPKH", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, false, WITNESS_PKH, 0, 1).PushWitSig(keys.key0).Push(keys.pubkey0).AsWit()); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0) << OP_CHECKSIG, "Basic P2SH(P2WSH)", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, true, WITNESS_SH, 0, 1).PushWitSig(keys.key0).PushWitRedeem().PushRedeem()); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0), "Basic P2SH(P2WPKH)", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, true, WITNESS_PKH, 0, 1).PushWitSig(keys.key0).Push(keys.pubkey0).AsWit().PushRedeem()); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1) << OP_CHECKSIG, "Basic P2WSH with the wrong key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, false, WITNESS_SH ).PushWitSig(keys.key0).PushWitRedeem().ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1), "Basic P2WPKH with the wrong key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, false, WITNESS_PKH ).PushWitSig(keys.key0).Push(keys.pubkey1).AsWit().ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1) << OP_CHECKSIG, "Basic P2SH(P2WSH) with the wrong key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, true, WITNESS_SH ).PushWitSig(keys.key0).PushWitRedeem().PushRedeem().ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1), "Basic P2SH(P2WPKH) with the wrong key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, true, WITNESS_PKH ).PushWitSig(keys.key0).Push(keys.pubkey1).AsWit().PushRedeem().ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1) << OP_CHECKSIG, "Basic P2WSH with the wrong key but no WITNESS", SCRIPT_VERIFY_P2SH, false, WITNESS_SH ).PushWitSig(keys.key0).PushWitRedeem()); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1), "Basic P2WPKH with the wrong key but no WITNESS", SCRIPT_VERIFY_P2SH, false, WITNESS_PKH ).PushWitSig(keys.key0).Push(keys.pubkey1).AsWit()); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1) << OP_CHECKSIG, "Basic P2SH(P2WSH) with the wrong key but no WITNESS", SCRIPT_VERIFY_P2SH, true, WITNESS_SH ).PushWitSig(keys.key0).PushWitRedeem().PushRedeem()); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1), "Basic P2SH(P2WPKH) with the wrong key but no WITNESS", SCRIPT_VERIFY_P2SH, true, WITNESS_PKH ).PushWitSig(keys.key0).Push(keys.pubkey1).AsWit().PushRedeem()); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0) << OP_CHECKSIG, "Basic P2WSH with wrong value", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, false, WITNESS_SH, 0, 0).PushWitSig(keys.key0, 1).PushWitRedeem().ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0), "Basic P2WPKH with wrong value", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, false, WITNESS_PKH, 0, 0).PushWitSig(keys.key0, 1).Push(keys.pubkey0).AsWit().ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0) << OP_CHECKSIG, "Basic P2SH(P2WSH) with wrong value", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, true, WITNESS_SH, 0, 0).PushWitSig(keys.key0, 1).PushWitRedeem().PushRedeem().ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0), "Basic P2SH(P2WPKH) with wrong value", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, true, WITNESS_PKH, 0, 0).PushWitSig(keys.key0, 1).Push(keys.pubkey0).AsWit().PushRedeem().ScriptError(SCRIPT_ERR_EVAL_FALSE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0), "P2WPKH with future witness version", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM, false, WITNESS_PKH, 1 ).PushWitSig(keys.key0).Push(keys.pubkey0).AsWit().ScriptError(SCRIPT_ERR_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM)); { CScript witscript = CScript() << ToByteVector(keys.pubkey0); uint256 hash; CSHA256().Write(&witscript[0], witscript.size()).Finalize(hash.begin()); std::vector<unsigned char> hashBytes = ToByteVector(hash); hashBytes.pop_back(); tests.push_back(TestBuilder(CScript() << OP_0 << hashBytes, "P2WPKH with wrong witness program length", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, false ).PushWitSig(keys.key0).Push(keys.pubkey0).AsWit().ScriptError(SCRIPT_ERR_WITNESS_PROGRAM_WRONG_LENGTH)); } tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0) << OP_CHECKSIG, "P2WSH with empty witness", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, false, WITNESS_SH ).ScriptError(SCRIPT_ERR_WITNESS_PROGRAM_WITNESS_EMPTY)); { CScript witscript = CScript() << ToByteVector(keys.pubkey0) << OP_CHECKSIG; tests.push_back(TestBuilder(witscript, "P2WSH with witness program mismatch", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, false, WITNESS_SH ).PushWitSig(keys.key0).Push(witscript).DamagePush(0).AsWit().ScriptError(SCRIPT_ERR_WITNESS_PROGRAM_MISMATCH)); } tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0), "P2WPKH with witness program mismatch", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, false, WITNESS_PKH ).PushWitSig(keys.key0).Push(keys.pubkey0).AsWit().Push("0").AsWit().ScriptError(SCRIPT_ERR_WITNESS_PROGRAM_MISMATCH)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0), "P2WPKH with non-empty scriptSig", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, false, WITNESS_PKH ).PushWitSig(keys.key0).Push(keys.pubkey0).AsWit().Num(11).ScriptError(SCRIPT_ERR_WITNESS_MALLEATED)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey1), "P2SH(P2WPKH) with superfluous push in scriptSig", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, true, WITNESS_PKH ).PushWitSig(keys.key0).Push(keys.pubkey1).AsWit().Num(11).PushRedeem().ScriptError(SCRIPT_ERR_WITNESS_MALLEATED_P2SH)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0) << OP_CHECKSIG, "P2PK with witness", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH ).PushSig(keys.key0).Push("0").AsWit().ScriptError(SCRIPT_ERR_WITNESS_UNEXPECTED)); // Compressed keys should pass SCRIPT_VERIFY_WITNESS_PUBKEYTYPE tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0C) << OP_CHECKSIG, "Basic P2WSH with compressed key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, false, WITNESS_SH, 0, 1).PushWitSig(keys.key0C).PushWitRedeem()); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0C), "Basic P2WPKH with compressed key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, false, WITNESS_PKH, 0, 1).PushWitSig(keys.key0C).Push(keys.pubkey0C).AsWit()); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0C) << OP_CHECKSIG, "Basic P2SH(P2WSH) with compressed key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, true, WITNESS_SH, 0, 1).PushWitSig(keys.key0C).PushWitRedeem().PushRedeem()); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0C), "Basic P2SH(P2WPKH) with compressed key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, true, WITNESS_PKH, 0, 1).PushWitSig(keys.key0C).Push(keys.pubkey0C).AsWit().PushRedeem()); // Testing uncompressed key in witness with SCRIPT_VERIFY_WITNESS_PUBKEYTYPE tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0) << OP_CHECKSIG, "Basic P2WSH", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, false, WITNESS_SH, 0, 1).PushWitSig(keys.key0).PushWitRedeem().ScriptError(SCRIPT_ERR_WITNESS_PUBKEYTYPE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0), "Basic P2WPKH", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, false, WITNESS_PKH, 0, 1).PushWitSig(keys.key0).Push(keys.pubkey0).AsWit().ScriptError(SCRIPT_ERR_WITNESS_PUBKEYTYPE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0) << OP_CHECKSIG, "Basic P2SH(P2WSH)", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, true, WITNESS_SH, 0, 1).PushWitSig(keys.key0).PushWitRedeem().PushRedeem().ScriptError(SCRIPT_ERR_WITNESS_PUBKEYTYPE)); tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey0), "Basic P2SH(P2WPKH)", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, true, WITNESS_PKH, 0, 1).PushWitSig(keys.key0).Push(keys.pubkey0).AsWit().PushRedeem().ScriptError(SCRIPT_ERR_WITNESS_PUBKEYTYPE)); // P2WSH 1-of-2 multisig with compressed keys tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey0C) << OP_2 << OP_CHECKMULTISIG, "P2WSH CHECKMULTISIG with compressed keys", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, false, WITNESS_SH, 0, 1).Push(CScript()).AsWit().PushWitSig(keys.key0C).PushWitRedeem()); tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey0C) << OP_2 << OP_CHECKMULTISIG, "P2SH(P2WSH) CHECKMULTISIG with compressed keys", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, true, WITNESS_SH, 0, 1).Push(CScript()).AsWit().PushWitSig(keys.key0C).PushWitRedeem().PushRedeem()); tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey0C) << OP_2 << OP_CHECKMULTISIG, "P2WSH CHECKMULTISIG with compressed keys", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, false, WITNESS_SH, 0, 1).Push(CScript()).AsWit().PushWitSig(keys.key1C).PushWitRedeem()); tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey0C) << OP_2 << OP_CHECKMULTISIG, "P2SH(P2WSH) CHECKMULTISIG with compressed keys", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, true, WITNESS_SH, 0, 1).Push(CScript()).AsWit().PushWitSig(keys.key1C).PushWitRedeem().PushRedeem()); // P2WSH 1-of-2 multisig with first key uncompressed tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey0) << OP_2 << OP_CHECKMULTISIG, "P2WSH CHECKMULTISIG with first key uncompressed and signing with the first key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, false, WITNESS_SH, 0, 1).Push(CScript()).AsWit().PushWitSig(keys.key0).PushWitRedeem()); tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey0) << OP_2 << OP_CHECKMULTISIG, "P2SH(P2WSH) CHECKMULTISIG first key uncompressed and signing with the first key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, true, WITNESS_SH, 0, 1).Push(CScript()).AsWit().PushWitSig(keys.key0).PushWitRedeem().PushRedeem()); tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey0) << OP_2 << OP_CHECKMULTISIG, "P2WSH CHECKMULTISIG with first key uncompressed and signing with the first key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, false, WITNESS_SH, 0, 1).Push(CScript()).AsWit().PushWitSig(keys.key0).PushWitRedeem().ScriptError(SCRIPT_ERR_WITNESS_PUBKEYTYPE)); tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey0) << OP_2 << OP_CHECKMULTISIG, "P2SH(P2WSH) CHECKMULTISIG with first key uncompressed and signing with the first key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, true, WITNESS_SH, 0, 1).Push(CScript()).AsWit().PushWitSig(keys.key0).PushWitRedeem().PushRedeem().ScriptError(SCRIPT_ERR_WITNESS_PUBKEYTYPE)); tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey0) << OP_2 << OP_CHECKMULTISIG, "P2WSH CHECKMULTISIG with first key uncompressed and signing with the second key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, false, WITNESS_SH, 0, 1).Push(CScript()).AsWit().PushWitSig(keys.key1C).PushWitRedeem()); tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey0) << OP_2 << OP_CHECKMULTISIG, "P2SH(P2WSH) CHECKMULTISIG with first key uncompressed and signing with the second key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, true, WITNESS_SH, 0, 1).Push(CScript()).AsWit().PushWitSig(keys.key1C).PushWitRedeem().PushRedeem()); tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey0) << OP_2 << OP_CHECKMULTISIG, "P2WSH CHECKMULTISIG with first key uncompressed and signing with the second key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, false, WITNESS_SH, 0, 1).Push(CScript()).AsWit().PushWitSig(keys.key1C).PushWitRedeem().ScriptError(SCRIPT_ERR_WITNESS_PUBKEYTYPE)); tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey1C) << ToByteVector(keys.pubkey0) << OP_2 << OP_CHECKMULTISIG, "P2SH(P2WSH) CHECKMULTISIG with first key uncompressed and signing with the second key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, true, WITNESS_SH, 0, 1).Push(CScript()).AsWit().PushWitSig(keys.key1C).PushWitRedeem().PushRedeem().ScriptError(SCRIPT_ERR_WITNESS_PUBKEYTYPE)); // P2WSH 1-of-2 multisig with second key uncompressed tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey1) << ToByteVector(keys.pubkey0C) << OP_2 << OP_CHECKMULTISIG, "P2WSH CHECKMULTISIG with second key uncompressed and signing with the first key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, false, WITNESS_SH, 0, 1).Push(CScript()).AsWit().PushWitSig(keys.key0C).PushWitRedeem()); tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey1) << ToByteVector(keys.pubkey0C) << OP_2 << OP_CHECKMULTISIG, "P2SH(P2WSH) CHECKMULTISIG second key uncompressed and signing with the first key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, true, WITNESS_SH, 0, 1).Push(CScript()).AsWit().PushWitSig(keys.key0C).PushWitRedeem().PushRedeem()); tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey1) << ToByteVector(keys.pubkey0C) << OP_2 << OP_CHECKMULTISIG, "P2WSH CHECKMULTISIG with second key uncompressed and signing with the first key should pass as the uncompressed key is not used", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, false, WITNESS_SH, 0, 1).Push(CScript()).AsWit().PushWitSig(keys.key0C).PushWitRedeem()); tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey1) << ToByteVector(keys.pubkey0C) << OP_2 << OP_CHECKMULTISIG, "P2SH(P2WSH) CHECKMULTISIG with second key uncompressed and signing with the first key should pass as the uncompressed key is not used", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, true, WITNESS_SH, 0, 1).Push(CScript()).AsWit().PushWitSig(keys.key0C).PushWitRedeem().PushRedeem()); tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey1) << ToByteVector(keys.pubkey0C) << OP_2 << OP_CHECKMULTISIG, "P2WSH CHECKMULTISIG with second key uncompressed and signing with the second key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, false, WITNESS_SH, 0, 1).Push(CScript()).AsWit().PushWitSig(keys.key1).PushWitRedeem()); tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey1) << ToByteVector(keys.pubkey0C) << OP_2 << OP_CHECKMULTISIG, "P2SH(P2WSH) CHECKMULTISIG with second key uncompressed and signing with the second key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH, true, WITNESS_SH, 0, 1).Push(CScript()).AsWit().PushWitSig(keys.key1).PushWitRedeem().PushRedeem()); tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey1) << ToByteVector(keys.pubkey0C) << OP_2 << OP_CHECKMULTISIG, "P2WSH CHECKMULTISIG with second key uncompressed and signing with the second key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, false, WITNESS_SH, 0, 1).Push(CScript()).AsWit().PushWitSig(keys.key1).PushWitRedeem().ScriptError(SCRIPT_ERR_WITNESS_PUBKEYTYPE)); tests.push_back(TestBuilder(CScript() << OP_1 << ToByteVector(keys.pubkey1) << ToByteVector(keys.pubkey0C) << OP_2 << OP_CHECKMULTISIG, "P2SH(P2WSH) CHECKMULTISIG with second key uncompressed and signing with the second key", SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, true, WITNESS_SH, 0, 1).Push(CScript()).AsWit().PushWitSig(keys.key1).PushWitRedeem().PushRedeem().ScriptError(SCRIPT_ERR_WITNESS_PUBKEYTYPE)); std::set<std::string> tests_set; { UniValue json_tests = read_json(std::string(json_tests::script_tests, json_tests::script_tests + sizeof(json_tests::script_tests))); for (unsigned int idx = 0; idx < json_tests.size(); idx++) { const UniValue& tv = json_tests[idx]; tests_set.insert(JSONPrettyPrint(tv.get_array())); } } std::string strGen; for (TestBuilder& test : tests) { test.Test(); std::string str = JSONPrettyPrint(test.GetJSON()); #ifndef UPDATE_JSON_TESTS if (tests_set.count(str) == 0) { BOOST_CHECK_MESSAGE(false, "Missing auto script_valid test: " + test.GetComment()); } #endif strGen += str + ",\n"; } #ifdef UPDATE_JSON_TESTS FILE* file = fopen("script_tests.json.gen", "w"); fputs(strGen.c_str(), file); fclose(file); #endif } BOOST_AUTO_TEST_CASE(script_json_test) { // Read tests from test/data/script_tests.json // Format is an array of arrays // Inner arrays are [ ["wit"..., nValue]?, "scriptSig", "scriptPubKey", "flags", "expected_scripterror" ] // ... where scriptSig and scriptPubKey are stringified // scripts. // If a witness is given, then the last value in the array should be the // amount (nValue) to use in the crediting tx UniValue tests = read_json(std::string(json_tests::script_tests, json_tests::script_tests + sizeof(json_tests::script_tests))); for (unsigned int idx = 0; idx < tests.size(); idx++) { UniValue test = tests[idx]; std::string strTest = test.write(); CScriptWitness witness; CAmount nValue = 0; unsigned int pos = 0; if (test.size() > 0 && test[pos].isArray()) { unsigned int i=0; for (i = 0; i < test[pos].size()-1; i++) { witness.stack.push_back(ParseHex(test[pos][i].get_str())); } nValue = AmountFromValue(test[pos][i]); pos++; } if (test.size() < 4 + pos) // Allow size > 3; extra stuff ignored (useful for comments) { if (test.size() != 1) { BOOST_ERROR("Bad test: " << strTest); } continue; } std::string scriptSigString = test[pos++].get_str(); CScript scriptSig = ParseScript(scriptSigString); std::string scriptPubKeyString = test[pos++].get_str(); CScript scriptPubKey = ParseScript(scriptPubKeyString); unsigned int scriptflags = ParseScriptFlags(test[pos++].get_str()); int scriptError = ParseScriptError(test[pos++].get_str()); DoTest(scriptPubKey, scriptSig, witness, scriptflags, strTest, scriptError, nValue); } } BOOST_AUTO_TEST_CASE(script_PushData) { // Check that PUSHDATA1, PUSHDATA2, and PUSHDATA4 create the same value on // the stack as the 1-75 opcodes do. static const unsigned char direct[] = { 1, 0x5a }; static const unsigned char pushdata1[] = { OP_PUSHDATA1, 1, 0x5a }; static const unsigned char pushdata2[] = { OP_PUSHDATA2, 1, 0, 0x5a }; static const unsigned char pushdata4[] = { OP_PUSHDATA4, 1, 0, 0, 0, 0x5a }; ScriptError err; std::vector<std::vector<unsigned char> > directStack; BOOST_CHECK(EvalScript(directStack, CScript(&direct[0], &direct[sizeof(direct)]), SCRIPT_VERIFY_P2SH, BaseSignatureChecker(), SIGVERSION_BASE, &err)); BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_OK, ScriptErrorString(err)); std::vector<std::vector<unsigned char> > pushdata1Stack; BOOST_CHECK(EvalScript(pushdata1Stack, CScript(&pushdata1[0], &pushdata1[sizeof(pushdata1)]), SCRIPT_VERIFY_P2SH, BaseSignatureChecker(), SIGVERSION_BASE, &err)); BOOST_CHECK(pushdata1Stack == directStack); BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_OK, ScriptErrorString(err)); std::vector<std::vector<unsigned char> > pushdata2Stack; BOOST_CHECK(EvalScript(pushdata2Stack, CScript(&pushdata2[0], &pushdata2[sizeof(pushdata2)]), SCRIPT_VERIFY_P2SH, BaseSignatureChecker(), SIGVERSION_BASE, &err)); BOOST_CHECK(pushdata2Stack == directStack); BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_OK, ScriptErrorString(err)); std::vector<std::vector<unsigned char> > pushdata4Stack; BOOST_CHECK(EvalScript(pushdata4Stack, CScript(&pushdata4[0], &pushdata4[sizeof(pushdata4)]), SCRIPT_VERIFY_P2SH, BaseSignatureChecker(), SIGVERSION_BASE, &err)); BOOST_CHECK(pushdata4Stack == directStack); BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_OK, ScriptErrorString(err)); } CScript sign_multisig(CScript scriptPubKey, std::vector<CKey> keys, CTransaction transaction) { uint256 hash = SignatureHash(scriptPubKey, transaction, 0, SIGHASH_ALL, 0, SIGVERSION_BASE); CScript result; // // NOTE: CHECKMULTISIG has an unfortunate bug; it requires // one extra item on the stack, before the signatures. // Putting OP_0 on the stack is the workaround; // fixing the bug would mean splitting the block chain (old // clients would not accept new CHECKMULTISIG transactions, // and vice-versa) // result << OP_0; for (const CKey &key : keys) { std::vector<unsigned char> vchSig; BOOST_CHECK(key.Sign(hash, vchSig)); vchSig.push_back((unsigned char)SIGHASH_ALL); result << vchSig; } return result; } CScript sign_multisig(CScript scriptPubKey, const CKey &key, CTransaction transaction) { std::vector<CKey> keys; keys.push_back(key); return sign_multisig(scriptPubKey, keys, transaction); } BOOST_AUTO_TEST_CASE(script_CHECKMULTISIG12) { ScriptError err; CKey key1, key2, key3; key1.MakeNewKey(true); key2.MakeNewKey(false); key3.MakeNewKey(true); CScript scriptPubKey12; scriptPubKey12 << OP_1 << ToByteVector(key1.GetPubKey()) << ToByteVector(key2.GetPubKey()) << OP_2 << OP_CHECKMULTISIG; CMutableTransaction txFrom12 = BuildCreditingTransaction(scriptPubKey12); CMutableTransaction txTo12 = BuildSpendingTransaction(CScript(), CScriptWitness(), txFrom12); CScript goodsig1 = sign_multisig(scriptPubKey12, key1, txTo12); BOOST_CHECK(VerifyScript(goodsig1, scriptPubKey12, nullptr, gFlags, MutableTransactionSignatureChecker(&txTo12, 0, txFrom12.vout[0].nValue), &err)); BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_OK, ScriptErrorString(err)); txTo12.vout[0].nValue = 2; BOOST_CHECK(!VerifyScript(goodsig1, scriptPubKey12, nullptr, gFlags, MutableTransactionSignatureChecker(&txTo12, 0, txFrom12.vout[0].nValue), &err)); BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_EVAL_FALSE, ScriptErrorString(err)); CScript goodsig2 = sign_multisig(scriptPubKey12, key2, txTo12); BOOST_CHECK(VerifyScript(goodsig2, scriptPubKey12, nullptr, gFlags, MutableTransactionSignatureChecker(&txTo12, 0, txFrom12.vout[0].nValue), &err)); BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_OK, ScriptErrorString(err)); CScript badsig1 = sign_multisig(scriptPubKey12, key3, txTo12); BOOST_CHECK(!VerifyScript(badsig1, scriptPubKey12, nullptr, gFlags, MutableTransactionSignatureChecker(&txTo12, 0, txFrom12.vout[0].nValue), &err)); BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_EVAL_FALSE, ScriptErrorString(err)); } BOOST_AUTO_TEST_CASE(script_CHECKMULTISIG23) { ScriptError err; CKey key1, key2, key3, key4; key1.MakeNewKey(true); key2.MakeNewKey(false); key3.MakeNewKey(true); key4.MakeNewKey(false); CScript scriptPubKey23; scriptPubKey23 << OP_2 << ToByteVector(key1.GetPubKey()) << ToByteVector(key2.GetPubKey()) << ToByteVector(key3.GetPubKey()) << OP_3 << OP_CHECKMULTISIG; CMutableTransaction txFrom23 = BuildCreditingTransaction(scriptPubKey23); CMutableTransaction txTo23 = BuildSpendingTransaction(CScript(), CScriptWitness(), txFrom23); std::vector<CKey> keys; keys.push_back(key1); keys.push_back(key2); CScript goodsig1 = sign_multisig(scriptPubKey23, keys, txTo23); BOOST_CHECK(VerifyScript(goodsig1, scriptPubKey23, nullptr, gFlags, MutableTransactionSignatureChecker(&txTo23, 0, txFrom23.vout[0].nValue), &err)); BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_OK, ScriptErrorString(err)); keys.clear(); keys.push_back(key1); keys.push_back(key3); CScript goodsig2 = sign_multisig(scriptPubKey23, keys, txTo23); BOOST_CHECK(VerifyScript(goodsig2, scriptPubKey23, nullptr, gFlags, MutableTransactionSignatureChecker(&txTo23, 0, txFrom23.vout[0].nValue), &err)); BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_OK, ScriptErrorString(err)); keys.clear(); keys.push_back(key2); keys.push_back(key3); CScript goodsig3 = sign_multisig(scriptPubKey23, keys, txTo23); BOOST_CHECK(VerifyScript(goodsig3, scriptPubKey23, nullptr, gFlags, MutableTransactionSignatureChecker(&txTo23, 0, txFrom23.vout[0].nValue), &err)); BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_OK, ScriptErrorString(err)); keys.clear(); keys.push_back(key2); keys.push_back(key2); // Can't re-use sig CScript badsig1 = sign_multisig(scriptPubKey23, keys, txTo23); BOOST_CHECK(!VerifyScript(badsig1, scriptPubKey23, nullptr, gFlags, MutableTransactionSignatureChecker(&txTo23, 0, txFrom23.vout[0].nValue), &err)); BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_EVAL_FALSE, ScriptErrorString(err)); keys.clear(); keys.push_back(key2); keys.push_back(key1); // sigs must be in correct order CScript badsig2 = sign_multisig(scriptPubKey23, keys, txTo23); BOOST_CHECK(!VerifyScript(badsig2, scriptPubKey23, nullptr, gFlags, MutableTransactionSignatureChecker(&txTo23, 0, txFrom23.vout[0].nValue), &err)); BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_EVAL_FALSE, ScriptErrorString(err)); keys.clear(); keys.push_back(key3); keys.push_back(key2); // sigs must be in correct order CScript badsig3 = sign_multisig(scriptPubKey23, keys, txTo23); BOOST_CHECK(!VerifyScript(badsig3, scriptPubKey23, nullptr, gFlags, MutableTransactionSignatureChecker(&txTo23, 0, txFrom23.vout[0].nValue), &err)); BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_EVAL_FALSE, ScriptErrorString(err)); keys.clear(); keys.push_back(key4); keys.push_back(key2); // sigs must match pubkeys CScript badsig4 = sign_multisig(scriptPubKey23, keys, txTo23); BOOST_CHECK(!VerifyScript(badsig4, scriptPubKey23, nullptr, gFlags, MutableTransactionSignatureChecker(&txTo23, 0, txFrom23.vout[0].nValue), &err)); BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_EVAL_FALSE, ScriptErrorString(err)); keys.clear(); keys.push_back(key1); keys.push_back(key4); // sigs must match pubkeys CScript badsig5 = sign_multisig(scriptPubKey23, keys, txTo23); BOOST_CHECK(!VerifyScript(badsig5, scriptPubKey23, nullptr, gFlags, MutableTransactionSignatureChecker(&txTo23, 0, txFrom23.vout[0].nValue), &err)); BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_EVAL_FALSE, ScriptErrorString(err)); keys.clear(); // Must have signatures CScript badsig6 = sign_multisig(scriptPubKey23, keys, txTo23); BOOST_CHECK(!VerifyScript(badsig6, scriptPubKey23, nullptr, gFlags, MutableTransactionSignatureChecker(&txTo23, 0, txFrom23.vout[0].nValue), &err)); BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_INVALID_STACK_OPERATION, ScriptErrorString(err)); } BOOST_AUTO_TEST_CASE(script_combineSigs) { // Test the CombineSignatures function CAmount amount = 0; CBasicKeyStore keystore; std::vector<CKey> keys; std::vector<CPubKey> pubkeys; for (int i = 0; i < 3; i++) { CKey key; key.MakeNewKey(i%2 == 1); keys.push_back(key); pubkeys.push_back(key.GetPubKey()); keystore.AddKey(key); } CMutableTransaction txFrom = BuildCreditingTransaction(GetScriptForDestination(keys[0].GetPubKey().GetID())); CMutableTransaction txTo = BuildSpendingTransaction(CScript(), CScriptWitness(), txFrom); CScript& scriptPubKey = txFrom.vout[0].scriptPubKey; CScript& scriptSig = txTo.vin[0].scriptSig; SignatureData empty; SignatureData combined = CombineSignatures(scriptPubKey, MutableTransactionSignatureChecker(&txTo, 0, amount), empty, empty); BOOST_CHECK(combined.scriptSig.empty()); // Single signature case: SignSignature(keystore, txFrom, txTo, 0, SIGHASH_ALL); // changes scriptSig combined = CombineSignatures(scriptPubKey, MutableTransactionSignatureChecker(&txTo, 0, amount), SignatureData(scriptSig), empty); BOOST_CHECK(combined.scriptSig == scriptSig); combined = CombineSignatures(scriptPubKey, MutableTransactionSignatureChecker(&txTo, 0, amount), empty, SignatureData(scriptSig)); BOOST_CHECK(combined.scriptSig == scriptSig); CScript scriptSigCopy = scriptSig; // Signing again will give a different, valid signature: SignSignature(keystore, txFrom, txTo, 0, SIGHASH_ALL); combined = CombineSignatures(scriptPubKey, MutableTransactionSignatureChecker(&txTo, 0, amount), SignatureData(scriptSigCopy), SignatureData(scriptSig)); BOOST_CHECK(combined.scriptSig == scriptSigCopy || combined.scriptSig == scriptSig); // P2SH, single-signature case: CScript pkSingle; pkSingle << ToByteVector(keys[0].GetPubKey()) << OP_CHECKSIG; keystore.AddCScript(pkSingle); scriptPubKey = GetScriptForDestination(CScriptID(pkSingle)); SignSignature(keystore, txFrom, txTo, 0, SIGHASH_ALL); combined = CombineSignatures(scriptPubKey, MutableTransactionSignatureChecker(&txTo, 0, amount), SignatureData(scriptSig), empty); BOOST_CHECK(combined.scriptSig == scriptSig); combined = CombineSignatures(scriptPubKey, MutableTransactionSignatureChecker(&txTo, 0, amount), empty, SignatureData(scriptSig)); BOOST_CHECK(combined.scriptSig == scriptSig); scriptSigCopy = scriptSig; SignSignature(keystore, txFrom, txTo, 0, SIGHASH_ALL); combined = CombineSignatures(scriptPubKey, MutableTransactionSignatureChecker(&txTo, 0, amount), SignatureData(scriptSigCopy), SignatureData(scriptSig)); BOOST_CHECK(combined.scriptSig == scriptSigCopy || combined.scriptSig == scriptSig); // dummy scriptSigCopy with placeholder, should always choose non-placeholder: scriptSigCopy = CScript() << OP_0 << std::vector<unsigned char>(pkSingle.begin(), pkSingle.end()); combined = CombineSignatures(scriptPubKey, MutableTransactionSignatureChecker(&txTo, 0, amount), SignatureData(scriptSigCopy), SignatureData(scriptSig)); BOOST_CHECK(combined.scriptSig == scriptSig); combined = CombineSignatures(scriptPubKey, MutableTransactionSignatureChecker(&txTo, 0, amount), SignatureData(scriptSig), SignatureData(scriptSigCopy)); BOOST_CHECK(combined.scriptSig == scriptSig); // Hardest case: Multisig 2-of-3 scriptPubKey = GetScriptForMultisig(2, pubkeys); keystore.AddCScript(scriptPubKey); SignSignature(keystore, txFrom, txTo, 0, SIGHASH_ALL); combined = CombineSignatures(scriptPubKey, MutableTransactionSignatureChecker(&txTo, 0, amount), SignatureData(scriptSig), empty); BOOST_CHECK(combined.scriptSig == scriptSig); combined = CombineSignatures(scriptPubKey, MutableTransactionSignatureChecker(&txTo, 0, amount), empty, SignatureData(scriptSig)); BOOST_CHECK(combined.scriptSig == scriptSig); // A couple of partially-signed versions: std::vector<unsigned char> sig1; uint256 hash1 = SignatureHash(scriptPubKey, txTo, 0, SIGHASH_ALL, 0, SIGVERSION_BASE); BOOST_CHECK(keys[0].Sign(hash1, sig1)); sig1.push_back(SIGHASH_ALL); std::vector<unsigned char> sig2; uint256 hash2 = SignatureHash(scriptPubKey, txTo, 0, SIGHASH_NONE, 0, SIGVERSION_BASE); BOOST_CHECK(keys[1].Sign(hash2, sig2)); sig2.push_back(SIGHASH_NONE); std::vector<unsigned char> sig3; uint256 hash3 = SignatureHash(scriptPubKey, txTo, 0, SIGHASH_SINGLE, 0, SIGVERSION_BASE); BOOST_CHECK(keys[2].Sign(hash3, sig3)); sig3.push_back(SIGHASH_SINGLE); // Not fussy about order (or even existence) of placeholders or signatures: CScript partial1a = CScript() << OP_0 << sig1 << OP_0; CScript partial1b = CScript() << OP_0 << OP_0 << sig1; CScript partial2a = CScript() << OP_0 << sig2; CScript partial2b = CScript() << sig2 << OP_0; CScript partial3a = CScript() << sig3; CScript partial3b = CScript() << OP_0 << OP_0 << sig3; CScript partial3c = CScript() << OP_0 << sig3 << OP_0; CScript complete12 = CScript() << OP_0 << sig1 << sig2; CScript complete13 = CScript() << OP_0 << sig1 << sig3; CScript complete23 = CScript() << OP_0 << sig2 << sig3; combined = CombineSignatures(scriptPubKey, MutableTransactionSignatureChecker(&txTo, 0, amount), SignatureData(partial1a), SignatureData(partial1b)); BOOST_CHECK(combined.scriptSig == partial1a); combined = CombineSignatures(scriptPubKey, MutableTransactionSignatureChecker(&txTo, 0, amount), SignatureData(partial1a), SignatureData(partial2a)); BOOST_CHECK(combined.scriptSig == complete12); combined = CombineSignatures(scriptPubKey, MutableTransactionSignatureChecker(&txTo, 0, amount), SignatureData(partial2a), SignatureData(partial1a)); BOOST_CHECK(combined.scriptSig == complete12); combined = CombineSignatures(scriptPubKey, MutableTransactionSignatureChecker(&txTo, 0, amount), SignatureData(partial1b), SignatureData(partial2b)); BOOST_CHECK(combined.scriptSig == complete12); combined = CombineSignatures(scriptPubKey, MutableTransactionSignatureChecker(&txTo, 0, amount), SignatureData(partial3b), SignatureData(partial1b)); BOOST_CHECK(combined.scriptSig == complete13); combined = CombineSignatures(scriptPubKey, MutableTransactionSignatureChecker(&txTo, 0, amount), SignatureData(partial2a), SignatureData(partial3a)); BOOST_CHECK(combined.scriptSig == complete23); combined = CombineSignatures(scriptPubKey, MutableTransactionSignatureChecker(&txTo, 0, amount), SignatureData(partial3b), SignatureData(partial2b)); BOOST_CHECK(combined.scriptSig == complete23); combined = CombineSignatures(scriptPubKey, MutableTransactionSignatureChecker(&txTo, 0, amount), SignatureData(partial3b), SignatureData(partial3a)); BOOST_CHECK(combined.scriptSig == partial3c); } BOOST_AUTO_TEST_CASE(script_standard_push) { ScriptError err; for (int i=0; i<67000; i++) { CScript script; script << i; BOOST_CHECK_MESSAGE(script.IsPushOnly(), "Number " << i << " is not pure push."); BOOST_CHECK_MESSAGE(VerifyScript(script, CScript() << OP_1, nullptr, SCRIPT_VERIFY_MINIMALDATA, BaseSignatureChecker(), &err), "Number " << i << " push is not minimal data."); BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_OK, ScriptErrorString(err)); } for (unsigned int i=0; i<=MAX_SCRIPT_ELEMENT_SIZE; i++) { std::vector<unsigned char> data(i, '\111'); CScript script; script << data; BOOST_CHECK_MESSAGE(script.IsPushOnly(), "Length " << i << " is not pure push."); BOOST_CHECK_MESSAGE(VerifyScript(script, CScript() << OP_1, nullptr, SCRIPT_VERIFY_MINIMALDATA, BaseSignatureChecker(), &err), "Length " << i << " push is not minimal data."); BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_OK, ScriptErrorString(err)); } } BOOST_AUTO_TEST_CASE(script_IsPushOnly_on_invalid_scripts) { // IsPushOnly returns false when given a script containing only pushes that // are invalid due to truncation. IsPushOnly() is consensus critical // because P2SH evaluation uses it, although this specific behavior should // not be consensus critical as the P2SH evaluation would fail first due to // the invalid push. Still, it doesn't hurt to test it explicitly. static const unsigned char direct[] = { 1 }; BOOST_CHECK(!CScript(direct, direct+sizeof(direct)).IsPushOnly()); } BOOST_AUTO_TEST_CASE(script_GetScriptAsm) { BOOST_CHECK_EQUAL("OP_CHECKLOCKTIMEVERIFY", ScriptToAsmStr(CScript() << OP_NOP2, true)); BOOST_CHECK_EQUAL("OP_CHECKLOCKTIMEVERIFY", ScriptToAsmStr(CScript() << OP_CHECKLOCKTIMEVERIFY, true)); BOOST_CHECK_EQUAL("OP_CHECKLOCKTIMEVERIFY", ScriptToAsmStr(CScript() << OP_NOP2)); BOOST_CHECK_EQUAL("OP_CHECKLOCKTIMEVERIFY", ScriptToAsmStr(CScript() << OP_CHECKLOCKTIMEVERIFY)); std::string derSig("304502207fa7a6d1e0ee81132a269ad84e68d695483745cde8b541e3bf630749894e342a022100c1f7ab20e13e22fb95281a870f3dcf38d782e53023ee313d741ad0cfbc0c5090"); std::string pubKey("03b0da749730dc9b4b1f4a14d6902877a92541f5368778853d9c4a0cb7802dcfb2"); std::vector<unsigned char> vchPubKey = ToByteVector(ParseHex(pubKey)); BOOST_CHECK_EQUAL(derSig + "00 " + pubKey, ScriptToAsmStr(CScript() << ToByteVector(ParseHex(derSig + "00")) << vchPubKey, true)); BOOST_CHECK_EQUAL(derSig + "80 " + pubKey, ScriptToAsmStr(CScript() << ToByteVector(ParseHex(derSig + "80")) << vchPubKey, true)); BOOST_CHECK_EQUAL(derSig + "[ALL] " + pubKey, ScriptToAsmStr(CScript() << ToByteVector(ParseHex(derSig + "01")) << vchPubKey, true)); BOOST_CHECK_EQUAL(derSig + "[NONE] " + pubKey, ScriptToAsmStr(CScript() << ToByteVector(ParseHex(derSig + "02")) << vchPubKey, true)); BOOST_CHECK_EQUAL(derSig + "[SINGLE] " + pubKey, ScriptToAsmStr(CScript() << ToByteVector(ParseHex(derSig + "03")) << vchPubKey, true)); BOOST_CHECK_EQUAL(derSig + "[ALL|ANYONECANPAY] " + pubKey, ScriptToAsmStr(CScript() << ToByteVector(ParseHex(derSig + "81")) << vchPubKey, true)); BOOST_CHECK_EQUAL(derSig + "[NONE|ANYONECANPAY] " + pubKey, ScriptToAsmStr(CScript() << ToByteVector(ParseHex(derSig + "82")) << vchPubKey, true)); BOOST_CHECK_EQUAL(derSig + "[SINGLE|ANYONECANPAY] " + pubKey, ScriptToAsmStr(CScript() << ToByteVector(ParseHex(derSig + "83")) << vchPubKey, true)); BOOST_CHECK_EQUAL(derSig + "00 " + pubKey, ScriptToAsmStr(CScript() << ToByteVector(ParseHex(derSig + "00")) << vchPubKey)); BOOST_CHECK_EQUAL(derSig + "80 " + pubKey, ScriptToAsmStr(CScript() << ToByteVector(ParseHex(derSig + "80")) << vchPubKey)); BOOST_CHECK_EQUAL(derSig + "01 " + pubKey, ScriptToAsmStr(CScript() << ToByteVector(ParseHex(derSig + "01")) << vchPubKey)); BOOST_CHECK_EQUAL(derSig + "02 " + pubKey, ScriptToAsmStr(CScript() << ToByteVector(ParseHex(derSig + "02")) << vchPubKey)); BOOST_CHECK_EQUAL(derSig + "03 " + pubKey, ScriptToAsmStr(CScript() << ToByteVector(ParseHex(derSig + "03")) << vchPubKey)); BOOST_CHECK_EQUAL(derSig + "81 " + pubKey, ScriptToAsmStr(CScript() << ToByteVector(ParseHex(derSig + "81")) << vchPubKey)); BOOST_CHECK_EQUAL(derSig + "82 " + pubKey, ScriptToAsmStr(CScript() << ToByteVector(ParseHex(derSig + "82")) << vchPubKey)); BOOST_CHECK_EQUAL(derSig + "83 " + pubKey, ScriptToAsmStr(CScript() << ToByteVector(ParseHex(derSig + "83")) << vchPubKey)); } static CScript ScriptFromHex(const char* hex) { std::vector<unsigned char> data = ParseHex(hex); return CScript(data.begin(), data.end()); } BOOST_AUTO_TEST_CASE(script_FindAndDelete) { // Exercise the FindAndDelete functionality CScript s; CScript d; CScript expect; s = CScript() << OP_1 << OP_2; d = CScript(); // delete nothing should be a no-op expect = s; BOOST_CHECK_EQUAL(s.FindAndDelete(d), 0); BOOST_CHECK(s == expect); s = CScript() << OP_1 << OP_2 << OP_3; d = CScript() << OP_2; expect = CScript() << OP_1 << OP_3; BOOST_CHECK_EQUAL(s.FindAndDelete(d), 1); BOOST_CHECK(s == expect); s = CScript() << OP_3 << OP_1 << OP_3 << OP_3 << OP_4 << OP_3; d = CScript() << OP_3; expect = CScript() << OP_1 << OP_4; BOOST_CHECK_EQUAL(s.FindAndDelete(d), 4); BOOST_CHECK(s == expect); s = ScriptFromHex("0302ff03"); // PUSH 0x02ff03 onto stack d = ScriptFromHex("0302ff03"); expect = CScript(); BOOST_CHECK_EQUAL(s.FindAndDelete(d), 1); BOOST_CHECK(s == expect); s = ScriptFromHex("0302ff030302ff03"); // PUSH 0x2ff03 PUSH 0x2ff03 d = ScriptFromHex("0302ff03"); expect = CScript(); BOOST_CHECK_EQUAL(s.FindAndDelete(d), 2); BOOST_CHECK(s == expect); s = ScriptFromHex("0302ff030302ff03"); d = ScriptFromHex("02"); expect = s; // FindAndDelete matches entire opcodes BOOST_CHECK_EQUAL(s.FindAndDelete(d), 0); BOOST_CHECK(s == expect); s = ScriptFromHex("0302ff030302ff03"); d = ScriptFromHex("ff"); expect = s; BOOST_CHECK_EQUAL(s.FindAndDelete(d), 0); BOOST_CHECK(s == expect); // This is an odd edge case: strip of the push-three-bytes // prefix, leaving 02ff03 which is push-two-bytes: s = ScriptFromHex("0302ff030302ff03"); d = ScriptFromHex("03"); expect = CScript() << ParseHex("ff03") << ParseHex("ff03"); BOOST_CHECK_EQUAL(s.FindAndDelete(d), 2); BOOST_CHECK(s == expect); // Byte sequence that spans multiple opcodes: s = ScriptFromHex("02feed5169"); // PUSH(0xfeed) OP_1 OP_VERIFY d = ScriptFromHex("feed51"); expect = s; BOOST_CHECK_EQUAL(s.FindAndDelete(d), 0); // doesn't match 'inside' opcodes BOOST_CHECK(s == expect); s = ScriptFromHex("02feed5169"); // PUSH(0xfeed) OP_1 OP_VERIFY d = ScriptFromHex("02feed51"); expect = ScriptFromHex("69"); BOOST_CHECK_EQUAL(s.FindAndDelete(d), 1); BOOST_CHECK(s == expect); s = ScriptFromHex("516902feed5169"); d = ScriptFromHex("feed51"); expect = s; BOOST_CHECK_EQUAL(s.FindAndDelete(d), 0); BOOST_CHECK(s == expect); s = ScriptFromHex("516902feed5169"); d = ScriptFromHex("02feed51"); expect = ScriptFromHex("516969"); BOOST_CHECK_EQUAL(s.FindAndDelete(d), 1); BOOST_CHECK(s == expect); s = CScript() << OP_0 << OP_0 << OP_1 << OP_1; d = CScript() << OP_0 << OP_1; expect = CScript() << OP_0 << OP_1; // FindAndDelete is single-pass BOOST_CHECK_EQUAL(s.FindAndDelete(d), 1); BOOST_CHECK(s == expect); s = CScript() << OP_0 << OP_0 << OP_1 << OP_0 << OP_1 << OP_1; d = CScript() << OP_0 << OP_1; expect = CScript() << OP_0 << OP_1; // FindAndDelete is single-pass BOOST_CHECK_EQUAL(s.FindAndDelete(d), 2); BOOST_CHECK(s == expect); // Another weird edge case: // End with invalid push (not enough data)... s = ScriptFromHex("0003feed"); d = ScriptFromHex("03feed"); // ... can remove the invalid push expect = ScriptFromHex("00"); BOOST_CHECK_EQUAL(s.FindAndDelete(d), 1); BOOST_CHECK(s == expect); s = ScriptFromHex("0003feed"); d = ScriptFromHex("00"); expect = ScriptFromHex("03feed"); BOOST_CHECK_EQUAL(s.FindAndDelete(d), 1); BOOST_CHECK(s == expect); } BOOST_AUTO_TEST_CASE(script_HasValidOps) { // Exercise the HasValidOps functionality CScript script; script = ScriptFromHex("76a9141234567890abcdefa1a2a3a4a5a6a7a8a9a0aaab88ac"); // Normal script BOOST_CHECK(script.HasValidOps()); script = ScriptFromHex("76a914ff34567890abcdefa1a2a3a4a5a6a7a8a9a0aaab88ac"); BOOST_CHECK(script.HasValidOps()); script = ScriptFromHex("ff88ac"); // Script with OP_INVALIDOPCODE explicit BOOST_CHECK(!script.HasValidOps()); script = ScriptFromHex("88acc0"); // Script with undefined opcode BOOST_CHECK(!script.HasValidOps()); } BOOST_AUTO_TEST_SUITE_END()
[ "oliver.smith5@protonmail.com" ]
oliver.smith5@protonmail.com
f5bede511589d44ec0312b384067c41a466e69b5
746fc18c9e4bf3ee928d6db624750817e3b1454b
/practise/c_tracking_code/tracking_code/tracking_code/v5/5.6.cpp
438f3da5e3e2a02452263af682ed798dfc2ef442
[]
no_license
mingliang-99/c_practise
335117cacf13f3653f60547d4bf55104324a8812
d127926c2112fcf56cb4f1b8858bdaf8075894e1
refs/heads/master
2021-07-13T11:31:45.648945
2021-03-08T23:26:50
2021-03-08T23:26:50
241,883,142
0
0
null
null
null
null
UTF-8
C++
false
false
5,146
cpp
// // main.cpp // tracking_code // // Created by mingliang on 2021/2/17. // #include <iostream> #include <string> #include <vector> 题目 原文: Design an algorithm and write code to find the first common ancestor of two nodes in a binary tree. Avoid storing additional nodes in a data structure. NOTE: This is not necessarily a binary search tree. 译文: 写程序在一棵二叉树中找到两个结点的第一个共同祖先。不允许存储额外的结点。注意: 这里不特指二叉查找树。 解答 本题的关键应当是在Avoid storing additional nodes in a data structure 这句话上。我的理解是,不允许开额外的空间(比如说一个数组)来存储作为中间变量的结点。 虽然我也怀疑它是不是说不允许在结点数据结构Node中加入额外的东西, 比如说父结点的指针。Anyway,我们先从最简单的入手,再一步步加入限制条件。 如果没有任何限制条件,那我觉得最直观的思路就是把其中一个点的所有祖先(包含它自身) 都放入一个哈希表,然后再一步步查找另一个点的祖先结点, 第一个在哈希表中出现的祖先结点即为题目所求。 Node* first_ancestor(Node* n1, Node* n2){ if(n1 == NULL || n2 == NULL) return NULL; map<Node*, bool> m; while(n1){ m[n1] = true; n1 = n1->parent; } while(n2 && !m[n2]){ n2 = n2->parent; } return n2; } 这里用了一个map来存储中间变量,如果题目不允许开额外的辅助空间,那该如何做呢? 那就老老实实地一个个地试。不断地取出其中一个结点的父结点, 然后判断这个结点是否也为另一个结点的父结点。代码如下 bool father(Node* n1, Node* n2){ if(n1 == NULL) return false; else if(n1 == n2) return true; else return father(n1->lchild, n2) || father(n1->rchild, n2); } Node* first_ancestor1(Node* n1, Node* n2){ if(n1 == NULL || n2 == NULL) return NULL; while(n1){ if(father(n1, n2)) return n1; n1 = n1->parent; } return NULL; } 让我们把条件再限制地严苛一些,如果数据结构Node中不允许有指向父亲结点的指针, 那么我们又该如何处理?其实也很简单,首先根结点一定为任意两个结点的共同祖先, 从根结点不断往下找,直到找到最后一个这两结点的共同祖先,即为题目所求。代码如下 void first_ancestor2(Node* head, Node* n1, Node* n2, Node* &ans){ if(head==NULL || n1==NULL || n2==NULL) return; if(head && father(head, n1) && father(head, n2)){ ans = head; first_ancestor2(head->lchild, n1, n2, ans); first_ancestor2(head->rchild, n1, n2, ans); } } 这里用到了递归,ans最终保存的是这两个结点从根结点算起最后找到的那个祖先。 因为从根结点开始,每次找到满足要求的结点,ans都会被更新 //全部代码 #include <iostream> #include <map> #include <cstring> using namespace std; const int maxn = 100; struct Node{ int key; Node *lchild, *rchild, *parent; }; Node *p, node[maxn]; int cnt; void init(){ p = NULL; memset(node, '\0', sizeof(node)); cnt = 0; } void create_minimal_tree(Node* &head, Node *parent, int a[], int start, int end){ if(start <= end){ int mid = (start + end)>>1; node[cnt].key = a[mid]; node[cnt].parent = parent; head = &node[cnt++]; create_minimal_tree(head->lchild, head, a, start, mid-1); create_minimal_tree(head->rchild, head, a, mid+1, end); } } Node* first_ancestor(Node* n1, Node* n2){ if(n1 == NULL || n2 == NULL) return NULL; map<Node*, bool> m; while(n1){ m[n1] = true; n1 = n1->parent; } while(n2 && !m[n2]){ n2 = n2->parent; } return n2; } bool father(Node* n1, Node* n2){ if(n1 == NULL) return false; else if(n1 == n2) return true; else return father(n1->lchild, n2) || father(n1->rchild, n2); } Node* first_ancestor1(Node* n1, Node* n2){ if(n1 == NULL || n2 == NULL) return NULL; while(n1){ if(father(n1, n2)) return n1; n1 = n1->parent; } return NULL; } void first_ancestor2(Node* head, Node* n1, Node* n2, Node* &ans){ if(head==NULL || n1==NULL || n2==NULL) return; if(head && father(head, n1) && father(head, n2)){ ans = head; first_ancestor2(head->lchild, n1, n2, ans); first_ancestor2(head->rchild, n1, n2, ans); } } Node* search(Node* head, int x){ if(head == NULL) return NULL; else if(x == head->key) return head; else if(x <= head->key) search(head->lchild, x); else search(head->rchild, x); } int main(){ init(); int a[] = { 0, 1, 2, 3, 4, 5, 6 }; Node *head = NULL; create_minimal_tree(head, NULL, a, 0, 6); Node *n1 = search(head, 0); Node *n2 = search(head, 4); cout<<n1->key<<" "<<n2->key<<endl; Node *ans = first_ancestor(n1, n2); cout<<ans->key<<endl; Node *ans1 = NULL; first_ancestor2(head, n1, n2, ans1); cout<<ans1->key<<endl; return 0; }
[ "mingliang8@staff.weibo.com" ]
mingliang8@staff.weibo.com
eca21f5f60ff7da49582b4b6edbb8fe437b94d7f
ede157880ced6297f1a1552b5bab9a36eea74542
/GMorpher/GMorpherBone_3DEMICP/src/Solver_EM_ceres.cpp
ea890e5bfd006c3fe5944ea93564b733fdec5730
[]
no_license
paulchhuang/GMorpherSkl
9f298395a0d4508c22dd7d73859a3d1790ebaa62
aa15ec5d1f6f984b779aebdec89f56c83dde51ee
refs/heads/master
2021-01-01T05:55:04.811394
2017-07-30T10:04:42
2017-07-30T10:04:42
97,305,897
6
2
null
null
null
null
UTF-8
C++
false
false
4,038
cpp
/* ************************************************* * Copyright (2016) : Paul Huang * *************************************************/ #include <Solver_EM_ceres.h> #include <GraphUtils.h> #include <numeric> //#define VERBOSE Solver_EMCeres::Solver_EMCeres(bool prediction, const SklRgedPatchedCloud::PatchedCloud& PC) { m_GSolver = new GMorpher::SolverCeres(PC.RT0(), PC.joint_coords0());// , sadj, sadj_bounds, jOffsp, jOffsp_bounds); if( prediction ) m_EICP = boost::shared_ptr<IEnergyTerm_EMCeres>( new EnergyTerm_EMPredCeres(10, PC) ); /*else m_EICP = boost::shared_ptr<IEnergyTerm_EMCeres>( new EnergyTerm_EMCeres(10, PC) ); */ } Solver_EMCeres::~Solver_EMCeres() { } void Solver_EMCeres::setRefMesh(SklRgedPatchedCloud::PatchedCloud& mesh){ m_EICP->reinit(mesh); } bool countMoversCeres( const std::vector<GMorpher::rigidT>& RT_old, const std::vector<GMorpher::rigidT>& RT_new, const double meanEdge ) { double thresh = 0.005*meanEdge*meanEdge; // we can evaluate how many centers have moved int numPatches = RT_old.size(); int numMovers = 0; std::vector<int> movers(numPatches); #pragma omp parallel for for(int pi=0;pi<numPatches;++pi) { GMorpher::float3 delta = RT_new[pi].m_t - RT_old[pi].m_t; if( dot(delta,delta) > thresh ) movers[pi]++; //if( dot(delta,delta) > thresh ) numMovers++; } // we can also evaluate how many center predictions have moved ? // TODO return std::accumulate(movers.begin(),movers.end(),0); } int Solver_EMCeres::solve(const std::list<GMorpher::EPtrCeres>& regularizationTerms, bool probabilistic, int maxIter_EM, int maxIter_M, int maxSubDiv, float meanEdge, float normThresh, float EOutlier, float alphaNN, const std::vector<CC3D::float3>& obs_cloud_coords, const std::vector<CC3D::float3>& obs_cloud_normals, std::vector<GMorpher::rigidT>& RT, std::vector<CC3D::float3>& JX, float& sigma, bool verbose) { int numPatches = m_GSolver->numPatches(); float* RTf = new float[12*numPatches]; std::list<GMorpher::EPtrCeres> energies = regularizationTerms; energies.push_back(m_EICP); std::vector<GMorpher::rigidT> RT_old = RT; std::vector<CC3D::float3> JX_old = JX; double sigmaStart = sigma; // set the data m_EICP->setFrameData( obs_cloud_coords, obs_cloud_normals); m_EICP->setAlpha( alphaNN ); int numIter_EM = 0; RigidTFlatten( RT, RTf ); bool stop_flag = false; std::vector<int> isValid_patch(numPatches, 1); while ( numIter_EM++ < maxIter_EM) { // E - Step if( !probabilistic ) { m_EICP->EStep( sigmaStart, normThresh, EOutlier, RTf ); m_EICP->EStep_makeDeterministicAssignment(); // if we are using a non-probabilistic approach } else { m_EICP->EStep( sigma, normThresh, EOutlier, RTf ); } // M - Step if (verbose) std::cout << "# EM_iter.: " << numIter_EM << " "; m_GSolver->solve(maxIter_M, energies, RT, JX, verbose); // re-evaluate sigma RigidTFlatten( RT, RTf ); sigma = m_EICP->reEvaluateSigma( RTf ); // check for convergence int numMoved = countMoversCeres(RT_old, RT, meanEdge); #ifdef VERBOSE std::cout<<"sigma "<<sigma/meanEdge<<" and movers "<<numMoved<<std::endl; #endif; if( numMoved == 0 ) break; RT_old = RT; JX_old = JX; } delete[] RTf; return ((numIter_EM > maxIter_EM) ? (numIter_EM-1) : numIter_EM); }
[ "Paul Huang" ]
Paul Huang
9fad5b47dce26c8589a5a013721a68bda35889de
df3382265f52cdb74d4dc6ef176db3499a4c770f
/tesst.cpp
ab939768e679af5832e5acc56d2e4b1bffe39480
[]
no_license
tlongksa/ky2_FPT
a5dd07df52b08bf490026d4a6b652dbccbc283ad
1b71391fa521b83eb3d1792a08ce35e0d40e2c0a
refs/heads/main
2023-09-06T07:42:21.841738
2021-10-29T10:37:07
2021-10-29T10:37:07
null
0
0
null
null
null
null
UTF-8
C++
false
false
433
cpp
#include<stdio.h> #include<conio.h> int main() { int n = 3; for (int i = 0; i < n; i++){ printf(""); scanf("%d", &n); } int i; for(i=n-1; i>=0; i--) { if(a[i]==x) { return ++i; printf("%d",i); break; } } }
[ "noreply@github.com" ]
tlongksa.noreply@github.com
2b9a5661d67e823041a1edeaa9463a3de4d0dc87
5c0fcc93339330cab8408a58d26504a3154e808c
/Risk3D_Modelo/fin_del_juego.cpp
614666e816b3eb562e24707b12baf1bdefbe8131
[]
no_license
eritiro/risk3d
5d3d3b1d7510d809c34c1d69d20303c66fd31630
d8389acc79eb4f561123a09b8de1e13d7498b2c1
refs/heads/master
2021-01-10T20:54:41.709954
2015-03-06T17:37:27
2015-03-06T17:37:27
31,772,713
4
0
null
null
null
null
UTF-8
C++
false
false
751
cpp
#include "fin_del_juego.h" FinDelJuego::FinDelJuego() : EstadoDelJuego("Fin del juego"){ } void FinDelJuego::inicializar(Juego* juego){ juego->notificar_a_todos("El juego termino!"); Jugador* ganador = 0; foreach(IteradorJugadores, jugador, juego->get_jugadores()){ Objetivo* objetivo = (*jugador)->get_objetivo(); if(objetivo->fue_cumplido((*jugador)->get_imperio(), &juego->get_info())){ ganador = *jugador; } } if(ganador!=0){ juego->notificar_a_todos("El ganador es " + ganador->get_nombre_emperador() + "!!!"); foreach(IteradorJugadores, i, juego->get_jugadores()){ (*i)->recibir_mensaje(FabricaDeMensajes::crear_evento_juego_terminado(ganador->get_imperio(), ganador->get_objetivo())); } } }
[ "eritiro@gmail.com" ]
eritiro@gmail.com
99bf10f040b6906658b8553fa5e630214ff5253c
cfeac52f970e8901871bd02d9acb7de66b9fb6b4
/generated/src/aws-cpp-sdk-workspaces/include/aws/workspaces/model/DescribeAccountRequest.h
e80ee73de13531f388e886c51c66d699bb803b01
[ "Apache-2.0", "MIT", "JSON" ]
permissive
aws/aws-sdk-cpp
aff116ddf9ca2b41e45c47dba1c2b7754935c585
9a7606a6c98e13c759032c2e920c7c64a6a35264
refs/heads/main
2023-08-25T11:16:55.982089
2023-08-24T18:14:53
2023-08-24T18:14:53
35,440,404
1,681
1,133
Apache-2.0
2023-09-12T15:59:33
2015-05-11T17:57:32
null
UTF-8
C++
false
false
1,113
h
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/workspaces/WorkSpaces_EXPORTS.h> #include <aws/workspaces/WorkSpacesRequest.h> namespace Aws { namespace WorkSpaces { namespace Model { /** */ class DescribeAccountRequest : public WorkSpacesRequest { public: AWS_WORKSPACES_API DescribeAccountRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DescribeAccount"; } AWS_WORKSPACES_API Aws::String SerializePayload() const override; AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws
[ "sdavtaker@users.noreply.github.com" ]
sdavtaker@users.noreply.github.com
9b203fe82f80ee1a537e080f89b4924ff0e48b1f
1da4c6fb453aa52689f83d54a24f46467b9875d3
/codevs2.0_practice/game.h
08bf8298e15122b526a627a3961151adc5870189
[]
no_license
tek1031/CODEVS2.0
d113b98d0acde3df7fe9d89e90b7bdce1f16f527
a2b611b59fff132af8314a1b1a9e1058648ce6cc
refs/heads/master
2020-04-11T01:29:28.027108
2013-01-23T14:16:00
2013-01-23T14:16:00
7,775,241
0
1
null
null
null
null
SHIFT_JIS
C++
false
false
2,302
h
#include"state.h" #pragma once /* ゲーム全体の情報を持っておく パックの情報,今の状態 連鎖などの計算をここで行う */ class Game{ int packs[1000][4][MAX_T][MAX_T];//パックの中身 もらったら 事前に全部回転させたのも計算しちゃう int packs_enemy[1000][4][MAX_T][MAX_T]; int turn; State now_state;//現在のState State state_enemy; int my_stock_garbage,enemy_stock_garbage; void input_pack(); bool check_inside(const State &state,const int &x,const int &r)const; bool check_over(const State &state,const int h)const; void push_pack(State &state,const int &x,const int &r)const; void drop_block(State &state,int change_info[][2][MAX_W+MAX_H+MAX_T],bool is_drop[MAX_W])const;//ブロックを全て下まで落とす int erase(State &state,int change_info[][2][MAX_W+MAX_H+MAX_T],bool is_drop[MAX_W])const; int erase_vertically(State &state,bool is_erased[MAX_H][MAX_W],int change_info[2][MAX_W+MAX_H+MAX_T],int change_pos[2][MAX_H])const; int erase_horizontally(State &state,bool is_erased[MAX_H][MAX_W],int change_info[2][MAX_W+MAX_H+MAX_T],int change_pos[2][MAX_H])const; int erase_right_down(State &state,bool is_erased[MAX_H][MAX_W],int change_info[2][MAX_W+MAX_H+MAX_T],int change_pos[2][MAX_H])const; int erase_left_down(State &state,bool is_erased[MAX_H][MAX_W],int change_info[2][MAX_W+MAX_H+MAX_T],int change_pos[2][MAX_H])const; long long int calc_point(int C,int turn,int E)const; int calc_garbage_block_point(const int &C,const int &E)const{ return C*(int)(log((double)E)/(log((double)2))); } bool is_attacked();//攻撃されたらtrueが返る public: const int H,W,N,T,S,P; void output(const State &state); void output(int x,int r); bool input_pack_changed(); int update_enemy_state(); void input_stock_garbage(); bool is_fatal_attacked();//やばい攻撃 State get_state()const{return now_state;} Game(int W,int H,int T,int S,int N,int P):N(N),H(H),W(W),T(T),S(S),P(P),turn(0){ input_pack(); now_state=State(); } void get_pack(const int &idx,const int &rotation,int res[][MAX_T])const{ memcpy(res,packs[idx][rotation],sizeof(packs[idx][rotation])); } pair<int,long long int> update(State &state,const int x,const int r,const int h)const; int get_turn()const{return turn;} };
[ "komatsutomoki1031@gmail.com" ]
komatsutomoki1031@gmail.com
7fa9c0f566e0acd208052ca314e2bdfd10e47d42
a5d7ef542268d9c76ddafcfd97fb494bff30ad61
/tMedia.h
bf0873c4df740735635b2dae30562de04cdb7fb2
[]
no_license
YannickR26/TV-Controller
d357762dcfe8b62f8e24aeaac5109f74a5f224e4
f63338b2256e59a40e930f3826ce04bafae5cf72
refs/heads/master
2020-05-02T16:25:28.670739
2019-03-27T20:13:41
2019-03-27T20:13:41
178,067,821
0
0
null
null
null
null
UTF-8
C++
false
false
4,810
h
#ifndef TMEDIA_H #define TMEDIA_H #include <stdio.h> #include <QTime> #include <qcolor.h> #include <QString> #include <QDomElement> #include <QDomDocument> class tMedia { public: tMedia() : fadeIn(0), fadeOut(0), repeat(0), login(""), password(""), time(), isModify(false) {} tMedia(QString _name) : name(_name), fadeIn(0), fadeOut(0), repeat(0), login(""), password(""), time(), isModify(false) {} tMedia(QString _name, QColor _color) : name(_name), fadeIn(0), fadeOut(0), repeat(0), login(""), password(""), color(_color), time(0,0,0,0), isModify(false) {} tMedia(QString _name, QString _url, QString _type, bool _fadeIn, bool _fadeOut, bool _repeat, QColor _color, QTime _time) : name(_name), url(_url), type(_type), fadeIn(_fadeIn), fadeOut(_fadeOut), repeat(_repeat), login(""), password(""), color(_color), time(_time), isModify(false) {} tMedia(QDomElement &node) { this->fromXml(node); this->isModify = false; } /** Set Attribut */ void setName(QString _name) { this->name = _name; this->isModify = true; } void setUrl(QString _url) { this->url = _url; this->isModify = true; } void setType(QString _type) { this->type = _type; this->isModify = true; } void setFadeIn(bool _fadeIn) { this->fadeIn = _fadeIn; this->isModify = true; } void setFadeOut(bool _fadeOut) { this->fadeOut = _fadeOut; this->isModify = true; } void setRepeat(bool _repeat) { this->repeat = _repeat; this->isModify = true; } void setLogin(QString _login) { this->login = _login; this->isModify = true; } void setPassword(QString _password) { this->password = _password; this->isModify = true; } void setColor(QColor _color) { this->color = _color; this->isModify = true; } void setTime(QTime _time) { this->time = _time; this->isModify = true; } /** Get Attribut */ QString getName() { return this->name; } QString getUrl() { return this->url; } QString getType() { return this->type; } bool getFadeIn() { return this->fadeIn; } bool getFadeOut() { return this->fadeOut; } bool getRepeat() { return this->repeat; } QString getLogin() { return this->login; } QString getPassword() { return this->password;} QColor getColor() { return this->color; } QTime getTime() { return this->time; } /** Convert Data to Xml */ void toXml(QDomDocument &parent, QDomElement &child) { QDomElement newChild = parent.createElement("Media"); newChild.setAttribute("name", this->name); newChild.setAttribute("url", this->url); newChild.setAttribute("type", this->type); newChild.setAttribute("fadeIn", this->fadeIn); newChild.setAttribute("fadeOut", this->fadeOut); newChild.setAttribute("repeat", this->repeat); newChild.setAttribute("login", this->login); newChild.setAttribute("password", this->password); newChild.setAttribute("color", this->color.name()); newChild.setAttribute("time", this->time.toString()); child.appendChild(newChild); } /** Convert Xml to Data */ void fromXml(QDomElement &node) { if (node.tagName() == "Media") { this->name = node.attribute("name"); this->url = node.attribute("url"); this->type = node.attribute("type"); this->fadeIn = (node.attribute("fadeIn") == "0" ? false : true); this->fadeOut = (node.attribute("fadeOut") == "0" ? false : true); this->repeat = (node.attribute("repeat") == "0" ? false : true); this->login = node.attribute("login"); this->password = node.attribute("password"); this->color = QColor(node.attribute("color")); this->time = QTime::fromString(node.attribute("time")); } } bool maybeSave() { return isModify; } void saveDone() { isModify = false; } /** Debug */ QString toString() { QString res; res = "tMedia => \t name: " + name + ",\n"; res += "\t\t url: " + url + ",\n"; res += "\t\t type: " + type + ",\n"; res += QString("\t\t fadeIn: %1,\n").arg(fadeIn); res += QString("\t\t fadeOut: %1,\n").arg(fadeOut); res += QString("\t\t repeat: %1,\n").arg(repeat); res += "\t\t login: " + login + ",\n"; res += "\t\t password: " + password + "\n"; return res; } virtual ~tMedia() {} protected: private: QString name; QString url; QString type; bool fadeIn, fadeOut, repeat; QString login, password; QColor color; QTime time; bool isModify; }; #endif // TMEDIA_H
[ "yannick.richardot@carbonbee.fr" ]
yannick.richardot@carbonbee.fr
883f5c7b6b3deda8edc57666168932aa06d14f2e
61a0cd01881b40d2571ed48c4b19ba54b003c60c
/SpatialGDK/Source/SpatialGDKEditor/Private/SpatialGDKLogParser.cpp
1b45f045f6182eeed605e0abaa9ef3a462410513
[ "MIT", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-proprietary-license" ]
permissive
jrgryph/UnrealGDK
019cd2fd5ee64b27492737bed7a5dc28afed7734
b98ac217032fac41b0027ce289cb8e21b9ca80d9
refs/heads/release
2023-02-04T02:47:34.299681
2023-01-27T19:28:05
2023-01-27T19:28:05
221,992,044
0
0
MIT
2020-02-27T14:10:08
2019-11-15T19:44:39
null
UTF-8
C++
false
false
5,881
cpp
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved #include "SpatialGDKLogParser.h" #include "Algo/AllOf.h" #include "Dialogs/CustomDialog.h" #include "Editor.h" #include "Internationalization/Regex.h" #include "Logging/MessageLog.h" #include "MessageLogModule.h" #include "Modules/ModuleManager.h" #include "Widgets/Input/SHyperlink.h" #define LOCTEXT_NAMESPACE "SpatialGDKLogParser" const TCHAR MessageLogCategoryName[] = TEXT("MissingSchemaMessageLog"); static void ShowMissingSchemaDialog(const TSet<FString>& MissingSchemaPaths) { struct Local { static void OnHyperlinkClicked(const FString& InBlueprint, TSharedPtr<SCustomDialog> InDialog) { const FSoftObjectPath ObjectAtPath(InBlueprint); UObject* ObjectToOpen = ObjectAtPath.ResolveObject(); if (!IsValid((ObjectToOpen))) { // The object could be unloaded; try and load it from the path. ObjectToOpen = ObjectAtPath.TryLoad(); } if (IsValid(ObjectToOpen)) { if (ObjectToOpen->IsA<UBlueprintGeneratedClass>()) { // BlueprintGeneratedClass can't be edited, but ClassGeneratedBy references // the UBlueprint that has caused the class to be generated - open it instead. ObjectToOpen = Cast<UBlueprintGeneratedClass>(ObjectToOpen)->ClassGeneratedBy; } } if (IsValid(ObjectToOpen)) { // Finally, if the object is available - ask the editor to edit it. GEditor->EditObject(ObjectToOpen); } if (InDialog.IsValid()) { // Opening the blueprint editor above may end up creating an invisible new window on top of the dialog, // thus making it not interactable, so we have to force the dialog back to the front InDialog->BringToFront(true); } } }; const FText MissingSchemaLabel = LOCTEXT("MissingSchemaLabel", "The following objects have missing schema, check the logs for more information."); TSharedRef<SVerticalBox> DialogContents = SNew(SVerticalBox) + SVerticalBox::Slot().Padding(0, 0, 0, 16)[SNew(STextBlock).Text(MissingSchemaLabel)]; TSharedPtr<SCustomDialog> CustomDialog; FMessageLog MissingSchemaLog(MessageLogCategoryName); MissingSchemaLog.NewPage(MissingSchemaLabel); const FText LogMessage = LOCTEXT("MissingSchemaLogMessage", "Object doesn't have schema generated for it."); for (const FString& MissingSchemaPath : MissingSchemaPaths) { const FText MissingSchemaPathText = FText::FromString(MissingSchemaPath); DialogContents->AddSlot().AutoHeight().HAlign( HAlign_Left)[SNew(SHyperlink) .OnNavigate(FSimpleDelegate::CreateLambda([MissingSchemaPath, &CustomDialog]() { Local::OnHyperlinkClicked(MissingSchemaPath, CustomDialog); })) .Text(MissingSchemaPathText) .ToolTipText(LOCTEXT("MissingSchemaDialogLinkTT", "Click to open the object"))]; MissingSchemaLog.Error(LogMessage)->AddToken(FAssetNameToken::Create(MissingSchemaPath)); } MissingSchemaLog.Open(); const FText DialogTitle = LOCTEXT("MissingSchemaDialogTitle", "Missing Schema"); const FText OKText = LOCTEXT("MissingSchemaDialogOk", "OK"); CustomDialog = SNew(SCustomDialog).Title(DialogTitle).DialogContent(DialogContents).Buttons({ SCustomDialog::FButton(OKText) }); CustomDialog->ShowModal(); } class FMissingSchemaLogParser : public FOutputDevice { public: ~FMissingSchemaLogParser() { if (bShouldReportErrors && Paths.Num() > 0) { ShowMissingSchemaDialog(Paths); } } virtual void Serialize(const TCHAR* LogMessage, ELogVerbosity::Type Verbosity, const FName& Category) override { static const FName SpatialClassInfoManagerLogCategoryName(TEXT("LogSpatialClassInfoManager")); if (Category == SpatialClassInfoManagerLogCategoryName && Verbosity <= ELogVerbosity::Warning) { const FString Message(LogMessage); const static TSet<FString> Keywords{ TEXT("no"), TEXT("schema") }; const bool bMatchesKeywords = Algo::AllOf(Keywords, [&Message](const FString& Keyword) { return Message.Contains(Keyword); }); if (bMatchesKeywords) { // Alphanumeric, dot and underscore seem to cover UE class paths: // /Game/Directory/AnotherDirectory_4/Asset.Asset_C static const FRegexPattern ClassPathPattern(TEXT("(/[\\w\\d/\\._]+_C)")); FRegexMatcher ClassPathMatcher(ClassPathPattern, Message); if (ClassPathMatcher.FindNext()) { // Use 1 to extract the first match. Class path is the part of the log that we're looking for. const FString ClassName = ClassPathMatcher.GetCaptureGroup(1); Paths.Add(ClassName); } } } } TSet<FString> Paths; bool bShouldReportErrors = true; }; FSpatialGDKLogParser::FSpatialGDKLogParser() { FMessageLogModule& MessageLogModule = FModuleManager::LoadModuleChecked<FMessageLogModule>("MessageLog"); MessageLogModule.RegisterLogListing(MessageLogCategoryName, LOCTEXT("MissingSchemaMessageLogLabel", "Missing Schema")); PreBeginPIEDelegateHandle = FEditorDelegates::PreBeginPIE.AddLambda([this](bool) { ensure(!MissingSchemaErrorParser.IsValid()); MissingSchemaErrorParser = MakeShared<FMissingSchemaLogParser>(); FOutputDeviceRedirector::Get()->AddOutputDevice(MissingSchemaErrorParser.Get()); }); EndPIEDelegateHandle = FEditorDelegates::EndPIE.AddLambda([this](bool) { ensure(MissingSchemaErrorParser.IsValid()); FOutputDeviceRedirector::Get()->RemoveOutputDevice(MissingSchemaErrorParser.Get()); MissingSchemaErrorParser.Reset(); }); } FSpatialGDKLogParser::~FSpatialGDKLogParser() { if (PreBeginPIEDelegateHandle.IsValid()) { FEditorDelegates::PreBeginPIE.Remove(PreBeginPIEDelegateHandle); PreBeginPIEDelegateHandle.Reset(); } if (EndPIEDelegateHandle.IsValid()) { FEditorDelegates::EndPIE.Remove(EndPIEDelegateHandle); EndPIEDelegateHandle.Reset(); } if (MissingSchemaErrorParser.IsValid()) { MissingSchemaErrorParser->bShouldReportErrors = false; } } #undef LOCTEXT_NAMESPACE
[ "noreply@github.com" ]
jrgryph.noreply@github.com
1255fc673e4116d022393be60a2b51eaf16ca430
24f26275ffcd9324998d7570ea9fda82578eeb9e
/ui/views/test/test_desktop_screen_x11.h
ea16fe752e2d528be58492aec43bc17977de066c
[ "BSD-3-Clause" ]
permissive
Vizionnation/chromenohistory
70a51193c8538d7b995000a1b2a654e70603040f
146feeb85985a6835f4b8826ad67be9195455402
refs/heads/master
2022-12-15T07:02:54.461083
2019-10-25T15:07:06
2019-10-25T15:07:06
217,557,501
2
1
BSD-3-Clause
2022-11-19T06:53:07
2019-10-25T14:58:54
null
UTF-8
C++
false
false
1,380
h
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_VIEWS_TEST_TEST_DESKTOP_SCREEN_X11_H_ #define UI_VIEWS_TEST_TEST_DESKTOP_SCREEN_X11_H_ #include "ui/gfx/geometry/point.h" #include "ui/views/widget/desktop_aura/desktop_screen_x11.h" namespace base { template<typename T> struct DefaultSingletonTraits; } namespace views { namespace test { // Replaces the screen instance in Linux (non-ChromeOS) tests. Allows // aura tests to manually set the cursor screen point to be reported // by GetCursorScreenPoint(). Needed because of a limitation in the // X11 protocol that restricts us from warping the pointer with the // mouse button held down. class TestDesktopScreenX11 : public DesktopScreenX11 { public: static TestDesktopScreenX11* GetInstance(); // DesktopScreenX11: gfx::Point GetCursorScreenPoint() override; void set_cursor_screen_point(const gfx::Point& point) { cursor_screen_point_ = point; } private: friend struct base::DefaultSingletonTraits<TestDesktopScreenX11>; TestDesktopScreenX11(); ~TestDesktopScreenX11() override; gfx::Point cursor_screen_point_; DISALLOW_COPY_AND_ASSIGN(TestDesktopScreenX11); }; } // namespace test } // namespace views #endif // UI_VIEWS_TEST_TEST_DESKTOP_SCREEN_X11_H_
[ "rjkroege@chromium.org" ]
rjkroege@chromium.org
f25d0eb375b01e6417d102b4e14cebf1efb79b26
870879c2878767d685e616e565bd134f61f7b4b6
/src/CudaDriver.cpp
1b4636404d5cfcd72a7f319a112f9e6b3aae170c
[ "MIT" ]
permissive
satishphd/mpigis-lb
373f4e5599607efb3abba11064b6d1d2ecbcbeca
06dcd5da27d3e0dacc001e8d012d1f73154cdd37
refs/heads/master
2021-11-11T18:15:09.940398
2021-10-30T02:03:40
2021-10-30T02:03:40
222,028,414
6
1
null
null
null
null
UTF-8
C++
false
false
5,902
cpp
#include <string> #include <list> #include "filePartition/FilePartitioner.h" #include "filePartition/MPI_File_Partitioner.h" #include "filePartition/FileSplits.h" #include "parser/Parser.h" #include "parser/WKTParser.h" #include "filePartition/config.h" #include <geos/geom/Geometry.h> #include "spatialPartition/grid.h" #include "spatialPartition/uniformGrid.h" #include "index/index.h" #include "join/join.h" #include "overlay/overlay.h" #include <fstream> #include <iostream> #include <cstdlib> #include "mpiTypes/mpitype.h" #include "geom_util/util.h" #include "parser/road_network_parser.h" #include "spatialPartition/uniformGrid.h" #include "spatialPartition/RtreeStructure.h" #include "taskMap/TaskMap.h" #include "taskMap/roundRobinTaskMap.h" #include "bufferManager/bufferManagerGeoms.h" #include "mapreduce/mrdriver.h" #include "bufferManager/bufferRoadnetwork.h" #include <fstream> #include <unistd.h> #include "cuda/CudaJoinInterface.h" //#define DBUG2 2 //#define DBUG1 1 using namespace std; /* mpirun -np 2 ./mpiio 2 ../datasets/parks5k 1st arg is number of partitions 2nd arg is 1st file 3rd arg is 2nd file */ int main2(int argc, char **argv) { Config args(argc, argv); args.initMPI(argc, argv); char hostname[256]; gethostname(hostname,255); cout<<hostname<<endl; //cout<<""<<args.getLayer1()->at(2)<<endl; //cout<<""<<args.getLayer2()->at(2)<<endl; return 0; } int main(int argc, char **argv) { Config args(argc, argv); args.initMPI(argc, argv); double t1, t2; t1 = MPI_Wtime(); char hostname[256]; gethostname(hostname,255); #ifdef DBUG2 string fileStr = "debug_logs/" + args.log_file + to_string(args.rank); char *filename = (char *)fileStr.c_str(); std::ofstream ofs; ofs.open (filename, std::ofstream::out | std::ofstream::app); #endif FilePartitioner *partitioner = new MPI_File_Partitioner(); partitioner->initialize(args); //cout<<"init done"<<endl; pair<FileSplits*, FileSplits*> splitPair = partitioner->partition(); //cerr<<"P"<<args->rank<<" lines, "<<splitPair.first->numLines()<<endl; //long numLines = splitPair.second->numLines(); long numLines = splitPair.first->numLines(); long totalLines = 0; #ifdef DBUG1 //MPI_Reduce(void* send_data, void* recv_data, int count, MPI_Datatype datatype, MPI_Op op, int root, MPI_Comm communicator) MPI_Reduce(&numLines, &totalLines, 1, MPI_LONG, MPI_SUM, 0, MPI_COMM_WORLD); if(args.rank == 0) cerr<<"total number of lines "<<totalLines<<endl; #endif //Parser *parser = new RoadNetworkParser(); Parser *parser = new WKTParser(); list<Geometry*> *layer1Geoms = parser->parse(*splitPair.first); cerr<<"P"<<args.rank<<" "<<hostname<<", geoms 1, "<<layer1Geoms->size()<<endl; list<Geometry*> *layer2Geoms = parser->parse(*splitPair.second); cerr<<"P"<<args.rank<<" "<<hostname<<", geoms 2, "<<layer2Geoms->size()<<endl; #ifdef DBUG1 long numGeoms = layer2Geoms->size(); long totalGeoms = 0; MPI_Reduce(&numGeoms, &totalGeoms, 1, MPI_LONG, MPI_SUM, 0, MPI_COMM_WORLD); if(args.rank == 0) cerr<<"total number of Geoms layer 2 "<<totalGeoms<<endl; #endif Envelope mbr = GeometryUtility :: getMBR( layer1Geoms ); #ifdef DBUG2 //cerr<<args.rank<<", "<<mbr.toString(); //cerr<<args.rank<<", "<<mbr.getMinX()<<" - "<<mbr.getMaxX()<<" , "<<mbr.getMinY()<<" - "<<mbr.getMaxY(); //printf("%d, (%f %f), (%f %f) \n",args.rank, mbr.getMinX(), mbr.getMinY(), mbr.getMaxX(), mbr.getMaxY()); //fflush(stdout); ofs <<"Rank " <<args.rank <<": local Envelope minX " << mbr.getMinX() <<" minY "<<mbr.getMinY()<<" maxX "<< mbr.getMaxX()<<" maxY "<< mbr.getMaxY()<<"\n"; #endif SpatialTypes types; Envelope universe = types.reduceByUnion(&mbr); // cout<<"*****************************"<<endl; if(args.rank == 0) printf("Universe: %d, (%f %f), (%f %f) \n",0, universe.getMinX(), universe.getMinY(), universe.getMaxX() , universe.getMaxY()); Grid *uniGrid = new UniformGrid(args.numPartitions, &universe); // if(args.rank == 0) { // cout<<"Number of cells in the grid "<<uniGrid->size()<<endl; // // uniGrid->printGridCoordinates(); // } uniGrid->populateGridCells(layer1Geoms, true); cout<<"PopulateGridCells layer A "<<args.rank<<endl; uniGrid->populateGridCells(layer2Geoms, false); cout<<"PopulateGridCells layer B "<<args.rank<<endl; if(args.rank == 0) { //list<string> logs = uniGrid->localGridStatistics(); } splitPair.first->clear(); delete splitPair.first; splitPair.second->clear(); delete splitPair.second; MappingStrategy *strategy = new RoundRobinStrategy(args.numPartitions, args.numProcesses); map<int, Envelope*> *grid = uniGrid->getGridCellsMap(); strategy->createCellProcessMap(grid); // if(args.rank == 0) { // strategy->printStrategy(); // } //map<int, vector<int>* > *mapping = strategy->getProcessToCellsMap(); BufferManagerForGeoms geomsBuffMgr(strategy, uniGrid, &args); pair<map<int, list<Geometry*>* > *, map<int, list<Geometry*>* > * >*geomMapPair = geomsBuffMgr.shuffleExchangeGrpByCell(); cerr<<"Shuffle-Exchange"<<endl; CudaJoinInterface cudaInterface; cudaInterface.createReducers(&args, geomMapPair); t2 = MPI_Wtime(); cout<<hostname<<":"<<args.rank<<", Time, "<<(t2-t1)<<endl; MPI_Finalize(); return 0; }
[ "satishpuri.dgp@gmail.com" ]
satishpuri.dgp@gmail.com
ba3063886d4f69020cafa2e0bc5ffd15d51ea95b
e5a694673d2fb4272569acbb0d207d15a9a539e5
/src/ch03/printer.cpp
092b9cb58a59354bc025d263a055dbe566234b5b
[ "MIT" ]
permissive
zhuangbo/ds-cpp
c0e2f4a6d42048fb65d4aef44bd338e2076d6170
bac398636979458802a7fb8d433462e88dc2ed15
refs/heads/master
2021-01-19T16:42:58.544038
2017-10-28T16:19:42
2017-10-28T16:19:42
101,020,871
1
0
null
null
null
null
UTF-8
C++
false
false
865
cpp
/////////////////////////////////////// /// file: printer.cpp /// 操作系统打印排队模拟 /////////////////////////////////////// #include <iostream> #include "sqqueue.h" using namespace std; /// 打印作业 struct Task { int id; int pages; }; /// 打印 void Print(const Task &job) { cout << "#" << job.id << "(" << job.pages << ")"; for (int i = 0; i < job.pages; i++) cout << "../"; cout << endl; } /// /// 模拟打印队列 /// int main() { // 初始化打印队列 SqQueue<Task, 10> Q; InitQueue(Q); // 多个打印任务进入队列 EnQueue(Q, Task{1, 5}); EnQueue(Q, Task{2, 3}); EnQueue(Q, Task{3, 8}); EnQueue(Q, Task{4, 2}); EnQueue(Q, Task{5, 4}); // 开始打印 while (!QueueEmpty(Q)) { auto job = DeQueue(Q); Print(job); } return 0; }
[ "sdzhuangbo@126.com" ]
sdzhuangbo@126.com
fa86892186c0587d6e094ef2d199dd72f08b5cb1
5f19592d3e0cdc0c8732b5a4871deb5003f9f4a8
/src/node/communication/mac/mac802154a/fuzzyIS/TakagiSugenoRule.cc
0673a8faf210bee46e2f7b6da90f140dba824f05
[]
no_license
SamanShafigh/fuzzy-mac802154
2f62883e11c5309c2c57abfb4e3b70c3f01f7c04
36b48b3193349de77c32d77a41fc597d745a1a16
refs/heads/master
2021-01-12T16:51:54.644601
2018-02-19T01:24:24
2018-02-19T01:24:24
71,454,504
5
0
null
null
null
null
UTF-8
C++
false
false
2,075
cc
/* Copyright 2010 Juan Rada-Vilela Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #include "TakagiSugenoRule.h" #include "TakagiSugenoConsequent.h" #include "DescriptiveAntecedent.h" #include "StrOp.h" TakagiSugenoRule::TakagiSugenoRule() : FuzzyRule() { } TakagiSugenoRule::TakagiSugenoRule(const std::string& rule, const FuzzyEngine& engine) : FuzzyRule() { try { parse(rule, engine); } catch (ParsingException& e) { FL_LOG(e.toString()); } } TakagiSugenoRule::~TakagiSugenoRule() { } void TakagiSugenoRule::parse(const std::string& rule, const FuzzyEngine& engine) { std::string str_antecedent, str_consequent; ExtractFromRule(rule, str_antecedent, str_consequent); DescriptiveAntecedent* obj_antecedent = new DescriptiveAntecedent; obj_antecedent->parse(str_antecedent, engine); setAntecedent(obj_antecedent); std::vector<std::string> consequents = StrOp::SplitByWord(str_consequent, FuzzyRule::FR_AND); TakagiSugenoConsequent* obj_consequent = NULL; for (size_t i = 0; i < consequents.size(); ++i) { obj_consequent = new TakagiSugenoConsequent; try { std::string x = consequents[i]; StrOp::FindReplace(x,"="," = "); obj_consequent->parse(x, engine); } catch (ParsingException& e) { delete obj_consequent; throw e; } addConsequent(obj_consequent); } }
[ "samanshafigh@gmail.com" ]
samanshafigh@gmail.com
e717fdf4a23bbf49e460b36abe18a9f78fb6c5c5
dba71de476fcacc100bae64ed0d0a85561f99baf
/branches/2.0/doubango/plugins/pluginDirectShow/plugin_video_dshow_consumer.cxx
1fe2d2cbe9a06c48a4098fcb60ffdad97f5c0381
[]
no_license
svn2github/doubango
4053dd07245277234a8fb82070e17bba392f19ad
fc958eca8a4285145713315f03bd552dac569a21
refs/heads/master
2023-09-03T09:17:34.081239
2015-08-20T16:02:32
2015-08-20T16:02:32
28,213,396
2
0
null
null
null
null
UTF-8
C++
false
false
36,147
cxx
/* Copyright (C) 2011-2013 Doubango Telecom <http://www.doubango.org> * * This file is part of Open Source Doubango Framework. * * DOUBANGO is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * DOUBANGO is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with DOUBANGO. */ #include "internals/DSDisplay.h" #include "internals/DSUtils.h" #include "tinymedia/tmedia_consumer.h" #include "tsk_safeobj.h" #include "tsk_string.h" #include "tsk_debug.h" #define DSCONSUMER(self) ((plugin_video_dshow_consumer_t*)(self)) // Whether to use Direct3D device for direct rendering or DirectShow graph and custom source // Using DirectShow (DS) introduce delay when the input fps is different than the one in the custom src. // It's very hard to have someting accurate when using DS because the input FPS change depending on the congestion control. D3D is the best choice as frames are displayed as they arrive #if !defined(PLUGIN_DS_CV_USE_D3D9) && !defined(_WIN32_WCE) # define PLUGIN_DS_CV_USE_D3D9 1 #endif /******* ********/ #if PLUGIN_DS_CV_USE_D3D9 #include <d3d9.h> #include <dxva2api.h> #ifdef _MSC_VER #pragma comment(lib, "d3d9") #endif const DWORD NUM_BACK_BUFFERS = 2; #undef SafeRelease #define SafeRelease(ppT) \ { \ if (*ppT) \ { \ (*ppT)->Release(); \ *ppT = NULL; \ } \ } #undef CHECK_HR // In CHECK_HR(x) When (x) is a function it will be executed twice when used in "TSK_DEBUG_ERROR(x)" and "If(x)" #define CHECK_HR(x) { HRESULT __hr__ = (x); if (FAILED(__hr__)) { TSK_DEBUG_ERROR("Operation Failed (%08x)", __hr__); goto bail; } } typedef struct _DSRatio { DWORD Numerator; DWORD Denominator; } DSRatio; static HRESULT CreateDeviceD3D9( HWND hWnd, IDirect3DDevice9** ppDevice, IDirect3D9 **ppD3D, D3DPRESENT_PARAMETERS &d3dpp ); static HRESULT TestCooperativeLevel( struct plugin_video_dshow_consumer_s *pSelf ); static HRESULT CreateSwapChain( HWND hWnd, UINT32 nFrameWidth, UINT32 nFrameHeight, IDirect3DDevice9* pDevice, IDirect3DSwapChain9 **ppSwapChain); static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); static inline HWND Window(struct plugin_video_dshow_consumer_s *pSelf); static inline LONG Width(const RECT& r); static inline LONG Height(const RECT& r); static inline RECT CorrectAspectRatio(const RECT& src, const DSRatio& srcPAR); static inline RECT LetterBoxRect(const RECT& rcSrc, const RECT& rcDst); static inline HRESULT UpdateDestinationRect(struct plugin_video_dshow_consumer_s *pSelf, BOOL bForce = FALSE); static HRESULT ResetDevice(struct plugin_video_dshow_consumer_s *pSelf, BOOL bUpdateDestinationRect = FALSE); static HRESULT SetFullscreen(struct plugin_video_dshow_consumer_s *pSelf, BOOL bFullScreen); static HWND CreateFullScreenWindow(struct plugin_video_dshow_consumer_s *pSelf); static HRESULT HookWindow(struct plugin_video_dshow_consumer_s *pSelf, HWND hWnd); static HRESULT UnhookWindow(struct plugin_video_dshow_consumer_s *pSelf); typedef struct plugin_video_dshow_consumer_s { TMEDIA_DECLARE_CONSUMER; BOOL bStarted, bPrepared, bPaused, bFullScreen, bWindowHooked; BOOL bPluginFireFox, bPluginWebRTC4All; HWND hWindow; WNDPROC wndProc; HWND hWindowFullScreen; RECT rcWindow; RECT rcDest; DSRatio pixelAR; UINT32 nNegWidth; UINT32 nNegHeight; UINT32 nNegFps; D3DLOCKED_RECT rcLock; IDirect3DDevice9* pDevice; IDirect3D9 *pD3D; IDirect3DSwapChain9 *pSwapChain; D3DPRESENT_PARAMETERS d3dpp; TSK_DECLARE_SAFEOBJ; } plugin_video_dshow_consumer_t; static int _plugin_video_dshow_consumer_unprepare(plugin_video_dshow_consumer_t* pSelf); /* ============ Media Consumer Interface ================= */ static int plugin_video_dshow_consumer_set(tmedia_consumer_t *self, const tmedia_param_t* param) { int ret = 0; HRESULT hr = S_OK; plugin_video_dshow_consumer_t* pSelf = (plugin_video_dshow_consumer_t*)self; if(!self || !param) { TSK_DEBUG_ERROR("Invalid parameter"); CHECK_HR(hr = E_POINTER); } if(param->value_type == tmedia_pvt_int64) { if(tsk_striequals(param->key, "remote-hwnd")) { HWND hWnd = reinterpret_cast<HWND>((INT64)*((int64_t*)param->value)); if(hWnd != pSelf->hWindow) { tsk_safeobj_lock(pSelf); // block consumer thread pSelf->hWindow = hWnd; if(pSelf->bPrepared) { hr = ResetDevice(pSelf); } tsk_safeobj_unlock(pSelf); // unblock consumer thread } } } else if(param->value_type == tmedia_pvt_int32) { if(tsk_striequals(param->key, "fullscreen")) { BOOL bFullScreen = !!*((int32_t*)param->value); TSK_DEBUG_INFO("[MF video consumer] Full Screen = %d", bFullScreen); CHECK_HR(hr = SetFullscreen(pSelf, bFullScreen)); } else if(tsk_striequals(param->key, "create-on-current-thead")) { // DSCONSUMER(self)->create_on_ui_thread = *((int32_t*)param->value) ? tsk_false : tsk_true; } else if(tsk_striequals(param->key, "plugin-firefox")) { pSelf->bPluginFireFox = (*((int32_t*)param->value) != 0); } else if(tsk_striequals(param->key, "plugin-webrtc4all")) { pSelf->bPluginWebRTC4All = (*((int32_t*)param->value) != 0); } } CHECK_HR(hr); bail: return SUCCEEDED(hr) ? 0 : -1; } static int plugin_video_dshow_consumer_prepare(tmedia_consumer_t* self, const tmedia_codec_t* codec) { plugin_video_dshow_consumer_t* pSelf = (plugin_video_dshow_consumer_t*)self; if(!pSelf || !codec && codec->plugin){ TSK_DEBUG_ERROR("Invalid parameter"); return -1; } if(pSelf->bPrepared){ TSK_DEBUG_WARN("D3D9 video consumer already prepared"); return -1; } HRESULT hr = S_OK; HWND hWnd = Window(pSelf); TMEDIA_CONSUMER(pSelf)->video.fps = TMEDIA_CODEC_VIDEO(codec)->in.fps; TMEDIA_CONSUMER(pSelf)->video.in.width = TMEDIA_CODEC_VIDEO(codec)->in.width; TMEDIA_CONSUMER(pSelf)->video.in.height = TMEDIA_CODEC_VIDEO(codec)->in.height; if(!TMEDIA_CONSUMER(pSelf)->video.display.width){ TMEDIA_CONSUMER(pSelf)->video.display.width = TMEDIA_CONSUMER(pSelf)->video.in.width; } if(!TMEDIA_CONSUMER(pSelf)->video.display.height){ TMEDIA_CONSUMER(pSelf)->video.display.height = TMEDIA_CONSUMER(pSelf)->video.in.height; } pSelf->nNegFps = (UINT32)TMEDIA_CONSUMER(pSelf)->video.fps; pSelf->nNegWidth = (UINT32)TMEDIA_CONSUMER(pSelf)->video.display.width; pSelf->nNegHeight = (UINT32)TMEDIA_CONSUMER(pSelf)->video.display.height; TSK_DEBUG_INFO("D3D9 video consumer: fps=%d, width=%d, height=%d", pSelf->nNegFps, pSelf->nNegWidth, pSelf->nNegHeight); TMEDIA_CONSUMER(pSelf)->video.display.chroma = tmedia_chroma_rgb32; TMEDIA_CONSUMER(pSelf)->decoder.codec_id = tmedia_codec_id_none; // means accept RAW fames // The window handle is not created until the call is connect (incoming only) - At least on Internet Explorer 10 if(hWnd && !pSelf->bPluginWebRTC4All) { CHECK_HR(hr = CreateDeviceD3D9(hWnd, &pSelf->pDevice, &pSelf->pD3D, pSelf->d3dpp)); CHECK_HR(hr = CreateSwapChain(hWnd, pSelf->nNegWidth, pSelf->nNegHeight, pSelf->pDevice, &pSelf->pSwapChain)); } else { if(hWnd && pSelf->bPluginWebRTC4All) { TSK_DEBUG_INFO("[MF consumer] HWND is defined but we detected webrtc4all...delaying D3D9 device creating until session get connected"); } else { TSK_DEBUG_WARN("Delaying D3D9 device creation because HWND is not defined yet"); } } bail: pSelf->bPrepared = SUCCEEDED(hr); return pSelf->bPrepared ? 0 : -1; } static int plugin_video_dshow_consumer_start(tmedia_consumer_t* self) { plugin_video_dshow_consumer_t* pSelf = (plugin_video_dshow_consumer_t*)self; if(!pSelf){ TSK_DEBUG_ERROR("Invalid parameter"); return -1; } if(pSelf->bStarted){ TSK_DEBUG_INFO("D3D9 video consumer already started"); return 0; } if(!pSelf->bPrepared){ TSK_DEBUG_ERROR("D3D9 video consumer not prepared"); return -1; } HRESULT hr = S_OK; pSelf->bPaused = false; pSelf->bStarted = true; return SUCCEEDED(hr) ? 0 : -1; } static int plugin_video_dshow_consumer_consume(tmedia_consumer_t* self, const void* buffer, tsk_size_t size, const tsk_object_t* proto_hdr) { plugin_video_dshow_consumer_t* pSelf = (plugin_video_dshow_consumer_t*)self; HRESULT hr = S_OK; HWND hWnd = Window(pSelf); IDirect3DSurface9 *pSurf = NULL; IDirect3DSurface9 *pBB = NULL; if(!pSelf) { TSK_DEBUG_ERROR("Invalid parameter"); return -1; // because of the mutex lock do it here } tsk_safeobj_lock(pSelf); if(!buffer || !size) { TSK_DEBUG_ERROR("Invalid parameter"); CHECK_HR(hr = E_INVALIDARG); } if(!pSelf->bStarted) { TSK_DEBUG_INFO("D3D9 video consumer not started"); CHECK_HR(hr = E_FAIL); } if(!hWnd) { TSK_DEBUG_INFO("Do not draw frame because HWND not set"); goto bail; // not an error as the application can decide to set the HWND at any time } if (!pSelf->bWindowHooked) { // Do not hook "hWnd" as it could be the fullscreen handle which is always hooked. CHECK_HR(hr = HookWindow(pSelf, pSelf->hWindow)); } if(!pSelf->pDevice || !pSelf->pD3D || !pSelf->pSwapChain) { if(pSelf->pDevice || pSelf->pD3D || pSelf->pSwapChain) { CHECK_HR(hr = E_POINTER); // They must be "all null" or "all valid" } if(hWnd) { // means HWND was not set but defined now pSelf->nNegWidth = (UINT32)TMEDIA_CONSUMER(pSelf)->video.in.width; pSelf->nNegHeight = (UINT32)TMEDIA_CONSUMER(pSelf)->video.in.height; CHECK_HR(hr = CreateDeviceD3D9(hWnd, &pSelf->pDevice, &pSelf->pD3D, pSelf->d3dpp)); CHECK_HR(hr = CreateSwapChain(hWnd, pSelf->nNegWidth, pSelf->nNegHeight, pSelf->pDevice, &pSelf->pSwapChain)); } } if(pSelf->nNegWidth != TMEDIA_CONSUMER(pSelf)->video.in.width || pSelf->nNegHeight != TMEDIA_CONSUMER(pSelf)->video.in.height){ TSK_DEBUG_INFO("Negotiated and input video sizes are different:%d#%d or %d#%d", pSelf->nNegWidth, TMEDIA_CONSUMER(pSelf)->video.in.width, pSelf->nNegHeight, TMEDIA_CONSUMER(pSelf)->video.in.height); // Update media type SafeRelease(&pSelf->pSwapChain); CHECK_HR(hr = CreateSwapChain(hWnd, (UINT32)TMEDIA_CONSUMER(pSelf)->video.in.width, (UINT32)TMEDIA_CONSUMER(pSelf)->video.in.height, pSelf->pDevice, &pSelf->pSwapChain)); pSelf->nNegWidth = (UINT32)TMEDIA_CONSUMER(pSelf)->video.in.width; pSelf->nNegHeight = (UINT32)TMEDIA_CONSUMER(pSelf)->video.in.height; // Update Destination will do noting if the window size haven't changed. // Force updating the destination rect if negotiated size change CHECK_HR(hr = UpdateDestinationRect(pSelf, TRUE/* Force */)); } if(((pSelf->nNegWidth * pSelf->nNegHeight) << 2) != size) { TSK_DEBUG_ERROR("%u not valid as input size", size); CHECK_HR(hr = E_FAIL); } CHECK_HR(hr = TestCooperativeLevel(pSelf)); CHECK_HR(hr = UpdateDestinationRect(pSelf)); CHECK_HR(hr = pSelf->pSwapChain->GetBackBuffer(0, D3DBACKBUFFER_TYPE_MONO, &pSurf)); CHECK_HR(hr = pSurf->LockRect(&pSelf->rcLock, NULL, D3DLOCK_NOSYSLOCK )); // Fast copy() using MMX, SSE, or SSE2 // Only available on Vista or later: Use LoadLibrary() to get a pointer to the function /*hr = MFCopyImage( (BYTE*)pSelf->rcLock.pBits, pSelf->rcLock.Pitch, (BYTE*)buffer, (pSelf->nNegWidth << 2), (pSelf->nNegWidth << 2), pSelf->nNegHeight );*/ if(pSelf->rcLock.Pitch == (pSelf->nNegWidth << 2)) { memcpy(pSelf->rcLock.pBits, buffer, size); } else { const BYTE* pSrcPtr = (const BYTE*)buffer; BYTE* pDstPtr = (BYTE*)pSelf->rcLock.pBits; UINT32 nDstPitch = pSelf->rcLock.Pitch; UINT32 nSrcPitch = (pSelf->nNegWidth << 2); for(UINT32 i = 0; i < pSelf->nNegHeight; ++i) { memcpy(pDstPtr, pSrcPtr, nSrcPitch); pDstPtr += nDstPitch; pSrcPtr += nSrcPitch; } } if(FAILED(hr)) { // unlock() before leaving pSurf->UnlockRect(); CHECK_HR(hr); } CHECK_HR(hr = pSurf->UnlockRect()); // Color fill the back buffer CHECK_HR(hr = pSelf->pDevice->GetBackBuffer(0, 0, D3DBACKBUFFER_TYPE_MONO, &pBB)); CHECK_HR(hr = pSelf->pDevice->ColorFill(pBB, NULL, D3DCOLOR_XRGB(0xFF, 0xFF, 0xFF))); // Resize keeping aspect ratio and Blit the frame (required) hr = pSelf->pDevice->StretchRect( pSurf, NULL, pBB, &pSelf->rcDest/*NULL*/, D3DTEXF_LINEAR ); // could fail when display is being resized if(SUCCEEDED(hr)) { // Present the frame CHECK_HR(hr = pSelf->pDevice->Present(NULL, NULL, NULL, NULL)); } else { TSK_DEBUG_INFO("StretchRect returned ...%x", hr); } bail: SafeRelease(&pSurf); SafeRelease(&pBB); tsk_safeobj_unlock(pSelf); return SUCCEEDED(hr) ? 0 : -1; } static int plugin_video_dshow_consumer_pause(tmedia_consumer_t* self) { plugin_video_dshow_consumer_t* pSelf = (plugin_video_dshow_consumer_t*)self; if(!pSelf){ TSK_DEBUG_ERROR("Invalid parameter"); return -1; } if(!pSelf->bStarted) { TSK_DEBUG_INFO("MF video producer not started"); return 0; } HRESULT hr = S_OK; pSelf->bPaused = true; return SUCCEEDED(hr) ? 0 : -1; } static int plugin_video_dshow_consumer_stop(tmedia_consumer_t* self) { plugin_video_dshow_consumer_t* pSelf = (plugin_video_dshow_consumer_t*)self; if(!pSelf){ TSK_DEBUG_ERROR("Invalid parameter"); return -1; } HRESULT hr = S_OK; pSelf->bStarted = false; pSelf->bPaused = false; if(pSelf->hWindowFullScreen) { ::InvalidateRect(pSelf->hWindowFullScreen, NULL, FALSE); ::ShowWindow(pSelf->hWindowFullScreen, SW_HIDE); } // next start() will be called after prepare() return _plugin_video_dshow_consumer_unprepare(pSelf); } static int _plugin_video_dshow_consumer_unprepare(plugin_video_dshow_consumer_t* pSelf) { if(!pSelf){ TSK_DEBUG_ERROR("Invalid parameter"); return -1; } if(pSelf->bStarted) { // plugin_win_mf_producer_video_stop(TMEDIA_PRODUCER(pSelf)); TSK_DEBUG_ERROR("Consumer must be stopped before calling unprepare"); return -1; } UnhookWindow(pSelf); SafeRelease(&pSelf->pDevice); SafeRelease(&pSelf->pD3D); SafeRelease(&pSelf->pSwapChain); pSelf->bPrepared = false; return 0; } // // D3D9 video consumer object definition // /* constructor */ static tsk_object_t* plugin_video_dshow_consumer_ctor(tsk_object_t * self, va_list * app) { plugin_video_dshow_consumer_t *pSelf = (plugin_video_dshow_consumer_t *)self; if(pSelf) { /* init base */ tmedia_consumer_init(TMEDIA_CONSUMER(pSelf)); TMEDIA_CONSUMER(pSelf)->video.display.chroma = tmedia_chroma_rgb32; TMEDIA_CONSUMER(pSelf)->decoder.codec_id = tmedia_codec_id_none; // means accept RAW fames /* init self */ tsk_safeobj_init(pSelf); TMEDIA_CONSUMER(pSelf)->video.fps = 15; TMEDIA_CONSUMER(pSelf)->video.display.width = 0; // use codec value TMEDIA_CONSUMER(pSelf)->video.display.height = 0; // use codec value TMEDIA_CONSUMER(pSelf)->video.display.auto_resize = tsk_true; pSelf->pixelAR.Denominator = pSelf->pixelAR.Numerator = 1; } return self; } /* destructor */ static tsk_object_t* plugin_video_dshow_consumer_dtor(tsk_object_t * self) { plugin_video_dshow_consumer_t *pSelf = (plugin_video_dshow_consumer_t *)self; if (pSelf) { /* stop */ if (pSelf->bStarted) { plugin_video_dshow_consumer_stop(TMEDIA_CONSUMER(pSelf)); } /* deinit base */ tmedia_consumer_deinit(TMEDIA_CONSUMER(pSelf)); /* deinit self */ _plugin_video_dshow_consumer_unprepare(pSelf); tsk_safeobj_deinit(pSelf); } return self; } /* object definition */ static const tsk_object_def_t plugin_video_dshow_consumer_def_s = { sizeof(plugin_video_dshow_consumer_t), plugin_video_dshow_consumer_ctor, plugin_video_dshow_consumer_dtor, tsk_null, }; /* plugin definition*/ static const tmedia_consumer_plugin_def_t plugin_video_dshow_consumer_plugin_def_s = { &plugin_video_dshow_consumer_def_s, tmedia_video, "Microsoft DirectShow consumer (D3D9)", plugin_video_dshow_consumer_set, plugin_video_dshow_consumer_prepare, plugin_video_dshow_consumer_start, plugin_video_dshow_consumer_consume, plugin_video_dshow_consumer_pause, plugin_video_dshow_consumer_stop }; const tmedia_consumer_plugin_def_t *plugin_video_dshow_consumer_plugin_def_t = &plugin_video_dshow_consumer_plugin_def_s; // Helper functions static HRESULT CreateDeviceD3D9( HWND hWnd, IDirect3DDevice9** ppDevice, IDirect3D9 **ppD3D, D3DPRESENT_PARAMETERS &d3dpp ) { HRESULT hr = S_OK; D3DDISPLAYMODE mode = { 0 }; D3DPRESENT_PARAMETERS pp = {0}; if(!ppDevice || *ppDevice || !ppD3D || *ppD3D) { CHECK_HR(hr = E_POINTER); } if(!(*ppD3D = Direct3DCreate9(D3D_SDK_VERSION))) { CHECK_HR(hr = E_OUTOFMEMORY); } CHECK_HR(hr = (*ppD3D)->GetAdapterDisplayMode( D3DADAPTER_DEFAULT, &mode )); CHECK_HR(hr = (*ppD3D)->CheckDeviceType( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, mode.Format, D3DFMT_X8R8G8B8, TRUE // windowed )); pp.BackBufferFormat = D3DFMT_X8R8G8B8; pp.SwapEffect = D3DSWAPEFFECT_DISCARD; pp.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE; pp.Windowed = TRUE; pp.hDeviceWindow = hWnd; CHECK_HR(hr = (*ppD3D)->CreateDevice( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd, D3DCREATE_HARDWARE_VERTEXPROCESSING, &pp, ppDevice )); d3dpp = pp; bail: if(FAILED(hr)) { SafeRelease(ppD3D); SafeRelease(ppDevice); } return hr; } static HRESULT TestCooperativeLevel( struct plugin_video_dshow_consumer_s *pSelf ) { HRESULT hr = S_OK; if (!pSelf || !pSelf->pDevice) { CHECK_HR(hr = E_POINTER); } switch((hr = pSelf->pDevice->TestCooperativeLevel())) { case D3D_OK: { break; } case D3DERR_DEVICELOST: { hr = S_OK; break; } case D3DERR_DEVICENOTRESET: { hr = ResetDevice(pSelf, TRUE); break; } default: { break; } } CHECK_HR(hr); bail: return hr; } static HRESULT CreateSwapChain( HWND hWnd, UINT32 nFrameWidth, UINT32 nFrameHeight, IDirect3DDevice9* pDevice, IDirect3DSwapChain9 **ppSwapChain ) { HRESULT hr = S_OK; D3DPRESENT_PARAMETERS pp = { 0 }; if(!pDevice || !ppSwapChain || *ppSwapChain) { CHECK_HR(hr = E_POINTER); } pp.BackBufferWidth = nFrameWidth; pp.BackBufferHeight = nFrameHeight; pp.Windowed = TRUE; pp.SwapEffect = D3DSWAPEFFECT_FLIP; pp.hDeviceWindow = hWnd; pp.BackBufferFormat = D3DFMT_X8R8G8B8; pp.Flags = D3DPRESENTFLAG_VIDEO | D3DPRESENTFLAG_DEVICECLIP | D3DPRESENTFLAG_LOCKABLE_BACKBUFFER; pp.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE; pp.BackBufferCount = NUM_BACK_BUFFERS; CHECK_HR(hr = pDevice->CreateAdditionalSwapChain(&pp, ppSwapChain)); bail: return hr; } static inline HWND Window(struct plugin_video_dshow_consumer_s *pSelf) { return pSelf ? (pSelf->bFullScreen ? pSelf->hWindowFullScreen : pSelf->hWindow) : NULL; } static inline LONG Width(const RECT& r) { return r.right - r.left; } static inline LONG Height(const RECT& r) { return r.bottom - r.top; } //----------------------------------------------------------------------------- // CorrectAspectRatio // // Converts a rectangle from the source's pixel aspect ratio (PAR) to 1:1 PAR. // Returns the corrected rectangle. // // For example, a 720 x 486 rect with a PAR of 9:10, when converted to 1x1 PAR, // is stretched to 720 x 540. // Copyright (C) Microsoft //----------------------------------------------------------------------------- static inline RECT CorrectAspectRatio(const RECT& src, const DSRatio& srcPAR) { // Start with a rectangle the same size as src, but offset to the origin (0,0). RECT rc = {0, 0, src.right - src.left, src.bottom - src.top}; if ((srcPAR.Numerator != 1) || (srcPAR.Denominator != 1)) { // Correct for the source's PAR. if (srcPAR.Numerator > srcPAR.Denominator) { // The source has "wide" pixels, so stretch the width. rc.right = MulDiv(rc.right, srcPAR.Numerator, srcPAR.Denominator); } else if (srcPAR.Numerator < srcPAR.Denominator) { // The source has "tall" pixels, so stretch the height. rc.bottom = MulDiv(rc.bottom, srcPAR.Denominator, srcPAR.Numerator); } // else: PAR is 1:1, which is a no-op. } return rc; } //------------------------------------------------------------------- // LetterBoxDstRect // // Takes a src rectangle and constructs the largest possible // destination rectangle within the specifed destination rectangle // such thatthe video maintains its current shape. // // This function assumes that pels are the same shape within both the // source and destination rectangles. // Copyright (C) Microsoft //------------------------------------------------------------------- static inline RECT LetterBoxRect(const RECT& rcSrc, const RECT& rcDst) { // figure out src/dest scale ratios int iSrcWidth = Width(rcSrc); int iSrcHeight = Height(rcSrc); int iDstWidth = Width(rcDst); int iDstHeight = Height(rcDst); int iDstLBWidth; int iDstLBHeight; if (MulDiv(iSrcWidth, iDstHeight, iSrcHeight) <= iDstWidth) { // Column letter boxing ("pillar box") iDstLBWidth = MulDiv(iDstHeight, iSrcWidth, iSrcHeight); iDstLBHeight = iDstHeight; } else { // Row letter boxing. iDstLBWidth = iDstWidth; iDstLBHeight = MulDiv(iDstWidth, iSrcHeight, iSrcWidth); } // Create a centered rectangle within the current destination rect RECT rc; LONG left = rcDst.left + ((iDstWidth - iDstLBWidth) >> 1); LONG top = rcDst.top + ((iDstHeight - iDstLBHeight) >> 1); SetRect(&rc, left, top, left + iDstLBWidth, top + iDstLBHeight); return rc; } static inline HRESULT UpdateDestinationRect(plugin_video_dshow_consumer_t *pSelf, BOOL bForce /*= FALSE*/) { HRESULT hr = S_OK; HWND hwnd = Window(pSelf); if(!pSelf) { CHECK_HR(hr = E_POINTER); } if(!hwnd) { CHECK_HR(hr = E_HANDLE); } RECT rcClient; GetClientRect(hwnd, &rcClient); // only update destination if window size changed if(bForce || (rcClient.bottom != pSelf->rcWindow.bottom || rcClient.left != pSelf->rcWindow.left || rcClient.right != pSelf->rcWindow.right || rcClient.top != pSelf->rcWindow.top)) { CHECK_HR(hr = ResetDevice(pSelf)); pSelf->rcWindow = rcClient; #if 1 RECT rcSrc = { 0, 0, pSelf->nNegWidth, pSelf->nNegHeight }; rcSrc = CorrectAspectRatio(rcSrc, pSelf->pixelAR); pSelf->rcDest = LetterBoxRect(rcSrc, rcClient); #else long w = rcClient.right - rcClient.left; long h = rcClient.bottom - rcClient.top; float ratio = ((float)pSelf->nNegWidth/(float)pSelf->nNegHeight); // (w/h)=ratio => // 1) h=w/ratio // and // 2) w=h*ratio pSelf->rcDest.right = (int)(w/ratio) > h ? (int)(h * ratio) : w; pSelf->rcDest.bottom = (int)(pSelf->rcDest.right/ratio) > h ? h : (int)(pSelf->rcDest.right/ratio); pSelf->rcDest.left = ((w - pSelf->rcDest.right) >> 1); pSelf->rcDest.top = ((h - pSelf->rcDest.bottom) >> 1); #endif //::InvalidateRect(hwnd, NULL, FALSE); } bail: return hr; } static HRESULT ResetDevice(plugin_video_dshow_consumer_t *pSelf, BOOL bUpdateDestinationRect /*= FALSE*/) { HRESULT hr = S_OK; tsk_safeobj_lock(pSelf); HWND hWnd = Window(pSelf); if (pSelf->pDevice) { D3DPRESENT_PARAMETERS d3dpp = pSelf->d3dpp; hr = pSelf->pDevice->Reset(&d3dpp); if (FAILED(hr)) { SafeRelease(&pSelf->pDevice); SafeRelease(&pSelf->pD3D); SafeRelease(&pSelf->pSwapChain); } } if (pSelf->pDevice == NULL && hWnd) { CHECK_HR(hr = CreateDeviceD3D9(hWnd, &pSelf->pDevice, &pSelf->pD3D, pSelf->d3dpp)); CHECK_HR(hr = CreateSwapChain(hWnd, pSelf->nNegWidth, pSelf->nNegHeight, pSelf->pDevice, &pSelf->pSwapChain)); } if(bUpdateDestinationRect) // endless loop guard { CHECK_HR(hr = UpdateDestinationRect(pSelf)); } bail: tsk_safeobj_unlock(pSelf); return hr; } static HRESULT SetFullscreen(struct plugin_video_dshow_consumer_s *pSelf, BOOL bFullScreen) { HRESULT hr = S_OK; if(!pSelf) { CHECK_HR(hr = E_POINTER); } if(pSelf->bFullScreen != bFullScreen) { tsk_safeobj_lock(pSelf); if(bFullScreen) { HWND hWnd = CreateFullScreenWindow(pSelf); if(hWnd) { ::ShowWindow(hWnd, SW_SHOWDEFAULT); ::UpdateWindow(hWnd); } } else if(pSelf->hWindowFullScreen) { ::ShowWindow(pSelf->hWindowFullScreen, SW_HIDE); } pSelf->bFullScreen = bFullScreen; if(pSelf->bPrepared) { hr = ResetDevice(pSelf); } tsk_safeobj_unlock(pSelf); CHECK_HR(hr); } bail: return hr; } static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { switch(uMsg) { case WM_CREATE: case WM_SIZE: case WM_MOVE: { struct plugin_video_dshow_consumer_s* pSelf = dynamic_cast<struct plugin_video_dshow_consumer_s*>((struct plugin_video_dshow_consumer_s*)GetPropA(hWnd, "Self")); if (pSelf) { } break; } #if 0 case WM_PAINT: { PAINTSTRUCT ps; HDC hdc = BeginPaint(hWnd, &ps); ps.fErase = FALSE; RECT rc; GetBoundsRect(hdc, &rc, 0); FillRect(hdc, &rc, (HBRUSH)GetStockObject(BLACK_BRUSH)); EndPaint(hWnd, &ps); break; } #endif case WM_ERASEBKGND: { return TRUE; // avoid background erasing. } case WM_CHAR: case WM_KEYUP: { struct plugin_video_dshow_consumer_s* pSelf = dynamic_cast<struct plugin_video_dshow_consumer_s*>((struct plugin_video_dshow_consumer_s*)GetPropA(hWnd, "Self")); if (pSelf) { SetFullscreen(pSelf, FALSE); } break; } } return DefWindowProc(hWnd, uMsg, wParam, lParam); } static HWND CreateFullScreenWindow(struct plugin_video_dshow_consumer_s *pSelf) { HRESULT hr = S_OK; if(!pSelf) { return NULL; } if(!pSelf->hWindowFullScreen) { WNDCLASS wc = {0}; wc.lpfnWndProc = WndProc; wc.hInstance = GetModuleHandle(NULL); wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.lpszClassName = L"WindowClass"; RegisterClass(&wc); pSelf->hWindowFullScreen = ::CreateWindowEx( NULL, wc.lpszClassName, L"Doubango's Video Consumer Fullscreen", WS_EX_TOPMOST | WS_POPUP, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN), NULL, NULL, GetModuleHandle(NULL), NULL); SetPropA(pSelf->hWindowFullScreen, "Self", pSelf); } return pSelf->hWindowFullScreen; } static HRESULT HookWindow(plugin_video_dshow_consumer_t *pSelf, HWND hWnd) { HRESULT hr = S_OK; tsk_safeobj_lock(pSelf); CHECK_HR(hr = UnhookWindow(pSelf)); if ((pSelf->hWindow = hWnd)) { pSelf->wndProc = (WNDPROC)SetWindowLongPtr(pSelf->hWindow, GWLP_WNDPROC, (LONG_PTR)WndProc); if (!pSelf->wndProc) { TSK_DEBUG_ERROR("HookWindowLongPtr() failed with errcode=%d", GetLastError()); CHECK_HR(hr = E_FAIL); } pSelf->bWindowHooked = TRUE; } bail: tsk_safeobj_unlock(pSelf); return S_OK; } static HRESULT UnhookWindow(struct plugin_video_dshow_consumer_s *pSelf) { tsk_safeobj_lock(pSelf); if (pSelf->hWindow && pSelf->wndProc) { SetWindowLongPtr(pSelf->hWindow, GWLP_WNDPROC, (LONG_PTR)pSelf->wndProc); pSelf->wndProc = NULL; } if(pSelf->hWindow) { ::InvalidateRect(pSelf->hWindow, NULL, FALSE); } pSelf->bWindowHooked = FALSE; tsk_safeobj_unlock(pSelf); return S_OK; } #else /* !PLUGIN_DS_CV_USE_D3D9 */ typedef struct plugin_video_dshow_consumer_s { TMEDIA_DECLARE_CONSUMER; DSDisplay* display; INT64 window; tsk_bool_t plugin_firefox; tsk_bool_t started; tsk_bool_t create_on_ui_thread; } plugin_video_dshow_consumer_t; /* ============ Media Consumer Interface ================= */ static int plugin_video_dshow_consumer_set(tmedia_consumer_t *self, const tmedia_param_t* param) { int ret = 0; if(!self || !param){ TSK_DEBUG_ERROR("Invalid parameter"); return -1; } if(param->value_type == tmedia_pvt_int64){ if(tsk_striequals(param->key, "remote-hwnd")){ DSCONSUMER(self)->window = (INT64)*((int64_t*)param->value); if(DSCONSUMER(self)->display){ if(DSCONSUMER(self)->window){ DSCONSUMER(self)->display->attach(DSCONSUMER(self)->window); } else{ DSCONSUMER(self)->display->detach(); } } } } else if(param->value_type == tmedia_pvt_int32){ if(tsk_striequals(param->key, "fullscreen")){ if(DSCONSUMER(self)->display){ DSCONSUMER(self)->display->setFullscreen(*((int32_t*)param->value) != 0); } } else if(tsk_striequals(param->key, "create-on-current-thead")){ DSCONSUMER(self)->create_on_ui_thread = *((int32_t*)param->value) ? tsk_false : tsk_true; } else if(tsk_striequals(param->key, "plugin-firefox")){ DSCONSUMER(self)->plugin_firefox = (*((int32_t*)param->value) != 0); if(DSCONSUMER(self)->display){ DSCONSUMER(self)->display->setPluginFirefox((DSCONSUMER(self)->plugin_firefox == tsk_true)); } } } return ret; } static int plugin_video_dshow_consumer_prepare(tmedia_consumer_t* self, const tmedia_codec_t* codec) { plugin_video_dshow_consumer_t* consumer = (plugin_video_dshow_consumer_t*)self; if(!consumer || !codec && codec->plugin){ TSK_DEBUG_ERROR("Invalid parameter"); return -1; } TMEDIA_CONSUMER(consumer)->video.fps = TMEDIA_CODEC_VIDEO(codec)->in.fps; TMEDIA_CONSUMER(consumer)->video.in.width = TMEDIA_CODEC_VIDEO(codec)->in.width; TMEDIA_CONSUMER(consumer)->video.in.height = TMEDIA_CODEC_VIDEO(codec)->in.height; if(!TMEDIA_CONSUMER(consumer)->video.display.width){ TMEDIA_CONSUMER(consumer)->video.display.width = TMEDIA_CONSUMER(consumer)->video.in.width; } if(!TMEDIA_CONSUMER(consumer)->video.display.height){ TMEDIA_CONSUMER(consumer)->video.display.height = TMEDIA_CONSUMER(consumer)->video.in.height; } return 0; } static int plugin_video_dshow_consumer_start(tmedia_consumer_t* self) { plugin_video_dshow_consumer_t* consumer = (plugin_video_dshow_consumer_t*)self; if(!consumer){ TSK_DEBUG_ERROR("Invalid parameter"); return -1; } if(consumer->started){ return 0; } // create display on UI thread if(!consumer->display){ if (consumer->create_on_ui_thread) createOnUIThead(reinterpret_cast<HWND>((void*)consumer->window), (void**)&consumer->display, true, false); else createOnCurrentThead(reinterpret_cast<HWND>((void*)consumer->window), (void**)&consumer->display, true, false); if(!consumer->display){ TSK_DEBUG_ERROR("Failed to create display"); return -2; } } // Set parameters consumer->display->setPluginFirefox((consumer->plugin_firefox == tsk_true)); consumer->display->setFps(TMEDIA_CONSUMER(consumer)->video.fps); // do not change the display size: see hook() // consumer->display->setSize(TMEDIA_CONSUMER(consumer)->video.display.width, TMEDIA_CONSUMER(consumer)->video.display.height); if(consumer->window){ consumer->display->attach(consumer->window); } // Start display consumer->display->start(); consumer->started = tsk_true; return 0; } static int plugin_video_dshow_consumer_consume(tmedia_consumer_t* self, const void* buffer, tsk_size_t size, const tsk_object_t* proto_hdr) { plugin_video_dshow_consumer_t* consumer = (plugin_video_dshow_consumer_t*)self; if(consumer && consumer->display && buffer){ consumer->display->handleVideoFrame(buffer, TMEDIA_CONSUMER(consumer)->video.display.width, TMEDIA_CONSUMER(consumer)->video.display.height); return 0; } else{ TSK_DEBUG_ERROR("Invalid parameter"); return -1; } } static int plugin_video_dshow_consumer_pause(tmedia_consumer_t* self) { plugin_video_dshow_consumer_t* consumer = (plugin_video_dshow_consumer_t*)self; if(!consumer){ TSK_DEBUG_ERROR("Invalid parameter"); return -1; } if(!consumer->display){ TSK_DEBUG_ERROR("Invalid internal grabber"); return -2; } //consumer->display->pause(); return 0; } static int plugin_video_dshow_consumer_stop(tmedia_consumer_t* self) { plugin_video_dshow_consumer_t* consumer = (plugin_video_dshow_consumer_t*)self; if(!self){ TSK_DEBUG_ERROR("Invalid parameter"); return -1; } if(!consumer->started){ return 0; } if(!consumer->display){ TSK_DEBUG_ERROR("Invalid internal display"); return -2; } TSK_DEBUG_INFO("Before stopping DirectShow consumer"); consumer->display->stop(); consumer->started = tsk_false; TSK_DEBUG_INFO("After stopping DirectShow consumer"); return 0; } // // DirectShow consumer object definition // /* constructor */ static tsk_object_t* plugin_video_dshow_consumer_ctor(tsk_object_t * self, va_list * app) { CoInitializeEx(NULL, COINIT_MULTITHREADED); plugin_video_dshow_consumer_t *consumer = (plugin_video_dshow_consumer_t *)self; if(consumer){ /* init base */ tmedia_consumer_init(TMEDIA_CONSUMER(consumer)); TMEDIA_CONSUMER(consumer)->video.display.chroma = tmedia_chroma_bgr24; // RGB24 on x86 (little endians) stored as BGR24 /* init self */ consumer->create_on_ui_thread = tsk_true; TMEDIA_CONSUMER(consumer)->video.fps = 15; TMEDIA_CONSUMER(consumer)->video.display.width = 352; TMEDIA_CONSUMER(consumer)->video.display.height = 288; TMEDIA_CONSUMER(consumer)->video.display.auto_resize = tsk_true; } return self; } /* destructor */ static tsk_object_t* plugin_video_dshow_consumer_dtor(tsk_object_t * self) { plugin_video_dshow_consumer_t *consumer = (plugin_video_dshow_consumer_t *)self; if(consumer){ /* stop */ if(consumer->started){ plugin_video_dshow_consumer_stop((tmedia_consumer_t*)self); } /* deinit base */ tmedia_consumer_deinit(TMEDIA_CONSUMER(consumer)); /* deinit self */ SAFE_DELETE_PTR(consumer->display); } return self; } /* object definition */ static const tsk_object_def_t plugin_video_dshow_consumer_def_s = { sizeof(plugin_video_dshow_consumer_t), plugin_video_dshow_consumer_ctor, plugin_video_dshow_consumer_dtor, tsk_null, }; /* plugin definition*/ static const tmedia_consumer_plugin_def_t plugin_video_dshow_consumer_plugin_def_s = { &plugin_video_dshow_consumer_def_s, tmedia_video, "Microsoft DirectShow consumer (using custom source)", plugin_video_dshow_consumer_set, plugin_video_dshow_consumer_prepare, plugin_video_dshow_consumer_start, plugin_video_dshow_consumer_consume, plugin_video_dshow_consumer_pause, plugin_video_dshow_consumer_stop }; const tmedia_consumer_plugin_def_t *plugin_video_dshow_consumer_plugin_def_t = &plugin_video_dshow_consumer_plugin_def_s; #endif /* PLUGIN_DS_CV_USE_D3D9 */
[ "bossiel@yahoo.fr@c7b0ae48-b0eb-11de-8bdf-3374eb5c7316" ]
bossiel@yahoo.fr@c7b0ae48-b0eb-11de-8bdf-3374eb5c7316
c693cf9ee6b88b1f874ea23027fe57ab7b75b241
0fb0dcf1b7192af5dc2bcc32c48dc6efb016366e
/t9/main.cpp
9f769f2befb51ae1c73cc67d25fd6a08c23ad823
[]
no_license
imzfz/mycpp
9e4076e96e0cfabdc953fb25055aa08e9a806a96
372349d7e68062a66281b2030132ea124b0d38af
refs/heads/master
2021-01-10T23:22:44.290851
2016-10-01T09:53:26
2016-10-01T09:53:26
69,727,979
0
0
null
null
null
null
UTF-8
C++
false
false
180
cpp
#include "head.h" int main() { Sale sale; sale.list(5, 23.5); sale.list(12, 24.56); sale.list(100, 21.5); sale.average(); sale.display(); return 0; }
[ "zfz@fzdeMacBook-Pro.local" ]
zfz@fzdeMacBook-Pro.local
fdcd5665d9a954cf9bf7052970dacea7396e874e
d34deb67c96e70b334a18acfb2c5e74b2c648487
/2/2.cpp
34f9d5d7b0e751beba1466f1917433ed769c173e
[]
no_license
WYX11111/CPP
c4071541a311c64eb6cb84d016f781ceb7696780
e598ceab7266d390fe33e2710bc962d1c9ca455c
refs/heads/master
2020-05-18T06:17:07.137950
2019-06-26T11:38:41
2019-06-26T11:38:41
184,230,172
0
0
null
null
null
null
GB18030
C++
false
false
211
cpp
#include "io.cpp" //导入io.cpp int main() { int a = readNumber(); //调用io.cpp里的readNumber()函数输入一个整数 int b = readNumber(); writeAnswer(a + b); //打印两数和 return 0; }
[ "wyxiao11111@mails.ccnu.edu.cn" ]
wyxiao11111@mails.ccnu.edu.cn
b093d7b0b43cc0ed70a0a537f9a7774ff962390f
9eadd7a4db934ba63675093bc8c6c40f154cbeaa
/cpp/photo/jpeg_encoder.h
72985a6f978e43a84f200395308af5ddf459f29b
[ "Apache-2.0" ]
permissive
ghas-results/vr180
ee7be58f77d14cc317f4b1a188d35e42e79f35bd
f55eaa1c6835b911b7a11830ec546636a16d49da
refs/heads/master
2023-08-21T04:09:34.447377
2019-02-14T22:30:08
2019-02-14T22:30:08
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,298
h
/* * Copyright 2018 Google LLC * * 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 VR180_CPP_PHOTO_JPEG_ENCODER_H_ #define VR180_CPP_PHOTO_JPEG_ENCODER_H_ #include <cstdint> #include <string> extern "C" { #include "libjpeg_turbo/jpeglib.h" } namespace vr180 { // Encodes the subimage of data specified by x,y,width,height,stride into // result. bool EncodeJpeg(const uint8_t* data, int x, int y, int width, int height, int stride, int quality, J_COLOR_SPACE color_space, std::string* result); // A wrapper to encoder RGBA jpegs. bool EncodeRGBAJpeg(const uint8_t* data, int x, int y, int width, int height, int stride, int quality, std::string* result); } // namespace vr180 #endif // VR180_CPP_PHOTO_JPEG_ENCODER_H_
[ "jiamingliu@google.com" ]
jiamingliu@google.com
8b2aeaa9dc2b0c907e182f236b6ee27a9bb7b928
3ef84250365b6501afd4c55830edb73f45398c46
/Code/GameSDK/GameDll/Effects/Tools/CVarActivationSystem.h
1575eb5a1faa2949f0cbe72269552e90ba065881
[]
no_license
Rjayone/TravellersNotes
cc9193d01c0b060d848401d74797ef14322e90dd
0bf44ad22daf64d56b70c841ac936ae3d1c12d9c
refs/heads/master
2021-04-26T11:40:03.965230
2015-10-25T14:04:22
2015-10-25T14:04:22
43,647,664
1
0
null
null
null
null
UTF-8
C++
false
false
1,728
h
#ifndef _CVAR_ACTIVATION_SYSTEM_ #define _CVAR_ACTIVATION_SYSTEM_ #pragma once //================================================================================================== // Name: SCVarParam // Desc: CVar param used in the cvar activation system // Author: James Chilvers //================================================================================================== struct SCVarParam { SCVarParam() { cvar = NULL; activeValue = 0.0f; originalValue = 0.0f; } ICVar* cvar; float activeValue; float originalValue; };//------------------------------------------------------------------------------------------------ //================================================================================================== // Name: CCVarActivationSystem // Desc: Simple data driven system to activate cvars // Author: James Chilvers //================================================================================================== class CCVarActivationSystem { public: CCVarActivationSystem(){} ~CCVarActivationSystem(){} void Initialise(const IItemParamsNode* cvarListXmlNode); // Uses the xml node name for the cvar, and activeValue attribute // eg <cl_fov activeValue="85"/> void Release(); void StoreCurrentValues(); // This stores the current values in the SCVarParam, and the CVar will be set to these when // SetCVarsActive(false) is called void SetCVarsActive(bool isActive); // Uses active value when set true, and original value when set false private: PodArray<SCVarParam> m_cvarParam; };//------------------------------------------------------------------------------------------------ #endif // _CVAR_ACTIVATION_SYSTEM_
[ "misterdecoy@mail.ru" ]
misterdecoy@mail.ru
c5b4f2fc6d2aa234bc697db6ba37caeaaf55c3da
426404ea70a7140ddd58ae6cddf4ecd9d04806d2
/SyneVisLinux/wavutils.h
dfce45fdc15d64174c370bdd7139b5e0d4bd99b9
[ "Unlicense" ]
permissive
averov90/RaspberryPi-SyneVis_Proj
62482e2bd717576ce05d76533234e5bd7ee91151
83889fdefdfaa709d88d6823cbca233a30d443a0
refs/heads/master
2020-12-20T11:55:43.895829
2020-02-06T18:49:11
2020-02-06T18:49:11
236,067,191
1
0
null
null
null
null
WINDOWS-1251
C++
false
false
4,997
h
#pragma once #include "dependents.h" #include "consts.h" namespace WavUtils { struct SegmentSineProps { unsigned int bufflen; float period; }; struct WaveSmallInfo { unsigned short channels; unsigned short sampleRate; }; struct Freqs { float *freqs = nullptr; unsigned short count = 0; Freqs(const Freqs &c):freqs(c.freqs), count(c.count) { copyed = true; } Freqs() {} float &operator [](const unsigned short index) { return freqs[index]; } ~Freqs() { if (copyed) delete[] freqs; } private: bool copyed = false; }; struct SynGenData { short **sines; unsigned int *sinessizes; unsigned short sinesnum; }; void GenPeriodicalSine(short* buffer, unsigned short lenght, float tone, short volume = 32767); Freqs GetPeriodicalSineFreqs(unsigned short count, unsigned short offset = 0); unsigned short GetPeriodicalSineBuffLen(float tone); /*@accuracy Value range: 0-4 */ SegmentSineProps GetSegmetSineBuffLen(float tone, char accuracy); /*@accuracy Value range: 0-4 */ Freqs GetSegmetSineFreqs(float min_freq, float max_freq, char accuracy, unsigned short buffmultiplicity); void GenSegmentSine(short* buffer, const SegmentSineProps &props, short volume = 32767); bool SaveSND(const char *filepath, const short* buffer, unsigned int bufflen); short *LoadSND(const char *filepath, unsigned int &bufflen); short *LoadWAVFromBuffer(const char *buffer, unsigned int &outbufflen, WaveSmallInfo *info = nullptr); /*@accuracy Value range: 0-4 */ bool GenerateSinesByFreqFile(const char* freqfilename, char freqaccuracy, SynGenData &data); bool SaveSNDPacket(const char* collectorFilename, const char* SNDfileFolder, const SynGenData &data); bool LoadSNDPacket(const char* collectorFilename, const char* SNDfileFolder, SynGenData &data); struct WAV_HEADER { //Содержит символы "RIFF" в ASCII кодировке //(0x52494646 в big-endian представлении) char chunkId[4]; // 36 + subchunk2Size, или более точно: // 4 + (8 + subchunk1Size) + (8 + subchunk2Size) // Это оставшийся размер цепочки, начиная с этой позиции. // Иначе говоря, это размер файла - 8, то есть, // исключены поля chunkId и chunkSize. uint32_t chunkSize; // Содержит символы "WAVE" // (0x57415645 в big-endian представлении) char format[4]; // Формат "WAVE" состоит из двух подцепочек: "fmt " и "data": // Подцепочка "fmt " описывает формат звуковых данных: // Содержит символы "fmt " // (0x666d7420 в big-endian представлении) char subchunk1Id[4]; // 16 для формата PCM. // Это оставшийся размер подцепочки, начиная с этой позиции. uint32_t subchunk1Size; // Для PCM = 1 (то есть, Линейное квантование). // Значения, отличающиеся от 1, обозначают некоторый формат сжатия. uint16_t audioFormat; // Количество каналов. Моно = 1, Стерео = 2 и т.д. uint16_t numChannels; // Частота дискретизации. 8000 Гц, 44100 Гц и т.д. uint32_t sampleRate; // sampleRate * numChannels * bitsPerSample/8 uint32_t byteRate; // numChannels * bitsPerSample/8 // Количество байт для одного сэмпла, включая все каналы. uint16_t blockAlign; // Так называемая "глубиная" или точность звучания. 8 бит, 16 бит и т.д. uint16_t bitsPerSample; // Подцепочка "data" содержит аудио-данные и их размер. // Содержит символы "data" // (0x64617461 в big-endian представлении) char subchunk2Id[4]; // numSamples * numChannels * bitsPerSample/8 // Количество байт в области данных. uint32_t subchunk2Size; // Далее следуют непосредственно Wav данные. }; /* ofstream str; str.open("test.wav", ofstream::out | fstream::binary); WavUtils::WAV_HEADER wh; memcpy(wh.chunkId, "RIFF", 4); wh.chunkSize=12036; memcpy(wh.format, "WAVE", 4); memcpy(wh.subchunk1Id, "fmt ", 4); wh.subchunk1Size=16; wh.audioFormat=1; wh.numChannels=1; wh.sampleRate= WavUtils::SAMPLE_RATE; wh.byteRate= WavUtils::SAMPLE_RATE*2; wh.blockAlign=2; wh.bitsPerSample=16; memcpy(wh.subchunk2Id, "data", 4); wh.subchunk2Size=24000; str.write((char*)&wh, sizeof(WavUtils::WAV_HEADER)); //float *af = a, *bf = b, *ae = a+50, *be=b+19; for (unsigned int i1 = 0; i1 != 1000; ++i1) for (unsigned int i = 0; i != 12; ++i) { str.write((char*)(a+i), 2); //cout << a[i] << endl; } str.close(); cout << "end!" << endl; */ }
[ "averov90@inbox.ru" ]
averov90@inbox.ru
a0b29776e796d43359e5bef03aa3e5bf20853038
db49fb8aa578da09d159d82fc216bee386c829d4
/src/MassSpringSystem.cpp
683446128dbbdb0d58e7041ad83c3591c68cc1c0
[]
no_license
sljlp/Mass-and-Spring-System
aa3376df5edd2610096fbbb217db90530cfd5dcb
f8094c61ff4774d7c88c00e8899247b26add9d26
refs/heads/master
2021-10-11T11:25:00.739688
2019-01-25T08:08:11
2019-01-25T08:08:11
null
0
0
null
null
null
null
ISO-8859-7
C++
false
false
5,015
cpp
#include "MassSpringSystem.h" #include <iostream> MassSpringSystem::MassSpringSystem(){} MassSpringSystem::~MassSpringSystem(){} MassPoint* MassSpringSystem::addMassPoint(double mass, Vector3d position,bool is_clamped) { MassPoint* point = new MassPoint(mass, position, is_clamped); points.push_back(point); return point; } Spring* MassSpringSystem::addSpring(double stiffness, double rest_length, MassPoint* point1, MassPoint* point2) { Spring* spring = new Spring(stiffness,rest_length,point1,point2); point1->addSpring(spring); point2->addSpring(spring); springs.push_back(spring); return spring; } void MassSpringSystem::updateRK4(double dt) { for (unsigned int i = 0; i < points.size(); i++) { if (points[i]->is_clamped) continue; points[i]->v1 = points[i]->velocity; points[i]->a1 = points[i]->getForce() / points[i]->mass; points[i]->v2 = points[i]->v1 + dt / 2.0*points[i]->a1; points[i]->xt = points[i]->position; } for (unsigned int i = 0; i < points.size(); i++) { if (points[i]->is_clamped) continue; points[i]->velocity = points[i]->v1+ dt / 2.0*points[i]->a1; points[i]->position = points[i]->xt+ dt / 2.0*points[i]->v1; } for (unsigned int i = 0; i < points.size(); i++) { if (points[i]->is_clamped) continue; points[i]->a2 = points[i]->getForce() / points[i]->mass; points[i]->v3 = points[i]->v1 + dt / 2.0*points[i]->a2; } for (unsigned int i = 0; i < points.size(); i++) { if (points[i]->is_clamped) continue; points[i]->velocity = points[i]->v1+ dt / 2.0*points[i]->a2; points[i]->position = points[i]->xt+ dt / 2.0*points[i]->v2; } for (unsigned int i = 0; i < points.size(); i++) { if (points[i]->is_clamped) continue; points[i]->a3 = points[i]->getForce() / points[i]->mass; points[i]->v4 = points[i]->v1 + dt * points[i]->a3; } for (unsigned int i = 0; i < points.size(); i++) { if (points[i]->is_clamped) continue; points[i]->velocity = points[i]->v1 + dt * points[i]->a3; points[i]->position = points[i]->xt + points[i]->v3*dt; } for (unsigned int i = 0; i < points.size(); i++) { if (points[i]->is_clamped) continue; points[i]->a4 = points[i]->getForce() / points[i]->mass; } for (unsigned int i = 0; i < points.size(); i++) { if (points[i]->is_clamped) continue; points[i]->velocity = points[i]->v1 + dt / 6.0*(points[i]->a1 + 2 * points[i]->a2 + 2 * points[i]->a3 + points[i]->a4); points[i]->position = points[i]->xt + dt / 6.0*(points[i]->v1 + 2 * points[i]->v2 + 2 * points[i]->v3 + points[i]->v4); } counter++; } void MassSpringSystem::update(double dt) { for (unsigned int i = 0; i < points.size(); i++) { if (points[i]->is_clamped) continue; points[i]->acceleration= points[i]->getForce() / points[i]->mass; points[i]->velocity += points[i]->acceleration * dt; } for (unsigned int i = 0; i < points.size(); i++) { if (points[i]->is_clamped) continue; points[i]->position += points[i]->velocity * dt; } counter++; } void MassSpringSystem::draw() { for (unsigned int i = 0; i < springs.size(); i++) { springs[i]->draw(); } } void MassSpringSystem::calculateEnergy() { tot_energy = 0; for (unsigned int i = 0; i < springs.size(); i++) { Vector3d dir = springs[i]->point1->position - springs[i]->point2->position; double distance = dir.norm(); double temp = 0.5 * springs[i]->stiffness*(distance - springs[i]->rest_length)*(distance - springs[i]->rest_length); tot_energy += temp; } for (unsigned int i = 0; i < points.size(); i++) { tot_energy += points[i]->mass*(9.8)*(points[i]->position(2)); } std::cout << tot_energy <<" "<<counter <<std::endl; } void MassSpringSystem::getQuasiStaticGD() { double old_energy; calculateEnergy(); do { old_energy = tot_energy; for (int i = 0; i < points.size(); i++) { if (points[i]->is_clamped) continue; points[i]->position = points[i]->position + points[i]->getForce()*0.0015;//ΜέΆΘΟΒ½΅ } calculateEnergy(); counter++; } while (abs(tot_energy - old_energy) > 0.005); } void MassSpringSystem::getQuasiStaticDlib() { Evaluate _evaluate(this); EvaluateGradient _evaluate_gradient(this); int clamped_count = 0; for (unsigned int i = 0; i < points.size(); i++) { if (points[i]->is_clamped) clamped_count++; } col_vector x((points.size() - clamped_count) * 3); int j = 0; for (unsigned int i = 0; i < points.size(); i++) { if (points[i]->is_clamped) continue; x(j) = points[i]->position(0); x(j+1) = points[i]->position(1); x(j+2) = points[i]->position(2); j += 3; } double min_energy = dlib::find_min(dlib::bfgs_search_strategy(), dlib::objective_delta_stop_strategy(0.01, 1000), _evaluate, _evaluate_gradient, x, 0.0); j = 0; for (int i = 0; i < points.size(); i++) { if (points[i]->is_clamped) continue; points[i]->position = Vector3d(x(j), x(j + 1), x(j + 2)); j += 3; } }
[ "noreply@github.com" ]
sljlp.noreply@github.com
57d5b8f2ac1fd2e6f0c050882213ad897c9e336a
41ff29c79207e6a34bb0ade2c8b6d6eaaf515c07
/general/Fritz3TShirtCannonRobot/OI.h
669009aa184f30473223fd7d6419dfa3b3b8cabb
[]
no_license
stevep001/RoboEagles
322f56a568b5acfa51478d1cd4ecfb8588a5902c
5c4a6afc67d3d9c554826bfb282708320511d110
refs/heads/master
2021-01-13T01:55:23.227079
2014-01-18T07:19:24
2014-01-18T07:19:24
null
0
0
null
null
null
null
UTF-8
C++
false
false
283
h
#ifndef OI_H #define OI_H #include "WPILib.h" class OI { private: Joystick *joystick; JoystickButton *fireButton; JoystickButton *fillButton; JoystickButton *aimUpButton; JoystickButton *aimDownButton; public: OI(); Joystick *getJoystick(); }; #endif
[ "steve@zpfe.com" ]
steve@zpfe.com
799e599c7be0715b39a7e90cc91215acd677ce3b
d0f501e9d14e52e415ab810b67a075ee8e2de28c
/C_P82e/C_P82e.cpp
e477b8c36711c34266ec8bc4cbfad21697e5375c
[]
no_license
Windmill-City/C_Exercise
c776ca38c5dcbcc934bf2a49712ff4f0fda1e106
5067ece98588a163b5801200f9bf17d42676919e
refs/heads/master
2022-11-07T07:41:55.844750
2020-06-18T15:43:30
2020-06-18T15:43:30
250,158,294
0
0
null
null
null
null
UTF-8
C++
false
false
1,019
cpp
// C_P82e.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> int main() { for (int y = 1; y <= 6; y++) { for (float x = 5.5; x <= 12.5; x += 0.5) { float i = 0; i = 2 + (y + 0.5 * x); printf("i:%0.2f x:%0.2f y:%d\n", i, x, y); } } } // 运行程序: Ctrl + F5 或调试 >“开始执行(不调试)”菜单 // 调试程序: F5 或调试 >“开始调试”菜单 // 入门使用技巧: // 1. 使用解决方案资源管理器窗口添加/管理文件 // 2. 使用团队资源管理器窗口连接到源代码管理 // 3. 使用输出窗口查看生成输出和其他消息 // 4. 使用错误列表窗口查看错误 // 5. 转到“项目”>“添加新项”以创建新的代码文件,或转到“项目”>“添加现有项”以将现有代码文件添加到项目 // 6. 将来,若要再次打开此项目,请转到“文件”>“打开”>“项目”并选择 .sln 文件
[ "1449182174@qq.com" ]
1449182174@qq.com
6ef9600205849089d83431a06c2575462309a15f
6ab07216eff0dfd45f6a5a1dd10c6cbd9c0e154d
/Utilities/MicronTrackerFiles/Collection.cpp
40e07f3eea318877bb4e3e88de85a6ce769508eb
[]
no_license
awiles/AIGS
e5956076fc8fdc7fc0dd7a42ac9ad7b0718ee7d6
2d6a72c77b5ab4f4934ffd4109fca71b7bdc76a2
refs/heads/master
2020-12-25T02:23:45.041112
2017-03-03T03:55:12
2017-03-03T03:55:12
2,820,245
2
4
null
2017-03-03T03:55:13
2011-11-21T13:59:32
C++
UTF-8
C++
false
false
1,846
cpp
/************************************************************** * * Micron Tracker: Example C++ wrapper and Multi-platform demo * * Written by: * Shahram Izadyar, Robarts Research Institute - London- Ontario , www.robarts.ca * Claudio Gatti, Claron Technology - Toronto -Ontario, www.clarontech.com * * Copyright Claron Technology 2000-2003 * ***************************************************************/ #include "Collection.h" Collection::Collection(int h) { // If a handle is already passed to this class, then use that handle and don't create a new one. if (h != 0) this->m_handle = h; else this->m_handle = Collection_New(); this->ownedByMe = TRUE; } /****************************/ /** Destructor */ Collection::~Collection() { if (this->m_handle != 0 && this->ownedByMe == true) Collection_Free(this->m_handle); } /****************************/ /** Add an item to the collection */ void Collection::add(int val) { Collection_Add(this->m_handle, val, 0); } /****************************/ /** Remove an item from the collection */ void Collection::remove(int idx) { Collection_Remove(this->m_handle, idx); } /****************************/ /** Return the count of the items in the collection */ int Collection::count() { int result = Collection_Count(m_handle); return result; } /****************************/ /** Returns the integer item of index idx in the collection */ int Collection::itemI(int idx) { int intResult = 0; double dblResult = 0; Collection_Item(this->m_handle, idx, &intResult, &dblResult); return intResult; } /****************************/ /** Returns the integer item of index idx in the collection */ double Collection::itemD(int idx) { int intResult = 0; double dblResult = 0; Collection_Item(this->m_handle, idx, &intResult, &dblResult); return dblResult; }
[ "awiles@ndigital.com" ]
awiles@ndigital.com
83a77183b18609d0027f1c07d0e217aeaca48f8e
4bea57e631734f8cb1c230f521fd523a63c1ff23
/projects/openfoam/rarefied-flows/impingment/sims/test/nozzle1/0.74/T
e8d8410f66819403c593a2f26d74f58f27272258
[]
no_license
andytorrestb/cfal
76217f77dd43474f6b0a7eb430887e8775b78d7f
730fb66a3070ccb3e0c52c03417e3b09140f3605
refs/heads/master
2023-07-04T01:22:01.990628
2021-08-01T15:36:17
2021-08-01T15:36:17
294,183,829
1
0
null
null
null
null
UTF-8
C++
false
false
14,308
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v1912 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "0.74"; object T; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 1 0 0 0]; internalField nonuniform List<scalar> 1900 ( 1 1 1 1 1 1 1 1 1.00003 1.00057 1 1 1 1 1 1 1 1 1.00004 1.0008 1 1 1 1 1 1 1 1 1.00005 1.00095 1 1 1 1 1 1 1 1 1.00004 1.0008 1 1 1 1 1 1 1 1 1.00003 1.00057 1.00242 1.00662 1.01187 1.01862 1.01908 1.00378 1.00969 1.01658 1.02295 1.02685 1.00433 1.0101 1.01647 1.0226 1.02646 1.00378 1.00969 1.01658 1.02295 1.02685 1.00242 1.00662 1.01187 1.01862 1.01908 1.04769 1.05273 1.05477 1.04933 1.04025 1.04521 1.05221 1.05488 1.05189 1.0421 1.04532 1.05246 1.05467 1.05271 1.04018 1.04521 1.05221 1.05488 1.05189 1.0421 1.04769 1.05273 1.05477 1.04933 1.04025 0.957339 0.874382 0.900726 0.920425 0.943837 0.967392 0.987233 0.997442 0.999826 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 1.005 0.908452 0.910418 0.920432 0.944 0.96741 0.98725 0.997443 0.999826 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 1.00264 0.929689 0.912828 0.9202 0.944094 0.967438 0.987253 0.997444 0.999826 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 1.005 0.908452 0.910418 0.920432 0.944 0.96741 0.98725 0.997443 0.999826 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 0.957339 0.874382 0.900726 0.920425 0.943837 0.967392 0.987233 0.997442 0.999826 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 0.815783 0.81307 0.880637 0.916646 0.942372 0.966749 0.986961 0.997403 0.999826 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 0.761156 0.766615 0.862592 0.909484 0.938412 0.964763 0.986226 0.997267 0.999817 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 0.754029 0.753247 0.853532 0.90319 0.934237 0.962574 0.985399 0.997093 0.999804 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 0.753236 0.746237 0.846915 0.897752 0.930752 0.960815 0.984756 0.99696 0.999794 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 0.751414 0.742012 0.842394 0.894267 0.928725 0.959874 0.984444 0.996902 0.99979 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 0.749736 0.740335 0.840651 0.893022 0.928073 0.959601 0.984366 0.99689 0.99979 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 0.749225 0.740059 0.840394 0.892848 0.92799 0.95957 0.984359 0.99689 0.99979 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 0.749187 0.740045 0.840384 0.892841 0.927987 0.959569 0.984359 0.99689 0.99979 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 0.749186 0.740045 0.840384 0.892841 0.927987 0.959569 0.984359 0.99689 0.99979 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 0.749186 0.740045 0.840384 0.892841 0.927987 0.959569 0.984359 0.99689 0.99979 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 0.749185 0.740044 0.84038 0.892836 0.927981 0.959562 0.98435 0.996881 0.999781 0.999988 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999988 0.999781 0.996881 0.98435 0.959562 0.927981 0.892836 0.84038 0.740044 0.749185 0.74909 0.739912 0.840166 0.892561 0.927655 0.959197 0.983959 0.996477 0.999375 0.999582 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999582 0.999375 0.996477 0.983959 0.959197 0.927655 0.892561 0.840166 0.739912 0.74909 0.747354 0.737908 0.837392 0.889329 0.924034 0.955294 0.979856 0.992276 0.995149 0.995354 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995354 0.995149 0.992276 0.979856 0.955294 0.924034 0.889329 0.837392 0.737908 0.747354 0.738362 0.728742 0.826012 0.876882 0.910688 0.941281 0.965323 0.977449 0.980238 0.980436 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980436 0.980238 0.977449 0.965323 0.941281 0.910688 0.876882 0.826012 0.728742 0.738362 0.718831 0.710283 0.804203 0.853821 0.886645 0.916435 0.939743 0.951386 0.954022 0.954204 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954204 0.954022 0.951386 0.939743 0.916435 0.886645 0.853821 0.804203 0.710283 0.718831 0.693541 0.687547 0.777227 0.82536 0.857465 0.886495 0.909009 0.92005 0.922477 0.922638 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.922638 0.922477 0.92005 0.909009 0.886495 0.857465 0.82536 0.777227 0.687547 0.693541 0.670506 0.663607 0.748093 0.794789 0.826065 0.854352 0.875879 0.886113 0.88826 0.888394 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888394 0.88826 0.886113 0.875879 0.854352 0.826065 0.794789 0.748093 0.663607 0.670506 0.634606 0.63022 0.7074 0.748593 0.778421 0.805248 0.825521 0.834789 0.836604 0.836706 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836706 0.836604 0.834789 0.825521 0.805248 0.778421 0.748593 0.7074 0.63022 0.634606 0.569977 0.560091 0.628623 0.662067 0.686475 0.708998 0.726028 0.733395 0.734683 0.734745 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734745 0.734683 0.733395 0.726028 0.708998 0.686475 0.662067 0.628623 0.560091 0.569977 0.581099 0.569735 0.631762 0.667861 0.691628 0.716566 0.734417 0.741488 0.742563 0.742605 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742605 0.742563 0.741488 0.734417 0.716566 0.691628 0.667861 0.631762 0.569735 0.581099 0.581099 0.569735 0.631762 0.667861 0.691628 0.716566 0.734417 0.741488 0.742563 0.742605 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742606 0.742605 0.742563 0.741488 0.734417 0.716566 0.691628 0.667861 0.631762 0.569735 0.581099 0.569977 0.560091 0.628623 0.662067 0.686475 0.708998 0.726028 0.733395 0.734683 0.734745 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734746 0.734745 0.734683 0.733395 0.726028 0.708998 0.686475 0.662067 0.628623 0.560091 0.569977 0.634606 0.63022 0.7074 0.748593 0.778421 0.805248 0.825521 0.834789 0.836604 0.836706 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836707 0.836706 0.836604 0.834789 0.825521 0.805248 0.778421 0.748593 0.7074 0.63022 0.634606 0.670506 0.663607 0.748093 0.794789 0.826065 0.854352 0.875879 0.886113 0.88826 0.888394 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888396 0.888394 0.88826 0.886113 0.875879 0.854352 0.826065 0.794789 0.748093 0.663607 0.670506 0.693541 0.687547 0.777227 0.82536 0.857465 0.886495 0.909009 0.92005 0.922477 0.922638 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.92264 0.922638 0.922477 0.92005 0.909009 0.886495 0.857465 0.82536 0.777227 0.687547 0.693541 0.718831 0.710283 0.804203 0.853821 0.886645 0.916435 0.939743 0.951386 0.954022 0.954204 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954207 0.954204 0.954022 0.951386 0.939743 0.916435 0.886645 0.853821 0.804203 0.710283 0.718831 0.738362 0.728742 0.826012 0.876882 0.910688 0.941281 0.965323 0.977449 0.980238 0.980436 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980439 0.980436 0.980238 0.977449 0.965323 0.941281 0.910688 0.876882 0.826012 0.728742 0.738362 0.747354 0.737908 0.837392 0.889329 0.924034 0.955294 0.979856 0.992276 0.995149 0.995354 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995357 0.995354 0.995149 0.992276 0.979856 0.955294 0.924034 0.889329 0.837392 0.737908 0.747354 0.74909 0.739912 0.840166 0.892561 0.927655 0.959197 0.983959 0.996477 0.999375 0.999582 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999585 0.999582 0.999375 0.996477 0.983959 0.959197 0.927655 0.892561 0.840166 0.739912 0.74909 0.749185 0.740044 0.84038 0.892836 0.927981 0.959562 0.98435 0.996881 0.999781 0.999988 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999991 0.999988 0.999781 0.996881 0.98435 0.959562 0.927981 0.892836 0.84038 0.740044 0.749185 0.749186 0.740045 0.840384 0.892841 0.927987 0.959569 0.984359 0.99689 0.99979 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 0.749186 0.740045 0.840384 0.892841 0.927987 0.959569 0.984359 0.99689 0.99979 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 0.749187 0.740045 0.840384 0.892841 0.927987 0.959569 0.984359 0.99689 0.99979 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 0.749225 0.740059 0.840394 0.892848 0.92799 0.95957 0.984359 0.99689 0.99979 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 0.749736 0.740335 0.840651 0.893022 0.928073 0.959601 0.984366 0.99689 0.99979 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 0.751414 0.742012 0.842394 0.894267 0.928725 0.959874 0.984444 0.996902 0.99979 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 0.753236 0.746237 0.846915 0.897752 0.930752 0.960815 0.984756 0.99696 0.999794 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 0.754029 0.753247 0.853532 0.90319 0.934237 0.962574 0.985399 0.997093 0.999804 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 0.761156 0.766615 0.862592 0.909484 0.938412 0.964763 0.986226 0.997267 0.999817 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 0.815783 0.81307 0.880637 0.916646 0.942372 0.966749 0.986961 0.997403 0.999826 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999997 0.99979 0.99689 0.984359 0.959569 0.927987 0.892841 0.840384 0.740045 0.749186 ) ; boundaryField { inlet { type fixedValue; value uniform 1; } outlet { type zeroGradient; } obstacle { type zeroGradient; } empty { type empty; } } // ************************************************************************* //
[ "andytorrestb@gmail.com" ]
andytorrestb@gmail.com
e524319375d460874cabbea3b7ddfaf7e8d04637
794894f3cac99b0753d3addf95f44df5421d62d3
/src/miner.cpp
228c416c3c7e84402056ed7146ec4d9ac17f490a
[ "MIT" ]
permissive
newarroncoin/newarroncoin
aad211b5bacf402aaf2538d658c7f5d49d3a0ccb
8e487c2b6d474d9b92f08c89d467193f40782892
refs/heads/master
2021-01-19T00:13:42.868570
2017-08-17T06:21:31
2017-08-17T06:21:31
100,567,589
0
0
null
null
null
null
UTF-8
C++
false
false
22,200
cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2013 The NovaCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "txdb.h" #include "miner.h" #include "kernel.h" #include "core.h" using namespace std; ////////////////////////////////////////////////////////////////////////////// // // BitcoinMiner // int static FormatHashBlocks(void* pbuffer, unsigned int len) { unsigned char* pdata = (unsigned char*) pbuffer; unsigned int blocks = 1 + ((len + 8) / 64); unsigned char* pend = pdata + 64 * blocks; memset(pdata + len, 0, 64 * blocks - len); pdata[len] = 0x80; unsigned int bits = len * 8; pend[-1] = (bits >> 0) & 0xff; pend[-2] = (bits >> 8) & 0xff; pend[-3] = (bits >> 16) & 0xff; pend[-4] = (bits >> 24) & 0xff; return blocks; } static const unsigned int pSHA256InitState[8] = {0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19}; void SHA256Transform(void* pstate, void* pinput, const void* pinit) { SHA256_CTX ctx; unsigned char data[64]; SHA256_Init(&ctx); for (int i = 0; i < 16; i++) ((uint32_t*)data)[i] = ByteReverse(((uint32_t*)pinput)[i]); for (int i = 0; i < 8; i++) ctx.h[i] = ((uint32_t*)pinit)[i]; SHA256_Update(&ctx, data, sizeof(data)); for (int i = 0; i < 8; i++) ((uint32_t*)pstate)[i] = ctx.h[i]; } // Some explaining would be appreciated class COrphan { public: CTransaction* ptx; set<uint256> setDependsOn; double dPriority; double dFeePerKb; int64_t nFee; COrphan(CTransaction* ptxIn) { ptx = ptxIn; dPriority = dFeePerKb = 0; nFee = 0; } COrphan(double dPriority_, double dFeePerKb_, int64_t nFee_, CTransaction* ptxIn) { dPriority = dPriority_; dFeePerKb = dFeePerKb_; nFee = nFee_; ptx = ptxIn; } void print() const { LogPrintf("COrphan(hash=%s, dPriority=%.1f, dFeePerKb=%.1f)\n", ptx->GetHash().ToString().substr(0,10).c_str(), dPriority, dFeePerKb); BOOST_FOREACH(uint256 hash, setDependsOn) LogPrintf(" setDependsOn %s\n", hash.ToString().substr(0,10).c_str()); } }; uint64_t nLastBlockTx = 0; uint64_t nLastBlockSize = 0; int64_t nLastCoinStakeSearchInterval = 0; // We want to sort transactions by priority and fee, so: typedef boost::tuple<double, double, int64_t, CTransaction*> TxPriority; class TxPriorityCompare { bool byFee; public: TxPriorityCompare(bool _byFee) : byFee(_byFee) { } bool operator()(const TxPriority& a, const TxPriority& b) { if (byFee) { if (a.get<1>() == b.get<1>()) return a.get<0>() < b.get<0>(); return a.get<1>() < b.get<1>(); } else { if (a.get<0>() == b.get<0>()) return a.get<1>() < b.get<1>(); return a.get<0>() < b.get<0>(); } } }; // CreateNewBlock: create new block (without proof-of-work/proof-of-stake) CBlock* CreateNewBlock(CWallet* pwallet, bool fProofOfStake, int64_t* pFees) { // Create new block auto_ptr<CBlock> pblock(new CBlock()); if (!pblock.get()) return NULL; CBlockIndex* pindexPrev = pindexBest; // Create coinbase tx CTransaction txNew; txNew.vin.resize(1); txNew.vin[0].prevout.SetNull(); txNew.vout.resize(1); int nHeight = pindexPrev->nHeight+1; // height of new block if (!Params().IsProtocolV2(nHeight)) // generate old version until protocolV2 pblock->nVersion = 6; if (!fProofOfStake) { CReserveKey reservekey(pwallet); CPubKey pubkey; pwallet->NewKeyFromAccount(pubkey); txNew.vout[0].scriptPubKey.SetDestination(pubkey.GetID()); } else { // Height first in coinbase required for block.version=2 txNew.vin[0].scriptSig = (CScript() << nHeight) + COINBASE_FLAGS; assert(txNew.vin[0].scriptSig.size() <= 100); txNew.vout[0].SetEmpty(); }; // Add our coinbase tx as first transaction pblock->vtx.push_back(txNew); pblock->nBits = GetNextTargetRequired(pindexPrev, fProofOfStake); // Collect memory pool transactions into the block int64_t nFees = 0; { LOCK2(cs_main, mempool.cs); CTxDB txdb("r"); // Priority order to process transactions list<COrphan> vOrphan; // list memory doesn't move map<uint256, vector<COrphan*> > mapDependers; // This vector will be sorted into a priority queue: vector<TxPriority> vecPriority; vecPriority.reserve(mempool.mapTx.size()); for (map<uint256, CTransaction>::iterator mi = mempool.mapTx.begin(); mi != mempool.mapTx.end(); ++mi) { CTransaction& tx = (*mi).second; if (tx.IsCoinBase() || tx.IsCoinStake() || !tx.IsFinal()) continue; COrphan* porphan = NULL; double dPriority = 0; int64_t nTotalIn = 0; bool fMissingInputs = false; BOOST_FOREACH(const CTxIn& txin, tx.vin) { if (tx.nVersion == ANON_TXN_VERSION && txin.IsAnonInput()) // anon inputs are verified later in CheckAnonInputs() continue; // Read prev transaction CTransaction txPrev; CTxIndex txindex; if (!txPrev.ReadFromDisk(txdb, txin.prevout, txindex)) { // This should never happen; all transactions in the memory // pool should connect to either transactions in the chain // or other transactions in the memory pool. if (!mempool.mapTx.count(txin.prevout.hash)) { LogPrintf("ERROR: mempool transaction missing input\n"); if (fDebug) assert("mempool transaction missing input" == 0); fMissingInputs = true; if (porphan) vOrphan.pop_back(); break; }; // Has to wait for dependencies if (!porphan) { // Use list for automatic deletion vOrphan.push_back(COrphan(&tx)); porphan = &vOrphan.back(); }; mapDependers[txin.prevout.hash].push_back(porphan); porphan->setDependsOn.insert(txin.prevout.hash); nTotalIn += mempool.mapTx[txin.prevout.hash].vout[txin.prevout.n].nValue; continue; }; int64_t nValueIn = txPrev.vout[txin.prevout.n].nValue; nTotalIn += nValueIn; int nConf = txindex.GetDepthInMainChainFromIndex(); dPriority += (double)nValueIn * nConf; }; if (tx.nVersion == ANON_TXN_VERSION) { int64_t nSumAnon; bool fInvalid; if (!tx.CheckAnonInputs(txdb, nSumAnon, fInvalid, false)) { if (fInvalid) LogPrintf("CreateNewBlock() : CheckAnonInputs found invalid tx %s\n", tx.GetHash().ToString().substr(0,10).c_str()); fMissingInputs = true; continue; }; nTotalIn += nSumAnon; }; if (fMissingInputs) continue; // Priority is sum(valuein * age) / txsize unsigned int nTxSize = ::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION); dPriority /= nTxSize; // This is a more accurate fee-per-kilobyte than is used by the client code, because the // client code rounds up the size to the nearest 1K. That's good, because it gives an // incentive to create smaller transactions. int64_t nFee = nTotalIn-tx.GetValueOut(); double dFeePerKb = double(nFee) / (double(nTxSize)/1000.0); if (porphan) { porphan->dPriority = dPriority; porphan->dFeePerKb = dFeePerKb; } else { vecPriority.push_back(TxPriority(dPriority, dFeePerKb, nFee, &(*mi).second)); }; }; // Collect transactions into block map<uint256, CTxIndex> mapTestPool; uint64_t nBlockSize = 1000; uint64_t nBlockTx = 0; int nBlockSigOps = 100; bool fSortedByFee = (nBlockPrioritySize <= 0); TxPriorityCompare comparer(fSortedByFee); std::make_heap(vecPriority.begin(), vecPriority.end(), comparer); while (!vecPriority.empty()) { // Take highest priority transaction off the priority queue: double dPriority = vecPriority.front().get<0>(); double dFeePerKb = vecPriority.front().get<1>(); int64_t nFee = vecPriority.front().get<2>(); CTransaction& tx = *(vecPriority.front().get<3>()); std::pop_heap(vecPriority.begin(), vecPriority.end(), comparer); vecPriority.pop_back(); // Size limits unsigned int nTxSize = ::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION); if (nBlockSize + nTxSize >= nBlockMaxSize) continue; // Legacy limits on sigOps: unsigned int nTxSigOps = tx.GetLegacySigOpCount(); if (nBlockSigOps + nTxSigOps >= MAX_BLOCK_SIGOPS) continue; // Timestamp limit if (tx.nTime > GetAdjustedTime() || (fProofOfStake && tx.nTime > pblock->vtx[0].nTime)) continue; // Transaction fee int64_t nMinFee = tx.GetMinFee(nBlockSize, GMF_BLOCK); // will get GMF_ANON if tx.nVersion == ANON_TXN_VERSION // Skip free transactions if we're past the minimum block size: if (fSortedByFee && (dFeePerKb < nMinTxFee) && (nBlockSize + nTxSize >= nBlockMinSize)) continue; // Prioritize by fee once past the priority size or we run out of high-priority // transactions: if (!fSortedByFee && ((nBlockSize + nTxSize >= nBlockPrioritySize) || (dPriority < COIN * 144 / 250))) { fSortedByFee = true; comparer = TxPriorityCompare(fSortedByFee); std::make_heap(vecPriority.begin(), vecPriority.end(), comparer); }; // Connecting shouldn't fail due to dependency on other memory pool transactions // because we're already processing them in order of dependency map<uint256, CTxIndex> mapTestPoolTmp(mapTestPool); MapPrevTx mapInputs; bool fInvalid; if (!tx.FetchInputs(txdb, mapTestPoolTmp, false, true, mapInputs, fInvalid)) continue; //int64_t nTxFees = tx.GetValueIn(mapInputs)-tx.GetValueOut(); // -- Avoid calling CheckAnonInputs twice, use nFee from vecPriority if (nFee == 0) // tx came from COrphan { int64_t nTxFees = tx.GetValueIn(mapInputs)-tx.GetValueOut(); if (tx.nVersion == ANON_TXN_VERSION) { int64_t nSumAnon; bool fInvalid; if (!tx.CheckAnonInputs(txdb, nSumAnon, fInvalid, false)) { if (fInvalid) LogPrintf("CreateNewBlock() : CheckAnonInputs found invalid tx %s\n", tx.GetHash().ToString().substr(0,10).c_str()); continue; }; nTxFees += nSumAnon; }; nFee = nTxFees; }; // TODO: must this be done twice!? // Need to look at COrphan if (nFee < nMinFee) continue; nTxSigOps += tx.GetP2SHSigOpCount(mapInputs); if (nBlockSigOps + nTxSigOps >= MAX_BLOCK_SIGOPS) continue; // Note that flags: we don't want to set mempool/IsStandard() // policy here, but we still have to ensure that the block we // create only contains transactions that are valid in new blocks. if (!tx.ConnectInputs(txdb, mapInputs, mapTestPoolTmp, CDiskTxPos(1,1,1), pindexPrev, false, true, MANDATORY_SCRIPT_VERIFY_FLAGS)) continue; mapTestPoolTmp[tx.GetHash()] = CTxIndex(CDiskTxPos(1,1,1), tx.vout.size()); swap(mapTestPool, mapTestPoolTmp); // Added pblock->vtx.push_back(tx); nBlockSize += nTxSize; ++nBlockTx; nBlockSigOps += nTxSigOps; nFees += nFee; if (fDebug && GetBoolArg("-printpriority")) { LogPrintf("priority %.1f feeperkb %.1f txid %s\n", dPriority, dFeePerKb, tx.GetHash().ToString().c_str()); }; // Add transactions that depend on this one to the priority queue uint256 hash = tx.GetHash(); if (mapDependers.count(hash)) { BOOST_FOREACH(COrphan* porphan, mapDependers[hash]) { if (!porphan->setDependsOn.empty()) { porphan->setDependsOn.erase(hash); if (porphan->setDependsOn.empty()) { vecPriority.push_back(TxPriority(porphan->dPriority, porphan->dFeePerKb, porphan->nFee, porphan->ptx)); std::push_heap(vecPriority.begin(), vecPriority.end(), comparer); }; }; }; }; }; nLastBlockTx = nBlockTx; nLastBlockSize = nBlockSize; if (fDebug && GetBoolArg("-printpriority")) LogPrintf("CreateNewBlock(): total size %u\n", nBlockSize); if (!fProofOfStake) pblock->vtx[0].vout[0].nValue = Params().GetProofOfWorkReward(nHeight, nFees); if (pFees) *pFees = nFees; // Fill in header pblock->hashPrevBlock = pindexPrev->GetBlockHash(); pblock->nTime = max(pindexPrev->GetPastTimeLimit()+1, pblock->GetMaxTransactionTime()); if (!fProofOfStake) pblock->UpdateTime(pindexPrev); pblock->nNonce = 0; } return pblock.release(); } void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int& nExtraNonce) { // Update nExtraNonce static uint256 hashPrevBlock; if (hashPrevBlock != pblock->hashPrevBlock) { nExtraNonce = 0; hashPrevBlock = pblock->hashPrevBlock; }; ++nExtraNonce; unsigned int nHeight = pindexPrev->nHeight+1; // Height first in coinbase required for block.version=2 pblock->vtx[0].vin[0].scriptSig = (CScript() << nHeight << CBigNum(nExtraNonce)) + COINBASE_FLAGS; assert(pblock->vtx[0].vin[0].scriptSig.size() <= 100); pblock->hashMerkleRoot = pblock->BuildMerkleTree(); } void FormatHashBuffers(CBlock* pblock, char* pmidstate, char* pdata, char* phash1) { // // Pre-build hash buffers // struct { struct unnamed2 { int nVersion; uint256 hashPrevBlock; uint256 hashMerkleRoot; unsigned int nTime; unsigned int nBits; unsigned int nNonce; } block; unsigned char pchPadding0[64]; uint256 hash1; unsigned char pchPadding1[64]; } tmp; memset(&tmp, 0, sizeof(tmp)); tmp.block.nVersion = pblock->nVersion; tmp.block.hashPrevBlock = pblock->hashPrevBlock; tmp.block.hashMerkleRoot = pblock->hashMerkleRoot; tmp.block.nTime = pblock->nTime; tmp.block.nBits = pblock->nBits; tmp.block.nNonce = pblock->nNonce; FormatHashBlocks(&tmp.block, sizeof(tmp.block)); FormatHashBlocks(&tmp.hash1, sizeof(tmp.hash1)); // Byte swap all the input buffer for (unsigned int i = 0; i < sizeof(tmp)/4; i++) ((unsigned int*)&tmp)[i] = ByteReverse(((unsigned int*)&tmp)[i]); // Precalc the first half of the first hash, which stays constant SHA256Transform(pmidstate, &tmp.block, pSHA256InitState); memcpy(pdata, &tmp.block, 128); memcpy(phash1, &tmp.hash1, 64); } bool CheckWork(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey) { uint256 hashBlock = pblock->GetHash(); uint256 hashTarget = CBigNum().SetCompact(pblock->nBits).getuint256(); if(!pblock->IsProofOfWork()) return error("CheckWork() : %s is not a proof-of-work block", hashBlock.GetHex().c_str()); if (hashBlock > hashTarget) return error("CheckWork() : proof-of-work not meeting target"); //// debug print LogPrintf("CheckWork() : new proof-of-work block found \n hash: %s \ntarget: %s\n", hashBlock.GetHex().c_str(), hashTarget.GetHex().c_str()); pblock->print(); LogPrintf("generated %s\n", FormatMoney(pblock->vtx[0].vout[0].nValue).c_str()); // Found a solution { LOCK(cs_main); if (pblock->hashPrevBlock != hashBestChain) return error("CheckWork() : generated block is stale"); // Remove key from key pool reservekey.KeepKey(); // Track how many getdata requests this block gets { LOCK(wallet.cs_wallet); wallet.mapRequestCount[hashBlock] = 0; } // Process this block the same as if we had received it from another node if (!ProcessBlock(NULL, pblock, hashBlock)) return error("CheckWork() : ProcessBlock, block not accepted"); } return true; } bool CheckStake(CBlock* pblock, CWallet& wallet) { uint256 proofHash = 0, hashTarget = 0; uint256 hashBlock = pblock->GetHash(); if (!pblock->IsProofOfStake()) return error("CheckStake() : %s is not a proof-of-stake block", hashBlock.GetHex().c_str()); std::map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.find(pblock->hashPrevBlock); if (mi == mapBlockIndex.end()) return error("CheckStake() : %s prev block not found: %s.", hashBlock.GetHex().c_str(), pblock->hashPrevBlock.GetHex().c_str()); // verify hash target and signature of coinstake tx if (!CheckProofOfStake(mi->second, pblock->vtx[1], pblock->nBits, proofHash, hashTarget)) return error("CheckStake() : proof-of-stake checking failed"); //// debug print LogPrintf("CheckStake() : new proof-of-stake block found \n hash: %s \nproofhash: %s \ntarget: %s\n", hashBlock.GetHex().c_str(), proofHash.GetHex().c_str(), hashTarget.GetHex().c_str()); pblock->print(); LogPrintf("out %s\n", FormatMoney(pblock->vtx[1].GetValueOut()).c_str()); // Found a solution { LOCK(cs_main); if (pblock->hashPrevBlock != hashBestChain) return error("CheckStake() : generated block is stale"); // Track how many getdata requests this block gets { LOCK(wallet.cs_wallet); wallet.mapRequestCount[hashBlock] = 0; } // Process this block the same as if we had received it from another node if (!ProcessBlock(NULL, pblock, hashBlock)) return error("CheckStake() : ProcessBlock, block not accepted"); } return true; } void ThreadStakeMiner(CWallet *pwallet) { SetThreadPriority(THREAD_PRIORITY_LOWEST); bool fTryToSync = true; int64_t nTimeLastStake = 0; while (true) { boost::this_thread::interruption_point(); while (pwallet->IsLocked()) { fIsStaking = false; MilliSleep(2000); boost::this_thread::interruption_point(); }; while (vNodes.empty() || IsInitialBlockDownload()) { fIsStaking = false; fTryToSync = true; if (fDebugPoS) LogPrintf("StakeMiner() IsInitialBlockDownload\n"); MilliSleep(2000); boost::this_thread::interruption_point(); }; if (fTryToSync) { fTryToSync = false; if (vNodes.size() < 8 || nBestHeight < GetNumBlocksOfPeers()) { fIsStaking = false; if (fDebugPoS) LogPrintf("StakeMiner() TryToSync\n"); MilliSleep(60000); continue; }; }; if (nBestHeight < GetNumBlocksOfPeers()-1) { fIsStaking = false; if (fDebugPoS) LogPrintf("StakeMiner() nBestHeight < GetNumBlocksOfPeers()\n"); MilliSleep(nMinerSleep * 4); continue; }; if (nMinStakeInterval > 0 && nTimeLastStake + (int64_t)nMinStakeInterval > GetTime()) { if (fDebug) LogPrintf("StakeMiner() Rate limited to 1 / %d seconds.\n", nMinStakeInterval); MilliSleep(nMinStakeInterval * 500); // nMinStakeInterval / 2 seconds continue; }; // // Create new block // int64_t nFees; auto_ptr<CBlock> pblock(CreateNewBlock(pwallet, true, &nFees)); if (!pblock.get()) return; fIsStaking = true; // Trying to sign a block if (pblock->SignBlock(*pwallet, nFees)) { SetThreadPriority(THREAD_PRIORITY_NORMAL); if (CheckStake(pblock.get(), *pwallet)) nTimeLastStake = GetTime(); SetThreadPriority(THREAD_PRIORITY_LOWEST); }; MilliSleep(nMinerSleep); }; }
[ "820421292@qq.com" ]
820421292@qq.com
34195b4d12ed13019eef7b927498e6f51aa14fcc
b8fb33128e8d2f8abbcbf859dd8509908ec6335b
/FUnction overloading/functionoverloading using class.cpp
cc92fb3c9c4ecb65984e13eb9a56c4d9bf5473a3
[]
no_license
Yogesh070/C-
f77553a9435d201bdc27dfbef1665fb5ab36e264
3da09ac8704dc5f9a4799524bdebf6c025d783c6
refs/heads/master
2020-06-26T21:25:54.314258
2019-09-16T15:08:11
2019-09-16T15:08:11
199,761,699
0
0
null
null
null
null
UTF-8
C++
false
false
804
cpp
#include <iostream> #include <conio.h> #define pi 3.14 using namespace std; class area{ float areas; public: void area_51(int a , int b); void area_51(double l, double c); void area_51(double r); }; void area :: area_51(int a, int b) { areas=a*b; cout<<"area of rectangle="<<areas<<endl; } void area :: area_51(double l, double c) { areas=(l*c)/2; cout<<"area of triangle="<<areas<<endl; } void area :: area_51(double r) { areas=pi*r*r; cout<<"area of circle="<<areas<<endl; } main() { int a,b; double l,c,r; area obj; cout<<"enter the lenght and breath of rectangle"<<endl; cin>>a>>b; obj.area_51(a,b); cout<<"enter the lenght and height of triangle"<<endl; cin>>l>>c; obj.area_51(l,c); cout<<"eneter the radius of circle"<<endl; cin>>r; obj.area_51(r); }
[ "46161212+Yogesh070@users.noreply.github.com" ]
46161212+Yogesh070@users.noreply.github.com
7f116499865e5f5585c555d81fcfd0f5eec75730
8ab4d1ac3e46c132530a5f37595b2d28fd5e394b
/source/extensions/filters/http/jwt_authn/jwks_async_fetcher.h
0d6247394ebac194104db6f2e4cffb9fc20446ef
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
apurvsibal/envoy
1a4ac01f214320d78fd0a7981e0141590d19383b
4533ea1897c278477836c72ad5a124148aff4d10
refs/heads/main
2023-05-27T23:36:25.262312
2021-06-18T21:45:11
2021-06-18T21:45:11
378,596,727
2
0
Apache-2.0
2021-06-20T08:35:17
2021-06-20T08:35:17
null
UTF-8
C++
false
false
2,911
h
#pragma once #include <chrono> #include "envoy/extensions/filters/http/jwt_authn/v3/config.pb.h" #include "envoy/server/factory_context.h" #include "source/common/common/logger.h" #include "source/common/init/target_impl.h" #include "source/extensions/filters/http/common/jwks_fetcher.h" #include "source/extensions/filters/http/jwt_authn/stats.h" namespace Envoy { namespace Extensions { namespace HttpFilters { namespace JwtAuthn { /** * CreateJwksFetcherCb is a callback interface for creating a JwksFetcher instance. */ using CreateJwksFetcherCb = std::function<Common::JwksFetcherPtr(Upstream::ClusterManager&)>; /** * JwksDoneFetched is a callback interface to set a Jwks when fetch is done. */ using JwksDoneFetched = std::function<void(google::jwt_verify::JwksPtr&& jwks)>; // This class handles fetching Jwks asynchronously. // It will be no-op if async_fetch is not enabled. // At its constructor, it will start to fetch Jwks, register with init_manager if not fast_listener. // and handle fetching response. When cache is expired, it will fetch again. // When a Jwks is fetched, done_fn is called to set the Jwks. class JwksAsyncFetcher : public Logger::Loggable<Logger::Id::jwt>, public Common::JwksFetcher::JwksReceiver { public: JwksAsyncFetcher(const envoy::extensions::filters::http::jwt_authn::v3::RemoteJwks& remote_jwks, Server::Configuration::FactoryContext& context, CreateJwksFetcherCb fetcher_fn, JwtAuthnFilterStats& stats, JwksDoneFetched done_fn); // Get the remote Jwks cache duration. static std::chrono::seconds getCacheDuration(const envoy::extensions::filters::http::jwt_authn::v3::RemoteJwks& remote_jwks); private: // Fetch the Jwks void fetch(); // Handle fetch done. void handleFetchDone(); // Override the functions from Common::JwksFetcher::JwksReceiver void onJwksSuccess(google::jwt_verify::JwksPtr&& jwks) override; void onJwksError(Failure reason) override; // the remote Jwks config const envoy::extensions::filters::http::jwt_authn::v3::RemoteJwks& remote_jwks_; // the factory context Server::Configuration::FactoryContext& context_; // the jwks fetcher creator function const CreateJwksFetcherCb create_fetcher_fn_; // stats JwtAuthnFilterStats& stats_; // the Jwks done function. const JwksDoneFetched done_fn_; // The Jwks fetcher object Common::JwksFetcherPtr fetcher_; // The cache duration. const std::chrono::seconds cache_duration_; // The timer to trigger fetch due to cache duration. Envoy::Event::TimerPtr cache_duration_timer_; // The init target. std::unique_ptr<Init::TargetImpl> init_target_; // Used in logs. const std::string debug_name_; }; using JwksAsyncFetcherPtr = std::unique_ptr<JwksAsyncFetcher>; } // namespace JwtAuthn } // namespace HttpFilters } // namespace Extensions } // namespace Envoy
[ "noreply@github.com" ]
apurvsibal.noreply@github.com
0d085c4aef95ed9070c5beb83a45227debd65d70
27e84530882e5a5513fc0d91ed83d1d938742e7b
/Inicio.h
483353afcf1f2e079a11a081f59b061fab49bb7d
[]
no_license
jsalvag/ConsultorioOdontologico
40cff7080ca5679b56a62287fba9ced7e9316b9d
2aab07d1a5811b8b092c2a330f8208420aae1a29
refs/heads/master
2021-01-19T08:33:24.077245
2013-11-03T16:23:52
2013-11-03T16:23:52
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,093
h
//--------------------------------------------------------------------------- #ifndef InicioH #define InicioH //--------------------------------------------------------------------------- #include <Classes.hpp> #include <Controls.hpp> #include <StdCtrls.hpp> #include <Forms.hpp> #include <Menus.hpp> #include <ExtCtrls.hpp> #include <ComCtrls.hpp> #include <Mask.hpp> //--------------------------------------------------------------------------- class TForm1 : public TForm { __published: // IDE-managed Components TMainMenu *MainMenu1; TMenuItem *Archivo1; TMenuItem *Salir1; TMenuItem *Pcientes1; TMenuItem *Ingresar1; TMenuItem *Lista1; TMenuItem *Citas1; TMenuItem *Ingresar2; TMenuItem *Buscar1; TMenuItem *Reportes1; TMenuItem *Citasdelda1; TMenuItem *Buscarcitas1; TMenuItem *Citaspormes1; TMenuItem *Citasporedad1; TMenuItem *Estadisticas1; TMenuItem *Promedioanual1; TMenuItem *Promediosemanal1; TPanel *Panel1; TButton *Button1; TLabel *Label1; TMonthCalendar *MonthCalendar1; TLabel *Label2; TComboBox *ComboBox1; TLabel *Label3; TEdit *Edit1; TLabel *Label4; TMemo *Memo1; TLabel *Label5; TLabel *ci; TLabel *Label7; TLabel *ed; TLabel *Label9; TLabel *sex; TLabel *Label11; TLabel *tlf; TLabel *Label13; TLabel *dir; TPanel *Panel2; TLabel *Label6; TGroupBox *GroupBox1; TLabel *Label8; TButton *Button2; TLabel *Label10; TLabel *Label12; TLabel *Label14; TLabel *Label15; TLabel *Label16; TLabel *Label17; TLabel *Label18; TLabel *Label19; TLabel *Label20; TLabel *Label21; TMemo *Memo2; TListBox *ListBox1; TEdit *MaskEdit1; void __fastcall Salir1Click(TObject *Sender); void __fastcall Ingresar1Click(TObject *Sender); void __fastcall Lista1Click(TObject *Sender); void __fastcall Ingresar2Click(TObject *Sender); void __fastcall Button1Click(TObject *Sender); void __fastcall MonthCalendar1Click(TObject *Sender); void __fastcall ComboBox1Change(TObject *Sender); void __fastcall Buscar1Click(TObject *Sender); void __fastcall Button2Click(TObject *Sender); void __fastcall Citasdelda1Click(TObject *Sender); void __fastcall Buscarcitas1Click(TObject *Sender); void __fastcall Citaspormes1Click(TObject *Sender); void __fastcall Citasporedad1Click(TObject *Sender); void __fastcall Promedioanual1Click(TObject *Sender); private: // User declarations public: // User declarations __fastcall TForm1(TComponent* Owner); }; //--------------------------------------------------------------------------- extern PACKAGE TForm1 *Form1; //--------------------------------------------------------------------------- #endif
[ "jsalvag@gmail.com" ]
jsalvag@gmail.com
bc9c3d2e029ce6961574cf95a6da8299d4a329cd
7fa23b0e02e16ba51433353d409000ed91442225
/TestHarness.cpp
0f0dac71278b31347cbe9d1cf587256a17490e3c
[ "Apache-2.0" ]
permissive
orb1t-ua/WindowingSystem
272fc95ccaf897e82567fd5842537f1b21b2193a
34d24ab6f4531df4d1ec335fd0f14dcf2bf52b99
refs/heads/master
2022-01-28T13:23:06.171735
2019-01-07T07:17:49
2019-01-07T07:17:49
null
0
0
null
null
null
null
UTF-8
C++
false
false
22,774
cpp
// // Copyright 1999-2002 Jeff Bush // // 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. // // // Simulate a mouse driver, keyboard driver, and raw frame buffer. // #include <winsock2.h> #include "Rasterizer24bpp.h" #include "MemorySurface.h" #include "Surface.h" #include "Screen.h" #include "debug.h" #include "stdafx.h" #include "resource.h" #include "input.h" #include <ctype.h> #include <stdarg.h> #include <stdio.h> #include <windows.h> #define SHOW_DEBUG_WINDOW 0 #define CLIENT_TEST 1 #define MAX_CURSOR_WIDTH 32 #define MAX_CURSOR_HEIGHT 32 #define VIRTUAL_SCREEN_WIDTH 640 #define VIRTUAL_SCREEN_HEIGHT 480 #define INPUT_WINDOW_HEIGHT 20 #define FRAME_BUFFER_WINDOW_CLASS "FrameBufferWindow" #define DEBUG_WINDOW_CLASS "DebugWindow" #define MAX_DEBUG_ARGS 15 #define MAX_DEBUG_COMMANDS 32 #define DO_COMMAND (WM_USER + 2) class VirtualFrameBuffer : public Screen { public: VirtualFrameBuffer(HDC dc); void buildCursorData(HINSTANCE instance, HDC dc); void repaint(HWND hWnd); virtual void endTransaction(); virtual void* lockBits(); virtual void unlockBits(); virtual int getStride() const; virtual Rasterizer *createRasterizer(); virtual void setCursorPosition(int x, int y); virtual void setCursorShape(int width, int height, const char *colorBits, const char *maskBits); private: void eraseCursor(); void drawCursor(); HBITMAP fScreenBitmap; int fLockCount; int fCursorX; int fCursorY; void *fSavedBackground; int fCursorWidth; int fCursorHeight; char *fCursorMask; char *fCursorColor; bool fDirty; }; class ResourceBitmap : public MemorySurface { public: ResourceBitmap(HINSTANCE instance, HDC dc, LPCTSTR bitmap, int width, int height); }; struct InputEvent { InputEvent *next; enum NativeEventType type; int x; int y; bool lButtonDown; bool rButtonDown; int scanCode; }; struct DebugCommand { const char *name; void (*callback)(int argc, const char **argv); }; extern void clientMain(); extern int wsmain(); extern DWORD WINAPI ProtocolWorker(LPVOID param); static LRESULT CALLBACK FrameBufferWndProc(HWND, UINT, WPARAM, LPARAM); static LRESULT CALLBACK DebugWindowWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); static LRESULT CALLBACK CommandOverrideWinProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); static BOOL RegisterWindowClass(const char *name, WNDPROC, HINSTANCE, bool background); static void EnqueueInputEvent(NativeEventType type, int x, int y, int scancode); static InputEvent *DequeueInputEvent(); static void ExecuteCommand(const char *command); static void showCommands(int argc, const char **argv); static DWORD WINAPI ServerStartFunc(LPVOID param); static DWORD WINAPI ClientStartFunc(LPVOID param); static void buildCursorData(HINSTANCE instance, HDC dc, Screen *screen); static VirtualFrameBuffer *screen; static char *virtualScreenBuffer; static HWND hFrameWindow; static HWND hLogWindow; static HWND hCommandWindow; static InputEvent *inputQueueHead = NULL; static InputEvent *inputQueueTail = NULL; static CRITICAL_SECTION inputQueueLock; static CRITICAL_SECTION bigLock; static HANDLE inputQueueWait; static bool lButtonDown = false; static bool rButtonDown = false; static WNDPROC oldCommandWndProc; // original wndproc for the command line static HWND debugWindow; static DebugCommand debugCommands[MAX_DEBUG_COMMANDS]; static Surface *bitmap; int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MSG msg; HDC dc; WSADATA wsaData; int ret; // Initialize socket layer ret = WSAStartup(MAKEWORD(2, 2), &wsaData); if (ret != 0) { _asm { int 3 } return 0; } // Set up frame buffer if (!RegisterWindowClass(FRAME_BUFFER_WINDOW_CLASS, (WNDPROC) FrameBufferWndProc, hInstance, false)) return FALSE; #if SHOW_DEBUG_WINDOW if (!RegisterWindowClass(DEBUG_WINDOW_CLASS, (WNDPROC) DebugWindowWndProc, hInstance, true)) return FALSE; // Create the debug window debugWindow = CreateWindow(DEBUG_WINDOW_CLASS, "Debug Console", WS_OVERLAPPEDWINDOW, 280, 180, 650, 500, NULL, NULL, hInstance, NULL); if (!debugWindow) return FALSE; // Create the frame buffer window hFrameWindow = CreateWindow(FRAME_BUFFER_WINDOW_CLASS, "Frame Buffer", WS_OVERLAPPED, 10, 10, VIRTUAL_SCREEN_WIDTH + 6, VIRTUAL_SCREEN_HEIGHT + MAX_CURSOR_HEIGHT, NULL, NULL, hInstance, NULL); if (!hFrameWindow) return FALSE; #else // Create the frame buffer window hFrameWindow = CreateWindow(FRAME_BUFFER_WINDOW_CLASS, "Frame Buffer", WS_OVERLAPPED | WS_SYSMENU, 10, 10, VIRTUAL_SCREEN_WIDTH + 6, VIRTUAL_SCREEN_HEIGHT + MAX_CURSOR_HEIGHT, NULL, NULL, hInstance, NULL); if (!hFrameWindow) return FALSE; #endif // Create a backing store for the virtual screen dc = GetDC(hFrameWindow); if (dc == NULL) return FALSE; screen = new VirtualFrameBuffer(dc); screen->buildCursorData(hInstance, dc); ShowWindow(hFrameWindow, nCmdShow); UpdateWindow(hFrameWindow); ShowCursor(FALSE); #if SHOW_DEBUG_WINDOW ShowWindow(debugWindow, nCmdShow); UpdateWindow(debugWindow); #endif bitmap = new ResourceBitmap(hInstance, dc, MAKEINTRESOURCE(IDB_BITMAP1), 48, 48); addDebugCommand("help", showCommands); // Initialize virtual input system inputQueueWait = CreateSemaphore(NULL, 0, 0x7fffffff, NULL); InitializeCriticalSection(&inputQueueLock); InitializeCriticalSection(&bigLock); // Start main thread CloseHandle(CreateThread(NULL, 8192, ServerStartFunc, NULL, 0, NULL)); #if CLIENT_TEST Sleep(1000); // Wait for server to initialize CloseHandle(CreateThread(NULL, 8192, ClientStartFunc, NULL, 0, NULL)); #endif while (GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } return msg.wParam; } Screen *getScreen() { return screen; } Surface *getBitmap() { return bitmap; } bool getNextInputEvent(NativeEventType *outType, int *outParam1, int *outParam2, int *outParam3, bool wait) { InputEvent *event; if (wait) WaitForSingleObject(inputQueueWait, INFINITE); EnterCriticalSection(&inputQueueLock); event = inputQueueHead; if (event != NULL) { inputQueueHead = inputQueueHead->next; if (inputQueueHead == NULL) inputQueueTail = NULL; } LeaveCriticalSection(&inputQueueLock); if (event != NULL) { *outType = event->type; switch (event->type) { case MOUSE_MOVE: *outParam1 = event->x; *outParam2 = event->y; break; case MOUSE_BUTTON: *outParam1 = event->x; *outParam2 = event->y; *outParam3 = (event->lButtonDown ? 1 : 0) | (event->rButtonDown ? 2 : 0); break; case KEY_DOWN: *outParam1 = event->scanCode; break; case KEY_UP: *outParam1 = event->scanCode; break; } free(event); return true; } return false; } void addDebugCommand(const char *name, void (*callback)(int argc, const char **argv)) { for (int i = 0; i < MAX_DEBUG_COMMANDS; i++) { if (debugCommands[i].name == NULL) { debugCommands[i].name = name; debugCommands[i].callback = callback; break; } } } void lprintf(const char *message, ...) { #if SHOW_DEBUG_WINDOW char formatted[1024]; va_list args; va_start(args, message); vsprintf(formatted, message, args); va_end(args); SendMessage(hLogWindow, EM_SETSEL, 0x7fffffff, 0x7fffffff); SendMessage(hLogWindow, EM_REPLACESEL, 0, (LPARAM) formatted); SendMessage(hLogWindow, EM_LINESCROLL, 0, 1); #endif } static LRESULT CALLBACK FrameBufferWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_PAINT: screen->repaint(hWnd); break; case WM_DESTROY: PostQuitMessage(0); break; case WM_MOUSEMOVE: EnqueueInputEvent(MOUSE_MOVE, lParam & 0xffff, lParam >> 16, -1); break; case WM_LBUTTONDOWN: lButtonDown = true; EnqueueInputEvent(MOUSE_BUTTON, lParam & 0xffff, lParam >> 16, -1); break; case WM_LBUTTONUP: lButtonDown = false; EnqueueInputEvent(MOUSE_BUTTON, lParam & 0xffff, lParam >> 16, -1); break; case WM_RBUTTONDOWN: rButtonDown = true; EnqueueInputEvent(MOUSE_BUTTON, lParam & 0xffff, lParam >> 16, -1); break; case WM_RBUTTONUP: rButtonDown = false; EnqueueInputEvent(MOUSE_BUTTON, lParam & 0xffff, lParam >> 16, -1); break; case WM_KEYUP: EnqueueInputEvent(KEY_UP, -1, -1, wParam); break; case WM_KEYDOWN: EnqueueInputEvent(KEY_DOWN, -1, -1, wParam); break; default: return DefWindowProc(hWnd, message, wParam, lParam); } return 0; } static LRESULT CALLBACK DebugWindowWndProc(HWND hwnd, // window handle UINT message, // type of message WPARAM wParam, // additional information LPARAM lParam) // additional information { char commandBuf[128]; switch (message) { case WM_CREATE: // The log window displays output hLogWindow = CreateWindow("EDIT", // predefined class NULL, // no window title WS_CHILD | WS_VISIBLE | WS_VSCROLL | ES_LEFT | ES_MULTILINE | ES_AUTOVSCROLL, 0, 0, 0, 0, // set size in WM_SIZE message hwnd, // parent window (HMENU) NULL, // edit control ID (HINSTANCE) GetWindowLong(hwnd, GWL_HINSTANCE), NULL); // pointer not needed SendMessage(hLogWindow, EM_SETREADONLY, TRUE, 0); // A command line at the bottom accepts commands hCommandWindow = CreateWindow("EDIT", // predefined class NULL, // no window title WS_CHILD | WS_VISIBLE | ES_LEFT, 0, 0, 0, 0, // set size in WM_SIZE message hwnd, // parent window (HMENU) NULL, // edit control ID (HINSTANCE) GetWindowLong(hwnd, GWL_HINSTANCE), NULL); // pointer not needed // Need to override window proc to intercept return key oldCommandWndProc = (WNDPROC) SetWindowLong(hCommandWindow, GWL_WNDPROC, (DWORD) CommandOverrideWinProc); return 0; case WM_SETFOCUS: SetFocus(hCommandWindow); return 0; case WM_SIZE: MoveWindow(hLogWindow, 0, 0, // starting x- and y-coordinates LOWORD(lParam), // width of client area HIWORD(lParam) - INPUT_WINDOW_HEIGHT, // height of client area TRUE); // repaint window MoveWindow(hCommandWindow, 0, HIWORD(lParam) - INPUT_WINDOW_HEIGHT, // starting x- and y-coordinates LOWORD(lParam), // width of client area INPUT_WINDOW_HEIGHT, // height of client area TRUE); // repaint window return 0; case WM_DESTROY: PostQuitMessage(0); return 0; case DO_COMMAND: SendMessage(hCommandWindow, WM_GETTEXT, (WPARAM) sizeof(commandBuf), (LPARAM)commandBuf); SendMessage(hCommandWindow, WM_SETTEXT, 0, (LPARAM) ""); ExecuteCommand(commandBuf); break; default: return DefWindowProc(hwnd, message, wParam, lParam); } return NULL; } LRESULT CALLBACK CommandOverrideWinProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { switch (msg) { case WM_KEYDOWN: switch (wParam) { case VK_RETURN: // Bounce this message to the parent window SendMessage(debugWindow, DO_COMMAND, 0, 0); return 0; } break; case WM_KEYUP: case WM_CHAR: switch (wParam) { case VK_RETURN: return 0; } } // Call the original window procedure for default processing. return CallWindowProc(oldCommandWndProc, hwnd, msg, wParam, lParam); } static BOOL RegisterWindowClass(const char *name, WNDPROC wndProc, HINSTANCE instance, bool background) { WNDCLASSEX wcex; // Create a class for the frame buffer window wcex.cbSize = sizeof(WNDCLASSEX); wcex.style = CS_HREDRAW | CS_VREDRAW; wcex.lpfnWndProc = wndProc; wcex.cbClsExtra = 0; wcex.cbWndExtra = 0; wcex.hInstance = instance; wcex.hIcon = LoadIcon(instance, (LPCTSTR)IDI_WINDOWSERVER); wcex.hCursor = LoadCursor(NULL, IDC_ARROW); if (background) wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); else wcex.hbrBackground = NULL; wcex.lpszMenuName = (LPCSTR)NULL; wcex.lpszClassName = name; wcex.hIconSm = LoadIcon(wcex.hInstance, (LPCTSTR)IDI_SMALL); return RegisterClassEx(&wcex); } void acquireBigLock() { EnterCriticalSection(&bigLock); } void releaseBigLock() { screen->endTransaction(); // avoid a bunch of spurious updates LeaveCriticalSection(&bigLock); } static void EnqueueInputEvent(NativeEventType type, int x, int y, int scanCode) { InputEvent *event = NULL; int length; EnterCriticalSection(&inputQueueLock); if (type == MOUSE_MOVE) { length = 0; for (event = inputQueueHead; event != NULL; event = event->next) { length++; if (event->type == MOUSE_MOVED) { // Already a mouse moved event queued, just update it event->x = x; event->y = y; break; } } } if (event == NULL) { // Couldn't find an existing event to merge this // with, create a new one event = (InputEvent*) malloc(sizeof(InputEvent)); event->type = type; event->x = x; event->y = y; event->lButtonDown = lButtonDown; event->rButtonDown = rButtonDown; event->scanCode = scanCode; event->next = NULL; if (inputQueueHead == NULL) inputQueueHead = inputQueueTail = event; else { inputQueueTail->next = event; inputQueueTail = event; } } LeaveCriticalSection(&inputQueueLock); ReleaseSemaphore(inputQueueWait, 1, NULL); } static void ExecuteCommand(const char *command) { char tmp[1024]; const char *argv[MAX_DEBUG_ARGS]; int argCount = 0; char *c; int i; if (strlen(command) > sizeof(tmp)) { lprintf("command too long\n"); return; } strcpy(tmp, command); c = tmp; for (;;) { /* Skip to non-space character */ while (isspace(*c)) c++; if (*c == '\0') break; argv[argCount++] = c; /* Skip to space character */ while (!isspace(*c)) { if (*c == '\0') goto done; c++; } *c++ = '\0'; /* Terminate this entry, proceed to next */ } done: if (argCount == 0) return; for (i = 0; i < MAX_DEBUG_COMMANDS; i++) { if (debugCommands[i].name == NULL) break; if (strcmp(debugCommands[i].name, argv[0]) == 0) { debugCommands[i].callback(argCount, argv); break; } } if (i == MAX_DEBUG_COMMANDS) lprintf("Unknown command %s", argv[0]); } static void showCommands(int argc, const char **argv) { lprintf("Available commands:\n"); for (int i = 0; i < MAX_DEBUG_COMMANDS; i++) { if (debugCommands[i].name == NULL) break; lprintf(" %s\n", debugCommands[i].name); } } static DWORD WINAPI ServerStartFunc(LPVOID param) { wsmain(); lprintf("wsmain has exited\n"); return 0; } static DWORD WINAPI ClientStartFunc(LPVOID param) { clientMain(); lprintf("client main has exited\n"); return 0; } VirtualFrameBuffer::VirtualFrameBuffer(HDC dc) : Screen(Surface::kRGB24, VIRTUAL_SCREEN_WIDTH, VIRTUAL_SCREEN_HEIGHT), fCursorX(VIRTUAL_SCREEN_WIDTH / 2 - 16), fCursorY(VIRTUAL_SCREEN_HEIGHT / 2 - 16), fLockCount(0), fSavedBackground(NULL), fCursorColor(NULL), fCursorMask(NULL), fDirty(false) { BITMAPINFO info; info.bmiHeader.biSize = sizeof(BITMAPINFOHEADER); info.bmiHeader.biWidth = VIRTUAL_SCREEN_WIDTH + MAX_CURSOR_WIDTH; // Add 32 pixels for cursor info.bmiHeader.biHeight = -(VIRTUAL_SCREEN_HEIGHT + MAX_CURSOR_HEIGHT); // negative to make top down info.bmiHeader.biPlanes = 1; // Must be one info.bmiHeader.biBitCount = 24; info.bmiHeader.biCompression = BI_RGB; info.bmiHeader.biSizeImage = 0; // Must be zero for BI_RGB bitmaps info.bmiHeader.biXPelsPerMeter = 1024 * 3; info.bmiHeader.biYPelsPerMeter = 768 * 4; info.bmiHeader.biClrUsed = 0; // Use maximum number of colors info.bmiHeader.biClrImportant = 0; // All colors are required fScreenBitmap = CreateDIBSection(dc, &info, DIB_RGB_COLORS, (void**) &virtualScreenBuffer, NULL, 0); } void* VirtualFrameBuffer::lockBits() { if (!fDirty) { eraseCursor(); fDirty = true; } return virtualScreenBuffer; } void VirtualFrameBuffer::unlockBits() { } void VirtualFrameBuffer::endTransaction() { if (fDirty) { fDirty = false; drawCursor(); RedrawWindow(hFrameWindow, NULL, NULL, RDW_INVALIDATE); } } int VirtualFrameBuffer::getStride() const { return (VIRTUAL_SCREEN_WIDTH + MAX_CURSOR_WIDTH) * 3; } Rasterizer *VirtualFrameBuffer::createRasterizer() { return new Rasterizer24bpp(this); } void VirtualFrameBuffer::setCursorPosition(int x, int y) { RECT dirtyRect; eraseCursor(); if (x < 0) x = 0; else if (x >= VIRTUAL_SCREEN_WIDTH - 1) x = VIRTUAL_SCREEN_WIDTH - 1; if (y < 0) y = 0; else if (y >= VIRTUAL_SCREEN_HEIGHT - 1) y = VIRTUAL_SCREEN_HEIGHT - 1; dirtyRect.left = min(fCursorX, x); dirtyRect.right = max(fCursorX + MAX_CURSOR_WIDTH, x + MAX_CURSOR_WIDTH); dirtyRect.top = min(fCursorY, y); dirtyRect.bottom = max(fCursorY + MAX_CURSOR_HEIGHT, y + MAX_CURSOR_HEIGHT); fCursorX = x; fCursorY = y; drawCursor(); RedrawWindow(hFrameWindow, &dirtyRect, NULL, RDW_INVALIDATE); } void VirtualFrameBuffer::setCursorShape(int width, int height, const char *colorBits, const char *maskBits) { if (fCursorColor != NULL) eraseCursor(); fCursorWidth = width; fCursorHeight = height; free(fSavedBackground); free(fCursorColor); free(fCursorMask); fSavedBackground = malloc(width * 3 * height); fCursorColor = (char*) malloc(width / 8 * height); fCursorMask = (char*) malloc(width / 8 * height); memcpy(fCursorColor, colorBits, width / 8 * height); memcpy(fCursorMask, maskBits, width / 8 * height); drawCursor(); } void VirtualFrameBuffer::eraseCursor() { // Restore what was originally behind the cursor char *destPtr = virtualScreenBuffer + fCursorX * 3 + fCursorY * ((VIRTUAL_SCREEN_WIDTH + MAX_CURSOR_WIDTH) * 3); char *srcPtr = (char*) fSavedBackground; int screenSkip = (VIRTUAL_SCREEN_WIDTH + MAX_CURSOR_WIDTH) * 3; int cursorSkip = fCursorWidth * 3; for (int y = 0; y < MAX_CURSOR_WIDTH; y++) { memcpy(destPtr, srcPtr, fCursorWidth * 3); destPtr += screenSkip; srcPtr += cursorSkip; } } void VirtualFrameBuffer::drawCursor() { if (fCursorColor == NULL) return; char *screenPtr = virtualScreenBuffer + fCursorX * 3 + fCursorY * ((VIRTUAL_SCREEN_WIDTH + MAX_CURSOR_WIDTH) * 3); char *backgroundPtr = (char*) fSavedBackground; int cursorByteWidth = fCursorWidth * 3; int skip = (VIRTUAL_SCREEN_WIDTH + MAX_CURSOR_WIDTH - fCursorWidth) * 3; int cursorOffset = 0; int cursorMask = 0x80; for (int y = 0; y < fCursorWidth; y++) { // Save what is behind the cursor memcpy(backgroundPtr, screenPtr, cursorByteWidth); backgroundPtr += cursorByteWidth; // Draw the cursor for (int x = 0; x < fCursorWidth; x++) { if (fCursorMask[cursorOffset] & cursorMask) { if (fCursorColor[cursorOffset] & cursorMask) { *screenPtr++ = 0xff; *screenPtr++ = 0xff; *screenPtr++ = 0xff; } else { *screenPtr++ = 0; *screenPtr++ = 0; *screenPtr++ = 0; } } else screenPtr += 3; cursorMask >>= 1; if (cursorMask == 0) { cursorOffset++; cursorMask = 0x80; } } screenPtr += skip; } } void VirtualFrameBuffer::buildCursorData(HINSTANCE instance, HDC dc) { HBITMAP bm = LoadBitmap(instance, MAKEINTRESOURCE(IDB_BITMAP2)); BITMAPINFO info; const unsigned char *cursorPtr; if (bm == NULL) { printf("error loading bitmap\n"); return; } int width = 32; int height = 32; void *bits = malloc(width * 3 * height); memset(bits, 0, width * 3 * height); info.bmiHeader.biSize = sizeof(BITMAPINFOHEADER); info.bmiHeader.biWidth = width; info.bmiHeader.biHeight = -height; // negative to make top down info.bmiHeader.biPlanes = 1; // Must be one info.bmiHeader.biBitCount = 24; info.bmiHeader.biCompression = BI_RGB; info.bmiHeader.biSizeImage = 0; // Must be zero for BI_RGB bitmaps info.bmiHeader.biXPelsPerMeter = 1024 * 3; info.bmiHeader.biYPelsPerMeter = 768 * 4; info.bmiHeader.biClrUsed = 0; // Use maximum number of colors info.bmiHeader.biClrImportant = 0; // All colors are required if (GetDIBits(dc, bm, 0, height, bits, &info, DIB_RGB_COLORS) != height) { printf("Error getting DI bits\n"); return; } // Convert bitmap data to cursor data char *maskData = (char*) malloc(width / 8 * height); char *colorData = (char*) malloc(width / 8 * height); memset(maskData, 0, width / 8 * height); memset(colorData, 0, width / 8 * height); cursorPtr = (const unsigned char*) bits; for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { // If this pixel is black, mark it transparent if (cursorPtr[0] != 0 || cursorPtr[1] != 0 || cursorPtr[2] != 0) maskData[x / 8 + y * width / 8] |= (0x80 >> x % 8); // if this pixel is white, mark it so, otherwise make it black // (black pixels in the final cursor are represented in this image // as dark gray). if (cursorPtr[0] == 0xff && cursorPtr[1] == 0xff && cursorPtr[2] == 0xff) colorData[x / 8 + y * width / 8] |= (0x80 >> x % 8); cursorPtr += 3; } } free(bits); setCursorShape(width, height, colorData, maskData); } void VirtualFrameBuffer::repaint(HWND hWnd) { PAINTSTRUCT ps; HDC hdc; HDC memDC; hdc = BeginPaint(hWnd, &ps); memDC = CreateCompatibleDC(hdc); SelectObject(memDC, fScreenBitmap); BitBlt(hdc, 0, 0, VIRTUAL_SCREEN_WIDTH, VIRTUAL_SCREEN_HEIGHT, memDC, 0, 0, SRCCOPY); DeleteObject(memDC); EndPaint(hWnd, &ps); } void __assert_failed(int line, const char *file, const char *expr) { _asm { int 3 } } ResourceBitmap::ResourceBitmap(HINSTANCE instance, HDC dc, LPCTSTR bitmap, int width, int height) : MemorySurface(Surface::kRGB24, width, height) { HBITMAP bm = LoadBitmap(instance, bitmap); BITMAPINFO info; if (bm == NULL) { printf("error loading bitmap\n"); return; } char *bits = (char*) lockBits(); info.bmiHeader.biSize = sizeof(BITMAPINFOHEADER); info.bmiHeader.biWidth = width; info.bmiHeader.biHeight = -height; // negative to make top down info.bmiHeader.biPlanes = 1; // Must be one info.bmiHeader.biBitCount = 24; info.bmiHeader.biCompression = BI_RGB; info.bmiHeader.biSizeImage = 0; // Must be zero for BI_RGB bitmaps info.bmiHeader.biXPelsPerMeter = 1024 * 3; info.bmiHeader.biYPelsPerMeter = 768 * 4; info.bmiHeader.biClrUsed = 0; // Use maximum number of colors info.bmiHeader.biClrImportant = 0; // All colors are required if (GetDIBits(dc, bm, 0, height, bits, &info, DIB_RGB_COLORS) != height) printf("Error getting DI bits\n"); unlockBits(); }
[ "jeffbush001@gmail.com" ]
jeffbush001@gmail.com
3d5a0de39a0740ddb13d28fa50d1b9f436c8724c
3c5e16ce141e3a8825c91ce18227251884029b76
/2.cpp
543f2edcfaf2b2f48db3b5686bdadf4473d3fce2
[]
no_license
Gaurav23K/CS141
95497ba1dba16d9183e95546bf115bf8beb0f503
4c8cdf804584473fa06d0b4118e3c4e6714fc9cc
refs/heads/master
2020-03-25T17:49:36.862223
2018-09-24T09:24:17
2018-09-24T09:24:17
143,998,053
0
0
null
null
null
null
UTF-8
C++
false
false
386
cpp
//including library #include <iostream> using namespace std; int main() { float celcius,farenheit; // declaring values cout << "please enter required temperature value(the value you entered is in celsius)"; cin >> celsius; cout <<"the value you entered is "<<celcius<<endl; //conversion farenheit=9*celsius/5+32; cout<<"farenheit="; cout<<farenheit<<endl; //DONE! return 89; }
[ "noreply@github.com" ]
Gaurav23K.noreply@github.com
93669a4d037816450fdb74a5690a10339bbba626
c3fe4b6e7fc4181248c717492775be1aa2891933
/environment/system_/StellarObject.hpp
ee3a988c7906963a3e67c040028a236514af642b
[]
no_license
WarLib/yapps
3bb358249552ebc9bf77cb3f792c24a5eeedbc96
31f0f28ee7b17265eb9a94c89a445f5c582eaa7a
refs/heads/master
2021-01-01T18:12:02.641347
2013-06-11T13:43:59
2013-06-11T13:43:59
null
0
0
null
null
null
null
UTF-8
C++
false
false
685
hpp
#ifndef _STELLAROBJECT_HPP #define _STELLAROBJECT_HPP #include <OgreVector3.h> #include <OgreString.h> #include "ordinates.hpp" using namespace Yapps; class StellarObject { protected: Vec3 _center; Ogre::Vector3 _rot; double _colonization; double _mass; double _density; Ogre::String mConfigFile; void ReadCfg(const Ogre::String& type, double& den, double& mass); public: StellarObject(Vec3 center, Ogre::Vector3 rot, double colonization); virtual void Update() = 0; const Vec3& GetCenter(void) const; const Ogre::Vector3& GetRotation(void) const; void SetDensity(double density); void SetMass(double mass); double GetRadius(void); }; #endif
[ "tristan.lucas@stud.hn.de" ]
tristan.lucas@stud.hn.de
bbc111c0936b451ec64531b70483ba9246d90568
87a600d36a5757969ead7e235c93e3530d72b43a
/abm_product/newace/Time_Value.h
a89cdb5b906d8b539b1ac81fd0227960cca93554
[]
no_license
xkmld419/learning
3c3cad407d03bf693bcd863794cca7fb8a5df99a
128ffa1496c43c36b83f266522bd49b28184499f
refs/heads/master
2023-07-12T16:54:50.647834
2021-08-21T15:41:42
2021-08-21T15:41:42
45,075,836
1
0
null
null
null
null
UTF-8
C++
false
false
12,968
h
// -*- C++ -*- //============================================================================= /** * @file Time_Value.h * * Time_Value.h,v 4.28 2004/03/31 08:06:06 jwillemsen Exp * * @author Douglas C. Schmidt <schmidt@cs.wustl.edu> */ //============================================================================= #ifndef ACE_TIME_VALUE_H #define ACE_TIME_VALUE_H #include "config.h" #include "macros.h" //#define __need_timespec #include <sys/time.h> // Define some helpful constants. // Not type-safe, and signed. For backward compatibility. #define ACE_ONE_SECOND_IN_MSECS 1000L #define ACE_ONE_SECOND_IN_USECS 1000000L #define ACE_ONE_SECOND_IN_NSECS 1000000000L // ------------------------------------------------------------------- // These forward declarations are only used to circumvent a bug in // MSVC 6.0 compiler. They shouldn't cause any problem for other // compilers and they can be removed once MS release a SP that contains // the fix. // This forward declaration is needed by the set() and FILETIME() functions #if defined (ACE_LACKS_LONGLONG_T) class ACE_U_LongLong; #endif /* ACE_LACKS_LONGLONG_T */ // ------------------------------------------------------------------- // ------------------------------------------------------------------- /** * @class ACE_Time_Value * * @brief Operations on "timeval" structures, which express time in * seconds (secs) and microseconds (usecs). * * This class centralizes all the time related processing in * ACE. These time values are typically used in conjunction with OS * mechanisms like <select>, <poll>, or <cond_timedwait>. */ class ACE_Time_Value { public: /// Constant "0". static const ACE_Time_Value zero; /** * Constant for maximum time representable. Note that this time is * not intended for use with <select> or other calls that may have * *their own* implementation-specific maximum time representations. * Its primary use is in time computations such as those used by the * dynamic subpriority strategies in the ACE_Dynamic_Message_Queue * class. */ static const ACE_Time_Value max_time; ACE_ALLOC_HOOK_DECLARE; // = Initialization methods. // = Methods for converting to/from various time formats. inline ACE_Time_Value (const struct timeval &tv) // : tv_ () { // ACE_OS_TRACE ("ACE_Time_Value"); this->set (tv); } inline operator timeval () const { // ACE_OS_TRACE ("operator timeval"); return this->tv_; } inline operator const timeval * () const { // ACE_OS_TRACE ("operator const timeval *"); return (const timeval *) &this->tv_; } inline void set (long sec, long usec) { // ACE_OS_TRACE ("set"); this->tv_.tv_sec = sec; this->tv_.tv_usec = usec; this->normalize (); } inline void set (double d) { // ACE_OS_TRACE ("set"); long l = (long) d; this->tv_.tv_sec = l; this->tv_.tv_usec = (long) ((d - (double) l) * ACE_ONE_SECOND_IN_USECS + .5); this->normalize (); } // Initializes a timespec. Note that this approach loses precision // since it converts the nano-seconds into micro-seconds. But then // again, do any real systems have nano-second timer precision?! inline void set (const timespec &tv) { // ACE_OS_TRACE ("set"); #if ! defined(ACE_HAS_BROKEN_TIMESPEC_MEMBERS) this->tv_.tv_sec = ACE_static_cast (long, tv.tv_sec); // Convert nanoseconds into microseconds. this->tv_.tv_usec = tv.tv_nsec / 1000; #else this->tv_.tv_sec = tv.ts_sec; // Convert nanoseconds into microseconds. this->tv_.tv_usec = tv.ts_nsec / 1000; #endif /* ACE_HAS_BROKEN_TIMESPEC_MEMBERS */ this->normalize (); } inline void set (const timeval &tv) { // ACE_OS_TRACE ("set"); this->tv_.tv_sec = tv.tv_sec; this->tv_.tv_usec = tv.tv_usec; this->normalize (); } inline ACE_Time_Value (void) // : tv_ () { // ACE_OS_TRACE ("ACE_Time_Value"); this->set (0, 0); } inline ACE_Time_Value (long sec, long usec=0) { // ACE_OS_TRACE ("ACE_Time_Value"); this->set (sec, usec); } // Returns number of seconds. inline long sec (void) const { // ACE_OS_TRACE ("sec"); return this->tv_.tv_sec; } // Sets the number of seconds. inline void sec (long sec) { // ACE_OS_TRACE ("sec"); this->tv_.tv_sec = sec; } // Converts from Time_Value format into milli-seconds format. inline unsigned long msec (void) const { // ACE_OS_TRACE ("msec"); return this->tv_.tv_sec * 1000 + this->tv_.tv_usec / 1000; } // Converts from milli-seconds format into Time_Value format. inline void msec (long milliseconds) { // ACE_OS_TRACE ("msec"); // Convert millisecond units to seconds; this->tv_.tv_sec = milliseconds / 1000; // Convert remainder to microseconds; this->tv_.tv_usec = (milliseconds - (this->tv_.tv_sec * 1000)) * 1000; } // Returns number of micro-seconds. inline long usec (void) const { // ACE_OS_TRACE ("usec"); return this->tv_.tv_usec; } // Sets the number of micro-seconds. inline void usec (long usec) { // ACE_OS_TRACE ("usec"); this->tv_.tv_usec = usec; } inline ACE_Time_Value & operator *= (double d) { double time = ((double) this->sec ()) * ACE_ONE_SECOND_IN_USECS + this->usec (); time *= d; this->sec ((long)(time / ACE_ONE_SECOND_IN_USECS)); this->usec (((long)time) % ACE_ONE_SECOND_IN_USECS); this->normalize (); return *this; } inline friend ACE_Time_Value operator * (double d, const ACE_Time_Value &tv) { return ACE_Time_Value (tv) *= d; } inline friend ACE_Time_Value operator * (const ACE_Time_Value &tv, double d) { return ACE_Time_Value (tv) *= d; } // True if tv1 > tv2. inline friend int operator > (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2) { // ACE_OS_TRACE ("operator >"); if (tv1.sec () > tv2.sec ()) return 1; else if (tv1.sec () == tv2.sec () && tv1.usec () > tv2.usec ()) return 1; else return 0; } // True if tv1 >= tv2. inline friend int operator >= (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2) { // ACE_OS_TRACE ("operator >="); if (tv1.sec () > tv2.sec ()) return 1; else if (tv1.sec () == tv2.sec () && tv1.usec () >= tv2.usec ()) return 1; else return 0; } // Returns the value of the object as a timespec. inline operator timespec () const { // ACE_OS_TRACE ("operator timespec"); timespec tv; #if ! defined(ACE_HAS_BROKEN_TIMESPEC_MEMBERS) tv.tv_sec = this->sec (); // Convert microseconds into nanoseconds. tv.tv_nsec = this->tv_.tv_usec * 1000; #else tv.ts_sec = this->sec (); // Convert microseconds into nanoseconds. tv.ts_nsec = this->tv_.tv_usec * 1000; #endif /* ACE_HAS_BROKEN_TIMESPEC_MEMBERS */ return tv; } // Initializes the ACE_Time_Value object from a timespec. inline ACE_Time_Value (const timespec &tv) // : tv_ () { // ACE_OS_TRACE ("ACE_Time_Value"); this->set (tv); } // True if tv1 < tv2. inline friend int operator < (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2) { // ACE_OS_TRACE ("operator <"); return tv2 > tv1; } // True if tv1 >= tv2. inline friend int operator <= (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2) { // ACE_OS_TRACE ("operator <="); return tv2 >= tv1; } // True if tv1 == tv2. inline friend int operator == (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2) { // ACE_OS_TRACE ("operator =="); return tv1.sec () == tv2.sec () && tv1.usec () == tv2.usec (); } // True if tv1 != tv2. inline friend int operator != (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2) { // ACE_OS_TRACE ("operator !="); return !(tv1 == tv2); } // Add TV to this. inline ACE_Time_Value & operator+= (const ACE_Time_Value &tv) { // ACE_OS_TRACE ("operator+="); this->sec (this->sec () + tv.sec ()); this->usec (this->usec () + tv.usec ()); this->normalize (); return *this; } // Subtract TV to this. inline ACE_Time_Value & operator-= (const ACE_Time_Value &tv) { // ACE_OS_TRACE ("operator-="); this->sec (this->sec () - tv.sec ()); this->usec (this->usec () - tv.usec ()); this->normalize (); return *this; } // Adds two ACE_Time_Value objects together, returns the sum. inline friend ACE_Time_Value operator + (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2) { // ACE_OS_TRACE ("operator +"); ACE_Time_Value sum (tv1.sec () + tv2.sec (), tv1.usec () + tv2.usec ()); sum.normalize (); return sum; } // Subtracts two ACE_Time_Value objects, returns the difference. inline friend ACE_Time_Value operator - (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2) { // ACE_OS_TRACE ("operator -"); ACE_Time_Value delta (tv1.sec () - tv2.sec (), tv1.usec () - tv2.usec ()); delta.normalize (); return delta; } # if defined (ACE_WIN32) /// Construct the ACE_Time_Value object from a Win32 FILETIME ACE_Time_Value (const FILETIME &ft); # endif /* ACE_WIN32 */ # if defined (ACE_WIN32) /// Initializes the ACE_Time_Value object from a Win32 FILETIME. void set (const FILETIME &ft); # endif /* ACE_WIN32 */ /// Converts from ACE_Time_Value format into milli-seconds format. /// Increment microseconds as postfix. /** * @note The only reason this is here is to allow the use of ACE_Atomic_Op * with ACE_Time_Value. */ ACE_Time_Value operator++ (int); /// Increment microseconds as prefix. /** * @note The only reason this is here is to allow the use of ACE_Atomic_Op * with ACE_Time_Value. */ ACE_Time_Value &operator++ (void); /// Decrement microseconds as postfix. /** * @note The only reason this is here is to allow the use of ACE_Atomic_Op * with ACE_Time_Value. */ ACE_Time_Value operator-- (int); /// Decrement microseconds as prefix. /** * @note The only reason this is here is to allow the use of ACE_Atomic_Op * with ACE_Time_Value. */ ACE_Time_Value &operator-- (void); //@} /// Dump is a no-op. /** * The dump() method is a no-op. It's here for backwards compatibility * only, but does not dump anything. Invoking logging methods here * violates layering restrictions in ACE because this class is part * of the OS layer and @c ACE_Log_Msg is at a higher level. */ void dump (void) const; # if defined (ACE_WIN32) /// Const time difference between FILETIME and POSIX time. # if defined (ACE_LACKS_LONGLONG_T) static const ACE_U_LongLong FILETIME_to_timval_skew; # else static const DWORDLONG FILETIME_to_timval_skew; # endif // ACE_LACKS_LONGLONG_T # endif /* ACE_WIN32 */ private: /// Put the timevalue into a canonical form. void normalize (void); /// Store the values as a timeval. timeval tv_; }; /** * @class ACE_Countdown_Time * * @brief Keeps track of the amount of elapsed time. * * This class has a side-effect on the <max_wait_time> -- every * time the <stop> method is called the <max_wait_time> is * updated. */ class ACE_Countdown_Time { public: // = Initialization and termination methods. /// Cache the <max_wait_time> and call <start>. ACE_Countdown_Time (ACE_Time_Value *max_wait_time); /// Call <stop>. ~ACE_Countdown_Time (void); /// Cache the current time and enter a start state. int start (void); /// Subtract the elapsed time from max_wait_time_ and enter a stopped /// state. int stop (void); /// Calls stop and then start. max_wait_time_ is modified by the /// call to stop. int update (void); /// Returns 1 if we've already been stopped, else 0. int stopped (void) const; private: /// Maximum time we were willing to wait. ACE_Time_Value *max_wait_time_; /// Beginning of the start time. ACE_Time_Value start_time_; /// Keeps track of whether we've already been stopped. int stopped_; }; #endif /* ACE_TIME_VALUE_H */
[ "xkmld419@126.com" ]
xkmld419@126.com
f8a4c0c05c7c2885deea85d31be2c679ef3a232e
293c17d3eccd920b5b6bf2461897c6d64f683ea3
/DC_ex/MainFrm.h
ae12ba986827b6114aec4e2e3773771ed7ce30de
[]
no_license
709519923/MFC
9d5f0cebada13825573e75e13766139ed713a46d
ac740bb2be8bf4acd15bed14157cfa3411829738
refs/heads/master
2022-11-10T13:47:04.679688
2020-06-28T10:08:31
2020-06-28T10:08:31
268,739,882
0
0
null
null
null
null
GB18030
C++
false
false
1,153
h
// MainFrm.h : CMainFrame 类的接口 // #pragma once class CMainFrame : public CFrameWndEx { protected: // 仅从序列化创建 CMainFrame(); DECLARE_DYNCREATE(CMainFrame) // 特性 public: // 操作 public: // 重写 public: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual BOOL LoadFrame(UINT nIDResource, DWORD dwDefaultStyle = WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, CWnd* pParentWnd = NULL, CCreateContext* pContext = NULL); // 实现 public: virtual ~CMainFrame(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // 控件条嵌入成员 CMFCMenuBar m_wndMenuBar; CMFCToolBar m_wndToolBar; CMFCStatusBar m_wndStatusBar; CMFCToolBarImages m_UserImages; // 生成的消息映射函数 protected: afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnViewCustomize(); afx_msg LRESULT OnToolbarCreateNew(WPARAM wp, LPARAM lp); afx_msg void OnApplicationLook(UINT id); afx_msg void OnUpdateApplicationLook(CCmdUI* pCmdUI); DECLARE_MESSAGE_MAP() public: afx_msg void OnTestInput(); afx_msg void OnBnClickedButton1(); };
[ "709519923@qq.com" ]
709519923@qq.com
866e9b4a9d993ff287a32af5427f1f6a8c530f09
87d29a72be7655dcaa2af7015f1d0a4f3a4982f7
/seadHash.cpp
57624a2889d6b152d64fdfa213a1a29940741e69
[]
no_license
cualquiercosa327/Resead
b403dd81201de0de0033e75258cfc507e5ad3db0
c8bf5df3f7c6f4d45183313d7440b0f2deb9d929
refs/heads/master
2021-02-23T12:49:14.491589
2019-07-11T19:52:22
2019-07-11T19:52:22
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,701
cpp
#include "seadHash.h" namespace sead { bool HashCRC16::sInitialized; u16 HashCRC16::sTable[256]; void HashCRC16::initialize() { for (int i = 0; i < 256; i++) { u16 val = i; for (int j = 0; j < 8; j++) { if (val & 1) { val >>= 1; val ^= 0xA001; } else val >>= 1; } sTable[i] = val; } sInitialized = true; } u16 HashCRC16::calcHash(void const *data, u32 length) { if (!sInitialized) initialize(); u16 hash = 0; for (u32 i = 0; i < length; i++) hash = sTable[((u8 *)data)[i] ^ (hash & 0xFF)] ^ (hash >> 8); return hash; } u16 HashCRC16::calcStringHash(char const *string) { if (!sInitialized) initialize(); u16 hash = 0; while (*string) hash = sTable[*string++ ^ (hash & 0xFF)] ^ (hash >> 8); return hash; } bool HashCRC32::sInitialized; u32 HashCRC32::sTable[256]; void HashCRC32::initialize() { for (int i = 0; i < 256; i++) { u32 val = i; for (int j = 0; j < 8; j++) { if (val & 1) { val >>= 1; val ^= 0xEDB88320; } else val >>= 1; } sTable[i] = val; } sInitialized = true; } u32 HashCRC32::calcHash(void const *data, u32 length) { if (!sInitialized) initialize(); u32 hash = ~0; for (u32 i = 0; i < length; i++) hash = sTable[((u8 *)data)[i] ^ (hash & 0xFF)] ^ (hash >> 8); return ~hash; } u32 HashCRC32::calcStringHash(char const *string) { if (!sInitialized) initialize(); u32 hash = ~0; while (*string) hash = sTable[*string++ ^ (hash & 0xFF)] ^ (hash >> 8); return ~hash; } }
[ "noreply@github.com" ]
cualquiercosa327.noreply@github.com
ac9d63fe41538b2cda349de6285c6b25e8e5b208
5167f77d96d1dc5412a8a0a91c95e3086acd05dc
/src/test/fuzz/multiplication_overflow.cpp
59d2509224c1d0bb44e5da5fa53bc3051612fb0b
[ "MIT" ]
permissive
ocvcoin/ocvcoin
04fb0cea7c11bf52e07ea06ddf9df89631eced5f
79c3803e330f32ed50c02ae657ff9aded6297b9d
refs/heads/master
2023-04-30T10:42:05.457630
2023-04-15T11:49:40
2023-04-15T11:49:40
406,011,904
3
2
null
null
null
null
UTF-8
C++
false
false
1,967
cpp
// Copyright (c) 2020 The Ocvcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h> #include <cstdint> #include <string> #include <vector> #if defined(__has_builtin) #if __has_builtin(__builtin_mul_overflow) #define HAVE_BUILTIN_MUL_OVERFLOW #endif #elif defined(__GNUC__) #define HAVE_BUILTIN_MUL_OVERFLOW #endif namespace { template <typename T> void TestMultiplicationOverflow(FuzzedDataProvider& fuzzed_data_provider) { const T i = fuzzed_data_provider.ConsumeIntegral<T>(); const T j = fuzzed_data_provider.ConsumeIntegral<T>(); const bool is_multiplication_overflow_custom = MultiplicationOverflow(i, j); #if defined(HAVE_BUILTIN_MUL_OVERFLOW) T result_builtin; const bool is_multiplication_overflow_builtin = __builtin_mul_overflow(i, j, &result_builtin); assert(is_multiplication_overflow_custom == is_multiplication_overflow_builtin); if (!is_multiplication_overflow_custom) { assert(i * j == result_builtin); } #else if (!is_multiplication_overflow_custom) { (void)(i * j); } #endif } } // namespace FUZZ_TARGET(multiplication_overflow) { FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size()); TestMultiplicationOverflow<int64_t>(fuzzed_data_provider); TestMultiplicationOverflow<uint64_t>(fuzzed_data_provider); TestMultiplicationOverflow<int32_t>(fuzzed_data_provider); TestMultiplicationOverflow<uint32_t>(fuzzed_data_provider); TestMultiplicationOverflow<int16_t>(fuzzed_data_provider); TestMultiplicationOverflow<uint16_t>(fuzzed_data_provider); TestMultiplicationOverflow<char>(fuzzed_data_provider); TestMultiplicationOverflow<unsigned char>(fuzzed_data_provider); TestMultiplicationOverflow<signed char>(fuzzed_data_provider); }
[ "contact@ocvcoin.com" ]
contact@ocvcoin.com
04c3e101e7318b7b5aae46f21af0822035089d4a
a483ec5f451f4d6a4455626d3b5e7493f2c44052
/sophomore/软件实训一/71117316-王嘉磊/HW/test.cpp
df4dbc097c2c03df030d26c19980ca18fa1ba830
[]
no_license
wjialei/DuringColloge
8e62587da265e2cf512c6a90990cf41c3beccf40
d899cfb9954e1f8e10dd806d0e0428dfae18ad9b
refs/heads/master
2020-12-13T05:47:05.759575
2020-01-18T05:40:41
2020-01-18T05:40:41
234,324,600
0
0
null
null
null
null
GB18030
C++
false
false
545
cpp
#include "CsolutionThree.h" int main() { solutionThree obj1; int *arr1; int size; unsigned choice; cout << "请输入您所需排列的数字个数" << endl; cin >> size; cout << "请输入您所需排列的数字" << endl; arr1 = new int[size]; for (int i = 0; i < size; i++) { cin >> arr1[i]; } cout << "请选择您的排序方法:\n" << "\t输入'1'代表冒泡排序\n" << "\t输入'2'代表选择排序\n" << "\t输入'3'代表快速排序\n"; cin >> choice; obj1.check(choice, arr1, size); while (1); return 0; }
[ "Jialei_w@163.com" ]
Jialei_w@163.com
f6724b747d0d1b72c14acb2820c02af327694339
f81124e4a52878ceeb3e4b85afca44431ce68af2
/re20_1/processor17/55/U
2f20398b6f1112f3c97d7ecdfb8ca76a8409e464
[]
no_license
chaseguy15/coe-of2
7f47a72987638e60fd7491ee1310ee6a153a5c10
dc09e8d5f172489eaa32610e08e1ee7fc665068c
refs/heads/master
2023-03-29T16:59:14.421456
2021-04-06T23:26:52
2021-04-06T23:26:52
355,040,336
0
1
null
null
null
null
UTF-8
C++
false
false
6,287
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 7 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volVectorField; location "55"; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField nonuniform List<vector> 36 ( (1.15052 0.272492 7.46604e-21) (1.11827 0.407813 -5.60506e-20) (1.02661 0.513139 1.36614e-20) (1.05364 0.467265 -3.81871e-20) (0.901061 0.552473 -1.86104e-20) (0.719359 0.547328 -9.03796e-20) (0.472961 0.457504 -1.37183e-19) (0.406086 0.446188 -4.67738e-20) (0.14809 0.212641 7.016e-19) (0.114247 0.191124 -5.59539e-19) (0.114247 -0.191124 6.489e-20) (0.14809 -0.212641 -2.06958e-19) (0.406086 -0.446188 2.23342e-19) (0.472961 -0.457504 -3.93746e-20) (0.719359 -0.547328 -4.22851e-20) (0.901061 -0.552473 1.86104e-20) (1.02661 -0.513139 -1.36614e-20) (1.05364 -0.467265 3.81871e-20) (1.11827 -0.407813 5.60506e-20) (1.15052 -0.272492 -7.46604e-21) (1.1298 0.089771 5.64791e-21) (1.12537 0.0729609 8.93299e-22) (1.12142 0.0577549 5.66175e-21) (1.11812 0.0437553 -7.45876e-21) (1.11561 0.0306378 1.99383e-21) (1.11395 0.018116 7.7176e-22) (1.11318 0.00588342 -6.39564e-23) (1.13884 -0.130414 1.20065e-21) (1.13442 -0.108683 -1.00189e-20) (1.1298 -0.089771 1.81238e-22) (1.12537 -0.0729609 -8.93299e-22) (1.12142 -0.0577549 -5.66175e-21) (1.11812 -0.0437553 7.45876e-21) (1.11561 -0.0306378 -1.99383e-21) (1.11395 -0.018116 -7.7176e-22) (1.11318 -0.00588342 6.39564e-23) ) ; boundaryField { inlet { type uniformFixedValue; uniformValue constant (1 0 0); value nonuniform 0(); } outlet { type pressureInletOutletVelocity; value nonuniform 0(); } cylinder { type fixedValue; value uniform (0 0 0); } top { type symmetryPlane; } bottom { type symmetryPlane; } defaultFaces { type empty; } procBoundary17to14 { type processor; value nonuniform List<vector> 2((1.11899 0.0918582 2.70779e-20) (1.12442 -0.133237 -2.07606e-20)); } procBoundary17to15 { type processor; value nonuniform List<vector> 17 ( (1.11357 0.276401 -1.06798e-19) (0.991462 0.468284 -8.74672e-20) (1.11357 -0.276401 1.06798e-19) (1.11566 0.0746546 8.8898e-21) (1.11249 0.0590828 8.35661e-21) (1.10976 0.0447499 1.57082e-22) (1.10763 0.0313274 -4.05894e-21) (1.10622 0.0185153 -1.35636e-22) (1.10559 0.00601699 1.75297e-21) (1.12211 -0.111174 3.23841e-21) (1.11899 -0.0918582 -2.70779e-20) (1.11566 -0.0746546 1.08178e-20) (1.11249 -0.0590828 -8.35661e-21) (1.10976 -0.0447499 -1.57082e-22) (1.10763 -0.0313274 4.05894e-21) (1.10622 -0.0185153 1.35636e-22) (1.10559 -0.00601699 -1.75297e-21) ) ; } procBoundary17to16 { type processor; value nonuniform List<vector> 33 ( (1.1476 0.220815 5.58924e-21) (1.118 0.359188 2.27727e-20) (1.06442 0.413466 8.04465e-21) (0.961112 0.521508 -6.30893e-20) (1.06442 0.413466 8.04465e-21) (0.961112 0.521508 -6.30893e-20) (0.82874 0.555551 -2.51516e-20) (0.82874 0.555551 -2.51516e-20) (0.644525 0.54329 -3.4326e-19) (0.644525 0.54329 -3.4326e-19) (0.566593 0.520049 4.3856e-19) (0.338331 0.416374 1.36539e-19) (0.338331 0.416374 1.36539e-19) (0.273998 0.368822 -8.41124e-20) (0.0836222 0.160003 8.69825e-20) (0.0836222 -0.160003 -4.27155e-19) (0.273998 -0.368822 1.2094e-19) (0.338331 -0.416374 -1.73365e-19) (0.338331 -0.416374 -1.73365e-19) (0.566593 -0.520049 -5.32022e-20) (0.644525 -0.54329 9.06177e-20) (0.644525 -0.54329 9.06177e-20) (0.82874 -0.555551 9.31391e-20) (0.82874 -0.555551 9.31391e-20) (0.961112 -0.521508 6.30893e-20) (0.961112 -0.521508 6.30893e-20) (0.991462 -0.468284 4.98808e-20) (1.06442 -0.413466 -8.04465e-21) (1.06442 -0.413466 -8.04465e-21) (1.118 -0.359188 -2.27727e-20) (1.1476 -0.220815 -5.58924e-21) (1.13442 0.108683 -1.77804e-20) (1.14248 -0.155429 -2.19987e-21) ) ; } procBoundary17to18 { type processor; value nonuniform List<vector> 30 ( (1.16754 0.394 -2.6229e-20) (1.15746 0.309405 -6.56068e-21) (1.08407 0.49158 -9.14354e-20) (1.111 0.455517 3.63567e-21) (1.111 0.455517 3.63567e-21) (0.965115 0.53314 2.60858e-20) (0.965115 0.53314 2.60858e-20) (0.786682 0.532705 -1.53944e-20) (0.786682 0.532705 -1.53944e-20) (0.534601 0.45058 -5.84543e-20) (0.534601 0.45058 -5.84543e-20) (0.215386 0.224546 4.61803e-20) (0.182656 0.223804 1.09363e-19) (0.182656 0.223804 1.09363e-19) (0.182656 -0.223804 8.242e-20) (0.182656 -0.223804 8.242e-20) (0.215386 -0.224546 -3.46963e-20) (0.534601 -0.45058 3.62983e-20) (0.534601 -0.45058 3.62983e-20) (0.786682 -0.532705 -1.60823e-20) (0.786682 -0.532705 -1.60823e-20) (0.965115 -0.53314 -2.60858e-20) (0.965115 -0.53314 -2.60858e-20) (1.08407 -0.49158 9.14354e-20) (1.111 -0.455517 -3.63567e-21) (1.111 -0.455517 -3.63567e-21) (1.16754 -0.394 2.6229e-20) (1.15746 -0.309405 6.56068e-21) (1.14059 0.0874465 7.0728e-21) (1.15319 -0.127016 -1.65077e-21) ) ; } procBoundary17to19 { type processor; value nonuniform List<vector> 16 ( (1.1859 0.264373 5.279e-21) (1.1859 -0.264373 -5.279e-21) (1.13509 0.0711056 6.69493e-21) (1.13035 0.0563151 -4.76031e-21) (1.12649 0.0426849 1.74297e-21) (1.12357 0.029901 3.38618e-21) (1.12164 0.0176954 -2.396e-21) (1.12073 0.00575835 -4.66349e-22) (1.14669 -0.105825 2.96594e-21) (1.14059 -0.0874465 -7.0728e-21) (1.13509 -0.0711056 -1.00576e-21) (1.13035 -0.0563151 4.76031e-21) (1.12649 -0.0426849 -1.74297e-21) (1.12357 -0.029901 -3.38618e-21) (1.12164 -0.0176954 2.396e-21) (1.12073 -0.00575835 4.66349e-22) ) ; } } // ************************************************************************* //
[ "chaseguy15" ]
chaseguy15
08fdda7e113b9b96ab0e721f4866dd403a22d534
4a08f6c5ab847d9aea0810629b7b30d3e9997b00
/vendor/imgui/imconfig.h
ea609edb98b83d1f8dde03898787ae546847c91e
[ "MIT" ]
permissive
brandonpelfrey/qnes
48ed9494e38f575ef9268b16870d5857d427e1ce
7ccf5cd65f297e6dad95f36942aef74d378cd082
refs/heads/master
2020-07-30T12:20:02.625805
2019-11-18T17:29:46
2019-11-18T17:29:46
210,231,937
1
0
null
null
null
null
UTF-8
C++
false
false
6,547
h
//----------------------------------------------------------------------------- // COMPILE-TIME OPTIONS FOR DEAR IMGUI // Runtime options (clipboard callbacks, enabling various features, etc.) can generally be set via the ImGuiIO structure. // You can use ImGui::SetAllocatorFunctions() before calling ImGui::CreateContext() to rewire memory allocation functions. //----------------------------------------------------------------------------- // A) You may edit imconfig.h (and not overwrite it when updating Dear ImGui, or maintain a patch/branch with your modifications to imconfig.h) // B) or add configuration directives in your own file and compile with #define IMGUI_USER_CONFIG "myfilename.h" // If you do so you need to make sure that configuration settings are defined consistently _everywhere_ Dear ImGui is used, which include // the imgui*.cpp files but also _any_ of your code that uses Dear ImGui. This is because some compile-time options have an affect on data structures. // Defining those options in imconfig.h will ensure every compilation unit gets to see the same data structure layouts. // Call IMGUI_CHECKVERSION() from your .cpp files to verify that the data structures your files are using are matching the ones imgui.cpp is using. //----------------------------------------------------------------------------- #pragma once //---- Define assertion handler. Defaults to calling assert(). //#define IM_ASSERT(_EXPR) MyAssert(_EXPR) //#define IM_ASSERT(_EXPR) ((void)(_EXPR)) // Disable asserts //---- Define attributes of all API symbols declarations, e.g. for DLL under Windows // Using dear imgui via a shared library is not recommended, because of function call overhead and because we don't guarantee backward nor forward ABI compatibility. //#define IMGUI_API __declspec( dllexport ) //#define IMGUI_API __declspec( dllimport ) //---- Don't define obsolete functions/enums names. Consider enabling from time to time after updating to avoid using soon-to-be obsolete function/names. //#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS //---- Don't implement demo windows functionality (ShowDemoWindow()/ShowStyleEditor()/ShowUserGuide() methods will be empty) // It is very strongly recommended to NOT disable the demo windows during development. Please read the comments in imgui_demo.cpp. //#define IMGUI_DISABLE_DEMO_WINDOWS //#define IMGUI_DISABLE_METRICS_WINDOW //---- Don't implement some functions to reduce linkage requirements. //#define IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS // [Win32] Don't implement default clipboard handler. Won't use and link with OpenClipboard/GetClipboardData/CloseClipboard etc. //#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS // [Win32] Don't implement default IME handler. Won't use and link with ImmGetContext/ImmSetCompositionWindow. //#define IMGUI_DISABLE_WIN32_FUNCTIONS // [Win32] Won't use and link with any Win32 function (clipboard, ime). //#define IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS // [OSX] Implement default OSX clipboard handler (need to link with '-framework ApplicationServices'). //#define IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS // Don't implement ImFormatString/ImFormatStringV so you can implement them yourself if you don't want to link with vsnprintf. //#define IMGUI_DISABLE_MATH_FUNCTIONS // Don't implement ImFabs/ImSqrt/ImPow/ImFmod/ImCos/ImSin/ImAcos/ImAtan2 wrapper so you can implement them yourself. Declare your prototypes in imconfig.h. //#define IMGUI_DISABLE_DEFAULT_ALLOCATORS // Don't implement default allocators calling malloc()/free() to avoid linking with them. You will need to call ImGui::SetAllocatorFunctions(). //---- Include imgui_user.h at the end of imgui.h as a convenience //#define IMGUI_INCLUDE_IMGUI_USER_H //---- Pack colors to BGRA8 instead of RGBA8 (to avoid converting from one to another) //#define IMGUI_USE_BGRA_PACKED_COLOR //---- Avoid multiple STB libraries implementations, or redefine path/filenames to prioritize another version // By default the embedded implementations are declared static and not available outside of imgui cpp files. //#define IMGUI_STB_TRUETYPE_FILENAME "my_folder/stb_truetype.h" //#define IMGUI_STB_RECT_PACK_FILENAME "my_folder/stb_rect_pack.h" //#define IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION //#define IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION //---- Define constructor and implicit cast operators to convert back<>forth between your math types and ImVec2/ImVec4. // This will be inlined as part of ImVec2 and ImVec4 class declarations. /* #define IM_VEC2_CLASS_EXTRA \ ImVec2(const MyVec2& f) { x = f.x; y = f.y; } \ operator MyVec2() const { return MyVec2(x,y); } #define IM_VEC4_CLASS_EXTRA \ ImVec4(const MyVec4& f) { x = f.x; y = f.y; z = f.z; w = f.w; } \ operator MyVec4() const { return MyVec4(x,y,z,w); } */ //---- Using 32-bits vertex indices (default is 16-bits) is one way to allow large meshes with more than 64K vertices. // Your renderer back-end will need to support it (most example renderer back-ends support both 16/32-bits indices). // Another way to allow large meshes while keeping 16-bits indices is to handle ImDrawCmd::VtxOffset in your renderer. // Read about ImGuiBackendFlags_RendererHasVtxOffset for details. //#define ImDrawIdx unsigned int //---- Override ImDrawCallback signature (will need to modify renderer back-ends accordingly) //struct ImDrawList; //struct ImDrawCmd; //typedef void (*MyImDrawCallback)(const ImDrawList* draw_list, const ImDrawCmd* cmd, void* my_renderer_user_data); //#define ImDrawCallback MyImDrawCallback //---- Debug Tools // Use 'Metrics->Tools->Item Picker' to pick widgets with the mouse and break into them for easy debugging. //#define IM_DEBUG_BREAK IM_ASSERT(0) //#define IM_DEBUG_BREAK __debugbreak() // Have the Item Picker break in the ItemAdd() function instead of ItemHoverable() - which is earlier in the code, will catch a few extra items, allow picking items other than Hovered one. // This adds a small runtime cost which is why it is not enabled by default. //#define IMGUI_DEBUG_TOOL_ITEM_PICKER_EX //---- Tip: You can add extra functions within the ImGui:: namespace, here or in your own headers files. /* namespace ImGui { void MyFunction(const char* name, const MyMatrix44& v); } */ #define IMGUI_IMPL_OPENGL_LOADER_GLAD
[ "brandonpelfrey@gmail.com" ]
brandonpelfrey@gmail.com
a17d07f9738013c3373cc63a4409705d8305d770
5815ea16d4624ce357d0f0af8ce5f3fda0196177
/graph/is_bridge.cpp
d7031d0d6761c87c0f7b63fe88657a7266f3240b
[]
no_license
rajharsh81070/Algorithms
eda89218b4a0fb600ee22446f912cfd89ec957f5
6721be83f9d31ad2d7d13e4474c206ab1c8efbe1
refs/heads/master
2020-04-21T03:12:14.196186
2020-01-29T12:39:49
2020-01-29T12:39:49
169,277,438
0
0
null
null
null
null
UTF-8
C++
false
false
698
cpp
#include <bits/stdc++.h> using namespace std; vector<int> adjList[10001]; vecotr<bool> visited(10001); vector<int> low, t_in; int timer; void dfs(int u, int p = -1){ visited[u] = true; low[u]=t_in[u]=timer++; for(int v:adjList[u]){ if(v==p) continue; if(visited[v]){ low[u] = min(t_in[v], low[u]); } else{ dfs(v, u); low[u] = min(low[u], t_in[v]); if (low[v] > t_in[u]) cout << "There is a bridge between between" << u << "and" << v << '\n' ; } } } void find_bridges(int n){ timer = 0; visited.assign(n, false); t_in.assign(n, -1); low.assign(n, -1); for(int node=0; node<n; node++){ if(!visited[node]) dfs(node); } } int main(void){ find_bridges(n); }
[ "rajharsh81070@gmail.com" ]
rajharsh81070@gmail.com
06a8c25ad155b7e5d0d437b39d593187202bbe4d
5004f0c1f7eba48acf74630eb0baf296fb2a3a51
/ICPC/SEERC16-17/H.cpp
836e1d104a0ab646faacc9ce11e459e07edb47fa
[]
no_license
shash42/Competitive-Programming
80ab2611764f2f615568f2011088c1f651f26dcc
f069e8de37f42dba9fb77941b297b33161c2d401
refs/heads/master
2021-03-17T17:30:38.242207
2020-07-21T18:24:13
2020-07-21T18:24:13
276,369,049
1
1
null
null
null
null
UTF-8
C++
false
false
1,834
cpp
#include<bits/stdc++.h> #include<ext/pb_ds/assoc_container.hpp> #include<ext/pb_ds/tree_policy.hpp> #define pb push_back #define f first #define s second #define lint long long #define mp make_pair #define pii pair<int, int> #define pll pair<lint, lint> #define ld long double #define inlld(x) scanf("%lld", &x) #define ind(x) scanf("%d", &x) #define vi vector<int> const int N=1e2+5; const int MOD=1e9+7; const lint INF=1e18; using namespace std; using namespace __gnu_pbds; template <typename T> using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>; int n, m ; string strings[N] ; vi toRemove ; int x ; string query ; set < int > os ; int main() { cin >> n >> m ; for(int i = 0; i <n; i++) cin >> strings[i] ; for(int i = 0; i < m; i++) { cin >> x ; os.insert(x-1); toRemove.pb(x); if((int)toRemove.size() == 1) query = strings[x-1] ; } bool pos = 1 ; for(int i = 1; i < m; i++) { int rem = toRemove[i] - 1; int len = strings[rem].length(); // cout << pos << endl ; if(len != query.length()) { pos = 0 ; break ; } for(int j = 0; j < len; j++) { if(query[j] != strings[rem][j]) query[j] = '?' ; } //cout << pos << endl ; } for(int i = 0; i < n; i++) { if(os.find(i) != os.end()) continue ; if(strings[i].length() != query.length()) continue ; // cout << i << endl ; bool match = 1 ; for(int j = 0; j < strings[i].length(); j++) if(strings[i][j] != query[j] and query[j] != '?') match = 0 ; if(match) pos = 0 ; } if(pos) { cout << "Yes\n" << query ; } else { cout << "No" ; } return 0; }
[ "shashwatnow@gmail.com" ]
shashwatnow@gmail.com
167efb5f3af0ea6558caf32e3b31d4ba15f1ee8b
a743342cf4057a7c2cc573e79602bf89c00b3579
/GraphViewer/ShevArray.h
bb8153399977632fdb175acb315ad26fa2cc2d4f
[]
no_license
prografix/prografix.github.io
deddc17515c93566616e74b292b7e4fb1136064f
4f316beb0fa24b98aec8eb127bd294c012c60538
refs/heads/master
2023-07-25T09:48:34.670827
2023-07-09T13:55:25
2023-07-09T13:55:25
166,195,307
3
0
null
null
null
null
WINDOWS-1251
C++
false
false
20,144
h
#ifndef SHEVARRAY_H #define SHEVARRAY_H #include "typedef.h" #include "template.h" //#define ARRAY_TEST #ifdef ARRAY_TEST void outOfRange ( const char * name, nat size, nat index ); #endif /********************** CArrRef ************************/ /************ Ссылка на константный массив *************/ template <class T> class CArrRef { void operator = ( const CArrRef & ); protected: const T * _data; nat _size; public: CArrRef () : _data(0), _size(0) {} CArrRef ( const T * d, nat n ) : _data(d), _size(n) {} #ifdef ARRAY_TEST void error ( nat n, nat i ) const { outOfRange ( "CArrRef", n, i ); } CArrRef ( CArrRef<T> a, nat i, nat n ) : _data(&a[i]), _size(n) { if ( a._size < i + n ) error ( a._size, i + n ); } const T & operator[] ( nat i ) const { if ( _size <= i ) error ( _size, i ); return _data[i]; } const T & las () const { if ( _size == 0 ) error ( _size, _size ); return _data[_size-1]; } const T & cprev ( nat i ) const { if ( _size <= i ) error ( _size, i ); return _data[i>0?i-1:_size-1]; } const T & cnext ( nat i ) const { if ( _size <= i ) error ( _size, i ); return _data[i+1<_size?i+1:0]; } #else CArrRef ( CArrRef<T> a, nat i, nat n ) : _data(&a[i]), _size(n) {} const T & operator[] ( nat i ) const { return _data[i]; } const T & las () const { return _data[_size-1]; } const T & cprev ( nat i ) const { return _data[i>0?i-1:_size-1]; } const T & cnext ( nat i ) const { return _data[i+1<_size?i+1:0]; } #endif nat size () const { return _size; } }; /*********************** ArrRef ************************/ /****************** Ссылка на массив *******************/ template <class T> class ArrRef : public CArrRef<T> { protected: ArrRef ( T * d, nat n ) : CArrRef<T>( d, n ) {} public: ArrRef () {} #ifdef ARRAY_TEST void error ( nat n, nat i ) const { outOfRange ( "ArrRef", n, i ); } ArrRef ( ArrRef<T> a, nat i, nat n ) : CArrRef<T>( &a[i], n ) { if ( a._size < i + n ) error ( a._size, i + n ); } T & operator[] ( nat i ) { if ( _size <= i ) error ( _size, i );return ((T*)_data)[i]; } T & las () { if ( _size == 0 ) error ( _size, _size ); return ((T*)_data)[_size-1]; } T & cprev ( nat i ) { if ( _size <= i ) error ( _size, i ); return ((T*)_data)[i>0?i-1:_size-1]; } T & cnext ( nat i ) { if ( _size <= i ) error ( _size, i ); return ((T*)_data)[i+1<_size?i+1:0]; } const T & operator[] ( nat i ) const { if ( _size <= i ) error ( _size, i ); return _data[i]; } const T & las () const { if ( _size == 0 ) error ( _size, _size ); return _data[_size-1]; } const T & cprev ( nat i ) const { if ( _size <= i ) error ( _size, i ); return _data[i>0?i-1:_size-1]; } const T & cnext ( nat i ) const { if ( _size <= i ) error ( _size, i ); return _data[i+1<_size?i+1:0]; } #else ArrRef ( ArrRef<T> a, nat i, nat n ) : CArrRef<T>( &a[i], n ) {} T & operator[] ( nat i ) { return ((T*)_data)[i]; } T & las () { return ((T*)_data)[_size-1]; } T & cprev ( nat i ) { return ((T*)_data)[i>0?i-1:_size-1]; } T & cnext ( nat i ) { return ((T*)_data)[i+1<_size?i+1:0]; } const T & operator[] ( nat i ) const { return _data[i]; } const T & las () const { return _data[_size-1]; } const T & cprev ( nat i ) const { return _data[i>0?i-1:_size-1]; } const T & cnext ( nat i ) const { return _data[i+1<_size?i+1:0]; } #endif ArrRef & operator= ( const CArrRef<T> & p ) { const nat n = _min ( _size, p.size() ); for ( nat i = 0; i < n; ++i ) ((T*)_data)[i] = p[i]; return *this; } ArrRef & operator= ( const ArrRef & a ) { return this->operator= ( ( const CArrRef<T> &) a ); } // Изменение порядка следования элементов на обратный ArrRef & reverse () { if ( _size < 2 ) return *this; const nat n = _size - 1; const nat m = _size / 2; for ( nat i = 0; i < m; ++i ) _swap ( ((T*)_data)[i], ((T*)_data)[n-i] ); return *this; } // Применение указанной процедуры для элементов с первого до последнего template <class P> ArrRef & for012p ( P & p ) { for ( nat i = 0; i < _size; ++i ) p ( ((T*)_data)[i] ); return *this; } }; /*********************** FixArrRef ***********************/ /*********** Ссылка на массив постоянной длины ***********/ template <class T, nat n> class FixArrRef : public ArrRef<T> { protected: FixArrRef ( T * d ) : ArrRef<T>( d, n ) {} public: explicit FixArrRef ( ArrRef<T> a, nat i = 0 ) : ArrRef<T> ( a, i, n ) {} FixArrRef & operator= ( const FixArrRef & a ) { for ( nat i = 0; i < n; ++i ) stor[i] = a[i]; return *this; } FixArrRef & operator+= ( const FixArrRef & a ) { for ( nat i = 0; i < n; ++i ) ((T*)_data)[i] += a[i]; return *this; } FixArrRef & operator-= ( const FixArrRef & a ) { for ( nat i = 0; i < n; ++i ) ((T*)_data)[i] -= a[i]; return *this; } FixArrRef & operator*= ( const FixArrRef & a ) { for ( nat i = 0; i < n; ++i ) ((T*)_data)[i] *= a[i]; return *this; } FixArrRef & operator/= ( const FixArrRef & a ) { for ( nat i = 0; i < n; ++i ) ((T*)_data)[i] /= a[i]; return *this; } FixArrRef & operator%= ( const FixArrRef & a ) { for ( nat i = 0; i < n; ++i ) ((T*)_data)[i] %= a[i]; return *this; } friend inline void _swap ( FixArrRef & a1, FixArrRef & a2 ) { for ( nat i = 0; i < n; ++i ) _swap ( a1[i], a2[i] ); } }; /*********************** FixArray ************************/ /*************** Массив постоянной длины *****************/ template <class T, nat n> class FixArray : public FixArrRef<T, n> { T stor[n]; FixArray ( const FixArray & ); public: FixArray () : FixArrRef<T, n> ( stor ) {} FixArray & operator= ( const FixArray & a ) { for ( nat i = 0; i < n; ++i ) stor[i] = a.stor[i]; return *this; } }; /********************** DynArrRef **********************/ /******* Ссылка на массив с изменяемым размером ********/ template <class T> class DynArrRef : public ArrRef<T> { protected: DynArrRef ( T * d, nat n ) : ArrRef<T>( d, n ) {} public: virtual DynArrRef & resize ( nat n = 0 ) = 0; }; /********************** DynArray ***********************/ /**************** Динамический массив ******************/ template <class T> class DynArray : public DynArrRef<T> { DynArray ( const DynArray & ); public: explicit DynArray ( nat n = 0 ) : DynArrRef<T> ( n > 0 ? new T[n] : 0, n ) {} explicit DynArray ( const CArrRef<T> & r ) : DynArrRef<T> ( new T[r.size()], r.size() ) { for ( nat i = 0; i < _size; ++i ) ((T*)_data)[i] = r[i]; } ~DynArray () { delete[] (T*)_data; } DynArray & operator= ( const CArrRef<T> & r ) { if ( _size != r.size() ) { delete[] (T*)_data; _data = ( _size = r.size() ) > 0 ? new T[_size] : 0; } for ( nat i = 0; i < _size; ++i ) ((T*)_data)[i] = r[i]; return *this; } DynArray & operator= ( const DynArray & a ) { return this->operator= ( ( const CArrRef<T> &) a ); } DynArrRef<T> & resize ( nat n = 0 ) { delete[] (T*)_data; _data = ( _size = n ) > 0 ? new T[n] : 0; return *this; } friend inline void _swap ( DynArray & a1, DynArray & a2 ) { _swap ( a1._size, a2._size ); _swap ( a1._data, a2._data ); } }; /********************** CmbArray ***********************/ /************** Комбинированный массив *****************/ template <class T, nat N> class CmbArray : public DynArrRef<T> { T stor[N]; CmbArray ( const CmbArray & ); public: explicit CmbArray ( nat n = 0 ) : DynArrRef<T> ( n > N ? new T[n] : stor, n ) {} explicit CmbArray ( const CArrRef<T> & r ) : DynArrRef<T> ( r.size() > N ? new T[r.size()] : stor, r.size() ) { for ( nat i = 0; i < _size; ++i ) ((T*)_data)[i] = r[i]; } ~CmbArray () { if ( _data != stor ) delete[] (T*)_data; } CmbArray & operator= ( const CArrRef<T> & r ) { if ( _size != r.size() ) { if ( _data != stor ) delete[] (T*)_data; _data = ( _size = r.size() ) > N ? new T[_size] : stor; } for ( nat i = 0; i < _size; ++i ) ((T*)_data)[i] = r[i]; return *this; } CmbArray & operator= ( const CmbArray & a ) { return this->operator= ( ( const CArrRef<T> &) a ); } DynArrRef<T> & resize ( nat n = 0 ) { if ( _size == n ) return *this; if ( _data != stor ) delete[] (T*)_data; _data = ( _size = n ) > N ? new T[n] : stor; return *this; } }; /********************** SuiteRef ***********************/ /***** Ссылка на последовательный набор элементов ******/ template <class T> class SuiteRef : public DynArrRef<T> { SuiteRef ( const SuiteRef & ); void _del ( nat i ) { if ( i < --_size ) ((T*)_data)[i] = _data[_size]; } virtual void resizeAndCopy ( nat n ) { T * tmp = new T[n]; for ( nat i = 0; i < _size; ++i ) tmp[i] = _data[i]; delete[] (T*)_data; _data = tmp; real_size = n; } protected: nat real_size; SuiteRef ( T * d, nat n ) : DynArrRef<T>( d, n ) {} public: SuiteRef & operator= ( const CArrRef<T> & r ) { resize ( r.size() ); for ( nat i = 0; i < _size; ++i ) ((T*)_data)[i] = r[i]; return *this; } SuiteRef & operator= ( const SuiteRef & a ) { return this->operator= ( ( const CArrRef<T> &) a ); } DynArrRef<T> & resize ( nat n = 0 ) { if ( n > real_size ) resizeAndCopy ( n ); _size = n; return *this; } virtual T & inc () { if ( _size == real_size ) resizeAndCopy ( _size + _size ); return ((T*)_data)[_size++]; } SuiteRef & dec () { if ( _size > 0 ) --_size; return *this; } SuiteRef & del ( nat i ) { if ( i < _size ) _del ( i ); #ifdef ARRAY_TEST else outOfRange ( "SuiteRef::del", _size, i ); #endif ARRAY_TEST return *this; } void movAftLas ( nat i, SuiteRef<T> & suite ) { if ( i < _size ) { suite.inc() = _data[i]; _del ( i ); } #ifdef ARRAY_TEST else outOfRange ( "SuiteRef::movAftLas", _size, i ); #endif ARRAY_TEST } virtual SuiteRef & addAftLas ( const CArrRef<T> & a ) { const nat n = _size + a.size(); nat s = real_size; if ( s < n ) { while ( s < n ) s += s; resizeAndCopy ( s ); } for ( nat i = 0; i < a.size(); ++i ) ((T*)_data)[_size+i] = a[i]; _size = n; return *this; } }; /*********************** Suite *************************/ /********** Последовательный набор элементов ***********/ template <class T> class Suite : public SuiteRef<T> { Suite ( const Suite & ); public: Suite () : SuiteRef<T>(new T[real_size=16], 0) {} explicit Suite ( nat n, nat m = 0 ) : SuiteRef<T>(new T[real_size=n<m?m:n==0?16:n], m) {} ~Suite () { delete[] (T*)_data; } Suite & operator= ( const CArrRef<T> & r ) { _size = r.size(); if ( real_size < _size ) { real_size = _size; delete[] (T*)_data; _data = new T[_size]; } for ( nat i = 0; i < _size; ++i ) ((T*)_data)[i] = r[i]; return *this; } Suite & operator= ( const Suite & a ) { return this->operator= ( ( const CArrRef<T> &) a ); } friend inline void _swap ( Suite & a1, Suite & a2 ) { _swap ( a1.real_size, a2.real_size ); _swap ( a1._size, a2._size ); _swap ( a1._data, a2._data ); } }; /********************* CmbSuite ************************/ /********** Комбинированный набор элементов ************/ template <class T, nat N> class CmbSuite : public SuiteRef<T> { T stor[N]; CmbSuite ( const CmbSuite & ); virtual void resizeAndCopy ( nat n ) { T * tmp = new T[n]; for ( nat i = 0; i < _size; ++i ) tmp[i] = _data[i]; if ( _data != stor ) delete[] (T*)_data; _data = tmp; real_size = n; } public: CmbSuite () : SuiteRef<T>(stor, 0) { real_size = N; } explicit CmbSuite ( nat n, nat m = 0 ) : SuiteRef<T> ( ( real_size = n < m ? m : n ) > N ? new T[real_size] : ( real_size = N, stor ), m ) {} ~CmbSuite () { if ( _data != stor ) delete[] (T*)_data; } CmbSuite & operator= ( const CArrRef<T> & r ) { _size = r.size(); if ( real_size < _size ) { real_size = _size; if ( _data != stor ) delete[] (T*)_data; _data = new T[_size]; } for ( nat i = 0; i < _size; ++i ) ((T*)_data)[i] = r[i]; return *this; } CmbSuite & operator= ( const CmbSuite & a ) { return this->operator= ( ( const CArrRef<T> &) a ); } }; /********************* LtdSuiteRef *********************/ /*** Ссылка на набор элементов ограниченного размера ***/ template <class T> class LtdSuiteRef : public SuiteRef<T> { public: LtdSuiteRef ( ArrRef<T> a, nat i, nat n ) : SuiteRef<T>( &a[i], 0 ) { real_size = n; #ifdef ARRAY_TEST if ( a.size() < i + n ) outOfRange ( "LtdSuiteRef", a.size(), i + n ); #endif } LtdSuiteRef & operator= ( const CArrRef<T> & r ) { _size = r.size(); #ifdef ARRAY_TEST if ( _size > real_size ) outOfRange ( "LtdSuiteRef::operator=", real_size, _size ); #endif if ( _size > real_size ) _size = real_size; for ( nat i = 0; i < _size; ++i ) ((T*)_data)[i] = r[i]; return *this; } LtdSuiteRef & operator= ( const LtdSuiteRef & a ) { return this->operator= ( ( const CArrRef<T> &) a ); } DynArrRef<T> & resize ( nat n = 0 ) { #ifdef ARRAY_TEST if ( n > real_size ) outOfRange ( "LtdSuiteRef::resize", real_size, n ); #endif _size = n < real_size ? n : real_size; return *this; } T & inc () { if ( _size < real_size ) ++_size; #ifdef ARRAY_TEST else outOfRange ( "LtdSuiteRef::inc", real_size, _size ); #endif return ((T*)_data)[_size-1]; } SuiteRef<T> & addAftLas ( const CArrRef<T> & a ) { nat n = _size + a.size(); if ( n > real_size ) n = real_size; for ( nat i = _size; i < n; ++i ) ((T*)_data)[i] = a[i-_size]; _size = n; return *this; } }; /**************** Операции с массивами без изменений *****************/ template <class T> inline bool operator == ( const CArrRef<T> & a, const CArrRef<T> & b ) { if ( a.size() != b.size() ) return false; for ( nat i = 0; i < a.size(); ++i ) if ( a[i] != b[i] ) return false; return true; } template <class T> inline bool operator != ( const CArrRef<T> & a, const CArrRef<T> & b ) { if ( a.size() != b.size() ) return true; for ( nat i = 0; i < a.size(); ++i ) if ( a[i] != b[i] ) return true; return false; } template <class T> inline nat count ( const CArrRef<T> & a, const T & b ) { nat n = 0; for ( nat i = 0; i < a.size(); ++i ) if ( a[i] == b ) ++n; return n; } template <class T> inline nat firEqu ( const CArrRef<T> & a, const T & b ) { for ( nat i = 0; i < a.size(); ++i ) if ( a[i] == b ) return i; return a.size(); } template <class T> inline nat lasEqu ( const CArrRef<T> & a, const T & b ) { for ( nat i = a.size(); i > 0; --i ) if ( a[i-1] == b ) return i-1; return a.size(); } template <class T> inline nat firMin ( const CArrRef<T> & a ) { nat m = 0; for ( nat i = 1; i < a.size(); ++i ) if ( a[i] < a[m] ) m = i; return m; } template <class T> inline nat firMax ( const CArrRef<T> & a ) { nat m = 0; for ( nat i = 1; i < a.size(); ++i ) if ( a[i] > a[m] ) m = i; return m; } template <class T> inline Def<T> amean ( const CArrRef<T> & a ) { if ( a.size() == 0 ) return Def<T>(); T res ( a[0] ); for ( nat i = 1; i < a.size(); ++i ) res += a[i]; return res / a.size(); } /*********************** CFor012 ************************/ template <class T> class CFor012 { public: const CArrRef<T> & ref; explicit CFor012 ( const CArrRef<T> & a ) : ref ( a ) {} }; template <class T> inline CFor012<T> cfor012 ( const CArrRef<T> & a ) { return CFor012<T> ( a ); } template <class T1, class T2> inline T1 & operator += ( T1 & t, const CFor012<T2> & a ) { for ( nat i = 0; i < a.ref.size(); ++i ) t += a.ref[i]; return t; } template <class T1, class T2> inline T1 & operator << ( T1 & t, const CFor012<T2> & a ) { for ( nat i = 0; i < a.ref.size(); ++i ) t << a.ref[i]; return t; } /********* Операции с упорядоченными массивами **********/ template <class T> inline nat lasEqu123 ( CArrRef<T> a, const T & b ) { if ( a.size() == 0 ) return 0; nat from = 0, before = a.size(); while ( from + 1 < before ) { const nat i = ( from + before ) / 2; if ( a[i] > b ) before = i; else from = i; } return a[from] == b ? from : a.size(); } /**************** Операции с массивами с изменениями *****************/ template <class T> inline ArrRef<T> & operator <<= ( ArrRef<T> & a, nat n ) { if ( a.size() < 2 ) return a; T t; while ( n > 0 ) { --n; t = a[0]; for ( nat i = 1; i < a.size(); ++i ) a[i-1] = a[i]; a[a.size()-1] = t; } return a; } template <class T> inline ArrRef<T> & operator >>= ( ArrRef<T> & a, nat n ) { if ( a.size() < 2 ) return a; T t; while ( n > 0 ) { --n; t = a[a.size()-1]; for ( nat i = a.size()-1; i > 0; --i ) a[i] = a[i-1]; a[0] = t; } return a; } /*********************** For012 ************************/ template <class T> class For012 { ArrRef<T> & ref; public: explicit For012 ( ArrRef<T> & a ) : ref ( a ) {} template <class T2> ArrRef<T> & operator = ( const T2 & a ) { for ( nat i = 0; i < ref.size(); ++i ) ref[i] = a; return ref; } template <class T2> ArrRef<T> & operator += ( const T2 & a ) { for ( nat i = 0; i < ref.size(); ++i ) ref[i] += a; return ref; } template <class T2> ArrRef<T> & operator -= ( const T2 & a ) { for ( nat i = 0; i < ref.size(); ++i ) ref[i] -= a; return ref; } template <class T2> ArrRef<T> & operator *= ( const T2 & a ) { for ( nat i = 0; i < ref.size(); ++i ) ref[i] *= a; return ref; } template <class T2> ArrRef<T> & operator /= ( const T2 & a ) { for ( nat i = 0; i < ref.size(); ++i ) ref[i] /= a; return ref; } template <class T2> ArrRef<T> & operator %= ( const T2 & a ) { for ( nat i = 0; i < ref.size(); ++i ) ref[i] %= a; return ref; } }; template <class T> inline For012<T> for012 ( ArrRef<T> & a ) { return For012<T> ( a ); } /********************** For012f ************************/ template <class T> class For012f { ArrRef<T> & ref; public: explicit For012f ( ArrRef<T> & a ) : ref ( a ) {} template <class T2> ArrRef<T> & operator = ( T2 & f ) { for ( nat i = 0; i < ref.size(); ++i ) ref[i] = f(); return ref; } }; template <class T> inline For012f<T> for012f ( ArrRef<T> & a ) { return For012f<T> ( a ); } #endif
[ "shevchenka@narod.ru" ]
shevchenka@narod.ru
4e414fa1dd574c3ac7c26f61efa31af307588902
037d518773420f21d74079ee492827212ba6e434
/blazetest/src/mathtest/smatdmatmult/MIbM3x3a.cpp
1b1bccfe1f5dbbe015cbc33e648e584a8eb506bc
[ "BSD-3-Clause" ]
permissive
chkob/forked-blaze
8d228f3e8d1f305a9cf43ceaba9d5fcd603ecca8
b0ce91c821608e498b3c861e956951afc55c31eb
refs/heads/master
2021-09-05T11:52:03.715469
2018-01-27T02:31:51
2018-01-27T02:31:51
112,014,398
0
0
null
null
null
null
UTF-8
C++
false
false
3,741
cpp
//================================================================================================= /*! // \file src/mathtest/smatdmatmult/MIbM3x3a.cpp // \brief Source file for the MIbM3x3a sparse matrix/dense matrix multiplication math test // // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // This file is part of the Blaze library. You can redistribute it and/or modify it under // the terms of the New (Revised) BSD License. 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 names of the Blaze development group 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. */ //================================================================================================= //************************************************************************************************* // Includes //************************************************************************************************* #include <cstdlib> #include <iostream> #include <blaze/math/IdentityMatrix.h> #include <blaze/math/StaticMatrix.h> #include <blazetest/mathtest/Creator.h> #include <blazetest/mathtest/smatdmatmult/OperationTest.h> #include <blazetest/system/MathTest.h> //================================================================================================= // // MAIN FUNCTION // //================================================================================================= //************************************************************************************************* int main() { std::cout << " Running 'MIbM3x3a'..." << std::endl; using blazetest::mathtest::TypeA; using blazetest::mathtest::TypeB; try { // Matrix type definitions typedef blaze::IdentityMatrix<TypeB> MIb; typedef blaze::StaticMatrix<TypeA,3UL,3UL> M3x3a; // Creator type definitions typedef blazetest::Creator<MIb> CMIb; typedef blazetest::Creator<M3x3a> CM3x3a; // Running the tests RUN_SMATDMATMULT_OPERATION_TEST( CMIb( 3UL ), CM3x3a() ); } catch( std::exception& ex ) { std::cerr << "\n\n ERROR DETECTED during sparse matrix/dense matrix multiplication:\n" << ex.what() << "\n"; return EXIT_FAILURE; } return EXIT_SUCCESS; } //*************************************************************************************************
[ "klaus.iglberger@gmail.com" ]
klaus.iglberger@gmail.com
213dcad1eb820e48c5b032ba51c2d12b9eb49a82
0b933ebb80380f91aff695150a2fe5823675ba9c
/test/basic_pb_tests.cpp
c9879ea6c18d884ee3f2e59fb8c4a43861c5284e
[ "MIT" ]
permissive
prismskylabs/PriorityBuffer
f8b1f2b9f6f46566b050847cb93e8fe2c862b134
e19fdb2988f8ec2184780378dfe0297b2a91faba
refs/heads/master
2022-04-29T09:33:29.915483
2022-03-19T00:37:44
2022-03-19T00:37:44
33,696,434
3
1
null
null
null
null
UTF-8
C++
false
false
2,898
cpp
#include <gtest/gtest.h> #include <chrono> #include <memory> #include <string> #include <thread> #include <vector> #include "basic.pb.h" #include "fsfixture.h" #include "prioritybuffer.h" #ifndef NUMBER_MESSAGES_IN_TEST #define NUMBER_MESSAGES_IN_TEST 1000 #endif TEST_F(FSFixture, DefaultPriorityTest) { PriorityBuffer<Basic> basics; for (int i = 0; i < NUMBER_MESSAGES_IN_TEST; ++i) { auto basic = std::unique_ptr<Basic>{ new Basic{} }; basic->set_value(std::to_string(i)); EXPECT_EQ(std::to_string(i), basic->value()); EXPECT_TRUE(basic->IsInitialized()); basics.Push(std::move(basic)); std::this_thread::sleep_for(std::chrono::nanoseconds(1)); } for (int i = NUMBER_MESSAGES_IN_TEST - 1; i >= 0; --i) { auto basic = basics.Pop(); EXPECT_TRUE(basic->IsInitialized()); EXPECT_EQ(std::to_string(i), basic->value()); } } unsigned long long reverse_priority(const Basic& basic) { return 20000000000000000LL - std::chrono::steady_clock::now().time_since_epoch().count(); } TEST_F(FSFixture, ReversePriorityTest) { PriorityBuffer<Basic> basics{reverse_priority}; for (int i = 0; i < NUMBER_MESSAGES_IN_TEST; ++i) { auto basic = std::unique_ptr<Basic>{ new Basic{} }; basic->set_value(std::to_string(i)); EXPECT_TRUE(basic->IsInitialized()); EXPECT_EQ(std::to_string(i), basic->value()); basics.Push(std::move(basic)); std::this_thread::sleep_for(std::chrono::nanoseconds(1)); } for (int i = 0; i < NUMBER_MESSAGES_IN_TEST; ++i) { auto basic = basics.Pop(); EXPECT_TRUE(basic->IsInitialized()); EXPECT_EQ(std::to_string(i), basic->value()); } } TEST_F(FSFixture, OutOfOrderTest) { std::vector<unsigned long long> ordered_priorities{5, 3, 7, 1, 8, 2}; int priority_at = 0; auto ordered_priority = [&ordered_priorities, &priority_at] (const Basic& basic) -> unsigned long long { return ordered_priorities[priority_at++]; }; PriorityBuffer<Basic> basics{ordered_priority}; for (auto& priority : ordered_priorities) { auto basic = std::unique_ptr<Basic>{ new Basic{} }; basic->set_value(std::to_string(priority)); EXPECT_TRUE(basic->IsInitialized()); EXPECT_EQ(std::to_string(priority), basic->value()); basics.Push(std::move(basic)); std::this_thread::sleep_for(std::chrono::nanoseconds(1)); } std::sort(ordered_priorities.rbegin(), ordered_priorities.rend()); for (auto& priority : ordered_priorities) { auto basic = basics.Pop(); EXPECT_TRUE(basic->IsInitialized()); EXPECT_EQ(std::to_string(priority), basic->value()); } } int main(int argc, char** argv) { ::testing::InitGoogleTest(&argc, argv); GOOGLE_PROTOBUF_VERIFY_VERSION; return RUN_ALL_TESTS(); }
[ "huu@prismskylabs.com" ]
huu@prismskylabs.com
eb04e444c7f4cd0b24fb903cf3e306a82877be12
8f6990502b2d329fd221a55198001e800f0a9c47
/src/overwrite_serial_number.cpp
2daf555afd1619ec8f2057f3deebb682d7d9eec5
[ "BSD-3-Clause" ]
permissive
kobuki-base/kobuki_ftdi
03726c2f0c76db3e9607857f51413bcb91b7d905
a7e9d5783e78a9666084bfe797c7b663f3770aff
refs/heads/devel
2020-12-08T10:49:48.683322
2020-08-30T15:47:48
2020-08-30T15:47:48
232,963,869
0
2
NOASSERTION
2020-08-20T02:47:50
2020-01-10T04:14:01
C++
UTF-8
C++
false
false
2,733
cpp
/* * License: BSD * URL: https://raw.githubusercontent.com/kobuki-base/kobuki_ftdi/license/LICENSE */ /** * @file src/overwrite_serial_number.cpp * @brief Overwrite serial number of ftdi device. * * <b>License:</b> BSD https://raw.github.com/yujinrobot/kobuki_core/hydro-devel/kobuki_ftdi/LICENSE **/ /***************************************************************************** ** Includes *****************************************************************************/ #include <iostream> #include <ecl/command_line.hpp> #include "kobuki_ftdi/writer.hpp" #include "kobuki_ftdi/scanner.hpp" /***************************************************************************** ** Using *****************************************************************************/ using ecl::CmdLine; using ecl::UnlabeledValueArg; using ecl::ValueArg; using ecl::SwitchArg; using std::string; /***************************************************************************** ** Main *****************************************************************************/ int main(int argc, char **argv) { /********************* ** Parse Command Line **********************/ CmdLine cmd_line("This is used to write a new serial id string to the ftdi device.", ' ', "0.1"); ValueArg<std::string> old_arg( "o", "old", "Identify the device via the old serial id (if there are multiple devices attached) ['unspecified'].", false, "unspecified", "string"); UnlabeledValueArg<std::string> new_arg("new_id", "New serial id used to identify the device [xxx].", true, "xxx", "string"); cmd_line.add(old_arg); cmd_line.add(new_arg); cmd_line.parse(argc, argv); bool using_old_id = false; string old_id; if (old_arg.getValue() != "unspecified") { using_old_id = true; old_id = old_arg.getValue(); } string new_id = new_arg.getValue(); /********************* ** Debug output **********************/ std::cout << "Input Information" << std::endl; if (!using_old_id) { std::cout << " Old id: unused (first device found.)" << std::endl; } else { std::cout << " Old id: " << old_id << std::endl; } std::cout << " New id: " << new_id << std::endl; /********************* ** Writing serial id **********************/ FTDI_Writer writer; int ret_val = 0; ret_val = writer.write(new_id); if (ret_val<0) { std::cerr << "Something went wrong." << std::endl; return ret_val; } FTDI_Scanner scanner; ret_val = scanner.reset(); if (ret_val<0 && ret_val !=-19) { std::cerr << "Something went wrong." << std::endl; return ret_val; } std::cout << "ret_val: " << ret_val << std::endl; return 0; }
[ "d.stonier@gmail.com" ]
d.stonier@gmail.com
c73cbe697d932093c057f0910a2fc23636d33b94
fca785d6e67eadcd6d1a9ed9b315177355114c86
/src/082.cpp
10808848cb878e150a2729146d8d7ddf0040b2aa
[]
no_license
XihanLiu/LeetCode
31333c403042f05b7bf3b04e989d6f97fcd81d69
c07f479cc9aa20567e35d97f32a1ba385663249b
refs/heads/master
2023-03-15T22:55:25.536338
2013-12-07T06:38:59
2013-12-07T06:38:59
null
0
0
null
null
null
null
UTF-8
C++
false
false
832
cpp
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode *deleteDuplicates(ListNode *head) { // Start typing your C/C++ solution below // DO NOT write int main() function if (head == NULL || head->next == NULL) return head; ListNode *prev = NULL, *cur = head; while (cur != NULL) { while (cur->next != NULL && cur->val == cur->next->val) { cur = cur->next; } if (prev == NULL) { head = cur; prev = head; } else { prev->next = cur; prev = cur; } if (cur != NULL) cur = cur->next; } } };
[ "jiaxiang.zheng135@gmail.com" ]
jiaxiang.zheng135@gmail.com
6762fc3f374f6cb5cac39cadf1e6ee70d11700d0
3a6c1dc2afcbf5321e3610e3a710eeffacf435cb
/chrome/browser/web_applications/preinstalled_web_apps/calculator.cc
5f8010f561da29da625e315de2177dcd88512b2b
[ "BSD-3-Clause" ]
permissive
phimuemue/chromium
9840da796dcef3c5813594f78296afa4da7b5e13
48ed0496d86ea75a4788000ceefbb2eb80971d34
refs/heads/main
2023-08-17T14:07:11.247730
2021-09-23T06:07:06
2021-09-23T06:07:06
409,474,698
0
0
BSD-3-Clause
2021-09-23T06:28:43
2021-09-23T06:28:42
null
UTF-8
C++
false
false
3,655
cc
// Copyright 2021 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. #include "chrome/browser/web_applications/preinstalled_web_apps/calculator.h" #include "base/bind.h" #include "base/strings/utf_string_conversions.h" #include "chrome/browser/web_applications/preinstalled_app_install_features.h" #include "chrome/browser/web_applications/preinstalled_web_apps/preinstalled_web_app_definition_utils.h" #include "chrome/browser/web_applications/web_application_info.h" #include "chrome/grit/preinstalled_web_apps_resources.h" namespace web_app { namespace { // clang-format off constexpr Translation kNameTranslations[] = { {"am", u8"ሒሳብ ማስያ ማሽን"}, {"ar", u8"الآلة الحاسبة"}, {"bg", u8"Калкулатор"}, {"bn", u8"ক্যালকুলেটর"}, {"ca", u8"Calculadora"}, {"cs", u8"Kalkulačka"}, {"da", u8"Lommeregner"}, {"de", u8"Rechner"}, {"el", u8"Αριθμομηχανή"}, {"en-GB", u8"Calculator"}, {"en", u8"Calculator"}, {"es-419", u8"Calculadora"}, {"es", u8"Calculadora"}, {"et", u8"Kalkulaator"}, {"fa", u8"ماشین حساب"}, {"fil", u8"Calculator"}, {"fi", u8"Laskin"}, {"fr", u8"Calculatrice"}, {"gu", u8"કેલ્ક્યુલેટર"}, {"hi", u8"कैल्‍क्‍यूलेटर"}, {"hr", u8"Kalkulator"}, {"hu", u8"Számológép"}, {"id", u8"Kalkulator"}, {"it", u8"Calcolatrice"}, {"iw", u8"מחשבון"}, {"ja", u8"電卓"}, {"kn", u8"ಕ್ಯಾಲ್ಕುಲೇಟರ್"}, {"ko", u8"계산기"}, {"lt", u8"Skaičiuotuvas"}, {"lv", u8"Kalkulators"}, {"ml", u8"കാൽക്കുലേറ്റർ"}, {"mr", u8"कॅलक्युलेटर"}, {"ms", u8"Kalkulator"}, {"nl", u8"Rekenmachine"}, {"no", u8"Kalkulator"}, {"pl", u8"Kalkulator"}, {"pt-BR", u8"Calculadora"}, {"pt-PT", u8"Calculadora"}, {"ro", u8"Calculator"}, {"ru", u8"Калькулятор"}, {"sk", u8"Kalkulačka"}, {"sl", u8"Računalo"}, {"sr", u8"Калкулатор"}, {"sv", u8"Kalkylator"}, {"sw", u8"Kikokotoo"}, {"ta", u8"கால்குலேட்டர்"}, {"te", u8"కాలిక్యులేటర్"}, {"th", u8"เครื่องคิดเลข"}, {"tr", u8"Hesap Makinesi"}, {"uk", u8"Калькулятор"}, {"vi", u8"Máy tính"}, {"zh-CN", u8"计算器"}, {"zh-TW", u8"計算機"}, }; // clang-format on } // namespace ExternalInstallOptions GetConfigForCalculator() { ExternalInstallOptions options( /*install_url=*/GURL("https://calculator.apps.chrome/install"), /*user_display_mode=*/DisplayMode::kStandalone, /*install_source=*/ExternalInstallSource::kExternalDefault); options.user_type_allowlist = {"unmanaged", "managed", "child"}; options.gate_on_feature = kDefaultCalculatorWebApp.name; options.uninstall_and_replace.push_back("joodangkbfjnajiiifokapkpmhfnpleo"); options.only_use_app_info_factory = true; options.app_info_factory = base::BindRepeating([]() { auto info = std::make_unique<WebApplicationInfo>(); info->title = base::UTF8ToUTF16(GetTranslatedName("Calculator", kNameTranslations)); info->start_url = GURL("https://calculator.apps.chrome/"); info->scope = GURL("https://calculator.apps.chrome/"); info->display_mode = DisplayMode::kStandalone; info->icon_bitmaps.any = LoadBundledIcons({IDR_PREINSTALLED_WEB_APPS_CALCULATOR_ICON_256_PNG}); info->background_color = 0xFFFFFFFF; return info; }); return options; } } // namespace web_app
[ "chromium-scoped@luci-project-accounts.iam.gserviceaccount.com" ]
chromium-scoped@luci-project-accounts.iam.gserviceaccount.com
a90ab58a991cd0dad9fa02a11f15d6a5c4efa5b4
5280876069677a667c29245157e99f7fa7c99ce7
/IMDB/include/func.hpp
e3a8a5684a8b8e64a515030b8a42f2b247270ae2
[]
no_license
alizeinodin/imdbpractice
9fe67c9b166619698dbd8ec72be986901189c120
5c2acdb78ec0224ed5b88b967b80850006d28934
refs/heads/main
2023-03-26T16:35:46.446789
2021-03-25T09:19:51
2021-03-25T09:19:51
351,361,599
1
0
null
null
null
null
UTF-8
C++
false
false
695
hpp
#ifndef FUNK_H #define FUNK_H void add(Movie, Movie * &, int &); void remove(std::string, Movie * &, int &); void show(std::string, Movie * &, int &); void show_all(Movie * &, int &); void sort_by(Movie * &, std::string, int &, bool (*function)(Movie * &, std::string, int)); void avg_score(Movie *, int); void help(); bool checkmovie(std::string, Movie *, int, int &); // check for available movie's in list void score_details(std::string, Movie*, int &); void order_adjust(std::string &); void Command_Separator(std::string, Movie * &, int &); bool help_sort(Movie * & array, std::string select, int j); // passing this funcion to sort_by for sorting by name's or score's #endif // !FUNK_H
[ "alizeinodin79@gmail.com" ]
alizeinodin79@gmail.com
be8e7f266b2ade7dbc011c0007a402c6e09cfe8f
8b4cfa801da7d1696ac2d422b41f71520220aca0
/SimulateNalDrop.cpp
1c6918064c2a2c78973918a555889364c4868d41
[]
no_license
sijchen/ErrorConcealmentTest
fa812ce82573e8eda95a863096656d3f3d791ee5
b4ac1f19411e15a556a6e0355cabaf63f40543d0
refs/heads/master
2021-01-01T19:16:44.050971
2014-11-18T18:12:42
2014-11-18T18:12:42
23,062,714
0
1
null
null
null
null
UTF-8
C++
false
false
14,563
cpp
#include <stdio.h> #include <stdlib.h> #include <vector> #include <math.h> #include <assert.h> using namespace std; enum{ MODE_GET_NAL_LIST=0, MODE_DROP_NAL=1, }; enum{ NAL_TYPE_IDR=5, NAL_TYPE_P=1, NAL_TYPE_SPS=7, NAL_TYPE_PPS=8, }; typedef struct TagNal { int iNalIdx; unsigned char* pDataStart; int iNalLength; int iNalType; }SNal; typedef struct TagAUInfo { int iAUIdx; int iAUPacketNum; unsigned char* pDataStart; int iAULengthInBytes; int iAUStartPackeIdx; }SAUInfo; typedef vector<SNal>VH264Nal; typedef vector<SAUInfo>VAUUnit; const unsigned char g_kuiLeadingZeroTable[256] = { 8, 7, 6, 6, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; typedef struct TagBitStringAux { unsigned char* pStartBuf; // buffer to start position unsigned char* pEndBuf; // buffer + length int iBits; // count bits of overall bitstreaming input int iIndex; //only for cavlc usage unsigned char* pCurBuf; // current reading position unsigned int uiCurBits; int iLeftBits; // count number of available bits left ([1, 8]), // need pointer to next byte start position in case 0 bit left then 8 instead } SBitStringAux, *PBitStringAux; #define GET_WORD(iCurBits, pBufPtr, iLeftBits, iAllowedBytes, iReadBytes) { \ if (iReadBytes > iAllowedBytes+1) { \ return 1; \ } \ iCurBits |= ((unsigned int)((pBufPtr[0] << 8) | pBufPtr[1])) << (iLeftBits); \ iLeftBits -= 16; \ pBufPtr +=2; \ } #define NEED_BITS(iCurBits, pBufPtr, iLeftBits, iAllowedBytes, iReadBytes) { \ if( iLeftBits > 0 ) { \ GET_WORD(iCurBits, pBufPtr, iLeftBits, iAllowedBytes, iReadBytes); \ } \ } #define UBITS(iCurBits, iNumBits) (iCurBits>>(32-(iNumBits))) #define DUMP_BITS(iCurBits, pBufPtr, iLeftBits, iNumBits, iAllowedBytes, iReadBytes) { \ iCurBits <<= (iNumBits); \ iLeftBits += (iNumBits); \ NEED_BITS(iCurBits, pBufPtr, iLeftBits, iAllowedBytes, iReadBytes); \ } inline unsigned int GetValue4Bytes (unsigned char* pDstNal) { unsigned int uiValue = 0; uiValue = (pDstNal[0] << 24) | (pDstNal[1] << 16) | (pDstNal[2] << 8) | (pDstNal[3]); return uiValue; } void InitReadBits (PBitStringAux pBitString) { pBitString->uiCurBits = GetValue4Bytes (pBitString->pCurBuf); pBitString->pCurBuf += 4; pBitString->iLeftBits = -16; } int InitBits (PBitStringAux pBitString, const unsigned char* kpBuf, const int kiSize) { const int kiSizeBuf = (kiSize + 7) >> 3; unsigned char* pTmp = (unsigned char*)kpBuf; if (NULL == pTmp) return -1; pBitString->pStartBuf = pTmp; // buffer to start position pBitString->pEndBuf = pTmp + kiSizeBuf; // buffer + length pBitString->iBits = kiSize; // count bits of overall bitstreaming inputindex; pBitString->pCurBuf = pBitString->pStartBuf; InitReadBits (pBitString); return kiSizeBuf; } static inline int GetLeadingZeroBits (unsigned int iCurBits) { //<=32 bits unsigned int uiValue; uiValue = UBITS (iCurBits, 8); //ShowBits( bs, 8 ); if (uiValue) { return g_kuiLeadingZeroTable[uiValue]; } uiValue = UBITS (iCurBits, 16); //ShowBits( bs, 16 ); if (uiValue) { return (g_kuiLeadingZeroTable[uiValue] + 8); } uiValue = UBITS (iCurBits, 24); //ShowBits( bs, 24 ); if (uiValue) { return (g_kuiLeadingZeroTable[uiValue] + 16); } uiValue = iCurBits; //ShowBits( bs, 32 ); if (uiValue) { return (g_kuiLeadingZeroTable[uiValue] + 24); } //ASSERT(false); // should not go here return -1; } static inline unsigned int BsGetUe (PBitStringAux pBs) { unsigned int iValue = 0; int iLeadingZeroBits = GetLeadingZeroBits (pBs->uiCurBits); int iAllowedBytes, iReadBytes; iAllowedBytes = pBs->pEndBuf - pBs->pStartBuf; //actual stream bytes if (iLeadingZeroBits == -1) { //bistream error return -1; } else if (iLeadingZeroBits > 16) { //rarely into this condition (even may be bitstream error), prevent from 16-bit reading overflow //using two-step reading instead of one time reading of >16 bits. iReadBytes = pBs->pCurBuf - pBs->pStartBuf; DUMP_BITS (pBs->uiCurBits, pBs->pCurBuf, pBs->iLeftBits, 16, iAllowedBytes, iReadBytes); iReadBytes = pBs->pCurBuf - pBs->pStartBuf; DUMP_BITS (pBs->uiCurBits, pBs->pCurBuf, pBs->iLeftBits, iLeadingZeroBits + 1 - 16, iAllowedBytes, iReadBytes); } else { iReadBytes = pBs->pCurBuf - pBs->pStartBuf; DUMP_BITS (pBs->uiCurBits, pBs->pCurBuf, pBs->iLeftBits, iLeadingZeroBits + 1, iAllowedBytes, iReadBytes); } if (iLeadingZeroBits) { iValue = UBITS (pBs->uiCurBits, iLeadingZeroBits); iReadBytes = pBs->pCurBuf - pBs->pStartBuf; DUMP_BITS (pBs->uiCurBits, pBs->pCurBuf, pBs->iLeftBits, iLeadingZeroBits, iAllowedBytes, iReadBytes); } return ((1 << iLeadingZeroBits) - 1 + iValue); } #define IsKeyFrame(type) (NAL_TYPE_SPS==type || NAL_TYPE_PPS==type || NAL_TYPE_IDR==type) #define exist_annexb_nal_header(bs) \ ((0 == bs[0]) && (0 == bs[1]) && (0 == bs[2]) && (1 == bs[3])) int detect_nal_length( unsigned char *buf_start, const int left_len ) { int iOffset = 4; unsigned char *cur_bs = buf_start + 4; //get to the next NAL header while( iOffset < left_len ) { int count_leading_zero = 0; while ( 0 == *cur_bs ) { ++ count_leading_zero; ++ iOffset; ++ cur_bs; if ( (count_leading_zero >= 3) && (iOffset < left_len) && (1 == *cur_bs) ) { iOffset -= 3; return iOffset; } } ++ cur_bs; ++ iOffset; } return iOffset; } //////////////////////// void ReadBs(unsigned char *src_bs_buffer, int iSrcBsLength, VH264Nal& vH264Nal, VH264Nal& vIdrNal, VAUUnit& vAUUnit) { unsigned char *pCurrentSrc = src_bs_buffer; unsigned char *pLastNalStartSrc = pCurrentSrc; SNal sNal = {0}; int iCurNalIdx = 0, iCurAUIdx = 0; int kiNalLen = 0, iAUPackets=0, iAuLen = 0, iLastFirstMb =0, iAUStartPackeIdx=0; SAUInfo sAU = {0}; while (src_bs_buffer + iSrcBsLength- pCurrentSrc > 5) { if( exist_annexb_nal_header(pCurrentSrc) && pCurrentSrc != src_bs_buffer) { kiNalLen = pCurrentSrc - pLastNalStartSrc; // put last NAL to NAL list sNal.iNalIdx = iCurNalIdx; sNal.pDataStart = pLastNalStartSrc; sNal.iNalLength = kiNalLen; sNal.iNalType = (pLastNalStartSrc[4] & 0x1F); vH264Nal.push_back(sNal); iAUPackets++; iAuLen+=kiNalLen; if IsKeyFrame(sNal.iNalType) { vIdrNal.push_back(sNal); } //check AU bool bNewAU = false; int iCurNalType = (pCurrentSrc[4] & 0x1F); if (NAL_TYPE_P == iCurNalType) { SBitStringAux sBitStringAux; InitBits (&sBitStringAux, pLastNalStartSrc+5, kiNalLen); int iFirstMb = BsGetUe(&sBitStringAux); if (iFirstMb == 0 || iFirstMb < iLastFirstMb) {bNewAU = true;} iLastFirstMb = iFirstMb; } if (NAL_TYPE_SPS == iCurNalType){bNewAU = true;} if (bNewAU) { sAU.iAUIdx = iCurAUIdx; sAU.iAUPacketNum = iAUPackets; sAU.iAULengthInBytes = iAuLen; sAU.iAUStartPackeIdx = iAUStartPackeIdx; sAU.pDataStart = vH264Nal[iAUStartPackeIdx].pDataStart; vAUUnit.push_back(sAU); iCurAUIdx ++; iAUStartPackeIdx += iAUPackets; iAUPackets = 0; iAuLen = 0; } iCurNalIdx ++; pLastNalStartSrc = pCurrentSrc; } ++ pCurrentSrc; } //last NAL kiNalLen = pCurrentSrc - pLastNalStartSrc; if (kiNalLen>0) { sNal.iNalIdx = iCurNalIdx; sNal.pDataStart = pLastNalStartSrc; sNal.iNalLength = kiNalLen; sNal.iNalType = (pLastNalStartSrc[4] & 0x1F); vH264Nal.push_back(sNal); sAU.iAUIdx = iCurAUIdx; sAU.iAUPacketNum = iAUPackets; sAU.iAULengthInBytes = iAuLen; sAU.iAUStartPackeIdx = iAUStartPackeIdx; sAU.pDataStart = vH264Nal[iAUStartPackeIdx].pDataStart; vAUUnit.push_back(sAU); } } int main(int argc, char* argv[]) { printf("usage: mode Src ## MODE_GET_NAL_LIST\n"); printf("usage: mode Src KeyFramePeriod ImpairedPositionAfterKeyFrame NumOfLossNal ## MODE_DROP_NAL \n"); if (argc<2) { fprintf(stdout, "wrong argv, see help\n") } const int iMode= atoi(argv[1]); unsigned char *src_bs_buffer = NULL; unsigned char *target_bs_buffer= NULL; FILE *fpSrc = fopen(argv[2], "rb"); if (MODE_GET_NAL_LIST==iMode) { char filename[100]; strcpy(filename, argv[2]); strcat(filename, ".info"); FILE *fpDstLen = fopen(filename, "w"); if (fpSrc && fpDstLen && !fseek (fpSrc, 0, SEEK_END)) { int src_bs_len = ftell (fpSrc); fseek (fpSrc, 0, SEEK_SET); if (src_bs_len > 0) { src_bs_buffer = new unsigned char[src_bs_len]; if (NULL == src_bs_buffer ) { fprintf(stderr, "out of memory due src bs buffer memory request(size=%d)\n", src_bs_len); }else{ if ( fread(src_bs_buffer, sizeof(unsigned char), src_bs_len, fpSrc) < src_bs_len*sizeof(unsigned char) ) { fprintf(stderr, "fread failed!\n"); delete []src_bs_buffer;} if (NULL != src_bs_buffer){ VH264Nal vDataPacket; VH264Nal vIdrNalList; VAUUnit vAUUnit; ReadBs(src_bs_buffer, src_bs_len, vDataPacket, vIdrNalList, vAUUnit); for (int k=0;k<vDataPacket.size();k++) { fprintf(fpDstLen, "NAl#\t%d\t, iNalType=\t%d\t, iLengthInBytes=\t%d\n", vDataPacket[k].iNalIdx, vDataPacket[k].iNalType, vDataPacket[k].iNalLength); } for (int k=0;k<vAUUnit.size();k++) { fprintf(fpDstLen, "vAUUnit#\t%d\t, iPackets=\t%d\t, iAUStartPackeIdx=%d, iLengthInBytes=\t%d\n", vAUUnit[k].iAUIdx, vAUUnit[k].iAUPacketNum,vAUUnit[k].iAUStartPackeIdx, vAUUnit[k].iAULengthInBytes); } } } } } delete []src_bs_buffer; if (fpDstLen!=NULL) fclose(fpDstLen); } if (MODE_DROP_NAL==iMode) { //KeyFramePeriod ImpairedPositionAfterKeyFrame NumOfLossNal const int iKeyFramePeriod= atoi(argv[3]); const int iImpairedPosition= atoi(argv[4]); const int iNumOfMaxLossNal= atoi(argv[5]); if (iImpairedPosition == 0 || iNumOfMaxLossNal == 0) { printf("unexpected input iImpairedPosition=%d, iNumOfMaxLossNal=%d\n", iImpairedPosition, iNumOfMaxLossNal); goto exit_tag; } char filename[100]; strcpy(filename, argv[2]); strcat(filename, "_impaired.264"); FILE *fpDst = fopen(filename, "wb"); if (fpSrc && !fseek (fpSrc, 0, SEEK_END)) { int src_bs_len = ftell (fpSrc); fseek (fpSrc, 0, SEEK_SET); if (src_bs_len > 0) { src_bs_buffer = new unsigned char[src_bs_len]; if (NULL == src_bs_buffer ) { fprintf(stderr, "out of memory due src bs buffer memory request(size=%d)\n", src_bs_len); }else{ if ( fread(src_bs_buffer, sizeof(unsigned char), src_bs_len, fpSrc) < src_bs_len*sizeof(unsigned char) ) { fprintf(stderr, "fread failed!\n"); delete []src_bs_buffer;} if (NULL != src_bs_buffer){ fprintf(stdout, "BeginReadBs: File Len=%d\n", src_bs_len); VH264Nal vDataPacket; VH264Nal vIdrNalList; VAUUnit vAUUnit; ReadBs(src_bs_buffer, src_bs_len, vDataPacket, vIdrNalList, vAUUnit); fprintf(stdout, "AfterReadBs: %d frames found\n", vAUUnit.size()); int iNonKeyCount = 0, iStartIdx=0, iTtlPackets=0; int iCopyEnd = 0, iNalType = 0; int iNumOfLossNal = iNumOfMaxLossNal; for (int k=0;k<vAUUnit.size();k++) { if (k%iKeyFramePeriod){iNonKeyCount++;} else { //is key frame iNonKeyCount = 0; iNumOfLossNal = iNumOfMaxLossNal; } if (iNonKeyCount >= iImpairedPosition && iNumOfLossNal>0) { if (iNumOfLossNal>=vAUUnit[k].iAUPacketNum){ iNumOfLossNal -= vAUUnit[k].iAUPacketNum; fprintf(stdout, "whole frame dropped: %d\n", k); } else { iStartIdx = vAUUnit[k].iAUStartPackeIdx; iTtlPackets = vAUUnit[k].iAUPacketNum; int iLossStartIdx = (iTtlPackets-iNumOfLossNal)/2; for (int n=0; n<iTtlPackets; n++){ if (n<iLossStartIdx || n>=iLossStartIdx+iNumOfLossNal) fwrite( vDataPacket[n+iStartIdx].pDataStart, 1, vDataPacket[n+iStartIdx].iNalLength, fpDst ); } iNumOfLossNal = 0; fprintf(stdout, "impaired frame: %d\n", k); } } else { fwrite( vAUUnit[k].pDataStart, 1, vAUUnit[k].iAULengthInBytes, fpDst ); } } } } } } delete []src_bs_buffer; if (fpDst!=NULL) fclose(fpDst); } exit_tag: if (fpSrc!=NULL) fclose(fpSrc); printf("Finished mode=%d!\n", iMode); return 0; }
[ "sijchen@cisco.com" ]
sijchen@cisco.com
1f19986f6eb107592a187ce8a82eb7011c77b274
72b507a7255d2c7f747902a2c33f9c80f35c689a
/debug/moc_scene.cpp
e54baec373c7f9f5782ff6e59d3ceaf81f7592e8
[]
no_license
alborzp/DEKUMED
4aeaf7c3b5c7e1a755662fbae6f7e3eb5016a704
91f1c7bdf23a721d4a9856f3331348c2f0bc02d5
refs/heads/master
2021-05-19T07:12:55.165702
2020-03-31T11:26:27
2020-03-31T11:26:27
251,580,209
0
0
null
null
null
null
UTF-8
C++
false
false
4,311
cpp
/**************************************************************************** ** Meta object code from reading C++ file 'scene.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.14.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include <memory> #include "../scene.h" #include <QtCore/qbytearray.h> #include <QtCore/qmetatype.h> #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'scene.h' doesn't include <QObject>." #elif Q_MOC_OUTPUT_REVISION != 67 #error "This file was generated using the moc from 5.14.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE QT_WARNING_PUSH QT_WARNING_DISABLE_DEPRECATED struct qt_meta_stringdata_SceneClass_t { QByteArrayData data[8]; char stringdata0[79]; }; #define QT_MOC_LITERAL(idx, ofs, len) \ Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ qptrdiff(offsetof(qt_meta_stringdata_SceneClass_t, stringdata0) + ofs \ - idx * sizeof(QByteArrayData)) \ ) static const qt_meta_stringdata_SceneClass_t qt_meta_stringdata_SceneClass = { { QT_MOC_LITERAL(0, 0, 10), // "SceneClass" QT_MOC_LITERAL(1, 11, 12), // "setGridsizeX" QT_MOC_LITERAL(2, 24, 0), // "" QT_MOC_LITERAL(3, 25, 8), // "newXGrid" QT_MOC_LITERAL(4, 34, 12), // "setGridsizeY" QT_MOC_LITERAL(5, 47, 5), // "value" QT_MOC_LITERAL(6, 53, 12), // "getXForShape" QT_MOC_LITERAL(7, 66, 12) // "getYForShape" }, "SceneClass\0setGridsizeX\0\0newXGrid\0" "setGridsizeY\0value\0getXForShape\0" "getYForShape" }; #undef QT_MOC_LITERAL static const uint qt_meta_data_SceneClass[] = { // content: 8, // revision 0, // classname 0, 0, // classinfo 4, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: name, argc, parameters, tag, flags 1, 1, 34, 2, 0x0a /* Public */, 4, 1, 37, 2, 0x0a /* Public */, 6, 0, 40, 2, 0x0a /* Public */, 7, 0, 41, 2, 0x0a /* Public */, // slots: parameters QMetaType::Void, QMetaType::Int, 3, QMetaType::Void, QMetaType::Int, 5, QMetaType::Int, QMetaType::Int, 0 // eod }; void SceneClass::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) { if (_c == QMetaObject::InvokeMetaMethod) { auto *_t = static_cast<SceneClass *>(_o); Q_UNUSED(_t) switch (_id) { case 0: _t->setGridsizeX((*reinterpret_cast< int(*)>(_a[1]))); break; case 1: _t->setGridsizeY((*reinterpret_cast< int(*)>(_a[1]))); break; case 2: { int _r = _t->getXForShape(); if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); } break; case 3: { int _r = _t->getYForShape(); if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); } break; default: ; } } } QT_INIT_METAOBJECT const QMetaObject SceneClass::staticMetaObject = { { QMetaObject::SuperData::link<QGraphicsScene::staticMetaObject>(), qt_meta_stringdata_SceneClass.data, qt_meta_data_SceneClass, qt_static_metacall, nullptr, nullptr } }; const QMetaObject *SceneClass::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; } void *SceneClass::qt_metacast(const char *_clname) { if (!_clname) return nullptr; if (!strcmp(_clname, qt_meta_stringdata_SceneClass.stringdata0)) return static_cast<void*>(this); return QGraphicsScene::qt_metacast(_clname); } int SceneClass::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QGraphicsScene::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { if (_id < 4) qt_static_metacall(this, _c, _id, _a); _id -= 4; } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { if (_id < 4) *reinterpret_cast<int*>(_a[0]) = -1; _id -= 4; } return _id; } QT_WARNING_POP QT_END_MOC_NAMESPACE
[ "alborz.poorrahim@gmail.com" ]
alborz.poorrahim@gmail.com
be975a49f2b6a7f06fc473722c2d7e3da6ad69b1
ed5ab9930d9b1e90fee36b0a10d397b21e36648d
/DataMgr/ForeignStorage/ParquetDataWrapper.cpp
c82c5fe060b9d2b1247cdc7fd410989c2f9318a4
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
prutskov/omniscidb
379c13ac6029afd459cf96eab28cd636dc8ee287
9a1e79cfeed4f6801f3f9805a0759569ae777ae8
refs/heads/master
2020-12-30T08:28:39.639271
2020-08-17T21:04:01
2020-08-18T16:51:29
238,927,530
0
0
Apache-2.0
2020-02-07T13:18:05
2020-02-07T13:18:02
null
UTF-8
C++
false
false
24,192
cpp
/* * Copyright 2020 OmniSci, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "ParquetDataWrapper.h" #include <regex> #include <boost/filesystem.hpp> #include "ImportExport/Importer.h" #include "Utils/DdlUtils.h" #define CHUNK_KEY_FRAGMENT_IDX 3 #define CHUNK_KEY_COLUMN_IDX 2 #define CHUNK_KEY_DB_IDX 0 namespace foreign_storage { namespace { template <typename T> std::pair<typename std::map<ChunkKey, T>::iterator, typename std::map<ChunkKey, T>::iterator> prefix_range(std::map<ChunkKey, T>& map, const ChunkKey& chunk_key_prefix) { ChunkKey chunk_key_prefix_sentinel = chunk_key_prefix; chunk_key_prefix_sentinel.push_back(std::numeric_limits<int>::max()); auto begin = map.lower_bound(chunk_key_prefix); auto end = map.upper_bound(chunk_key_prefix_sentinel); return std::make_pair(begin, end); } } // namespace ParquetDataWrapper::ParquetDataWrapper(const int db_id, const ForeignTable* foreign_table) : db_id_(db_id) , foreign_table_(foreign_table) , row_count_(0) , max_row_group_(0) , current_row_group_(-1) , row_group_row_count_(0) , foreign_table_column_map_(db_id_, foreign_table_) {} ParquetDataWrapper::ParquetDataWrapper(const ForeignTable* foreign_table) : db_id_(-1) , foreign_table_(foreign_table) , foreign_table_column_map_(db_id_, foreign_table_) {} void ParquetDataWrapper::validateOptions(const ForeignTable* foreign_table) { for (const auto& entry : foreign_table->options) { const auto& table_options = foreign_table->supported_options; if (std::find(table_options.begin(), table_options.end(), entry.first) == table_options.end() && std::find(supported_options_.begin(), supported_options_.end(), entry.first) == supported_options_.end()) { throw std::runtime_error{"Invalid foreign table option \"" + entry.first + "\"."}; } } ParquetDataWrapper data_wrapper{foreign_table}; data_wrapper.validateAndGetCopyParams(); data_wrapper.validateFilePath(); } void ParquetDataWrapper::validateFilePath() { ddl_utils::validate_allowed_file_path(getFilePath(), ddl_utils::DataTransferType::IMPORT); } void ParquetDataWrapper::resetParquetMetadata() { row_count_ = 0; fragment_to_row_group_interval_map_.clear(); fragment_to_row_group_interval_map_[0] = {0, 0, -1}; max_row_group_ = 0; row_group_row_count_ = 0; current_row_group_ = -1; } std::unique_ptr<ForeignStorageBuffer>& ParquetDataWrapper::initializeChunkBuffer( const ChunkKey& chunk_key) { auto& buffer = chunk_buffer_map_[chunk_key]; buffer.reset(); buffer = std::make_unique<ForeignStorageBuffer>(); return buffer; } std::list<const ColumnDescriptor*> ParquetDataWrapper::getColumnsToInitialize( const Interval<ColumnType>& column_interval) { const auto catalog = Catalog_Namespace::Catalog::get(db_id_); CHECK(catalog); const auto& columns = catalog->getAllColumnMetadataForTableUnlocked( foreign_table_->tableId, false, false, true); auto column_start = column_interval.start; auto column_end = column_interval.end; column_start = std::max(0, column_start); column_end = std::min(columns.back()->columnId - 1, column_end); std::list<const ColumnDescriptor*> columns_to_init; for (const auto column : columns) { auto column_id = column->columnId - 1; if (column_id >= column_start && column_id <= column_end) { columns_to_init.push_back(column); } } return columns_to_init; } void ParquetDataWrapper::initializeChunkBuffers( const Interval<FragmentType>& fragment_interval, const Interval<ColumnType>& column_interval) { for (const auto column : getColumnsToInitialize(column_interval)) { for (auto fragment_index = fragment_interval.start; fragment_index <= fragment_interval.end; ++fragment_index) { Chunk_NS::Chunk chunk{column}; if (column->columnType.is_varlen() && !column->columnType.is_fixlen_array()) { ChunkKey data_chunk_key{ db_id_, foreign_table_->tableId, column->columnId, fragment_index, 1}; chunk.setBuffer(initializeChunkBuffer(data_chunk_key).get()); ChunkKey index_chunk_key{ db_id_, foreign_table_->tableId, column->columnId, fragment_index, 2}; chunk.setIndexBuffer(initializeChunkBuffer(index_chunk_key).get()); } else { ChunkKey data_chunk_key{ db_id_, foreign_table_->tableId, column->columnId, fragment_index}; chunk.setBuffer(initializeChunkBuffer(data_chunk_key).get()); } chunk.initEncoder(); } } } void ParquetDataWrapper::initializeChunkBuffers(const int fragment_index) { initializeChunkBuffers({fragment_index, fragment_index}, {0, std::numeric_limits<int>::max()}); } void ParquetDataWrapper::finalizeFragmentMap() { // Set the last entry in the fragment map for the last processed row int fragment_index = row_count_ > 0 ? (row_count_ - 1) / foreign_table_->maxFragRows : 0; fragment_to_row_group_interval_map_[fragment_index].end_row_group_index = max_row_group_; } void ParquetDataWrapper::updateFragmentMap(int fragment_index, int row_group) { CHECK(fragment_index > 0); auto& end_row_group_index = fragment_to_row_group_interval_map_[fragment_index - 1].end_row_group_index; if (row_group_row_count_ == 0) { end_row_group_index = row_group - 1; } else { end_row_group_index = row_group; } fragment_to_row_group_interval_map_[fragment_index] = { row_group_row_count_, row_group, -1}; } void ParquetDataWrapper::fetchChunkMetadata() { auto catalog = Catalog_Namespace::Catalog::get(db_id_); CHECK(catalog); // reset chunk buffers chunk_buffer_map_.clear(); initializeChunkBuffers(0); resetParquetMetadata(); LazyParquetImporter::RowGroupMetadataVector metadata_vector; LazyParquetImporter importer(getMetadataLoader(*catalog, metadata_vector), getFilePath(), validateAndGetCopyParams(), metadata_vector); importer.metadataScan(); finalizeFragmentMap(); if (chunk_buffer_map_.empty()) { throw std::runtime_error{"An error occurred when attempting to process data."}; } } std::string ParquetDataWrapper::getFilePath() { auto& server_options = foreign_table_->foreign_server->options; auto base_path_entry = server_options.find("BASE_PATH"); if (base_path_entry == server_options.end()) { throw std::runtime_error{"No base path found in foreign server options."}; } auto file_path_entry = foreign_table_->options.find("FILE_PATH"); std::string file_path{}; if (file_path_entry != foreign_table_->options.end()) { file_path = file_path_entry->second; } const std::string separator{boost::filesystem::path::preferred_separator}; return std::regex_replace(base_path_entry->second + separator + file_path, std::regex{separator + "{2,}"}, separator); } import_export::CopyParams ParquetDataWrapper::validateAndGetCopyParams() { import_export::CopyParams copy_params{}; if (const auto& value = validateAndGetStringWithLength("ARRAY_DELIMITER", 1); !value.empty()) { copy_params.array_delim = value[0]; } if (const auto& value = validateAndGetStringWithLength("ARRAY_MARKER", 2); !value.empty()) { copy_params.array_begin = value[0]; copy_params.array_end = value[1]; } // The file_type argument is never utilized in the context of FSI, // for completeness, set the file_type copy_params.file_type = import_export::FileType::PARQUET; return copy_params; } std::string ParquetDataWrapper::validateAndGetStringWithLength( const std::string& option_name, const size_t expected_num_chars) { if (auto it = foreign_table_->options.find(option_name); it != foreign_table_->options.end()) { if (it->second.length() != expected_num_chars) { throw std::runtime_error{"Value of \"" + option_name + "\" foreign table option has the wrong number of " "characters. Expected " + std::to_string(expected_num_chars) + " character(s)."}; } return it->second; } return ""; } std::optional<bool> ParquetDataWrapper::validateAndGetBoolValue( const std::string& option_name) { if (auto it = foreign_table_->options.find(option_name); it != foreign_table_->options.end()) { if (boost::iequals(it->second, "TRUE")) { return true; } else if (boost::iequals(it->second, "FALSE")) { return false; } else { throw std::runtime_error{"Invalid boolean value specified for \"" + option_name + "\" foreign table option. " "Value must be either 'true' or 'false'."}; } } return std::nullopt; } void ParquetDataWrapper::updateRowGroupMetadata(int row_group) { max_row_group_ = std::max(row_group, max_row_group_); if (newRowGroup(row_group)) { row_group_row_count_ = 0; } current_row_group_ = row_group; } void ParquetDataWrapper::shiftData(DataBlockPtr& data_block, const size_t import_shift, const size_t element_size) { if (element_size > 0) { auto& data_ptr = data_block.numbersPtr; data_ptr += element_size * import_shift; } } void ParquetDataWrapper::updateStatsForBuffer(AbstractBuffer* buffer, const DataBlockPtr& data_block, const size_t import_count, const size_t import_shift) { auto& encoder = buffer->encoder; CHECK(encoder); auto& type_info = buffer->sql_type; if (type_info.is_varlen()) { switch (type_info.get_type()) { case kARRAY: { encoder->updateStats(data_block.arraysPtr, import_shift, import_count); break; } case kTEXT: case kVARCHAR: case kCHAR: case kPOINT: case kLINESTRING: case kPOLYGON: case kMULTIPOLYGON: { encoder->updateStats(data_block.stringsPtr, import_shift, import_count); break; } default: UNREACHABLE(); } } else { encoder->updateStats(data_block.numbersPtr, import_count); } encoder->setNumElems(encoder->getNumElems() + import_count); } void ParquetDataWrapper::loadMetadataChunk(const ColumnDescriptor* column, const ChunkKey& chunk_key, DataBlockPtr& data_block, const size_t import_count, const bool has_nulls, const bool is_all_nulls) { auto type_info = column->columnType; CHECK(!(type_info.is_varlen() && !type_info.is_fixlen_array())); CHECK(chunk_buffer_map_.find(chunk_key) != chunk_buffer_map_.end()); auto buffer = chunk_buffer_map_[chunk_key].get(); auto& encoder = buffer->encoder; std::shared_ptr<ChunkMetadata> chunk_metadata_ptr = std::make_shared<ChunkMetadata>(); encoder->getMetadata(chunk_metadata_ptr); auto& chunk_stats = chunk_metadata_ptr->chunkStats; chunk_stats.has_nulls |= has_nulls; encoder->resetChunkStats(chunk_stats); if (is_all_nulls) { // do not attempt to load min/max statistics if entire row group is // null encoder->setNumElems(encoder->getNumElems() + import_count); } else { loadChunk(column, chunk_key, data_block, 2, 0, true); encoder->setNumElems(encoder->getNumElems() + import_count - 2); } } void ParquetDataWrapper::loadChunk(const ColumnDescriptor* column, const ChunkKey& chunk_key, DataBlockPtr& data_block, const size_t import_count, const size_t import_shift, const bool metadata_only, const bool first_fragment, const size_t element_size) { Chunk_NS::Chunk chunk{column}; auto column_id = column->columnId; CHECK(column_id == chunk_key[CHUNK_KEY_COLUMN_IDX]); auto& type_info = column->columnType; if (type_info.is_varlen() && !type_info.is_fixlen_array()) { ChunkKey data_chunk_key{chunk_key}; data_chunk_key.resize(5); data_chunk_key[4] = 1; CHECK(chunk_buffer_map_.find(data_chunk_key) != chunk_buffer_map_.end()); auto& data_buffer = chunk_buffer_map_[data_chunk_key]; chunk.setBuffer(data_buffer.get()); ChunkKey index_chunk_key{chunk_key}; index_chunk_key.resize(5); index_chunk_key[4] = 2; CHECK(chunk_buffer_map_.find(index_chunk_key) != chunk_buffer_map_.end()); auto& index_buffer = chunk_buffer_map_[index_chunk_key]; chunk.setIndexBuffer(index_buffer.get()); } else { CHECK(chunk_buffer_map_.find(chunk_key) != chunk_buffer_map_.end()); auto& buffer = chunk_buffer_map_[chunk_key]; chunk.setBuffer(buffer.get()); } if (metadata_only) { auto buffer = chunk.getBuffer(); updateStatsForBuffer(buffer, data_block, import_count, import_shift); } else { if (first_fragment) { shiftData(data_block, import_shift, element_size); } chunk.appendData(data_block, import_count, import_shift); } chunk.setBuffer(nullptr); chunk.setIndexBuffer(nullptr); } size_t ParquetDataWrapper::getElementSizeFromImportBuffer( const std::unique_ptr<import_export::TypedImportBuffer>& import_buffer) const { auto& type_info = import_buffer->getColumnDesc()->columnType; switch (type_info.get_type()) { case kBOOLEAN: case kTINYINT: case kSMALLINT: case kINT: case kBIGINT: case kNUMERIC: case kDECIMAL: case kFLOAT: case kDOUBLE: case kDATE: case kTIME: case kTIMESTAMP: break; default: return 0; } return import_buffer->getElementSize(); } import_export::Loader* ParquetDataWrapper::getChunkLoader( Catalog_Namespace::Catalog& catalog, const Interval<FragmentType>& fragment_interval, const Interval<ColumnType>& column_interval, const int chunk_key_db) { auto callback = [this, fragment_interval, column_interval, chunk_key_db]( const std::vector<std::unique_ptr<import_export::TypedImportBuffer>>& import_buffers, std::vector<DataBlockPtr>& data_blocks, size_t import_row_count) { auto first_column = column_interval.start; auto last_column = column_interval.end; auto first_fragment = fragment_interval.start; auto last_fragment = fragment_interval.end; size_t processed_import_row_count = 0; while (processed_import_row_count < import_row_count) { int fragment_index = partial_import_row_count_ / foreign_table_->maxFragRows; size_t row_count_for_fragment = std::min<size_t>( foreign_table_->maxFragRows - (partial_import_row_count_ % foreign_table_->maxFragRows), import_row_count - processed_import_row_count); if (fragment_index < first_fragment) { // skip to the first fragment partial_import_row_count_ += row_count_for_fragment; processed_import_row_count += row_count_for_fragment; continue; } if (fragment_index > last_fragment) { // nothing to do after last fragment break; } for (int column_idx = first_column; column_idx <= last_column; ++column_idx) { auto& import_buffer = import_buffers[column_idx]; ChunkKey chunk_key{ chunk_key_db, foreign_table_->tableId, column_idx + 1, fragment_index}; loadChunk(import_buffer->getColumnDesc(), chunk_key, data_blocks[column_idx], row_count_for_fragment, processed_import_row_count, false, fragment_index == first_fragment, getElementSizeFromImportBuffer(import_buffer)); } partial_import_row_count_ += row_count_for_fragment; processed_import_row_count += row_count_for_fragment; } return true; }; return new import_export::Loader(catalog, foreign_table_, callback, false); } import_export::Loader* ParquetDataWrapper::getMetadataLoader( Catalog_Namespace::Catalog& catalog, const LazyParquetImporter::RowGroupMetadataVector& metadata_vector) { auto callback = [this, &metadata_vector]( const std::vector<std::unique_ptr< import_export::TypedImportBuffer>>& import_buffers, std::vector<DataBlockPtr>& data_blocks, size_t import_row_count) { size_t processed_import_row_count = 0; int row_group = metadata_vector[0].row_group_index; updateRowGroupMetadata(row_group); while (processed_import_row_count < import_row_count) { int fragment_index = row_count_ / foreign_table_->maxFragRows; size_t row_count_for_fragment; if (fragmentIsFull()) { row_count_for_fragment = std::min<size_t>( foreign_table_->maxFragRows, import_row_count - processed_import_row_count); initializeChunkBuffers(fragment_index); updateFragmentMap(fragment_index, row_group); } else { row_count_for_fragment = std::min<size_t>( foreign_table_->maxFragRows - (row_count_ % foreign_table_->maxFragRows), import_row_count - processed_import_row_count); } for (size_t i = 0; i < import_buffers.size(); i++) { auto& import_buffer = import_buffers[i]; const auto column = import_buffer->getColumnDesc(); auto column_id = column->columnId; ChunkKey chunk_key{db_id_, foreign_table_->tableId, column_id, fragment_index}; const auto& metadata = metadata_vector[i]; CHECK(metadata.row_group_index == row_group); if (!metadata.metadata_only) { loadChunk(column, chunk_key, data_blocks[i], row_count_for_fragment, processed_import_row_count, true); } else { if (row_group_row_count_ == 0) { // only load metadata once for each row group loadMetadataChunk(column, chunk_key, data_blocks[i], metadata.num_elements, metadata.has_nulls, metadata.is_all_nulls); } } } row_count_ += row_count_for_fragment; processed_import_row_count += row_count_for_fragment; row_group_row_count_ += row_count_for_fragment; } return true; }; return new import_export::Loader(catalog, foreign_table_, callback, false); } bool ParquetDataWrapper::newRowGroup(int row_group) { return current_row_group_ != row_group; } bool ParquetDataWrapper::fragmentIsFull() { return row_count_ != 0 && (row_count_ % foreign_table_->maxFragRows) == 0; } ForeignStorageBuffer* ParquetDataWrapper::getChunkBuffer(const ChunkKey& chunk_key) { return getBufferFromMapOrLoadBufferIntoMap(chunk_key); } void ParquetDataWrapper::populateMetadataForChunkKeyPrefix( const ChunkKey& chunk_key_prefix, ChunkMetadataVector& chunk_metadata_vector) { fetchChunkMetadata(); auto iter_range = prefix_range(chunk_buffer_map_, chunk_key_prefix); for (auto it = iter_range.first; it != iter_range.second; ++it) { auto& buffer_chunk_key = it->first; auto& buffer = it->second; if (buffer->has_encoder) { auto chunk_metadata = std::make_shared<ChunkMetadata>(); buffer->encoder->getMetadata(chunk_metadata); chunk_metadata_vector.emplace_back(buffer_chunk_key, chunk_metadata); } } chunk_buffer_map_.clear(); } ParquetDataWrapper::IntervalsToLoad ParquetDataWrapper::getRowGroupsColumnsAndFragmentsToLoad(const ChunkKey& chunk_key) { int fragment_index = chunk_key[CHUNK_KEY_FRAGMENT_IDX]; auto frag_map_it = fragment_to_row_group_interval_map_.find(fragment_index); CHECK(frag_map_it != fragment_to_row_group_interval_map_.end()); const auto& fragment_to_row_group_interval = frag_map_it->second; int start_row_group = fragment_to_row_group_interval.start_row_group_index; int end_row_group = fragment_to_row_group_interval.end_row_group_index; CHECK(end_row_group >= 0); Interval<FragmentType> fragment_interval = {frag_map_it->first, frag_map_it->first}; auto frag_map_it_up = frag_map_it; while (frag_map_it_up != fragment_to_row_group_interval_map_.begin()) { --frag_map_it_up; if (frag_map_it_up->second.start_row_group_index == start_row_group) { fragment_interval.start = frag_map_it_up->first; } else { break; } } auto frag_map_it_down = frag_map_it; while ((++frag_map_it_down) != fragment_to_row_group_interval_map_.end()) { if (frag_map_it_down->second.end_row_group_index == end_row_group) { fragment_interval.end = frag_map_it_down->first; } else { break; } } IntervalsToLoad intervals; intervals.row_group_interval = {start_row_group, end_row_group}; intervals.column_interval = foreign_table_column_map_.getPhysicalColumnSpan( chunk_key[CHUNK_KEY_COLUMN_IDX] - 1); intervals.fragment_interval = fragment_interval; return intervals; } ForeignStorageBuffer* ParquetDataWrapper::loadBufferIntoMap(const ChunkKey& chunk_key) { CHECK(chunk_buffer_map_.find(chunk_key) == chunk_buffer_map_.end()); auto catalog = Catalog_Namespace::Catalog::get(db_id_); CHECK(catalog); auto intervals = getRowGroupsColumnsAndFragmentsToLoad(chunk_key); initializeChunkBuffers(intervals.fragment_interval, intervals.column_interval); int first_fragment = intervals.fragment_interval.start; CHECK(fragment_to_row_group_interval_map_.find(first_fragment) != fragment_to_row_group_interval_map_.end()); partial_import_row_count_ = foreign_table_->maxFragRows * first_fragment - fragment_to_row_group_interval_map_[first_fragment].start_row_group_line; ; CHECK(partial_import_row_count_ >= 0); LazyParquetImporter::RowGroupMetadataVector metadata_vector; LazyParquetImporter importer(getChunkLoader(*catalog, intervals.fragment_interval, intervals.column_interval, chunk_key[CHUNK_KEY_DB_IDX]), getFilePath(), validateAndGetCopyParams(), metadata_vector); int logical_col_idx = foreign_table_column_map_.getLogicalIndex(chunk_key[CHUNK_KEY_COLUMN_IDX] - 1); importer.partialImport(intervals.row_group_interval, {logical_col_idx, logical_col_idx}); return chunk_buffer_map_[chunk_key].get(); } ForeignStorageBuffer* ParquetDataWrapper::getBufferFromMapOrLoadBufferIntoMap( const ChunkKey& chunk_key) { auto it = chunk_buffer_map_.find(chunk_key); if (it != chunk_buffer_map_.end()) { const auto& buffer = chunk_buffer_map_[chunk_key].get(); return buffer; } return loadBufferIntoMap(chunk_key); } } // namespace foreign_storage
[ "dev@aas.io" ]
dev@aas.io
d02912a9b2896160ca91c60437340997ff95f911
4be3bb67e216066d7864db067be7f3319a2cb33a
/main/src/ftworker.cpp
e70b0864359c998e926be6859e29a7051932c54d
[]
no_license
f0ghua/ecuEmulator
a63cabe389f5bb363ae18c05ec595c52092c3693
d7d8c45ea9395dac046992c58fbb5d6813535092
refs/heads/master
2020-12-02T21:22:53.088955
2017-07-18T06:16:03
2017-07-18T06:16:03
96,305,008
2
0
null
null
null
null
UTF-8
C++
false
false
6,130
cpp
#include "xcommdefine.h" #include "xbusmgr.h" #include "ftworker.h" #include <pthread.h> #include <windows.h> #include <QDebug> #include <QObject> #ifdef Q_OS_LINUX #include <sys/time.h> #else typedef struct _EVENT_HANDLE { pthread_cond_t eCondVar; pthread_mutex_t eMutex; int iVar; } EVENT_HANDLE; #if defined(_MSC_VER) || defined(_MSC_EXTENSIONS) #define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64 #else #define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL #endif int gettimeofday(struct timeval *tv, struct timezone *) { FILETIME ft; unsigned __int64 tmpres = 0; if (NULL != tv) { GetSystemTimeAsFileTime(&ft); tmpres |= ft.dwHighDateTime; tmpres <<= 32; tmpres |= ft.dwLowDateTime; tmpres /= 10; /*convert into microseconds*/ /*converting file time to unix epoch*/ tmpres -= DELTA_EPOCH_IN_MICROSECS; tv->tv_sec = (long)(tmpres / 1000000UL); tv->tv_usec = (long)(tmpres % 1000000UL); } return 0; } #endif //Q_OS_LINUX FtWorker::FtWorker(XBusMgr *mgr) :HAL(mgr, 1) { raw.clear(); RxBuffer = (char *)calloc(128 * 1024, 1); } void FtWorker::PhyOpenDevice(QString tryDev, HANDLE &eh) { FT_STATUS ftStatus; DWORD EventDWord, TxBytes, RxBytes, EventMask = FT_EVENT_RXCHAR | FT_EVENT_MODEM_STATUS; //printf("%s\n", tryDev.toLatin1().data()); ftStatus = FT_OpenEx(tryDev.toLatin1().data(), FT_OPEN_BY_SERIAL_NUMBER, &ftHandle); if (ftStatus != FT_OK) { printf("FT_OpenEx failed (error code %d), %s\n", (int)ftStatus, tryDev.toLatin1().data()); return; } ftStatus = FT_SetDivisor(ftHandle, 0); if (ftStatus == FT_OK) { //printf("setbaund ok\n"); } else { printf("setbaund fail\n"); } ftStatus = FT_SetDataCharacteristics(ftHandle, FT_BITS_8, FT_STOP_BITS_1, FT_PARITY_NONE); if (ftStatus == FT_OK) { //printf("set 8n1 ok\n"); } else { printf("set 8n1 fail\n"); } ftStatus = FT_SetFlowControl(ftHandle, FT_FLOW_NONE, 0x11, 0x13); if (ftStatus == FT_OK) { //printf("set flow ok\n"); } else { printf("set flow fail\n"); } ftStatus = FT_SetDtr(ftHandle); if (ftStatus == FT_OK) { //printf("set dtr ok\n"); } else { printf("set dtr fail\n"); } ftStatus = FT_SetRts(ftHandle); if (ftStatus == FT_OK) { //printf("set rts ok\n"); } else { printf("set rts fail\n"); } ftStatus = FT_SetLatencyTimer(ftHandle, 2); if (ftStatus == FT_OK) { qDebug() << "set timeouts ok"; } else { qDebug() << "set timeouts fail"; } qDebug() << dev << " open ok";; eh = ::CreateEvent(NULL, false, false, reinterpret_cast<LPCWSTR>("")); ftStatus = FT_SetEventNotification(ftHandle, EventMask, (PVOID)eh); if (ftStatus == FT_OK) { //printf("set ev ok\n"); } else { printf("set ev fail\n"); return; } FT_GetStatus(ftHandle,&RxBytes,&TxBytes,&EventDWord); emit updateDeviceConnState(OPEN_SUCC); } void FtWorker::PhyCloseDevice() { if(ftHandle != NULL) { (void)FT_Close(ftHandle); ftHandle = NULL; emit updateDeviceConnState(CLOSE_SUCC); needToClose = 0; printf("ft closed\n"); } } void FtWorker::sigRefreshDevice() { getList = 1; qc.wakeAll(); } void FtWorker::listDevice() { FT_STATUS ftStatus; DWORD numDevs = 0; int i, retry = 0; deviceList.clear(); ftStatus = FT_CreateDeviceInfoList(&numDevs); if (ftStatus != FT_OK) { printf("FT_CreateDeviceInfoList failed (error code %d)\n", (int)ftStatus); return; } if (numDevs > 0) { FT_DEVICE_LIST_INFO_NODE *devInfo; devInfo = (FT_DEVICE_LIST_INFO_NODE *)malloc(sizeof(FT_DEVICE_LIST_INFO_NODE)*numDevs); ftStatus = ::FT_GetDeviceInfoList(devInfo, &numDevs); if (ftStatus == FT_OK) { for (unsigned int i = 0; i < numDevs; ++i) { if (*devInfo[i].SerialNumber != '\0') deviceList << QString(devInfo[i].SerialNumber); } } free(devInfo); } #if 0 for (i = 0; i < (int)numDevs; i++) { char SerialNumber[64]; memset(SerialNumber, 0, sizeof(SerialNumber)); ftStatus = FT_ListDevices((PVOID)(uintptr_t) i, SerialNumber,FT_LIST_BY_INDEX|FT_OPEN_BY_SERIAL_NUMBER); if(strlen(SerialNumber) == 0 && retry < 8) { i--; continue; retry++; } else retry = 0; deviceList << QString(SerialNumber); } #endif emit updateDeviceList(deviceList); } void FtWorker::sigOpenDevice(QString tryDev) { if(dev != tryDev) { if(ftHandle != NULL) sigCloseDevice(0); dev = tryDev; qc.wakeAll(); } } void FtWorker::sigCloseDevice(int) { needToClose = 1; dev = ""; } void FtWorker::run() { HANDLE eh; while(shutdown == 0) { if(ftHandle == NULL) { if(dev.size() == 0) { m.lock(); qc.wait(&m); m.unlock(); } if(getList == 1) { getList = 0; listDevice(); continue; } PhyOpenDevice(dev, eh); getv = 1; } ::WaitForSingleObject(eh, INFINITE); if(needToClose == 1) PhyCloseDevice(); else dealWithEvent(); } } void FtWorker::dealWithEvent() { DWORD TxBytes, RxBytes, Status, EventDWord; FT_GetStatus(ftHandle,&RxBytes, &TxBytes, &EventDWord); if (EventDWord & FT_EVENT_MODEM_STATUS) { FT_GetModemStatus(ftHandle,&Status); if (Status & 0x00000010) { // CTS is high } else { // CTS is low } if (Status & 0x00000020) { // DSR is high } else { // DSR is low } } else if (RxBytes > 0) dealWithRx(RxBytes); } void FtWorker::dealWithRx(int RxBytes) { DWORD BytesReceived = 0; FT_STATUS ftStatus; int soFar = 0; while(RxBytes > 0) { ftStatus = FT_Read(ftHandle, RxBuffer + soFar, RxBytes, &BytesReceived); if (ftStatus == FT_OK) { RxBytes -= BytesReceived; soFar += BytesReceived; } else { // FT_Read Failed } } for (int i = 0; i < soFar; i++) procRXChar(RxBuffer[i]); } void FtWorker::halWrite(QByteArray &buffer) { DWORD BytesWritten = 0, soFar = 0; FT_STATUS ftStatus; char tmp[4096]; if(ftHandle == NULL) return; if(buffer.size() == 0) return; memcpy(tmp, buffer.data(), buffer.size()); while(soFar != (DWORD) buffer.size()) { ftStatus = FT_Write(ftHandle, tmp + soFar, buffer.size() - soFar, &BytesWritten); if (ftStatus == FT_OK) soFar += BytesWritten; } FT_SetRts(ftHandle); }
[ "fog.hua@gmail.com" ]
fog.hua@gmail.com
346251005266a24f63b5f51559b6de97853807d6
5ec00bc1fcfd8102bd83d7ed11c0c3147e4d7d78
/Arduino/HFV_Driver_v2/HFV_Driver_v2.ino
481db266d95c9a86d30f9b5e2f0ccba553b97f6a
[]
no_license
masc-ucsc/Kent_State_Project
1d84432ec949b3917f3a9fa35f07f8a00e60d972
b5be10a51d8d5b7991ac9b21243df942d18d218f
refs/heads/master
2021-01-23T18:30:50.025930
2017-12-11T21:55:04
2017-12-11T21:55:04
102,795,963
0
0
null
null
null
null
UTF-8
C++
false
false
2,503
ino
#define BAUD 9600 #define TURN_ON "pon" #define TURN_OFF "off" #define VOLTAGE_UP "vup" #define VOLTAGE_DOWN "vdn" #define DUTY_CYCLE_UP "dup" #define DUTY_CYCLE_DOWN "ddn" #define BUFFER_SIZE 16 char inBuffer[BUFFER_SIZE]; int ibIndex = 0; #define STATE_OFF 0 #define STATE_ON 1 #define STATE_FAULT 2 int state = STATE_OFF; uint64_t lastUpdate = 0; #define UPDATE_INTERVAL 1000 // debug values int voltage = 0; int dutyCycle = 0; void setup() { Serial.begin(BAUD); // default settings: 8 data bits, no parity, one stop while (!Serial); } void loop() { if (Serial.available()) { int c = Serial.read(); if (state != STATE_FAULT) { if (c == '\n') { inBuffer[ibIndex] = '\0'; ibIndex = 0; processCommand(); } else { if (ibIndex >= BUFFER_SIZE) state = STATE_FAULT; else inBuffer[ibIndex++] = (char) c; } } } uint64_t currentTime = millis(); if (currentTime - lastUpdate >= UPDATE_INTERVAL) { message(); lastUpdate = currentTime; } } void processCommand() { if (inBuffer[0] == 'v') voltage = modified_atoi(&inBuffer[1]); else if (inBuffer[0] == 'd') dutyCycle = modified_atoi(&inBuffer[1]); else if (inBuffer[0] == 'o' && inBuffer[1] == 'n' && inBuffer[2] == 'n') state = STATE_ON; else if (inBuffer[0] == 'o' && inBuffer[1] == 'f' && inBuffer[2] == 'f') state = STATE_OFF; /*if (strcmp(inBuffer, SEND_STATUS) == 0) { // do nothing } else if (strcmp(inBuffer, VOLTAGE_UP) == 0) { voltage++; } else if (strcmp(inBuffer, VOLTAGE_DOWN) == 0) { voltage--; } else if (strcmp(inBuffer, DUTY_CYCLE_UP) == 0) { dutyCycle++; } else if (strcmp(inBuffer, DUTY_CYCLE_DOWN) == 0) { dutyCycle--; } else if (strcmp(inBuffer, TURN_ON) == 0) { state = STATE_ON; } else if (strcmp(inBuffer, TURN_OFF) == 0) { state = STATE_OFF; } else { state = STATE_FAULT; }*/ } void message() { switch (state) { case STATE_OFF: Serial.print("off"); break; case STATE_ON: Serial.print("onn"); break; default: Serial.print("flt"); } Serial.print(";"); Serial.print(voltage); Serial.print(";"); Serial.print(dutyCycle); Serial.print("\n"); } int modified_atoi(char *buf) { int accum = 0; for (int i = 0; buf[i] >= '0' && buf[i] <= '9'; i++) accum = (accum * 10) + (buf[i] - '0'); return accum; }
[ "hskinner@ucsc.edu" ]
hskinner@ucsc.edu
a0a24d19af8659c6f2291e0897ca2020d44169f8
66f57231dea1d319cf1d469bff6bc02f7244a5e5
/tsHydro/src/tsHydro.cpp
c7f0c91e8204e23eae44cb6d6ee11cc1be5c89e7
[ "BSD-2-Clause" ]
permissive
cavios/tshydro
31ec57943cd73a840b761d1c96e086200273ef6c
9d6d47e871fbc0ac1478923262f7be1bfb852717
refs/heads/master
2023-04-14T04:54:11.199235
2023-04-05T12:45:49
2023-04-05T12:45:49
41,877,395
4
6
null
2015-12-08T14:28:39
2015-09-03T18:43:50
R
UTF-8
C++
false
false
2,984
cpp
#include <TMB.hpp> template <class Type> Type dt1(Type x){ return Type(1.0)/M_PI/(Type(1.0)+x*x); } template <class Type> Type ilogit(Type x){ return Type(1.0)/(Type(1.0)+exp(-x)); } template <class Type> Type nldens(Type x, Type mu, Type sd, Type p){ Type z=(x-mu)/sd; return -log(1.0/sd*((1.0-p)*dnorm(z,Type(0.0),Type(1.0),false)+p*dt1(z))); } template<class Type> Type objective_function<Type>::operator() () { DATA_VECTOR(height); DATA_VECTOR(times); DATA_IVECTOR(timeidx); DATA_IVECTOR(newtimeidx); DATA_IVECTOR(group); DATA_IVECTOR(satid); DATA_IVECTOR(qfid); DATA_IARRAY(trackinfo); DATA_VECTOR(weights); DATA_VECTOR(priorHeight); DATA_VECTOR(priorSd); DATA_INTEGER(varPerTrack); DATA_INTEGER(varPerQuality); DATA_IVECTOR(trackidx); vector<Type> pred(height.size()); pred.setZero(); PARAMETER_VECTOR(logSigma); PARAMETER(logSigmaRW); PARAMETER(logitp); PARAMETER_VECTOR(u); PARAMETER_VECTOR(bias); vector<Type> biasvec(bias.size()+1); biasvec(0)=0; for(int i=1; i<biasvec.size();++i)biasvec(i)=bias(i-1); int timeSteps=times.size(); int obsDim=height.size(); int noTracks=trackinfo.dim[0]; Type p=ilogit(logitp); Type ans=0; if(priorHeight.size()==1){ ans += -sum(dnorm(u, priorHeight(0), priorSd(0), true)); } Type sdRW=exp(logSigmaRW); for(int i=1;i<timeSteps;i++){ ans += -dnorm(u(i),u(i-1),sdRW*sqrt(times(i)-times(i-1)),true); } vector<Type> sdObs=exp(logSigma); for(int t=0;t<noTracks;t++){ vector<Type> sub=height.segment(trackinfo(t,0),trackinfo(t,2)); vector<Type> subw=weights.segment(trackinfo(t,0),trackinfo(t,2)); vector<int> subsatid=satid.segment(trackinfo(t,0),trackinfo(t,2)); vector<int> subtrackid=trackidx.segment(trackinfo(t,0),trackinfo(t,2)); vector<int> subqfid=qfid.segment(trackinfo(t,0),trackinfo(t,2)); int idxVar; for(int i=0;i<trackinfo(t,2);i++){ if(varPerTrack==1){idxVar=subtrackid(i);}else{idxVar=subsatid(i);} if(varPerQuality==1){idxVar=subqfid(i);}else{idxVar=subsatid(i);} if(priorHeight.size()==1){ if((sub(i)>(priorHeight(0)-Type(5)*priorSd(0))) && (sub(i)<(priorHeight(0)+Type(5)*priorSd(0)))){ ans += nldens(sub(i),u(timeidx(trackinfo(t,0))-1)+biasvec(subsatid(i)),sdObs(idxVar)/sqrt(subw(i)),p); } }else{ ans += nldens(sub(i),u(timeidx(trackinfo(t,0))-1)+biasvec(subsatid(i)),sdObs(idxVar)/sqrt(subw(i)),p); } pred(trackinfo(t,0)+i)=u(timeidx(trackinfo(t,0))-1)+biasvec(subsatid(i)); } } Type aveH=sum(u)/u.size(); ADREPORT(aveH); if(group.size()>0){ int ngroup=group.maxCoeff()+1; vector<Type> groupAve(ngroup); groupAve.setZero(); vector<Type> groupN(ngroup); groupAve.setZero(); for(int i=0; i<newtimeidx.size(); ++i){ groupAve(group(i))+=u(newtimeidx(i)-1); groupN(group(i))+=1; } groupAve/=groupN; ADREPORT(groupAve); } REPORT(pred); return ans; }
[ "karni@space.dtu.dk" ]
karni@space.dtu.dk
e63914e04af71c8eabb6d2b71c65d58e5460f0e7
42088b8a7d1fe98e00ada27ec2016237c0a247b9
/book/rvalues.cpp
0328b0c3b71a03967f25b1bd71ae052568b0e1f0
[]
no_license
tom-weiss-github/home
581497770f7aebd04467290050b3b53dc40b948f
1f41f9e5a1ab8381b839e638b632ceba26766d7d
refs/heads/master
2023-06-11T10:26:33.714918
2023-06-05T21:09:04
2023-06-05T21:09:04
5,501,547
0
1
null
null
null
null
UTF-8
C++
false
false
3,128
cpp
#include <iostream> #include <random> struct HasMove { HasMove() : m_data( new int[1000] ) { std::random_device generator; std::uniform_int_distribution<int> distribution(1,100); m_data[0] = distribution(generator); } ~HasMove() { delete [] m_data; } HasMove( const HasMove& other ) : m_data( new int[1000] ) { std::cout << __FUNCTION__ << " copy" << std::endl; std::copy( other.m_data, other.m_data + 1000, m_data ); } HasMove( HasMove&& other ) : m_data( other.m_data ) { std::cout << __FUNCTION__ << " move" << std::endl; other.m_data = nullptr; } void MoveFn( HasMove&& other ) { std::cout << __FUNCTION__ << " " << other.m_data << std::endl; } std::string ToString() { if( nullptr == m_data ) { return( "NULL" ); } return( std::to_string(m_data[0]) ); } int* m_data; }; struct NoMove { NoMove() : m_data( new int[1000] ) { std::random_device generator; std::uniform_int_distribution<int> distribution(1,100); m_data[0] = distribution(generator); } ~NoMove() { delete [] m_data; } NoMove( const NoMove& other ) : m_data( new int[1000] ) { std::cout << __FUNCTION__ << " copy" << std::endl; std::copy( other.m_data, other.m_data + 1000, m_data ); } std::string ToString() { if( nullptr == m_data ) { return( "NULL" ); } return( std::to_string(m_data[0]) ); } int* m_data; }; template<typename T> void fn( T&& t ) { t++; std::cout << __FUNCTION__ << " t=" << t << std::endl; } template<typename T> struct FN { static void apply( T&& t ) { t++; std::cout << __FUNCTION__ << " t=" << t << std::endl; } }; template<typename T> void ad( T&& t ) { T tmp = t + 1.0; std::cout << "tmp=" << tmp << std::endl; } int main(int /*argc*/, char** /*argv*/) { HasMove a; HasMove b = std::move( a ); //HasMove c = a; Will crash. HasMove c = b; HasMove m; HasMove n; // m.MoveFn( n ); This will not compile. m.MoveFn( std::move( n ) ); // std::cout << a.ToString() << std::endl; // std::cout << b.ToString() << std::endl; // std::cout << c.ToString() << std::endl; NoMove nm1; NoMove nm2 = std::move( nm1 ); fn(42); int i = 100; fn(i); fn(i); int j = 100; fn( j ); std::cout << "j=" << j << std::endl; j = 100; fn( std::move( j ) ); std::cout << "j=" << j << std::endl; j = 100; fn( static_cast<int&&>(j) ); std::cout << "j=" << j << std::endl; j = 100; fn<int&>( j ); // fn<int&&>( j ); Does not compile. std::cout << "j=" << j << std::endl; j = 100; // FN<int>::apply( j ); Does not compile. FN<int>::apply( std::move(j) ); std::cout << "j=" << j << std::endl; ad( 5 ); ad( static_cast<float&&>(5.1) ); ad( static_cast<int&&>(5.1) ); ad(5.1); }
[ "Tom.Weiss@TradingTechnologies.com" ]
Tom.Weiss@TradingTechnologies.com
f558103de9b69adb39ea92ff10a7f2e99d31b83b
9ca6885d197aaf6869e2080901b361b034e4cc37
/DQM/EcalBarrelMonitorClient/interface/EcalDQMonitorClient.h
47cf1dc12f4fb4ca31612907366187affd3d9a5e
[]
no_license
ktf/cmssw-migration
153ff14346b20086f908a370029aa96575a2c51a
583340dd03481dff673a52a2075c8bb46fa22ac6
refs/heads/master
2020-07-25T15:37:45.528173
2013-07-11T04:54:56
2013-07-11T04:54:56
null
0
0
null
null
null
null
UTF-8
C++
false
false
914
h
#ifndef EcalDQMonitorClient_H #define EcalDQMonitorClient_H #include "DQM/EcalCommon/interface/EcalDQMonitor.h" namespace edm{ class ParameterSet; class Run; class LuminosityBlock; class Event; class EventSetup; class ConfigurationDescriptions; } namespace ecaldqm{ class DQWorkerClient; } class EcalDQMonitorClient : public EcalDQMonitor { public: EcalDQMonitorClient(const edm::ParameterSet &); ~EcalDQMonitorClient(); static void fillDescriptions(edm::ConfigurationDescriptions &); private: void beginRun(const edm::Run&, const edm::EventSetup&); void endRun(const edm::Run&, const edm::EventSetup&); void beginLuminosityBlock(const edm::LuminosityBlock&, const edm::EventSetup&); void endLuminosityBlock(const edm::LuminosityBlock&, const edm::EventSetup&); void analyze(const edm::Event&, const edm::EventSetup&) {} void runWorkers(); int lumiStatus_; }; #endif
[ "sha1-b63dc01a642d380a16da36b4e834787802efdeb4@cern.ch" ]
sha1-b63dc01a642d380a16da36b4e834787802efdeb4@cern.ch
c4b28ae42fae07a8b933a030d3fac87df854631f
ecb3cc61af2292a432bd4f208cd980c626305a8c
/A star serach.cpp
cc32822bc2dc212130d3b651848a8536bb99308d
[]
no_license
njrafi/Code-Library
785499692ecfc5d89938967f962d04ccd7b8f05d
a5a18479d7ffc8094ba5ac05bee4ac815225534f
refs/heads/master
2021-11-18T12:11:53.574716
2021-10-03T10:59:54
2021-10-03T10:59:54
151,953,480
3
0
null
null
null
null
UTF-8
C++
false
false
117
cpp
/* Similar to dijkstra With distance and state we push a heuristic and sort the priority queue with it */
[ "njrafibd@gmail.com" ]
njrafibd@gmail.com
abf546bdf2d5cf61703c0f4f5becd843803f8e1e
bb5d82c1b95bd1a86efe2b71554b22863e74a481
/mainwindow.cpp
da7634d38dfda5e5141cf99cdc6d6c45120e1ec8
[]
no_license
lcx64579/PortScanner
9e88499f8171771013ee816189357ee3eeba4794
c7f8cb06fb83c0ff2d340bfd89f4b411ce782a34
refs/heads/master
2022-11-05T19:39:55.889618
2020-06-25T14:20:56
2020-06-25T14:20:56
274,931,689
0
0
null
null
null
null
UTF-8
C++
false
false
5,440
cpp
#include "mainwindow.h" #include "ui_mainwindow.h" #include <QTcpSocket> extern QMutex mutexRunning; extern bool terminate; extern int nowport; int finishCounter; int preProgressValue; MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); paused = false; scanner = NULL; scannerThread = NULL; } MainWindow::~MainWindow() { ui->tEdtResult->append("<正在关闭。等待当前任务完成...>"); mutexRunning.unlock(); terminate = true; for(int i = 0; i < threadNum; ++i){ scannerThread[i].quit(); scannerThread[i].wait(); } delete ui; } void MainWindow::on_pBtnStartScan_clicked() { QString host = ui->lEdtHost->text(); QString strStartPort = ui->lEdtStartPort->text(); QString strEndPort = ui->lEdtEndPort->text(); QString strTimeout = ui->lEdtTimeout->text(); QString strThreadNum = ui->lEdtThreadNum->text(); // 容错性 // ip格式验证 QRegExp rxIP("\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}"); if(!rxIP. exactMatch(host)){ ui->tEdtResult->append("<IP格式不正确>"); return; } // 端口号数字验证 QRegExp rxNumber("0|[1-9]\\d{0,4}"); if(!rxNumber.exactMatch(strStartPort) || !rxNumber.exactMatch(strEndPort)){ ui->tEdtResult->append("<端口格式不正确>"); return; }else if(strStartPort.toInt() < 0 || strStartPort.toInt() > 65535 || strEndPort.toInt() < 0 || strEndPort.toInt() > 65535){ ui->tEdtResult->append("<端口范围应当在0~65535之间>"); return; } // 超时数字验证 if(!rxNumber.exactMatch(strTimeout) || strTimeout.toInt() < 1){ ui->tEdtResult->append("<超时格式不正确>"); return; } // 线程数数字验证 if(!rxNumber.exactMatch(strThreadNum) || strThreadNum.toInt() < 1 || strThreadNum.toInt() > 512){ ui->tEdtResult->append("<线程数非法>"); return; } quint16 startPort = strStartPort.toUShort(); quint16 endPort = strEndPort.toUShort(); quint16 timeout = strTimeout.toUShort(); threadNum = strThreadNum.toInt(); // 容错性 // 端口号验证 if(startPort > endPort){ ui->tEdtResult->append("<起始端口号必须小于结束端口号>"); return; } // 超时验证 if(timeout < 1 || timeout > 10000){ ui->tEdtResult->append("<超时必须在1ms~10000ms之间>"); return; } // 开始扫描 ui->pBtnStartScan->setEnabled(false); // 禁用启动按钮 ui->pBtnPause->setEnabled(true); // 启用暂停按钮 paused = false; ui->pBtnPause->setText("暂停扫描"); mutexRunning.unlock(); nowport = startPort; finishCounter = 0; terminate = false; preProgressValue = 0; scanner = new Scanner[threadNum](); scannerThread = new QThread[threadNum](); for(int i = 0; i < threadNum; ++i){ scanner[i].moveToThread(scannerThread + i); // 这行注释掉可能导致内存泄漏,但目前加上会导致delete时未知原因崩溃。 // connect(scannerThread + i, &QThread::finished, scanner + i, &QObject::deleteLater); connect(this, &MainWindow::startScan, scanner + i, &Scanner::scan); connect(scanner + i, &Scanner::status, this, &MainWindow::updateStatus); connect(scanner + i, &Scanner::progress, this, &MainWindow::updateProgress); connect(scanner + i, &Scanner::cleanStatus, this, &MainWindow::cleanStatus); connect(scanner + i, &Scanner::finish, this, &MainWindow::scannerFinished); scannerThread[i].start(); } ui->tEdtResult->clear(); emit startScan(host, startPort, endPort, timeout); // 发送扫描开始信号 } void MainWindow::updateStatus(const QString &text) { qDebug()<<"主线程:"<<text; ui->tEdtResult->append(text); } void MainWindow::updateProgress(const int &value) { if(preProgressValue > value) return; preProgressValue = value; ui->pBarProgress->setValue(value); } void MainWindow::cleanStatus() { ui->tEdtResult->clear(); } void MainWindow::scannerFinished() { terminate = true; finishCounter++; if(finishCounter == threadNum){ for(int i = 0; i < threadNum; ++i){ qDebug()<<"终止线程 "<<i; scannerThread[i].quit(); scannerThread[i].wait(); } ui->tEdtResult->append("<扫描完成>"); ui->pBtnStartScan->setEnabled(true); // 恢复启动按钮 ui->pBtnPause->setEnabled(false); // 禁用暂停按钮 } } void MainWindow::on_pBtnPause_clicked() { if(!paused){ // 暂停 qDebug()<<"locking......."; paused = true; mutexRunning.tryLock(); ui->pBtnPause->setText("恢复扫描"); ui->tEdtResult->append("<扫描暂停>"); }else{ // 恢复 qDebug()<<"unlocking......."; paused = false; mutexRunning.unlock(); ui->pBtnPause->setText("暂停扫描"); ui->tEdtResult->append("<扫描恢复>"); } } void MainWindow::on_pBtnExit_clicked() { ui->tEdtResult->append("<正在关闭。等待当前任务完成...>"); mutexRunning.unlock(); terminate = true; for(int i = 0; i < threadNum; ++i){ scannerThread[i].quit(); scannerThread[i].wait(); } emit close(); }
[ "lcx64579@163.com" ]
lcx64579@163.com
b09ba4cd813dca115a7ceecc1992c600570f1d06
8df6b0a4f126c7d7a36710190622a2d0371f4b78
/lib/Support/include/llvm/ADT/EquivalenceClasses.h
f371a086d5b3418fc5a7bbaa8df880477d9899df
[]
no_license
FrankLIKE/AOT.Client
c7bf5d0c0e7e9f3b694dc715199ca15ba47175d5
70caf7e51e463d20cfbfc4f1b6009dfd5b9cf554
refs/heads/master
2020-12-11T09:03:22.838296
2014-12-18T15:40:34
2014-12-18T15:40:34
28,286,260
1
0
null
null
null
null
UTF-8
C++
false
false
10,497
h
//===-- llvm/ADT/EquivalenceClasses.h - Generic Equiv. Classes --*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // Generic implementation of equivalence classes through the use Tarjan's // efficient union-find algorithm. // //===----------------------------------------------------------------------===// #ifndef LLVM_ADT_EQUIVALENCECLASSES_H #define LLVM_ADT_EQUIVALENCECLASSES_H #include "llvm/ADT/iterator" #include "llvm/Support/DataTypes.h" #include <set> namespace llvm { /// EquivalenceClasses - This represents a collection of equivalence classes and /// supports three efficient operations: insert an element into a class of its /// own, union two classes, and find the class for a given element. In /// addition to these modification methods, it is possible to iterate over all /// of the equivalence classes and all of the elements in a class. /// /// This implementation is an efficient implementation that only stores one copy /// of the element being indexed per entry in the set, and allows any arbitrary /// type to be indexed (as long as it can be ordered with operator<). /// /// Here is a simple example using integers: /// /// EquivalenceClasses<int> EC; /// EC.unionSets(1, 2); // insert 1, 2 into the same set /// EC.insert(4); EC.insert(5); // insert 4, 5 into own sets /// EC.unionSets(5, 1); // merge the set for 1 with 5's set. /// /// for (EquivalenceClasses<int>::iterator I = EC.begin(), E = EC.end(); /// I != E; ++I) { // Iterate over all of the equivalence sets. /// if (!I->isLeader()) continue; // Ignore non-leader sets. /// for (EquivalenceClasses<int>::member_iterator MI = EC.member_begin(I); /// MI != EC.member_end(); ++MI) // Loop over members in this set. /// cerr << *MI << " "; // Print member. /// cerr << "\n"; // Finish set. /// } /// /// This example prints: /// 4 /// 5 1 2 /// template <class ElemTy> class EquivalenceClasses { /// ECValue - The EquivalenceClasses data structure is just a set of these. /// Each of these represents a relation for a value. First it stores the /// value itself, which provides the ordering that the set queries. Next, it /// provides a "next pointer", which is used to enumerate all of the elements /// in the unioned set. Finally, it defines either a "end of list pointer" or /// "leader pointer" depending on whether the value itself is a leader. A /// "leader pointer" points to the node that is the leader for this element, /// if the node is not a leader. A "end of list pointer" points to the last /// node in the list of members of this list. Whether or not a node is a /// leader is determined by a bit stolen from one of the pointers. class ECValue { friend class EquivalenceClasses; mutable const ECValue *Leader, *Next; ElemTy Data; // ECValue ctor - Start out with EndOfList pointing to this node, Next is // Null, isLeader = true. ECValue(const ElemTy &Elt) : Leader(this), Next((ECValue*)(intptr_t)1), Data(Elt) {} const ECValue *getLeader() const { if (isLeader()) return this; if (Leader->isLeader()) return Leader; // Path compression. return Leader = Leader->getLeader(); } const ECValue *getEndOfList() const { assert(isLeader() && "Cannot get the end of a list for a non-leader!"); return Leader; } void setNext(const ECValue *NewNext) const { assert(getNext() == 0 && "Already has a next pointer!"); Next = (const ECValue*)((intptr_t)NewNext | (intptr_t)isLeader()); } public: ECValue(const ECValue &RHS) : Leader(this), Next((ECValue*)(intptr_t)1), Data(RHS.Data) { // Only support copying of singleton nodes. assert(RHS.isLeader() && RHS.getNext() == 0 && "Not a singleton!"); } bool operator<(const ECValue &UFN) const { return Data < UFN.Data; } bool isLeader() const { return (intptr_t)Next & 1; } const ElemTy &getData() const { return Data; } const ECValue *getNext() const { return (ECValue*)((intptr_t)Next & ~(intptr_t)1); } template<typename T> bool operator<(const T &Val) const { return Data < Val; } }; /// TheMapping - This implicitly provides a mapping from ElemTy values to the /// ECValues, it just keeps the key as part of the value. std::set<ECValue> TheMapping; public: EquivalenceClasses() {} EquivalenceClasses(const EquivalenceClasses &RHS) { operator=(RHS); } const EquivalenceClasses &operator=(const EquivalenceClasses &RHS) { TheMapping.clear(); for (iterator I = RHS.begin(), E = RHS.end(); I != E; ++I) if (I->isLeader()) { member_iterator MI = RHS.member_begin(I); member_iterator LeaderIt = member_begin(insert(*MI)); for (++MI; MI != member_end(); ++MI) unionSets(LeaderIt, member_begin(insert(*MI))); } return *this; } //===--------------------------------------------------------------------===// // Inspection methods // /// iterator* - Provides a way to iterate over all values in the set. typedef typename std::set<ECValue>::const_iterator iterator; iterator begin() const { return TheMapping.begin(); } iterator end() const { return TheMapping.end(); } bool empty() const { return TheMapping.empty(); } /// member_* Iterate over the members of an equivalence class. /// class member_iterator; member_iterator member_begin(iterator I) const { // Only leaders provide anything to iterate over. return member_iterator(I->isLeader() ? &*I : 0); } member_iterator member_end() const { return member_iterator(0); } /// findValue - Return an iterator to the specified value. If it does not /// exist, end() is returned. iterator findValue(const ElemTy &V) const { return TheMapping.find(V); } /// getLeaderValue - Return the leader for the specified value that is in the /// set. It is an error to call this method for a value that is not yet in /// the set. For that, call getOrInsertLeaderValue(V). const ElemTy &getLeaderValue(const ElemTy &V) const { member_iterator MI = findLeader(V); assert(MI != member_end() && "Value is not in the set!"); return *MI; } /// getOrInsertLeaderValue - Return the leader for the specified value that is /// in the set. If the member is not in the set, it is inserted, then /// returned. const ElemTy &getOrInsertLeaderValue(const ElemTy &V) const { member_iterator MI = findLeader(insert(V)); assert(MI != member_end() && "Value is not in the set!"); return *MI; } /// getNumClasses - Return the number of equivalence classes in this set. /// Note that this is a linear time operation. unsigned getNumClasses() const { unsigned NC = 0; for (iterator I = begin(), E = end(); I != E; ++I) if (I->isLeader()) ++NC; return NC; } //===--------------------------------------------------------------------===// // Mutation methods /// insert - Insert a new value into the union/find set, ignoring the request /// if the value already exists. iterator insert(const ElemTy &Data) { return TheMapping.insert(Data).first; } /// findLeader - Given a value in the set, return a member iterator for the /// equivalence class it is in. This does the path-compression part that /// makes union-find "union findy". This returns an end iterator if the value /// is not in the equivalence class. /// member_iterator findLeader(iterator I) const { if (I == TheMapping.end()) return member_end(); return member_iterator(I->getLeader()); } member_iterator findLeader(const ElemTy &V) const { return findLeader(TheMapping.find(V)); } /// union - Merge the two equivalence sets for the specified values, inserting /// them if they do not already exist in the equivalence set. member_iterator unionSets(const ElemTy &V1, const ElemTy &V2) { iterator V1I = insert(V1), V2I = insert(V2); return unionSets(findLeader(V1I), findLeader(V2I)); } member_iterator unionSets(member_iterator L1, member_iterator L2) { assert(L1 != member_end() && L2 != member_end() && "Illegal inputs!"); if (L1 == L2) return L1; // Unifying the same two sets, noop. // Otherwise, this is a real union operation. Set the end of the L1 list to // point to the L2 leader node. const ECValue &L1LV = *L1.Node, &L2LV = *L2.Node; L1LV.getEndOfList()->setNext(&L2LV); // Update L1LV's end of list pointer. L1LV.Leader = L2LV.getEndOfList(); // Clear L2's leader flag: L2LV.Next = L2LV.getNext(); // L2's leader is now L1. L2LV.Leader = &L1LV; return L1; } class member_iterator : public forward_iterator<ElemTy, ptrdiff_t> { typedef forward_iterator<const ElemTy, ptrdiff_t> super; const ECValue *Node; friend class EquivalenceClasses; public: typedef size_t size_type; typedef typename super::pointer pointer; typedef typename super::reference reference; explicit member_iterator() {} explicit member_iterator(const ECValue *N) : Node(N) {} member_iterator(const member_iterator &I) : Node(I.Node) {} reference operator*() const { assert(Node != 0 && "Dereferencing end()!"); return Node->getData(); } reference operator->() const { return operator*(); } member_iterator &operator++() { assert(Node != 0 && "++'d off the end of the list!"); Node = Node->getNext(); return *this; } member_iterator operator++(int) { // postincrement operators. member_iterator tmp = *this; ++*this; return tmp; } bool operator==(const member_iterator &RHS) const { return Node == RHS.Node; } bool operator!=(const member_iterator &RHS) const { return Node != RHS.Node; } }; }; } // End llvm namespace #endif
[ "fvstudio@outlook.com" ]
fvstudio@outlook.com
494c85a754963016c352f57b5485702082f1e7d7
49045130a658ed0fa67771817a0d160201e472fb
/Beautiful/PP/mainwindow.cpp
ae6e066cc53f661478b1cb45d466a61a2a35aeea
[ "MIT" ]
permissive
martinkro/tutorial-qt
5108fedd409100260e93c8544c3aeac9b07770c6
8685434520c6ab61691722aa06ca075f8ddbeacf
refs/heads/master
2021-01-21T09:38:20.795623
2018-01-25T07:46:36
2018-01-25T07:46:36
91,661,126
3
0
null
null
null
null
UTF-8
C++
false
false
4,098
cpp
#include "mainwindow.h" #include "config.h" #include <QIcon> #include <QLabel> #include <QPixmap> #include <QDateTime> #include <QSplitter> MainWindow::MainWindow(QWidget* parent) :XBaseWindow(parent) { initUI(); initConnect(); } MainWindow::~MainWindow() { } void MainWindow::closeEvent(QCloseEvent* event) { event->accept(); } void MainWindow::initUI() { setWindowIcon(QIcon(tr(":/background/logo"))); setFixedSize(MAIN_WINDOW_WIDTH, MAIN_WINDOW_HEIGHT); m_layoutMain = new QVBoxLayout; // title widget m_titleBar = new TitleBar(this); // main area initLayoutCenter(); //QSplitter* splitter = new QSplitter(Qt::Horizontal); //splitter->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); //splitter->setHandleWidth(1); //splitter->addWidget(new QLabel("LEFT")); //splitter->addWidget(m_center); //splitter->handle(1)->setDisabled(true); // status widget initLayoutBottom(); m_layoutMain->addWidget(m_titleBar); m_layoutMain->addWidget(m_center); //m_layoutMain->addWidget(splitter); m_layoutMain->addLayout(m_layoutBottom); m_layoutMain->setSpacing(0); m_layoutMain->setContentsMargins(0, 0, 0, 0); setLayout(m_layoutMain); } void MainWindow::initLayoutCenter() { m_pageProtector = new ProtectorPage; m_pageChannel = new ChannelPage; m_pageSignature = new SignaturePage; m_pageHistory = new HistoryPage; m_center = new QStackedWidget; //m_center->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); QPalette plt; plt.setBrush(QPalette::Window, QBrush(Qt::white)); m_center->setPalette(plt); m_center->setAutoFillBackground(true); //m_center->resize(680, 500); m_center->setFrameShape(QFrame::NoFrame); m_center->addWidget(m_pageProtector); m_center->addWidget(m_pageChannel); m_center->addWidget(m_pageSignature); m_center->addWidget(m_pageHistory); } void MainWindow::initLayoutBottom() { //QLabel* labelIcon = new QLabel(); //labelIcon->setPixmap(QPixmap(":/misc/cloud")); //labelIcon->setFixedSize(QPixmap(":/misc/cloud").size()); QLabel* labelTime = new QLabel(); QString currentTime = QDateTime::currentDateTime().toString(tr("yyyy-M-d h:m")); QString dt = QString(tr("Last run: <b><font color=white>%1</font></b>")).arg(currentTime); labelTime->setText(dt); m_layoutBottom = new QHBoxLayout; m_layoutBottom->addStretch(); //m_layoutBottom->addWidget(labelIcon, 0, Qt::AlignCenter); m_layoutBottom->addWidget(labelTime, 0, Qt::AlignCenter); m_layoutBottom->setSpacing(5); m_layoutBottom->setContentsMargins(0, 3, 10, 3); } void MainWindow::initConnect() { connect(m_titleBar, SIGNAL(buttonMinimizedClicked()), SLOT(showMinimized())); connect(m_titleBar, SIGNAL(buttonCloseClicked()), SLOT(close())); connect(m_titleBar, SIGNAL(buttonSettingsClicked()), this, SLOT(onButtonSettingsClicked())); connect(m_titleBar, SIGNAL(buttonTabClicked(int)), this, SLOT(onButtonTabClicked(int))); } void MainWindow::onButtonSettingsClicked() { } void MainWindow::onButtonTabClicked(int index) { int currentIdx = m_center->currentIndex(); int total = m_center->count(); if (index < total && index != currentIdx) { m_center->setCurrentIndex(index); } } void MainWindow::paintEvent(QPaintEvent* event) { // First, we pass the paint event to parent widget to draw window shadow. // Then, we do our specific painting stuff. // ShadowWindow::paintEvent(event); // draw the background using the specified image. //QPainter painter(this); //painter.setPen(Qt::NoPen); //painter.setBrush(Qt::white); //painter.drawPixmap(5, 5, width() - 10, height() - 10, QPixmap(":/background/title_background")); QPainter painter(this); painter.drawPixmap(rect(), QPixmap(":/background/title_background")); //QPainter painter2(this); //painter2.setPen(Qt::gray); //static const QPointF points[4] = { QPointF(0, 100), QPointF(0, this->height() - 1), QPointF(this->width() - 1, this->height() - 1), QPointF(this->width() - 1, 100) }; //painter2.drawPolyline(points, 4); }
[ "martinkro@aliyun.com" ]
martinkro@aliyun.com
44cd7fffcdfad13fec8f8e52b52521a09a26f067
d9f59c9f35c4e35b07ba757f9c23b3f82aff2f00
/CustomSceneNode/src/main/jni/include/IFileSystem.h
faebdc578d081d159da8a9e7d2b581fc6fccaecc
[]
no_license
marky0720/irrlicht_Android_ogl_es
44d5f9097b4fc328a204e9a98a0ae92dd13471a4
4c94b4ba2ee833015ff8e83855e5b92a539bcc6b
refs/heads/master
2020-04-07T12:27:10.852174
2018-03-20T09:52:50
2018-03-20T09:52:50
124,211,363
1
1
null
null
null
null
UTF-8
C++
false
false
19,470
h
// Copyright (C) 2002-2012 Nikolaus Gebhardt // This file is part of the "Irrlicht Engine". // For conditions of distribution and use, see copyright notice in irrlicht.h #ifndef __I_FILE_SYSTEM_H_INCLUDED__ #define __I_FILE_SYSTEM_H_INCLUDED__ #include "IReferenceCounted.h" #include "IXMLReader.h" #include "IFileArchive.h" namespace irr { namespace video { class IVideoDriver; } // end namespace video namespace io { class IReadFile; class IWriteFile; class IFileList; class IXMLWriter; class IAttributes; //! The FileSystem manages files and archives and provides access to them. /** It manages where files are, so that modules which use the the IO do not need to know where every file is located. A file could be in a .zip-Archive or as file on disk, using the IFileSystem makes no difference to this. */ class IFileSystem : public virtual IReferenceCounted { public: //! Opens a file for read access. /** \param filename: Name of file to open. \return Pointer to the created file interface. The returned pointer should be dropped when no longer needed. See IReferenceCounted::drop() for more information. */ virtual IReadFile* createAndOpenFile(const path& filename) =0; //! Creates an IReadFile interface for accessing memory like a file. /** This allows you to use a pointer to memory where an IReadFile is requested. \param memory: A pointer to the start of the file in memory \param len: The length of the memory in bytes \param fileName: The name given to this file \param deleteMemoryWhenDropped: True if the memory should be deleted along with the IReadFile when it is dropped. \return Pointer to the created file interface. The returned pointer should be dropped when no longer needed. See IReferenceCounted::drop() for more information. */ virtual IReadFile* createMemoryReadFile(const void* memory, s32 len, const path& fileName, bool deleteMemoryWhenDropped=false) =0; //! Creates an IReadFile interface for accessing files inside files. /** This is useful e.g. for archives. \param fileName: The name given to this file \param alreadyOpenedFile: Pointer to the enclosing file \param pos: Start of the file inside alreadyOpenedFile \param areaSize: The length of the file \return A pointer to the created file interface. The returned pointer should be dropped when no longer needed. See IReferenceCounted::drop() for more information. */ virtual IReadFile* createLimitReadFile(const path& fileName, IReadFile* alreadyOpenedFile, long pos, long areaSize) =0; //! Creates an IWriteFile interface for accessing memory like a file. /** This allows you to use a pointer to memory where an IWriteFile is requested. You are responsible for allocating enough memory. \param memory: A pointer to the start of the file in memory (allocated by you) \param len: The length of the memory in bytes \param fileName: The name given to this file \param deleteMemoryWhenDropped: True if the memory should be deleted along with the IWriteFile when it is dropped. \return Pointer to the created file interface. The returned pointer should be dropped when no longer needed. See IReferenceCounted::drop() for more information. */ virtual IWriteFile* createMemoryWriteFile(void* memory, s32 len, const path& fileName, bool deleteMemoryWhenDropped=false) =0; //! Opens a file for write access. /** \param filename: Name of file to open. \param append: If the file already exist, all write operations are appended to the file. \return Pointer to the created file interface. 0 is returned, if the file could not created or opened for writing. The returned pointer should be dropped when no longer needed. See IReferenceCounted::drop() for more information. */ virtual IWriteFile* createAndWriteFile(const path& filename, bool append=false) =0; //! Adds an archive to the file system. /** After calling this, the Irrlicht Engine will also search and open files directly from this archive. This is useful for hiding data from the end user, speeding up file access and making it possible to access for example Quake3 .pk3 files, which are just renamed .zip files. By default Irrlicht supports ZIP, PAK, TAR, PNK, and directories as archives. You can provide your own archive types by implementing IArchiveLoader and passing an instance to addArchiveLoader. Irrlicht supports AES-encrypted zip files, and the advanced compression techniques lzma and bzip2. \param filename: Filename of the archive to add to the file system. \param ignoreCase: If set to true, files in the archive can be accessed without writing all letters in the right case. \param ignorePaths: If set to true, files in the added archive can be accessed without its complete path. \param archiveType: If no specific E_FILE_ARCHIVE_TYPE is selected then the type of archive will depend on the extension of the file name. If you use a different extension then you can use this parameter to force a specific type of archive. \param password An optional password, which is used in case of encrypted archives. \param retArchive A pointer that will be set to the archive that is added. \return True if the archive was added successfully, false if not. */ virtual bool addFileArchive(const path& filename, bool ignoreCase=true, bool ignorePaths=true, E_FILE_ARCHIVE_TYPE archiveType=EFAT_UNKNOWN, const core::stringc& password="", IFileArchive** retArchive=0) =0; //! Adds an archive to the file system. /** After calling this, the Irrlicht Engine will also search and open files directly from this archive. This is useful for hiding data from the end user, speeding up file access and making it possible to access for example Quake3 .pk3 files, which are just renamed .zip files. By default Irrlicht supports ZIP, PAK, TAR, PNK, and directories as archives. You can provide your own archive types by implementing IArchiveLoader and passing an instance to addArchiveLoader. Irrlicht supports AES-encrypted zip files, and the advanced compression techniques lzma and bzip2. If you want to add a directory as an archive, prefix its name with a slash in order to let Irrlicht recognize it as a folder mount (mypath/). Using this technique one can build up a search order, because archives are read first, and can be used more easily with relative filenames. \param file: Archive to add to the file system. \param ignoreCase: If set to true, files in the archive can be accessed without writing all letters in the right case. \param ignorePaths: If set to true, files in the added archive can be accessed without its complete path. \param archiveType: If no specific E_FILE_ARCHIVE_TYPE is selected then the type of archive will depend on the extension of the file name. If you use a different extension then you can use this parameter to force a specific type of archive. \param password An optional password, which is used in case of encrypted archives. \param retArchive A pointer that will be set to the archive that is added. \return True if the archive was added successfully, false if not. */ virtual bool addFileArchive(IReadFile* file, bool ignoreCase=true, bool ignorePaths=true, E_FILE_ARCHIVE_TYPE archiveType=EFAT_UNKNOWN, const core::stringc& password="", IFileArchive** retArchive=0) =0; //! Adds an archive to the file system. /** \param archive: The archive to add to the file system. \return True if the archive was added successfully, false if not. */ virtual bool addFileArchive(IFileArchive* archive) =0; //! Get the number of archives currently attached to the file system virtual u32 getFileArchiveCount() const =0; //! Removes an archive from the file system. /** This will close the archive and free any file handles, but will not close resources which have already been loaded and are now cached, for example textures and meshes. \param index: The index of the archive to remove \return True on success, false on failure */ virtual bool removeFileArchive(u32 index) =0; //! Removes an archive from the file system. /** This will close the archive and free any file handles, but will not close resources which have already been loaded and are now cached, for example textures and meshes. Note that a relative filename might be interpreted differently on each call, depending on the current working directory. In case you want to remove an archive that was added using a relative path name, you have to change to the same working directory again. This means, that the filename given on creation is not an identifier for the archive, but just a usual filename that is used for locating the archive to work with. \param filename The archive pointed to by the name will be removed \return True on success, false on failure */ virtual bool removeFileArchive(const path& filename) =0; //! Removes an archive from the file system. /** This will close the archive and free any file handles, but will not close resources which have already been loaded and are now cached, for example textures and meshes. \param archive The archive to remove. \return True on success, false on failure */ virtual bool removeFileArchive(const IFileArchive* archive) =0; //! Changes the search order of attached archives. /** \param sourceIndex: The index of the archive to change \param relative: The relative change in position, archives with a lower index are searched first */ virtual bool moveFileArchive(u32 sourceIndex, s32 relative) =0; //! Get the archive at a given index. virtual IFileArchive* getFileArchive(u32 index) =0; //! Adds an external archive loader to the engine. /** Use this function to add support for new archive types to the engine, for example proprietary or encrypted file storage. */ virtual void addArchiveLoader(IArchiveLoader* loader) =0; //! Gets the number of archive loaders currently added virtual u32 getArchiveLoaderCount() const = 0; //! Retrieve the given archive loader /** \param index The index of the loader to retrieve. This parameter is an 0-based array index. \return A pointer to the specified loader, 0 if the index is incorrect. */ virtual IArchiveLoader* getArchiveLoader(u32 index) const = 0; //! Adds a zip archive to the file system. /** \deprecated This function is provided for compatibility with older versions of Irrlicht and may be removed in Irrlicht 1.9, you should use addFileArchive instead. After calling this, the Irrlicht Engine will search and open files directly from this archive too. This is useful for hiding data from the end user, speeding up file access and making it possible to access for example Quake3 .pk3 files, which are no different than .zip files. \param filename: Filename of the zip archive to add to the file system. \param ignoreCase: If set to true, files in the archive can be accessed without writing all letters in the right case. \param ignorePaths: If set to true, files in the added archive can be accessed without its complete path. \return True if the archive was added successfully, false if not. */ _IRR_DEPRECATED_ virtual bool addZipFileArchive(const c8* filename, bool ignoreCase=true, bool ignorePaths=true) { return addFileArchive(filename, ignoreCase, ignorePaths, EFAT_ZIP); } //! Adds an unzipped archive (or basedirectory with subdirectories..) to the file system. /** \deprecated This function is provided for compatibility with older versions of Irrlicht and may be removed in Irrlicht 1.9, you should use addFileArchive instead. Useful for handling data which will be in a zip file \param filename: Filename of the unzipped zip archive base directory to add to the file system. \param ignoreCase: If set to true, files in the archive can be accessed without writing all letters in the right case. \param ignorePaths: If set to true, files in the added archive can be accessed without its complete path. \return True if the archive was added successful, false if not. */ _IRR_DEPRECATED_ virtual bool addFolderFileArchive(const c8* filename, bool ignoreCase=true, bool ignorePaths=true) { return addFileArchive(filename, ignoreCase, ignorePaths, EFAT_FOLDER); } //! Adds a pak archive to the file system. /** \deprecated This function is provided for compatibility with older versions of Irrlicht and may be removed in Irrlicht 1.9, you should use addFileArchive instead. After calling this, the Irrlicht Engine will search and open files directly from this archive too. This is useful for hiding data from the end user, speeding up file access and making it possible to access for example Quake2/KingPin/Hexen2 .pak files \param filename: Filename of the pak archive to add to the file system. \param ignoreCase: If set to true, files in the archive can be accessed without writing all letters in the right case. \param ignorePaths: If set to true, files in the added archive can be accessed without its complete path.(should not use with Quake2 paks \return True if the archive was added successful, false if not. */ _IRR_DEPRECATED_ virtual bool addPakFileArchive(const c8* filename, bool ignoreCase=true, bool ignorePaths=true) { return addFileArchive(filename, ignoreCase, ignorePaths, EFAT_PAK); } //! Get the current working directory. /** \return Current working directory as a string. */ virtual const path& getWorkingDirectory() =0; //! Changes the current working directory. /** \param newDirectory: A string specifying the new working directory. The string is operating system dependent. Under Windows it has the form "<drive>:\<directory>\<sudirectory>\<..>". An example would be: "C:\Windows\" \return True if successful, otherwise false. */ virtual bool changeWorkingDirectoryTo(const path& newDirectory) =0; //! Converts a relative path to an absolute (unique) path, resolving symbolic links if required /** \param filename Possibly relative file or directory name to query. \result Absolute filename which points to the same file. */ virtual path getAbsolutePath(const path& filename) const =0; //! Get the directory a file is located in. /** \param filename: The file to get the directory from. \return String containing the directory of the file. */ virtual path getFileDir(const path& filename) const =0; //! Get the base part of a filename, i.e. the name without the directory part. /** If no directory is prefixed, the full name is returned. \param filename: The file to get the basename from \param keepExtension True if filename with extension is returned otherwise everything after the final '.' is removed as well. */ virtual path getFileBasename(const path& filename, bool keepExtension=true) const =0; //! flatten a path and file name for example: "/you/me/../." becomes "/you" virtual path& flattenFilename(path& directory, const path& root="/") const =0; //! Get the relative filename, relative to the given directory virtual path getRelativeFilename(const path& filename, const path& directory) const =0; //! Creates a list of files and directories in the current working directory and returns it. /** \return a Pointer to the created IFileList is returned. After the list has been used it has to be deleted using its IFileList::drop() method. See IReferenceCounted::drop() for more information. */ virtual IFileList* createFileList() =0; //! Creates an empty filelist /** \return a Pointer to the created IFileList is returned. After the list has been used it has to be deleted using its IFileList::drop() method. See IReferenceCounted::drop() for more information. */ virtual IFileList* createEmptyFileList(const io::path& path, bool ignoreCase, bool ignorePaths) =0; //! Set the active type of file system. virtual EFileSystemType setFileListSystem(EFileSystemType listType) =0; //! Determines if a file exists and could be opened. /** \param filename is the string identifying the file which should be tested for existence. \return True if file exists, and false if it does not exist or an error occurred. */ virtual bool existFile(const path& filename) const =0; //! Creates a XML Reader from a file which returns all parsed strings as wide characters (wchar_t*). /** Use createXMLReaderUTF8() if you prefer char* instead of wchar_t*. See IIrrXMLReader for more information on how to use the parser. \return 0, if file could not be opened, otherwise a pointer to the created IXMLReader is returned. After use, the reader has to be deleted using its IXMLReader::drop() method. See IReferenceCounted::drop() for more information. */ virtual IXMLReader* createXMLReader(const path& filename) =0; //! Creates a XML Reader from a file which returns all parsed strings as wide characters (wchar_t*). /** Use createXMLReaderUTF8() if you prefer char* instead of wchar_t*. See IIrrXMLReader for more information on how to use the parser. \return 0, if file could not be opened, otherwise a pointer to the created IXMLReader is returned. After use, the reader has to be deleted using its IXMLReader::drop() method. See IReferenceCounted::drop() for more information. */ virtual IXMLReader* createXMLReader(IReadFile* file) =0; //! Creates a XML Reader from a file which returns all parsed strings as ASCII/UTF-8 characters (char*). /** Use createXMLReader() if you prefer wchar_t* instead of char*. See IIrrXMLReader for more information on how to use the parser. \return 0, if file could not be opened, otherwise a pointer to the created IXMLReader is returned. After use, the reader has to be deleted using its IXMLReaderUTF8::drop() method. See IReferenceCounted::drop() for more information. */ virtual IXMLReaderUTF8* createXMLReaderUTF8(const path& filename) =0; //! Creates a XML Reader from a file which returns all parsed strings as ASCII/UTF-8 characters (char*). /** Use createXMLReader() if you prefer wchar_t* instead of char*. See IIrrXMLReader for more information on how to use the parser. \return 0, if file could not be opened, otherwise a pointer to the created IXMLReader is returned. After use, the reader has to be deleted using its IXMLReaderUTF8::drop() method. See IReferenceCounted::drop() for more information. */ virtual IXMLReaderUTF8* createXMLReaderUTF8(IReadFile* file) =0; //! Creates a XML Writer from a file. /** \return 0, if file could not be opened, otherwise a pointer to the created IXMLWriter is returned. After use, the reader has to be deleted using its IXMLWriter::drop() method. See IReferenceCounted::drop() for more information. */ virtual IXMLWriter* createXMLWriter(const path& filename) =0; //! Creates a XML Writer from a file. /** \return 0, if file could not be opened, otherwise a pointer to the created IXMLWriter is returned. After use, the reader has to be deleted using its IXMLWriter::drop() method. See IReferenceCounted::drop() for more information. */ virtual IXMLWriter* createXMLWriter(IWriteFile* file) =0; //! Creates a new empty collection of attributes, usable for serialization and more. /** \param driver: Video driver to be used to load textures when specified as attribute values. Can be null to prevent automatic texture loading by attributes. \return Pointer to the created object. If you no longer need the object, you should call IAttributes::drop(). See IReferenceCounted::drop() for more information. */ virtual IAttributes* createEmptyAttributes(video::IVideoDriver* driver=0) =0; }; } // end namespace io } // end namespace irr #endif
[ "marky0720@gmail.com" ]
marky0720@gmail.com
79f03348d322a4fd466f97a1317833f3d54fd2e6
fdb0a721d99df90f305ffd5e17899e31e87347a3
/ArchiveDecoder.h
093dec4a65f7494e3ca9e9bffa9dbc0bb47ff3e5
[]
no_license
arstevens/ASAR-N-ary-Tree-Archive-Program
967cd5156ded2621f423ec0d56062184d362e8c0
6f42820f6264476bb5d816368ff7c908f88dbfcd
refs/heads/master
2021-09-06T20:25:46.428597
2018-02-11T04:25:01
2018-02-11T04:25:01
119,713,527
0
0
null
null
null
null
UTF-8
C++
false
false
356
h
#ifndef ARCHIVE_DECODER_H #define ARCHIVE_DECODER_H #include <string> #include <fstream> #include "Archive.h" class ArchiveDecoder : public Archive { public: ArchiveDecoder(std::string); bool extract(); private: // Fields std::string archive_buff; bool readUntilEOE(std::ifstream&); bool processRegexStream(/*regex stream*/); }; #endif
[ "aleks.stevens@protonmail.com" ]
aleks.stevens@protonmail.com
a1cfd371b46fea6da47d4b76ffb44cf100f5cb43
4c0593d5a84c3370e0eb02aff1a31949b9db709b
/upgrade_bak/frameworks/runtime-src/Classes/ConfigParser.cpp
70035e14e03412fb6f78070b77b00e652a77cde7
[]
no_license
JakubDziworski/BasketBounce
246d59bcbde716aa09d4eaab94937004449ea1fd
a64ebb6b74319d5dbbca5f4e2015a22a40d25608
refs/heads/master
2021-01-18T23:09:51.155798
2016-07-31T18:28:03
2016-07-31T18:28:03
25,026,993
0
0
null
null
null
null
UTF-8
C++
false
false
5,143
cpp
#include "json/document.h" #include "json/filestream.h" #include "json/stringbuffer.h" #include "json/writer.h" #include "ConfigParser.h" // ConfigParser ConfigParser *ConfigParser::s_sharedInstance = NULL; ConfigParser *ConfigParser::getInstance(void) { if (!s_sharedInstance) { s_sharedInstance = new ConfigParser(); s_sharedInstance->readConfig(); } return s_sharedInstance; } void ConfigParser::readConfig() { _isWindowTop = false; _consolePort = 6010; _uploadPort = 6020; string filecfg = "config.json"; string fileContent; #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID && !defined(NDEBUG)) || (CC_TARGET_PLATFORM == CC_PLATFORM_IOS && defined(COCOS2D_DEBUG)) string fullPathFile = FileUtils::getInstance()->getWritablePath(); fullPathFile.append("debugruntime/"); fullPathFile.append(filecfg.c_str()); fileContent=FileUtils::getInstance()->getStringFromFile(fullPathFile.c_str()); #endif if (fileContent.empty()) { filecfg=FileUtils::getInstance()->fullPathForFilename(filecfg.c_str()); fileContent=FileUtils::getInstance()->getStringFromFile(filecfg.c_str()); } if(!fileContent.empty()) { _docRootjson.Parse<0>(fileContent.c_str()); if (_docRootjson.HasMember("init_cfg")) { if(_docRootjson["init_cfg"].IsObject()) { const rapidjson::Value& objectInitView = _docRootjson["init_cfg"]; if (objectInitView.HasMember("width") && objectInitView.HasMember("height")) { _initViewSize.width = objectInitView["width"].GetUint(); _initViewSize.height = objectInitView["height"].GetUint(); if (_initViewSize.height>_initViewSize.width) { float tmpvalue = _initViewSize.height; _initViewSize.height = _initViewSize.width; _initViewSize.width = tmpvalue; } } if (objectInitView.HasMember("name") && objectInitView["name"].IsString()) { _viewName = objectInitView["name"].GetString(); } if (objectInitView.HasMember("isLandscape") && objectInitView["isLandscape"].IsBool()) { _isLandscape = objectInitView["isLandscape"].GetBool(); } if (objectInitView.HasMember("entry") && objectInitView["entry"].IsString()) { _entryfile = objectInitView["entry"].GetString(); } if (objectInitView.HasMember("consolePort")) { _consolePort = objectInitView["consolePort"].GetUint(); if(_consolePort <= 0) _consolePort = 6010; } if (objectInitView.HasMember("uploadPort")) { _uploadPort = objectInitView["uploadPort"].GetUint(); if(_uploadPort <= 0) _uploadPort = 6020; } if (objectInitView.HasMember("isWindowTop") && objectInitView["isWindowTop"].IsBool()) { _isWindowTop= objectInitView["isWindowTop"].GetBool(); } } } if (_docRootjson.HasMember("simulator_screen_size")) { const rapidjson::Value& ArrayScreenSize = _docRootjson["simulator_screen_size"]; if (ArrayScreenSize.IsArray()) { for (int i=0; i<ArrayScreenSize.Size(); i++) { const rapidjson::Value& objectScreenSize = ArrayScreenSize[i]; if (objectScreenSize.HasMember("title") && objectScreenSize.HasMember("width") && objectScreenSize.HasMember("height")) { _screenSizeArray.push_back(SimulatorScreenSize(objectScreenSize["title"].GetString(), objectScreenSize["width"].GetUint(), objectScreenSize["height"].GetUint())); } } } } } } ConfigParser::ConfigParser(void) : _isLandscape(true) { _initViewSize.setSize(960,640); _viewName = "BasketballTest"; _entryfile = "src/main.lua"; } rapidjson::Document& ConfigParser::getConfigJsonRoot() { return _docRootjson; } string ConfigParser::getInitViewName() { return _viewName; } string ConfigParser::getEntryFile() { return _entryfile; } Size ConfigParser::getInitViewSize() { return _initViewSize; } bool ConfigParser::isLanscape() { return _isLandscape; } bool ConfigParser::isWindowTop() { return _isWindowTop; } int ConfigParser::getConsolePort() { return _consolePort; } int ConfigParser::getUploadPort() { return _uploadPort; } int ConfigParser::getScreenSizeCount(void) { return (int)_screenSizeArray.size(); } const SimulatorScreenSize ConfigParser::getScreenSize(int index) { return _screenSizeArray.at(index); }
[ "jakub.dziworski@gmail.com" ]
jakub.dziworski@gmail.com
7d5445af18149386ad95d0c2f4071bc3d0dbaa11
16f235c9479403988415eeac8cb3ca8926983eef
/src/cuda-sim/ptx_sim.h
1d30eb6b85a0d31b31a7f969eac500a260484ee3
[ "BSD-3-Clause" ]
permissive
insight-cal/mafia
c88fd85ac63aa8f6db5fd09cc3f907152e1abb98
21dc3faa554fbc2ef167a1c99248fc3ab0be901f
refs/heads/master
2022-05-08T04:15:14.874162
2022-01-21T02:17:29
2022-01-21T02:17:29
239,350,026
0
0
NOASSERTION
2020-02-09T18:07:46
2020-02-09T18:07:45
null
UTF-8
C++
false
false
14,508
h
// Copyright (c) 2009-2011, The University of British Columbia // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // Redistributions of source code must retain the above copyright notice, this // list of conditions and the following disclaimer. // Redistributions in binary form must reproduce the above copyright notice, this // list of conditions and the following disclaimer in the documentation and/or // other materials provided with the distribution. // Neither the name of The University of British Columbia 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. #ifndef ptx_sim_h_INCLUDED #define ptx_sim_h_INCLUDED #include <stdlib.h> #include "../abstract_hardware_model.h" #include "../tr1_hash_map.h" #include <assert.h> #include "opcodes.h" #include <string> #include <map> #include <set> #include <list> #include "memory.h" struct param_t { const void *pdata; int type; size_t size; size_t offset; }; #include <stack> #include "memory.h" union ptx_reg_t { ptx_reg_t() { bits.ms = 0; bits.ls = 0; u128.low=0; u128.lowest=0; u128.highest=0; u128.high=0; s8=0; s16=0; s32=0; s64=0; u8=0; u16=0; u64=0; f16=0; f32=0; f64=0; pred=0; } ptx_reg_t(unsigned x) { bits.ms = 0; bits.ls = 0; u128.low=0; u128.lowest=0; u128.highest=0; u128.high=0; s8=0; s16=0; s32=0; s64=0; u8=0; u16=0; u64=0; f16=0; f32=0; f64=0; pred=0; u32 = x; } operator unsigned int() { return u32;} operator unsigned short() { return u16;} operator unsigned char() { return u8;} operator unsigned long long() { return u64;} void mask_and( unsigned ms, unsigned ls ) { bits.ms &= ms; bits.ls &= ls; } void mask_or( unsigned ms, unsigned ls ) { bits.ms |= ms; bits.ls |= ls; } int get_bit( unsigned bit ) { if ( bit < 32 ) return(bits.ls >> bit) & 1; else return(bits.ms >> (bit-32)) & 1; } signed char s8; signed short s16; signed int s32; signed long long s64; unsigned char u8; unsigned short u16; unsigned int u32; unsigned long long u64; float f16; float f32; double f64; struct { unsigned ls; unsigned ms; } bits; struct { unsigned int lowest; unsigned int low; unsigned int high; unsigned int highest; } u128; unsigned pred : 4; }; class ptx_instruction; class operand_info; class symbol_table; class function_info; class ptx_thread_info; class ptx_cta_info { public: ptx_cta_info( unsigned sm_idx ); void add_thread( ptx_thread_info *thd ); unsigned num_threads() const; void check_cta_thread_status_and_reset(); void register_thread_exit( ptx_thread_info *thd ); void register_deleted_thread( ptx_thread_info *thd ); unsigned get_sm_idx() const; private: unsigned long long m_uid; unsigned m_sm_idx; std::set<ptx_thread_info*> m_threads_in_cta; std::set<ptx_thread_info*> m_threads_that_have_exited; std::set<ptx_thread_info*> m_dangling_pointers; }; class symbol; struct stack_entry { stack_entry() { m_symbol_table=NULL; m_func_info=NULL; m_PC=0; m_RPC=-1; m_return_var_src = NULL; m_return_var_dst = NULL; m_call_uid = 0; m_valid = false; } stack_entry( symbol_table *s, function_info *f, unsigned pc, unsigned rpc, const symbol *return_var_src, const symbol *return_var_dst, unsigned call_uid ) { m_symbol_table=s; m_func_info=f; m_PC=pc; m_RPC=rpc; m_return_var_src = return_var_src; m_return_var_dst = return_var_dst; m_call_uid = call_uid; m_valid = true; } bool m_valid; symbol_table *m_symbol_table; function_info *m_func_info; unsigned m_PC; unsigned m_RPC; const symbol *m_return_var_src; const symbol *m_return_var_dst; unsigned m_call_uid; }; class ptx_version { public: ptx_version() { m_valid = false; m_ptx_version = 0; m_ptx_extensions = 0; m_sm_version_valid=false; m_texmode_unified=true; m_map_f64_to_f32 = true; } ptx_version(float ver, unsigned extensions) { m_valid = true; m_ptx_version = ver; m_ptx_extensions = extensions; m_sm_version_valid=false; m_texmode_unified=true; } void set_target( const char *sm_ver, const char *ext, const char *ext2 ) { assert( m_valid ); m_sm_version_str = sm_ver; check_target_extension(ext); check_target_extension(ext2); sscanf(sm_ver,"%u",&m_sm_version); m_sm_version_valid=true; } float ver() const { assert(m_valid); return m_ptx_version; } unsigned target() const { assert(m_valid&&m_sm_version_valid); return m_sm_version; } unsigned extensions() const { assert(m_valid); return m_ptx_extensions; } private: void check_target_extension( const char *ext ) { if( ext ) { if( !strcmp(ext,"texmode_independent") ) m_texmode_unified=false; else if( !strcmp(ext,"texmode_unified") ) m_texmode_unified=true; else if( !strcmp(ext,"map_f64_to_f32") ) m_map_f64_to_f32 = true; else abort(); } } bool m_valid; float m_ptx_version; unsigned m_sm_version_valid; std::string m_sm_version_str; bool m_texmode_unified; bool m_map_f64_to_f32; unsigned m_sm_version; unsigned m_ptx_extensions; }; class ptx_thread_info { public: ~ptx_thread_info(); ptx_thread_info( kernel_info_t &kernel ); void init(gpgpu_t *gpu, core_t *core, unsigned sid, unsigned cta_id, unsigned wid, unsigned tid, bool fsim) { m_gpu = gpu; m_core = core; m_hw_sid=sid; m_hw_ctaid=cta_id; m_hw_wid=wid; m_hw_tid=tid; m_functionalSimulationMode = fsim; } void ptx_fetch_inst( inst_t &inst ) const; void ptx_exec_inst( warp_inst_t &inst, unsigned lane_id ); const ptx_version &get_ptx_version() const; void set_reg( const symbol *reg, const ptx_reg_t &value ); ptx_reg_t get_reg( const symbol *reg ); ptx_reg_t get_operand_value( const operand_info &op, operand_info dstInfo, unsigned opType, ptx_thread_info *thread, int derefFlag ); void set_operand_value( const operand_info &dst, const ptx_reg_t &data, unsigned type, ptx_thread_info *thread, const ptx_instruction *pI ); void set_operand_value( const operand_info &dst, const ptx_reg_t &data, unsigned type, ptx_thread_info *thread, const ptx_instruction *pI, int overflow, int carry ); void get_vector_operand_values( const operand_info &op, ptx_reg_t* ptx_regs, unsigned num_elements ); void set_vector_operand_values( const operand_info &dst, const ptx_reg_t &data1, const ptx_reg_t &data2, const ptx_reg_t &data3, const ptx_reg_t &data4 ); function_info *func_info() { return m_func_info; } void print_insn( unsigned pc, FILE * fp ) const; void set_info( function_info *func ); unsigned get_uid() const { return m_uid; } dim3 get_ctaid() const { return m_ctaid; } dim3 get_tid() const { return m_tid; } class gpgpu_sim *get_gpu() { return (gpgpu_sim*)m_gpu;} unsigned get_hw_tid() const { return m_hw_tid;} unsigned get_hw_ctaid() const { return m_hw_ctaid;} unsigned get_hw_wid() const { return m_hw_wid;} unsigned get_hw_sid() const { return m_hw_sid;} core_t *get_core() { return m_core; } unsigned get_icount() const { return m_icount;} void set_valid() { m_valid = true;} addr_t last_eaddr() const { return m_last_effective_address;} memory_space_t last_space() const { return m_last_memory_space;} dram_callback_t last_callback() const { return m_last_dram_callback;} unsigned long long get_cta_uid() { return m_cta_info->get_sm_idx();} void set_single_thread_single_block() { m_ntid.x = 1; m_ntid.y = 1; m_ntid.z = 1; m_ctaid.x = 0; m_ctaid.y = 0; m_ctaid.z = 0; m_tid.x = 0; m_tid.y = 0; m_tid.z = 0; m_nctaid.x = 1; m_nctaid.y = 1; m_nctaid.z = 1; m_gridid = 0; m_valid = true; } void set_tid( dim3 tid ) { m_tid = tid; } void cpy_tid_to_reg( dim3 tid ); void set_ctaid( dim3 ctaid ) { m_ctaid = ctaid; } void set_ntid( dim3 tid ) { m_ntid = tid; } void set_nctaid( dim3 cta_size ) { m_nctaid = cta_size; } unsigned get_builtin( int builtin_id, unsigned dim_mod ); void set_done(); bool is_done() { return m_thread_done;} unsigned donecycle() const { return m_cycle_done; } unsigned next_instr() { m_icount++; m_branch_taken = false; return m_PC; } bool branch_taken() const { return m_branch_taken; } unsigned get_pc() const { return m_PC; } void set_npc( unsigned npc ) { m_NPC = npc; } void set_npc( const function_info *f ); void callstack_push( unsigned npc, unsigned rpc, const symbol *return_var_src, const symbol *return_var_dst, unsigned call_uid ); bool callstack_pop(); void callstack_push_plus( unsigned npc, unsigned rpc, const symbol *return_var_src, const symbol *return_var_dst, unsigned call_uid ); bool callstack_pop_plus(); void dump_callstack() const; std::string get_location() const; const ptx_instruction *get_inst() const; const ptx_instruction *get_inst( addr_t pc ) const; bool rpc_updated() const { return m_RPC_updated; } bool last_was_call() const { return m_last_was_call; } unsigned get_rpc() const { return m_RPC; } void clearRPC() { m_RPC = -1; m_RPC_updated = false; m_last_was_call = false; } unsigned get_return_PC() { return m_callstack.back().m_PC; } void update_pc( ) { m_PC = m_NPC; } void dump_regs(FILE * fp); void dump_modifiedregs(FILE *fp); void clear_modifiedregs() { m_debug_trace_regs_modified.back().clear(); m_debug_trace_regs_read.back().clear(); } function_info *get_finfo() { return m_func_info; } const function_info *get_finfo() const { return m_func_info; } void push_breakaddr(const operand_info &breakaddr); const operand_info& pop_breakaddr(); void enable_debug_trace() { m_enable_debug_trace = true; } unsigned get_local_mem_stack_pointer() const { return m_local_mem_stack_pointer; } memory_space *get_global_memory() { return m_gpu->get_global_memory(); } memory_space *get_tex_memory() { return m_gpu->get_tex_memory(); } memory_space *get_surf_memory() { return m_gpu->get_surf_memory(); } memory_space *get_param_memory() { return m_kernel.get_param_memory(); } const gpgpu_functional_sim_config &get_config() const { return m_gpu->get_config(); } bool isInFunctionalSimulationMode(){ return m_functionalSimulationMode;} void exitCore() { //m_core is not used in case of functional simulation mode if(!m_functionalSimulationMode) m_core->warp_exit(m_hw_wid); } void registerExit(){m_cta_info->register_thread_exit(this);} public: addr_t m_last_effective_address; bool m_branch_taken; memory_space_t m_last_memory_space; dram_callback_t m_last_dram_callback; memory_space *m_shared_mem; memory_space *m_local_mem; ptx_cta_info *m_cta_info; ptx_reg_t m_last_set_operand_value; private: bool m_functionalSimulationMode; unsigned m_uid; kernel_info_t &m_kernel; core_t *m_core; gpgpu_t *m_gpu; bool m_valid; dim3 m_ntid; dim3 m_tid; dim3 m_nctaid; dim3 m_ctaid; unsigned m_gridid; bool m_thread_done; unsigned m_hw_sid; unsigned m_hw_tid; unsigned m_hw_wid; unsigned m_hw_ctaid; unsigned m_icount; unsigned m_PC; unsigned m_NPC; unsigned m_RPC; bool m_RPC_updated; bool m_last_was_call; unsigned m_cycle_done; int m_barrier_num; bool m_at_barrier; symbol_table *m_symbol_table; function_info *m_func_info; std::list<stack_entry> m_callstack; unsigned m_local_mem_stack_pointer; typedef tr1_hash_map<const symbol*,ptx_reg_t> reg_map_t; std::list<reg_map_t> m_regs; std::list<reg_map_t> m_debug_trace_regs_modified; std::list<reg_map_t> m_debug_trace_regs_read; bool m_enable_debug_trace; std::stack<class operand_info> m_breakaddrs; }; addr_t generic_to_local( unsigned smid, unsigned hwtid, addr_t addr ); addr_t generic_to_shared( unsigned smid, addr_t addr ); addr_t generic_to_global( addr_t addr ); addr_t local_to_generic( unsigned smid, unsigned hwtid, addr_t addr ); addr_t shared_to_generic( unsigned smid, addr_t addr ); addr_t global_to_generic( addr_t addr ); bool isspace_local( unsigned smid, unsigned hwtid, addr_t addr ); bool isspace_shared( unsigned smid, addr_t addr ); bool isspace_global( addr_t addr ); memory_space_t whichspace( addr_t addr ); extern unsigned g_ptx_thread_info_uid_next; #endif
[ "tzk133@psu.edu" ]
tzk133@psu.edu
7dd7ba2e58b3f9b0e4ac4f5352d403afcef936f0
bbac4ae92faff1c0fe9c922826011f2ef969bd13
/Assignment3-codes/AREA_OF_.CPP
6a2d59e3c89ac831b24af89c0d93c32e730c4208
[]
no_license
Parash117/newbie-coding
554519d62616923bad049c1bd98e3f7ef33a13bc
02bf37be32d404d1362df28a9985509d9739fbd1
refs/heads/master
2021-01-11T21:52:58.970278
2017-03-13T13:18:50
2017-03-13T13:18:50
78,870,023
1
3
null
null
null
null
UTF-8
C++
false
false
517
cpp
#include<stdio.h> #include<conio.h> #define pi 3.1415 // a. calculate area and circumferance of a circle // b. Calculate sum of 6 subject and find percentage // c. Check whehter a number is even or odd void main(){ clrscr(); float r, area, circ; printf("Enter The radius of circle To get the area and circumference: "); scanf("%f", &r); //Calculation: area = pi*r; circ = 2*pi*r; printf("\n The area of Cirlce is: %f", area); printf("\n The circumferance of Circle is: %f", circ); getch(); }
[ "unforgivingboy@gmail.com" ]
unforgivingboy@gmail.com
3deaeb3bf0d002f704c29ca56264e06289e357d1
4f98a9bd165236fd5f4d12d6c2c852f42841f5a9
/d02/ex00/main.cpp
a3bd30c83523fa51c7376bb417958822e9b5098c
[]
no_license
tsergien/cpp_learning
74c0800b4b86fffc698de2de5ed3a094ad548b32
5cc814e65b486f1c1096902a08731f3fedc5d885
refs/heads/master
2020-04-01T17:15:45.084209
2018-10-17T10:26:00
2018-10-17T10:26:00
153,278,621
0
0
null
null
null
null
UTF-8
C++
false
false
1,120
cpp
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: tsergien <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2018/10/03 19:28:11 by tsergien #+# #+# */ /* Updated: 2018/10/03 19:28:14 by tsergien ### ########.fr */ /* */ /* ************************************************************************** */ #include "Fixed.class.hpp" int main(void) { Fixed a; Fixed b(a); Fixed c; c = b; std::cout << a.getRawBits() << std::endl; std::cout << b.getRawBits() << std::endl; std::cout << c.getRawBits() << std::endl; return 0; }
[ "chocolate1378@gmail.com" ]
chocolate1378@gmail.com
0ef5edb4ca073e5bfcd2ecc5aa4343aac8efae7f
9d6c899c97287c19980352e2e852717fb6dc8c09
/tensorflow/examples/tf_volume/jni/object_tracking/image_utils.h
22df43f3841ba701a4856af02f782196616dd68e
[ "Apache-2.0" ]
permissive
stesha2016/tensorflow
4ce1215e3b6e69187890d4d807e466a56faeed49
23fd0dd3e6955ff138dfc30d179b66b4eca9e7db
refs/heads/master
2020-04-15T16:07:25.378476
2019-02-01T06:23:45
2019-02-01T06:26:45
164,821,211
0
0
null
null
null
null
UTF-8
C++
false
false
10,134
h
/* Copyright 2016 The TensorFlow 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. ==============================================================================*/ #ifndef TENSORFLOW_EXAMPLES_ANDROID_JNI_OBJECT_TRACKING_IMAGE_UTILS_H_ #define TENSORFLOW_EXAMPLES_ANDROID_JNI_OBJECT_TRACKING_IMAGE_UTILS_H_ #include <stdint.h> #include "./geom.h" #include "./image-inl.h" #include "./image.h" #include "./utils.h" namespace tf_tracking { inline void GetUV(const uint8_t* const input, Image<uint8_t>* const u, Image<uint8_t>* const v) { const uint8_t* pUV = input; for (int row = 0; row < u->GetHeight(); ++row) { uint8_t* u_curr = (*u)[row]; uint8_t* v_curr = (*v)[row]; for (int col = 0; col < u->GetWidth(); ++col) { #ifdef __APPLE__ *u_curr++ = *pUV++; *v_curr++ = *pUV++; #else *v_curr++ = *pUV++; *u_curr++ = *pUV++; #endif } } } // Marks every point within a circle of a given radius on the given boolean // image true. template <typename U> inline static void MarkImage(const int x, const int y, const int radius, Image<U>* const img) { SCHECK(img->ValidPixel(x, y), "Marking invalid pixel in image! %d, %d", x, y); // Precomputed for efficiency. const int squared_radius = Square(radius); // Mark every row in the circle. for (int d_y = 0; d_y <= radius; ++d_y) { const int squared_y_dist = Square(d_y); const int min_y = MAX(y - d_y, 0); const int max_y = MIN(y + d_y, img->height_less_one_); // The max d_x of the circle must be strictly greater or equal to // radius - d_y for any positive d_y. Thus, starting from radius - d_y will // reduce the number of iterations required as compared to starting from // either 0 and counting up or radius and counting down. for (int d_x = radius - d_y; d_x <= radius; ++d_x) { // The first time this criteria is met, we know the width of the circle at // this row (without using sqrt). if (squared_y_dist + Square(d_x) >= squared_radius) { const int min_x = MAX(x - d_x, 0); const int max_x = MIN(x + d_x, img->width_less_one_); // Mark both above and below the center row. bool* const top_row_start = (*img)[min_y] + min_x; bool* const bottom_row_start = (*img)[max_y] + min_x; const int x_width = max_x - min_x + 1; memset(top_row_start, true, sizeof(*top_row_start) * x_width); memset(bottom_row_start, true, sizeof(*bottom_row_start) * x_width); // This row is marked, time to move on to the next row. break; } } } } #ifdef __ARM_NEON void CalculateGNeon( const float* const vals_x, const float* const vals_y, const int num_vals, float* const G); #endif // Puts the image gradient matrix about a pixel into the 2x2 float array G. // vals_x should be an array of the window x gradient values, whose indices // can be in any order but are parallel to the vals_y entries. // See http://robots.stanford.edu/cs223b04/algo_tracking.pdf for more details. inline void CalculateG(const float* const vals_x, const float* const vals_y, const int num_vals, float* const G) { #ifdef __ARM_NEON CalculateGNeon(vals_x, vals_y, num_vals, G); return; #endif // Non-accelerated version. for (int i = 0; i < num_vals; ++i) { G[0] += Square(vals_x[i]); G[1] += vals_x[i] * vals_y[i]; G[3] += Square(vals_y[i]); } // The matrix is symmetric, so this is a given. G[2] = G[1]; } inline void CalculateGInt16(const int16_t* const vals_x, const int16_t* const vals_y, const int num_vals, int* const G) { // Non-accelerated version. for (int i = 0; i < num_vals; ++i) { G[0] += Square(vals_x[i]); G[1] += vals_x[i] * vals_y[i]; G[3] += Square(vals_y[i]); } // The matrix is symmetric, so this is a given. G[2] = G[1]; } // Puts the image gradient matrix about a pixel into the 2x2 float array G. // Looks up interpolated pixels, then calls above method for implementation. inline void CalculateG(const int window_radius, const float center_x, const float center_y, const Image<int32_t>& I_x, const Image<int32_t>& I_y, float* const G) { SCHECK(I_x.ValidPixel(center_x, center_y), "Problem in calculateG!"); // Hardcoded to allow for a max window radius of 5 (9 pixels x 9 pixels). static const int kMaxWindowRadius = 5; SCHECK(window_radius <= kMaxWindowRadius, "Window %d > %d!", window_radius, kMaxWindowRadius); // Diameter of window is 2 * radius + 1 for center pixel. static const int kWindowBufferSize = (kMaxWindowRadius * 2 + 1) * (kMaxWindowRadius * 2 + 1); // Preallocate buffers statically for efficiency. static int16_t vals_x[kWindowBufferSize]; static int16_t vals_y[kWindowBufferSize]; const int src_left_fixed = RealToFixed1616(center_x - window_radius); const int src_top_fixed = RealToFixed1616(center_y - window_radius); int16_t* vals_x_ptr = vals_x; int16_t* vals_y_ptr = vals_y; const int window_size = 2 * window_radius + 1; for (int y = 0; y < window_size; ++y) { const int fp_y = src_top_fixed + (y << 16); for (int x = 0; x < window_size; ++x) { const int fp_x = src_left_fixed + (x << 16); *vals_x_ptr++ = I_x.GetPixelInterpFixed1616(fp_x, fp_y); *vals_y_ptr++ = I_y.GetPixelInterpFixed1616(fp_x, fp_y); } } int32_t g_temp[] = {0, 0, 0, 0}; CalculateGInt16(vals_x, vals_y, window_size * window_size, g_temp); for (int i = 0; i < 4; ++i) { G[i] = g_temp[i]; } } inline float ImageCrossCorrelation(const Image<float>& image1, const Image<float>& image2, const int x_offset, const int y_offset) { SCHECK(image1.GetWidth() == image2.GetWidth() && image1.GetHeight() == image2.GetHeight(), "Dimension mismatch! %dx%d vs %dx%d", image1.GetWidth(), image1.GetHeight(), image2.GetWidth(), image2.GetHeight()); const int num_pixels = image1.GetWidth() * image1.GetHeight(); const float* data1 = image1.data(); const float* data2 = image2.data(); return ComputeCrossCorrelation(data1, data2, num_pixels); } // Copies an arbitrary region of an image to another (floating point) // image, scaling as it goes using bilinear interpolation. inline void CopyArea(const Image<uint8_t>& image, const BoundingBox& area_to_copy, Image<float>* const patch_image) { VLOG(2) << "Copying from: " << area_to_copy << std::endl; const int patch_width = patch_image->GetWidth(); const int patch_height = patch_image->GetHeight(); const float x_dist_between_samples = patch_width > 0 ? area_to_copy.GetWidth() / (patch_width - 1) : 0; const float y_dist_between_samples = patch_height > 0 ? area_to_copy.GetHeight() / (patch_height - 1) : 0; for (int y_index = 0; y_index < patch_height; ++y_index) { const float sample_y = y_index * y_dist_between_samples + area_to_copy.top_; for (int x_index = 0; x_index < patch_width; ++x_index) { const float sample_x = x_index * x_dist_between_samples + area_to_copy.left_; if (image.ValidInterpPixel(sample_x, sample_y)) { // TODO(andrewharp): Do area averaging when downsampling. (*patch_image)[y_index][x_index] = image.GetPixelInterp(sample_x, sample_y); } else { (*patch_image)[y_index][x_index] = -1.0f; } } } } // Takes a floating point image and normalizes it in-place. // // First, negative values will be set to the mean of the non-negative pixels // in the image. // // Then, the resulting will be normalized such that it has mean value of 0.0 and // a standard deviation of 1.0. inline void NormalizeImage(Image<float>* const image) { const float* const data_ptr = image->data(); // Copy only the non-negative values to some temp memory. float running_sum = 0.0f; int num_data_gte_zero = 0; { float* const curr_data = (*image)[0]; for (int i = 0; i < image->data_size_; ++i) { if (curr_data[i] >= 0.0f) { running_sum += curr_data[i]; ++num_data_gte_zero; } else { curr_data[i] = -1.0f; } } } // If none of the pixels are valid, just set the entire thing to 0.0f. if (num_data_gte_zero == 0) { image->Clear(0.0f); return; } const float corrected_mean = running_sum / num_data_gte_zero; float* curr_data = (*image)[0]; for (int i = 0; i < image->data_size_; ++i) { const float curr_val = *curr_data; *curr_data++ = curr_val < 0 ? 0 : curr_val - corrected_mean; } const float std_dev = ComputeStdDev(data_ptr, image->data_size_, 0.0f); if (std_dev > 0.0f) { curr_data = (*image)[0]; for (int i = 0; i < image->data_size_; ++i) { *curr_data++ /= std_dev; } #ifdef SANITY_CHECKS LOGV("corrected_mean: %1.2f std_dev: %1.2f", corrected_mean, std_dev); const float correlation = ComputeCrossCorrelation(image->data(), image->data(), image->data_size_); if (std::abs(correlation - 1.0f) > EPSILON) { LOG(ERROR) << "Bad image!" << std::endl; LOG(ERROR) << *image << std::endl; } SCHECK(std::abs(correlation - 1.0f) < EPSILON, "Correlation wasn't 1.0f: %.10f", correlation); #endif } } } // namespace tf_tracking #endif // TENSORFLOW_EXAMPLES_ANDROID_JNI_OBJECT_TRACKING_IMAGE_UTILS_H_
[ "stesha.chen@qq.com" ]
stesha.chen@qq.com
3667bad07c9b83b08f524491c8e9a0dce7a46cf5
519ccfe2cf75d16b9ee6231f8a13f63a3ce91d62
/src/fonts/stb_font_arial_bold_40_latin_ext.inl
b78f1b22398bccfd2b0321e8b01f601303810df9
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
stetre/moonfonts
9dd6fd126524ead9105216e93b22a9b73de82dc2
5c8010c02ea62edcf42902e09478b0cd14af56ea
refs/heads/master
2022-02-07T20:47:37.150667
2022-02-06T12:29:27
2022-02-06T12:29:27
96,556,816
5
0
null
null
null
null
UTF-8
C++
false
false
220,209
inl
// Font generated by stb_font_inl_generator.c (4/1 bpp) // // Following instructions show how to use the only included font, whatever it is, in // a generic way so you can replace it with any other font by changing the include. // To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_arial_bold_40_latin_ext_*, // and separately install each font. Note that the CREATE function call has a // totally different name; it's just 'stb_font_arial_bold_40_latin_ext'. // /* // Example usage: static stb_fontchar fontdata[STB_SOMEFONT_NUM_CHARS]; static void init(void) { // optionally replace both STB_SOMEFONT_BITMAP_HEIGHT with STB_SOMEFONT_BITMAP_HEIGHT_POW2 static unsigned char fontpixels[STB_SOMEFONT_BITMAP_HEIGHT][STB_SOMEFONT_BITMAP_WIDTH]; STB_SOMEFONT_CREATE(fontdata, fontpixels, STB_SOMEFONT_BITMAP_HEIGHT); ... create texture ... // for best results rendering 1:1 pixels texels, use nearest-neighbor sampling // if allowed to scale up, use bilerp } // This function positions characters on integer coordinates, and assumes 1:1 texels to pixels // Appropriate if nearest-neighbor sampling is used static void draw_string_integer(int x, int y, char *str) // draw with top-left point x,y { ... use texture ... ... turn on alpha blending and gamma-correct alpha blending ... glBegin(GL_QUADS); while (*str) { int char_codepoint = *str++; stb_fontchar *cd = &fontdata[char_codepoint - STB_SOMEFONT_FIRST_CHAR]; glTexCoord2f(cd->s0, cd->t0); glVertex2i(x + cd->x0, y + cd->y0); glTexCoord2f(cd->s1, cd->t0); glVertex2i(x + cd->x1, y + cd->y0); glTexCoord2f(cd->s1, cd->t1); glVertex2i(x + cd->x1, y + cd->y1); glTexCoord2f(cd->s0, cd->t1); glVertex2i(x + cd->x0, y + cd->y1); // if bilerping, in D3D9 you'll need a half-pixel offset here for 1:1 to behave correct x += cd->advance_int; } glEnd(); } // This function positions characters on float coordinates, and doesn't require 1:1 texels to pixels // Appropriate if bilinear filtering is used static void draw_string_float(float x, float y, char *str) // draw with top-left point x,y { ... use texture ... ... turn on alpha blending and gamma-correct alpha blending ... glBegin(GL_QUADS); while (*str) { int char_codepoint = *str++; stb_fontchar *cd = &fontdata[char_codepoint - STB_SOMEFONT_FIRST_CHAR]; glTexCoord2f(cd->s0f, cd->t0f); glVertex2f(x + cd->x0f, y + cd->y0f); glTexCoord2f(cd->s1f, cd->t0f); glVertex2f(x + cd->x1f, y + cd->y0f); glTexCoord2f(cd->s1f, cd->t1f); glVertex2f(x + cd->x1f, y + cd->y1f); glTexCoord2f(cd->s0f, cd->t1f); glVertex2f(x + cd->x0f, y + cd->y1f); // if bilerping, in D3D9 you'll need a half-pixel offset here for 1:1 to behave correct x += cd->advance; } glEnd(); } */ #ifndef STB_FONTCHAR__TYPEDEF #define STB_FONTCHAR__TYPEDEF typedef struct { // coordinates if using integer positioning float s0,t0,s1,t1; signed short x0,y0,x1,y1; int advance_int; // coordinates if using floating positioning float s0f,t0f,s1f,t1f; float x0f,y0f,x1f,y1f; float advance; } stb_fontchar; #endif #define STB_FONT_arial_bold_40_latin_ext_BITMAP_WIDTH 512 #define STB_FONT_arial_bold_40_latin_ext_BITMAP_HEIGHT 424 #define STB_FONT_arial_bold_40_latin_ext_BITMAP_HEIGHT_POW2 512 #define STB_FONT_arial_bold_40_latin_ext_FIRST_CHAR 32 #define STB_FONT_arial_bold_40_latin_ext_NUM_CHARS 560 #define STB_FONT_arial_bold_40_latin_ext_LINE_SPACING 26 static unsigned int stb__arial_bold_40_latin_ext_pixels[]={ 0x99999991,0x99999999,0x00199999,0x00000038,0x26666200,0xf7000001, 0x0000bfff,0x0ccccc40,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x98000000,0xffffffff,0xffffffff,0x7000ffff,0x540003ff, 0xff900004,0x000007ff,0x8017fffe,0xf9007fff,0x20009fff,0xcdffecb9, 0x4400000b,0x2cdefedb,0x0000dff9,0x03ffffea,0x6777fcc0,0x65400000, 0xdeffffed,0x3600000b,0x0004ffff,0x01fffb22,0xdffdb751,0xd800019b, 0x0004ffff,0x3ffffe60,0xb7100000,0x39bdfffd,0x7fcc0000,0xfc800fff, 0x5c004fff,0x4002ffff,0x0bfb04fe,0x9ffffb00,0x4fffa000,0xfff9ffff, 0xffffffff,0xffffffff,0xfffb800f,0x5fe98003,0xfff88000,0x7000004f, 0x4001dfff,0xf8807fff,0x98004fff,0xfffffffe,0x00002fff,0xfffffff1, 0x07ffe2bf,0xffff1000,0x3e600bff,0x001fffff,0x7fffe4c0,0xffffffff, 0x540003ef,0x02ffffff,0xfffffb80,0x3fffea07,0xcfffffff,0xfffa8000, 0x00002fff,0x0dfffffd,0xfffd9800,0xffffffff,0x7440001d,0x406fffff, 0x2ffffffa,0x3fffee00,0x0ffe4002,0x5000ffe6,0x05ffffff,0xf0fffa80, 0xffff3fff,0xffffffff,0xffffffff,0x1eff8801,0x7ffe4400,0xffc80005, 0x2000005f,0x4000effe,0xfb807fff,0xfb8005ff,0xffffffff,0x000dffff, 0x7fffff40,0x3ff63fff,0x7fec0006,0x802fffdf,0x6ffffff9,0xfffb1000, 0xffffffff,0x3dffffff,0xdfff1000,0x4001ffff,0x7ffffff8,0xffffff70, 0xffffffff,0x7ffc4003,0x000ffffe,0x7efffe40,0xf70003ff,0xffffffff, 0x07ffffff,0x6fffe400,0xff103fff,0x01ffffdf,0x0bfffee0,0x9dfff100, 0x4001fffd,0xfffefff8,0x3ffa000f,0x3a3fffe5,0xffeeeeee,0xeeeeefff, 0x7d400eee,0xff98003f,0x440005ff,0x00005fff,0x003ffea0,0x201fffe0, 0x44005fff,0xfffffffe,0xffffffff,0x3fe60006,0x1fffffff,0x000bffea, 0x745fffdc,0x7cc00fff,0x03ffffff,0x7ffffcc0,0xa999abcf,0xfffffecb, 0x7ffec003,0x005fffa8,0x3ffffff6,0xfffffc87,0xffffffff,0x3fa006ff, 0x5fff98ff,0x3ffea000,0x003fffb4,0xffffffd8,0xffffffff,0xa8002fff, 0xfffd4fff,0x33fffb03,0x2e00bfff,0x8002ffff,0xfffffffa,0x7fff4002, 0x005fffa8,0x7fc3fff7,0xfffc807f,0x7dc0003f,0x26004fff,0x0005ffff, 0x00037fdc,0x00fae200,0x203fffc0,0x4000effb,0xdffffffc,0xfffffdbb, 0xf70004ff,0x7535dfff,0x000dfff0,0x7ccbfff3,0xb99805ff,0x2005ffff, 0x0aeffffb,0x3fffa600,0xfff7003f,0x01fffdc7,0x9bffffe8,0xffffff81, 0xfffba9bd,0xfb804fff,0x3ffee2ff,0xfff88003,0x01bffe26,0xffffffb8, 0xfffcabde,0x000fffff,0xf89bffe2,0x7ffdc6ff,0x00fffee3,0x00733326, 0x6f7f6c40,0x7ffdc000,0x00fffee2,0xfff1bffe,0xffff900f,0xffc80007, 0x3e6004ff,0x00005fff,0x36000000,0x4000ffff,0x00007fff,0x3ffffe20, 0xfffa880e,0xc8000fff,0xc803ffff,0x00002fff,0x3ffa0000,0xfff7006f, 0xfa80005f,0x00001fff,0x9ffff000,0x37fffcc0,0x1bffffe0,0x00000000, 0x7fcc0000,0x2603ffff,0x04fffffe,0x00000000,0x00000000,0x00000000, 0xff87fff7,0xfffc807f,0x7e40003f,0xc9804fff,0xcceffffd,0x90000004, 0x9df98001,0x7fc004fb,0x1cd9807f,0x3ffff600,0xffffb805,0xffe8004f, 0xff9800ff,0x0000006f,0x1bfff600,0x07bffe60,0x7ffc4000,0x0000000f, 0x203ffff8,0x402ffffc,0x00fffffb,0x00000000,0xfffe8000,0xff8801ff, 0x00007fff,0x00000000,0x00000000,0xff880000,0x3fffc1ff,0x1ffffe40, 0x26662000,0xfffb8009,0x0fffffff,0xffd97300,0xdfb059bd,0xd0fe4001, 0x7fff800f,0x1ffffe40,0x7ffffd40,0xbfffd001,0xf9995007,0x3999ffff, 0x017fffc0,0x3ffbae60,0x4000cdef,0xe806fffc,0xb7300eff,0x6665c59d, 0xa87fff52,0xb802cccc,0xf880cccc,0x3f602fff,0xee803fff,0x54401eee, 0xcdeffedb,0x65cc0000,0x00bcdffe,0x3fffff98,0x3bffee00,0xcc88000c, 0x995004cc,0x32a00399,0x3320bdfe,0x3b2a02cc,0x33320bdf,0x3fb2a02c, 0x333320bd,0x437ffdc2,0xfc807fff,0x00003fff,0xffff7000,0x01ffffff, 0xfffffe98,0x92efffff,0x54009fff,0x800bf13f,0x77c07fff,0xfc807e98, 0x26005fff,0x7fec001b,0xffffffff,0x3fff602f,0xfffd3005,0xffffffff, 0x3ff2003b,0x7ffe407f,0xfffffa81,0xffff8dff,0xf51bff23,0xf880dfff, 0xff107fff,0x7fdc05ff,0x00002fff,0x7fffffd4,0x00cfffff,0x7ffff4c0, 0x02ffffff,0x037fffdc,0x40000d40,0x007ffff8,0x805ffff7,0xffffffe8, 0x09ffff1f,0xffffffd1,0x13fffe3f,0x3fffffa2,0x9ffff1ff,0xf84fffd8, 0xffc807ff,0x2a0003ff,0x320bdfec,0xfff72ccc,0x1fffffff,0x7ffffe40, 0xffffffff,0x005fffff,0x1fff7fc4,0x81fffe00,0x007f23fa,0x005ffffb, 0xfffd0000,0xffffffff,0x3fffdc03,0x7ffffdc0,0xffffffff,0xffc802ff, 0x3ffe207f,0xfffffa84,0xfffeffff,0x20fffc2f,0x200fffff,0x104ffffa, 0x4c05ffff,0xceffffff,0x3ee0000a,0xffffffff,0x001fffff,0xfffffff7, 0x1bffffff,0x0fffffa0,0x88000000,0x7007ffff,0x4c05ffff,0xffffffff, 0x4ffffaff,0x7fffffcc,0xfffaffff,0x7fffcc4f,0xfaffffff,0x7ffc4fff, 0x07fff82f,0x03ffffc8,0xffffe880,0xffff1fff,0x3ffeea29,0xd102aaef, 0xffffffff,0xffffffff,0xf7000dff,0x800dffff,0x3e207fff,0xe807e88e, 0x0002ffff,0xfffff800,0x07ffffff,0x00ffffd4,0xfffffffb,0xffffffff, 0xffb805ff,0x1bfee07f,0x33ffffea,0xffffffc9,0x21fff40f,0x203ffffc, 0x301ffffd,0xd803ffff,0xffffffff,0x32001bdf,0xffffffff,0x6fffffff, 0x7ffff440,0xffffffff,0xfff06fff,0x000005ff,0x7fffc400,0xffff7007, 0x7ffff405,0xfffffeff,0x7ff44fff,0xfffeffff,0x744fffff,0xfeffffff, 0x4fffffff,0x207fffea,0xfc807fff,0x4c003fff,0xffffffff,0x4ffffaff, 0x02ffffcc,0x7fffffec,0xffdcaace,0x000fffff,0xffffffe8,0x1fffe001, 0x09ffff90,0x03fffff0,0x33300000,0x335ffffb,0xffff9803,0xfffff703, 0xffb57bdf,0x01ffffff,0x807fffd4,0x7fcc4ffe,0x7fc40dff,0xffc87fff, 0x37fffcc4,0x06ffff88,0x003fffea,0xffffffd1,0x17dfffff,0xffffff80, 0xfffba9bd,0x3f204fff,0xbbdfffff,0xfffffffd,0x7ffffc44,0x00000001, 0x01ffffe2,0x817fffdc,0x43fffffa,0x4ffffffa,0x0fffffea,0x9ffffff5, 0x1fffffd4,0x3fffffea,0x03ffff24,0x3201fffe,0x4003ffff,0xeffffffe, 0xffffffff,0x2ffffcc4,0x3ffffea0,0x3ffaa02f,0x4c002fff,0x5fffffff, 0x01fffe00,0x2200b76a,0x000fffff,0x7ff40000,0x3e2000ff,0xff985fff, 0x2603ffff,0x04fffffe,0x20ffffe6,0x7ec1fff9,0xffb00fff,0xbff70bff, 0x01ffffd0,0x407ffff5,0x1007fffc,0xfffffffb,0x01dfffff,0x01bfffe6, 0x20dfffff,0x0efffff8,0xfffffa88,0x3fffe60f,0x3bbaa00f,0x3eeeeeee, 0xffff8800,0xffff7007,0x3ffffa05,0xfffff303,0x1fffff49,0x4fffff98, 0x40fffffa,0x24fffff9,0xff07fffd,0xfff900ff,0x7fd4007f,0x7fd43fff, 0x7cc4ffff,0x7f405fff,0x4c00efff,0x06ffffff,0x7ffffe40,0xff000fff, 0x300000ff,0x000fffff,0xffff0000,0xffff000d,0xfffffd0d,0xffff1003, 0xfffe80ff,0x237fdc0f,0x203ffff8,0xa83ffffb,0xfffb86ff,0xffffd83f, 0xbffff300,0xfffea800,0xffffffff,0xffffc80e,0x7fffdc02,0xffffd80f, 0xffffb805,0x3fffe64f,0x3ffee00f,0x4fffffff,0xffff8800,0xffff7007, 0xfffff105,0x4ffffd80,0x80fffff1,0xf14ffffd,0xfd80ffff,0x3ffa4fff, 0x0bddb07f,0x07ffff90,0x1fffff40,0x4fffff98,0x02ffffcc,0x05fffff7, 0xfffffe88,0x3fe001ff,0x3fffffff,0x20ffff00,0xeeffeeb8,0xffff101b, 0x0000001f,0x02ffffcc,0x237fff40,0x03fffff8,0x33bffee0,0x3fffee00, 0x89ff72df,0x4c06fffc,0xfc81ffff,0xffff885f,0x2ffffc46,0x7ffffe5c, 0xfb710001,0xffffffff,0xffffd81f,0xeeeee803,0x7ffffd41,0xbfffd001, 0x7ffffc47,0x3fffee01,0x04ffffff,0x7ffff880,0x5ffff700,0x0bffff30, 0x34ffffb8,0xb80bffff,0xff34ffff,0xffb80bff,0x3fffe4ff,0xff900006, 0x3e2007ff,0x3600ffff,0x7cc4ffff,0x3f605fff,0x74405fff,0xffffefff, 0xffff5005,0x00dffffd,0x3f61fffe,0xffffffff,0xfffff03f,0x40000003, 0x003ffffa,0x647fffe8,0x8006ffff,0x7fec001a,0x7ffb5fff,0x404fffe8, 0xe80ffffb,0xfffb03ff,0x7fffd41f,0xffffff82,0x95100004,0x5ffffffd, 0x2fffffb8,0xfffc8000,0x06e6005f,0x02fffff8,0x3fffffee,0x8004ffff, 0x007ffff8,0x505ffff7,0xa809ffff,0xff54ffff,0xffa809ff,0xffff54ff, 0xffffa809,0x017fffe4,0x7fffe400,0xffff3003,0xffffb80b,0x2ffffcc4, 0x05ffffd0,0xfbbfffd8,0xfb006fff,0xfffd3fff,0xffff003f,0xffffffd8, 0x84ffffff,0x002ffffe,0xff90000c,0xfb0005ff,0xfffe8fff,0x0000003f, 0x757ffff6,0x7fffc2ff,0x37ffe403,0xf502fff8,0x7fec7fff,0xfffff07f, 0x5c000007,0x4c4fffff,0xceffffff,0xffd8000a,0x400002ff,0x203ffffe, 0xfeccccc9,0x88004fff,0x7007ffff,0xf705ffff,0xf9807fff,0xfff74fff, 0xfff9807f,0x7ffff74f,0x4ffff980,0x009ffff1,0x3ffff200,0xffff5003, 0xffffa809,0x2ffffcc4,0x03fffff0,0xfaa7ffec,0xf8807fff,0xfff76fff, 0xffff00bf,0x7fffffd4,0xfffffffe,0x27fffec0,0x059ff500,0x1ffffd80, 0x6fffd800,0x017ffffc,0xffa80000,0x3ffd5fff,0x017fffc4,0x2613fffa, 0x3fe00fff,0xffff16ff,0x3ffffe09,0x6654c00e,0xfff5002e,0xffffb0df, 0x37bfffff,0x3ffffa00,0x7e400002,0xb8006fff,0x8004ffff,0x007ffff8, 0x505ffff7,0xa809ffff,0xff54ffff,0xffa809ff,0xffff54ff,0xffffa809, 0x013fffe4,0x7fffe400,0xffff7003,0xffff9807,0x2ffffcc4,0x0fffff98, 0x4cbfff90,0x400fffff,0xf13ffffb,0xf801ffff,0x3fffa7ff,0x7fff4c2f, 0x7fffdc3f,0xfff9000f,0x7ff400df,0xffb0007f,0x7fffc4bf,0x8000001f, 0x4ffffff9,0x7fd45ffd,0x3fe201ff,0x5ffe83ff,0x47fffe40,0xd01ffffa, 0x01ffffff,0x02ffffdc,0x87ffff88,0xffffffe8,0x0befffff,0x07ffffe0, 0xfff30000,0xfb8005ff,0x88004fff,0x7007ffff,0xf305ffff,0xfb80bfff, 0xfff34fff,0xfffb80bf,0xbffff34f,0x4ffffb80,0x0017fffe,0x1ffffe40, 0x4ffffa80,0x27fffd40,0x417fffe2,0x707ffffa,0xff88dfff,0x7f401fff, 0x3ffa0fff,0x7ffc03ff,0x413fb2a7,0x443ffffb,0x804fffff,0x03fffff9, 0x0dffff10,0x93fffa00,0x00fffff9,0x3bbbbbaa,0x3603eeee,0x360bffff, 0x3ffe63ff,0x3fff201f,0x07ffec1f,0x2ffffe60,0x4c06fffd,0x203ffffd, 0x00fffff9,0x06ffffb8,0xffffffb1,0x1dffffff,0x1fffff10,0xffb00000, 0x64001dff,0x8004ffff,0x007ffff8,0x105ffff7,0x401fffff,0xf14ffffe, 0x7401ffff,0xff14ffff,0x7f401fff,0x3ffa4fff,0x0333306f,0x07ffff90, 0x17fffe20,0x89ffff70,0x506ffff8,0xf50fffff,0xfff01dff,0x7fcc05ff, 0x7ffd45ff,0x3fffc06f,0x7fffcc00,0xfffffb84,0x3fffa203,0xff3000ff, 0x3a0009ff,0x3fe63fff,0x3ee00fff,0xffffffff,0xffff104f,0x449ff909, 0xf103ffff,0xffb8ffff,0xfffd004f,0x007ffffd,0x80dffff1,0x406fffff, 0x04fffff8,0x7fffff54,0x0effffff,0x03ffffcc,0xfff98000,0x64401eff, 0x004fffff,0x07ffff88,0x05ffff70,0x413ffffa,0x24fffffb,0x704ffffe, 0x749fffff,0xf704ffff,0x7f49ffff,0xffff06ff,0x7ffff900,0x7ffffc00, 0x3ffffa00,0x7ffffc44,0xfff30fde,0x7ffcc1ff,0xffff880f,0x3fff601f, 0x7fffc42f,0x1fffe01f,0x7ffedcc0,0xfffd04ff,0x2e615bff,0x04ffffff, 0x0ffffea0,0x17fffc00,0x03fffff1,0x7fffffdc,0xf304ffff,0xff703fff, 0x0efffe8d,0x3ffffec4,0x001dfff7,0x3fffffee,0xff7000ff,0xfffc80ff, 0x2a20aeff,0x01fffffe,0xffffb710,0x41ffffff,0x00fffff8,0xfffb0000, 0x26159fff,0xffffffca,0xff88004f,0xff7007ff,0x3fea05ff,0xf910cfff, 0x549fffff,0x10cfffff,0x9ffffff9,0x67ffffd4,0xfffff910,0x3fffe49f, 0xc807fff8,0x2003ffff,0x704ffffe,0xd09fffff,0x3fffffff,0x47ffffe2, 0x301ffff9,0x440fffff,0xd80fffff,0x3e05ffff,0xfb7107ff,0xffffffff, 0x3fffe609,0xffffffff,0x4006ffff,0x002ffffc,0x40ffff98,0x202fffff, 0xfffffffb,0xff504fff,0x3ffe20ff,0x3ffffea1,0xffffeb9c,0xeffffdff, 0x3ffe2000,0x2006ffff,0x401ffff9,0xfffffffe,0xffffffff,0x9510006f, 0x5ffffffd,0x01fffff8,0xffb10000,0xffffffff,0xffffffff,0xff10007f, 0x3ee00fff,0x3fe02fff,0xffffffff,0x44ffffff,0xffffffff,0xffffffff, 0x7fffffc4,0xffffffff,0x3ffea4ff,0x07fff80f,0x03ffffc8,0x3ffffea0, 0xffff910c,0xfff709ff,0x7fc5ffff,0xffe8afff,0x3ffea02f,0x3ffee06f, 0xffff505f,0x1fffe01f,0xffffffd3,0x09ffffff,0x7fffffd4,0xffffffff, 0x7fec000e,0xfa8000ff,0xfffe87ff,0x3332603f,0x4ffffecc,0x40ffff70, 0x7fec4ffd,0xffffffff,0xffffffff,0xfffb0005,0x44007fff,0x4401ffff, 0xffffffff,0xffffffff,0xff700001,0xffe89fff,0x00c002ff,0x3fffff60, 0xffffffff,0x0002ffff,0x00fffff1,0x80bfffee,0xffffffe9,0xffffbeff, 0x7ffff4c4,0xffbeffff,0x7ff4c4ff,0xbeffffff,0x3e24ffff,0xfff81fff, 0xffffc807,0x7ffec003,0xffffffff,0xf704ffff,0x745dffff,0xffecffff, 0x7ffe402f,0x3fffa05f,0x999999bf,0xf03fffff,0x7ffccfff,0xfaadffff, 0x6c404fff,0xffffffff,0x8000dfff,0x0007ffff,0xf90dfff9,0x7000dfff, 0x2e09ffff,0x3ea07fff,0x3ff220ff,0xfbbfffff,0x04ffffff,0x3fffea00, 0x3e2000ff,0xe9802fff,0xffffffff,0x981effff,0x5002ecca,0xfd8dffff, 0x2a004fff,0xf7002cff,0xffffffff,0x017fffff,0x7c406a62,0xf7007fff, 0xe8805fff,0x8effffff,0x884ffffa,0xeffffffe,0x84ffffa8,0xffffffe8, 0x4ffffa8e,0x7c1ffff4,0x000007ff,0x3fffffa0,0xfffbefff,0x80d4c04f, 0xfffffffc,0x7ffc403f,0xfff304ff,0xffffffff,0x0dffffff,0x7fc5fffe, 0x7cc0cfff,0xb5004fff,0xbffffffd,0x3fe20003,0xfd0005ff,0xfff307ff, 0xfb8005ff,0xff904fff,0xefff80df,0x66ff6540,0x06f7fb20,0x7c00d554, 0x4005ffff,0x002ffff8,0x3fffffaa,0x2e03dfff,0x1005ffff,0xfb8fffff, 0x9000ffff,0x200dffff,0xfffffda8,0x2a01bdff,0xf305ffff,0x2e00dfff, 0x8802ffff,0x50aceeca,0x2207ffff,0x50aceeca,0x2207ffff,0x50aceeca, 0xfc87ffff,0x7fff86ff,0x26000000,0xeffffffe,0x03ffffa8,0x7fffc400, 0xfd804fff,0xf900ffff,0xffffffff,0xffffffff,0x2ffff03f,0x305ffffa, 0x8009ffff,0x003efec9,0x4ffff980,0xffff8800,0xdfffff00,0xffffc800, 0x0dfff904,0x005fffa8,0x3fff6000,0xffffe801,0x7ffc4002,0xfb70002f, 0xf30019ff,0x7001ffff,0xf88dffff,0x9804ffff,0x003fffff,0x0f7ff5c4, 0xdffff100,0x1bfffea0,0x17fffe40,0xfffa8000,0x3ea0003f,0x20003fff, 0x443ffffa,0x7fc0ffff,0xeee9807f,0x36e0002e,0xff50acef,0x3ba607ff, 0xfff900ee,0xff900dff,0x7fc07fff,0xffffffff,0xffffffff,0x97fff85f, 0x2e05ffff,0x4004ffff,0x04ffffff,0x7fffe400,0xfffa8003,0x3fffea05, 0x7e4401ef,0xfb04ffff,0xff900dff,0x400001bf,0x803fffd8,0x007ffffa, 0x007ffff0,0x3fffffa0,0xfffff005,0xffff880d,0xffffb84f,0x3ffa203f, 0x5c000fff,0x01ffffff,0x03ffffe0,0x013ffff2,0x80ffffe4,0x2009abcc, 0x322ffffb,0x2e009abc,0x3322ffff,0x3ee009ab,0xffc82fff,0x03fffc2f, 0x01ffffd4,0xfff50000,0x3ffe607f,0xffff100f,0xe9883bff,0x206fffff, 0xfffffffa,0xffffffff,0x7c0fffff,0xffff97ff,0xfffff109,0xb88a800b, 0x10000fff,0x003ffffd,0x805fff90,0xcffffffd,0xfff9530a,0xf109ffff, 0x3a00bfff,0x0004ffff,0x05ffffb8,0x4ffffe88,0xdffff000,0x71150001, 0xf9003fff,0x415dffff,0xfffffea8,0xfffffd01,0x3fee615b,0x8004ffff, 0x5ffd9899,0x3ffffa00,0xffff711e,0x7d44405f,0xfb01ffff,0x3a20ffff, 0x3f60ffff,0xfd107fff,0x7fec1fff,0xffd107ff,0xfff101ff,0x807fff89, 0x003ffffa,0x8026af32,0x302ffffb,0x2e01ffff,0xffffffff,0xfffffeef, 0x3f601fff,0x9999cfff,0xff999999,0x7ffc3fff,0x9fffff57,0xfffff933, 0xfe8000bf,0x9df7003f,0x00dfffff,0x00dfff10,0xffffffd1,0xffffffff, 0x227fffff,0x4fffffed,0xffffb100,0x510017bf,0x09fffff9,0x3fff6eea, 0xd0000fff,0x0bddffff,0x027fec00,0xffffffe8,0xffffffff,0x3fe606ff, 0xffffffff,0x06ffffff,0x1fff5000,0x3fffea00,0xffffffff,0x7fffc06f, 0xf700ffff,0x537bffff,0x8bffffd9,0xbdfffffb,0xffffeca9,0x7ffffdc5, 0xffeca9bd,0x3ff205ff,0x403fffc7,0x003ffffa,0x03fffff6,0x03ffffa2, 0xa83fffcc,0xffffffff,0xffffffff,0x3e201eff,0x2000ffff,0x7c6ffffc, 0xffff17ff,0xffffffff,0x2000dfff,0x000fffa8,0xfffffffb,0xff70009f, 0x3f62003f,0xffffffff,0xffffffff,0x3ffffe62,0x7d4001ff,0xefffffff, 0xfffeedde,0x202fffff,0xfffffffb,0x3ea0004f,0x007fffff,0x01fffa88, 0xffffff10,0xffffffff,0xffa803ff,0xffffffff,0x000effff,0x06ffd880, 0x7fffff40,0x2fffffff,0x3ffffe20,0x3fe205ff,0xffffffff,0x440fffff, 0xffffffff,0x0fffffff,0x7fffffc4,0xffffffff,0x3ffe200f,0x201fffe2, 0x001ffffa,0x37ffffee,0xfffeca9b,0x3f72206f,0xaffff985,0xfffffffd, 0x804fffff,0x005ffffc,0x17ffffcc,0x7fd4ffff,0xbfffffff,0x800ffffc, 0xffffeefe,0x3fffe004,0x001fffff,0x8005ffe8,0xfffffffc,0xbfffffff, 0x7ffffcc0,0xf910005f,0xffffffff,0xffffffff,0xffa8019f,0x00efffff, 0x7ffff400,0xeefe807f,0x4005ffff,0xffffffe9,0x1effffff,0xffffb100, 0xbfffffff,0xdff50001,0x005fffff,0xfffffe88,0x402fffff,0xfffffffa, 0x7fffcc00,0xffffffff,0xffff303f,0xffffffff,0x3ffe607f,0xffffffff, 0xffc803ff,0x801fffe6,0x7c4007fa,0xffffffff,0x01ffffff,0xffc83fe8, 0x3fff662f,0x01ceffff,0x05fffff0,0xbffffd00,0x3a63fffc,0x50dfffff, 0xd007ffff,0x07dfffff,0x7ffffc40,0xa8001fff,0x10000fff,0xffffffd7, 0x7cc057bd,0x0003ffff,0xffffd930,0xbfffffff,0x7ffcc005,0x0000cfff, 0x7ffffc88,0xfffffe80,0x3aa0003f,0xffffffff,0xdb50003d,0x3bffffff, 0x7ffd4000,0x0001bdff,0x3fffffee,0xffb801cf,0x1002efff,0xfffffff9, 0xc88019ff,0xffffffff,0x7e4400cf,0xffffffff,0xfff1000c,0x401fffe3, 0x98004fe9,0xffffffff,0x403fffff,0xf700efe9,0x0d54c405,0x7fffd400, 0xffb8000f,0x99990fff,0x0006a620,0x01333300,0x55d4c400,0x332a0000, 0x26600003,0x3220009a,0x000001aa,0x2aeaa662,0x2a00009a,0x0000aaba, 0x04ba9880,0x00133330,0xaaa98800,0x22000009,0x000009a9,0x00006662, 0x026aa620,0x01575300,0x2eaa6200,0x988001aa,0x001aabaa,0xaabaa988, 0x59970001,0x2e013332,0x10000eff,0xfffffff9,0xf3003bff,0x00003009, 0xbffffb00,0x3ffe2000,0x000003ff,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00007f10,0x555dd54c,0x0000c000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000100,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x2a215554,0x800001aa,0x001aaaaa,0x09998800,0x13331000,0x2aaa0000, 0x00d55442,0x4ccccc40,0x4c400199,0x99999999,0xaaa80009,0x000000aa, 0xa8800000,0x00002aaa,0x00000000,0x15555500,0x3cccc980,0x99999100, 0x4cccc400,0xaa880000,0x555532aa,0x26620001,0x50000019,0x2200039b, 0x20019999,0xccccccc9,0x3fb2200c,0x0000ceff,0x02ffffdc,0x5c3ffff0, 0xa8005fff,0x3ff64fff,0x4400001f,0x000effff,0x27ffd400,0xdffd3000, 0x3fea0000,0x07fff64f,0x3ffff600,0x2001ffff,0xfffffffd,0xb8004fff, 0x0004ffff,0x7fffe400,0xffc80006,0x000003ff,0x09ffffb0,0xff500000, 0xff500bff,0x3e200bff,0x3a007fff,0x0005ffff,0xf1ffffc8,0x2000bfff, 0x04ffffe8,0x7ffec000,0xffd0002f,0x3ee005ff,0x1fffffff,0xffffff70, 0x40009fff,0x4005ffff,0x3ee1ffff,0xf90005ff,0x7fff95ff,0xff900000, 0x800001df,0x0002fff8,0x0009ffb0,0x32bfff20,0xb0003fff,0xffffffff, 0x7ffec003,0x4fffffff,0xffff7000,0x26000001,0x03ffffff,0x6fffd800, 0xfb800000,0x001fffff,0x7fff4000,0xffff5006,0x3ffe200b,0xfff7007f, 0x40007fff,0xf52ffff8,0x20001dff,0x1ffffffd,0x1bf30000,0x22000df3, 0x7005fffe,0xffffffff,0xfffff503,0x0bffffff,0x0dfff700,0x43ffff00, 0x0005fffb,0xffffffd1,0xf100000d,0x00001fff,0x0001bd90,0x001eeb80, 0xffffe880,0x000006ff,0x3fff6000,0x4fffffff,0x3fff2000,0xe8800004, 0x1fffefff,0xfffd8000,0x26000002,0xffffefff,0xf3000000,0x2a001dff, 0x1005ffff,0x300fffff,0xfffdbfff,0x3fee0001,0x03fffa3f,0x6fffd400, 0x0000ffff,0x03f62fb8,0x7fff4400,0xffffb801,0xff81ffff,0xfffdffff, 0x74003fff,0xf8000eff,0x3fee1fff,0x3e60005f,0x000fffff,0x1fffb800, 0x0fb20000,0x20003dd1,0x0f7443ec,0xffff3000,0x640001ff,0x00f7443e, 0x80000000,0x0000fffd,0x44fffec0,0x00006fff,0x0000dffd,0x547fff40, 0x00005fff,0x001dffb0,0x02ffffd4,0x07ffff88,0x4c7fff44,0xf0006fff, 0x7ffd49ff,0xfff10001,0x017ffead,0x2637e600,0x7c40006f,0xffb805ff, 0x98199aff,0x7d46ffff,0x2a006fff,0x30000eff,0x99988333,0x775c0000, 0x000002ee,0x00003fff,0x7fc44fe8,0x89fd0002,0x40002ff8,0x002eeeeb, 0x3e227f40,0x0000002f,0x0fff6000,0xfffa8000,0x013ffea4,0x07ffa200, 0x3ff20000,0x0bfff22f,0xfff10000,0xfffa8001,0xfff1005f,0xfffc80ff, 0x013ffea1,0xfe8bff50,0x3fa0003f,0x3fff20ff,0xffe80002,0x980002ff, 0x7dc00fff,0x7dc01fff,0xffe84fff,0x331000ef,0x00000001,0x00000000, 0x80000000,0x0f7443ec,0x443ec800,0x000001ee,0x43ec8000,0x00001ee8, 0x00000000,0x00000000,0x00000000,0x00000000,0xfffa8000,0xfff1005f, 0x000000ff,0x00000000,0x50000000,0x0000039b,0x3fffee00,0x7fffcc01, 0x00009987,0x00000000,0x7f654c00,0x0001bcef,0xdffd9530,0x32600379, 0x91003ccc,0x664c9999,0x991003cc,0x6664c999,0x9991003c,0x66664c99, 0x99991003,0x87fffe09,0x8005fffb,0xceffeca9,0x0000001b,0x66664c00, 0x99991003,0x00000009,0x33332600,0x99991003,0x2ffffd49,0x7ffff880, 0x00f33326,0x32666644,0x20079999,0x004cccc8,0x3bffb2a6,0x993001bc, 0x32200799,0xfff04ccc,0x2fffdc3f,0x00ffffdc,0x3bffffe2,0x3332a000, 0xcccb802c,0x5999950c,0x19999700,0xfffffa80,0x1effffff,0xffff5000, 0xdfffffff,0xffffa803,0xffff1005,0x2ffffd4f,0x7ffff880,0x017fffea, 0x53ffffc4,0x200bffff,0xf07ffff8,0x7fdc3fff,0x3fea005f,0xffffffff, 0xccb801ef,0x22000ccc,0xf52ccccc,0x2200bfff,0x32e7ffff,0x64401ccc, 0x400ccccc,0xf52cccca,0x2200bfff,0x3ea7ffff,0xf1005fff,0x7fd4ffff, 0xff1005ff,0x7ffd4fff,0xfff1005f,0xfff500ff,0xffffffff,0xfffa803d, 0xfff1005f,0x3fffe0ff,0x217ffee1,0x801ffffb,0x3ffffffa,0xdffff500, 0x7ffff880,0x01bfffea,0x40fffff1,0xffffffd8,0xffffffff,0x3ff62003, 0xffffffff,0x2a03ffff,0x1005ffff,0x7d4fffff,0xf1005fff,0x7fd4ffff, 0xff1005ff,0x7ffd4fff,0xfff1005f,0x3fffe0ff,0x017ffee1,0x3fffff62, 0xffffffff,0x7ffd403f,0x3f6004ff,0xff51ffff,0x3e200bff,0x3ff27fff, 0x7fd404ff,0x6c02ffff,0xff53ffff,0x3e200bff,0x3fea7fff,0xff1005ff, 0x7ffd4fff,0xfff1005f,0x7fffd4ff,0xffff1005,0x7ffec40f,0xffffffff, 0x3ea03fff,0xf1005fff,0x3fe0ffff,0x3ffee1ff,0x1ffffb85,0xfffffd00, 0xfff001bf,0x7fd401ff,0x7fffc4ff,0x3ffea00f,0xffff104f,0xffffffff, 0x01dfffff,0xffffff88,0xffffffff,0xfa80efff,0xf1005fff,0x7fd4ffff, 0xff1005ff,0x7ffd4fff,0xfff1005f,0x7fffd4ff,0xffff1005,0x87fffe0f, 0x4405fffb,0xffffffff,0xffffffff,0x3ff600ef,0xf9801fff,0x3ea4ffff, 0xf1005fff,0x7fd4ffff,0x7fe406ff,0x7404ffff,0xff51ffff,0x3e200bff, 0x3fea7fff,0xff1005ff,0x7ffd4fff,0xfff1005f,0x7fffd4ff,0xffff1005, 0x3fffe20f,0xffffffff,0x80efffff,0x005ffffa,0x20fffff1,0x3ee1ffff, 0xfffb85ff,0xfffd801f,0x03ffffff,0x01ffffe4,0xc83ffffb,0x3603ffff, 0xfb01ffff,0x79dfffff,0xfffffd97,0xfffd809f,0xcbbcefff,0x4ffffffe, 0x05ffffa8,0x4fffff10,0x005ffffa,0x54fffff1,0x1005ffff,0x7d4fffff, 0xf1005fff,0x2660ffff,0x04ccc419,0x3fffff60,0xfecbbcef,0x204fffff, 0x06fffff8,0x46ffffe8,0x005ffffa,0x44fffff1,0x200fffff,0x6ffffffe, 0x9ffffe20,0x005ffffa,0x54fffff1,0x1005ffff,0x7d4fffff,0xf1005fff, 0x7fd4ffff,0xff1005ff,0x3ff60fff,0xbbceffff,0xffffffec,0x5ffffa84, 0xfffff100,0x31066660,0xfff70133,0xfffd803f,0xffffffff,0xffff300d, 0x3fffe20d,0x6ffff986,0x0dffff10,0x3fffffea,0x3fffea02,0xfff501ff, 0x7d405fff,0x541fffff,0x1005ffff,0x7d4fffff,0xf1005fff,0x7fd4ffff, 0xff1005ff,0x7ffd4fff,0xfff1005f,0x800000ff,0x2ffffffa,0x3ffffea0, 0x3ffee01f,0x3fee03ff,0x7fd42fff,0xff1005ff,0xfffe8fff,0xffff101f, 0x2a01ffff,0x3ea5ffff,0xf1005fff,0x7fd4ffff,0xff1005ff,0x7ffd4fff, 0xfff1005f,0x7fffd4ff,0xffff1005,0xfffff50f,0x7ffd405f,0x7fd41fff, 0xff1005ff,0x00000fff,0x807fffee,0xe89ffffa,0x0fffffff,0x01ffffd0, 0x207ffff5,0xa80ffffe,0xf883ffff,0x800effff,0x86ffffe8,0x0efffff8, 0xffffe880,0x2ffffd46,0x7ffff880,0x017fffea,0x53ffffc4,0x200bffff, 0x2a7ffff8,0x1005ffff,0x000fffff,0x7fffc400,0xfe8800ef,0x7f406fff, 0xf880ffff,0xfa85ffff,0xf1005fff,0xffc8ffff,0xfff503ff,0x205fffff, 0x2a3ffffb,0x1005ffff,0x7d4fffff,0xf1005fff,0x7fd4ffff,0xff1005ff, 0x7ffd4fff,0xfff1005f,0xffff88ff,0xfe8800ef,0x7fd46fff,0xff1005ff, 0x00000fff,0x807fffee,0x7dc5fffc,0x80efffff,0xd83ffffb,0xf700ffff, 0xffb07fff,0xfff701ff,0x7d4005ff,0x7dc3ffff,0x2002ffff,0x23fffffa, 0x005ffffa,0x54fffff1,0x1005ffff,0x7d4fffff,0xf1005fff,0x7fd4ffff, 0xff1005ff,0x66654fff,0x3332a01c,0x3fffee1c,0x3fea002f,0x3e603fff, 0xfc84ffff,0xfa80ffff,0xf1005fff,0xffb8ffff,0xfff905ff,0x209fffff, 0x2a1ffffd,0x1005ffff,0x7d4fffff,0xf1005fff,0x7fd4ffff,0xff1005ff, 0x7ffd4fff,0xfff1005f,0xffffb8ff,0x3fea002f,0x3fea3fff,0xff1005ff, 0x66654fff,0x3332a01c,0x3ffff71c,0x427fff40,0x5ffffff9,0x46ffff88, 0x205ffff8,0x446ffff8,0xfb05ffff,0xd000dfff,0xfd8bffff,0xe8006fff, 0x3ea5ffff,0xf1005fff,0x7fd4ffff,0xff1005ff,0x7ffd4fff,0xfff1005f, 0x7fffd4ff,0xffff1005,0x17fffdcf,0x45ffff90,0x006ffffd,0x05ffffe8, 0x0fffffe4,0x05fffff3,0x017fffea,0x23ffffc4,0xd07ffff9,0xfffdbfff, 0x1ffffe0d,0x00bffff5,0xa9ffffe2,0x1005ffff,0x7d4fffff,0xf1005fff, 0x7fd4ffff,0xff1005ff,0xfffd8fff,0xffe8006f,0x3ffea5ff,0xfff1005f, 0x7fffdcff,0x3ffff202,0x03ffff72,0x883ffff4,0x80fffffd,0x2a0ffffd, 0x6c02ffff,0x3ea0ffff,0xff882fff,0xa8002fff,0x3e26ffff,0x8002ffff, 0x2a6ffffa,0x1005ffff,0x7d4fffff,0xf1005fff,0x7fd4ffff,0xff1005ff, 0x7ffd4fff,0xfff1005f,0x7fffdcff,0x3ffff202,0x5fffff12,0xffff5000, 0xffffd00d,0x2ffffecd,0x0bffff50,0x1ffffe20,0x103ffffe,0xff97ffff, 0xfff981ff,0x7fffd46f,0xffff1005,0x2ffffd4f,0x6ffff980,0x017fffea, 0x53ffffc4,0x200bffff,0x227ffff8,0x002fffff,0x26ffffa8,0x005ffffa, 0x5cfffff1,0x3202ffff,0xff72ffff,0x7fdc03ff,0x3ff205ff,0xfffa82ff, 0x1ffff63f,0x8ffffea0,0xf307fffd,0x0003ffff,0x4cfffff3,0x001fffff, 0x27ffff98,0x005ffffa,0x54fffff1,0x1005ffff,0x7d4fffff,0xf1005fff, 0x7fd4ffff,0xff1005ff,0x7ffdcfff,0x3fff202f,0xfffff32f,0xfff30003, 0xfff300ff,0xffff55ff,0x7ffd401f,0xfff1005f,0xffffb0ff,0x9ffffb85, 0x542ffffa,0x7d44ffff,0xf1005fff,0x7fccffff,0xff3006ff,0x7ffd4dff, 0xfff1005f,0x7fffd4ff,0xffff1005,0x7ffffccf,0xfff98001,0x3fffea7f, 0xffff1005,0x17fffdcf,0x25ffff90,0x201ffffb,0x0efffff9,0x209fffd0, 0xff16ffff,0x3fe009ff,0xffff16ff,0x3fffe609,0xff88000f,0xfff30fff, 0xf10001ff,0x3ea1ffff,0xf1005fff,0x7fd4ffff,0xff1005ff,0x7ffd4fff, 0xfff1005f,0x7fffd4ff,0xffff1005,0x17fffdcf,0x25ffff90,0x00fffff9, 0xfffff880,0xffffc800,0x03ffffef,0x02ffffd4,0x87ffff88,0x6c4ffffb, 0xfff17fff,0xffffc89f,0x2ffffd42,0x7ffff880,0x01ffffe6,0x537fffd4, 0x200bffff,0x2a7ffff8,0x1005ffff,0x7ccfffff,0x8000ffff,0x50fffff8, 0x200bffff,0x2e7ffff8,0x3202ffff,0xff72ffff,0xffe803ff,0xfd82ffff, 0xfff902ff,0x3ffff51f,0x3ffff200,0x01ffffa8,0x00fffff5,0x8fffffc0, 0x007ffffa,0x47ffffe0,0x005ffffa,0x54fffff1,0x1005ffff,0x7d4fffff, 0xf1005fff,0x7fd4ffff,0xff1005ff,0x7ffdcfff,0x3fff202f,0xfffff52f, 0x7fffc000,0xfff8801f,0x06ffffff,0x05ffffa8,0x0fffff10,0xf8dffff3, 0x3ffa5fff,0x7ffff46f,0x2ffffd40,0x7ffff880,0x01fffffc,0x527fffec, 0x200bffff,0x2a7ffff8,0x1005ffff,0x7d4fffff,0x20007fff,0xf51fffff, 0x2200bfff,0x3ee7ffff,0x3f202fff,0xfff72fff,0xfff8803f,0xf10dffff, 0x3e601fff,0xfffdbfff,0x3ffe6006,0x06fffdbf,0x01ffffea,0x2fffff80, 0x00fffff5,0x97ffffc0,0x005ffffa,0x54fffff1,0x1005ffff,0x7d4fffff, 0xf1005fff,0x7fd4ffff,0xff1005ff,0x7ffdcfff,0x3fff202f,0xfffff52f, 0x7fffc000,0xfff5002f,0x003fffff,0x00bffff5,0x41ffffe2,0x3e67ffff, 0x3ff23fff,0x3fffe0ff,0x5ffffa86,0xfffff100,0x0fffffe8,0x3ffffea0, 0x17fffea3,0x3ffffc40,0x00bffff5,0xa9ffffe2,0x0007ffff,0x54bffffe, 0x1005ffff,0x7dcfffff,0x3f202fff,0xfff72fff,0xffd1003f,0xfb5fffff, 0xffe80dff,0x03ffffef,0x7f7fff40,0x3e603fff,0x10007fff,0x263fffff, 0x0007ffff,0x23fffff1,0x005ffffa,0x54fffff1,0x1005ffff,0x7d4fffff, 0xf1005fff,0x7fd4ffff,0xff1005ff,0x7ffdcfff,0x3fff202f,0xfffff32f, 0x3ffe2000,0x3f6001ff,0x004fffff,0x00bffff5,0x41ffffe2,0xf71ffffe, 0x7fcc1fff,0xffff32ff,0xbffff509,0x3fffe200,0x7ffffe47,0xfca88adf, 0x2a1fffff,0x1005ffff,0x7d4fffff,0xf1005fff,0x7fccffff,0xf10007ff, 0x3ea3ffff,0xf1005fff,0x7fdcffff,0x3ff202ff,0xffff72ff,0x3ff62003, 0xffffffff,0x7ffdc00e,0x000fffff,0x7fffffdc,0x3fe200ff,0x98000fff, 0xf10fffff,0x0001ffff,0x21fffff3,0x005ffffa,0x54fffff1,0x1005ffff, 0x7d4fffff,0xf1005fff,0x7fd4ffff,0xff1005ff,0x7ffdcfff,0x3fff202f, 0xfffff12f,0xfff30001,0x7c4001ff,0x000fffff,0x00bffff5,0x41ffffe2, 0xfb3ffffc,0xffff0dff,0x0bfffee9,0x017fffea,0x23ffffc4,0xfffffff8, 0xffffffff,0x7ffd45ff,0xfff1005f,0x7fffd4ff,0xffff1005,0x7ffffc4f, 0xfff98000,0xffff50ff,0x3ffe200b,0x3fffee7f,0x3ffff202,0x03ffff72, 0xfffffa80,0x8800efff,0x6fffffff,0xffff8800,0xff806fff,0xa8001fff, 0x7fc6ffff,0xa8001fff,0x3ea6ffff,0xf3005fff,0x7fd4ffff,0xff3005ff, 0x7ffd4fff,0xfff3005f,0x7fffd4ff,0xffff3005,0x17fffdcf,0x45ffff90, 0x001fffff,0x06ffffa8,0x3ffffd80,0x3fffea00,0xffff3005,0x3fffea0f, 0xb09ffff4,0x3ff6dfff,0xfffa80ff,0xfff3005f,0xffff50ff,0xffffffff, 0xfa81dfff,0xf3005fff,0x7fd4ffff,0xff3005ff,0xffff8fff,0xffa8001f, 0x3ffea6ff,0xfff3005f,0x7fffdcff,0x3ffff202,0x03ffff72,0xffffb100, 0x7ec00dff,0x003fffff,0xffffffb0,0xffffd007,0xfffb0009,0xffffe8bf, 0xfffd8004,0x3fffea5f,0xffff3006,0x37fffd4d,0x6ffff980,0x01bfffea, 0x537fffcc,0x200dffff,0x2e6ffff9,0x3202ffff,0x3fa2ffff,0xd8004fff, 0x8005ffff,0x003ffffc,0x01bfffea,0x837fffcc,0xf9effff8,0xffb82fff, 0x6fffe8ff,0x0dffff50,0x1bfffe60,0x7fffffcc,0xefffffff,0x6ffffa80, 0xdffff300,0x037fffd4,0x46ffff98,0x004ffffe,0x25ffffd8,0x006ffffa, 0x5cdffff3,0x3202ffff,0xff72ffff,0x540003ff,0x04ffffff,0xffffff50, 0x3fea0001,0xc800ffff,0x001fffff,0x13ffffe6,0x03fffff9,0x7ffffcc0, 0x1ffffe64,0x37fffd40,0x00fffff3,0x99bfffea,0x5007ffff,0x7ccdffff, 0xf5007fff,0x7fdcdfff,0x3ff202ff,0x3fff22ff,0x3e6001ff,0x8004ffff, 0x003ffffc,0x01ffffe6,0x037fffd4,0xff9ffffd,0xfff301ff,0x09ffff7f, 0x01ffffe6,0x037fffd4,0x3fffffae,0x2602dfff,0x5007ffff,0x7ccdffff, 0xf5007fff,0xffc8dfff,0x26001fff,0x264fffff,0x5007ffff,0x7dcdffff, 0x3f202fff,0xfff72fff,0xd880003f,0x000fffff,0x00bfffff,0x5fffff80, 0xfffff300,0x7ffec00b,0x7ffcc0ff,0x3f6005ff,0x3e20ffff,0xd803ffff, 0x3e25ffff,0xd803ffff,0x3e25ffff,0xd803ffff,0x3e25ffff,0xd803ffff, 0x3ee5ffff,0x3f603fff,0x3fe62fff,0x36005fff,0x000fffff,0x03ffffc8, 0x3ffffe20,0xffffd803,0x3ffff205,0x3e06ffff,0xffffffff,0xfffff102, 0xffffb007,0x6ffcc00b,0xfff1001a,0xffb007ff,0x7ffc4bff,0xffd803ff, 0x7ffcc5ff,0x3f6005ff,0x3e20ffff,0xd803ffff,0x3ee5ffff,0x3f603fff, 0xfff72fff,0x0a62003f,0x017fffec,0x02ffffe8,0x7ffff400,0x3fff2002, 0x36200dff,0x903fffff,0x01bfffff,0x7ffffec4,0xfffffe83,0x3fffea00, 0x7ffff43f,0x3ffea00f,0x7fff43ff,0x3fea00ff,0x7ff43fff,0x3ea00fff, 0x3ea3ffff,0xff104fff,0xffc85fff,0x2200dfff,0x03fffffd,0x7ffff900, 0xffffe800,0x3ffea00f,0x3fea03ff,0x04ffffff,0x3ffffff6,0x3ffa00ff, 0x3ea00fff,0x2003ffff,0xe8003ff8,0x200fffff,0x43fffffa,0x00fffffe, 0x0fffffea,0x37fffff2,0x3fff6200,0xfffe83ff,0x3fea00ff,0x3fea3fff, 0xfff104ff,0x3ffee5ff,0x7ffec01f,0xffffa81f,0xffffa803,0x7fd40007, 0xfe8007ff,0x89bfffff,0xfffffb98,0x7fff406f,0x9889bfff,0x6ffffffb, 0xffffff70,0x3fee6159,0x7dc0ffff,0x0acfffff,0xffffff73,0xfffffb81, 0xff730acf,0xfb81ffff,0x0acfffff,0xffffff73,0x7ffffc41,0xfffffe80, 0xfffffe82,0xfb9889bf,0x006fffff,0x0fffff20,0xfffff700,0x3ee6159f, 0x200fffff,0xfffffff8,0x3ffee02f,0x5c07ffff,0xacffffff,0xfffff730, 0x7fd4001f,0xfffb8004,0x730acfff,0x81ffffff,0xcffffffb,0xffff730a, 0x3ffa01ff,0x889bffff,0xffffffb9,0xfffff706,0x3ee6159f,0x220fffff, 0xe80fffff,0xf72fffff,0xfc803fff,0xffc85fff,0x7f4402ff,0x20004fff, 0x04ffffe8,0xfffffa80,0xffffffff,0x402fffff,0xfffffffa,0xffffffff, 0x3fa02fff,0xffffffff,0x3fffffff,0xffffffd0,0xffffffff,0x3ffa07ff, 0xffffffff,0x03ffffff,0xfffffffd,0xffffffff,0xfffff07f,0xffff959f, 0xff505fff,0xffffffff,0xffffffff,0x7fe40005,0xfe8003ff,0xffffffff, 0x3fffffff,0xffffff80,0x3fe600ff,0x805fffff,0xfffffffe,0xffffffff, 0x7fd4003f,0xfffd0006,0xffffffff,0x207fffff,0xfffffffe,0xffffffff, 0x3ffea03f,0xffffffff,0x2fffffff,0x3fffffa0,0xffffffff,0xfff83fff, 0xffcacfff,0xf72fffff,0x1999bfff,0xefffff98,0xfffffcab,0x7feddd40, 0x2000ffff,0xffffdbba,0xf50000ff,0xffffffff,0x3dffffff,0x3fffea00, 0xffffffff,0x4c01efff,0xffffffff,0xefffffff,0xfffff300,0xffffffff, 0x3e601dff,0xffffffff,0x0effffff,0xffffff30,0xffffffff,0xfff901df, 0x9fffffff,0x2a05ffff,0xffffffff,0xefffffff,0x7fe40001,0xf98003ff, 0xffffffff,0x0effffff,0xfffffd80,0xffff806f,0xf9803fff,0xffffffff, 0x0effffff,0x6fffcc00,0xf9801a9a,0xffffffff,0x0effffff,0xffffff30, 0xffffffff,0xffa801df,0xffffffff,0x01efffff,0x7fffffcc,0xffffffff, 0xfffc80ef,0xcfffffff,0xff72ffff,0x03ffffff,0xfffffff9,0x709fffff, 0xffffffff,0xfffb8009,0x004fffff,0x7fffe440,0xffffffff,0xffc88004, 0xffffffff,0x3a2004ff,0xffffffff,0x8804ffff,0xfffffffe,0x804fffff, 0xffffffe8,0x04ffffff,0xfffffe88,0x4fffffff,0x7ffffec0,0xfff9afff, 0x3ff2202f,0xffffffff,0x900004ff,0x0007ffff,0x3fffffa2,0x4fffffff, 0x3fffee00,0xffc803ff,0x1001ffff,0xfffffffd,0x009fffff,0x7fffff40, 0xffd1002f,0xffffffff,0xfd1009ff,0xffffffff,0x44009fff,0xfffffffc, 0x004fffff,0x3fffffa2,0x4fffffff,0x7ffffec0,0xfff9afff,0xfffff72f, 0x3f603fff,0xffffffff,0xffff506f,0x8001dfff,0xfffffffa,0x9500000e, 0xdffffffd,0xca800039,0xeffffffe,0xfd70001c,0xbdffffff,0xffeb8005, 0x2defffff,0x7fff5c00,0x02deffff,0x7ffff5c0,0x002defff,0x3bffffd9, 0x00bfffe6,0x3ffffb2a,0x0001ceff,0x0fffff20,0xfffd7000,0x05bdffff, 0xfffff980,0xfffa801f,0xeb8007ff,0xefffffff,0x6cc0002d,0x001fffff, 0x7fffff5c,0x4002deff,0xffffffeb,0x50002def,0xffffffd9,0x2e00039d, 0xfffffffe,0xfd9002de,0x3e63bfff,0xfff72fff,0x403fffff,0xffffffea, 0x3ffe602f,0x8000cfff,0xcffffff9,0x26000000,0x000001aa,0x0000d54c, 0x06aaa620,0x554c4000,0x3100001a,0x00003555,0x006aaa62,0x00035100, 0x00d54c00,0xfff90000,0x2200007f,0x0001aaa9,0x07fffff8,0xbfffff10, 0x554c4000,0x1000001a,0x88000155,0x0001aaa9,0x03555310,0x2aa60000, 0x4c400001,0x40001aaa,0x4c4001a8,0x01999999,0x03577530,0x02aaeaa0, 0x55755000,0x00000001,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x33000000, 0xca800333,0xcccccccc,0x8803cccc,0x002a9809,0x26609988,0x26620009, 0x00099981,0xaa885555,0x3332601a,0x332e003c,0x7999934c,0x66666400, 0x33332a3c,0x99950000,0x20000039,0x1dd305ea,0x99995000,0x0aaaaa23, 0x6664c000,0xcc88001c,0x00002ccc,0x0aaaaa80,0x55530000,0xc8000055, 0x00003ccc,0x99555544,0x9300aaaa,0x99999999,0x01559999,0x03999930, 0x3a60bd50,0x0000000e,0x00333331,0x3ffee000,0xffc8804f,0xffffffff, 0x205fffff,0x21cfffd8,0xf98005fd,0x05ffa8ef,0x91fffdc0,0x2e005fff, 0xffd12fff,0x7ffd401f,0xffd002ff,0x3fffeaff,0xffffb006,0x7ffe43ff, 0xff90001f,0x000005ff,0x3f60bfe6,0xfff70007,0x3fffe65f,0xff500006, 0xf70007ff,0x000dffff,0xffffa800,0x3fa00005,0x00001fff,0x002ffffc, 0x3fffee00,0x40bfffd1,0xfffffffa,0xffffffff,0x3fea00ef,0xff9803ff, 0x0007fd83,0x3fff6000,0xf000003f,0xd100bfff,0xffffffff,0xffffffff, 0x7fffe40b,0x04ffffff,0xffdff500,0x3ff6000d,0x04fffb9f,0x6c7fff40, 0x7d402fff,0x800fffff,0xff57fffe,0xff900dff,0xfc83ffff,0x90001fff, 0x0005ffff,0x5efff400,0x0004ffeb,0x265ffff7,0x0006ffff,0x07ffff50, 0xfffffd00,0x4000003f,0x0006fffd,0x0bfffea0,0x3ffe0000,0x7c00005f, 0xfff52fff,0x7ffd401d,0xffffffff,0x1fffffff,0x07ffff50,0x2ef7ffa0, 0x00004ffe,0x9ffff100,0x3ea00000,0xffb005ff,0xffffffff,0xbfffffff, 0x7f677fc0,0x001fffff,0x037bbae0,0x77ffc400,0x88006fff,0x4fffffff, 0xfffffa80,0xfffe804f,0x0dffff57,0xffffffc8,0x1ffffc81,0xffff9000, 0x4c000005,0x6fffffff,0x3ffee000,0xdffff32f,0x3fea0000,0x7cc003ff, 0x05ffffff,0xfff30000,0x6c00001d,0x00002fff,0x00bffff0,0x1fffdc00, 0xa801fffd,0xffffffff,0xffffffff,0xffa82fff,0xff3003ff,0x00dfffff, 0x7fe40000,0x2000004f,0xa800effe,0xffffffff,0xffffffff,0x1ff305ff, 0x00e7f5c4,0x7443ec80,0xffa8001e,0x0001ffff,0x1dfffff5,0xfffff500, 0xffe803ff,0xdffff57f,0x7ffffdc0,0xffff901f,0x3ff20003,0x000002ff, 0x27fffec4,0x3ffee000,0xdffff32f,0x3fea0000,0x7e4003ff,0x0fffffff, 0xffd80000,0x2600000e,0x00003fff,0x017fffe0,0x25ffe800,0xa801fffa, 0xeeefffff,0xfffeeeee,0xffa85fff,0x362003ff,0x0004ffff,0x3ffe2000, 0x2a000005,0xf9000eff,0xffffffff,0x17ffea1f,0x20000000,0x17fc44fe, 0xffffc800,0x77640003,0xff5001ee,0x80dfffff,0xff57fffe,0x3fea0dff, 0x3202ffff,0x0001ffff,0x005ffff9,0x00440000,0x7fcc0000,0x500006ff, 0x8007ffff,0xffffffff,0x4400003f,0x00000fff,0x00027fec,0x80000000, 0x7ff45ffa,0xffff5003,0xfffd300b,0x800000ff,0x00000008,0x0006ffb8, 0xfb000000,0xffffffff,0x17ffea1f,0x20000000,0x0f7443ec,0x00000000, 0xfffa8000,0x202fffff,0xff57fffe,0xfff50dff,0xfc805fff,0x90001fff, 0x0005ffff,0x00000000,0xdffff300,0x3fea0000,0x3ea003ff,0xffffefff, 0x00000006,0x00000000,0x00000000,0xffa80000,0xff3005ff,0x00003fff, 0x00000000,0xf0000000,0x7fdc3fff,0xfffff05f,0x21ffffff,0x64c5fffa, 0x91003ccc,0x664c9999,0x991003cc,0x3ffe0999,0x17ffee1f,0x7f6dd440, 0x5400cdef,0xffffffff,0xffffd00f,0x31bfffea,0x05ffffff,0x03ffff90, 0x47999991,0x712ffffc,0x00059dfb,0x77ff654c,0x950001bc,0x3fe63999, 0x500006ff,0x4007ffff,0xfe9ffffd,0x40001fff,0xeffedba8,0x4c0000cd, 0xbcdffecb,0x75cc0000,0x0cdefffe,0x7654c000,0x001bceff,0x00bffff5, 0x21fffff4,0x4c1cccc9,0x1003cccc,0x00099999,0x80000000,0x3ee1ffff, 0xfffd05ff,0x1fffffff,0xf517ffea,0x2200bfff,0x3ea7ffff,0xf1005fff, 0x3fe0ffff,0x3ffee1ff,0xffffa805,0xcfffffff,0xfffff500,0x3a09ffff, 0xfff57fff,0x7fffccdf,0xff9003ff,0xfffd03ff,0x7ffe41ff,0xfffff9af, 0x2a000dff,0xffffffff,0x4001efff,0xf32ffffb,0x0000dfff,0x00ffffea, 0xbb7fffc4,0x0005ffff,0x3fffffea,0x00cfffff,0x7ffff4c0,0x02ffffff, 0xffffe980,0xdfffffff,0x7ffd4001,0xffffffff,0x7ffd401e,0x3ffa005f, 0x7ffd43ff,0x7fffd43f,0xffff1005,0x6654000f,0xcccccccc,0xcccccccc, 0xff02cccc,0x7ffdc3ff,0xfffffb05,0x2a1fffff,0x7fd45fff,0xff1005ff, 0x7ffd4fff,0xfff1005f,0x3fffe0ff,0x017ffee1,0xfffffff7,0x3fffffff, 0xfdffff50,0xfd03ffff,0x3ffeafff,0xfffff16f,0x7fe4007f,0x7ffec1ff, 0x7ffe41ff,0xffffffdf,0x4401ffff,0xfffffffd,0x3fffffff,0x3fffee00, 0x0dffff32,0x3ffea000,0xfff7003f,0x3fffe27f,0xffb8000f,0xffffffff, 0x7001ffff,0xffffffff,0x01bfffff,0x3ffffee0,0xffffffff,0xfd8802ff, 0xffffffff,0x203fffff,0x005ffffa,0x83fffff3,0x543ffffa,0x1005ffff, 0x000fffff,0x3fffffe2,0xffffffff,0xffffffff,0x3ffff04f,0xb82fffdc, 0xffffffff,0xbfff50ff,0x05ffffa8,0x4fffff10,0x005ffffa,0x20fffff1, 0x3ee1ffff,0x3ff205ff,0xffffffff,0xa86fffff,0xffdbffff,0xfffe86ff, 0x1dffff57,0x0dfffffd,0x1ffffc80,0x07fffff2,0x3ffffff2,0xfffffeff, 0x3ffe206f,0xffffffff,0x0effffff,0x2ffffb80,0x00dffff3,0x3fffea00, 0xffffd003,0x1fffff41,0x3ffff200,0xffffffff,0x74406fff,0xffffffff, 0x6fffffff,0xfffffd80,0xffffffff,0x2202ffff,0xffffffff,0xffffffff, 0xfffa80ef,0xfff9805f,0xfffa86ff,0x7fffd43f,0xffff1005,0x3fee000f, 0xffffffff,0xffffffff,0x304fffff,0x99988333,0x3ffffa00,0xf50fffff, 0xfffa8bff,0xfff1005f,0x7fffd4ff,0xffff1005,0x1066660f,0x7fc01333, 0xa9bdffff,0x4ffffffb,0x45ffffd4,0x743fffff,0xfff57fff,0xfffffddf, 0x7e4005ff,0xfff71fff,0x3ff205ff,0x7dc2ffff,0xfb02ffff,0x79dfffff, 0xfffffd97,0xfff7009f,0x3fffe65f,0xff500006,0xff3007ff,0xfffa8bff, 0x7ffc006f,0xba9bdfff,0x04ffffff,0x3ffffff2,0xffffdbbd,0x3ee04fff, 0xbdefffff,0xffffffda,0xfffb00ff,0x9779dfff,0x9ffffffd,0xdfffff50, 0xffdddddd,0x505fffff,0xfa87ffff,0xf1005fff,0x2000ffff,0xffffffff, 0xffffffff,0xffffffff,0x4c000004,0xffffffff,0x8bfff50f,0x005ffffa, 0x54fffff1,0x1005ffff,0x000fffff,0x7fffcc00,0x7ffffc06,0x9ffffd46, 0x20fffffc,0xff57fffe,0xffffffff,0x2001ffff,0xfa9ffffc,0x3202ffff, 0x702fffff,0xf50dffff,0x405fffff,0x1ffffffa,0x97fffdc0,0x006ffff9, 0x7ffff500,0x5ffffb00,0x1fffff88,0xdffff300,0x6fffff80,0xdfffff10, 0xffff5101,0xfff301ff,0x74c07fff,0xa84fffff,0x02ffffff,0x3fffffea, 0x7ffffd41,0xffffffff,0x504fffff,0xfa87ffff,0xf1005fff,0x7000ffff, 0xf53bffff,0xddddffff,0xdddddddd,0x10000007,0xfffffffb,0x517ffea1, 0x200bffff,0x2a7ffff8,0x1005ffff,0x000fffff,0x7fffe400,0x7fffdc02, 0x3fffea0f,0x97ffffa3,0xff57fffe,0xffffffff,0x2009ffff,0xffcffffc, 0x7e403fff,0x7fc05fff,0x3fe20fff,0x8800efff,0x406ffffe,0xf32ffffb, 0x0000dfff,0x00ffffea,0x01fffff1,0x00bffffb,0x00bffff2,0x01fffff7, 0x00bffffb,0x09fffff7,0x03fffffd,0xffffff10,0xefffff88,0xfffe8800, 0x7fffd46f,0xffffffff,0x202fffff,0x543ffffa,0x1005ffff,0x000fffff, 0x263ffffd,0x0006ffff,0x00e66654,0x40399995,0x0ffffdb9,0xfa8bfff5, 0xf1005fff,0x7fd4ffff,0xff1005ff,0x66654fff,0x3332a01c,0x3ffff61c, 0xeeeee803,0x8ffffea1,0xd2fffffa,0x3feaffff,0xcbffffff,0x801fffff, 0xfffffffc,0xffc807ff,0x7fec03ff,0x3ffee1ff,0x3ea002ff,0x2e03ffff, 0xff32ffff,0x20000dff,0x403ffffa,0x505ffffb,0x001fffff,0x007ffffb, 0xa83ddddd,0x001fffff,0x887bfffd,0x003fffff,0x833bffee,0x02fffffb, 0x3ffffea0,0x3ffffea3,0xffffffff,0xffa801bf,0x7ffd43ff,0xfff1005f, 0xffa800ff,0x3ffe65ff,0x7dc0006f,0x3f202fff,0xf8802fff,0xfff50fff, 0x5ffffa8b,0xfffff100,0x02ffffd4,0x27ffff88,0x202ffffb,0x2e2ffffc, 0x002fffff,0x1ffffd40,0x75bffff6,0xfff57fff,0x3e29ffff,0xc806ffff, 0xffffffff,0x7fe403ff,0x7fe402ff,0x3fff62ff,0xffe8006f,0x3fee05ff, 0xffff32ff,0x3ea0000d,0x7f403fff,0x9999bfff,0x3fffff99,0xfffffb80, 0xffc80002,0x2e6005ff,0x3ffff201,0x201a8006,0x006ffffd,0x25ffffe8, 0xaaeffffa,0xdfffffdb,0xffffa800,0x2ffffd43,0x7ffff880,0x7ffff400, 0x1bfffe62,0xffff7000,0x7fffe405,0xffff8802,0xa8bfff50,0x1005ffff, 0x7d4fffff,0xf1005fff,0x7fdcffff,0x3ff202ff,0x3ffe62ff,0x00acefff, 0x1ffffd40,0x2fffffe2,0xff57fffe,0xfb89ffff,0x6404ffff,0xffffffff, 0x3f200fff,0x7dc02fff,0xfff13fff,0xf50005ff,0x7dc0dfff,0xfff32fff, 0x2a0000df,0x2603ffff,0xffffffff,0xffffffff,0xfff9806f,0x00acefff, 0x2ffffd80,0x7ff40000,0x400003ff,0x02fffff8,0x6ffffa80,0x217fffea, 0x1efffffa,0x1ffffd40,0x017fffea,0x03ffffc4,0x8dffff50,0x006ffff9, 0x17fffdc0,0x05ffff90,0x21ffff10,0x7d45fffa,0xf1005fff,0x7fd4ffff, 0xff1005ff,0x7ffdcfff,0x3fff202f,0x7fffec2f,0x1bdfffff,0x3ffffa80, 0xffffffb8,0xfff57fff,0x3ffa09ff,0x3f201fff,0xffefffff,0x3ff204ff, 0x7fe402ff,0xffff32ff,0xff30003f,0x7fdc0fff,0xffff32ff,0x3ea0000d, 0x3f203fff,0xffffffff,0xffffffff,0xfffd801f,0xbdffffff,0xffffd001, 0xff800005,0x00002fff,0x0fffffcc,0x7fffcc00,0x17fffea7,0x7fffffd4, 0x3fffea00,0x2ffffd43,0x7ffff880,0x3ffff600,0x37fffcc3,0x3ffee000, 0x3fff202f,0xfff8802f,0x8bfff50f,0x005ffffa,0x54fffff1,0x1005ffff, 0x7dcfffff,0x3f202fff,0x7f442fff,0xffffffff,0xf500beff,0x3fa07fff, 0x7fffffff,0x40dffff5,0x06fffffa,0x37fffff2,0x01ffffe8,0x807ffff9, 0xf31ffffc,0x0001ffff,0x01fffff1,0x4cbfffee,0x0006ffff,0x07ffff50, 0x7ffffffc,0xffffffff,0x8805ffff,0xfffffffe,0x00beffff,0x007ffffe, 0xffff8800,0x4c00001f,0x000fffff,0x0fffff88,0x40bffff5,0x06fffffc, 0x50ffffea,0x200bffff,0x007ffff8,0x30fffff3,0x999fffff,0x99999999, 0x2ffffb85,0x0bffff20,0x43fffe20,0x7d45fffa,0xf1005fff,0x7fd4ffff, 0xff1005ff,0x7ffdcfff,0x3fff202f,0xfffd882f,0xffffffff,0xfffa80ef, 0xffff303f,0x3eafffff,0x7ec06fff,0xf903ffff,0x7fd4bfff,0xfff906ff, 0xfffe80bf,0xfffff50f,0x7fffc000,0xffff701f,0x1bfffe65,0x7ffd4000, 0xffff503f,0xffffffff,0xffffffff,0xfffb1001,0xffffffff,0xfff101df, 0x400001ff,0x00fffff9,0x3bbbbbaa,0xff53eeee,0x7c000fff,0xff51ffff, 0xffe80bff,0xff503fff,0xfffa87ff,0xfff1005f,0x3ff600ff,0xfff983ff, 0xffffffff,0x5c4fffff,0x3202ffff,0x8802ffff,0xff50ffff,0xffffa8bf, 0xffff1005,0x2ffffd4f,0x7ffff880,0x80bfffee,0x202ffffc,0xffffffea, 0x40efffff,0x203ffffa,0xfffffffc,0x0dffff57,0xffffff88,0x1ffffc81, 0x417ffff4,0x01fffffc,0x54fffff3,0x0007ffff,0x40bffffe,0xf32ffffb, 0x0000dfff,0x40ffffea,0x99cffffd,0x99999999,0x003fffff,0x3fffffaa, 0x0effffff,0x03ffffcc,0x3ffe6000,0x3fee00ff,0xffffffff,0x0fffff54, 0x7ffffc00,0x0bffff52,0xffffff98,0x3ffffa81,0x02ffffd4,0x07ffff88, 0x0fffff88,0xffffff98,0xffffffff,0x7ffdc4ff,0x3fff202f,0xfff8802f, 0x8bfff50f,0x005ffffa,0x54fffff1,0x1005ffff,0x7dcfffff,0x3f202fff, 0xb8802fff,0xfffffffd,0x3fea0fff,0x3fe203ff,0xf57fffff,0xf900dfff, 0xf90dffff,0xff983fff,0xfffc86ff,0x7f441fff,0x3fe64fff,0xf10007ff, 0x2e03ffff,0xff32ffff,0x55555fff,0x55555555,0x07ffff50,0x01fffff1, 0x37fffe40,0x7fedc400,0xffffffff,0x3ffffe20,0x3e200000,0x2e01ffff, 0xffffffff,0xffff34ff,0x3fe2000f,0xfff51fff,0xfff700bf,0xfff50dff, 0xffffa87f,0xffff1005,0xffff900f,0x3fffe609,0xffffffff,0x7dc4ffff, 0x3f202fff,0xf8802fff,0xfff50fff,0x5ffffa8b,0xfffff100,0x02ffffd4, 0x27ffff88,0x202ffffb,0x002ffffc,0x7fff6544,0x3fea2fff,0x7fd403ff, 0xff57ffff,0xff100dff,0xfc87ffff,0xffd81fff,0x7ffe43ff,0xfdbdffff, 0x220fffff,0x000fffff,0x0fffff98,0x25ffff70,0xfffffff9,0xffffffff, 0xfffa85ff,0xffffc83f,0x7ffcc005,0x220002ff,0xfffffeca,0x7ffffc2f, 0x7fc00001,0x3ee02fff,0xffffffff,0xfffff14f,0xfff30001,0x3ffea1ff, 0xfffd005f,0xfffa87ff,0x7fffd43f,0xffff1005,0xffff880f,0xffff301f, 0xdddddddf,0xfb87dddd,0x3f202fff,0xf8802fff,0xfff50fff,0x5ffffa8b, 0xfffff300,0x02ffffd4,0x27ffff98,0x202ffffb,0x002ffffc,0x7ffffdc0, 0x0ffffea4,0x3fffff60,0x0dffff57,0x3ffffea0,0x3ffff20f,0xfffff881, 0x3fffff20,0xffffffff,0xffff83ff,0xffa8001f,0x3fee06ff,0xffff32ff, 0xffffffff,0x50bfffff,0xff07ffff,0xd0005fff,0x000bffff,0x7ffffdc0, 0x17ffff44,0xffd00600,0x664c07ff,0xffffeccc,0x07ffffe4,0x3fffea00, 0x17fffea6,0x7ffffcc0,0x3fffea0f,0x2ffffd43,0x7ffff980,0x7ffffe40, 0xfdcccccc,0x40006fff,0x202ffffb,0x802ffffc,0xf50ffff8,0xfffa8bff, 0xfff3006f,0x7fffd4df,0xffff3006,0x17fffdcd,0x25ffff90,0x002ecca9, 0x54dffff5,0x8803ffff,0xf57fffff,0x7400dfff,0x325fffff,0xf901ffff, 0x7fe4bfff,0xffffcaff,0xfd03ffff,0xb0009fff,0x5c0bffff,0xff32ffff, 0xffffffff,0xbfffffff,0x87ffff50,0x00fffffa,0xfffffb80,0x176654c0, 0x6ffffa80,0x027fffec,0x9059ff50,0x000dffff,0x749ffff7,0x8004ffff, 0x2a5ffffd,0x2005ffff,0x25fffffb,0x543ffffa,0x3006ffff,0x440dffff, 0xffffffff,0xffffffff,0x7dc0006f,0x3f202fff,0xf8802fff,0xfff50fff, 0x7ffff98b,0xdffff500,0x03ffffcc,0x26ffffa8,0x202ffffb,0xf72ffffc, 0x2200bfff,0x3ea7ffff,0xf9003fff,0x3feaffff,0x3e6006ff,0xf93fffff, 0x3e203fff,0xff91ffff,0x3ffee5ff,0x3f201eff,0x2001ffff,0x04fffff9, 0x4cbfffee,0xffffffff,0xffffffff,0xffffa85f,0x2ffffec3,0xffff8800, 0x7fffdc3f,0xffff1005,0xfffffb8f,0xffff9000,0xfffff98d,0x7ffdc002, 0x3ffff24f,0x3fe6001f,0x3fea4fff,0x7f4005ff,0xff52ffff,0xfff987ff, 0xfff5007f,0x7ffdc0df,0xffffffff,0x06ffffff,0x7fffdc00,0x3ffff603, 0xffff8802,0x88bfff50,0x803fffff,0x225ffffd,0x803fffff,0x2e5ffffd, 0x3603ffff,0xff32ffff,0xf7001fff,0x5c00dfff,0x00002ccc,0x00059997, 0x06f33220,0x0bffff20,0x3e600351,0x2005ffff,0x00fffffd,0x00bffff2, 0x00059997,0x00059997,0x40bff000,0x00fffff9,0x46ffffb8,0x04fffff8, 0x3fffff98,0x06fffff8,0x27fffe40,0x0bfffff3,0x7ffffec0,0x3332e000, 0x0ffb8002,0x7fffff10,0xbffffb00,0x7fffffc0,0xffffffff,0x0006ffff, 0x827fffd4,0x02fffff8,0x50ffff88,0xffd0bfff,0x7d401fff,0x7f43ffff, 0x2a00ffff,0x2a3fffff,0xf104ffff,0x7fc5ffff,0x7c406fff,0x2004ffff, 0x01fffffd,0x7fffec00,0x7c40001f,0x6405ffff,0x0002ffff,0xdfffffc8, 0x3fff6200,0x7fe403ff,0x7fec01ff,0x36001fff,0x001fffff,0x09ff1000, 0x06fffff8,0x27ffffc4,0x1fffffdc,0xfffffd10,0xfffff501,0xffc8803d, 0x7fe44fff,0x2200dfff,0x03fffffd,0x7ffffec0,0x01ff2001,0x01fffffd, 0x1fffffd4,0xffffffa8,0xffffffff,0x0006ffff,0x07ffffc4,0x17fffff4, 0x87fffc40,0xfb85fffa,0x0acfffff,0xffffff73,0xfffffb81,0xff730acf, 0x7c41ffff,0xfe80ffff,0x3f22ffff,0x20aeffff,0xfffffea8,0x3f72e001, 0x5c0006ff,0x006fffdc,0x7ff66440,0x3fff203f,0xfd00002f,0x137fffff, 0xfffff731,0x7fd420df,0x65c01fff,0x2006fffd,0x07fffdcb,0x9ff30000, 0xfffffc80,0x3faa20ae,0xfd01ffff,0x215bffff,0xffffffb9,0x3ffff604, 0x9530acff,0x9fffffff,0xffffffd0,0xff731137,0x000dffff,0x0dfffb97, 0x7007ff40,0x59ffffff,0x3fffee61,0xfffd00ff,0xfff3009f,0xff0000df, 0xf959ffff,0x05ffffff,0x21ffff10,0xfd05fffa,0xffffffff,0x7fffffff, 0x3fffffa0,0xffffffff,0xfff83fff,0xffcacfff,0x742fffff,0xffffffff, 0xffffffff,0x3fee0006,0xf700000f,0x400001ff,0x3f205ffe,0x00002fff, 0xfffffff5,0xffffffff,0x3fe05fff,0x00ffffff,0x003ffee0,0x003ffea0, 0x1bfea000,0x3fffffa0,0xffffffff,0x3e606fff,0xffffffff,0x6fffffff, 0x7ffff440,0xffffffff,0x3fffffff,0xffffffa8,0xffffffff,0x0002ffff, 0x8007ffdc,0x7f402ffe,0xffffffff,0x3fffffff,0x1fffff50,0xfffff300, 0x55555555,0xfc855555,0xffffffff,0x02ffffcf,0x50ffff88,0x3e60bfff, 0xffffffff,0x0effffff,0xffffff30,0xffffffff,0xfff901df,0x9fffffff, 0xf885ffff,0xffffffff,0x1fffffff,0xdffd1000,0x3fa20000,0x2a00006f, 0x3f203fff,0x00002fff,0x3fffffea,0xffffffff,0xfff101ef,0x400bffff, 0x8006ffe8,0x0007ffe8,0x2b7ffe00,0x7ffc41a9,0xffffffff,0x401fffff, 0xfffffffa,0xefffffff,0xfffd8800,0xffffffff,0x02ffffff,0x3fffffea, 0xffffffff,0x440001ef,0x36006ffe,0x42a9beff,0xfffffff9,0xffffffff, 0xffffd00e,0x3ffe600b,0xffffffff,0x87ffffff,0xfffffffd,0x2ffff9af, 0x0ffff880,0x440bfff5,0xfffffffe,0x804fffff,0xffffffe8,0x04ffffff, 0x7fffffec,0xffff9aff,0xffffe982,0xffffffff,0xdff5001e,0x005fffff, 0xfffdff50,0x360005ff,0xeffffeef,0x3ffff200,0x64400002,0xffffffff, 0x5404ffff,0x0fffffff,0xfffdff50,0xffa805ff,0x02fffffe,0x3ff20000, 0xe982ffff,0xffffffff,0x001effff,0xffffffb1,0x01bfffff,0xfffffc80, 0xffffffff,0xfc8800bf,0xffffffff,0xa8004fff,0xfffffeff,0x3ffea002, 0xfe886fff,0xffffffff,0x3e604fff,0x3002ffff,0xffffffff,0xffffffff, 0x3ffb20ff,0xfff31dff,0xfff1005f,0x17ffea1f,0x3ffffae0,0x002defff, 0x7fffff5c,0x9002deff,0x23bffffd,0x202ffff9,0xffffffea,0x54003dff, 0x1dffffff,0xffff5000,0x40003bff,0xbffffffd,0x7fffe400,0x95000002, 0xdffffffd,0xfff70039,0x7d403dff,0x01dfffff,0xffffffa8,0x4000001d, 0x1fffffe8,0x3ffffaa0,0x003dffff,0xffffdb50,0x40003bff,0xfffffeb8, 0x0002bdef,0xfffffd95,0x200039df,0xdffffffa,0xffeb8001,0x3fae05ff, 0xdeffffff,0x7fffec02,0x3ffe6006,0xffffffff,0x07ffffff,0x00000d44, 0x4c400000,0x00001aaa,0x00355531,0x0001a880,0x4d554c40,0x2a660000, 0x98000099,0x000099a9,0x019a9988,0x00000000,0x00035530,0x4002aea6, 0x00099a99,0x004cd4cc,0x2ea00000,0x54c4001a,0x000009aa,0x00026a62, 0x04d4cc00,0xaa980000,0x26600001,0x8000099a,0x310009b9,0x4c003555, 0x003fffff,0x3fffffe6,0xffffffff,0x00007fff,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x64000000,0x00003ccc,0x664c0540, 0x01cccccc,0x2a05554c,0x000002aa,0x99993000,0x99999999,0x85999999, 0x4c2cccca,0xcb81cccc,0x000004cc,0x55550000,0x55500035,0x01aaa885, 0x55551000,0x554c0005,0x0155540a,0x83555100,0x5000aaa9,0xaaa88555, 0x4ccc4001,0x09999999,0x21555400,0x0001aaa8,0x01aaaaa8,0xaaaaa800, 0x33100000,0x00000033,0x00155555,0x00133330,0x00000000,0x00bffff0, 0x07fcc000,0x3fffffea,0x7fc402ff,0x0fffee6f,0x20ff7000,0x3ea00ffb, 0xffffffff,0xffffffff,0x7fffe44f,0x1ffffd44,0x007ffff4,0x04ffffd8, 0xfff98000,0xff90006f,0x3fffa25f,0xffb00000,0x4c0005ff,0x3ff25fff, 0x7ec0003f,0xdfff31ff,0x1fffdc00,0x8001fffd,0xfffffffd,0x64003fff, 0xffd12fff,0xf980001f,0x80006fff,0x005ffffa,0xfffff100,0x4c000007, 0x8005ffff,0x00fffffc,0x5407fdc0,0x800000ff,0x0005ffff,0x2a1bee00, 0xffffffff,0xcfffa802,0x0005fff9,0x7443ff98,0x7ffd406f,0xffffffff, 0x4fffffff,0x227fffe4,0xe83ffffa,0xb800ffff,0x02ffffff,0x7ffec000, 0x3fa0000e,0x2fffd8ff,0xfff30000,0xf700007f,0xbfff57ff,0xfff10000, 0x01fffd1d,0xc9fffd80,0xd8003fff,0xffffffff,0xfe8003ff,0x1fffd8ff, 0xfffd8000,0xfe80000e,0x200006ff,0x1ffffffe,0xffb00000,0xf98001df, 0x005fffff,0x3a227fcc,0xf000007f,0x0000bfff,0x7d41ff40,0x2fffffff, 0xfffffb00,0x200001ff,0xffdcfffe,0x7ffd402f,0xffffffff,0x4fffffff, 0x227fffe4,0xe83ffffa,0x4400ffff,0xffffefff,0xff300000,0x980001df, 0x4fffffff,0x3ff60000,0x3600003f,0x0fffffff,0xfff50000,0x0007ffff, 0xfffffff1,0x3ff6000b,0xffffffff,0xfff98003,0x0004ffff,0x00efff88, 0xefff9800,0xff700000,0x00dfff9f,0xdfff3000,0xfff88001,0x002fffde, 0x7eefffec,0x000003ff,0x000bffff,0x207fe200,0xfffb9998,0xffd1002f, 0x00005fff,0x7fffff44,0xfffa804f,0xeeeeeeff,0x3eeeeeee,0x227fffe4, 0xe83ffffa,0x7400ffff,0xfffa8fff,0xff900005,0x2e00001f,0x006fffff, 0x13ffe200,0xfff10000,0x00005fff,0x5fffffc8,0x3ffea000,0x00000fff, 0x3ee00000,0x0006ffff,0x001fff90,0x03bff600,0x7ffcc000,0x009fff75, 0x0effd800,0x9fffd800,0x000fffe8,0x3fffffa2,0x0000005f,0xfa800000, 0xffff3007,0x7774c005,0x7000004e,0x2003bdfd,0x005ffffa,0x9ffff900, 0x32000000,0x3fee2fff,0x7c40003f,0x400001ff,0x001eeeec,0x017ff200, 0x77754000,0xb000004e,0x0001bddd,0x02eeeec8,0x00000000,0x01eeeec8, 0x1fff8800,0xfff30000,0x7f400001,0x3fff60ff,0xff100001,0xff50003f, 0x2fffcc7f,0x6f7edc00,0x00000002,0x9fb00000,0x3fffe600,0x00000002, 0xfa800000,0x00005fff,0x009ffff9,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x99300000,0x32200799,0x00004ccc,0x00000000, 0x00000000,0x00000000,0x00000000,0x20000000,0xcdffecb9,0xcb98000b, 0x003ffffe,0x005ffff3,0x37ffb2e6,0x4c0000bc,0xdefffeeb,0x7ffd400c, 0xf900005f,0xcc989fff,0xcccb81cc,0x00000004,0x33333220,0x6664c002, 0xcccccccc,0x993001ac,0x99999999,0x00155999,0x99999993,0x55999999, 0x99993001,0x6665c007,0x99999934,0x99999999,0x7d459999,0xf1005fff, 0x6644ffff,0xcccccccc,0xcccccccc,0x999930cc,0x6665c007,0x66666644, 0xcccccccc,0x4002cccc,0x02ccccc8,0xcccccb80,0x33322000,0xccca82cc, 0x3220002c,0x0002cccc,0x7ffff4c0,0x02ffffff,0x3ffffee0,0x9803ffff, 0x4c02ffff,0xfffffffe,0x98002fff,0xfffffffe,0x501dffff,0x000bffff, 0x13ffff20,0xd07ffff5,0x3261ffff,0x32003ccc,0x5c004ccc,0x006fffff, 0x7fffffd4,0xffffffff,0x7ffd400d,0xffffffff,0x00efffff,0x3fffffea, 0xffffffff,0x3ea00eff,0xd002ffff,0x3feaffff,0xffffffff,0xffffffff, 0x17fffea4,0x3ffffc40,0xfffffff3,0xffffffff,0x2a1fffff,0x002fffff, 0x7c4ffffd,0xffffffff,0xffffffff,0x7fdc004f,0xa8006fff,0x004fffff, 0x07fffff6,0x013ffff2,0xfffffb80,0x3ee00006,0xffffffff,0x200dffff, 0xffffffe8,0x405fffff,0x202ffff9,0xfffffffb,0x0dffffff,0xfffff700, 0xffffffff,0xfff505ff,0x320000bf,0x7d44ffff,0xffe83fff,0xffff50ff, 0x7fffc00b,0x3ffa000f,0x2001ffff,0xfffffffa,0xffffffff,0x3ffea04f, 0xffffffff,0x1fffffff,0xffffff50,0xffffffff,0x2a03ffff,0x00ffffff, 0xf57fffe8,0xffffffff,0xffffffff,0x7fffd49f,0xffff1005,0x7ffffccf, 0xffffffff,0x0fffffff,0x1ffffff5,0x4ffffd00,0xfffffff8,0xffffffff, 0x74004fff,0x01ffffff,0xfffffd80,0xffff9801,0xffff904f,0x7ff40009, 0x0001ffff,0x7fffff44,0xffffffff,0x3ff206ff,0xfffeffff,0x3e603fff, 0xfe882fff,0xffffffff,0x06ffffff,0xffffffd8,0xffffffff,0x7fd42fff, 0xccccceff,0x2ccccccc,0x44ffffc8,0xe83ffffa,0xff50ffff,0x7fc00bff, 0xf3000fff,0x0bffffff,0x7ffffd40,0xffffffff,0xf506ffff,0xffffffff, 0xffffffff,0xfff505ff,0xffffffff,0xffffffff,0xfffff505,0xfffd009f, 0x3ffffeaf,0xffffffff,0x2a4fffff,0x1005ffff,0x7ccfffff,0xffffffff, 0xffffffff,0xfff50fff,0xfd009fff,0x7ffc4fff,0xffffffff,0x4fffffff, 0x3fffe600,0x88005fff,0x806fffff,0x206ffffe,0x004ffffc,0xffffff30, 0xfc8000bf,0xbbdfffff,0xfffffffd,0xfffff984,0xfffff98b,0x3ffe607f, 0xffffc82f,0xffdbbdff,0x204fffff,0xeffffffb,0xffffdabd,0x3ea0ffff, 0xffffffff,0xffffffff,0x4ffffc84,0x41ffffd4,0xf50ffffe,0x7c00bfff, 0x9000ffff,0xffffffff,0x3ffea001,0xeeeeeeff,0x3fffffff,0xefffffa8, 0xfeeeeeee,0xa85fffff,0xeeefffff,0xfffeeeee,0xffa85fff,0x401fffff, 0xff57fffe,0xdddddfff,0xdddddddd,0x2ffffd47,0x7ffff880,0x3bbbbba2, 0xeefffffe,0x50eeeeee,0x3fffffff,0x27fffe80,0xeeeeeee8,0xfffeeeee, 0x32003fff,0xffffffff,0xfffb8000,0x3fee03ff,0x3f202fff,0x90004fff, 0xffffffff,0x3fe20001,0xa880efff,0x40ffffff,0x2e2ffffe,0x3ffffdef, 0x85ffff30,0x0efffff8,0xfffffa88,0xffff980f,0x3fa603ff,0x3ea4ffff, 0xffffffff,0xffffffff,0x4ffffc84,0x41ffffd4,0xf50ffffe,0x7c00bfff, 0xf000ffff,0xffffffff,0x3ffea007,0x3fee205f,0x7d40ffff,0xe9805fff, 0xfa87ffff,0xe9805fff,0xfa87ffff,0x06ffffff,0xfabffff4,0x80005fff, 0x005ffffa,0x00fffff1,0x01ffffe4,0xffffffa8,0x7fff406f,0x3ff60007, 0x7c005fff,0xffffffff,0xfffd0003,0xfff101ff,0xffc80bff,0xff0004ff, 0x7fffffff,0x3fff6000,0xfffb805f,0x7fffc4ff,0x5ecdff46,0x3ffe600a, 0x7fffec2f,0xffffb805,0xffffe84f,0xfff8801f,0x3ffea7ff,0xffffffff, 0x84ffffff,0x544ffffc,0xfe83ffff,0xfff50fff,0x7ffc00bf,0xffa800ff, 0x6ffffeff,0xbffff500,0xfffff100,0x5ffffa8b,0xfffff300,0x5ffffa83, 0xfffff300,0xfffffa83,0x3fa02fff,0xffff57ff,0xff50000b,0x3e200bff, 0x32007fff,0x5003ffff,0xffffffff,0x3ffff405,0xffffc800,0x3ea000ef, 0xffffefff,0xfff30006,0xfff909ff,0xffc801ff,0xfa8004ff,0xffffefff, 0xfffa8006,0xffd001ff,0x7ffcc7bf,0x007fe25f,0x45ffff30,0x01fffffa, 0x87bfffd0,0x03fffff8,0x33bffee0,0xdfffff50,0xdddddddd,0xff907ddd, 0xfffa89ff,0xffffe83f,0x0bffff50,0x07ffffc0,0x4ffffec0,0x801ffffe, 0x005ffffa,0x43fffff7,0x005ffffa,0x50fffffa,0x400bffff,0x543ffffe, 0xffffffff,0xffffd00f,0x017fffea,0x3fffea00,0xffff1005,0x7ffe400f, 0xfff5003f,0x01ffffff,0x001ffffa,0x3fffffea,0x7ffec000,0x1ffffe9f, 0xffff9000,0x7fffcc3f,0xfffc802f,0xffd8004f,0xffffe9ff,0x7ffe4001, 0x06e6005f,0x527fffd4,0xff3000df,0x7ffe45ff,0x06e6005f,0x06ffffc8, 0xff501a80,0x20000bff,0x544ffffc,0xfe83ffff,0xfff50fff,0x7ffc00bf, 0x7fc400ff,0xffff76ff,0xffff500b,0x7fff400b,0x3fffea3f,0x3fffa005, 0x7fffd43f,0x3fffa005,0x7fffd43f,0xd04fffff,0x3feaffff,0xa80005ff, 0x1005ffff,0x400fffff,0x003ffffc,0xfffffff5,0x3ffa09ff,0x7fcc007f, 0x4002ffff,0xf76ffff8,0x4000bfff,0x366ffffe,0x9005ffff,0x8009ffff, 0xf76ffff8,0xd800bfff,0x0002ffff,0x8ffffee0,0xf98004fd,0x3ff62fff, 0x400002ff,0x003ffffe,0x7fffd400,0xff900005,0xfffa89ff,0xffffe83f, 0x0bffff50,0x07ffffc0,0x4ffffee0,0x00fffff8,0x02ffffd4,0x4bffff90, 0x005ffffa,0x83fffff3,0x005ffffa,0x83fffff3,0xffeffffa,0xffe81fff, 0xbffff57f,0xfff50000,0x3fe200bf,0x3f2007ff,0xf5003fff,0xffffdfff, 0xffffd03f,0x7fff4400,0xfb8003ff,0xfff13fff,0x260001ff,0xfaafffff, 0x9000ffff,0x8009ffff,0xf13ffffb,0x4001ffff,0x002ffffe,0x3fffee00, 0x2000bfe4,0x3a2ffff9,0x0002ffff,0x17ffffc0,0x3fea0000,0x900005ff, 0xfa89ffff,0xffe83fff,0xffff50ff,0x7fffc00b,0x7fff400f,0x3ffffa0f, 0x7fffd403,0x3ffea005,0x3fffea6f,0xffff9805,0xffffa86f,0xffff9805, 0xffffa86f,0x86ffffdb,0xff57fffe,0x99999dff,0x59999999,0x05ffffa8, 0x0fffff10,0x1ffffe40,0xbffffa80,0xe86ffffd,0x36007fff,0x005fffff, 0x41ffffd0,0x003ffffe,0x3fffff20,0x003ffffe,0x013ffff2,0x41ffffd0, 0x003ffffe,0x007ffffe,0xffffa800,0x2000ff35,0x3e2ffff9,0x0001ffff, 0x3ffffe20,0x7d400001,0x00005fff,0xa89ffff9,0xfe83ffff,0xfff50fff, 0x999999ff,0xffff9999,0x7ffcc01f,0x7fffd45f,0x7fffd406,0x3ffea005, 0x3fffea7f,0xeeeeeeef,0x2fffffff,0xefffffa8,0xffeeeeee,0xa82fffff, 0xff8bffff,0x7ff43fff,0xfffff57f,0xffffffff,0xfa89ffff,0xf1005fff, 0x6400ffff,0x5003ffff,0xff17ffff,0xffe87fff,0xfff9007f,0x26000dff, 0x7d45ffff,0x20006fff,0xfffffff8,0x7e4006ff,0x26004fff,0x7d45ffff, 0xf1006fff,0x0001ffff,0xb7fffcc0,0x37be25fc,0xffff302c,0x3ffffe25, 0x3e600000,0x2a00ffff,0xeeeeeeee,0xffff53ee,0x3f20000b,0x7fd44fff, 0xfffe83ff,0xfffff50f,0xffffffff,0x1fffffff,0x17fffec0,0x07ffffe2, 0x05ffffa8,0x9ffffe60,0xfffffffa,0xffffffff,0xff504fff,0xffffffff, 0xffffffff,0x3fffea09,0x1fffff93,0xfabffff4,0xffffffff,0xffffffff, 0x2ffffd44,0x7ffff880,0x3ffff200,0xffff5003,0x3fffff27,0x01ffffa0, 0x3fffffea,0xfffb0000,0xffff885f,0x3ea0001f,0x1fffffff,0x7fffe400, 0x3fff6004,0x7fffc42f,0xfff9801f,0xe800007f,0x2feaffff,0x417ffff2, 0xf32ffff9,0x0000ffff,0x0fffff98,0x3ffffee0,0xf54fffff,0x0000bfff, 0x513ffff2,0xfd07ffff,0x3fea1fff,0xffffffff,0xffffffff,0xfff100ff, 0xfffb01ff,0x7ffd40bf,0x3fe6005f,0x3ffea7ff,0xffffffff,0x02ffffff, 0x3fffffea,0xffffffff,0x3ea02fff,0x3ffa3fff,0x3fffa5ff,0xffffff57, 0xffffffff,0xffa89fff,0xff1005ff,0x7e400fff,0xf5003fff,0x7ff47fff, 0x3fffa5ff,0x7fffcc07,0xf10001ff,0xfb01ffff,0x8000bfff,0x4ffffffd, 0xffffc800,0xffff1004,0xffffb01f,0xffff100b,0xb800001f,0x0fffffff, 0x03fffff3,0x44bfffe6,0x000fffff,0x3fffe200,0x3ffee01f,0x4fffffff, 0x55dffff5,0x55555555,0xffc85555,0x7ffd44ff,0xffffe83f,0xffffff50, 0xffffffff,0x01ffffff,0x417fffee,0x00fffffa,0x00bffff5,0x537fffd4, 0xffffffff,0x37ffffff,0xfffff500,0xffffffff,0xff50037f,0x7ffd47ff, 0xffffd2ff,0x3bffffea,0xeeeeeeee,0x7fd43eee,0xff1005ff,0x7e400fff, 0xf5003fff,0x7fd47fff,0xfffd2fff,0x7fffc40f,0x2e0003ff,0xf505ffff, 0x0001ffff,0x7fffffc4,0xfffc8000,0xfff7004f,0x3ffea0bf,0xfff800ff, 0x400001ff,0xfffffff8,0x6fffffec,0x8bfffe60,0x001fffff,0x7ffffc00, 0x3fffee02,0x54ffffff,0xffffffff,0xffffffff,0x7fe41fff,0x7ffd44ff, 0xffffe83f,0xdfffff50,0xdddddddd,0x01fffffd,0x26fffffa,0xfff99999, 0xfff503ff,0x7fdc00bf,0x3ffea5ff,0xffdbaaef,0xa800dfff,0xbaaeffff, 0x0dfffffd,0x3ffffa80,0xeb7fffec,0xfff57fff,0xf50000bf,0x2600bfff, 0x2007ffff,0x003ffffc,0xd87ffff5,0xffd6ffff,0x7fff40ff,0x740004ff, 0x999bffff,0xfffff999,0x7fec0003,0xf90003ff,0x3a009fff,0x999bffff, 0xfffff999,0xffffe803,0x4c00c002,0xffffffff,0x200fffff,0x3a2ffff9, 0x4002ffff,0x7ffff401,0x33332603,0x54ffffec,0xffffffff,0xffffffff, 0x7fe41fff,0x7ffd44ff,0xffffe83f,0x0bffff50,0x07ffffc0,0x7fffffcc, 0xffffffff,0xff506fff,0x7e400bff,0x3fea4fff,0xfffa85ff,0x7d401eff, 0xffa85fff,0x5401efff,0x7c43ffff,0xffebffff,0xbffff57f,0xfff50000, 0x3fe600df,0x3f2006ff,0xf5003fff,0xff887fff,0xfffebfff,0xfffff907, 0xff98000d,0xffffffff,0x6fffffff,0x7ffe4000,0xff90003f,0xff3009ff, 0xffffffff,0xdfffffff,0x9ffffb00,0x167fd400,0xffffff50,0x803fffff, 0x362ffff9,0x2004ffff,0xfc82cffa,0xb8006fff,0xff54ffff,0xffffffff, 0xffffffff,0x7fffe41f,0x1ffffd44,0xa87ffff4,0x2005ffff,0xc80fffff, 0xffffffff,0xffffffff,0xfffa81ff,0x3ff6005f,0x3ffea3ff,0xffff505f, 0x7fd401ff,0xfff505ff,0x7d401fff,0xffb83fff,0x7fffffff,0x00bffff5, 0xfffff300,0x3fffea00,0x3fff2006,0xfff5003f,0xffff707f,0x70ffffff, 0x01ffffff,0xffffc800,0xffffffff,0x01ffffff,0x3ffff200,0xfff90003, 0xfff9009f,0xffffffff,0x3fffffff,0xfffffb80,0xffff9000,0x7ffec40d, 0x800bffff,0x2e2ffff9,0x000fffff,0x98dffff9,0x002fffff,0xaa7fffdc, 0xffffffff,0xffffffff,0x3ff20fff,0x7ffd44ff,0xffffe83f,0x0bffff50, 0x07ffffc0,0x7ffffffc,0xffffffff,0xfa85ffff,0xf1005fff,0x7d45ffff, 0x3f205fff,0x2a06ffff,0x3205ffff,0x206fffff,0xd03ffffa,0xffffffff, 0x17fffeaf,0x3ffe2000,0xffd803ff,0x3f2005ff,0xf5003fff,0x3fa07fff, 0x7fffffff,0x7fffffcc,0xfff80001,0xffffffff,0xffffffff,0x3ff20005, 0xf90003ff,0xff009fff,0xffffffff,0xffffffff,0xfff880bf,0xff9804ff, 0x7ec03fff,0x40009aad,0x222ffff9,0x804fffff,0x83fffff9,0x006fffff, 0x027fffe4,0x403ff980,0xe80007fc,0x3fea7fff,0x3fe005ff,0x7fd40fff, 0xffffffff,0xffffffff,0x7ffd40ff,0xfffb005f,0xffffa8df,0x7ffff405, 0xffff503f,0xffffe80b,0xffff503f,0x3fffe607,0xff57ffff,0x20000bff, 0x00fffffe,0x0fffffea,0x3ffffc80,0x7ffff500,0x3ffffe60,0x3fe27fff, 0x0002ffff,0xffffffa8,0xffffffff,0x00ffffff,0x7ffff900,0x3fff2000, 0x7ffd404f,0xffffffff,0xffffffff,0x7ffdc00f,0x3fa203ff,0x7c00ffff, 0x7cc0001f,0x7fdc2fff,0x3a203fff,0xa80fffff,0x01efffff,0x7ffffe44, 0x3ff50004,0x0006fd80,0x2a7ffff8,0x2005ffff,0x6c0fffff,0x999cffff, 0xf9999999,0x7d43ffff,0xfb805fff,0x7d41ffff,0x7cc05fff,0xa81fffff, 0x4c05ffff,0x81ffffff,0x203ffffa,0xfffffffc,0x0bffff57,0x3ffee000, 0x730acfff,0x01ffffff,0x1ffffe40,0x3ffffa80,0x3fffff20,0x3fffa7ff, 0xb00004ff,0x3339ffff,0xf3333333,0x0007ffff,0x00fffff2,0x27fffe40, 0x33ffff60,0x99999999,0x3fffff99,0xfffffe80,0xfff730ad,0xfa809fff, 0xff980007,0xfffe82ff,0xf730adff,0x409fffff,0xcffffffd,0xfff9530a, 0x0009ffff,0xff00bfee,0x2e22000f,0x3ea7ffff,0x3e005fff,0x3e20ffff, 0x2000ffff,0x546ffffc,0xaaaeffff,0xfffecaaa,0xfffa85ff,0xfffb805f, 0xfffa86ff,0xfffb805f,0xfffa86ff,0x3ffe203f,0xff57ffff,0x55555dff, 0x55555555,0xfffffd05,0xffffffff,0xc8007fff,0x5003ffff,0x4407ffff, 0x7fffffff,0x5ffffff7,0x55555555,0x44155555,0x000fffff,0x01bffff2, 0x1ffffe40,0xffffc800,0x3fffe204,0x3ff2000f,0xff9806ff,0xffffffff, 0x06ffffff,0x98004fc8,0xffffdccc,0xfffff982,0xffffffff,0x74406fff, 0xffffffff,0xffffffff,0x90003fff,0xfff809ff,0x7ffcc001,0x3ea5ffff, 0x3e005fff,0x3f20ffff,0x4c005fff,0x2a2fffff,0xffffffff,0xffffffff, 0xfffa80ff,0xfffd005f,0xfffa87ff,0xfffd005f,0xfffa87ff,0x7ffd403f, 0xfff57fff,0xffffffff,0xffffffff,0xfffff981,0xffffffff,0x64000eff, 0x5003ffff,0xa807ffff,0x97ffffff,0xffffffff,0xffffffff,0x7e43ffff, 0x4c005fff,0x002fffff,0x03ffffc8,0x9ffff900,0x2ffffe40,0x3fffe600, 0xfffa802f,0xffffffff,0xf800efff,0xffa8002f,0x02ffffff,0xfffffff5, 0xdfffffff,0xfffb1001,0xffffffff,0x05ffffff,0x67ffcc00,0x77ff43a9, 0x7d402a9b,0x23ffffff,0x005ffffa,0xf83ffffe,0x8002ffff,0x2a5ffffe, 0xffffffff,0xffffffff,0xffff502f,0x3ffe600b,0x3fea0fff,0xff3005ff, 0x7d41ffff,0xfd803fff,0xff57ffff,0xffffffff,0xffffffff,0xfffd101f, 0xffffffff,0x3f20009f,0xf5003fff,0xfb007fff,0x3f2fffff,0xffffffff, 0xffffffff,0x3ffe1fff,0xfe8002ff,0xc8005fff,0x0003ffff,0x409ffff9, 0x002fffff,0x05ffffe8,0xfffffb10,0x1bffffff,0x001ff300,0xffffff50, 0x7ec405ff,0xffffffff,0x64000dff,0xffffffff,0x0bffffff,0xfffe8000, 0x3fee0fff,0x6405ffff,0x45ffffff,0x005ffffa,0x543ffffe,0x000fffff, 0x0fffffb8,0xfffffff5,0xffffffff,0x7ffd4019,0x3fee005f,0x3fea5fff, 0x3ee005ff,0x3ea5ffff,0xf8803fff,0xff57ffff,0xffffffff,0xffffffff, 0x7ff5c01f,0x2defffff,0x3fff2000,0xfff5003f,0xfff1007f,0x3fff2fff, 0xffffffff,0xffffffff,0xfffff51f,0xfff70001,0xfc8001ff,0x90003fff, 0x2a09ffff,0x000fffff,0x0fffffb8,0x3ffb6a00,0x001dffff,0x54001766, 0xffffffff,0xffeda802,0x001dffff,0x3fffae20,0x02bdefff,0x7ffd4000, 0x7fe40fff,0x7f404fff,0x540dffff,0x2005ffff,0xfb0fffff,0x2000bfff, 0x53fffff8,0xffffffff,0x0179bdff,0x0bffff50,0xfffffe80,0x0bffff52, 0xfffffe80,0x07ffff52,0x5fffff20,0xfffffffa,0xffffffff,0x8800ffff, 0x0001aaa9,0x0fffff20,0x1ffffd40,0x7ffffc80,0xfffffff9,0xffffffff, 0x363fffff,0x0005ffff,0x07fffff1,0x3ffffc80,0xffff9000,0x3ffff609, 0xfff10005,0x220007ff,0x000009a9,0x33331000,0x80013333,0x00009a98, 0x01353300,0x75100000,0x01b98015,0x40375510,0x005ffffa,0x003ffffe, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x42aaa800,0x0001aaa8,0x54c15555,0x988001aa, 0x31000999,0x54003333,0x0000aaaa,0x01555551,0x33310000,0x13333333, 0x55544000,0x00d554c2,0x46aaaaa0,0x55442aaa,0x0aaaa01a,0xa8015553, 0x2000aaaa,0x00019998,0x774c17aa,0x99930000,0x54000039,0x002cb80a, 0x03555530,0x55530000,0x0dea8055,0x9881ee98,0x9802a880,0x5440004c, 0x555542aa,0x99998800,0x00999999,0x07dddd10,0x15555000,0x00155544, 0x897ffe40,0x0000fffe,0x7dc1ffff,0xfe8005ff,0xfb005fff,0x2e005fff, 0x0004ffff,0x01ffffe4,0x7ffec000,0x3fffffff,0x3ffe2000,0x027ffe47, 0x1dffff10,0xfd93ffea,0x3ff201ff,0x1dfff12f,0x5ffffa80,0xffffd100, 0x3fe60009,0x0007fd83,0x00bfffee,0x3fffea00,0x03ff98ad,0xfffff100, 0xfd800001,0x7cc02fff,0x447fc83f,0x362cfffd,0x0ffb805f,0x3ffe6000, 0x01fffec6,0x7fffffe4,0x1004ffff,0x0009ffff,0x545fffd0,0x00006fff, 0xffb1fffd,0x7fc0005f,0x3ffee0ff,0x7ffdc005,0x7cc03fff,0x3a003fff, 0x00005fff,0x000ffff9,0xfffffb00,0x007fffff,0x23fffc40,0x2004fffc, 0x640ffffc,0xfffbafff,0x8fffe804,0x7001fffd,0xb001ffff,0x05ffffff, 0x2f7ffa00,0x0004ffeb,0x00bfffee,0x3ffffa00,0x02ffffff,0x3fffe600, 0x3e600003,0xfd002fff,0x9ffd77bf,0xffffffc8,0x7104ffff,0x039dfffb, 0x8dfff300,0xc803fffd,0xffffffff,0xff1004ff,0xd00009ff,0x7fd45fff, 0xf100006f,0x09ffffff,0x0ffff800,0x8017ffee,0xffedfff9,0x3fff601f, 0x3ffea004,0x7ec00005,0x400003ff,0xfffffffd,0x20003fff,0x7e47fff8, 0xff1004ff,0x3ffa03ff,0x3006ffff,0x9fffffff,0x4fffc800,0x7efffd40, 0x98000fff,0x6fffffff,0x7ffdc000,0x7cc0002f,0xffffeccf,0xf980006f, 0x200006ff,0x2003fffd,0xfffffff8,0x7677f40e,0x81ffffff,0xffffffe9, 0x26000dff,0x7fec6fff,0xfffc803f,0x4fffffff,0x9ffff100,0xfffd0000, 0x037ffd45,0xffff7000,0xff0000df,0x7ffdc1ff,0xfffd1005,0x20dfff31, 0x4004fff8,0x0000effe,0x006ffd80,0x00000000,0xc8ffff10,0xf7004fff, 0x7fcc03ff,0x2001ffff,0x06fffffb,0x01fff900,0x7d5bffe2,0xb10005ff, 0x0009ffff,0x05ffff70,0x446fb800,0x00002ddb,0x000bffea,0x013ffe20, 0x3ffff620,0x10ffc40c,0xf503bfd7,0xffffffff,0x7cc00dff,0x7ffec6ff, 0x00000003,0x007dddd1,0x45fffd00,0x0006fffa,0x0f777640,0x00000000, 0x2a1fffc8,0xffc84fff,0x77fcc005,0xd1000000,0x000005ff,0x00000000, 0x17ff4000,0x1f7775c0,0x77776c00,0x3ff60001,0x41fffb03,0x0002fffb, 0x00000044,0x00000000,0x6ffa8000,0x4ffc8000,0x00088000,0xffff1000, 0xffffffff,0x0000009f,0x00000000,0x00000000,0x00000000,0x00f33326, 0x02666644,0x00000000,0x00000000,0xd9530000,0x00379dff,0x3fb2a600, 0x0001bcef,0x00000000,0x00000000,0x00000000,0x40000000,0xceffeca9, 0x0000001b,0x00000000,0xf9000000,0x5ff79fff,0x001ffffd,0x2ccccc88, 0x3332a000,0x3333202c,0xcccccccc,0x42cccccc,0x00cccccb,0x33333220, 0xccc88002,0x7d4002cc,0xf1005fff,0x664cffff,0x930001cc,0x55103999, 0x00000555,0x2ccccc88,0xfff50000,0xffffffff,0x3ea0003d,0xffffffff, 0xca801eff,0x32a02ccc,0x33202ccc,0xcccccccc,0xcccccccc,0x59999502, 0x33333326,0xcccccccc,0x3262cccc,0xcccccccc,0xcccccccc,0x3333262c, 0xcccccccc,0x02cccccc,0xffffffa8,0x01efffff,0x6666664c,0xcccccccc, 0x3262cccc,0xcccccccc,0xcccccccc,0x9999502c,0x99995005,0x57fffa05, 0xfffa8ffb,0x7fdc002f,0x20006fff,0x104ffffc,0xffffffff,0xffffffff, 0xfffa89ff,0x3f6004ff,0x8001ffff,0x06fffffb,0x2ffffd40,0x7ffff880, 0x00ffffee,0x1ffffd40,0x037fffcc,0x3fee0000,0x40006fff,0xffffffd8, 0xffffffff,0x3ff62003,0xffffffff,0x6403ffff,0x3204ffff,0xf104ffff, 0xffffffff,0xffffffff,0x3fff209f,0xfffff54f,0xffffffff,0x549fffff, 0xffffffff,0xffffffff,0x3ffea4ff,0xffffffff,0x4fffffff,0x3ffff620, 0xffffffff,0x3fea03ff,0xffffffff,0xffffffff,0x3ffffea4,0xffffffff, 0x904fffff,0x9009ffff,0x3e09ffff,0x1ff72fff,0x00026af2,0x3ffffffd, 0x3fff2000,0xffff104f,0xffffffff,0x09ffffff,0x03fffffb,0x9fffff30, 0x3fffa000,0x2a001fff,0x1005ffff,0x7dcfffff,0x50003fff,0xf307ffff, 0x0000dfff,0xfffffe80,0xff10001f,0xffffffff,0xdfffffff,0xffff8801, 0xffffffff,0x00efffff,0x409ffff9,0x104ffffc,0xffffffff,0xffffffff, 0x3ff209ff,0xffff54ff,0xffffffff,0x49ffffff,0xfffffffa,0xffffffff, 0x3fea4fff,0xffffffff,0xffffffff,0xfffff104,0xffffffff,0x501dffff, 0xffffffff,0xffffffff,0x7ffd49ff,0xffffffff,0x4fffffff,0x09ffff90, 0x09ffff90,0x7dcffffe,0xf980000f,0x05ffffff,0x9ffff900,0x3ffffe20, 0xffffffff,0x884fffff,0x806fffff,0x006ffffe,0xffffff30,0x7fd400bf, 0xff1005ff,0x7ffdcfff,0xff50003f,0xfff307ff,0x400000df,0xfffffff9, 0xfffb0005,0x9779dfff,0x9ffffffd,0xfffffd80,0xfecbbcef,0x904fffff, 0x6409ffff,0xf104ffff,0xffffffff,0xffffffff,0x3fff209f,0xfffff54f, 0xffffffff,0x549fffff,0xffffffff,0xffffffff,0x3ffea4ff,0xffffffff, 0x4fffffff,0xffffffb0,0xffd9779d,0xf509ffff,0xffffffff,0xffffffff, 0x7fffd49f,0xffffffff,0x04ffffff,0x009ffff9,0x209ffff9,0xff76fffe, 0xff900001,0x01ffffff,0x9ffff900,0x3bbbba20,0xfeeeeeee,0x703fffff, 0x407fffff,0x02fffffb,0xfffff900,0x2a001fff,0x1005ffff,0x7dcfffff, 0x50003fff,0xf307ffff,0x0000dfff,0x7ffffe40,0x54000fff,0x02ffffff, 0x3fffffea,0xfffff501,0x7ffd405f,0xffc81fff,0x3ff204ff,0xddd104ff, 0xdddddddd,0x7ffffffd,0x53ffff20,0xeefffffa,0xeeeeeeee,0x3fea3eee, 0xeeeeefff,0xeeeeeeee,0x3ffffea3,0xeeeeeeee,0xa83eeeee,0x02ffffff, 0x3fffffea,0x7ffffd41,0xeeeeeeee,0x2a3eeeee,0xeeefffff,0xeeeeeeee, 0xfff903ee,0xfff9009f,0x3fff609f,0x000ffcef,0xffffff80,0xc8003fff, 0x0004ffff,0xbfffffb0,0xfffffe80,0xfffff880,0x3ffe0005,0x03ffffff, 0x0bffff50,0x9ffffe20,0x003ffffb,0x07ffff50,0x00dffff3,0x7fffc000, 0x003fffff,0x3bffffe2,0xfffe8800,0xffff886f,0xfe8800ef,0xffc86fff, 0x3ff204ff,0xb00004ff,0x40bfffff,0xf54ffffc,0x0000bfff,0x00bffff5, 0xbffff500,0x3fe20000,0x8800efff,0x546ffffe,0x0005ffff,0x05ffffa8, 0x7ffe4000,0xfffc804f,0xffff304f,0x0001ffff,0xfeffffa8,0xc8006fff, 0x0004ffff,0xefffffc8,0x7fffcc00,0xffffc84f,0xff50000f,0xdffffdff, 0x3fffea00,0xffff1005,0x1ffffdcf,0xffffa800,0x6ffff983,0xff500000, 0xdffffdff,0x7fffdc00,0x3fea002f,0x7fdc3fff,0x2a002fff,0x643fffff, 0x3204ffff,0x0004ffff,0xefffffc8,0x3ffff200,0x0bffff54,0xffff5000, 0xff50000b,0x20000bff,0x02fffffb,0x3ffffea0,0x17fffea3,0x3ffea000, 0x6400005f,0xc804ffff,0x3604ffff,0xffffffff,0xffb0002d,0xffffd3ff, 0xfffc8003,0x7d40004f,0x000fffff,0x43fffff9,0x02fffff9,0x3ffff600, 0x01ffffe9,0x05ffffa8,0x4fffff10,0x2a3ffffb,0xa80bdeec,0xf983ffff, 0x00006fff,0xd3ffffb0,0x2003ffff,0x006ffffd,0x45ffffe8,0x006ffffd, 0x45ffffe8,0x204ffffc,0x004ffffc,0x7ffffd40,0x7ffe400f,0xbffff54f, 0xfff50000,0xf50000bf,0x0000bfff,0x01bffff6,0x97ffffa0,0x005ffffa, 0x5ffffa80,0x7fe40000,0xffc804ff,0x3f6204ff,0xffffffff,0x3fe2001f, 0xffff76ff,0xfffc800b,0x3e60004f,0x002fffff,0xb37ffff4,0x000bffff, 0xbb7fffc4,0xa805ffff,0x1005ffff,0x7dcfffff,0xffe8bfff,0x542fffff, 0xf983ffff,0x00006fff,0x76ffff88,0x100bffff,0x005fffff,0x4dffff50, 0x02fffff8,0x6ffffa80,0x027fffe4,0x009ffff9,0x7ffffcc0,0xfffc802f, 0xbffff54f,0xfff50000,0xf50000bf,0x0000bfff,0x05fffff1,0xdffff500, 0x02ffffd4,0x7fffd400,0x7e400005,0xfc804fff,0xfc804fff,0xffffffff, 0xfff7003f,0x3fffe27f,0x3ff2000f,0xd10004ff,0x007fffff,0x5fffff30, 0x01fffff5,0x7fffdc00,0x1fffff13,0x5ffffa80,0xfffff100,0x76ffffdc, 0xffffffff,0x3fffea2f,0x6ffff983,0xffb80000,0xffff13ff,0xfff9801f, 0xf98001ff,0x3fe67fff,0x98001fff,0x7e47ffff,0x3f204fff,0x10004fff, 0x07fffffd,0x53ffff20,0x005ffffa,0x5ffffa80,0xfffa8000,0xf980005f, 0x8001ffff,0x2a7ffff9,0x0005ffff,0x05ffffa8,0x7ffe4000,0xfffc804f, 0xfd71004f,0x3fffffff,0x1ffffd00,0x01fffff4,0x09ffff90,0x3ffff600, 0x3f20005f,0xfffeffff,0x7f40003f,0x3ffa0fff,0x7fd403ff,0xff1005ff, 0x7ffdcfff,0xffefffff,0x3ea5ffff,0xff983fff,0x800006ff,0x3a0ffffe, 0x4c03ffff,0x000fffff,0x0fffff88,0x01fffff3,0xfffff100,0x27fffe41, 0x09ffff90,0x3ffff600,0x3ff2005f,0xffff54ff,0x9999999d,0xa8599999, 0xccceffff,0xcccccccc,0x7fffd42c,0xccccccce,0x4c2ccccc,0x000fffff, 0x0fffff88,0x99dffff5,0x99999999,0xfffa8599,0xccccccef,0x02cccccc, 0x013ffff2,0x013ffff2,0xfffdff70,0xff980bff,0x7ffd45ff,0x3ff2006f, 0xfc8004ff,0x0006ffff,0x7fffffc4,0x40006fff,0x545ffff9,0x5406ffff, 0x1005ffff,0x7dcfffff,0x642fffff,0xf50fffff,0xff307fff,0x80000dff, 0x545ffff9,0x5406ffff,0x0007ffff,0x547ffffe,0x0007ffff,0xc87ffffe, 0x3204ffff,0x8004ffff,0x06fffffc,0xa7fffe40,0xfffffffa,0xffffffff, 0x7ffd44ff,0xffffffff,0x44ffffff,0xfffffffa,0xffffffff,0x7ffd44ff, 0x3fe0007f,0xfff51fff,0xffffffff,0x89ffffff,0xfffffffa,0xffffffff, 0x3ff204ff,0xffc804ff,0x7dc004ff,0x7ffffb8f,0x17fffec0,0x07ffffe2, 0x27fffe40,0x3fffea00,0xa80000ff,0xffffffff,0x7fec0001,0x7ffc42ff, 0x3fea01ff,0xff1005ff,0x7ffdcfff,0xfffd02ff,0x3fffea3f,0x6ffff983, 0x7fec0000,0x7ffc42ff,0x3fea01ff,0x3e0007ff,0xff52ffff,0x7c000fff, 0x3f22ffff,0x3f204fff,0x54004fff,0x00ffffff,0xa7fffe40,0xfffffffa, 0xffffffff,0x7ffd44ff,0xffffffff,0x44ffffff,0xfffffffa,0xffffffff, 0x7ffd44ff,0x3fe0007f,0xfff52fff,0xffffffff,0x89ffffff,0xfffffffa, 0xffffffff,0x3ff204ff,0xffc804ff,0x7dc004ff,0x3ffff70f,0x3ffffe20, 0x5ffffd80,0x9ffff900,0x7fffcc00,0x200001ff,0x4ffffffd,0x7ffc4000, 0xfffd80ff,0x3ffea05f,0xfff1005f,0x7fffdcff,0x3ffff206,0x07ffff52, 0x00dffff3,0x7fffc400,0xffffd80f,0x3fffe605,0xfff10007,0x3ffe63ff, 0xff10007f,0x7fe43fff,0x3ff204ff,0x3e6004ff,0x001fffff,0x54ffffc8, 0xffffffff,0xffffffff,0xffffa89f,0xffffffff,0x544fffff,0xffffffff, 0xffffffff,0x7fffcc4f,0xfff10007,0x3ffea3ff,0xffffffff,0x44ffffff, 0xfffffffa,0xffffffff,0x3ff204ff,0xffc804ff,0xcaa884ff,0x7c43fee4, 0xff701fff,0x3fea0bff,0xfc800fff,0xf1004fff,0x007fffff,0xffff8800, 0x5c0000ff,0xf505ffff,0x2a01ffff,0x1005ffff,0x7dcfffff,0x3ee05fff, 0xfff52fff,0xffff307f,0x7dc0000d,0xff505fff,0x3e201fff,0x8000ffff, 0x10fffff9,0x001fffff,0x1fffff30,0x027fffe4,0x009ffff9,0x3fffffe2, 0xfff90003,0x3fffea9f,0xeeeeeeef,0x543eeeee,0xeeefffff,0xeeeeeeee, 0x7fffd43e,0xeeeeeeef,0x443eeeee,0x000fffff,0x0fffff98,0xddfffff5, 0xdddddddd,0xfffa87dd,0xeeeeeeff,0x03eeeeee,0x013ffff2,0x213ffff2, 0xf71ffffc,0x3fffe21f,0x7ffffd00,0xff333333,0xf9007fff,0x3a009fff, 0x004fffff,0xffffb000,0xffd00007,0x333337ff,0x07fffff3,0x017fffea, 0x73ffffcc,0x5c09ffff,0xff53ffff,0xfff307ff,0x740000df,0x999bffff, 0xfffff999,0x3ffffe03,0xfffa8001,0x7ffffc6f,0xfffa8001,0x7fffe46f, 0x3ffff204,0xffffd004,0x7e40009f,0xfff54fff,0xf50000bf,0x0000bfff, 0x00bffff5,0x3ffffe00,0xfffa8001,0x3fffea6f,0xffa80005,0x400005ff, 0x804ffffc,0x984ffffc,0xff75ffff,0x41fffee1,0xfffffff9,0xffffffff, 0xffc806ff,0xffc804ff,0x00006fff,0x0fffff20,0xffff3000,0xffffffff, 0x20dfffff,0x006ffffa,0x5cdffff3,0x2e03ffff,0xff53ffff,0xfff307ff, 0x260000df,0xffffffff,0xffffffff,0x3fffa06f,0xffd8004f,0x7fff45ff, 0xffd8004f,0x7ffe45ff,0x3fff204f,0xfffc804f,0x640006ff,0xff54ffff, 0x50000bff,0x000bffff,0x0bffff50,0x3fffa000,0xffd8004f,0x3ffea5ff, 0xfa80005f,0x00005fff,0x027fffe4,0x827fffe4,0xfbdfffff,0x4ffffa8f, 0xffffff90,0xffffffff,0xc803ffff,0x5c04ffff,0x00ffffff,0x3ff20000, 0x640003ff,0xffffffff,0xffffffff,0xfff981ff,0xfff5007f,0x7fffdcdf, 0x3fffee03,0x07ffff53,0x00dffff3,0x3ffff200,0xffffffff,0x01ffffff, 0x03fffff9,0x7ffffcc0,0x7ffffe44,0x3ffe6001,0x7ffe44ff,0x3fff204f, 0x7ffdc04f,0x40000fff,0xf54ffffc,0x0000bfff,0x00bffff5,0xbffff500, 0x3ff20000,0x26001fff,0x2a4fffff,0x0005ffff,0x05ffffa8,0x7ffe4000, 0xfffc804f,0xffff704f,0xfffdffff,0x3ffe01ff,0xffffffff,0xffffffff, 0x7fffe405,0x3fffe604,0x000001ff,0x01ffffe4,0x3ffffe00,0xffffffff, 0x85ffffff,0x03fffff8,0x25ffffd8,0x203ffffb,0xf53ffffb,0xff307fff, 0x20000dff,0xffffffff,0xffffffff,0xff305fff,0x6c00bfff,0x4c0fffff, 0x005fffff,0x03fffff6,0x409ffff9,0x204ffffc,0x1ffffff9,0xfffc8000, 0xbffff54f,0xfff50000,0xf50000bf,0x0000bfff,0x17ffffe6,0xfffffd80, 0x17fffea0,0x3ffea000,0x6400005f,0xc804ffff,0x3604ffff,0xffffffff, 0xf503ffff,0xffffffff,0xffffffff,0x7e401fff,0xff104fff,0x0005ffff, 0xffff9000,0x7fd40007,0xffffffff,0xffffffff,0xfffe80ff,0x3fea00ff, 0x3fee3fff,0x3fee03ff,0xffff53ff,0xdffff307,0xfff50000,0xffffffff, 0xffffffff,0x3fff201f,0x36200dff,0x903fffff,0x01bfffff,0x7ffffec4, 0x4ffffc83,0x13ffff20,0x7fffffc4,0xff900002,0x3ffea9ff,0xfa80005f, 0x80005fff,0x005ffffa,0x3ffff200,0x3f6200df,0x7d43ffff,0x80005fff, 0x005ffffa,0x7fffe400,0xffffc804,0x3fff6204,0x2fffffff,0x33ffff60, 0x99999999,0x3fffff99,0x13ffff20,0x27fffff4,0xfc800000,0x20003fff, 0x99cffffd,0x99999999,0xb83fffff,0xacffffff,0xfffff730,0x7fffdc1f, 0x3fffee03,0x07ffff53,0x00dffff3,0x9ffffb00,0x33333333,0x7fffff33, 0x7fffff40,0xfb9889bf,0x406fffff,0xbffffffe,0xfffb9889,0xff906fff, 0x7fe409ff,0xfffd04ff,0x400009ff,0xf54ffffc,0x0000bfff,0x00bffff5, 0xbffff500,0xffe80000,0x889bffff,0xffffffb9,0x5ffffa86,0xfffa8000, 0x6400005f,0xc804ffff,0xa804ffff,0xcefffffe,0x3fffe200,0x3ff2000f, 0x3ff206ff,0xfffb84ff,0xaaaaafff,0xaaaaaaaa,0x7fe4000a,0xf10003ff, 0x4001ffff,0xd06ffffc,0xffffffff,0xffffffff,0x3ffffb87,0x4ffffee0, 0x983ffffa,0xaaafffff,0xaaaaaaaa,0x3fffe22a,0x3ff2000f,0x3fea06ff, 0xffffffff,0xffffffff,0x7fffd402,0xffffffff,0x02ffffff,0x409ffff9, 0xb84ffffc,0xaaffffff,0xaaaaaaaa,0xfc80aaaa,0xfff54fff,0x555555df, 0x55555555,0x577fffd4,0xaaaaaaaa,0x3ea2aaaa,0xaaaaefff,0xaaaaaaaa, 0xffff502a,0xffffffff,0x05ffffff,0x55dffff5,0x55555555,0x7fd45555, 0xaaaaaeff,0xaaaaaaaa,0x9ffff902,0x9ffff900,0x0ffe4400,0x5ffffc80, 0x7fffcc00,0xffff902f,0xfffff909,0xffffffff,0x3fffffff,0xffffc800, 0xfff90003,0xff9800bf,0xff982fff,0xffffffff,0x40efffff,0x203ffffb, 0xf53ffffb,0xff307fff,0xffffffff,0xbfffffff,0x02ffffe4,0x3ffffe60, 0x3fffea02,0xffffffff,0x5001efff,0xffffffff,0xdfffffff,0x7fffe403, 0x3ffff204,0xfffffc84,0xffffffff,0x1fffffff,0x54ffffc8,0xffffffff, 0xffffffff,0x3fea1fff,0xffffffff,0xffffffff,0xfffff50f,0xffffffff, 0x01ffffff,0x3fffffea,0xffffffff,0xfff501ef,0xffffffff,0xffffffff, 0x3ffffea1,0xffffffff,0x80ffffff,0x804ffffc,0x004ffffc,0xf8007fdc, 0x8002ffff,0x905ffffe,0xf909ffff,0xffffffff,0xffffffff,0xc8003fff, 0x0003ffff,0x005fffff,0x0bffffd0,0x3fffffa2,0x4fffffff,0x07ffff70, 0xa9ffffdc,0xf983ffff,0xffffffff,0xffffffff,0x0bffffe5,0x3ffffa00, 0x7ffe4405,0xffffffff,0xfc88004f,0xffffffff,0xfc804fff,0x3f204fff, 0xffc84fff,0xffffffff,0xffffffff,0xfffc81ff,0xfffff54f,0xffffffff, 0x21ffffff,0xfffffffa,0xffffffff,0xff50ffff,0xffffffff,0xffffffff, 0x7fe4401f,0xffffffff,0x7fd404ff,0xffffffff,0xffffffff,0xfffff50f, 0xffffffff,0x01ffffff,0x009ffff9,0x009ffff9,0xa800ffb8,0x000fffff, 0x0fffffb8,0x84ffffc8,0xfffffffc,0xffffffff,0x001fffff,0x01ffffe4, 0x7ffffd40,0xfffb8000,0x3fae00ff,0xdeffffff,0x3fffee02,0x3fffee03, 0x07ffff53,0xfffffff3,0xffffffff,0x3ffeabff,0xfb8000ff,0xa800ffff, 0xffffffec,0x540001ce,0xffffffec,0xff9001ce,0x7fe409ff,0xfffc84ff, 0xffffffff,0xffffffff,0xffffc81f,0xffffff54,0xffffffff,0x2a1fffff, 0xffffffff,0xffffffff,0xfff50fff,0xffffffff,0xffffffff,0xffd95001, 0x039dffff,0xffffff50,0xffffffff,0x2a1fffff,0xffffffff,0xffffffff, 0xffc80fff,0xffc804ff,0x64c004ff,0xffffb004,0x3fe2000b,0xffc83fff, 0xfffc84ff,0xffffffff,0xffffffff,0x7fe4001f,0xfd8003ff,0x10005fff, 0x007fffff,0x00355531,0x01ffffdc,0x2a7ffff7,0xf983ffff,0xffffffff, 0xffffffff,0x0bffffb5,0x3fffe200,0xaa98003f,0x4c000001,0xf90001aa, 0x7e409fff,0xffc84fff,0xffffffff,0xffffffff,0xfffc81ff,0xfffff54f, 0xffffffff,0x21ffffff,0xfffffffa,0xffffffff,0xff50ffff,0xffffffff, 0xffffffff,0x5530001f,0xfff50003,0xffffffff,0xffffffff,0x3ffffea1, 0xffffffff,0x80ffffff,0x804ffffc,0x004ffffc,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x2eeee980, 0x44155550,0x40002aaa,0x01cb80aa,0x220aaaa8,0x33102aaa,0x33333333, 0x26620001,0x99999999,0x0d4c0000,0x40001e4c,0x000002c9,0x00000000, 0x00000000,0x00006400,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x80000000,0x33099998,0xccc98333,0x7ffff52c, 0x98bfffa0,0x70007fff,0x3159ffff,0xffb005ff,0x3fffcc5f,0xffffffd8, 0x0004ffff,0xfffffffd,0x20005fff,0x9befffe9,0x40006fd8,0x000ffffd, 0x7f65cc00,0x0001bcef,0x019dffb5,0x003ffea0,0xffd97300,0xdfb059bd, 0x7ffe4001,0x2fff404f,0x3b2e6000,0x000bcdff,0x7ff75cc0,0x2000cdef, 0x3f21fffd,0xccc882ff,0xfedb983c,0x260001de,0xbceffeca,0x2ea20001, 0x0cdeffed,0x1bffa000,0x7cc07fd4,0x06fc801f,0xfe800ff7,0xfff98eff, 0x7fffd43f,0x07ffff53,0xf98bfffa,0xff0007ff,0xffffffff,0xfffb003f, 0x83fffcc5,0xfffffffd,0xd0004fff,0xffffffff,0x320005ff,0xffffffff, 0x260004ff,0x004fb9df,0xffffd300,0x3dffffff,0x7fffec00,0xfe801eff, 0x3a60004f,0xffffffff,0xfff92eff,0x3ffe2009,0x7ffd805f,0xfffd3000, 0x5fffffff,0xfffd3000,0xffffffff,0xfff1003b,0x09fff71d,0x89bfffe6, 0xfffffffe,0x7fd4004f,0xffffffff,0x7d4001ef,0xffffffff,0x44000cff, 0xff104fff,0x200ffb09,0x7fc42ffa,0x3ffea005,0x09fffb1f,0x2a7ffff5, 0xfd03ffff,0x7ffcc5ff,0xcffa8007,0x5fffffec,0x45fffb00,0xfb07fff9, 0xffffffff,0x3fa0009f,0xffffffff,0xdfd0002f,0xffffffb7,0x0fe40003, 0xf90000fd,0xffffffff,0x009fffff,0xffdffff5,0xfffa80df,0xfff90000, 0xffffffff,0xbfffffff,0x2fffdc00,0x00fffb80,0x7ffffdc0,0xffffffff, 0xfff7000d,0xffffffff,0x3005ffff,0xdfffbfff,0xb7fffcc0,0xfffffff9, 0x8804ffff,0xfffffffd,0x3fffffff,0xfffff700,0xffffffff,0x7fd4003f, 0x3fff602f,0x003fffdd,0x3f73bffa,0x3fa001ff,0xdfff31ff,0x4ffffea0, 0xd03ffffa,0x7fcc5fff,0x5fc8007f,0x0016f5c4,0x7cc5fffb,0x000007ff, 0x00000000,0xdb507fe2,0xfa800019,0x4000bf13,0xffffffe8,0xffffffff, 0x3fa00eff,0x5fff90ef,0x0027ff40,0x7fffff44,0xffffffff,0x006fffff, 0x30037ffc,0x22005fff,0xfffffffe,0xffffffff,0xffffd806,0xffffffff, 0x802fffff,0x1ffffffc,0x3bfffe60,0xfffffffb,0x02ffffff,0x3fffffe2, 0xffffffff,0x3200efff,0xffffffff,0x6fffffff,0x03fff200,0xfffffe88, 0x7fcc005f,0x003fffff,0xfd8bffe6,0xfff500ef,0x0000007f,0x00000000, 0x00000000,0x00000000,0x40000000,0x03ffeff8,0x3ffff600,0xecbbceff, 0x05ffffff,0x7cc9fff1,0xfff504ff,0xfffb0001,0x9559dfff,0xfffffffb, 0x77fdc001,0x27ffc000,0xfffffc80,0xfffdbbdf,0x2e04ffff,0xdeffffff, 0xfffffdab,0xfe800fff,0x7cc03fff,0xffffffff,0xffffeccf,0x3ff606ff, 0xbbceffff,0xffffffec,0x3ffffe04,0xffba9bdf,0xb004ffff,0x3ae00dff, 0x10002dff,0x003bdfd9,0x3e24ffd8,0x2aa201ff,0x999951aa,0x33333265, 0xcccccccc,0x002ccccc,0x16666644,0x99995000,0x99999305,0x99999999, 0x00599999,0x2ccccc88,0x66664c00,0x3332e003,0x3ffee004,0xf50006ff, 0x405fffff,0x1ffffffa,0x223fff98,0xffd05fff,0xfff5000b,0x75405fff, 0x002fffff,0x20002662,0xf8806ffd,0x880effff,0x0ffffffa,0xffffff98, 0x3fffa603,0x000004ff,0xfffffff3,0xffff5039,0xfff503ff,0x7d405fff, 0x981fffff,0x7c06ffff,0xf006ffff,0x000009ff,0x00000000,0x7fe40000, 0xffff54ff,0xffffffff,0x09ffffff,0xfffffb80,0x3ff20006,0xfffa84ff, 0xffffffff,0x4fffffff,0x7fffdc00,0x7fd4006f,0xfd002fff,0x7f400fff, 0x001fffff,0x0effffe8,0xffffe880,0x22fffa86,0xfa86fff8,0xfe8000ff, 0x4c00efff,0x06ffffff,0xf7028000,0xffd801ff,0xffb805ff,0xffe84fff, 0xf8801fff,0x0007ffff,0xfffff300,0xfffb809f,0x7ffc43ff,0xe8800eff, 0xfc86ffff,0x7dc02fff,0x4c00ffff,0x00002fff,0x00000000,0x2ee98000, 0x553ffff2,0xffffffff,0xffffffff,0x7f4004ff,0x001fffff,0x09ffff90, 0xfffffff5,0xffffffff,0xe8009fff,0x01ffffff,0x3ffffea0,0xfffe800f, 0xffff3007,0xb800bfff,0x002fffff,0x0fffffea,0x7c47fff5,0x5ffe85ff, 0xffffb800,0x7ff4402f,0x801fffff,0x2cefedba,0x3fe613f2,0x3ffea02f, 0xffd001ff,0xfff887bf,0x3ee003ff,0x2a00ceff,0x01bcefdc,0x1bffffe6, 0x3ffffe20,0x7ffffdc5,0x3ffea002,0x7ffec3ff,0xeeee803f,0x7ffdc01e, 0xeeca8800,0xca8002bd,0x001bcefd,0xbdeeca88,0x24ffb802,0xf54ffffc, 0xffffffff,0xffffffff,0x7fcc009f,0x005fffff,0x09ffff90,0xfffffff5, 0xffffffff,0x4c009fff,0x5fffffff,0x3fffea00,0xffe804ff,0xfff9007f, 0x001fffff,0x037fffec,0x2fffff40,0xf88fffe6,0x7ffd44ff,0xfffd8000, 0x7ff4405f,0x05ffffef,0x3fffff62,0xeffcffff,0x204fff80,0x005ffffc, 0xffc806e6,0x1a8006ff,0xffffd880,0xf303ffff,0x2003ffff,0x6c6ffffd, 0x8006ffff,0x5c5ffffe,0x002fffff,0x07ffd800,0x7fffff54,0x8801efff, 0xfffffffd,0xffd5003f,0x3dffffff,0xf927fdc0,0x3fea9fff,0xeeeeefff, 0xeeeeeeee,0x3fff2003,0x000fffff,0x84ffffc8,0xeefffffa,0xeeeeeeee, 0x32003eee,0xffffffff,0xffff5000,0xfe803fff,0xfff007ff,0x07ffffff, 0x17ffff40,0x7fffd400,0x52fffc46,0xffe87fff,0xfffd0005,0xfffd805f, 0x06ffffbb,0xfffffff7,0x1dffffff,0xd81bff60,0x0002ffff,0x1fffff40, 0xff980000,0xffffffff,0x7ffcc0df,0xff7000ff,0x7ffc4fff,0xfa8002ff, 0x7fcc6fff,0x0aceffff,0x5fff8000,0x3fffff20,0x3fffffff,0x3ffffe60, 0x0dffffff,0x3fffff20,0x3fffffff,0x7e4bff90,0xfff54fff,0x000000bf, 0xffffffff,0xff90007f,0xfff509ff,0x000000bf,0xffffffff,0x3fea007f, 0x406fffff,0xa807fffe,0xfffeffff,0x3ffe006f,0xf98001ff,0xffc87fff, 0x0ffffbdf,0x0007ffea,0x00fffffc,0x3ea9fffb,0xff987fff,0xffeeffff, 0x2e04ffff,0xffd00fff,0x800005ff,0x002fffff,0xffffd000,0xffffffff, 0x7ffff989,0x3fffea00,0x3ffffe67,0xfff98001,0xffffd87f,0x1bdfffff, 0x3fff9800,0xffffff70,0xffffffff,0x3ffffa05,0xffffffff,0xfffff704, 0xffffffff,0x4dffb05f,0xf54ffffc,0x0000bfff,0xeffffa80,0x8006ffff, 0xa84ffffc,0x0005ffff,0x7fffd400,0x006ffffe,0xfffffff5,0x7fff405f, 0xffffd807,0x01ffffe9,0x0fffff88,0xffff8800,0x7fffc40f,0x7f43ffff, 0xff30005f,0x3f201fff,0x3ffe65ff,0x7fff40ff,0x3ff660df,0xff300fff, 0x3fffe05f,0x2200001f,0x001fffff,0xffffb800,0x3fffae2e,0x3fffe60f, 0x3ffea007,0xffff30ff,0xff10001f,0xfe881fff,0xffffffff,0x7000beff, 0xff303fff,0x5115dfff,0x81fffffd,0x22effffb,0x40ffffeb,0xaefffff9, 0xffffea88,0x93fff40f,0x3ea9ffff,0x00005fff,0x4ffffec0,0x001ffffe, 0x427fffe4,0x005ffffa,0x7ffec000,0x1ffffe9f,0xfffffa80,0xfd00ffff, 0xff880fff,0xffff76ff,0xffff500b,0x7ffc000f,0xffd881ff,0x7fd42fff, 0xff50001f,0x3fee0fff,0x7fffc46f,0x3ffff21f,0xfffffd04,0x427ffc0b, 0x00fffff8,0x3ffe6000,0x3baa00ff,0xeeeeeeee,0x1fffff13,0x49ffff10, 0x006ffff9,0x43ffffe6,0x007ffffa,0x07ffffe0,0x3fffff62,0xefffffff, 0x07ffd800,0x40dffff9,0x225ffffd,0x880fffff,0x7e44ffff,0x3f606fff, 0x7ffc5fff,0x53ffff27,0x005ffffa,0x3ffe2000,0xbffff76f,0xffffc800, 0x5ffffa84,0x3e200000,0xfff76fff,0xfff500bf,0x09ffffff,0x701ffffa, 0x3e27ffff,0x5400ffff,0x0007ffff,0x80bffffe,0xffd01aa8,0x0157510b, 0x21ffffea,0xf80efffa,0x3fe2ffff,0xffd80fff,0xd00fffff,0xfff30dff, 0x980000ff,0x200fffff,0xfffffffb,0xfff54fff,0x7ffe40bf,0x1bfffe67, 0xfffff980,0x0fffff50,0x7ffffc00,0x3fffaa02,0xffffffff,0x2fffc00e, 0x01ffffe8,0xa9ffffe6,0x3205ffff,0x7ff47fff,0x3fe601ff,0x7fffc7ff, 0x29ffff90,0x005ffffa,0x3ffee000,0xfffff13f,0x7ffe4001,0xffffa84f, 0x2e000005,0xff13ffff,0xfa801fff,0xffffefff,0x7fffe81f,0x07ffff40, 0x807ffffd,0x007ffff9,0x1fffff10,0x7ffd4000,0x7ffffe41,0xfffff984, 0x03fffe60,0x47ffffe2,0xc85ffff8,0xffffcdff,0x10fff901,0x001fffff, 0x7fffc400,0x3ffee01f,0x4fffffff,0x407ffff7,0xf30ffffb,0x4c00dfff, 0xf30fffff,0x2000ffff,0x01fffff8,0xffffdb88,0x00ffffff,0xf107fff1, 0xfb00bfff,0x3fee3fff,0x3fee03ff,0xffff10ff,0xffffb00b,0x47fffe23, 0xf54ffffc,0x9999dfff,0x99999999,0x3fffa005,0x3ffffa0f,0x3fff2003, 0xffffa84f,0xccccccce,0x002ccccc,0x741ffffd,0x5403ffff,0xffdbffff, 0xfffe86ff,0x3fffe607,0x37fffd45,0x3ffffe20,0xfff98000,0x7f40007f, 0x7ffff45f,0x7fc46fff,0xfff31fff,0x3ffe603f,0x3fffe67f,0xfbb7fdc3, 0xff503fff,0xfffff03f,0xff800003,0x3ee02fff,0xffffffff,0xdffff94f, 0xfddddddd,0x3fe61fff,0x3e6006ff,0xff10ffff,0x30001fff,0x001fffff, 0xfffeca88,0xff502fff,0xffff503f,0xffff9009,0x3bffff25,0xfeeeeeee, 0xfff50fff,0xfff9009f,0x3fffe65f,0x29ffff92,0xfffffffa,0xffffffff, 0xff9804ff,0x7ffd45ff,0x3ff2006f,0xfffa84ff,0xffffffff,0x04ffffff, 0x45ffff98,0x406ffffa,0xf8bffffa,0x7f43ffff,0x3ff607ff,0x7ffc42ff, 0x7ffc01ff,0xfa8001ff,0x20006fff,0x3ea1fffa,0xfffdadff,0x57ffffc2, 0x202fffe8,0x2a6ffffa,0x3ea3ffff,0xffff30ef,0x0fffe209,0x00bffffa, 0xfffe8030,0x3332603f,0x4ffffecc,0xfffffffd,0xffffffff,0x3fffe63f, 0x3ffe6006,0x3fffe0ff,0xffa8001f,0xb80006ff,0x904fffff,0x3fee0fff, 0xffb803ff,0xffffd3ff,0xffffffff,0x3ee3ffff,0xfb803fff,0xfff53fff, 0x3ffff27f,0xffffff54,0xffffffff,0xfb009fff,0xff885fff,0xf9001fff, 0xff509fff,0xffffffff,0x9fffffff,0x5ffffb00,0x1fffff88,0x4ffffea0, 0x20fffffc,0xf107fffe,0xfb01ffff,0xfe80bfff,0x03204fff,0x017ffff6, 0x6c5ffe80,0x3ffe27ff,0x67ffff45,0x6402fffe,0x3ea5ffff,0xfff33fff, 0x1ffffcc1,0xfb0bffd0,0x54009fff,0xffc82cff,0xfb8006ff,0xfffb4fff, 0xffffffff,0x265fffff,0x2006ffff,0x747ffff9,0x8004ffff,0x265ffffd, 0x5002ecca,0x3a0dffff,0xfff705ff,0xfff9009f,0x3ffff67f,0xffffffff, 0xff72ffff,0xff9009ff,0x3ffea7ff,0x9ffff94f,0x3fffffea,0xffffffff, 0x7c404fff,0xfd80ffff,0xf9005fff,0xff509fff,0xffffffff,0x9fffffff, 0xfffff880,0x5ffffd80,0x8ffffea0,0x3a5ffffe,0xff707fff,0x3fea0bff, 0x3f200fff,0xfb80ffff,0xffff30cf,0x3ea0009f,0x2fffc1ff,0xff91fffa, 0x07ffffff,0x4fffff88,0x237fffe2,0x7fd41fff,0x3ff202ff,0xfffffb87, 0xffff9000,0xfffff98d,0x7ffdc002,0x5ffff94f,0x33333333,0x3fe61333, 0x3ea006ff,0x7fe47fff,0x26001fff,0x2e4fffff,0x1005ffff,0xf10fffff, 0x3fea07ff,0xffd805ff,0xffff91ff,0x33333335,0x3ea13333,0xfd805fff, 0xfff71fff,0x3ffff29f,0xdfffff54,0xdddddddd,0xfb807ddd,0xff505fff, 0xf9001fff,0xff509fff,0xdddddfff,0x7ddddddd,0x5ffffb80,0x1fffff50, 0x8ffffea0,0xd2fffffa,0x3fa0ffff,0x9999bfff,0x3fffff99,0x3ffffe60, 0xbffffe84,0x01fffffd,0xf0bffd00,0x7ffe8bff,0x7fffffc4,0xfffd804f, 0x7fffc0ff,0xfc82ffee,0x3ea01fff,0x7ffc41ff,0xff9804ff,0xfff83fff, 0x7e4006ff,0xfff74fff,0x3e60005f,0x32006fff,0x7cc6ffff,0x2005ffff, 0x20fffffd,0x00fffff9,0x86ffffb8,0xf301fffa,0xff00ffff,0x3fee1fff, 0xf30002ff,0xff00ffff,0x3ff21fff,0xffff95ff,0x17fffea9,0x3ffa0000, 0x99999bff,0x03fffff9,0x84ffffc8,0x005ffffa,0xffffe800,0xf999999b, 0xf503ffff,0xffd87fff,0xffffd6ff,0xffffff30,0xffffffff,0xfc80dfff, 0x7dc4ffff,0xffffffff,0xff50004f,0x5fff883f,0x3207ffec,0x806fffff, 0x83fffffc,0x3ffffffd,0x07ffff98,0x5c1fffc4,0x203fffff,0x0fffffe8, 0xefffffa8,0x7ffe4401,0xffff54ff,0x0d66ec0b,0x00dffff3,0x427ffff4, 0x0dfffffc,0x3ffff620,0xfffff83f,0x7fffc406,0x07ffc84f,0x01fffff4, 0x54dffff7,0x3605ffff,0x7ff41acd,0x3fee03ff,0x3fff26ff,0x9ffff95f, 0x017fffea,0xffff3000,0xffffffff,0x00dfffff,0x509ffff9,0x000bffff, 0xfffff980,0xffffffff,0xf506ffff,0xff887fff,0xfffebfff,0xfffffc87, 0xffffffff,0x201fffff,0xeffffff8,0xffffb10a,0x0001ffff,0x7fc17ffa, 0x43fff45f,0xdffffff8,0x7fff4c41,0xfff306ff,0xffd30bff,0xffd005ff, 0x3ffffa0b,0xff730adf,0x6c09ffff,0xacffffff,0xffff9530,0x7ff49fff, 0xfffb83ff,0x3fffe66f,0x7fe43506,0xffd02fff,0x1137ffff,0xffffff73, 0x3ffff20d,0x3aa20aef,0xe81fffff,0x7fdc06ff,0xffb83fff,0x7ff41fff, 0xfffb83ff,0x7fffdc6f,0xffffb83f,0x3ffff21f,0x29ffff95,0x005ffffa, 0x7fffe400,0xffffffff,0x01ffffff,0x427fffe4,0x005ffffa,0x7fffe400, 0xffffffff,0x81ffffff,0xb83ffffa,0xffffffff,0xfffff87f,0xffffffff, 0x05ffffff,0x7fffffd4,0xffffffff,0x0003ffff,0x3a03fff5,0x37ffc6ff, 0x7fffffdc,0xfffeefff,0x201fffff,0xcefffffc,0x5fffffdb,0x20fff900, 0xfffffff9,0xffffffff,0x7ff4406f,0xffffffff,0xffffffff,0x3fffea3f, 0xfffdabff,0x3ffe62ff,0xffff886f,0x206fffff,0xfffffffa,0xffffffff, 0x3fa02fff,0xffffffff,0x6fffffff,0x804fff88,0xdefffffe,0x4fffffed, 0xffffffa8,0xfffffdab,0xfffffe82,0xffffedde,0x7fffe44f,0x29ffff95, 0x005ffffa,0x7ffffc00,0xffffffff,0x05ffffff,0x427fffe4,0x005ffffa, 0x7ffffc00,0xffffffff,0x85ffffff,0xd03ffffa,0xffffffff,0xfffffa8f, 0xffffffff,0x0fffffff,0x7ffffd40,0xffffffff,0x00cfffff,0x902fff40, 0x3fee5fff,0x7fffd44f,0xffffffff,0x1effffff,0x7ffffdc0,0xffffffff, 0xfff5000e,0x3fffea03,0xffffffff,0xd8800eff,0xffffffff,0xffffffff, 0xffffd82f,0xffffffff,0x37fffcc5,0x7fffffe4,0x7d401fff,0xffffffff, 0x1effffff,0x7ffffc40,0xffffffff,0xffa81fff,0xfff8802f,0xffffffff, 0xffb00eff,0xffffffff,0x3fe20bff,0xffffffff,0x7e40efff,0xfff95fff, 0x3fffea9f,0x3ea00005,0xffffffff,0xffffffff,0x3f200fff,0xffa84fff, 0x200005ff,0xfffffffa,0xffffffff,0x540fffff,0xf303ffff,0xffffffff, 0x9cffffd8,0x99999999,0x03fffff9,0xfffffc88,0xffffffff,0x00bfffff, 0x201fffa8,0xffeffff8,0x3ffe60ff,0xfffffdaf,0x4fffffff,0xfffff980, 0xffffffff,0x7ffc4004,0x3fff6203,0xffffffff,0x7fe4000d,0xffffffff, 0x200bffff,0xfffffffb,0xff985fff,0xffff86ff,0x004fffff,0xffffff91, 0x09ffffff,0x7ffff4c0,0xffffffff,0x1fff901e,0x3fff6200,0x4fffffff, 0xfffffb80,0x405fffff,0xffffffd8,0xf904ffff,0x3ff2bfff,0xffff54ff, 0x7ec0000b,0x9999cfff,0xff999999,0x3f203fff,0xffa84fff,0x200005ff, 0x99cffffd,0x99999999,0x543fffff,0x3203ffff,0x7fffffff,0x03ffffe2, 0x6ffffc80,0x3ffb2a00,0xeacdffff,0x00ffffff,0xa805ffe8,0x2fffffff, 0xb317ffe4,0xdfffffff,0x3ffe0039,0xfffffda9,0xff0001df,0xfdb500bf, 0x03bfffff,0x7ff5c400,0x2bdeffff,0x3fff6600,0xf302efff,0xfb88dfff, 0x03ffffff,0xfffeca80,0x001cefff,0xfffffd50,0xe807bfff,0xca8006ff, 0x1dfffffe,0x3fff6600,0x2002efff,0xfffffeca,0x2666201d,0x9ffff909, 0x2bbfffea,0xaaaaaaaa,0x7c42aaaa,0x2000ffff,0x206ffffc,0xa84ffffc, 0xaaaeffff,0xaaaaaaaa,0x7ffc42aa,0x3f2000ff,0x7fd46fff,0x3fe203ff, 0x327fffff,0x4005ffff,0x02fffff9,0x20155100,0x803ffffb,0x1001fffb, 0x203bdfdb,0x2a6202fb,0x5f30001a,0x000aa988,0x002aa980,0x0004d4c4, 0x09a99800,0x35310000,0xa9800001,0x000009aa,0x00003553,0x13555310, 0x006aaa00,0x00153100,0x01353100,0x00a98800,0xffffc800,0xffffff54, 0xffffffff,0x641fffff,0x4005ffff,0x02fffff9,0x509ffff9,0xffffffff, 0xffffffff,0x7fe41fff,0x7cc005ff,0x3ea2ffff,0x7d403fff,0x3e7fffff, 0x8002ffff,0x005ffffe,0x7fec4000,0x00000000,0x000000c0,0x00000010, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0xa7fffe40,0xfffffffa,0xffffffff,0x3fe0ffff,0xe8002fff, 0xf905ffff,0xff509fff,0xffffffff,0xffffffff,0x7ffffc1f,0xfffe8002, 0x3fffea5f,0xffffd803,0xfffff57f,0xfff70001,0x000001ff,0x00000510, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x7fffe400,0xffffff54,0xffffffff, 0x2a1fffff,0x000fffff,0x0fffffb8,0x84ffffc8,0xfffffffa,0xffffffff, 0xff50ffff,0x70001fff,0x2a1fffff,0x8803ffff,0xfb7fffff,0x2000bfff, 0x03fffff8,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0xffc80000, 0xffff54ff,0xffffffff,0x1fffffff,0x017ffff6,0x7ffffc40,0x4ffffc83, 0xffffffa8,0xffffffff,0xfb0fffff,0x2000bfff,0x53fffff8,0x2007ffff, 0x007ffffc,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x80000000,0x00001cd9,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x99997000,0x43fffb05,0x2001fffd,0xacdffdba, 0x333332e0,0xcccccccc,0x7fd400cc,0x2e0002ff,0x0002ffff,0x009ffffb, 0x5ffffc80,0xfff98000,0xff8800ef,0x00000fff,0x27fffe40,0xffe80000, 0x7fd402ff,0x001ff980,0x027fffe4,0xffecb980,0xff9000be,0x1fffdc5f, 0x7ffff900,0x77ffc400,0x01fffd10,0x2a2fffe8,0x7fc06fff,0x3ffee1ff, 0x3fff6005,0x7d40004f,0xe8805fff,0x0001ffff,0xdeffeda8,0x3ff20002, 0x0fffee2f,0xb83fffe0,0xffb05fff,0xfff107ff,0x00fffeed,0xffffffc8, 0xfffb1eff,0xffffffff,0xa803ffff,0x0002ffff,0x00bfffee,0x3ffffea0, 0xff50002f,0x0005ffff,0x00efffd8,0x13fffe60,0xff880000,0x000005ff, 0x005ffff5,0xffb09ff1,0xffffa800,0x7dc002ff,0xffffffff,0x1fffd003, 0x800bfff5,0x007e98ef,0xfdafffcc,0xffe802ff,0x1bffea2f,0x5c3ffff0, 0xf7005fff,0x003fffff,0x077fff40,0x5ffff880,0x3ffa6000,0x0dffffff, 0x1fffd000,0x200bfff3,0x3ee0ffff,0xfffb05ff,0x3ffea07f,0x1006fffd, 0xfffffffd,0xffb5ffff,0xffffffff,0x803fffff,0x002ffffa,0x0bfffee0, 0xfdfff100,0x88001fff,0xffffefff,0xfff30000,0xff30001f,0x000001ff, 0x0017ffee,0x3fffe800,0x37fff600,0x2003fffd,0xfffefff8,0xfff9000f, 0xffffffff,0xdfff1007,0x4001ffff,0x007f23fa,0xffbfff90,0x3ffa009f, 0x1bffea2f,0x5c3ffff0,0xf8805fff,0x0ffffeff,0xefffa800,0x7ffcc000, 0xff88000f,0xffffffff,0xff10005f,0x01ffffdf,0xb83fffe0,0xffb05fff, 0x7fec07ff,0xd000ffff,0xffffffff,0xffffffff,0xffffffff,0x803fffff, 0x002ffffa,0x0bfffee0,0x51fffb00,0xd800bfff,0xfff99fff,0xfff90005, 0x7fd40003,0xf000003f,0x00000dff,0x0027ffcc,0x3fffffa2,0x7fec005f, 0x05fff99f,0xffffffc8,0x1fffffff,0xfffffb80,0x77c4002f,0xd0007e88, 0x00dfffff,0xf517fff4,0xfff80dff,0x17ffee1f,0x2a3fffa0,0xe8005fff, 0x30000fff,0xb0009fff,0xd79dffff,0x0007ffff,0x3fffffee,0x3fffe002, 0x417ffee0,0x203ffffd,0x03ffffe8,0xffffff70,0xfffd957b,0xdddfffff, 0xdddddddd,0xcccc9801,0x33260001,0x3ee001cc,0x3ffee3ff,0x7fff7003, 0x001fffdc,0x0007ffe2,0x001ffea0,0x03bfee00,0xffd80000,0x3fae0004, 0x7dc002df,0x3ffee3ff,0x7ffffc03,0xffffd50c,0x3fff600b,0xff90004f, 0x260009ff,0x001fffff,0x98826662,0x4ccc0099,0x004ccc41,0xfc8bfff2, 0x3e6002ff,0x540001ff,0x7c000fff,0xffe87fff,0x3f60005f,0x4c005fff, 0x4ccc4199,0x7ffffb00,0x3e200000,0x901effff,0x0bffffff,0x00000000, 0x00000000,0x80000000,0x00000998,0x00000662,0x00002662,0x00033300, 0x00000000,0x27fffcc0,0x03ffffc4,0xda800000,0x0000002d,0x00000000, 0x00000000,0x00004cc4,0x20009988,0xa85ffff8,0x00007fff,0x80000000, 0x003ffffd,0xffff7000,0xfffb801f,0x000005ff,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0xffffc800,0x1dfffb01, 0x00000000,0x00000000,0x00000000,0x00000000,0x80000000,0x640fffff, 0x00005fff,0x80000000,0x102ffffc,0x19bdfd97,0x4fffff80,0xfffff880, 0x2e200005,0x00cdefec,0x677ee540,0x65c4001b,0x000cdefe,0xbdeeca88, 0xecb88002,0x4000cdef,0x1bcefdca,0x7f76d400,0x76dc0cde,0xa8002def, 0x2deefeec,0x3fbae200,0x2001beef,0xdeefeeca,0x7fffc802,0x65402620, 0x32a01ccc,0xd7101ccc,0x037ddffd,0x77f76540,0x2e2002de,0x1beeffee, 0x03999950,0xa8e66654,0x2a01cccc,0x9951cccc,0x66540399,0x999951cc, 0x66665403,0xbffffb01,0x01ffffd4,0x7ff75c40,0x44001bee,0x02bdeeca, 0x417fffe4,0xfffffffb,0xff880dff,0xf9000fff,0x0000bfff,0x3fffffee, 0x4400dfff,0xfffffffd,0xfff7003f,0x1bffffff,0xffffd500,0x003dffff, 0x3fffffee,0x4400dfff,0xfffffffd,0xfffa803f,0xcfffffff,0xfffffffb, 0xfea802ff,0xffffffff,0x7ffec01f,0x3fffffff,0x7ffff540,0x01ffffff, 0x003fffee,0x17fffdc0,0x05ffff90,0xfffffffb,0xea807fff,0xffffffff, 0x7fec01ff,0xffffffff,0x2ffffb83,0x4bffff20,0x202ffffb,0xf72ffffc, 0x7e405fff,0xfff72fff,0x7ffe405f,0xffff502f,0xfffff77f,0xfffd8001, 0x3fffffff,0xffffea80,0x701effff,0x6c43ffff,0xffffffff,0xff985fff, 0x3ea006ff,0x40005fff,0xffffffd8,0x205fffff,0xfffffff9,0x100dffff, 0xfffffffb,0xc80bffff,0xffffffff,0x2203ffff,0xfffffffd,0x2605ffff, 0xffffffff,0xf500dfff,0xffffffff,0xffffffff,0x07ffffff,0x7fffffcc, 0x1fffffff,0xffffffb0,0x09ffffff,0x3fffffe6,0x1fffffff,0x05ffff50, 0x3fffee00,0x3ffff202,0x7ffffec2,0x4fffffff,0xffffff30,0x3fffffff, 0x3fffff60,0x4fffffff,0x017fffdc,0x2e5ffff9,0x3202ffff,0xff72ffff, 0x7fe405ff,0xffff72ff,0x7fffe405,0x3ffff202,0x02ffffff,0x7ffffec0, 0x4fffffff,0x3fffff20,0x3fffffff,0x20ffffa8,0xfffffffc,0x44ffffff, 0x006ffffa,0x33bfffe6,0xcccccccc,0xffffc80c,0xffffffff,0xffffd04f, 0xffffffff,0x3ffff209,0xffffffff,0xffff704f,0xffffffff,0x3ff205ff, 0xffffffff,0xffd04fff,0xffffffff,0xfff109ff,0xffffdfff,0xdfffffff, 0x03ffffff,0x37fffffa,0x6fffffec,0xffffffa8,0xfffffffe,0xfffffe80, 0xfffffecd,0x9ffff106,0x3ffee000,0x3fff202f,0x3fffea2f,0xfffffeff, 0xfffe80ff,0xfffecdff,0xfffa86ff,0xffffefff,0x3fee0fff,0x3ff202ff, 0xffff72ff,0x7fffe405,0x05ffff72,0xb97fffe4,0x3202ffff,0x2202ffff, 0xffffffff,0x7fd4002f,0xfffeffff,0xfb80ffff,0xffffffff,0x4c2fffff, 0x3fe67fff,0xf710bfff,0x7dc1ffff,0x26005fff,0xffffffff,0x1fffffff, 0x5fffffcc,0xfffff710,0xeffffb81,0x3ffffae2,0x7ffffcc0,0xffff710b, 0xffff981f,0xfea88aef,0x7cc0ffff,0x710bffff,0xb81fffff,0x2e2effff, 0x640ffffe,0x260cffff,0x3ffffffe,0x437fffd4,0x882ffff9,0x742ffffe, 0x74c2ffff,0x7cc3ffff,0xfe882fff,0x3bb22fff,0xeeefffff,0x7fdc01ee, 0x3ff202ff,0x3fffa2ff,0x7fff4c2f,0x7fffcc3f,0xffffe882,0x17ffff42, 0x8fffffa6,0x202ffffb,0xf72ffffc,0x7e405fff,0xfff72fff,0x7ffe405f, 0x5ffff72f,0x17fffe40,0xfffffd30,0xfd0001bf,0xfe985fff,0x7fcc3fff, 0xa88aefff,0x20fffffe,0x3f67fff8,0xffb03fff,0x7ffe49ff,0x3fe2004f, 0xffffffff,0x6c1fffff,0xfb03ffff,0x7fc49fff,0xff880fff,0x7ffec4ff, 0xffffb03f,0x6ffffc89,0x17ffff60,0x207ffffb,0x224ffffd,0x880fffff, 0x5cc4ffff,0xfff506ed,0x3fee09ff,0x7ffd41ff,0x157b301f,0x209fd950, 0x543ffffb,0xb301ffff,0xfffd8157,0xffffffff,0x7ffdc02f,0x3fff202f, 0x13fb2a2f,0x21ffffdc,0x301ffffa,0xd950157b,0x3ffee09f,0x3fffee3f, 0x3ffff202,0x05ffff72,0xb97fffe4,0x3202ffff,0xff72ffff,0x7fe405ff, 0xffd882ff,0x05ffffff,0x09fd9500,0x90ffffee,0x6c0dffff,0x3e25ffff, 0x3fffe6ff,0x02af6607,0x009ffffb,0x7fffffc4,0xffffffff,0x3ffffc1f, 0xa8157b30,0x3205ffff,0x7ffc7fff,0x2af6607f,0x1ffffe80,0x1ffffe60, 0x4c0fffff,0x7fd40abd,0x3ff205ff,0x3fe0007f,0x3fe01fff,0x7ffcc4ff, 0x0000acff,0x9ffff300,0xcfffff98,0x3ff6000a,0xffffffff,0x7fdc02ff, 0x3ff202ff,0xf98002ff,0x7fcc4fff,0x000acfff,0xffff3000,0x17fffdc9, 0x25ffff90,0x202ffffb,0xf72ffffc,0x7e405fff,0xfff72fff,0x7ffe405f, 0x7fff442f,0x4fffffff,0xf300000c,0xffe89fff,0x3fe601ff,0xafffc7ff, 0x005ffff8,0x17ffff20,0xfffff980,0xeeeeeeee,0x3ffe20ee,0x3ee0005f, 0x3ee03fff,0xfff10fff,0x7c4000bf,0xfd805fff,0xfff11fff,0x7dc000bf, 0x3ee03fff,0x51000fff,0x0ffffffb,0x446fffe8,0xffffffff,0x4c0001be, 0x4fffffdb,0x7fffffc4,0x6c01beff,0xffffffff,0x5c02ffff,0x3202ffff, 0x3002ffff,0x9fffffb7,0xffffff88,0x0001beff,0x7fffedcc,0x3fffee4f, 0x3ffff202,0x05ffff72,0xb97fffe4,0x3202ffff,0xff72ffff,0x7fe405ff, 0x7fff42ff,0xffffecff,0x17bff32f,0xffdb9800,0x3fe24fff,0xffd805ff, 0x57ffa1ff,0x004ffffa,0x1bfffea0,0x5ffff980,0xffff5000,0x7fe40009, 0xeeeeeeff,0x50ffffee,0x0009ffff,0x027fffd4,0xa97fffe4,0x0004ffff, 0x3bbffff2,0xffeeeeee,0xfb7100ff,0xffffffff,0xffffffff,0xf90fffff, 0xffffffff,0x710019ff,0xfffffffb,0xfff909ff,0xffffffff,0xf3331019, 0x3333bfff,0xffffb801,0x3ffff202,0xfffb7102,0x09ffffff,0xfffffff9, 0x0019ffff,0xfffffb71,0x7dc9ffff,0x3f202fff,0xfff72fff,0x7ffe405f, 0x5ffff72f,0x97fffe40,0x202ffffb,0x2e2ffffc,0xd13fffff,0xf91fffff, 0xb8801fff,0xfffffffd,0x3ffea4ff,0xfffc804f,0x5d3ff62f,0x0004ffff, 0x01ffffe6,0x05ffffa8,0x9ffff700,0x7fff4000,0xffffffff,0xf71fffff, 0x40009fff,0x803ffffb,0xf73ffffb,0x40009fff,0xfffffffe,0xffffffff, 0x7ffecc1f,0xffffffff,0xffffffff,0x907fffff,0xffffffff,0x2607ffff, 0xfffffffe,0x904fffff,0xffffffff,0x4407ffff,0x8004ffff,0x202ffffb, 0x4c2ffffc,0xfffffffe,0x904fffff,0xffffffff,0x2607ffff,0xfffffffe, 0x2e4fffff,0x3202ffff,0xff72ffff,0x7fe405ff,0xffff72ff,0x7fffe405, 0x05ffff72,0xf17fffe4,0xf987ffff,0xfffeffff,0x3ffa606f,0xffffffff, 0x3ffee4ff,0xfffb803f,0x54fff63f,0x0004ffff,0x03ffffe2,0x2ffffe40, 0xffffa800,0x3ff60004,0xffffffff,0x52ffffff,0x0009ffff,0x027fffdc, 0xa9ffffe4,0x0004ffff,0x3ffffff6,0xffffffff,0x3ffe22ff,0xf9bdffff, 0xffffffff,0xffffffff,0xffff9300,0x5fffffff,0xffffff98,0xffffaadf, 0x3fff2604,0xffffffff,0x5ffff702,0xffff7000,0x7fffe405,0x3ffffe62, 0xfffaadff,0x3ff2604f,0xffffffff,0x7fffcc2f,0xffaadfff,0x3ffee4ff, 0x3fff202f,0x5ffff72f,0x97fffe40,0x202ffffb,0xf72ffffc,0x7e405fff, 0xfff32fff,0xfff501ff,0x07ffffff,0x3fffffe6,0xffffaadf,0x13fffee4, 0x8fffff20,0xfff32ffc,0xff8000bf,0xff004fff,0x2000bfff,0x005ffff9, 0x2bffff20,0x99999999,0xfff30999,0x7d4000bf,0xfd805fff,0xfff31fff, 0x7e4000bf,0x9999afff,0x09999999,0x0bbffffa,0x33fffff1,0x33333333, 0xd9510033,0xdfffffff,0x67ffffc4,0x27fffcc0,0x7ff65440,0xb06fffff, 0x0001ffff,0x405ffff7,0xf12ffffc,0x9819ffff,0x8804ffff,0xfffffeca, 0x3ffe26ff,0x7fcc0cff,0x3ffee4ff,0x3fff202f,0x5ffff72f,0x97fffe40, 0x202ffffb,0xf72ffffc,0x7e405fff,0xfff52fff,0x7ffe40bf,0x880fffff, 0x40cfffff,0x2a4ffff9,0xd805ffff,0x2a61ffff,0xfffff10a,0x166f7c40, 0x01fffff6,0x17ffffea,0x7fffc400,0x337be207,0x0bfffee2,0x7fffc400, 0x337be207,0x1ffffe62,0x43ffffe0,0x207ffff8,0x2e2cdef8,0x0002ffff, 0x20dffff1,0x00fffff8,0x6d440000,0x3ea7ffff,0xff305fff,0x510009ff, 0x30fffffb,0x0007ffff,0x80ffffee,0xf52ffffd,0x3e60bfff,0x88004fff, 0x27ffffda,0x305ffffa,0x7dc9ffff,0x3f603fff,0xfff72fff,0x7ffec07f, 0x7ffff72f,0x97fffec0,0x203ffffb,0xf52ffffd,0xfd80dfff,0x503fffff, 0x260bffff,0x3e64ffff,0xff807fff,0xff800fff,0xff702fff,0xfff98bff, 0x3fea05ff,0x0005ffff,0x40bffffe,0x2a5ffffb,0x3605ffff,0x7ffc1acd, 0xfff702ff,0xffffe8bf,0x3fffee03,0x17ffffc6,0x25ffffb8,0x205ffffa, 0x3ea1acdd,0xff503fff,0x3a607fff,0x6e540abd,0x3ffa00fe,0xffff90ff, 0x3fffee05,0x07f6e544,0x41ffffd0,0x005ffff9,0x13fffea0,0x97ffffc4, 0x702ffffc,0xca89ffff,0x3fa00fed,0xfff90fff,0x3ffee05f,0x3fffea4f, 0xfffff104,0x13fffea5,0x97ffffc4,0x104ffffa,0x2a5fffff,0xf104ffff, 0x3e25ffff,0x2a01ffff,0x0dffffff,0x02ffffc8,0xe89ffff7,0x2e03ffff, 0x3f26ffff,0xfff72fff,0xfff983ff,0xfffc82ff,0xca99aeff,0xefffffff, 0xaaaaaaaa,0x3fee1aaa,0x7fcc1fff,0x7ff42fff,0xfffb83ff,0x7fffdc6f, 0x7fffcc1f,0x7fffdc2f,0xffffb83f,0x7fffdc1f,0x7fffcc1f,0x7ffff42f, 0x6ffffb83,0x41bfffea,0x1ffffffe,0x44ffffe8,0x104ffffe,0x7e4dffff, 0xff884fff,0x7ff45fff,0xfff104ff,0x7fffc4df,0x1bcefddf,0xff889b71, 0xffe80fff,0xfff92fff,0xffff109f,0xffffe8bf,0xdffff104,0x427fffe4, 0x25fffff8,0x80fffff8,0x12fffffe,0xd01fffff,0x225fffff,0xe80fffff, 0xf12fffff,0xfd01ffff,0x7f45ffff,0xfc81efff,0xefffffff,0x27fffe41, 0x2fffffc4,0x0fffffee,0x87ffffee,0x3a2ffffc,0xecefffff,0x106fffff, 0xffffffff,0xffffffff,0xffffffff,0x8bffffff,0xcefffffe,0x86fffffe, 0xbffffffa,0x2fffffda,0xefffffe8,0x6fffffec,0xdfffffd0,0xfffffdbb, 0x3ffffa09,0xffffecef,0xffffa86f,0xfffdabff,0x3ffe22ff,0xfeb89dff, 0xefffffff,0xfffffecb,0x7ffffd40,0xffeba9bd,0x3ffea4ff,0xffc99cff, 0x7d45ffff,0xa9bdffff,0x24ffffeb,0xfffffffc,0xffffffff,0x7fffc0ff, 0xfffcacff,0xff52ffff,0xf9339fff,0xa8bfffff,0x9bdfffff,0x4ffffeba, 0x33ffffea,0xfffffc99,0x7ffffc5f,0xffffcacf,0x3ffe2fff,0xffcacfff, 0x3e2fffff,0xcacfffff,0x2fffffff,0x33fffffe,0xffffffca,0x3fffea2f, 0xfffecfff,0xffffffff,0x3fffea4f,0xfffc99cf,0xffe85fff,0xfeddefff, 0x7e44ffff,0x3fe62fff,0xffffffff,0x3ee01fff,0xffffffff,0xfffdcfff, 0xffffffff,0x7cc5ffff,0xffffffff,0xfb01ffff,0xffffffff,0x3e60bfff, 0xffffffff,0xf101ffff,0xffffffff,0x201dffff,0xfffffff9,0x01ffffff, 0xfffffffb,0xb0bfffff,0xffffffff,0xffffffff,0xffffffff,0x3fff207f, 0xffffffff,0x7ffc46ff,0xffffffff,0xfc86ffff,0xffffffff,0x7cc6ffff, 0xffffffff,0xffffffff,0x7ffffe44,0xffcfffff,0xffff12ff,0xffffffff, 0xff90dfff,0xffffffff,0xff88dfff,0xffffffff,0x646fffff,0xffffffff, 0x2ffffcff,0x3ffffff2,0xfffcffff,0x3ffff22f,0xfcffffff,0x3ff22fff, 0xffffffff,0x6c2ffffc,0xffffffff,0xffffffff,0x3e25ffff,0xffffffff, 0x86ffffff,0xfffffff8,0x0effffff,0x217fffe4,0xffffffe9,0x9802ffff, 0xffffffff,0xffffb4ff,0xffffffff,0xfd30bfff,0xffffffff,0xfffb805f, 0x5fffffff,0x7ffff4c0,0x02ffffff,0x7ffffec4,0x804fffff,0xffffffe9, 0x5c02ffff,0xffffffff,0xfff105ff,0xbfffffff,0xfffffb13,0x807fffff, 0xfffffffc,0xa80effff,0xffffffff,0x0ffffcbf,0xffffffc8,0x80efffff, 0xfffffffd,0xffffffff,0x7ffec0ff,0xf9afffff,0x3fea2fff,0xbfffffff, 0xc80ffffc,0xffffffff,0xfa80efff,0xffffffff,0x40ffffcb,0xfffffffd, 0x2ffff9af,0x7fffffec,0xffff9aff,0x7ffffec2,0xfff9afff,0x7fffec2f, 0xff9affff,0xfffb82ff,0xffffffff,0xefffd88d,0x7ffffd40,0xffcbffff, 0xffd880ff,0xffffffff,0x5ffff904,0x3ffffb20,0x22000cff,0xdfffffec, 0x3fffff63,0xffffffff,0x3fb205ff,0x00cfffff,0xfffffb30,0x764005df, 0x0cffffff,0x3ffb2a00,0x4001dfff,0xffffffec,0xffb3000c,0x805dffff, 0xffffffc8,0xfffea82d,0x3001cfff,0xfffffff9,0xffe9805d,0xff50dfff, 0x3f2607ff,0x2effffff,0x98277ea0,0xfffffedb,0xffec80be,0xfff31dff, 0xfffe985f,0xfff50dff,0x3ff2607f,0x02efffff,0x7fffff4c,0x7ffff50d, 0xbffffd90,0x0bfffe63,0x37ffffb2,0x05ffff31,0x3bffffd9,0x20bfffe6, 0x1dffffec,0x205ffff3,0xffffffd8,0x1ffa82ef,0xfffffd30,0x3fffea1b, 0x3ffb2a03,0x0001dfff,0x004d4c40,0x00d4c400,0x31000000,0x88000135, 0x200009a9,0x00009a98,0x0000a988,0x0009a988,0x004d4c40,0x0026a620, 0x0009aa98,0x006aa660,0x0006a620,0x01aa9980,0x9a980060,0x00351000, 0x001a9880,0x06aa6600,0x006a6200,0x0006a200,0x00006a20,0x200006a2, 0x200001a8,0x8800aa98,0x01a98802,0x054c4000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000200, 0x00000000,0x00000100,0x26600000,0x33331199,0x039b3001,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x3fbae200,0x0001beef, 0xcb800000,0x00541ccc,0xeb93332a,0x4c0002ce,0x9952cccc,0x90000079, 0x000bffff,0x0effffa8,0xffff5000,0x3fa2001d,0x00002fff,0x7ffff644, 0x200002de,0xceffecba,0x3332601b,0x3b22002c,0x02deffff,0x3fffb800, 0x2017ffec,0xfb4ffff9,0xfc801fff,0x3e003fff,0x3ff20fff,0x3ffa004f, 0x5c0003ff,0x9005ffff,0x7fdc5fff,0x0ffa803f,0x4401ff98,0x001ffffe, 0xeffeca80,0xa8000abd,0x0beeffed,0x3ffff600,0x03ffffff,0x02ffffe8, 0x6c400950,0xfeaaffff,0xbfffe403,0x00fffffd,0x3fffea00,0xc8bfffb3, 0x2004ffff,0x2ffffffa,0x3fffa000,0x3f60000e,0x44000eff,0x0005fffe, 0xfffffb30,0x09ffffff,0x7fff4c00,0xefffffff,0x3ffffa81,0xffffd980, 0x4fffffff,0x3fff2000,0x007fff41,0x7c57fff6,0x7c401fff,0x2006f98e, 0x3f20ffff,0xff7004ff,0x0003ffff,0x002ffffc,0x3ea3fffa,0xff1005ff, 0x200ffb09,0x005fffe8,0x3ffffae0,0x03ffffff,0x3fffffa0,0xd802ffff, 0xffffffff,0x4404ffff,0x4c06fffe,0xfb8005fe,0x01dfffff,0x7e7fffe4, 0x0006ffff,0xd9ffffd4,0x3fe25fff,0x3e2004ff,0x0ffffeff,0xefff9800, 0x3fe60000,0xf10000ff,0x80003fff,0xdffffffc,0xefffffec,0x3ff22001, 0xffffffff,0x7d44ffff,0x7e403fff,0xdcdfffff,0x01efffff,0x20fffe80, 0x4c07fff8,0x3ff26fff,0x23fa803f,0xfff001fc,0x27ffe41f,0x7f7ffcc0, 0xf70006ff,0xf1000dff,0x1ffffdff,0x6fffec00,0x2003fffd,0x001ffff8, 0xffffffd8,0xdfffffff,0x7fffec00,0x1fffffff,0x3ffffea0,0xffffffef, 0x7ff4400f,0xbfff901f,0xfffb1000,0x3ff2009f,0xffffffff,0x7fd40003, 0xbfffb3ff,0x002fffe4,0x3e67fff6,0xfd8005ff,0x6c0001ff,0x40001fff, 0x0005fff9,0x37bfffd1,0xfffd9510,0xfffd1005,0xffffffff,0x21dfffff, 0x103ffffa,0x017bfffd,0x5fffd951,0x46fff800,0x6c05fff9,0xfff10eff, 0x237e2009,0x3fe006e8,0x3fff20ff,0x7fff4404,0x004fffb8,0x000effe8, 0xffffff70,0xffe88005,0x8005ffff,0x4005fff9,0xfffffffd,0xffffffff, 0xffff701e,0xffffffff,0x7ffff40d,0x7ffff4c2,0x5fff8803,0x05ffff88, 0x3ffff220,0xfc802fff,0xdbdfffff,0x7d40000f,0xffd93fff,0x01bffe29, 0x5c7fff70,0x22003fff,0x40001fff,0x0001fff8,0x001fff30,0x003dffb0, 0x401fffc8,0xeffffffc,0xfffecbbc,0xfff55fff,0x3bffa07f,0x7ffdc001, 0x9fff3001,0x203fffb8,0x3f21fff8,0x7fec005f,0x266003ff,0x04ccc419, 0xc87fff20,0x2a001fff,0x40000eff,0x004ffffd,0x0b7ffae0,0x0fff9800, 0xfffff700,0xffb77dff,0x3e0dffff,0x3ee2ffff,0x32a07fff,0xfff704fe, 0x3fe6007f,0x7fffc41f,0x2fffe005,0x01ffffc8,0x1fffffe4,0x3ea00002, 0x9fec3fff,0x0000effb,0x33100000,0x33100001,0x98800001,0x7fe40009, 0xff500405,0x3ffe601f,0x3ea02fff,0x98bfffff,0xffc82ff9,0x3fe60005, 0xfffb800f,0x017ffe43,0xea800000,0x0000002d,0x88000000,0x00000099, 0x00000000,0x20013310,0x0bffffff,0xfffffd88,0x2ffffcc3,0x007ffffc, 0x3fffe600,0x02662004,0x00bffff1,0x7fff41e4,0x3fff200e,0x5000007f, 0xff87ffff,0x00013312,0x00000000,0x00000000,0xeff98000,0x77fedc40, 0x05ffb81c,0x01dffffd,0xfffffd10,0x3e60ffd4,0xdddd90ef,0xf7037bdd, 0x999988bf,0x999bfffd,0x009afffe,0x00000000,0x00000000,0x00000000, 0x00000000,0xfa800000,0xd805ffff,0x2a0fffff,0xff83ffff,0x730006ff, 0x09fffffb,0xffdc9800,0x804cceff,0xff99aba8,0x3ff204ff,0x950004ff, 0x3ea17bfd,0xbfd33fff,0xeb880000,0x01beeffe,0xdffdd710,0xa880037d, 0x002bdeec,0x7bdd9510,0x07ff6005,0x3ffffff6,0x41ffd83f,0x02fffffb, 0x3ffffea0,0xfd81ffb2,0x3ffffa1f,0xd83fffff,0x3fff21ff,0xffffffff, 0x3fffffff,0x40399995,0x951cccca,0x65403999,0x32a01ccc,0x001bcefd, 0x5e77ee54,0x7ee54001,0x88001bce,0x02bdeeca,0x00e66654,0x20399995, 0xeeffeeb8,0x3ff6a01b,0xff8800ff,0x3fee3fff,0x7ffd42ff,0xfb71003f, 0xffffffff,0x99993009,0x3ffffee3,0x100fffff,0xddfffffb,0x3203ffff, 0x4003ffff,0xffffffe8,0x3ffffa9f,0x664c1dfd,0x3f6001cc,0xffffffff, 0x7ffec03f,0x3fffffff,0xffffea80,0x001effff,0xffffffd5,0x7c403dff, 0xdfffd84f,0x4c1fffda,0x7ffec4ff,0xffe8006f,0x42ffdeff,0x7ff44ff8, 0xfffdcaab,0xf927fc41,0xffffffff,0xffffffff,0x3fffee7f,0x3ffff202, 0x05ffff72,0x417fffe4,0xffffffd8,0xfd8803ff,0x3fffffff,0xffffd880, 0x5003ffff,0xfffffffd,0x3fee03df,0x3ff202ff,0xfffd82ff,0x3fffffff, 0x2002b980,0x2e6ffffb,0x7f42ffff,0x74c01fff,0xffffffff,0xa804ffff, 0xff73ffff,0xffffffff,0xfffff501,0xffffffff,0x3ffff20b,0x3ffea002, 0xdfffffff,0x0753ffff,0x007ffff5,0x3ffffff6,0x04ffffff,0xfffffffb, 0x409fffff,0xfffffffc,0x403fffff,0xfffffffc,0x903fffff,0xeffb83ff, 0x6c37fd40,0x3fffa0ff,0xffa8002f,0xc84fffff,0x83ff41ff,0x7fd83ffd, 0x3ffffff2,0xffffffff,0xff73ffff,0x7fe405ff,0xffff72ff,0x7fffe405, 0x7ffffcc2,0x0dffffff,0xffffff30,0x01bfffff,0x3fffffe6,0x00dfffff, 0x3ffffff2,0x83ffffff,0x202ffffb,0x6c2ffffc,0xffffffff,0x0004ffff, 0x7ffff980,0x98bffff2,0x4c05ffff,0xdfffffff,0x04ffffaa,0x73ffffa8, 0xffffffff,0xfff981ff,0xffffffff,0xfc81ffff,0x3a002fff,0xfeffffff, 0x3fffffff,0x1ffffd40,0x7ffffd40,0xffffffef,0x7fffd40f,0xfffffeff, 0xfffb80ff,0xffffffff,0xff702fff,0xffffffff,0xfb05ffff,0x203ffb0d, 0x1ffa81bb,0x007ffffe,0x3ffffe60,0xd0dfb01e,0x13fee0ff,0x66547fea, 0xccdfffec,0xccdfffec,0x05ffff71,0xb97fffe4,0x3202ffff,0x7f42ffff, 0xffffffff,0xffd04fff,0xffffffff,0x3ffa09ff,0xffffffff,0xfff704ff, 0xffffffff,0xffb85fff,0x3ff202ff,0x3ffea2ff,0xffffefff,0x00000fff, 0x90fffff8,0x7ec5ffff,0x3e201fff,0x4c0cffff,0xa804ffff,0x7513ffff, 0x555dffff,0x9fffffd0,0xfffffb75,0xffff909f,0x3ffee005,0x7ffd43ff, 0x7d403fff,0xfe803fff,0x7f4c2fff,0x7ff43fff,0x7ff4c2ff,0x7ffcc3ff, 0xea88aeff,0x4c0fffff,0x8aefffff,0xfffffea8,0x7fc2ffc0,0x5ff30007, 0x03ffffe2,0x3fffe200,0x217fe02f,0xffd887fe,0x902ff981,0xffe83fff, 0xffffb80f,0x3ffff202,0x05ffff72,0x717fffe4,0x5c5dffff,0x5c0ffffe, 0x2e2effff,0x5c0ffffe,0x2e2effff,0x4c0ffffe,0x8aefffff,0xfffffea8, 0x0bfffee0,0x22ffffc8,0x4c2ffffe,0x263ffffe,0xffffffff,0xffffffff, 0x91ffffff,0x7fc5ffff,0x3ea00fff,0xff305fff,0xff5009ff,0xfff887ff, 0x3fff205f,0xfffa81ff,0xfffc86ff,0xffff001f,0x3ffea07f,0x7fd403ff, 0xeca803ff,0xffff704f,0x04feca87,0xc87ffff7,0x3606ffff,0x7e45ffff, 0x3f606fff,0x27fc5fff,0x4001bfe2,0xfff33ff8,0x7fc000ff,0x3fe02fff, 0xdccffe84,0xf106fffe,0x3fffa07f,0x41bffe20,0x202ffffb,0xf72ffffc, 0x7e405fff,0xfff12fff,0xfff101ff,0x7fffc49f,0xffff880f,0x3ffffe24, 0x4ffff880,0x037fffe4,0x5cbffffb,0x3202ffff,0x32a2ffff,0xfff704fe, 0x7fffd47f,0xffffffff,0xffffffff,0xffff93ff,0x3ffffe25,0x3ffff203, 0x9ffff702,0x7ffff500,0x05ffff88,0x80bffffe,0x40fffffb,0x801ffffc, 0x406ffff8,0x403ffffe,0x003ffffa,0x3fffe600,0xfff30004,0xffffe89f, 0x3fffe601,0x0fffff47,0x4fffff30,0x7fcc3ff8,0x53fe0005,0x007ffffa, 0x0bffffe0,0x7f41ffc4,0x2effffff,0x7c427fc0,0x7ffcc6ff,0x5ffff705, 0x97fffe40,0x202ffffb,0xf52ffffc,0x7e40bfff,0x3ffea7ff,0x3fff205f, 0x17fffea7,0x747fffc8,0x2601ffff,0x3ee7ffff,0x3f202fff,0x98002fff, 0x3ea4ffff,0xffffffff,0xffffffff,0xf93fffff,0x7fec5fff,0xff902fff, 0xfff109ff,0xff500bff,0xfff887ff,0xffff105f,0xfffff00d,0x1ffffc83, 0x4ffff980,0x1ffffe40,0x0ffffea0,0xffb73000,0x4c009fff,0x4fffffdb, 0x017fffe2,0x447ffff6,0xd805ffff,0x3fe1ffff,0x0037fc44,0xff33ff88, 0x22000fff,0x201fffff,0xcffe84ff,0x4403fffd,0xfff983ff,0x81fffdc4, 0x202ffffb,0xf72ffffc,0x7e405fff,0xfff72fff,0x7ffdc07f,0x7ffff70f, 0x87fffdc0,0x203ffffb,0xf10ffffb,0xfb00bfff,0x3fee3fff,0x3ff202ff, 0xb73002ff,0x549fffff,0xffffffff,0xffffffff,0x93ffffff,0x7cc5ffff, 0xa82fffff,0x99cfffff,0x5ffffffc,0x3ffffa80,0xdffffb95,0x7ffd4799, 0xfffd805f,0x7fffe42f,0xffffa801,0x7fffdc03,0x7fffd403,0x7edc4003, 0xffffffff,0x3ff6e204,0x4fffffff,0x013fffea,0x54bffff2,0xc804ffff, 0x3fa2ffff,0x2e07ff85,0x12ff980b,0x003fffff,0x1fffff30,0x7f42ff40, 0x80fffa27,0x73312ff9,0xb3339fff,0x13337fff,0x80bfffee,0xf72ffffc, 0x7e405fff,0xfff92fff,0xdddddddf,0x321ffffd,0xeeeeffff,0xffffeeee, 0xddffff90,0xffdddddd,0x3ffea1ff,0xfffc804f,0x5ffff72f,0x17fffe40, 0xffffdb88,0x264fffff,0xaabfffff,0xaaaaaaaa,0x92fffffa,0xfa85ffff, 0x440fffff,0xffffffff,0x6fffffff,0x3ffffa80,0xfffffff9,0x7ffdcbff, 0xfffc804f,0x7fffe43f,0xffffb801,0x7fffd403,0x7fffd403,0xfffd3003, 0xffffffff,0xfffd309f,0xffffffff,0x7fffdc9f,0xffffb803,0x07ffff73, 0x47ffff70,0x7fec0ffd,0x40fff983,0x3ffe1ffc,0xfa8002ff,0x7ec06fff, 0x223ff40f,0xff701fff,0x3fffff23,0xffffffff,0xf73fffff,0x7e405fff, 0xfff72fff,0x7ffe405f,0xfffffd2f,0xffffffff,0x3ffa3fff,0xffffffff, 0xd1ffffff,0xffffffff,0xffffffff,0x0ffffee3,0x4ffffee0,0x202ffffb, 0x4c2ffffc,0xfffffffe,0x224fffff,0x001fffff,0x47ffffe2,0xb82ffffc, 0x40efffff,0xfffffffa,0xffffcbff,0x7fffd400,0xffffff93,0x7fd4bfff, 0xffc804ff,0x7ffe42ff,0xfffb801f,0x7ffd403f,0x7ffd403f,0xfff9803f, 0xfaadffff,0x7fcc4fff,0xaadfffff,0x3ee4ffff,0xfc804fff,0xfff73fff, 0xfff9009f,0x21ffd47f,0xd30cfff9,0x8dff07ff,0x005ffffe,0x05ffffd8, 0x3fa1ffd4,0xf06ffb87,0x7fffe4df,0xffffffff,0x73ffffff,0x6405ffff, 0xff72ffff,0x7fe405ff,0xffffb2ff,0xffffffff,0x3f65ffff,0xffffffff, 0x2fffffff,0xfffffffb,0xffffffff,0x3fffee5f,0xffffc804,0x05ffff73, 0x317fffe4,0xbfffffff,0x89ffff55,0x003ffffe,0x43ffffee,0x702ffffc, 0x30bfffff,0x1bfffffd,0x00ffffea,0x267ffff5,0xaeffffba,0x3fffe62a, 0xffffd805,0x0ffffe41,0x27fffd40,0x0ffffee0,0x07ffff50,0xcfffff88, 0x27fffcc0,0x19fffff1,0x24ffff98,0x805ffffa,0xf51ffffd,0xfb00bfff, 0x6ff83fff,0xfeffffc8,0x2ffb85ff,0x0fffffe4,0xfffff300,0xe8dff009, 0x87fff07f,0x3ff22ffa,0xffffffff,0xffffffff,0x05ffff73,0xb97fffe4, 0x3202ffff,0xff92ffff,0x333335ff,0x21333333,0x99affffc,0x99999999, 0x5ffff909,0x33333333,0x3fea1333,0xffd805ff,0xffff71ff,0x7fffe405, 0x9fffff12,0x4ffff981,0x037fffe4,0x4bffffb0,0x202ffffc,0x00fffffb, 0xff103531,0x3ffea007,0x7fffc43f,0xfffff105,0x7fffc401,0x15999507, 0x6ffff980,0x1ffffec0,0x0ffffea0,0x0bffff50,0xa93fffe6,0xf305ffff, 0x7fcc9fff,0xfff807ff,0xffff30ff,0xfffff00f,0xa84ffc81,0x0dffffff, 0x7c43ffc4,0x2005ffff,0x00fffffd,0x3fa4ffc8,0x21fff707,0x6e547ff8, 0xecccefff,0xccccdfff,0x07ffff71,0xb97fffec,0x3603ffff,0xff72ffff, 0x2e0005ff,0x0002ffff,0x005ffff7,0x1ffffe60,0x43ffffe0,0x203ffffb, 0xf52ffffd,0x3e60bfff,0x7fcc4fff,0xfa803fff,0x3f22ffff,0x7ec02fff, 0x30002fff,0x3ea005ff,0x7fc43fff,0x3ffa05ff,0x3ff204ff,0xfff906ff, 0xfff805ff,0xfff301ff,0xffa807ff,0x7fe403ff,0xfff702ff,0x7fffe49f, 0x9ffff702,0x03ffffe8,0xd1bfffee,0x5c07ffff,0xe886ffff,0xcca882ff, 0x05ffd00a,0x37fffff2,0x3fff6200,0xfd1003ff,0xa80aaa5f,0x05ffd0aa, 0xf90fffee,0x7fd403ff,0xfff104ff,0x3ffea5ff,0xffff104f,0x3fffea5f, 0x86b37605,0x205ffffa,0x3ea1acdd,0x37605fff,0x7fff41ac,0x3ffee03f, 0x3fffea6f,0xfffff104,0x0bffff25,0x427fffdc,0x01fffffd,0x3fffffe6, 0x0bffff20,0x09ffff50,0x00bfee00,0x21ffffd4,0x206ffff8,0x83fffffa, 0x01fffffc,0x0ffffb95,0x1fffffc8,0x7fffff44,0x7fffd403,0x7fffe403, 0xfffff884,0x13ffff25,0x17ffffe2,0x07fffff7,0x83fffff7,0x83fffffb, 0x01fffffb,0x0007fff3,0xe809ffd1,0x9bffffff,0xfffeb988,0x7cc006ff, 0xe88003ff,0x3ff204ff,0x07fff41f,0x1fffff10,0x5fffffd0,0x03ffffe2, 0x8bfffffa,0xb83ffffe,0x7f46ffff,0xffb83fff,0x7fff46ff,0xffffb83f, 0x7ffffdc6,0xfffffb83,0x3ffffe21,0xfffffe80,0x09ffff92,0x0bfffff1, 0x9ffffff1,0x7fffe4c3,0x7ffe42ff,0xff91dc2f,0x2e0005ff,0xff5005ff, 0xffff07ff,0xfd81fbdf,0xedceffff,0x004fffff,0x4403fff5,0xbdffffff, 0xfffffffd,0x7fffd403,0x7fffd403,0xfffc99cf,0x3fea5fff,0xfc99cfff, 0xe85fffff,0xddefffff,0x04fffffe,0xbdfffffd,0x9fffffdb,0x0dfffa80, 0x0dfff500,0xffffff50,0xffffffff,0x0003ffff,0x001bfff5,0xd01bffea, 0xfff81fff,0xfffff806,0xffffcacf,0x3ffe2fff,0xffcacfff,0x2a2fffff, 0xabffffff,0x42fffffd,0xbffffffa,0x2fffffda,0x7fffffd4,0xfffffdab, 0xfffffe82,0xffffedde,0xfffff84f,0xffffcacf,0xfff52fff,0xff9339ff, 0x2e0bffff,0xffffffff,0xffffffff,0x2ffffc85,0xffbbffd5,0x20003fff, 0xb99cfff9,0x3ffffa80,0xffffffe8,0x7fff441f,0xffffffff,0xfd8800ef, 0xfffb807f,0xdfffffff,0x5403ffff,0x4403ffff,0xffffffff,0x6fffffff, 0x3fffffe2,0xffffffff,0xffff886f,0xffffffff,0xfff100ef,0xffffffff, 0xf3001dff,0x2137bfff,0x4ffffc99,0x3fffea00,0xffffffff,0x0001efff, 0x2b7fffe6,0x3ffee621,0x7ffc404f,0x027ffcc6,0x7fffffe4,0xfffcffff, 0x3ffff22f,0xfcffffff,0x7fec2fff,0xffffffff,0xfffb05ff,0xffffffff, 0x3fff60bf,0xffffffff,0xffff105f,0xffffffff,0xfff901df,0x9fffffff, 0x3e25ffff,0xffffffff,0x06ffffff,0x3fffffee,0xffffffff,0x5ffff904, 0x3ffffffa,0x40005fff,0x0ffffffe,0x83ffffa8,0xfffffff9,0xffffc882, 0x04ffffff,0xffffdff3,0x3fee007f,0xf4ffffff,0xfa807fff,0xfa803fff, 0xffffffff,0x20ffffcb,0xfffffffa,0xffffcbff,0xffffd880,0x04ffffff, 0xfffffd88,0x004fffff,0x7ffffec4,0xffffffff,0xffc88002,0xffffffff, 0x100004ff,0xfffffffb,0x05ffffff,0xa89fff30,0xfb003fff,0x5fffffff, 0xd85ffff3,0xffffffff,0x82ffff9a,0xfffffffb,0x7dc05fff,0xffffffff, 0x7ffdc05f,0x5fffffff,0x7fffec40,0x04ffffff,0x7fffffec,0xffff9aff, 0x3ffffea2,0xffcbffff,0x3fea00ff,0xffffffff,0x3ff203ff,0xfffd12ff, 0x001dffff,0xfffff980,0xffffa80f,0xffffd703,0x7ff5405d,0x201dffff, 0xdffffff9,0x7ff4c002,0x3ffe2eff,0x7ffd403f,0xffd3003f,0x3ea1bfff, 0x7f4c3fff,0xf50dffff,0x65407fff,0x1dfffffe,0x7ff65400,0x0001dfff, 0x3fffff26,0x000befff,0x7fff6540,0x001cefff,0xfffc9800,0x0befffff, 0x87fff700,0x2001fffc,0x1dffffec,0x905ffff3,0x23bffffd,0x302ffff9, 0xdffffffb,0x3ff66005,0x002effff,0xffffffb3,0x7654005d,0x01dfffff, 0xbffffd90,0x0bfffe63,0xbfffffd3,0x0ffffea1,0x3ffffee0,0x6400bfff, 0x3222ffff,0x004ffffe,0x02aea200,0x03ffffa8,0x4c000d44,0x266000aa, 0x8000099a,0xa80000a9,0x4003ffff,0x40001a98,0x00001a98,0x000054c4, 0x0000a988,0x5e654c40,0x2000000a,0x00001aa9,0x332a6200,0xa98000ab, 0x1554c0aa,0x001a8800,0x0001a880,0x0026a620,0x009a9880,0x026a6200, 0x01531000,0x000d4400,0x0006a620,0x26aa6200,0x51000000,0x00000003, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0xeca80000,0x202deefe,0x201cccca,0x001cccca,0x00000000, 0x0b333260,0x00000000,0x00000000,0x40000000,0x950cccc8,0x76544999, 0xcc980ace,0x991003cc,0x33322999,0x0000002c,0x132206a6,0x00000000, 0x5e77ee54,0x40d4c001,0x000004c9,0xdefecb88,0x3332600c,0x5eff6544, 0x54000000,0x8002cccc,0x201ccccb,0x03c981aa,0x26000000,0xfc82cccc, 0x75405fff,0xffffffff,0xfffb81ff,0x3fff202f,0x7ec0002f,0x00004fff, 0x9ffff500,0x7fffcc00,0x7fec000e,0x3f2000ff,0x3fff22ff,0x3ff6e202, 0x1ff50cde,0xa803ff30,0x0ffff984,0x3a2ffff7,0x1fffffff,0x02ffffd4, 0x37ffff88,0xf70bffff,0x7ffdc7ff,0xfffd8803,0x07fd89be,0x3fffff10, 0x2e2fffb8,0xfd883fff,0x3fffffff,0xefffe880,0x987fd89b,0x3fe25fff, 0x7ffdc06f,0x0dffffff,0x88ffffb8,0xfffffffe,0x7ffdc002,0xffff905f, 0xfffd0009,0xfffd305f,0x0bfd117d,0x7d45fffd,0x2a0006ff,0x7d44ffff, 0x302fffff,0xffffffff,0xb83fffff,0x3202ffff,0x0002ffff,0x3fffffea, 0x75c00002,0xffffeeee,0xffd802ef,0xfd8000ef,0x74000fff,0xfffa8fff, 0x3fffa205,0xff10ffff,0x4c0ffb09,0xfff985fe,0x3ffff70f,0xffffffff, 0x7ffd41ff,0xfff1005f,0x3fffe6ff,0x33fffd05,0x2e00bfff,0xffffffff, 0xff7005ff,0x3ffa05ff,0x85fff98f,0xfffffff9,0x200dffff,0xfffffffb, 0xff705fff,0x1fffd17f,0x3ffff620,0x5fffffff,0xe9ffffb8,0xffffffff, 0x3ffe002f,0x3fff205f,0xffe8004f,0xfffc82ff,0x4fffffff,0x2a2fffe8, 0x20006fff,0x224ffffa,0xffffefff,0xfffffe80,0xfffffecd,0x17fffdc6, 0x05ffff90,0x3bffe200,0x0000ffff,0x3fffff20,0x03ffffff,0x007fffcc, 0x0ffffd80,0x77ffcc00,0x3a00ffff,0x6fffffff,0x7eefffec,0xffc883ff, 0xffff985f,0xffffff70,0xfffffdff,0x7fffd4df,0xffff1005,0x17fffe6f, 0x7ff7ffc4,0xdfb000ff,0xffffffb7,0x3fffa005,0x3bffe202,0xfe80ffff, 0xffffffff,0x3f604fff,0xfffffdbe,0x3fff601f,0x3203fffd,0xffffffff, 0x5c4fffff,0xffffffff,0x6ffffffe,0x0dfff700,0x04ffffc8,0x2ffffe80, 0xffdbdff8,0xfe80ffff,0x3ffea2ff,0x3fea0006,0x3fff64ff,0x4c5fff99, 0xe882ffff,0x3ee2ffff,0x3f202fff,0xd0002fff,0xfff51fff,0x7e40000b, 0xffffffff,0x7fe403ff,0x3f60001f,0xb8000fff,0x02ffffff,0x3fffffe2, 0x7ff445ee,0xf305ffff,0xdd30bfff,0x3ffee1ff,0xfb10afff,0x7fd4ffff, 0xff1005ff,0x3ffe6fff,0x3ffea04f,0x3e002fff,0x06764c2f,0x03fffa80, 0xffffffa8,0xeffffb82,0x3ffffae2,0xc985ff00,0x7fc400ce,0x2605ffff, 0x10bfffff,0x41fffff7,0xaffffffb,0xfffff910,0x1dffd003,0x4ffffc80, 0xffffe800,0x2a07fcc2,0xffd00bed,0x37ffd45f,0xffff5000,0xb8fffee9, 0x3fea3fff,0x57b301ff,0x2ffffb81,0x0bffff20,0x8bffee00,0x0002fffc, 0xf9555530,0x4035bfff,0x0001fff8,0x00666654,0x4ffffd80,0x2ffffcc0, 0x2dffeb80,0x17fffe60,0x3fee7f98,0xff883fff,0xfff50fff,0x3fe200bf, 0x3fe667ff,0x7fffec03,0x00000005,0xb001fff4,0xf10bffff,0xf101ffff, 0x00009fff,0xfffff500,0x7fffec01,0x9ffffb03,0x1fffffdc,0x01ffffe8, 0x40077fd4,0x004ffffc,0x02ffffe8,0x99988000,0x00266620,0x4ffffa80, 0x7ffcc000,0x2000acff,0x202ffffb,0x002ffffc,0x00000000,0x13fffea0, 0x00026620,0x00000000,0x0ffffee0,0x7fcc0000,0x9bf205ff,0x206ffffb, 0xf51ffffc,0x2200bfff,0x7c47ffff,0x0000002f,0x19980000,0xff500000, 0x7fe40bff,0x0000007f,0xfffff000,0x2055ecc0,0x206ffffb,0x402ffffc, 0xf9000998,0xd0009fff,0x0005ffff,0x00000000,0x027fffd4,0x3fffe200, 0x01beffff,0x017fffdc,0x005ffff9,0x40000000,0x50bdfeca,0x0009ffff, 0x00000000,0xfff70000,0x9800005f,0xceffffdc,0xb87ff24c,0x3204ffff, 0xff52ffff,0x3e200bff,0x7fdc7fff,0x20000000,0x2bdeeca8,0x00000000, 0x80ffffee,0x100ffffb,0x7ddffdd7,0xf1000003,0x4000bfff,0x204ffffb, 0x003ffffb,0xffffc800,0xfffe8004,0x3999952f,0x0e666540,0x3b2a0000, 0xfff50bdf,0x9999309f,0x7fffe403,0xcfffffff,0x2ffffb80,0x0bffff20, 0x9813332e,0x3201cccc,0xfe883ccc,0xaaffffff,0xca84ffff,0xcccccccc, 0x542ccccc,0xcccccccc,0x42cccccc,0xccccccca,0x2ccccccc,0x00bfffee, 0x40e6664c,0xfffffffb,0x87ff57ff,0x203ffffb,0xf52ffffb,0x2200bfff, 0x3ee7ffff,0x1333264f,0x017bfd95,0xfffffd50,0x2a03dfff,0x3bae4ccc, 0x9999302c,0xdffff903,0xfddddddd,0xffb01fff,0xffffffff,0x93332a07, 0x3ea2ceeb,0x20004fff,0x203ffffb,0x933ffffb,0xfeca8999,0xfffc80bd, 0xffe8004f,0xffff72ff,0x7fffe405,0x1cccc982,0x7ffff440,0xfffaafff, 0xffffa84f,0x7fffe403,0xffffffff,0x17fffdc3,0x05ffff90,0x203ffff7, 0x504ffffc,0xf987ffff,0xffffffff,0x84ffffdf,0xfffffffd,0x4fffffff, 0x7fffffec,0xffffffff,0x7ffffec4,0xffffffff,0x3fffee4f,0xffff5002, 0xfffff707,0x0ecfffff,0x017fffdc,0x2a5ffff7,0x1005ffff,0xff9fffff, 0xffffb8bf,0xfffffe88,0x3ff202ff,0xffffffff,0xfffc83ff,0x1fffffb7, 0x07ffff50,0xfffffffd,0xffffffff,0xffffd83f,0xffffffff,0xb7fffc84, 0x2e1fffff,0x0004ffff,0x80ffffee,0xf73ffffb,0xffd11fff,0xc85fffff, 0x8004ffff,0xf72ffffe,0x7e405fff,0xffa82fff,0x3fe603ff,0xffffffff, 0xa84ffffd,0x9803ffff,0xfffffffc,0x3ee2ffff,0x3f202fff,0xff982fff, 0xfffd03ff,0x3fff20df,0x7ffff40f,0xfffffeff,0xffd84fff,0xffffffff, 0x7ec4ffff,0xffffffff,0x6c4fffff,0xffffffff,0x24ffffff,0x002ffffb, 0x707ffff5,0xffffffff,0xfff700ff,0x7ffdc05f,0xbffff52f,0x3fffe200, 0xfb82efff,0xfffe9fff,0x82ffffff,0xfffffffb,0x2fffffff,0x7e7fffe4, 0xf506ffff,0xffb07fff,0xffffffff,0x45ffffff,0xeffffffa,0x0fffffff, 0x7e7fffe4,0x3ea6ffff,0x20004fff,0x203ffffb,0xf73ffffb,0xfffd3fff, 0x45ffffff,0x004ffffc,0x72ffffe8,0x6405ffff,0xfa82ffff,0x3fa03fff, 0xffefffff,0x84ffffff,0x003ffffa,0x3fffb2a2,0x3ee6ffff,0x3f202fff, 0xffd02fff,0xffff10bf,0xfffd01ff,0xfffffa8d,0x7ffffd43,0xffffd84f, 0xffffffff,0x7ffec4ff,0xffffffff,0x7fec4fff,0xffffffff,0x3ee4ffff, 0xf5002fff,0x75307fff,0x555dffff,0x5ffff700,0x97fffdc0,0x005ffffa, 0x15fffff1,0x7ffffdc0,0xffffefff,0x7ffcc6ff,0xea88aeff,0x320fffff, 0xffffffff,0xfff503ff,0xffff907f,0x33333335,0x7f413333,0x7f4c2fff, 0x7fe43fff,0xffffffff,0x17fffe63,0xffffb800,0x3fffee03,0xffffff73, 0xfffffdff,0x7fffe4df,0xfffe8004,0x5ffff72f,0x17fffe40,0x81ffffd4, 0x43fffffa,0x4ffffffa,0x03ffffa8,0x3ff6a200,0x3ffee7ff,0x3fff603f, 0xffff902f,0xfffffb81,0x7fffc42f,0x1fffffc3,0x4fffffa8,0xaaaaaba8, 0xffffffba,0x55555d40,0xfffffbaa,0x5555d40f,0xffffbaaa,0x3ffee0ff, 0xfff5002f,0x7ffcc07f,0x7fdc005f,0x3fee02ff,0xffff52ff,0x3ffe200b, 0xfffb807f,0xf910afff,0x7e43ffff,0x3f606fff,0x3ff25fff,0xfdbdffff, 0x7ffff500,0x05ffff70,0x27f65400,0x43ffffb8,0xdffffffc,0x3fe20fdb, 0x3be207ff,0x3ffee2cd,0x3ffee03f,0xfffff73f,0x3ff2215f,0xfff91fff, 0xffd0009f,0x3ffee5ff,0x3fff202f,0xffffa82f,0x7fffff03,0x3ffffea0, 0x3ffffa84,0x01fdb950,0xa87ffff4,0xf304ffff,0x2605ffff,0x7ec2ffff, 0x5c4fffff,0x3e21ffff,0x7f407fff,0x44004fff,0x01fffffe,0x7ffff440, 0x7f44001f,0x7dc1ffff,0xf5002fff,0x7cc07fff,0x5c005fff,0x2e02ffff, 0xff52ffff,0x3e200bff,0xfb807fff,0xfd03ffff,0x7ff43fff,0x3fe601ff, 0x3fff27ff,0xf50043ff,0xff507fff,0x66ec0bff,0xff30001a,0xfffc89ff, 0x7fc043ff,0xff702fff,0x7ffdcbff,0x3ffee03f,0xfffff73f,0x3ffffa07, 0x09ffff91,0x5ffffd00,0x80bfffee,0xa82ffffc,0xf883ffff,0x7f407fff, 0xffa84fff,0xfffd03ff,0x3ffe209f,0x3fffe26f,0xffffe80f,0x3fffe02f, 0x7fffffc4,0x37ffec6f,0x017fffe6,0x009ffff7,0x2fffffd8,0xffffd800, 0xffd8002f,0xffb82fff,0xff5002ff,0x7fcc07ff,0x7dc005ff,0x3ee02fff, 0xfff52fff,0x3fe200bf,0xffb807ff,0x3ff206ff,0xffff12ff,0xffffb00b, 0x1fffff23,0x7ffff500,0x0fffffa0,0x01bfffee,0xffffdb98,0x7fffe44f, 0xffff7007,0xffff983f,0x3fffee2f,0x3fffee03,0x0dffff73,0xc97fffe4, 0x8004ffff,0xf72ffffe,0x7e405fff,0xffa82fff,0xfff983ff,0x7ffdc05f, 0xffffa84f,0xfffff503,0xffd7537b,0xffff89ff,0xfffdacff,0x3202ffff, 0x3fe67fff,0x20ffffef,0x7d44ffff,0x7dc04fff,0x36004fff,0x003fffff, 0x3fffffd8,0xffffd800,0xffff703f,0x3ffea005,0x3ffe603f,0x7fdc005f, 0x3fee02ff,0xffff52ff,0x3ffe200b,0xfffb807f,0x3ffee04f,0x9ffff53f, 0x5ffff900,0x013ffff2,0x07ffff50,0x3fffffea,0xfffffdab,0x3ff6e202, 0x4fffffff,0x027fffe4,0xdfffffd0,0xdfffffd9,0x03ffffb8,0x5cffffee, 0x2e04ffff,0xff93ffff,0xfd0009ff,0x3fee5fff,0x3ff202ff,0xfffa82ff, 0xffffa83f,0x7fffdc04,0x3ffffa84,0x3fffff20,0xffffffff,0xfffffc86, 0xffcfffff,0x3fea02ff,0x9fff71ff,0x3ea5fff9,0x7fdc1fff,0x7fd403ff, 0xff9004ff,0x90009fff,0x009fffff,0x9fffff90,0x17fffdc0,0x3ffffa80, 0x17fffe60,0x5ffff700,0x97fffdc0,0x005ffffa,0x00fffff3,0x407ffff7, 0xf73ffffb,0xf7007fff,0x3ff27fff,0x7d4003ff,0x3f603fff,0xffffffff, 0xfd305fff,0xffffffff,0xffc89fff,0x3e6003ff,0xffffffff,0x7dc1ffff, 0x3ee03fff,0xfff73fff,0x7ffdc07f,0x9ffff93f,0xffffd000,0x0bfffee5, 0x82ffffc8,0xb83ffffa,0x5403ffff,0xfa84ffff,0x7e403fff,0xffffffff, 0xffb00eff,0x35ffffff,0xf805ffff,0xfffb3fff,0x329fff55,0xffa87fff, 0x7fd404ff,0xffb804ff,0xb8005fff,0x005fffff,0x5fffffb8,0x17fffdc0, 0x3ffffa80,0x17fffe60,0x5ffff700,0x97fffdc0,0x006ffffa,0x00dffff3, 0x407ffff7,0xf73ffffb,0xf9009fff,0x3ff27fff,0x7d4002ff,0x7dc03fff, 0xffffffff,0xffff305f,0xff55bfff,0xfffc89ff,0x7f4c002f,0xffffffff, 0xffffb82f,0x3fffee03,0x07ffff73,0xc9ffffdc,0x2624ffff,0x3fffa02a, 0x5ffff71f,0x17fffe40,0x41ffffd4,0x404ffffa,0xa84ffffa,0x9803ffff, 0xfffffffc,0x7f64402e,0xff31dfff,0xffd805ff,0x11ffff5f,0x3ffadfff, 0xffff984f,0x7fffdc04,0x7fffd404,0x7d4000ef,0x000effff,0x77ffffd4, 0x7fffdc00,0xffff5002,0x7fffcc07,0x7ffdc005,0x3ffee02f,0xfffff32f, 0x3fffea00,0xffffb806,0x3fffee03,0x0bffff53,0x23ffffb0,0x002ffffc, 0x01ffffd4,0x7ffffecc,0xfff102ef,0xff9819ff,0x7ffe44ff,0xfd90002f, 0x019fffff,0x80ffffee,0xf73ffffb,0x7dc07fff,0xfff93fff,0x1ffffe9f, 0x71ffffe8,0x6405ffff,0xfa82ffff,0xff983fff,0x7fdc04ff,0xfffa84ff, 0x7ed4003f,0x44000cef,0x02ff981a,0xf5ffff50,0x7fff4dff,0x882ffffa, 0x6c06ffff,0x2604ffff,0x00ffffff,0x7ffffcc0,0x7fcc000f,0xb800ffff, 0x5002ffff,0x4c07ffff,0x0005ffff,0x7fffe400,0x7fffff12,0xbffffb00, 0x7ffff700,0x9ffffdc0,0x807ffff9,0xf90fffff,0xa8005fff,0x4003ffff, 0x5400affb,0xf305ffff,0xffc89fff,0x220002ff,0x000defeb,0x00599970, 0x407ffff7,0xf93ffffb,0x3ffa9fff,0xffff01ff,0x3fffee1f,0x3ffff603, 0x3ffffa82,0x06ffff88,0x427fffec,0x003ffffa,0x7fffffdc,0xff500000, 0x3ffe2003,0x323fffef,0x7fffefff,0x07ffffe0,0x27ffffc4,0xffffff88, 0x7ffc4001,0x44001fff,0x01ffffff,0x05ffff70,0x0ffffea0,0x05ffff98, 0x7fec0000,0x3fffa2ff,0x3fea00ff,0xfb803fff,0x3ee03fff,0x3ffa3fff, 0x3fee03ff,0x3fff26ff,0x7fd4001f,0x7e4003ff,0xfffc800f,0xffff702f, 0x1ffffc89,0x3ffee000,0xd8000fff,0x201fffff,0x203ffffb,0xf93ffffb, 0x3ff69fff,0xfffa83ff,0x3fffea7f,0xfffff104,0x7ffff505,0x07ffffe0, 0x27ffffc4,0x01ffffd4,0x3faa2660,0xf900004f,0x7fec003f,0x2a1fffff, 0x5fffffff,0x3ffffee0,0x7ffff441,0xfffe884f,0x744001ff,0x001fffff, 0x7fffff44,0x3ffee001,0xfff5002f,0x7ffc407f,0x8800006f,0x1fffffa8, 0x3bffffee,0xffca88ac,0xb800ffff,0x2e03ffff,0x3ee3ffff,0xfb83ffff, 0x3f21ffff,0x54001fff,0x4003ffff,0xfc800ffd,0xff884fff,0x7fe45fff, 0x260001ff,0x04ffea89,0xfffdcb80,0x3fffee06,0x3fffee03,0x29ffff93, 0x0bfffffb,0x4bffffd5,0x80fffff8,0x82fffffe,0x703ffffa,0x883fffff, 0x84fffffe,0x003ffffa,0x003ffd40,0x004ffc80,0x3fffffee,0x7ffffc47, 0x3fe202ff,0xfcbdffff,0x84ffffff,0x9bfffffd,0xaaaaaaaa,0x3fffff60, 0xaaaaaa9b,0x3fff60aa,0xaaaa9bff,0xff70aaaa,0x3ea005ff,0x3e203fff, 0x0fdeffff,0xfffe8000,0x7f40ffff,0xffffffff,0x4fffffff,0x7ffff700, 0x1ffffdc0,0x3bfffffa,0xfffffedd,0x0ffffe44,0x3fffea00,0x1ffec003, 0x7ffffd40,0xffffc99c,0x7ffe45ff,0x2a00001f,0x5c0007ff,0xff700fff, 0x7fdc07ff,0xffff93ff,0x3ffffe29,0xffffffff,0x7ffffc1f,0xffffcacf, 0xffa82fff,0xfff103ff,0xff97bfff,0x509fffff,0x0007ffff,0x0027ff4c, 0x9cfffb80,0x3ffe2039,0xffe85fff,0x5c00ffff,0xffffffff,0x4ffffdff, 0x7fffffd4,0xffffffff,0xffff50ff,0xffffffff,0x3ea1ffff,0xffffffff, 0x0fffffff,0x005ffff7,0x00ffffea,0xfffffffd,0xff880003,0x986fffff, 0xffffffff,0xefffffff,0xffff7000,0x7fffdc07,0x7ffffc43,0xffffffff, 0x7fffe40e,0x7ffd4001,0x7fdc003f,0xf883a9bf,0xffffffff,0x46ffffff, 0x001ffffc,0x09ffd300,0x37ff4400,0x07ffff70,0xc9ffffdc,0x3ee4ffff, 0xffffffff,0xffc85fff,0xffffffff,0xa82ffffc,0x2e03ffff,0xffffffff, 0x4ffffdff,0x03ffffa8,0xfffddf70,0x200001ff,0x7ffffff9,0x7fffff40, 0xfffffc83,0xffff5005,0x3fe9ffff,0x7ffd44ff,0xffffffff,0xf50fffff, 0xffffffff,0x1fffffff,0x3fffffea,0xffffffff,0xffff70ff,0x3ffea005, 0x7ffdc03f,0x0002ffff,0x7fffffcc,0xfffb100f,0xffffffff,0xffb8009f, 0x3fee03ff,0xffd883ff,0xffffffff,0x3ffff904,0xffffa800,0x7ffc4003, 0xff506fff,0x7fffffff,0x641ffff9,0x8001ffff,0xffffeefb,0xdff5000f, 0x405fffff,0x203ffffb,0xf93ffffb,0xffc89fff,0xffffffff,0x3ffff604, 0xff9affff,0xfffa82ff,0x7ffd403f,0xff4fffff,0xfff509ff,0x3fee007f, 0x000cffff,0x7fff5400,0x7ffdc07f,0xfff981ff,0x3a6002ff,0x3e3effff, 0x7fd44fff,0xffffffff,0x50ffffff,0xffffffff,0xffffffff,0x3ffffea1, 0xffffffff,0xfff70fff,0x3fea005f,0xffb803ff,0x0002efff,0x77ffffdc, 0xffeda802,0x01dfffff,0x3ffffb80,0x0ffffee0,0xffffeca8,0x3ff201df, 0x7d4001ff,0xb8003fff,0x206fffff,0xdfffffe9,0x47ffff50,0x001ffffc, 0xffffffb8,0x3fea000c,0x401dffff,0x203ffffb,0xf93ffffb,0xfd309fff, 0x05bfffff,0xbffffd90,0x0bfffe63,0x00ffffea,0x3bffffa6,0x213fffe3, 0x003ffffa,0x00026662,0x02ae6000,0x1ffffe60,0x00fffff8,0x00015300, 0xfffffff5,0xffffffff,0x3fffea1f,0xffffffff,0xff50ffff,0xffffffff, 0x21ffffff,0x002ffffb,0x007ffff5,0x00000d4c,0x0002b2a6,0x0009aa98, 0x1ffffdc0,0x07ffff70,0x4002a620,0x001ffffc,0x01ffffd4,0x00aba880, 0x00035310,0x003ffff9,0x00266620,0x099a9980,0x7ffff700,0x1ffffdc0, 0x13553000,0x00351000,0x1ffffd40,0x0002a600,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x66664c00,0x99991003,0x3332a009,0x76dc001c, 0xfd8001de,0x3fea000f,0x27fc4004,0x009ff500,0x2004ff88,0x99999998, 0x2a099999,0x0000cccc,0x5665cc40,0x32e60001,0x100002bc,0xcc899999, 0x332203cc,0x372a03cc,0x332e1bdf,0x36e6202c,0xca8001ac,0x3320bdfe, 0x32a602cc,0x654009bc,0xcb802ccc,0x2a600ccc,0x200abcdc,0x2a24ccca, 0x0002ceec,0x3cccc980,0x54000000,0x26005eee,0x004c981a,0x2af32ea2, 0xddb10000,0x504a801d,0x200bffff,0x007ffff8,0x005ffff9,0x7ffffff4, 0x0ffe6002,0x04fff980,0x8007fe40,0x4004fff9,0x2e000ffc,0xffffffff, 0x3f25ffff,0x00001fff,0x3fffffe6,0x3ee000df,0x1dffffff,0x7ffc4000, 0x37fffc7f,0x0dffff10,0xffffffb1,0x13fffa5f,0x7fffffec,0xfe8800df, 0xf1ffffff,0xfb109fff,0x07ffffff,0x037fffd4,0x41ffffe2,0xffffffd8, 0xfff902ff,0x3ffffe6f,0x93000dff,0x2a79dffb,0x0005ffff,0x3ffe2000, 0xffe8806f,0x7fd89bef,0xffffc880,0x8003ffff,0x300ffffc,0x3fea0bfd, 0xff1005ff,0x3f200fff,0xf7002fff,0x0dffd9ff,0x88037f40,0x004ffffc, 0x2200ffe6,0x004ffffc,0x9000ffe6,0xffffffff,0x7e4bffff,0x00001fff, 0xfffffff7,0xfb003dff,0xffffffff,0x7c40003f,0x7ffc7fff,0x3ffe206f, 0x7fff446f,0xeaffffff,0x7f444fff,0xffffffff,0x3ffe601f,0xafffffff, 0x7d44ffff,0xffffffff,0x3fffe05f,0x3ffea00f,0xffff884f,0x5fffffff, 0xfaffffc8,0xffffffff,0x7ffd401f,0xff55ffff,0x00000bff,0x37fffec0, 0x7ffffdc0,0x405fffff,0xfffffff8,0x000effff,0x81fffff3,0x505fffc8, 0x200bffff,0x007ffff8,0x005ffff9,0xffe8bffa,0x02ffa802,0xffffff98, 0x01ff6004,0x3fffffe6,0x01ff6004,0x3fffffa0,0x5fffffff,0x007ffff2, 0x3fffe600,0x6fffffff,0x7fffff40,0x0effffff,0xffff1000,0x06ffff8f, 0xb1bfffe2,0xffffffff,0x9fffffff,0xffffffe8,0x00ffffff,0xdffffffd, 0xffffffff,0x7ffffc49,0x6fffffff,0x07ffff90,0x40ffffec,0xfffffffe, 0x642fffff,0xffffffff,0x6fffffff,0x3ffffe60,0xfff54fff,0x000000bf, 0x1bffffea,0x3f6fbf60,0x201fffff,0xffffffe8,0x05ffffff,0xffffff88, 0x2ffffcc0,0x05ffffa8,0x0fffff10,0x0bffff20,0x7ffcc300,0x006fe801, 0x9ffbbff5,0x00bfea00,0x3ff77fea,0x05ff5004,0xffffff00,0xbfffffff, 0x00ffffe4,0x7fffec00,0xfffffcbe,0xfffff502,0xfffff959,0x3fe20007, 0x7fffc7ff,0x3fffe206,0x3ffffe66,0x3fffea0d,0x3ffea4ff,0xfffdadff, 0xfffa84ff,0x7ffd43ff,0x3ff64fff,0xfffbcfff,0xff982fff,0xfff106ff, 0xffff50df,0xfffd539f,0xffffc8ff,0xff910bff,0x3ee05fff,0x2eeeffff, 0x00bffff5,0xfff10000,0xff00dfff,0x00cec985,0x77ffffe4,0xffffffcb, 0x3fffea03,0x7fcc0fff,0xfff505ff,0x3fe200bf,0x553007ff,0xf3000155, 0xf7007fff,0x432a003f,0xfd004ffc,0x6432a00d,0xdfd004ff,0xffff1000, 0x55555559,0x7fffe435,0x7fc40001,0x7ffcc6ff,0xffffd05f,0x5ffff983, 0xffff1000,0x06ffff8f,0xd9bfffe2,0xf305ffff,0x7ec9ffff,0x7fd41fff, 0xfffe87ff,0xffff303f,0x3fffe69f,0x3fff220e,0xffffd05f,0x7ffff501, 0x05ffff90,0x643ffffb,0x902fffff,0x320dffff,0xf503ffff,0xddddffff, 0x00379bdd,0x7ffffec0,0x0000006f,0x20bffffa,0x985ffffc,0xfffffffd, 0x7fffcc0f,0xbffff505,0x3fffe200,0x40000007,0x402ffffa,0x20005ff8, 0xfb804ffc,0xff90001f,0x03ff7009,0x3ffff500,0xffffc800,0x7fe40001, 0xfffd82ff,0x7fffd41f,0x0bdffd04,0x3fffe200,0x037fffc7,0x7cdffff1, 0x3601ffff,0xff14ffff,0x3ffe0bff,0x3ffe20ff,0x7ffec07f,0x5ffff74f, 0x07ffffa0,0x20ffffee,0xe80ffffd,0xff507fff,0x7ffe45ff,0x3ffe206f, 0xfffd80ff,0xffff501f,0xffffffff,0x8001bfff,0xfffffffb,0x10000006, 0x260bffff,0x7e47ffff,0xffffffff,0xfffb930f,0x7d4999df,0xf1005fff, 0x2200ffff,0x8002ffff,0x03fffcba,0x80003ff2,0x7c404ffc,0x3f20005f, 0x2ffc404f,0x7fffc800,0xffffc800,0x59dfb711,0x07fffe80,0xd87ffff5, 0x0101ffff,0x3ffe2000,0x37fffc7f,0x2dffff10,0x406ffff8,0x224ffffa, 0xffd01ca9,0xffff98ff,0x7fffdc05,0x01ffff94,0x213fffee,0x446ffff8, 0xfb05ffff,0x3fe60dff,0x3fff21ff,0x7ffec03f,0x7fffe81f,0x3ffffea0, 0xffffffff,0x1001ffff,0xffffffff,0x1333260d,0x017bfd95,0x80ffffea, 0x3e27ffff,0xfffeffff,0xffff70ff,0x21ffffff,0x005ffffa,0x00fffff1, 0x00bfffe6,0x20fff700,0x40004ff9,0x7e404ffc,0x3f20000f,0x07fe404f, 0x6fffd800,0xffffc800,0xffffffa9,0xffff00ef,0x3fffe60f,0x03ffffc4, 0x7fc40000,0x7fffc7ff,0x3fffe206,0x0bffff36,0x04ffff98,0x2ffffcc0, 0x013fffea,0x369ffff5,0x3ea07fff,0xffb05fff,0x7ffd41ff,0xffff702f, 0x8ffff903,0x402ffffc,0x952ffffc,0x99fffff9,0x7fffd479,0xffffffff, 0x006fffff,0xffd9fffb,0x3ffee0df,0xffffe88f,0x4cc02fff,0xdffff100, 0x46ffffc4,0xf70ffffe,0xffffffff,0x3fffea1f,0xffff1005,0x3ffea00f, 0xedc8800f,0x203ffea0,0x40000ffd,0x3e204ffc,0x7e40004f,0x13fe204f, 0xeffff800,0x01ceffdb,0xffbffff9,0xffffffff,0x5ffff883,0x8bffff10, 0x7316ffff,0x20000159,0x7c7ffff8,0x3e206fff,0xfff56fff,0xfff8809f, 0x3f66004f,0x7fdc2fff,0x7fcc03ff,0xffffb4ff,0x37fffcc0,0x23ffffa8, 0x2207fffd,0x260dffff,0x7e45ffff,0x7dc02fff,0xfff93fff,0xbfffffff, 0x677fffd4,0xffeccccc,0x5c03ffff,0xffe8efff,0xffff706f,0xffffffd3, 0x40005fff,0x225ffffa,0x3ffa3fff,0xffff70ff,0x21ffffff,0x005ffffa, 0x00fffff1,0x00dfffd1,0x74c67fec,0x3ff986ff,0x4ffc8000,0x0003ff60, 0x6c09ff90,0xf10000ff,0xffffffff,0xff907fff,0xfdffffff,0x98dfffff, 0xf105ffff,0x7fc4dfff,0xfffe9dff,0x40000dff,0x7c7ffff8,0x3e606fff, 0xfff36fff,0xfff980bf,0xfffc804f,0xffa83fff,0x7fd404ff,0xffff94ff, 0x3fffea01,0x5bfffe07,0x404ffff8,0xedfffffa,0x640effff,0x5c02ffff, 0xff92ffff,0xffffffff,0x2ffffd4b,0x3ffffea0,0x3fffe206,0x20dfffd2, 0xfffffffb,0xffffffef,0x3ff60006,0x20fa23ff,0x510ffffe,0x55dffff7, 0x2ffffd45,0x7ffff880,0x7ffff440,0x3ffe6004,0xe82fffff,0xf900006f, 0x0ffe609f,0x13ff2000,0x0001ffcc,0xfffffff3,0x8bffffff,0x2ffffffc, 0x17ffffdc,0x40bffff3,0x3e67ffff,0xffffefff,0x001effff,0x1ffffe20, 0x4c0fffff,0xff16ffff,0xffa80bff,0xfff804ff,0xff302fff,0xffb80bff, 0xffff74ff,0x3ffff205,0x3ffff207,0x01ffffa8,0xfffffe98,0xff905fff, 0xffc807ff,0xffff91ff,0x4bffffff,0x805ffffa,0x207ffffc,0x3fa4fffe, 0xfff706ff,0x32215fff,0x001fffff,0x0fffffb8,0x1ffffd00,0x05ffff98, 0x00bffff5,0x81ffffe2,0x0fffffe8,0x7fffdc00,0x2ffa82ef,0x9ff90000, 0x0001bfa0,0xfe827fe4,0x7fdc0006,0xfffeffff,0x3f22ffff,0xf901ffff, 0x7fd4dfff,0x3ffe05ff,0x3fffea7f,0xffffffff,0x220006ff,0x7fc7ffff, 0xff700fff,0x7fffcdff,0x7fffe407,0x7fffc404,0xfff102ef,0x7ff401ff, 0xffff34ff,0xffff981d,0xfff300ff,0x0dfffb7f,0x3ffff620,0xf902ffff, 0xfe80bfff,0xd3310fff,0x1333ffff,0x02ffffd4,0x07ffffcc,0xd077ffdc, 0x3ee0dfff,0xfd03ffff,0xa8003fff,0x002fffff,0x303ffffa,0x2a0bffff, 0x1005ffff,0x220fffff,0x02fffffe,0x03555100,0x91017fe2,0x09988059, 0x9882ffa8,0x4c4009aa,0x02ffa809,0x7e416644,0x3aa0cfff,0x3f26ffff, 0x3e205fff,0x3fee7fff,0x3ffe04ff,0xffff70ff,0xff715dff,0x20007fff, 0x7c7ffff8,0xfd03ffff,0x7ff4dfff,0xfff102ff,0xff9809ff,0x81efffff, 0x704ffffe,0x649fffff,0xdacfffff,0x1fffffff,0x3fbfffa0,0xfa803fff, 0xffffffff,0xfffc84ff,0xfff301ff,0x3fffa0ff,0x3fffea07,0xffff9805, 0x7fffcc0f,0x837fff42,0x206ffffb,0x002ffffc,0x1bffffea,0x1ffffd00, 0x05ffff98,0x00bffff5,0x21ffffe2,0x1ffffff9,0xfb800000,0x27ff401f, 0x21bfa000,0x2ffffffb,0x01bfa000,0x26213ffa,0x3ffe02ca,0xffff92ff, 0xffffd807,0x09ffff51,0xf53ffffc,0x3e0bffff,0x8000ffff,0x7c7ffff8, 0x641fffff,0x2a6fffff,0x441fffff,0x04fffffe,0x7fed4544,0x7fd40fff, 0xf910cfff,0x449fffff,0xffffffff,0x0fffffff,0x3ffffee0,0x7cc00fff, 0xfbacffff,0x320effff,0x41efffff,0x04ffffe8,0x540ffffd,0xb805ffff, 0xfe87ffff,0xfffe84ff,0x9ffff706,0x1ffffdc0,0xfffffb80,0x7ff4000e, 0x7ffcc0ff,0xffff505f,0x3ffe200b,0xffffe87f,0x8000001e,0x7ec04ff8, 0x2e0004ff,0x7ffd41ff,0x000fffff,0x6c01ffb8,0x40004fff,0xf93ffffb, 0xfc805fff,0xfff32fff,0x7fffc0bf,0x3ffffe67,0x3ffff702,0xffff1000, 0xffffff8f,0xffffecdf,0x7fff46ff,0xfffdbdff,0x8004ffff,0xf85ffffc, 0xffffffff,0x4fffffff,0x7fffff44,0x7fffedff,0x7ffffc40,0xffd806ff, 0xfffc81ff,0x3ffff22f,0xffdcdfff,0xfd00ffff,0x7fd40fff,0x7f4405ff, 0x7fe45fff,0xfffe80ef,0x7ffff706,0x1ffffdc0,0x7ffffdc0,0xffe8001f, 0x7ffcc0ff,0xffff505f,0x3ffe600b,0x7fffe47f,0x0000000e,0x7dc01ffb, 0x10004fff,0x9ffb0bff,0x009ffd11,0x5c05ff88,0x0004ffff,0xca7fffd4, 0x6401ffff,0xff33ffff,0x3fe20bff,0x3ffe26ff,0xfff500ff,0xff10005f, 0xffff8fff,0xffffffff,0x7cc6ffff,0xffffffff,0x04ffffff,0xfffff980, 0x7ffff4c0,0xffbeffff,0xfff904ff,0x3fffe7ff,0xffffd806,0xfff803ff, 0xffff106f,0x7ffffe4b,0xffffffff,0x3ffa03ff,0x3ffea07f,0x999999ef, 0x3ffffffb,0x2b3fffe6,0xfffeaaaa,0x3fee2aaf,0x3fee03ff,0x7fdc03ff, 0x0000efff,0x981ffffd,0xf505ffff,0x2600dfff,0x7fc6ffff,0x00000fff, 0x407ff300,0x04fffffa,0x881ff900,0x3fee0fee,0x07fe4006,0x9fffff50, 0xfff98000,0x5ffff95f,0x2ffffc80,0x20dffff1,0x7c5ffff8,0x3e607fff, 0x54c44fff,0xfffff101,0xfceffff8,0xffddffff,0xffffa86f,0xffadffff, 0xfd0004ff,0xfd103fff,0x51dfffff,0x8809ffff,0x3fffe209,0xffffa805, 0x7fcc00ff,0x3ffa03ff,0x3ffff27f,0xffffffca,0x7ff403ff,0x3ffea07f, 0xffffffff,0x0effffff,0x3fffffea,0xffffffff,0xff70ffff,0x7fdc07ff, 0x3fee03ff,0x0000efff,0x303ffffa,0x260bffff,0x5007ffff,0x7c4dffff, 0xca805fff,0xfb0001ab,0x5f7fcc0d,0xf98004ff,0x7ff4004f,0x13fe6005, 0xffbeff88,0x7fd40004,0xffff94ff,0xffffd807,0x41ffffe1,0x7c4ffff9, 0xf300ffff,0x3fea7fff,0xfff305ff,0x6ffff8df,0xfb1bfffb,0x3fa60dff, 0xff33efff,0x015309ff,0x817fffec,0x0aceeca8,0x007ffff5,0x0bffff30, 0x17ffffe0,0x0bfffee0,0x91ffffc8,0x3ee5ffff,0x801effff,0x2a07fffe, 0xffffffff,0xffffffff,0x7fffd40f,0xffffffff,0x70ffffff,0x5c07ffff, 0xf503ffff,0x001dffff,0x0ffffe80,0x82ffffcc,0x03fffff8,0x25ffffd8, 0x805ffff8,0x8007ffff,0xfd102ffa,0x009ff71f,0x4001ffb0,0x2001fffc, 0xfd100ffd,0x989ff71f,0x2e05feed,0xff93ffff,0xffe80bff,0x3fffa0ff, 0xffffb80f,0x17ffff43,0x12ffffa8,0x2a0dffff,0x7fc6ffff,0x006a26ff, 0x4c0a9880,0xff54ffff,0x3fe207ff,0x20000fff,0x443ffffa,0xfff901a9, 0x3ffa007f,0xffa802ff,0x3ffe05ff,0xffff90ff,0x4001a885,0x2a07fffe, 0xffffffff,0xefffffff,0xfffffa81,0xffffffff,0xf70fffff,0x7dc07fff, 0xff983fff,0x0000efff,0x40ffffe8,0x205ffff8,0x00fffffe,0x0fffffea, 0x401ffffd,0x004ffffb,0x3f606fe8,0x009ff71f,0x1002ffa8,0x4007fffd, 0x3f602ffa,0x889ff71f,0xd01fffff,0x3f23ffff,0xf500ffff,0xffb8ffff, 0xfffe84ff,0x7fffd40f,0x3ffffb06,0x407ffffc,0x7c4ffffc,0x00006fff, 0x3fffe600,0x0dffff34,0x91ffffee,0x5c013579,0xff32ffff,0x3ffe0bff, 0xfff5007f,0x3fe200ff,0xfff307ff,0x7fffe4ff,0xffd00002,0x7ffd40ff, 0xffffffff,0x3a602dff,0xeeeeeeee,0xeefffffe,0x7ffff70e,0x1ffffdc0, 0x3fffffa2,0xffd00000,0xfff881ff,0x3ffee06f,0x730acfff,0x81ffffff, 0x80dffffc,0x01fffffa,0xc80ffdc0,0xffdaadff,0xdfd001ad,0x3fffa600, 0x037f4003,0xfb55bff7,0x7fec35bf,0x3f220dff,0x3ff25fff,0x74c0efff, 0x7c43ffff,0x3ee0ffff,0xffd04fff,0x3ee23bff,0x7ff46fff,0xff711eff, 0xfff85fff,0x0000006f,0xf93fffe6,0x2a0cffff,0x6c4fffff,0xd107ffff, 0x7fc1ffff,0x7fec1fff,0xfe8803ff,0x3e004fff,0x220cffff,0x325ffffd, 0x0002ffff,0x40ffffd0,0x99effffa,0x00000999,0x20dfffd0,0x203ffffb, 0x643ffffb,0xccefffff,0x04cccccc,0x81ffffd0,0xdefffff8,0x7ffff40f, 0xffffffff,0xf883ffff,0xcbefffff,0x06ffffff,0xb02ffc40,0xffffffff, 0xff7007ff,0xffff3003,0x1ffb8003,0x3fffff60,0x2a3fffff,0xddffffff, 0x21ffffff,0xfffffffc,0xfffffdbd,0xfffff906,0x3fffffdb,0x3ffffea0, 0xffffffdf,0x7ffffd41,0xffffffff,0x06ffff86,0x3e600000,0x3fee4fff, 0xfffdffff,0x7dc0ffff,0xa9bdffff,0x45ffffec,0xdefffffc,0x80fffffe, 0xffffdbba,0x3ee000ff,0xfddfffff,0x321fffff,0x0002ffff,0x40ffffd0, 0x005ffffa,0x7ff40000,0xffff706f,0x7fffdc07,0x7fffff43,0xffffffff, 0xffe800ff,0xfffe80ff,0x7cc1ffff,0xffffffff,0x0effffff,0xffffff30, 0xbfffffff,0x01ff9000,0x7fffffec,0x4403ffff,0xff9805ff,0x7c4000ef, 0x7ffec05f,0x3fffffff,0x7fffffe4,0x43ffffff,0xffdffffc,0xffffffff, 0xfffff302,0x0bffffff,0xffffffd8,0xd05fffff,0xffffffff,0xff05ffff, 0x00000dff,0x27fffcc0,0x3ffffff6,0x81ffffff,0xfffffff8,0xffffffff, 0x7ffffc40,0x2fffffff,0xffffff70,0xfb0009ff,0xffffffff,0xffc87fff, 0xd00002ff,0x7d40ffff,0x00005fff,0x37fff400,0x03ffffb8,0x98ffffee, 0xffffffff,0xffffffff,0xffffe800,0xfffffb80,0xffe882ff,0xffffffff, 0xfe9804ff,0xffffffff,0xff88004f,0x4cccc404,0x009dffc9,0x7400ffe4, 0xffffffff,0x00ffe407,0x32666662,0xfc809dff,0xffffffff,0x7fffc82f, 0xfffffff9,0xffe8805f,0x05ffffff,0xffffff90,0x74409fff,0xffffffff, 0xffff02ff,0x4000000d,0x444ffff9,0xfffffffd,0x3e602eff,0xffffffff, 0xf303ffff,0xffffffff,0x7ffd403d,0x000effff,0xffffffb0,0xf909ffff, 0x00005fff,0xa81ffffa,0x0005ffff,0x7fff4000,0x7ffff706,0x1ffffdc0, 0xfffffff9,0xffffffff,0xfffd001f,0x3ffee01f,0x3ae02eff,0xefffffff, 0x7f54002d,0x02ceffff,0x001ffb00,0x2013fee0,0xf9804ff8,0xffffffff, 0x013fe207,0x404ffb80,0xefffffd9,0xffff901d,0x6fffff5c,0xfffb1001, 0xa8007dff,0x1efffffe,0xfffff700,0x7fc039ff,0x000006ff,0x13fffe60, 0x7fffff54,0xff91004f,0x9fffffff,0xfffd8801,0x4c00deff,0x0cffffff, 0x7ff4c000,0x901effff,0x0005ffff,0x81ffffa0,0x005ffffa,0x7ff40000, 0xffff706f,0x7fffdc07,0x3fffffe3,0xffffffff,0xfe800fff,0x54c00fff, 0x554c4001,0x2200001a,0xf9800019,0x3aa0003f,0x0ffd803e,0xeeeeea80, 0x3605eeee,0x2a0000ff,0x2a6003ee,0x5100000a,0x9a880003,0x1a980000, 0x2aa62000,0x99998009,0x00000000,0x0554c400,0xbaa98800,0x988001aa, 0x554000aa,0x00000aab,0x000d54c4,0x3fa00000,0x000007ff,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0xccca8000, 0x5c00001c,0xb802cccc,0xeb82cccc,0xeeeeeeee,0x6664c03e,0xcccccccc, 0x991001ac,0x99999999,0x99999999,0x26662199,0x99999999,0x93099999, 0x64007999,0xdd904ccc,0xdddddddd,0x66664c05,0x33332003,0x33332604, 0xcc980001,0xcccccccc,0x93001acc,0x99999999,0x00155999,0x79dd9750, 0x33326005,0xcc88001c,0x4c002ccc,0x1ccccccc,0xccccca80,0x999950cc, 0x3bbbb205,0x03eeeeee,0x99999993,0x55999999,0x55555100,0x0d555440, 0x00b3332e,0x4f3332e0,0x003cccc9,0x3213332e,0x20004ccc,0x641cccc9, 0x0002ffff,0x37fffd40,0x3ffffe20,0xfffffc80,0x404fffff,0xfffffffa, 0xdfffffff,0x7fffcc00,0xffffffff,0xffffffff,0xffffff70,0xffffffff, 0x3ffea5ff,0x3ffe005f,0xfffd80ff,0x3fffffff,0x17fffea0,0x0fffff80, 0x07ffff70,0xffff5000,0xffffffff,0xfa801bff,0xffffffff,0x0cffffff, 0xffffe980,0x402effff,0x003ffffa,0x6fffffb8,0x7fffdc00,0xfd804fff, 0x91ffffff,0x3609ffff,0xffffffff,0xfff504ff,0xffffffff,0x017fffff, 0x81bfffe6,0x644ffffa,0x8007ffff,0xf53fffff,0x2005ffff,0x7c47fffe, 0x20007fff,0x643ffffa,0x0002ffff,0x2ffffe80,0x13ffff20,0x7fffffe4, 0x5404ffff,0xffffffff,0xffffffff,0x3fffe603,0xffffffff,0xffffffff, 0xffffff70,0xffffffff,0x3ffea5ff,0x3ffe005f,0xfffd80ff,0x3fffffff, 0x17fffea0,0x0fffff80,0x7ffff75c,0x003eeeee,0x7fffffd4,0xffffffff, 0x3fea03ff,0xffffffff,0x0effffff,0x3fffff20,0x5fffffff,0x0ffffea0, 0x3ffffa00,0x3ee001ff,0x06ffffff,0xfffffff8,0x9ffff91f,0x3fffff60, 0x504fffff,0xffffffff,0xffffffff,0x3ffe60bf,0x3ffea06f,0x7fffcc4f, 0x3fea002f,0xfff50fff,0xfd001fff,0xfff88fff,0x3ea0007f,0x7fe43fff, 0x800002ff,0x106ffffb,0x201fffff,0xaaaaaaa9,0x7d401aaa,0xffffffff, 0xffffffff,0xfffff306,0xffffffff,0x1fffffff,0x3fffffee,0xffffffff, 0xffff52ff,0x7fffc00b,0xaaaa980f,0x81aaaaaa,0xeffffb98,0x99999999, 0x9fffff99,0xfffff909,0x09ffffff,0xfffffa80,0xffffffff,0xf506ffff, 0xffffffff,0xffffffff,0x3fffee0d,0xffffffff,0xfff504ff,0xff98007f, 0x005fffff,0x3fffffee,0x3fe600ff,0x91ffffff,0x2609ffff,0xaaaaaaaa, 0xfff501aa,0xffffffff,0xbfffffff,0x0dffff30,0x427fffd4,0x004ffffe, 0xa97ffff2,0x04ffffff,0x447fffe8,0x0007ffff,0x90ffffea,0x0003ffff, 0x3ffffe00,0x4ffffc82,0xf5000000,0xddddffff,0xffffffdd,0xdddd107f, 0xfffffddd,0xdddddddd,0x3ffffee1,0xffffffff,0xfff50fff,0x7ffc00bf, 0x800000ff,0xfffffffe,0xffffffff,0xffffffff,0xfffff94f,0x09ffffff, 0xfffffa80,0xffeeeeee,0xa83fffff,0xeeefffff,0xfffffeee,0x7ffcc2ff, 0xf930bdff,0xf505ffff,0xc8007fff,0xffffffff,0xffff7000,0x5c05ffff, 0xffffffff,0x09ffff91,0x7fd40000,0xcccccfff,0xfffffecc,0x7fffcc1f, 0x3fffea06,0x7ffffb83,0x3ffffe00,0x3ffffea2,0x7ff401ff,0x7fffc47f, 0xff500707,0xfb9887ff,0x7000000f,0xf88dffff,0x0000ffff,0xffff5000, 0xffffb80b,0x7e4000ff,0x31003fff,0x33333333,0x43ffff93,0x005ffffa, 0x003ffffe,0x3fffa000,0xffffffff,0xffffffff,0x534fffff,0x55bffff9, 0xfa800355,0x7dc05fff,0x540fffff,0x2205ffff,0x46fffffd,0x205ffffc, 0xa85ffffa,0x4003ffff,0xffffffff,0xfff7003f,0x409fffff,0xfffffffe, 0x9ffff91f,0x7d400000,0xfa805fff,0x7cc3ffff,0x2a206fff,0xff882ffa, 0xfa802fff,0x7fd47fff,0x406fffff,0x7c47fffe,0x2f447fff,0x1ffffd40, 0x00007fc8,0x0fffffc0,0x00bffff9,0xddffdd71,0xfff50037,0xfff100bf, 0xfc800bff,0x00003fff,0x21ffffc4,0x005ffffa,0x803ffffe,0x1bcefdca, 0x3fffffa0,0xffffffff,0xffffffff,0x7fdc4fff,0xa80003ff,0x8805ffff, 0x545fffff,0xd805ffff,0x7f47ffff,0x7f401fff,0xfffa87ff,0x3fea003f, 0x6ffffeff,0xdffff700,0x3e20dfff,0xffffefff,0x09ffff91,0xbdeeca88, 0x7fffd402,0xffff9005,0x6ffff98b,0xd02ff980,0x900bffff,0xfa89ffff, 0x2fffffff,0x11ffffa0,0x7ccfffff,0xfffa805f,0x22bfd03f,0x2e61cccc, 0x5c01cdfd,0xff15ffff,0xfd801fff,0xffffffff,0x7ffd403f,0xfff7005f, 0x7e4003ff,0x00003fff,0x542fffec,0x2005ffff,0x880fffff,0xfffffffd, 0x7ffd403f,0x3ffe005f,0xfff700ff,0x6776547f,0x7ffd400a,0xfff7005f, 0x7ffd43ff,0xfffa805f,0x3ffb60ff,0xffffc805,0x9ffffd40,0xffffd802, 0x01ffffe9,0xfcffffb8,0xffa80fff,0x1ffffcff,0x209ffff9,0xffffffea, 0xff501eff,0x3e600bff,0x7fcc4fff,0xffb806ff,0xfffff700,0x3fffff00, 0xffffffa8,0xffd00fff,0xffff88ff,0x00bfff57,0xa87ffff5,0xfff10ffe, 0x3ffff25f,0x7fc04fff,0xfffb8fff,0x7ffec05f,0xffffffff,0x3ffea04f, 0x3ffa005f,0x3f2003ff,0x00003fff,0x203fffee,0x005ffffa,0x303ffffe, 0xffffffff,0x2a01bfff,0x2005ffff,0x700fffff,0xfb17ffff,0x03ffffff, 0x02ffffd4,0x47ffffd0,0x805ffffa,0x00fffff8,0x3fffe002,0xbffffa87, 0x7ffc406c,0xbffff76f,0x5ffff700,0xf905ffff,0xffff7dff,0x13ffff23, 0x3ffffff2,0x83ffffff,0x005ffffa,0x985ffff9,0x6406ffff,0x3fe204ff, 0x3e602fff,0xffa87fff,0x4fffffff,0x88ffffd0,0xffcfffff,0xffa803ff, 0x17fec3ff,0xfb7ffff1,0xffffffff,0x7fffdc0b,0x00ffffeb,0x3fffffea, 0xfffffffe,0xbffff500,0x7fffe400,0x3fff2005,0xf100003f,0x3ea07fff, 0x3e005fff,0x7f40ffff,0xffffffff,0xff504fff,0x7fc00bff,0xff700fff, 0xffffdbff,0x201fffff,0x005ffffa,0xa97ffff2,0xb805ffff,0x0007ffff, 0x427fffdc,0x6ffffffa,0x9ffffdc0,0x00fffff8,0x6d7fffdc,0xffe85fff, 0x1ffffbcf,0xb89ffff9,0xffffffff,0x42ffffff,0x805ffffa,0x987ffff9, 0x2e06ffff,0xffd806ff,0x3ff205ff,0xfffa84ff,0x1fffffef,0x447fffe8, 0xffffffff,0xfff5002f,0x440d987f,0xffffffff,0xfffffffe,0xfffff100, 0xe80bffff,0x74c2ffff,0xf503ffff,0x5400bfff,0x2006ffff,0x003ffffc, 0x0ffffb00,0x67ffffd4,0xcccccccc,0x20fffffc,0x22effffb,0x80ffffeb, 0xcceffffa,0xcccccccc,0x700fffff,0xffffffff,0xdffffffd,0x17fffea0, 0x6ffffa80,0x017fffea,0x0bffffd1,0x7fffdc00,0xffffa81f,0x7ff405ff, 0x3fffa0ff,0x7ffdc03f,0x47fffbaf,0xfbaffff8,0xfff91fff,0x7fffcc9f, 0xfea88aef,0x3ea0ffff,0xaaaaefff,0xffffdbaa,0xffff982f,0x400fe206, 0x00fffffa,0x503fffff,0xffb7ffff,0xfffd0dff,0xfffff88f,0x2a001eff, 0x1003ffff,0x19ffffff,0x1fffffd4,0xfffd9999,0x99bfffff,0x4feca879, 0x87ffff70,0xeffffcaa,0xa80aaaaa,0x2007ffff,0x003ffffc,0x4ffff880, 0x3ffffea0,0xffffffff,0x0fffffff,0x01fffff1,0x509ffff1,0xffffffff, 0xffffffff,0x2e01ffff,0x21ffffff,0x0fffffb8,0x3ffff2aa,0x80aaaaae, 0x2a7ffffa,0x9885ffff,0x3ffffffa,0xffffb000,0x3ffea07f,0x7fcc05ff, 0x7ffd45ff,0x7ffdc06f,0x1ffff9af,0x2e3fffea,0xff91ffff,0x7ffe49ff, 0x3fff606f,0x3fffea5f,0xffffffff,0x301fffff,0x000dffff,0x7ffffc40, 0x6ffff982,0x17ffff50,0xe87fffff,0x7fc47fff,0x000effff,0x01ffffd4, 0x5fffff88,0x29ffff90,0xfffffff8,0xffffffff,0xf30006ff,0xfff89fff, 0xffffffff,0xfff981ff,0x3ff2007f,0xc80003ff,0x2a00ffff,0xffffffff, 0xffffffff,0xff50ffff,0x7fe40bff,0xffffa87f,0xffffffff,0xffffffff, 0xfffff700,0x3ffffa03,0x3fffffe2,0x1fffffff,0x27ffff98,0xfffffffa, 0xffffffff,0xd8000fff,0x204fffff,0x804ffffa,0x442ffffd,0x201fffff, 0xff2ffffb,0x7ffe47ff,0x23ffff76,0x3a4ffffc,0x2601ffff,0x3ea7ffff, 0xffffffff,0xcfffffff,0xdffff300,0xffd80000,0xfffc85ff,0xffff503f, 0x3fffff27,0x11ffffa0,0x00bfffff,0x0ffffea0,0x7ffffc40,0x9ffff500, 0x3fffffe2,0xffffffff,0x26006fff,0x4fffffdb,0x7ffffffc,0x81ffffff, 0x887ffff9,0xffffffff,0x7fffffff,0x3fffe200,0x7fffd405,0xffffffff, 0xffffffff,0x07ffff70,0x207fffdc,0xfffffffa,0xffffffff,0x700fffff, 0x640dffff,0x3fe2ffff,0xffffffff,0xff981fff,0x3ffea7ff,0xffffffff, 0x01ffffff,0xfffffd80,0x7fffe403,0x7fffc403,0xffffd80f,0x3fffee05, 0x74bfffb2,0xfff74fff,0x3ffff23f,0x0bffff14,0x23ffffb0,0xfffffffa, 0xffffffff,0xff983fff,0x400006ff,0x40fffffa,0x500fffff,0x7f47ffff, 0x3ffa5fff,0x7fffdc7f,0x3fea0007,0xff1003ff,0x7fcc0dff,0xffff15ff, 0xffffffff,0x40dfffff,0xfffffdb8,0x7744ffff,0xeefffffe,0xffa81eee, 0xfff887ff,0xffffffff,0x2007ffff,0x402ffffb,0xeefffffa,0xeeeeeeee, 0xf90fffff,0xdddddfff,0x1ffffddd,0xefffffa8,0xeeeeeeee,0x00fffffe, 0x409ffff7,0x3a3ffffb,0xefffffee,0xfa81eeee,0x3fea7fff,0xffffffff, 0x02ffffff,0xfffffb80,0x7fffec02,0x7ffdc03f,0xffff505f,0x3ffee01f, 0x2ffff72f,0xf72ffff8,0x3ff23fff,0xffff54ff,0xffff9009,0x3ffffea5, 0xffeeeeee,0x44ffffff,0x006ffff9,0xfffff800,0x1bfffe62,0x23ffffa8, 0xd2fffffa,0x7fe4ffff,0x20007fff,0x003ffffa,0x40dffff1,0x265ffff9, 0xffd99999,0x99999aff,0xffffe980,0xffffffff,0xbffff504,0x7fffd400, 0xfffff885,0xffffffff,0x3fe007ff,0xffa807ff,0x3fe005ff,0xfffd0fff, 0xffffffff,0xa83fffff,0x2005ffff,0x700fffff,0x5c09ffff,0xfa83ffff, 0x2a005fff,0x3ea5ffff,0xffffffff,0x00bfffff,0x7ffffb00,0xfffffd80, 0x7fff403f,0x999999bf,0x703fffff,0x3e65ffff,0xfffa9fff,0x3ffff70f, 0x5d3ffff2,0xb803ffff,0xff53ffff,0xfd300bff,0x7cc1ffff,0x00006fff, 0x25ffffc8,0x203ffffc,0x6c3ffffa,0xffd6ffff,0x3ffff6ff,0x2a0007ff, 0x1003ffff,0x440bffff,0xc805ffff,0x3001ffff,0xbfffffff,0x09ffff55, 0x017fffea,0x04ffffb8,0xffb55555,0x55555bff,0x3fffe600,0xffffa803, 0x3fffe005,0xfffffb0f,0xffffffff,0xffa85fff,0x3fe005ff,0xff700fff, 0x7fdc07ff,0xfffa83ff,0x3fee005f,0x3ffea4ff,0x99aaaaef,0xff800009, 0xffe804ff,0x2603ffff,0xffffffff,0xffffffff,0xffff706f,0x65ffffc5, 0x3fee6fff,0xffff91ff,0x13fffee9,0x4fffff20,0x005ffffa,0x98bffffa, 0x0006ffff,0xfffff980,0x01ffffd0,0x21ffffd4,0xebfffff8,0xfffd7fff, 0x4000ffff,0x003ffffa,0x40bffff1,0x325ffff8,0xffeccccc,0xcccccdff, 0x3ffffe23,0x7fffcc0c,0xbffff504,0x7fffec00,0x3fff2003,0x3ee0003f, 0xfa800fff,0x3e005fff,0xff90ffff,0x333335ff,0x81333333,0x005ffffa, 0x403ffffe,0x203ffffb,0xa83ffffb,0x2005ffff,0x2a3ffffd,0x0005ffff, 0x7fffcc00,0xffbce802,0x3ff203ff,0xffffffff,0xffffffff,0x2ffffb81, 0x3fbbfff6,0x3ffee4ff,0x9ffff91f,0x017fffea,0x547ffff6,0x2005ffff, 0x265ffffb,0x0006ffff,0x7ffffd00,0x80bffff3,0xb83ffffa,0xffffffff, 0xfffbfd7f,0x7d4000ff,0xf1003fff,0x7c40bfff,0xfff15fff,0xffffffff, 0x4dffffff,0x305ffffa,0x2a09ffff,0x1005ffff,0x003fffff,0x01ffffe4, 0x0bfffd00,0x17fffea0,0x0fffff80,0x005ffff7,0x5ffffa80,0x3ffffe00, 0x7ffff700,0x1ffffdc0,0x02ffffd4,0x1fffff88,0x017fffea,0xfff50000, 0x3ea5003f,0x3fe03fff,0xffffffff,0xffffffff,0xffffb85f,0x3ffffee2, 0x3fee2fff,0xffff91ff,0x1ffffe69,0x43ffffe0,0x005ffffa,0x99ffffea, 0x0006ffff,0xbffff700,0x805ffff9,0xd03ffffa,0xffffffff,0x3ffe2faf, 0x3ea0007f,0xf1003fff,0x7c40bfff,0xfff15fff,0xffffffff,0x4dffffff, 0x702ffffc,0x2a09ffff,0x9005ffff,0x001fffff,0x01ffffe4,0x4ffff880, 0xbffff500,0x7ffffc00,0x0bffff50,0x540d66ec,0x2005ffff,0x700fffff, 0x5c07ffff,0xfa83ffff,0xf9005fff,0x7d41ffff,0x00005fff,0x01555440, 0x0ffffea0,0x7fffffd4,0xffffffff,0x40ffffff,0x262ffffb,0xffffffff, 0x47fffee0,0x3a4ffffc,0x2e03ffff,0x3ea6ffff,0x32005fff,0x3e66ffff, 0x00006fff,0xffffff30,0xf500ffff,0x3e607fff,0x7fffffff,0x1ffffe23, 0xffffa800,0xffff1003,0x7fffc40b,0xffffff15,0xffffffff,0x7fe4dfff, 0xfff884ff,0xfff505ff,0xfffb00bf,0xfc8005ff,0x50003fff,0x2005ffff, 0x005ffffa,0xe83ffffe,0xfb83ffff,0xffa86fff,0x3fe005ff,0xff700fff, 0x7fdc07ff,0xfffa83ff,0xfffd805f,0x7ffd42ff,0x0000005f,0x7ffd4000, 0xffffb03f,0x33333339,0xfffff333,0x2ffffb87,0x7ffffffc,0x8ffffdc6, 0x2e4ffffc,0xb83fffff,0x2a1fffff,0x3005ffff,0x4c9fffff,0x0006ffff, 0x3ffffa00,0xa804ffff,0x3203ffff,0x7fffffff,0x03ffffc4,0x7ffff500, 0x3fffe200,0x3fffe205,0x26666665,0x99affffd,0x3fea0999,0xfc99cfff, 0x505fffff,0x555dffff,0xfffd9555,0xf9000bff,0x20007fff,0x000ffffb, 0x00bffff5,0x507ffffc,0x57ffffff,0x05fffffb,0x00bffff5,0x807ffffc, 0x203ffffb,0xa83ffffb,0xaaaeffff,0xfffecaaa,0xfffa85ff,0x4000005f, 0x004ffffa,0x20ffffea,0x00fffff8,0x1bffff20,0xd85ffff7,0x44ffffff, 0xf91ffffb,0xffe89fff,0xfeddefff,0x7d44ffff,0xaaaaefff,0xfffcaaaa, 0x3fe62fff,0xaaaaafff,0x2aaaaaaa,0xfffff700,0xf5005fff,0x7c407fff, 0x47ffffff,0xaafffff8,0xaaaaaaaa,0xffff52aa,0x3ffe2007,0x3ffe205f, 0xfffc805f,0xfff8801f,0xffffffff,0xf506ffff,0xffffffff,0xffffffff, 0xff90001f,0x320007ff,0x2a007fff,0x2005ffff,0x6c0fffff,0xffffffff, 0xf505ffff,0x7c00bfff,0xf700ffff,0x7dc07fff,0xffa83fff,0xffffffff, 0xffffffff,0x5ffffa80,0x7d400000,0x2a004fff,0xfc83ffff,0x4c005fff, 0x2e2fffff,0x7dc2ffff,0x5c2fffff,0xff91ffff,0xfff889ff,0xffffffff, 0x7fd40eff,0xffffffff,0xffffffff,0x7fffcc5f,0xffffffff,0x005fffff, 0xfffffff1,0x3ffea00f,0x7ffd403f,0x7fc47fff,0xffffffff,0x7fffffff, 0x007ffff5,0x817fffe2,0x805ffff8,0x001ffffc,0xfffffff5,0xffff97ff, 0xfffff501,0xffffffff,0x0005ffff,0x00fffff2,0x037ffec0,0x0bffff50, 0x07ffffc0,0x7fffffdc,0x2a05ffff,0x2005ffff,0x700fffff,0x5c07ffff, 0xfa83ffff,0xffffffff,0xffffffff,0xbffff502,0xfa800000,0x2a004fff, 0xff83ffff,0xe8002fff,0x3ee5ffff,0x7fcc2fff,0x7dc0ffff,0xfff91fff, 0xfffb109f,0x9fffffff,0x3ffffea0,0xffffffff,0x40efffff,0xfffffff9, 0xffffffff,0x3f6005ff,0x004fffff,0x007ffff5,0x8ffffffb,0xfffffff8, 0xffffffff,0xffff57ff,0x3ffe2007,0x3ffe205f,0xfffc805f,0x3fa6001f, 0xf50dffff,0xff507fff,0xffffffff,0x019fffff,0x7fffe400,0xfffd0003, 0x7ffd400d,0x3ffe005f,0xffb300ff,0x805dffff,0x005ffffa,0x403ffffe, 0x203ffffb,0xa83ffffb,0xffffffff,0xcfffffff,0x3fffea00,0x54000005, 0x2004ffff,0x543ffffa,0x000fffff,0x0fffffb8,0xf05ffff7,0xf70dffff, 0x3ff23fff,0x3b2a04ff,0x01dfffff,0x3fffffea,0xffffffff,0xf981efff, 0xffffffff,0xffffffff,0x3ffea005,0xf5001fff,0xf1007fff,0xf88fffff, 0xffffffff,0xffffffff,0x07ffff57,0x17fffe20,0x05ffff88,0x01ffffc8, 0x001a9880,0x3ffffea0,0xcdefffff,0xfc80000b,0xf0003fff,0x5400bfff, 0x2005ffff,0x800fffff,0x50009a98,0x400bffff,0x700fffff,0x5c07ffff, 0xfa83ffff,0xffffffff,0x800bcdef,0x005ffffa,0x7ffd4000,0x3fea004f, 0x7ffec3ff,0xff10005f,0x3fee7fff,0xfffd82ff,0xffffb84f,0x09ffff91, 0x4002a620,0xfffffffa,0xdeffffff,0x3ffe600b,0xffffffff,0x05ffffff, 0x3ffffe20,0x3ffea006,0xfff9003f,0xffff88ff,0xffffffff,0xf57fffff, 0x00007fff,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x33260000,0xcccccccc, 0x95001acc,0x00001999,0x27930353,0x931cccc9,0x20003999,0x002aaaa8, 0x073332e0,0x99999910,0xcccca801,0x25999932,0x3322ccca,0x91004ccc, 0x54479999,0x20002aaa,0xccccccc8,0xcccccccc,0x930ccccc,0x99999999, 0x01559999,0x99950000,0x99999999,0x99999999,0x3b205999,0xeeeeeeee, 0xcccc983e,0xcccccccc,0x22cccccc,0x003cccc9,0x0f333332,0x01999997, 0x66666440,0x99999932,0x99999999,0x33261999,0x332001cc,0xcccccccc, 0xcccccccc,0x3bbbbae2,0x2a3eeeee,0x8800cccc,0xa9801999,0xaaaaaaaa, 0xaaaaaaaa,0xffdd7100,0xff5037dd,0xffffffff,0x801bffff,0x001ffffc, 0x3bfffa60,0xf55fe89b,0x3fee7fff,0xf30003ff,0x4000dfff,0x404ffffc, 0x2ffffffa,0x9ffffec0,0xfb3ffffa,0x7ffdcbff,0xffc804ff,0x3fe62fff, 0x260006ff,0xffffffff,0xffffffff,0xff50ffff,0xffffffff,0x1dffffff, 0x3fe20000,0xffffffff,0xffffffff,0xb04fffff,0xffffffff,0xfff509ff, 0xffffffff,0x9fffffff,0x037fffd4,0xffffffd8,0x7ffffd41,0x3fff6004, 0xffff51ff,0xffffffff,0x2a3fffff,0x1003ffff,0xffffffff,0xffffffff, 0x7ffe49ff,0x4fffffff,0x007ffff2,0x201fffea,0x9999999b,0x99999999, 0xfffd82a9,0x3fffffff,0x7fffffd4,0xffffffff,0x3ff204ff,0x320001ff, 0xffffffff,0xffff54ff,0x0ffffee7,0x7fffcc00,0x3fea0006,0x7fe406ff, 0x7404ffff,0xff51ffff,0x3fff67ff,0x7ffffec5,0x3fffe601,0x7fffcc5f, 0x3fe60006,0xffffffff,0xffffffff,0xffff50ff,0xffffffff,0x03ffffff, 0xffff7000,0xffffffff,0xffffffff,0x3f609fff,0xffffffff,0xffffa84f, 0xffffffff,0x24ffffff,0x806ffffa,0x1ffffffc,0x3fffffb0,0xfffff300, 0x7ffffd49,0xffffffff,0xff51ffff,0x3e2007ff,0xffffffff,0xffffffff, 0x3ffff24f,0x24ffffff,0x801ffffc,0x3807fffa,0x6c288000,0xffffffff, 0x3ea4ffff,0xffffffff,0xffffffff,0x3ffff906,0x5effc000,0x0ffffffd, 0x2e7ffff5,0x0003ffff,0x00dffff3,0x7ffffc40,0x3ffffa00,0x3fe206ff, 0x3ffea7ff,0x8bfffb3f,0x06fffff8,0x03fffffa,0x00dffff3,0x7ffffcc0, 0xffffffff,0x0fffffff,0xfffffff5,0xffffffff,0x0005ffff,0xfffffff8, 0xffffffff,0xffffffff,0x5555304f,0x03555555,0xfffffff5,0xffffffff, 0x7fd49fff,0x7fe406ff,0x2201ffff,0x806fffff,0x546ffffe,0xffffffff, 0xffffffff,0x7ffff51f,0x3fffe200,0xffffffff,0x24ffffff,0xaaaaaaa9, 0x3ff21aaa,0xffa801ff,0x0003807f,0x3ffea288,0xffffefff,0xfff50fff, 0xddddddff,0x7fffffff,0x03ffff90,0x503fe200,0x7fd417db,0xffff73ff, 0x3fe60007,0x740006ff,0xf101ffff,0x1fffffff,0x97fffea0,0xd93ffffa, 0xfff709ff,0xfff705ff,0xfff305ff,0x744000df,0xffeeeeee,0xeeeeefff, 0xfff50eee,0xddddddff,0xffffffdd,0x7fdc000b,0xfffa9dff,0xeeeeeeff, 0x03eeeeee,0xfff50000,0xddddddff,0x7ddddddd,0x037fffd4,0x3ffffff7, 0xfffff700,0x7fffdc07,0x7fffd42f,0xeeeeeeef,0xf50eeeee,0x22007fff, 0xeeeeeeee,0xffffeeee,0xc80003ff,0xa801ffff,0x03807fff,0x3fa28800, 0x7f4c2fff,0xfff53fff,0x7fdc40bf,0x7e40ffff,0x00001fff,0x3fee0000, 0xf30003ff,0x8000dfff,0x503ffffc,0xffffffff,0x3fffee05,0x0ffffea3, 0x3ffa07fb,0x3fe20fff,0xff305fff,0x00000dff,0x01ffffe4,0x05ffffa8, 0x7ffffe98,0x3fffa000,0xdffff31f,0x00000000,0x02ffffd4,0x7fffd400, 0xfffff506,0x7ff4005f,0xff880fff,0xffa85fff,0x2a0006ff,0x0003ffff, 0xfffffb00,0x2a60000b,0xfa800aaa,0x003807ff,0x3b2a2880,0xffff704f, 0x17fffea7,0x3ffffe20,0x0ffffe45,0x00000000,0x007ffff7,0x1bfffe60, 0xffff7000,0x3ffff20b,0xfb04ffff,0x7fd43fff,0x0bfe23ff,0x27ffffcc, 0x01fffffb,0x01bfffe6,0xfffc8000,0xfff5003f,0x3fe600bf,0xa8001fff, 0x3e65ffff,0x40006fff,0x201cccca,0xf51cccca,0x0000bfff,0x50dffff5, 0x05ffffff,0xfffff980,0xfffffc84,0x6ffffa80,0x3ffea000,0xc800003f, 0x00efffff,0x00733326,0xffff5000,0x10000700,0xfff30005,0x3fffea9f, 0xffff7005,0x7fffe43f,0xccccc881,0x33332603,0x1cccc981,0x547ffff7, 0x980bdeec,0x0006ffff,0x83ffffcc,0xffedfffe,0xfffff06f,0x33ffffa8, 0xffc80bfd,0xfff99fff,0x3fe603ff,0x000006ff,0x00fffff2,0x02ffffd4, 0x07ffffd0,0x5ffffd00,0x037fffcc,0x3fffee00,0x3ffff202,0x0bffff52, 0xffff5000,0xfffff98d,0xff90002f,0x7fcc3fff,0xff502fff,0x54000dff, 0x0003ffff,0x7ffffd40,0x7ffd400f,0x5550003f,0xffff9555,0x25555557, 0x02880003,0xffffb730,0x3fffea9f,0x3fffa005,0x3ffff23f,0xfffffe81, 0x3fffea00,0x3ffffa83,0xd17ffff7,0x5fffffff,0x06ffff98,0xfffff800, 0x5ffffc40,0x4c0ffffc,0x7d46ffff,0x1dfd3fff,0xdffffd00,0x80dffffd, 0x006ffff9,0x3fff2000,0xfff5003f,0x7ff400bf,0x7d4003ff,0x7fcc6fff, 0x5c0006ff,0x3202ffff,0xff52ffff,0x50000bff,0x7ccdffff,0x003fffff, 0x37ffff40,0x40bffffb,0x006ffffa,0x0ffffea0,0xfff98000,0xfa802fff, 0x88003fff,0xffffffff,0xffffffff,0x1000075f,0x3ff6e205,0x4fffffff, 0x00bffff5,0x92ffffe4,0xfd83ffff,0x5401ffff,0xfa83ffff,0xfff73fff, 0xfffffdbf,0x7cc5ffff,0x80006fff,0x5c2ffffd,0xffa9ffff,0x7ffd42ff, 0x7fffd44f,0x7cc00753,0xffffffff,0x7ffcc01f,0x2000006f,0x003ffffc, 0x00bffff5,0x07ffffe6,0x7ffffb00,0x06ffff98,0x7fffdc00,0x3ffff202, 0x0bffff52,0xffff5000,0x3ffffe2d,0xf980003f,0xffaaffff,0x3ea00fff, 0x20006fff,0x003ffffa,0xffffd100,0x3fea007f,0xf88003ff,0xffffffff, 0xffffffff,0x51000075,0xfffffe98,0x4fffffff,0x00bffff5,0x937fffd4, 0x7e43ffff,0xa801ffff,0xfa83ffff,0xfff73fff,0xffdfffff,0x7ccbffff, 0x80006fff,0x6c4ffffb,0xfff17fff,0xffffc89f,0x1ffffd42,0xffff9000, 0x3009ffff,0x000dffff,0x7fffe400,0xffff5003,0xffff300b,0xff9800df, 0xfff987ff,0xccccccff,0x5c2ccccc,0x3202ffff,0xff52ffff,0x99999dff, 0x59999999,0x8effffa8,0x06fffffe,0x3fff2000,0x3ffffeff,0x77fffd40, 0x99999999,0x7ffd4099,0xfb00003f,0x400bffff,0x003ffffa,0xffffff88, 0xffffffff,0x00075fff,0x7ffcc510,0xfaadffff,0xfff54fff,0x7fd400bf, 0x3fff27ff,0xfffff71f,0x3ffea005,0xffffa83f,0xffffff73,0xfffffc85, 0x0dffff30,0x40ffffee,0x7c6ffff9,0x3ffa5fff,0x7ffff46f,0x1ffffd40, 0xffff1000,0x2600dfff,0x0006ffff,0x3ffff200,0xffff5003,0xdddddddf, 0x5fffffff,0xffffd800,0xfffff983,0xffffffff,0x7fdc4fff,0x3ff202ff, 0xffff52ff,0xffffffff,0xa89fffff,0xffeeffff,0x002fffff,0xfffff100, 0x500dffff,0xffffffff,0x7fffffff,0x33ffffa8,0x2009ffff,0x06fffffc, 0x1ffffd40,0x7fffc400,0xffffffff,0x075fffff,0x3e251000,0x4c0cffff, 0xff54ffff,0x7cc00bff,0x3ff27fff,0xffffa9ff,0x3fea002f,0xfffa83ff, 0xfffff73f,0x3ffffa05,0x0dffff31,0x80ffffee,0x3e67ffff,0x3ff23fff, 0x3fffe0ff,0x3ffffa86,0x7ffd4000,0xf3001fff,0x0000dfff,0x1ffffe40, 0xfffffa80,0xffffffff,0x004fffff,0x07ffffc4,0x7fffffcc,0xffffffff, 0x7ffdc4ff,0x3fff202f,0xfffff52f,0xffffffff,0xfa89ffff,0xffffffff, 0x000fffff,0xfffff500,0xf5003fff,0xffffffff,0x87ffffff,0xf33ffffa, 0xf5009fff,0x001fffff,0x03ffffa8,0x33333300,0x333ffff7,0x000e1333, 0x7ffd4a20,0xffff305f,0x17fffea9,0x7ffff980,0x3f3ffff2,0x4003ffff, 0xa83ffffa,0xff73ffff,0x7fe40dff,0xffff32ff,0x3fffee0d,0x3ffffa03, 0x41ffff71,0xf32ffff9,0xff509fff,0xe80007ff,0x03ffffff,0x0dffff30, 0x7fe40000,0xff5003ff,0xffffffff,0x5fffffff,0xffff9000,0x3fffe609, 0xffffffff,0x7dc4ffff,0x3f202fff,0xfff52fff,0xffffffff,0x89ffffff, 0xfffffffa,0x4fffffff,0x3ff60000,0x5004ffff,0xffffffff,0x7fffffff, 0x33ffffa8,0x9809ffff,0x01ffffff,0x3ffffa80,0x7fd40000,0x0003807f, 0xffff9288,0x3fffee05,0x0bffff54,0x37fffd40,0xfffffff9,0xf5000fff, 0xff507fff,0x3ffee7ff,0x3ffee05f,0xdffff32f,0x0ffffee0,0xb3ffffc8, 0xfff0dfff,0x3fffee9f,0x3ffffa82,0x3ffee000,0x801fffff,0x006ffff9, 0x3fff2000,0xfff5003f,0xffffffff,0x00037fff,0x07ffffe2,0x77ffffcc, 0xeeeeeeee,0x7ffdc3ee,0x3fff202f,0xfffff52f,0xdddddddd,0xfa87dddd, 0xbfffffff,0x01fffffc,0xffff1000,0x3ea001ff,0xffffffff,0x43ffffff, 0xf33ffffa,0x7c409fff,0x003fffff,0x07ffff50,0x007ffff2,0x201fffea, 0x92880003,0xf109ffff,0x3eabffff,0x2e005fff,0x3f25ffff,0xffffffff, 0x7fd4003f,0xfffa83ff,0x9ffff73f,0x9ffffdc0,0x706ffff9,0x5407ffff, 0xfff4ffff,0xdfffb09f,0x203ffff6,0x003ffffa,0xffffff10,0xf300dfff, 0x0000dfff,0x1ffffe40,0xeffffa80,0xffffdbaa,0xf90000df,0x9999ffff, 0xdffffb99,0xfffb8000,0x3fff202f,0xbffff52f,0xfff50000,0x3e29ffff, 0x0006ffff,0x0fffff60,0xeffffa80,0x99999999,0x7ffd4099,0x9ffff33f, 0x7fffff40,0x3fea0004,0xfff903ff,0xfff5003f,0x0000700f,0x3fffea51, 0xfffc99cf,0xfff55fff,0x7fe400bf,0x3fff24ff,0xffffffff,0x3ffea000, 0xffffa83f,0x07ffff73,0x99ffffdc,0x0006ffff,0x3dffff10,0xf705ffff, 0xfffd1fff,0x3fffea0d,0xfffb0003,0x7fffffff,0x6ffff980,0x3f200000, 0xf5003fff,0xff50bfff,0x8003dfff,0xfffffff8,0xffffffff,0x5c0006ff, 0x3202ffff,0xff52ffff,0x50000bff,0x89ffffff,0x04fffffb,0xffff9000, 0x7ffd4007,0x3ea0006f,0xc8003fff,0x006fffff,0x1ffffd40,0x01ffffc8, 0x807fffa8,0x12880003,0xffffffff,0xdfffffff,0x017fffea,0x23ffffd8, 0xeffffffc,0x2004ffff,0xa83ffffa,0xff73ffff,0x7fdc07ff,0xffff33ff, 0x7f40000d,0xffffcfff,0xbffff980,0xf504ffff,0x50007fff,0xfdbfffff, 0x4c03ffff,0x0006ffff,0x3ffff200,0xffff5003,0x3fffea0b,0x3ee000ff, 0xffffffff,0xffffffff,0x7fdc0006,0x3ff202ff,0xffff52ff,0xff50000b, 0x3fa09fff,0x0001ffff,0x03ffffc8,0x1bfffea0,0xffffa800,0x7ffdc003, 0x40000fff,0x903ffffa,0x5003ffff,0x0700ffff,0x7d451000,0xffffffff, 0xa8ffffcb,0x1005ffff,0x645fffff,0xe8dfffff,0x5001ffff,0xf507ffff, 0x3fee7fff,0x3fee03ff,0xffff33ff,0x7e40000d,0x6fffffff,0x3fffffe0, 0xff502fff,0xf88007ff,0xf98fffff,0x2606ffff,0x0006ffff,0x3ffff200, 0xffff5003,0x7fffe40b,0x3ffe006f,0xffffffff,0x6fffffff,0x7ffdc000, 0x3fff603f,0xbffff52f,0xfff50000,0x7ffd40df,0xc80006ff,0x2003ffff, 0x006ffffa,0x0ffffea0,0xfffff980,0xfa80001f,0xff903fff,0xdd5001ff, 0x000700dd,0xffe98510,0xff50dfff,0xffff57ff,0x3fff600b,0x7fffe46f, 0x1bfffea5,0x1ffffd40,0xb9ffffd4,0x2e03ffff,0xff33ffff,0x40000dff, 0xfffffffa,0x3fff604f,0x500fffff,0x8007ffff,0x22fffffd,0x03fffffc, 0x00dffff3,0x7ffe4000,0xfff5003f,0xfffe80bf,0xffa803ff,0xffffffff, 0xffffffff,0x7fd40006,0xfff104ff,0x3ffea5ff,0xfa80005f,0x7ec06fff, 0x0003ffff,0x01ffffe4,0x0dffff50,0x7fffd400,0xffff1003,0x200005ff, 0x403ffffa,0x00000ffa,0x51000070,0x8006a620,0x805ffffa,0x41fffffb, 0x741ffffc,0xa802ffff,0xfa83ffff,0xfff73fff,0x7ffdc07f,0xdffff33f, 0x7fc40000,0x02ffffff,0x3fffffee,0x3ffea07f,0x3fea003f,0xffe85fff, 0xff980fff,0x000006ff,0x00fffff2,0x02ffffd4,0x3fffffe6,0x7ffff401, 0xffff9804,0x7fc40006,0xffe80fff,0xfff52fff,0xf50000bf,0xf880dfff, 0x001fffff,0x0fffff20,0x6ffffa80,0x3ffea000,0xfffd003f,0x400009ff, 0x403ffffa,0x333227fc,0xcccccccc,0x73cccccc,0x00510000,0xffffa800, 0xcaaaaaae,0x85fffffe,0x4c1ffffc,0xa806ffff,0xfa83ffff,0xfff73fff, 0x7ffdc07f,0xfffff33f,0x55555555,0x7c055555,0x0fffffff,0x3ffffe60, 0x3fea05ff,0xff1003ff,0xf301ffff,0xf30dffff,0x5555ffff,0x55555555, 0x3fff2005,0xfff5003f,0xfff700bf,0x7fd40dff,0xf9800fff,0xaaaaffff, 0xaaaaaaaa,0x7fffffc2,0xfffffcac,0xffff52ff,0x5555555d,0x45555555, 0x806ffffa,0x06fffffc,0x3ffff200,0x3ffea003,0x3ea0006f,0xfb803fff, 0xaaafffff,0xaaaaaaaa,0xffa80aaa,0x3fe603ff,0x3ffffe24,0xffffffff, 0x0075ffff,0x00005100,0xffffffa8,0xffffffff,0xfc80ffff,0xffd81fff, 0x7fd403ff,0xfffa83ff,0x7ffff73f,0x9ffffdc0,0xfffffff9,0xffffffff, 0x3ff605ff,0xf806ffff,0x03ffffff,0x00ffffea,0x1fffffec,0x7fffff90, 0xffffff98,0xffffffff,0xf9005fff,0x2a007fff,0xd005ffff,0x207fffff, 0x005ffffe,0xfffffff3,0xffffffff,0xfffc8fff,0xcfffffff,0xff52ffff, 0xffffffff,0xffffffff,0x3fffea1f,0xffff8806,0xf90003ff,0x54007fff, 0x0006ffff,0x00ffffea,0x3ffffff2,0xffffffff,0x81ffffff,0x903ffffa, 0xfff88dff,0xffffffff,0x75ffffff,0x99999999,0x99999999,0xa800005b, 0xffffffff,0xffffffff,0xffff902f,0xfffff103,0x7fffd401,0x3ffffa83, 0x407ffff7,0xf33ffffb,0xffffffff,0xffffffff,0x7fffdc0b,0xffc803ff, 0x2a01ffff,0xa803ffff,0x406fffff,0x0ffffff8,0x3fffffe6,0xffffffff, 0xf9005fff,0x2a007fff,0x3005ffff,0x81ffffff,0x02fffff9,0xffffff30, 0xffffffff,0xffb0ffff,0x35ffffff,0x3ea5ffff,0xffffffff,0xffffffff, 0xffff50ff,0x3ffea00d,0xc8000fff,0x2003ffff,0x006ffffa,0x0ffffea0, 0x3fffff20,0xffffffff,0x1fffffff,0x03ffffa8,0xff881bf9,0xffffffff, 0x5fffffff,0x00000000,0x7ffffd40,0xffffffff,0x3f200cff,0xff901fff, 0x7fd40bff,0xfffa83ff,0x7ffff73f,0x9ffffdc0,0xfffffff9,0xffffffff, 0x3fe605ff,0xa801ffff,0x407fffff,0x403ffffa,0x1ffffff8,0xfffffa80, 0x3ffffe66,0xffffffff,0x9005ffff,0x2007ffff,0x005ffffa,0x17ffffee, 0x00dffffb,0x7fffffcc,0xffffffff,0xfd907fff,0x3e63bfff,0xfff52fff, 0xffffffff,0xffffffff,0x1bfffea1,0xfffffe80,0xfffc8005,0x3fea003f, 0x2a0006ff,0xc803ffff,0xffffffff,0xffffffff,0xfa81ffff,0x05103fff, 0x3fffffe2,0xffffffff,0x00005fff,0x7d400000,0xffffffff,0x800bcdef, 0x101ffffc,0x203fffff,0xa83ffffa,0xff73ffff,0x7fdc07ff,0xffff33ff, 0xffffffff,0x80bfffff,0x007fffff,0x0bfffff1,0x03ffffa8,0x1fffffe4, 0xfffffb00,0x3ffffe67,0xffffffff,0x9005ffff,0x2007ffff,0x005ffffa, 0x97fffff4,0x03fffff9,0x3ffffe60,0xffffffff,0x4407ffff,0x7fd4001a, 0xffffffff,0xffffffff,0xdffff50f,0x7fffcc00,0x7e4003ff,0x2a003fff, 0x0006ffff,0x00ffffea,0x3ffffff2,0xffffffff,0x01ffffff,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x14000000, 0x00000002,0xca802200,0x001bcefd,0xbdeeca88,0x39999302,0x88000000, 0x02bdeeca,0x00e66654,0x2a399995,0x2a01cccc,0x9991cccc,0x776d4099, 0x6dc0cdef,0x8002defe,0xcdefecb8,0x77654000,0x8002deef,0x2bdeeca8, 0x79dfb950,0x66664c01,0x26000c81,0x23cccb82,0x81bdfdb9,0x81bdfdb9, 0x6544ccc9,0xca80bdfe,0x33bae4cc,0x073332a2,0x473332a0,0x2604cccb, 0x3201cccc,0x99933ccc,0x66640599,0x666543cc,0xcccccccc,0x33262ccc, 0xccb801cc,0xffa8002c,0x3fb6ea04,0xa93f22ce,0x000000cf,0x40fe4c00, 0xffffffd8,0xfd5003ff,0xdfffffff,0x3ffffb83,0x1ffffc80,0x7fff5400, 0x01efffff,0x405ffff7,0xf72ffffc,0x7e405fff,0xffff2fff,0xfffff50f, 0xf79fffff,0xffffffff,0x3ffee005,0x0dffffff,0x7ffff540,0x01ffffff, 0xfffffea8,0xfb10dfff,0x7fffffff,0x0ffffea0,0x2a621df9,0xb0bfe61a, 0x3feebfff,0x2e2fffff,0x3fffffff,0x447fffdc,0xfffffffe,0xdbfffe42, 0xf50fffff,0xff00bfff,0x3fee1fff,0xfff901ff,0x3ffea09f,0x3ffff63f, 0xffffb80f,0x7fffec1f,0xffffffff,0x3ffee4ff,0xfffd802f,0x7ffcc004, 0xffffd884,0xffcfffff,0x3bfff50e,0xa8000000,0x7cc1fffd,0xffffffff, 0x3f200dff,0xffffffff,0x3fee3fff,0xffc803ff,0x3f2001ff,0xffffffff, 0xffb83fff,0x3ff202ff,0xffff72ff,0x7fffe405,0xa8fffff2,0xffffffff, 0xffffffff,0x3fffffff,0x3ffff620,0x5fffffff,0x3ffffe60,0xffffffff, 0x3ffff201,0xffffffff,0xfffffffc,0xfa85ffff,0x3fee3fff,0xfffffcef, 0x22ffffcf,0xffcdfffd,0xafffffff,0xfffffffc,0x3ffee2ff,0xfffffe9f, 0x3f22ffff,0xffffcfff,0x7ffffc6f,0x3fffea00,0x0ffffe64,0x837ffff4, 0x220ffffc,0x445fffff,0xd83fffff,0xffffffff,0x24ffffff,0x802ffffb, 0x1004fffd,0xb89ffff9,0xffffffff,0x20efffff,0x2efffffa,0x2e200000, 0x41fffffe,0xfffffffe,0x704fffff,0xffffffff,0x25ffffff,0x803ffffb, 0x001ffffc,0xfffffff7,0x5fffffff,0x02ffffb8,0x5cbffff2,0x3202ffff, 0xfff2ffff,0x7fffc4ff,0xfffffeff,0xfeffffff,0x901fffff,0xffffffff, 0x209fffff,0xcdfffffe,0x06fffffe,0xfffffff7,0xffffffff,0xfffbffff, 0xffa87fff,0x3fffa3ff,0xffffffff,0x364fffff,0xefffffff,0xffffffff, 0xffffffff,0x3fffee7f,0xfffeffff,0x3ff26fff,0xffffffff,0x1ffffe43, 0x83ffffb0,0xf885fffe,0xe80fffff,0xffa86fff,0x3ffa3fff,0xfffb05ff, 0xffffffff,0x7fdc9fff,0xffd802ff,0xfffa804f,0x3fe64fff,0xffeeffff, 0x7d44ffff,0xbfffffff,0xf9100000,0x3fffffff,0x177fffdc,0x81ffffd7, 0xaefffff9,0xffffea88,0x2ffffb8f,0x1ffffc80,0xfffff980,0xffea88ae, 0x3fee0fff,0x3ff202ff,0xffff72ff,0x7fffe405,0x64dffff2,0x260cffff, 0x3ffffffe,0x437fffd4,0x0bfffff9,0x1fffff71,0x82ffff98,0x42ffffe8, 0xaefffff8,0xfffffb98,0x7f544fff,0x3fea0fff,0x3ffa23ff,0xffffffff, 0x7ec4ffff,0x2e0dffff,0x1effffff,0x3fffff71,0x3fffffee,0xffff910a, 0x3ffff23f,0x40fdbdff,0x106ffff8,0xf90dffff,0xffb81fff,0x7c42ffff, 0xff903fff,0xfff71fff,0x2aea01ff,0xffbaaaaa,0x3ee0ffff,0xfd802fff, 0xffa804ff,0x3fa4ffed,0x3660dfff,0x260fffff,0xfffffffe,0x50001cff, 0xfffffffb,0x3fe21dff,0xff880fff,0x7ffe44ff,0x3fff606f,0x1ffba8df, 0x1eeeeb80,0x6ffffc80,0x97ffff60,0x202ffffb,0xf72ffffc,0x7e405fff, 0xfd552fff,0x8376dccb,0x04fffffa,0xd83ffff7,0xfb03ffff,0xffa89fff, 0x57b301ff,0xdffff701,0xfffff101,0x3ffe20df,0x3fffea2f,0x7ffffc43, 0xffffffef,0xeffffd86,0xfffffe80,0x2ffffd81,0x07fffff7,0x647ffffa, 0x043fffff,0x81ffffd8,0x983ffffb,0x7ec2ffff,0x5c4fffff,0x3a01ffff, 0xfffeffff,0xd10002ff,0x983fffff,0xd800aaaa,0xca804fff,0x3f29ff90, 0xffd04fff,0xf930bfff,0xffffffff,0x3fae005d,0xffffffff,0x7fffd41c, 0x1ffff205,0x403ffffd,0x2a7ffff9,0x000000ff,0x807ffffa,0x2e7ffff9, 0x3202ffff,0xff72ffff,0x7fe405ff,0x027f42ff,0x1fffff80,0xf13fffe0, 0x6cc0ffff,0xfff980ab,0x4000acff,0x202ffffd,0x04fffffb,0xfa97fff6, 0x7fcc3fff,0x3faa2dff,0x7fec0fff,0xfff903ff,0x3ffee0bf,0xdffff73f, 0x97fffe40,0x007ffffc,0x213fffea,0xf00ffffe,0xfff89fff,0x7ec6ffff, 0x7fcc06ff,0x5fffffff,0x3fff6000,0x200002ff,0x8004fffd,0xffff4ffc, 0xffffb01f,0x2e201fff,0xfffffffe,0x7e440bff,0xffffffff,0x3ffee02d, 0x3ffee03f,0xbffff10f,0x3ffffb00,0x00001bf6,0x05ffff88,0x71ffffd8, 0x6405ffff,0xff72ffff,0x7fe405ff,0x0bfe62ff,0x7ffed440,0x7ff407ff, 0x3fffe26f,0x7fc40005,0xbeffffff,0x6ffff801,0x2fffff80,0xa9fffee0, 0x7e43ffff,0xff980fff,0x7ffec2ff,0xffff901f,0x3fffee07,0x09ffff73, 0xc9ffffdc,0x4004ffff,0x7cc7ffff,0x3f204fff,0x3ffe67ff,0x3e0ffffe, 0xfb804fff,0x0effffff,0xffffb000,0xff70007f,0xffffffff,0x5fffffff, 0x3e33ff20,0xffc85fff,0x01ffffcd,0xfffffc98,0xff31ffff,0x7fffffff, 0xffff9001,0xdddddddd,0x3ea1ffff,0xfc804fff,0x2ffecfff,0x3fffffe2, 0xffffffff,0xfff55fff,0xfff9009f,0x3fffee5f,0x3ffff202,0x05ffff72, 0x997fffe4,0x36e205ff,0xffffffff,0xffffffff,0x2a7fffff,0x0004ffff, 0xffffffc8,0x80cfffff,0x805ffff8,0xfffffffe,0xffffffff,0x7ffff50f, 0x205fffd8,0x7ec3fffe,0xff900fff,0x3fea05ff,0xffff73ff,0x7fffdc07, 0x07ffff93,0x1ffffc80,0x807ffff2,0xf71ffffa,0x5fff99ff,0x007fffea, 0x7fffffec,0xfff90001,0x2e0009ff,0xffffffff,0xffffffff,0x39ff902f, 0xfb87ffff,0x7ffff76f,0xfffda800,0xfff51fff,0x8005bfff,0xfffffffe, 0xffffffff,0x7ffff71f,0xfffff700,0xfff889ff,0xffffffff,0x75ffffff, 0x7007ffff,0x3ee7ffff,0x3f202fff,0xfff72fff,0x7ffe405f,0x80effedf, 0xffffffd9,0xffffffff,0xffffffff,0x3ffee7ff,0xf900004f,0xffffffff, 0xffa87fff,0xffd804ff,0xffffffff,0x51ffffff,0xfe87ffff,0x3ff603ff, 0x7fffec4f,0x5ffff900,0x4ffffea0,0x203ffffb,0xf93ffffb,0x88005fff, 0x3fe4ffff,0xfff806ff,0x55fffb3f,0x3ff29fff,0x3fe6007f,0x70006fff, 0x00bfffff,0x7ffffdc0,0xffffffff,0xf902ffff,0x7ffff59f,0xf9877fd4, 0x88004fff,0x51fffffc,0x019fffff,0xfffffb00,0xffffffff,0x3fee5fff, 0xffc804ff,0xf881dfff,0xffffffff,0xffffffff,0x09ffff75,0x27ffff90, 0x202ffffb,0xf72ffffc,0x7e405fff,0x04ffffff,0xfffffff1,0xfffff37b, 0xffffffff,0x3ea1ffff,0x00004fff,0x3fffff26,0x22ffffff,0x805ffffa, 0xfffffffe,0xffffffff,0x7ffff51f,0x106fffd8,0xfd87ffff,0xff900fff, 0x3fea05ff,0xffff73ff,0x7fffdc07,0x05ffff93,0x2ffffb00,0x803ffff9, 0xfff5fffd,0x2dfff11f,0x2004fffe,0x4ffffffe,0x7fffd400,0x2e0000ef, 0xffffffff,0xffffffff,0x59ff902f,0x3e67ffff,0x3ffe60ff,0x3f6a003f, 0x51ffffff,0xbfffffff,0x7ffe4005,0x999999af,0xf5099999,0xfb00bfff, 0x7c407fff,0xffffffff,0xffffffff,0x0bffff55,0x23ffffb0,0x202ffffb, 0xf72ffffc,0x7e405fff,0x7401cfff,0x442effff,0x999fffff,0x99999999, 0x17fffe61,0x32a20000,0xfffffffe,0x1ffffe26,0x2bffffe0,0x99999999, 0xfff50999,0xffffb87f,0x1ffffb82,0x807fffec,0x502ffffc,0x3ee7ffff, 0x3ee03fff,0xfff93fff,0xff50005f,0xffff95ff,0xffff5001,0x7f4dfff5, 0x2ffffaff,0xfffff700,0x26003fff,0x00ffffff,0x66665400,0xceffffcc, 0x901ccccc,0xffff19ff,0xa83fff1b,0x4402ffff,0xfffffffb,0xffd10dff, 0x7fffffff,0xffffb801,0xfff30002,0xfff801ff,0x332200ff,0xcccccccc, 0x3ccccccc,0x00fffff3,0x2e1fffff,0x3603ffff,0xff72ffff,0x7fec07ff, 0x7fc402ff,0xfff106ff,0x220001ff,0x2207ffff,0x8002cdef,0x7ffffda8, 0x017ffffc,0x05fffff3,0x3fffea00,0x7ffffc43,0xffffebad,0x0ffffd86, 0x05ffff90,0x5cffffea,0x2e03ffff,0xff93ffff,0x3e0003ff,0xffffdfff, 0xffff1005,0x7e47fffd,0x07fffeff,0xffffff30,0x8801dfff,0x01ffffff, 0x7fec0000,0xffc8004f,0xfddffff4,0xffff905f,0x3fff6a03,0x1cffffff, 0xfffff930,0x205bffff,0x205ffffa,0x7f41acdd,0x3ee03fff,0x00006fff, 0xffffe800,0x3fffee03,0x13fffea6,0x97ffffc4,0x104ffffa,0x805fffff, 0x503ffffa,0x207fffff,0x7c0abde9,0xf702ffff,0xdca8bfff,0x3ffa00fe, 0x3fff60ff,0x3fff605f,0x9bd105ff,0x7fffd437,0x7ffffcc3,0xffffffff, 0x7fffec0e,0x5ffff900,0x4ffffea0,0x203ffffb,0xf93ffffb,0x20003fff, 0xfffffffc,0x3ff6001f,0x2a1fffff,0x5fffffff,0xbffffd00,0x40bfffff, 0x1fffffe8,0xfd800000,0x988004ff,0xfffffb09,0xffff307f,0xffffc88f, 0x0bffffff,0xffff9100,0x17ffffff,0x83ffffe8,0x5c6ffffb,0xb83fffff, 0x002fffff,0x00666620,0x1fffffdc,0x0fffffdc,0x01fffff1,0x25fffffd, 0x81fffff8,0x02fffffe,0x837fffd4,0x1ffffffe,0x44ffffe8,0x41fffffb, 0x42fffff9,0x104ffffe,0xf98dffff,0xfd84ffff,0x83ffffff,0x2a5ffffc, 0x3e63ffff,0xffffffff,0x0effffff,0x403ffff6,0x502ffffc,0x3ee7ffff, 0x3ee03fff,0xfff93fff,0x3e20003f,0x06ffffff,0x7ffffdc0,0x7fffc47f, 0xfc802fff,0xfff56fff,0x3ff605ff,0xaaa9bfff,0xf70aaaaa,0xfb005fff, 0x200009ff,0x85fffff9,0x22ffffe9,0xfffffff9,0x40002eff,0xffffffea, 0x3fea1fff,0xfdabffff,0xfe82ffff,0xeddeffff,0x005fffff,0x0ffffe40, 0xfffffe80,0xffffedde,0xfffff84f,0xffffcacf,0x3ffe2fff,0xffcacfff, 0x402fffff,0x9dfffff8,0xfffffeb8,0xfecbefff,0xfe80ffff,0xfeceffff, 0xfa86ffff,0xa9bdffff,0x84ffffeb,0xdffffffc,0xfffffffd,0xfdbbffff, 0x3ea1ffff,0x3ffa3fff,0xffffffff,0x25ffffff,0x900ffffd,0x2a05ffff, 0xff73ffff,0x7fdc07ff,0xffff93ff,0x7fec0003,0x4003ffff,0x5ffffff8, 0xffffffe8,0x7fffd400,0x3ffff61f,0x7fffd40f,0xffffffff,0xff70ffff, 0xffb005ff,0x6400009f,0xbcefffff,0x45fffffd,0xfffffffa,0x4c00001d, 0xfffffffd,0x7ffffec1,0x5fffffff,0xffffff10,0xdfffffff,0xffc80001, 0xff1001ff,0xffffffff,0xf901dfff,0xffffffff,0x45ffff9f,0xfffffffc, 0xffffcfff,0xffffd802,0xffffffff,0xffffffff,0x303fffff,0xffffffff, 0x203fffff,0xfffffffc,0x06ffffff,0x3ffffffa,0xffffffff,0xffffffff, 0x7fd44fff,0x3ffa23ff,0xbeffec9c,0x360effd8,0xf900ffff,0x3ea05fff, 0xfff73fff,0x7ffdc07f,0x3ffff93f,0x7ffd4000,0xe8000fff,0xc83fffff, 0x405fffff,0x44fffff8,0x45fffff8,0xfffffffa,0xffffffff,0x5ffff70f, 0x09fffb00,0x7ffdc000,0xffffffff,0x7fd40eff,0x0000cfff,0x7ffe4400, 0xfffb81ff,0x5fffffff,0x7fffec40,0x04ffffff,0xffff9000,0x7fec4003, 0xffffffff,0x7fffec04,0xff9affff,0x7ffec2ff,0xf9afffff,0xf8802fff, 0xffffffff,0xfffd89df,0x3fffffff,0x7ffff4c0,0x02ffffff,0x7fffffe4, 0x00efffff,0x7fffffe4,0xff73ffff,0xffffffff,0x7ffff509,0x36004e88, 0x7fffec0e,0x5ffff900,0x4ffffea0,0x203ffffb,0xf93ffffb,0x80003fff, 0x005fffff,0x3fffff70,0x5fffff30,0xeffffd80,0xfffffb80,0x3ffffea3, 0xffffffff,0xfff70fff,0xfffb005f,0x3e600009,0xffffffff,0xf504ffff, 0x000005df,0x3ffd7100,0x3ffff660,0x2a002eff,0xdfffffec,0x3f200001, 0xa8001fff,0xdfffffec,0xfffd9001,0x3ffe63bf,0x7ffec42f,0xfff32dff, 0x3f22005f,0x82dfffff,0xffffffea,0x3fb2001c,0x00cfffff,0xfffff930, 0x4c005dff,0xdffffffd,0x7fffec40,0xff501dff,0x000107ff,0x1ffffb01, 0x0bffff20,0xb9ffffd4,0x2e03ffff,0xff93ffff,0xc80003ff,0x0002ffff, 0x40fffff3,0x200fffff,0x01fffffa,0x47fffff6,0xfffffffa,0xffffffff, 0x5ffff70f,0x03555500,0x27ffe000,0xffffffda,0x0076a01d,0x54000000, 0x9a98801d,0x54c40000,0xd7000000,0x80003ddd,0x20000a98,0x880001a8, 0x1000001a,0x4c001353,0x200009aa,0x00009a98,0x000d54cc,0x80055440, 0x00009aa8,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x17cc0000,0x0002aa62,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000200,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x20000000,0x881cccca, 0x003ccccc,0x02666000,0x20001333,0x4ccc1998,0x00000000,0x36e00000, 0x6dc03dee,0x00001dee,0xeeea8000,0xeeeeeeee,0x52eeeeee,0xdddddddd, 0xdddddddd,0x3ffff25d,0x43333322,0x30ccccc8,0xa8899999,0x0000cddc, 0x22222000,0x40444440,0xdddddddc,0x2202224d,0x3fffea08,0x22222223, 0x88888888,0x2a088888,0x5513ffff,0x55555555,0x55555555,0x00000055, 0x00000000,0x00000000,0x00000000,0xffffb800,0xfffffd82,0xd100b701, 0x43fffb05,0x4000fffe,0x3ea4fff9,0x7fec03ff,0x3b66005f,0x75c01def, 0xd00cffff,0x0dffffff,0x3ffffffa,0x01ffd802,0x07dffb50,0xfffffff7, 0xffffffff,0x3ffee5ff,0xffffffff,0x92ffffff,0x7fc5ffff,0xfff11fff, 0x3ffea1ff,0x7fffd47f,0xfec981ff,0x24c00bde,0xb13fffee,0xfe87ffff, 0x5fffffff,0x7d43fffd,0xffff56ff,0x3ffffe67,0xffffffff,0x27ffffff, 0xf33ffffa,0xffffffff,0xffffffff,0x00000fff,0x00000000,0x00000000, 0x00000000,0xfffb8000,0x7fffec2f,0x0bff701f,0x2617ff44,0x3fea6fff, 0x3fa2005f,0xdfff10ff,0xfffff880,0xffffc801,0xff904fff,0x81ffffff, 0xffddfffa,0x67ffdc2f,0xfc806ffe,0xfffd801f,0x7fdc5fff,0xffffffff, 0x2fffffff,0xfffffff7,0xffffffff,0x3fff25ff,0x3ffffe2f,0x1fffff11, 0x31ffffea,0x8bffb313,0xfffffffc,0x25fb82df,0xb05ffff8,0xffe8dfff, 0xd5ffffff,0x7fd43fff,0x7ffff56f,0x3fffffe6,0xffffffff,0x2a7fffff, 0xff33ffff,0xffffffff,0xffffffff,0x000000ff,0x00000000,0x00000000, 0x00000000,0xffffb800,0x3fffff22,0xbffff702,0x5ffffd10,0x364fffc8, 0xf9002fff,0x7ffec7ff,0x7fffe402,0x7ffd404f,0x42ffffff,0xffdefff9, 0x1fff44ff,0xffe8dff7,0x830bffa2,0x7dc00ffc,0x4fffffff,0x3fffffee, 0xffffffff,0xfff72fff,0xffffffff,0x25ffffff,0x3e2ffffc,0xff11ffff, 0x3fea1fff,0x7fcc07ff,0xfffffb0f,0xbfffffff,0x7dcbfffb,0x7ff405ff, 0x3ffffa2f,0xffd5ffff,0xb7ffd43f,0xf33ffffa,0xffffffff,0xffffffff, 0x7ffd4fff,0xddddd33f,0xdddddddd,0x0ddddddd,0x00000000,0x00000000, 0x00000000,0x80000000,0xf72ffffb,0x6405ffff,0x225fffff,0x43fffffe, 0xf31ffff8,0xfa801fff,0x3ffee6ff,0x7fffc406,0x3fe00fff,0xfffb8bff, 0xd1bf6a0f,0x0baa8bff,0x30c1bfee,0x3fd83fff,0x8ff22ff7,0xf50bfff8, 0x3bbaa3ff,0xeeeeeeee,0x52eeeeee,0xdddddddd,0xfffddddd,0x3ffff25f, 0x47ffffe1,0x50fffff8,0x4c0fffff,0x3ffa5ffd,0xffffffff,0x5fffffff, 0x1003bffa,0x7ff4dffd,0xd5ffffff,0x7fd43fff,0x7ffff56f,0x44444444, 0x88888888,0x3ea08888,0x00003fff,0x00000000,0x00000000,0x00000000, 0x00000000,0x5ffff700,0x07fffff5,0xbfffff90,0x7fffffd1,0xc9bffee0, 0x3e205fff,0xfff32fff,0xfffc803f,0xf304ffff,0xfffd89ff,0x6ffe9801, 0x04ffe880,0x10ffffe6,0xbffbffff,0x7fccbfff,0x003ffc86,0x22000000, 0x7d42ffff,0x3ffffa0f,0x99ffffe0,0xff56ffff,0x43fffffd,0xfdcceffe, 0xffffffff,0x1dff54ff,0x47ffa200,0x88888888,0x10111108,0x00000111, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x7fffdc00, 0x03fffffc,0x3fffff20,0x03ffffff,0xf8a7fff4,0xffb03fff,0x27fff4bf, 0x3bfffe20,0xff507fff,0x2fffb85f,0xffffdb98,0x7ff4c06f,0x3ffea00e, 0x7fff4c2f,0x7fffffff,0x3ea0ffee,0x0000004f,0x3fffe200,0x3f63fe42, 0x7fff47ff,0xaa7fffc6,0x1dffffff,0x6d440774,0x3fffffff,0x10002222, 0x00000111,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x7fffffdc,0x4000ffff,0xfffffffc,0xffa803ff,0xffff71ff, 0x1ffffb81,0x801ffff9,0xff8ffffb,0xfffb83ff,0x11fffcc1,0xfffffffb, 0x7ffd40df,0x7e5d401f,0xfda883ff,0x4c1acfff,0x3ffc86ff,0x00000000, 0x98bfffe2,0x7ffdc4ff,0x22fffe46,0x2623fffe,0x400e0199,0x00acedb8, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0xfffffb80,0x004fffff,0xffffffc8,0x3ffa003f,0xdffff0ef, 0x9affffc4,0xf804ffff,0xfffb4fff,0x85fff50d,0x3fa3fffa,0xffd8acff, 0x1dfff706,0x07ffb800,0x40bffff6,0xf50bfff8,0x3ffee3ff,0xffffffff, 0x02ffffff,0x3fffe200,0xa81fff92,0x7fdc4fff,0x17ffe44f,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0xfffff700,0x01ffffff,0xfffff880,0x7ff4006f,0x9ffff15f, 0x3a6fffd8,0x7d406fff,0xfff30fff,0x4fff985f,0xf88fffe4,0x37ffc3ff, 0x806fffe4,0x3ea0edc8,0xcffd80ff,0xff701fff,0x49ffffff,0xfffffffb, 0xffffffff,0x220002ff,0xdf92ffff,0x83555103,0x54c0aaa8,0x000000aa, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x3ee00000,0xffefffff,0x3a2005ff,0x5fffffff,0x1ffff700, 0x103bfff2,0x3e67ffff,0x3fa02fff,0x7fff45ff,0x52efff86,0x3e61ffff, 0x3ffea3ff,0x577ffdc6,0x7fec2aaa,0x86ffe98c,0xfff76ffd,0x3ffff601, 0x3fee0dff,0xffffffff,0x2fffffff,0x3ffe2000,0x0000512f,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x3ee00000,0xfe8effff,0xe8801fff,0xffffffff,0x7ffc405f, 0x3ffff32f,0x43fffea0,0xf506fffc,0xffb85fff,0x7ffd41ff,0x42ffffff, 0xffedfffe,0x7fff46ff,0x4c7fffff,0xffffffff,0xd0ffec42,0x7f5405ff, 0xfffb83ef,0xffffffff,0x02ffffff,0x3fffe200,0x00000002,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0xffffb800,0xdffff30e,0xffffe880,0x5fffffef,0xe97fff20, 0x7ec04fff,0x3fffa4ff,0x87fffe83,0xc85ffff8,0x4fffffff,0xffffffa8, 0x3fe67ffd,0x7fffffff,0xefffffb8,0x1b316e02,0x2aa60000,0xaaaaaaaa, 0x0aaaaaaa,0x55554000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0xffffb800, 0x1ffffec2,0xfffffe88,0xbfffff93,0x21ffff30,0x8806fffa,0xff31ffff, 0x7ffcc1ff,0xffffb04f,0xbdfdb301,0x6f75cc03,0x26219991,0x99999999, 0x03555101,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0xffff7000,0xfffff985,0xfffffd80,0x7ffffe43,0xd0ffff45,0x2a001fff, 0x3fee5fff,0x3ffff64f,0x9ffff300,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x417fffdc,0x984ffffc, 0xf903ffff,0x7fd41fff,0x0fffee4f,0x45fff900,0x0000fffd,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x2ffffb80,0x1fffff88,0x6403ff98,0x2f76c1ff,0x0009ddb1,0x7449ddb1, 0x000003ee,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x80000000,0x702ffffb,0x260bffff,0x00039003,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0xfffb8000,0x3fffa02f,0x0000002f,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000, 0x00000000,0x00000000,0x00000000,0x00000000, }; static signed short stb__arial_bold_40_latin_ext_x[560]={ 0,3,1,0,1,1,1,1,1,1,0,1,2,1, 2,-1,1,2,0,1,0,1,1,1,1,1,3,2,1,1,1,1,1,0,2,1,2,2,2,1,2,2,0,2, 2,2,2,1,2,1,2,1,0,2,-1,0,0,-1,0,2,-1,0,2,-1,0,1,2,1,1,1,0,1,2,2, -2,2,2,2,2,1,2,1,2,0,0,2,0,0,0,0,0,1,3,0,1,4,4,4,4,4,4,4,4,4, 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,3,1,0,0,0, 3,1,0,-1,0,1,1,1,-1,-1,1,0,0,0,3,1,-1,2,0,1,0,1,1,1,0,1,0,0,0,0, 0,0,-2,1,2,2,2,2,-1,1,-1,-1,-1,2,1,1,1,1,1,1,1,2,2,2,2,-1,2,2,1,1, 1,1,1,1,1,1,1,1,1,1,-1,2,-1,-1,1,2,1,1,1,1,1,0,1,2,2,2,2,0,2,0, 0,1,0,1,0,1,1,1,1,1,1,1,1,1,2,1,-1,1,2,1,2,1,2,1,2,1,2,1,1,1, 1,1,1,1,1,1,2,2,0,0,-2,-2,-1,-1,-1,-1,1,2,2,2,2,2,0,-2,2,2,2,2,2,2, -1,2,2,2,2,0,0,2,2,2,2,2,2,-1,2,2,1,1,1,1,1,1,1,1,2,2,2,0,2,1, 1,0,1,0,1,0,1,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,0,0,-1,0, -1,0,0,0,0,0,0,2,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,4,4,-1,4,4,4, 4,4,4,4,4,4,4,4,4,4,1,1,4,4,4,4,4,4,4,4,4,4,4,4,4,2,2,4,4,4, 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,1,-1,-1,1, 1,2,2,2,2,2,2,2,2,2,2,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, 4,4,4,4,4,4,4,4,4,4,0,1,-2,1,1,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4, 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, 4,4,4,4,4,4, }; static signed short stb__arial_bold_40_latin_ext_y[560]={ 32,6,6,5,4,5,5,6,5,5,5,10,27,20, 27,5,6,6,6,6,6,6,6,6,6,6,13,13,9,13,9,6,5,6,6,5,6,6,6,5,6,6,6,6, 6,6,6,5,6,5,6,5,6,6,6,6,6,6,6,6,5,6,5,35,5,13,6,13,6,13,5,13,6,6, 6,6,6,13,13,13,13,13,13,13,6,13,13,13,13,13,13,5,5,5,15,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,32,13,6,5,10,6, 5,5,5,5,5,14,13,20,5,1,5,7,6,6,5,13,6,17,32,6,5,14,6,6,6,13,-1,-1,-1,0, 0,1,6,5,-1,-1,-1,0,-1,-1,-1,0,6,0,-1,-1,-1,0,0,10,5,-1,-1,-1,0,-1,6,5,5,5, 5,6,5,5,13,13,5,5,5,5,5,5,5,5,6,6,5,5,5,6,5,9,12,5,5,5,5,5,6,5, 0,7,-1,5,6,13,-1,5,-2,5,-1,5,-1,5,-1,6,6,6,0,7,-1,5,-1,5,6,13,-1,5,-2,5, -1,5,-1,5,5,3,-2,-1,6,6,-1,6,0,7,-1,5,6,6,0,13,6,6,-2,5,6,6,13,-1,-1,6, 6,6,6,6,6,6,6,-1,5,6,13,-1,5,6,5,13,0,7,-1,5,-1,5,5,13,-1,5,6,13,-1,5, -1,5,-2,5,5,13,-1,5,6,6,-1,6,6,6,-1,6,0,7,-1,5,-1,5,-1,5,6,13,-2,5,-2,5, 0,-1,5,0,5,-1,5,5,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,5,9,9,5,9,9,9, 9,9,9,9,9,9,9,9,9,9,5,13,9,9,9,9,9,9,9,9,9,9,9,9,9,6,13,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,-1,5,-1,5,-1, 5,-1,5,-1,-1,-1,-1,-1,-1,-1,-1,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,-4,-2,-2,5,-2,5,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9, }; static unsigned short stb__arial_bold_40_latin_ext_w[560]={ 0,6,15,20,18,30,25,6,10,10,14,19,6,10, 6,11,18,13,19,18,20,18,18,18,18,18,6,7,19,19,19,20,34,26,23,24,23,21,19,25,22,6,18,24, 19,26,21,26,21,27,24,22,22,22,25,34,24,25,22,10,11,10,17,22,9,18,19,19,19,18,13,19,18,6, 10,18,6,28,18,20,19,19,13,19,12,18,20,28,20,20,18,13,4,13,19,19,19,19,19,19,19,19,19,19, 19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,0,6,18,20,20,20, 4,18,12,28,13,17,19,10,28,22,12,19,12,12,9,18,21,6,11,8,13,18,29,28,30,20,26,26,26,26, 26,26,37,24,21,21,21,21,9,9,13,12,26,21,26,26,26,26,26,18,26,22,22,22,22,25,21,19,18,18, 18,18,18,18,30,19,18,18,18,18,9,9,12,12,20,18,20,20,20,20,20,19,20,18,18,18,18,20,19,20, 26,18,26,18,28,21,24,19,24,19,24,19,24,19,23,25,26,21,21,18,21,18,21,18,21,18,21,18,25,19, 25,19,25,19,25,19,22,18,26,20,13,13,12,12,12,12,9,8,6,6,24,16,21,13,24,18,18,19,9,19, 11,19,12,19,13,21,10,21,18,21,18,21,18,24,23,18,26,20,26,20,26,20,34,32,24,13,24,15,24,14, 22,19,22,19,22,19,22,19,22,12,22,18,22,12,22,18,22,18,22,18,22,18,22,18,22,21,34,28,25,20, 25,22,18,22,18,22,18,11,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,24,19,19,21,19,19,19, 19,19,19,19,19,19,19,19,19,19,30,25,19,19,19,19,19,19,19,19,19,19,19,19,19,28,24,19,19,19, 19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,26,18,12,12,26, 20,22,18,22,18,22,18,22,18,22,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19, 19,19,19,19,19,19,19,19,19,19,26,18,37,30,26,20,19,19,19,19,19,19,19,19,19,19,19,19,19,19, 19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19, 19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19, 19,19,19,19,19,19, }; static unsigned short stb__arial_bold_40_latin_ext_h[560]={ 0,26,10,28,32,29,28,10,35,35,14,19,11,6, 5,28,27,26,26,27,26,27,27,26,27,27,19,25,21,13,21,26,35,26,26,28,26,26,26,28,26,26,27,26, 26,26,26,28,26,30,26,28,26,27,26,26,26,26,26,34,28,34,15,5,7,20,27,20,27,20,27,27,26,26, 34,26,26,19,19,20,27,27,19,20,27,20,19,19,19,27,19,35,35,35,8,23,23,23,23,23,23,23,23,23, 23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,0,27,34,28,19,26, 35,35,6,28,15,17,13,6,28,4,13,25,14,14,7,27,34,5,8,14,15,17,27,27,27,27,33,33,33,32, 32,31,26,35,33,33,33,32,33,33,33,32,26,32,34,34,34,33,33,18,29,34,34,34,33,33,26,28,28,28, 28,27,28,28,20,27,28,28,28,28,27,27,27,27,27,26,28,28,28,27,28,20,22,28,28,28,28,35,34,35, 32,26,33,28,34,27,34,28,35,28,34,28,34,28,33,27,26,27,32,26,33,28,33,28,34,27,33,28,35,35, 34,35,34,35,35,37,34,33,26,26,33,26,32,25,33,27,34,34,32,19,27,34,35,35,34,34,19,33,33,34, 34,26,26,26,26,26,26,33,27,34,27,33,27,26,28,27,33,26,34,28,34,28,28,20,33,27,34,27,33,27, 34,28,35,28,35,27,34,28,38,37,33,27,26,27,34,27,33,26,34,28,34,28,34,28,34,27,34,27,34,35, 32,33,27,32,27,33,27,27,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,28,23,23,35,23,23,23, 23,23,23,23,23,23,23,23,23,23,28,20,23,23,23,23,23,23,23,23,23,23,23,23,23,27,20,23,23,23, 23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,33,28,33,27,34, 28,34,28,34,34,34,34,34,34,34,34,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23, 23,23,23,23,23,23,23,23,23,23,36,35,34,28,36,29,23,23,23,23,23,23,23,23,23,23,23,23,23,23, 23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23, 23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23, 23,23,23,23,23,23, }; static unsigned short stb__arial_bold_40_latin_ext_s[560]={ 111,505,244,170,401,196,439,260,496,182,169, 483,237,319,343,431,187,497,477,283,437,148,206,116,362,322,476,445,42,197,22, 274,233,306,388,287,1,302,375,312,135,360,225,324,177,333,458,381,252,168,220, 408,197,14,432,104,152,349,409,499,275,45,97,350,309,493,167,223,491,62,401, 302,65,58,304,25,502,324,353,127,381,263,372,243,1,148,386,407,436,341,457, 289,111,219,279,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473, 473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,111,504,26, 265,303,26,507,1,330,81,129,79,217,319,141,380,184,453,143,156,299,244,81, 373,267,503,115,60,118,89,58,37,100,179,415,30,420,141,245,135,330,352,237, 8,227,181,468,57,225,119,227,89,430,303,154,41,227,280,338,384,28,442,415, 370,326,20,1,342,344,305,192,376,156,267,248,229,412,498,1,478,435,458,60, 39,115,275,484,107,1,420,401,382,363,20,257,41,92,47,482,226,347,390,399, 136,349,95,1,56,56,1,206,472,66,85,70,158,259,464,281,76,107,323,302, 338,193,476,81,456,424,436,374,24,156,51,177,204,387,44,447,432,374,176,129, 502,1,296,434,139,400,422,213,238,22,80,70,315,335,412,139,84,395,480,295, 370,415,191,396,280,256,1,357,208,127,367,277,443,450,483,21,263,230,296,477, 456,255,361,376,206,326,245,303,14,168,324,1,44,347,189,93,422,103,459,324, 283,1,307,457,210,407,191,361,34,303,56,254,268,483,392,107,460,126,204,145, 164,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,345,473,473,160, 473,473,473,473,473,473,473,473,473,473,473,473,473,110,81,473,473,473,473,473, 473,473,473,473,473,473,473,473,227,167,473,473,473,473,473,473,473,473,473,473, 473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,1,465, 191,310,62,286,162,286,185,208,116,62,126,149,139,480,473,473,473,473,473,473, 473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473, 473,473,473,84,116,24,175,57,254,473,473,473,473,473,473,473,473,473,473,473, 473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473, 473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473, 473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473, 473,473,473,473,473,473,473,473,473, }; static unsigned short stb__arial_bold_40_latin_ext_t[560]={ 37,213,403,242,146,180,213,403,1,1,403, 381,403,403,403,180,299,299,299,299,299,299,299,327,299,299,381,354,381,403,381, 327,1,327,327,180,354,354,354,180,327,327,299,354,354,327,327,180,327,180,354, 180,354,299,327,354,354,354,354,40,180,111,403,403,403,354,299,381,271,381,299, 299,354,354,75,354,327,381,381,381,299,299,381,381,299,381,381,381,381,299,381, 1,1,1,403,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354, 354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,37,180,111, 213,381,327,1,40,403,242,403,403,403,403,242,403,403,354,403,403,403,299,75, 403,403,381,403,403,299,299,299,299,146,111,111,180,146,180,354,1,146,146,146, 180,146,146,111,180,327,180,40,40,40,146,146,403,180,40,40,40,146,111,299, 242,242,242,242,271,213,213,381,271,213,242,242,242,242,242,271,271,242,299,242, 242,213,271,213,381,381,213,213,213,213,40,75,40,180,327,111,213,75,242,75, 213,1,213,111,213,111,213,111,242,327,271,180,327,146,180,146,213,111,271,111, 180,1,1,111,1,75,1,1,1,111,146,327,327,146,354,146,354,146,271,111, 75,180,381,271,111,1,1,75,75,403,146,146,75,75,327,354,354,354,327,327, 111,271,75,271,111,271,327,180,271,146,327,75,180,75,180,213,381,111,271,75, 242,111,271,75,213,1,213,1,271,75,213,1,1,111,271,327,242,75,271,111, 354,76,242,40,242,40,242,40,271,40,271,40,1,146,111,271,146,271,146,271, 271,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,242,354,354,1, 354,354,354,354,354,354,354,354,354,354,354,354,354,242,381,354,354,354,354,354, 354,354,354,354,354,354,354,354,271,381,354,354,354,354,354,354,354,354,354,354, 354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,146,213, 146,271,40,242,40,213,40,40,40,75,75,75,40,40,354,354,354,354,354,354, 354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354, 354,354,354,1,1,76,213,1,180,354,354,354,354,354,354,354,354,354,354,354, 354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354, 354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354, 354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354,354, 354,354,354,354,354,354,354,354,354, }; static unsigned short stb__arial_bold_40_latin_ext_a[560]={ 159,191,272,319,319,509,414,136, 191,191,223,335,159,191,159,159,319,319,319,319,319,319,319,319, 319,319,191,191,335,335,335,350,559,414,414,414,414,382,350,446, 414,159,319,414,350,477,414,446,382,446,414,382,350,414,382,541, 382,382,350,191,159,191,335,319,191,319,350,319,350,319,191,350, 350,159,159,319,159,509,350,350,350,350,223,319,191,350,319,446, 319,319,286,223,160,223,335,430,430,430,430,430,430,430,430,430, 430,430,430,430,430,430,430,430,430,430,430,430,430,430,430,430, 430,430,430,430,430,430,430,430,159,191,319,319,319,319,160,319, 191,422,212,319,335,191,422,316,229,314,191,191,191,330,319,159, 191,191,209,319,478,478,478,350,414,414,414,414,414,414,573,414, 382,382,382,382,159,159,159,159,414,414,446,446,446,446,446,335, 446,414,414,414,414,382,382,350,319,319,319,319,319,319,509,319, 319,319,319,319,159,159,159,159,350,350,350,350,350,350,350,314, 350,350,350,350,350,319,350,319,414,319,414,319,414,319,414,319, 414,319,414,319,414,319,414,412,414,350,382,319,382,319,382,319, 382,319,382,319,446,350,446,350,446,350,446,350,414,350,414,350, 159,159,159,159,159,159,159,159,159,159,450,319,319,159,414,319, 319,350,159,350,159,350,221,350,274,350,159,414,350,414,350,414, 350,406,414,350,446,350,446,350,446,350,573,541,414,223,414,223, 414,223,382,319,382,319,382,319,382,319,350,191,350,274,350,191, 414,350,414,350,414,350,414,350,414,350,414,350,541,446,382,319, 382,350,286,350,286,350,286,159,430,430,430,430,430,430,430,430, 430,430,430,430,430,430,430,416,430,430,319,430,430,430,430,430, 430,430,430,430,430,430,430,430,489,407,430,430,430,430,430,430, 430,430,430,430,430,430,430,475,415,430,430,430,430,430,430,430, 430,430,430,430,430,430,430,430,430,430,430,430,430,430,430,430, 430,430,430,430,430,414,319,159,159,446,350,414,350,414,350,414, 350,414,350,414,350,430,430,430,430,430,430,430,430,430,430,430, 430,430,430,430,430,430,430,430,430,430,430,430,430,430,430,430, 430,430,414,319,573,509,446,350,430,430,430,430,430,430,430,430, 430,430,430,430,430,430,430,430,430,430,430,430,430,430,430,430, 430,430,430,430,430,430,430,430,430,430,430,430,430,430,430,430, 430,430,430,430,430,430,430,430,430,430,430,430,430,430,430,430, 430,430,430,430,430,430,430,430,430,430,430,430,430,430,430,430, 430,430,430,430,430,430,430,430, }; // Call this function with // font: NULL or array length // data: NULL or specified size // height: STB_FONT_arial_bold_40_latin_ext_BITMAP_HEIGHT or STB_FONT_arial_bold_40_latin_ext_BITMAP_HEIGHT_POW2 // return value: spacing between lines static void stb_font_arial_bold_40_latin_ext(stb_fontchar font[STB_FONT_arial_bold_40_latin_ext_NUM_CHARS], unsigned char data[STB_FONT_arial_bold_40_latin_ext_BITMAP_HEIGHT][STB_FONT_arial_bold_40_latin_ext_BITMAP_WIDTH], int height) { int i,j; if (data != 0) { unsigned int *bits = stb__arial_bold_40_latin_ext_pixels; unsigned int bitpack = *bits++, numbits = 32; for (i=0; i < STB_FONT_arial_bold_40_latin_ext_BITMAP_WIDTH*height; ++i) data[0][i] = 0; // zero entire bitmap for (j=1; j < STB_FONT_arial_bold_40_latin_ext_BITMAP_HEIGHT-1; ++j) { for (i=1; i < STB_FONT_arial_bold_40_latin_ext_BITMAP_WIDTH-1; ++i) { unsigned int value; if (numbits==0) bitpack = *bits++, numbits=32; value = bitpack & 1; bitpack >>= 1, --numbits; if (value) { if (numbits < 3) bitpack = *bits++, numbits = 32; data[j][i] = (bitpack & 7) * 0x20 + 0x1f; bitpack >>= 3, numbits -= 3; } else { data[j][i] = 0; } } } } // build font description if (font != 0) { float recip_width = 1.0f / STB_FONT_arial_bold_40_latin_ext_BITMAP_WIDTH; float recip_height = 1.0f / height; for (i=0; i < STB_FONT_arial_bold_40_latin_ext_NUM_CHARS; ++i) { // pad characters so they bilerp from empty space around each character font[i].s0 = (stb__arial_bold_40_latin_ext_s[i]) * recip_width; font[i].t0 = (stb__arial_bold_40_latin_ext_t[i]) * recip_height; font[i].s1 = (stb__arial_bold_40_latin_ext_s[i] + stb__arial_bold_40_latin_ext_w[i]) * recip_width; font[i].t1 = (stb__arial_bold_40_latin_ext_t[i] + stb__arial_bold_40_latin_ext_h[i]) * recip_height; font[i].x0 = stb__arial_bold_40_latin_ext_x[i]; font[i].y0 = stb__arial_bold_40_latin_ext_y[i]; font[i].x1 = stb__arial_bold_40_latin_ext_x[i] + stb__arial_bold_40_latin_ext_w[i]; font[i].y1 = stb__arial_bold_40_latin_ext_y[i] + stb__arial_bold_40_latin_ext_h[i]; font[i].advance_int = (stb__arial_bold_40_latin_ext_a[i]+8)>>4; font[i].s0f = (stb__arial_bold_40_latin_ext_s[i] - 0.5f) * recip_width; font[i].t0f = (stb__arial_bold_40_latin_ext_t[i] - 0.5f) * recip_height; font[i].s1f = (stb__arial_bold_40_latin_ext_s[i] + stb__arial_bold_40_latin_ext_w[i] + 0.5f) * recip_width; font[i].t1f = (stb__arial_bold_40_latin_ext_t[i] + stb__arial_bold_40_latin_ext_h[i] + 0.5f) * recip_height; font[i].x0f = stb__arial_bold_40_latin_ext_x[i] - 0.5f; font[i].y0f = stb__arial_bold_40_latin_ext_y[i] - 0.5f; font[i].x1f = stb__arial_bold_40_latin_ext_x[i] + stb__arial_bold_40_latin_ext_w[i] + 0.5f; font[i].y1f = stb__arial_bold_40_latin_ext_y[i] + stb__arial_bold_40_latin_ext_h[i] + 0.5f; font[i].advance = stb__arial_bold_40_latin_ext_a[i]/16.0f; } } } #ifndef STB_SOMEFONT_CREATE #define STB_SOMEFONT_CREATE stb_font_arial_bold_40_latin_ext #define STB_SOMEFONT_BITMAP_WIDTH STB_FONT_arial_bold_40_latin_ext_BITMAP_WIDTH #define STB_SOMEFONT_BITMAP_HEIGHT STB_FONT_arial_bold_40_latin_ext_BITMAP_HEIGHT #define STB_SOMEFONT_BITMAP_HEIGHT_POW2 STB_FONT_arial_bold_40_latin_ext_BITMAP_HEIGHT_POW2 #define STB_SOMEFONT_FIRST_CHAR STB_FONT_arial_bold_40_latin_ext_FIRST_CHAR #define STB_SOMEFONT_NUM_CHARS STB_FONT_arial_bold_40_latin_ext_NUM_CHARS #define STB_SOMEFONT_LINE_SPACING STB_FONT_arial_bold_40_latin_ext_LINE_SPACING #endif
[ "s_trettel@yahoo.com" ]
s_trettel@yahoo.com
bacb81dcbd564ab93d831c41a31faf8f66594029
502f2031baa1a08fa9c8d85e399f004720ac1985
/线性表顺序表.cpp
69161cdbf1fc0fc6eea97f8e85e53560a93729e9
[]
no_license
Mercury-Duo/List-Linear
a0eb9e6202e03bd67dbee0441bb6032454e4ec03
a7eceae40e387744cdc69d8f295ac051ad12d60b
refs/heads/master
2023-04-05T08:30:03.884401
2021-04-13T11:41:12
2021-04-13T11:41:12
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,843
cpp
#include<stdio.h> #include<stdlib.h> #define OK 1 #define ERROR 0 #define OVERFLOW -2 #define LIST_INIT_SIZE 100 //初始分配容量 #define LISTINCREMENT 10 //增量 typedef int Elemtype; typedef int status; //结构体 typedef struct { Elemtype* elem;//空间基址 int length;//线性表长度 int listsize; }sqlist; //建立线性表 status Initlist(sqlist& L) { L.elem = (Elemtype*)malloc(LIST_INIT_SIZE * sizeof(Elemtype));//开辟新的存储空间 if (!L.elem)exit(OVERFLOW);//创建错误返回OVERFLOW L.length = 0;//线性表初始长度 L.listsize = LIST_INIT_SIZE; return OK;//创建成功返回OK } //插入 status ListInsrt(sqlist& L, int i, Elemtype e) { //在顺序表L中第i个位置之前插入新的元素 if (i<1 || i>L.length + 1) return ERROR; if (L.length > L.listsize) { // Elemtype*newbase= (Elemtype*)malloc(L.listsize + LISTINCREMENT * sizeof(Elemtype)); // if (!newbase)exit(OVERFLOW);//存储空间增加失败退出 L.listsize = L.listsize + LISTINCREMENT;//成功则增加增量 } Elemtype* p = &(L.elem[i - 1]);//p为插入位置 for (Elemtype* q = &(L.elem[L.length - 1]);q >= p;--q) { *(q + 1) = *q; } *p = e; ++L.length; return OK; } //删除 status Listdelete(sqlist& L, int i) { if (i<1 || i>L.length + 1)return ERROR;//判断是否在长度范围之内 int e; int* x, * y; x = &(L.elem[i]);//删除元素的地址 e = *x; y = L.elem + L.length - 1;//线性表尾的地址 for (++x;x <= y;++x) { *(x - 1) = *x; //前移 } L.length = L.length - 1;//线性表长度减一 printf("删除的值为%d\n", e); } int main(void) { sqlist L2; int i, n; if (Initlist(L2)) { printf("请输入数据表的长度:\n"); scanf_s("%d", &n); printf("请输入线性表的元素:\n"); for (i = 0;i < n;i++) { scanf_s("%d", L2.elem + i); } L2.length = n; printf("数据表中的元素有"); for (i = 0;i < n;i++) { printf("%2d", L2.elem[i]); } printf("\n"); } Elemtype x, a, z; x = 0;a = 0; printf("输入插入位置"); scanf_s("%d", &a); printf("\n"); printf("输入插入元素的值"); scanf_s("%d", &x); printf("在第%d位插入数据表的元素后数据表中的元素有\n", a); ListInsrt(L2, a, x);//调用插入函数 for (int i = 0;i < L2.length;i++) { printf("%2d", L2.elem[i]); } printf("\n"); printf("输入删除线性表的项"); scanf_s("%d", &z); Listdelete(L2, z);//调用删除函数 printf("在第%d位删除数据表的元素后数据表中的元素有\n", z); for (int i = 0;i < L2.length;i++) { printf("%2d", L2.elem[i]); } }
[ "铎@DESKTOP-733MSEH" ]
铎@DESKTOP-733MSEH
8e6b2af630d5152fb898b06de717d9d24ec9c2b5
9ad526529f87dd9de7533dd8bb932b9db25616b0
/UnitTests/TestDebugSymbols.cpp
c9d98a91e93f54f1d6f4aecb430126d9dfb0ff57
[]
no_license
jonasblunck/DynHook
9d41f7ef2a8360f52ddec167f3a19c8bc57e8e78
90950c08d1b63d10392e697131a2a489ea3cf5d1
refs/heads/master
2022-11-25T17:03:41.159009
2022-11-09T15:48:30
2022-11-09T15:48:30
63,905,318
18
9
null
null
null
null
UTF-8
C++
false
false
4,794
cpp
#include "stdafx.h" #include <map> #include "DebugSymbols.h" #include "DebugSymbolsTestClass.h" #include "CppUnitTest.h" using namespace Microsoft::VisualStudio::CppUnitTestFramework; TEST_CLASS(TestDebugSymbols) { DebugSymbolsTestClass debugSymbolsTest; TEST_CLASS_INITIALIZE(Initialise) { } TEST_METHOD(DebugSymbols_TestBasicTypes_IntFunction_Find) { std::map<CString, CString>::iterator i = debugSymbolsTest.m_symbols.end(); i = debugSymbolsTest.m_symbols.find(_T("TestData::IntFunction")); Assert::IsTrue(i != debugSymbolsTest.m_symbols.end()); } TEST_METHOD(DebugSymbols_TestBasicTypes_IntFunction_Parameters) { std::map<CString, CString>::iterator i = debugSymbolsTest.m_symbols.end(); i = debugSymbolsTest.m_symbols.find(_T("TestData::IntFunction")); Assert::AreEqual("INT, INT, INT", i->second); } TEST_METHOD(DebugSymbols_TestBasicTypes_LongFunction_Find) { std::map<CString, CString>::iterator i = debugSymbolsTest.m_symbols.end(); i = debugSymbolsTest.m_symbols.find(_T("TestData::LongFunction")); Assert::IsTrue(i != debugSymbolsTest.m_symbols.end()); } TEST_METHOD(DebugSymbols_TestBasicTypes_LongFunction_Parameters) { std::map<CString, CString>::iterator i = debugSymbolsTest.m_symbols.end(); i = debugSymbolsTest.m_symbols.find(_T("TestData::LongFunction")); Assert::AreEqual("LONG, LONG", i->second); } TEST_METHOD(DebugSymbols_TestBasicTypes_StringFunction_Find) { std::map<CString, CString>::iterator i = debugSymbolsTest.m_symbols.end(); i = debugSymbolsTest.m_symbols.find(_T("TestData::StringFunction")); Assert::IsTrue(i != debugSymbolsTest.m_symbols.end()); } TEST_METHOD(DebugSymbols_TestBasicTypes_StringFunction_Parameters) { std::map<CString, CString>::iterator i = debugSymbolsTest.m_symbols.end(); i = debugSymbolsTest.m_symbols.find(_T("TestData::StringFunction")); Assert::AreEqual("CHAR*", i->second); } TEST_METHOD(DebugSymbols_TestBasicTypes_CharFunction_Find) { std::map<CString, CString>::iterator i = debugSymbolsTest.m_symbols.end(); i = debugSymbolsTest.m_symbols.find(_T("TestData::CharFunction")); Assert::IsTrue(i != debugSymbolsTest.m_symbols.end()); } TEST_METHOD(DebugSymbols_TestBasicTypes_CharFunction_Parameters) { std::map<CString, CString>::iterator i = debugSymbolsTest.m_symbols.end(); i = debugSymbolsTest.m_symbols.find(_T("TestData::CharFunction")); Assert::AreEqual("CHAR", i->second); } TEST_METHOD(DebugSymbols_TestBasicTypes_DwordPtrFunction_Find) { std::map<CString, CString>::iterator i = debugSymbolsTest.m_symbols.end(); i = debugSymbolsTest.m_symbols.find(_T("TestData::DwordPtrFunction")); Assert::IsTrue(i != debugSymbolsTest.m_symbols.end()); } TEST_METHOD(DebugSymbols_TestBasicTypes_DwordPtrFunction_Parameters) { std::map<CString, CString>::iterator i = debugSymbolsTest.m_symbols.end(); i = debugSymbolsTest.m_symbols.find(_T("TestData::DwordPtrFunction")); Assert::AreEqual("DWORD*", i->second); } TEST_METHOD(DebugSymbols_TestBasicTypes_MixedFunction_Find) { std::map<CString, CString>::iterator i = debugSymbolsTest.m_symbols.end(); i = debugSymbolsTest.m_symbols.find(_T("TestData::Mixed")); Assert::IsTrue(i != debugSymbolsTest.m_symbols.end()); } TEST_METHOD(DebugSymbols_TestBasicTypes_MixedFunction_Parameters) { std::map<CString, CString>::iterator i = debugSymbolsTest.m_symbols.end(); i = debugSymbolsTest.m_symbols.find(_T("TestData::Mixed")); Assert::AreEqual("DWORD*, CHAR*, INT", i->second); } TEST_METHOD(DebugSymbols_TestPointers_PassingReference_Find) { std::map<CString, CString>::iterator i = debugSymbolsTest.m_symbols.end(); i = debugSymbolsTest.m_symbols.find(_T("TestData::PassingReference")); Assert::IsTrue(i != debugSymbolsTest.m_symbols.end()); } TEST_METHOD(DebugSymbols_TestPointers_PassingReference_Parameters) { std::map<CString, CString>::iterator i = debugSymbolsTest.m_symbols.end(); i = debugSymbolsTest.m_symbols.find(_T("TestData::PassingReference")); Assert::AreEqual("VOID*", i->second); } TEST_METHOD(DebugSymbols_TestBasicTypes_PointerToPointer_Find) { std::map<CString, CString>::iterator i = debugSymbolsTest.m_symbols.end(); i = debugSymbolsTest.m_symbols.find(_T("TestData::PointerToPointer")); Assert::IsTrue(i != debugSymbolsTest.m_symbols.end()); } TEST_METHOD(DebugSymbols_TestBasicTypes_PointerToPointer_Parameters) { std::map<CString, CString>::iterator i = debugSymbolsTest.m_symbols.end(); i = debugSymbolsTest.m_symbols.find(_T("TestData::PointerToPointer")); Assert::AreEqual("VOID**", i->second); } };
[ "jonasbl@microsoft.com" ]
jonasbl@microsoft.com
a73995bf24bbee85e99506b11532fbce40aedab7
535d1b93fbe05923e2defac0f7c218bd64559e0d
/CarmenJuego/Proyecto/Carmen/bin/windows/obj/src/openfl/_Vector/BoolVector.cpp
1da3695f733d82996cbbb6a484df10029ad9d73b
[]
no_license
XxKarikyXx/ProgVJ1
af9a9f4d7608912e1b2bab9726266b9f4ef5f44d
d26e335379a001cce21d7cd87461d75169391222
refs/heads/develop
2020-03-13T12:44:19.172929
2018-06-05T17:58:01
2018-06-05T17:58:01
131,125,411
0
0
null
2018-05-09T05:12:42
2018-04-26T08:35:17
Haxe
UTF-8
C++
false
true
24,313
cpp
// Generated by Haxe 3.4.2 (git build master @ 890f8c7) #include <hxcpp.h> #ifndef INCLUDED_openfl__Vector_BoolVector #include <openfl/_Vector/BoolVector.h> #endif #ifndef INCLUDED_openfl__Vector_IVector #include <openfl/_Vector/IVector.h> #endif HX_DEFINE_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_311_new,"openfl._Vector.BoolVector","new",0x3a8665a9,"openfl._Vector.BoolVector.new","openfl/Vector.hx",311,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_329_concat,"openfl._Vector.BoolVector","concat",0x25e9276b,"openfl._Vector.BoolVector.concat","openfl/Vector.hx",329,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_354_copy,"openfl._Vector.BoolVector","copy",0xf3d4c64c,"openfl._Vector.BoolVector.copy","openfl/Vector.hx",354,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_361_get,"openfl._Vector.BoolVector","get",0x3a8115df,"openfl._Vector.BoolVector.get","openfl/Vector.hx",361,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_374_indexOf,"openfl._Vector.BoolVector","indexOf",0xd8a0b692,"openfl._Vector.BoolVector.indexOf","openfl/Vector.hx",374,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_393_insertAt,"openfl._Vector.BoolVector","insertAt",0xaf7e1ea3,"openfl._Vector.BoolVector.insertAt","openfl/Vector.hx",393,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_404_iterator,"openfl._Vector.BoolVector","iterator",0x80f8ec05,"openfl._Vector.BoolVector.iterator","openfl/Vector.hx",404,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_411_join,"openfl._Vector.BoolVector","join",0xf8753e81,"openfl._Vector.BoolVector.join","openfl/Vector.hx",411,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_416_lastIndexOf,"openfl._Vector.BoolVector","lastIndexOf",0xfa91835c,"openfl._Vector.BoolVector.lastIndexOf","openfl/Vector.hx",416,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_434_pop,"openfl._Vector.BoolVector","pop",0x3a87f2da,"openfl._Vector.BoolVector.pop","openfl/Vector.hx",434,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_449_push,"openfl._Vector.BoolVector","push",0xfc711c71,"openfl._Vector.BoolVector.push","openfl/Vector.hx",449,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_462_removeAt,"openfl._Vector.BoolVector","removeAt",0x9a7a106e,"openfl._Vector.BoolVector.removeAt","openfl/Vector.hx",462,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_475_reverse,"openfl._Vector.BoolVector","reverse",0x12dda6eb,"openfl._Vector.BoolVector.reverse","openfl/Vector.hx",475,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_485_set,"openfl._Vector.BoolVector","set",0x3a8a30eb,"openfl._Vector.BoolVector.set","openfl/Vector.hx",485,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_500_shift,"openfl._Vector.BoolVector","shift",0x981c260b,"openfl._Vector.BoolVector.shift","openfl/Vector.hx",500,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_515_slice,"openfl._Vector.BoolVector","slice",0x9ac0fddb,"openfl._Vector.BoolVector.slice","openfl/Vector.hx",515,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_522_sort,"openfl._Vector.BoolVector","sort",0xfe6831f5,"openfl._Vector.BoolVector.sort","openfl/Vector.hx",522,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_529_splice,"openfl._Vector.BoolVector","splice",0x1db7a3d3,"openfl._Vector.BoolVector.splice","openfl/Vector.hx",529,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_536_toJSON,"openfl._Vector.BoolVector","toJSON",0xda22677a,"openfl._Vector.BoolVector.toJSON","openfl/Vector.hx",536,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_543_toString,"openfl._Vector.BoolVector","toString",0x25cd72c3,"openfl._Vector.BoolVector.toString","openfl/Vector.hx",543,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_550_unshift,"openfl._Vector.BoolVector","unshift",0x70955152,"openfl._Vector.BoolVector.unshift","openfl/Vector.hx",550,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_568_get_length,"openfl._Vector.BoolVector","get_length",0x8b6b9a86,"openfl._Vector.BoolVector.get_length","openfl/Vector.hx",568,0x4a01873c) HX_LOCAL_STACK_FRAME(_hx_pos_dd7a5ba250c0e821_573_set_length,"openfl._Vector.BoolVector","set_length",0x8ee938fa,"openfl._Vector.BoolVector.set_length","openfl/Vector.hx",573,0x4a01873c) namespace openfl{ namespace _Vector{ void BoolVector_obj::__construct( ::Dynamic length, ::Dynamic fixed,::Array< bool > array){ HX_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_311_new) HXLINE( 313) if (hx::IsNull( array )) { HXLINE( 313) array = ::Array_obj< bool >::__new(); } HXLINE( 314) this->_hx___array = array; HXLINE( 316) bool _hx_tmp; HXDLIN( 316) if (hx::IsNotNull( length )) { HXLINE( 316) _hx_tmp = hx::IsGreater( length,(int)0 ); } else { HXLINE( 316) _hx_tmp = false; } HXDLIN( 316) if (_hx_tmp) { HXLINE( 318) this->set_length(length); } HXLINE( 322) this->fixed = hx::IsEq( fixed,true ); } Dynamic BoolVector_obj::__CreateEmpty() { return new BoolVector_obj; } void *BoolVector_obj::_hx_vtable = 0; Dynamic BoolVector_obj::__Create(hx::DynamicArray inArgs) { hx::ObjectPtr< BoolVector_obj > _hx_result = new BoolVector_obj(); _hx_result->__construct(inArgs[0],inArgs[1],inArgs[2]); return _hx_result; } bool BoolVector_obj::_hx_isInstanceOf(int inClassId) { return inClassId==(int)0x00000001 || inClassId==(int)0x63ff549f; } static ::openfl::_Vector::IVector_obj _hx_openfl__Vector_BoolVector__hx_openfl__Vector_IVector= { ( int (hx::Object::*)())&::openfl::_Vector::BoolVector_obj::get_length, ( int (hx::Object::*)(int))&::openfl::_Vector::BoolVector_obj::set_length, ( ::Dynamic (hx::Object::*)(::Dynamic))&::openfl::_Vector::BoolVector_obj::concat, ( ::Dynamic (hx::Object::*)())&::openfl::_Vector::BoolVector_obj::copy, ( ::Dynamic (hx::Object::*)(int))&::openfl::_Vector::BoolVector_obj::get_c4bfee54, ( int (hx::Object::*)( ::Dynamic, ::Dynamic))&::openfl::_Vector::BoolVector_obj::indexOf_02dfccf1, ( void (hx::Object::*)(int, ::Dynamic))&::openfl::_Vector::BoolVector_obj::insertAt_5d1f93e2, ( ::Dynamic (hx::Object::*)())&::openfl::_Vector::BoolVector_obj::iterator, ( ::String (hx::Object::*)(::String))&::openfl::_Vector::BoolVector_obj::join, ( int (hx::Object::*)( ::Dynamic, ::Dynamic))&::openfl::_Vector::BoolVector_obj::lastIndexOf_02dfccf1, ( ::Dynamic (hx::Object::*)())&::openfl::_Vector::BoolVector_obj::pop, ( int (hx::Object::*)( ::Dynamic))&::openfl::_Vector::BoolVector_obj::push_9c73657a, ( ::Dynamic (hx::Object::*)(int))&::openfl::_Vector::BoolVector_obj::removeAt_c4bfee54, ( ::Dynamic (hx::Object::*)())&::openfl::_Vector::BoolVector_obj::reverse, ( ::Dynamic (hx::Object::*)(int, ::Dynamic))&::openfl::_Vector::BoolVector_obj::set_15539e57, ( ::Dynamic (hx::Object::*)())&::openfl::_Vector::BoolVector_obj::shift, ( ::Dynamic (hx::Object::*)( ::Dynamic, ::Dynamic))&::openfl::_Vector::BoolVector_obj::slice, ( void (hx::Object::*)( ::Dynamic))&::openfl::_Vector::BoolVector_obj::sort, ( ::Dynamic (hx::Object::*)(int,int))&::openfl::_Vector::BoolVector_obj::splice, ( ::String (hx::Object::*)())&::openfl::_Vector::BoolVector_obj::toString, ( void (hx::Object::*)( ::Dynamic))&::openfl::_Vector::BoolVector_obj::unshift_489e4d05, }; void BoolVector_obj::unshift_489e4d05( ::Dynamic x) { unshift(x); } ::Dynamic BoolVector_obj::set_15539e57(int index, ::Dynamic value) { return set(index,value); } ::Dynamic BoolVector_obj::removeAt_c4bfee54(int index) { return removeAt(index); } int BoolVector_obj::push_9c73657a( ::Dynamic x) { return push(x); } int BoolVector_obj::lastIndexOf_02dfccf1( ::Dynamic x, ::Dynamic from) { return lastIndexOf(x,from); } void BoolVector_obj::insertAt_5d1f93e2(int index, ::Dynamic element) { insertAt(index,element); } int BoolVector_obj::indexOf_02dfccf1( ::Dynamic x, ::Dynamic from) { return indexOf(x,from); } ::Dynamic BoolVector_obj::get_c4bfee54(int index) { return get(index); } void *BoolVector_obj::_hx_getInterface(int inHash) { switch(inHash) { case (int)0x45e7caba: return &_hx_openfl__Vector_BoolVector__hx_openfl__Vector_IVector; } #ifdef HXCPP_SCRIPTABLE return super::_hx_getInterface(inHash); #else return 0; #endif } ::Dynamic BoolVector_obj::concat(::Dynamic a){ HX_GC_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_329_concat) HXDLIN( 329) if (hx::IsNull( a )) { HXLINE( 331) return ::openfl::_Vector::BoolVector_obj::__alloc( HX_CTX ,null(),null(),this->_hx___array->copy()); } else { HXLINE( 335) ::openfl::_Vector::BoolVector other = ( ( ::openfl::_Vector::BoolVector)(a) ); HXLINE( 337) if ((other->_hx___array->length > (int)0)) { HXLINE( 339) return ::openfl::_Vector::BoolVector_obj::__alloc( HX_CTX ,null(),null(),this->_hx___array->concat(other->_hx___array)); } else { HXLINE( 343) return ::openfl::_Vector::BoolVector_obj::__alloc( HX_CTX ,null(),null(),this->_hx___array->copy()); } } HXLINE( 329) return null(); } HX_DEFINE_DYNAMIC_FUNC1(BoolVector_obj,concat,return ) ::Dynamic BoolVector_obj::copy(){ HX_GC_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_354_copy) HXDLIN( 354) bool _hx_tmp = this->fixed; HXDLIN( 354) return ::openfl::_Vector::BoolVector_obj::__alloc( HX_CTX ,null(),_hx_tmp,this->_hx___array->copy()); } HX_DEFINE_DYNAMIC_FUNC0(BoolVector_obj,copy,return ) bool BoolVector_obj::get(int index){ HX_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_361_get) HXDLIN( 361) if ((index >= this->_hx___array->length)) { HXLINE( 363) return false; } else { HXLINE( 367) return this->_hx___array->__get(index); } HXLINE( 361) return false; } HX_DEFINE_DYNAMIC_FUNC1(BoolVector_obj,get,return ) int BoolVector_obj::indexOf(bool x, ::Dynamic __o_from){ ::Dynamic from = __o_from.Default(0); HX_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_374_indexOf) HXLINE( 376) { HXLINE( 376) int _g1 = from; HXDLIN( 376) int _g = this->_hx___array->length; HXDLIN( 376) while((_g1 < _g)){ HXLINE( 376) _g1 = (_g1 + (int)1); HXDLIN( 376) int i = (_g1 - (int)1); HXLINE( 378) if ((this->_hx___array->__get(i) == x)) { HXLINE( 380) return i; } } } HXLINE( 386) return (int)-1; } HX_DEFINE_DYNAMIC_FUNC2(BoolVector_obj,indexOf,return ) void BoolVector_obj::insertAt(int index,bool element){ HX_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_393_insertAt) HXDLIN( 393) bool _hx_tmp; HXDLIN( 393) if (!(!(this->fixed))) { HXDLIN( 393) _hx_tmp = (index < this->_hx___array->length); } else { HXDLIN( 393) _hx_tmp = true; } HXDLIN( 393) if (_hx_tmp) { HXLINE( 395) this->_hx___array->insert(index,element); } } HX_DEFINE_DYNAMIC_FUNC2(BoolVector_obj,insertAt,(void)) ::Dynamic BoolVector_obj::iterator(){ HX_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_404_iterator) HXDLIN( 404) return this->_hx___array->iterator(); } HX_DEFINE_DYNAMIC_FUNC0(BoolVector_obj,iterator,return ) ::String BoolVector_obj::join(::String __o_sep){ ::String sep = __o_sep.Default(HX_HCSTRING(",","\x2c","\x00","\x00","\x00")); HX_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_411_join) HXDLIN( 411) return this->_hx___array->join(sep); } HX_DEFINE_DYNAMIC_FUNC1(BoolVector_obj,join,return ) int BoolVector_obj::lastIndexOf(bool x, ::Dynamic __o_from){ ::Dynamic from = __o_from.Default(0); HX_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_416_lastIndexOf) HXLINE( 418) int i = (this->_hx___array->length - (int)1); HXLINE( 420) while(hx::IsGreaterEq( i,from )){ HXLINE( 422) if ((this->_hx___array->__get(i) == x)) { HXLINE( 422) return i; } HXLINE( 423) i = (i - (int)1); } HXLINE( 427) return (int)-1; } HX_DEFINE_DYNAMIC_FUNC2(BoolVector_obj,lastIndexOf,return ) ::Dynamic BoolVector_obj::pop(){ HX_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_434_pop) HXDLIN( 434) if (!(this->fixed)) { HXLINE( 436) return this->_hx___array->pop(); } else { HXLINE( 440) return null(); } HXLINE( 434) return false; } HX_DEFINE_DYNAMIC_FUNC0(BoolVector_obj,pop,return ) int BoolVector_obj::push(bool x){ HX_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_449_push) HXDLIN( 449) if (!(this->fixed)) { HXLINE( 451) return this->_hx___array->push(x); } else { HXLINE( 455) return this->_hx___array->length; } HXLINE( 449) return (int)0; } HX_DEFINE_DYNAMIC_FUNC1(BoolVector_obj,push,return ) bool BoolVector_obj::removeAt(int index){ HX_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_462_removeAt) HXLINE( 464) bool _hx_tmp; HXDLIN( 464) if (!(!(this->fixed))) { HXLINE( 464) _hx_tmp = (index < this->_hx___array->length); } else { HXLINE( 464) _hx_tmp = true; } HXDLIN( 464) if (_hx_tmp) { HXLINE( 466) return this->_hx___array->splice(index,(int)1)->__get((int)0); } HXLINE( 470) return false; } HX_DEFINE_DYNAMIC_FUNC1(BoolVector_obj,removeAt,return ) ::Dynamic BoolVector_obj::reverse(){ HX_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_475_reverse) HXLINE( 477) this->_hx___array->reverse(); HXLINE( 478) return hx::ObjectPtr<OBJ_>(this); } HX_DEFINE_DYNAMIC_FUNC0(BoolVector_obj,reverse,return ) bool BoolVector_obj::set(int index,bool value){ HX_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_485_set) HXDLIN( 485) bool _hx_tmp; HXDLIN( 485) if (!(!(this->fixed))) { HXDLIN( 485) _hx_tmp = (index < this->_hx___array->length); } else { HXDLIN( 485) _hx_tmp = true; } HXDLIN( 485) if (_hx_tmp) { HXLINE( 487) return (this->_hx___array[index] = value); } else { HXLINE( 491) return value; } HXLINE( 485) return false; } HX_DEFINE_DYNAMIC_FUNC2(BoolVector_obj,set,return ) ::Dynamic BoolVector_obj::shift(){ HX_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_500_shift) HXDLIN( 500) if (!(this->fixed)) { HXLINE( 502) return this->_hx___array->shift(); } else { HXLINE( 506) return null(); } HXLINE( 500) return false; } HX_DEFINE_DYNAMIC_FUNC0(BoolVector_obj,shift,return ) ::Dynamic BoolVector_obj::slice( ::Dynamic __o_startIndex, ::Dynamic __o_endIndex){ ::Dynamic startIndex = __o_startIndex.Default(0); ::Dynamic endIndex = __o_endIndex.Default(16777215); HX_GC_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_515_slice) HXDLIN( 515) return ::openfl::_Vector::BoolVector_obj::__alloc( HX_CTX ,null(),null(),this->_hx___array->slice(startIndex,endIndex)); } HX_DEFINE_DYNAMIC_FUNC2(BoolVector_obj,slice,return ) void BoolVector_obj::sort( ::Dynamic f){ HX_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_522_sort) HXDLIN( 522) this->_hx___array->sort(f); } HX_DEFINE_DYNAMIC_FUNC1(BoolVector_obj,sort,(void)) ::Dynamic BoolVector_obj::splice(int pos,int len){ HX_GC_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_529_splice) HXDLIN( 529) return ::openfl::_Vector::BoolVector_obj::__alloc( HX_CTX ,null(),null(),this->_hx___array->splice(pos,len)); } HX_DEFINE_DYNAMIC_FUNC2(BoolVector_obj,splice,return ) ::Array< bool > BoolVector_obj::toJSON(){ HX_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_536_toJSON) HXDLIN( 536) return this->_hx___array; } HX_DEFINE_DYNAMIC_FUNC0(BoolVector_obj,toJSON,return ) ::String BoolVector_obj::toString(){ HX_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_543_toString) HXDLIN( 543) if (hx::IsNotNull( this->_hx___array )) { HXDLIN( 543) return this->_hx___array->toString(); } else { HXDLIN( 543) return null(); } HXDLIN( 543) return null(); } HX_DEFINE_DYNAMIC_FUNC0(BoolVector_obj,toString,return ) void BoolVector_obj::unshift(bool x){ HX_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_550_unshift) HXDLIN( 550) if (!(this->fixed)) { HXLINE( 552) this->_hx___array->unshift(x); } } HX_DEFINE_DYNAMIC_FUNC1(BoolVector_obj,unshift,(void)) int BoolVector_obj::get_length(){ HX_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_568_get_length) HXDLIN( 568) return this->_hx___array->length; } HX_DEFINE_DYNAMIC_FUNC0(BoolVector_obj,get_length,return ) int BoolVector_obj::set_length(int value){ HX_STACKFRAME(&_hx_pos_dd7a5ba250c0e821_573_set_length) HXLINE( 575) if (!(this->fixed)) { HXLINE( 579) _hx_array_set_size_exact(this->_hx___array,value); } HXLINE( 608) return this->_hx___array->length; } HX_DEFINE_DYNAMIC_FUNC1(BoolVector_obj,set_length,return ) hx::ObjectPtr< BoolVector_obj > BoolVector_obj::__new( ::Dynamic length, ::Dynamic fixed,::Array< bool > array) { hx::ObjectPtr< BoolVector_obj > __this = new BoolVector_obj(); __this->__construct(length,fixed,array); return __this; } hx::ObjectPtr< BoolVector_obj > BoolVector_obj::__alloc(hx::Ctx *_hx_ctx, ::Dynamic length, ::Dynamic fixed,::Array< bool > array) { BoolVector_obj *__this = (BoolVector_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(BoolVector_obj), true, "openfl._Vector.BoolVector")); *(void **)__this = BoolVector_obj::_hx_vtable; __this->__construct(length,fixed,array); return __this; } BoolVector_obj::BoolVector_obj() { } void BoolVector_obj::__Mark(HX_MARK_PARAMS) { HX_MARK_BEGIN_CLASS(BoolVector); HX_MARK_MEMBER_NAME(fixed,"fixed"); HX_MARK_MEMBER_NAME(_hx___array,"__array"); HX_MARK_END_CLASS(); } void BoolVector_obj::__Visit(HX_VISIT_PARAMS) { HX_VISIT_MEMBER_NAME(fixed,"fixed"); HX_VISIT_MEMBER_NAME(_hx___array,"__array"); } hx::Val BoolVector_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp) { switch(inName.length) { case 3: if (HX_FIELD_EQ(inName,"get") ) { return hx::Val( get_dyn() ); } if (HX_FIELD_EQ(inName,"pop") ) { return hx::Val( pop_dyn() ); } if (HX_FIELD_EQ(inName,"set") ) { return hx::Val( set_dyn() ); } break; case 4: if (HX_FIELD_EQ(inName,"copy") ) { return hx::Val( copy_dyn() ); } if (HX_FIELD_EQ(inName,"join") ) { return hx::Val( join_dyn() ); } if (HX_FIELD_EQ(inName,"push") ) { return hx::Val( push_dyn() ); } if (HX_FIELD_EQ(inName,"sort") ) { return hx::Val( sort_dyn() ); } break; case 5: if (HX_FIELD_EQ(inName,"fixed") ) { return hx::Val( fixed ); } if (HX_FIELD_EQ(inName,"shift") ) { return hx::Val( shift_dyn() ); } if (HX_FIELD_EQ(inName,"slice") ) { return hx::Val( slice_dyn() ); } break; case 6: if (HX_FIELD_EQ(inName,"length") ) { if (inCallProp == hx::paccAlways) return hx::Val( get_length() ); } if (HX_FIELD_EQ(inName,"concat") ) { return hx::Val( concat_dyn() ); } if (HX_FIELD_EQ(inName,"splice") ) { return hx::Val( splice_dyn() ); } if (HX_FIELD_EQ(inName,"toJSON") ) { return hx::Val( toJSON_dyn() ); } break; case 7: if (HX_FIELD_EQ(inName,"__array") ) { return hx::Val( _hx___array ); } if (HX_FIELD_EQ(inName,"indexOf") ) { return hx::Val( indexOf_dyn() ); } if (HX_FIELD_EQ(inName,"reverse") ) { return hx::Val( reverse_dyn() ); } if (HX_FIELD_EQ(inName,"unshift") ) { return hx::Val( unshift_dyn() ); } break; case 8: if (HX_FIELD_EQ(inName,"insertAt") ) { return hx::Val( insertAt_dyn() ); } if (HX_FIELD_EQ(inName,"iterator") ) { return hx::Val( iterator_dyn() ); } if (HX_FIELD_EQ(inName,"removeAt") ) { return hx::Val( removeAt_dyn() ); } if (HX_FIELD_EQ(inName,"toString") ) { return hx::Val( toString_dyn() ); } break; case 10: if (HX_FIELD_EQ(inName,"get_length") ) { return hx::Val( get_length_dyn() ); } if (HX_FIELD_EQ(inName,"set_length") ) { return hx::Val( set_length_dyn() ); } break; case 11: if (HX_FIELD_EQ(inName,"lastIndexOf") ) { return hx::Val( lastIndexOf_dyn() ); } } return super::__Field(inName,inCallProp); } hx::Val BoolVector_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp) { switch(inName.length) { case 5: if (HX_FIELD_EQ(inName,"fixed") ) { fixed=inValue.Cast< bool >(); return inValue; } break; case 6: if (HX_FIELD_EQ(inName,"length") ) { if (inCallProp == hx::paccAlways) return hx::Val( set_length(inValue.Cast< int >()) ); } break; case 7: if (HX_FIELD_EQ(inName,"__array") ) { _hx___array=inValue.Cast< ::Array< bool > >(); return inValue; } } return super::__SetField(inName,inValue,inCallProp); } void BoolVector_obj::__GetFields(Array< ::String> &outFields) { outFields->push(HX_HCSTRING("fixed","\x74","\xf9","\xa1","\x00")); outFields->push(HX_HCSTRING("length","\xe6","\x94","\x07","\x9f")); outFields->push(HX_HCSTRING("__array","\x79","\xc6","\xed","\x8f")); super::__GetFields(outFields); }; #if HXCPP_SCRIPTABLE static hx::StorageInfo BoolVector_obj_sMemberStorageInfo[] = { {hx::fsBool,(int)offsetof(BoolVector_obj,fixed),HX_HCSTRING("fixed","\x74","\xf9","\xa1","\x00")}, {hx::fsObject /*Array< bool >*/ ,(int)offsetof(BoolVector_obj,_hx___array),HX_HCSTRING("__array","\x79","\xc6","\xed","\x8f")}, { hx::fsUnknown, 0, null()} }; static hx::StaticInfo *BoolVector_obj_sStaticStorageInfo = 0; #endif static ::String BoolVector_obj_sMemberFields[] = { HX_HCSTRING("fixed","\x74","\xf9","\xa1","\x00"), HX_HCSTRING("__array","\x79","\xc6","\xed","\x8f"), HX_HCSTRING("concat","\x14","\x09","\xd0","\xc7"), HX_HCSTRING("copy","\xb5","\xbb","\xc4","\x41"), HX_HCSTRING("get","\x96","\x80","\x4e","\x00"), HX_HCSTRING("indexOf","\xc9","\x48","\xbf","\xe0"), HX_HCSTRING("insertAt","\x8c","\x7c","\x1f","\xc2"), HX_HCSTRING("iterator","\xee","\x49","\x9a","\x93"), HX_HCSTRING("join","\xea","\x33","\x65","\x46"), HX_HCSTRING("lastIndexOf","\x13","\xfd","\x6a","\x95"), HX_HCSTRING("pop","\x91","\x5d","\x55","\x00"), HX_HCSTRING("push","\xda","\x11","\x61","\x4a"), HX_HCSTRING("removeAt","\x57","\x6e","\x1b","\xad"), HX_HCSTRING("reverse","\x22","\x39","\xfc","\x1a"), HX_HCSTRING("set","\xa2","\x9b","\x57","\x00"), HX_HCSTRING("shift","\x82","\xec","\x22","\x7c"), HX_HCSTRING("slice","\x52","\xc4","\xc7","\x7e"), HX_HCSTRING("sort","\x5e","\x27","\x58","\x4c"), HX_HCSTRING("splice","\x7c","\x85","\x9e","\xbf"), HX_HCSTRING("toJSON","\x23","\x49","\x09","\x7c"), HX_HCSTRING("toString","\xac","\xd0","\x6e","\x38"), HX_HCSTRING("unshift","\x89","\xe3","\xb3","\x78"), HX_HCSTRING("get_length","\xaf","\x04","\x8f","\x8f"), HX_HCSTRING("set_length","\x23","\xa3","\x0c","\x93"), ::String(null()) }; static void BoolVector_obj_sMarkStatics(HX_MARK_PARAMS) { HX_MARK_MEMBER_NAME(BoolVector_obj::__mClass,"__mClass"); }; #ifdef HXCPP_VISIT_ALLOCS static void BoolVector_obj_sVisitStatics(HX_VISIT_PARAMS) { HX_VISIT_MEMBER_NAME(BoolVector_obj::__mClass,"__mClass"); }; #endif hx::Class BoolVector_obj::__mClass; void BoolVector_obj::__register() { hx::Object *dummy = new BoolVector_obj; BoolVector_obj::_hx_vtable = *(void **)dummy; hx::Static(__mClass) = new hx::Class_obj(); __mClass->mName = HX_HCSTRING("openfl._Vector.BoolVector","\x37","\x5d","\xce","\x2d"); __mClass->mSuper = &super::__SGetClass(); __mClass->mConstructEmpty = &__CreateEmpty; __mClass->mConstructArgs = &__Create; __mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField; __mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField; __mClass->mMarkFunc = BoolVector_obj_sMarkStatics; __mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */); __mClass->mMembers = hx::Class_obj::dupFunctions(BoolVector_obj_sMemberFields); __mClass->mCanCast = hx::TCanCast< BoolVector_obj >; #ifdef HXCPP_VISIT_ALLOCS __mClass->mVisitFunc = BoolVector_obj_sVisitStatics; #endif #ifdef HXCPP_SCRIPTABLE __mClass->mMemberStorageInfo = BoolVector_obj_sMemberStorageInfo; #endif #ifdef HXCPP_SCRIPTABLE __mClass->mStaticStorageInfo = BoolVector_obj_sStaticStorageInfo; #endif hx::_hx_RegisterClass(__mClass->mName, __mClass); } } // end namespace openfl } // end namespace _Vector
[ "kariky@hotmail.es" ]
kariky@hotmail.es
15c1ec87bdb09c563852db814219ab7efe8deabb
8b504e28b63b156e41dfb709c23e151e4a1a62fe
/matlab/graphs/matlab_bgl/libmbgl/yasmic/util/write_petsc_matrix.hpp
c9803e3ef49b5aa8fd364ebc1c7da875ebed721c
[]
no_license
Cinaraghedini/adaptive-topology
31e2cd1b61999c0876c151f3968041008dfbdb77
958c5a981aa03fde97bf2cb49d992fa36eda9326
refs/heads/master
2022-05-01T12:08:26.757008
2022-04-11T17:01:45
2022-04-11T17:01:45
126,609,972
5
2
null
null
null
null
UTF-8
C++
false
false
3,215
hpp
#ifndef YASMIC_UTIL_WRITE_PETSC_MATRIX #define YASMIC_UTIL_WRITE_PETSC_MATRIX namespace impl { namespace endian { void swap_int_4(int *tni4) /* 4 byte signed integers */ { *tni4=(((*tni4>>24)&0xff) | ((*tni4&0xff)<<24) | ((*tni4>>8)&0xff00) | ((*tni4&0xff00)<<8)); } void swap_double_8(double *tndd8) /* 8 byte double numbers */ { char *tnd8=(char *)tndd8; char tnc; tnc=*tnd8; *tnd8=*(tnd8+7); *(tnd8+7)=tnc; tnc=*(tnd8+1); *(tnd8+1)=*(tnd8+6); *(tnd8+6)=tnc; tnc=*(tnd8+2); *(tnd8+2)=*(tnd8+5); *(tnd8+5)=tnc; tnc=*(tnd8+3); *(tnd8+3)=*(tnd8+4); *(tnd8+4)=tnc; } } } /** * Warning: This method modifies the data in rows, cols, * and vals. It tries to restore it afterwards, but no * guarantees. */ template <class VecRows, class VecCols, class VecVals> bool write_petsc_matrix(std::ostream& f, VecRows& rows, VecCols& cols, VecVals& vals, int nr, int nc, std::size_t nz) { // convert to differences adjacent_difference(++rows.begin(), rows.end(), rows.begin()); // convert to big endian... { int* intptr = &rows[0]; unsigned int maxi = rows.size(); for (unsigned int i = 0; i < maxi; ++i) { impl::endian::swap_int_4(intptr); ++intptr; } } if (cols.size() > 0) { int* intptr = &cols[0]; unsigned int maxi = cols.size(); for (unsigned int i = 0; i < maxi; ++i) { impl::endian::swap_int_4(intptr); ++intptr; } } if (vals.size() > 0) { double* doubleptr = &vals[0]; unsigned int maxi = vals.size(); for (unsigned int i = 0; i < maxi; ++i) { impl::endian::swap_double_8(doubleptr); ++doubleptr; } } const int PETSC_COOKIE = 1211216; int header[4]; header[0] = PETSC_COOKIE; header[1] = nr; header[2] = nc; header[3] = 0; impl::endian::swap_int_4(&header[0]); impl::endian::swap_int_4(&header[1]); impl::endian::swap_int_4(&header[2]); f.write((char *)&header, sizeof(int)*4); f.write((char *)&rows[0], sizeof(int)*nr); if (cols.size() > 0) { f.write((char *)&cols[0], sizeof(int)*nz); } if (vals.size() > 0) { f.write((char *)&vals[0], sizeof(double)*nz); } return (true); } /** * Warning: This method makes a copy of the data. * * Todo: Dispatch this to a method which will use * a non-copying routine if the matrix has a row_iterator. */ template <class Matrix> bool write_petsc_matrix(std::ostream& f, const Matrix& m) { /* * First, we'll pack the data; this isn't the world's * most efficient code, but it should be sufficient... */ using namespace yasmic; using namespace std; typedef typename smatrix_traits<Matrix>::size_type size_type; size_type nr = nrows(m); size_type nc = ncols(m); size_type nz = nnz(m); vector<int> rows(nr+1); vector<int> cols(nz); vector<double> vals(nz); load_matrix_to_crm(m, rows.begin(), cols.begin(), vals.begin(), false); return (write_petsc(f, rows, cols, vals, nr, nc, nz)); } #endif //YASMIC_UTIL_WRITE_PETSC_MATRIX
[ "32578137+Cinaraghedini@users.noreply.github.com" ]
32578137+Cinaraghedini@users.noreply.github.com
a3994e557ee6849f3f4d43b216d47e438d32ae50
e44ff4069f5b559954e7a66685c86b054a70de7a
/450 Codes/Arrays/buy_sell_stock.cpp
ab0db64d6ab75a2df4184e42ec2963caac807637
[]
no_license
SayanDutta001/Competitive-Programming-Codes
2912985e037f83bcde8e7fcb0036f1e31fa626df
6dac061c0a4b1c5e82b99ec134e9e77606508e15
refs/heads/master
2023-03-17T04:25:47.507594
2021-03-05T16:23:09
2021-03-05T16:23:09
null
0
0
null
null
null
null
UTF-8
C++
false
false
450
cpp
#include <iostream> using namespace std; int stock(int n, int arr[]) { int mini = INT16_MAX; int maxi = 0; for (int i = 0; i < n; i++) { mini = min(mini, arr[i]); maxi = max(maxi, arr[i] - mini); } return maxi; } int main() { int n; cin >> n; int arr[n]; for (int i = 0; i < n; i++) { cin >> arr[i]; } int profit = stock(n, arr); cout << "Max Profit is: " << profit; }
[ "khanujabhupinder09@gmail.com" ]
khanujabhupinder09@gmail.com
cd3867faf513ea5fa7eae5bb1bf389ce48799d22
ffd36aa4a71fae42e962398b5d37e7e92b0a68f1
/src/ast/try_catch.cpp
ad9a7f0d1afa9a0bbd92d15b364339d67a2906bc
[ "MIT" ]
permissive
VonRosenchild/Vivaldi
8b3f11d7bae013060d89184caf0523b938757abb
abb43a40dbbef826e8cc5a8e49dee43ed2823551
refs/heads/master
2021-01-24T04:29:53.406233
2015-03-20T15:53:43
2015-03-20T15:53:43
32,789,893
1
0
null
2015-03-24T09:49:54
2015-03-24T09:49:54
null
UTF-8
C++
false
false
1,142
cpp
#include "try_catch.h" #include "gc.h" using namespace vv; ast::try_catch::try_catch(std::unique_ptr<expression>&& body, symbol exception_name, std::unique_ptr<expression>&& catcher) : m_body {move(body)}, m_exception_name {exception_name}, m_catcher {move(catcher)} { } std::vector<vm::command> ast::try_catch::generate() const { std::vector<vm::command> catcher; catcher.emplace_back(vm::instruction::arg, 0); catcher.emplace_back(vm::instruction::let, m_exception_name); auto catcher_body = m_catcher->code(); copy(begin(catcher_body), end(catcher_body), back_inserter(catcher)); catcher.emplace_back(vm::instruction::ret, false); std::vector<vm::command> vec; vec.emplace_back(vm::instruction::pfn, vm::function_t{1, move(catcher)}); vec.emplace_back(vm::instruction::pushc); auto body = m_body->code(); body.emplace_back(vm::instruction::ret, false); vec.emplace_back(vm::instruction::pfn, vm::function_t{0, move(body)}); vec.emplace_back(vm::instruction::call, 0); vec.emplace_back(vm::instruction::popc); return vec; }
[ "jeorgun@gmail.com" ]
jeorgun@gmail.com
21871be4641b69b41a052dde4e33cadd6df2dfba
d632036c621f43207ba4a90c6b170f1bbcf91ae4
/player/src/main/cpp/decode/audio/AudioSoftDecoder.h
401a3271f444105ce1ac466ee631bcda69f3e95c
[]
no_license
ZengcxAPerson/BBQVideo
20bd3ab8eefc4a0ca5bdf4ce768a8971d218dcb2
8da5ab73eaea5e33280518843598832a5f03f619
refs/heads/main
2023-05-23T22:32:48.909521
2021-05-14T15:30:39
2021-05-14T15:30:39
318,802,095
0
0
null
2021-06-14T03:32:59
2020-12-05T13:59:14
HTML
UTF-8
C++
false
false
898
h
// // Created by jian.yeung on 2021/1/9. // #ifndef BBQVIDEO_AUDIOSOFTDECODER_H #define BBQVIDEO_AUDIOSOFTDECODER_H #include "AudioDecoder.h" #define AUDIO_SOFT_DECODER_TAG "AudioSoftDecoder" class AudioSoftDecoder : public AudioDecoder { public: AudioSoftDecoder(); ~AudioSoftDecoder(); void setPlayerStatusCallback(VideoPlayerStatusCallback *playerStatusCallback) override; void setOnPreparedListener(OnPreparedListener *onPreparedListener) override; void setOnErrorListener(OnErrorListener *onErrorListener) override; void setDataSource(std::string url) override; void setCpuIds(std::vector<int> cpuIds) override; void prepare() override; void start() override; void pause() override; void resume() override; void seek(int position) override; void stop() override; void release() override; }; #endif //BBQVIDEO_AUDIOSOFTDECODER_H
[ "708892097@qq.com" ]
708892097@qq.com
1781a6d4bdea4fdd8939386b956e159de64a345a
8222416bad2ddb58f4c8f1869b523d8359f468fc
/VSTG/VSTG/ObjCreator.h
ee83dd3008d0d674faf1cf3331f3dc66aec11ce7
[]
no_license
wchen1994/VSTG
9f5e89ea15d48845c4b84c4b15dddff00d4d31e3
d6ababaa908419def96623d2919039df8c1862e8
refs/heads/master
2021-01-20T00:29:36.313810
2017-07-15T04:49:12
2017-07-15T04:49:12
89,142,746
0
0
null
null
null
null
UTF-8
C++
false
false
1,973
h
#pragma once #include "ObjEnemy.hpp" #include "Enemys/EnemyDuck.h" #include "Essential.hpp" #include "ObjEnemyBullet.h" #include "SoundPlayer.h" #include <memory> #include <SFML/System.hpp> #include <chrono> namespace ObjCreator { void AssignTexture(std::shared_ptr<ObjCharacter> pObject, std::string texPath); void AssignTexture(std::shared_ptr<ObjCharacter> pObject, std::string texPath, sf::IntRect texRect); void SendPacket(std::shared_ptr<ObjCharacter> pObject); enum EnemyBulletType : uint32_t { BROUND, BPOINTING }; std::shared_ptr<ObjEnemyBullet> _CreateEnemyBullet(std::string ObjName, float radius, sf::Vector2f pos, sf::Vector2f vel, float rot); std::shared_ptr<ObjEnemyBullet> CreateEnemyBullet(EnemyBulletType type, sf::Vector2f pos, sf::Vector2f vel = { 0.0f,1.0f }); std::shared_ptr<ObjEnemyBullet> CreateEnemyBullet(EnemyBulletType type, sf::Vector2f pos, float speed, float rot); enum EnemyType : uint32_t {ROCK_DOWN, ROCK_RAND, DUCK_RED, DUCK_BLUE, COUNT}; std::shared_ptr<ObjEnemy> _CreateEnemy(std::string ObjName, float radius, sf::Vector2f pos, sf::Vector2f vel, float rot, float rotSpeed); std::shared_ptr<ObjEnemy> _CreateEnemy2(std::string ObjName, float radius, sf::Vector2f pos, sf::Vector2f vel, EnemyBulletType bullet); std::shared_ptr<ObjEnemy> CreateEnemy(EnemyType type, sf::Vector2f pos, sf::Vector2f vel = { 0.0f,1.0f }, float rot=0.0f); std::shared_ptr<ObjEnemy> CreateEnemyX(EnemyType type, sf::Vector2f pos, sf::Vector2f vel, float rot, float rotSpeed); enum PlayerType : uint32_t {HULUWA}; std::shared_ptr<ObjPlayer> _CreatePlayer(std::string ObjName, float radius, sf::Vector2f pos); std::shared_ptr<ObjPlayer> CreatePlayer(PlayerType type, sf::Vector2f pos); enum BulletType : uint32_t {BLUE, GREEN}; std::shared_ptr<ObjBullet> _CreateBullet(std::string Objname, float radius, sf::Vector2f pos, float speed, float rot); std::shared_ptr<ObjBullet> CreateBullet(BulletType type, sf::Vector2f pos, float rot); }
[ "wchen1994@github.com" ]
wchen1994@github.com
281b123a727eda896d7ea362df248ed84db16fb6
0709803380490159fe3c00478da01e0bf400fdc2
/StuntMarblesFinal/project/include/IrrOdeNet/CMarbles2WorldObserver.h
0de05a37a6752171454a4764387a7e7d42eb9901
[]
no_license
bayarovici/KinnectMarbleRacing
2c45678c8a542765d6f684971878faa4ce9d983f
f5401921dd8dbf3f557c128de7ccdda7459cf049
refs/heads/master
2022-05-02T15:33:52.955483
2022-04-11T04:34:08
2022-04-11T04:34:08
131,445,088
0
0
null
null
null
null
UTF-8
C++
false
false
1,312
h
#ifndef _C_MARBLES2_WORLD_OBSERVER #define _C_MARBLES2_WORLD_OBSERVER #include <IrrOde.h> #include <CMessage.h> #include <irrlicht.h> #include <CSerializer.h> #define _FLAG_COLLISION 1 using namespace irr; using namespace ode; enum EnumMarbleMessages { }; class IIrrOdeWorldListener { public: virtual void worldChange(IIrrOdeEvent *pMsg)=0; }; class CMarbles2WorldObserver : public IIrrOdeEventListener { protected: IrrlichtDevice *m_pDevice; CMarbles2WorldObserver(); list<IIrrOdeEvent *> m_lMessages; list<IIrrOdeWorldListener *> m_lListeners; bool m_bOdeInitialized; u32 m_iStep; stringc m_sAppName, m_sLevel; CSerializer m_cSerializer; void distributeMessage(IIrrOdeEvent *msg); public: static CMarbles2WorldObserver *getSharedInstance(); /*!< get a pointer to the singleton instance of this class */ void setIrrlichtDevice(IrrlichtDevice *pDevice); virtual ~CMarbles2WorldObserver(); void addMessage(IIrrOdeEvent *msg); void install(const c8 *sAppName); void destall(); virtual bool onEvent(IIrrOdeEvent *pEvent); virtual bool handlesEvent(IIrrOdeEvent *pEvent); void addListener(IIrrOdeWorldListener *pListener); void removeListener(IIrrOdeWorldListener *pListener); }; #endif
[ "bayar.menzat@gmail.com" ]
bayar.menzat@gmail.com
7274b9de86a010f9c88165220b73637bca8baa99
093d2e689823e5716c46b09511d8adebb2320573
/GFG/Binomial_Coefficient.cpp
85e8f507940d3bdb640f5412cd3fef55e6b98236
[]
no_license
gauravk268/Competitive_Coding
02813a908e4cd023e4a7039997e750d1fdae6d92
783c246dbaf36425a5b7cb76b4e79e2b7ba1a10c
refs/heads/master
2022-10-15T02:25:41.598723
2022-10-03T06:09:17
2022-10-03T06:09:17
235,630,000
20
22
null
2022-10-03T06:09:18
2020-01-22T17:45:32
C++
UTF-8
C++
false
false
1,627
cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pi; typedef vector<int> vi; typedef vector<pi> vpi; typedef vector<ll> vll; #define f first #define s second #define all(x) (x).begin(), (x).end() #define pb push_back #define endl "\n" #define trav(x, a) for (auto &x : a) #define deb(x) cerr << #x << "=" << x << endl #define showRunTime cerr << "time taken : " << (float)clock() / CLOCKS_PER_SEC << " secs" << endl; #define ONLINE_JUDGE \ freopen("input.txt", "r", stdin); \ // freopen("output.txt", "w", stdout); const int INF = 1e9 + 7; const int N = 1e5 + 5; const int MOD = 1e9 + 7; // used in most problems int binomialCoeff(int n, int k) { if (n == k || k == 0) { return 1; } return binomialCoeff(n - 1, k - 1) + binomialCoeff(n - 1, k); } int binomialCoeffDP(int n, int k) { int dp[n + 1][k + 1]; for (int i = 0; i <= n; i++) { for (int j = 0; j <= min(i, k); j++) { if (i == j || j == 0) { dp[i][j] = 1; } else { dp[i][j] = dp[i - 1][j - 1] + dp[i - 1][j]; } } } return dp[n][k]; } void solution() { int n = 5, k = 2; cout << "Value of C(" << n << ", " << k << ") is " << binomialCoeff(n, k) << endl; cout << "Value of C(" << n << ", " << k << ") is " << binomialCoeffDP(n, k) << endl; } int main() { ios::sync_with_stdio(false); cin.tie(0); int t = 1; ONLINE_JUDGE; // cin >> t; while (t--) { solution(); } showRunTime; return 0; } /* */
[ "gauravk26800@gmail.com" ]
gauravk26800@gmail.com
ebf309459376fc6d8cccf95f00bba5597848639d
eeec885fcbad78f6d7aef42988b51b624e78de4c
/button.cpp
83f26f059da707970e5c38cec93ce983837a8c20
[ "MIT" ]
permissive
tonymiceli/tinymfc
b4423b405f9ec4911d6491eaca2be0c20a81d403
68a5fbbaecf07a038d8e46cfc9a96d62480b12b5
refs/heads/master
2021-03-07T18:12:37.496564
2020-03-10T12:16:52
2020-03-10T12:19:48
246,286,027
1
0
null
null
null
null
UTF-8
C++
false
false
735
cpp
//#include "stdafx.h" #include "button.h" CButton::CButton() { } BOOL CButton::Create(HINSTANCE hInstance, LPCTSTR lpCaption, HWND hWndParent, int x, int y, int nWidth, int nHeight, DWORD dwStyle) { BOOL bRC = CWnd::Create("BUTTON", hInstance, lpCaption, hWndParent, dwStyle, 0, x, y, nWidth, nHeight); if (bRC) SendMessage(WM_SETFONT, (WPARAM)GetStockObject(DEFAULT_GUI_FONT), 0); return bRC; }
[ "6946957+tonymiceli@users.noreply.github.com" ]
6946957+tonymiceli@users.noreply.github.com
92f78b74c759cb20ad2aa6d5b989862fb96ccdec
949999f50ea171237914b24302de52d70cd026ea
/BattleTank/Source/BattleTank/TankMovementComponent.h
520fd96030f9a8de419b6f548b290b69c9bc1958
[]
no_license
baconcheese113/04_BattleTank
ae36381fa7559c14ca99bf1d2850564c6410925e
d595f970fdb80da3a28a2a6c8d77bde866a1ef86
refs/heads/master
2021-01-21T02:52:51.531392
2016-10-24T04:19:03
2016-10-24T04:19:03
68,353,747
0
0
null
null
null
null
UTF-8
C++
false
false
945
h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "GameFramework/NavMovementComponent.h" #include "TankMovementComponent.generated.h" class UTankTrack; /** * Responsible for driving the tank tracks */ UCLASS( ClassGroup = (Custom), meta = (BlueprintSpawnableComponent) ) class BATTLETANK_API UTankMovementComponent : public UNavMovementComponent { GENERATED_BODY() public: UFUNCTION(BlueprintCallable, Category = "Setup") void Initialize(UTankTrack* LeftTrackToSet, UTankTrack* RightTrackToSet); UFUNCTION(BlueprintCallable, Category = "Input") void IntendMoveForward(float Throw); UFUNCTION(BlueprintCallable, Category = "Input") void IntendTurnRight(float Throw); private: // Path following: request new velocity void RequestDirectMove(const FVector& MoveVelocity, bool bForceMaxSpeed) override; UTankTrack* LeftTrack = nullptr; UTankTrack* RightTrack = nullptr; };
[ "baconcheese113@hotmail.com" ]
baconcheese113@hotmail.com
217c15c096086fc9e9da889eedf336ae1fc70b43
673eaab40a1b13c7ce41b3f6ab580ba0855ea12a
/ED/L02Q01.cpp
0902079d24d4b87af37165cab44831b504dbf733
[]
no_license
marcosf63/CC
bb9b8a609b9e08ae6f59fce40c2bcade1137c5ba
95559828c6bf1a02434b7fb3720661541aede7c7
refs/heads/master
2021-01-21T13:41:58.941563
2016-05-03T01:16:09
2016-05-03T01:16:09
45,278,805
0
0
null
null
null
null
UTF-8
C++
false
false
560
cpp
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <algorithm> #include "slist.h" using namespace std; int main() { int i, j, k, n; TList l; do { printf("Digite a quantidade de elementos da lista: "); scanf("%d", &n); } while (n < 0); srand(time(0)); for (i = 1; l.size() < n; i++) { k = rand() % (2 * n) + 1; if (i == 1) l.insert(k, i); else { if (k >= l.getkey(i - 1)) l.insert(k, i); else i--; } } l.print("Lista gerada: "); return 0; }
[ "marcosf63@gmail.com" ]
marcosf63@gmail.com
768d5421b1fd1a7f26433d0aefb6be530422b169
587a987f72a6a0b366fdd52a611a56e10972491a
/LeetCode/230_二叉搜索树中第K小的元素.cpp
c4cd918a0f42564b57a6c95cae2fb81556a96aee
[]
no_license
SeanCST/Algorithm_Problems
18e4115dfd8d6b51cef6fad90b537d989123d655
03f7de3e4717677967d8b11ed4d7f0285debdb61
refs/heads/master
2023-07-27T22:33:56.783638
2023-07-17T14:13:49
2023-07-17T14:13:49
144,162,747
0
0
null
null
null
null
UTF-8
C++
false
false
1,195
cpp
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ // 中序遍历法 class Solution { private: int cur = 0; int res; public: int kthSmallest(TreeNode* root, int k) { inOrder(root, k); return res; } void inOrder(TreeNode* root, int k) { if(root == NULL) return; if(root->left) inOrder(root->left, k); cur++; if(cur == k) { res = root->val; return; } if(root->right) inOrder(root->right, k); } }; // 递归法 class Solution { private: int cur = 0; int res; public: int kthSmallest(TreeNode* root, int k) { int left = count(root->left); if(left == k - 1) return root->val; else if(left > k - 1) return kthSmallest(root->left, k); else return kthSmallest(root->right, k - left - 1); } int count(TreeNode* pNode) { if(pNode == NULL) return 0; return count(pNode->left) + count(pNode->right) + 1; } };
[ "seancst.x@gmail.com" ]
seancst.x@gmail.com
0a1676704529157b996c243320aa38eddab3298c
a3d57036a8b42f9dfc4da00bad528a502f6595dc
/projects/happy-hls/include/bits_io.h
013aac6d8c52fcb65b2dc814c65db707cb95d0d8
[]
no_license
zhouchunliang/chenzhengqiang
5f3579badc557f887a6b09d4489c0f3134448c1d
d4cd58715343ce539ff2523e4ac0f0c80f2bd0c7
refs/heads/master
2020-07-07T12:05:27.104252
2017-12-28T08:31:06
2017-12-28T08:31:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,167
h
/* @author:chenzhengqiang @file name:bits_operate.h @version:1.0 @start date: @modified date: @desc:providing the apis of bits operate */ #ifndef _CZQ_BITS_IO_H_ #define _CZQ_BITS_IO_H_ #include<cstdio> #include<stdint.h> #define hton16(x) (((x>>8)&0xff)|((x<<8)&0xff00)) #define hton24(x) (((x>>16)&0xff)|((x<<16)&0xff0000)|(x&0xff00)) #define hton32(x) (((x>>24)&0xff)|((x>>8) &0xff00)|\ ((x<<8)&0xff0000) |((x<<24)&0xff000000)) #define STR(x) (x.c_str()) #define FCUR(x) (ftell(x)) #define FSEEK(x,f) (fseek(f,x,SEEK_CUR)) #define FSET(x,f) (fseek(f,x,SEEK_SET)) //the bits_io class class bits_io { public: static bool read_8_bit( int & bit8, FILE * fs ); static bool read_8_bit(int & bit8, uint8_t *stream); static bool read_16_bit( int & bit16, FILE * fs ); static bool read_16_bit( int & bit16, uint8_t * stream ); static bool read_24_bit( int & bit24, FILE * fs ); static bool read_24_bit( int & bit24, uint8_t * stream ); static bool read_32_bit( int & bit32, FILE * fs ); static bool read_32_bit( int & bit32, uint8_t * stream); }; #endif
[ "642346572@qq.com" ]
642346572@qq.com
673cc6170f090de418e40bd3af63eb4d54f01c3e
90e3c1fabc10a2e3d1bc860ad28304d389ad0d9c
/IRsendDemo/IRsendDemo.ino
ff31f666de48579df4cb58e6996db25170d5764a
[]
no_license
chicagozer/arduino
bd0d56563b91a56181d3ef850e9975089d7f3751
c23746e5692f150be20d444d0bb43cc5cc1546ed
refs/heads/master
2020-06-04T01:47:36.644551
2012-02-24T17:33:52
2012-02-24T17:33:52
3,180,786
0
0
null
null
null
null
UTF-8
C++
false
false
571
ino
/* * IRremote: IRsendDemo - demonstrates sending IR codes with IRsend * An IR LED must be connected to Arduino PWM pin 3. * Version 0.1 July, 2009 * Copyright 2009 Ken Shirriff * http://arcfn.com */ #include <IRremote.h> IRsend irsend; void setup() { Serial.begin(9600); #if defined (__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) Serial.println("Mega!!"); #endif } void loop() { if (Serial.read() != -1) { for (int i = 0; i < 1; i++) { irsend.sendNEC(0x4FB38C7, 32); // Sony TV power code Serial.println("sent."); } } }
[ "chicagozer@comcast.net" ]
chicagozer@comcast.net
8b6957c73564c3b75d87aba01f30da85e43b8073
bb3f5ed74704e733eb73a04ed3a5e297b2c6874d
/PROBLEM SET 06/Pebble Solitaire/pebble_solitaire.cpp
f0d79c20dd7f524ac5a6583c439e0b605e57108b
[]
no_license
Arnarkari93/AFLV
e44bdf04600a4e377aeb327412ba01f4d6e00059
4938213a5b280f24fa60f2839029acd739be05e9
refs/heads/master
2020-12-10T07:35:41.770786
2016-09-09T22:49:16
2016-09-09T22:49:16
27,455,903
0
0
null
null
null
null
UTF-8
C++
false
false
2,144
cpp
#include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <fstream> #include <iomanip> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> using namespace std; const int GAME_SIZE = 23; int mem[8388608]; bool is_avaible_move(string &game); int opt(string &game, int mask); int balls_count(string &game); int get_mask(string &game); int main() { cin.sync_with_stdio(false); cout.sync_with_stdio(false); int ts; cin >> ts; memset(mem, -1, sizeof(mem)); for (int t = 0; t < ts; ++t) { string game; cin >> game; int mask = get_mask(game); cout << opt(game, mask) << endl; } return 0; } int opt(string &game, int mask) { if(!is_avaible_move(game)) { int balls_left = balls_count(game); mem[mask] = balls_left; return balls_left; } if(mem[mask] != -1) { return mem[mask]; } int result = 23; int left = 23, right = 23; for (int i = 0; i < GAME_SIZE - 1; ++i) { if(game[i] == 'o' && game[i + 1] == 'o') // we can move { if(i >= 0 && game[i - 1] == '-') // move to the left { string temp = game; temp[i] = '-'; temp[i - 1] = 'o'; temp[i + 1] = '-'; left = opt(temp, get_mask(temp)); } if(i + 2 < GAME_SIZE && game[i + 2] == '-') // move to the right { string temp = game; temp[i] = '-'; temp[i + 1] = '-'; temp[i + 2] = 'o'; right = opt(temp, get_mask(temp)); } result = min(result, min(left, right)); } } mem[mask] = result; return result; } int get_mask(string &game) { int mask = 0; for (int i = 0; i < GAME_SIZE; ++i) { if(game[i] == 'o') { mask |= (1 << i); } } return mask; } int balls_count(string &game) { int c = 0; for (int i = 0; i < GAME_SIZE; ++i) { if(game[i] == 'o') { c++; } } return c; } bool is_avaible_move(string &game) { for (int i = 0; i < GAME_SIZE - 1; ++i) { if (game[i] == 'o' && game[i + 1] == 'o') { return true; } } return false; }
[ "arnarkari93@gmail.com" ]
arnarkari93@gmail.com
52b2a53709851054272f9585288978cfedc75de4
a6686120abe76b16a1d3afff173cbcdb1f657ac2
/Tree-Graph/Heavy-light Decomposition.cpp
a2540ecc774a41305aacc3631228a40ef5ed75fc
[]
no_license
vivek8420/programming
d87c2c3ea908c6a4accb211343119afb635b022b
1eb616be00671fd08bbc75edab4390067385f0ad
refs/heads/master
2023-01-08T16:18:47.430444
2020-11-07T14:19:31
2020-11-07T14:19:31
240,758,120
1
0
null
null
null
null
UTF-8
C++
false
false
5,064
cpp
/* * heavy-light decomposition * problem: QTREE(SPOJ) * author:savaliya_vivek * resources: anudeep's blogs */ #include <bits/stdc++.h> using namespace std; #define ll long long int #define PI pair<int,int> #define ff first #define ss second #define boost ios_base::sync_with_stdio(false);cin.tie(NULL) #define MAX 11111 #define MOD 1000000007 #define lv 20 int ptr,chainNo=0,baseArray[MAX],chainHead[MAX],posInBase[MAX],chainInd[MAX]; int tree[4*MAX],sparce[MAX][lv],level[MAX],subsize[MAX],otherEnd[MAX]; bool visit[MAX]; vector<PI>adj[MAX]; vector<int>index[MAX]; void flush() { ptr=0; chainNo=0; memset(baseArray,-1,sizeof baseArray); memset(visit,false,sizeof visit); memset(chainHead,-1,sizeof chainHead); memset(sparce,-1,sizeof sparce); memset(subsize,0,sizeof subsize); memset(posInBase,0,sizeof posInBase); for(int i=0;i<MAX;i++) { adj[i].clear(); index[i].clear(); } } void built(int x,int ss,int ee,int arr[]) { if(ss==ee-1) { tree[x]=arr[ss]; } else { int mid=(ee+ss)/2; built(2*x,ss,mid,arr); built(2*x+1,mid,ee,arr); tree[x]=max(tree[2*x],tree[2*x+1]); } return; } void update(int node,int ss,int ee,int pos,int val) { if(ss>pos || ee<=pos) return; if(ss==pos&& ss==ee-1) { tree[node]=val; return; } int m=(ee+ss)/2; update(2*node,ss,m,pos,val); update(2*node+1,m,ee,pos,val); tree[node]=max(tree[2*node],tree[2*node+1]); return; } int query_tree(int node,int ss,int ee,int l,int r) { if(ss>=r || ee<=l) return 0; if(l<=ss && ee<=r) return tree[node]; int m=(ee+ss)/2; int p1=query_tree(2*node,ss,m,l,r); int p2=query_tree(2*node+1,m,ee,l,r); return max(p1,p2); } int query_up(int u, int v) { if(u == v) return 0; int uchain, vchain = chainInd[v], ans = -1; while(1) { uchain = chainInd[u]; if(uchain == vchain) { // Both u and v are in the same chain, so we need to query from u to v, update answer and break. // We break because we came from u up till v, we are done if(u==v) break; int tmp=query_tree(1, 0, ptr, posInBase[v]+1, posInBase[u]+1); if(tmp > ans) ans = tmp; break; } int tmp=query_tree(1, 0, ptr, posInBase[chainHead[uchain]], posInBase[u]+1); // Above is call to segment tree query function. We do from chainHead of u till u. That is the whole chain from if(tmp > ans) ans = tmp; u = chainHead[uchain]; // move u to u's chainHead u = sparce[u][0]; //Then move to its parent, that means we changed chains } return ans; } void hld(int curNode, int cost, int prev) { if(chainHead[chainNo] == -1) chainHead[chainNo] = curNode; // Assign chain head chainInd[curNode] = chainNo; posInBase[curNode] = ptr; // Position of this node in baseArray which we will use in Segtree baseArray[ptr++] = cost; //cout<<curNode<<" "<<ptr<<" "<<chainNo<<endl; int sc = -1, ncost; // Loop to find special child for(int i=0; i<adj[curNode].size(); i++) { if(adj[curNode][i].ff != prev) { if(sc == -1 || subsize[sc] < subsize[adj[curNode][i].ff]) { sc = adj[curNode][i].ff; ncost =adj[curNode][i].ss; } } } if(sc != -1) { // Expand the chain hld(sc, ncost, curNode); } for(int i=0;i<adj[curNode].size(); i++) { if(adj[curNode][i].ff != prev) { if(sc != adj[curNode][i].ff) { chainNo++; hld(adj[curNode][i].ff,adj[curNode][i].ss, curNode); } } } } void sparceTable(ll n) { for(int i=1;i<lv;i++) { for(int j=0;j<n;j++) { if(sparce[j][i-1]!=-1) { sparce[j][i]=sparce[sparce[j][i-1]][i-1]; } } } } int lca(int u, int v) { if (level[v] < level[u]) swap(u, v); ll diff = level[v] - level[u]; for (ll i=0; i<lv; i++) if ((diff>>i)&1) v = sparce[v][i]; if (u == v) return u; for (ll i=lv-1; i>=0; i--) if (sparce[u][i] != sparce[v][i]) { u = sparce[u][i]; v = sparce[v][i]; } return sparce[u][0]; } void EulorTour(int x,int prev) { level[x]=level[prev]+1; sparce[x][0]=prev; visit[x]=true; subsize[x]=1; for(int i=0;i<adj[x].size();i++) { if(!visit[adj[x][i].ff]) { otherEnd[index[x][i]] = adj[x][i].ff; EulorTour(adj[x][i].ff,x); subsize[x] += subsize[adj[x][i].ff]; } } } void query(int u, int v) { int la = lca(u, v); int ans1 = query_up(u, la); int ans2= query_up(v, la); //cout<<la<<" "<<ans1<<" "<<ans2<<endl; cout<<max(ans1,ans2)<<endl; } void change(int x,int val) { int u = otherEnd[x]; update(1, 0, ptr, posInBase[u], val); } int main() { boost; #ifndef ONLINE_JUDGE freopen("input.c","r",stdin); freopen("output.c","w",stdout); #endif // ONLINE_JUDGE int t; cin>>t; while(t--) { flush(); int n; cin>>n; for(int i=1;i<n;i++) { ll u,v,w; cin>>u>>v>>w; u--;v--; adj[u].push_back({v,w}); adj[v].push_back({u,w}); index[u].push_back(i-1); index[v].push_back(i-1); } EulorTour(0,-1); sparceTable(n); hld(0,-1,-1); built(1,0,ptr,baseArray); while(1) { string str; cin>>str; if(str=="DONE") break; int u,v; cin>>u>>v; if(str=="QUERY") query(u-1,v-1); else change(u-1,v); } } }
[ "vdsavaliya123@gmail.com" ]
vdsavaliya123@gmail.com
394e00991cc6802746f1ca0a5431ccbed7d83f19
74474277086d7a54bdf9ba684a4c2b6b39635bcb
/cs320/SecuritySimulator/command.h
c5fa5c70cd7ac969160850c870f9e47cb172b188
[]
no_license
lemon123456/ksc-archive
c10d2bbfa284fb37b31fcd1d82d5359e5852c2f0
487fb9028f416c394d3f54f65bee4f9df64fb7fb
refs/heads/master
2020-04-07T23:38:04.854866
2012-05-04T01:54:59
2012-05-04T01:54:59
null
0
0
null
null
null
null
UTF-8
C++
false
false
534
h
#ifndef COMMAND_H #define COMMAND_H #include <QObject> #include <QStringList> #include "environment.h" class Command : public QObject { Q_OBJECT public: explicit Command(QStringList args = QStringList(), QObject *parent = 0); virtual ~Command(); QString name() const; QStringList args() const; static Command* parse(const QString &string); virtual bool execute(Environment &env) = 0; protected: void setName(const QString &name); private: class Private; Private *d; }; #endif // COMMAND_H
[ "jake.petroules@petroules.com" ]
jake.petroules@petroules.com
5f7f0d0cd0d0ea976579fe7af5d61cfea5705bc2
0a6a43b691996499230276055523eb895da6ffec
/.history/spectrum/spectrum_20190117003202.hpp
2f4dbd6c406b9cfdb07be0abcee2789a9abc495d
[]
no_license
SoundRabbit/voice-changer
362890a6e0ef1dda37c1666b946879fc12125370
e5a5d64426fc072504477ae30c96e8e293a07a52
refs/heads/master
2020-03-27T09:49:50.340212
2019-01-16T17:55:04
2019-01-16T17:55:04
null
0
0
null
null
null
null
UTF-8
C++
false
false
342
hpp
#pragma once template<int length> class Spectrum { private: class Intensity { public: operator double(); double operator= (double); double operator= (const Intensity&); bool operator== (const Intensity&); bool operator< (const Intensity&); bool operator<= (const Intensity&); }; public: };
[ "neu1neu9neu9neu9neu@gmail.com" ]
neu1neu9neu9neu9neu@gmail.com
aef2858cf71dd60163c4ec147d83aa6334d53de1
88ae8695987ada722184307301e221e1ba3cc2fa
/third_party/ots/src/src/hmtx.h
4bf49349c7cf03c44a2ddd60310065bcc6493e04
[ "Apache-2.0", "LGPL-2.0-or-later", "MIT", "GPL-1.0-or-later", "BSD-3-Clause" ]
permissive
iridium-browser/iridium-browser
71d9c5ff76e014e6900b825f67389ab0ccd01329
5ee297f53dc7f8e70183031cff62f37b0f19d25f
refs/heads/master
2023-08-03T16:44:16.844552
2023-07-20T15:17:00
2023-07-23T16:09:30
220,016,632
341
40
BSD-3-Clause
2021-08-13T13:54:45
2019-11-06T14:32:31
null
UTF-8
C++
false
false
506
h
// Copyright (c) 2009-2017 The OTS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef OTS_HMTX_H_ #define OTS_HMTX_H_ #include "metrics.h" #include "hhea.h" #include "ots.h" namespace ots { class OpenTypeHMTX : public OpenTypeMetricsTable { public: explicit OpenTypeHMTX(Font *font, uint32_t tag) : OpenTypeMetricsTable(font, tag, tag, OTS_TAG_HHEA) { } }; } // namespace ots #endif // OTS_HMTX_H_
[ "jengelh@inai.de" ]
jengelh@inai.de
5b364c1031f4704861aa0df61fdaa8c4428ade88
5722258ec3ce781cd5ec13e125d71064a67c41d4
/java/util/function/DoubleToLongFunctionProxyForward.h
a20001731d8e5f771f60ba2b2c373b08b75f19f1
[]
no_license
ISTE-SQA/HamsterJNIPP
7312ef3e37c157b8656aa10f122cbdb510d53c2f
b29096d0baa9d93ec0aa21391b5a11b154928940
refs/heads/master
2022-03-19T11:27:03.765328
2019-10-24T15:06:26
2019-10-24T15:06:26
216,854,309
1
0
null
null
null
null
UTF-8
C++
false
false
245
h
#ifndef __java_util_function_DoubleToLongFunctionProxyForward_H #define __java_util_function_DoubleToLongFunctionProxyForward_H namespace java { namespace util { namespace function { class DoubleToLongFunctionProxy; } } } #endif
[ "steffen.becker@informatik.uni-stuttgart.de" ]
steffen.becker@informatik.uni-stuttgart.de
d6b9d038efc5493a91ad5edee605b6b901380248
df22e22c3600b814710bb3e190b1435ef51a2ec7
/HashMapTest.h
2d4f7ff5b9a99e176e77647136f1c3316e761ed4
[]
no_license
Cyan4973/smhasher
32446b17dd556e0d403dbdf32bfbe71eea5dc7ef
e1adb07114f5f1f156c10b70ad9255f24f42a7d1
refs/heads/master
2023-08-31T10:54:50.524036
2020-03-07T10:49:07
2020-03-07T10:49:07
173,207,357
18
10
null
2020-03-05T23:28:53
2019-03-01T00:17:05
C++
UTF-8
C++
false
false
267
h
#pragma once #include "Platform.h" #include "Types.h" std::vector<std::string> HashMapInit(bool verbose); bool HashMapTest ( pfHash pfhash, const int hashbits, std::vector<std::string> words, const int trials, bool verbose );
[ "rurban@cpan.org" ]
rurban@cpan.org
7b08b99e63c2bdac1ddd4a67a8b231be86b89ea8
697a751b80ac05a73a3ff38aa56e0f71359bf58e
/test/function/HashJoin/src/fileOps.h
e0bc8446658d90072c7ee752a60f24178c535bc0
[ "GPL-2.0-only", "BSD-3-Clause", "Apache-2.0" ]
permissive
HashDataInc/Gopherwood
e06203fb8b5ceeb726d30dd07b9e63f3aa3f4ef7
4e06e575b0b4a5efdc378a6d6652c9bfb478e5f2
refs/heads/master
2021-05-06T06:35:16.744434
2018-06-29T08:00:50
2018-06-29T10:04:40
113,868,415
12
6
Apache-2.0
2018-06-29T10:07:51
2017-12-11T14:25:09
C++
UTF-8
C++
false
false
1,354
h
/* * DBMS Implementation * Copyright (C) 2013 George Piskas, George Economides * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * Contact: geopiskas@gmail.com */ #ifndef FILEOPS_H #define FILEOPS_H #include <sys/types.h> #include <sys/stat.h> #include "dbtproj.h" #include "gopherwood.h" class fileOps { public: fileOps() { } ~fileOps() { } void printFileInfo(GWFileInfo *fileInfo); void createTwoFiles(char *filename1, uint size1, char *filename2, uint size2); // returns the size of a file int getSize(char *filename); // returns true if file exists, false otherwise int exists(char *filename); void printFile(char *filename); }; #endif
[ "492960551@qq.com" ]
492960551@qq.com
75c202b3dd8417792464038341a14115a666c3d6
877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a
/app/src/main/cpp/dir7941/dir22441/dir22442/dir22443/dir24492/file24578.cpp
5826d627a41f954026f433f6d90e76ab1996588a
[]
no_license
tgeng/HugeProject
829c3bdfb7cbaf57727c41263212d4a67e3eb93d
4488d3b765e8827636ce5e878baacdf388710ef2
refs/heads/master
2022-08-21T16:58:54.161627
2020-05-28T01:54:03
2020-05-28T01:54:03
267,468,475
0
0
null
null
null
null
UTF-8
C++
false
false
115
cpp
#ifndef file24578 #error "macro file24578 must be defined" #endif static const char* file24578String = "file24578";
[ "tgeng@google.com" ]
tgeng@google.com
baf6cfe3133cf2ec9d8abb326e5e0849019a4b12
2eb3b66b421a1f4a18bcb72b69023a3166273ca1
/HackerRank/countercode/poisonous-plants/main.cc
bcb49365ef58d0e7a98ac538a4e1d54579b68d31
[]
no_license
johnathan79717/competitive-programming
e1d62016e8b25d8bcb3d003bba6b1d4dc858a62f
3c8471b7ebb516147705bbbc4316a511f0fe4dc0
refs/heads/master
2022-05-07T20:34:21.959511
2022-03-31T15:20:28
2022-03-31T15:20:28
55,674,796
2
2
null
null
null
null
UTF-8
C++
false
false
2,968
cc
#include <string> #include <vector> #include <climits> #include <cstring> #include <map> #include <queue> #include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <set> #include <deque> #include <stack> #include <cassert> using namespace std; #define FOR(i,c) for(__typeof((c).begin()) i=(c).begin();i!=(c).end();i++) #define MAX(x, a) x = max(x, a) #define MIN(x, a) x = min(x, a) #define ALL(x) (x).begin(),(x).end() #define CASET2 int ___T, case_n = 1; scanf("%d ", &___T); while ((___T > 0 ? printf("Case #%d:\n", case_n++) : 0), ___T-- > 0) #define CASET1 int ___T, case_n = 1; scanf("%d ", &___T); while ((___T > 0 ? printf("Case #%d: ", case_n++) : 0), ___T-- > 0) #define CASET int ___T, case_n = 1; scanf("%d ", &___T); while (___T-- > 0) #define SZ(X) ((int)(X).size()) #define LEN(X) strlen(X) #define REP(i,n) for(int i=0;i<(n);i++) #define REP1(i,a,b) for(int i=(a);i<=(b);i++) #define PER1(i,a,b) for(int i=(a);i>=(b);i--) #define REPL(i,x) for(int i=0;x[i];i++) #define PER(i,n) for(int i=(n)-1;i>=0;i--) #define RI1(x) scanf("%d",&x) #define RI2(x,y) RI1(x), RI1(y) #define RI3(x,y...) RI1(x), RI2(y) #define RI4(x,y...) RI1(x), RI3(y) #define RI5(x,y...) RI1(x), RI4(y) #define RI6(x,y...) RI1(x), RI5(y) #define GET_MACRO(_1, _2, _3, _4, _5, _6, NAME, ...) NAME #define RI(argv...) GET_MACRO(argv, RI6, RI5, RI4, RI3, RI2, RI1)(argv) #define DRI(argv...) int argv;RI(argv) #define WRI(argv...) while (RI(argv) != EOF) #define DWRI(x...) int x; WRI(x) #define RS(x) scanf("%s",x) #define PI(x) printf("%d\n",x) #define PIS(x) printf("%d ",x) #define MP make_pair #define PB push_back #define MS0(x) memset(x,0,sizeof(x)) #define MS1(x) memset(x,-1,sizeof(x)) #define X first #define Y second #define V(x) vector<x > #define PV(v) REP(i, SZ(v)) if(i < SZ(v)-1) PIS(v[i]); else PI(v[i]); template<class C> void mini(C&a4, C b4){a4=min(a4, b4); } template<class C> void maxi(C&a4, C b4){a4=max(a4, b4); } int popcount(unsigned x) { return __builtin_popcount(x); } int popcount(unsigned long long x) { return __builtin_popcountll(x); } typedef long double LD; typedef pair<int,int> PII; typedef vector<int> VI; typedef long long LL; const int INF = 1000000000; #include <unordered_set> #include <unordered_map> #define PL(x) printf("%lld\n",x) #define EB emplace_back #define RL(x) scanf("%lld",&x) #define DRL(x) LL x;RL(x) int main() { DRI(N); stack<PII> s; DRI(P0); s.emplace(P0, INF); int ans = 0; REP1(i, 1, N-1) { DRI(P); PII p(P, 1); PII *top = &s.top(); // s.top().Y--; while (SZ(s) && (s.top().X >= P ||s.top().Y == 0)) { p.Y += s.top().Y; s.pop(); } if (p.Y < INF/2) { MAX(ans, p.Y); } if (SZ(s) && &s.top() == top) { s.top().Y--; if (s.top().Y == 0) { s.pop(); } } s.push(p); } PI(ans); return 0; }
[ "johnathan79717@gmail.com" ]
johnathan79717@gmail.com
3ecf04a7054806092862c0dae3486757a7d58cb1
872770c5323aa17120f2f708a1f0be09e663c9a8
/Elastos/Framework/Droid/eco/inc/core/hardware/CSensorEvent.h
fcd3234240ed010299880dbd8cdf370f346f76a9
[]
no_license
xianjimli/Elastos
76a12b58db23dbf32ecbcefdaf6179510362dd21
f9f019d266a7e685544596b365cfbc05bda9cb70
refs/heads/master
2021-01-11T08:26:17.180908
2013-08-21T02:31:17
2013-08-21T02:31:17
null
0
0
null
null
null
null
UTF-8
C++
false
false
922
h
#ifndef __CSENSOREVENT_H__ #define __CSENSOREVENT_H__ #include "_CSensorEvent.h" #include <elastos/AutoPtr.h> CarClass(CSensorEvent) { public: CSensorEvent(); virtual ~CSensorEvent(); CARAPI GetValues( /* [out, callee] */ ArrayOf<Float>** values); CARAPI SetValues( /* [in] */ const ArrayOf<Float>& values); CARAPI GetSensor( /* [out] */ ISensor** sensor); CARAPI SetSensor( /* [in] */ ISensor* sensor); CARAPI GetAccuracy( /* [out] */ Int32* accuracy); CARAPI SetAccuracy( /* [in] */ Int32 accuracy); CARAPI GetTimeStamp( /* [out] */ Int64* timestamp); CARAPI SetTimeStamp( /* [in] */ Int64 timestamp); CARAPI constructor( /* [in] */ Int32 size); private: ArrayOf<Float>* mValues; AutoPtr<ISensor> mSensor; Int32 mAccuracy; Int64 mTimestamp; }; #endif // __CSENSOREVENT_H__
[ "pos0637@hotmail.com" ]
pos0637@hotmail.com
04d0fbbe6922b5196cde0d01ec3627e026d1140e
f1bb63fb83570543c58527d2016488252db958f2
/Source/Transform/Public/TCheckpointZone.h
c05be346fb77a5ecb761169f6fa2376110f04eff
[]
no_license
MKSMILEY/Transform-Game
deac1c41873a4ef15b4fab9bc71513b6d0f687c0
dc6cedee5f3e8540d329e5d6d309b1687fb42922
refs/heads/main
2023-03-03T00:19:51.840874
2021-02-14T07:41:01
2021-02-14T07:41:01
338,752,877
0
0
null
null
null
null
UTF-8
C++
false
false
953
h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "GameFramework/Actor.h" #include "TCheckpointZone.generated.h" class UBoxComponent; class UStaticMeshComponent; UCLASS() class TRANSFORM_API ATCheckpointZone : public AActor { GENERATED_BODY() public: // Sets default values for this actor's properties ATCheckpointZone(); protected: // Called when the game starts or when spawned virtual void BeginPlay() override; UPROPERTY(VisibleAnywhere, Category = "Components") UBoxComponent *OverlapComp; UPROPERTY(VisibleAnywhere, Category = "Components") UStaticMeshComponent *MeshComp; UFUNCTION() void HandleOverlap(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult); UFUNCTION() void SetCheckpoint(); };
[ "noreply@github.com" ]
MKSMILEY.noreply@github.com
0d3984fbcaa6956aefe5909b212630504f060bac
98342d650ae520a36a7bae33ff88f207739301b7
/Source/SceneGraph/USD/pch.h
75e7b0ec5191e51265ba90dae10188fc846182db
[ "MIT" ]
permissive
i-saint/USDForMetasequoia
0304a1fee925cfd102adcc521d13b91b80272bd7
e589d47434df913ae4d037c503a89373b5c7938c
refs/heads/master
2021-03-17T04:42:48.592603
2020-04-22T01:22:19
2020-04-22T01:22:19
246,960,766
8
1
null
null
null
null
UTF-8
C++
false
false
1,220
h
#pragma once #ifdef _WIN32 #define _CRT_SECURE_NO_WARNINGS #define NOMINMAX #define WIN32_LEAN_AND_MEAN #define _WINDOWS #include <windows.h> #include <comdef.h> #endif // _WIN32 #include <cstdio> #include <cstdlib> #include <cstring> #include <cstdint> #include <string> #include <vector> #include <map> #include <functional> #include <memory> #include <sstream> #include <fstream> #include <future> #include <random> #include <numeric> #pragma warning(push) #pragma warning(disable:4244 267) #include <pxr/base/plug/registry.h> #include <pxr/usd/usd/stage.h> #include <pxr/usd/usdGeom/xform.h> #include <pxr/usd/usdGeom/camera.h> #include <pxr/usd/usdGeom/mesh.h> #include <pxr/usd/usdGeom/points.h> #include <pxr/usd/usdGeom/pointInstancer.h> #include <pxr/usd/usdGeom/primvarsAPI.h> #include <pxr/usd/usdSkel/root.h> #include <pxr/usd/usdSkel/skeleton.h> #include <pxr/usd/usdSkel/skeletonQuery.h> #include <pxr/usd/usdSkel/cache.h> #include <pxr/usd/usdSkel/animation.h> #include <pxr/usd/usdSkel/blendShape.h> #include <pxr/usd/usdShade/material.h> #include <pxr/usd/usdShade/shader.h> #include <pxr/usd/usdShade/materialBindingAPI.h> #pragma warning(pop) PXR_NAMESPACE_USING_DIRECTIVE;
[ "saint.skr@gmail.com" ]
saint.skr@gmail.com