blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2 values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25 values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 159 values | src_encoding stringclasses 34 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 7 10.5M | extension stringclasses 111 values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d033b77e1dc36c004d1bd54e31c3be1cfb7c7a0a | 8eee7fabf422d066aba6ab31faf442648c3b5c77 | /libelemate/particles/particlegroup.cpp | 2886ce5df19671efe0529ccac915db021ef76944 | [] | no_license | lanice/elemate | dfa43a8b75873e98d524a3df83cb2c1211a5a549 | 8782b84f22fe3684da4e0ab8da6ed7c2e4f2b304 | refs/heads/master | 2016-09-05T21:52:31.809402 | 2014-03-24T23:13:04 | 2014-03-24T23:17:43 | 13,799,815 | 2 | 0 | null | 2014-03-23T18:53:33 | 2013-10-23T10:21:25 | C++ | UTF-8 | C++ | false | false | 16,483 | cpp | particlegroup.cpp | #include "particlegroup.h"
#include <cassert>
#include <functional>
#include <type_traits>
#include <fstream>
#include <glow/logging.h>
#include <PxPhysics.h>
#include <PxScene.h>
#include <PxSceneLock.h>
#include "rendering/particledrawable.h"
#include "io/soundmanager.h"
#include "world.h"
using namespace physx;
ParticleGroup::ParticleGroup(
const std::string & elementName,
const unsigned int id,
const bool enableGpuParticles,
const bool isDown,
const PxU32 maxParticleCount,
const ImmutableParticleProperties & immutableProperties,
const MutableParticleProperties & mutableProperties
)
: m_particleSystem(nullptr)
, m_id(id)
, m_scene(nullptr)
, m_elementName(elementName)
, m_temperature(0.0f)
, isDown(isDown)
, m_particleDrawable(std::make_shared<ParticleDrawable>(elementName, maxParticleCount, isDown))
, m_maxParticleCount(maxParticleCount)
, m_numParticles(0)
, m_indices(new PxU32[maxParticleCount]())
, m_nextFreeIndex(0)
, m_lastFreeIndex(maxParticleCount-1)
, m_gpuParticles(enableGpuParticles)
{
static_assert(sizeof(glm::vec3) == sizeof(physx::PxVec3), "size of physx vec3 does not match the size of glm::vec3.");
initialize(immutableProperties, mutableProperties);
}
ParticleGroup::~ParticleGroup()
{
if (m_hasSound) {
stopSound();
SoundManager::instance()->deleteChannel(m_soundChannel);
}
PxSceneWriteLock scopedLock(* m_scene);
m_particleSystem->releaseParticles();
m_scene->removeActor(*m_particleSystem);
m_particleSystem = nullptr;
delete m_indices;
}
ParticleGroup::ParticleGroup(const ParticleGroup & lhs, unsigned int id)
: m_particleSystem(nullptr)
, m_id(id)
, m_scene(nullptr)
, m_elementName(lhs.m_elementName)
, m_temperature(lhs.m_temperature)
, isDown(true)
, m_particleDrawable(std::make_shared<ParticleDrawable>(lhs.m_elementName, lhs.m_maxParticleCount, isDown))
, m_maxParticleCount(lhs.m_maxParticleCount)
, m_numParticles(0)
, m_indices(new PxU32[lhs.m_maxParticleCount]())
, m_nextFreeIndex(0)
, m_lastFreeIndex(lhs.m_maxParticleCount - 1)
, m_gpuParticles(lhs.m_gpuParticles)
{
initialize(lhs.m_immutableProperties, lhs.m_mutableProperties);
}
void ParticleGroup::initialize(const ImmutableParticleProperties & immutableProperties, const MutableParticleProperties & mutableProperties)
{
std::string soundFileName = "data/sounds/elements/" + m_elementName + ".wav";
std::ifstream soundFile(soundFileName);
m_hasSound = soundFile.good();
if (m_hasSound) {
m_soundChannel = SoundManager::instance()->createNewChannel(soundFileName, true, true, true);
SoundManager::instance()->setVolume(m_soundChannel, 0.15f);
}
for (PxU32 i = 0; i < m_maxParticleCount; ++i) m_indices[i] = i;
assert(PxGetPhysics().getNbScenes() == 1);
PxScene * pxScenePtrs[1];
PxGetPhysics().getScenes(pxScenePtrs, 1);
m_scene = pxScenePtrs[0];
PxSceneWriteLock scopedLock(*m_scene);
m_particleSystem = PxGetPhysics().createParticleFluid(m_maxParticleCount, false);
assert(m_particleSystem);
m_particleSystem->setParticleBaseFlag(physx::PxParticleBaseFlag::eGPU, m_gpuParticles);
m_particleSystem->setParticleReadDataFlag(PxParticleReadDataFlag::eVELOCITY_BUFFER, true);
m_scene->addActor(*m_particleSystem);
setImmutableProperties(immutableProperties);
setMutableProperties(mutableProperties);
}
const std::string & ParticleGroup::elementName() const
{
return m_elementName;
}
uint32_t ParticleGroup::numParticles() const
{
return m_numParticles;
}
const glowutils::AxisAlignedBoundingBox & ParticleGroup::boundingBox() const
{
return m_particleDrawable->boundingBox();
}
float ParticleGroup::temperature() const
{
return m_temperature;
}
void ParticleGroup::setTemperature(float temperature)
{
m_temperature = temperature;
}
float ParticleGroup::particleSize() const
{
return m_particleSize;
}
void ParticleGroup::setParticleSize(float size)
{
m_particleSize = size;
m_particleSystem->setRestParticleDistance(size);
m_particleDrawable->setParticleSize(size);
}
physx::PxParticleFluid * ParticleGroup::particleSystem()
{
return m_particleSystem;
}
void ParticleGroup::createParticles(const std::vector<glm::vec3> & pos, const std::vector<glm::vec3> * vel)
{
if (m_elementName == "steam") {
World::instance()->changeAirHumidity(static_cast<int>(pos.size()));
}
PxU32 numParticles = static_cast<PxU32>(pos.size());
PxU32 * indices = new PxU32[numParticles];
if (vel) {
assert(vel->size() == numParticles);
}
glowutils::AxisAlignedBoundingBox & bbox = m_particleDrawable->m_bbox;
for (PxU32 i = 0; i < numParticles; ++i)
{
bbox.extend(pos.at(i));
if (m_freeIndices.size() > 0)
{
indices[i] = m_freeIndices.back();
m_freeIndices.pop_back();
} else {
indices[i] = m_nextFreeIndex;
if (m_nextFreeIndex == m_lastFreeIndex) releaseOldParticles(numParticles);
if (++m_nextFreeIndex == m_maxParticleCount) m_nextFreeIndex = 0;
}
}
PxParticleCreationData particleCreationData;
particleCreationData.numParticles = numParticles;
particleCreationData.indexBuffer = PxStrideIterator<const PxU32>(indices);
particleCreationData.positionBuffer = PxStrideIterator<const PxVec3>(reinterpret_cast<const PxVec3*>(pos.data()));
if (vel)
particleCreationData.velocityBuffer = PxStrideIterator<const PxVec3>(reinterpret_cast<const PxVec3*>(vel->data()), 0);
bool success = m_particleSystem->createParticles(particleCreationData);
m_numParticles += numParticles;
if (!success)
glow::warning("ParticleGroup::createParticles creation of %; physx particles failed", numParticles);
delete[] indices;
}
void ParticleGroup::releaseOldParticles(const uint32_t numParticles)
{
std::vector<uint32_t> indices;
for (uint32_t i = 0; i < numParticles; ++i)
{
if (++m_lastFreeIndex == m_maxParticleCount)
m_lastFreeIndex = 0;
indices.push_back(m_lastFreeIndex);
}
PxStrideIterator<const PxU32> indexBuffer(indices.data());
m_particleSystem->releaseParticles(numParticles, indexBuffer);
m_numParticles -= numParticles;
}
void ParticleGroup::releaseParticles(const std::vector<uint32_t> & indices)
{
PxU32 numParticles = static_cast<PxU32>(indices.size());
for (PxU32 i = 0; i < numParticles; ++i)
{
m_freeIndices.push_back(indices.at(i));
}
PxStrideIterator<const PxU32> indexBuffer(indices.data());
m_particleSystem->releaseParticles(numParticles, indexBuffer);
m_numParticles -= numParticles;
}
uint32_t ParticleGroup::releaseParticles(const glowutils::AxisAlignedBoundingBox & boundingBox)
{
std::vector<uint32_t> releaseIndices;
particleIndicesInVolume(boundingBox, releaseIndices);
releaseParticles(releaseIndices);
assert(releaseIndices.size() < std::numeric_limits<uint32_t>::max());
return static_cast<uint32_t>(releaseIndices.size());
}
void ParticleGroup::releaseParticlesGetPositions(const glowutils::AxisAlignedBoundingBox & boundingBox, std::vector<glm::vec3> & releasedPositions, glowutils::AxisAlignedBoundingBox & releasedBounds)
{
std::vector<uint32_t> releaseIndices;
PxParticleReadData * readData = m_particleSystem->lockParticleReadData();
assert(readData);
PxStrideIterator<const PxVec3> pxPositionIt = readData->positionBuffer;
PxStrideIterator<const PxParticleFlags> pxFlagIt = readData->flagsBuffer;
for (unsigned i = 0; i < readData->validParticleRange; ++i, ++pxPositionIt, ++pxFlagIt) {
assert(pxPositionIt.ptr());
if (!(*pxFlagIt & PxParticleFlag::eVALID))
continue;
const glm::vec3 & pos = reinterpret_cast<const glm::vec3&>(*pxPositionIt.ptr());
if (!boundingBox.inside(pos))
continue;
releasedPositions.push_back(pos);
releaseIndices.push_back(i);
releasedBounds.extend(pos);
}
readData->unlock();
releaseParticles(releaseIndices);
}
void ParticleGroup::createParticle(const glm::vec3 & position, const glm::vec3 & velocity)
{
std::vector<glm::vec3> vel({ velocity });
createParticles({ position }, &vel);
}
void ParticleGroup::setImmutableProperties(const ImmutableParticleProperties & properties)
{
setImmutableProperties(properties.maxMotionDistance, properties.gridSize, properties.restOffset, properties.contactOffset, properties.restParticleDistance);
}
void ParticleGroup::setMutableProperties(const MutableParticleProperties & properties)
{
setMutableProperties(properties.restitution, properties.dynamicFriction, properties.staticFriction, properties.damping, properties.externalAcceleration, properties.particleMass, properties.viscosity, properties.stiffness);
}
void ParticleGroup::setImmutableProperties(const physx::PxReal maxMotionDistance, const physx::PxReal gridSize, const physx::PxReal restOffset, const physx::PxReal contactOffset, const physx::PxReal restParticleDistance)
{
assert(m_particleSystem);
assert(m_scene);
m_immutableProperties.maxMotionDistance = maxMotionDistance;
m_immutableProperties.gridSize = gridSize;
m_immutableProperties.restOffset = restOffset;
m_immutableProperties.contactOffset = contactOffset;
m_immutableProperties.restParticleDistance = restParticleDistance;
PxSceneWriteLock scopedLock(* m_scene);
m_scene->removeActor(*m_particleSystem);
m_particleSystem->setMaxMotionDistance(maxMotionDistance);
m_particleSystem->setGridSize(gridSize);
m_particleSystem->setRestOffset(restOffset);
m_particleSystem->setContactOffset(contactOffset);
m_particleSystem->setRestParticleDistance(restParticleDistance);
setParticleSize(restParticleDistance);
m_scene->addActor(*m_particleSystem);
}
void ParticleGroup::setMutableProperties(const physx::PxReal restitution, const physx::PxReal dynamicFriction, const physx::PxReal staticFriction, const physx::PxReal damping, const glm::vec3 &externalAcceleration, const physx::PxReal particleMass, const physx::PxReal viscosity, const physx::PxReal stiffness)
{
m_mutableProperties.restitution = restitution;
m_mutableProperties.dynamicFriction = dynamicFriction;
m_mutableProperties.staticFriction = staticFriction;
m_mutableProperties.damping = damping;
m_mutableProperties.externalAcceleration = externalAcceleration;
m_mutableProperties.particleMass = particleMass;
m_mutableProperties.viscosity = viscosity;
m_mutableProperties.stiffness = stiffness;
m_particleSystem->setRestitution(restitution);
m_particleSystem->setDynamicFriction(dynamicFriction);
m_particleSystem->setStaticFriction(staticFriction);
m_particleSystem->setDamping(damping);
m_particleSystem->setExternalAcceleration(reinterpret_cast<const physx::PxVec3&>(externalAcceleration));
m_particleSystem->setParticleMass(particleMass);
m_particleSystem->setViscosity(viscosity);
m_particleSystem->setStiffness(stiffness);
}
void ParticleGroup::setUseGpuParticles(const bool enable)
{
if (m_gpuParticles == enable) return;
m_gpuParticles = enable;
assert(m_particleSystem);
assert(m_scene);
m_scene->removeActor(*m_particleSystem);
m_particleSystem->setParticleBaseFlag(physx::PxParticleBaseFlag::eGPU, m_gpuParticles);
m_scene->addActor(*m_particleSystem);
}
bool ParticleGroup::useGpuParticles() const
{
return m_gpuParticles;
}
void ParticleGroup::updatePhysics(double /*delta*/)
{
if (m_numParticles == 0) {
stopSound();
}
else {
startSound();
}
}
void ParticleGroup::updateVisuals()
{
if (m_hasSound && m_numParticles > 0)
SoundManager::instance()->setSoundPosition(m_soundChannel, m_particleDrawable->boundingBox().center());
}
void ParticleGroup::moveParticlesTo(ParticleGroup & other)
{
std::vector<glm::vec3> positions;
std::vector<glm::vec3> velocities;
PxParticleReadData * readData = m_particleSystem->lockParticleReadData();
assert(readData);
PxStrideIterator<const PxVec3> pxPositionIt = readData->positionBuffer;
PxStrideIterator<const PxParticleFlags> pxFlagIt = readData->flagsBuffer;
PxStrideIterator<const PxVec3> pxVelocityIt = readData->velocityBuffer;
for (unsigned i = 0; i < readData->validParticleRange; ++i, ++pxPositionIt, ++pxFlagIt, ++pxVelocityIt) {
assert(pxPositionIt.ptr());
if (!(*pxFlagIt & PxParticleFlag::eVALID))
continue;
const glm::vec3 & pos = reinterpret_cast<const glm::vec3&>(*pxPositionIt.ptr());
const glm::vec3 & vel = reinterpret_cast<const glm::vec3&>(*pxVelocityIt.ptr());
positions.push_back(pos);
velocities.push_back(vel);
}
readData->unlock();
other.createParticles(positions, &velocities);
other.setTemperature((m_temperature * m_numParticles + other.m_temperature * other.m_numParticles) / (m_numParticles + other.m_numParticles));
}
void ParticleGroup::particlesInVolume(const glowutils::AxisAlignedBoundingBox & boundingBox, std::vector<glm::vec3> & particles, glowutils::AxisAlignedBoundingBox & subbox) const
{
PxParticleReadData * readData = m_particleSystem->lockParticleReadData();
assert(readData);
PxStrideIterator<const PxVec3> pxPositionIt = readData->positionBuffer;
PxStrideIterator<const PxParticleFlags> pxFlagIt = readData->flagsBuffer;
subbox = glowutils::AxisAlignedBoundingBox();
for (unsigned i = 0; i < readData->validParticleRange; ++i, ++pxPositionIt, ++pxFlagIt) {
assert(pxPositionIt.ptr());
if (!(*pxFlagIt & PxParticleFlag::eVALID))
continue;
const glm::vec3 & pos = reinterpret_cast<const glm::vec3&>(*pxPositionIt.ptr());
if (!boundingBox.inside(pos))
continue;
particles.push_back(pos);
subbox.extend(pos);
}
readData->unlock();
}
void ParticleGroup::particleIndicesInVolume(const glowutils::AxisAlignedBoundingBox & boundingBox, std::vector<uint32_t> & particleIndices) const
{
PxParticleReadData * readData = m_particleSystem->lockParticleReadData();
assert(readData);
PxStrideIterator<const PxVec3> pxPositionIt = readData->positionBuffer;
PxStrideIterator<const PxParticleFlags> pxFlagIt = readData->flagsBuffer;
for (unsigned i = 0; i < readData->validParticleRange; ++i, ++pxPositionIt, ++pxFlagIt) {
assert(pxPositionIt.ptr());
if (!(*pxFlagIt & PxParticleFlag::eVALID))
continue;
const glm::vec3 & pos = reinterpret_cast<const glm::vec3&>(*pxPositionIt.ptr());
if (!boundingBox.inside(pos))
continue;
particleIndices.push_back(i);
}
readData->unlock();
}
void ParticleGroup::particlePositionsIndicesVelocitiesInVolume(const glowutils::AxisAlignedBoundingBox & boundingBox, std::vector<glm::vec3> & positions, std::vector<uint32_t> & particleIndices, std::vector<glm::vec3> & velocities) const
{
PxParticleReadData * readData = m_particleSystem->lockParticleReadData();
assert(readData);
PxStrideIterator<const PxVec3> pxPositionIt = readData->positionBuffer;
PxStrideIterator<const PxParticleFlags> pxFlagIt = readData->flagsBuffer;
PxStrideIterator<const PxVec3> pxVelocityIt = readData->velocityBuffer;
for (unsigned i = 0; i < readData->validParticleRange; ++i, ++pxPositionIt, ++pxFlagIt, ++pxVelocityIt) {
assert(pxPositionIt.ptr());
if (!(*pxFlagIt & PxParticleFlag::eVALID))
continue;
const glm::vec3 & pos = reinterpret_cast<const glm::vec3&>(*pxPositionIt.ptr());
if (!boundingBox.inside(pos))
continue;
const glm::vec3 & vel = reinterpret_cast<const glm::vec3&>(*pxVelocityIt.ptr());
positions.push_back(pos);
particleIndices.push_back(i);
velocities.push_back(vel);
}
readData->unlock();
}
void ParticleGroup::updateSounds(bool isWorldPaused)
{
if (!m_hasSound)
return;
SoundManager::instance()->setMute(m_soundChannel, isWorldPaused);
}
void ParticleGroup::startSound()
{
if (!m_hasSound)
return;
SoundManager::instance()->setPaused(m_soundChannel, false);
}
void ParticleGroup::stopSound()
{
if (!m_hasSound)
return;
SoundManager::instance()->setPaused(m_soundChannel, true);
}
|
94413290d249363c417336accc44546b0abcec63 | 3c364f1e3d0af0b650b96b1ac80aedd74940d3fb | /branches/playground/jabber_filetransfer/jabber/jabberhomeinfo.cpp | 261e773a9df54f543e53d94596d7dfcf5d318e11 | [] | no_license | dhyannataraj/sim-im | aa8e938766f6304d9f71be883f0ef4e10a7c8c65 | 6b0d058cd5ab06ba72a34f09d44b3f0598960572 | refs/heads/master | 2021-04-03T04:26:23.903185 | 2011-10-10T15:58:45 | 2011-10-10T15:58:45 | 124,702,761 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,415 | cpp | jabberhomeinfo.cpp | /***************************************************************************
jabberhomeinfo.cpp - description
-------------------
begin : Sun Mar 17 2002
copyright : (C) 2002 by Vladimir Shutoff
email : vovan@shutoff.ru
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
#include "jabberclient.h"
#include "jabberhomeinfo.h"
#include "jabber.h"
#include <qlineedit.h>
#include <qmultilineedit.h>
#include <qstringlist.h>
using namespace SIM;
JabberHomeInfo::JabberHomeInfo(QWidget *parent, JabberUserData *data, JabberClient *client)
: JabberHomeInfoBase(parent)
{
m_client = client;
m_data = data;
if (m_data){
edtStreet->setReadOnly(true);
edtExt->setReadOnly(true);
edtCity->setReadOnly(true);
edtState->setReadOnly(true);
edtZip->setReadOnly(true);
edtCountry->setReadOnly(true);
}
fill(m_data);
}
void JabberHomeInfo::apply()
{
}
bool JabberHomeInfo::processEvent(Event *e)
{
if (e->type() == eEventContact){
EventContact *ec = static_cast<EventContact*>(e);
if(ec->action() != EventContact::eChanged)
return false;
Contact *contact = ec->contact();
if (contact->clientData.have(m_data))
fill(m_data);
} else
if ((e->type() == eEventClientChanged) && (m_data == 0)){
EventClientChanged *ecc = static_cast<EventClientChanged*>(e);
if (ecc->client() == m_client)
fill(m_data);
} else
if (m_data && (e->type() == eEventVCard)){
EventVCard *evc = static_cast<EventVCard*>(e);
JabberUserData *data = evc->data();
if (m_data->ID.str() == data->ID.str() && m_data->Node.str() == data->Node.str())
fill(data);
}
return false;
}
void JabberHomeInfo::fill(JabberUserData *data)
{
if (data == NULL) data = &m_client->data.owner;
edtStreet->setText(data->Street.str());
edtExt->setText(data->ExtAddr.str());
edtCity->setText(data->City.str());
edtState->setText(data->Region.str());
edtZip->setText(data->PCode.str());
edtCountry->setText(data->Country.str());
}
void JabberHomeInfo::apply(Client *client, void *_data)
{
if (client != m_client)
return;
JabberUserData *data = m_client->toJabberUserData((SIM::clientData*)_data); // FIXME unsafe type conversion
data->Street.str() = edtStreet->text();
data->ExtAddr.str() = edtExt->text();
data->City.str() = edtCity->text();
data->Region.str() = edtState->text();
data->PCode.str() = edtZip->text();
data->Country.str() = edtCountry->text();
}
#ifndef NO_MOC_INCLUDES
#include "jabberhomeinfo.moc"
#endif
|
14a44c6a643ab99322125aa8ade64b7408f82aba | fa7474550cac23f55205666e13a99e59c749db97 | /cryptohome/mock_platform.cc | 0ad9674c0e2fd5e6b45b25d760c67863addf05c0 | [
"BSD-3-Clause"
] | permissive | kalyankondapally/chromiumos-platform2 | 4fe8bac63a95a07ac8afa45088152c2b623b963d | 5e5337009a65b1c9aa9e0ea565f567438217e91f | refs/heads/master | 2023-01-05T15:25:41.667733 | 2020-11-08T06:12:01 | 2020-11-08T07:16:44 | 295,388,294 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,749 | cc | mock_platform.cc | // Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cryptohome/mock_platform.h"
#include "cryptohome/fake_platform.h"
using testing::_;
using testing::Invoke;
using testing::NiceMock;
using testing::Return;
namespace cryptohome {
MockPlatform::MockPlatform()
: mock_process_(new NiceMock<brillo::ProcessMock>()),
fake_platform_(new FakePlatform()) {
ON_CALL(*this, GetUserId(_, _, _))
.WillByDefault(Invoke(fake_platform_.get(), &FakePlatform::GetUserId));
ON_CALL(*this, GetGroupId(_, _))
.WillByDefault(Invoke(fake_platform_.get(), &FakePlatform::GetGroupId));
ON_CALL(*this, Rename(_, _))
.WillByDefault(Invoke(fake_platform_.get(), &FakePlatform::Rename));
ON_CALL(*this, Move(_, _))
.WillByDefault(Invoke(fake_platform_.get(), &FakePlatform::Move));
ON_CALL(*this, Copy(_, _))
.WillByDefault(Invoke(fake_platform_.get(), &FakePlatform::Copy));
ON_CALL(*this, DeleteFile(_, _))
.WillByDefault(Invoke(fake_platform_.get(), &FakePlatform::DeleteFile));
ON_CALL(*this, DeleteFileDurable(_, _))
.WillByDefault(
Invoke(fake_platform_.get(), &FakePlatform::DeleteFileDurable));
ON_CALL(*this, EnumerateDirectoryEntries(_, _, _))
.WillByDefault(Invoke(fake_platform_.get(),
&FakePlatform::EnumerateDirectoryEntries));
ON_CALL(*this, GetFileEnumerator(_, _, _))
.WillByDefault(
Invoke(fake_platform_.get(), &FakePlatform::GetFileEnumerator));
ON_CALL(*this, FileExists(_))
.WillByDefault(Invoke(fake_platform_.get(), &FakePlatform::FileExists));
ON_CALL(*this, DirectoryExists(_))
.WillByDefault(
Invoke(fake_platform_.get(), &FakePlatform::DirectoryExists));
ON_CALL(*this, CreateDirectory(_))
.WillByDefault(
Invoke(fake_platform_.get(), &FakePlatform::CreateDirectory));
ON_CALL(*this, ReadFile(_, _))
.WillByDefault(Invoke(fake_platform_.get(), &FakePlatform::ReadFile));
ON_CALL(*this, ReadFileToString(_, _))
.WillByDefault(
Invoke(fake_platform_.get(), &FakePlatform::ReadFileToString));
ON_CALL(*this, ReadFileToSecureBlob(_, _))
.WillByDefault(
Invoke(fake_platform_.get(), &FakePlatform::ReadFileToSecureBlob));
ON_CALL(*this, WriteFile(_, _))
.WillByDefault(Invoke(fake_platform_.get(), &FakePlatform::WriteFile));
ON_CALL(*this, WriteSecureBlobToFile(_, _))
.WillByDefault(
Invoke(fake_platform_.get(), &FakePlatform::WriteSecureBlobToFile));
ON_CALL(*this, WriteFileAtomic(_, _, _))
.WillByDefault(
Invoke(fake_platform_.get(), &FakePlatform::WriteFileAtomic));
ON_CALL(*this, WriteSecureBlobToFileAtomic(_, _, _))
.WillByDefault(Invoke(fake_platform_.get(),
&FakePlatform::WriteSecureBlobToFileAtomic));
ON_CALL(*this, WriteFileAtomicDurable(_, _, _))
.WillByDefault(
Invoke(fake_platform_.get(), &FakePlatform::WriteFileAtomicDurable));
ON_CALL(*this, WriteSecureBlobToFileAtomicDurable(_, _, _))
.WillByDefault(Invoke(fake_platform_.get(),
&FakePlatform::WriteSecureBlobToFileAtomicDurable));
ON_CALL(*this, WriteStringToFile(_, _))
.WillByDefault(
Invoke(fake_platform_.get(), &FakePlatform::WriteStringToFile));
ON_CALL(*this, WriteStringToFileAtomicDurable(_, _, _))
.WillByDefault(Invoke(fake_platform_.get(),
&FakePlatform::WriteStringToFileAtomicDurable));
ON_CALL(*this, WriteArrayToFile(_, _, _))
.WillByDefault(
Invoke(fake_platform_.get(), &FakePlatform::WriteArrayToFile));
ON_CALL(*this, OpenFile(_, _))
.WillByDefault(Invoke(fake_platform_.get(), &FakePlatform::OpenFile));
ON_CALL(*this, CloseFile(_))
.WillByDefault(Invoke(fake_platform_.get(), &FakePlatform::CloseFile));
ON_CALL(*this, GetFileSize(_, _))
.WillByDefault(Invoke(fake_platform_.get(), &FakePlatform::GetFileSize));
ON_CALL(*this, HasExtendedFileAttribute(_, _))
.WillByDefault(Invoke(fake_platform_.get(),
&FakePlatform::HasExtendedFileAttribute));
ON_CALL(*this, ListExtendedFileAttributes(_, _))
.WillByDefault(Invoke(fake_platform_.get(),
&FakePlatform::ListExtendedFileAttributes));
ON_CALL(*this, GetExtendedFileAttributeAsString(_, _, _))
.WillByDefault(Invoke(fake_platform_.get(),
&FakePlatform::GetExtendedFileAttributeAsString));
ON_CALL(*this, GetExtendedFileAttribute(_, _, _, _))
.WillByDefault(Invoke(fake_platform_.get(),
&FakePlatform::GetExtendedFileAttribute));
ON_CALL(*this, SetExtendedFileAttribute(_, _, _, _))
.WillByDefault(Invoke(fake_platform_.get(),
&FakePlatform::SetExtendedFileAttribute));
ON_CALL(*this, RemoveExtendedFileAttribute(_, _))
.WillByDefault(Invoke(fake_platform_.get(),
&FakePlatform::RemoveExtendedFileAttribute));
ON_CALL(*this, GetOwnership(_, _, _, _))
.WillByDefault(Invoke(fake_platform_.get(), &FakePlatform::GetOwnership));
ON_CALL(*this, SetOwnership(_, _, _, _))
.WillByDefault(Invoke(fake_platform_.get(), &FakePlatform::SetOwnership));
ON_CALL(*this, GetPermissions(_, _))
.WillByDefault(
Invoke(fake_platform_.get(), &FakePlatform::GetPermissions));
ON_CALL(*this, SetPermissions(_, _))
.WillByDefault(
Invoke(fake_platform_.get(), &FakePlatform::SetPermissions));
ON_CALL(*this, SetGroupAccessible(_, _, _)).WillByDefault(Return(true));
ON_CALL(*this, GetCurrentTime())
.WillByDefault(Return(base::Time::NowFromSystemTime()));
ON_CALL(*this, StatVFS(_, _)).WillByDefault(CallStatVFS());
ON_CALL(*this, ReportFilesystemDetails(_, _))
.WillByDefault(CallReportFilesystemDetails());
ON_CALL(*this, FindFilesystemDevice(_, _))
.WillByDefault(CallFindFilesystemDevice());
ON_CALL(*this, ComputeDirectoryDiskUsage(_))
.WillByDefault(CallComputeDirectoryDiskUsage());
ON_CALL(*this, SetupProcessKeyring()).WillByDefault(Return(true));
ON_CALL(*this, GetDirCryptoKeyState(_))
.WillByDefault(Return(dircrypto::KeyState::NO_KEY));
ON_CALL(*this, CreateProcessInstance())
.WillByDefault(Invoke(this, &MockPlatform::MockCreateProcessInstance));
ON_CALL(*this, AreDirectoriesMounted(_))
.WillByDefault([](const std::vector<base::FilePath>& directories) {
return std::vector<bool>(directories.size(), false);
});
}
MockPlatform::~MockPlatform() {}
} // namespace cryptohome
|
7f59664138d48d67787751885e73c1e21d16ea01 | b73fb13c3d618200a73860adfc5f06b3e6f4ab4a | /SS_fullsrc/MethodContainer.cpp | 73aa15ab914b49426c281ea2dc605fe455c243db | [] | no_license | Maximilian762/simplescript | b052b952e2103634ff2bf48d33f6ca3c41537dc0 | e0022fa5275134d8e9d81eb2a90fda7acdf5cef0 | refs/heads/master | 2021-07-18T02:06:58.077046 | 2017-10-26T17:08:45 | 2017-10-26T17:08:45 | 107,706,536 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 930 | cpp | MethodContainer.cpp | #include "stdafx.h"
#include "MethodContainer.h"
MethodContainer::MethodContainer()
{
}
MethodContainer::~MethodContainer()
{
}
bool MethodContainer::HasMethod(std::string name)
{
return methods.find(name) != methods.end();
}
void MethodContainer::AddMethod(std::string name, SharedFunction meth)
{
methods[name] = meth;
}
SharedFunction MethodContainer::GetMethod(std::string name)
{
auto found = methods.find(name);
if (found != methods.end()) return found->second;
else return nullptr;
}
std::string MethodContainer::ToString()
{
std::string info = "methods:";
for (auto it = methods.begin(); it != methods.end(); it++)
{
info += "\n";
info += it->second->ToString();
}
return info;
}
void MethodContainer::Append(MethodContainer & other)
{
for (auto it = other.methods.begin(); it != other.methods.end(); ++it)
{
methods[it->first] = it->second;
}
}
|
51dc6e62696d846567d64e28f78289afbbc238b0 | 14fd1e0fef43aca042eb02940812a371025b4b99 | /作业/stack/stack.h | c1103e754ef7e89c790e66fafee55eeab2be6f6e | [] | no_license | chenjiabing666/data-structure | b8da83c9e7f32370f6d7f8e92c6594eca7659b80 | d65b4566b7ff159f614beda9a4c0331c35a300e1 | refs/heads/master | 2020-07-03T05:13:25.628395 | 2016-11-21T03:00:48 | 2016-11-21T03:00:48 | 74,195,245 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 183 | h | stack.h | class stack
{
private:
int maxsize;
int top;
double *listArray;
public:
stack(int size);
void Convert(double node);
void push(double node);
double pop();
};
|
7369609e7dea754ec21ade6d81fce32afc9c61d5 | f86a8fc715b8354e50314122a2a1a1b33cf351a1 | /src/Core/LargeVolume/LargeVolumeSchema.cc | aa90693149a02127dc120a0ba89f296bd8b62f91 | [
"MIT"
] | permissive | SCIInstitute/Seg3D | 579e2a61ee8189a8c8f8249e9a680d3231c0ff3a | 84ba5fd7672ca7d08f9f60a95ef4b68f0c81a090 | refs/heads/master | 2023-04-21T05:21:08.795420 | 2023-04-07T17:32:36 | 2023-04-07T17:32:36 | 32,550,368 | 103 | 51 | null | 2023-04-07T17:32:38 | 2015-03-19T22:49:29 | C++ | UTF-8 | C++ | false | false | 53,209 | cc | LargeVolumeSchema.cc | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2016 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
#include <zlib.h>
#include <limits>
#include <fstream>
#include <set>
#include <queue>
// test
#include <iostream>
// test
#include <Core/Utils/FilesystemUtil.h>
#include <Core/Utils/StringUtil.h>
#include <Core/Math/MathFunctions.h>
#include <Core/DataBlock/StdDataBlock.h>
#include <Core/LargeVolume/LargeVolumeSchema.h>
#include <Core/LargeVolume/LargeVolumeCache.h>
namespace bfs=boost::filesystem;
namespace Core
{
#ifdef Z_PREFIX
#define zlib_uLongf z_uLongf
#define zlib_Bytef z_Bytef
#define zlib_uncompress z_uncompress
#define zlib_compress2 z_compress2
#else
#define zlib_uLongf uLongf
#define zlib_Bytef Bytef
#define zlib_uncompress uncompress
#define zlib_compress2 compress2
#endif
class LargeVolumeSchemaPrivate {
public:
// -- types --
typedef LargeVolumeSchema::index_type index_type;
// -- constructor --
public:
LargeVolumeSchemaPrivate() :
brick_size_( 256, 256, 256 ),
effective_brick_size_( 256, 256, 256 ),
overlap_(0),
data_type_(DataType::UNKNOWN_E),
compression_(false),
little_endian_(DataBlock::IsLittleEndian()),
downsample_x_( true ),
downsample_y_( true ),
downsample_z_( true ),
min_( 0.0 ),
max_( 0.0 )
{
}
IndexVector compute_brick_layout( const IndexVector& size ) const
{
const IndexVector& effective_brick_size = this->effective_brick_size_;
return IndexVector( Ceil( size.xd() / effective_brick_size.x() ),
Ceil( size.yd() / effective_brick_size.y() ), Ceil( size.zd() / effective_brick_size.z() ) );
}
IndexVector compute_level_size( index_type level ) const
{
const IndexVector& size = this->size_;
const IndexVector& ratio = this->levels_[ level ];
return IndexVector( Ceil( size.xd() / ratio.x() ) , Ceil( size.yd() / ratio.y() ), Ceil( size.zd() / ratio.z() ) );
}
Vector compute_level_spacing( index_type level ) const
{
const Vector& spacing = this->spacing_;
const IndexVector& ratio = this->levels_[ level ];
return Vector( spacing.x() * ratio.x(), spacing.y() * ratio.y(), spacing.z() * ratio.z() );
}
IndexVector compute_brick_index_vector( const IndexVector& layout, index_type brick_index )
{
const index_type nxy = layout.x() * layout.y();
const index_type z = brick_index / nxy;
const index_type y = (brick_index - z * nxy ) / layout.x();
const index_type x = (brick_index - z * nxy - y * layout.x() );
return IndexVector( x, y, z );
}
size_t compute_level_num_bricks( index_type level ) const
{
const IndexVector& size = this->compute_level_size( level );
const IndexVector& effective_brick_size = this->effective_brick_size_;
return Ceil( size.xd() / effective_brick_size.x() ) * Ceil( size.yd() / effective_brick_size.y() ) * Ceil( size.zd() / effective_brick_size.z() );
}
IndexVector compute_remainder_brick( const BrickInfo& bi,
const IndexVector& index )
{
const IndexVector& layout = this->level_layout_[ bi.level_ ];
const IndexVector& size = this->level_size_[ bi.level_ ];
const size_t overlap = this->overlap_;
IndexVector remainder_brick_size = this->brick_size_;
if ( index.x() == layout.x() - 1 ) remainder_brick_size.x( size.x() - ( this->effective_brick_size_.x() * index.x()) + 2 * overlap );
if ( index.y() == layout.y() - 1 ) remainder_brick_size.y( size.y() - ( this->effective_brick_size_.y() * index.y()) + 2 * overlap );
if ( index.z() == layout.z() - 1 ) remainder_brick_size.z( size.z() - ( this->effective_brick_size_.z() * index.z()) + 2 * overlap );
return remainder_brick_size;
}
bfs::path get_brick_file_name( BrickInfo bi )
{
// 65 = A in ASCII char table
std::string filename = std::string() + static_cast<char>( 65 + static_cast<int>( bi.level_ ) ) +
ExportToString( bi.index_ ) + ".raw";
return this->dir_ / filename;
}
void compute_cached_level_info()
{
this->level_spacing_.clear();
this->level_size_.clear();
this->level_layout_.clear();
for ( size_t j = 0; j < this->levels_.size(); j++ )
{
this->level_spacing_.push_back( this->compute_level_spacing( j ) );
this->level_size_.push_back( this->compute_level_size( j ) );
this->level_layout_.push_back( this->compute_brick_layout( this->level_size_[ j ] ) );
}
}
template<class T>
bool insert_brick_internals( DataBlockHandle volume, DataBlockHandle brick,
const IndexVector& offset,
const IndexVector& clip_start,
const IndexVector& clip_end );
template<class T>
bool insert_brick_internals( DataBlockHandle volume, DataBlockHandle brick,
const IndexVector& offset);
bool insert_brick( DataBlockHandle volume, DataBlockHandle brick,
const IndexVector& offset,
const IndexVector& clip_start,
const IndexVector& clip_end );
void load_and_substitue_missing_bricks( std::vector<BrickInfo>& want_to_render, SliceType slice,
double depth, const std::string& load_key, std::vector<BrickInfo>& current_render );
// -- contents in the text header --
public:
IndexVector size_;
Point origin_;
Vector spacing_;
IndexVector brick_size_;
IndexVector effective_brick_size_;
size_t overlap_;
DataType data_type_;
bool compression_;
bool little_endian_;
bool downsample_x_;
bool downsample_y_;
bool downsample_z_;
std::vector< IndexVector > levels_;
std::vector< Vector > level_spacing_;
std::vector< IndexVector > level_size_;
std::vector< IndexVector > level_layout_;
double min_;
double max_;
bfs::path dir_;
LargeVolumeSchema* schema_;
};
template<class T>
bool LargeVolumeSchemaPrivate::insert_brick_internals( DataBlockHandle volume, DataBlockHandle brick,
const IndexVector& offset,
const IndexVector& clip_start,
const IndexVector& clip_end )
{
// TODO: too much repeated code
const IndexVector::index_type overlap = static_cast<IndexVector::index_type>( this->overlap_ );
const IndexVector::index_type bnx = static_cast<IndexVector::index_type>( brick->get_nx() );
const IndexVector::index_type bny = static_cast<IndexVector::index_type>( brick->get_ny() );
const IndexVector::index_type bnz = static_cast<IndexVector::index_type>( brick->get_nz() );
const IndexVector::index_type bnxy = bnx * bny;
const IndexVector::index_type bxstart = overlap + clip_start.x();
const IndexVector::index_type bystart = overlap + clip_start.y();
const IndexVector::index_type bzstart = overlap + clip_start.z();
const IndexVector::index_type bxend = overlap + clip_end.x();
const IndexVector::index_type byend = overlap + clip_end.y();
const IndexVector::index_type bzend = overlap + clip_end.z();
const IndexVector::index_type bxstride = ( bnx - ( bxend - bxstart ) );
const IndexVector::index_type bystride = ( bny - ( byend - bystart ) ) * bnx;
const IndexVector::index_type vnx = static_cast<IndexVector::index_type>( volume->get_nx() );
const IndexVector::index_type vny = static_cast<IndexVector::index_type>( volume->get_ny() );
const IndexVector::index_type vnz = static_cast<IndexVector::index_type>( volume->get_nz() );
const IndexVector::index_type vnxy = vnx * vny;
const IndexVector::index_type vxstride = vnx - ( bxend - bxstart );
const IndexVector::index_type vystride = ( vny - ( byend - bystart ) ) * vnx;
// same code from here to return
T* src = reinterpret_cast<T*>( brick->get_data() );
T* dst = reinterpret_cast<T*>( volume->get_data() );
src += bzstart * bnxy + bystart * bnx + bxstart;
dst += offset.z() * vnxy + offset.y() * vnx + offset.x();
for ( IndexVector::index_type z = bzstart; z < bzend; z++, src += bystride, dst += vystride )
{
for ( IndexVector::index_type y = bystart; y < byend; y++, src += bxstride, dst += vxstride )
{
for ( IndexVector::index_type x = bxstart; x < bxend; x++ , src++, dst++ )
{
*dst = *src;
}
}
}
return true;
}
template<class T>
bool LargeVolumeSchemaPrivate::insert_brick_internals( DataBlockHandle volume, DataBlockHandle brick,
const IndexVector& offset )
{
// TODO: too much repeated code
const IndexVector::index_type overlap = static_cast<IndexVector::index_type>( this->overlap_ );
const IndexVector::index_type bnx = static_cast<IndexVector::index_type>( brick->get_nx() );
const IndexVector::index_type bny = static_cast<IndexVector::index_type>( brick->get_ny() );
const IndexVector::index_type bnz = static_cast<IndexVector::index_type>( brick->get_nz() );
const IndexVector::index_type bnxy = bnx * bny;
const IndexVector::index_type bxstart = overlap;
const IndexVector::index_type bystart = overlap;
const IndexVector::index_type bzstart = overlap;
const IndexVector::index_type bxend = bnx - overlap;
const IndexVector::index_type byend = bny - overlap;
const IndexVector::index_type bzend = bnz - overlap;
const IndexVector::index_type bxstride = ( bnx - ( bxend - bxstart ) );
const IndexVector::index_type bystride = ( bny - ( byend - bystart ) ) * bnx;
const IndexVector::index_type vnx = static_cast<IndexVector::index_type>( volume->get_nx() );
const IndexVector::index_type vny = static_cast<IndexVector::index_type>( volume->get_ny() );
const IndexVector::index_type vnz = static_cast<IndexVector::index_type>( volume->get_nz() );
const IndexVector::index_type vnxy = vnx * vny;
const IndexVector::index_type vxstride = vnx - ( bnx - 2 * overlap );
const IndexVector::index_type vystride = ( vny - ( bny - 2 * overlap ) ) * vnx;
// same code from here to return
T* src = reinterpret_cast<T*>( brick->get_data() );
T* dst = reinterpret_cast<T*>( volume->get_data() );
src += bzstart * bnxy + bystart * bnx + bxstart;
dst += offset.z() * vnxy + offset.y() * vnx + offset.x();
for ( IndexVector::index_type z = bzstart; z < bzend; z++, src += bystride, dst += vystride )
{
for ( IndexVector::index_type y = bystart; y < byend; y++, src += bxstride, dst += vxstride )
{
for ( IndexVector::index_type x = bxstart; x < bxend; x++ , src++, dst++ )
{
*dst = *src;
}
}
}
return true;
}
LargeVolumeSchema::LargeVolumeSchema() :
private_(new LargeVolumeSchemaPrivate),
VOLUME_FILE_NAME_("volume.txt")
{
this->private_->schema_ = this;
}
bool LargeVolumeSchema::load( std::string& error)
{
bfs::path filename = this->private_->dir_ / VOLUME_FILE_NAME_;
// Check if file exists
if ( ! bfs::exists( filename ) )
{
error = "Could not open volume file '" + filename.string() + "'.";
return false;
}
try
{
std::ifstream file_text( filename.string().c_str() );
std::string line;
std::map<std::string,std::string> values;
// read text file
while( !file_text.eof() )
{
// Grab the next line
std::getline( file_text, line );
std::vector<std::string> key_value = SplitString( line, ":" );
if ( key_value.size() == 2 )
{
std::string val = key_value[1];
StripSurroundingSpaces( val );
values[key_value[0]] = val;
}
}
// Read fields
if (values.find("size") == values.end())
{
error = "Volume file does not contain a field called 'size'.";
return false;
}
if (! ImportFromString( values[ "size" ], this->private_->size_ ) )
{
error = "Could not read size field.";
return false;
}
if ( values.find( "origin" ) == values.end() )
{
error = "Volume file does not contain a field called 'origin'.";
return false;
}
if ( !ImportFromString( values[ "origin" ], this->private_->origin_ ) )
{
error = "Could not read origin field.";
return false;
}
if ( values.find( "spacing" ) == values.end() )
{
error = "Volume file does not contain a field called 'spacing'.";
return false;
}
if ( !ImportFromString( values["spacing" ], this->private_->spacing_ ) )
{
error = "Could not read spacing field.";
return false;
}
if ( values.find( "bricksize" ) == values.end() )
{
error = "Volume file does not contain a field called 'bricksize'.";
return false;
}
if (! ImportFromString( values[ "bricksize" ], this->private_->brick_size_ ) )
{
IndexVector::index_type single_brick_size;
if (! ImportFromString( values[ "bricksize" ], single_brick_size ) )
{
error = "Could not read bricksize field.";
return false;
}
this->private_->brick_size_ = IndexVector( single_brick_size, single_brick_size, single_brick_size );
}
if ( values.find( "overlap" ) == values.end() )
{
error = "Volume file does not contain a field called 'overlap'.";
return false;
}
if (! ImportFromString( values[ "overlap" ], this->private_->overlap_ ) )
{
error = "Could not read overlap field.";
return false;
}
this->private_->effective_brick_size_.x( this->private_->brick_size_.x() - 2 * this->private_->overlap_ );
this->private_->effective_brick_size_.y( this->private_->brick_size_.y() - 2 * this->private_->overlap_ );
this->private_->effective_brick_size_.z( this->private_->brick_size_.z() - 2 * this->private_->overlap_ );
if ( values.find( "datatype" ) == values.end() )
{
error = "Volume file does not contain a field called 'datatype'.";
return false;
}
if (! ImportFromString( values[ "datatype" ], this->private_->data_type_ ) )
{
error = "Could not read datatype field.";
return false;
}
if ( values.find( "endian" ) == values.end() )
{
error = "Volume file does not contain a field called 'endian'.";
return false;
}
if ( values[ "endian" ] == "little" )
{
this->private_->little_endian_ = true;
}
else
{
this->private_->little_endian_ = false;
}
if ( values.find( "min" ) == values.end() )
{
error = "Volume file does not contain a field called 'min'.";
return false;
}
if (! ImportFromString( values[ "min" ], this->private_->min_ ) )
{
error = "Could not read min field.";
return false;
}
if ( values.find( "max" ) == values.end() )
{
error = "Volume file does not contain a field called 'max'.";
return false;
}
if (! ImportFromString( values[ "max" ], this->private_->max_ ) )
{
error = "Could not read min field.";
return false;
}
size_t level = 0;
while ( values.find( "level" + ExportToString(level)) != values.end() )
{
std::string level_string = values[ "level" + ExportToString(level) ];
IndexVector ratios;
if (! ImportFromString( level_string, ratios ))
{
error = "Could not read level " + ExportToString( level );
return false;
}
this->private_->levels_.push_back( ratios );
level++;
}
this->private_->compute_cached_level_info();
}
catch (...)
{
error = "Could not read volume file '" + filename.string() + "'.";
return false;
}
return true;
}
bool LargeVolumeSchema::save( std::string& error ) const
{
if ( !CreateOrIgnoreDirectory( this->private_->dir_ ) )
{
error = "Could not create directory '" + this->private_->dir_.string() + "'.";
return false;
}
bfs::path filename = this->private_->dir_ / VOLUME_FILE_NAME_;
try {
std::ofstream text_file( filename.string().c_str() );
text_file << "size: " << ExportToString( this->private_->size_ ) << std::endl;
text_file << "origin: " << ExportToString( this->private_->origin_ ) << std::endl;
text_file << "spacing: " << ExportToString( this->private_->spacing_ ) << std::endl;
text_file << "overlap: " << ExportToString( this->private_->overlap_ ) << std::endl;
text_file << "bricksize: " << ExportToString( this->private_->brick_size_ ) << std::endl;
text_file << "datatype: " << ExportToString( this->private_->data_type_ ) << std::endl;
text_file << "endian: " << ( this->private_->little_endian_ ? "little" : "big" ) << std::endl;
text_file << "min: " << ExportToString( this->private_->min_ ) << std::endl;
text_file << "max: " << ExportToString( this->private_->max_ ) << std::endl;
for (size_t j = 0 ; j < this->private_->levels_.size(); j++ )
{
text_file << "level" << j << ": " << ExportToString( this->private_->levels_[j] ) << std::endl;
}
}
catch (...)
{
return false;
}
return true;
}
size_t LargeVolumeSchema::get_nx() const
{
return this->private_->size_[0];
}
size_t LargeVolumeSchema::get_ny() const
{
return this->private_->size_[1];
}
size_t LargeVolumeSchema::get_nz() const
{
return this->private_->size_[2];
}
const IndexVector& LargeVolumeSchema::get_size() const
{
return this->private_->size_;
}
const Point& LargeVolumeSchema::get_origin() const
{
return this->private_->origin_;
}
const Vector& LargeVolumeSchema::get_spacing() const
{
return this->private_->spacing_;
}
const IndexVector& LargeVolumeSchema::get_brick_size() const
{
return this->private_->brick_size_;
}
const IndexVector& LargeVolumeSchema::get_effective_brick_size() const
{
return this->private_->effective_brick_size_;
}
size_t LargeVolumeSchema::get_overlap() const
{
return this->private_->overlap_;
}
DataType LargeVolumeSchema::get_data_type() const
{
return this->private_->data_type_;
}
double LargeVolumeSchema::get_min() const
{
return this->private_->min_;
}
double LargeVolumeSchema::get_max() const
{
return this->private_->max_;
}
bfs::path LargeVolumeSchema::get_dir() const
{
return this->private_->dir_;
}
GridTransform LargeVolumeSchema::get_grid_transform() const
{
return GridTransform( this->private_->size_[ 0 ], this->private_->size_[ 1 ], this->private_->size_[ 2 ],
this->private_->origin_,
this->private_->spacing_[ 0 ] * GridTransform::X_AXIS,
this->private_->spacing_[ 1 ] * GridTransform::Y_AXIS,
this->private_->spacing_[ 2 ] * GridTransform::Z_AXIS );
}
GridTransform LargeVolumeSchema::get_brick_grid_transform( const BrickInfo& bi ) const
{
const IndexVector& layout = this->get_level_layout( bi.level_ );
const IndexVector& index = this->private_->compute_brick_index_vector( layout, bi.index_ );
const Vector spacing = this->get_level_spacing( bi.level_ );
const Point origin = this->get_origin();
const IndexVector& effective_brick_size = this->private_->effective_brick_size_;
const size_t overlap = this->private_->overlap_;
Vector offset = Vector( index.x() * effective_brick_size.x() * spacing.x(),
index.y() * effective_brick_size.y() * spacing.y(),
index.z() * effective_brick_size.z() * spacing.z() )
- spacing * static_cast<double>( overlap );
IndexVector bs = this->private_->compute_remainder_brick(bi, index);
return GridTransform( bs.x(), bs.y(), bs.z(),
origin + offset,
spacing.x() * GridTransform::X_AXIS,
spacing.y() * GridTransform::Y_AXIS,
spacing.z() * GridTransform::Z_AXIS );
}
void LargeVolumeSchema::set_min_max( double min, double max ) const
{
this->private_->min_ = min;
this->private_->max_ = max;
}
bool LargeVolumeSchema::is_compressed() const
{
return this->private_->compression_;
}
bool LargeVolumeSchema::is_little_endian() const
{
return this->private_->little_endian_;
}
const IndexVector& LargeVolumeSchema::get_level_downsample_ratio( size_t idx ) const
{
return this->private_->levels_[idx];
}
size_t LargeVolumeSchema::get_num_levels() const
{
return this->private_->levels_.size();
}
void LargeVolumeSchema::set_dir( const bfs::path& dir )
{
this->private_->dir_ = dir;
}
void LargeVolumeSchema::set_parameters( const IndexVector& size, const Vector& spacing, const Point& origin,
const IndexVector& brick_size, size_t overlap, DataType data_type )
{
this->private_->size_ = size;
this->private_->spacing_ = spacing;
this->private_->origin_ = origin;
this->private_->brick_size_ = brick_size;
this->private_->overlap_ = overlap;
this->private_->data_type_ = data_type;
this->private_->effective_brick_size_.x( brick_size.x() - 2 * overlap );
this->private_->effective_brick_size_.y( brick_size.y() - 2 * overlap );
this->private_->effective_brick_size_.z( brick_size.z() - 2 * overlap );
}
void LargeVolumeSchema::set_compression( bool compression )
{
this->private_->compression_ = compression;
}
void LargeVolumeSchema::compute_levels()
{
// Insert level 0:
int cur_level = 0;
IndexVector ratio( 1, 1, 1);
this->private_->levels_.push_back( ratio );
if ( !this->private_->downsample_x_ && !this->private_->downsample_y_ &&
!this->private_->downsample_z_ )
{
this->private_->compute_cached_level_info();
}
else
{
IndexVector size = this->private_->compute_level_size( cur_level );
IndexVector layout = this->private_->compute_brick_layout( size );
while (
(this->private_->downsample_x_ && layout.x() > 1) ||
(this->private_->downsample_y_ && layout.y() > 1) ||
(this->private_->downsample_z_ && layout.z() > 1) )
{
Vector spacing = this->private_->compute_level_spacing( cur_level );
if (! this->private_->downsample_x_ ) spacing.x( std::numeric_limits<double>::infinity() );
if (! this->private_->downsample_y_ ) spacing.y( std::numeric_limits<double>::infinity() );
if (! this->private_->downsample_z_ ) spacing.z( std::numeric_limits<double>::infinity() );
double min_spacing = 1.5 * Min( spacing.x(), spacing.y(), spacing.z() );
if ( spacing.x() < min_spacing ) ratio.x( 2 * ratio.x() );
if ( spacing.y() < min_spacing ) ratio.y( 2 * ratio.y() );
if ( spacing.z() < min_spacing ) ratio.z( 2 * ratio.z() );
this->private_->levels_.push_back( ratio );
cur_level++;
size = this->private_->compute_level_size( cur_level );
layout = this->private_->compute_brick_layout( size );
}
this->private_->compute_cached_level_info();
}
}
IndexVector LargeVolumeSchema::get_level_size( index_type level ) const
{
return this->private_->level_size_[ level ];
}
Vector LargeVolumeSchema::get_level_spacing( index_type level ) const
{
return this->private_->level_spacing_[ level ];
}
IndexVector LargeVolumeSchema::get_level_layout( index_type level ) const
{
return this->private_->level_layout_[ level ];
}
IndexVector LargeVolumeSchema::get_brick_size( const BrickInfo& bi ) const
{
const IndexVector& effective_brick_size = this->private_->effective_brick_size_;
const IndexVector& layout = this->get_level_layout( bi.level_ );
const IndexVector& index = this->private_->compute_brick_index_vector( layout, bi.index_ );
IndexVector result = this->private_->compute_remainder_brick(bi, index);
return result;
}
bool LargeVolumeSchema::read_brick( DataBlockHandle& brick, const BrickInfo& bi, std::string& error ) const
{
IndexVector size = this->get_brick_size( bi );
brick = StdDataBlock::New( size[0], size[1], size[2], this->get_data_type() );
if ( !brick )
{
error = "Could not allocate brick.";
return false;
}
bfs::path brick_file = this->private_->get_brick_file_name( bi );
if ( !bfs::exists(brick_file ) )
{
error = "Could not open brick.";
return false;
}
size_t file_size = bfs::file_size( brick_file );
size_t brick_size = size[0] * size[1] * size[2] * GetSizeDataType( this->get_data_type() );
if ( brick_size > file_size )
{
try
{
std::vector<char> buffer( file_size );
std::ifstream input( brick_file.string().c_str(), std::ios_base::in | std::ios_base::binary );
input.read( &buffer[0], file_size);
input.close();
zlib_uLongf brick_size_ul = brick_size;
if ( zlib_uncompress( reinterpret_cast<zlib_Bytef*>( brick->get_data() ), &brick_size_ul,
reinterpret_cast<zlib_Bytef*>(&buffer[0]), file_size ) != Z_OK)
{
error = "Could not decompress file '" + brick_file.string() + "'.";
return false;
}
if ( brick_size_ul != brick_size )
{
error = "Brick '" + brick_file.string() + "' contains invalid data.";
brick->clear();
return false;
}
}
catch ( ... )
{
error = "Error reading file '" + brick_file.string() + "'.";
brick->clear();
return false;
}
}
else if ( brick_size == file_size )
{
try
{
std::ifstream input( brick_file.string().c_str(), std::ios_base::in | std::ios_base::binary );
input.read( reinterpret_cast<char *>(brick->get_data()), brick_size );
input.close();
}
catch ( ... )
{
error = "Error reading file '" + brick_file.string() + "'.";
brick->clear();
return false;
}
}
else
{
error = "Brick file is too large to be a brick.";
brick->clear();
return false;
}
if ( DataBlock::IsLittleEndian() != this->private_->little_endian_ )
{
brick->swap_endian();
}
return true;
}
bool LargeVolumeSchema::append_brick_buffer( DataBlockHandle data_block, size_t z_start, size_t z_end,
size_t offset, const BrickInfo& bi, std::string& error ) const
{
IndexVector size = this->get_brick_size( bi );
size_t slice_size = data_block->get_nx() * data_block->get_ny();
if ( size[0] != data_block->get_nx() || size[1] != data_block->get_ny() )
{
error = "Brick is of incorrect size.";
return false;
}
if ( this->private_->data_type_ != data_block->get_data_type() )
{
error = "Brick is incorrect data type.";
return false;
}
bfs::path brick_file = this->private_->get_brick_file_name( bi );
size_t buffer_size = slice_size * ( z_end - z_start ) * GetSizeDataType( this->get_data_type() );
size_t buffer_offset = z_start * slice_size * GetSizeDataType( this->get_data_type() );
try
{
std::ofstream output( brick_file.string().c_str(), std::ios_base::app | std::ios_base::binary | std::ios_base::out );
output.seekp( offset * size[0] * size[1] * GetSizeDataType( this->get_data_type()), std::ios_base::beg );
output.write( reinterpret_cast<char *>( data_block->get_data() ) + buffer_offset, buffer_size );
}
catch ( ... )
{
error = "Could not write to file '" + brick_file.string() + "'.";
return false;
}
return true;
}
bool LargeVolumeSchema::write_brick( DataBlockHandle data_block, const BrickInfo& bi, std::string& error ) const
{
IndexVector size = this->get_brick_size( bi );
if ( size[0] != data_block->get_nx() || size[1] != data_block->get_ny() ||
size[2] != data_block->get_nz() )
{
error = "Brick is of incorrect size.";
return false;
}
if ( this->private_->data_type_ != data_block->get_data_type() )
{
error = "Brick is incorrect data type.";
return false;
}
bfs::path brick_file = this->private_->get_brick_file_name( bi );
size_t brick_size = size[0] * size[1] * size[2] * GetSizeDataType( this->get_data_type() );
if ( this->private_->compression_)
{
std::vector<char> buffer( brick_size + 12 );
zlib_uLongf brick_size_ul = brick_size + 12;
int result = zlib_compress2( reinterpret_cast<zlib_Bytef*>( &buffer[0] ), &brick_size_ul,
reinterpret_cast<zlib_Bytef*>(data_block->get_data()), brick_size, Z_DEFAULT_COMPRESSION );
if (result != Z_OK )
{
error = "Could not compress file.";
return false;
}
if ( brick_size_ul < brick_size )
{
// Compression succeeded
try
{
std::ofstream output( brick_file.string().c_str(), std::ios_base::trunc | std::ios_base::binary | std::ios_base::out );
output.write( &buffer[0], brick_size_ul );
}
catch ( ... )
{
error = "Could not write to file '" + brick_file.string() + "'.";
return false;
}
}
else
{
try
{
std::ofstream output( brick_file.string().c_str(), std::ios_base::trunc | std::ios_base::binary | std::ios_base::out );
output.write( reinterpret_cast<char *>( data_block->get_data() ) , brick_size );
}
catch ( ... )
{
error = "Could not write to file '" + brick_file.string() + "'.";
return false;
}
}
}
else
{
try
{
std::ofstream output( brick_file.string().c_str(), std::ios_base::trunc | std::ios_base::binary | std::ios_base::out );
output.write( reinterpret_cast<char *>( data_block->get_data() ) , brick_size );
}
catch ( ... )
{
error = "Could not write to file '" + brick_file.string() + "'.";
return false;
}
}
return true;
}
bool LargeVolumeSchema::get_parent(const BrickInfo& bi, BrickInfo& parent)
{
BrickInfo::index_type level = bi.level_;
if (level >= this->get_num_levels() - 1 ) return false;
IndexVector layout = this->get_level_layout( level );
IndexVector layout_next = this->get_level_layout( level + 1 );
IndexVector index = this->private_->compute_brick_index_vector( layout, bi.index_ );
IndexVector ratio = this->get_level_downsample_ratio( level );
IndexVector ratio_next = this->get_level_downsample_ratio( level + 1 );
index.x( ( index.x() * ratio.x() ) / ratio_next.x() );
index.y( ( index.y() * ratio.y() ) / ratio_next.y() );
index.z( ( index.z() * ratio.z() ) / ratio_next.z() );
parent = BrickInfo( index.z() * layout_next.y() * layout_next.x() + index.y() * layout_next.x() + index.x(), level + 1 );
return true;
}
bool LargeVolumeSchema::get_children( const BrickInfo& bi, SliceType slice, double depth,
std::vector<BrickInfo>& children )
{
children.clear();
BrickInfo::index_type level = bi.level_;
if (level == 0 ) return false;
IndexVector ratio = this->get_level_downsample_ratio( level );
IndexVector ratio_next = this->get_level_downsample_ratio( level - 1 );
IndexVector rat( ratio.x() / ratio_next.x(), ratio.y() / ratio_next.y(),
ratio.z() / ratio_next.z());
IndexVector layout = this->get_level_layout( level );
IndexVector layout_next = this->get_level_layout( level - 1 );
IndexVector index = this->private_->compute_brick_index_vector( layout, bi.index_ );
Point origin = this->private_->origin_;
Vector spacing = this->get_level_spacing( level );
IndexVector eb = this->private_->effective_brick_size_;
switch ( slice )
{
case SliceType::SAGITTAL_E:
{
IndexVector::index_type x_index = index.x();
if ( rat.x() == 2 )
{
if ( spacing.x() * eb.xd() * ( index.xd() + 0.5 ) > depth - origin.x() )
{
x_index = 2 * x_index;
}
else
{
x_index = 2 * x_index + 1;
}
}
x_index = Min( x_index, layout_next.x() - 1 );
for (IndexVector::index_type y = rat.y() * index.y();
y < Min( layout_next.y(), rat.y() * ( index.y() + 1 ) ); y++ )
{
for (IndexVector::index_type z = rat.z() * index.z();
z < Min( layout_next.z(), rat.z() * ( index.z() + 1 ) ); z++ )
{
children.push_back( BrickInfo( layout_next.x() * layout_next.y() * z +
layout_next.x() * y + x_index, level - 1));
}
}
return true;
}
case SliceType::CORONAL_E:
{
IndexVector::index_type y_index = index.y();
if ( rat.y() == 2 )
{
if (spacing.y() * eb.yd() * ( index.yd() + 0.5 ) > depth - origin.y())
{
y_index = 2 * y_index;
}
else
{
y_index = 2 * y_index + 1;
}
}
y_index = Min( y_index, layout_next.y() - 1 );
for (IndexVector::index_type x = rat.x() * index.x();
x < Min( layout_next.x(), rat.x() * ( index.x() + 1 ) ); x++ )
{
for (IndexVector::index_type z = rat.z() * index.z();
z < Min( layout_next.z(), rat.z() * ( index.z() + 1 ) ); z++ )
{
children.push_back( BrickInfo( layout_next.x() * layout_next.y() * z +
layout_next.x() * y_index + x, level - 1));
}
}
return true;
}
case SliceType::AXIAL_E:
{
IndexVector::index_type z_index = index.z();
if ( rat.z() == 2 )
{
if (spacing.z() * eb.zd() * ( index.zd() + 0.5 ) > depth - origin.z())
{
z_index = 2 * z_index;
}
else
{
z_index = 2 * z_index + 1;
}
}
z_index = Min( z_index, layout_next.z() - 1 );
for (IndexVector::index_type x = rat.x() * index.x();
x < Min( layout_next.x(), rat.x() * ( index.x() + 1 ) ); x++ )
{
for (IndexVector::index_type y = rat.y() * index.y();
y < Min( layout_next.y(), rat.y() * ( index.y() + 1 ) ); y++ )
{
children.push_back( BrickInfo( layout_next.x() * layout_next.y() * z_index +
layout_next.x() * y + x, level - 1));
}
}
return true;
}
}
return false;
}
std::vector<BrickInfo> LargeVolumeSchema::get_bricks_for_volume( Transform world_viewport,
int width, int height, SliceType slice, const BBox& effective_bbox, double depth,
const std::string& load_key )
{
std::vector<BrickInfo> result;
int num_levels = static_cast<int>( this->get_num_levels() );
int level = num_levels - 1;
IndexVector layout = this->get_level_layout( level );
std::queue<BrickInfo> bricks;
for( size_t j = 0; j < layout.x() * layout.y() * layout.z(); j++ )
{
bricks.push( BrickInfo( j, level ) );
}
bool found_right_level = false;
size_t overlap = this->get_overlap();
BBox viewable_box( Point(-1.0, -1.0, -1.0), Point( 1.0, 1.0, 1.0 ));
while ( !bricks.empty() )
{
BrickInfo bi = bricks.front();
bricks.pop();
Vector spacing = this->get_level_spacing( bi.level_ );
GridTransform trans = this->get_brick_grid_transform( bi );
BBox bbox( trans * ( Point( overlap, overlap, overlap ) - Vector( 0.5, 0.5, 0.5 ) ),
trans * ( Point( trans.get_nx() - overlap, trans.get_ny() - overlap,
trans.get_nz() - overlap ) - Vector( 0.5, 0.5, 0.5 ) ) );
switch ( slice )
{
case SliceType::SAGITTAL_E:
{
if ( !effective_bbox.overlaps(bbox) || depth < bbox.min().x() || depth > bbox.max().x() ) continue;
Point p1 = Point( depth, bbox.min().y(), bbox.min().z() );
Point p2 = Point( depth, bbox.max().y(), bbox.min().z() );
Point p3 = Point( depth, bbox.min().y(), bbox.max().z() );
Point p4 = Point( depth, bbox.max().y(), bbox.max().z() );
BBox region(p1, p4);
Point proj_p1 = world_viewport.project( p1 );
Point proj_p2 = world_viewport.project( p2 );
Point proj_p3 = world_viewport.project( p3 );
Point proj_p4 = world_viewport.project( p4 );
BBox plane( proj_p1, proj_p2 );
plane.extend( proj_p3 );
plane.extend( proj_p4 );
if (! viewable_box.overlaps( plane ) ) continue;
Point q1 = p1 + Vector( 0.0, spacing.y(), spacing.z() );
Point q2 = p2 + Vector( 0.0, -spacing.y(), spacing.z() );
Point q3 = p3 + Vector( 0.0, spacing.y(), -spacing.z() );
Point q4 = p4 + Vector( 0.0, -spacing.y(), -spacing.z() );
Point proj_q1 = world_viewport.project( q1 );
Point proj_q2 = world_viewport.project( q2 );
Point proj_q3 = world_viewport.project( q3 );
Point proj_q4 = world_viewport.project( q4 );
if ( Abs( proj_p1.x() - proj_q1.x() ) * width > 2.0 ||
Abs( proj_p1.y() - proj_q1.y() ) * height > 2.0 ||
Abs( proj_p2.x() - proj_q2.x() ) * width > 2.0 ||
Abs( proj_p2.y() - proj_q2.y() ) * height > 2.0 ||
Abs( proj_p3.x() - proj_q3.x() ) * width > 2.0 ||
Abs( proj_p3.y() - proj_q3.y() ) * height > 2.0 ||
Abs( proj_p4.x() - proj_q4.x() ) * width > 2.0 ||
Abs( proj_p4.y() - proj_q4.y() ) * height > 2.0 )
{
std::vector<BrickInfo> children;
if ( this->get_children( bi, slice, depth, children) )
{
for (size_t k = 0; k < children.size(); k++)
bricks.push( children[ k ] );
}
else
{
result.push_back( bi );
}
}
else
{
result.push_back( bi );
}
}
break;
case SliceType::CORONAL_E:
{
if (!effective_bbox.overlaps( bbox ) || depth < bbox.min().y() || depth > bbox.max().y()) continue;
Point p1 = Point( bbox.min().x(), depth, bbox.min().z() );
Point p2 = Point( bbox.max().x(), depth, bbox.min().z() );
Point p3 = Point( bbox.min().x(), depth, bbox.max().z() );
Point p4 = Point( bbox.max().x(), depth, bbox.max().z() );
BBox region(p1, p4);
Point proj_p1 = world_viewport.project( p1 );
Point proj_p2 = world_viewport.project( p2 );
Point proj_p3 = world_viewport.project( p3 );
Point proj_p4 = world_viewport.project( p4 );
BBox plane( proj_p1, proj_p2 );
plane.extend( proj_p3 );
plane.extend( proj_p4 );
if (! viewable_box.overlaps( plane ) ) continue;
Point q1 = p1 + Vector( spacing.x(), 0.0, spacing.z() );
Point q2 = p2 + Vector( -spacing.x(), 0.0, spacing.z() );
Point q3 = p3 + Vector( spacing.x(), 0.0, -spacing.z() );
Point q4 = p4 + Vector( -spacing.x(), 0.0, -spacing.z() );
Point proj_q1 = world_viewport.project( q1 );
Point proj_q2 = world_viewport.project( q2 );
Point proj_q3 = world_viewport.project( q3 );
Point proj_q4 = world_viewport.project( q4 );
if ( Abs( proj_p1.x() - proj_q1.x() ) * width > 2.0 ||
Abs( proj_p1.y() - proj_q1.y() ) * height > 2.0 ||
Abs( proj_p2.x() - proj_q2.x() ) * width > 2.0 ||
Abs( proj_p2.y() - proj_q2.y() ) * height > 2.0 ||
Abs( proj_p3.x() - proj_q3.x() ) * width > 2.0 ||
Abs( proj_p3.y() - proj_q3.y() ) * height > 2.0 ||
Abs( proj_p4.x() - proj_q4.x() ) * width > 2.0 ||
Abs( proj_p4.y() - proj_q4.y() ) * height > 2.0 )
{
std::vector<BrickInfo> children;
if ( this->get_children( bi, slice, depth, children) )
{
for (size_t k = 0; k < children.size(); k++)
bricks.push( children[ k ] );
}
else
{
result.push_back( bi );
}
}
else
{
result.push_back( bi );
}
}
break;
case SliceType::AXIAL_E:
{
if (!effective_bbox.overlaps( bbox ) || depth < bbox.min().z() || depth > bbox.max().z()) continue;
Point p1 = Point( bbox.min().x(), bbox.min().y(), depth );
Point p2 = Point( bbox.max().x(), bbox.min().y(), depth );
Point p3 = Point( bbox.min().x(), bbox.max().y(), depth );
Point p4 = Point( bbox.max().x(), bbox.max().y(), depth );
BBox region(p1, p4);
Point proj_p1 = world_viewport.project( p1 );
Point proj_p2 = world_viewport.project( p2 );
Point proj_p3 = world_viewport.project( p3 );
Point proj_p4 = world_viewport.project( p4 );
BBox plane( proj_p1, proj_p2 );
plane.extend( proj_p3 );
plane.extend( proj_p4 );
if (! viewable_box.overlaps( plane ) ) continue;
Point q1 = p1 + Vector( spacing.x(), spacing.y(), 0.0 );
Point q2 = p2 + Vector( -spacing.x(), spacing.y(), 0.0 );
Point q3 = p3 + Vector( spacing.x(), -spacing.y(), 0.0 );
Point q4 = p4 + Vector( -spacing.x(), -spacing.y(), 0.0 );
Point proj_q1 = world_viewport.project( q1 );
Point proj_q2 = world_viewport.project( q2 );
Point proj_q3 = world_viewport.project( q3 );
Point proj_q4 = world_viewport.project( q4 );
if ( Abs( proj_p1.x() - proj_q1.x() ) * width > 2.0 ||
Abs( proj_p1.y() - proj_q1.y() ) * height > 2.0 ||
Abs( proj_p2.x() - proj_q2.x() ) * width > 2.0 ||
Abs( proj_p2.y() - proj_q2.y() ) * height > 2.0 ||
Abs( proj_p3.x() - proj_q3.x() ) * width > 2.0 ||
Abs( proj_p3.y() - proj_q3.y() ) * height > 2.0 ||
Abs( proj_p4.x() - proj_q4.x() ) * width > 2.0 ||
Abs( proj_p4.y() - proj_q4.y() ) * height > 2.0 )
{
std::vector<BrickInfo> children;
if ( this->get_children( bi, slice, depth, children) )
{
for (size_t k = 0; k < children.size(); k++)
bricks.push( children[ k ] );
}
else
{
result.push_back( bi );
}
}
else
{
result.push_back( bi );
}
}
break;
}
}
std::vector<BrickInfo> current_render;
this->private_->load_and_substitue_missing_bricks( result, slice, depth, load_key, current_render );
return current_render;
}
void LargeVolumeSchemaPrivate::load_and_substitue_missing_bricks( std::vector<BrickInfo>& want_to_render,
SliceType slice, double depth, const std::string& load_key, std::vector<BrickInfo>& current_render )
{
LargeVolumeCache* cache = LargeVolumeCache::Instance();
index_type num_levels = this->schema_->get_num_levels();
std::vector<std::set<BrickInfo> > bricks_to_render( num_levels );
std::vector<BrickInfo> bricks_to_load;
for (size_t k = 0; k < want_to_render.size(); k++)
{
BrickInfo brick = want_to_render[ k ];
if (!cache->mark_brick( this->schema_->shared_from_this(), brick ))
{
// check children
bool have_children = false;
std::vector<BrickInfo> children;
if (this->schema_->get_children( brick, slice, depth, children ))
{
have_children = true;
for (size_t j = 0; j < children.size(); j++)
{
if (!cache->mark_brick( this->schema_->shared_from_this(), children[ j ] ))
{
have_children = false;
break;
}
}
if (have_children)
{
for (size_t j = 0; j < children.size(); j++)
{
bricks_to_render[ children[ j ].level_ ].insert( children[ j ] );
}
}
}
if (!have_children)
{
// check parents
BrickInfo parent = brick;
while (this->schema_->get_parent( parent, parent ))
{
if (cache->mark_brick( this->schema_->shared_from_this(), parent ))
{
bricks_to_render[ parent.level_ ].insert( parent );
break;
}
}
}
bricks_to_load.push_back( brick );
}
else
{
bricks_to_render[ brick.level_ ].insert( brick );
}
}
for (index_type lev = num_levels - 1; lev >= 0; lev--)
{
current_render.insert( current_render.end(), bricks_to_render[ lev ].begin(), bricks_to_render[ lev ].end() );
}
cache->clear_load_queue( load_key );
for (size_t k = 0; k < bricks_to_load.size(); k++)
{
cache->load_brick( this->schema_->shared_from_this(), bricks_to_load[ k ], load_key );
}
}
std::vector<BrickInfo> LargeVolumeSchema::get_bricks_for_region( const BBox& region, double pixel_size, SliceType slice,
const std::string& load_key)
{
index_type level = 0;
index_type num_levels = this->get_num_levels();
LargeVolumeCache* cache = LargeVolumeCache::Instance();
double depth;
// Compute needed level
switch( slice )
{
case SliceType::SAGITTAL_E:
{
depth = region.min().x();
while (level + 1 < num_levels)
{
Vector spacing = this->get_level_spacing( level + 1 );
if ( Max( spacing.y(), spacing.z() ) >= pixel_size ) break;
level++;
}
break;
}
case SliceType::CORONAL_E:
{
depth = region.min().y();
while (level + 1 < num_levels)
{
Vector spacing = this->get_level_spacing( level + 1 );
if ( Max( spacing.x(), spacing.z() ) >= pixel_size ) break;
level++;
}
break;
}
case SliceType::AXIAL_E:
{
depth = region.min().z();
while (level + 1 < num_levels)
{
Vector spacing = this->get_level_spacing( level + 1 );
if ( Max( spacing.x(), spacing.y() ) >= pixel_size ) break;
level++;
}
break;
}
}
Point origin = this->private_->origin_;
Vector min = region.min() - origin;
Vector max = region.max() - origin;
Vector spacing = this->get_level_spacing( level );
IndexVector layout = this->get_level_layout( level );
IndexVector eb = this->private_->effective_brick_size_;
index_type sx = Max( 0, Floor( min.x() / ( eb.x() * spacing.x()) ) );
index_type ex = Min( layout.x(), static_cast<index_type>( Floor( max.x() / ( eb.x() * spacing.x()) ) + 1 ) );
index_type sy = Max( 0, Floor( min.y() / ( eb.y() * spacing.y()) ));
index_type ey = Min( layout.y(), static_cast<index_type>( Floor( max.y() / ( eb.y() * spacing.y()) ) + 1 ) );
index_type sz = Max( 0, Floor( min.z() / ( eb.z() * spacing.z()) ) );
index_type ez = Min( layout.z(), static_cast<index_type>( Floor( max.z() / ( eb.z() * spacing.z()) ) + 1 ) );
std::vector<BrickInfo> want_to_render;
index_type nx = layout.x();
index_type nxy = layout.x() * layout.y();
for (index_type z = sz; z < ez; z++ )
{
for (index_type y = sy; y < ey; y++ )
{
for (index_type x = sx; x < ex; x++ )
{
want_to_render.push_back(BrickInfo( x + nx * y + nxy * z, level ));
}
}
}
std::vector<BrickInfo> current_render;
this->private_->load_and_substitue_missing_bricks( want_to_render, slice, depth, load_key, current_render );
return current_render;
}
bool LargeVolumeSchema::reprocess_brick( const BrickInfo& bi,
std::string& error ) const
{
error = "";
// Read in uncompressed brick
DataBlockHandle data_block;
if (! this->read_brick( data_block, bi, error ) )
{
return false;
}
// Delete file, so that when we write the file again it will be more likely
// to be in a continuous block, especially since we do it as one write, hence
// a good FS should give us contiguous blocks on disk
bfs::path brick_file = this->private_->get_brick_file_name( bi );
if (! bfs::remove( brick_file ) )
{
error = "Could not remove brick file.";
return false;
}
// Write the file as one entity back to disk
if (! this->write_brick( data_block, bi, error ) )
{
return false;
}
return true;
}
void LargeVolumeSchema::enable_downsample( bool downsample_x, bool downsample_y, bool downsample_z )
{
this->private_->downsample_x_ = downsample_x;
this->private_->downsample_y_ = downsample_y;
this->private_->downsample_z_ = downsample_z;
}
bfs::path LargeVolumeSchema::get_brick_file_name( const BrickInfo& bi )
{
return this->private_->get_brick_file_name( bi );
}
bool LargeVolumeSchema::get_level_start_and_end( const GridTransform& region, int level,
IndexVector& start, IndexVector& end, GridTransform& gt )
{
GridTransform trans = this->get_grid_transform();
BBox tbox( trans.project( Point( 0.0, 0.0, 0.0 ) ), trans.project(
Point( trans.get_nx(), trans.get_ny(), trans.get_nz() ) ) );
BBox rbox( region.project( Point( 0.0, 0.0, 0.0 ) ), region.project(
Point( region.get_nx(), region.get_ny(), region.get_nz() )
) );
Vector spacing = this->get_level_spacing( level );
Vector data_spacing = this->get_level_spacing( 0 );
Point origin = this->get_origin() - ( 0.5 * data_spacing ) + ( 0.5 * spacing );
start = IndexVector(
Max( 0, Floor( ( rbox.min().x() - tbox.min().x() ) / spacing.x() ) ),
Max( 0, Floor( ( rbox.min().y() - tbox.min().y() ) / spacing.y() ) ),
Max( 0, Floor( ( rbox.min().z() - tbox.min().z() ) / spacing.z() ) ) );
end = IndexVector(
Min( static_cast<int>( trans.get_nx() ), Floor( ( rbox.max().x() - tbox.min().x() ) / spacing.x() ) ),
Min( static_cast<int>( trans.get_ny() ), Floor( ( rbox.max().y() - tbox.min().y() ) / spacing.y() ) ),
Min( static_cast<int>( trans.get_nz() ), Floor( ( rbox.max().z() - tbox.min().z() ) / spacing.z() ) ) );
gt = GridTransform( end.x() - start.x(), end.y() - start.y(), end.z() - start.z(),
origin + Vector( start.xd() * spacing.x(), start.yd() * spacing.y(), start.zd() * spacing.z()),
spacing.x() * Vector( 1.0, 0.0, 0.0 ), spacing.y() * Vector( 0.0, 1.0, 0.0 ), spacing.z() * Vector( 0.0, 0.0, 1.0 ) );
return true;
}
bool LargeVolumeSchema::insert_brick( DataBlockHandle volume, DataBlockHandle brick, IndexVector offset, IndexVector clip_start, IndexVector clip_end )
{
switch ( volume->get_data_type() )
{
case DataType::UCHAR_E:
return this->private_->insert_brick_internals<unsigned char>( volume, brick, offset, clip_start, clip_end );
case DataType::CHAR_E:
return this->private_->insert_brick_internals<signed char>( volume, brick, offset, clip_start, clip_end );
case DataType::USHORT_E:
return this->private_->insert_brick_internals<unsigned short>( volume, brick, offset, clip_start, clip_end );
case DataType::SHORT_E:
return this->private_->insert_brick_internals<short>( volume, brick, offset, clip_start, clip_end );
case DataType::UINT_E:
return this->private_->insert_brick_internals<unsigned int>( volume, brick, offset, clip_start, clip_end );
case DataType::INT_E:
return this->private_->insert_brick_internals<int>( volume, brick, offset, clip_start, clip_end );
case DataType::ULONGLONG_E:
return this->private_->insert_brick_internals<unsigned long long>( volume, brick, offset, clip_start, clip_end );
case DataType::LONGLONG_E:
return this->private_->insert_brick_internals<long long>( volume, brick, offset, clip_start, clip_end );
case DataType::FLOAT_E:
return this->private_->insert_brick_internals<float>( volume, brick, offset, clip_start, clip_end );
case DataType::DOUBLE_E:
return this->private_->insert_brick_internals<double>( volume, brick, offset, clip_start, clip_end );
}
return false;
}
bool LargeVolumeSchema::insert_brick( DataBlockHandle volume, DataBlockHandle brick, IndexVector offset )
{
switch ( volume->get_data_type() )
{
case DataType::UCHAR_E:
return this->private_->insert_brick_internals<unsigned char>( volume, brick, offset );
case DataType::CHAR_E:
return this->private_->insert_brick_internals<signed char>( volume, brick, offset );
case DataType::USHORT_E:
return this->private_->insert_brick_internals<unsigned short>( volume, brick, offset );
case DataType::SHORT_E:
return this->private_->insert_brick_internals<short>( volume, brick, offset );
case DataType::UINT_E:
return this->private_->insert_brick_internals<unsigned int>( volume, brick, offset );
case DataType::INT_E:
return this->private_->insert_brick_internals<int>( volume, brick, offset );
case DataType::ULONGLONG_E:
return this->private_->insert_brick_internals<unsigned long long>( volume, brick, offset );
case DataType::LONGLONG_E:
return this->private_->insert_brick_internals<long long>( volume, brick, offset );
case DataType::FLOAT_E:
return this->private_->insert_brick_internals<float>( volume, brick, offset );
case DataType::DOUBLE_E:
return this->private_->insert_brick_internals<double>( volume, brick, offset );
}
return false;
}
} // end namespace
|
0bacb40692102f48ac738926108c157e66d73bde | fc88d98ca6a38308b0f899e49e290249ae4ccea7 | /Armorial-Suassuna/entity/player/behaviour/basics/behaviour_attacker.cpp | cf8d1af15b8271ecb3de0d304c255e9532eea83e | [] | no_license | mateuseap/SoccerT1 | 5c420337bbe58d13e96b3382949415880435dcaa | 9749353c0b42e244a9e56384383e22d31ac59c57 | refs/heads/master | 2021-05-17T17:35:14.992175 | 2020-03-31T10:40:01 | 2020-03-31T10:40:01 | 250,898,928 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,785 | cpp | behaviour_attacker.cpp | #include "behaviour_attacker.h"
#include <utils/freeangles/freeangles.h>
#define KICK_POWER 8.0f
#define RECEIVER_INVALID_ID 200
#define MAX_DIST_KICK 2.5f
QString Behaviour_Attacker::name() {
return "Behaviour_Attacker";
}
Behaviour_Attacker::Behaviour_Attacker() {
}
void Behaviour_Attacker::configure() {
usesSkill(_sk_kick = new Skill_Kick());
usesSkill(_sk_goto = new Skill_GoToLookTo());
usesSkill(_sk_push = new Skill_PushBall());
addTransition(0, _sk_goto, _sk_kick);
addTransition(1, _sk_kick, _sk_goto);
addTransition(2, _sk_goto, _sk_push);
addTransition(2, _sk_kick, _sk_push);
addTransition(3, _sk_push, _sk_kick);
setInitialSkill(_sk_goto);
_state = STATE_PUSH;
_timer = new MRCTimer(1000.0f);
};
void Behaviour_Attacker::run() {
if(player()->canKickBall() == false){ // if can't kick ball
//_state = STATE_WAIT;
}
switch(_state){
case STATE_PUSH:{
enableTransition(2);
_bestReceiver = RECEIVER_INVALID_ID;
_kickPosition = loc()->ourGoal();
Position bestKickPosition = getBestKickPosition();
if(!bestKickPosition.isUnknown()){ // checar isso dps
_kickPosition = bestKickPosition;
}else{
// descobrindo o melhor receiver
_mutex.lock();
_bestReceiver = getBestReceiver();
if(_bestReceiver != RECEIVER_INVALID_ID){
Position receiverPosition = PlayerBus::ourPlayer(_bestReceiver)->position();
if(!receiverPosition.isUnknown()){
_kickPosition = receiverPosition;
}
}
_mutex.unlock();
}
// Setting push position
_sk_push->setDestination(_kickPosition);
// Emitting signal for receivers
Position behindBall = WR::Utils::threePoints(loc()->ball(), _kickPosition, 0.2, GEARSystem::Angle::pi);
if(_bestReceiver != RECEIVER_INVALID_ID && player()->distBall() < 0.3f && isBehindBall(behindBall) == false){
emit goingToShoot(_bestReceiver);
}
// Change state to kick
// check if ball is in front
Angle anglePlayerBall = player()->angleTo(loc()->ball());
float diff = WR::Utils::angleDiff(anglePlayerBall, player()->orientation());
bool ans = (diff <= atan(0.7)); // atan(0.7) aprox = 35 degree
float distToKickPosition = player()->distanceTo(_kickPosition);
if(distToKickPosition < MAX_DIST_KICK && player()->distBall() < 0.3f && ans){
_timer->update(); // reset timer
_state = STATE_KICK;
}
}
break;
case STATE_KICK:{
enableTransition(2);
if(_bestReceiver != RECEIVER_INVALID_ID){
if(PlayerBus::ourPlayerAvailable(_bestReceiver)){
_kickPosition = PlayerBus::ourPlayer(_bestReceiver)->position(); // update to avoid delay
}
}
// Enable kick
if(player()->isLookingTo(_kickPosition, 0.015)){
_sk_kick->setAim(_kickPosition);
_sk_kick->setIsPass(false);
enableTransition(3);
}
// check if ball is in front
Angle anglePlayerBall = player()->angleTo(loc()->ball());
float diff = WR::Utils::angleDiff(anglePlayerBall, player()->orientation());
bool ans = (diff <= atan(0.7)); // atan(0.7) aprox = 35 degree
if(!ans || player()->distBall() > 0.4f){
// emit ball kicked
if(_bestReceiver != RECEIVER_INVALID_ID){
emit shooted(_bestReceiver);
}
_state = STATE_PUSH;
}
if(_timer->getTimeInSeconds() >= 0.2f){
_state = STATE_PUSH;
}
}
break;
}
}
quint8 Behaviour_Attacker::getBestReceiver(){
quint8 bestRcv = RECEIVER_INVALID_ID;
double dist = INFINITY;
for(int x = 0; x < _recvs.size(); x++){
if(PlayerBus::ourPlayerAvailable(_recvs.at(x))){
double distToAtk = sqrt(pow(player()->position().x() - PlayerBus::ourPlayer(_recvs.at(x))->position().x(), 2) + pow(player()->position().y() - PlayerBus::ourPlayer(_recvs.at(x))->position().y(), 2));
if(distToAtk < dist){
dist = distToAtk;
bestRcv = _recvs.at(x);
}
}
}
return bestRcv;
}
bool Behaviour_Attacker::isBehindBall(Position posObjective){
Position posBall = loc()->ball();
Position posPlayer = player()->position();
float anglePlayer = WR::Utils::getAngle(posBall, posPlayer);
float angleDest = WR::Utils::getAngle(posBall, posObjective);
float diff = WR::Utils::angleDiff(anglePlayer, angleDest);
return (diff>GEARSystem::Angle::pi/2.0f);
}
Position Behaviour_Attacker::getBestKickPosition(){
const Position goalRightPost = loc()->ourGoalRightPost();
const Position goalLeftPost = loc()->ourGoalLeftPost();
const Position goalCenter = loc()->ourGoal();
// calculating angles
float minAngle = WR::Utils::getAngle(loc()->ball(), goalRightPost);
float maxAngle = WR::Utils::getAngle(loc()->ball(), goalLeftPost);
// generating list of freeAngles to goal
QList<FreeAngles::Interval> freeAngles = FreeAngles::getFreeAngles(loc()->ball(), minAngle, maxAngle);
float largestAngle, largestMid;
// get the largest interval
if(freeAngles.size() == 0){
return Position(false, 0.0, 0.0, 0.0); // debugar isso dps
}else{
QList<FreeAngles::Interval>::iterator it;
for(it = freeAngles.begin(); it != freeAngles.end(); it++){
if(it->obstructed()) continue;
float initAngle = it->angInitial();
float endAngle = it->angFinal();
WR::Utils::angleLimitZeroTwoPi(&initAngle);
WR::Utils::angleLimitZeroTwoPi(&endAngle);
float dif = endAngle - initAngle;
WR::Utils::angleLimitZeroTwoPi(&dif);
if(dif > largestAngle){
largestAngle = dif;
largestMid = endAngle - dif/2;
}
}
}
// Triangularization
float x = goalCenter.x() - loc()->ball().x();
float tg = tan(largestMid);
float y = tg * x;
// Impact point
float pos_y = loc()->ball().y() + y;
Position impactPosition(true, goalCenter.x(), pos_y, 0.0);
// Check if impact position has space for ball radius
const float distImpactPos = WR::Utils::distance(loc()->ball(), impactPosition);
const float radiusAngle = largestAngle/2.0;
const float distR = radiusAngle * distImpactPos;
if(distR < (1.5 * 0.025)){ // 1.5 * raioDaBola (ruido ft. tristeza)
return Position(false, 0.0, 0.0, 0.0); // bola n passa, debugar isso dps
}
return impactPosition;
}
|
852751d6f967645566f363394bd4b13bf413c2e1 | 5f9ef0fe617dd5b4580cd217574b46f6226f0f50 | /content/app/zppm/source/platform/XMC4800-F144+DAVE/main.cpp | 493bca499d94610b65fdb1426ea80177b251976f | [] | no_license | andrjus/zpp | 72ba620f9affd0f2683213173b1e499901977fbe | ec7c3af1218e6b42c62e174797095bb9e842e1d4 | refs/heads/master | 2023-06-07T07:30:07.539231 | 2021-07-09T00:27:56 | 2021-07-09T00:27:56 | 384,234,800 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 175 | cpp | main.cpp | #include "zppm.hpp"
int main(void)
{
//инициализируем автоматы mexo
zppm::begin();
//наслаждаемся
for(;;)
{
zppm::frontend_loop();
}
}
|
b8c5f98e810e839243d83666f55f08853a9129e2 | 00019d89bab4f2d723aeb9e861a86965c5849023 | /AI_Tribal/GameStateManager/SeekBehaviour.cpp | 0e62c674359fb0ea47ec36155de07880de130eae | [] | no_license | Madcrafty/AI_Resource_Sim | d6a2c77aef014dead98ce4d3fce2785a57d6ae19 | 3f1f6ac831cf813fb28a749376be4a4280b18e2a | refs/heads/master | 2022-12-10T02:12:25.837362 | 2020-09-04T07:11:05 | 2020-09-04T07:11:05 | 285,705,934 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,075 | cpp | SeekBehaviour.cpp | #include "SeekBehaviour.h"
#include "WanderBehaviour.h"
#include "TestState.h"
#include "PlayState.h"
#include "Agent.h"
SeekBehaviour::SeekBehaviour(GameObject* target) : m_Target(target)
{
};
Vector2 SeekBehaviour::Update(Agent* agent, float deltaTime)
{
// TODO:
// ==================================
// Move agent toward target
// - side note: change target from Vector2* to GameObject*
//
// if agent is within range of target
// agent->Eat(target)
// agent->GetApp()->RemoveBerry(target)
// agent->RemoveBehaviour("SeekBehaviour");
// agent->AddBehaviour( new WanderBehaviour() );
// ==================================
//if (IsMouseButtonDown(MOUSE_LEFT_BUTTON))
//{
// m_Target = GetScreenToWorld2D(GetMousePosition(), *m_camera);
//}
// DrawCircle(m_Target.x, m_Target.y, m_pointRadius, BLUE);
Vector2 v = Vector2Subtract(m_Target->GetPosition(), agent->GetPosition());
if (Vector2Distance(m_Target->GetPosition(), agent->GetPosition()) < m_pointRadius)
{
// if seeker on top of target, v is 0 so following calculations are not needed
agent->Eat((ResourceNode*)m_Target);
agent->GetApp()->RemoveBerry((ResourceNode*)m_Target);
agent->RemoveBehaviour("SeekBehaviour");
agent->AddBehaviour(new WanderBehaviour());
}
Vector2 desiredVelocity = Vector2Scale(Vector2Normalize(v), agent->GetMaxSpeed());
//Vector2 desiredVelocity = Vector2Scale(Vector2Normalize(v), m_maxSpeed);
Vector2 steeringForce = Vector2Subtract(desiredVelocity, agent->GetVelocity());
return steeringForce;
}
//Self written stuff
//
//Vector2 DesiredVelocity = Vector2Scale(Vector2Normalize(Vector2Subtract(m_Target, agent->GetPosition())),m_maxSpeed);
//Vector2 SteeringForce = Vector2Subtract(DesiredVelocity, agent->GetVelocity());
//if (agent->GetPosition().x > m_Target.x - m_pointRadius &&
// agent->GetPosition().x < m_Target.x + m_pointRadius &&
// agent->GetPosition().y > m_Target.y - m_pointRadius &&
// agent->GetPosition().y < m_Target.y + m_pointRadius)
//{
// agent->RemoveBehaviour("SeekBehaviour");
//}
//return SteeringForce; |
b75a7a784efa532170bd04047d2d8012fadb4d0c | b0d2ead0d502324a75e29afd67e446cb5a30b9ed | /splitwise_advancealgo.cpp | b9e27d28ca9bb51a45182df612fd037ee04d5cb3 | [] | no_license | AnuragJain23/other-problems | bf578dc051f20abe7797097c6c1ff598e9f93809 | 0a8d0109d064ef967c7c1c409a40fefd70087c39 | refs/heads/master | 2022-11-18T05:55:17.018986 | 2020-07-17T05:04:00 | 2020-07-17T05:04:00 | 280,330,157 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,402 | cpp | splitwise_advancealgo.cpp | #include<bits/stdc++.h>
using namespace std;
class person_compare{
public:
bool operator()(pair<string,int> p1,pair<string,int> p2){
return p1.second<p2.second;
}
};
int main()
{
int no_of_transcations,friends;
cin>>no_of_transcations>>friends;
int amount;
string x,y;
map<string,int> net;
while(no_of_transcations--)
{
cin>>x>>y>>amount;
if(net.count(x)==0)
net[x]=0;
if(net.count(y)==0)
net[y]=0;
net[x]-=amount;
net[y]+=amount;
}
multiset<pair<string,int>,person_compare> m;
for(auto p:net)
{
string person=p.first;
int amount=p.second;
if(net[person]!=0)
m.insert(make_pair(person,amount));
}
int cnt=0;
while(!m.empty())
{
auto low=m.begin();
auto high=prev(m.end());
int debit=low->second;
string debit_person=low->first;
int credit=high->second;
string credit_person=high->first;
m.erase(low);
m.erase(high);
int settlement_amount=min(-debit,credit);
cnt++;
debit+=settlement_amount;
credit-=settlement_amount;
cout<<debit_person<<" will pay "<<settlement_amount<<" to the "<<credit_person<<endl;
if(debit!=0)
m.insert(make_pair(debit_person,debit));
if(credit!=0)
m.insert(make_pair(credit_person,credit));
}
cout<<cnt<<endl;
}
|
3d6b89ef94a6b51f665232c46691bf16bd305b43 | 860e0c5064c51fa1e54e2c8c969a5ad4450519cf | /leetcode/medium_kth_smallest_element_in_a_bst.cpp | d2413b7d9b49a3d718f66122450c854cc24c8273 | [] | no_license | wonghoifung/tips | 827eaa04c55f2b4e7debf5ea0cd4feb00d53e822 | 102784596dc410505c1036d876633b0e063345e7 | refs/heads/master | 2021-01-23T21:11:57.196397 | 2018-06-17T03:16:08 | 2018-06-17T03:16:08 | 46,920,349 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,778 | cpp | medium_kth_smallest_element_in_a_bst.cpp | #include <string>
#include <vector>
#include <iostream>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <memory>
#include <sstream>
#include <algorithm>
#include <bitset>
#include <numeric>
#include <initializer_list>
#include <math.h>
#include <assert.h>
#include <time.h>
#include <stdint.h>
using namespace std;
class mytimer
{
private:
time_t start_;
public:
mytimer()
{
start_ = time(NULL);
}
~mytimer()
{
time_t end = time(NULL);
cout << end - start_ << "s" << endl;
}
};
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
class Solution {
public:
TreeNode* iterativeInorder(TreeNode* root, int k) {
stack<TreeNode*> st;
st.push(root);
TreeNode* n = st.top()->left;
while (st.size())
{
while (n)
{
st.push(n);
n = n->left;
}
n = st.top();
st.pop();
k -= 1;
if (k == 0) return n;
if (n->right)
{
st.push(n->right);
n = st.top()->left;
}
else
{
n = NULL;
}
}
return NULL;
}
TreeNode* inorder(TreeNode* root, int& k) {
if (root == NULL) return NULL;
if (root->left)
{
TreeNode* l = inorder(root->left, k);
if (l) return l;
}
k -= 1;
if (k == 0) return root;
if (root->right)
{
TreeNode* r = inorder(root->right, k);
if (r) return r;
}
return NULL;
}
int kthSmallest(TreeNode* root, int k) {
/*TreeNode* n = inorder(root, k);*/
TreeNode* n = iterativeInorder(root, k);
assert(n);
return n->val;
}
};
int main()
{
Solution s;
{
TreeNode n1(1), n2(2);
n1.right = &n2;
int k = 2;
cout << s.kthSmallest(&n1, k) << endl;
}
std::cin.get();
return 0;
}
|
42b3f49b475398477f9339d40f12f23daeb8e4a2 | c66d91cbd970097d637382598c44e50b240fcc3a | /計算MVP數值.cpp | 25599c79ea30c834f86bf7f45b2980708e502b52 | [] | no_license | k0k8k0k7/OOP | cb102e461021ea30af218ac7d7f0a32150644f69 | 86a80a184fcb0575e04c22693f9cc1b0f3ccb7bd | refs/heads/master | 2020-06-08T15:36:36.201715 | 2019-06-23T03:49:59 | 2019-06-23T03:49:59 | 193,254,386 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 333 | cpp | 計算MVP數值.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d,e,t;
cin>>a>>b>>c>>d>>e;
t=(a*1+b*2+c*2+d*2)-(e*2);
if(t>=45)
cout<<"A\n";
else if(45>t&&t>=35)
cout<<"B\n";
else if(35>t&&t>=25)
cout<<"C\n";
else if(25>t)
cout<<"D\n";
return 0;
}
|
624948629cbeaab647620ffcad2e859f116b576d | 287e50335fcd8ea6ef72b339f0ce9328fce5c1fa | /1-5-zhanggaolei.cpp | 29b9523c0993d11bd9aee63424693f0c6c305ae8 | [] | no_license | zhanggaolei001/CppExercises | 56a2fb84ccd02874d0d55077b446517eb85ed8be | c8fb64d4380ce44f17ff721925fadf703dedae20 | refs/heads/master | 2020-09-26T13:33:27.052746 | 2019-12-12T12:16:15 | 2019-12-12T12:16:17 | 226,265,243 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 517 | cpp | 1-5-zhanggaolei.cpp | #include "1-5-zhanggaolei.h"
int months[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 };
int months_leap[12] = { 31,29,31,30,31,30,31,31,30,31,30,31 };
bool is_leap_year(int year) {
if (year % 4 == 0)
{
return true;
}return false;
}
int get_day_of_year(int year, int month, int day) {
int* ms;
if (is_leap_year(year)) {
ms = months_leap;
}
else
{
ms = months;
}
int days = 0;
for (int i = 0; i < month; i++)
{
days += ms[month];
}
days += day;
return days;
} //Åж¨ÊÇ·ñΪÈòÄê
|
26c1f05245b7331ed54403909a6d138c84d086eb | e2119ddc29757a786c983499629c4f92510658ef | /src/KernelAlignment/Multiple/QuickPosteriorStage.h | f4efe648d663b868ad0fef1adc26f17d40b2ba78 | [] | no_license | refresh-bio/QuickProbs | 623ee08c4143d1d2d5d1260375b401f6ec750378 | 3ec12212ed7268c9b1f54cb0f2fa087e1f54dba1 | refs/heads/master | 2022-06-07T23:05:13.967075 | 2022-05-19T19:17:11 | 2022-05-19T19:17:11 | 48,433,949 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 898 | h | QuickPosteriorStage.h | #pragma once
#include "Hardware/OpenCl.h"
#include "Hardware/Kernel.h"
#include "Alignment/Multiple/PosteriorStage.h"
#include "PosteriorTasksWave.h"
#include "KernelSet.h"
#include <atomic>
namespace quickprobs
{
class QuickPosteriorStage : public PosteriorStage
{
public:
QuickPosteriorStage(std::shared_ptr<clex::OpenCL> cl, std::shared_ptr<Configuration> config);
protected:
std::shared_ptr<clex::OpenCL> cl;
std::vector<KernelSet> kernelSets;
std::vector<int> maxWorkgroupSizes;
int64_t sparseBytes;
int64_t denseBytes;
double timeCpuProcessing;
virtual void run(
ISequenceSet& set,
Array<float>& distances,
Array<SparseMatrixType*>& matrices);
virtual void computeWaveCpu(
const PosteriorTasksWave& wave,
const ContiguousMultiSequence& sequences,
Array<float>& distances,
Array<SparseMatrixType*>& matrices,
std::atomic< ::size_t>& sparseBytes);
};
}; |
aef080f5f30edf3e0d692960cd732d52e3a52445 | b2e5e4affd23ec679b77ada3871b7862df74e5c2 | /tasks/Movement.cpp | 54db474b7085f83bb0aba4465ab4d57e003d5ce1 | [] | no_license | auv-avalon/orogen-rawControlCommandConverter | af52bde5ed21053e7f8501fdd4189b95a1351733 | fa8f1d373926d4488dff0c63cd56a4058c2dc5b7 | refs/heads/master | 2021-01-15T17:29:24.553010 | 2015-06-02T14:27:11 | 2015-06-02T14:27:11 | 26,800,338 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,266 | cpp | Movement.cpp | /* Generated from orogen/lib/orogen/templates/tasks/Movement.cpp */
#include "Movement.hpp"
#include <base/commands/AUVMotion.hpp>
using namespace raw_control_command_converter;
Movement::Movement(std::string const& name, TaskCore::TaskState initial_state)
: MovementBase(name, initial_state)
{
initialized=false;
heading_updated=false;
depth=0;
last_ground_position = -std::numeric_limits<double>::max();
do_ground_following = false;
target_depth=0;
last_target_depth_valid = false;
}
/// The following lines are template definitions for the various state machine
// hooks defined by Orocos::RTT. See Movement.hpp for more detailed
// documentation about them.
// bool Movement::configureHook()
// {
// if (! MovementBase::configureHook())
// return false;
// return true;
// }
// bool Movement::startHook()
// {
// if (! MovementBase::startHook())
// return false;
// return true;
// }
void Movement::updateHook()
{
MovementBase::updateHook();
controldev::RawCommand cmd;
while(_orientation_readings.read(orientation) == RTT::NewData){
if(!initialized){
double heading = base::getYaw(orientation.orientation);
target_heading = heading;
if(!orientation.hasValidPosition(2)){
return error(GOT_POSE_WITHOUT_DEPTH);
}
depth=orientation.position[2];
initialized=true;
}
}
if(!initialized)
return;
{
base::samples::RigidBodyState rbs;
while(_ground_distance.read(rbs) == RTT::NewData){
if(rbs.position.z() != 0.0)
last_ground_position = depth - rbs.position.z();
}
}
if(_raw_command.read(cmd) != RTT::NoData){
base::commands::AUVMotion auv;
double target_depth = cmd.axisValue[0][4] * _diveScale.get();
if(_delta_depth_control.get()){
if(target_depth != 0.0){
target_depth += depth;
last_target_depth_valid=true;
}else{
if(last_target_depth_valid){
target_depth = depth;
last_target_depth_valid=false;
}else{
target_depth = this->target_depth;
}
}
this->target_depth = target_depth;
}
base::LinearAngular6DCommand world;
world.time = base::Time::now();
base::LinearAngular6DCommand world_depth;
world_depth.time = base::Time::now();
base::LinearAngular6DCommand aligned_velocity;
aligned_velocity.time = world.time;
auv.x_speed = cmd.axisValue[0][1];
aligned_velocity.linear(0) = cmd.axisValue[0][1];
auv.y_speed = cmd.axisValue[0][0] ;
aligned_velocity.linear(1) = cmd.axisValue[0][0];
world.angular(1) = cmd.axisValue[0][5];
double heading = base::getYaw(orientation.orientation);
if(!_do_ground_following){
auv.z = target_depth;
world.linear(2) = target_depth;
}else{
world_depth.linear(2) = last_ground_position + target_depth;
if(last_ground_position == -std::numeric_limits<double>::max()){
return error(SHOULD_DO_GROUND_FOLLOWING_WITHOUT_GROUND_DISTANCE);
}
auv.z = last_ground_position + target_depth;
}
if(fabs(cmd.axisValue[0][2]) != 0.0){
heading_updated=true;
target_heading = heading - (-cmd.axisValue[0][2] * (M_PI/2.0))*_turnScale.get();
}else if(heading_updated==true){
target_heading = heading;
heading_updated=false;
}
if(_absolute_heading.get()){
target_heading = cmd.axisValue[0][2] * M_PI;
}
world.angular(0) = 0;
auv.heading = target_heading;
world.angular(2) = target_heading;
while(world.angular(2) > M_PI)
world.angular(2) -= 2*M_PI;
while(world.angular(2) < -M_PI)
world.angular(2) += 2*M_PI;
_motion_command.write(auv);
_world_command.write(world);
_world_command_depth.write(world_depth);
_aligned_velocity_command.write(aligned_velocity);
}
}
// void Movement::errorHook()
// {
// MovementBase::errorHook();
// }
// void Movement::stopHook()
// {
// MovementBase::stopHook();
// }
// void Movement::cleanupHook()
// {
// MovementBase::cleanupHook();
// }
|
0cd3b9f0b84370b525bc9ba8b86e5f3ceeb451e7 | fed141f08932a193d2b916e1424a001701b5dd24 | /console.cpp | 4238be83cbdf37efca84f1dbcc41eaa8abd06ffd | [] | no_license | allkim303/Line-Editor-Program | 8bb392260ecf3a92e7b8f041a5daa3358c448441 | 18688ba4a871c31520af042560d456e1e0b5be43 | refs/heads/master | 2021-01-09T20:20:52.529666 | 2017-02-08T16:08:45 | 2017-02-08T16:08:45 | 81,268,783 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,384 | cpp | console.cpp | // Console Input Output Library - Unified Implementation
// console.cpp
//
// Fardad Soleimanloo, Chris Szalwinski
// August 25 2011
// Version 1.0
//
/* table of platforms */
#define CIO_LINUX 1
#define CIO_MICROSOFT 2
#define CIO_BORLAND 3
#define CIO_UNIX 4
/* auto-select your platform here */
#if defined __BORLANDC__
#define CIO_PLATFORM CIO_BORLAND
#define CIO_LOWER_LEVEL_H_ <conio.h>
#elif defined _MSC_VER
#define CIO_PLATFORM CIO_MICROSOFT
#include <windows.h>
#define CIO_LOWER_LEVEL_H_ <conio.h>
#elif defined __MACH__
#define CIO_PLATFORM CIO_UNIX
#define CIO_LOWER_LEVEL_H_ <curses.h>
#elif defined __GNUC__
#define CIO_PLATFORM CIO_LINUX
#define CIO_LOWER_LEVEL_H_ <ncurses.h>
#elif !defined __BORLANDC__ && !defined _MSC_VER && !defined __GNUC__ && !defined __MACH__
#error CONSOLE_PLT is undefined
#endif
extern "C" {
#include CIO_LOWER_LEVEL_H_
}
#include "console.h"
#include "keys.h"
namespace cio { // continuation of cio namespace
//----------------- Platform-Dependent Section ------------------------------
//
#if CIO_PLATFORM == CIO_LINUX || CIO_PLATFORM == CIO_UNIX
// Console initializes the Console Input Output object
//
Console::Console() {
::initscr();
::noecho();
::cbreak();
::keypad(stdscr,1);
bufrows = LINES;
bufcols = COLS;
if (bufrows * bufcols > 0)
buffer = new char[bufrows * bufcols];
else
buffer = 0;
clear();
}
Console::~Console() {
clear();
setPosition(0, 0);
delete [] buffer;
::endwin();
}
void Console::clear() {
::erase();
clearBuffer();
}
int Console::getKey() {
int key;
::refresh();
key = ::getch();
switch(key) {
// KEY_* is defined in *curses.h
case KEY_HOME: key = HOME; break;
case KEY_UP: key = UP; break;
case KEY_DOWN: key = DOWN; break;
case KEY_LEFT: key = LEFT; break;
case KEY_RIGHT: key = RIGHT; break;
case KEY_END: key = END; break;
case KEY_NPAGE: key = PGDN; break;
case KEY_PPAGE: key = PGUP; break;
case KEY_DC: key = DEL; break;
case KEY_IC: key = INSERT; break;
case KEY_F(1): key = F(1); break;
case KEY_F(2): key = F(2); break;
case KEY_F(3): key = F(3); break;
case KEY_F(4): key = F(4); break;
case KEY_F(5): key = F(5); break;
case KEY_F(6): key = F(6); break;
case KEY_F(7): key = F(7); break;
case KEY_F(8): key = F(8); break;
case KEY_F(9): key = F(9); break;
case KEY_F(10): key = F(10); break;
case KEY_F(11): key = F(11); break;
case KEY_F(12): key = F(12); break;
case KEY_ENTER: key = ENTER; break;
case KEY_BACKSPACE: key = BACKSPACE; break;
default:
if (key < 0 || key > '~')
key = UNKNOWN;
}
return key;
}
// setPosition moves the cursor to row r column c
//
void Console::setPosition(int r, int c) {
curRow = r;
curCol = c;
::move(r, c);
}
// drawCharacter draws the character at the current cursor position
//
void Console::drawCharacter() {
if (buffer) ::addch(buffer[curRow * bufcols + curCol]);
}
// << inserts character c at the current cursor position
//
Console& operator<<(Console& os, char c) {
::addch(c);
os.setCharacter(c);
return os;
}
#elif CIO_PLATFORM == CIO_MICROSOFT
HANDLE consh;
CONSOLE_SCREEN_BUFFER_INFO bufinfo;
// Console initializes the Console Input Output object
//
Console::Console() {
consh = ::GetStdHandle(STD_OUTPUT_HANDLE);
::GetConsoleScreenBufferInfo(consh, &bufinfo);
bufrows = bufinfo.srWindow.Bottom + 1;
bufcols = bufinfo.srWindow.Right + 1;
if (bufrows * bufcols > 0)
buffer = new char[bufrows * bufcols];
else
buffer = 0;
clear();
}
Console::~Console() {
clear();
setPosition(0, 0);
delete [] buffer;
}
void Console::clear() {
DWORD
len = bufrows * bufcols,
actual;
TCHAR ch = ' ';
COORD coord;
coord.X = 0;
coord.Y = 0;
::FillConsoleOutputCharacter(consh, ch, len, coord, &actual);
clearBuffer();
}
int Console::getKey() {
int key;
key = ::_getch();
/* Platform Specific Key Code */
#define KEY_ENTER 13
if (key == 0) {
key = ::_getch();
/* Platform Specific Key Codes */
#define KEY_F0 58
#define KEY_F(n) (KEY_F0+(((n)<=10)?(n):((n) + 64)))
switch(key) {
case KEY_F(1): key = F(1); break;
case KEY_F(2): key = F(2); break;
case KEY_F(3): key = F(3); break;
case KEY_F(4): key = F(4); break;
case KEY_F(5): key = F(5); break;
case KEY_F(6): key = F(6); break;
case KEY_F(7): key = F(7); break;
case KEY_F(8): key = F(8); break;
case KEY_F(9): key = F(9); break;
case KEY_F(10): key = F(10); break;
default: key = UNKNOWN;
}
} else if (key == 224) {
key = ::_getch();
/* Platform Specific Key Codes */
#define KEY_HOME 71
#define KEY_UP 72
#define KEY_DOWN 80
#define KEY_LEFT 75
#define KEY_RIGHT 77
#define KEY_END 79
#define KEY_NPAGE 81
#define KEY_PPAGE 73
#define KEY_DC 83
#define KEY_IC 82
#define KEY_ENTER 13
switch(key) {
case KEY_HOME: key = HOME; break;
case KEY_UP: key = UP; break;
case KEY_DOWN: key = DOWN; break;
case KEY_LEFT: key = LEFT; break;
case KEY_RIGHT: key = RIGHT; break;
case KEY_END: key = END; break;
case KEY_NPAGE: key = PGDN; break;
case KEY_PPAGE: key = PGUP; break;
case KEY_DC: key = DEL; break;
case KEY_IC: key = INSERT; break;
case KEY_F(11): key = F(11); break;
case KEY_F(12): key = F(12); break;
default: key = UNKNOWN;
}
} else if (key < 0 || key > '~')
key = UNKNOWN;
else if (key == KEY_ENTER)
key = ENTER;
return key;
}
// setPosition moves the cursor to row r column c
//
void Console::setPosition(int r, int c) {
curRow = r;
curCol = c;
COORD coord;
coord.X = c;
coord.Y = r;
::SetConsoleCursorPosition(consh, coord);
}
// drawCharacter draws the character at the current cursor position
//
void Console::drawCharacter() {
if (buffer) ::_putch(buffer[curRow * bufcols + curCol]);
}
// << inserts character c at the current cursor position
//
Console& operator<<(Console& os, char c) {
::_putch(c);
os.setCharacter(c);
return os;
}
#elif CIO_PLATFORM == CIO_BORLAND
// Console initializes the Console Input Output object
//
Console::Console() {
struct text_info x;
::gettextinfo(&x);
bufrows = x.screenheight;
bufcols = x.screenwidth;
if (bufrows * bufcols > 0)
buffer = new char[bufrows * bufcols];
else
buffer = 0;
clear();
}
Console::~Console() {
clear();
setPosition(0, 0);
delete [] buffer;
}
void Console::clear(){
::clrscr();
clearBuffer();
}
int Console::getKey() {
int key;
key = ::getch();
/* Platform Specific Key Code */
#define KEY_ENTER 13
if (key == 0) {
key = ::getch();
/* Platform Specific Key Codes */
#define KEY_HOME 71
#define KEY_UP 72
#define KEY_DOWN 80
#define KEY_LEFT 75
#define KEY_RIGHT 77
#define KEY_END 79
#define KEY_NPAGE 81
#define KEY_PPAGE 73
#define KEY_DC 83
#define KEY_IC 82
#define KEY_F0 58
#define KEY_F(n) (KEY_F0+(((n)<=10)?(n):((n) + 64)))
switch(key) {
case KEY_HOME: key = HOME; break;
case KEY_UP: key = UP; break;
case KEY_DOWN: key = DOWN; break;
case KEY_LEFT: key = LEFT; break;
case KEY_RIGHT: key = RIGHT; break;
case KEY_END: key = END; break;
case KEY_NPAGE: key = PGDN; break;
case KEY_PPAGE: key = PGUP; break;
case KEY_DC: key = DEL; break;
case KEY_IC: key = INSERT; break;
case KEY_F(1): key = F(1); break;
case KEY_F(2): key = F(2); break;
case KEY_F(3): key = F(3); break;
case KEY_F(4): key = F(4); break;
case KEY_F(5): key = F(5); break;
case KEY_F(6): key = F(6); break;
case KEY_F(7): key = F(7); break;
case KEY_F(8): key = F(8); break;
case KEY_F(9): key = F(9); break;
case KEY_F(10): key = F(10); break;
case KEY_F(11): key = F(11); break;
case KEY_F(12): key = F(12); break;
default:
key = UNKNOWN;
}
} else if (key < 0 || key > '~')
key = UNKNOWN;
else if (key == KEY_ENTER)
key = ENTER;
return key;
}
// setPosition moves the cursor to row r column c
//
void Console::setPosition(int r, int c) {
curRow = r;
curCol = c;
::gotoxy(c + 1, r + 1);
}
// drawCharacter draws the character at the current cursor position
//
void Console::drawCharacter() {
if (buffer) ::putch(buffer[curRow * bufcols + curCol]);
}
// << inserts character c at the current cursor position
//
Console& operator<<(Console& os, char c) {
::putch(c);
os.setCharacter(c);
return os;
}
#endif
//--------------------------- Platform-Independent Section ------------------
// Definition of the Console Input Output object
//
Console console;
// getRows retrieves the number of rows in the output object
//
int Console::getRows() const {
return bufrows;
}
// getCols retrieves the number of columns in the output object
//
int Console::getCols() const {
return bufcols;
}
// getPosition retrieves the current position of the cursor
//
void Console::getPosition(int& r, int& c) const {
r = curRow;
c = curCol;
}
// clearBuffer clears the cio buffer and resets the cursor
// position to the top left corner
//
void Console::clearBuffer() {
for (int i = 0; buffer && i < bufrows * bufcols; i++)
buffer[i] = ' ';
setPosition(0, 0);
}
// pause accepts a key press from the input object
//
void Console::pause() {
getKey();
}
// setCharacter sets the character at the current cursor position to c
// and moves the currect cursor position one character towards the end
//
void Console::setCharacter(char c) {
if (buffer)
buffer[curRow * bufcols + curCol++] = c;
}
// getCharacter returns the character at the current cursor position
//
char Console::getCharacter() const {
return buffer ? buffer[curRow * bufcols + curCol] : ' ';
}
// >> extracts the next key from the input object
//
Console& operator>>(Console& is, int& c) {
c = is.getKey();
return is;
}
// << inserts string str at the current cursor position
Console& operator<<(Console& os, const char* str) {
for(int i = 0; str[i]; i++)
os << str[i];
return os;
}
} // end namespace cio
|
6c84b84741fa76c1e67a14a523b8d8bdcb892de9 | 38707685ed95b96e255c9b8a9807c95feeaa07ea | /OpenGL/src/Mesh.cpp | 57ed804c89459124f7ee8756c2df909c220aaf03 | [] | no_license | IchiSumeragi/OpenGL-tests | 3eedc7fe4291d0c598e4ffb0e0e3014e1e568aa6 | 97d7ad42d7a126ed3338d00d824295a4bb67493f | refs/heads/master | 2020-05-16T00:21:44.946620 | 2019-04-25T23:57:50 | 2019-04-25T23:57:50 | 182,572,226 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,267 | cpp | Mesh.cpp | #include "Mesh.h"
#include "VertexBufferLayout.h"
Mesh::Mesh(std::vector<Vertex> vertices, std::vector<unsigned int> indices, std::vector<Texture> textures)
: vertices(std::move(vertices)), indices(std::move(indices)), textures(std::move(textures)), vao(),
vbo(Mesh::vertices.data(), Mesh::vertices.size() * sizeof(Vertex)), ibo(Mesh::indices.data(), Mesh::indices.size())
{
}
//Mesh::Mesh(Mesh &&other)
//{
// vertices = other.vertices;
// indices = other.indices;
// textures = other.textures;
//
// vao = other.vao;
// vbo = other.vbo;
// ibo = other.ibo;
//}
//
//Mesh & Mesh::operator=(Mesh && other)
//{
// if (this != &other)
// {
// Release();
//
// vertices = other.vertices;
// other.vertices.erase(vertices.begin(), vertices.end());
//
// indices = other.indices;
// other.indices.erase(indices.begin(), indices.end());
//
// textures = other.textures;
// other.textures.erase(textures.begin(), textures.end());
// }
//
// return *this;
//}
//
//void Mesh::Release()
//{
// vertices.erase(vertices.begin(), vertices.end());
// vertices.shrink_to_fit();
//
// vertices.erase(vertices.begin(), vertices.end());
// vertices.shrink_to_fit();
//
// vertices.erase(vertices.begin(), vertices.end());
// vertices.shrink_to_fit();
//}
Mesh::~Mesh()
{
} |
99f68f35a05bf2d4fdf30aae8a9acb2af489797e | 353463671652175cf1322cf739bd77b14f67e800 | /Section2_Backtracking/NQueens.cpp | f0f8b1676dc58bd87b68480c543cc6a5a9b901ca | [] | no_license | shanerodricks/UDemy_DataStructuresCourse | b32ced5b33c20fe86b3655fd4650b0ada6262a13 | e87e853db483fd115bef9762390c8840923aa459 | refs/heads/main | 2023-07-11T07:16:14.787744 | 2021-08-29T00:11:09 | 2021-08-29T00:11:09 | 397,339,570 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,911 | cpp | NQueens.cpp | #inclue <iostream>
using std::cout;
QueensProblem::QueensProblem(int _numOfQueens)
: numOfQueens(_numOfQueens)
{
chessTable.resize(numOfQueens);
for (auto &chessRow : chessTable)
chessRow.resize(numOfQueens);
}
void QueensProblem::solve()
{
//solve the problem starting with the first column(0)
if (setQueens(0)) {
printQueens();
}
else {
cout << "There is no solution...\n";
}
}
bool QueensProblem::setQueens(int colIndex)
{
//if we have considered as many queens as the number of rows/columns then we are done
//so we have found valid places for all the Queens
if(colIndex == numOfQueens) {
return true;
}
//consider all the rows in a single column to check where to put the queen
for (int rowIndex - 0; rowIndex < numOfQueens; rowIndex++) {
//check if the given location is valid (queen can not be attacked by other queens)
if(isPlaceValid(rowIndex, colIndex)) {
//vaslid place so put a queen on this location
chessTable[rowIndex][colIndex] = 1;
//check the next queen (next column) (every column has one queen)
//we manage to put a queen in the next column --> return true
if(setQueens(colIndex + 1)) {
return true;
}
//we failed to put a given queen in a given column: BACKTRACK
//1: denotes a queen and 0: is an empty space so we reintialize the location
//keep iterating till valid place for queen
chessTable[rowIndex][colIndex] = 0;
}
}
//we habe considered all the rows without any result which means no solution
// we are not able to put the queens such that they cannot attack each pther
// so we backtrack, maybe change the position of the previous Queens
return false;
}
bool QueensProblem::isPlaceValid(int rowIndex, int colIndex) const
{
//there can not be another queen in the same row: they would be able to attack eachother
for(int i =0; i < colIndex; i++)
if(chessTable[rowIndex][i] == 1)
return false;
// there is a queen in the diagonal frame (from top left to bottom right direction)
for(int i = rowIndex, j = colIndex; i >= 0 && j >=0; i--, j--){
if (chessTable[i][j] == 1)
return false;
}
//there is a queen in the diagonal (from top right to bottom left direction)
for (int i = rowIndex, j = colIndex; i < numOfQueens && j >= 0; i++, j--){
if (chessTable[i][j] == 1)
return false;
}
return true;
}
void QueensProblem::printQueens()const
{
//there is a queen where the table contains a 1 else there is no queens (0 value)
//* represents the queens and - is an empty state
for(size_t i = 0; i < chessTable.size(); i++) {
for(size_t j =0; j < chessTable.size(); j++) {
if(chessTable[i][j] == 1) {
cout << " * ";
}
else {
cout << " - ";
}
}
cout << '\n';
}
}
|
c9b9f9666921fa96cefb4aa040872fe11833e113 | 2755e785efcac6110cc7245053ba0f3896445baa | /SplashingWaterClient/SendStrategy.h | e2e1a6594a38d3ce91cb5c8219ec772370fc3ed6 | [] | no_license | liuspirit/SplashingWaterClient | 84acd91d9cd510b16c2b3b1c4f5d893d06983146 | 7702d538fb9b86516b7612744ed6aa7b92eca9b1 | refs/heads/master | 2022-11-25T08:17:46.622772 | 2020-07-25T08:25:33 | 2020-07-25T08:25:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 322 | h | SendStrategy.h | #pragma once
#include "IStrategy.h"
class SendStrategy :
public IStrategy
{
public:
SendStrategy(string &strFriendAccount, string &strMessage);
virtual ~SendStrategy();
public:
virtual void buildPackage();
private:
SendStrategy();
private:
string m_strFriendAccount;
string m_strMessage;
};
|
8608e1deb970bb4b8a433aa7766358f2e309934b | d27a676805fd6763d835c3dcf84026dd56e77d78 | /SafeDiskManager/DialogProperties.h | b273094486efe72defd86b287d9af41b1803c7b4 | [] | no_license | leoqingliu/StateGrid | f106affd49745c0d169e99233fdb834421a4257f | 0ddb9751ca2f642e34b5466e2cf07c061abf59c9 | refs/heads/master | 2021-01-19T12:52:49.512389 | 2017-03-11T07:25:13 | 2017-03-11T07:25:13 | 82,368,869 | 2 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 751 | h | DialogProperties.h | #pragma once
#include "afxdtctl.h"
#include "afxcmn.h"
// CDialogProperties dialog
class CDialogProperties : public CDialog
{
DECLARE_DYNAMIC(CDialogProperties)
public:
CDialogProperties(CWnd* pParent = NULL); // standard constructor
virtual ~CDialogProperties();
// Dialog Data
enum { IDD = IDD_DIALOG_PROPERTIES };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
public:
DWORD m_dwID;
CString m_strIPOut;
CString m_strIPIn;
CString m_strUserIn;
CString m_strLastLogin;
CString m_strHostname;
CString m_strDeviceSerial;
CString m_strComment;
afx_msg void OnBnClickedOk();
virtual BOOL OnInitDialog();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
};
|
e011275347d6419c98f300b4c88782d22b9ec449 | 5204d0d4bbdb2c94d455126b6864b102d891aff6 | /player/src/main/jni/player/AudioDecoder.cpp | 00f7d50e47b8466089e64cab1e2f023c8da2ee17 | [] | no_license | luozhanming/MingPlayer | 16da95f4770d3c3c6dbbac2099ce9d2b64656c45 | b659be346f51b96491f2844277467554f4130ee3 | refs/heads/master | 2023-06-07T22:26:27.679345 | 2021-06-28T15:10:12 | 2021-06-28T15:10:12 | 380,224,770 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 68 | cpp | AudioDecoder.cpp | //
// Created by 45955 on 2021-06-26.
//
#include "AudioDecoder.h"
|
0a04b9d5958d74a3c2ab8594afbe1715b5301562 | 36ed85609e97bc73c8c7f2dc257ba69507e6abd2 | /sample.cpp | 8f4b4392c0c7f879fcc3f954a945a4b777592b17 | [] | no_license | rk946/cpp | 464f57cab02001fd0a79f1354cce682a32d368bd | 256d175b0bc49e3e51eb828dbd637eaac43b603b | refs/heads/master | 2023-07-14T05:49:13.764214 | 2021-08-16T12:32:12 | 2021-08-16T12:32:12 | 275,735,567 | 0 | 0 | null | 2021-08-16T09:29:23 | 2020-06-29T05:06:07 | C++ | UTF-8 | C++ | false | false | 716 | cpp | sample.cpp |
#include<iostream>
<<<<<<< HEAD
=======
#include<vector>
#include<algorithm>
#include<stack>
>>>>>>> c0efdc7a2927456c7c248ee165b6971d1135d8f8
using namespace std;
<<<<<<< HEAD
void print(int *x){
cout << *x;
}
int main(void)
{
const int* a;
int b = 15;
a=&b;
int*temp = const_cast<int*>(a);
print(temp);
=======
bool compare(pair<int,int> a, pair<int,int> b)
{
return a.first>b.first;
}
int main()
{
vector<pair<int,int>> a;
for(int i=0;i<10;i++)
{
a.push_back(make_pair(10-i,i));
}
sort(a.begin(),a.end(),compare);
cout << "Printing \n";
for(int i=0;i<10;i++)
cout << a[i].first <<" , " <<a[i].second << "\n";
return 0;
>>>>>>> c0efdc7a2927456c7c248ee165b6971d1135d8f8
return 0;
} |
e8ae710393bc8d359a704c0ac2e51be603646030 | 3c82b93243c23108d4a5fc3d5fb3766c2fd20576 | /GPMBench/transactional/gpDB/example/test.cpp | 09c167be786af9031c682972d95323e5e3f428bb | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | csl-iisc/GPM-ASPLOS22 | 6af1e102c276472e20fd861e626ca7a7993c87ad | b58cb5fa44079036f98c857988c0ea49038eb4ff | refs/heads/master | 2023-04-18T17:44:09.043763 | 2022-04-10T03:11:28 | 2022-04-10T03:11:28 | 433,300,625 | 31 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 1,741 | cpp | test.cpp |
/**
* This is a simple example of a program that uses the Virginian database. This
* is intended to help begin experimenting with the code, there is significant
* functionality that is not utilized. For more information on the functions
* used below, see the documentation or source files. A make file is included to
* show how compilation works.
*/
#include <stdio.h>
#include <unistd.h>
#include "virginian.h"
int main()
{
// declare db state struct
virginian v;
// delete database file if it exists
unlink("testdb");
// initialize state
virg_init(&v);
// create new database in testdb file
virg_db_create(&v, "testdb");
// create table called test with an integer column called col0
virg_table_create(&v, "test", VIRG_INT);
virg_table_addcolumn(&v, 0, "col0", VIRG_INT);
// insert 100 rows, using i as the row key and x as the value for col0
int i, x;
for(i = 0; i < 100; i++) {
x = i * 5;
virg_table_insert(&v, 0, (char*)&i, (char*)&x, NULL);
}
// declare reader pointer
virg_reader *r;
// set optional query parameters
v.use_multi = 0; // not multithreaded
v.use_gpu = 0; // don't use GPU
v.use_mmap = 0; // don't use mapped memory
// execute query
virg_query(&v, &r, "select id, col0 from test where col0 <= 25");
// output result column names
unsigned j;
for(j = 0; j < r->res->fixed_columns; j++)
printf("%s\t", r->res->fixed_name[j]);
printf("\n");
// output result data
while(virg_reader_row(&v, r) != VIRG_FAIL) {
int *results = (int*)r->buffer;
printf("%i\t%i\n", results[0], results[1]);
}
// clean up after query
virg_reader_free(&v, r);
virg_vm_cleanup(&v, r->vm);
free(r);
// close database
virg_close(&v);
// delete database file
unlink("testdb");
}
|
65da0258f36e200153e8b2dec79d36cb343427f6 | 99ada53c0f7ec38f52b961fc38aa868b230360fe | /PlcWatcher/PlcWatcher/PLC.h | 4e3a14db1d7dabe8898a0135bd4d789c50c1290c | [] | no_license | 519984307/WheelMonitor | 8284e90602566682fcdad28ad8296910230eadd2 | 06f0fab67b42280481d51bc296f31176e22bf819 | refs/heads/master | 2023-03-20T02:54:39.730882 | 2019-03-19T12:07:30 | 2019-03-19T12:07:30 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,425 | h | PLC.h | #pragma once
#include <QObject>
class QSerialPort;
class PLC : public QObject
{
Q_OBJECT
public:
PLC(QObject *parent = Q_NULLPTR);
~PLC();
void start();
void stop();
void connect();
private:
QSerialPort* plcSerialPort;
bool bUsrCtrl = false;
bool bConnected = false;
/* 注意:单次读写的耗时大概在~300ms */
static const int cio0Interval = 1000; //!< 读取cio0(传感器)的间隔,ms
static const int serialport_timeout = 800;//响应超时时间ms,应小于读取间隔
void writePLC(QByteArray plcData);
QByteArray readPLC(QByteArray plcData);
//PC与PLC的通信,采用HOSTLINK协议的C-MODE指令
//e.g., cmd = '@00RR00020001', fcs code = '0x43', the full code = "@00RR0002000143*\r"
QByteArray getFCSCode(QByteArray cmd) const; //!< 根据命令码获取FCS码,通常情况下不需要直接调用
QByteArray getFullCode(QByteArray cmd) const;//!< 根据命令码获取完整指令码
QByteArray genRRCode(int addr, int num) const; //!< 返回读取cio所需要的完整指令码
QByteArray genWRCode(int addr, QByteArray data) const; //!< 返回写入cio所需要的完整指令码
bool checkAnsCode(QByteArray ansCode) const; //!< 检查应答是否正确
QByteArrayList getRRData(QByteArray ansCode) const; //!< 从应答中提取n个字的数据(hex)
private slots:
void readSensorPeriodically();
signals:
void cio0Update(int cio);
void connectErr(int code);
};
|
5b5b497651ba43c6fca9ef0350047b0289a306ed | 612d4d1158728789751eaba36cabc62a07e80038 | /bankmanager/atm.h | 807b38e3070373b3e9006245a6e6a29b5f34f55c | [] | no_license | Dhannibal/proj_practice_1 | d779417359474ba12be3013e649d4beedcd63e0e | f7060ad3c26d49dd9be13ce164743f39471f3f55 | refs/heads/master | 2021-07-13T13:45:32.844235 | 2020-06-15T03:09:10 | 2020-06-15T03:09:10 | 164,793,398 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 791 | h | atm.h | #ifndef ATM_H
#define ATM_H
#include <QDialog>
#include <QSqlTableModel>
#include <QSqlRecord>
#include "transmoney.h"
#include "save.h"
#include "drawmoney.h"
namespace Ui {
class ATM;
}
class ATM : public QDialog
{
Q_OBJECT
public:
explicit ATM(QString cardnum, QWidget *parent = 0);
~ATM();
private slots:
void renew(double money);
private slots:
void on_pushButton_clicked();
void on_pushButton_2_clicked();
void on_pushButton_4_clicked();
void on_pushButton_3_clicked();
private:
Ui::ATM *ui;
QString cardnum;
QString name;
double money;
QString phonenum;
int flag;
QString idcard;
QSqlTableModel *model;
transmoney *trans;
Save *save;
int id;
drawmoney *draw;
int Gender;
};
#endif // ATM_H
|
f03fd3550afe851c19a355e19abfc495f86396ac | 8dcb41acc5ac072e30d487c5d5d1b97ddfb99b10 | /main.cpp | 6ba2cd9fe04145d9dc114e52d1829698f9900952 | [] | no_license | MdAzeen/2D-Football-Field-by-OpenGL | 31215cf44012e17dc6fcaa0595b86493b2f9d5cd | 9d6e40d35e1408c00e0d2aac7ca5d32a76fdffa2 | refs/heads/master | 2021-12-12T23:14:34.219256 | 2017-03-07T13:39:34 | 2017-03-07T13:39:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,966 | cpp | main.cpp | #include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include <stdlib.h>
#include <stdio.h>
#include<cmath>
int windowWidth = 600, windowHeight = 600;
static int tx=-57,ty=0;
void line(double x1,double y1,double x2,double y2,double r,double g, double b)
{
glColor3f(r,g,b);
glBegin(GL_LINES);
glVertex2f(x1,y1);
glVertex2f(x2,y2);
glEnd();
}
void rectangle(double x1,double y1,double x2,double y2,double x3,double y3,double x4,double y4)
{
glBegin(GL_LINE_LOOP);
glVertex2f(x1,y1);
glVertex2f(x2,y2);
glVertex2f(x3,y3);
glVertex2f(x4,y4);
glEnd();
}
void circle(int radius)
{
int i;
glBegin(GL_LINE_LOOP);
//glColor3f(1, 1, 1);
//glVertex2f(0,0);
for(i = 0; i <= 360; i++)
{
glColor3f(1, 1, 1);
glVertex2f((radius * cos(i * 3.1416 / 180)),
(radius * sin(i * 3.1416 / 180)));
}
glEnd();
}
void football(double x, double y,double radius)
{
int i;
glBegin(GL_TRIANGLE_FAN);
//glColor3f(249, 6, 6);
glVertex2f(x,y);
for(i = 0; i <= 360; i++)
{
glColor3f(1, 1, 1);
glVertex2f((radius * cos(i * 3.1416 / 180)),
(radius * sin(i * 3.1416 / 180)));
}
glEnd();
}
bool isTerminated()
{
if((abs(abs(tx)-30)<=1&&((ty>=16 && ty<=46)||(ty>=-36 && ty<=6)))
|| (abs(abs(tx)-15)==1 && (ty>=-16 && ty<=36))|| (abs(abs(tx)-10)==1 && (ty>=-46 && ty<=-16)) )
return true;
else
return false;
}
void display(void)
{
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
glMatrixMode( GL_PROJECTION );
glLoadIdentity();
gluOrtho2D(-70, 70, -70, 70);
glMatrixMode( GL_MODELVIEW );
glLoadIdentity();
glViewport(0, 0 ,windowWidth ,windowHeight);
glPushMatrix();
//glTranslatef(-70,-70,0);
rectangle(60,45,-60,45,-60,-45,60,-45);
rectangle(60,22,42,22,42,-22,60,-22);
rectangle(-60,22,-42,22,-42,-22,-60,-22);
rectangle(60,10,53,10,53,-10,60,-10);
rectangle(-60,10,-53,10,-53,-10,-60,-10);
rectangle(60,5,64,5,64,-5,60,-5);
rectangle(-60,5,-64,5,-64,-5,-60,-5);
line(0,45,0,-45,1,1,1);
line(-30,45,-30,15,1,0,0);
line(-30,5,-30,-35,1,0,0);
line(-15,35,-15,-15,1,0,0);
line(-10,-15,-10,-45,1,0,0);
line(30,45,30,15,1,0,0);
line(30,5,30,-35,1,0,0);
line(15,35,15,-15,1,0,0);
line(10,-15,10,-45,1,0,0);
circle(10);
football(0,0,1);
glTranslatef(48,0,0);
football(0,0,0.5);
glPopMatrix();
glPushMatrix();
glTranslatef(-48,0,0);
football(0,0,0.5);
glPopMatrix();
glPushMatrix();
glTranslatef(tx,ty,0);
football(0,0,2);
if(isTerminated())
//exit(0);
{
tx=-57;
ty=0;
printf("\a");
}
glPopMatrix();
glFlush();
glutSwapBuffers();
}
void arrowKey(int c,int x, int y)
{
switch(c)
{
case GLUT_KEY_LEFT:
if(tx>-68)
tx--;
break;
case GLUT_KEY_RIGHT:
if(tx<68)
tx++;
break;
case GLUT_KEY_DOWN:
if(ty>-45)
ty--;
break;
case GLUT_KEY_UP:
if(ty<45)
ty++;
break;
}
}
void keyboardOperation(unsigned char c,int x,int y)
{
switch(c)
{
case 'q':
exit(0);
break;
}
glutPostRedisplay();
}
static void idle(void)
{
glutPostRedisplay();
}
int main (int argc, char **argv)
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB| GLUT_DEPTH);
glutInitWindowPosition(100,100);
glutInitWindowSize(windowWidth,windowHeight);
glutCreateWindow("Football Field");
glShadeModel( GL_SMOOTH );
glEnable( GL_DEPTH_TEST );
glutDisplayFunc(display);
glutKeyboardFunc(keyboardOperation);
glutSpecialFunc(arrowKey);
glutIdleFunc(idle);
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LESS);
glutMainLoop();
return 0;
}
|
4f079306bd6922cf49af4a85ecf8f128bfab2466 | 06612d1391a80ab69726ff491e49b7a0b9439b10 | /lib/Transforms/IPO/MergeFunctions.cpp | 17bc2d41a4cffcfb2b32bf28f639ca03146aabe4 | [
"NCSA"
] | permissive | bratsche/llvm | 1bc649a078dfb8c61c579dc3b373eab5dcd94024 | 7c3ddf82afd4c74e76dfa9c938d290b3e2574f3f | refs/heads/master | 2021-01-22T12:02:26.956654 | 2009-04-16T05:52:18 | 2009-04-16T05:52:18 | 179,517 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,730 | cpp | MergeFunctions.cpp | //===- MergeFunctions.cpp - Merge identical functions ---------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This pass looks for equivalent functions that are mergable and folds them.
//
// A Function will not be analyzed if:
// * it is overridable at runtime (except for weak linkage), or
// * it is used by anything other than the callee parameter of a call/invoke
//
// A hash is computed from the function, based on its type and number of
// basic blocks.
//
// Once all hashes are computed, we perform an expensive equality comparison
// on each function pair. This takes n^2/2 comparisons per bucket, so it's
// important that the hash function be high quality. The equality comparison
// iterates through each instruction in each basic block.
//
// When a match is found, the functions are folded. We can only fold two
// functions when we know that the definition of one of them is not
// overridable.
// * fold a function marked internal by replacing all of its users.
// * fold extern or weak functions by replacing them with a global alias
//
//===----------------------------------------------------------------------===//
//
// Future work:
//
// * fold vector<T*>::push_back and vector<S*>::push_back.
//
// These two functions have different types, but in a way that doesn't matter
// to us. As long as we never see an S or T itself, using S* and S** is the
// same as using a T* and T**.
//
// * virtual functions.
//
// Many functions have their address taken by the virtual function table for
// the object they belong to. However, as long as it's only used for a lookup
// and call, this is irrelevant, and we'd like to fold such implementations.
//
//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "mergefunc"
#include "llvm/Transforms/IPO.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Constants.h"
#include "llvm/InlineAsm.h"
#include "llvm/Instructions.h"
#include "llvm/Module.h"
#include "llvm/Pass.h"
#include "llvm/Support/CallSite.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include <map>
#include <vector>
using namespace llvm;
STATISTIC(NumFunctionsMerged, "Number of functions merged");
STATISTIC(NumMergeFails, "Number of identical function pairings not merged");
namespace {
struct VISIBILITY_HIDDEN MergeFunctions : public ModulePass {
static char ID; // Pass identification, replacement for typeid
MergeFunctions() : ModulePass((intptr_t)&ID) {}
bool runOnModule(Module &M);
};
}
char MergeFunctions::ID = 0;
static RegisterPass<MergeFunctions>
X("mergefunc", "Merge Functions");
ModulePass *llvm::createMergeFunctionsPass() {
return new MergeFunctions();
}
static unsigned long hash(const Function *F) {
return F->size() ^ reinterpret_cast<unsigned long>(F->getType());
//return F->size() ^ F->arg_size() ^ F->getReturnType();
}
static bool compare(const Value *V, const Value *U) {
assert(!isa<BasicBlock>(V) && !isa<BasicBlock>(U) &&
"Must not compare basic blocks.");
assert(V->getType() == U->getType() &&
"Two of the same operation have operands of different type.");
// TODO: If the constant is an expression of F, we should accept that it's
// equal to the same expression in terms of G.
if (isa<Constant>(V))
return V == U;
// The caller has ensured that ValueMap[V] != U. Since Arguments are
// pre-loaded into the ValueMap, and Instructions are added as we go, we know
// that this can only be a mis-match.
if (isa<Instruction>(V) || isa<Argument>(V))
return false;
if (isa<InlineAsm>(V) && isa<InlineAsm>(U)) {
const InlineAsm *IAF = cast<InlineAsm>(V);
const InlineAsm *IAG = cast<InlineAsm>(U);
return IAF->getAsmString() == IAG->getAsmString() &&
IAF->getConstraintString() == IAG->getConstraintString();
}
return false;
}
static bool equals(const BasicBlock *BB1, const BasicBlock *BB2,
DenseMap<const Value *, const Value *> &ValueMap,
DenseMap<const Value *, const Value *> &SpeculationMap) {
// Specutively add it anyways. If it's false, we'll notice a difference later, and
// this won't matter.
ValueMap[BB1] = BB2;
BasicBlock::const_iterator FI = BB1->begin(), FE = BB1->end();
BasicBlock::const_iterator GI = BB2->begin(), GE = BB2->end();
do {
if (!FI->isSameOperationAs(const_cast<Instruction *>(&*GI)))
return false;
if (FI->getNumOperands() != GI->getNumOperands())
return false;
if (ValueMap[FI] == GI) {
++FI, ++GI;
continue;
}
if (ValueMap[FI] != NULL)
return false;
for (unsigned i = 0, e = FI->getNumOperands(); i != e; ++i) {
Value *OpF = FI->getOperand(i);
Value *OpG = GI->getOperand(i);
if (ValueMap[OpF] == OpG)
continue;
if (ValueMap[OpF] != NULL)
return false;
assert(OpF->getType() == OpG->getType() &&
"Two of the same operation has operands of different type.");
if (OpF->getValueID() != OpG->getValueID())
return false;
if (isa<PHINode>(FI)) {
if (SpeculationMap[OpF] == NULL)
SpeculationMap[OpF] = OpG;
else if (SpeculationMap[OpF] != OpG)
return false;
continue;
} else if (isa<BasicBlock>(OpF)) {
assert(isa<TerminatorInst>(FI) &&
"BasicBlock referenced by non-Terminator non-PHI");
// This call changes the ValueMap, hence we can't use
// Value *& = ValueMap[...]
if (!equals(cast<BasicBlock>(OpF), cast<BasicBlock>(OpG), ValueMap,
SpeculationMap))
return false;
} else {
if (!compare(OpF, OpG))
return false;
}
ValueMap[OpF] = OpG;
}
ValueMap[FI] = GI;
++FI, ++GI;
} while (FI != FE && GI != GE);
return FI == FE && GI == GE;
}
static bool equals(const Function *F, const Function *G) {
// We need to recheck everything, but check the things that weren't included
// in the hash first.
if (F->getAttributes() != G->getAttributes())
return false;
if (F->hasGC() != G->hasGC())
return false;
if (F->hasGC() && F->getGC() != G->getGC())
return false;
if (F->hasSection() != G->hasSection())
return false;
if (F->hasSection() && F->getSection() != G->getSection())
return false;
// TODO: if it's internal and only used in direct calls, we could handle this
// case too.
if (F->getCallingConv() != G->getCallingConv())
return false;
// TODO: We want to permit cases where two functions take T* and S* but
// only load or store them into T** and S**.
if (F->getType() != G->getType())
return false;
DenseMap<const Value *, const Value *> ValueMap;
DenseMap<const Value *, const Value *> SpeculationMap;
ValueMap[F] = G;
assert(F->arg_size() == G->arg_size() &&
"Identical functions have a different number of args.");
for (Function::const_arg_iterator fi = F->arg_begin(), gi = G->arg_begin(),
fe = F->arg_end(); fi != fe; ++fi, ++gi)
ValueMap[fi] = gi;
if (!equals(&F->getEntryBlock(), &G->getEntryBlock(), ValueMap,
SpeculationMap))
return false;
for (DenseMap<const Value *, const Value *>::iterator
I = SpeculationMap.begin(), E = SpeculationMap.end(); I != E; ++I) {
if (ValueMap[I->first] != I->second)
return false;
}
return true;
}
static bool fold(std::vector<Function *> &FnVec, unsigned i, unsigned j) {
if (FnVec[i]->mayBeOverridden() && !FnVec[j]->mayBeOverridden())
std::swap(FnVec[i], FnVec[j]);
Function *F = FnVec[i];
Function *G = FnVec[j];
if (!F->mayBeOverridden()) {
if (G->hasLocalLinkage()) {
F->setAlignment(std::max(F->getAlignment(), G->getAlignment()));
G->replaceAllUsesWith(F);
G->eraseFromParent();
++NumFunctionsMerged;
return true;
}
if (G->hasExternalLinkage() || G->hasWeakLinkage()) {
GlobalAlias *GA = new GlobalAlias(G->getType(), G->getLinkage(), "",
F, G->getParent());
F->setAlignment(std::max(F->getAlignment(), G->getAlignment()));
GA->takeName(G);
GA->setVisibility(G->getVisibility());
G->replaceAllUsesWith(GA);
G->eraseFromParent();
++NumFunctionsMerged;
return true;
}
}
if (F->hasWeakLinkage() && G->hasWeakLinkage()) {
GlobalAlias *GA_F = new GlobalAlias(F->getType(), F->getLinkage(), "",
0, F->getParent());
GA_F->takeName(F);
GA_F->setVisibility(F->getVisibility());
F->setAlignment(std::max(F->getAlignment(), G->getAlignment()));
F->replaceAllUsesWith(GA_F);
F->setName("folded." + GA_F->getName());
F->setLinkage(GlobalValue::ExternalLinkage);
GA_F->setAliasee(F);
GlobalAlias *GA_G = new GlobalAlias(G->getType(), G->getLinkage(), "",
F, G->getParent());
GA_G->takeName(G);
GA_G->setVisibility(G->getVisibility());
G->replaceAllUsesWith(GA_G);
G->eraseFromParent();
++NumFunctionsMerged;
return true;
}
DOUT << "Failed on " << F->getName() << " and " << G->getName() << "\n";
++NumMergeFails;
return false;
}
static bool hasAddressTaken(User *U) {
for (User::use_iterator I = U->use_begin(), E = U->use_end(); I != E; ++I) {
User *Use = *I;
// 'call (bitcast @F to ...)' happens a lot.
while (isa<ConstantExpr>(Use) && Use->hasOneUse()) {
Use = *Use->use_begin();
}
if (isa<ConstantExpr>(Use)) {
if (hasAddressTaken(Use))
return true;
}
if (!isa<CallInst>(Use) && !isa<InvokeInst>(Use))
return true;
// Make sure we aren't passing U as a parameter to call instead of the
// callee.
if (CallSite(cast<Instruction>(Use)).hasArgument(U))
return true;
}
return false;
}
bool MergeFunctions::runOnModule(Module &M) {
bool Changed = false;
std::map<unsigned long, std::vector<Function *> > FnMap;
for (Module::iterator F = M.begin(), E = M.end(); F != E; ++F) {
if (F->isDeclaration() || F->isIntrinsic())
continue;
if (!F->hasLocalLinkage() && !F->hasExternalLinkage() &&
!F->hasWeakLinkage())
continue;
if (hasAddressTaken(F))
continue;
FnMap[hash(F)].push_back(F);
}
// TODO: instead of running in a loop, we could also fold functions in callgraph
// order. Constructing the CFG probably isn't cheaper than just running in a loop.
bool LocalChanged;
do {
LocalChanged = false;
for (std::map<unsigned long, std::vector<Function *> >::iterator
I = FnMap.begin(), E = FnMap.end(); I != E; ++I) {
DOUT << "size: " << FnMap.size() << "\n";
std::vector<Function *> &FnVec = I->second;
DOUT << "hash (" << I->first << "): " << FnVec.size() << "\n";
for (int i = 0, e = FnVec.size(); i != e; ++i) {
for (int j = i + 1; j != e; ++j) {
bool isEqual = equals(FnVec[i], FnVec[j]);
DOUT << " " << FnVec[i]->getName()
<< (isEqual ? " == " : " != ")
<< FnVec[j]->getName() << "\n";
if (isEqual) {
if (fold(FnVec, i, j)) {
LocalChanged = true;
FnVec.erase(FnVec.begin() + j);
--j, --e;
}
}
}
}
}
Changed |= LocalChanged;
} while (LocalChanged);
return Changed;
}
|
65d57fb4cf5dc22a034e40913f63e6ef5b5004ad | a472d287b5abafb55d2baa5f2afc4126a7839ffa | /Game/Source/Vehicle/AI/OpponentAIController.h | 0843d7b9962a0bf9c1eb9bf0660bfdd1ddd454dc | [] | no_license | Svietq/SelfDrivingCar | af49c35363045bd16a8fc1173f7264edd24d6db1 | 812a6d046adc4418b9680f92e6d4cac8aae2f096 | refs/heads/master | 2020-07-22T10:26:28.286770 | 2019-09-08T20:36:49 | 2019-09-08T20:42:23 | 207,167,443 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 550 | h | OpponentAIController.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "AIController.h"
#include "OpponentAIController.generated.h"
/**
*
*/
UCLASS()
class VEHICLE_API AOpponentAIController : public AAIController
{
GENERATED_BODY()
public:
UPROPERTY(BlueprintReadWrite)
UBlackboardData* OpponentBlackboardAsset;
UPROPERTY(BlueprintReadWrite)
UBehaviorTree* OpponentBehaviorTree;
UPROPERTY(BlueprintReadWrite)
FName PlayerKey;
protected:
virtual void BeginPlay() override;
};
|
3e0d2bac0db48a9111f9406b3e17fac7ee00cd6b | f006267d8208a3adb4c3e2edc89ea67ef1b13353 | /tas_car_control/src/servo_proxy.cpp | ce7ac81872e6963b90dd2ca91ad24bcb6744face | [] | no_license | maetulj/ros_gazebo_ackermann | 18f669c3f7b851acc68fbb6f7b400550924317da | b0a057c418d73ecb96aea377b4c33025274c8ff8 | refs/heads/master | 2020-05-23T08:01:03.059227 | 2017-01-31T03:06:39 | 2017-01-31T03:06:39 | 80,486,500 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,975 | cpp | servo_proxy.cpp | /************************
* servo_proxy.cpp
*
* author: Gasper Simonic <gasper.simonic@tume.de>
*
* This file includes the implementation of the ServoProxy class
* for transforming servo commands to Gazebo commands.
* It also includes the main function of this node.
*/
#include "tas_car_control/servo_proxy.h"
ServoProxy::ServoProxy()
{
// Subscribe to the "servo" topic.
servo_sub = nh_.subscribe<geometry_msgs::Vector3>("servo", 1000, &ServoProxy::servoCallback, this);
servo_pub = nh_.advertise<ackermann_msgs::AckermannDrive>("ackermann_cmd", 1);
}
void ServoProxy::servoCallback(const geometry_msgs::Vector3::ConstPtr &msg)
{
if (msg->x == 1500 && msg->y == 1500)
{
// Servo is not moving.
speed = 0.0;
steering_angle = 0.0;
// Publish speed and steering angle.
// Publish the data.
ackermann.speed = speed;
ackermann.steering_angle = steering_angle;
servo_pub.publish(ackermann);
return;
}
// Determine if going forward or backwards.
x = msg->x - 1500;
y = msg->y - 1500;
if (x == 0)
{
speed = 0;
}
else if (x > 0)
{
// Forward. Determine how much is the nunchuck forward.
speed = x / SCALE_FAKTOR_THROTTLE_FORWARD;
if (speed > MAX_SPEED)
{
speed = MAX_SPEED;
}
}
else if (x < 0)
{
// Backwards.
speed = x / SCALE_FAKTOR_THROTTLE_BACKWARDS;
if (speed < -1 * MAX_SPEED)
{
speed = -1 * MAX_SPEED;
}
}
// Determine the steering angle..
steering_angle = y / SCALE_FAKTOR_STEERING;
if (steering_angle > MAX_STEERING_ANGLE)
{
steering_angle = MAX_STEERING_ANGLE;
}
// Publish the data.
ackermann.speed = speed;
ackermann.steering_angle = steering_angle;
servo_pub.publish(ackermann);
// Refresh the variables.
speed = 0.0;
steering_angle = 0.0;
}
int main(int argc, char** argv)
{
ros::init(argc, argv, "servo_proxy");
ServoProxy proxy;
ros::Rate loop_rate(50);
while (ros::ok())
{
ros::spinOnce();
loop_rate.sleep();
}
return 0;
} |
58db6a9a6fa1043a147300fff7b270de73169261 | 2181883c8faac55bfc969a97d22d9b24a3e81ab3 | /Pythonwin/win32virt.cpp | 2f46c84359aafcd13ae2d8403f77d1c82d1855ad | [
"PSF-2.0"
] | permissive | mhammond/pywin32 | 574bf121cfeac8c7a9d28f94ee0f2069a425e8ab | 2a7137f21965013020ef9e4f27565db6dea59003 | refs/heads/main | 2023-09-02T13:16:52.307262 | 2023-08-17T19:42:26 | 2023-08-17T19:42:26 | 108,187,130 | 4,757 | 907 | null | 2023-08-23T01:45:49 | 2017-10-24T21:44:27 | C++ | UTF-8 | C++ | false | false | 16,783 | cpp | win32virt.cpp | /*
win32 virtuals manager/helper
Created August 1994, Mark Hammond (MHammond@skippinet.com.au)
*/
#define PY_SSIZE_T_CLEAN
#include "stdafx.h"
#include "win32win.h"
#include "win32dc.h"
#include "win32prinfo.h"
#include "win32doc.h"
//////////////////////////////////////////////////////////////////////
//
// virtuals helper
//
//////////////////////////////////////////////////////////////////////
extern BOOL bInFatalShutdown;
CVirtualHelper::CVirtualHelper(const char *iname, void *iassoc, EnumVirtualErrorHandling veh /* = VEH_PRINT_ERROR */)
{
handler = NULL;
py_ob = NULL;
retVal = NULL;
csHandlerName = iname;
vehErrorHandling = veh;
if (bInFatalShutdown)
return;
ui_assoc_object *py_bob = ui_assoc_object::handleMgr.GetAssocObject(iassoc);
if (py_bob == NULL)
return;
if (!py_bob->is_uiobject(&ui_assoc_object::type)) {
TRACE("CVirtualHelper::CVirtualHelper Error: Call object is not of required type\n");
Py_DECREF(py_bob);
return;
}
// ok - have the python data type - now see if it has an override.
if (py_bob->virtualInst) {
PyObject *t, *v, *tb;
PyErr_Fetch(&t, &v, &tb);
handler = PyObject_GetAttrString(py_bob->virtualInst, (char *)iname);
if (handler) {
// explicitely check a method returned, else the classes
// delegation may cause a circular call chain.
if (!PyMethod_Check(handler)) {
if (!PyCFunction_Check(handler)) {
TRACE("Handler for object is not a method!\n");
}
Py_DECREF(handler);
handler = NULL;
}
}
PyErr_Restore(t, v, tb);
}
py_ob = py_bob;
// reference on 'py_bob' now owned by 'py_ob'
}
CVirtualHelper::~CVirtualHelper()
{
// This is called for each window message, so should be as fast
// as possible - but DECREF is not atomic on multi-core CPU's, so
// take the reliable option...
if (py_ob || handler || retVal) {
acquire(); // may have been released
Py_XDECREF(retVal);
Py_XDECREF(handler);
Py_XDECREF(py_ob);
}
}
void CVirtualHelper::release_full()
{
// Called for early GIL release when the objects are not required
// any more - saving 1x PyGILState_Ensure() & _Release()
if (py_ob || handler || retVal) {
acquire(); // may have been released
Py_XDECREF(retVal);
Py_XDECREF(handler);
Py_XDECREF(py_ob);
retVal = handler = py_ob = NULL;
}
release();
}
PyObject* CVirtualHelper::build_args(const char* format, ...)
{
// Helper to create Python objects when called outside the GIL.
va_list va;
PyObject* retval;
va_start(va, format);
retval = Py_VaBuildValue(format, va);
va_end(va);
return retval;
}
PyObject *CVirtualHelper::GetHandler() { return handler; }
BOOL CVirtualHelper::do_call(PyObject *args)
{
USES_CONVERSION;
Py_XDECREF(retVal); // our old one.
retVal = NULL;
ASSERT(handler); // caller must trap this.
ASSERT(args);
PyObject *result = gui_call_object(handler, args);
Py_DECREF(args);
if (result == NULL) {
if (vehErrorHandling == VEH_PRINT_ERROR) {
char msg[256];
TRACE("CallVirtual : callback failed with exception\n");
gui_print_error();
// this will probably fail if we are already inside the exception handler
PyObject *obRepr = PyObject_Repr(handler);
char *szRepr = "<no representation (PyObject_Repr failed)>";
if (obRepr) {
if (PyBytes_Check(obRepr))
szRepr = PyBytes_AS_STRING(obRepr);
else if (TmpWCHAR tmpw=obRepr)
szRepr = W2A(tmpw);
}
LPTSTR HandlerName = csHandlerName.GetBuffer(csHandlerName.GetLength());
snprintf(msg, sizeof(msg) / sizeof(msg[0]), "%s() virtual handler (%s) raised an exception",
T2A(HandlerName), szRepr);
csHandlerName.ReleaseBuffer();
Py_XDECREF(obRepr);
PyErr_SetString(ui_module_error, msg);
// send to the debugger
TRACE(msg);
TRACE("\n");
// send to the app.
gui_print_error();
}
else {
// Error dialog.
CString csAddnMsg = " when executing ";
csAddnMsg += csHandlerName;
csAddnMsg += " handler";
ExceptionHandler(EHA_DISPLAY_DIALOG, NULL, csAddnMsg);
}
return FALSE;
}
retVal = result;
return TRUE;
}
BOOL CVirtualHelper::call_args(const char* format, ...)
{
if (!handler)
return FALSE;
// Duplicate build_args
va_list va;
PyObject* args;
va_start(va, format);
args = Py_VaBuildValue(format, va);
va_end(va);
if (!args) {
return FALSE;
}
return do_call(args);
}
BOOL CVirtualHelper::call()
{
if (!handler)
return FALSE;
PyObject *arglst = Py_BuildValue("()");
return do_call(arglst);
}
BOOL CVirtualHelper::call(int val)
{
if (!handler)
return FALSE;
PyObject *arglst = Py_BuildValue("(i)", val);
return do_call(arglst);
}
BOOL CVirtualHelper::call(DWORD val, DWORD val2)
{
if (!handler)
return FALSE;
PyObject *arglst = Py_BuildValue("(ii)", val, val2);
return do_call(arglst);
}
BOOL CVirtualHelper::call(BOOL v1, BOOL v2)
{
if (!handler)
return FALSE;
PyObject *arglst = Py_BuildValue("(NN)", PyBool_FromLong(v1), PyBool_FromLong(v2));
return do_call(arglst);
}
BOOL CVirtualHelper::call(int val1, int val2, int val3)
{
if (!handler)
return FALSE;
PyObject *arglst = Py_BuildValue("(iii)", val1, val2, val3);
return do_call(arglst);
}
BOOL CVirtualHelper::call(long val)
{
if (!handler)
return FALSE;
PyObject *arglst = Py_BuildValue("(l)", val);
return do_call(arglst);
}
BOOL CVirtualHelper::call(UINT_PTR val)
{
if (!handler)
return FALSE;
PyObject *arglst = Py_BuildValue("(N)", PyWinObject_FromULONG_PTR(val));
return do_call(arglst);
}
BOOL CVirtualHelper::call(const char *val)
{
if (!handler)
return FALSE;
PyObject *arglst = Py_BuildValue("(z)", val);
return do_call(arglst);
}
BOOL CVirtualHelper::call(const WCHAR *val)
{
if (!handler)
return FALSE;
PyObject *arglst = Py_BuildValue("(u)", val);
return do_call(arglst);
}
BOOL CVirtualHelper::call(const char *val, int ival)
{
if (!handler)
return FALSE;
PyObject *arglst = Py_BuildValue("(zi)", val, ival);
return do_call(arglst);
}
BOOL CVirtualHelper::call(const WCHAR *val, int ival)
{
if (!handler)
return FALSE;
PyObject *arglst = Py_BuildValue("(ui)", val, ival);
return do_call(arglst);
}
BOOL CVirtualHelper::call(PyObject *ob)
{
if (!handler)
return FALSE;
if (!ob)
ob = Py_None;
PyObject *arglst = Py_BuildValue("(O)", ob);
return do_call(arglst);
}
BOOL CVirtualHelper::call(PyObject *ob, PyObject *ob2)
{
if (!handler)
return FALSE;
if (!ob)
ob = Py_None;
if (!ob2)
ob2 = Py_None;
PyObject *arglst = Py_BuildValue("(OO)", ob, ob2);
return do_call(arglst);
}
BOOL CVirtualHelper::call(PyObject *ob, PyObject *ob2, int i)
{
if (!handler)
return FALSE;
if (!ob)
ob = Py_None;
if (!ob2)
ob2 = Py_None;
PyObject *arglst = Py_BuildValue("(OOi)", ob, ob2, i);
return do_call(arglst);
}
BOOL CVirtualHelper::call(CDC *pDC)
{
if (!handler)
return FALSE;
PyObject *dc = (PyObject *)ui_assoc_object::make(ui_dc_object::type, pDC)->GetGoodRet();
if (!dc)
return FALSE;
PyObject *arglst = Py_BuildValue("(O)", dc);
BOOL ret = do_call(arglst);
Py_DECREF(dc); // the reference I created.
return ret;
}
BOOL CVirtualHelper::call(CDC *pDC, CPrintInfo *pInfo)
{
if (!handler)
return FALSE;
PyObject *dc = (PyObject *)ui_assoc_object::make(ui_dc_object::type, pDC)->GetGoodRet();
if (!dc)
return FALSE;
BOOL ret;
PyObject *info = NULL;
PyObject *arglst = NULL;
if (pInfo != NULL) {
info = (PyObject *)ui_assoc_object::make(ui_prinfo_object::type, pInfo)->GetGoodRet();
if (!info)
return FALSE;
arglst = Py_BuildValue("(OO)", dc, info);
}
else {
arglst = Py_BuildValue("(Oz)", dc, NULL);
}
ret = do_call(arglst);
Py_DECREF(dc); // the reference I created.
if (pInfo != NULL) {
Py_DECREF(info); // the reference I created.
}
return ret;
}
BOOL CVirtualHelper::call(CPrintInfo *pInfo)
{
if (!handler)
return FALSE;
PyObject *info = NULL;
PyObject *arglst;
if (pInfo) {
info = (PyObject *)ui_assoc_object::make(ui_prinfo_object::type, pInfo)->GetGoodRet();
if (!info)
return FALSE;
arglst = Py_BuildValue("(O)", info);
}
else {
arglst = Py_BuildValue("(z)", NULL);
}
BOOL ret = do_call(arglst);
Py_DECREF(info); // the reference I created.
return ret;
}
BOOL CVirtualHelper::call(CWnd *pWnd)
{
if (!handler)
return FALSE;
PyObject *wnd = PyWinObject_FromCWnd(pWnd);
if (!wnd)
return FALSE;
PyObject *arglst = Py_BuildValue("(O)", wnd);
BOOL ret = do_call(arglst);
Py_DECREF(wnd); // the reference I created.
return ret;
}
BOOL CVirtualHelper::call(CWnd *pWnd, int i)
{
if (!handler)
return FALSE;
PyObject *wnd = PyWinObject_FromCWnd(pWnd);
if (!wnd)
return FALSE;
PyObject *arglst = Py_BuildValue("(Oi)", wnd, i);
BOOL ret = do_call(arglst);
Py_DECREF(wnd); // the reference I created.
return ret;
}
BOOL CVirtualHelper::call(CWnd *pWnd, int i, int i2)
{
if (!handler)
return FALSE;
PyObject *wnd = PyWinObject_FromCWnd(pWnd);
if (!wnd)
return FALSE;
PyObject *arglst = Py_BuildValue("(Oii)", wnd, i, i2);
BOOL ret = do_call(arglst);
Py_DECREF(wnd); // the reference I created.
return ret;
}
BOOL CVirtualHelper::call(CDC *pDC, CWnd *pWnd, int i)
{
PyObject *wnd;
if (pWnd == NULL) {
wnd = Py_None;
Py_INCREF(wnd);
}
else {
wnd = PyWinObject_FromCWnd(pWnd);
if (!wnd)
return FALSE;
}
PyObject *dc = (PyObject *)ui_assoc_object::make(ui_dc_object::type, pDC)->GetGoodRet();
if (!dc) {
Py_DECREF(wnd);
return FALSE;
}
PyObject *arglst = Py_BuildValue("(OOi)", dc, wnd, i);
BOOL ret = do_call(arglst);
Py_DECREF(wnd);
Py_DECREF(dc);
return ret;
}
BOOL CVirtualHelper::call(CView *pWnd, PyObject *ob)
{
if (!handler)
return FALSE;
if (!ob)
ob = Py_None;
PyObject *wnd;
if (pWnd == NULL) {
wnd = Py_None;
Py_INCREF(wnd);
}
else {
wnd = PyWinObject_FromCWnd(pWnd);
if (!wnd)
return FALSE;
}
PyObject *arglst = Py_BuildValue("(OO)", wnd, ob);
BOOL ret = do_call(arglst);
Py_DECREF(wnd); // the reference I created.
return ret;
}
BOOL CVirtualHelper::call(BOOL boolVal, CWnd *pWnd1, CWnd *pWnd2)
{
if (!handler)
return FALSE;
PyObject *wnd1;
if (pWnd1) {
wnd1 = PyWinObject_FromCWnd(pWnd1);
if (!wnd1)
return FALSE;
}
else {
Py_INCREF(Py_None);
wnd1 = Py_None;
}
PyObject *wnd2;
if (pWnd2) {
wnd2 = PyWinObject_FromCWnd(pWnd2);
if (!wnd2)
return FALSE;
}
else {
Py_INCREF(Py_None);
wnd2 = Py_None;
}
PyObject *arglst = Py_BuildValue("(iOO)", boolVal, wnd1, wnd2);
BOOL ret = do_call(arglst);
Py_DECREF(wnd1); // the reference I created.
Py_DECREF(wnd2); // the reference I created.
return ret;
}
BOOL CVirtualHelper::call(CDocument *pDoc)
{
if (!handler)
return FALSE;
PyObject *doc = (PyObject *)ui_assoc_object::make(PyCDocument::type, pDoc)->GetGoodRet();
if (!doc)
return FALSE;
PyObject *arglst = Py_BuildValue("(O)", doc);
BOOL ret = do_call(arglst);
Py_DECREF(doc); // ref I created.
return ret;
}
BOOL CVirtualHelper::call(LPCREATESTRUCT lpcs, PyObject *ob)
{
if (!handler)
return FALSE;
PyObject *cs = PyObjectFromCreateStruct(lpcs);
if (!cs)
return FALSE;
if (ob == NULL)
ob = Py_None;
PyObject *arglst = Py_BuildValue("(O,O)", cs, ob);
Py_DECREF(cs); // ref I created.
BOOL ret = do_call(arglst);
return ret;
}
BOOL CVirtualHelper::call(LPCREATESTRUCT lpcs)
{
if (!handler)
return FALSE;
PyObject *cs = PyObjectFromCreateStruct(lpcs);
if (!cs)
return FALSE;
PyObject *arglst = Py_BuildValue("(O)", cs);
BOOL ret = do_call(arglst);
Py_DECREF(cs); // my reference.
return ret;
}
BOOL CVirtualHelper::call(const MSG *msg)
{
if (!handler)
return FALSE;
PyObject *arglst = Py_BuildValue("(N)", PyWinObject_FromMSG(msg));
if (!arglst)
return FALSE;
BOOL ret = do_call(arglst);
return ret;
}
BOOL CVirtualHelper::call(UINT nID, int nCode, void *pExtra, AFX_CMDHANDLERINFO *pHandlerInfo)
{
if (!handler)
return FALSE;
PyObject *arglst =
Py_BuildValue("iiNN", nID, nCode, PyWinLong_FromVoidPtr(pExtra), PyWinLong_FromVoidPtr(pHandlerInfo));
BOOL ret = do_call(arglst);
return ret;
}
BOOL CVirtualHelper::call(WPARAM w, LPARAM l)
{
if (!handler)
return FALSE;
PyObject *arglst = Py_BuildValue("NN", PyWinObject_FromPARAM(w), PyWinObject_FromPARAM(l));
return do_call(arglst);
}
BOOL CVirtualHelper::retnone()
{
ASSERT(retVal);
if (!retVal)
return FALSE; // failed - assume didnt work in non debug
return (retVal == Py_None);
}
BOOL CVirtualHelper::retval(MSG *msg)
{
ASSERT(retVal);
if (!retVal)
return FALSE; // failed - assume didnt work in non debug
if (!PyWinObject_AsMSG(retVal, msg)) {
gui_print_error();
return FALSE;
}
return TRUE;
}
BOOL CVirtualHelper::retval(int &ret)
{
ASSERT(retVal);
if (!retVal)
return FALSE; // failed - assume didnt work in non debug
if (retVal == Py_None) {
ret = 0;
return TRUE;
}
ret = PyLong_AsLong(retVal);
if (ret == -1 && PyErr_Occurred()) {
gui_print_error();
return FALSE;
}
return TRUE;
}
BOOL CVirtualHelper::retval(long &ret)
{
ASSERT(retVal);
if (!retVal)
return FALSE; // failed - assume didnt work in non debug
if (retVal == Py_None) {
ret = 0;
return TRUE;
}
ret = PyLong_AsLong(retVal);
if (PyErr_Occurred()) {
gui_print_error();
return FALSE;
}
return TRUE;
}
BOOL CVirtualHelper::retval(HANDLE &ret)
{
ASSERT(retVal);
if (!retVal)
return FALSE; // failed - assume didnt work in non debug
if (retVal == Py_None) {
ret = 0;
return TRUE;
}
if (!PyWinObject_AsHANDLE(retVal, &ret)) {
gui_print_error();
return FALSE;
}
return TRUE;
}
BOOL CVirtualHelper::retval(CString &ret)
{
ASSERT(retVal);
if (!retVal)
return FALSE; // failed - assume didnt work in non debug
if (retVal == Py_None) {
ret.Empty();
return TRUE;
}
TCHAR *tchar_val;
if (!PyWinObject_AsTCHAR(retVal, &tchar_val, FALSE)) {
gui_print_error();
return FALSE;
}
ret = tchar_val;
PyWinObject_FreeTCHAR(tchar_val);
return TRUE;
}
BOOL CVirtualHelper::retval(_object *&ret)
{
ASSERT(retVal);
if (!retVal)
return FALSE; // failed - assume didnt work in non debug
ret = retVal;
/** what was I thinking?
if (!PyArg_Parse(retVal, "O",&ret)) {
PyErr_Clear();
return FALSE;
}
**/
return TRUE;
}
BOOL CVirtualHelper::retval(CREATESTRUCT &cs)
{
USES_CONVERSION;
ASSERT(retVal);
if (!retVal || retVal == Py_None)
return FALSE; // failed - assume didnt work in non debug
if (!CreateStructFromPyObject(&cs, retVal)) {
gui_print_error();
CString msgBuf;
msgBuf.Format(_T("virtual %s: The return value can not be converted from a CREATESTRUCT tuple"),
(const TCHAR *)csHandlerName);
LPTSTR msg = msgBuf.GetBuffer(msgBuf.GetLength());
PyErr_SetString(PyExc_TypeError, T2A(msg));
msgBuf.ReleaseBuffer();
gui_print_error();
return FALSE;
}
return TRUE;
}
|
6bb53458119b7dd470588b29ae12ce8340837647 | f400fceb686a38ea72df3e4347419ad9e16ffd2d | /no_undo_interface.cpp | 647071c42d0da755eb8b1677dc0495601d303b76 | [] | no_license | GuanyaShi/C-based-Connect6-AI-Program | 801bcb315325d6496a291d387ef6adef5ffdb108 | 307401ddcdbc3497b92f32ef7f0e8769761c8fa1 | refs/heads/master | 2021-01-20T01:22:34.493593 | 2017-04-24T17:16:45 | 2017-04-24T17:16:45 | 89,265,341 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 866 | cpp | no_undo_interface.cpp | #include <stdio.h>
#include <graphics.h>
#include <conio.h>
void no_undo()
{
setcolor(0);
setfillcolor(BLUE);
setbkcolor(BLUE);
settextcolor(WHITE);
int points[] = { 200, 280, 200, 520, 600, 520, 600, 280 };
fillpoly(4, points);
settextstyle(28, 0, _T("微软雅黑"));
RECT r1 = { 200, 320, 600, 340 };
drawtext(_T("不好意思本难度过于简单"), &r1, DT_CENTER | DT_VCENTER | DT_SINGLELINE);
settextstyle(33, 0, _T("楷体"));
RECT r2 = { 200, 340, 600, 460 };
drawtext(_T("不支持悔棋哟~ - _,-!!!"), &r2, DT_CENTER | DT_VCENTER | DT_SINGLELINE);
setfillcolor(YELLOW);
setbkcolor(YELLOW);
fillroundrect(320, 460, 480, 500, 20, 20);
setcolor(0);
settextstyle(24, 0, _T("微软雅黑"));
RECT r3 = { 320, 460, 480, 500 };
drawtext(_T("呵呵继续玩吧……"), &r3, DT_CENTER | DT_VCENTER | DT_SINGLELINE);
} |
ff44c8c2f9829050532216e199f70858f3c2546c | 6d3e22833251fa01cd50e9e98d05d7642715a082 | /C++/open_file/open.cpp | 0db3edfa23fefee7dd16c48ceab5ddcbe2fa3940 | [] | no_license | nmarriotti/Tutorials | c85ed21dd7b00bab7c84ff576e9472598d0f1ece | 1bbcef19f3da5fd4b21a34907ff12b74d3eac8ad | refs/heads/master | 2021-01-21T14:19:14.791095 | 2018-01-28T04:45:27 | 2018-01-28T04:45:27 | 95,265,185 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 498 | cpp | open.cpp | #include <iostream>
#include <fstream>
#include <string>
#include <stdio.h>
using namespace std;
int main() {
ifstream FILE;
string line;
char filename[256];
printf("File to open: ");
cin.getline(filename, 256);
FILE.open(filename);
if(FILE.is_open()) {
printf("File opened successfully!\n");
while(getline(FILE, line)) {
cout << line.length() << endl;
}
} else {
printf("Unable to open file.");
}
return 0;
} |
a76c1607b2e3dd28145d0458b0c38053e317829b | c0dffa026eb98d46c9c48d54dc8fd33062667bb3 | /f9_os/src/mark3/libs/graphics/fonts/arial_10.cpp | e1a1e25bf0360d0db61f9fd6a09d37711ce0623e | [
"Apache-2.0"
] | permissive | weimingtom/arm-cortex-v7-unix | 322b7f339a62a016393d5dba44b290116ff5d23b | cd499fa94d6ee6cd78a31387f3512d997335df52 | refs/heads/master | 2022-06-02T21:37:11.113487 | 2017-07-21T13:14:42 | 2017-07-21T13:14:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 70,367 | cpp | arial_10.cpp | /* Funkenstein Software Consulting Font Renderer
(c) 2012-2016, Funkenstein Software Consulting, all rights reserved.
*/
#include "../public/font.h"
const FONT_STORAGE_TYPE Arial_10_False_False_False_[] FONT_ATTRIBUTE_TYPE = {
//-- Glyph for ASCII Character code: 0
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 1
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 2
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 3
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 4
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 5
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 6
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 7
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 8
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 9
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 10
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 11
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 12
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 13
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 14
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 15
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 16
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 17
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 18
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 19
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 20
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 21
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 22
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 23
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 24
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 25
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 26
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 27
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 28
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 29
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 30
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 31
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 32
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 33
1, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
0, /* 0 */
128, /* 1 */
//-- Glyph for ASCII Character code: 34
3, /* u8Width */
3, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
160, /* 101 */
160, /* 101 */
160, /* 101 */
//-- Glyph for ASCII Character code: 35
8, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
18, /* 00010010 */
18, /* 00010010 */
34, /* 00100010 */
255, /* 11111111 */
36, /* 00100100 */
36, /* 00100100 */
255, /* 11111111 */
72, /* 01001000 */
72, /* 01001000 */
72, /* 01001000 */
//-- Glyph for ASCII Character code: 36
5, /* u8Width */
11, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
112, /* 01110 */
168, /* 10101 */
160, /* 10100 */
160, /* 10100 */
224, /* 11100 */
56, /* 00111 */
40, /* 00101 */
168, /* 10101 */
168, /* 10101 */
112, /* 01110 */
32, /* 00100 */
//-- Glyph for ASCII Character code: 37
10, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
97, 0, /* 0110000100 */
146, 0, /* 1001001000 */
146, 0, /* 1001001000 */
148, 0, /* 1001010000 */
100, 0, /* 0110010000 */
9, 128, /* 0000100110 */
10, 64, /* 0000101001 */
18, 64, /* 0001001001 */
18, 64, /* 0001001001 */
33, 128, /* 0010000110 */
//-- Glyph for ASCII Character code: 38
8, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
48, /* 00110000 */
72, /* 01001000 */
72, /* 01001000 */
72, /* 01001000 */
48, /* 00110000 */
96, /* 01100000 */
146, /* 10010010 */
138, /* 10001010 */
140, /* 10001100 */
115, /* 01110011 */
//-- Glyph for ASCII Character code: 39
1, /* u8Width */
3, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, /* 1 */
128, /* 1 */
128, /* 1 */
//-- Glyph for ASCII Character code: 40
3, /* u8Width */
13, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
32, /* 001 */
64, /* 010 */
64, /* 010 */
128, /* 100 */
128, /* 100 */
128, /* 100 */
128, /* 100 */
128, /* 100 */
128, /* 100 */
128, /* 100 */
64, /* 010 */
64, /* 010 */
32, /* 001 */
//-- Glyph for ASCII Character code: 41
3, /* u8Width */
13, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, /* 100 */
64, /* 010 */
64, /* 010 */
32, /* 001 */
32, /* 001 */
32, /* 001 */
32, /* 001 */
32, /* 001 */
32, /* 001 */
32, /* 001 */
64, /* 010 */
64, /* 010 */
128, /* 100 */
//-- Glyph for ASCII Character code: 42
5, /* u8Width */
4, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
32, /* 00100 */
248, /* 11111 */
32, /* 00100 */
80, /* 01010 */
//-- Glyph for ASCII Character code: 43
7, /* u8Width */
7, /* u8Height */
5, /* u8VOffset */
//--[Glyph Data]--
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
254, /* 1111111 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
//-- Glyph for ASCII Character code: 44
1, /* u8Width */
3, /* u8Height */
12, /* u8VOffset */
//--[Glyph Data]--
128, /* 1 */
128, /* 1 */
128, /* 1 */
//-- Glyph for ASCII Character code: 45
3, /* u8Width */
1, /* u8Height */
9, /* u8VOffset */
//--[Glyph Data]--
224, /* 111 */
//-- Glyph for ASCII Character code: 46
1, /* u8Width */
1, /* u8Height */
12, /* u8VOffset */
//--[Glyph Data]--
128, /* 1 */
//-- Glyph for ASCII Character code: 47
4, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
16, /* 0001 */
16, /* 0001 */
32, /* 0010 */
32, /* 0010 */
32, /* 0010 */
64, /* 0100 */
64, /* 0100 */
64, /* 0100 */
128, /* 1000 */
128, /* 1000 */
//-- Glyph for ASCII Character code: 48
6, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
120, /* 011110 */
132, /* 100001 */
132, /* 100001 */
132, /* 100001 */
132, /* 100001 */
132, /* 100001 */
132, /* 100001 */
132, /* 100001 */
132, /* 100001 */
120, /* 011110 */
//-- Glyph for ASCII Character code: 49
3, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
32, /* 001 */
96, /* 011 */
160, /* 101 */
32, /* 001 */
32, /* 001 */
32, /* 001 */
32, /* 001 */
32, /* 001 */
32, /* 001 */
32, /* 001 */
//-- Glyph for ASCII Character code: 50
6, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
120, /* 011110 */
132, /* 100001 */
4, /* 000001 */
4, /* 000001 */
4, /* 000001 */
8, /* 000010 */
16, /* 000100 */
32, /* 001000 */
64, /* 010000 */
252, /* 111111 */
//-- Glyph for ASCII Character code: 51
6, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
120, /* 011110 */
132, /* 100001 */
4, /* 000001 */
4, /* 000001 */
56, /* 001110 */
4, /* 000001 */
4, /* 000001 */
4, /* 000001 */
132, /* 100001 */
120, /* 011110 */
//-- Glyph for ASCII Character code: 52
6, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
8, /* 000010 */
24, /* 000110 */
24, /* 000110 */
40, /* 001010 */
40, /* 001010 */
72, /* 010010 */
72, /* 010010 */
252, /* 111111 */
8, /* 000010 */
8, /* 000010 */
//-- Glyph for ASCII Character code: 53
6, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
124, /* 011111 */
64, /* 010000 */
64, /* 010000 */
128, /* 100000 */
248, /* 111110 */
132, /* 100001 */
4, /* 000001 */
4, /* 000001 */
132, /* 100001 */
120, /* 011110 */
//-- Glyph for ASCII Character code: 54
6, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
120, /* 011110 */
132, /* 100001 */
128, /* 100000 */
128, /* 100000 */
184, /* 101110 */
196, /* 110001 */
132, /* 100001 */
132, /* 100001 */
132, /* 100001 */
120, /* 011110 */
//-- Glyph for ASCII Character code: 55
6, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
252, /* 111111 */
8, /* 000010 */
8, /* 000010 */
16, /* 000100 */
16, /* 000100 */
32, /* 001000 */
32, /* 001000 */
64, /* 010000 */
64, /* 010000 */
64, /* 010000 */
//-- Glyph for ASCII Character code: 56
6, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
120, /* 011110 */
132, /* 100001 */
132, /* 100001 */
132, /* 100001 */
120, /* 011110 */
132, /* 100001 */
132, /* 100001 */
132, /* 100001 */
132, /* 100001 */
120, /* 011110 */
//-- Glyph for ASCII Character code: 57
6, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
120, /* 011110 */
132, /* 100001 */
132, /* 100001 */
132, /* 100001 */
140, /* 100011 */
116, /* 011101 */
4, /* 000001 */
4, /* 000001 */
136, /* 100010 */
112, /* 011100 */
//-- Glyph for ASCII Character code: 58
1, /* u8Width */
7, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
128, /* 1 */
0, /* 0 */
0, /* 0 */
0, /* 0 */
0, /* 0 */
0, /* 0 */
128, /* 1 */
//-- Glyph for ASCII Character code: 59
1, /* u8Width */
9, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
128, /* 1 */
0, /* 0 */
0, /* 0 */
0, /* 0 */
0, /* 0 */
0, /* 0 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
//-- Glyph for ASCII Character code: 60
6, /* u8Width */
7, /* u8Height */
5, /* u8VOffset */
//--[Glyph Data]--
4, /* 000001 */
24, /* 000110 */
96, /* 011000 */
128, /* 100000 */
96, /* 011000 */
24, /* 000110 */
4, /* 000001 */
//-- Glyph for ASCII Character code: 61
7, /* u8Width */
4, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
254, /* 1111111 */
0, /* 0000000 */
0, /* 0000000 */
254, /* 1111111 */
//-- Glyph for ASCII Character code: 62
6, /* u8Width */
7, /* u8Height */
5, /* u8VOffset */
//--[Glyph Data]--
128, /* 100000 */
96, /* 011000 */
24, /* 000110 */
4, /* 000001 */
24, /* 000110 */
96, /* 011000 */
128, /* 100000 */
//-- Glyph for ASCII Character code: 63
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
112, /* 01110 */
136, /* 10001 */
136, /* 10001 */
8, /* 00001 */
16, /* 00010 */
32, /* 00100 */
64, /* 01000 */
64, /* 01000 */
0, /* 00000 */
64, /* 01000 */
//-- Glyph for ASCII Character code: 64
12, /* u8Width */
13, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
15, 128, /* 000011111000 */
48, 64, /* 001100000100 */
64, 32, /* 010000000010 */
78, 144, /* 010011101001 */
145, 144, /* 100100011001 */
160, 144, /* 101000001001 */
161, 16, /* 101000010001 */
161, 32, /* 101000010010 */
163, 32, /* 101000110010 */
157, 192, /* 100111011100 */
64, 16, /* 010000000001 */
32, 96, /* 001000000110 */
31, 128, /* 000111111000 */
//-- Glyph for ASCII Character code: 65
9, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
8, 0, /* 000010000 */
20, 0, /* 000101000 */
20, 0, /* 000101000 */
20, 0, /* 000101000 */
34, 0, /* 001000100 */
34, 0, /* 001000100 */
127, 0, /* 011111110 */
65, 0, /* 010000010 */
128, 128, /* 100000001 */
128, 128, /* 100000001 */
//-- Glyph for ASCII Character code: 66
7, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
252, /* 1111110 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
252, /* 1111110 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
252, /* 1111110 */
//-- Glyph for ASCII Character code: 67
7, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
56, /* 0011100 */
68, /* 0100010 */
130, /* 1000001 */
128, /* 1000000 */
128, /* 1000000 */
128, /* 1000000 */
128, /* 1000000 */
130, /* 1000001 */
68, /* 0100010 */
56, /* 0011100 */
//-- Glyph for ASCII Character code: 68
7, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
248, /* 1111100 */
132, /* 1000010 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
132, /* 1000010 */
248, /* 1111100 */
//-- Glyph for ASCII Character code: 69
7, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
254, /* 1111111 */
128, /* 1000000 */
128, /* 1000000 */
128, /* 1000000 */
254, /* 1111111 */
128, /* 1000000 */
128, /* 1000000 */
128, /* 1000000 */
128, /* 1000000 */
254, /* 1111111 */
//-- Glyph for ASCII Character code: 70
6, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
252, /* 111111 */
128, /* 100000 */
128, /* 100000 */
128, /* 100000 */
248, /* 111110 */
128, /* 100000 */
128, /* 100000 */
128, /* 100000 */
128, /* 100000 */
128, /* 100000 */
//-- Glyph for ASCII Character code: 71
8, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
60, /* 00111100 */
66, /* 01000010 */
129, /* 10000001 */
128, /* 10000000 */
128, /* 10000000 */
143, /* 10001111 */
129, /* 10000001 */
129, /* 10000001 */
66, /* 01000010 */
60, /* 00111100 */
//-- Glyph for ASCII Character code: 72
7, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
254, /* 1111111 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
//-- Glyph for ASCII Character code: 73
1, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
//-- Glyph for ASCII Character code: 74
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
8, /* 00001 */
8, /* 00001 */
8, /* 00001 */
8, /* 00001 */
8, /* 00001 */
8, /* 00001 */
8, /* 00001 */
136, /* 10001 */
136, /* 10001 */
112, /* 01110 */
//-- Glyph for ASCII Character code: 75
8, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
129, /* 10000001 */
130, /* 10000010 */
132, /* 10000100 */
136, /* 10001000 */
144, /* 10010000 */
176, /* 10110000 */
200, /* 11001000 */
132, /* 10000100 */
130, /* 10000010 */
129, /* 10000001 */
//-- Glyph for ASCII Character code: 76
6, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, /* 100000 */
128, /* 100000 */
128, /* 100000 */
128, /* 100000 */
128, /* 100000 */
128, /* 100000 */
128, /* 100000 */
128, /* 100000 */
128, /* 100000 */
252, /* 111111 */
//-- Glyph for ASCII Character code: 77
9, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, 128, /* 100000001 */
193, 128, /* 110000011 */
193, 128, /* 110000011 */
162, 128, /* 101000101 */
162, 128, /* 101000101 */
148, 128, /* 100101001 */
148, 128, /* 100101001 */
148, 128, /* 100101001 */
136, 128, /* 100010001 */
136, 128, /* 100010001 */
//-- Glyph for ASCII Character code: 78
7, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
130, /* 1000001 */
194, /* 1100001 */
162, /* 1010001 */
162, /* 1010001 */
146, /* 1001001 */
146, /* 1001001 */
138, /* 1000101 */
138, /* 1000101 */
134, /* 1000011 */
130, /* 1000001 */
//-- Glyph for ASCII Character code: 79
8, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
60, /* 00111100 */
66, /* 01000010 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
66, /* 01000010 */
60, /* 00111100 */
//-- Glyph for ASCII Character code: 80
7, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
252, /* 1111110 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
252, /* 1111110 */
128, /* 1000000 */
128, /* 1000000 */
128, /* 1000000 */
128, /* 1000000 */
//-- Glyph for ASCII Character code: 81
8, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
60, /* 00111100 */
66, /* 01000010 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
141, /* 10001101 */
66, /* 01000010 */
61, /* 00111101 */
//-- Glyph for ASCII Character code: 82
7, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
252, /* 1111110 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
252, /* 1111110 */
136, /* 1000100 */
132, /* 1000010 */
132, /* 1000010 */
130, /* 1000001 */
//-- Glyph for ASCII Character code: 83
7, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
124, /* 0111110 */
130, /* 1000001 */
130, /* 1000001 */
128, /* 1000000 */
112, /* 0111000 */
12, /* 0000110 */
2, /* 0000001 */
130, /* 1000001 */
130, /* 1000001 */
124, /* 0111110 */
//-- Glyph for ASCII Character code: 84
7, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
254, /* 1111111 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
//-- Glyph for ASCII Character code: 85
7, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
68, /* 0100010 */
56, /* 0011100 */
//-- Glyph for ASCII Character code: 86
9, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, 128, /* 100000001 */
128, 128, /* 100000001 */
65, 0, /* 010000010 */
65, 0, /* 010000010 */
34, 0, /* 001000100 */
34, 0, /* 001000100 */
20, 0, /* 000101000 */
20, 0, /* 000101000 */
8, 0, /* 000010000 */
8, 0, /* 000010000 */
//-- Glyph for ASCII Character code: 87
13, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
130, 8, /* 1000001000001 */
133, 8, /* 1000010100001 */
69, 16, /* 0100010100010 */
69, 16, /* 0100010100010 */
69, 16, /* 0100010100010 */
40, 160, /* 0010100010100 */
40, 160, /* 0010100010100 */
40, 160, /* 0010100010100 */
16, 64, /* 0001000001000 */
16, 64, /* 0001000001000 */
//-- Glyph for ASCII Character code: 88
7, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
130, /* 1000001 */
68, /* 0100010 */
68, /* 0100010 */
40, /* 0010100 */
16, /* 0001000 */
16, /* 0001000 */
40, /* 0010100 */
68, /* 0100010 */
68, /* 0100010 */
130, /* 1000001 */
//-- Glyph for ASCII Character code: 89
7, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
130, /* 1000001 */
68, /* 0100010 */
68, /* 0100010 */
40, /* 0010100 */
40, /* 0010100 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
//-- Glyph for ASCII Character code: 90
7, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
126, /* 0111111 */
4, /* 0000010 */
8, /* 0000100 */
8, /* 0000100 */
16, /* 0001000 */
16, /* 0001000 */
32, /* 0010000 */
32, /* 0010000 */
64, /* 0100000 */
254, /* 1111111 */
//-- Glyph for ASCII Character code: 91
2, /* u8Width */
13, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
192, /* 11 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
192, /* 11 */
//-- Glyph for ASCII Character code: 92
4, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, /* 1000 */
128, /* 1000 */
64, /* 0100 */
64, /* 0100 */
64, /* 0100 */
32, /* 0010 */
32, /* 0010 */
32, /* 0010 */
16, /* 0001 */
16, /* 0001 */
//-- Glyph for ASCII Character code: 93
2, /* u8Width */
13, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
192, /* 11 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
192, /* 11 */
//-- Glyph for ASCII Character code: 94
5, /* u8Width */
5, /* u8Height */
4, /* u8VOffset */
//--[Glyph Data]--
32, /* 00100 */
80, /* 01010 */
80, /* 01010 */
80, /* 01010 */
136, /* 10001 */
//-- Glyph for ASCII Character code: 95
7, /* u8Width */
1, /* u8Height */
15, /* u8VOffset */
//--[Glyph Data]--
254, /* 1111111 */
//-- Glyph for ASCII Character code: 96
2, /* u8Width */
2, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, /* 10 */
64, /* 01 */
//-- Glyph for ASCII Character code: 97
5, /* u8Width */
7, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
112, /* 01110 */
136, /* 10001 */
8, /* 00001 */
120, /* 01111 */
136, /* 10001 */
152, /* 10011 */
104, /* 01101 */
//-- Glyph for ASCII Character code: 98
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, /* 10000 */
128, /* 10000 */
128, /* 10000 */
176, /* 10110 */
200, /* 11001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
240, /* 11110 */
//-- Glyph for ASCII Character code: 99
5, /* u8Width */
7, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
112, /* 01110 */
136, /* 10001 */
128, /* 10000 */
128, /* 10000 */
128, /* 10000 */
136, /* 10001 */
112, /* 01110 */
//-- Glyph for ASCII Character code: 100
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
8, /* 00001 */
8, /* 00001 */
8, /* 00001 */
104, /* 01101 */
152, /* 10011 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
120, /* 01111 */
//-- Glyph for ASCII Character code: 101
5, /* u8Width */
7, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
112, /* 01110 */
136, /* 10001 */
136, /* 10001 */
248, /* 11111 */
128, /* 10000 */
136, /* 10001 */
112, /* 01110 */
//-- Glyph for ASCII Character code: 102
4, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
48, /* 0011 */
64, /* 0100 */
64, /* 0100 */
224, /* 1110 */
64, /* 0100 */
64, /* 0100 */
64, /* 0100 */
64, /* 0100 */
64, /* 0100 */
64, /* 0100 */
//-- Glyph for ASCII Character code: 103
5, /* u8Width */
10, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
104, /* 01101 */
152, /* 10011 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
152, /* 10011 */
104, /* 01101 */
8, /* 00001 */
136, /* 10001 */
112, /* 01110 */
//-- Glyph for ASCII Character code: 104
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, /* 10000 */
128, /* 10000 */
128, /* 10000 */
176, /* 10110 */
200, /* 11001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
//-- Glyph for ASCII Character code: 105
1, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, /* 1 */
0, /* 0 */
0, /* 0 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
//-- Glyph for ASCII Character code: 106
3, /* u8Width */
13, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
32, /* 001 */
0, /* 000 */
0, /* 000 */
32, /* 001 */
32, /* 001 */
32, /* 001 */
32, /* 001 */
32, /* 001 */
32, /* 001 */
32, /* 001 */
32, /* 001 */
32, /* 001 */
192, /* 110 */
//-- Glyph for ASCII Character code: 107
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, /* 10000 */
128, /* 10000 */
128, /* 10000 */
136, /* 10001 */
144, /* 10010 */
160, /* 10100 */
224, /* 11100 */
144, /* 10010 */
144, /* 10010 */
136, /* 10001 */
//-- Glyph for ASCII Character code: 108
1, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
//-- Glyph for ASCII Character code: 109
9, /* u8Width */
7, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
179, 0, /* 101100110 */
204, 128, /* 110011001 */
136, 128, /* 100010001 */
136, 128, /* 100010001 */
136, 128, /* 100010001 */
136, 128, /* 100010001 */
136, 128, /* 100010001 */
//-- Glyph for ASCII Character code: 110
5, /* u8Width */
7, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
176, /* 10110 */
200, /* 11001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
//-- Glyph for ASCII Character code: 111
5, /* u8Width */
7, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
112, /* 01110 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
112, /* 01110 */
//-- Glyph for ASCII Character code: 112
5, /* u8Width */
10, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
176, /* 10110 */
200, /* 11001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
200, /* 11001 */
176, /* 10110 */
128, /* 10000 */
128, /* 10000 */
128, /* 10000 */
//-- Glyph for ASCII Character code: 113
5, /* u8Width */
10, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
104, /* 01101 */
152, /* 10011 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
152, /* 10011 */
104, /* 01101 */
8, /* 00001 */
8, /* 00001 */
8, /* 00001 */
//-- Glyph for ASCII Character code: 114
3, /* u8Width */
7, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
160, /* 101 */
192, /* 110 */
128, /* 100 */
128, /* 100 */
128, /* 100 */
128, /* 100 */
128, /* 100 */
//-- Glyph for ASCII Character code: 115
5, /* u8Width */
7, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
112, /* 01110 */
136, /* 10001 */
128, /* 10000 */
112, /* 01110 */
8, /* 00001 */
136, /* 10001 */
112, /* 01110 */
//-- Glyph for ASCII Character code: 116
3, /* u8Width */
9, /* u8Height */
4, /* u8VOffset */
//--[Glyph Data]--
64, /* 010 */
64, /* 010 */
224, /* 111 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
96, /* 011 */
//-- Glyph for ASCII Character code: 117
5, /* u8Width */
7, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
120, /* 01111 */
//-- Glyph for ASCII Character code: 118
5, /* u8Width */
7, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
136, /* 10001 */
136, /* 10001 */
80, /* 01010 */
80, /* 01010 */
80, /* 01010 */
32, /* 00100 */
32, /* 00100 */
//-- Glyph for ASCII Character code: 119
9, /* u8Width */
7, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
136, 128, /* 100010001 */
136, 128, /* 100010001 */
85, 0, /* 010101010 */
85, 0, /* 010101010 */
85, 0, /* 010101010 */
34, 0, /* 001000100 */
34, 0, /* 001000100 */
//-- Glyph for ASCII Character code: 120
5, /* u8Width */
7, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
136, /* 10001 */
80, /* 01010 */
80, /* 01010 */
32, /* 00100 */
80, /* 01010 */
80, /* 01010 */
136, /* 10001 */
//-- Glyph for ASCII Character code: 121
5, /* u8Width */
10, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
136, /* 10001 */
136, /* 10001 */
80, /* 01010 */
80, /* 01010 */
80, /* 01010 */
32, /* 00100 */
32, /* 00100 */
32, /* 00100 */
32, /* 00100 */
192, /* 11000 */
//-- Glyph for ASCII Character code: 122
5, /* u8Width */
7, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
248, /* 11111 */
16, /* 00010 */
16, /* 00010 */
32, /* 00100 */
64, /* 01000 */
64, /* 01000 */
248, /* 11111 */
//-- Glyph for ASCII Character code: 123
3, /* u8Width */
13, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
32, /* 001 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
128, /* 100 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
32, /* 001 */
//-- Glyph for ASCII Character code: 124
1, /* u8Width */
12, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
//-- Glyph for ASCII Character code: 125
3, /* u8Width */
13, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, /* 100 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
32, /* 001 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
128, /* 100 */
//-- Glyph for ASCII Character code: 126
7, /* u8Width */
2, /* u8Height */
7, /* u8VOffset */
//--[Glyph Data]--
114, /* 0111001 */
158, /* 1001111 */
//-- Glyph for ASCII Character code: 127
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 128
7, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
30, /* 0001111 */
32, /* 0010000 */
64, /* 0100000 */
254, /* 1111111 */
64, /* 0100000 */
254, /* 1111111 */
64, /* 0100000 */
64, /* 0100000 */
32, /* 0010000 */
30, /* 0001111 */
//-- Glyph for ASCII Character code: 129
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 130
1, /* u8Width */
3, /* u8Height */
12, /* u8VOffset */
//--[Glyph Data]--
128, /* 1 */
128, /* 1 */
128, /* 1 */
//-- Glyph for ASCII Character code: 131
7, /* u8Width */
13, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
14, /* 0000111 */
8, /* 0000100 */
8, /* 0000100 */
60, /* 0011110 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
32, /* 0010000 */
32, /* 0010000 */
32, /* 0010000 */
224, /* 1110000 */
//-- Glyph for ASCII Character code: 132
3, /* u8Width */
3, /* u8Height */
12, /* u8VOffset */
//--[Glyph Data]--
160, /* 101 */
160, /* 101 */
160, /* 101 */
//-- Glyph for ASCII Character code: 133
9, /* u8Width */
1, /* u8Height */
12, /* u8VOffset */
//--[Glyph Data]--
136, 128, /* 100010001 */
//-- Glyph for ASCII Character code: 134
7, /* u8Width */
12, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
254, /* 1111111 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
//-- Glyph for ASCII Character code: 135
7, /* u8Width */
12, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
16, /* 0001000 */
16, /* 0001000 */
254, /* 1111111 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
254, /* 1111111 */
16, /* 0001000 */
16, /* 0001000 */
//-- Glyph for ASCII Character code: 136
4, /* u8Width */
2, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
96, /* 0110 */
144, /* 1001 */
//-- Glyph for ASCII Character code: 137
14, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
98, 0, /* 01100010000000 */
148, 0, /* 10010100000000 */
148, 0, /* 10010100000000 */
148, 0, /* 10010100000000 */
104, 0, /* 01101000000000 */
11, 24, /* 00001011000110 */
20, 164, /* 00010100101001 */
20, 164, /* 00010100101001 */
20, 164, /* 00010100101001 */
35, 24, /* 00100011000110 */
//-- Glyph for ASCII Character code: 138
7, /* u8Width */
13, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
36, /* 0010010 */
24, /* 0001100 */
0, /* 0000000 */
124, /* 0111110 */
130, /* 1000001 */
130, /* 1000001 */
128, /* 1000000 */
112, /* 0111000 */
12, /* 0000110 */
2, /* 0000001 */
130, /* 1000001 */
130, /* 1000001 */
124, /* 0111110 */
//-- Glyph for ASCII Character code: 139
3, /* u8Width */
6, /* u8Height */
7, /* u8VOffset */
//--[Glyph Data]--
32, /* 001 */
64, /* 010 */
128, /* 100 */
128, /* 100 */
64, /* 010 */
32, /* 001 */
//-- Glyph for ASCII Character code: 140
11, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
59, 224, /* 00111011111 */
70, 0, /* 01000110000 */
130, 0, /* 10000010000 */
130, 0, /* 10000010000 */
131, 224, /* 10000011111 */
130, 0, /* 10000010000 */
130, 0, /* 10000010000 */
130, 0, /* 10000010000 */
70, 0, /* 01000110000 */
59, 224, /* 00111011111 */
//-- Glyph for ASCII Character code: 141
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 142
7, /* u8Width */
13, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
36, /* 0010010 */
24, /* 0001100 */
0, /* 0000000 */
126, /* 0111111 */
4, /* 0000010 */
8, /* 0000100 */
8, /* 0000100 */
16, /* 0001000 */
16, /* 0001000 */
32, /* 0010000 */
32, /* 0010000 */
64, /* 0100000 */
254, /* 1111111 */
//-- Glyph for ASCII Character code: 143
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 144
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 145
1, /* u8Width */
3, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, /* 1 */
128, /* 1 */
128, /* 1 */
//-- Glyph for ASCII Character code: 146
1, /* u8Width */
3, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, /* 1 */
128, /* 1 */
128, /* 1 */
//-- Glyph for ASCII Character code: 147
3, /* u8Width */
3, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
160, /* 101 */
160, /* 101 */
160, /* 101 */
//-- Glyph for ASCII Character code: 148
3, /* u8Width */
3, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
160, /* 101 */
160, /* 101 */
160, /* 101 */
//-- Glyph for ASCII Character code: 149
3, /* u8Width */
3, /* u8Height */
7, /* u8VOffset */
//--[Glyph Data]--
224, /* 111 */
224, /* 111 */
224, /* 111 */
//-- Glyph for ASCII Character code: 150
7, /* u8Width */
1, /* u8Height */
9, /* u8VOffset */
//--[Glyph Data]--
254, /* 1111111 */
//-- Glyph for ASCII Character code: 151
13, /* u8Width */
1, /* u8Height */
9, /* u8VOffset */
//--[Glyph Data]--
255, 248, /* 1111111111111 */
//-- Glyph for ASCII Character code: 152
4, /* u8Width */
2, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
80, /* 0101 */
160, /* 1010 */
//-- Glyph for ASCII Character code: 153
11, /* u8Width */
5, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
250, 32, /* 11111010001 */
35, 96, /* 00100011011 */
35, 96, /* 00100011011 */
35, 96, /* 00100011011 */
34, 160, /* 00100010101 */
//-- Glyph for ASCII Character code: 154
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
72, /* 01001 */
48, /* 00110 */
0, /* 00000 */
112, /* 01110 */
136, /* 10001 */
128, /* 10000 */
112, /* 01110 */
8, /* 00001 */
136, /* 10001 */
112, /* 01110 */
//-- Glyph for ASCII Character code: 155
3, /* u8Width */
6, /* u8Height */
7, /* u8VOffset */
//--[Glyph Data]--
128, /* 100 */
64, /* 010 */
32, /* 001 */
32, /* 001 */
64, /* 010 */
128, /* 100 */
//-- Glyph for ASCII Character code: 156
10, /* u8Width */
7, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
119, 128, /* 0111011110 */
136, 64, /* 1000100001 */
136, 64, /* 1000100001 */
143, 192, /* 1000111111 */
136, 0, /* 1000100000 */
136, 64, /* 1000100001 */
119, 128, /* 0111011110 */
//-- Glyph for ASCII Character code: 157
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 158
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
72, /* 01001 */
48, /* 00110 */
0, /* 00000 */
248, /* 11111 */
16, /* 00010 */
16, /* 00010 */
32, /* 00100 */
64, /* 01000 */
64, /* 01000 */
248, /* 11111 */
//-- Glyph for ASCII Character code: 159
7, /* u8Width */
12, /* u8Height */
1, /* u8VOffset */
//--[Glyph Data]--
40, /* 0010100 */
0, /* 0000000 */
130, /* 1000001 */
68, /* 0100010 */
68, /* 0100010 */
40, /* 0010100 */
40, /* 0010100 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
//-- Glyph for ASCII Character code: 160
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 161
1, /* u8Width */
10, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
128, /* 1 */
0, /* 0 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
//-- Glyph for ASCII Character code: 162
6, /* u8Width */
13, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
8, /* 000010 */
8, /* 000010 */
8, /* 000010 */
56, /* 001110 */
84, /* 010101 */
144, /* 100100 */
160, /* 101000 */
164, /* 101001 */
232, /* 111010 */
112, /* 011100 */
64, /* 010000 */
64, /* 010000 */
64, /* 010000 */
//-- Glyph for ASCII Character code: 163
6, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
56, /* 001110 */
68, /* 010001 */
64, /* 010000 */
64, /* 010000 */
248, /* 111110 */
32, /* 001000 */
32, /* 001000 */
64, /* 010000 */
112, /* 011100 */
140, /* 100011 */
//-- Glyph for ASCII Character code: 164
5, /* u8Width */
5, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
168, /* 10101 */
80, /* 01010 */
136, /* 10001 */
80, /* 01010 */
168, /* 10101 */
//-- Glyph for ASCII Character code: 165
7, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
130, /* 1000001 */
68, /* 0100010 */
68, /* 0100010 */
40, /* 0010100 */
40, /* 0010100 */
254, /* 1111111 */
16, /* 0001000 */
254, /* 1111111 */
16, /* 0001000 */
16, /* 0001000 */
//-- Glyph for ASCII Character code: 166
1, /* u8Width */
12, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
0, /* 0 */
0, /* 0 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
128, /* 1 */
//-- Glyph for ASCII Character code: 167
6, /* u8Width */
12, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
48, /* 001100 */
72, /* 010010 */
64, /* 010000 */
96, /* 011000 */
152, /* 100110 */
140, /* 100011 */
196, /* 110001 */
108, /* 011011 */
16, /* 000100 */
8, /* 000010 */
136, /* 100010 */
112, /* 011100 */
//-- Glyph for ASCII Character code: 168
3, /* u8Width */
1, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
160, /* 101 */
//-- Glyph for ASCII Character code: 169
10, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
63, 0, /* 0011111100 */
64, 128, /* 0100000010 */
158, 64, /* 1001111001 */
161, 64, /* 1010000101 */
160, 64, /* 1010000001 */
160, 64, /* 1010000001 */
161, 64, /* 1010000101 */
158, 64, /* 1001111001 */
64, 128, /* 0100000010 */
63, 0, /* 0011111100 */
//-- Glyph for ASCII Character code: 170
4, /* u8Width */
5, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
112, /* 0111 */
144, /* 1001 */
112, /* 0111 */
144, /* 1001 */
240, /* 1111 */
//-- Glyph for ASCII Character code: 171
5, /* u8Width */
6, /* u8Height */
7, /* u8VOffset */
//--[Glyph Data]--
40, /* 00101 */
80, /* 01010 */
160, /* 10100 */
160, /* 10100 */
80, /* 01010 */
40, /* 00101 */
//-- Glyph for ASCII Character code: 172
7, /* u8Width */
4, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
254, /* 1111111 */
2, /* 0000001 */
2, /* 0000001 */
2, /* 0000001 */
//-- Glyph for ASCII Character code: 173
0, /* u8Width */
0, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
/* No glyph data*/
//-- Glyph for ASCII Character code: 174
10, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
63, 0, /* 0011111100 */
64, 128, /* 0100000010 */
158, 64, /* 1001111001 */
145, 64, /* 1001000101 */
145, 64, /* 1001000101 */
158, 64, /* 1001111001 */
146, 64, /* 1001001001 */
145, 64, /* 1001000101 */
64, 128, /* 0100000010 */
63, 0, /* 0011111100 */
//-- Glyph for ASCII Character code: 175
7, /* u8Width */
1, /* u8Height */
2, /* u8VOffset */
//--[Glyph Data]--
254, /* 1111111 */
//-- Glyph for ASCII Character code: 176
4, /* u8Width */
4, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
96, /* 0110 */
144, /* 1001 */
144, /* 1001 */
96, /* 0110 */
//-- Glyph for ASCII Character code: 177
7, /* u8Width */
8, /* u8Height */
5, /* u8VOffset */
//--[Glyph Data]--
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
254, /* 1111111 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
254, /* 1111111 */
//-- Glyph for ASCII Character code: 178
4, /* u8Width */
5, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
112, /* 0111 */
144, /* 1001 */
32, /* 0010 */
64, /* 0100 */
240, /* 1111 */
//-- Glyph for ASCII Character code: 179
4, /* u8Width */
5, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
112, /* 0111 */
144, /* 1001 */
32, /* 0010 */
144, /* 1001 */
112, /* 0111 */
//-- Glyph for ASCII Character code: 180
2, /* u8Width */
2, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
64, /* 01 */
128, /* 10 */
//-- Glyph for ASCII Character code: 181
5, /* u8Width */
10, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
248, /* 11111 */
128, /* 10000 */
128, /* 10000 */
128, /* 10000 */
//-- Glyph for ASCII Character code: 182
7, /* u8Width */
12, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
126, /* 0111111 */
244, /* 1111010 */
244, /* 1111010 */
244, /* 1111010 */
116, /* 0111010 */
20, /* 0001010 */
20, /* 0001010 */
20, /* 0001010 */
20, /* 0001010 */
20, /* 0001010 */
20, /* 0001010 */
20, /* 0001010 */
//-- Glyph for ASCII Character code: 183
1, /* u8Width */
1, /* u8Height */
8, /* u8VOffset */
//--[Glyph Data]--
128, /* 1 */
//-- Glyph for ASCII Character code: 184
3, /* u8Width */
3, /* u8Height */
13, /* u8VOffset */
//--[Glyph Data]--
64, /* 010 */
32, /* 001 */
224, /* 111 */
//-- Glyph for ASCII Character code: 185
2, /* u8Width */
5, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
64, /* 01 */
192, /* 11 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
//-- Glyph for ASCII Character code: 186
5, /* u8Width */
5, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
112, /* 01110 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
112, /* 01110 */
//-- Glyph for ASCII Character code: 187
5, /* u8Width */
6, /* u8Height */
7, /* u8VOffset */
//--[Glyph Data]--
160, /* 10100 */
80, /* 01010 */
40, /* 00101 */
40, /* 00101 */
80, /* 01010 */
160, /* 10100 */
//-- Glyph for ASCII Character code: 188
10, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
65, 0, /* 0100000100 */
193, 0, /* 1100000100 */
66, 0, /* 0100001000 */
68, 0, /* 0100010000 */
68, 0, /* 0100010000 */
8, 128, /* 0000100010 */
17, 128, /* 0001000110 */
34, 128, /* 0010001010 */
35, 192, /* 0010001111 */
64, 128, /* 0100000010 */
//-- Glyph for ASCII Character code: 189
10, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
65, 0, /* 0100000100 */
194, 0, /* 1100001000 */
66, 0, /* 0100001000 */
68, 0, /* 0100010000 */
72, 0, /* 0100100000 */
9, 128, /* 0000100110 */
18, 64, /* 0001001001 */
32, 128, /* 0010000010 */
33, 0, /* 0010000100 */
67, 192, /* 0100001111 */
//-- Glyph for ASCII Character code: 190
11, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
112, 128, /* 01110000100 */
144, 128, /* 10010000100 */
33, 0, /* 00100001000 */
146, 0, /* 10010010000 */
114, 0, /* 01110010000 */
4, 64, /* 00000100010 */
8, 192, /* 00001000110 */
17, 64, /* 00010001010 */
17, 224, /* 00010001111 */
32, 64, /* 00100000010 */
//-- Glyph for ASCII Character code: 191
6, /* u8Width */
10, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
32, /* 001000 */
0, /* 000000 */
32, /* 001000 */
32, /* 001000 */
32, /* 001000 */
64, /* 010000 */
128, /* 100000 */
132, /* 100001 */
132, /* 100001 */
120, /* 011110 */
//-- Glyph for ASCII Character code: 192
9, /* u8Width */
13, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
16, 0, /* 000100000 */
8, 0, /* 000010000 */
0, 0, /* 000000000 */
8, 0, /* 000010000 */
20, 0, /* 000101000 */
20, 0, /* 000101000 */
20, 0, /* 000101000 */
34, 0, /* 001000100 */
34, 0, /* 001000100 */
127, 0, /* 011111110 */
65, 0, /* 010000010 */
128, 128, /* 100000001 */
128, 128, /* 100000001 */
//-- Glyph for ASCII Character code: 193
9, /* u8Width */
13, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
4, 0, /* 000001000 */
8, 0, /* 000010000 */
0, 0, /* 000000000 */
8, 0, /* 000010000 */
20, 0, /* 000101000 */
20, 0, /* 000101000 */
20, 0, /* 000101000 */
34, 0, /* 001000100 */
34, 0, /* 001000100 */
127, 0, /* 011111110 */
65, 0, /* 010000010 */
128, 128, /* 100000001 */
128, 128, /* 100000001 */
//-- Glyph for ASCII Character code: 194
9, /* u8Width */
13, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
12, 0, /* 000011000 */
18, 0, /* 000100100 */
0, 0, /* 000000000 */
8, 0, /* 000010000 */
20, 0, /* 000101000 */
20, 0, /* 000101000 */
20, 0, /* 000101000 */
34, 0, /* 001000100 */
34, 0, /* 001000100 */
127, 0, /* 011111110 */
65, 0, /* 010000010 */
128, 128, /* 100000001 */
128, 128, /* 100000001 */
//-- Glyph for ASCII Character code: 195
9, /* u8Width */
13, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
10, 0, /* 000010100 */
20, 0, /* 000101000 */
0, 0, /* 000000000 */
8, 0, /* 000010000 */
20, 0, /* 000101000 */
20, 0, /* 000101000 */
20, 0, /* 000101000 */
34, 0, /* 001000100 */
34, 0, /* 001000100 */
127, 0, /* 011111110 */
65, 0, /* 010000010 */
128, 128, /* 100000001 */
128, 128, /* 100000001 */
//-- Glyph for ASCII Character code: 196
9, /* u8Width */
12, /* u8Height */
1, /* u8VOffset */
//--[Glyph Data]--
20, 0, /* 000101000 */
0, 0, /* 000000000 */
8, 0, /* 000010000 */
20, 0, /* 000101000 */
20, 0, /* 000101000 */
20, 0, /* 000101000 */
34, 0, /* 001000100 */
34, 0, /* 001000100 */
127, 0, /* 011111110 */
65, 0, /* 010000010 */
128, 128, /* 100000001 */
128, 128, /* 100000001 */
//-- Glyph for ASCII Character code: 197
9, /* u8Width */
12, /* u8Height */
1, /* u8VOffset */
//--[Glyph Data]--
28, 0, /* 000111000 */
20, 0, /* 000101000 */
28, 0, /* 000111000 */
20, 0, /* 000101000 */
20, 0, /* 000101000 */
20, 0, /* 000101000 */
34, 0, /* 001000100 */
34, 0, /* 001000100 */
127, 0, /* 011111110 */
65, 0, /* 010000010 */
128, 128, /* 100000001 */
128, 128, /* 100000001 */
//-- Glyph for ASCII Character code: 198
12, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
15, 240, /* 000011111111 */
18, 0, /* 000100100000 */
18, 0, /* 000100100000 */
18, 0, /* 000100100000 */
35, 240, /* 001000111111 */
34, 0, /* 001000100000 */
126, 0, /* 011111100000 */
66, 0, /* 010000100000 */
130, 0, /* 100000100000 */
131, 240, /* 100000111111 */
//-- Glyph for ASCII Character code: 199
7, /* u8Width */
13, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
56, /* 0011100 */
68, /* 0100010 */
130, /* 1000001 */
128, /* 1000000 */
128, /* 1000000 */
128, /* 1000000 */
128, /* 1000000 */
130, /* 1000001 */
68, /* 0100010 */
56, /* 0011100 */
16, /* 0001000 */
8, /* 0000100 */
56, /* 0011100 */
//-- Glyph for ASCII Character code: 200
7, /* u8Width */
13, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
32, /* 0010000 */
16, /* 0001000 */
0, /* 0000000 */
254, /* 1111111 */
128, /* 1000000 */
128, /* 1000000 */
128, /* 1000000 */
254, /* 1111111 */
128, /* 1000000 */
128, /* 1000000 */
128, /* 1000000 */
128, /* 1000000 */
254, /* 1111111 */
//-- Glyph for ASCII Character code: 201
7, /* u8Width */
13, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
8, /* 0000100 */
16, /* 0001000 */
0, /* 0000000 */
254, /* 1111111 */
128, /* 1000000 */
128, /* 1000000 */
128, /* 1000000 */
254, /* 1111111 */
128, /* 1000000 */
128, /* 1000000 */
128, /* 1000000 */
128, /* 1000000 */
254, /* 1111111 */
//-- Glyph for ASCII Character code: 202
7, /* u8Width */
13, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
24, /* 0001100 */
36, /* 0010010 */
0, /* 0000000 */
254, /* 1111111 */
128, /* 1000000 */
128, /* 1000000 */
128, /* 1000000 */
254, /* 1111111 */
128, /* 1000000 */
128, /* 1000000 */
128, /* 1000000 */
128, /* 1000000 */
254, /* 1111111 */
//-- Glyph for ASCII Character code: 203
7, /* u8Width */
12, /* u8Height */
1, /* u8VOffset */
//--[Glyph Data]--
40, /* 0010100 */
0, /* 0000000 */
254, /* 1111111 */
128, /* 1000000 */
128, /* 1000000 */
128, /* 1000000 */
254, /* 1111111 */
128, /* 1000000 */
128, /* 1000000 */
128, /* 1000000 */
128, /* 1000000 */
254, /* 1111111 */
//-- Glyph for ASCII Character code: 204
2, /* u8Width */
13, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
128, /* 10 */
64, /* 01 */
0, /* 00 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
//-- Glyph for ASCII Character code: 205
2, /* u8Width */
13, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
64, /* 01 */
128, /* 10 */
0, /* 00 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
//-- Glyph for ASCII Character code: 206
4, /* u8Width */
13, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
96, /* 0110 */
144, /* 1001 */
0, /* 0000 */
64, /* 0100 */
64, /* 0100 */
64, /* 0100 */
64, /* 0100 */
64, /* 0100 */
64, /* 0100 */
64, /* 0100 */
64, /* 0100 */
64, /* 0100 */
64, /* 0100 */
//-- Glyph for ASCII Character code: 207
3, /* u8Width */
12, /* u8Height */
1, /* u8VOffset */
//--[Glyph Data]--
160, /* 101 */
0, /* 000 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
//-- Glyph for ASCII Character code: 208
8, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
124, /* 01111100 */
66, /* 01000010 */
65, /* 01000001 */
65, /* 01000001 */
249, /* 11111001 */
65, /* 01000001 */
65, /* 01000001 */
65, /* 01000001 */
66, /* 01000010 */
124, /* 01111100 */
//-- Glyph for ASCII Character code: 209
7, /* u8Width */
13, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
20, /* 0001010 */
40, /* 0010100 */
0, /* 0000000 */
130, /* 1000001 */
194, /* 1100001 */
162, /* 1010001 */
162, /* 1010001 */
146, /* 1001001 */
146, /* 1001001 */
138, /* 1000101 */
138, /* 1000101 */
134, /* 1000011 */
130, /* 1000001 */
//-- Glyph for ASCII Character code: 210
8, /* u8Width */
13, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
16, /* 00010000 */
8, /* 00001000 */
0, /* 00000000 */
60, /* 00111100 */
66, /* 01000010 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
66, /* 01000010 */
60, /* 00111100 */
//-- Glyph for ASCII Character code: 211
8, /* u8Width */
13, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
8, /* 00001000 */
16, /* 00010000 */
0, /* 00000000 */
60, /* 00111100 */
66, /* 01000010 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
66, /* 01000010 */
60, /* 00111100 */
//-- Glyph for ASCII Character code: 212
8, /* u8Width */
13, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
24, /* 00011000 */
36, /* 00100100 */
0, /* 00000000 */
60, /* 00111100 */
66, /* 01000010 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
66, /* 01000010 */
60, /* 00111100 */
//-- Glyph for ASCII Character code: 213
8, /* u8Width */
13, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
20, /* 00010100 */
40, /* 00101000 */
0, /* 00000000 */
60, /* 00111100 */
66, /* 01000010 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
66, /* 01000010 */
60, /* 00111100 */
//-- Glyph for ASCII Character code: 214
8, /* u8Width */
12, /* u8Height */
1, /* u8VOffset */
//--[Glyph Data]--
20, /* 00010100 */
0, /* 00000000 */
60, /* 00111100 */
66, /* 01000010 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
129, /* 10000001 */
66, /* 01000010 */
60, /* 00111100 */
//-- Glyph for ASCII Character code: 215
5, /* u8Width */
5, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
136, /* 10001 */
112, /* 01110 */
32, /* 00100 */
112, /* 01110 */
136, /* 10001 */
//-- Glyph for ASCII Character code: 216
8, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
61, /* 00111101 */
66, /* 01000010 */
133, /* 10000101 */
133, /* 10000101 */
137, /* 10001001 */
145, /* 10010001 */
145, /* 10010001 */
161, /* 10100001 */
66, /* 01000010 */
188, /* 10111100 */
//-- Glyph for ASCII Character code: 217
7, /* u8Width */
13, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
32, /* 0010000 */
16, /* 0001000 */
0, /* 0000000 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
68, /* 0100010 */
56, /* 0011100 */
//-- Glyph for ASCII Character code: 218
7, /* u8Width */
13, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
8, /* 0000100 */
16, /* 0001000 */
0, /* 0000000 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
68, /* 0100010 */
56, /* 0011100 */
//-- Glyph for ASCII Character code: 219
7, /* u8Width */
13, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
24, /* 0001100 */
36, /* 0010010 */
0, /* 0000000 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
68, /* 0100010 */
56, /* 0011100 */
//-- Glyph for ASCII Character code: 220
7, /* u8Width */
12, /* u8Height */
1, /* u8VOffset */
//--[Glyph Data]--
40, /* 0010100 */
0, /* 0000000 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
130, /* 1000001 */
68, /* 0100010 */
56, /* 0011100 */
//-- Glyph for ASCII Character code: 221
7, /* u8Width */
13, /* u8Height */
0, /* u8VOffset */
//--[Glyph Data]--
8, /* 0000100 */
16, /* 0001000 */
0, /* 0000000 */
130, /* 1000001 */
68, /* 0100010 */
68, /* 0100010 */
40, /* 0010100 */
40, /* 0010100 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
16, /* 0001000 */
//-- Glyph for ASCII Character code: 222
7, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, /* 1000000 */
128, /* 1000000 */
252, /* 1111110 */
134, /* 1000011 */
130, /* 1000001 */
130, /* 1000001 */
134, /* 1000011 */
252, /* 1111110 */
128, /* 1000000 */
128, /* 1000000 */
//-- Glyph for ASCII Character code: 223
7, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
56, /* 0011100 */
68, /* 0100010 */
132, /* 1000010 */
136, /* 1000100 */
136, /* 1000100 */
136, /* 1000100 */
132, /* 1000010 */
130, /* 1000001 */
162, /* 1010001 */
156, /* 1001110 */
//-- Glyph for ASCII Character code: 224
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
32, /* 00100 */
16, /* 00010 */
0, /* 00000 */
112, /* 01110 */
136, /* 10001 */
8, /* 00001 */
120, /* 01111 */
136, /* 10001 */
152, /* 10011 */
104, /* 01101 */
//-- Glyph for ASCII Character code: 225
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
16, /* 00010 */
32, /* 00100 */
0, /* 00000 */
112, /* 01110 */
136, /* 10001 */
8, /* 00001 */
120, /* 01111 */
136, /* 10001 */
152, /* 10011 */
104, /* 01101 */
//-- Glyph for ASCII Character code: 226
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
48, /* 00110 */
72, /* 01001 */
0, /* 00000 */
112, /* 01110 */
136, /* 10001 */
8, /* 00001 */
120, /* 01111 */
136, /* 10001 */
152, /* 10011 */
104, /* 01101 */
//-- Glyph for ASCII Character code: 227
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
40, /* 00101 */
80, /* 01010 */
0, /* 00000 */
112, /* 01110 */
136, /* 10001 */
8, /* 00001 */
120, /* 01111 */
136, /* 10001 */
152, /* 10011 */
104, /* 01101 */
//-- Glyph for ASCII Character code: 228
5, /* u8Width */
9, /* u8Height */
4, /* u8VOffset */
//--[Glyph Data]--
80, /* 01010 */
0, /* 00000 */
112, /* 01110 */
136, /* 10001 */
8, /* 00001 */
120, /* 01111 */
136, /* 10001 */
152, /* 10011 */
104, /* 01101 */
//-- Glyph for ASCII Character code: 229
5, /* u8Width */
11, /* u8Height */
2, /* u8VOffset */
//--[Glyph Data]--
112, /* 01110 */
80, /* 01010 */
112, /* 01110 */
0, /* 00000 */
112, /* 01110 */
136, /* 10001 */
8, /* 00001 */
120, /* 01111 */
136, /* 10001 */
152, /* 10011 */
104, /* 01101 */
//-- Glyph for ASCII Character code: 230
10, /* u8Width */
7, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
123, 128, /* 0111101110 */
140, 64, /* 1000110001 */
56, 64, /* 0011100001 */
79, 192, /* 0100111111 */
136, 0, /* 1000100000 */
140, 64, /* 1000110001 */
115, 128, /* 0111001110 */
//-- Glyph for ASCII Character code: 231
5, /* u8Width */
10, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
112, /* 01110 */
136, /* 10001 */
128, /* 10000 */
128, /* 10000 */
128, /* 10000 */
136, /* 10001 */
112, /* 01110 */
32, /* 00100 */
16, /* 00010 */
112, /* 01110 */
//-- Glyph for ASCII Character code: 232
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
64, /* 01000 */
32, /* 00100 */
0, /* 00000 */
112, /* 01110 */
136, /* 10001 */
136, /* 10001 */
248, /* 11111 */
128, /* 10000 */
136, /* 10001 */
112, /* 01110 */
//-- Glyph for ASCII Character code: 233
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
16, /* 00010 */
32, /* 00100 */
0, /* 00000 */
112, /* 01110 */
136, /* 10001 */
136, /* 10001 */
248, /* 11111 */
128, /* 10000 */
136, /* 10001 */
112, /* 01110 */
//-- Glyph for ASCII Character code: 234
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
48, /* 00110 */
72, /* 01001 */
0, /* 00000 */
112, /* 01110 */
136, /* 10001 */
136, /* 10001 */
248, /* 11111 */
128, /* 10000 */
136, /* 10001 */
112, /* 01110 */
//-- Glyph for ASCII Character code: 235
5, /* u8Width */
9, /* u8Height */
4, /* u8VOffset */
//--[Glyph Data]--
80, /* 01010 */
0, /* 00000 */
112, /* 01110 */
136, /* 10001 */
136, /* 10001 */
248, /* 11111 */
128, /* 10000 */
136, /* 10001 */
112, /* 01110 */
//-- Glyph for ASCII Character code: 236
2, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, /* 10 */
64, /* 01 */
0, /* 00 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
64, /* 01 */
//-- Glyph for ASCII Character code: 237
2, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
64, /* 01 */
128, /* 10 */
0, /* 00 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
128, /* 10 */
//-- Glyph for ASCII Character code: 238
4, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
96, /* 0110 */
144, /* 1001 */
0, /* 0000 */
64, /* 0100 */
64, /* 0100 */
64, /* 0100 */
64, /* 0100 */
64, /* 0100 */
64, /* 0100 */
64, /* 0100 */
//-- Glyph for ASCII Character code: 239
3, /* u8Width */
9, /* u8Height */
4, /* u8VOffset */
//--[Glyph Data]--
160, /* 101 */
0, /* 000 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
64, /* 010 */
//-- Glyph for ASCII Character code: 240
6, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
40, /* 001010 */
48, /* 001100 */
72, /* 010010 */
56, /* 001110 */
76, /* 010011 */
132, /* 100001 */
132, /* 100001 */
132, /* 100001 */
72, /* 010010 */
48, /* 001100 */
//-- Glyph for ASCII Character code: 241
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
40, /* 00101 */
80, /* 01010 */
0, /* 00000 */
176, /* 10110 */
200, /* 11001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
//-- Glyph for ASCII Character code: 242
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
64, /* 01000 */
32, /* 00100 */
0, /* 00000 */
112, /* 01110 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
112, /* 01110 */
//-- Glyph for ASCII Character code: 243
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
16, /* 00010 */
32, /* 00100 */
0, /* 00000 */
112, /* 01110 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
112, /* 01110 */
//-- Glyph for ASCII Character code: 244
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
48, /* 00110 */
72, /* 01001 */
0, /* 00000 */
112, /* 01110 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
112, /* 01110 */
//-- Glyph for ASCII Character code: 245
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
40, /* 00101 */
80, /* 01010 */
0, /* 00000 */
112, /* 01110 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
112, /* 01110 */
//-- Glyph for ASCII Character code: 246
5, /* u8Width */
9, /* u8Height */
4, /* u8VOffset */
//--[Glyph Data]--
80, /* 01010 */
0, /* 00000 */
112, /* 01110 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
112, /* 01110 */
//-- Glyph for ASCII Character code: 247
7, /* u8Width */
5, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
16, /* 0001000 */
0, /* 0000000 */
254, /* 1111111 */
0, /* 0000000 */
16, /* 0001000 */
//-- Glyph for ASCII Character code: 248
5, /* u8Width */
7, /* u8Height */
6, /* u8VOffset */
//--[Glyph Data]--
104, /* 01101 */
144, /* 10010 */
152, /* 10011 */
168, /* 10101 */
200, /* 11001 */
72, /* 01001 */
176, /* 10110 */
//-- Glyph for ASCII Character code: 249
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
64, /* 01000 */
32, /* 00100 */
0, /* 00000 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
120, /* 01111 */
//-- Glyph for ASCII Character code: 250
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
16, /* 00010 */
32, /* 00100 */
0, /* 00000 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
120, /* 01111 */
//-- Glyph for ASCII Character code: 251
5, /* u8Width */
10, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
48, /* 00110 */
72, /* 01001 */
0, /* 00000 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
120, /* 01111 */
//-- Glyph for ASCII Character code: 252
5, /* u8Width */
9, /* u8Height */
4, /* u8VOffset */
//--[Glyph Data]--
80, /* 01010 */
0, /* 00000 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
120, /* 01111 */
//-- Glyph for ASCII Character code: 253
5, /* u8Width */
13, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
16, /* 00010 */
32, /* 00100 */
0, /* 00000 */
136, /* 10001 */
136, /* 10001 */
80, /* 01010 */
80, /* 01010 */
80, /* 01010 */
32, /* 00100 */
32, /* 00100 */
32, /* 00100 */
32, /* 00100 */
192, /* 11000 */
//-- Glyph for ASCII Character code: 254
5, /* u8Width */
13, /* u8Height */
3, /* u8VOffset */
//--[Glyph Data]--
128, /* 10000 */
128, /* 10000 */
128, /* 10000 */
224, /* 11100 */
144, /* 10010 */
136, /* 10001 */
136, /* 10001 */
136, /* 10001 */
144, /* 10010 */
224, /* 11100 */
128, /* 10000 */
128, /* 10000 */
128, /* 10000 */
//-- Glyph for ASCII Character code: 255
5, /* u8Width */
12, /* u8Height */
4, /* u8VOffset */
//--[Glyph Data]--
80, /* 01010 */
0, /* 00000 */
136, /* 10001 */
136, /* 10001 */
80, /* 01010 */
80, /* 01010 */
80, /* 01010 */
32, /* 00100 */
32, /* 00100 */
32, /* 00100 */
32, /* 00100 */
192, /* 11000 */
0
};
Font_t fntArial_10_False_False_False_ = {
10, /* u8Size */
0, /* u8Flags */
0, /* u8StartChar */
255, /* u8MaxChar */
"Arial", /* szName */
Arial_10_False_False_False_ /* pu8Data */
};
|
18dcee401a2130b5ffe7945236261ecfc6015e32 | cfb660c74c320759e84d96d78991abc397ff2f0f | /geant4-cuda/benchmarks/Boyadzhiev/spheres.hpp | 7fbde8875f026a99d7b173911be19a1770a9da13 | [] | no_license | zoulianmp/geant4-cuda | e81acf7a49b67eeee572d08cea3ec15dfaf75581 | ed5746d6b8aea8f37d04156ada6d2578ee90e949 | refs/heads/master | 2021-01-18T08:47:12.654736 | 2013-06-29T13:35:15 | 2013-06-29T13:35:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,166 | hpp | spheres.hpp |
/** Geometry based on a voxelization benchmark by Ivaylo Boyadzhiev */
#ifndef BOYADZHIEV_GEOMETRY_SPHERES_HPP
#define BOYADZHIEV_GEOMETRY_SPHERES_HPP
#include "../../geometry_common.hpp"
#include <map>
class BoyadzhievSpheres : public BasicGeometry
{
public:
typedef enum {
SPHERES,
CONS,
MIXED
} OBJECT_TYPE; /* Defines what kind of small objects to put */
BoyadzhievSpheres( int maxsz = 20000 * 1024 )
: BasicGeometry( maxsz )
{
// default parameters
num = 3;
smartless = kInfinity;
density = 0.5;
flat = false;
test_type = MIXED;
rotated = true;
sliced = true;
smallObjRad = 40;
mixedDistribution[kOrb] = 2;
mixedDistribution[kTubs] = 5;
mixedDistribution[kBox] = 1;
mixedDistribution[kCons] = 3;
objmaterial = NULL;
std::srand( 3 );
}
void setParams( G4int num_, G4double smartless_,
G4double density_, G4bool flat_, OBJECT_TYPE test_type_,
G4bool rotated_, G4bool sliced_, std::map< ESolid, G4double > distribution_ )
{
num = num_;
smartless = smartless_;
density = density_;
flat = flat_;
test_type = test_type_;
rotated = rotated_;
sliced = sliced_;
mixedDistribution = distribution_;
}
double getScale() const
{
return 50000;
}
CameraParameters getCamera() const
{
CameraParameters p;
p.heading = -110;
p.pitch = 10;
p.dist = 0.035*getScale()*2;
p.yfov = 80;
return p;
}
private:
G4int num;
G4double smartless;
G4double density, smallObjRad;
G4bool flat, rotated, sliced;
OBJECT_TYPE test_type;
std::map< ESolid, G4double > mixedDistribution;
StubMaterial *objmaterial;
void create_impl()
{
printf ("Entered in spheres.hpp\n");
// all units in millimeters (mm)
/* Radius of the first big sphere layer will be 2 * INIT_R */
const G4double INIT_R = 512;
int numSmallObjs = 0;
const G4RotationMatrix idRot = G4RotationMatrix_create_id();
printf ("Rotation Matrix Created\n");
// const G4ThreeVector zeroTrans = G4ThreeVector_create( 0,0,0 );
G4ThreeVector zeroTrans = {0, 0, 0};
printf ("Zero Trans Vector Created\n");
// World volume must be first
G4VPhysicalVolume *physiWorld = reserveThing<G4VPhysicalVolume>();
printf ("Pointer to Physical World Created\n");
G4LogicalVolume *logicWorld = reserveThing<G4LogicalVolume>();
printf ("Pointer to Logical World Created\n");
G4Box *solidWorld = reserveThing<G4Box>();
printf ("Pointr to solid World\n");
StubMaterial *air = reserveThing<StubMaterial>();
printf ("Pointer to Air\n");
objmaterial = reserveThing<StubMaterial>();
printf ("Object Material Value Set\n");
air->property = 0; //0.005;
objmaterial->property = 6000.0;
printf ("Variable Allocation Done\n");
G4Box_ctor(solidWorld, 100000, 100000, 100000); // (in millimeters)
G4LogicalVolume_ctor(logicWorld, (G4VSolid*)solidWorld, air);
G4VPhysicalVolume_ctor(physiWorld, idRot, zeroTrans, logicWorld);
/* Calculate the radius of the last layer of big spheres */
G4double currR = INIT_R * std::pow(2., num);
/* Used to create the hierarchy of big spheres */
G4LogicalVolume* lastLogical = logicWorld;
G4VPhysicalVolume* lastPhysical = physiWorld;
G4LogicalVolume *bigLogicals = reserveNThings<G4LogicalVolume>(num);
G4VPhysicalVolume *bigPhysicals = reserveNThings<G4VPhysicalVolume>(num);
G4Orb *bigSolids = reserveNThings<G4Orb>(num);
std::vector< std::vector<G4VPhysicalVolume*> > smallPhysicals(num);
printf ("World Volume Set\n");
/* Start to build the geometry from the most outer layer */
for (int i = 0; i < num; ++i, currR /= 2)
{
/* Create the hierarchy of big spheres in non flat geometry OR
Just one mother sphere for the flat case */
if (!flat || (flat && i == 0))
{
G4Orb* bigSphere = bigSolids+i;
G4LogicalVolume* currLogical = bigLogicals+i;
G4VPhysicalVolume *currPhys = bigPhysicals+i;
G4Orb_ctor( bigSphere, currR );
printf ("Just Before Zero Trans\n");
G4LogicalVolume_ctor( currLogical, (G4VSolid*)bigSphere, air );
G4VPhysicalVolume_ctor( currPhys, idRot, zeroTrans, currLogical );
G4VPhysicalVolume_SetMotherLogical( currPhys, lastLogical );
printf ("Physical Volume as Mother Volume Successful\n");
lastLogical = currLogical;
lastPhysical = currPhys;
}
/* Place lots of small spheres or cons inside */
/* The distance of the layer of small objects (spheres or cons)
will be in the middle of the two adjacent Big Spheres */
G4double dist = 3 * currR / 4.;
int physListIdx = flat ? (num-1) : i;
if ( test_type == SPHERES )
{
numSmallObjs +=
addSmallSpheres( dist, density, lastLogical, smallPhysicals[physListIdx] );
}
else if ( test_type == MIXED )
{
numSmallObjs +=
addMixed( dist, density, lastLogical, smallPhysicals[physListIdx],
mixedDistribution );
}
else
{
// TODO
assert(false);
//AddSmallCons( dist, density, lastLogical, num-i, smallPhysicals[physListIdx] );
}
if (!flat || (flat && i==num-1))
{
for ( unsigned j=0; j<smallPhysicals[physListIdx].size(); ++j )
{
addLogicalVolumeDaughter( lastLogical, smallPhysicals[physListIdx][j] );
}
if ( i != num-1 )
{
addLogicalVolumeDaughter( lastLogical, bigPhysicals+i+1 );
}
if ( lastLogical != logicWorld )
{
//addLogicalVolumePointers( lastLogical );
addPhysicalVolumePointers( lastPhysical );
}
}
}
printf ("Geometry Successfully Build\n");
addLogicalVolumeDaughter( logicWorld, bigPhysicals );
//createVoxels( logicWorld, smartless );
for (int i = 0; i<(flat ? 1 : num); ++i)
{
#ifdef ENABLE_VOXEL_NAVIGATION
createVoxels( bigLogicals + i, smartless );
#endif
addLogicalVolumePointers( bigLogicals + i );
}
printf ("Voxels Created Successfully\n");
addLogicalVolumePointers( logicWorld );
addPhysicalVolumePointers( physiWorld );
std::cerr << "Total " << numSmallObjs << " small objects\n";
printf ("Exitting Spheres.hpp\n");
}
// New by oseiskar
static void normalize( std::map< ESolid, G4double >& objs )
{
typedef std::map< ESolid, G4double >::iterator itr_t;
G4double sum = 0;
for( itr_t i = objs.begin(); i != objs.end(); ++i )
sum += i->second;
if ( sum <= 0.0 )
throw std::runtime_error( "Invalid distribution" );
const G4double isum = 1.0/sum;
for( itr_t i = objs.begin(); i != objs.end(); ++i )
i->second *= isum;
}
int addMixed(
G4double dist, G4double density, G4LogicalVolume* motherLogical,
std::vector<G4VPhysicalVolume*>& physList,
std::map< ESolid, G4double >& distribution )
{
normalize( distribution );
const G4RotationMatrix idRot = G4RotationMatrix_create_id();
const G4double SMALL_OBJ_MAXR = smallObjRad;
/* Define the distance between the small spheres */
const G4double THETA_DIST_FACTOR = 3.;
const G4double PHI_DIST_FACTOR = 1.;
const G4double isqrt2 = 1.0/std::sqrt(2.0);
/* Theta distance between adjacent spheres */
const G4double dTheta = THETA_DIST_FACTOR * 2 * std::asin(SMALL_OBJ_MAXR / dist);
int cnt = 0;
for (G4double theta = dTheta; theta + dTheta < M_PI; theta += dTheta)
{ // theta is between [0, Pi]
G4double dPhi = PHI_DIST_FACTOR * 2 * std::asin(SMALL_OBJ_MAXR / (dist * std::sin(theta))); /* Phi distance between adjacent spheres */
for (G4double phi = dPhi; 2 * phi + dPhi < M_PI; phi += dPhi ) // phi is between [0, Pi/2]
if (density == 1.0 || uniformRand() <= density)
{
const G4ThreeVector trans = G4ThreeVector_create(
dist * std::sin(theta) * std::cos(phi),
dist * std::sin(theta) * std::sin(phi),
dist * std::cos(theta) );
G4LogicalVolume* logicSmallT = reserveThing<G4LogicalVolume>();
G4VPhysicalVolume *physiSmallT = reserveThing<G4VPhysicalVolume>();
G4VSolid *smallSolid = NULL;
ESolid ty;
{
G4double s = uniformRand();
std::map< ESolid, G4double >::const_iterator itr
= distribution.begin();
while( itr != distribution.end() && s > itr->second )
s -= (*itr++).second;
ty = itr->first;
switch( ty )
{
case kOrb:
{
G4Orb* smallSphere = reserveThing<G4Orb>();
smallSolid = (G4VSolid*)smallSphere;
G4Orb_ctor(smallSphere, SMALL_OBJ_MAXR);
}
break;
#ifdef ENABLE_G4TUBS
case kTubs:
{
G4Tubs* smallT = reserveThing<G4Tubs>();
smallSolid = (G4VSolid*)smallT;
const G4double h = isqrt2*SMALL_OBJ_MAXR;
const G4double outerR = h*uniformRand();
const G4double innerR = outerR / 2;
G4double angS = 0;
G4double angD = 2.0*M_PI;
if (sliced)
{
angS = uniformRand()*2.0*M_PI;
angD = uniformRand()*2.0*M_PI;
}
G4Tubs_ctor( smallT, innerR, outerR, h, angS, angD );
}
break;
#endif
#ifdef ENABLE_G4CONS
case kCons:
{
G4Cons* smallT = reserveThing<G4Cons>();
smallSolid = (G4VSolid*)smallT;
const G4double h = isqrt2*SMALL_OBJ_MAXR;
const G4double outerR1 = h*uniformRand();
const G4double innerR1 = outerR1 / 2;
const G4double outerR2 = outerR1/2;
const G4double innerR2 = innerR1/2;
G4double angS = 0;
G4double angD = 2.0*M_PI;
if (sliced)
{
angS = uniformRand()*2.0*M_PI;
angD = uniformRand()*2.0*M_PI;
}
G4Cons_ctor( smallT, innerR1, outerR1, innerR2, outerR2, h, angS, angD );
}
break;
#endif
#ifdef ENABLE_G4BOX
case kBox:
{
G4Box* smallB = reserveThing<G4Box>();
smallSolid = (G4VSolid*)smallB;
const G4double x = isqrt2*SMALL_OBJ_MAXR;
const G4double y = x*uniformRand();
const G4double z = x*uniformRand();
G4Box_ctor( smallB, x, y, z );
}
break;
#endif
default:
throw std::runtime_error( "Unsupported solid type" );
}
assert( smallSolid != NULL );
}
G4RotationMatrix rot = idRot;
if ( rotated ) rot = randomRot();
G4LogicalVolume_ctor( logicSmallT, smallSolid, objmaterial );
G4VPhysicalVolume_ctor( physiSmallT, rot, trans, logicSmallT );
G4VPhysicalVolume_SetMotherLogical( physiSmallT, motherLogical );
addLogicalVolumePointers( logicSmallT );
addPhysicalVolumePointers( physiSmallT );
physList.push_back( physiSmallT );
//if (physiSmallSphere->CheckOverlaps()) br++;
cnt++;
}
}
return cnt;
}
// adapted from original code
int addSmallSpheres(
G4double dist, G4double density, G4LogicalVolume* motherLogical,
std::vector<G4VPhysicalVolume*>& physList )
{
const G4RotationMatrix idRot = G4RotationMatrix_create_id();
const G4double SMALL_SPHERE_R = smallObjRad; /* Radius of the samll spheres */
/* Define the distance between the small spheres */
const G4double THETA_DIST_FACTOR = 3.;
const G4double PHI_DIST_FACTOR = 1.;
/* Theta distance between adjacent spheres */
const G4double dTheta = THETA_DIST_FACTOR * 2 * std::asin(SMALL_SPHERE_R / dist);
int cnt = 0;
for (G4double theta = dTheta; theta + dTheta < M_PI; theta += dTheta)
{ // theta is between [0, Pi]
G4double dPhi = PHI_DIST_FACTOR * 2 * std::asin(SMALL_SPHERE_R / (dist * std::sin(theta))); /* Phi distance between adjacent spheres */
for (G4double phi = dPhi; 2 * phi + dPhi < M_PI; phi += dPhi ) // phi is between [0, Pi/2]
if (density == 1.0 || uniformRand() <= density)
{
const G4ThreeVector trans = G4ThreeVector_create(
dist * std::sin(theta) * std::cos(phi),
dist * std::sin(theta) * std::sin(phi),
dist * std::cos(theta) );
G4Orb* smallSphere = reserveThing<G4Orb>();
G4LogicalVolume* logicSmallSphere = reserveThing<G4LogicalVolume>();
G4VPhysicalVolume *physiSmallSphere = reserveThing<G4VPhysicalVolume>();
G4Orb_ctor(smallSphere, SMALL_SPHERE_R);
G4LogicalVolume_ctor( logicSmallSphere, (G4VSolid*)smallSphere, objmaterial );
G4VPhysicalVolume_ctor( physiSmallSphere, idRot, trans, logicSmallSphere );
G4VPhysicalVolume_SetMotherLogical( physiSmallSphere, motherLogical );
addLogicalVolumePointers( logicSmallSphere );
addPhysicalVolumePointers( physiSmallSphere );
physList.push_back( physiSmallSphere );
//if (physiSmallSphere->CheckOverlaps()) br++;
cnt++;
}
}
return cnt;
}
};
#if 0 // unimplemented functionality from the original code
int AddSmallCons(G4double dist, G4double density, G4LogicalVolume* motherLogical, int level) {
G4double dTheta = THETA_DIST_FACTOR * 2 * asin(SMALL_CONS_R / dist) * mm; /* Theta distance between adjacent cons */
const G4double SMALL_CONS_R = 25; /* Radius of the samll cons */
int cnt = 0;
for(G4double theta = dTheta; theta + dTheta < M_PI; theta += dTheta) { // theta is between [0, Pi]
G4double dPhi = PHI_DIST_FACTOR * 2 * asin(SMALL_CONS_R / (dist * sin(theta))); /* Phi distance between adjacent spheres */
for (G4double phi = dPhi; 2 * phi + dPhi < M_PI; phi += dPhi ) // phi is between [0, Pi/2]
if (density == 1.0 || G4UniformRand() <= density)
{
/* Cons from the outer layers will have bigger radius */
G4Cons* smallCons = new G4Cons("", 0 * mm, SMALL_CONS_R * mm, 0 * mm, 0.1 * mm, 50 * level * mm, 0 * deg, 360 * deg);
/* Calculate the new center of the cons */
G4ThreeVector v(dist * sin(theta) * cos(phi) * mm, dist * sin(theta) * sin(phi) * mm, dist * cos(theta) * mm);
G4RotationMatrix* rot = new G4RotationMatrix();
G4double alfa = v.angle(G4ThreeVector(0, 0, 1));
rot->rotateY(M_PI-v.theta()/*(M_PI-alfa) * rad*/);
rot->rotateX(-v.phi());
G4LogicalVolume* logicSmallCons = new G4LogicalVolume(smallCons, Air, "", 0, 0, 0);
G4PVPlacement* physiSmallCons = new G4PVPlacement(0, v, logicSmallCons, "", motherLogical, false, 0, false);
//assert(physiSmallCons->CheckOverlaps());
cnt++;
}
}
return cnt;
}
#endif
#endif
|
8ad2ca1c15fbfb62148ff70ed6c65f9963b23cda | 830b9ead01e22772fb7148b05d61efd862a78db7 | /src/core/activations/weighted-quadratic-barrier.cpp | 30f9d137198e898e46b4ba1c63a5559507610844 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zeta1999/crocoddyl | c2eb6cade0df0b49a9aa8ed6d58ee0f23ab6f749 | f7bb90f1007119fb498cc7f03b87410ab31e5695 | refs/heads/master | 2021-03-06T08:32:47.146165 | 2020-02-13T14:33:16 | 2020-02-13T14:33:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,434 | cpp | weighted-quadratic-barrier.cpp | ///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (C) 2018-2020, University of Edinburgh
// Copyright note valid unless otherwise stated in individual files.
// All rights reserved.
///////////////////////////////////////////////////////////////////////////////
#include "crocoddyl/core/utils/exception.hpp"
#include "crocoddyl/core/activations/weighted-quadratic-barrier.hpp"
#include <iostream>
namespace crocoddyl {
ActivationModelWeightedQuadraticBarrier::ActivationModelWeightedQuadraticBarrier(const ActivationBounds& bounds,
const Eigen::VectorXd& weights)
: ActivationModelAbstract(bounds.lb.size()), bounds_(bounds), weights_(weights) {}
ActivationModelWeightedQuadraticBarrier::~ActivationModelWeightedQuadraticBarrier() {}
void ActivationModelWeightedQuadraticBarrier::calc(const boost::shared_ptr<ActivationDataAbstract>& data,
const Eigen::Ref<const Eigen::VectorXd>& r) {
if (static_cast<std::size_t>(r.size()) != nr_) {
throw_pretty("Invalid argument: "
<< "r has wrong dimension (it should be " + std::to_string(nr_) + ")");
}
boost::shared_ptr<ActivationDataQuadraticBarrier> d =
boost::static_pointer_cast<ActivationDataQuadraticBarrier>(data);
d->rlb_min_ = (r - bounds_.lb).array().min(0.);
d->rub_max_ = (r - bounds_.ub).array().max(0.);
d->rlb_min_.array() *= weights_.array();
d->rub_max_.array() *= weights_.array();
data->a_value = 0.5 * d->rlb_min_.matrix().squaredNorm() + 0.5 * d->rub_max_.matrix().squaredNorm();
}
void ActivationModelWeightedQuadraticBarrier::calcDiff(const boost::shared_ptr<ActivationDataAbstract>& data,
const Eigen::Ref<const Eigen::VectorXd>& r,
const bool& recalc) {
if (static_cast<std::size_t>(r.size()) != nr_) {
throw_pretty("Invalid argument: "
<< "r has wrong dimension (it should be " + std::to_string(nr_) + ")");
}
if (recalc) {
calc(data, r);
}
boost::shared_ptr<ActivationDataQuadraticBarrier> d =
boost::static_pointer_cast<ActivationDataQuadraticBarrier>(data);
data->Ar = (d->rlb_min_ + d->rub_max_).matrix();
data->Ar.array() *= weights_.array();
data->Arr.diagonal() = (((r - bounds_.lb).array() <= 0.) + ((r - bounds_.ub).array() >= 0.)).matrix().cast<double>();
data->Arr.diagonal().array() *= weights_.array();
}
boost::shared_ptr<ActivationDataAbstract> ActivationModelWeightedQuadraticBarrier::createData() {
return boost::make_shared<ActivationDataQuadraticBarrier>(this);
}
const ActivationBounds& ActivationModelWeightedQuadraticBarrier::get_bounds() const { return bounds_; }
void ActivationModelWeightedQuadraticBarrier::set_bounds(const ActivationBounds& bounds) { bounds_ = bounds; }
const Eigen::VectorXd& ActivationModelWeightedQuadraticBarrier::get_weights() const { return weights_; }
void ActivationModelWeightedQuadraticBarrier::set_weights(const Eigen::VectorXd& weights) {
if (weights.size() != weights_.size()) {
throw_pretty("Invalid argument: "
<< "weight vector has wrong dimension (it should be " + std::to_string(weights_.size()) + ")");
}
weights_ = weights;
}
} // namespace crocoddyl
|
05510ff2ba0981427c0c258e2d09ae01090a7374 | b5fdb9e660183bf4d0f7c14419111fe681769061 | /ATMSimulationV3/LoginDlg.h | e190c815399c330b0143301684497cdd98b8bb07 | [] | no_license | 18020031110/ATM-3- | 70432c82b9634cf150d253abec1ef6031205d86a | 99a3ae613252949885b11f8c0210cb03e8890f43 | refs/heads/main | 2023-02-02T14:57:11.450344 | 2020-12-13T12:16:39 | 2020-12-13T12:16:39 | 311,255,178 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 492 | h | LoginDlg.h | #ifndef LOGINDLG_H
#define LOGINDLG_H
#include <QDialog>
#include "AccountData.h"
namespace Ui {
class LoginDlg;
}
class LoginDlg : public QDialog
{
Q_OBJECT
public:
explicit LoginDlg(QWidget *parent = 0);
~LoginDlg();
QString m_UserN; // 登陆成功的用户名
private slots:
void on_LoginPB_clicked();
private:
Ui::LoginDlg *ui;
};
extern AccountData m_Data; // 声明一个extern变量(本例中,它Login.cpp文件中定义)
#endif // LOGINDLG_H
|
c82b91d50783d157e7a9d21e19efa57489594f93 | 3d444cdaa4437b155c4f239ff3f9ccd477880b37 | /TcpServer.cpp | 62135296565d246cbf20ad7d8eeee11d81e49695 | [] | no_license | yenkn/fight-landlord-server | 78b764fe96394b69b57e493c397b52373163585a | 334680a552651c96d5254ae02f8a9e5a4b942e98 | refs/heads/master | 2020-03-19T02:11:49.654739 | 2018-06-01T03:19:52 | 2018-06-01T03:19:52 | 135,608,148 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,068 | cpp | TcpServer.cpp | //
// Created by 欧阳亚坤 on 2018/5/22.
//
#include "TcpServer.h"
#include <sys/socket.h>
#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include "MessageClient.h"
template <typename T>
TcpServer<T>::TcpServer() {
sock_fd = socket(AF_INET, SOCK_STREAM, 0);
if(sock_fd < 0) {
throw SocketException("init");
}
}
template <typename T>
TcpServer<T>::~TcpServer() {
close(sock_fd);
}
template <typename T>
void TcpServer<T>::Listen(int port) {
struct sockaddr_in my_addr = { 0, AF_INET, htons(port), inet_addr("0.0.0.0"), { 0 } };
bzero(&(my_addr.sin_zero), 8);
if(bind(sock_fd, (struct sockaddr *)&my_addr, sizeof(struct sockaddr)) < 0) {
throw SocketException("bind");
}
fcntl(sock_fd, F_SETFL, fcntl(sock_fd, F_GETFL, 0) | O_NONBLOCK);
if(listen(sock_fd, SOMAXCONN) < 0) {
throw SocketException("listen");
}
printf("server started at port %d\n", port);
ev_io.set<TcpServer, &TcpServer::acceptCallback>(this);
ev_io.start(sock_fd, ev::READ);
signal_io.set<TcpServer, &TcpServer::signalCallback>(this);
signal_io.start(SIGINT);
}
template <typename T>
void TcpServer<T>::acceptCallback(ev::io &watcher, int revents) {
if (EV_ERROR & revents) {
perror("got invalid event");
return;
}
struct sockaddr_in client_addr;
socklen_t client_len = sizeof(client_addr);
int client_sd = accept(watcher.fd, (struct sockaddr *)&client_addr, &client_len);
if (client_sd < 0) {
perror("accept error");
return;
}
printf("accepted from %d\n", client_addr.sin_addr);
clients.push_back(new T(client_sd));
OnClientArrived(*clients.back());
}
template <typename T>
void TcpServer<T>::signalCallback(ev::sig &signal, int revents) {
signal.loop.break_loop();
}
template <typename T>
void TcpServer<T>::OnClientArrived(client_type &client) {
client.SendCommand(string("Hello from server!"), [](const string &buf) {
printf("returns: %s", buf.begin());
});
} |
dd55f66d4d719f90403b987d8b3ea18d25b189c5 | bbe57f5a53a8a8bb7f905782ae0f8d51088210c7 | /BiTree-pro/main.cpp | 1a3438522b986bf7c11bffc9aa440a00b7a3ce43 | [] | no_license | Nought8298/DataStructure | 83c543acded1e5cd467155ac6f9a2d83757d1403 | 0f7fd34cbbdab3a8df95aa3a7b689cd737a261da | refs/heads/main | 2023-02-10T16:36:03.180284 | 2021-01-05T13:24:12 | 2021-01-05T13:24:12 | 326,189,925 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 7,217 | cpp | main.cpp | #include <stdio.h>
#include <stdlib.h>
//定义函数结果状态
#define FALSE 0
#define TRUE 1
#define ERROR 0
#define OK 1
#define OVERFLOW -1
typedef int Status;
#define STACK_SIZE 20
#define EXTRASIZE 5
#define MAX_TREE_SIZE 100
typedef struct BiTNode
{
char data;
struct BiTNode *lchild,*rchild;
}BiTNode,*BiTree;
typedef struct
{
BiTree* top; //栈构造之前和销毁之后,均为NULL
BiTree* base;
int stacksize; //当前已分配的存储空间
} SeqStack;
SeqStack* InitStack()
{
SeqStack* s=(SeqStack*)malloc(sizeof(SeqStack));
s->base = (BiTree*)malloc(sizeof(BiTNode) * STACK_SIZE);
if(!s->base)
exit(OVERFLOW);
s->top = s->base;
s->stacksize = STACK_SIZE;
return s;
}
//清空栈
Status ClearStack(SeqStack *s)
{
s->top = s->base;//栈顶指针指向栈底
return OK;
}
//判断栈是否为空
Status IsEmpty(SeqStack* s)
{
if (s->top == s->base) {
return TRUE;
}
else {
return FALSE;
}
}
//判断栈是否为满
Status IsFull(SeqStack* s)
{
if (s->top == s->base+STACK_SIZE - 1) {
return TRUE;
}
else {
return FALSE;
}
}
//入栈
Status Push(SeqStack* s, BiTree value)
{
if (IsFull(s) == TRUE) {
s->base = (BiTree*)malloc(sizeof(BiTree) * (STACK_SIZE + EXTRASIZE));
}
*s->top = value;
s->top++;
return TRUE;
}
//出栈
Status Pop(SeqStack* s, BiTree &value)
{
if (IsEmpty(s) == TRUE) {
return FALSE;
}
s->top--;
value = *s->top;
return OK;
}
//取栈顶元素
BiTree GetTop(SeqStack* s)
{
BiTree value;
if (IsEmpty(s) == TRUE) {
return FALSE;
}
value = *(s->top-1);
return value;
}
//创建二叉树(递归方法)
Status CreateBiTree(BiTree &T)
{
char ch = getchar();
if(ch=='#')
T = NULL;
else
{
T = (BiTNode *)malloc(sizeof(BiTNode));
if(!T)
exit(OVERFLOW);
T->data = ch;
CreateBiTree(T->lchild);
CreateBiTree(T->rchild);
}
return OK;
}
//访问函数(将其输出)
void visit(char ch)
{
printf("%c",ch);
}
//前序遍历(递归方法)
void PreorderTraverse(BiTree T)
{
if(T!=NULL)
{
visit(T->data);
PreorderTraverse(T->lchild);
PreorderTraverse(T->rchild);
}
}
//中序遍历(递归方法)
Status InorderTraverse(BiTree T)
{
if(T!=NULL)
{
InorderTraverse(T->lchild);
visit(T->data);
InorderTraverse(T->rchild);
}
}
//后序遍历(递归方法)
Status PostorderTraverse(BiTree T)
{
if(T!=NULL)
{
PostorderTraverse(T->lchild);
PostorderTraverse(T->rchild);
visit(T->data);
}
}
//前序遍历(非递归方法)
void Preorder(BiTree T)
{
SeqStack *s = InitStack();
while(T!=NULL||!IsEmpty(s))
{
while(T!=NULL)
{
//访问结点后入栈,一路向左
visit(T->data);
BiTree t = T;
Push(s,t);
T = T->lchild;
}
{
//访问至最左端,取栈顶元素出栈,访问其右孩子
Pop(s,T);
T = T->rchild;
}
}
}
//中序遍历(非递归方法)
void Inorder(BiTree T)
{
SeqStack *s = InitStack();
while(T!=NULL||!IsEmpty(s))
{
if(T)
{
//不访问节点就入栈,一路向左
BiTree t = T;
Push(s,t);
T = T->lchild;
}
else
{
//至最左端,取栈顶元素出栈,访问该结点,再访问右孩子
Pop(s,T);
visit(T->data);
T = T->rchild;
}
}
}
//后序遍历(非递归方法)
void PostOrder(BiTree T)
{
BiTNode *p = T;
BiTNode *temp = NULL;
SeqStack *s = InitStack();
while(p||!IsEmpty(s))
{
if(p)
{
//不访问结点就入栈,一路向左
Push(s,p);
p = p->lchild;
}
else
{
p = GetTop(s);
if((p->rchild)&&(p->rchild != temp)) //右孩子存在且未被访问
p = p->rchild;
else
{
//取栈顶元素且出栈
BiTree v;
Pop(s,v);
free(v);
visit(p->data);
temp = p;
p = NULL;
}
}
}
free(p);
free(temp);
}
//计算叶结点的数量
Status CountLeaves(BiTree T,int &leaves)
{
if(T)
{
//既无左孩子,也无孩子
if((!T->lchild)&&(!T->rchild))
leaves++;
CountLeaves(T->lchild,leaves);
CountLeaves(T->rchild,leaves);
}
return OK;
}
//计算二叉树的深度
int Depth(BiTree T)
{
if(!T)
return 0;
else
{
int ldepth = Depth(T->lchild);
int rdepth = Depth(T->rchild);
if(ldepth>rdepth)
return ldepth + 1;
else return rdepth + 1;
}
}
//判断控制端用户想使用的遍历方法
Status inputJudge(BiTree T)
{
printf("请选择遍历方式:\n1.前序递归遍历;\n2.前序非递归遍历;\n3.中序递归遍历\n4.中序非递归遍历\n5.后序递归遍历\n6.后序非递归遍历\n请输入遍历方式:");
int num;
scanf("%d",&num);
while(num!=0)
{
switch(num)
{
case 1:
printf("递归遍历:");
PreorderTraverse(T);
break;
case 2:
printf("非递归遍历:");
Preorder(T);
break;
case 3:
printf("递归遍历:");
InorderTraverse(T);
break;
case 4:
printf("非递归遍历:");
Inorder(T);
break;
case 5:
printf("递归遍历:");
PostorderTraverse(T);
break;
case 6:
printf("非递归遍历:");
PostOrder(T);
break;
//default:printf("输入错误");break;
}
printf("\n");
printf("请输入遍历方式:");
scanf("%d",&num);
}
}
int main()
{
BiTree T;
/*
PreorderTraverse(T);
printf("\n");
Preorder(T);
printf("\n");
InorderTraverse(T);
printf("\n");
Inorder(T);
printf("\n");
PostorderTraverse(T);
printf("\n");
*/
printf("请按照前序依次输入字符序列(‘#’代表空结点):\n");
CreateBiTree(T);
inputJudge(T);
int leaves = 0;
CountLeaves(T,leaves);
printf("该二叉树叶结点共有%d个,\n该二叉树深度为%d。\n",leaves,Depth(T));
system("pause");
return 0;
}
|
e47866affb1a1d0b572916df58e37fe38220e6f2 | 0b50cc42b6065a1a0442e09a9836a443b97ec249 | /thirdparty/sfs2x/Core/ThreadManager.h | d43731df9207ddcae7df6bc4187b078519aee84a | [
"MIT"
] | permissive | godot-addons/godot-sfs2x | 06dc177d8289898d487d12e01ac1023cc7a63395 | a8d52aa9d548f6d45bbb64bfdaacab0df10e67c1 | refs/heads/master | 2021-07-12T02:01:23.368889 | 2020-05-31T19:25:12 | 2020-05-31T19:25:12 | 140,114,287 | 3 | 3 | MIT | 2018-07-07T20:44:16 | 2018-07-07T20:14:46 | null | UTF-8 | C++ | false | false | 4,053 | h | ThreadManager.h | // ===================================================================
//
// Description
// Contains the definition of thread manager
//
// Revision history
// Date Description
// 30-Nov-2012 First version
//
// ===================================================================
#ifndef __ThreadManager__
#define __ThreadManager__
#include "../Util/DelegateOneArgument.h" // Delegate with one parameter
#include "../Util/DelegateThreeArguments.h" // Delegate with three parameter
#include "../Core/Sockets/ISocketLayer.h" // ISocketLayer interface
#include "../Core/PacketHeader.h"
#include "../Util/ByteArray.h"
#include <boost/thread.hpp> // Boost thread
#include <boost/shared_ptr.hpp> // Boost Asio shared pointer
#if defined(_MSC_VER)
#pragma warning(disable:4786) // STL library: disable warning 4786; this warning is generated due to a Microsoft bug
#endif
#include <string> // STL library: string object
#include <map> // STL library: map object
#include <vector> // STL library: vector object
#include <list> // STL library: list object
using namespace std; // STL library: declare the STL namespace
using namespace Sfs2X::Core::Sockets;
using namespace Sfs2X::Util;
namespace Sfs2X {
namespace Core {
// -------------------------------------------------------------------
// Definition of delegates specific for the thread manager
// -------------------------------------------------------------------
typedef DelegateOneArgument<boost::shared_ptr<void> > ParameterizedThreadStart;
typedef DelegateThreeArguments<boost::shared_ptr<PacketHeader>, boost::shared_ptr<ByteArray>, bool> WriteBinaryDataDelegate;
// -------------------------------------------------------------------
// Class ThreadManager
// -------------------------------------------------------------------
class ThreadManager
{
public:
// -------------------------------------------------------------------
// Public methods
// -------------------------------------------------------------------
ThreadManager();
~ThreadManager();
void EnqueueCustom(boost::shared_ptr<ParameterizedThreadStart> callback, boost::shared_ptr<std::map<string, boost::shared_ptr<void> > > data);
void EnqueueDataCall(boost::shared_ptr<OnDataDelegate> callback, boost::shared_ptr<vector<unsigned char> > data);
void EnqueueSend(boost::shared_ptr<WriteBinaryDataDelegate> callback, boost::shared_ptr<PacketHeader> header, boost::shared_ptr<ByteArray> data, boost::shared_ptr<bool> udp);
// -------------------------------------------------------------------
// Public members
// -------------------------------------------------------------------
void Start();
protected:
// -------------------------------------------------------------------
// Protected methods
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// Protected members
// -------------------------------------------------------------------
private:
// -------------------------------------------------------------------
// Private methods
// -------------------------------------------------------------------
void InThread();
void OutThread();
void ProcessOutItem(boost::shared_ptr<map<string, boost::shared_ptr<void> > > item);
void ProcessItem(boost::shared_ptr<map<string, boost::shared_ptr<void> > > item);
// -------------------------------------------------------------------
// Private members
// -------------------------------------------------------------------
bool running;
boost::shared_ptr<boost::thread> inThread;
boost::shared_ptr<list<boost::shared_ptr<map<string, boost::shared_ptr<void> > > > > inThreadQueue;
boost::mutex inQueueLocker;
boost::shared_ptr<boost::thread> outThread;
boost::shared_ptr<list<boost::shared_ptr<map<string, boost::shared_ptr<void> > > > > outThreadQueue;
boost::mutex outQueueLocker;
};
} // namespace Core
} // namespace Sfs2X
#endif
|
49ebc377581367ad823a609875fdf93261fb29bb | 09aa1eb41c319fc1e2aa7206f0386594de198c0b | /内積の課題_00/GameTemplate/game/GameCamera.cpp | 144503cc6185b02bc4fe573d02e0f2510bb16544 | [] | no_license | nezumimusume/DirectX_2 | 7d22e155b9790ab07ac97481e68b3ae7a4f0d6b2 | ba4b76250b86ca09bb2a1be294e5f1b19030a09f | refs/heads/master | 2023-07-22T18:42:17.647383 | 2018-04-16T13:04:08 | 2018-04-16T13:04:08 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,307 | cpp | GameCamera.cpp | #include "stdafx.h"
#include "GameCamera.h"
#include "Player.h"
#include "lib/Input.h"
GameCamera::GameCamera() :
toEyePos(0.0f, 0.0f, 0.0f, 1.0f),
targetOffset(0.0f, 0.0f, 0.0f, 1.0f),
cameraDir(0.0f, 0.0f, 0.0f)
{
}
GameCamera::~GameCamera()
{
}
void GameCamera::Start(Player* player)
{
toEyePos.z = -4.0f;
toEyePos.y = 0.5f;
targetOffset.y = 1.0f;
targetOffset.x = 0.0f;
camera.SetAspect(1280.0f / 720.0f);
camera.Init();
this->player = player;
UpdateCamera();
}
//カメラを更新。
void GameCamera::UpdateCamera()
{
D3DXVECTOR3 target;
target = player->GetPosition();
target.x += targetOffset.x;
target.y += targetOffset.y;
target.z += targetOffset.z;
D3DXVECTOR3 eyePos = target;
eyePos.x += toEyePos.x;
eyePos.y += toEyePos.y;
eyePos.z += toEyePos.z;
camera.SetEyePt(eyePos);
camera.SetLookatPt(target);
camera.Update();
}
void GameCamera::PreUpdate()
{
if (GetInput().IsMouseMove()) {
//マウスが動いた。
D3DXVECTOR2 mouseMove = GetInput().GetMouseMove();
//テスト
D3DXMATRIX mRot;
D3DXMatrixRotationY(&mRot, (mouseMove.x / WINDOW_WIDTH) * 1.0f);
D3DXVec4Transform(&toEyePos, &toEyePos, &mRot);
}
cameraDir = D3DXVECTOR3(toEyePos);
cameraDir.y = 0.0f;
D3DXVec3Normalize(&cameraDir, &cameraDir);
}
void GameCamera::Update()
{
UpdateCamera();
} |
0c6253f82c25ca75b0cd97715fa2dbdfdd197946 | 51669e12eeee3e856b82707602d8d4650ba2d8bf | /Assignment 1/Problem 1/Source.cpp | 6decb77f3b6d242a50e7474c38697c7225f4c365 | [] | no_license | manleyb2/CPSC-200 | 760ce7c3fb2929b3b4102c1be32a66f779b780c0 | e6f3bd8ebcfd36c02db444f8a8c98fbf3b8a5696 | refs/heads/master | 2021-03-30T17:12:50.973151 | 2018-02-26T03:07:12 | 2018-02-26T03:07:12 | 116,762,535 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 784 | cpp | Source.cpp | //
// Brian Manley CPSC 200
// manleyb2@ferris.edu Spring 2018
// Assignment 1 Problem 1
// FILE: Source.cpp 1/24/2018
//
//Oath of Originality: I, Brian Manley, pledge that the
//contents of this file are my own independent work and conform to
//all University policies on academic integrity.
// Calculating Reverse intrest
#include <iostream>
using namespace std;
void main()
{
float needed, interest, time, total;
cout << "How much money do you need? \n";
cin >> needed;
cout << "What is the intrest rate? \n";
cin >> interest;
cout << "How long will the loan be for in months? \n";
cin >> time;
total = needed / (1 - ((time / 12) * interest));
cout << "You need to ask for a loan of " << total << " to recieve " << needed << endl;
return;
} |
b834f2aa39ce4553c47b40b7ddde881429608481 | ab65c24418b4ddf76df9a5a92678f6672a1d1c45 | /C++/clientTest.cpp | e9b591db42a0c32f631418f935536a5003b46192 | [] | no_license | calvidler/Demo | 7ed75c303ceec69752e68f6472b9e9b335f342d4 | 0697501ba82eecfd5b228ab7f4996243caa76a31 | refs/heads/main | 2022-12-25T11:39:18.177145 | 2020-10-07T12:08:43 | 2020-10-07T12:08:43 | 302,022,775 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,092 | cpp | clientTest.cpp | #include <initializer_list>
#include <iostream>
#include <string>
#include <vector>
#include "assignments/dg/graph.h"
// Note: At the moment, there is no client.sampleout. Please do your own testing
int main() {
gdwg::Graph<std::string, int> g;
{
std::string s("hello");
g.InsertNode(s);
}
std::cout << g.IsNode("hello") << "\n";
g.InsertNode("how");
g.InsertNode("are");
g.InsertNode("you?");
g.InsertEdge("hello", "how", 5);
g.InsertEdge("hello", "are", 8);
g.InsertEdge("hello", "are", 2);
g.InsertEdge("how", "you?", 3);
g.InsertEdge("how", "are", 10);
g.InsertEdge("how", "you?", 1);
g.InsertEdge("how", "hello", 4);
g.InsertEdge("are", "you?", 3);
g.InsertEdge("are", "are", 10);
// auto it = g.begin();
// std::cout << "first edge: <" << std::get<0>(*it) << " " << std::get<1>(*it) << " " << std::get<2>(*it) << ">\n";
std::cout << g << "\n";
std::cout << "FULL GRAPH\n";
for (auto it = g.begin(); it != g.end(); ++it) {
std::cout << "<" << std::get<0>(*it) << " ";
std::cout << std::get<1>(*it) << " ";
std::cout << std::get<2>(*it) << ">\n";
}
auto gCopy{g};
std::cout << "Copy constructed\n" << gCopy;
auto gCopyAssign = g;
std::cout << "Copy Assignment\n" << gCopyAssign;
auto gMove{std::move(gCopy)};
std::cout << "FULL GRAPH gMove\n" << gMove;
std::cout << "gCopy after move()\n" << gCopy;
auto gMoveAssign = std::move(gCopyAssign);
std::cout << "Move Assignment:\n" << gMoveAssign;
std::cout << "gCopyAssign after move assignment\n" << gCopyAssign;
std::cout << "IS CONNECTED 'how' -> 'how': " << g.IsConnected("how", "how") << "\n";
std::cout << "IS CONNECTED 'how' -> 'hello': " << g.IsConnected("how", "hello") << "\n";
std::cout << "GET CONNECTED FROM 'how'\n";
auto connected = g.GetConnected("how");
for (auto e : connected) {
std::cout << e << "\n";
}
try {
auto connected = g.GetConnected("h");
} catch (std::out_of_range& e) {
std::cout << "exception thrown: " << e.what() << "\n";
}
std::cout << "GET WEIGHTS FROM 'how' TO 'you?'\n";
auto weights = g.GetWeights("how", "you?");
for (auto w : weights) {
std::cout << w << "\n";
}
std::cout << "Delete non-existent edge: " << g.erase("how", "hello", 0) << "\n";
std::cout << "Delete edge <how, hello, 4>: " << g.erase("how", "hello", 4) << "\n";
std::cout << "CREVERSE IT\n";
for (auto it = g.crbegin(); it != g.crend(); it++) {
std::cout << "<" << std::get<0>(*it) << " ";
std::cout << std::get<1>(*it) << " ";
std::cout << std::get<2>(*it) << ">\n";
}
std::cout << "MergeReplace(how, are)\n";
g.MergeReplace("how", "are");
for (auto it = g.begin(); it != g.end(); ++it) {
std::cout << "<" << std::get<0>(*it) << " ";
std::cout << std::get<1>(*it) << " ";
std::cout << std::get<2>(*it) << ">\n";
}
std::cout << "FIND EDGE AND ITERATE\n";
for (auto it = g.find("hello", "are", 5); it != g.cend(); ++it) {
std::cout << "<" << std::get<0>(*it) << " ";
std::cout << std::get<1>(*it) << " ";
std::cout << std::get<2>(*it) << ">\n";
}
std::cout << "ERASE EDGE USING erase()\n";
for (auto it = g.cbegin(); it != g.cend(); ++it) {
if (std::get<0>(*it) == "hello" && std::get<1>(*it) == "are") {
it = g.erase(it);
break;
}
}
for (auto it = g.cbegin(); it != g.cend(); ++it) {
std::cout << "<" << std::get<0>(*it) << " ";
std::cout << std::get<1>(*it) << " ";
std::cout << std::get<2>(*it) << ">\n";
}
std::cout << "Replace 'hello' with 'goodbye'\n";
g.Replace("hello", "goodbye");
// g.PrintGraph();
for (auto it = g.begin(); it != g.end(); it++) {
std::cout << "<" << std::get<0>(*it) << " " << std::get<1>(*it) << " " << std::get<2>(*it) << ">\n";
}
std::cout << "'hello' is node: " << g.IsNode("hello") << "\n";
std::cout << "Delete 'how'\n";
g.DeleteNode("how");
for (auto it = g.begin(); it != g.end(); it++) {
std::cout << "<" << std::get<0>(*it) << " " << std::get<1>(*it) << " " << std::get<2>(*it) << ">\n";
}
std::cout << "==operator\n";
std::vector<std::string> v{"Hello", "how", "are", "you?"};
gdwg::Graph<std::string, int> g1{v.cbegin(), v.cend()};
gdwg::Graph<std::string, int> g2{v.cbegin(), v.cend()};
g1.InsertEdge("Hello", "how", 5);
g1.InsertEdge("Hello", "are", 8);
g1.InsertEdge("Hello", "are", 2);
g1.InsertEdge("how", "you?", 3);
g1.InsertEdge("how", "are", 10);
g2.InsertEdge("Hello", "how", 5);
g2.InsertEdge("Hello", "are", 8);
g2.InsertEdge("Hello", "are", 2);
g2.InsertEdge("how", "you?", 3);
g2.InsertEdge("how", "are", 10);
std::cout << "g1 == g2: " << (g1 == g2) << "\n";
std::cout << "g != g1: " << (g != g1) << "\n";
// Vector initialisation
// std::vector<std::string> v{"Hello", "how", "are", "you"};
gdwg::Graph<std::string, double> b{v.begin(), v.end()};
// List initialisation
gdwg::Graph<std::string, double> gl{"Hello", "how", "are", "you"};
std::string s1{"Hello"};
std::string s2{"how"};
std::string s3{"are"};
auto e1 = std::make_tuple(s1, s2, 5.4);
auto e2 = std::make_tuple(s2, s3, 7.6);
auto e = std::vector<std::tuple<std::string, std::string, double>>{e1, e2};
gdwg::Graph<std::string, double> c{e.begin(), e.end()};
std::cout << "Graph tuple initialisation\n";
auto vec = g.GetNodes();
for (auto& it : vec) {
std::cout << it << "\n";
}
std::cout << "Clear graph\n";
g.Clear();
for (auto it = g.begin(); it != g.end(); it++) {
std::cout << "<" << std::get<0>(*it) << " " << std::get<1>(*it) << " " << std::get<2>(*it) << ">\n";
}
// std::vector<std::string> v{"Hello", "how", "are", "you"};
// std::cout << g << '\n';
// gdwg::Graph<std::string, int> g2{g};
// std::cout << g2 << "\n";
// // This is a structured binding.
// // https://en.cppreference.com/w/cpp/language/structured_binding
// // It allows you to unpack your tuple.
// for (const auto& [from, to, weight] : g) {
// std::cout << from << " -> " << to << " (weight " << weight << ")\n";
// }
}
|
b135067722c06c1947284aadd937ff3347c61730 | 70d57701799ad620876261fac0032a1617e6f549 | /CCF/2014-03/WindowClick.cpp | 5e33249f69fd54246fb07d8907c8947a4b536bef | [] | no_license | hughian/OJ | 8c82b7ba1c9988008783dcaedd8f4a54c28ed11f | 160de27c1222ff31e0b4f22d78c278a3906d29c0 | refs/heads/master | 2021-08-11T00:45:24.206110 | 2020-04-04T08:26:56 | 2020-04-04T08:26:56 | 145,109,689 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,022 | cpp | WindowClick.cpp | /*问题描述
在某图形操作系统中,有 N 个窗口,每个窗口都是一个两边与坐标轴分别平行的矩形区域。窗口的边界上的点也属于该窗口。窗口之间有层次的区别,在多于一个窗口重叠的区域里,只会显示位于顶层的窗口里的内容。
当你点击屏幕上一个点的时候,你就选择了处于被点击位置的最顶层窗口,并且这个窗口就会被移到所有窗口的最顶层,而剩余的窗口的层次顺序不变。如果你点击的位置不属于任何窗口,则系统会忽略你这次点击。
现在我们希望你写一个程序模拟点击窗口的过程。
输入格式
输入的第一行有两个正整数,即 N 和 M。(1 ≤ N ≤ 10,1 ≤ M ≤ 10)
接下来 N 行按照从最下层到最顶层的顺序给出 N 个窗口的位置。 每行包含四个非负整数 x1, y1, x2, y2,表示该窗口的一对顶点坐标分别为 (x1, y1) 和 (x2, y2)。保证 x1 < x2,y1 2。
接下来 M 行每行包含两个非负整数 x, y,表示一次鼠标点击的坐标。
题目中涉及到的所有点和矩形的顶点的 x, y 坐标分别不超过 2559 和 1439。
输出格式
输出包括 M 行,每一行表示一次鼠标点击的结果。如果该次鼠标点击选择了一个窗口,则输出这个窗口的编号(窗口按照输入中的顺序从 1 编号到 N);如果没有,则输出"IGNORED"(不含双引号)。
样例输入
3 4
0 0 4 4
1 1 5 5
2 2 6 6
1 1
0 0
4 4
0 5
样例输出
2
1
1
IGNORED
样例说明
第一次点击的位置同时属于第 1 和第 2 个窗口,但是由于第 2 个窗口在上面,它被选择并且被置于顶层。
第二次点击的位置只属于第 1 个窗口,因此该次点击选择了此窗口并将其置于顶层。现在的三个窗口的层次关系与初始状态恰好相反了。
第三次点击的位置同时属于三个窗口的范围,但是由于现在第 1 个窗口处于顶层,它被选择。
最后点击的 (0, 5) 不属于任何窗口。
*/
#include<iostream>
#include<vector>
using namespace std;
typedef struct{
int x,y;
}pos;
class window{
public:
int x0_,y0_;
int x1_,y1_;
int id_;
public:
window& operator=(const window& w){
x0_ = w.x0_;
y0_ = w.y0_;
x1_ = w.x1_;
y1_ = w.y1_;
id_ = w.id_;
};
window(int x0,int y0,int x1,int y1,int id)
:x0_(x0),y0_(y0),x1_(x1),y1_(y1),id_(id){}
bool check(int x,int y){
if(x >= x0_ && x <= x1_ && y >= y0_ && y <= y1_)
return true;
return false;
}
};
class Solution{
vector<window> vw;
public:
void print(){
for(int i=0;i<(int)vw.size();i++){
window &w = vw.at(i);
cout<<i<<"-----";
cout<<w.id_<<"=("<<w.x0_<<","<<w.y0_<<")"<<",("<<w.x1_<<","<<w.y1_<<")"<<endl;
}
}
void windowClicked(){
int n,m;
int x0,y0,x1,y1;
cin>>n>>m;
for(int i=0;i<n;i++){
cin>>x0>>y0>>x1>>y1;
window w(x0,y0,x1,y1,i+1);
vw.push_back(w);
}
vector<pos> vp;
for(int i =0;i<m;i++){
cin>>x1>>y1;
pos p;
p.x = x1;
p.y = y1;
vp.push_back(p);
}
for(int i=0;i<m;i++){
pos p = vp.at(i);
int k;
for(k=vw.size()-1;k>=0;k--){
window &w = vw.at(k);
if(w.check(p.x,p.y)){ //true on this window;
cout<<w.id_<<endl;
break;
}
}
if(k>=0){
window tmp = vw.at(k);
for(;k<(int)(vw.size()-1);k++){
vw.at(k) = vw[k+1];
}
vw.at(k) = tmp;
//print();
}else{
cout<<"IGNORED"<<endl;
}
}
}
};
int main(){
Solution s;
s.windowClicked();
return 0;
}
|
2f150fbfa4b546f4426be1e48f7c22e0b15b741f | 6ebfe81ecf73508ae8f520ce448387a9065dee5a | /DIVA/UnitTests/TestInputs/ElfDwarfReader/lto_cross_cu1.cpp | ca138bbb22234fd17321bebeb0f30e92cc10abb2 | [
"MIT"
] | permissive | clayne/DIVA | 48ba96bd9c643d736fa8e9d3090da88a805e7b6f | fdc066d84f5599427ecc6eb71fd7648ea8833b37 | refs/heads/master | 2023-03-17T04:12:19.760279 | 2018-01-24T14:52:14 | 2018-01-24T14:52:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 120 | cpp | lto_cross_cu1.cpp | #include "lto_cross_cu.h"
A::G foo() { return A::G(); }
A::G bar();
int main() {
foo();
bar();
return 0;
}
|
4b603bca3b7c95cec2bf998a0731926249f8072e | 5986eeacf0925af9ae790d6d0d8961df62fb9bf9 | /src/systemClib/globalLockOR.h | 4d7000e73b59032034738f3e00159942ddb1edd1 | [
"MIT"
] | permissive | ithauta/ttadf | 36f68bed267b4469aa1119ce57a5953f65cb4167 | f54859ab780df93a40035cec4bf58c33c3357731 | refs/heads/master | 2020-03-13T13:21:35.874080 | 2018-05-08T13:09:38 | 2018-05-08T13:09:38 | 131,136,633 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 644 | h | globalLockOR.h | #include <systemc.h>
#include <iostream>
template<int glockinputs = 1>
SC_MODULE(globalLockOR)
{
sc_in<bool> glocks[glockinputs];
sc_out<bool> glock;
void glockOR()
{
bool glockval = false;
int i;
for(i=0; i<glockinputs; i++){
if(glocks[i] == true){
glockval = true;
//cout << name() << " glock enabled\n";
break;
}
}
glock = glockval;
}
SC_CTOR(globalLockOR){
SC_METHOD(glockOR);
int i;
for(i=0;i<glockinputs;i++){
sensitive << glocks[i];
}
}
}; |
086ea781c9912436011b9a21129f923b5cda9a1b | 0b99e2645de9d1c486474bb5ed47b603fa6c0638 | /unLimited/engine_drawing.cpp | d1f5d25fd29c1fbdd47022a36b18eebb96b30d66 | [] | no_license | wthueb/unLimited | 3e343d893b633afb7d301cc6b717573467ce39c0 | 3c26d251049f61ae79d40b3d5165e334af587676 | refs/heads/master | 2021-07-06T15:39:36.547601 | 2018-11-20T01:56:45 | 2018-11-20T01:56:45 | 138,980,047 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,268 | cpp | engine_drawing.cpp | #include "engine_drawing.hpp"
#include <vector>
#include "utils.hpp"
static const auto pi = acos(-1);
void draw::circle(const Vector2D& pos, float points, float radius, const Color& col)
{
auto step = float(pi * 2.f / points);
for (auto a = 0.f; a < pi * 2.f; a += step)
{
Vector2D start{ radius * cosf(a) + pos.x, radius * sinf(a) + pos.y };
Vector2D end{ radius * cosf(a + step) + pos.x, radius * sinf(a + step) + pos.y };
line(start, end, col);
}
}
void draw::filled_circle(const Vector2D& pos, float points, float radius, const Color& col)
{
std::vector<Vertex_t> vertices{};
auto step = float(pi * 2.f / points);
for (auto a = 0.f; a < pi * 2.f; a += step)
vertices.push_back(Vertex_t{ { radius * cosf(a) + pos.x, radius * sinf(a) + pos.y } });
textured_polygon(int(points), vertices.data(), col);
}
void draw::circle3D(const Vector& pos, float points, float radius, const Color& col)
{
float step = float(pi * 2.f / points);
std::vector<Vector> points3d{};
for (auto a = 0.f; a < pi * 2.f; a += step)
{
Vector start{ radius * cosf(a) + pos.x, radius * sinf(a) + pos.y, pos.z };
Vector end{ radius * cosf(a + step) + pos.x, radius * sinf(a + step) + pos.y, pos.z };
Vector start2d, end2d;
if (g_debug_overlay->ScreenPosition(start, start2d) || g_debug_overlay->ScreenPosition(end, end2d))
return;
line(Vector2D{ start2d.x, start2d.y }, Vector2D{ end2d.x, end2d.y }, col);
}
}
void draw::filled_rectangle(int x0, int y0, int x1, int y1, const Color& col)
{
g_surface->DrawSetColor(col);
g_surface->DrawFilledRect(x0, y0, x1, y1);
}
void draw::filled_rectangle(const Vector2D& start_pos, const Vector2D& end_pos, const Color& col)
{
filled_rectangle(int(start_pos.x), int(start_pos.y), int(end_pos.x), int(end_pos.y), col);
}
void draw::outlined_rectangle(int x0, int y0, int x1, int y1, const Color& col)
{
g_surface->DrawSetColor(col);
g_surface->DrawOutlinedRect(x0, y0, x1, y1);
}
void draw::outlined_rectangle(const Vector2D& start_pos, const Vector2D& end_pos, const Color& col)
{
outlined_rectangle(int(start_pos.x), int(start_pos.y), int(end_pos.x), int(end_pos.y), col);
}
void draw::line(int x0, int y0, int x1, int y1, const Color& col)
{
g_surface->DrawSetColor(col);
g_surface->DrawLine(x0, y0, x1, y1);
}
void draw::line(const Vector2D& start_pos, const Vector2D& end_pos, const Color& col)
{
line(int(start_pos.x), int(start_pos.y), int(end_pos.x), int(end_pos.y), col);
}
void draw::poly_line(int* px, int* py, int num_points, const Color& col)
{
g_surface->DrawSetColor(col);
g_surface->DrawPolyLine(px, py, num_points);
}
void draw::poly_line(Vertex_t* vertices, int num_vertices, const Color& col)
{
int* points_x = new int[num_vertices];
int* points_y = new int[num_vertices];
for (auto i = 0; i < num_vertices; ++i)
{
points_x[i] = int(vertices[i].m_Position.x);
points_y[i] = int(vertices[i].m_Position.y);
}
poly_line(points_x, points_y, num_vertices, col);
delete[] points_x;
delete[] points_y;
}
void draw::textured_polygon(int num_vertices, Vertex_t* vertices, const Color& col)
{
static int texture_id = g_surface->CreateNewTextureID(true);
static unsigned char buf[4] = { 255, 255, 255, 255 };
g_surface->DrawSetTextureRGBA(texture_id, buf, 1, 1);
g_surface->DrawSetColor(col);
g_surface->DrawSetTexture(texture_id);
g_surface->DrawTexturedPolygon(num_vertices, vertices);
}
void draw::text(int x, int y, const char* text, HFont font, const Color& col)
{
std::wstring wstr = utils::to_wstring(text);
g_surface->DrawSetTextPos(x, y);
g_surface->DrawSetTextFont(font);
g_surface->DrawSetTextColor(col.to_int());
g_surface->DrawPrintText(wstr.c_str(), wcslen(wstr.c_str()));
}
void draw::text(const Vector2D& pos, const char* text, HFont font, const Color& col)
{
draw::text(int(pos.x), int(pos.y), text, font, col);
}
Vector2D draw::get_text_size(const char* text, HFont font)
{
std::wstring wstr = utils::to_wstring(text);
int x, y;
g_surface->GetTextSize(font, wstr.c_str(), x, y);
return Vector2D{ float(x), float(y) };
}
HFont draw::create_font(const char* font_name, int size, int flag)
{
HFont new_font = g_surface->CreateFont();
g_surface->SetFontGlyphSet(new_font, font_name, size, 0, 0, 0, flag);
return new_font;
}
|
102df7ecb1fb1edbeaef5776c6dd019f7b9440d9 | 973a8f87e58454249420b89db0b25f7e40dabe1e | /src/lisp/src/old_sources/scheme++/Environment.h | 20807556b4f5cf942907147197549fda9dd84b2b | [] | no_license | ryos36/libsign | fe06d6059b8714ba88e8d9add12a73e14573d64e | 58e0963c8fa8fa3c9bb517afdd5347043b17e33a | refs/heads/master | 2016-09-05T22:46:44.702370 | 2013-02-09T02:10:14 | 2013-02-09T02:10:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 739 | h | Environment.h | #ifndef __SIGN_SCHEME_ENVIRONMENT_H__
#define __SIGN_SCHEME_ENVIRONMENT_H__
#include "sign/scheme++/Symbol.h"
#include "sign/scheme++/Union.h"
#include "sign/scheme++/ExAtom.h"
namespace sign {
namespace scheme {
namespace environment {
ExAtom *alloc(ExAtom *env);
ExAtom *getSystemRootEnvironment();
void extend(ExAtom *new_env, Cell *args, Cell *values);
bool setValue(ExAtom *env, const Symbol &symbol, Union &value);
void defineValue(ExAtom *env, const Symbol &symbol, Union value);
Union getValue(ExAtom *env, const Symbol &symbol, bool *find_flag = 0);
void intern(ExAtom *env, Symbol *symbol, Union value);
} // namespace environment
} // namespace scheme
} // namespace sign
#endif /* __SIGN_SCHEME_ENVIRONMENT_H__ */
|
3ebbd191388d91ffc9365e58ee77155572b977b5 | 04fee3ff94cde55400ee67352d16234bb5e62712 | /11.15-contest/source/Stu-25-Woshiluo/gem/gem.cpp | b841bdb16365016357fecafa58c66b3396a084ff | [] | no_license | zsq001/oi-code | 0bc09c839c9a27c7329c38e490c14bff0177b96e | 56f4bfed78fb96ac5d4da50ccc2775489166e47a | refs/heads/master | 2023-08-31T06:14:49.709105 | 2021-09-14T02:28:28 | 2021-09-14T02:28:28 | 218,049,685 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 983 | cpp | gem.cpp | #include <cstdio>
#include <cstring>
inline int Max( int a, int b ) { return a > b? a: b; }
int n, m, ans;
int a[1100], f[1100][2];
// 0 buy
int main() {
freopen( "gem.in", "r", stdin );
freopen( "gem.out", "w", stdout );
scanf( "%d%d", &n, &m );
for( int i = 1; i <= n; i ++ ) {
scanf( "%d", &a[i] );
}
int op, l, r, x, y;
while( m -- ) {
scanf( "%d", &op );
if( op == 1 ) {
scanf( "%d%d", &l, &r );
memset( f, 0, sizeof(f) ); ans = 0;
for( int i = l; i <= r; i ++ ) {
f[i][0] = -a[i];
for( int j = l; j < i; j ++ ) {
f[i][0] = Max( f[i][0], f[j][1] - a[i] );
f[i][1] = Max( f[i][1], f[j][0] + a[i] );
}
ans = Max( ans, Max( f[i][0], f[i][1] ) );
}
printf( "%d\n", ans );
}
else {
scanf( "%d%d%d%d", &l, &r, &x, &y );
for( int i = l; i <= r; i ++ ) {
a[i] = x;
x += y;
}
}
}
printf( "%d", ans );
fclose( stdin );
fclose( stdout );
return 0;
}
|
862a31e83ae83d85e744fd2ab7587a1b1d68b4e9 | 1d346f5cf9176a1a6b69925ec5eac969f2a8cc7c | /Src/View/UI/CLI/Parser.cpp | afd0205c5f08eb422726281fe92588207ddaafa3 | [] | no_license | ginsberger/dna-analyzer-design | ef6cde49405d72da9d4037a23e16aced4af9bda9 | 6c235c7d66ed660095edff0a19d001b82ecf83bb | refs/heads/master | 2023-01-24T07:37:41.391805 | 2020-12-02T10:00:19 | 2020-12-02T10:00:19 | 305,764,925 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 652 | cpp | Parser.cpp |
#include "Parser.h"
#include <sstream>
void Parser::parseCommandLine(const std::string &commandLine) {
std::stringstream ss(commandLine);
std::string arg;
if(!m_parse.empty())
{
m_parse.clear();
}
while(std::getline(ss, arg, ' ')) {
if (arg.empty())
continue;
m_parse.push_back(arg);
}
}
std::string Parser::getName() {
if(m_parse.empty())
return "";
return m_parse[0];
}
std::vector<std::string> Parser::getParams() {
if(m_parse.empty())
return std::vector<std::string>();
return std::vector<std::string>(m_parse.begin() + 1, m_parse.end());
}
|
7343f60712472891aba8d39393353907198d99c9 | 6e56540d3e1bfacd4ab20439bd6f67764617b077 | /Algorithms/copybug.cpp | 6035c1dbb934d342b0962a523c2aaed7fb253041 | [] | no_license | luciandinu93/STL | 7d89314afe520d5fd6a7e97c4069022682182299 | 5f1e38fd2d9b69763ffa39c1d08e587183aeeb66 | refs/heads/master | 2020-04-30T13:50:04.168183 | 2019-04-29T07:49:45 | 2019-04-29T07:49:45 | 176,870,729 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 380 | cpp | copybug.cpp | #include <iostream>
#include <list>
#include <vector>
#include <algorithm>
#include <deque>
int main()
{
std::list<int> coll1 = {1, 2, 3, 4, 5, 6, 7, 8, 9};
std::vector<int> coll2;
coll2.resize(coll1.size());
std::copy(coll1.begin(), coll1.end(), coll2.begin());
std::deque<int> coll3(coll1.size());
std::copy(coll1.begin(), coll1.end(), coll3.begin());
}
|
53c09e0bb6da87e2e660dd0cfbaa562d0383b15a | 3e23837f9d8cf183ab07973ee61e09e94e035150 | /Types/UnionTypes.cpp | 9876e9fd786f5a3c260eb4a89beac83b4f417ba9 | [] | no_license | LeeSheng1015/Types | 8bf83214b9c803070c23a982fb93f0b6272ee1fa | f9a646ebf685a5622cb370b159dffd113d2824bb | refs/heads/master | 2022-11-28T04:31:07.641226 | 2020-07-24T06:55:45 | 2020-07-24T06:55:45 | 282,131,649 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 427 | cpp | UnionTypes.cpp | //
// UnionTypes.cpp
// Types
//
// Created by Lee Sheng on 2020/7/23.
// Copyright © 2020 Lee Sheng. All rights reserved.
// union types
/*
#include <stdio.h>
#include <cstdio>
union Movie {
char name[12];
int year;
char author[10];
bool show;
};
int main(){
Movie Harry_Poter;
Harry_Poter.year = 2012;
printf("The movie Harry Poter is showed on %d.\n", Harry_Poter.year);
return 0;
}
*/
|
4388826120510676213437e82fa0fb0c66a0eca2 | 800ef26f340515f7b5e8989fe3030352e71e3b72 | /Hanoi/workingSFML/game.h | 74ed1486e7e3ceec387e85ba609c09d408705a1c | [] | no_license | stanleychen86/Hanoi | 87b58c8d621266461a8ba19dcc653ae58231e374 | feda0d96b6baebec8c654df00d6753b611f96702 | refs/heads/master | 2020-08-29T07:16:24.264418 | 2019-10-28T04:31:48 | 2019-10-28T04:31:48 | 217,964,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,532 | h | game.h | #ifndef GAME_H
#define GAME_H
#include <utility>
#include <string>
#include <string.h>
#include <chrono>
#include <vector>
#include <SFML/Graphics.hpp>
#include <random>
#include <fstream>
#include "gameengine.h"
class Game
{
private:
bool gameFinished;
std::vector<std::pair<std::string, int> > highscores;
std::string initials;
sf::RenderWindow win;
sf::Font font;
void displaySplash();
std::pair<int,int> requestConfigs();
std::vector<int> requestInitState(int n);
void readAndDisplayHighScores();
void requestAndDisplayInitials();
void displayGameOver(int score, int winner);
void sortAndWriteHighScores(int score);
void displayInstr();
bool checkConfigs(int n, int diff, std::string nString, std::string diffString);
std::string requestSeq(int n);
bool checkSeq(std::string seq, int n);
std::vector<int> createSeq(std::string seq, int n);
bool checkInitials(std::string initials);
void endingSelection();
void endingMenu(std::vector<sf::Text>& choices, std::vector<sf::Text>::iterator highlight);
public:
Game();
void run();
//Friend functions for test cases
friend bool checkConfigsTest(Game& g, int n, int diff, std::string nString, std::string diffString);
friend bool checkSeqTest(Game& g, std::string seq, int n);
friend std::vector<int> createSeqTest(Game& g, std::string seq, int n);
friend bool checkInitialsTest(Game& g, std::string initials);
};
bool pairCompare(const std::pair<std::string, int>& first, const std::pair<std::string, int>& second);
#endif
|
3b9522b0b1f0c508e8d4b5c38f710e03ee2687de | eb2f8b3271e8ef9c9b092fcaeff3ff8307f7af86 | /Grade 10-12/2018 autumn/NOIP/NOIP2018提高组Day1程序包/GD-Senior/answers/GD-0251/money/money.cpp | 59794052e742c2f2844c5b980408cba76637c8ec | [] | no_license | Orion545/OI-Record | 0071ecde8f766c6db1f67b9c2adf07d98fd4634f | fa7d3a36c4a184fde889123d0a66d896232ef14c | refs/heads/master | 2022-01-13T19:39:22.590840 | 2019-05-26T07:50:17 | 2019-05-26T07:50:17 | 188,645,194 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 805 | cpp | money.cpp | #include <iostream>
#include <algorithm>
#include <cstdio>
#define N 103
#define M 25003
using namespace std;
int a[N];
bool f[N][M];
int main(void) //money.cpp
{
int t, n;
int i, j, k;
freopen("money.in" , "r", stdin );
freopen("money.out", "w", stdout);
scanf("%d", &t);
while(t --)
{
scanf("%d", &n);
for(i = 1; i <= n; i ++)
scanf("%d", &a[i]);
sort(a + 1, a + n + 1);
f[0][0] = true;
for(i = 1; i <= n; i ++)
for(j = 0; j <= a[n]; j ++)
{
f[i][j] = f[i - 1][j];
if(j >= a[i])
f[i][j] |= f[i][j - a[i]];
}
for(i = 1, k = n; i < n; i ++)
k -= f[i][a[i + 1]];
printf("%d\n", k);
}
return 0;
}
|
b15a03002df9ab6f7e8507a57c74ebc3ac6627a7 | 04cd1d14ada673c4cc2f9c9f156fd5671c5b36fa | /src/core/Models/modelsrepo.h | ea353ef52f42132ac288392ca476590d726ee918 | [
"MIT"
] | permissive | jbuckmccready/staticpendulum_gui | ccf2a407ac53f345b7175bed7c907cac89e845e4 | 8c14019e5903c531cca5cfefeeb22a1beca8b000 | refs/heads/master | 2020-06-16T11:01:44.204000 | 2017-02-04T01:46:05 | 2017-02-04T01:46:05 | 75,110,915 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,259 | h | modelsrepo.h | #ifndef MODELSREPO_H
#define MODELSREPO_H
#include "integratormodel.h"
#include "pendulummapmodel.h"
#include "pendulumsystemmodel.h"
#include <QObject>
class QQmlEngine;
class QJSEngine;
class QString;
namespace staticpendulum {
class ModelsRepo : public QObject {
Q_OBJECT
Q_DISABLE_COPY(ModelsRepo)
Q_PROPERTY(PendulumSystemModel *pendulumSystemModel READ pendulumSystemModel
CONSTANT)
Q_PROPERTY(PendulumMapModel *pendulumMapModel READ pendulumMapModel CONSTANT)
Q_PROPERTY(IntegratorModel *integratorModel READ integratorModel CONSTANT)
Q_PROPERTY(QString jsonFilesDirPath READ jsonFilesDirPath CONSTANT)
public:
PendulumSystemModel *pendulumSystemModel();
PendulumMapModel *pendulumMapModel();
IntegratorModel *integratorModel();
static QObject *qmlInstance(QQmlEngine *engine, QJSEngine *scriptEngine);
const QString &jsonFilesDirPath();
public slots:
void loadJsonFile(const QString &filePath);
bool saveJsonFile(const QString &filePath) const;
void deleteJsonFile(const QString &filePath) const;
private:
ModelsRepo();
PendulumSystemModel m_pendulumSystemModel;
IntegratorModel m_integratorModel;
PendulumMapModel m_pendulumMapModel;
};
} // namespace staticpendulum
#endif // MODELSREPO_H
|
69e802d67d1fdace00ae9890d326442eb2297b72 | afb7006e47e70c1deb2ddb205f06eaf67de3df72 | /third_party/libwebrtc/modules/video_coding/deprecated/frame_buffer.cc | e71db303f8141b0b267eae68982995351a384238 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | marco-c/gecko-dev-wordified | a66383f85db33911b6312dd094c36f88c55d2e2c | 3509ec45ecc9e536d04a3f6a43a82ec09c08dff6 | refs/heads/master | 2023-08-10T16:37:56.660204 | 2023-08-01T00:39:54 | 2023-08-01T00:39:54 | 211,297,590 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,478 | cc | frame_buffer.cc | /
*
*
Copyright
(
c
)
2012
The
WebRTC
project
authors
.
All
Rights
Reserved
.
*
*
Use
of
this
source
code
is
governed
by
a
BSD
-
style
license
*
that
can
be
found
in
the
LICENSE
file
in
the
root
of
the
source
*
tree
.
An
additional
intellectual
property
rights
grant
can
be
found
*
in
the
file
PATENTS
.
All
contributing
project
authors
may
*
be
found
in
the
AUTHORS
file
in
the
root
of
the
source
tree
.
*
/
#
include
"
modules
/
video_coding
/
deprecated
/
frame_buffer
.
h
"
#
include
<
string
.
h
>
#
include
"
api
/
video
/
encoded_image
.
h
"
#
include
"
api
/
video
/
video_timing
.
h
"
#
include
"
modules
/
video_coding
/
deprecated
/
packet
.
h
"
#
include
"
rtc_base
/
checks
.
h
"
#
include
"
rtc_base
/
logging
.
h
"
#
include
"
rtc_base
/
trace_event
.
h
"
namespace
webrtc
{
VCMFrameBuffer
:
:
VCMFrameBuffer
(
)
:
_state
(
kStateEmpty
)
_nackCount
(
0
)
_latestPacketTimeMs
(
-
1
)
{
}
VCMFrameBuffer
:
:
~
VCMFrameBuffer
(
)
{
}
webrtc
:
:
VideoFrameType
VCMFrameBuffer
:
:
FrameType
(
)
const
{
return
_sessionInfo
.
FrameType
(
)
;
}
int32_t
VCMFrameBuffer
:
:
GetLowSeqNum
(
)
const
{
return
_sessionInfo
.
LowSequenceNumber
(
)
;
}
int32_t
VCMFrameBuffer
:
:
GetHighSeqNum
(
)
const
{
return
_sessionInfo
.
HighSequenceNumber
(
)
;
}
int
VCMFrameBuffer
:
:
PictureId
(
)
const
{
return
_sessionInfo
.
PictureId
(
)
;
}
int
VCMFrameBuffer
:
:
TemporalId
(
)
const
{
return
_sessionInfo
.
TemporalId
(
)
;
}
bool
VCMFrameBuffer
:
:
LayerSync
(
)
const
{
return
_sessionInfo
.
LayerSync
(
)
;
}
int
VCMFrameBuffer
:
:
Tl0PicId
(
)
const
{
return
_sessionInfo
.
Tl0PicId
(
)
;
}
std
:
:
vector
<
NaluInfo
>
VCMFrameBuffer
:
:
GetNaluInfos
(
)
const
{
return
_sessionInfo
.
GetNaluInfos
(
)
;
}
void
VCMFrameBuffer
:
:
SetGofInfo
(
const
GofInfoVP9
&
gof_info
size_t
idx
)
{
TRACE_EVENT0
(
"
webrtc
"
"
VCMFrameBuffer
:
:
SetGofInfo
"
)
;
_sessionInfo
.
SetGofInfo
(
gof_info
idx
)
;
/
/
TODO
(
asapersson
)
:
Consider
adding
hdr
-
>
VP9
.
ref_picture_id
for
testing
.
_codecSpecificInfo
.
codecSpecific
.
VP9
.
temporal_idx
=
gof_info
.
temporal_idx
[
idx
]
;
_codecSpecificInfo
.
codecSpecific
.
VP9
.
temporal_up_switch
=
gof_info
.
temporal_up_switch
[
idx
]
;
}
/
/
Insert
packet
VCMFrameBufferEnum
VCMFrameBuffer
:
:
InsertPacket
(
const
VCMPacket
&
packet
int64_t
timeInMs
const
FrameData
&
frame_data
)
{
TRACE_EVENT0
(
"
webrtc
"
"
VCMFrameBuffer
:
:
InsertPacket
"
)
;
RTC_DCHECK
(
!
(
NULL
=
=
packet
.
dataPtr
&
&
packet
.
sizeBytes
>
0
)
)
;
if
(
packet
.
dataPtr
!
=
NULL
)
{
_payloadType
=
packet
.
payloadType
;
}
if
(
kStateEmpty
=
=
_state
)
{
/
/
First
packet
(
empty
and
/
or
media
)
inserted
into
this
frame
.
/
/
store
some
info
and
set
some
initial
values
.
SetTimestamp
(
packet
.
timestamp
)
;
/
/
We
only
take
the
ntp
timestamp
of
the
first
packet
of
a
frame
.
ntp_time_ms_
=
packet
.
ntp_time_ms_
;
_codec
=
packet
.
codec
(
)
;
if
(
packet
.
video_header
.
frame_type
!
=
VideoFrameType
:
:
kEmptyFrame
)
{
/
/
first
media
packet
SetState
(
kStateIncomplete
)
;
}
}
size_t
oldSize
=
encoded_image_buffer_
?
encoded_image_buffer_
-
>
size
(
)
:
0
;
uint32_t
requiredSizeBytes
=
size
(
)
+
packet
.
sizeBytes
+
(
packet
.
insertStartCode
?
kH264StartCodeLengthBytes
:
0
)
;
if
(
requiredSizeBytes
>
oldSize
)
{
const
uint8_t
*
prevBuffer
=
data
(
)
;
const
uint32_t
increments
=
requiredSizeBytes
/
kBufferIncStepSizeBytes
+
(
requiredSizeBytes
%
kBufferIncStepSizeBytes
>
0
)
;
const
uint32_t
newSize
=
oldSize
+
increments
*
kBufferIncStepSizeBytes
;
if
(
newSize
>
kMaxJBFrameSizeBytes
)
{
RTC_LOG
(
LS_ERROR
)
<
<
"
Failed
to
insert
packet
due
to
frame
being
too
"
"
big
.
"
;
return
kSizeError
;
}
if
(
data
(
)
=
=
nullptr
)
{
encoded_image_buffer_
=
EncodedImageBuffer
:
:
Create
(
newSize
)
;
SetEncodedData
(
encoded_image_buffer_
)
;
set_size
(
0
)
;
}
else
{
RTC_CHECK
(
encoded_image_buffer_
!
=
nullptr
)
;
RTC_DCHECK_EQ
(
encoded_image_buffer_
-
>
data
(
)
data
(
)
)
;
encoded_image_buffer_
-
>
Realloc
(
newSize
)
;
}
_sessionInfo
.
UpdateDataPointers
(
prevBuffer
data
(
)
)
;
}
if
(
packet
.
width
(
)
>
0
&
&
packet
.
height
(
)
>
0
)
{
_encodedWidth
=
packet
.
width
(
)
;
_encodedHeight
=
packet
.
height
(
)
;
}
/
/
Don
'
t
copy
payload
specific
data
for
empty
packets
(
e
.
g
padding
packets
)
.
if
(
packet
.
sizeBytes
>
0
)
CopyCodecSpecific
(
&
packet
.
video_header
)
;
int
retVal
=
_sessionInfo
.
InsertPacket
(
packet
encoded_image_buffer_
?
encoded_image_buffer_
-
>
data
(
)
:
nullptr
frame_data
)
;
if
(
retVal
=
=
-
1
)
{
return
kSizeError
;
}
else
if
(
retVal
=
=
-
2
)
{
return
kDuplicatePacket
;
}
else
if
(
retVal
=
=
-
3
)
{
return
kOutOfBoundsPacket
;
}
/
/
update
size
set_size
(
size
(
)
+
static_cast
<
uint32_t
>
(
retVal
)
)
;
_latestPacketTimeMs
=
timeInMs
;
/
/
http
:
/
/
www
.
etsi
.
org
/
deliver
/
etsi_ts
/
126100_126199
/
126114
/
12
.
07
.
00_60
/
/
/
ts_126114v120700p
.
pdf
Section
7
.
4
.
5
.
/
/
The
MTSI
client
shall
add
the
payload
bytes
as
defined
in
this
clause
/
/
onto
the
last
RTP
packet
in
each
group
of
packets
which
make
up
a
key
/
/
frame
(
I
-
frame
or
IDR
frame
in
H
.
264
(
AVC
)
or
an
IRAP
picture
in
H
.
265
/
/
(
HEVC
)
)
.
if
(
packet
.
markerBit
)
{
rotation_
=
packet
.
video_header
.
rotation
;
content_type_
=
packet
.
video_header
.
content_type
;
if
(
packet
.
video_header
.
video_timing
.
flags
!
=
VideoSendTiming
:
:
kInvalid
)
{
timing_
.
encode_start_ms
=
ntp_time_ms_
+
packet
.
video_header
.
video_timing
.
encode_start_delta_ms
;
timing_
.
encode_finish_ms
=
ntp_time_ms_
+
packet
.
video_header
.
video_timing
.
encode_finish_delta_ms
;
timing_
.
packetization_finish_ms
=
ntp_time_ms_
+
packet
.
video_header
.
video_timing
.
packetization_finish_delta_ms
;
timing_
.
pacer_exit_ms
=
ntp_time_ms_
+
packet
.
video_header
.
video_timing
.
pacer_exit_delta_ms
;
timing_
.
network_timestamp_ms
=
ntp_time_ms_
+
packet
.
video_header
.
video_timing
.
network_timestamp_delta_ms
;
timing_
.
network2_timestamp_ms
=
ntp_time_ms_
+
packet
.
video_header
.
video_timing
.
network2_timestamp_delta_ms
;
}
timing_
.
flags
=
packet
.
video_header
.
video_timing
.
flags
;
}
if
(
packet
.
is_first_packet_in_frame
(
)
)
{
playout_delay_
=
packet
.
video_header
.
playout_delay
;
}
if
(
_sessionInfo
.
complete
(
)
)
{
SetState
(
kStateComplete
)
;
return
kCompleteSession
;
}
return
kIncomplete
;
}
int64_t
VCMFrameBuffer
:
:
LatestPacketTimeMs
(
)
const
{
TRACE_EVENT0
(
"
webrtc
"
"
VCMFrameBuffer
:
:
LatestPacketTimeMs
"
)
;
return
_latestPacketTimeMs
;
}
void
VCMFrameBuffer
:
:
IncrementNackCount
(
)
{
TRACE_EVENT0
(
"
webrtc
"
"
VCMFrameBuffer
:
:
IncrementNackCount
"
)
;
_nackCount
+
+
;
}
int16_t
VCMFrameBuffer
:
:
GetNackCount
(
)
const
{
TRACE_EVENT0
(
"
webrtc
"
"
VCMFrameBuffer
:
:
GetNackCount
"
)
;
return
_nackCount
;
}
bool
VCMFrameBuffer
:
:
HaveFirstPacket
(
)
const
{
TRACE_EVENT0
(
"
webrtc
"
"
VCMFrameBuffer
:
:
HaveFirstPacket
"
)
;
return
_sessionInfo
.
HaveFirstPacket
(
)
;
}
int
VCMFrameBuffer
:
:
NumPackets
(
)
const
{
TRACE_EVENT0
(
"
webrtc
"
"
VCMFrameBuffer
:
:
NumPackets
"
)
;
return
_sessionInfo
.
NumPackets
(
)
;
}
void
VCMFrameBuffer
:
:
Reset
(
)
{
TRACE_EVENT0
(
"
webrtc
"
"
VCMFrameBuffer
:
:
Reset
"
)
;
set_size
(
0
)
;
_sessionInfo
.
Reset
(
)
;
_payloadType
=
0
;
_nackCount
=
0
;
_latestPacketTimeMs
=
-
1
;
_state
=
kStateEmpty
;
VCMEncodedFrame
:
:
Reset
(
)
;
}
/
/
Set
state
of
frame
void
VCMFrameBuffer
:
:
SetState
(
VCMFrameBufferStateEnum
state
)
{
TRACE_EVENT0
(
"
webrtc
"
"
VCMFrameBuffer
:
:
SetState
"
)
;
if
(
_state
=
=
state
)
{
return
;
}
switch
(
state
)
{
case
kStateIncomplete
:
/
/
we
can
go
to
this
state
from
state
kStateEmpty
RTC_DCHECK_EQ
(
_state
kStateEmpty
)
;
/
/
Do
nothing
we
received
a
packet
break
;
case
kStateComplete
:
RTC_DCHECK
(
_state
=
=
kStateEmpty
|
|
_state
=
=
kStateIncomplete
)
;
break
;
case
kStateEmpty
:
/
/
Should
only
be
set
to
empty
through
Reset
(
)
.
RTC_DCHECK_NOTREACHED
(
)
;
break
;
}
_state
=
state
;
}
/
/
Get
current
state
of
frame
VCMFrameBufferStateEnum
VCMFrameBuffer
:
:
GetState
(
)
const
{
return
_state
;
}
void
VCMFrameBuffer
:
:
PrepareForDecode
(
bool
continuous
)
{
TRACE_EVENT0
(
"
webrtc
"
"
VCMFrameBuffer
:
:
PrepareForDecode
"
)
;
size_t
bytes_removed
=
_sessionInfo
.
MakeDecodable
(
)
;
set_size
(
size
(
)
-
bytes_removed
)
;
/
/
Transfer
frame
information
to
EncodedFrame
and
create
any
codec
/
/
specific
information
.
_frameType
=
_sessionInfo
.
FrameType
(
)
;
_missingFrame
=
!
continuous
;
}
}
/
/
namespace
webrtc
|
27b82b9372ce3a8fcc78fccfcc350783b5ade85b | f74fd64254c149ae18ab5f471de04173eebc4d7b | /sheet1/frequency.cpp | 841d6dd55ca20e1eed54621ba021aa3d5cdf273e | [] | no_license | prithvisbisht/CEC | 05c66dc0d62a2f710a8429ec85cf8d7135312eaa | 27f207571852732263f3975907559282e2df3ae8 | refs/heads/master | 2018-07-23T02:36:58.037678 | 2018-06-02T11:24:08 | 2018-06-02T11:24:08 | 118,794,708 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 433 | cpp | frequency.cpp | #include<iostream>
using namespace std;
void checkFrequency(int arr[],string s){
char a='0';
for (int i = 0; i < s.length(); ++i){
arr[s[i]-a]++;
}
}
void printArray(int arr[]){
for (int i = 0; i < 10; ++i){
if(arr[i]!=0){
cout<<"frequency of number "<<i<<" is "<<arr[i]<<endl;
}
}
}
int main(){
string s;
cout<<"enter your number ...."<<endl;
cin>>s;
int arr[9]={0};
checkFrequency(arr,s);
printArray(arr);
} |
c9241f70fa548bef90cc95364aecc297cce8c2d9 | ac0b9c85542e6d1ef59c5e9df4618ddf22223ae0 | /kratos/applications/henry_application/tests/unitaryTestHenryECU.h | f337340bf8a3b69273ae7a3c8fd127cd6a2dd7a8 | [] | no_license | UPC-EnricBonet/trunk | 30cb6fbd717c1e78d95ec66bc0f6df1a041b2b72 | 1cecfe201c8c9a1b87b2d87faf8e505b7b1f772d | refs/heads/master | 2021-06-04T05:10:06.060945 | 2016-07-15T15:29:00 | 2016-07-15T15:29:00 | 33,677,051 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,307 | h | unitaryTestHenryECU.h | /* *********************************************************
*
* Last Modified by: $Author: VictorBez $
* Date: $Date: 2015 $
* Revision: $Revision: 1.0 $
*
* ***********************************************************/
#if !defined(KRATOS_UNITARY_TEST_UTILITIES)
#define KRATOS_UNITARY_TEST_UTILITIES
/* System includes */
/* External includes */
#include "boost/smart_ptr.hpp"
/* Project includes */
#include "includes/define.h"
#include "includes/model_part.h"
#include "utilities/geometry_utilities.h"
#include <string>
#include <stdio.h>
//Inheritance
#include "solving_strategies/strategies/solving_strategy.h"
#include "custom_elements/flowpressuretrans_2d.h"
//Application
#include "henry_application.h"
using namespace std;
namespace Kratos
{
class UnitaryTestHenryECU
{
public:
//Doc-> constructor
UnitaryTestHenryECU(ModelPart& model_part,unsigned int aDomainSize = 2):mr_model_part(model_part)
{
}
~UnitaryTestHenryECU(){}
void UnitaryTest()
{
//get the "model element" named "BaseTemperatureElement"
//Element const& r_reference_element = KratosComponents<Element>::Get("FlowPressureTrans2D");
//loop to make the copy
/*for(ElementsContainerType::iterator it = (this->model_part).ElementsBegin(); it!=(this->model_part).ElementsEnd(); it++)
{
//Geometry< Node<3> >::Pointer pgeom = it->pGetGeometry(); //get the connectivity of the origin element
//unsigned int new_id = it->Id(); //we want to create a new element with the same Id as the old one
//PropertiesType::Pointer pprop = it->GetProperties(); //get the properties (of the old model part)
//create a copy using the "reference element" as a model
// Element::Pointer p_element = rReferenceElement.Create(new_id, pgeom ,properties);
//fill the new model part
//new_model_part.Elements().push_back(p_element);
it->CalculateDensityElement();
}*/
/*ModelPart::ElementsContainerType& rElements = mr_model_part.Elements();
for (unsigned int rElements; rElements < mr_model_part.Elements().size(); rElements++)
{
rElements.CalculateDensityElement();
}*/
//ModelPart::ElementsContainerType& rElements = mr_model_part.Elements();
for (int i=0; i < mr_model_part.Elements().size(); i++)
{
ModelPart::ElementsContainerType::iterator iel = mr_model_part.ElementsBegin()+i;
//ModelPart::ElementsContainerType::iterator itElem = GetModelPart().ElementsBegin()+i;
FlowPressureTrans2D* i_floweleme = dynamic_cast<FlowPressureTrans2D*>(&*iel);
i_floweleme->CalculateDensityElement();
//iel->CalculateUnitaryFunctions();//obtenemos valores calculados en cada una de las fucniones que hacemos testeo unitario
//KRATOS_WATCH(elem);
}
//KRATOS_WATCH("hola_UnitaryTest()")
}
protected:
private:
unsigned int mDomainSize;
ModelPart& mr_model_part;
}; /* Class UnitaryTestUtilities */
} /* namespace Kratos.*/
#endif /* KRATOS_UNITARY_TEST_UTILITIES defined */
|
06fde869af773bb809da19773e220fef06d46d85 | dd4785ff43abb433b9e0dc55c28a64ce44aa00ad | /Tank/Tank/CPlayer.h | 2eec231e44b40fc2024282779c32da4523ef5a9f | [] | no_license | zhaitianbao/tank | 1764c003e5ba5e73494635197bbf539af3246b62 | 43a2f8735b4ae47e5c1fefb83b9b12be679ba99e | refs/heads/main | 2023-03-01T11:25:57.177499 | 2021-02-19T08:48:33 | 2021-02-19T08:48:33 | 339,889,872 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 372 | h | CPlayer.h | #pragma once
#include "CTankEntry.h"
class CPlayer :
public CTankEntry
{
public:
CPlayer();
CPlayer(float x, float y, PCTSTR szImgName);
virtual ~CPlayer();
// 左右转 : 两次转动之间有时间限制。不能转得太快
virtual void RotateRight();
virtual void RotateLeft();
private:
// 检查两次动作之间的时间
CGameTimeval m_timer{ 100 };
};
|
124de361247a6036b9a208437b43d5b655a0a8bd | 4424dfe8a7ea33e2dcaaa0fe20fccff1b592a31c | /src/Misc/OptionsDialog.cpp | 62144e01bbd81954cffd3a0813c143777097f657 | [] | no_license | standardgalactic/grall2 | 47ad74632c6174c135a4e8729e59b2a268830ee0 | 68171f4cdad871ca11d749b68d3ef4230a37b8d4 | refs/heads/master | 2023-07-25T02:28:33.194387 | 2013-07-28T16:59:35 | 2013-07-28T16:59:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,859 | cpp | OptionsDialog.cpp | /*
=========================================
OptionsDialog.cpp
=========================================
*/
#include "Misc/OptionsDialog.h"
//-------------------------------------------------------------------------------
OptionsDialog::OptionsDialog()
: mCurrKey(""),
mListeningForKey(false)
{
MyGUI::LayoutManager::getInstance().loadLayout("Options.layout");
mWindow = GlbVar.gui->findWidget<MyGUI::Window>("win_options");
//Save some widgets.
mPressKeyText = GlbVar.gui->findWidget<MyGUI::StaticText>("o_c_txt_pressKey");
mTurningScroll = GlbVar.gui->findWidget<MyGUI::HScroll>("o_c_sli_turningSensitivity");
mTurningText = GlbVar.gui->findWidget<MyGUI::StaticText>("o_c_txt_turningSensitivity");
mUpDownScroll = GlbVar.gui->findWidget<MyGUI::HScroll>("o_c_sli_upDownSensitivity");
mUpDownText = GlbVar.gui->findWidget<MyGUI::StaticText>("o_c_txt_upDownSensitivity");
mInvertMouseCheckBox = GlbVar.gui->findWidget<MyGUI::Button>("o_c_chk_invertMouse");
mInvertMouseCheckBox->eventMouseButtonClick += MyGUI::newDelegate(this, &OptionsDialog::onClickInvertMouse);
mResolutionsBox = GlbVar.gui->findWidget<MyGUI::ComboBox>("o_g_cmb_resolution");
//mResolutionsBox->eventComboAccept += MyGUI::newDelegate(this, &OptionsDialog::onSelectResolution);
mFullscreenCheckBox = GlbVar.gui->findWidget<MyGUI::Button>("o_g_chk_fullscreen");
mFullscreenCheckBox->eventMouseButtonClick += MyGUI::newDelegate(this, &OptionsDialog::onClickCheckBox);
mLightingCheckBox = GlbVar.gui->findWidget<MyGUI::Button>("o_g_chk_lighting");
mLightingCheckBox->eventMouseButtonClick += MyGUI::newDelegate(this, &OptionsDialog::onClickCheckBox);
mNormalMapCheckBox = GlbVar.gui->findWidget<MyGUI::Button>("o_g_chk_normalMap");
mNormalMapCheckBox->eventMouseButtonClick += MyGUI::newDelegate(this, &OptionsDialog::onClickCheckBox);
mParallaxMapCheckBox = GlbVar.gui->findWidget<MyGUI::Button>("o_g_chk_parallaxMap");
mParallaxMapCheckBox->eventMouseButtonClick += MyGUI::newDelegate(this, &OptionsDialog::onClickCheckBox);
mShadowsCheckBox = GlbVar.gui->findWidget<MyGUI::Button>("o_g_chk_shadows");
mShadowsCheckBox->eventMouseButtonClick += MyGUI::newDelegate(this, &OptionsDialog::onClickCheckBox);
mRenderersBox = GlbVar.gui->findWidget<MyGUI::ComboBox>("o_g_cmb_renderer");
//Configure sliders.
mTurningScroll->setScrollRange(1.0 / SLIDER_QUANTUM);
mUpDownScroll->setScrollRange(1.0 / SLIDER_QUANTUM);
mTurningScroll->setMoveToClick(true);
mUpDownScroll->setMoveToClick(true);
//Set key setter callback.
MyGUI::EnumeratorWidgetPtr iter = GlbVar.gui->findWidget<MyGUI::TabItem>("o_tab_controls")->getEnumerator();
while (iter.next())
{
MyGUI::Widget *widget = iter.current();
//If it's a key setter, give it the key setting callback.
if (widget->getUserString("type") == "KeyChange")
widget->eventMouseButtonClick += MyGUI::newDelegate(this, &OptionsDialog::onClickChangeKey);
}
//OK! :P
MyGUI::ButtonPtr button;
button = GlbVar.gui->findWidget<MyGUI::Button>("o_but_ok");
button->eventMouseButtonClick += MyGUI::newDelegate(this, &OptionsDialog::onClickOK);
button = GlbVar.gui->findWidget<MyGUI::Button>("o_g_but_apply");
button->eventMouseButtonClick += MyGUI::newDelegate(this, &OptionsDialog::onClickGraphicsApply);
//Quick hack to update.
setVisible(true);
mWindow->setVisible(false);
}
//-------------------------------------------------------------------------------
OptionsDialog::~OptionsDialog()
{
GlbVar.gui->destroyWidget(mWindow);
}
//-------------------------------------------------------------------------------
void OptionsDialog::tick()
{
if (getVisible())
{
//Update key display.
MyGUI::EnumeratorWidgetPtr iter = GlbVar.gui->findWidget<MyGUI::TabItem>("o_tab_controls")->getEnumerator();
while (iter.next())
{
MyGUI::Widget *widget = iter.current();
//If it's a key displayer, make it display the key it wants to display.
if (widget->getUserString("type") == "KeyDisplay")
{
MyGUI::StaticText *st = dynamic_cast<MyGUI::StaticText*>(widget);
if (st)
st->setCaption(GlbVar.keyMap->keyToString(
GlbVar.settings.controls.keys[widget->getUserString("key")]
));
}
}
//Tell user to press key if he has to.
mPressKeyText->setVisible(mListeningForKey);
if (mListeningForKey)
{
//Highlight the relevant key.
GlbVar.gui->findWidget<MyGUI::StaticText>("o_c_txt_" + mCurrKey)->setTextColour(MyGUI::Colour(0.8,0.6,0.1));
}
//Get slider values and update settings.
GlbVar.settings.controls.turningSensitivity = (mTurningScroll->getScrollPosition() + 1) * SLIDER_QUANTUM;
GlbVar.settings.controls.upDownSensitivity = (mUpDownScroll->getScrollPosition() + 1) * SLIDER_QUANTUM;
//Update slider text and checkbox. We update the sliders themselves only when we become visible.
mTurningText->setCaption(Ogre::StringConverter::toString(GlbVar.settings.controls.turningSensitivity, 2));
mUpDownText->setCaption(Ogre::StringConverter::toString(GlbVar.settings.controls.upDownSensitivity, 2));
mInvertMouseCheckBox->setStateSelected(GlbVar.settings.controls.invertMouse);
//Update graphics settings display.
Ogre::String res = mResolutionsBox->getItemNameAt(mResolutionsBox->getIndexSelected());
Ogre::StringVector vec = Ogre::StringUtil::split(res, "x");
if (vec.size() == 2)
{
int width = Ogre::StringConverter::parseInt(vec[0]);
int height = Ogre::StringConverter::parseInt(vec[1]);
if (width > 0 && height > 0)
{
GlbVar.settings.ogre.winWidth = width;
GlbVar.settings.ogre.winHeight = height;
}
}
GlbVar.settings.ogre.renderer = mRenderersBox->getIndexSelected() == 1 ? Globals::Settings::OgreSettings::DIRECT3D : Globals::Settings::OgreSettings::OPENGL;
}
}
//-------------------------------------------------------------------------------
void OptionsDialog::keyPressed(OIS::KeyCode kc)
{
//If we're listening, then save the key.
if (mListeningForKey)
{
GlbVar.settings.controls.keys[mCurrKey] = kc;
stopListeningForKey();
}
}
//-------------------------------------------------------------------------------
void OptionsDialog::stopListeningForKey()
{
//Stop highlighting the key.
GlbVar.gui->findWidget<MyGUI::StaticText>("o_c_txt_" + mCurrKey)->setTextColour(MyGUI::Colour(1,1,1));
//Make button caption 'Change' again.
GlbVar.gui->findWidget<MyGUI::Button>("o_c_but_" + mCurrKey)->setCaption("Change");
mListeningForKey = false;
mCurrKey = "";
}
//-------------------------------------------------------------------------------
void OptionsDialog::onClickChangeKey(MyGUI::WidgetPtr button)
{
//If we're not already listening, we start doing so, otherwise we stop.
if (!mListeningForKey)
{
mListeningForKey = true;
mCurrKey = button->getUserString("key");
//So that he knows where to click to cancel the key change.
GlbVar.gui->findWidget<MyGUI::Button>("o_c_but_" + mCurrKey)->setCaption("Cancel");
}
else
{
stopListeningForKey();
}
}
//-------------------------------------------------------------------------------
void OptionsDialog::onClickOK(MyGUI::WidgetPtr button)
{
setVisible(false);
}
//-------------------------------------------------------------------------------
void OptionsDialog::onClickInvertMouse(MyGUI::WidgetPtr button)
{
GlbVar.settings.controls.invertMouse = !GlbVar.settings.controls.invertMouse;
}
//-------------------------------------------------------------------------------
void OptionsDialog::onClickCheckBox(MyGUI::WidgetPtr widget)
{
MyGUI::ButtonPtr button = dynamic_cast<MyGUI::Button *>(widget);
if (button)
button->setStateSelected(!button->getStateSelected());
}
//-------------------------------------------------------------------------------
void OptionsDialog::onSelectResolution(MyGUI::ComboBoxPtr, size_t index)
{
Ogre::String res = mResolutionsBox->getItemNameAt(index);
Ogre::StringVector vec = Ogre::StringUtil::split(res, "x");
if (vec.size() == 2)
{
int width = Ogre::StringConverter::parseInt(vec[0]);
int height = Ogre::StringConverter::parseInt(vec[1]);
if (width > 0 && height > 0)
{
GlbVar.settings.ogre.winWidth = width;
GlbVar.settings.ogre.winHeight = height;
}
}
}
//-------------------------------------------------------------------------------
void OptionsDialog::updateDisplay()
{
}
//-------------------------------------------------------------------------------
void OptionsDialog::setVisible(bool visible)
{
mWindow->setVisibleSmooth(visible);
//Some things to update when becoming visible.
if (visible)
{
//Gotta see where we click!
MyGUI::PointerManager::getInstance().setVisible(true);
//Center
int winHeight = GlbVar.ogreWindow->getHeight();
int winWidth = GlbVar.ogreWindow->getWidth();
int width = mWindow->getWidth();
int height = mWindow->getHeight();
mWindow->setPosition(MyGUI::IntPoint((winWidth - width)*0.5, (winHeight - height)*0.5));
//Update scrolls.
mTurningScroll->setScrollPosition((GlbVar.settings.controls.turningSensitivity / SLIDER_QUANTUM) - 1);
mUpDownScroll->setScrollPosition((GlbVar.settings.controls.upDownSensitivity / SLIDER_QUANTUM) - 1);
//Update the resolutions ComboBox. If resolution not found, add it.
Ogre::String resString = Ogre::StringConverter::toString(GlbVar.settings.ogre.winWidth) + "x" + Ogre::StringConverter::toString(GlbVar.settings.ogre.winHeight);
size_t index = mResolutionsBox->findItemIndexWith(resString);
if (index != MyGUI::ITEM_NONE)
mResolutionsBox->setIndexSelected(index);
else
{
mResolutionsBox->insertItemAt(0, resString);
mResolutionsBox->setIndexSelected(0);
}
//Update renderer ComboBox.
mRenderersBox->setIndexSelected(GlbVar.settings.ogre.renderer);
//Update check boxes.
mFullscreenCheckBox->setStateSelected(GlbVar.settings.ogre.winFullscreen);
mLightingCheckBox->setStateSelected(GlbVar.settings.graphics.lighting);
mNormalMapCheckBox->setStateSelected(GlbVar.settings.graphics.normalMapping);
mParallaxMapCheckBox->setStateSelected(GlbVar.settings.graphics.parallaxMapping);
mShadowsCheckBox->setStateSelected(GlbVar.settings.graphics.shadows);
}
else
{
unsigned int curInd = GlbVar.woMgr->getCurrentWorldIndex();
if (curInd >= GlbVar.firstLevel && curInd <= GlbVar.records.highestLevelIndex)
MyGUI::PointerManager::getInstance().setVisible(false);
}
}
//-------------------------------------------------------------------------------
void OptionsDialog::onClickGraphicsApply(MyGUI::WidgetPtr)
{
GlbVar.settings.ogre.winFullscreen = mFullscreenCheckBox->getStateSelected();
GlbVar.settings.graphics.lighting = mLightingCheckBox->getStateSelected();
GlbVar.settings.graphics.normalMapping = mNormalMapCheckBox->getStateSelected();
GlbVar.settings.graphics.parallaxMapping = mParallaxMapCheckBox->getStateSelected();
GlbVar.settings.graphics.shadows = mShadowsCheckBox->getStateSelected();
Util::writeShaderConfig();
Util::reloadMaterials();
}
//-------------------------------------------------------------------------------
|
964e9270a89fc8d3611da3752062ce9245e941bc | 62408a02b44f2fd20c6d54e1f5def0184e69194c | /CodeChef/AMR16H/15598564_AC_140ms_15974kB.cpp | 818b2281bdab8381f802b574cab0ae5371b03580 | [] | no_license | benedicka/Competitive-Programming | 24eb90b8150aead5c13287b62d9dc860c4b9232e | a94ccfc2d726e239981d598e98d1aa538691fa47 | refs/heads/main | 2023-03-22T10:14:34.889913 | 2021-03-16T05:33:43 | 2021-03-16T05:33:43 | 348,212,250 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 337 | cpp | 15598564_AC_140ms_15974kB.cpp | #include<bits/stdc++.h>
using namespace std;
long long t, a[100010],ans;
int n,cnt;
int main()
{
scanf("%lld",&t);
while(t--)
{
ans = 0;
cin>>n;
for(int i=0;i<n;i++)
{
cin>>a[i];
}
sort(a,a+n);
ans = a[n-1];
cnt = n;
for(int i=n-2;i>=0;i--)
{
ans+=(cnt*a[i]);
cnt--;
}
cout<<ans<<endl;
}
return 0;
} |
446ec17ab106a830bf28115d9498e8fb0e7bda57 | 8f9ebbb2c287e2d4b4ceebc9a5e15dca176c7bdb | /standard_core_library/lighting_controller_service/inc/LeaderElectionObject.h | 0193efd28957044c50204fa67c4772b078aa6527 | [
"Apache-2.0"
] | permissive | alljoyn/lighting-service_framework | 515aa2a989506e36fb31845971ec819e238474e4 | 6d3624b92294e44f598d22fe4a08e6437516426a | refs/heads/master | 2021-09-11T16:35:23.772349 | 2018-04-09T17:54:52 | 2018-04-09T17:54:52 | 112,537,412 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,406 | h | LeaderElectionObject.h | #ifndef LEADER_ELECTION_OBJECT_H
#define LEADER_ELECTION_OBJECT_H
/**
* \ingroup ControllerService
*/
/**
* @file
* This file provides definitions for leader election object
*/
/******************************************************************************
* Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source
* Project (AJOSP) Contributors and others.
*
* SPDX-License-Identifier: Apache-2.0
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution, and is available at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Copyright (c) Open Connectivity Foundation and Contributors to AllSeen
* Alliance. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice and this permission notice appear in all
* copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
******************************************************************************/
#include <alljoyn/BusAttachment.h>
#include <alljoyn/BusObject.h>
#include <alljoyn/AboutListener.h>
#include <LSFTypes.h>
#include <Mutex.h>
#include <Alarm.h>
#ifdef LSF_BINDINGS
#include <lsf/controllerservice/OEM_CS_Config.h>
#else
#include <OEM_CS_Config.h>
#endif
#include <Rank.h>
#include "LSFNamespaceSpecifier.h"
namespace lsf {
OPTIONAL_NAMESPACE_CONTROLLER_SERVICE
class ControllerService;
/**
* LeaderElectionObject class. \n
* Implementing the algorithm of leader election. \n
* Implementing the election behavior of the entity as a leader and also as a follower. \n
*/
class LeaderElectionObject : public ajn::BusObject, public Thread, public AlarmListener, public OEM_CS_NetworkCallback {
public:
/**
* constructor
*/
LeaderElectionObject(ControllerService& controller);
/**
* destructor
*/
~LeaderElectionObject();
/**
* On announcement callback
*/
void OnAnnounced(ajn::SessionPort port, const char* busName, Rank rank, bool isLeader, const char* deviceId);
/**
* Start threads
*/
QStatus Start(Rank& rank);
/**
* Stop threads
*/
void Stop(void);
/**
* Join threads
*/
void Join(void);
/**
* get blob reply. \n
* Get data and metadata about lamps
*/
void SendGetBlobReply(ajn::Message& message, LSFBlobType type, std::string blob, uint32_t checksum, uint64_t timestamp);
/**
* Send blob update. \n
* Get data and metadata about lamps
*/
QStatus SendBlobUpdate(ajn::SessionId session, LSFBlobType type, std::string blob, uint32_t checksum, uint64_t timestamp);
/**
* send blob update. \n
* Send data and metadata about lamps
*/
QStatus SendBlobUpdate(LSFBlobType type, std::string blob, uint32_t checksum, uint64_t timestamp);
/**
* On session member removed
*/
void OnSessionMemberRemoved(SessionId sessionId, const char* uniqueName);
/**
* Run thread
*/
void Run(void);
/**
* Alarm triggered callback
*/
void AlarmTriggered(void);
/**
* Get my rank
*/
Rank& GetRank(void) {
return myRank;
}
void Connected(void);
void Disconnected(void);
uint32_t GetLeaderElectionAndStateSyncInterfaceVersion(void);
private:
/**
* Clear the state of the LeaderElectionObject
*/
void ClearState(void);
struct Synchronization {
volatile int32_t numWaiting;
};
void GetChecksumAndModificationTimestamp(const ajn::InterfaceDescription::Member* member, ajn::Message& msg);
void OnGetChecksumAndModificationTimestampReply(ajn::Message& message, void* context);
void Overthrow(const ajn::InterfaceDescription::Member* member, ajn::Message& msg);
void OnOverthrowReply(ajn::Message& message, void* context);
void GetBlob(const ajn::InterfaceDescription::Member* member, ajn::Message& msg);
void OnGetBlobReply(ajn::Message& message, void* context);
void OnBlobChanged(const ajn::InterfaceDescription::Member* member, const char* sourcePath, ajn::Message& msg);
ControllerService& controller;
BusAttachment& bus;
class Handler;
Handler* handler;
// everything below is related to leader election
struct ControllerEntry {
public:
ajn::SessionPort port;
qcc::String busName;
qcc::String deviceId;
Rank rank;
bool isLeader;
uint64_t announcementTimestamp;
void Clear() {
busName = "";
deviceId = "";
rank = Rank();
isLeader = false;
port = 0;
announcementTimestamp = 0;
}
};
void OnSessionLost(SessionId sessionId);
void OnSessionJoined(QStatus status, SessionId sessionId, void* context);
typedef std::list<ajn::Message> OverThrowList;
typedef std::map<Rank, ControllerEntry> ControllersMap;
typedef std::map<Rank, std::pair<ControllerEntry, uint32_t> > SuccessfulJoinSessionReplies;
typedef std::list<ControllerEntry> FailedJoinSessionReplies;
typedef std::list<uint32_t> SessionLostList;
typedef std::map<uint32_t, const char*> SessionMemberRemovedMap;
typedef struct _CurrentLeader {
ControllerEntry controllerDetails;
ajn::ProxyBusObject proxyObj;
void Clear(void) {
controllerDetails.Clear();
proxyObj = ProxyBusObject();
}
} CurrentLeader;
Mutex currentLeaderMutex;
CurrentLeader currentLeader;
Mutex failedJoinSessionMutex;
FailedJoinSessionReplies failedJoinSessions;
Mutex sessionAlreadyJoinedRepliesMutex;
FailedJoinSessionReplies sessionAlreadyJoinedReplies;
Mutex successfulJoinSessionMutex;
SuccessfulJoinSessionReplies successfulJoinSessions;
Mutex sessionLostMutex;
SessionLostList sessionLostList;
Mutex sessionMemberRemovedMutex;
SessionMemberRemovedMap sessionMemberRemoved;
Mutex controllersMapMutex;
ControllersMap controllersMap;
Mutex overThrowListMutex;
OverThrowList overThrowList;
Rank myRank;
Mutex connectionStateMutex;
volatile sig_atomic_t isRunning;
const ajn::InterfaceDescription::Member* blobChangedSignal;
LSFSemaphore wakeSem;
Mutex electionAlarmMutex;
Alarm electionAlarm;
volatile sig_atomic_t alarmTriggered;
volatile sig_atomic_t isLeader;
volatile sig_atomic_t startElection;
volatile sig_atomic_t okToSetAlarm;
volatile sig_atomic_t gotOverthrowReply;
Mutex outGoingLeaderMutex;
ControllerEntry outGoingLeader;
Mutex upComingLeaderMutex;
ControllerEntry upComingLeader;
};
OPTIONAL_NAMESPACE_CLOSE
} //lsf
#endif |
677d76c90372cd5601c46b0fe456eaa2d3b6ebc7 | 51adbb4dadd4279f6a0172432c40314b0e5aa0fe | /mnn/efficientnet.cc | 3cd0df7df93bf1c5b9222f5fee98a3dca776d30f | [] | no_license | upupchai/deep-deploy | 3b07293016ed4461b2f640adf992b326455abc54 | f5e6561d5d57c31b7c808a9fe20c16a35c397a89 | refs/heads/main | 2023-07-08T09:00:34.315375 | 2021-08-15T05:22:45 | 2021-08-15T05:22:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,809 | cc | efficientnet.cc | #include <MNN/Interpreter.hpp>
#include <algorithm>
#include <iostream>
#include <opencv2/opencv.hpp>
#include <utility>
#include <vector>
using namespace MNN;
int main(int argc, char const *argv[]) {
std::shared_ptr<Interpreter> net(Interpreter::createFromFile(argv[1]));
ScheduleConfig config;
config.type = MNN_FORWARD_AUTO;
auto session = net->createSession(config);
auto input = net->getSessionInput(session, NULL);
auto output = net->getSessionOutput(session, NULL);
int width = input->width();
int height = input->height();
int channel = input->channel();
int size = width * height;
cv::Mat img = cv::imread(argv[2]);
cv::resize(img, img, cv::Size(width, height));
cv::cvtColor(img, img, cv::COLOR_BGR2RGB);
auto nchwTensor = new Tensor(input, Tensor::CAFFE);
float mean[] = {0.485 * 255, 0.456 * 255, 0.406 * 255};
float stddev[] = {0.229 * 255, 0.224 * 255, 0.225 * 255};
// convert nhwc layout to nchw
for (size_t i = 0; i < channel; i++) {
for (size_t j = 0; j < size; j++) {
float value = *(img.data + j * channel + i);
nchwTensor->host<float>()[size * i + j] = (value - mean[i]) / stddev[i];
}
}
input->copyFromHostTensor(nchwTensor);
net->runSession(session);
std::vector<std::pair<int, float>> label;
auto values = output->host<float>();
int offset = 1;
for (int i = 0; i < output->elementSize(); ++i) {
label.push_back(std::make_pair(i + offset, values[i]));
}
std::sort(label.begin(), label.end(),
[](std::pair<int, float> &a, std::pair<int, float> &b) {
return a.second > b.second;
});
int topk = 5;
for (size_t i = 0; i < topk; i++) {
std::cout << "class: " << label[i].first << " prob: " << label[i].second
<< std::endl;
}
return 0;
}
|
531ebf2a74149cfa759936844af6559b810eb7d9 | 71f92df47b45c14291c325c333b86ed0be7d6c33 | /NodoCola.h | 9c6e4673820a4f0ccafb2fba9cdb5286f00b4aca | [] | no_license | JBastian29/EDD_SmartClass_201905711 | 4bfcafe0a8ee1ab2873cc8496b66b31686d52b51 | 37952cf3fa9f8873557b7c09a720b856a22a83a5 | refs/heads/main | 2023-07-18T18:35:43.146964 | 2021-08-24T09:42:17 | 2021-08-24T09:42:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 507 | h | NodoCola.h | #include <iostream>
#include <string>
using namespace std;
class NodoCola{
private:
int idError;
string tipo;
string descripcion;
NodoCola *siguiente;
public:
NodoCola(int _idError, string _tipo, string _descripcion);
int getIdError();
string getTipo();
string getDescripcion();
NodoCola *getSiguiente();
void setIdError(int _idError);
void setTipo(string _tipo);
void setDescripcion(string _descripcion);
void setSiguiente(NodoCola *_siguiente);
};
|
9cd1a9083bb0f6ffe3595d09347e5c82ac6d4dd7 | 0b9d327024f8c1dcb3ce729275d89a4e1a959ef9 | /source/core/resource/ResList.cpp | d3fff56aa58a6898b744456e2178c820c903fcb3 | [
"MIT"
] | permissive | Johnny-Martin/Gear | 38cd7b52418253ff4ccae2978d05253d12b9cf4c | 2c5cf5c10c700e3ee7f89011c9a2ec4851d4d9e3 | refs/heads/master | 2021-01-01T17:19:41.353515 | 2018-04-03T13:12:19 | 2018-04-03T13:12:19 | 98,049,785 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,076 | cpp | ResList.cpp | #include "stdafx.h"
#include "ResList.h"
#include "ResManager.h"
using namespace Gear::Res;
ResList::ResList()
:m_hCount(1)
,m_vCount(1)
,m_subPicWidth(0)
,m_subPicHeight(0)
,m_subPicType(RES_IMAGE)
{
InitAttrMap();
InitAttrValuePatternMap();
InitAttrValueParserMap();
}
void ResList::InitAttrMap()
{
ADD_ATTR("file", "")
ADD_ATTR("type", "image")
ADD_ATTR("hcount", "1")
ADD_ATTR("vcount", "1")
//ADD_ATTR("split", "0")//List中的各个图片单元之间的分割用的是127,0,127
}
void ResList::InitAttrValuePatternMap()
{
ADD_ATTR_PATTERN("hcount", R_CHECK_INT)
ADD_ATTR_PATTERN("vcount", R_CHECK_INT)
//ADD_ATTR_PATTERN("split", R_CHECK_BOOL)
}
void ResList::InitAttrValueParserMap()
{
}
ResList::~ResList()
{
//ResList析构时,无需析构,m_subPicVec里面的对象(由ResManager析构)
}
//非默认构造函数,没必要调用InitAttrMap()?
ResList::ResList(const string& strListDesc, const wstring& wstrPath)
:m_hCount(1)
, m_vCount(1)
, m_subPicWidth(0)
, m_subPicHeight(0)
, m_subPicType(RES_IMAGE)
{
//从strListDesc(也就是ID)中解析出list的一些必要属性(ResList对象需要知道子图的类型、数量)
//"#imagelist.1x4.button.bkg.2
vector<string> vec = Split(strListDesc, ".");
if (vec.size() < 2) {
ERR("ResList constructor error: illegal resource name:{}", strListDesc);
return;
}
string size = vec[1];
vector<string> sizeVec = Split(vec[1], "x");
if (sizeVec.size() != 1 && sizeVec.size() != 2) {
ERR("ResList constructor error: illegal resource size description:{}", strListDesc);
return;
}
if (sizeVec.size() == 1){
m_hCount = atoi(sizeVec[0].c_str());
m_vCount = 1;
}else {
m_vCount = atoi(sizeVec[0].c_str());
m_hCount = atoi(sizeVec[1].c_str());
}
if (strListDesc.find("imagelist.") == 0 || strListDesc.find("#imagelist.") == 0){
m_subPicType = RES_IMAGE;
} else if (strListDesc.find("texturelist.") == 0 || strListDesc.find("#texturelist.") == 0) {
m_subPicType = RES_TEXTURE;
} else {
ERR("ResList error: can not parse resource type from strListDesc:{}", strListDesc);
return;
}
m_wstrFilePath = wstrPath;
if (m_wstrFilePath.empty()) {
ERR("Create ResImage failed! cannot find image file");
return;
}
}
ResList::ResList(const wstring& wstrPath)
:m_hCount(1)
, m_vCount(1)
, m_subPicWidth(0)
, m_subPicHeight(0)
, m_subPicType(RES_IMAGE)
{
m_wstrFilePath = wstrPath;
}
png_uint_32 ResList::LoadAllSubPictures()
{
if (m_pngWidth == 0) {
auto ret = ReadPngFile(m_wstrFilePath);
if (!ret) { return 0; }
}
ATLASSERT(m_hCount > 0 && m_vCount > 0);
m_subPicWidth = m_pngWidth / m_hCount;
m_subPicHeight = m_pngHeight / m_vCount;
ATLASSERT(m_subPicWidth > 0 && m_subPicHeight > 0);
//使用内存块创建ResImage 和 ResTexture
for (int i=0; i<m_hCount*m_vCount; ++i){
//分配空间
png_bytep* rowPointers = AllocPngDataMem(m_subPicWidth, m_subPicHeight, m_colorChannels);
//拷贝数据
int subPicRowPos = i / m_hCount;
int subPicColPos = i % m_hCount;
png_uint_32 fatherRowSize = png_get_rowbytes(m_pngStructPtr, m_pngInfoPtr);
for (png_uint_32 row = 0; row < m_subPicHeight; ++row) {
//int fatherRow = subPicRowPos * m_subPicHeight + row;
for (png_uint_32 col = 0; col < m_subPicWidth * m_colorChannels; ++col) {
//int fatherCol = subPicColPos * m_subPicWidth * m_colorChannels + col;
rowPointers[row][col] = m_rowPointers[subPicRowPos * m_subPicHeight + row][subPicColPos * m_subPicWidth * m_colorChannels + col];
}
}
//使用内存块创建对象
if (m_subPicType == RES_IMAGE) {
ResPicture* picObjPtr = new ResImage(rowPointers, m_subPicWidth, m_subPicHeight, m_colorType, m_colorChannels, m_bitDepth);
m_subPicVec.push_back(picObjPtr);
} else if (m_subPicType == RES_TEXTURE){
} else {
ERR("ResList::LoadAllSubPictures error: illegal Resource type!");
free(rowPointers[0]);
free(rowPointers);
rowPointers = nullptr;
return 0;
}
}
//ResList析构时,~ResPicture会销毁m_rowPointers[0]以及m_rowPointers
return m_hCount*m_vCount;
}
ResPicture* ResList::GetSubPicObjByIndex(unsigned int posIndex)
{
unsigned int count = m_hCount*m_vCount;
if (posIndex >= m_subPicVec.size()){
ERR("GetSubPicObjByIndex error: illegal posIndex:{}, m_subPicVec.size: {}", posIndex, m_subPicVec.size());
return nullptr;
}
return m_subPicVec[posIndex];
}
//ResList无需获取整个图像,故GetD2D1Bitmap与GetGDIBitmap无需实现
///////////////////////////////////////Direct2D渲染模式相关代码///////////////////////////////////
#ifdef USE_D2D_RENDER_MODE
ID2D1Bitmap* ResList::GetD2D1Bitmap(ID2D1RenderTarget* pRenderTarget, unsigned int width, unsigned int height, unsigned int& retWidth, unsigned int& retHeight)
{
ATLASSERT(FALSE);
return nullptr;
}
/////////////////////////////////////////GDI+渲染模式相关代码/////////////////////////////////////
#else
Gdiplus::Bitmap* ResList::GetGDIBitmap(unsigned int width, unsigned int height, unsigned int& retWidth, unsigned int& retHeight)
{
ATLASSERT(FALSE);
return nullptr;
}
#endif |
355e95918b1bfd6ef642bd5b218bc4f769e1f0a2 | b4e1bdfa39b1261798cfc5e12a900da4e7bbb2c3 | /Source Code/Platform/Video/RenderBackend/OpenGL/Buffers/glBufferImpl.cpp | 4ca432edf2282cc2a02bdb7d8984ba3788a3bd07 | [
"MIT"
] | permissive | wangscript007/Divide-Framework | 720b8ccff4b417c1d5f905675b3526745f0085c7 | c8c8faa2e78ac0e13131e382dff926475a3032df | refs/heads/master | 2022-12-11T15:58:00.538735 | 2020-09-03T18:43:00 | 2020-09-03T18:43:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,023 | cpp | glBufferImpl.cpp | #include "stdafx.h"
#include "Headers/glBufferImpl.h"
#include "Headers/glBufferLockManager.h"
#include "Headers/glMemoryManager.h"
#include "Platform/Video/Headers/GFXDevice.h"
#include "Platform/Video/RenderBackend/OpenGL/Headers/GLWrapper.h"
namespace Divide {
namespace {
constexpr bool g_issueMemBarrierForCoherentBuffers = false;
constexpr size_t g_persistentMapSizeThreshold = 512 * 1024; //512Kb
struct BindConfigEntry {
U32 _handle = 0;
size_t _offset = 0;
size_t _range = 0;
};
using BindConfig = std::array<BindConfigEntry, to_base(ShaderBufferLocation::COUNT)>;
BindConfig g_currentBindConfig;
bool setIfDifferentBindRange(const U32 UBOid,
const U32 bindIndex,
const size_t offsetInBytes,
const size_t rangeInBytes) noexcept {
BindConfigEntry& crtConfig = g_currentBindConfig[bindIndex];
if (crtConfig._handle != UBOid ||
crtConfig._offset != offsetInBytes ||
crtConfig._range != rangeInBytes)
{
crtConfig = { UBOid, offsetInBytes, rangeInBytes };
return true;
}
return false;
}
};
glBufferImpl::glBufferImpl(GFXDevice& context, const BufferImplParams& params)
: glObject(glObjectType::TYPE_BUFFER, context),
GUIDWrapper(),
_context(context),
_elementSize(params._elementSize),
_alignedSize(params._dataSize),
_target(params._target),
_unsynced(params._unsynced),
_useExplicitFlush(_target == GL_ATOMIC_COUNTER_BUFFER ? false : params._explicitFlush),
_updateFrequency(params._frequency),
_updateUsage(params._updateUsage)
{
if (_target == GL_ATOMIC_COUNTER_BUFFER) {
_usage = GL_STREAM_READ;
} else {
_usage = GetBufferUsage(_updateFrequency, _updateUsage);
}
bool usePersistentMapping = false;
if (params._storageType == BufferStorageType::IMMUTABLE) {
usePersistentMapping = true;
} else if (params._storageType == BufferStorageType::AUTO) {
usePersistentMapping = _alignedSize > g_persistentMapSizeThreshold; // Driver might be faster?
}
// Why do we need to map it?
if (_updateFrequency == BufferUpdateFrequency::ONCE || _updateUsage == BufferUpdateUsage::GPU_R_GPU_W) {
usePersistentMapping = false;
}
if (!usePersistentMapping) {
GLUtil::createAndAllocBuffer(_alignedSize, _usage, _handle, params._initialData, params._name);
} else {
BufferStorageMask storageMask = GL_MAP_PERSISTENT_BIT;
MapBufferAccessMask accessMask = GL_MAP_PERSISTENT_BIT;
switch (_updateFrequency) {
case BufferUpdateFrequency::ONCE:{
storageMask |= GL_MAP_READ_BIT;
accessMask |= GL_MAP_READ_BIT;
} break;
case BufferUpdateFrequency::OCASSIONAL:
case BufferUpdateFrequency::OFTEN: {
storageMask |= GL_MAP_WRITE_BIT;
accessMask |= GL_MAP_WRITE_BIT;
if (_useExplicitFlush) {
accessMask |= GL_MAP_FLUSH_EXPLICIT_BIT;
} else {
storageMask |= GL_MAP_COHERENT_BIT;
accessMask |= GL_MAP_COHERENT_BIT;
}
} break;
case BufferUpdateFrequency::COUNT: {
DIVIDE_UNEXPECTED_CALL("Unknown buffer update frequency!");
} break;
};
_mappedBuffer = (Byte*)GLUtil::createAndAllocPersistentBuffer(_alignedSize, storageMask, accessMask, _handle, params._initialData, params._name);
assert(_mappedBuffer != nullptr && "PersistentBuffer::Create error: Can't mapped persistent buffer!");
}
if (_mappedBuffer != nullptr && !_unsynced) {
_lockManager = MemoryManager_NEW glBufferLockManager();
}
}
glBufferImpl::~glBufferImpl()
{
if (_handle > 0) {
(void)waitRange(0, _alignedSize, false);
if (_mappedBuffer == nullptr) {
glInvalidateBufferData(_handle);
}
GLUtil::freeBuffer(_handle, _mappedBuffer);
}
MemoryManager::SAFE_DELETE(_lockManager);
}
bool glBufferImpl::waitRange(const size_t offsetInBytes, const size_t rangeInBytes, const bool blockClient) const {
OPTICK_EVENT();
if (_lockManager) {
return _lockManager->WaitForLockedRange(offsetInBytes, rangeInBytes, blockClient);
}
return true;
}
void glBufferImpl::lockRange(const size_t offsetInBytes, const size_t rangeInBytes, const U32 frameID) const {
if (_lockManager) {
_lockManager->LockRange(offsetInBytes, rangeInBytes, frameID);
}
}
GLuint glBufferImpl::bufferID() const noexcept {
return _handle;
}
bool glBufferImpl::bindRange(const GLuint bindIndex, const size_t offsetInBytes, const size_t rangeInBytes) const {
assert(_handle != 0 && "BufferImpl error: Tried to bind an uninitialized UBO");
bool bound = false;
if (bindIndex == to_base(ShaderBufferLocation::CMD_BUFFER)) {
GLStateTracker& stateTracker = GL_API::getStateTracker();
const GLuint newOffset = static_cast<GLuint>(offsetInBytes / sizeof(IndirectDrawCommand));
bound = stateTracker.setActiveBuffer(GL_DRAW_INDIRECT_BUFFER, _handle);
if (stateTracker._commandBufferOffset != newOffset) {
stateTracker._commandBufferOffset = newOffset;
bound = true;
}
} else if (setIfDifferentBindRange(_handle, bindIndex, offsetInBytes, rangeInBytes)) {
glBindBufferRange(_target, bindIndex, _handle, offsetInBytes, rangeInBytes);
bound = true;
}
return bound;
}
void glBufferImpl::writeData(const size_t offsetInBytes, const size_t rangeInBytes, const Byte* data) const {
constexpr bool USE_BUFFER_ORPHANING = true;
OPTICK_EVENT();
OPTICK_TAG("Mapped", static_cast<bool>(_mappedBuffer != nullptr));
OPTICK_TAG("Offset", to_U32(offsetInBytes));
OPTICK_TAG("Range", to_U32(rangeInBytes));
const bool waitOK = waitRange(offsetInBytes, rangeInBytes, true);
invalidateData(offsetInBytes, rangeInBytes);
if (_mappedBuffer) {
if (waitOK) {
const bufferPtr dest = _mappedBuffer + offsetInBytes;
std::memcpy(dest, data, rangeInBytes);
if (_useExplicitFlush) {
glFlushMappedNamedBufferRange(_handle, offsetInBytes, rangeInBytes);
} else if (g_issueMemBarrierForCoherentBuffers) {
glMemoryBarrier(GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT);
}
} else {
DIVIDE_UNEXPECTED_CALL();
}
} else {
if (USE_BUFFER_ORPHANING && offsetInBytes == 0 && rangeInBytes == _alignedSize) {
glNamedBufferData(_handle, _alignedSize, data, _usage);
} else {
glNamedBufferSubData(_handle, offsetInBytes, rangeInBytes, data);
}
}
}
void glBufferImpl::readData(const size_t offsetInBytes, const size_t rangeInBytes, Byte* data) const {
if (_target == GL_ATOMIC_COUNTER_BUFFER) {
glMemoryBarrier(MemoryBarrierMask::GL_ATOMIC_COUNTER_BARRIER_BIT);
}
const bool waitOK = waitRange(offsetInBytes, rangeInBytes, true);
if (_mappedBuffer != nullptr) {
if (waitOK) {
if (_target != GL_ATOMIC_COUNTER_BUFFER) {
glMemoryBarrier(GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT);
}
const Byte* src = ((Byte*)(_mappedBuffer)+offsetInBytes);
std::memcpy(data, src, rangeInBytes);
} else {
DIVIDE_UNEXPECTED_CALL();
}
} else {
void* bufferData = glMapNamedBufferRange(_handle, offsetInBytes, rangeInBytes, MapBufferAccessMask::GL_MAP_READ_BIT);
if (bufferData != nullptr) {
std::memcpy(data, ((Byte*)(bufferData)+offsetInBytes), rangeInBytes);
}
glUnmapNamedBuffer(_handle);
}
}
void glBufferImpl::invalidateData(const size_t offsetInBytes, const size_t rangeInBytes) const {
OPTICK_EVENT();
if (_mappedBuffer != nullptr) {
return;
}
if (offsetInBytes == 0 && rangeInBytes == _alignedSize) {
glInvalidateBufferData(_handle);
} else {
glInvalidateBufferSubData(_handle, offsetInBytes, rangeInBytes);
}
}
void glBufferImpl::zeroMem(const size_t offsetInBytes, const size_t rangeInBytes) const {
const vectorEASTL<Byte> newData(rangeInBytes, Byte{ 0 });
writeData(offsetInBytes, rangeInBytes, newData.data());
}
size_t glBufferImpl::elementSize() const noexcept {
return _elementSize;
}
GLenum glBufferImpl::GetBufferUsage(const BufferUpdateFrequency frequency, const BufferUpdateUsage usage) noexcept {
switch (frequency) {
case BufferUpdateFrequency::ONCE:
switch (usage) {
case BufferUpdateUsage::CPU_W_GPU_R: return GL_STATIC_DRAW;
case BufferUpdateUsage::CPU_R_GPU_W: return GL_STATIC_READ;
case BufferUpdateUsage::GPU_R_GPU_W: return GL_STATIC_COPY;
default: break;
};
break;
case BufferUpdateFrequency::OCASSIONAL:
switch (usage) {
case BufferUpdateUsage::CPU_W_GPU_R: return GL_DYNAMIC_DRAW;
case BufferUpdateUsage::CPU_R_GPU_W: return GL_DYNAMIC_READ;
case BufferUpdateUsage::GPU_R_GPU_W: return GL_DYNAMIC_COPY;
default: break;
};
break;
case BufferUpdateFrequency::OFTEN:
switch (usage) {
case BufferUpdateUsage::CPU_W_GPU_R: return GL_STREAM_DRAW;
case BufferUpdateUsage::CPU_R_GPU_W: return GL_STREAM_READ;
case BufferUpdateUsage::GPU_R_GPU_W: return GL_STREAM_COPY;
default: break;
};
break;
default: break;
};
DIVIDE_UNEXPECTED_CALL();
return GL_NONE;
}
}; //namespace Divide |
b213cceec10a0e8e4da0580542d1cc83b55a63f7 | 258732816a048733cc1baca3b5f79241ef0a02c1 | /hash/sha256.h | c166e8f8ab5016687a094765fcb1bf7c4488c4ed | [] | no_license | romangol/cryptoBoost | 160fd41ddd9249c0a5a53156d5af3d597e89238c | 506aa16de46f22bb61abd0409ebf0929e77da173 | refs/heads/master | 2020-05-29T08:53:17.701025 | 2017-05-08T14:07:59 | 2017-05-08T14:07:59 | 70,032,768 | 14 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,202 | h | sha256.h | #ifndef _CRYPTO_BOOST_SHA256_H_
#define _CRYPTO_BOOST_SHA256_H_
#include <cstdint>
const static size_t SHA256_DIGEST_LENGTH = 32;
const static size_t SHA256_BLOCK_SIZE = 64;
const static size_t SHA256_HMAC_SIZE = 32;
#ifdef __cplusplus
extern "C" {
#endif
struct SHA256_ctx
{
uint8_t data[64];
size_t datalen;
unsigned long long bitlen;
uint32_t state[8];
} ;
struct SHA256_hmac_ctx
{
SHA256_ctx SHA256_ctx;
uint8_t key[SHA256_DIGEST_LENGTH];
};
void sha256_init (SHA256_ctx & ctx);
void sha256_update (SHA256_ctx & ctx, const uint8_t * data, size_t data_len);
void sha256_final (SHA256_ctx & ctx, uint8_t digest[SHA256_DIGEST_LENGTH]);
void sha256 (const uint8_t * data, size_t datalen, uint8_t digest[SHA256_DIGEST_LENGTH]);
void sha256_hmac_init (SHA256_hmac_ctx & ctx, const uint8_t *key, size_t key_len);
void sha256_hmac_update (SHA256_hmac_ctx & ctx, const uint8_t *data, size_t data_len);
void sha256_hmac_final (SHA256_hmac_ctx & ctx, uint8_t mac[SHA256_HMAC_SIZE]);
void sha256_hmac (const uint8_t & data, size_t data_len, const uint8_t *key, size_t key_len, uint8_t mac[SHA256_HMAC_SIZE]);
#ifdef __cplusplus
}
#endif
#endif // end of _CRYPTO_BOOST_SHA256_H_
|
28ad4108a9940d18a84602a27bec9b6c150dbd31 | 40651ce673d2366194f7fc1fdfbe20296cb2b32c | /include/LuxeTestGenerator.hh | 99c09a553a7b37e4a9267ffff6744d91f87233de | [] | no_license | shedprog/Luxe_LuCaS | 847b55d64c6ac68182fd8ae940765a7b1e1dda0c | d9537fb4dd0f93ed512b0d7b427a40a47e6e1fcc | refs/heads/master | 2022-11-19T08:35:23.199005 | 2019-07-25T16:49:40 | 2019-07-25T16:49:40 | 198,591,583 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,934 | hh | LuxeTestGenerator.hh |
#ifndef __LUXETESTGENERATOR_H
#define __LUXETESTGENERATOR_H
#include <fstream>
#include <string>
#include <vector>
class FileData; // Described heareafter
class LuxeTestGenerator {
public:
/// Constructor
// LuxeTestGenerator (Laser &laser_, BaseEBeam &ebeam, int rndseed_);
LuxeTestGenerator ();
/// Destructor
~LuxeTestGenerator ();
/// do it
void AddEventFile (const std::string fname);
void SetFileType (const std::string ftype, const int n_col = 17, const int n_skip = 0);
void SetFileList(const std::vector<std::string> fnlist);
void SetFileList(const std::string fnamelist);
int GetEventFromFile (std::vector < std::vector <double> > &ptcls);
protected:
int ProcessList(const std::string &fnamelist, std::vector<std::string> &flist);
protected:
FileData *datf;
};
class FileData
{
public:
FileData();
FileData(const std::string fname);
FileData(const std::vector<std::string> &fnamelist);
virtual ~FileData();
void AddFile(const std::string fname);
void SetNColumns (const int n) { n_columns = n; }
void SetSkipLines (const int n) { skip_lines = n; }
void SetDebug (const int n) { debugl = n; }
int GetNColumns () const { return n_columns; }
int GetData(std::vector < std::vector <double> > &particles);
void ListFiles(void) const;
std::string GetCurrentFileName(void) const { return fcname; }
int SetFileType(std::string ftype);
protected:
int ReadRecord(std::vector < std::vector <double> > &particles);
int ReadRecordOut(std::vector < std::vector <double> > &particles);
protected:
std::vector<std::string> fname_list;
std::string fcname;
std::fstream fdata;
int fid;
int n_columns, skip_lines;
int (FileData::*freadfn)(std::vector < std::vector <double> > &particles);
int debugl;
};
#endif //
|
240d1e8d23afa264c7d1797bd3bb767537ec50d6 | a71785c71eef6acb0afb76b2b0990f9e89f00585 | /Codes/Sort/QuickSort/main.cpp | 1edc3e6e21258952a0746488b9d2cbf2eb93c74a | [] | no_license | chichuyun/Algorithm | c0e980e2eb6d53f9830c62044ebea94431ea22e0 | 8ae69df3af5214b3019156b3ca6e3ee09d1cea86 | refs/heads/master | 2023-04-08T11:01:17.841373 | 2023-04-05T15:19:03 | 2023-04-05T15:19:03 | 154,915,602 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,071 | cpp | main.cpp | #include<iostream>
#include<vector>
#include<utility>
using namespace std;
typedef vector<int> vecInt;
void quicksort(vecInt &, int, int);
int partition(vecInt &, int, int);
int main() {
vecInt lst;
int in, num;
cout<<"num: "<<endl;
cin>>num;
cout<<"Input nums: "<<num<<endl;
for(int i=0;i<num;++i) {
cin>>in;
lst.push_back(in);
}
cout<<"Raw array: "<<endl;
for(int i=0;i<lst.size();++i)
cout<<lst[i]<<" ";
cout<<endl;
quicksort(lst,0,lst.size()-1);
cout<<"Sored array: "<<endl;
for(int i=0;i<lst.size();++i)
cout<<lst[i]<<" ";
cout<<endl;
}
void quicksort(vecInt &lst, int l, int r) {
if(l>=r) return;
int m = partition(lst, l, r);
quicksort(lst,l,m-1);
quicksort(lst,m+1,r);
}
int partition(vecInt &lst, int l, int r) {
int v;
int i = l, j = r;
v = lst[l];
while(true) {
while(i<r && lst[i]<=v) ++i;
while(j>l && lst[j]>v) --j;
if(i<j) swap(lst[i],lst[j]); else break;
}
swap(lst[l],lst[j]);
return j;
}
|
49d06033efadc22ea854df26e3674db6bcfbb6ff | 58fd0915273596dcf9156cc7d61b6c3f7614e26c | /tools/IGL/DiskCutter.cpp | 646cf6e0b3b98043ca5d46b4f9385c374cf9ebdd | [] | no_license | AwesomeGeometricAlgorithm/PyMesh | 6d7a04e49aa8d0771114c4c05cd70e6f83d66fd7 | d5b06cfc1ad86973c3ba77049da52a37187a5680 | refs/heads/master | 2022-01-05T12:12:53.778848 | 2019-04-19T21:25:57 | 2019-04-19T21:25:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 874 | cpp | DiskCutter.cpp | /* This file is part of PyMesh. Copyright (c) 2019 by Qingnan Zhou */
#ifdef WITH_IGL
#include "DiskCutter.h"
#include <igl/cut_to_disk.h>
#include <vector>
#include <Math/MatrixUtils.h>
#include <MeshFactory.h>
#include <MeshUtils/MeshCutter.h>
using namespace PyMesh;
void DiskCutter::run() {
std::vector<std::vector<int>> cuts;
igl::cut_to_disk(m_faces, cuts);
MatrixIr voxels(0, 4);
Mesh::Ptr mesh = MeshFactory().load_matrices(m_vertices, m_faces, voxels).create();
MeshCutter cutter(mesh);
Mesh::Ptr cut_mesh = cutter.cut_along_edges(cuts);
m_out_vertices = MatrixUtils::reshape<MatrixFr>(cut_mesh->get_vertices(),
cut_mesh->get_num_vertices(), cut_mesh->get_dim());
m_out_faces = MatrixUtils::reshape<MatrixIr>(cut_mesh->get_faces(),
cut_mesh->get_num_faces(), cut_mesh->get_vertex_per_face());
}
#endif
|
c0bb521ceb4ea2b834998c1c38b47496a1175f1d | 1636e263470286f72a659bc25f39027c6923b8b1 | /tags/1.21/windows/ClientsPage.cpp | 314c331921fe9956ad55ac0dca118727624a9988 | [] | no_license | BackupTheBerlios/rsxplusplus-svn | 62e87121306dbbf055248ac7b97995d83cca09f9 | d50d613b085bd2ab958b0cdc884bcb6a8aacbf39 | refs/heads/master | 2020-04-20T18:05:23.244919 | 2012-02-08T23:13:04 | 2012-02-08T23:13:04 | 40,820,934 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,951 | cpp | ClientsPage.cpp |
#include "stdafx.h"
#include "../client/DCPlusPlus.h"
#include "../client/SettingsManager.h"
#include "Resource.h"
#include "ClientsPage.h"
#include "DetectionEntryDlg.h"
#include "ChangeRawCheatDlg.h"
PropPage::TextItem ClientsPage::texts[] = {
{ IDC_MOVE_CLIENT_UP, ResourceManager::MOVE_UP },
{ IDC_MOVE_CLIENT_DOWN, ResourceManager::MOVE_DOWN },
{ IDC_ADD_CLIENT, ResourceManager::ADD },
{ IDC_CHANGE_CLIENT, ResourceManager::SETTINGS_CHANGE },
{ IDC_REMOVE_CLIENT, ResourceManager::REMOVE },
{ 0, ResourceManager::SETTINGS_AUTO_AWAY }
};
LRESULT ClientsPage::onInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
PropPage::translate((HWND)(*this), texts);
CRect rc;
ctrlProfiles.Attach(GetDlgItem(IDC_CLIENT_ITEMS));
ctrlProfiles.GetClientRect(rc);
ctrlProfiles.InsertColumn(0, CTSTRING(SETTINGS_NAME), LVCFMT_LEFT, rc.Width() / 3, 0);
ctrlProfiles.InsertColumn(1, CTSTRING(COMMENT), LVCFMT_LEFT, rc.Width() / 2 - 18, 1);
ctrlProfiles.InsertColumn(2, CTSTRING(ACTION), LVCFMT_LEFT, rc.Width() / 6, 0);
ctrlProfiles.SetExtendedListViewStyle(LVS_EX_INFOTIP | LVS_EX_FULLROWSELECT | LVS_EX_DOUBLEBUFFER);
// Do specialized reading here
const DetectionManager::DetectionItems& lst = DetectionManager::getInstance()->getProfiles(isUserInfo);
for(DetectionManager::DetectionItems::const_iterator i = lst.begin(); i != lst.end(); ++i) {
const DetectionEntry& de = *i;
addEntry(de, ctrlProfiles.GetItemCount());
}
SetDlgItemText(IDC_PROFILE_COUNT, Text::toT(STRING(PROFILE_COUNT) + ": " + Util::toString(ctrlProfiles.GetItemCount())).c_str());
SetDlgItemText(IDC_PROFILE_VERSION, Text::toT(STRING(PROFILE_VERSION) + ": " + DetectionManager::getInstance()->getProfileVersion()).c_str());
SetDlgItemText(IDC_PROFILE_MESSAGE, Text::toT(STRING(PROFILE_MESSAGE) + ": " + DetectionManager::getInstance()->getProfileMessage()).c_str());
return TRUE;
}
LRESULT ClientsPage::onAddClient(WORD , WORD , HWND , BOOL& ) {
DetectionEntry de;
DetectionEntryDlg dlg(de, isUserInfo);
if(dlg.DoModal() == IDOK) {
addEntry(de, ctrlProfiles.GetItemCount());
SetDlgItemText(IDC_PROFILE_COUNT, Text::toT(STRING(PROFILE_COUNT) + ": " + Util::toString(ctrlProfiles.GetItemCount())).c_str());
}
return 0;
}
LRESULT ClientsPage::onItemchangedDirectories(int /*idCtrl*/, LPNMHDR pnmh, BOOL& /*bHandled*/)
{
NM_LISTVIEW* lv = (NM_LISTVIEW*) pnmh;
::EnableWindow(GetDlgItem(IDC_MOVE_CLIENT_UP), (lv->uNewState & LVIS_FOCUSED));
::EnableWindow(GetDlgItem(IDC_MOVE_CLIENT_DOWN), (lv->uNewState & LVIS_FOCUSED));
::EnableWindow(GetDlgItem(IDC_CHANGE_CLIENT), (lv->uNewState & LVIS_FOCUSED));
::EnableWindow(GetDlgItem(IDC_REMOVE_CLIENT), (lv->uNewState & LVIS_FOCUSED));
return 0;
}
LRESULT ClientsPage::onKeyDown(int /*idCtrl*/, LPNMHDR pnmh, BOOL& bHandled) {
NMLVKEYDOWN* kd = (NMLVKEYDOWN*) pnmh;
switch(kd->wVKey) {
case VK_INSERT:
PostMessage(WM_COMMAND, IDC_ADD_CLIENT, 0);
break;
case VK_DELETE:
PostMessage(WM_COMMAND, IDC_REMOVE_CLIENT, 0);
break;
default:
bHandled = FALSE;
}
return 0;
}
LRESULT ClientsPage::onChangeClient(WORD , WORD , HWND , BOOL& ) {
if(ctrlProfiles.GetSelectedCount() == 1) {
int sel = ctrlProfiles.GetSelectedIndex();
DetectionEntry de;
if(DetectionManager::getInstance()->getDetectionItem(ctrlProfiles.GetItemData(sel), de, isUserInfo)) {
DetectionEntryDlg dlg(de, isUserInfo);
dlg.DoModal();
ctrlProfiles.SetRedraw(FALSE);
ctrlProfiles.DeleteAllItems();
const DetectionManager::DetectionItems& lst = DetectionManager::getInstance()->getProfiles(isUserInfo);
for(DetectionManager::DetectionItems::const_iterator i = lst.begin(); i != lst.end(); ++i) {
addEntry(*i, ctrlProfiles.GetItemCount());
}
ctrlProfiles.SelectItem(sel);
ctrlProfiles.SetRedraw(TRUE);
}
}
return 0;
}
LRESULT ClientsPage::onRemoveClient(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) {
if(ctrlProfiles.GetSelectedCount() == 1) {
int i = ctrlProfiles.GetNextItem(-1, LVNI_SELECTED);
DetectionManager::getInstance()->removeDetectionItem(ctrlProfiles.GetItemData(i), isUserInfo);
ctrlProfiles.DeleteItem(i);
}
return 0;
}
LRESULT ClientsPage::onMoveClientUp(WORD , WORD , HWND , BOOL& ) {
int i = ctrlProfiles.GetSelectedIndex();
if(i != -1 && i != 0) {
int n = ctrlProfiles.GetItemData(i);
DetectionManager::getInstance()->moveDetectionItem(n, -1, isUserInfo);
ctrlProfiles.SetRedraw(FALSE);
ctrlProfiles.DeleteItem(i);
DetectionEntry de;
DetectionManager::getInstance()->getDetectionItem(n, de, isUserInfo);
addEntry(de, i-1);
ctrlProfiles.SelectItem(i-1);
ctrlProfiles.EnsureVisible(i-1, FALSE);
ctrlProfiles.SetRedraw(TRUE);
}
return 0;
}
LRESULT ClientsPage::onMoveClientDown(WORD , WORD , HWND , BOOL& ) {
int i = ctrlProfiles.GetSelectedIndex();
if(i != -1 && i != (ctrlProfiles.GetItemCount()-1) ) {
int n = ctrlProfiles.GetItemData(i);
DetectionManager::getInstance()->moveDetectionItem(n, 1, isUserInfo);
ctrlProfiles.SetRedraw(FALSE);
ctrlProfiles.DeleteItem(i);
DetectionEntry de;
DetectionManager::getInstance()->getDetectionItem(n, de, isUserInfo);
addEntry(de, i+1);
ctrlProfiles.SelectItem(i+1);
ctrlProfiles.EnsureVisible(i+1, FALSE);
ctrlProfiles.SetRedraw(TRUE);
}
return 0;
}
LRESULT ClientsPage::onReload(WORD , WORD , HWND , BOOL& ) {
reload();
return 0;
}
LRESULT ClientsPage::onInfoTip(int /*idCtrl*/, LPNMHDR pnmh, BOOL& /*bHandled*/) {
int item = ctrlProfiles.GetHotItem();
if(item != -1) {
NMLVGETINFOTIP* lpnmtdi = (NMLVGETINFOTIP*) pnmh;
DetectionEntry de;
DetectionManager::getInstance()->getDetectionItem(ctrlProfiles.GetItemData(item), de, isUserInfo);
tstring infoTip = Text::toT(STRING(NAME) + ": " + de.name +
"\r\n" + STRING(COMMENT) + ": " + de.comment +
"\r\n" + STRING(CHEATING_DESCRIPTION) + ": " + de.cheat +
"\r\n" + STRING(ACTION) + ": ") + RawManager::getInstance()->getNameActionId(de.rawToSend);
_tcscpy(lpnmtdi->pszText, infoTip.c_str());
}
return 0;
}
//RSX++
LRESULT ClientsPage::onContextMenu(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/) {
RECT rc; // client area of window
POINT pt = { GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam) }; // location of mouse click
// Get the bounding rectangle of the client area.
if(ctrlProfiles.GetSelectedCount() >= 1) {
ctrlProfiles.GetClientRect(&rc);
ctrlProfiles.ScreenToClient(&pt);
if (PtInRect(&rc, pt))
{
ctrlProfiles.ClientToScreen(&pt);
if(ctrlProfiles.GetSelectedCount() >= 1) {
DetectionEntry de;
int x = ctrlProfiles.GetSelectedIndex();
DetectionManager::getInstance()->getDetectionItem(ctrlProfiles.GetItemData(x), de, isUserInfo);
ChangeRawCheatDlg dlg(de.rawToSend);
dlg.name = de.name;
dlg.cheatingDescription = de.cheat;
dlg.raw = de.rawToSend;
if(dlg.DoModal() == IDOK) {
int i = -1;
while((i = ctrlProfiles.GetNextItem(i, LVNI_SELECTED)) != -1) {
DetectionManager::getInstance()->getDetectionItem(ctrlProfiles.GetItemData(i), de, isUserInfo);
if (i == x) {
de.cheat = dlg.cheatingDescription;
}
de.rawToSend = dlg.raw;
DetectionManager::getInstance()->updateDetectionItem(ctrlProfiles.GetItemData(i), de, isUserInfo);
ctrlProfiles.SetItemText(i, 2, RawManager::getInstance()->getNameActionId(de.rawToSend).c_str());
}
}
}
return TRUE;
}
}
return FALSE;
}
//END
void ClientsPage::reload() {
ctrlProfiles.SetRedraw(FALSE);
ctrlProfiles.DeleteAllItems();
DetectionManager::getInstance()->reload(isUserInfo);
const DetectionManager::DetectionItems& lst = DetectionManager::getInstance()->getProfiles(isUserInfo);
for(DetectionManager::DetectionItems::const_iterator i = lst.begin(); i != lst.end(); ++i) {
const DetectionEntry& de = *i;
addEntry(de, ctrlProfiles.GetItemCount());
}
SetDlgItemText(IDC_PROFILE_COUNT, Text::toT(STRING(PROFILE_COUNT) + ": " + Util::toString(ctrlProfiles.GetItemCount())).c_str());
SetDlgItemText(IDC_PROFILE_VERSION, Text::toT(STRING(PROFILE_VERSION) + ": " + DetectionManager::getInstance()->getProfileVersion()).c_str());
SetDlgItemText(IDC_PROFILE_MESSAGE, Text::toT(STRING(PROFILE_MESSAGE) + ": " + DetectionManager::getInstance()->getProfileMessage()).c_str());
ctrlProfiles.SetRedraw(TRUE);
}
void ClientsPage::addEntry(const DetectionEntry& de, int pos) {
TStringList lst;
lst.push_back(Text::toT(de.name));
lst.push_back(Text::toT(de.comment));
lst.push_back(RawManager::getInstance()->getNameActionId(de.rawToSend));
ctrlProfiles.insert(pos, lst, 0, (LPARAM)de.Id);
}
void ClientsPage::write() {
DetectionManager::getInstance()->save();
}
// iDC++
LRESULT ClientsPage::onCustomDraw(int /*idCtrl*/, LPNMHDR pnmh, BOOL& /*bHandled*/) {
LPNMLVCUSTOMDRAW cd = (LPNMLVCUSTOMDRAW)pnmh;
switch(cd->nmcd.dwDrawStage) {
case CDDS_PREPAINT:
return CDRF_NOTIFYITEMDRAW;
case CDDS_ITEMPREPAINT:
{
try {
DetectionEntry de;
DetectionManager::getInstance()->getDetectionItem(ctrlProfiles.GetItemData(cd->nmcd.dwItemSpec), de, isUserInfo);
if (de.rawToSend) {
cd->clrText = SETTING(BAD_CLIENT_COLOUR);
} else if (!de.cheat.empty()) {
cd->clrText = SETTING(BAD_FILELIST_COLOUR);
}
if(cd->nmcd.dwItemSpec % 2 == 0) {
cd->clrTextBk = RGB(245, 245, 245);
}
return CDRF_NEWFONT | CDRF_NOTIFYSUBITEMDRAW;
}
catch(const Exception&)
{
}
catch(...)
{
}
}
return CDRF_NOTIFYSUBITEMDRAW;
default:
return CDRF_DODEFAULT;
}
}
// iDC++
/**
* @file
* $Id: ClientsPage.cpp 477 2010-01-29 08:59:43Z bigmuscle $
*/
|
91f83366b2290c55a2a5bbb5ab17eb84911f7c91 | a8e6343aefded638b9830e7596b8413822f89a61 | /Depot Rearrangement/main.cpp | d78404f9151457aec61887244e3cf5e783094d5e | [] | no_license | nikolapesic2802/Programming-Practice | ed7c6f9fb79d92b55092f0b36daaade375e9f9bb | bc2a47fadb4af5d50f089c61a0971ec1a831d2d6 | refs/heads/master | 2021-11-29T00:26:37.586714 | 2021-11-16T16:14:50 | 2021-11-16T16:14:50 | 156,237,050 | 5 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,844 | cpp | main.cpp | /*
-https://github.com/mostafa-saad/MyCompetitiveProgramming/tree/master/Olympiad/CEOI/official/2005
*/
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/rope>
#define ll long long
#define pb push_back
#define sz(x) (int)(x).size()
#define mp make_pair
#define f first
#define s second
#define all(x) x.begin(), x.end()
#define D(x) cerr << #x << " is " << (x) << "\n";
using namespace std;
using namespace __gnu_pbds;
using namespace __gnu_cxx;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
template<class T> using ordered_set = tree<T, null_type, less<T>, rb_tree_tag,tree_order_statistics_node_update>; ///find_by_order(),order_of_key()
template<class T1, class T2> ostream& operator<<(ostream& os, const pair<T1,T2>& a) { os << '{' << a.f << ", " << a.s << '}'; return os; }
template<class T> ostream& operator<<(ostream& os, const vector<T>& a){os << '{';for(int i=0;i<sz(a);i++){if(i>0&&i<sz(a))os << ", ";os << a[i];}os<<'}';return os;}
template<class T> ostream& operator<<(ostream& os, const set<T>& a) {os << '{';int i=0;for(auto p:a){if(i>0&&i<sz(a))os << ", ";os << p;i++;}os << '}';return os;}
template<class T> ostream& operator<<(ostream& os, const multiset<T>& a) {os << '{';int i=0;for(auto p:a){if(i>0&&i<sz(a))os << ", ";os << p;i++;}os << '}';return os;}
template<class T1,class T2> ostream& operator<<(ostream& os, const map<T1,T2>& a) {os << '{';int i=0;for(auto p:a){if(i>0&&i<sz(a))os << ", ";os << p;i++;}os << '}';return os;}
const int N=400;
vector<vector<pair<int,int> > > graf(2*N);
vector<int> st(2*N),edges;
void euler(int tr)
{
for(;st[tr]<(int)graf[tr].size();)
{
pair<int,int> p=graf[tr][st[tr]];
st[tr]++;
euler(p.f);
if(p.s!=-1)
edges.pb(p.s);
}
}
int main()
{
int n,m;
scanf("%i %i",&n,&m);
vector<vector<vector<int> > > pos(m,vector<vector<int> >(n));
for(int i=0;i<n;i++)
{
for(int j=0;j<m;j++)
{
int a;
scanf("%i",&a);
a--;
pos[a][i].pb(i*m+j+1);
}
}
for(int i=0;i<m;i++)
{
for(int j=0;j<n;j++)
{
for(int k=1;k<(int)pos[i][j].size();k++)
graf[m+j].pb({i,pos[i][j][k]});
if(pos[i][j].empty())
graf[i].pb({m+j,-1});
}
}
vector<pair<int,int> > ans;
for(int i=0;i<n+m;i++)
{
euler(i);
if(edges.size())
{
ans.pb({edges.front(),n*m+1});
for(int i=1;i<(int)edges.size();i++)
ans.pb({edges[i],edges[i-1]});
ans.pb({n*m+1,edges.back()});
edges.clear();
}
}
printf("%i\n",ans.size());
for(auto p:ans)
printf("%i %i\n",p.f,p.s);
return 0;
}
|
db760e364b4c0dc9545eecea95b8af282afb404a | 106b7acf2da5225670b54bdad47c6b87730efb6c | /examples/test.cpp | e4aa28e612f31e957621292228fb8a57955906da | [
"BSD-3-Clause"
] | permissive | mfkiwl/libf | 7259bbfb8080bec997dd4c0ea6d434c4e0ea6f10 | 1e549c9dc2085968e0bbf99480c0105e53275ee4 | refs/heads/master | 2021-10-10T20:53:55.478884 | 2019-01-17T06:28:19 | 2019-01-17T06:28:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,207 | cpp | test.cpp | /*
* Copyright (c) 2017 The National University of Singapore.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the University 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 REGENTS 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 REGENTS 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.
*/
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include "../flist.h"
#include "../fmap.h"
#include "../fmaybe.h"
#include "../fset.h"
#include "../fstring.h"
#include "../fvector.h"
using namespace F;
#define STR0(x) #x
#define STR(x) STR0(x)
static size_t total = 0, passed = 0;
#define TEST(c) \
do { \
printf("\"" STR(c) "\"..."); \
fflush(stdout); \
bool b = (c); \
total++; \
passed += (b? 1: 0); \
printf("%s\33[0m\n", (b? "\33[32mpassed": "\33[31mFAILED")); \
if (!b) exit(EXIT_FAILURE); \
} while(false)
#define fst _result_0
#define snd _result_1
/****************************************************************************/
// Custom lists:
template <typename T>
struct CONS;
struct EMPTY { };
template <typename T>
using LIST = Union<EMPTY, CONS<T>>;
template <typename T>
struct CONS
{
T val;
LIST<T> next;
};
#define LIST_EMPTY LIST<void>::index<EMPTY>()
#define LIST_CONS LIST<void>::index<CONS<void>>()
template <typename T>
PURE LIST<T> reverse2(LIST<T> xs, LIST<T> ys)
{
// switch-case-idiom
switch (index(xs))
{
case LIST_EMPTY:
return ys;
case LIST_CONS:
{
const CONS<T> &x = xs;
const CONS<T> y = {x.val, ys};
return reverse2(x.next, LIST<T>(y));
}
default:
abort();
}
}
template <typename T>
PURE LIST<T> reverse(LIST<T> xs)
{
return reverse2(xs, LIST<T>((EMPTY){}));
}
template <typename T>
PURE String show(LIST<T> xs)
{
String str = string('[');
bool prev = false;
while (true)
{
bool stop = false;
switch (index(xs))
{
case LIST_EMPTY:
stop = true;
break;
case LIST_CONS:
{
const CONS<T> &x = xs;
xs = x.next;
if (prev)
str += ',';
str += show(x.val);
break;
}
default:
abort();
}
if (stop)
break;
prev = true;
}
str += ']';
return str;
}
/****************************************************************************/
int main(void)
{
// Lists:
{
auto xs = list<int>();
for (int i = 30; i >= 0; i--)
xs = list(i, xs);
const double data[] = {-1.1, 10.0, 3.222, -55.0, 3.2, 2.2, 0.00001};
auto ys = list<double>();
for (int i = sizeof(data) / sizeof(data[0]) - 1; i >= 0; i--)
ys = list(data[i], ys);
printf("\n\33[33mxs = %s\33[0m\n", c_str(show(xs)));
printf("\n\33[33mys = %s\33[0m\n", c_str(show(ys)));
TEST(index(list<int>()) == 0);
TEST(size(list<int>()) == 0);
TEST(empty(list<int>()));
TEST(index(xs) == 1);
TEST(index(ys) == 1);
TEST(!empty(xs));
TEST(!empty(ys));
TEST(size(xs) == 31);
TEST(size(ys) == sizeof(data) / sizeof(data[0]));
TEST(head(xs) == 0);
TEST(head(ys) == -1.1);
TEST(size(tail(xs)) == 30);
TEST(head(tail(xs)) == 1);
TEST(head(tail(ys)) == 10.0);
TEST(last(xs) == 30);
TEST(last(ys) == 0.00001);
TEST(size(take(xs, 2)) == 2);
TEST(head(take(xs, 2)) == 0);
TEST(last(take(xs, 2)) == 1);
TEST(memcmp(F::data(ys), data, sizeof(data)) == 0);
TEST(size(take_while(xs, [] (int x) { return x <= 2; })) == 3);
TEST(last(take_while(xs, [] (int x) { return x <= 2; })) == 2);
TEST(append(xs, xs) > xs);
TEST(!(append(xs, xs) == xs));
TEST(append(xs, xs) != xs);
TEST(!(append(xs, xs) < xs));
TEST(append(xs, xs) >= xs);
TEST(!(append(xs, xs) <= xs));
TEST(size(append(xs, xs)) == 62);
TEST(last(append(xs, xs)) == last(xs));
TEST(head(reverse(xs)) == last(xs));
TEST(second(head(zip(xs, xs))) == head(xs));
TEST(first(last(zip(xs, xs))) == last(xs));
TEST(second(head(zip(ys, xs))) == head(xs));
TEST(first(last(zip(ys, xs))) == last(ys));
TEST(compare(sort(xs), xs) == 0);
TEST(head(sort(ys)) == -55.0);
TEST(last(sort(ys)) == 10.0);
TEST(compare(sort(xs, [] (int x, int y) { return y-x; }),
reverse(xs)) == 0);
TEST(foldl(xs, true, [] (bool a, int x) { return (a && (x <= 30)); }));
TEST(foldl(xs, 0, [] (int x, int y) { return x+y; }) == 465);
TEST(foldl(xs, 0, [] (int x, int y) { return y; }) == 30);
TEST(foldl(ys, 100000.0, [] (double a, double x) { return (x < a? x: a); }) == -55.0);
TEST(foldr(xs, 0, [] (int x, int y) { return y; }) == 0);
TEST(foldr(ys, 100000.0, [] (double a, double x) { return (x < a? x: a); }) == -55.0);
TEST(({int sum = 0; for (int x: xs) sum += x; sum;}) == 465);
TEST(last(map<int>(xs, [] (int x) { return x+1; })) == 31);
TEST(compare(map<int>(ys, [] (double x) { return (int)x; }), xs) != 0);
TEST(size(filter(xs, [] (int x) { return x != 1 && x != 2; })) == 29);
TEST(compare(xs, xs) == 0);
TEST(compare(xs, tail(xs)) < 0);
TEST(compare(tail(xs), xs) > 0);
}
// Strings:
{
auto str = string("Hello World!\n");
str = append(str, "ABCDEFGHIJKLMNOP");
str = append(str, string("QRSTUVWXYZ"));
str = append(str, "1234567890\n");
str = append(str, 'a');
str = append(str, 'b');
str = append(str, 'c');
str = append(str, 'd');
str = append(str, 'e');
str = append(str, "fghijklmnop");
str = append(str, string("qrstuvwx"));
str = append(str, 'y');
str = append(str, "z");
printf("\n\33[33mstr = %s\33[0m\n", c_str(show(str)));
TEST(size(string()) == 0);
TEST(compare(string(), string("")) == 0);
TEST(compare(string('X'), string("X")) == 0);
TEST(size(str) == 76);
TEST(size(append(str, str)) == 2 * size(str));
TEST(compare(string(c_str(str)), str) == 0);
TEST(lookup(append(str, 'X'), 76) == 'X');
TEST(lookup(append(str, "ABC123"), 76+3) == '1');
TEST(size((str + str)) == 2 * size(str));
TEST(lookup((str + 'X'), 76) == 'X');
TEST(lookup((str + "ABC123"), 76+3) == '1');
TEST(lookup(str, 3) == 'l');
TEST(lookup(show(str), size(show(str))-1) == '\"');
TEST(verify(split(str, 27).fst));
TEST(verify(split(str, 27).snd));
TEST(compare(append(split(str, 27).fst, split(str, 27).snd), str) == 0);
TEST(verify(left(str, 41)));
TEST(verify(right(str, 41)));
TEST(compare(append(left(str, 41), right(str, 41)), str) == 0);
TEST(verify(left(str, 65)));
TEST(size(left(str, 65)) == 65);
TEST(verify(right(str, 65)));
TEST(size(right(str, 65)) == 76-65);
TEST(verify(between(str, 13, 26)));
TEST(compare(between(str, 13, 26),
string("ABCDEFGHIJKLMNOPQRSTUVWXYZ")) == 0);
TEST(compare(between(str, 10, 0), string()) == 0);
TEST(compare(between(str, 11, 14), left(right(str, 11), 14)) == 0);
TEST(compare(left(append(str, str), size(str)),
right(append(str, str), size(str))) == 0);
TEST(find(str, '!') == 11);
TEST(empty(find(str, '@')));
TEST(find(str, "World") == 6);
TEST(find(str, "ABCD") == 13);
TEST(find(str, "BCDE") == 14);
TEST(find(str, "ABCD", 10) == 13);
TEST(empty(find(str, "World", 7)));
TEST(find(str, string("World")) == 6);
TEST(find(str, string("ABCD")) == 13);
TEST(find(str, string("BCDE")) == 14);
TEST(find(str, string("ABCD"), 10) == 13);
TEST(empty(find(str, string("ABCDEFGHIJKLMNOPQRSTUVWY3______"))));
TEST(find(str, str) == 0);
TEST(empty(find(str, str, 1)));
TEST(find(insert(str, 22, str), str) == 22);
TEST(find(insert(str, 22, str), c_str(str)) == 22);
TEST(empty(find(insert(str, 22, replace_all(str, "z", string('Z'))), str)));
TEST(find(replace(str, "World", string("CAT")).fst, "CAT", 3) == 6);
TEST(find(replace_all(str, "World", string("CAT")), "CAT", 3) == 6);
TEST(find(replace(str, string("World"), string("CAT")).fst, "CAT", 3) == 6);
TEST(find(replace_all(str, string("World"), string("CAT")), "CAT", 3) == 6);
TEST(size(replace_all(str, string("l"), string("333"))) == size(str) + 4*2);
TEST(empty(find(str, string("World"), 7)));
TEST(size(erase(str, 0, size(str))) == 0);
TEST(size(erase(str, 10, 10)) == size(str)-10);
TEST(size(show(str)) > size(str));
TEST(compare(insert(erase(str, 6, 5), 6, string("World")), str) == 0);
TEST(size(list(str)) == size(str));
TEST(foldl(str, (size_t)0, [] (size_t a, size_t idx, char32_t _) { return (a + idx + 1); }) == 2926);
TEST(foldl(str, (char32_t)0,
[] (char32_t x, size_t _, char32_t y) { return (x > y? x: y); }) == 'z');
TEST(verify(map(str, [] (size_t _, char32_t c) { return 'X'; })));
TEST(lookup(map(str, [] (size_t _, char32_t c) { return 'X'; }), 33) == 'X');
TEST(verify(filter(str,
[] (size_t _, char32_t c) { return (bool)isdigit((char)c); })));
TEST(compare(filter(str,
[] (size_t _, char32_t c) { return (bool)isdigit((char)c); }),
string("1234567890")) == 0);
TEST(verify(filter_map(str,
[] (size_t _, char32_t c) -> Optional<char32_t>
{ return (isdigit((char)(c+1))? Optional<char32_t>(c+1):
Optional<char32_t>()); })));
TEST(compare(filter_map(str,
[] (size_t _, char32_t c) -> Optional<char32_t>
{ return (isdigit((char)(c+1))? Optional<char32_t>(c+1):
Optional<char32_t>()); }),
string("234567891")) == 0);
TEST(compare(({String tmp; for (char32_t c: filter_map(string("A man, a plan, a canal, Panama"), [] (size_t _, char32_t c) -> Optional<char32_t> { if (!isalpha(c)) return Optional<char32_t>(); return Optional<char32_t>(tolower(c));})) tmp = append(tmp, c); tmp;}), string("amanaplanacanalpanama")) == 0);
Set<char32_t> seen;
for (auto c: str)
{
if (find(seen, c))
continue;
TEST(!empty(find(str, c)));
seen = insert(seen, c);
}
}
// Vectors:
{
auto xs = vector<int>();
auto ys = vector(string("Hello World!"));
auto zs = vector(list(1.1f, list(2.4f, list(3.3f, list<float>()))));
const int data[] = {7, 5, 4, 3};
auto ws = vector(data, sizeof(data) / sizeof(data[0]));
for (int i = 0; i < 300; i++)
xs = push_back(xs, i);
printf("\n\33[33mxs = %s\33[0m\n", c_str(show(xs)));
printf("\33[33mys = %s\33[0m\n", c_str(show(ys)));
printf("\33[33mzs = %s\33[0m\n", c_str(show(zs)));
printf("\33[33mws = %s\33[0m\n", c_str(show(ws)));
TEST(size(vector<int>()) == 0);
TEST(size(vector(list(2, list<int>()))) == 1);
TEST(empty(vector<char>()));
TEST(!empty(xs));
TEST(verify(xs));
TEST(verify(ys));
TEST(verify(zs));
TEST(verify(ws));
TEST(memcmp(F::data(ws), data, sizeof(data)) == 0);
TEST(memcmp(F::data(ws), F::data(xs), sizeof(data)) != 0);
TEST(compare(vector(F::data(xs), size(xs)), xs) == 0);
TEST(compare(vector(F::data(ys), size(ys)), ys) == 0);
TEST(compare(vector(F::data(zs), size(zs)), zs) == 0);
TEST(compare(vector(F::data(ws), size(ws)), ws) == 0);
TEST(size(xs) == 300);
TEST(size(ys) == size(string("Hello World!")));
TEST(size(zs) == 3);
TEST(size(ws) == 4);
TEST(at(xs, 10) == 10);
TEST(at(xs, 100) == 100);
TEST(verify(push_front(xs, 333)));
TEST(at(push_front(xs, 333), 0) == 333);
TEST(front(xs) == 0);
TEST(verify(push_back(xs, 333)));
TEST(at(push_back(xs, 333), 300) == 333);
TEST(back(xs) == 299);
TEST(verify(pop_front(xs)));
TEST(size(pop_front(xs)) == 299);
TEST(verify(pop_back(xs)));
TEST(size(pop_back(xs)) == 299);
TEST(size(append(xs, xs)) == 600);
TEST(size(append(ws, ws)) == 8);
TEST(size(append(xs, ws)) == size(append(ws, xs)));
TEST(compare(between(xs, 10, 0), vector<int>()) == 0);
TEST(compare(between(xs, 11, 14), left(right(xs, 11), 14)) == 0);
TEST(compare(left(append(xs, xs), size(xs)), right(append(xs, xs), size(xs))) == 0);
TEST(compare(between(insert(xs, 10, xs), 10, size(xs)), xs) == 0);
TEST(size(insert(xs, 122, ws)) == size(xs) + size(ws));
TEST(compare(between(insert(xs, 10, ws), 10, size(ws)), ws) == 0);
TEST(compare(erase(xs, 0, size(xs)), vector<int>()) == 0);
TEST(size(erase(xs, 0, 100)) == size(xs) - 100);
TEST(verify(split(xs, 123).fst));
TEST(verify(split(xs, 123).snd));
TEST(compare(append(split(xs, 123).fst, split(xs, 123).snd), xs) == 0);
TEST(foldl(xs, (size_t)0, [] (size_t a, size_t idx, int _) { return (a + idx + 1); }) == 45150);
TEST(foldr(xs, (size_t)0, [] (size_t a, size_t idx, int _) { return (a + idx + 1); }) == 45150);
TEST(foldl(xs, 0, [] (int x, size_t _, int y) { return x+y; }) == 150*299);
TEST(foldl(ws, 0, [] (int x, size_t _, int y) { return x+y; }) == 19);
TEST(foldr(xs, 0, [] (int x, size_t _, int y) { return x+y; }) == 150*299);
TEST(({int sum = 0; for (auto x: xs) sum += x; sum;}) == 150*299);
TEST(({int sum = 0; for (auto x: ws) sum += x; sum;}) == 19);
TEST(at(map<float>(xs, [] (size_t _, int x) { return (float)x; }), 123) ==
123.0f);
TEST(verify(filter(xs, [] (size_t _, int x) { return !(x & 1); })));
TEST(at(filter(xs, [] (size_t _, int x) { return !(x & 1); }), 33) == 66);
TEST(compare(xs, xs) == 0);
TEST(compare(xs, push_front(xs, 100)) < 0);
TEST(compare(xs, push_front(xs, -100)) > 0);
TEST(compare(map<int>(zs, [] (size_t _, float x) { return (int)x-1; }),
split(xs, 3).fst) == 0);
TEST(verify(show(xs)));
{
VectorItr<int> i = begin(xs);
VectorItr<int> j = i;
i += 100;
j += 10;
TEST(*i == 100);
TEST(*j == 10);
};
for (int i = 0; i < 300; i++)
{
printf("(i = %d) ", i);
TEST(at(xs, i) == i);
printf("(i = %d) ", i);
TEST(verify(erase(xs, i, i / 10 + 1)));
}
}
// Tuples:
{
auto t =
tuple<int, float, char, bool, Tuple<int, int>>(7, 3.125f, 'c', true,
tuple(1, 2));
printf("\n\33[33mt = %s\33[0m\n", c_str(show(t)));
TEST(first(t) == 7);
TEST(second(t) == 3.125f);
TEST(third(t) == 'c');
TEST(fourth(t) == true);
TEST(size(t) == 5);
TEST(size(fifth(t)) == 2);
TEST(compare(t, tuple(7, 10.0f, 'x', false, tuple(1, 2))) < 0);
TEST(compare(t, tuple(7, 3.125f, 'c', true, tuple(1, 2))) == 0);
TEST(compare(t, tuple(7, 3.125f, 'c', true, tuple(1, 0))) > 0);
}
// Maps:
{
auto m = map<int, int>();
for (int i = 0; i < 200; i++)
m = insert(m, tuple(i, 2*i));
printf("\n\33[33mt = %s\33[0m\n", c_str(show(m)));
TEST(verify(map<float, float>()));
TEST(verify(m));
TEST(!empty(m));
TEST(second(get(find(m, 25))) == 50);
TEST(verify(insert(m, tuple(55, 55))));
TEST(second(get(find(insert(m, tuple(55, 55)), 55))) == 55);
TEST(verify(insert(m, tuple(134, -12))));
TEST(second(get(find(insert(m, tuple(134, -12)), 134))) == -12);
TEST(verify(insert(m, tuple(1134, -12))));
TEST(second(get(find(insert(m, tuple(1134, -12)), 1134))) == -12);
TEST(!empty(find(m, 86)));
TEST(empty(find(m, 203)));
TEST(second(get(find(m, 20))) == 40);
TEST(empty(find(m, -20)));
TEST(second(get(find(m, 21))) == 42);
TEST(verify(erase(m, 51)));
TEST(verify(erase(m, -51)));
TEST(verify(erase(m, 0)));
TEST(verify(erase(m, 200)));
TEST(verify(erase(m, 133)));
TEST(empty(find(erase(m, 51), 51)));
TEST(!empty(find(erase(m, 51), 52)));
TEST(size(m) == 200);
TEST(size(keys(m)) == 200);
TEST(last(keys(m)) == 199);
TEST(size(values(m)) == 200);
TEST(last(values(m)) == 398);
TEST(verify(split(m, 33).fst));
TEST(verify(split(m, 33).snd));
TEST(compare(split(m, 33).fst, split(m, 33).snd) < 0);
TEST(compare(split(m, 33).snd, split(m, 33).fst) > 0);
TEST(verify(split(m, 100).fst));
TEST(verify(split(m, 100).snd));
TEST(verify(split(m, 199).fst));
TEST(verify(split(m, 199).snd));
TEST(compare(split(m, 199).fst, erase(m, 199)) == 0);
TEST(compare(split(m, 199).snd, map<int, int>()) == 0);
TEST(verify(merge(split(m, 123).fst, split(m, 123).snd)));
TEST(compare(merge(split(m, 123).fst, split(m, 123).snd), erase(m, 123))
== 0);
TEST(compare(merge(split(m, 123).snd, split(m, 123).fst), erase(m, 123))
== 0);
TEST(compare(sort(list(m)), list(m)) == 0);
TEST(foldl(m, 0, [] (int a, Tuple<int, int> t) { return a + first(t); }) == 199*100);
TEST(foldr(m, 0, [] (int a, Tuple<int, int> t) { return a + second(t); }) == 2*199*100);
TEST(({int sum = 0; for (auto t: m) sum += second(t); sum;}) == 2*199*100);
TEST(second(get(find(map<int>(m, [] (Tuple<int, int> t) { return first(t); }), 43))) == 43);
TEST(verify(show(m)));
{
MapItr<int, int> i = begin(m);
printf("%s\n", c_str(show(*i)));
MapItr<int, int> j = i;
i += 100;
j += 10;
TEST(*i == tuple(100, 200));
TEST(*j == tuple(10, 20));
};
for (auto t: m)
{
printf("(t = %s) ", c_str(show(t)));
TEST(!empty(find(m, first(t))));
printf("(t = %s) ", c_str(show(t)));
TEST(verify(insert(m, tuple(2*first(t), second(t)-30))));
printf("(t = %s) ", c_str(show(t)));
TEST(verify(erase(m, first(t))));
}
}
// Sets:
{
auto s = set<int>();
for (int i = 0; i < 100; i++)
s = insert(s, 2*i);
printf("\n\33[33ms = %s\33[0m\n", c_str(show(s)));
TEST(empty(set<double>()));
TEST(find(s, 64));
TEST(!find(s, 63));
TEST(find(insert(s, 999), 999));
TEST(!find(erase(s, 44), 44));
TEST(find(merge(s, insert(s, 33)), 33));
TEST(!find(merge(s, insert(s, 33)), 31));
TEST(compare(merge(s, s), s) == 0);
TEST(!find(intersect(s, insert(s, 67)), 67));
TEST(find(intersect(s, insert(s, 67)), 80));
TEST(compare(intersect(s, s), s) == 0);
TEST(compare(intersect(insert(s, 33), insert(s, 11)), s) == 0);
TEST(find(diff(s, erase(s, 22)), 22));
TEST(!find(diff(s, erase(s, 22)), 44));
TEST(compare(diff(s, s), set<int>()) == 0);
TEST(compare(list(s), sort(list(s))) == 0);
TEST(size(s) == 100);
TEST(foldl(s, 0, [] (int a, int x) { return a + x; }) == 99*50*2);
TEST(foldr(s, 0, [] (int a, int x) { return a + x; }) == 99*50*2);
TEST(({int sum = 0; for (auto a: s) sum += a; sum;}) == 99*50*2);
TEST(verify(show(s)));
for (auto x: s)
{
printf("(x = %d) ", x);
TEST(find(s, x));
printf("(x = %d) ", x);
TEST(verify(insert(s, 2*x)));
printf("(x = %d) ", x);
TEST(verify(erase(s, x)));
}
}
// Custom lists.
{
EMPTY e;
LIST<int> xs = e;
for (int i = 0; i < 10; i++)
{
CONS<int> node = {i, xs};
xs = node;
}
printf("\n\33[33mxs = %s\33[0m\n", c_str(show(xs)));
TEST(index(xs) == 1);
TEST(compare(show(xs), string("[9,8,7,6,5,4,3,2,1,0]")) == 0);
TEST(compare(show(reverse(xs)), string("[0,1,2,3,4,5,6,7,8,9]")) == 0);
}
putchar('\n');
printf("total=%zu; passed=%zu (%.2f%%)\n", total, passed,
((double)passed / (double)total) * 100.0);
return 0;
}
|
f175955cd347a2f7710969b8c136f9544d4b1a2e | 7c2420e0a7c8b28a425a7ed5466b527cb4f27d9b | /sources/kern/include/J4Output.hh | d45515bab8b1e4f40b61ced28600d265564a062d | [] | no_license | nobuchiba1006/DOUMEKI | d1705054b95b79f9089ec5cff427513bd9fd5745 | 7c17ba485b616df5e15764d148d4fec358d7b480 | refs/heads/main_woroot | 2023-07-30T15:16:59.589294 | 2021-09-30T02:52:06 | 2021-09-30T02:52:06 | 411,891,541 | 0 | 0 | null | 2021-09-30T02:52:06 | 2021-09-30T02:07:10 | C++ | UTF-8 | C++ | false | false | 754 | hh | J4Output.hh | // $Id: J4Output.hh,v 1.1.1.1 2004/08/26 07:04:26 hoshina Exp $
#ifndef __J4OUTPUT__
#define __J4OUTPUT__
//*************************************************************************
//* --------------------
//* J4Output
//* --------------------
//* (Description)
//* Output Hit data
//*
//* (Update Record)
//* 2002/08/07 Akiya Miyamoto Original Version
//*
//*************************************************************************
#include "J4VHit.hh"
//=========================================================================
//---------------------
// Class definition
//---------------------
class J4Output
{
public:
J4Output() {}
virtual ~J4Output() {}
virtual void Output(J4VHit *) {}
virtual void Clear() {}
};
#endif
|
b319b72d739b478d7518d46de2c03f163284241b | 97f44f5b96b97609128df991f5eb8738d5eb8b9e | /src/Battle/SkillGenerator.cpp | 096b36d73e19d65a13bb0eb57ac8986248486ef6 | [
"MIT",
"BSD-3-Clause",
"Zlib"
] | permissive | Panzareon/RoguePG | c12b89f61de69ad01a29b863ae95d2aefe1b1f51 | 7c276c1c961c8b7a24cd88dc4b2de2ef99cd832c | refs/heads/master | 2021-01-17T05:24:05.828546 | 2020-01-31T19:47:19 | 2020-01-31T19:47:19 | 63,473,433 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,668 | cpp | SkillGenerator.cpp | #include "Battle/SkillGenerator.h"
#include "Battle/EffectFactoryList.h"
#include <iostream>
#include "Battle/PassiveSkill.h"
SkillGenerator::SkillGenerator()
{
//ctor
}
SkillGenerator::~SkillGenerator()
{
//dtor
}
void SkillGenerator::AddSkillTarget(BattleEnums::Target target, float chance)
{
m_skillTarget.insert(std::pair<float, BattleEnums::Target>(chance, target));
}
void SkillGenerator::AddSkillAttackType(BattleEnums::AttackType attackType, float chance)
{
m_skillAttackType.insert(std::pair<float, BattleEnums::AttackType>(chance, attackType));
}
void SkillGenerator::AddSkillEffectType(BattleEnums::EffectType effectType, float chance, bool positive)
{
if(positive)
m_skillPositiveEffectType.insert(std::pair<float, BattleEnums::EffectType>(chance, effectType));
else
m_skillNegativeEffectType.insert(std::pair<float, BattleEnums::EffectType>(chance, effectType));
}
Skill* SkillGenerator::GetNewSkill(float strength)
{
BattleEnums::Target target;
BattleEnums::AttackType attackType;
BattleEnums::EffectType effectType;
target = GetRandomTarget();
bool positive = false;
if(target == BattleEnums::Target::OwnTeam || target == BattleEnums::Target::OwnTeamEntity || target == BattleEnums::Target::Self || target == BattleEnums::Target::OwnTeamRandomEntity)
positive = true;
if(target == BattleEnums::Target::Passive)
{
Skill* newSkill = new PassiveSkill();
float manaUse = 0.0f;
effectType = BattleEnums::EffectType::Passive;
int nrOfTries = 0;
do
{
nrOfTries++;
attackType = GetRandomAttackType();
newSkill->AddEffect(EffectFactoryList::GetInstance()->getRandom(attackType, effectType)->GetEffectWithValue(strength - manaUse, target), true);
manaUse = (float)newSkill->GetManaBase();
}
while(manaUse < strength * 0.9 && nrOfTries < 1000);
return newSkill;
}
else
{
Skill* newSkill = new Skill(target);
float manaUse = 0.0f;
int nrOfTries = 0;
do
{
nrOfTries++;
attackType = GetRandomAttackType();
effectType = GetRandomEffectType(positive);
newSkill->AddEffect(EffectFactoryList::GetInstance()->getRandom(attackType, effectType)->GetEffectWithValue(strength - manaUse, target), true);
manaUse = (float)newSkill->GetManaBase();
}
while(manaUse < strength * 0.9 && nrOfTries < 1000);
return newSkill;
}
}
BattleEnums::Target SkillGenerator::GetRandomTarget()
{
#ifdef CHECK_GENERATORS
//Checks if there are errors defining the Skill generator values
float value = 0.0f;
auto itCheck = m_skillTarget.begin();
for(; itCheck != m_skillTarget.end(); itCheck++)
{
auto it2 = itCheck;
it2++;
for(; it2 != m_skillTarget.end(); it2++)
{
if(itCheck->second == it2->second)
{
std::cout << "Target double defined: " << itCheck->second << std::endl;
}
}
value += itCheck->first;
}
if(value != 1.0f)
{
std::cout << "Target has not combined chance of 1 but of: " << value << std::endl;
}
#endif // CHECK_GENERATORS
float random = rand() / (float)RAND_MAX;
auto it = m_skillTarget.begin();
for(; it != m_skillTarget.end(); it++)
{
if(it->first > random)
{
return it->second;
}
random -= it->first;
}
it--;
return it->second;
}
BattleEnums::AttackType SkillGenerator::GetRandomAttackType()
{
#ifdef CHECK_GENERATORS
//Checks if there are errors defining the Skill generator values
float value = 0.0f;
auto itCheck = m_skillAttackType.begin();
for(; itCheck != m_skillAttackType.end(); itCheck++)
{
auto it2 = itCheck;
it2++;
for(; it2 != m_skillAttackType.end(); it2++)
{
if(itCheck->second == it2->second)
{
std::cout << "AttackType double defined: " << itCheck->second << std::endl;
}
}
value += itCheck->first;
}
if(value != 1.0f)
{
std::cout << "AttackType has not combined chance of 1 but of: " << value << std::endl;
}
#endif // CHECK_GENERATORS
float random = rand() / (float)RAND_MAX;
auto it = m_skillAttackType.begin();
for(; it != m_skillAttackType.end(); it++)
{
if(it->first > random)
{
return it->second;
}
random -= it->first;
}
it--;
return it->second;
}
BattleEnums::EffectType SkillGenerator::GetRandomEffectType(bool positive)
{
#ifdef CHECK_GENERATORS
//Checks if there are errors defining the Skill generator values
float value = 0.0f;
auto itCheck = m_skillPositiveEffectType.begin();
for(; itCheck != m_skillPositiveEffectType.end(); itCheck++)
{
auto it2 = itCheck;
it2++;
for(; it2 != m_skillPositiveEffectType.end(); it2++)
{
if(itCheck->second == it2->second)
{
std::cout << "PositiveEffectType double defined: " << itCheck->second << std::endl;
}
}
value += itCheck->first;
}
if(value != 1.0f)
{
std::cout << "PositiveEffectType has not combined chance of 1 but of: " << value << std::endl;
}
value = 0.0f;
itCheck = m_skillNegativeEffectType.begin();
for(; itCheck != m_skillNegativeEffectType.end(); itCheck++)
{
auto it2 = itCheck;
it2++;
for(; it2 != m_skillNegativeEffectType.end(); it2++)
{
if(itCheck->second == it2->second)
{
std::cout << "NegativeEffectType double defined: " << itCheck->second << std::endl;
}
}
value += itCheck->first;
}
if(value != 1.0f)
{
std::cout << "NegativeEffectType has not combined chance of 1 but of: " << value << std::endl;
}
#endif // CHECK_GENERATORS
float random = rand() / (float)RAND_MAX;
std::multimap<float, BattleEnums::EffectType>::iterator it, endIt;
if(positive)
{
it = m_skillPositiveEffectType.begin();
endIt = m_skillPositiveEffectType.end();
}
else
{
it = m_skillNegativeEffectType.begin();
endIt = m_skillNegativeEffectType.end();
}
for(; it != endIt; it++)
{
if(it->first > random)
{
return it->second;
}
random -= it->first;
}
it--;
return it->second;
}
|
2b700f625f79911a675c29406610b6c22ad5afe8 | 7e13d53f8e36fe17e1c7e2aa39945c616b02b709 | /ESP8266 Http Comunication V2/src/main.cpp | 94abeec9bb54a0d75408b1b95fd3cc94078bf2cc | [
"MIT"
] | permissive | lokneey/IoTCommunication | ed7a1dfba2520b59f2fcdeb34e10e4a7eb3a0ef8 | fd955da0546ed8f6a8ab6dffc6a53f9c4e0453a8 | refs/heads/master | 2020-05-19T12:40:32.263199 | 2019-05-10T14:55:58 | 2019-05-10T14:55:58 | 185,018,823 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,643 | cpp | main.cpp | /*
During creation of this file there were used following websites as source of knowledge:
https://randomnerdtutorials.com/decoding-and-encoding-json-with-arduino-or-esp8266/
https://arduinojson.org/v5/assistant/
ArduinoJson version: 5.13.2
*/
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266HTTPClient.h>
#include <ArduinoJson.h> //ver. 5.13.2
//
//---------------------------------------------------------------------
const char *wifiName = "Tararituta";
const char *wifiPass = "qwertyasd";
const char *JWTtoken;
bool getMessagesTrigger, postMessageTrigger, logInTrigger, updateDisplayTrigger, readGestureTrigger;
long long getMessagesTimer, getMessagesTimePeriod;
HTTPClient http;
String json;
class Message
{
public:
const char *MessageContent;
const char *MessageAuthor;
const char *MessageException; //To receive - errors inside REST
const char *MessageDeath; //Format: dd.MM.yyyy HH:mm:ss - for example 17.04.2019 19:49:30
const char *MessagePriority; //Available: "HIGH", "MEDIUM", "LOW" - every other option will be assigned as "MEDIUM"
const char *MessageInfoMsg; //To receive - errors with processing and comunication
};
Message messages[5];
//---------------------------------------------------------------------
//This function downloads five sorted messages from REST api
//Messages are firstly ordered by their priority and secondly by expiry date
//All downloaded data is saved in global messages array
void GetMessages()
{
for (int i = 0; i < 5; i++)
{
messages[i].MessageAuthor = "";
messages[i].MessageContent = "";
messages[i].MessageException = "";
messages[i].MessageDeath = "";
messages[i].MessageInfoMsg = "";
messages[i].MessagePriority = "";
}
const char *host = "http://postiotapi.ipprograms.pl/api/values/get-best-five-messages";
http.begin(host);
http.addHeader("Authorization", "Bearer " + String(JWTtoken));
int httpResponseCode = http.GET();
json = http.getString();
if (httpResponseCode == 200)
{
const size_t JSONcapacity = JSON_ARRAY_SIZE(5) + JSON_OBJECT_SIZE(8) + 2000;
DynamicJsonBuffer jsonBufferSpecific(JSONcapacity);
JsonArray &parser = jsonBufferSpecific.parseArray(json);
if (!parser.success())
{
Serial.println(F("Błąd przetwarzania pliku JSON!"));
messages[0].MessageInfoMsg = "Błąd przetwarzania pliku JSON!";
http.end();
return;
}
for (int i = 0; i < 5; i++)
{
messages[i].MessageAuthor = parser[i]["MessageAuthor"].as<char *>();
Serial.println(messages[i].MessageAuthor);
messages[i].MessageContent = parser[i]["MessageContent"].as<char *>();
Serial.println(messages[i].MessageContent);
messages[i].MessageException = parser[i]["MessageException"].as<char *>();
Serial.println(messages[i].MessageException);
messages[i].MessageInfoMsg = parser[i]["InfoMsg"].as<char *>();
Serial.println(messages[i].MessageInfoMsg);
Serial.println();
}
http.end();
}
else
{
Serial.println(F("Nie udało się uzyskać odpowiedzi serwera"));
messages[0].MessageInfoMsg = "Nie udało się uzyskać odpowiedzi serwera";
http.end();
return;
}
}
//This function adds single message to database by REST api
//All variables should be set in messages[0] object before calling PostMessage function
//Remeber about setting one of three possible MessagePriority: HIGH, MEDIUM, LOW. Otherwise it will be set on MEDIUM by default
//There are two possible options for JSON format
//If you want to set a specific expiry date for message you need to write it into MessageDeath with format dd.MM.yyyy HH:mm:ss
//Wrong format will return REST api processing error so make sure you have written it correctly
//If you don't want to have expiry date for message you need to set MessageDeath on empty
void PostMessage()
{
//Operation required for easy and comfortable working with char content
String messageContent = messages[0].MessageContent;
String messageAuthor = messages[0].MessageAuthor;
String messagePriority = messages[0].MessagePriority;
String messageDeath = messages[0].MessageDeath;
if (messageDeath != "")
{
json = "{\"MessageContent\": \"" + messageContent + "\", \"MessageAuthor\": \"" + messageAuthor + "\", \"MessagePriority\": \"" + messagePriority + "\", \"MessageDeath\": \"" + messageDeath + "\"}";
}
else
{
json = "{\"MessageContent\": \"" + messageContent + "\", \"MessageAuthor\": \"" + messageAuthor + "\", \"MessagePriority\": \"" + messagePriority + "\"}";
}
const char *host = "http://postiotapi.ipprograms.pl/api/values/new-message";
http.begin(host);
http.addHeader("Host", "postiotapi.ipprograms.pl");
http.addHeader("Content-Type", "application/json");
http.addHeader("Authorization", "Bearer " + String(JWTtoken));
http.addHeader("Content-Length", String(json.length()));
int httpResponseCode = http.POST(json);
String receivedJson = http.getString();
if (httpResponseCode == 200)
{
const size_t JSONcapacity = JSON_ARRAY_SIZE(1) + JSON_OBJECT_SIZE(1) + 200;
DynamicJsonBuffer jsonBufferSpecific(JSONcapacity);
JsonArray &parser = jsonBufferSpecific.parseArray(receivedJson);
if (!parser.success())
{
Serial.println(F("Błąd przetwarzania pliku JSON!"));
messages[0].MessageInfoMsg = "Błąd przetwarzania pliku JSON!";
http.end();
return;
}
messages[0].MessageInfoMsg = parser[0]["InfoMsg"].as<char *>();
Serial.println(messages[0].MessageInfoMsg);
http.end();
}
else
{
Serial.println(F("Nie udało się uzyskać odpowiedzi serwera"));
messages[0].MessageInfoMsg = "Nie udało się uzyskać odpowiedzi serwera";
http.end();
return;
}
}
//This function sends POST request with login and password to receive JSON Web Token in JSON file
//Token is written to global function and needs to be sent with every request to REST api
//Token is valid for 2 hours
void LogIn()
{
json = "{\"UserLogin\": \"ESP8266_post_iot\", \"UserPassword\": \"c5d5ea201ebe9561f5ba93312264030e27ec777a745e55c7225262bf0f2ab9dd\"}";
const char *host = "http://postiotapi.ipprograms.pl/api/login";
http.begin(host);
http.addHeader("Host", "postiotapi.ipprograms.pl");
http.addHeader("Content-Type", "application/json");
http.addHeader("Content-Length", String(json.length()));
int httpResponseCode = http.POST(json);
String receivedJson = http.getString();
if (httpResponseCode == 200)
{
const size_t JSONcapacity = JSON_OBJECT_SIZE(1) + 200;
DynamicJsonBuffer jsonBufferSpecific(JSONcapacity);
JsonObject &parser = jsonBufferSpecific.parseObject(receivedJson);
if (!parser.success())
{
Serial.println(F("Błąd przetwarzania pliku JSON!"));
JWTtoken = "Błąd przetwarzania pliku JSON!";
http.end();
return;
}
JWTtoken = parser["token"].as<char *>();
http.end();
}
else
{
Serial.println(F("Nie udało się uzyskać odpowiedzi serwera"));
JWTtoken = "Nie udało się uzyskać odpowiedzi serwera";
http.end();
return;
}
}
void setup()
{
Serial.begin(115200);
WiFi.begin(wifiName, wifiPass);
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.println(F("Connecting... "));
}
getMessagesTrigger = 0;
postMessageTrigger = 0;
logInTrigger = 1;
updateDisplayTrigger = 0;
readGestureTrigger = 0;
getMessagesTimePeriod = 60000;
}
void loop()
{
if (logInTrigger == 1)
{
LogIn();
getMessagesTimer = millis() - getMessagesTimePeriod;
logInTrigger = 0;
getMessagesTrigger = 1;
}
if (getMessagesTrigger == 1)
{
if (millis() - getMessagesTimer > getMessagesTimePeriod) //It may causse problems after 49 days when timer will rollover and return to 0. Look at: https://www.baldengineer.com/arduino-how-do-you-reset-millis.html
{
GetMessages();
getMessagesTimer = millis();
updateDisplayTrigger = 1;
}
}
if (postMessageTrigger == 1)
{
//Operation required for easy and comfortable working with char content
String messageContent = messages[0].MessageContent;
String messageAuthor = messages[0].MessageAuthor;
if (messageContent != "" && messageAuthor != "")
{
//Example content
messages[0].MessageContent = "Łaazaaaaaaaaaaaaa";
messages[0].MessageAuthor = "ScaryMan";
messages[0].MessagePriority = "HIGH";
messages[0].MessageDeath = "29.04.2019 19:49:30";
PostMessage();
messages[0].MessageContent = "";
messages[0].MessageAuthor = "";
messages[0].MessagePriority = "";
messages[0].MessageDeath = "";
messages[0].MessageException = "";
messages[0].MessageInfoMsg = "";
postMessageTrigger = 0;
}
if (readGestureTrigger == 1)
{
//Code for gesture reading
updateDisplayTrigger = 1;
}
if (updateDisplayTrigger == 1)
{
//Code for display update
}
}
} |
98435821d1f402264454ca3bbe6c80fa03d86a1a | fefa1b28e82f1f6f8d00d8414de6a449e0d5ca64 | /patterns/behavioral/template_method/templateMetod.h | 61ff55ee467dd35bbb68b8e7a165837f69c91793 | [] | no_license | Kpada/ramen_design_patterns | 7912321972f44548b535120388c593b8c4cac1a8 | 28bdff8da5f3ccb1d440f10754503963760d2ee9 | refs/heads/master | 2023-08-17T15:06:55.294385 | 2023-07-23T06:28:34 | 2023-07-23T06:28:34 | 393,359,271 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,899 | h | templateMetod.h | #ifndef __TEMPLATE_METHOD_H__
#define __TEMPLATE_METHOD_H__
#include <iostream>
#include <memory>
#include <string>
#include "../../iPattern.h"
/* GoF design pattern: Template Method */
namespace TemplateMethod {
/* Dinner base class
* There are Base operations, Required operations, and Hooks here
*/
class Dinner {
public:
virtual ~Dinner() noexcept = default;
/* Template Method */
void HaveDinner() {
WashHand(); /* base */
MakeOrder(); /* base */
SayBonAppetit(); /* hook */
TakeUtensils(); /* required */
Eat(); /* base */
Finish(); /* base */
ClearTable(); /* hook */
}
const std::string& GetName() const { return m_name; }
/* Base operations are implemented right here */
private:
void WashHand() const { Print("Wash hands"); }
void MakeOrder() const { Print("Make the order"); }
void Eat() const { Print("Eat"); }
void Finish() const { Print("Finish"); }
/* Required operations are abstract and must be implemented in inheritors */
protected:
virtual void TakeUtensils() const = 0;
/* Hooks are empty but they can be reimplemented in inheritors */
protected:
virtual void SayBonAppetit() const {}
virtual void ClearTable() const {}
protected:
explicit Dinner(std::string name) : m_name(std::move(name)) {}
void Print(const std::string& text) const {
std::cout << PrinterState::PlainText << text << '\n';
}
const std::string m_name;
};
class Ramen : public Dinner {
public:
Ramen() : Dinner("Ramen") {}
private:
/* Required */
void TakeUtensils() const override { Print("Take chopsticks"); }
/* Hooks */
void SayBonAppetit() const override { Print("Itadakimasu"); }
};
class KFC : public Dinner {
public:
KFC() : Dinner("KFC") {}
private:
/* Required */
void TakeUtensils() const override {
/* nothing to do here, we will use our hands */
}
/* Hooks */
void ClearTable() const override {
/* There is no waiter, we should clear the table */
Print("Clear the table");
}
};
/* Template Method Pattern */
class Pattern : public IPattern {
public:
Pattern() : IPattern("Template Method") {}
private:
void BusinessLogic() const final {
std::cout << PrinterState::Quote
<< "Eating dinner consists of the same steps. However, depending "
<< "on the dish or restaurant, the implementation of these steps "
<< "may differ.\n\n";
/* Eat Ramen */
HaveDinner(std::make_unique<Ramen>());
/* Eat KFC */
HaveDinner(std::make_unique<KFC>());
}
static void HaveDinner(std::unique_ptr<Dinner> dinner) {
/* print */
std::cout << PrinterState::Quote << "I'm going to eat " << dinner->GetName()
<< '\n';
/* just call the template method */
dinner->HaveDinner();
}
};
} // namespace TemplateMethod
#endif /* __TEMPLATE_METHOD_H__ */
|
fdfee6ab5905051a0fcc3a228252803f5e8380c0 | 5076c851f47aed6c8eb7298566fe0bb6eea3fd5d | /src/Vendas.cpp | c12f8ac592db5151e84510fe55616485dbef7742 | [] | no_license | pieromorais/trabalho-te353 | 5a474804632b8eae827d7a6c216946cac4720efc | 01b5ea0ac0b4331b4506d294f3ef8261bc584b7b | refs/heads/main | 2023-02-28T20:36:44.316881 | 2021-02-01T21:21:32 | 2021-02-01T21:21:32 | 320,371,156 | 1 | 1 | null | 2021-02-01T21:21:33 | 2020-12-10T19:33:56 | C++ | UTF-8 | C++ | false | false | 3,578 | cpp | Vendas.cpp | #include "Vendas.h"
#include "Utilities.h"
void vendas(void){
// Mesma lógica do main
bool menu = false;
while(!menu){
menu = menu_vendas();
}
}
bool menu_vendas(void){
// Menu para lidar com a parte de vendas da
// loja de informática
size_t opcao = 0;
std::cout << "1 - Softwares\n2 - Pecas\n3 - Maquinas\n4 - Voltar\n";
std::cin >> opcao;
// O standart do cpp não permite que eu declare isso localmente
// por isso a repetição
// link -> https://stackoverflow.com/questions/11578936/getting-a-bunch-of-crosses-initialization-error
bool menu1 = false;
bool menu2 = false;
bool menu3 = false;
switch (opcao)
{
case 1:
while(!menu1)
{
Softwares obj_soft("db_soft.csv", 5, "Software");
menu1 = menu_interno("Softwares", obj_soft);
}
return false;
break;
case 2:
while (!menu2)
{
Pecas obj_pecas("db_pecas.csv", 5, "Pecas");
menu2 = menu_interno("Pecas", obj_pecas);
}
return false;
break;
case 3:
while(!menu3)
{
Maquinas obj_maquinas("db_maquinas.csv", 5, "Maquinas");
menu3 = menu_interno("Maquinas", obj_maquinas);
}
return false;
break;
default:
return true;
break;
}
}
bool menu_interno(std::string nome_do_menu, Softwares obj){
// Menu interno para a parte de vendas (softwares)
std::cout << nome_do_menu << "\n";
size_t opcao = 0;
std::cout << "1 - Checar Estoque\n2 - Fazer Venda\n3 - Adicionar Produto\n" <<
"4 - Repor Estoque\n5 - Voltar\n";
std::cin >> opcao;
switch (opcao)
{
case 1:
obj.output_from_csv();
return false;
break;
case 2:
obj.venda_de_artigos();
return false;
break;
case 3:
obj.adicionar_ao_arquivo();
return false;
break;
case 4:
obj.repor_artigos();
return false;
break;
default:
return true;
break;
}
}
bool menu_interno(std::string nome_do_menu, Pecas obj){
// Menu interno para a parte de vendas (softwares)
std::cout << nome_do_menu << "\n";
size_t opcao = 0;
std::cout << "1 - Checar Estoque\n2 - Fazer Venda\n3 - Adicionar Produto\n" <<
"4 - Repor Estoque\n5 - Voltar\n";
std::cin >> opcao;
switch (opcao)
{
case 1:
obj.output_from_csv();
return false;
break;
case 2:
obj.venda_de_artigos();
return false;
break;
case 3:
obj.adicionar_ao_arquivo();
return false;
break;
case 4:
obj.repor_artigos();
return false;
break;
default:
return true;
break;
}
}
bool menu_interno(std::string nome_do_menu, Maquinas obj){
// Menu interno para a parte de vendas (softwares)
std::cout << nome_do_menu << "\n";
size_t opcao = 0;
std::cout << "1 - Checar Estoque\n2 - Fazer Venda\n3 - Adicionar Produto\n" <<
"4 - Repor Estoque\n5 - Voltar\n";
std::cin >> opcao;
switch (opcao)
{
case 1:
obj.output_from_csv();
return false;
break;
case 2:
obj.venda_de_artigos();
return false;
break;
case 3:
obj.adicionar_ao_arquivo();
return false;
break;
case 4:
obj.repor_artigos();
return false;
break;
default:
return true;
break;
}
}
|
a62f53d7ce7eafad14b4588c3d72a1321ad2ed63 | 2107fc12d68ac435e7137ad979994bafd3f8e7d9 | /TP2/Somador/Somador - Automatizado.cpp | 7551362dccf82a7007094f7ac87950e43d3ef630 | [] | no_license | JulianoLMarinho/SistemasDistribuidos | 5119ff62660c9603905e0c073d274091c35a4cbb | c8289265d706f428bd4f3b481f25a80659495cd6 | refs/heads/master | 2020-03-07T10:22:41.075804 | 2018-06-14T21:30:04 | 2018-06-14T21:30:04 | 127,430,213 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,427 | cpp | Somador - Automatizado.cpp | #include <iostream>
#include <atomic>
#include <random>
#include <thread>
#include <chrono>
#include <fstream>
using namespace std;
class Spinlock{
atomic_flag lock = ATOMIC_FLAG_INIT;
public:
void acquire(){
while(lock.test_and_set()){}
}
void release(){
lock.clear();
}
};
void generateRandomVector(int N, vector<char> &vetor){
random_device rd;
mt19937 mt(rd());
uniform_int_distribution<int> dist(-100,100);
for(int i = 0; i < N; i++){
vetor[i] = char(dist(mt));
}
}
void Soma(long int &soma, vector<char> &vetor, Spinlock &spinlock, int begin, int end){
long int temp = 0;
for(int i = begin; i< end; i++){
temp += (int)vetor[i];
}
spinlock.acquire();
soma += temp;
spinlock.release();
}
int main(int argc, char *argv[]) {
ofstream file;
file.open("saida.csv");
file<<"N, k, Tempo"<<endl;
cout<<"montei"<<endl;
clock_t beginV, endV;
Spinlock spinlock;
vector<char> vetor(1000000000);
generateRandomVector(1000000000, vetor);
long int Nu[3] = {10000000, 100000000, 1000000000};
int Ku[9] = {1, 2, 4, 8, 16, 32, 64, 128, 256};
for(int i = 0; i<3; i++){
for(int j = 0; j<9; j++){
double totalTime = 0.0;
for(int z = 0; z<10; z++){
long int somas = 0;
vector<thread> threads;
double NK = Nu[i]*1.0/Ku[j];
auto ll = static_cast<int>(Nu[i] - (floor(NK) * Ku[j]));
auto begin = chrono::system_clock::now();
for(long int k = 0; k<Nu[i]; k += NK){
auto end = static_cast<int>(k + NK);
if(k+ll == Nu[i]){
end = static_cast<int>(Nu[i]);
}
threads.emplace_back(Soma, ref(somas), ref(vetor), ref(spinlock), k, end);
}
for (thread & t : threads) {
t.join();
}
auto end = chrono::system_clock::now();
double timeThread = chrono::duration<double, std::milli>(end- begin).count();
totalTime+=timeThread;
}
cout<<"N: "<<Nu[i]<<", K: "<<Ku[j]<<", Time Thread: "<<totalTime/10.0<<"ms"<<endl;
file<<Nu[i]<<","<<Ku[j]<<","<<totalTime/10.0<<endl;
}
}
file.close();
return 0;
} |
661630ef43d5b43f0e50cf631783de1a121dad9c | 0b526add40b66bbeac6d9a16a3825ee54441179d | /MsClass/INCLUDE/ObjectString.hpp | 898c1d865119c6e8ff87ab93d3c816f29d8b8082 | [] | no_license | tchv71/ScadViewer | 2ca06c4b91ac65eb2e2da539786c30dc5331834a | 541d7ca309001de54a4876fbc7a3be471f40dfd6 | refs/heads/master | 2021-05-24T06:52:37.582026 | 2021-02-14T20:42:16 | 2021-02-14T20:42:16 | 56,400,736 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 369 | hpp | ObjectString.hpp | #ifndef OBJECT_STRING_FLAG_H
#define OBJECT_STRING_FLAG_H
#include <BaseClass.hpp>
class OBJECT_STRING : public BASE_CLASS
{
public:
OBJECT_STRING() { Init(0); }
~OBJECT_STRING(void) { Destroy(); }
int EXPORT Add(LPSTR Text, int LenText, BYTE &Control );
int EXPORT Add(LPSTR Text ) { return AddObject(NULL,Text); }
};
#endif
|
92ab48a1cda89fd077747a161dae1b5df749953b | 6af2cd241211e000aaec4a42d1627a765b5d8666 | /examples/chapter2/example2_7.cpp | d33a30a1f116dd66ac06c11a2a18ae8c7d1110cd | [] | no_license | FOSSBOSS/Learning-OpenCV-3_examples | 6dd036bba7f65f608a665e0555355e000c228c28 | 416c0cdbfac2f27764815feec5fb14d2a0ee2d5a | refs/heads/master | 2021-01-12T03:36:51.674927 | 2017-01-21T01:44:31 | 2017-01-21T01:44:31 | 78,237,776 | 0 | 0 | null | 2017-01-06T20:49:59 | 2017-01-06T20:49:59 | null | UTF-8 | C++ | false | false | 524 | cpp | example2_7.cpp | #include <opencv2/opencv.hpp>
using namespace cv;
int main(int argc, char ** argv){
Mat img_rgb, img_gray, img_cny;
img_rgb=imread(argv[1]); //get an image
namedWindow("Source", WINDOW_AUTOSIZE); // I'd call it src.
namedWindow("Gray", WINDOW_AUTOSIZE);
namedWindow("Canny", WINDOW_AUTOSIZE);
cvtColor(img_rgb, img_gray, COLOR_BGR2GRAY);
Canny(img_gray, img_cny,10,100,3,true);
imshow("Source",img_rgb);
imshow("Gray",img_gray);
imshow("Canny",img_cny);
waitKey(0);
return 0; //not in book example, pg 34
}
|
65eb9796d8de239cd29754f1e1c319b9ec49f03f | 5ddb12c56d837a0ac345a3402a0fe9c8a12bb1b9 | /CPainter.h | a65c6cd72c28fd5ce5143aa42fe0e069e186d95c | [] | no_license | Geometrie/LZRobe | b301cb651ef525d56cb5b11454748b2e772dc8c4 | 1a1b554c99174af01aeeb52bc312b629a8ec3aa9 | refs/heads/master | 2020-04-30T20:27:15.634664 | 2019-05-29T12:38:15 | 2019-05-29T12:38:15 | 177,067,005 | 8 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,876 | h | CPainter.h | #ifndef CPAINTER_H
#define CPAINTER_H
#include <fstream>
#include <math.h>
#include <wx/font.h>
#include <wx/scrolwin.h>
#include <wx/dcclient.h>
#include <wx/dcbuffer.h>
#include <wx/msgdlg.h>
#include "CLZInquirer.h"
#ifndef min
#define min(a, b) (((a) < (b))?(a):(b))
#endif
#define X_GAMEBOARD 8
#define Y_GAMEBOARD 0
#define X_TURN_TIP 4
#define Y_TURN_TIP 1
#define X_TURN_BLACK 2
#define X_TURN_WHITE 6
#define Y_TURN_STONE 4
#define SZ_TURN_LOGO 1
#define X_PRISONER_TIP 4
#define Y_PRISONER_TIP 6
#define X_BLACK_WRAP_WHITE 2
#define X_WHITE_WRAP_BLACK 6
#define Y_WRAP 9
#define SZ_PRISONER 1
#define Y_PRISONER_NUM 11
#define X_PASS_TIP 30
#define X_RESIGN_TIP 34
#define Y_NO_MOVE_TIP 1
#define Y_TIP_ARROW 2
#define SZ_TIP_ARROW 1
#define Y_NO_MOVE_LOGO 3
#define X_PROCESS_TIP 32
#define Y_PROCESS_TIP 5
#define X_PROGRESS_GRAPH 28
#define Y_PROGRESS_GRAPH 6
enum COORDINATE_TYPE
{
CT_NULL,
CT_NET,
CT_NUM,
CT_SGF,
CT_GTP
};
class CPainter: public wxScrolledWindow, public CLZInquirer
{
public:
CPainter(wxWindow *lpParent);
clock_t m_ctTimeTick;
bool m_bShowStep;
COORDINATE_TYPE m_ctBoardTick;
int m_iGridSize, m_iBoardUnitSize;
int m_iBoardLeft, m_iBoardRight, m_iBoardTop, m_iBoardBottom;
int m_iBackgroundLeft, m_iBackgroundTop, m_iBackgroundSize;
int m_iTurnTipX, m_iTurnTipY, m_iTurnBlackX, m_iTurnBlackY, m_iTurnWhiteX, m_iTurnWhiteY, m_iTurnRadius;
int m_iPrisonerTipX, m_iPrisonerTipY, m_lpiWrappedStonesX[2], m_iWrappedStonesY, m_iPrisonerRadius, m_iPrisonerNumY;
int m_iPassTipX, m_iResignTipX, m_iNoMoveTipY, m_iTipArrowTop, m_iTipArrowBottom, m_iNoMoveLogoY;
int m_iProcessTipX, m_iProcessTipY, m_iProgressGraphX, m_iProgressGraphY;
wxFont m_fntPass, m_fntStep, m_fntAnalyze, m_fntTip, m_fntBranch;
wxColour m_clrLightRed, m_clrLightYellow, m_clrLightBlue, m_clrLightGreen, m_clrMagenta;
wxBrush m_brLightRed, m_brLightYellow, m_brLightBlue, m_brLightGreen, m_brGameBoard;
wxPen m_pnThickRed, m_pnThickGreen, m_pnBlackLinePen, m_pnWhiteLinePen;
wxPoint m_lppntRecentMoveLogo[6], m_lppntCorrectLogo[3], m_lppntErrorLogo[4];
wxBitmap m_bmpOriginalBlackStone, m_bmpOriginalWhiteStone, m_bmpScaledBlackStone, m_bmpScaledWhiteStone, m_bmpOriginalPass, m_bmpOriginalResign;
wxString m_wxstrTurn, m_wxstrPass, m_wxstrPrisoners, m_wxstrPassTip, m_wxstrResignTip, m_wxstrProcessTip;
void m_fnSetSize();
protected:
void m_fnDrawGameBoard(wxDC &dc);
void m_fnDrawCoordinates(wxDC &dc);
void m_fnDrawPass(wxDC &dc);
void m_fnDrawMoveTurn(wxDC &dc);
void m_fnDrawPrisoners(wxDC &dc);
void m_fnDrawNoMoveChoice(wxDC &dc);
void m_fnDrawProcess(wxDC &dc);
void m_fnDrawStones(wxDC &dc);
void m_fnDrawTerritory(wxDC &dc);
void m_fnDrawRecentMove(wxDC &dc);
void m_fnDrawBranch(wxDC &dc);
void m_fnDrawAnalyze(wxDC &dc, int x, int y);
};
#endif |
4e7e48e18894a5688c589b52c64bc29ed4cef4e8 | e4e2a9dc58fcc0bc41e268b354d943846202928b | /c++/mat01.cpp | d2fa569f63e651a8f1c614c3806df23af6c1c403 | [] | no_license | Carlos-Rodolfo-Rodriguez/Carlos-Rodolfo-Rodriguez.github.io | 713316922d3901fd304bb7e97f67d6fa0dc6875f | 6b14da1df87eb7a6350625f5773b9413acf7ae6b | refs/heads/master | 2022-04-22T18:14:51.313165 | 2020-04-16T20:01:27 | 2020-04-16T20:01:27 | 256,269,877 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 713 | cpp | mat01.cpp | // Archivo de traducción de seudocódigo a C++
#include <program1.h>
/**
* Enunciado: Dada una matriz cuadrada de hasta 17 filas por columnas cuyo tamaño real lo
elige el usuario y es siempre impar. Calcular el desvio estandar de:
12345
12345
12x45
1xxx5
xxxxx
*/
principal // Unidad de programa principal
entero tam;
leeVarI(tam,3,17,"Tamaño:");
limpiar; // Limpia la pantalla.
pausa; // Pausa antes de finalizar.
finPrincipal // Fin de unidad de programa principal.
|
0af243fae4e85888dc99aaa44b78760ffaacf54e | 229892bd1f01f4b0bb728d3a246ac74a901d0ede | /Ctrl 2K Engine 0.0.1/Source/System/Widget/Text.cpp | 9e5ec48ea351bb7fe035d73e0978aec69145a3c2 | [] | no_license | ArianHeight/Ctrl2k | 50efe64f07b1967d2ab33bacebb014fc81393000 | 6ad4b492dfcefb0dc39063198c031fff05d13119 | refs/heads/master | 2023-03-19T12:13:18.300987 | 2021-03-22T05:16:13 | 2021-03-22T05:16:13 | 201,695,837 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,728 | cpp | Text.cpp | #include <Ctrl 2kPCH.h>
/*
Text object
*/
//functions needed
void drawStringInBox(int fontIndex, std::string& string, glm::dvec2 cursor, double width, float size, glm::vec4 colour);
void drawString(int fontIndex, std::string &string, glm::dvec2 cursor, float size, glm::vec4 colour);
Text::Text(std::string name, FontManager &fonts, glm::vec2 &spxw, int index, std::string &str, glm::vec2 topLeft, glm::vec2 bottomRight, int orientation, float size, glm::vec4 colour) :
source(fonts), singlePxToWindow(spxw), Widget(name, topLeft, bottomRight, -1), m_fontIndex(index),
m_text(str), m_textOrientation(orientation), m_textSize(size), m_colour(colour)
{
//cstr
if (this->m_textOrientation == 1)
{
this->recalculateCenter();
}
}
void Text::render()
{
//std::string tempName = "PosScreen";
Component* posScreen = this->getComponent(3); //grabs the parent's component and uses the position values from that
FourPoints* hb = posScreen->getPhysicsObject()->getHB();
if (this->m_textOrientation == 0) //left
{
drawStringInBox(this->m_fontIndex, this->m_text, hb->tl, hb->br.x - hb->tl.x, this->m_textSize, this->m_colour);
}
else if (this->m_textOrientation == 1) //center
{
Font *selectFont = source.data(this->m_fontIndex);
glm::dvec2 cursor(hb->tl);
double lineR = hb->br.x; //rightmost boundary
std::string temp = ""; //temporary string used to hold line being printed
for (char c : this->m_text)
{
FontChar character = selectFont->m_characters.at(c);
temp += c;
cursor.x += character.m_advance * this->m_textSize * this->singlePxToWindow.x;
if (cursor.x > lineR)
{
if (c == ' ')
{
cursor.x -= character.m_advance * this->m_textSize * this->singlePxToWindow.x; //undo the cursor move of the ' ' character
//gets width of the line offset (lineR - cursor.x) and adds it to the left most boundary for drawing
drawString(this->m_fontIndex, temp, glm::dvec2(this->m_centeredPosScreen.x - ((cursor.x - hb->tl.x) / 2.0), cursor.y), this->m_textSize, this->m_colour);
//resets some values
cursor.x = hb->tl.x;
cursor.y -= this->m_textSize * this->singlePxToWindow.y;
temp.clear();
}
}
}
if (temp != "")
{
drawString(this->m_fontIndex, temp, glm::dvec2(this->m_centeredPosScreen.x - ((cursor.x - hb->tl.x) / 2.0), cursor.y), this->m_textSize, this->m_colour);
}
}
else //right
{
Font *selectFont = source.data(this->m_fontIndex);
glm::dvec2 cursor(hb->tl);
double lineR = hb->br.x; //rightmost boundary
std::string temp = ""; //temporary string used to hold line being printed
for (char c : this->m_text)
{
FontChar character = selectFont->m_characters.at(c);
temp += c;
cursor.x += character.m_advance * this->m_textSize * this->singlePxToWindow.x;
if (cursor.x > lineR)
{
if (c == ' ')
{
cursor.x -= character.m_advance * this->m_textSize * this->singlePxToWindow.x; //undo the cursor move of the ' ' character
//gets width of the line offset (lineR - cursor.x) and adds it to the left most boundary for drawing
drawString(this->m_fontIndex, temp, glm::dvec2(hb->br.x - cursor.x + hb->tl.x, cursor.y), this->m_textSize, this->m_colour);
//resets some values
cursor.x = hb->tl.x;
cursor.y -= this->m_textSize * this->singlePxToWindow.y;
temp.clear();
}
}
}
if (temp != "")
{
drawString(this->m_fontIndex, temp, glm::dvec2(hb->br.x - cursor.x + hb->tl.x, cursor.y), this->m_textSize, this->m_colour);
}
}
}
/*
accessors
*/
glm::vec4 Text::getColour()
{
return this->m_colour;
}
glm::vec2 Text::getCenteredPos()
{
return this->m_centeredPosScreen;
}
std::string Text::getString()
{
return this->m_text;
}
int Text::getOrientation()
{
return this->m_textOrientation;
}
float Text::getTextSize()
{
return this->m_textSize;
}
int Text::getFontIndex()
{
return this->m_fontIndex;
}
/*
mutators
*/
void Text::setColour(glm::vec4 colour)
{
this->m_colour = colour;
}
void Text::recalculateCenter()
{
//std::string tempName = "PosScreen";
Component* posScreen = this->getComponent(3); //grabs the parent's component and uses the position values from that
FourPoints* hb = posScreen->getPhysicsObject()->getHB();
this->m_centeredPosScreen = (hb->tl + hb->br) / 2.0f;
}
void Text::setString(std::string str)
{
this->m_text = str;
}
void Text::setOrientation(int orientation)
{
this->m_textOrientation = orientation;
if (this->m_textOrientation == 1) //center
{
this->recalculateCenter();
}
}
void Text::setSize(float size)
{
this->m_textSize = size;
}
void Text::setFontIndex(int index)
{
this->m_fontIndex = index;
}
Text::~Text()
{
//dstr
}
/*
end Text object
*/ |
40d941c5144f6919e979b73d20f95230fb803cfc | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_new_hunk_1711.cpp | 0d42027dcccabd0bd943f83a2372b69cbf5d87c1 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 919 | cpp | Kitware_CMake_new_hunk_1711.cpp | }
std::string end_time = ::CurrentTime();
log << "\t<LOCTested>" << total_tested << "</LOCTested>\n"
<< "\t<LOCUntested>" << total_untested << "</LOCUntested>\n"
<< "\t<LOC>" << total_lines << "</LOC>\n"
<< "\t<PercentCoverage>";
log.setf(std::ios::fixed, std::ios::floatfield);
log.precision(2);
log << FIXNUM(percent_coverage)<< "</PercentCoverage>\n"
<< "\t<EndDateTime>" << end_time << "</EndDateTime>\n"
<< "</Coverage>\n"
<< "</Site>" << std::endl;
std::cout << "\tCovered LOC: " << total_tested << std::endl
<< "\tNot covered LOC: " << total_untested << std::endl
<< "\tTotal LOC: " << total_lines << std::endl
<< "\tPercentage Coverage: ";
std::cout.setf(std::ios::fixed, std::ios::floatfield);
std::cout.precision(2);
std::cout << FIXNUM(percent_coverage) << "%" << std::endl;
return 1; |
097b589d3db2aaa23ce020485f5a78221ea319d1 | 9963111a6f2e61a555eb1b84cdb9c4542446f749 | /src/Utils.cpp | bb87d4c82f27b61844821f13c8a01b9f88d612ea | [] | no_license | minsin56/Raytracer | eeaa524378caba8ea5dae33db7173915d21fb101 | 9027cda661170a795a72a1f9ee0c4af4553b5313 | refs/heads/main | 2023-01-10T03:48:58.273754 | 2020-11-07T18:56:03 | 2020-11-07T18:56:03 | 310,184,464 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,162 | cpp | Utils.cpp | #include "Utils.h"
void Utils::SetPixel(SDL_Surface *Surface, int x, int y, Uint32 PixelR,Uint32 PixelG,Uint32 PixelB)
{
uchar* Pixels = (uchar*)Surface->pixels;
for (int c = 0; c < 4; c++)
{
int Color;
if (c == 0)
{
Color = PixelB;
}
else if (c == 1)
{
Color = PixelG;
}
else if (c == 2)
{
Color = PixelR;
}
Pixels[4 * (y * Surface->w + x) + c] = Color;
}
}
void Utils::ClearPixel(SDL_Surface *Surface)
{
for(int x= 0;x<RenderWidth;x++)
{
for(int y = 0;y<RenderHeight;y++)
{
SetPixel(Surface,x,y,100,14,255);
}
}
}
bool Utils::SolveQuadratic(const double &a, const double &b, const double &c, double &x0, double &x1)
{
float discr = b * b - 4 * a * c;
if (discr < 0) return false;
else if (discr == 0) x0 = x1 = - 0.5 * b / a;
else {
float q = (b > 0) ?
-0.5 * (b + sqrt(discr)) :
-0.5 * (b - sqrt(discr));
x0 = q / a;
x1 = c / q;
}
if (x0 > x1) std::swap(x0, x1);
return true;
} |
b6f6706a8c1675f63f2e8e2456b6e214f471c82b | 95e1c65e98a1df9a1ad3852b5908a3038457d4b8 | /code/train.cpp | 41c7e6f43e8ebff8d9d02142b5196808c2e8bc82 | [] | no_license | kkkd1211/GeneNN | a44cba21c6b204bef43777c8575ad6c6b54ea56a | ea83e6828455c26d0be064a3457c7cf4676f9108 | refs/heads/master | 2021-09-11T15:33:07.191981 | 2018-04-09T08:48:59 | 2018-04-09T08:48:59 | 126,015,828 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,692 | cpp | train.cpp | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <string.h>
#include <sys/stat.h>
#include "gene_class.h"
using namespace std;
void SynBox::train(const char type[2],int step)
{
printf("trainning %s...\n",type);
h=5.0;
ln_rate=0.5;
d_rate=0.4/step;
double x[7],xl[4],xr[4];
int i,j,kk,row;
readData(type);
for(i=0;i<step;i++)
{
row=(int)((rand()/2147483647.0)*Nt);
if(kniData[row][0]!=kniData[row][0])
continue;
if(row==Nt-1)
continue;
for(kk=0;kk<Nx;kk++) //kk<Nx
{
j=(int)((rand()/2147483647.0)*Nx);
x[0]=kniData[row][j];
x[1]=hbData[row][j];
x[2]=krData[row][j];
x[3]=gtData[row][j];
x[4]=bcdData[j];
x[5]=nosData[j];
x[6]=tllData[j];
if(j!=0)
{
xl[0]=kniData[row][j-1];
xl[1]=hbData[row][j-1];
xl[2]=krData[row][j-1];
xl[3]=gtData[row][j-1];
}
else if(j==0)
{
xl[0]=-1;
xl[1]=-1;
xl[2]=-1;
xl[3]=-1;
}
if(j!=Nx-1)
{
xr[0]=kniData[row][j+1];
xr[1]=hbData[row][j+1];
xr[2]=krData[row][j+1];
xr[3]=gtData[row][j+1];
}
else if(j==Nx-1)
{
xr[0]=-1;
xr[1]=-1;
xr[2]=-1;
xr[3]=-1;
}
tg[0]=kniData[row+1][j]-kniData[row][j];
tg[1]=hbData[row+1][j]-hbData[row][j];
tg[2]=krData[row+1][j]-krData[row][j];
tg[3]=gtData[row+1][j]-gtData[row][j];
predic(x,xl,xr);
de();
err();
para_update();
}///loop(j) 0 to 100 in one row
ln_rate-=d_rate;
}//loop step(i)
}//train
void SynBox::savePara(int dataNO)
{
FILE *f_para;
char paraFile[50];
int i,j;
sprintf(paraFile,"para/para%d.txt",dataNO);
printf("saving to file:%s...",paraFile);
f_para=fopen(paraFile,"w");
fprintf(f_para,"k:\n");
for(i=0;i<7;i++)
fprintf(f_para,"%f\t",k[i]);
fprintf(f_para,"\nv:\n");
for(i=0;i<7;i++)
{
for(j=0;j<4;j++)
fprintf(f_para,"%f\t",v[i][j]);
fprintf(f_para,"\n");
}
fprintf(f_para,"beta:\n%f\nD:\n%f",beta,D);
fclose(f_para);
printf("done!\n\n");
}//savePara
void SynBox::set(const char file[])
{
printf("\nloading data from \"%s\"...",file);
FILE *fp;
fp=fopen(file,"r");
int i,j;
fscanf(fp,"k:\n");
for(i=0;i<7;i++)
{
fscanf(fp,"%lf\t",&k[i]);
}
fscanf(fp,"\nv:\n");
for(i=0;i<7;i++)
{
for(j=0;j<4;j++)
{
fscanf(fp,"%lf\t",&v[i][j]);
}
fscanf(fp,"\n");
}
fscanf(fp,"beta:\n%lfD:\n%lf",&beta,&D);
fclose(fp);
printf("set finished!\n\npara:\n");
for(i=0;i<7;i++)
printf("%f\t",k[i]);
printf("\n");
for(i=0;i<7;i++)
{
for(j=0;j<4;j++)
{
printf("%f\t",v[i][j]);
}
printf("\n");
}
printf("%f\n\n",beta);
}//set
void SynBox::para_update()
{
int i,j;
for(i=0;i<7;i++)
{
k[i]-=n_ek[i]*h*ln_rate;
if(k[i]<0)
k[i]=k_epsilon;
for(j=0;j<4;j++)
v[i][j]-=n_ev[i][j]*h*ln_rate;
}
beta-=n_eb*h*ln_rate;
if(beta<0)
beta=k_epsilon;
D-=n_eD*h*ln_rate;
if(D<0)
D=k_epsilon;
// ln_rate-=d_rate;
}//para_update
|
4f8c858e496ba86277f332db99d73aae5d181843 | ebd337be89c4c0decb95b55bbf00e380c7a048c1 | /CPP/543. Diameter of Binary Tree.cpp | cba37a1fce57c52f7d49eebd5114f7a981314529 | [] | no_license | congfeng22/Leetcode | 10f8c4baa8e3db07b1e2689628036a43c8dde767 | 1794586f5c4e866f85a56649a65135597e2e6b9f | refs/heads/master | 2022-10-08T20:07:22.125380 | 2022-10-05T01:03:15 | 2022-10-05T01:03:15 | 230,495,878 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,337 | cpp | 543. Diameter of Binary Tree.cpp | using namespace std;
#include <iostream>
#include <vector>
// Definition for a binary tree node.
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode() : val(0), left(nullptr), right(nullptr) {}
TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), left(left), right(right) {}
};
class Solution {
public:
vector<int> helper(TreeNode* root){
// returns [longest to left, diam, longest to right]
vector<int> ret;
if (root == nullptr){
ret.push_back(-1);
ret.push_back(-1);
ret.push_back(-1);
return ret;
} else if (root->left == nullptr && root->right == nullptr){
ret.push_back(0);
ret.push_back(0);
ret.push_back(0);
}
vector<int> left = helper(root->left);
vector<int> right = helper(root->right);
ret.push_back(max(left.at(0), left.at(2)) + 1);
ret.push_back(max(max(max(left.at(0), left.at(2)) + 1 + max(right.at(0), right.at(2)) + 1, left.at(1)), right.at(1)));
ret.push_back(max(right.at(0), right.at(2)) + 1);
return ret;
}
int diameterOfBinaryTree(TreeNode* root) {
vector<int> ans = helper(root);
return ans.at(1);
}
}; |
b1059b720a81774e8a2fe9d2dee13eb38f7d2d7c | 9eb6b554fe5d7c7e68bee47e63e9315904653abe | /ogre/src/server-main.cpp | 4564e341cbc6b56674d3150890cb992c33d13366 | [
"FSFUL",
"MIT"
] | permissive | puyo/moonbase | d189690f477054006739c512285b6d67d8b0e885 | 8793ea84a1a6461efd837a2adced9484fbe6ccef | refs/heads/master | 2021-01-25T12:01:58.931372 | 2013-03-21T22:57:43 | 2013-03-21T22:57:43 | 510,795 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 448 | cpp | server-main.cpp | #include <iostream>
#include "Game.hpp"
using namespace Moonbase;
#ifdef __cplusplus
extern "C" {
#endif
int main(int argc, char *argv[]) {
Game game;
Player::Ptr p1(new AIPlayer);
game.add_player(p1);
Player::Ptr p2(new AIPlayer);
game.add_player(p2);
game.load_map("longcat");
game.start();
game.tick(1);
game.tick(2);
game.tick(2.3);
game.tick(1);
return 0;
}
#ifdef __cplusplus
}
#endif
|
59775018e77368e7545c3add8085a4b9710b8f7f | f16dbbb70e39ca14abdbcf804379985d908d0f14 | /combination-sum-ii/combination-sum-ii.cpp | fef5087496bfc7d63a01832fcf2df0dce45e3ce8 | [] | no_license | oraclesoul/MyLeetCode_Submissions | e3f13e314f2c963466cdc90b1de0c8c32da7db18 | d151f7ffcf653f3ea0d9ccfad6e61019fcd9ef48 | refs/heads/main | 2023-08-16T04:33:58.661200 | 2021-10-13T17:16:44 | 2021-10-13T17:16:44 | 372,715,455 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 734 | cpp | combination-sum-ii.cpp | class Solution {
public:
set<vector<int>>s;
vector<int>v;
void findAllComb(vector<int>&candi,int i,int target)
{
if(target==0)
{
s.insert(v);
return;
}
if(i<0 || target<0) return;
findAllComb(candi,i-1,target);
v.push_back(candi[i]);
findAllComb(candi,i-1,target-candi[i]);
v.pop_back();
return;
}
vector<vector<int>> combinationSum2(vector<int>& candi, int target) {
sort(candi.begin(),candi.end());
findAllComb(candi,candi.size()-1,target);
vector<vector<int>>ans;
for(auto i:s)
ans.push_back(i);
return ans;
}
}; |
bc80bdb1f40d4409f61d8d75df1d924494bcd47c | 7774f5fa84edbe372df5bbb536e8b07b51306681 | /Temp/StagingArea/Data/il2cppOutput/Bulk_System_1.cpp | 84ebb713b976f845be11e96014f88db94f6085b8 | [] | no_license | 1jeffcohen/Mr-Turtle-Breaks-Free | 677f4792b30ac3041e1454e6027a64478ec18a05 | 360506196b46e3b8234cf732230b266e655975e1 | refs/heads/master | 2016-09-01T16:24:29.294516 | 2015-10-08T21:46:23 | 2015-10-08T21:46:23 | 43,917,971 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 463,622 | cpp | Bulk_System_1.cpp | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
struct t900;
struct t905;
struct t907;
struct t834;
struct t796;
struct t552;
struct t15;
struct t797;
struct t14;
struct t911;
struct t912;
struct t913;
struct t181;
struct t182;
struct t914;
struct t17;
struct t306;
struct t915;
struct t921;
struct t672;
struct t920;
struct t926;
struct t918;
struct t928;
struct t603;
struct t387;
struct t908;
struct t916;
struct t320;
struct t917;
struct t936;
struct t919;
struct t955;
struct t922;
struct t923;
struct t924;
struct t925;
struct t927;
struct t929;
struct t930;
struct t931;
struct t932;
struct t933;
struct t934;
struct t937;
struct t781;
struct t737;
struct t938;
struct t942;
struct t784;
struct t705;
struct t787;
struct t947;
#include "class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "t17.h"
#include "t900.h"
#include "t900MD.h"
#include "t18.h"
#include "t896MD.h"
#include "t902MD.h"
#include "t902.h"
#include "t14.h"
#include "t22.h"
#include "t24.h"
#include "t903.h"
#include "t903MD.h"
#include "t904.h"
#include "t904MD.h"
#include "mscorlib_ArrayTypes.h"
#include "t966MD.h"
#include "t15.h"
#include "t966.h"
#include "t905.h"
#include "t905MD.h"
#include "t14MD.h"
#include "t906.h"
#include "t906MD.h"
#include "t907.h"
#include "t907MD.h"
#include "t770.h"
#include "t879MD.h"
#include "t908.h"
#include "t796.h"
#include "t552.h"
#include "t796MD.h"
#include "t15MD.h"
#include "t908MD.h"
#include "t180MD.h"
#include "t888.h"
#include "t889.h"
#include "t180.h"
#include "t890.h"
#include "System_ArrayTypes.h"
#include "t895MD.h"
#include "t894.h"
#include "t17MD.h"
#include "t797.h"
#include "t799MD.h"
#include "t797MD.h"
#include "t880MD.h"
#include "t799.h"
#include "t880.h"
#include "t798MD.h"
#include "t879.h"
#include "t798.h"
#include "t910.h"
#include "t910MD.h"
#include "t911.h"
#include "t911MD.h"
#include "t779MD.h"
#include "t779.h"
#include "t913.h"
#include "t913MD.h"
#include "t196.h"
#include "t538.h"
#include "t182.h"
#include "t914.h"
#include "t914MD.h"
#include "t603MD.h"
#include "t603.h"
#include "t915.h"
#include "t915MD.h"
#include "t672MD.h"
#include "t672.h"
#include "t24MD.h"
#include "t885.h"
#include "t921.h"
#include "t921MD.h"
#include "t535.h"
#include "t920.h"
#include "t926.h"
#include "t387.h"
#include "t922MD.h"
#include "t922.h"
#include "t920MD.h"
#include "t931MD.h"
#include "t934MD.h"
#include "t929MD.h"
#include "t926MD.h"
#include "t930MD.h"
#include "t925MD.h"
#include "t930.h"
#include "t918.h"
#include "t925.h"
#include "t931.h"
#include "t934.h"
#include "t929.h"
#include "t924MD.h"
#include "t928MD.h"
#include "t923MD.h"
#include "t927MD.h"
#include "t928.h"
#include "t923.h"
#include "t924.h"
#include "t927.h"
#include "t933MD.h"
#include "t932MD.h"
#include "t932.h"
#include "t933.h"
#include "t387MD.h"
#include "t954.h"
#include "t343.h"
#include "t916.h"
#include "t916MD.h"
#include "t320MD.h"
#include "t320.h"
#include "t552MD.h"
#include "t917.h"
#include "t917MD.h"
#include "t634MD.h"
#include "t918MD.h"
#include "t936.h"
#include "t936MD.h"
#include "t919.h"
#include "t919MD.h"
#include "t634.h"
#include "t968MD.h"
#include "t969.h"
#include "t969MD.h"
#include "t896.h"
#include "t935MD.h"
#include "t935.h"
#include "t937.h"
#include "t937MD.h"
#include "t938MD.h"
#include "t938.h"
#include "t939.h"
#include "t939MD.h"
#include "t940.h"
#include "t940MD.h"
#include "t781.h"
#include "t781MD.h"
#include "t736.h"
#include "t737.h"
#include "t737MD.h"
#include "t942MD.h"
#include "t944.h"
#include "t942.h"
#include "t945.h"
#include "t833MD.h"
#include "t835MD.h"
#include "t833.h"
#include "t835.h"
#include "t943.h"
#include "t340MD.h"
#include "t340.h"
#include "t545MD.h"
#include "t545.h"
#include "t194MD.h"
#include "t194.h"
#include "t586MD.h"
#include "t586.h"
#include "t744MD.h"
#include "t744.h"
#include "t553MD.h"
#include "t553.h"
#include "t801MD.h"
#include "t768.h"
#include "t768MD.h"
#include "t959.h"
#include "t326MD.h"
#include "t326.h"
#include "t743MD.h"
#include "t943MD.h"
#include "t944MD.h"
#include "t780MD.h"
#include "t945MD.h"
#include "t946.h"
#include "t946MD.h"
#include "t784.h"
#include "t784MD.h"
#include "t785.h"
#include "t705.h"
#include "t787.h"
#include "t947.h"
#include "t947MD.h"
#include "t948.h"
#include "t948MD.h"
#include "t949.h"
#include "t949MD.h"
#include "t950.h"
#include "t950MD.h"
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
extern TypeInfo* t902_TI_var;
extern "C" void m4583 (t900 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t902_TI_var = il2cpp_codegen_type_info_from_index(583);
s_Il2CppMethodIntialized = true;
}
{
m4526(__this, NULL);
t902 * L_0 = (t902 *)il2cpp_codegen_object_new (t902_TI_var);
m4961(L_0, NULL);
__this->f0 = L_0;
return;
}
}
extern "C" void m4584 (t900 * __this, const MethodInfo* method)
{
{
t902 * L_0 = (__this->f0);
t14 * L_1 = (t14 *)VirtFuncInvoker0< t14 * >::Invoke(4 /* System.Object System.Text.RegularExpressions.LinkStack::GetCurrent() */, __this);
VirtActionInvoker1< t14 * >::Invoke(19 /* System.Void System.Collections.Stack::Push(System.Object) */, L_0, L_1);
return;
}
}
extern "C" bool m4585 (t900 * __this, const MethodInfo* method)
{
{
t902 * L_0 = (__this->f0);
int32_t L_1 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(10 /* System.Int32 System.Collections.Stack::get_Count() */, L_0);
if ((((int32_t)L_1) <= ((int32_t)0)))
{
goto IL_0024;
}
}
{
t902 * L_2 = (__this->f0);
t14 * L_3 = (t14 *)VirtFuncInvoker0< t14 * >::Invoke(18 /* System.Object System.Collections.Stack::Pop() */, L_2);
VirtActionInvoker1< t14 * >::Invoke(5 /* System.Void System.Text.RegularExpressions.LinkStack::SetCurrent(System.Object) */, __this, L_3);
return 1;
}
IL_0024:
{
return 0;
}
}
extern "C" bool m4586 (t903 * __this, const MethodInfo* method)
{
int32_t G_B3_0 = 0;
{
int32_t L_0 = (__this->f0);
if ((((int32_t)L_0) < ((int32_t)0)))
{
goto IL_001a;
}
}
{
int32_t L_1 = (__this->f1);
G_B3_0 = ((((int32_t)((((int32_t)L_1) < ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
goto IL_001b;
}
IL_001a:
{
G_B3_0 = 0;
}
IL_001b:
{
return G_B3_0;
}
}
extern "C" int32_t m4587 (t903 * __this, const MethodInfo* method)
{
int32_t G_B3_0 = 0;
{
int32_t L_0 = (__this->f0);
int32_t L_1 = (__this->f1);
if ((((int32_t)L_0) >= ((int32_t)L_1)))
{
goto IL_001c;
}
}
{
int32_t L_2 = (__this->f0);
G_B3_0 = L_2;
goto IL_0022;
}
IL_001c:
{
int32_t L_3 = (__this->f1);
G_B3_0 = L_3;
}
IL_0022:
{
return G_B3_0;
}
}
extern "C" int32_t m4588 (t903 * __this, const MethodInfo* method)
{
int32_t G_B3_0 = 0;
{
int32_t L_0 = (__this->f0);
int32_t L_1 = (__this->f1);
if ((((int32_t)L_0) >= ((int32_t)L_1)))
{
goto IL_0023;
}
}
{
int32_t L_2 = (__this->f1);
int32_t L_3 = (__this->f0);
G_B3_0 = ((int32_t)((int32_t)L_2-(int32_t)L_3));
goto IL_0030;
}
IL_0023:
{
int32_t L_4 = (__this->f0);
int32_t L_5 = (__this->f1);
G_B3_0 = ((int32_t)((int32_t)L_4-(int32_t)L_5));
}
IL_0030:
{
return G_B3_0;
}
}
extern "C" int32_t m4589 (t904 * __this, const MethodInfo* method)
{
int32_t V_0 = 0;
{
t404* L_0 = (__this->f0);
int32_t L_1 = (__this->f1);
int32_t L_2 = ((int32_t)((int32_t)L_1-(int32_t)1));
V_0 = L_2;
__this->f1 = L_2;
int32_t L_3 = V_0;
int32_t L_4 = L_3;
return (*(int32_t*)(int32_t*)SZArrayLdElema(L_0, L_4, sizeof(int32_t)));
}
}
extern TypeInfo* t404_TI_var;
extern "C" void m4590 (t904 * __this, int32_t p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t404_TI_var = il2cpp_codegen_type_info_from_index(479);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
t404* V_1 = {0};
int32_t V_2 = 0;
int32_t V_3 = 0;
{
t404* L_0 = (__this->f0);
if (L_0)
{
goto IL_001c;
}
}
{
__this->f0 = ((t404*)SZArrayNew(t404_TI_var, 8));
goto IL_006e;
}
IL_001c:
{
int32_t L_1 = (__this->f1);
t404* L_2 = (__this->f0);
if ((!(((uint32_t)L_1) == ((uint32_t)(((int32_t)((int32_t)(((t17 *)L_2)->max_length))))))))
{
goto IL_006e;
}
}
{
t404* L_3 = (__this->f0);
V_0 = (((int32_t)((int32_t)(((t17 *)L_3)->max_length))));
int32_t L_4 = V_0;
int32_t L_5 = V_0;
V_0 = ((int32_t)((int32_t)L_4+(int32_t)((int32_t)((int32_t)L_5>>(int32_t)1))));
int32_t L_6 = V_0;
V_1 = ((t404*)SZArrayNew(t404_TI_var, L_6));
V_2 = 0;
goto IL_005b;
}
IL_004c:
{
t404* L_7 = V_1;
int32_t L_8 = V_2;
t404* L_9 = (__this->f0);
int32_t L_10 = V_2;
int32_t L_11 = L_10;
*((int32_t*)(int32_t*)SZArrayLdElema(L_7, L_8, sizeof(int32_t))) = (int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_9, L_11, sizeof(int32_t)));
int32_t L_12 = V_2;
V_2 = ((int32_t)((int32_t)L_12+(int32_t)1));
}
IL_005b:
{
int32_t L_13 = V_2;
int32_t L_14 = (__this->f1);
if ((((int32_t)L_13) < ((int32_t)L_14)))
{
goto IL_004c;
}
}
{
t404* L_15 = V_1;
__this->f0 = L_15;
}
IL_006e:
{
t404* L_16 = (__this->f0);
int32_t L_17 = (__this->f1);
int32_t L_18 = L_17;
V_3 = L_18;
__this->f1 = ((int32_t)((int32_t)L_18+(int32_t)1));
int32_t L_19 = V_3;
int32_t L_20 = p0;
*((int32_t*)(int32_t*)SZArrayLdElema(L_16, L_19, sizeof(int32_t))) = (int32_t)L_20;
return;
}
}
extern "C" int32_t m4591 (t904 * __this, const MethodInfo* method)
{
{
int32_t L_0 = (__this->f1);
return L_0;
}
}
extern TypeInfo* t966_TI_var;
extern Il2CppCodeGenString* _stringLiteral813;
extern "C" void m4592 (t904 * __this, int32_t p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t966_TI_var = il2cpp_codegen_type_info_from_index(557);
_stringLiteral813 = il2cpp_codegen_string_literal_from_index(813);
s_Il2CppMethodIntialized = true;
}
{
int32_t L_0 = p0;
int32_t L_1 = (__this->f1);
if ((((int32_t)L_0) <= ((int32_t)L_1)))
{
goto IL_0017;
}
}
{
t966 * L_2 = (t966 *)il2cpp_codegen_object_new (t966_TI_var);
m4949(L_2, _stringLiteral813, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_2);
}
IL_0017:
{
int32_t L_3 = p0;
__this->f1 = L_3;
return;
}
}
// Conversion methods for marshalling of: System.Text.RegularExpressions.Interpreter/IntStack
extern "C" void t904_marshal(const t904& unmarshaled, t904_marshaled& marshaled)
{
marshaled.f0 = il2cpp_codegen_marshal_array<int32_t>((Il2CppCodeGenArray*)unmarshaled.f0);
marshaled.f1 = unmarshaled.f1;
}
extern TypeInfo* t24_TI_var;
extern "C" void t904_marshal_back(const t904_marshaled& marshaled, t904& unmarshaled)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t24_TI_var = il2cpp_codegen_type_info_from_index(74);
s_Il2CppMethodIntialized = true;
}
unmarshaled.f0 = (t404*)il2cpp_codegen_marshal_array_result(t24_TI_var, marshaled.f0, 1);
unmarshaled.f1 = marshaled.f1;
}
// Conversion method for clean up from marshalling of: System.Text.RegularExpressions.Interpreter/IntStack
extern "C" void t904_marshal_cleanup(t904_marshaled& marshaled)
{
}
extern "C" void m4593 (t905 * __this, t905 * p0, int32_t p1, int32_t p2, bool p3, int32_t p4, const MethodInfo* method)
{
{
m1474(__this, NULL);
t905 * L_0 = p0;
__this->f5 = L_0;
int32_t L_1 = p1;
__this->f1 = L_1;
int32_t L_2 = p2;
__this->f2 = L_2;
bool L_3 = p3;
__this->f3 = L_3;
int32_t L_4 = p4;
__this->f4 = L_4;
__this->f0 = (-1);
__this->f6 = 0;
return;
}
}
extern "C" int32_t m4594 (t905 * __this, const MethodInfo* method)
{
{
int32_t L_0 = (__this->f6);
return L_0;
}
}
extern "C" void m4595 (t905 * __this, int32_t p0, const MethodInfo* method)
{
{
int32_t L_0 = p0;
__this->f6 = L_0;
return;
}
}
extern "C" int32_t m4596 (t905 * __this, const MethodInfo* method)
{
{
int32_t L_0 = (__this->f0);
return L_0;
}
}
extern "C" void m4597 (t905 * __this, int32_t p0, const MethodInfo* method)
{
{
int32_t L_0 = p0;
__this->f0 = L_0;
return;
}
}
extern "C" bool m4598 (t905 * __this, const MethodInfo* method)
{
{
int32_t L_0 = (__this->f1);
int32_t L_1 = (__this->f6);
return ((((int32_t)((((int32_t)L_0) > ((int32_t)L_1))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
extern "C" bool m4599 (t905 * __this, const MethodInfo* method)
{
{
int32_t L_0 = (__this->f2);
int32_t L_1 = (__this->f6);
return ((((int32_t)((((int32_t)L_0) > ((int32_t)L_1))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
extern "C" bool m4600 (t905 * __this, const MethodInfo* method)
{
{
bool L_0 = (__this->f3);
return L_0;
}
}
extern "C" int32_t m4601 (t905 * __this, const MethodInfo* method)
{
{
int32_t L_0 = (__this->f4);
return L_0;
}
}
extern "C" t905 * m4602 (t905 * __this, const MethodInfo* method)
{
{
t905 * L_0 = (__this->f5);
return L_0;
}
}
extern TypeInfo* t904_TI_var;
extern TypeInfo* t404_TI_var;
extern "C" void m4603 (t907 * __this, t834* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t904_TI_var = il2cpp_codegen_type_info_from_index(584);
t404_TI_var = il2cpp_codegen_type_info_from_index(479);
s_Il2CppMethodIntialized = true;
}
t904 V_0 = {0};
{
Initobj (t904_TI_var, (&V_0));
t904 L_0 = V_0;
__this->f11 = L_0;
m4433(__this, NULL);
t834* L_1 = p0;
__this->f1 = L_1;
__this->f7 = (t908 *)NULL;
int32_t L_2 = m4604(__this, 1, NULL);
__this->f5 = ((int32_t)((int32_t)L_2+(int32_t)1));
int32_t L_3 = m4604(__this, 3, NULL);
__this->f6 = L_3;
__this->f2 = 7;
int32_t L_4 = (__this->f5);
__this->f16 = ((t404*)SZArrayNew(t404_TI_var, L_4));
return;
}
}
extern "C" int32_t m4604 (t907 * __this, int32_t p0, const MethodInfo* method)
{
int32_t V_0 = 0;
{
t834* L_0 = (__this->f1);
int32_t L_1 = p0;
int32_t L_2 = ((int32_t)((int32_t)L_1+(int32_t)1));
V_0 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_0, L_2, sizeof(uint16_t)));
int32_t L_3 = V_0;
V_0 = ((int32_t)((int32_t)L_3<<(int32_t)((int32_t)16)));
int32_t L_4 = V_0;
t834* L_5 = (__this->f1);
int32_t L_6 = p0;
int32_t L_7 = L_6;
V_0 = ((int32_t)((int32_t)L_4+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_5, L_7, sizeof(uint16_t)))));
int32_t L_8 = V_0;
return L_8;
}
}
extern TypeInfo* t796_TI_var;
extern "C" t796 * m4605 (t907 * __this, t552 * p0, t15* p1, int32_t p2, int32_t p3, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t796_TI_var = il2cpp_codegen_type_info_from_index(564);
s_Il2CppMethodIntialized = true;
}
{
t15* L_0 = p1;
__this->f3 = L_0;
int32_t L_1 = p3;
__this->f4 = L_1;
int32_t L_2 = p2;
__this->f8 = L_2;
int32_t* L_3 = &(__this->f8);
int32_t L_4 = (__this->f2);
bool L_5 = m4607(__this, 1, L_3, L_4, NULL);
if (!L_5)
{
goto IL_0036;
}
}
{
t552 * L_6 = p0;
t796 * L_7 = m4623(__this, L_6, NULL);
return L_7;
}
IL_0036:
{
IL2CPP_RUNTIME_CLASS_INIT(t796_TI_var);
t796 * L_8 = m4467(NULL, NULL);
return L_8;
}
}
extern "C" void m4606 (t907 * __this, const MethodInfo* method)
{
t905 * V_0 = {0};
{
m4618(__this, NULL);
V_0 = (t905 *)NULL;
__this->f9 = (t905 *)NULL;
t905 * L_0 = V_0;
__this->f10 = L_0;
return;
}
}
extern TypeInfo* t908_TI_var;
extern TypeInfo* t180_TI_var;
extern TypeInfo* t905_TI_var;
extern "C" bool m4607 (t907 * __this, int32_t p0, int32_t* p1, int32_t p2, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t908_TI_var = il2cpp_codegen_type_info_from_index(585);
t180_TI_var = il2cpp_codegen_type_info_from_index(175);
t905_TI_var = il2cpp_codegen_type_info_from_index(586);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
uint16_t V_1 = 0;
uint16_t V_2 = {0};
uint16_t V_3 = {0};
int32_t V_4 = 0;
int32_t V_5 = 0;
bool V_6 = false;
int32_t V_7 = 0;
int32_t V_8 = 0;
int32_t V_9 = 0;
uint16_t V_10 = {0};
bool V_11 = false;
bool V_12 = false;
t15* V_13 = {0};
bool V_14 = false;
bool V_15 = false;
int32_t V_16 = 0;
int32_t V_17 = 0;
uint16_t V_18 = 0x0;
bool V_19 = false;
bool V_20 = false;
int32_t V_21 = 0;
int32_t V_22 = 0;
int32_t V_23 = 0;
int32_t V_24 = 0;
int32_t V_25 = 0;
int32_t V_26 = 0;
int32_t V_27 = 0;
int32_t V_28 = 0;
int32_t V_29 = 0;
int32_t V_30 = 0;
uint16_t V_31 = {0};
int32_t V_32 = 0;
t905 * V_33 = {0};
int32_t V_34 = 0;
int32_t V_35 = 0;
int32_t V_36 = 0;
int32_t V_37 = 0;
int32_t V_38 = 0;
int32_t V_39 = 0;
int32_t V_40 = 0;
int32_t V_41 = 0;
uint16_t V_42 = 0;
int32_t V_43 = 0;
int32_t V_44 = 0;
int32_t V_45 = 0;
uint16_t V_46 = {0};
uint16_t V_47 = {0};
int32_t V_48 = 0;
int32_t V_49 = 0;
int32_t V_50 = 0;
int32_t V_51 = 0;
uint16_t V_52 = {0};
uint16_t V_53 = {0};
int32_t V_54 = {0};
int32_t G_B7_0 = 0;
int32_t G_B29_0 = 0;
int32_t G_B33_0 = 0;
int32_t G_B48_0 = 0;
int32_t G_B69_0 = 0;
int32_t G_B96_0 = 0;
int32_t G_B162_0 = 0;
int32_t G_B162_1 = 0;
t907 * G_B162_2 = {0};
int32_t G_B161_0 = 0;
int32_t G_B161_1 = 0;
t907 * G_B161_2 = {0};
int32_t G_B163_0 = 0;
int32_t G_B163_1 = 0;
int32_t G_B163_2 = 0;
t907 * G_B163_3 = {0};
{
int32_t* L_0 = p1;
V_0 = (*((int32_t*)L_0));
}
IL_0003:
{
goto IL_0fee;
}
IL_0008:
{
t834* L_1 = (__this->f1);
int32_t L_2 = p2;
int32_t L_3 = L_2;
V_1 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_1, L_3, sizeof(uint16_t)));
uint16_t L_4 = V_1;
V_2 = (((int32_t)((uint16_t)((int32_t)((int32_t)L_4&(int32_t)((int32_t)255))))));
uint16_t L_5 = V_1;
V_3 = (((int32_t)((uint16_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)65280))))));
uint16_t L_6 = V_2;
V_52 = L_6;
uint16_t L_7 = V_52;
if (L_7 == 0)
{
goto IL_04b8;
}
if (L_7 == 1)
{
goto IL_04bd;
}
if (L_7 == 2)
{
goto IL_04c2;
}
if (L_7 == 3)
{
goto IL_04e7;
}
if (L_7 == 4)
{
goto IL_05ab;
}
if (L_7 == 5)
{
goto IL_06ef;
}
if (L_7 == 6)
{
goto IL_06ef;
}
if (L_7 == 7)
{
goto IL_06ef;
}
if (L_7 == 8)
{
goto IL_06ef;
}
if (L_7 == 9)
{
goto IL_06ef;
}
if (L_7 == 10)
{
goto IL_070a;
}
if (L_7 == 11)
{
goto IL_073c;
}
if (L_7 == 12)
{
goto IL_0757;
}
if (L_7 == 13)
{
goto IL_07db;
}
if (L_7 == 14)
{
goto IL_0772;
}
if (L_7 == 15)
{
goto IL_07e0;
}
if (L_7 == 16)
{
goto IL_0817;
}
if (L_7 == 17)
{
goto IL_0840;
}
if (L_7 == 18)
{
goto IL_088a;
}
if (L_7 == 19)
{
goto IL_08db;
}
if (L_7 == 20)
{
goto IL_08ee;
}
if (L_7 == 21)
{
goto IL_0957;
}
if (L_7 == 22)
{
goto IL_0c6f;
}
if (L_7 == 23)
{
goto IL_0096;
}
if (L_7 == 24)
{
goto IL_0fe9;
}
}
{
goto IL_0fee;
}
IL_0096:
{
t834* L_8 = (__this->f1);
int32_t L_9 = p2;
int32_t L_10 = ((int32_t)((int32_t)L_9+(int32_t)1));
V_4 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_8, L_10, sizeof(uint16_t)));
t834* L_11 = (__this->f1);
int32_t L_12 = p2;
int32_t L_13 = ((int32_t)((int32_t)L_12+(int32_t)2));
V_5 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_11, L_13, sizeof(uint16_t)));
uint16_t L_14 = V_3;
V_6 = ((((int32_t)((((int32_t)(((int32_t)((uint16_t)((int32_t)((int32_t)L_14&(int32_t)((int32_t)1024))))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_15 = V_6;
if (!L_15)
{
goto IL_00ce;
}
}
{
int32_t L_16 = V_0;
int32_t L_17 = V_5;
G_B7_0 = ((int32_t)((int32_t)L_16-(int32_t)L_17));
goto IL_00d2;
}
IL_00ce:
{
int32_t L_18 = V_0;
int32_t L_19 = V_5;
G_B7_0 = ((int32_t)((int32_t)L_18+(int32_t)L_19));
}
IL_00d2:
{
V_7 = G_B7_0;
int32_t L_20 = (__this->f4);
int32_t L_21 = (__this->f6);
int32_t L_22 = V_5;
V_8 = ((int32_t)((int32_t)((int32_t)((int32_t)L_20-(int32_t)L_21))+(int32_t)L_22));
V_9 = 0;
t834* L_23 = (__this->f1);
int32_t L_24 = p2;
int32_t L_25 = ((int32_t)((int32_t)L_24+(int32_t)3));
V_10 = (((int32_t)((uint16_t)((int32_t)((int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_23, L_25, sizeof(uint16_t)))&(int32_t)((int32_t)255))))));
uint16_t L_26 = V_10;
if ((!(((uint32_t)L_26) == ((uint32_t)2))))
{
goto IL_0285;
}
}
{
int32_t L_27 = V_4;
if ((!(((uint32_t)L_27) == ((uint32_t)6))))
{
goto IL_0285;
}
}
{
t834* L_28 = (__this->f1);
int32_t L_29 = p2;
int32_t L_30 = ((int32_t)((int32_t)L_29+(int32_t)4));
V_53 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_28, L_30, sizeof(uint16_t)));
uint16_t L_31 = V_53;
if (((int32_t)((int32_t)L_31-(int32_t)2)) == 0)
{
goto IL_0132;
}
if (((int32_t)((int32_t)L_31-(int32_t)2)) == 1)
{
goto IL_0165;
}
if (((int32_t)((int32_t)L_31-(int32_t)2)) == 2)
{
goto IL_0234;
}
}
{
goto IL_027b;
}
IL_0132:
{
bool L_32 = V_6;
if (L_32)
{
goto IL_0140;
}
}
{
int32_t L_33 = V_5;
if (L_33)
{
goto IL_0160;
}
}
IL_0140:
{
bool L_34 = V_6;
if (!L_34)
{
goto IL_014a;
}
}
{
int32_t L_35 = V_5;
V_0 = L_35;
}
IL_014a:
{
int32_t L_36 = p2;
int32_t L_37 = V_4;
bool L_38 = m4609(__this, (&V_0), ((int32_t)((int32_t)L_36+(int32_t)L_37)), NULL);
if (!L_38)
{
goto IL_0160;
}
}
{
goto IL_0ff3;
}
IL_0160:
{
goto IL_0280;
}
IL_0165:
{
int32_t L_39 = V_7;
if (L_39)
{
goto IL_018a;
}
}
{
V_0 = 0;
int32_t L_40 = p2;
int32_t L_41 = V_4;
bool L_42 = m4609(__this, (&V_0), ((int32_t)((int32_t)L_40+(int32_t)L_41)), NULL);
if (!L_42)
{
goto IL_0184;
}
}
{
goto IL_0ff3;
}
IL_0184:
{
int32_t L_43 = V_7;
V_7 = ((int32_t)((int32_t)L_43+(int32_t)1));
}
IL_018a:
{
goto IL_0210;
}
IL_018f:
{
int32_t L_44 = V_7;
if (!L_44)
{
goto IL_01ac;
}
}
{
t15* L_45 = (__this->f3);
int32_t L_46 = V_7;
uint16_t L_47 = m1839(L_45, ((int32_t)((int32_t)L_46-(int32_t)1)), NULL);
if ((!(((uint32_t)L_47) == ((uint32_t)((int32_t)10)))))
{
goto IL_01f8;
}
}
IL_01ac:
{
bool L_48 = V_6;
if (!L_48)
{
goto IL_01ce;
}
}
{
int32_t L_49 = V_7;
int32_t L_50 = V_8;
if ((!(((uint32_t)L_49) == ((uint32_t)L_50))))
{
goto IL_01c3;
}
}
{
int32_t L_51 = V_7;
G_B29_0 = L_51;
goto IL_01c8;
}
IL_01c3:
{
int32_t L_52 = V_7;
int32_t L_53 = V_5;
G_B29_0 = ((int32_t)((int32_t)L_52+(int32_t)L_53));
}
IL_01c8:
{
V_0 = G_B29_0;
goto IL_01e2;
}
IL_01ce:
{
int32_t L_54 = V_7;
if (L_54)
{
goto IL_01dc;
}
}
{
int32_t L_55 = V_7;
G_B33_0 = L_55;
goto IL_01e1;
}
IL_01dc:
{
int32_t L_56 = V_7;
int32_t L_57 = V_5;
G_B33_0 = ((int32_t)((int32_t)L_56-(int32_t)L_57));
}
IL_01e1:
{
V_0 = G_B33_0;
}
IL_01e2:
{
int32_t L_58 = p2;
int32_t L_59 = V_4;
bool L_60 = m4609(__this, (&V_0), ((int32_t)((int32_t)L_58+(int32_t)L_59)), NULL);
if (!L_60)
{
goto IL_01f8;
}
}
{
goto IL_0ff3;
}
IL_01f8:
{
bool L_61 = V_6;
if (!L_61)
{
goto IL_020a;
}
}
{
int32_t L_62 = V_7;
V_7 = ((int32_t)((int32_t)L_62-(int32_t)1));
goto IL_0210;
}
IL_020a:
{
int32_t L_63 = V_7;
V_7 = ((int32_t)((int32_t)L_63+(int32_t)1));
}
IL_0210:
{
bool L_64 = V_6;
if (!L_64)
{
goto IL_021f;
}
}
{
int32_t L_65 = V_7;
if ((((int32_t)L_65) >= ((int32_t)0)))
{
goto IL_018f;
}
}
IL_021f:
{
bool L_66 = V_6;
if (L_66)
{
goto IL_022f;
}
}
{
int32_t L_67 = V_7;
int32_t L_68 = V_8;
if ((((int32_t)L_67) <= ((int32_t)L_68)))
{
goto IL_018f;
}
}
IL_022f:
{
goto IL_0280;
}
IL_0234:
{
int32_t L_69 = V_7;
int32_t L_70 = (__this->f8);
if ((!(((uint32_t)L_69) == ((uint32_t)L_70))))
{
goto IL_0276;
}
}
{
bool L_71 = V_6;
if (!L_71)
{
goto IL_0256;
}
}
{
int32_t L_72 = (__this->f8);
int32_t L_73 = V_5;
G_B48_0 = ((int32_t)((int32_t)L_72+(int32_t)L_73));
goto IL_025f;
}
IL_0256:
{
int32_t L_74 = (__this->f8);
int32_t L_75 = V_5;
G_B48_0 = ((int32_t)((int32_t)L_74-(int32_t)L_75));
}
IL_025f:
{
V_0 = G_B48_0;
int32_t L_76 = p2;
int32_t L_77 = V_4;
bool L_78 = m4609(__this, (&V_0), ((int32_t)((int32_t)L_76+(int32_t)L_77)), NULL);
if (!L_78)
{
goto IL_0276;
}
}
{
goto IL_0ff3;
}
IL_0276:
{
goto IL_0280;
}
IL_027b:
{
goto IL_0280;
}
IL_0280:
{
goto IL_04b3;
}
IL_0285:
{
t908 * L_79 = (__this->f7);
if (L_79)
{
goto IL_02ab;
}
}
{
uint16_t L_80 = V_10;
if ((!(((uint32_t)L_80) == ((uint32_t)3))))
{
goto IL_03d2;
}
}
{
int32_t L_81 = V_4;
t834* L_82 = (__this->f1);
int32_t L_83 = p2;
int32_t L_84 = ((int32_t)((int32_t)L_83+(int32_t)4));
if ((!(((uint32_t)L_81) == ((uint32_t)((int32_t)((int32_t)6+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_82, L_84, sizeof(uint16_t)))))))))
{
goto IL_03d2;
}
}
IL_02ab:
{
t834* L_85 = (__this->f1);
int32_t L_86 = p2;
int32_t L_87 = ((int32_t)((int32_t)L_86+(int32_t)3));
V_11 = ((((int32_t)((((int32_t)(((int32_t)((uint16_t)((int32_t)((int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_85, L_87, sizeof(uint16_t)))&(int32_t)((int32_t)1024))))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
t908 * L_88 = (__this->f7);
if (L_88)
{
goto IL_0304;
}
}
{
t834* L_89 = (__this->f1);
int32_t L_90 = p2;
int32_t L_91 = ((int32_t)((int32_t)L_90+(int32_t)3));
V_12 = ((((int32_t)((((int32_t)(((int32_t)((uint16_t)((int32_t)((int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_89, L_91, sizeof(uint16_t)))&(int32_t)((int32_t)512))))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
int32_t L_92 = p2;
t15* L_93 = m4612(__this, ((int32_t)((int32_t)L_92+(int32_t)3)), NULL);
V_13 = L_93;
t15* L_94 = V_13;
bool L_95 = V_12;
bool L_96 = V_11;
t908 * L_97 = (t908 *)il2cpp_codegen_object_new (t908_TI_var);
m4687(L_97, L_94, L_95, L_96, NULL);
__this->f7 = L_97;
}
IL_0304:
{
goto IL_03ad;
}
IL_0309:
{
bool L_98 = V_11;
if (!L_98)
{
goto IL_0344;
}
}
{
t908 * L_99 = (__this->f7);
t15* L_100 = (__this->f3);
int32_t L_101 = V_7;
int32_t L_102 = V_9;
int32_t L_103 = m4690(L_99, L_100, L_101, L_102, NULL);
V_7 = L_103;
int32_t L_104 = V_7;
if ((((int32_t)L_104) == ((int32_t)(-1))))
{
goto IL_033f;
}
}
{
int32_t L_105 = V_7;
t908 * L_106 = (__this->f7);
int32_t L_107 = m4689(L_106, NULL);
V_7 = ((int32_t)((int32_t)L_105+(int32_t)L_107));
}
IL_033f:
{
goto IL_035b;
}
IL_0344:
{
t908 * L_108 = (__this->f7);
t15* L_109 = (__this->f3);
int32_t L_110 = V_7;
int32_t L_111 = V_8;
int32_t L_112 = m4690(L_108, L_109, L_110, L_111, NULL);
V_7 = L_112;
}
IL_035b:
{
int32_t L_113 = V_7;
if ((((int32_t)L_113) >= ((int32_t)0)))
{
goto IL_0368;
}
}
{
goto IL_03cd;
}
IL_0368:
{
bool L_114 = V_11;
if (!L_114)
{
goto IL_0379;
}
}
{
int32_t L_115 = V_7;
int32_t L_116 = V_5;
G_B69_0 = ((int32_t)((int32_t)L_115+(int32_t)L_116));
goto IL_037e;
}
IL_0379:
{
int32_t L_117 = V_7;
int32_t L_118 = V_5;
G_B69_0 = ((int32_t)((int32_t)L_117-(int32_t)L_118));
}
IL_037e:
{
V_0 = G_B69_0;
int32_t L_119 = p2;
int32_t L_120 = V_4;
bool L_121 = m4609(__this, (&V_0), ((int32_t)((int32_t)L_119+(int32_t)L_120)), NULL);
if (!L_121)
{
goto IL_0395;
}
}
{
goto IL_0ff3;
}
IL_0395:
{
bool L_122 = V_11;
if (!L_122)
{
goto IL_03a7;
}
}
{
int32_t L_123 = V_7;
V_7 = ((int32_t)((int32_t)L_123-(int32_t)2));
goto IL_03ad;
}
IL_03a7:
{
int32_t L_124 = V_7;
V_7 = ((int32_t)((int32_t)L_124+(int32_t)1));
}
IL_03ad:
{
bool L_125 = V_6;
if (!L_125)
{
goto IL_03bd;
}
}
{
int32_t L_126 = V_7;
int32_t L_127 = V_9;
if ((((int32_t)L_126) >= ((int32_t)L_127)))
{
goto IL_0309;
}
}
IL_03bd:
{
bool L_128 = V_6;
if (L_128)
{
goto IL_03cd;
}
}
{
int32_t L_129 = V_7;
int32_t L_130 = V_8;
if ((((int32_t)L_129) <= ((int32_t)L_130)))
{
goto IL_0309;
}
}
IL_03cd:
{
goto IL_04b3;
}
IL_03d2:
{
uint16_t L_131 = V_10;
if ((!(((uint32_t)L_131) == ((uint32_t)1))))
{
goto IL_0435;
}
}
{
goto IL_0410;
}
IL_03df:
{
int32_t L_132 = V_7;
V_0 = L_132;
int32_t L_133 = p2;
int32_t L_134 = V_4;
bool L_135 = m4609(__this, (&V_0), ((int32_t)((int32_t)L_133+(int32_t)L_134)), NULL);
if (!L_135)
{
goto IL_03f8;
}
}
{
goto IL_0ff3;
}
IL_03f8:
{
bool L_136 = V_6;
if (!L_136)
{
goto IL_040a;
}
}
{
int32_t L_137 = V_7;
V_7 = ((int32_t)((int32_t)L_137-(int32_t)1));
goto IL_0410;
}
IL_040a:
{
int32_t L_138 = V_7;
V_7 = ((int32_t)((int32_t)L_138+(int32_t)1));
}
IL_0410:
{
bool L_139 = V_6;
if (!L_139)
{
goto IL_0420;
}
}
{
int32_t L_140 = V_7;
int32_t L_141 = V_9;
if ((((int32_t)L_140) >= ((int32_t)L_141)))
{
goto IL_03df;
}
}
IL_0420:
{
bool L_142 = V_6;
if (L_142)
{
goto IL_0430;
}
}
{
int32_t L_143 = V_7;
int32_t L_144 = V_8;
if ((((int32_t)L_143) <= ((int32_t)L_144)))
{
goto IL_03df;
}
}
IL_0430:
{
goto IL_04b3;
}
IL_0435:
{
goto IL_0493;
}
IL_043a:
{
int32_t L_145 = V_7;
V_0 = L_145;
int32_t L_146 = p2;
bool L_147 = m4607(__this, 1, (&V_0), ((int32_t)((int32_t)L_146+(int32_t)3)), NULL);
if (!L_147)
{
goto IL_047b;
}
}
{
bool L_148 = V_6;
if (!L_148)
{
goto IL_045f;
}
}
{
int32_t L_149 = V_7;
int32_t L_150 = V_5;
G_B96_0 = ((int32_t)((int32_t)L_149+(int32_t)L_150));
goto IL_0464;
}
IL_045f:
{
int32_t L_151 = V_7;
int32_t L_152 = V_5;
G_B96_0 = ((int32_t)((int32_t)L_151-(int32_t)L_152));
}
IL_0464:
{
V_0 = G_B96_0;
int32_t L_153 = p2;
int32_t L_154 = V_4;
bool L_155 = m4609(__this, (&V_0), ((int32_t)((int32_t)L_153+(int32_t)L_154)), NULL);
if (!L_155)
{
goto IL_047b;
}
}
{
goto IL_0ff3;
}
IL_047b:
{
bool L_156 = V_6;
if (!L_156)
{
goto IL_048d;
}
}
{
int32_t L_157 = V_7;
V_7 = ((int32_t)((int32_t)L_157-(int32_t)1));
goto IL_0493;
}
IL_048d:
{
int32_t L_158 = V_7;
V_7 = ((int32_t)((int32_t)L_158+(int32_t)1));
}
IL_0493:
{
bool L_159 = V_6;
if (!L_159)
{
goto IL_04a3;
}
}
{
int32_t L_160 = V_7;
int32_t L_161 = V_9;
if ((((int32_t)L_160) >= ((int32_t)L_161)))
{
goto IL_043a;
}
}
IL_04a3:
{
bool L_162 = V_6;
if (L_162)
{
goto IL_04b3;
}
}
{
int32_t L_163 = V_7;
int32_t L_164 = V_8;
if ((((int32_t)L_163) <= ((int32_t)L_164)))
{
goto IL_043a;
}
}
IL_04b3:
{
goto IL_1067;
}
IL_04b8:
{
goto IL_1067;
}
IL_04bd:
{
goto IL_0ff3;
}
IL_04c2:
{
t834* L_165 = (__this->f1);
int32_t L_166 = p2;
int32_t L_167 = ((int32_t)((int32_t)L_166+(int32_t)1));
int32_t L_168 = V_0;
bool L_169 = m4610(__this, (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_165, L_167, sizeof(uint16_t))), L_168, NULL);
if (L_169)
{
goto IL_04dd;
}
}
{
goto IL_1067;
}
IL_04dd:
{
int32_t L_170 = p2;
p2 = ((int32_t)((int32_t)L_170+(int32_t)2));
goto IL_0fee;
}
IL_04e7:
{
uint16_t L_171 = V_3;
V_14 = ((((int32_t)((((int32_t)(((int32_t)((uint16_t)((int32_t)((int32_t)L_171&(int32_t)((int32_t)1024))))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
uint16_t L_172 = V_3;
V_15 = ((((int32_t)((((int32_t)(((int32_t)((uint16_t)((int32_t)((int32_t)L_172&(int32_t)((int32_t)512))))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
t834* L_173 = (__this->f1);
int32_t L_174 = p2;
int32_t L_175 = ((int32_t)((int32_t)L_174+(int32_t)1));
V_16 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_173, L_175, sizeof(uint16_t)));
bool L_176 = V_14;
if (!L_176)
{
goto IL_0530;
}
}
{
int32_t L_177 = V_0;
int32_t L_178 = V_16;
V_0 = ((int32_t)((int32_t)L_177-(int32_t)L_178));
int32_t L_179 = V_0;
if ((((int32_t)L_179) >= ((int32_t)0)))
{
goto IL_052b;
}
}
{
goto IL_1067;
}
IL_052b:
{
goto IL_0544;
}
IL_0530:
{
int32_t L_180 = V_0;
int32_t L_181 = V_16;
int32_t L_182 = (__this->f4);
if ((((int32_t)((int32_t)((int32_t)L_180+(int32_t)L_181))) <= ((int32_t)L_182)))
{
goto IL_0544;
}
}
{
goto IL_1067;
}
IL_0544:
{
int32_t L_183 = p2;
p2 = ((int32_t)((int32_t)L_183+(int32_t)2));
V_17 = 0;
goto IL_0591;
}
IL_0551:
{
t15* L_184 = (__this->f3);
int32_t L_185 = V_0;
int32_t L_186 = V_17;
uint16_t L_187 = m1839(L_184, ((int32_t)((int32_t)L_185+(int32_t)L_186)), NULL);
V_18 = L_187;
bool L_188 = V_15;
if (!L_188)
{
goto IL_0572;
}
}
{
uint16_t L_189 = V_18;
IL2CPP_RUNTIME_CLASS_INIT(t180_TI_var);
uint16_t L_190 = m1894(NULL, L_189, NULL);
V_18 = L_190;
}
IL_0572:
{
uint16_t L_191 = V_18;
t834* L_192 = (__this->f1);
int32_t L_193 = p2;
int32_t L_194 = L_193;
p2 = ((int32_t)((int32_t)L_194+(int32_t)1));
int32_t L_195 = L_194;
if ((((int32_t)L_191) == ((int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_192, L_195, sizeof(uint16_t))))))
{
goto IL_058b;
}
}
{
goto IL_1067;
}
IL_058b:
{
int32_t L_196 = V_17;
V_17 = ((int32_t)((int32_t)L_196+(int32_t)1));
}
IL_0591:
{
int32_t L_197 = V_17;
int32_t L_198 = V_16;
if ((((int32_t)L_197) < ((int32_t)L_198)))
{
goto IL_0551;
}
}
{
bool L_199 = V_14;
if (L_199)
{
goto IL_05a6;
}
}
{
int32_t L_200 = V_0;
int32_t L_201 = V_16;
V_0 = ((int32_t)((int32_t)L_200+(int32_t)L_201));
}
IL_05a6:
{
goto IL_0fee;
}
IL_05ab:
{
uint16_t L_202 = V_3;
V_19 = ((((int32_t)((((int32_t)(((int32_t)((uint16_t)((int32_t)((int32_t)L_202&(int32_t)((int32_t)1024))))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
uint16_t L_203 = V_3;
V_20 = ((((int32_t)((((int32_t)(((int32_t)((uint16_t)((int32_t)((int32_t)L_203&(int32_t)((int32_t)512))))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
t834* L_204 = (__this->f1);
int32_t L_205 = p2;
int32_t L_206 = ((int32_t)((int32_t)L_205+(int32_t)1));
int32_t L_207 = m4619(__this, (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_204, L_206, sizeof(uint16_t))), NULL);
V_21 = L_207;
int32_t L_208 = V_21;
if ((((int32_t)L_208) >= ((int32_t)0)))
{
goto IL_05ea;
}
}
{
goto IL_1067;
}
IL_05ea:
{
t909* L_209 = (__this->f13);
int32_t L_210 = V_21;
int32_t L_211 = m4587(((t903 *)(t903 *)SZArrayLdElema(L_209, L_210, sizeof(t903 ))), NULL);
V_22 = L_211;
t909* L_212 = (__this->f13);
int32_t L_213 = V_21;
int32_t L_214 = m4588(((t903 *)(t903 *)SZArrayLdElema(L_212, L_213, sizeof(t903 ))), NULL);
V_23 = L_214;
bool L_215 = V_19;
if (!L_215)
{
goto IL_062f;
}
}
{
int32_t L_216 = V_0;
int32_t L_217 = V_23;
V_0 = ((int32_t)((int32_t)L_216-(int32_t)L_217));
int32_t L_218 = V_0;
if ((((int32_t)L_218) >= ((int32_t)0)))
{
goto IL_062a;
}
}
{
goto IL_1067;
}
IL_062a:
{
goto IL_0643;
}
IL_062f:
{
int32_t L_219 = V_0;
int32_t L_220 = V_23;
int32_t L_221 = (__this->f4);
if ((((int32_t)((int32_t)((int32_t)L_219+(int32_t)L_220))) <= ((int32_t)L_221)))
{
goto IL_0643;
}
}
{
goto IL_1067;
}
IL_0643:
{
int32_t L_222 = p2;
p2 = ((int32_t)((int32_t)L_222+(int32_t)2));
bool L_223 = V_20;
if (!L_223)
{
goto IL_069e;
}
}
{
V_24 = 0;
goto IL_0690;
}
IL_0657:
{
t15* L_224 = (__this->f3);
int32_t L_225 = V_0;
int32_t L_226 = V_24;
uint16_t L_227 = m1839(L_224, ((int32_t)((int32_t)L_225+(int32_t)L_226)), NULL);
IL2CPP_RUNTIME_CLASS_INIT(t180_TI_var);
uint16_t L_228 = m1894(NULL, L_227, NULL);
t15* L_229 = (__this->f3);
int32_t L_230 = V_22;
int32_t L_231 = V_24;
uint16_t L_232 = m1839(L_229, ((int32_t)((int32_t)L_230+(int32_t)L_231)), NULL);
uint16_t L_233 = m1894(NULL, L_232, NULL);
if ((((int32_t)L_228) == ((int32_t)L_233)))
{
goto IL_068a;
}
}
{
goto IL_1067;
}
IL_068a:
{
int32_t L_234 = V_24;
V_24 = ((int32_t)((int32_t)L_234+(int32_t)1));
}
IL_0690:
{
int32_t L_235 = V_24;
int32_t L_236 = V_23;
if ((((int32_t)L_235) < ((int32_t)L_236)))
{
goto IL_0657;
}
}
{
goto IL_06de;
}
IL_069e:
{
V_25 = 0;
goto IL_06d5;
}
IL_06a6:
{
t15* L_237 = (__this->f3);
int32_t L_238 = V_0;
int32_t L_239 = V_25;
uint16_t L_240 = m1839(L_237, ((int32_t)((int32_t)L_238+(int32_t)L_239)), NULL);
t15* L_241 = (__this->f3);
int32_t L_242 = V_22;
int32_t L_243 = V_25;
uint16_t L_244 = m1839(L_241, ((int32_t)((int32_t)L_242+(int32_t)L_243)), NULL);
if ((((int32_t)L_240) == ((int32_t)L_244)))
{
goto IL_06cf;
}
}
{
goto IL_1067;
}
IL_06cf:
{
int32_t L_245 = V_25;
V_25 = ((int32_t)((int32_t)L_245+(int32_t)1));
}
IL_06d5:
{
int32_t L_246 = V_25;
int32_t L_247 = V_23;
if ((((int32_t)L_246) < ((int32_t)L_247)))
{
goto IL_06a6;
}
}
IL_06de:
{
bool L_248 = V_19;
if (L_248)
{
goto IL_06ea;
}
}
{
int32_t L_249 = V_0;
int32_t L_250 = V_23;
V_0 = ((int32_t)((int32_t)L_249+(int32_t)L_250));
}
IL_06ea:
{
goto IL_0fee;
}
IL_06ef:
{
int32_t L_251 = p0;
bool L_252 = m4608(__this, L_251, (&V_0), (&p2), 0, NULL);
if (L_252)
{
goto IL_0705;
}
}
{
goto IL_1067;
}
IL_0705:
{
goto IL_0fee;
}
IL_070a:
{
int32_t L_253 = p2;
t834* L_254 = (__this->f1);
int32_t L_255 = p2;
int32_t L_256 = ((int32_t)((int32_t)L_255+(int32_t)1));
V_26 = ((int32_t)((int32_t)L_253+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_254, L_256, sizeof(uint16_t)))));
int32_t L_257 = p2;
p2 = ((int32_t)((int32_t)L_257+(int32_t)2));
int32_t L_258 = p0;
bool L_259 = m4608(__this, L_258, (&V_0), (&p2), 1, NULL);
if (L_259)
{
goto IL_0733;
}
}
{
goto IL_1067;
}
IL_0733:
{
int32_t L_260 = V_26;
p2 = L_260;
goto IL_0fee;
}
IL_073c:
{
t834* L_261 = (__this->f1);
int32_t L_262 = p2;
int32_t L_263 = ((int32_t)((int32_t)L_262+(int32_t)1));
int32_t L_264 = V_0;
m4613(__this, (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_261, L_263, sizeof(uint16_t))), L_264, NULL);
int32_t L_265 = p2;
p2 = ((int32_t)((int32_t)L_265+(int32_t)2));
goto IL_0fee;
}
IL_0757:
{
t834* L_266 = (__this->f1);
int32_t L_267 = p2;
int32_t L_268 = ((int32_t)((int32_t)L_267+(int32_t)1));
int32_t L_269 = V_0;
m4614(__this, (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_266, L_268, sizeof(uint16_t))), L_269, NULL);
int32_t L_270 = p2;
p2 = ((int32_t)((int32_t)L_270+(int32_t)2));
goto IL_0fee;
}
IL_0772:
{
int32_t L_271 = V_0;
V_27 = L_271;
int32_t L_272 = p2;
bool L_273 = m4607(__this, 1, (&V_0), ((int32_t)((int32_t)L_272+(int32_t)5)), NULL);
if (L_273)
{
goto IL_078b;
}
}
{
goto IL_1067;
}
IL_078b:
{
t834* L_274 = (__this->f1);
int32_t L_275 = p2;
int32_t L_276 = ((int32_t)((int32_t)L_275+(int32_t)1));
t834* L_277 = (__this->f1);
int32_t L_278 = p2;
int32_t L_279 = ((int32_t)((int32_t)L_278+(int32_t)2));
t834* L_280 = (__this->f1);
int32_t L_281 = p2;
int32_t L_282 = ((int32_t)((int32_t)L_281+(int32_t)3));
G_B161_0 = ((int32_t)((*(uint16_t*)(uint16_t*)SZArrayLdElema(L_277, L_279, sizeof(uint16_t)))));
G_B161_1 = ((int32_t)((*(uint16_t*)(uint16_t*)SZArrayLdElema(L_274, L_276, sizeof(uint16_t)))));
G_B161_2 = __this;
if ((!(((uint32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_280, L_282, sizeof(uint16_t)))) == ((uint32_t)1))))
{
G_B162_0 = ((int32_t)((*(uint16_t*)(uint16_t*)SZArrayLdElema(L_277, L_279, sizeof(uint16_t)))));
G_B162_1 = ((int32_t)((*(uint16_t*)(uint16_t*)SZArrayLdElema(L_274, L_276, sizeof(uint16_t)))));
G_B162_2 = __this;
goto IL_07b6;
}
}
{
G_B163_0 = 1;
G_B163_1 = G_B161_0;
G_B163_2 = G_B161_1;
G_B163_3 = G_B161_2;
goto IL_07b7;
}
IL_07b6:
{
G_B163_0 = 0;
G_B163_1 = G_B162_0;
G_B163_2 = G_B162_1;
G_B163_3 = G_B162_2;
}
IL_07b7:
{
int32_t L_283 = V_27;
bool L_284 = m4615(G_B163_3, G_B163_2, G_B163_1, G_B163_0, L_283, NULL);
if (L_284)
{
goto IL_07c8;
}
}
{
goto IL_1067;
}
IL_07c8:
{
int32_t L_285 = p2;
t834* L_286 = (__this->f1);
int32_t L_287 = p2;
int32_t L_288 = ((int32_t)((int32_t)L_287+(int32_t)4));
p2 = ((int32_t)((int32_t)L_285+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_286, L_288, sizeof(uint16_t)))));
goto IL_0fee;
}
IL_07db:
{
goto IL_0ff3;
}
IL_07e0:
{
t834* L_289 = (__this->f1);
int32_t L_290 = p2;
int32_t L_291 = ((int32_t)((int32_t)L_290+(int32_t)2));
int32_t L_292 = m4619(__this, (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_289, L_291, sizeof(uint16_t))), NULL);
V_28 = L_292;
int32_t L_293 = V_28;
if ((((int32_t)L_293) >= ((int32_t)0)))
{
goto IL_080d;
}
}
{
int32_t L_294 = p2;
t834* L_295 = (__this->f1);
int32_t L_296 = p2;
int32_t L_297 = ((int32_t)((int32_t)L_296+(int32_t)1));
p2 = ((int32_t)((int32_t)L_294+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_295, L_297, sizeof(uint16_t)))));
goto IL_0812;
}
IL_080d:
{
int32_t L_298 = p2;
p2 = ((int32_t)((int32_t)L_298+(int32_t)3));
}
IL_0812:
{
goto IL_0fee;
}
IL_0817:
{
int32_t L_299 = p2;
bool L_300 = m4607(__this, 1, (&V_0), ((int32_t)((int32_t)L_299+(int32_t)2)), NULL);
if (L_300)
{
goto IL_082d;
}
}
{
goto IL_1067;
}
IL_082d:
{
int32_t L_301 = p2;
t834* L_302 = (__this->f1);
int32_t L_303 = p2;
int32_t L_304 = ((int32_t)((int32_t)L_303+(int32_t)1));
p2 = ((int32_t)((int32_t)L_301+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_302, L_304, sizeof(uint16_t)))));
goto IL_0fee;
}
IL_0840:
{
int32_t L_305 = m4616(__this, NULL);
V_29 = L_305;
int32_t L_306 = V_0;
V_30 = L_306;
int32_t L_307 = p2;
bool L_308 = m4607(__this, 1, (&V_30), ((int32_t)((int32_t)L_307+(int32_t)3)), NULL);
if (!L_308)
{
goto IL_086f;
}
}
{
int32_t L_309 = p2;
t834* L_310 = (__this->f1);
int32_t L_311 = p2;
int32_t L_312 = ((int32_t)((int32_t)L_311+(int32_t)1));
p2 = ((int32_t)((int32_t)L_309+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_310, L_312, sizeof(uint16_t)))));
goto IL_0885;
}
IL_086f:
{
int32_t L_313 = V_29;
m4617(__this, L_313, NULL);
int32_t L_314 = p2;
t834* L_315 = (__this->f1);
int32_t L_316 = p2;
int32_t L_317 = ((int32_t)((int32_t)L_316+(int32_t)2));
p2 = ((int32_t)((int32_t)L_314+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_315, L_317, sizeof(uint16_t)))));
}
IL_0885:
{
goto IL_0fee;
}
IL_088a:
{
int32_t L_318 = m4616(__this, NULL);
V_32 = L_318;
int32_t L_319 = p2;
bool L_320 = m4607(__this, 1, (&V_0), ((int32_t)((int32_t)L_319+(int32_t)2)), NULL);
if (!L_320)
{
goto IL_08a8;
}
}
{
goto IL_0ff3;
}
IL_08a8:
{
int32_t L_321 = V_32;
m4617(__this, L_321, NULL);
int32_t L_322 = p2;
t834* L_323 = (__this->f1);
int32_t L_324 = p2;
int32_t L_325 = ((int32_t)((int32_t)L_324+(int32_t)1));
p2 = ((int32_t)((int32_t)L_322+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_323, L_325, sizeof(uint16_t)))));
t834* L_326 = (__this->f1);
int32_t L_327 = p2;
int32_t L_328 = L_327;
V_31 = (((int32_t)((uint16_t)((int32_t)((int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_326, L_328, sizeof(uint16_t)))&(int32_t)((int32_t)255))))));
uint16_t L_329 = V_31;
if (L_329)
{
goto IL_088a;
}
}
{
goto IL_1067;
}
IL_08db:
{
int32_t L_330 = p2;
t834* L_331 = (__this->f1);
int32_t L_332 = p2;
int32_t L_333 = ((int32_t)((int32_t)L_332+(int32_t)1));
p2 = ((int32_t)((int32_t)L_330+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_331, L_333, sizeof(uint16_t)))));
goto IL_0fee;
}
IL_08ee:
{
t905 * L_334 = (__this->f9);
int32_t L_335 = p2;
int32_t L_336 = m4604(__this, ((int32_t)((int32_t)L_335+(int32_t)2)), NULL);
int32_t L_337 = p2;
int32_t L_338 = m4604(__this, ((int32_t)((int32_t)L_337+(int32_t)4)), NULL);
uint16_t L_339 = V_3;
int32_t L_340 = p2;
t905 * L_341 = (t905 *)il2cpp_codegen_object_new (t905_TI_var);
m4593(L_341, L_334, L_336, L_338, ((((int32_t)((((int32_t)(((int32_t)((uint16_t)((int32_t)((int32_t)L_339&(int32_t)((int32_t)2048))))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0), ((int32_t)((int32_t)L_340+(int32_t)6)), NULL);
__this->f9 = L_341;
int32_t L_342 = p2;
t834* L_343 = (__this->f1);
int32_t L_344 = p2;
int32_t L_345 = ((int32_t)((int32_t)L_344+(int32_t)1));
bool L_346 = m4607(__this, 1, (&V_0), ((int32_t)((int32_t)L_342+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_343, L_345, sizeof(uint16_t))))), NULL);
if (!L_346)
{
goto IL_0941;
}
}
{
goto IL_0ff3;
}
IL_0941:
{
t905 * L_347 = (__this->f9);
t905 * L_348 = m4602(L_347, NULL);
__this->f9 = L_348;
goto IL_1067;
}
IL_0957:
{
t905 * L_349 = (__this->f9);
V_33 = L_349;
t905 * L_350 = (__this->f12);
t905 * L_351 = V_33;
if ((!(((t14*)(t905 *)L_350) == ((t14*)(t905 *)L_351))))
{
goto IL_0971;
}
}
{
goto IL_0ff3;
}
IL_0971:
{
t905 * L_352 = V_33;
int32_t L_353 = m4596(L_352, NULL);
V_34 = L_353;
t905 * L_354 = V_33;
int32_t L_355 = m4594(L_354, NULL);
V_35 = L_355;
goto IL_09e5;
}
IL_0988:
{
t905 * L_356 = V_33;
t905 * L_357 = L_356;
int32_t L_358 = m4594(L_357, NULL);
m4595(L_357, ((int32_t)((int32_t)L_358+(int32_t)1)), NULL);
t905 * L_359 = V_33;
int32_t L_360 = V_0;
m4597(L_359, L_360, NULL);
t905 * L_361 = V_33;
__this->f12 = L_361;
t905 * L_362 = V_33;
int32_t L_363 = m4601(L_362, NULL);
bool L_364 = m4607(__this, 1, (&V_0), L_363, NULL);
if (L_364)
{
goto IL_09d3;
}
}
{
t905 * L_365 = V_33;
int32_t L_366 = V_34;
m4597(L_365, L_366, NULL);
t905 * L_367 = V_33;
int32_t L_368 = V_35;
m4595(L_367, L_368, NULL);
goto IL_1067;
}
IL_09d3:
{
t905 * L_369 = (__this->f12);
t905 * L_370 = V_33;
if ((((t14*)(t905 *)L_369) == ((t14*)(t905 *)L_370)))
{
goto IL_09e5;
}
}
{
goto IL_0ff3;
}
IL_09e5:
{
t905 * L_371 = V_33;
bool L_372 = m4598(L_371, NULL);
if (!L_372)
{
goto IL_0988;
}
}
{
int32_t L_373 = V_0;
t905 * L_374 = V_33;
int32_t L_375 = m4596(L_374, NULL);
if ((!(((uint32_t)L_373) == ((uint32_t)L_375))))
{
goto IL_0a35;
}
}
{
t905 * L_376 = V_33;
t905 * L_377 = m4602(L_376, NULL);
__this->f9 = L_377;
__this->f12 = (t905 *)NULL;
int32_t L_378 = p2;
bool L_379 = m4607(__this, 1, (&V_0), ((int32_t)((int32_t)L_378+(int32_t)1)), NULL);
if (!L_379)
{
goto IL_0a28;
}
}
{
goto IL_0ff3;
}
IL_0a28:
{
t905 * L_380 = V_33;
__this->f9 = L_380;
goto IL_1067;
}
IL_0a35:
{
t905 * L_381 = V_33;
bool L_382 = m4600(L_381, NULL);
if (!L_382)
{
goto IL_0b0d;
}
}
{
goto IL_0b08;
}
IL_0a46:
{
t905 * L_383 = V_33;
t905 * L_384 = m4602(L_383, NULL);
__this->f9 = L_384;
__this->f12 = (t905 *)NULL;
int32_t L_385 = m4616(__this, NULL);
V_36 = L_385;
int32_t L_386 = p2;
bool L_387 = m4607(__this, 1, (&V_0), ((int32_t)((int32_t)L_386+(int32_t)1)), NULL);
if (!L_387)
{
goto IL_0a78;
}
}
{
goto IL_0ff3;
}
IL_0a78:
{
int32_t L_388 = V_36;
m4617(__this, L_388, NULL);
t905 * L_389 = V_33;
__this->f9 = L_389;
t905 * L_390 = V_33;
bool L_391 = m4599(L_390, NULL);
if (!L_391)
{
goto IL_0a99;
}
}
{
goto IL_1067;
}
IL_0a99:
{
t905 * L_392 = V_33;
t905 * L_393 = L_392;
int32_t L_394 = m4594(L_393, NULL);
m4595(L_393, ((int32_t)((int32_t)L_394+(int32_t)1)), NULL);
t905 * L_395 = V_33;
int32_t L_396 = V_0;
m4597(L_395, L_396, NULL);
t905 * L_397 = V_33;
__this->f12 = L_397;
t905 * L_398 = V_33;
int32_t L_399 = m4601(L_398, NULL);
bool L_400 = m4607(__this, 1, (&V_0), L_399, NULL);
if (L_400)
{
goto IL_0ae4;
}
}
{
t905 * L_401 = V_33;
int32_t L_402 = V_34;
m4597(L_401, L_402, NULL);
t905 * L_403 = V_33;
int32_t L_404 = V_35;
m4595(L_403, L_404, NULL);
goto IL_1067;
}
IL_0ae4:
{
t905 * L_405 = (__this->f12);
t905 * L_406 = V_33;
if ((((t14*)(t905 *)L_405) == ((t14*)(t905 *)L_406)))
{
goto IL_0af6;
}
}
{
goto IL_0ff3;
}
IL_0af6:
{
int32_t L_407 = V_0;
t905 * L_408 = V_33;
int32_t L_409 = m4596(L_408, NULL);
if ((!(((uint32_t)L_407) == ((uint32_t)L_409))))
{
goto IL_0b08;
}
}
{
goto IL_1067;
}
IL_0b08:
{
goto IL_0a46;
}
IL_0b0d:
{
t904 * L_410 = &(__this->f11);
int32_t L_411 = m4591(L_410, NULL);
V_37 = L_411;
goto IL_0bd7;
}
IL_0b1f:
{
int32_t L_412 = m4616(__this, NULL);
V_38 = L_412;
int32_t L_413 = V_0;
V_39 = L_413;
t905 * L_414 = V_33;
int32_t L_415 = m4596(L_414, NULL);
V_40 = L_415;
t905 * L_416 = V_33;
t905 * L_417 = L_416;
int32_t L_418 = m4594(L_417, NULL);
m4595(L_417, ((int32_t)((int32_t)L_418+(int32_t)1)), NULL);
t905 * L_419 = V_33;
int32_t L_420 = V_0;
m4597(L_419, L_420, NULL);
t905 * L_421 = V_33;
__this->f12 = L_421;
t905 * L_422 = V_33;
int32_t L_423 = m4601(L_422, NULL);
bool L_424 = m4607(__this, 1, (&V_0), L_423, NULL);
if (L_424)
{
goto IL_0b8c;
}
}
{
t905 * L_425 = V_33;
t905 * L_426 = L_425;
int32_t L_427 = m4594(L_426, NULL);
m4595(L_426, ((int32_t)((int32_t)L_427-(int32_t)1)), NULL);
t905 * L_428 = V_33;
int32_t L_429 = V_40;
m4597(L_428, L_429, NULL);
int32_t L_430 = V_38;
m4617(__this, L_430, NULL);
goto IL_0be3;
}
IL_0b8c:
{
t905 * L_431 = (__this->f12);
t905 * L_432 = V_33;
if ((((t14*)(t905 *)L_431) == ((t14*)(t905 *)L_432)))
{
goto IL_0bab;
}
}
{
t904 * L_433 = &(__this->f11);
int32_t L_434 = V_37;
m4592(L_433, L_434, NULL);
goto IL_0ff3;
}
IL_0bab:
{
t904 * L_435 = &(__this->f11);
int32_t L_436 = V_38;
m4590(L_435, L_436, NULL);
t904 * L_437 = &(__this->f11);
int32_t L_438 = V_39;
m4590(L_437, L_438, NULL);
int32_t L_439 = V_0;
t905 * L_440 = V_33;
int32_t L_441 = m4596(L_440, NULL);
if ((!(((uint32_t)L_439) == ((uint32_t)L_441))))
{
goto IL_0bd7;
}
}
{
goto IL_0be3;
}
IL_0bd7:
{
t905 * L_442 = V_33;
bool L_443 = m4599(L_442, NULL);
if (!L_443)
{
goto IL_0b1f;
}
}
IL_0be3:
{
t905 * L_444 = V_33;
t905 * L_445 = m4602(L_444, NULL);
__this->f9 = L_445;
goto IL_0c6a;
}
IL_0bf5:
{
__this->f12 = (t905 *)NULL;
int32_t L_446 = p2;
bool L_447 = m4607(__this, 1, (&V_0), ((int32_t)((int32_t)L_446+(int32_t)1)), NULL);
if (!L_447)
{
goto IL_0c1f;
}
}
{
t904 * L_448 = &(__this->f11);
int32_t L_449 = V_37;
m4592(L_448, L_449, NULL);
goto IL_0ff3;
}
IL_0c1f:
{
t904 * L_450 = &(__this->f11);
int32_t L_451 = m4591(L_450, NULL);
int32_t L_452 = V_37;
if ((!(((uint32_t)L_451) == ((uint32_t)L_452))))
{
goto IL_0c3e;
}
}
{
t905 * L_453 = V_33;
__this->f9 = L_453;
goto IL_1067;
}
IL_0c3e:
{
t905 * L_454 = V_33;
t905 * L_455 = L_454;
int32_t L_456 = m4594(L_455, NULL);
m4595(L_455, ((int32_t)((int32_t)L_456-(int32_t)1)), NULL);
t904 * L_457 = &(__this->f11);
int32_t L_458 = m4589(L_457, NULL);
V_0 = L_458;
t904 * L_459 = &(__this->f11);
int32_t L_460 = m4589(L_459, NULL);
m4617(__this, L_460, NULL);
}
IL_0c6a:
{
goto IL_0bf5;
}
IL_0c6f:
{
t905 * L_461 = (__this->f10);
int32_t L_462 = p2;
int32_t L_463 = m4604(__this, ((int32_t)((int32_t)L_462+(int32_t)2)), NULL);
int32_t L_464 = p2;
int32_t L_465 = m4604(__this, ((int32_t)((int32_t)L_464+(int32_t)4)), NULL);
uint16_t L_466 = V_3;
int32_t L_467 = p2;
t905 * L_468 = (t905 *)il2cpp_codegen_object_new (t905_TI_var);
m4593(L_468, L_461, L_463, L_465, ((((int32_t)((((int32_t)(((int32_t)((uint16_t)((int32_t)((int32_t)L_466&(int32_t)((int32_t)2048))))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0), ((int32_t)((int32_t)L_467+(int32_t)6)), NULL);
__this->f10 = L_468;
t905 * L_469 = (__this->f10);
int32_t L_470 = V_0;
m4597(L_469, L_470, NULL);
int32_t L_471 = m4616(__this, NULL);
V_41 = L_471;
int32_t L_472 = p2;
t834* L_473 = (__this->f1);
int32_t L_474 = p2;
int32_t L_475 = ((int32_t)((int32_t)L_474+(int32_t)1));
p2 = ((int32_t)((int32_t)L_472+(int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_473, L_475, sizeof(uint16_t)))));
t834* L_476 = (__this->f1);
int32_t L_477 = p2;
int32_t L_478 = L_477;
V_42 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_476, L_478, sizeof(uint16_t)));
V_43 = (-1);
V_44 = (-1);
V_45 = 0;
uint16_t L_479 = V_42;
V_46 = (((int32_t)((uint16_t)((int32_t)((int32_t)L_479&(int32_t)((int32_t)255))))));
uint16_t L_480 = V_46;
if ((((int32_t)L_480) == ((int32_t)5)))
{
goto IL_0cf3;
}
}
{
uint16_t L_481 = V_46;
if ((!(((uint32_t)L_481) == ((uint32_t)3))))
{
goto IL_0d92;
}
}
IL_0cf3:
{
uint16_t L_482 = V_42;
V_47 = (((int32_t)((uint16_t)((int32_t)((int32_t)L_482&(int32_t)((int32_t)65280))))));
uint16_t L_483 = V_47;
if (!(((int32_t)((uint16_t)((int32_t)((int32_t)L_483&(int32_t)((int32_t)256)))))))
{
goto IL_0d11;
}
}
{
goto IL_0d92;
}
IL_0d11:
{
uint16_t L_484 = V_46;
if ((!(((uint32_t)L_484) == ((uint32_t)3))))
{
goto IL_0d4c;
}
}
{
V_48 = 0;
uint16_t L_485 = V_47;
if (!(((int32_t)((uint16_t)((int32_t)((int32_t)L_485&(int32_t)((int32_t)1024)))))))
{
goto IL_0d38;
}
}
{
t834* L_486 = (__this->f1);
int32_t L_487 = p2;
int32_t L_488 = ((int32_t)((int32_t)L_487+(int32_t)1));
V_48 = ((int32_t)((int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_486, L_488, sizeof(uint16_t)))-(int32_t)1));
}
IL_0d38:
{
t834* L_489 = (__this->f1);
int32_t L_490 = p2;
int32_t L_491 = V_48;
int32_t L_492 = ((int32_t)((int32_t)((int32_t)((int32_t)L_490+(int32_t)2))+(int32_t)L_491));
V_43 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_489, L_492, sizeof(uint16_t)));
goto IL_0d58;
}
IL_0d4c:
{
t834* L_493 = (__this->f1);
int32_t L_494 = p2;
int32_t L_495 = ((int32_t)((int32_t)L_494+(int32_t)1));
V_43 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_493, L_495, sizeof(uint16_t)));
}
IL_0d58:
{
uint16_t L_496 = V_47;
if (!(((int32_t)((uint16_t)((int32_t)((int32_t)L_496&(int32_t)((int32_t)512)))))))
{
goto IL_0d75;
}
}
{
int32_t L_497 = V_43;
IL2CPP_RUNTIME_CLASS_INIT(t180_TI_var);
uint16_t L_498 = m1892(NULL, (((int32_t)((uint16_t)L_497))), NULL);
V_44 = L_498;
goto IL_0d79;
}
IL_0d75:
{
int32_t L_499 = V_43;
V_44 = L_499;
}
IL_0d79:
{
uint16_t L_500 = V_47;
if (!(((int32_t)((uint16_t)((int32_t)((int32_t)L_500&(int32_t)((int32_t)1024)))))))
{
goto IL_0d8f;
}
}
{
V_45 = (-1);
goto IL_0d92;
}
IL_0d8f:
{
V_45 = 0;
}
IL_0d92:
{
t905 * L_501 = (__this->f10);
bool L_502 = m4600(L_501, NULL);
if (!L_502)
{
goto IL_0ebf;
}
}
{
t905 * L_503 = (__this->f10);
bool L_504 = m4598(L_503, NULL);
if (L_504)
{
goto IL_0de1;
}
}
{
t905 * L_505 = (__this->f10);
int32_t L_506 = m4601(L_505, NULL);
bool L_507 = m4607(__this, 2, (&V_0), L_506, NULL);
if (L_507)
{
goto IL_0de1;
}
}
{
t905 * L_508 = (__this->f10);
t905 * L_509 = m4602(L_508, NULL);
__this->f10 = L_509;
goto IL_1067;
}
IL_0de1:
{
int32_t L_510 = V_0;
int32_t L_511 = V_45;
V_49 = ((int32_t)((int32_t)L_510+(int32_t)L_511));
int32_t L_512 = V_43;
if ((((int32_t)L_512) < ((int32_t)0)))
{
goto IL_0e2c;
}
}
{
int32_t L_513 = V_49;
if ((((int32_t)L_513) < ((int32_t)0)))
{
goto IL_0e47;
}
}
{
int32_t L_514 = V_49;
int32_t L_515 = (__this->f4);
if ((((int32_t)L_514) >= ((int32_t)L_515)))
{
goto IL_0e47;
}
}
{
int32_t L_516 = V_43;
t15* L_517 = (__this->f3);
int32_t L_518 = V_49;
uint16_t L_519 = m1839(L_517, L_518, NULL);
if ((((int32_t)L_516) == ((int32_t)L_519)))
{
goto IL_0e2c;
}
}
{
int32_t L_520 = V_44;
t15* L_521 = (__this->f3);
int32_t L_522 = V_49;
uint16_t L_523 = m1839(L_521, L_522, NULL);
if ((!(((uint32_t)L_520) == ((uint32_t)L_523))))
{
goto IL_0e47;
}
}
IL_0e2c:
{
__this->f12 = (t905 *)NULL;
int32_t L_524 = p2;
bool L_525 = m4607(__this, 1, (&V_0), L_524, NULL);
if (!L_525)
{
goto IL_0e47;
}
}
{
goto IL_0ea9;
}
IL_0e47:
{
t905 * L_526 = (__this->f10);
bool L_527 = m4599(L_526, NULL);
if (!L_527)
{
goto IL_0e6d;
}
}
{
t905 * L_528 = (__this->f10);
t905 * L_529 = m4602(L_528, NULL);
__this->f10 = L_529;
goto IL_1067;
}
IL_0e6d:
{
int32_t L_530 = V_41;
m4617(__this, L_530, NULL);
t905 * L_531 = (__this->f10);
int32_t L_532 = m4601(L_531, NULL);
bool L_533 = m4607(__this, 2, (&V_0), L_532, NULL);
if (L_533)
{
goto IL_0ea4;
}
}
{
t905 * L_534 = (__this->f10);
t905 * L_535 = m4602(L_534, NULL);
__this->f10 = L_535;
goto IL_1067;
}
IL_0ea4:
{
goto IL_0de1;
}
IL_0ea9:
{
t905 * L_536 = (__this->f10);
t905 * L_537 = m4602(L_536, NULL);
__this->f10 = L_537;
goto IL_0ff3;
}
IL_0ebf:
{
t905 * L_538 = (__this->f10);
int32_t L_539 = m4601(L_538, NULL);
bool L_540 = m4607(__this, 2, (&V_0), L_539, NULL);
if (L_540)
{
goto IL_0eee;
}
}
{
t905 * L_541 = (__this->f10);
t905 * L_542 = m4602(L_541, NULL);
__this->f10 = L_542;
goto IL_1067;
}
IL_0eee:
{
t905 * L_543 = (__this->f10);
int32_t L_544 = m4594(L_543, NULL);
if ((((int32_t)L_544) <= ((int32_t)0)))
{
goto IL_0f1f;
}
}
{
int32_t L_545 = V_0;
t905 * L_546 = (__this->f10);
int32_t L_547 = m4596(L_546, NULL);
t905 * L_548 = (__this->f10);
int32_t L_549 = m4594(L_548, NULL);
V_50 = ((int32_t)((int32_t)((int32_t)((int32_t)L_545-(int32_t)L_547))/(int32_t)L_549));
goto IL_0f22;
}
IL_0f1f:
{
V_50 = 0;
}
IL_0f22:
{
int32_t L_550 = V_0;
int32_t L_551 = V_45;
V_51 = ((int32_t)((int32_t)L_550+(int32_t)L_551));
int32_t L_552 = V_43;
if ((((int32_t)L_552) < ((int32_t)0)))
{
goto IL_0f6d;
}
}
{
int32_t L_553 = V_51;
if ((((int32_t)L_553) < ((int32_t)0)))
{
goto IL_0f88;
}
}
{
int32_t L_554 = V_51;
int32_t L_555 = (__this->f4);
if ((((int32_t)L_554) >= ((int32_t)L_555)))
{
goto IL_0f88;
}
}
{
int32_t L_556 = V_43;
t15* L_557 = (__this->f3);
int32_t L_558 = V_51;
uint16_t L_559 = m1839(L_557, L_558, NULL);
if ((((int32_t)L_556) == ((int32_t)L_559)))
{
goto IL_0f6d;
}
}
{
int32_t L_560 = V_44;
t15* L_561 = (__this->f3);
int32_t L_562 = V_51;
uint16_t L_563 = m1839(L_561, L_562, NULL);
if ((!(((uint32_t)L_560) == ((uint32_t)L_563))))
{
goto IL_0f88;
}
}
IL_0f6d:
{
__this->f12 = (t905 *)NULL;
int32_t L_564 = p2;
bool L_565 = m4607(__this, 1, (&V_0), L_564, NULL);
if (!L_565)
{
goto IL_0f88;
}
}
{
goto IL_0fd3;
}
IL_0f88:
{
t905 * L_566 = (__this->f10);
t905 * L_567 = L_566;
int32_t L_568 = m4594(L_567, NULL);
m4595(L_567, ((int32_t)((int32_t)L_568-(int32_t)1)), NULL);
t905 * L_569 = (__this->f10);
bool L_570 = m4598(L_569, NULL);
if (L_570)
{
goto IL_0fc1;
}
}
{
t905 * L_571 = (__this->f10);
t905 * L_572 = m4602(L_571, NULL);
__this->f10 = L_572;
goto IL_1067;
}
IL_0fc1:
{
int32_t L_573 = V_0;
int32_t L_574 = V_50;
V_0 = ((int32_t)((int32_t)L_573-(int32_t)L_574));
int32_t L_575 = V_41;
m4617(__this, L_575, NULL);
goto IL_0f22;
}
IL_0fd3:
{
t905 * L_576 = (__this->f10);
t905 * L_577 = m4602(L_576, NULL);
__this->f10 = L_577;
goto IL_0ff3;
}
IL_0fe9:
{
goto IL_1067;
}
IL_0fee:
{
goto IL_0008;
}
IL_0ff3:
{
int32_t* L_578 = p1;
int32_t L_579 = V_0;
*((int32_t*)(L_578)) = (int32_t)L_579;
int32_t L_580 = p0;
V_54 = L_580;
int32_t L_581 = V_54;
if ((((int32_t)L_581) == ((int32_t)1)))
{
goto IL_100e;
}
}
{
int32_t L_582 = V_54;
if ((((int32_t)L_582) == ((int32_t)2)))
{
goto IL_1010;
}
}
{
goto IL_1067;
}
IL_100e:
{
return 1;
}
IL_1010:
{
t905 * L_583 = (__this->f10);
t905 * L_584 = L_583;
int32_t L_585 = m4594(L_584, NULL);
m4595(L_584, ((int32_t)((int32_t)L_585+(int32_t)1)), NULL);
t905 * L_586 = (__this->f10);
bool L_587 = m4599(L_586, NULL);
if (L_587)
{
goto IL_1053;
}
}
{
t905 * L_588 = (__this->f10);
bool L_589 = m4600(L_588, NULL);
if (!L_589)
{
goto IL_1055;
}
}
{
t905 * L_590 = (__this->f10);
bool L_591 = m4598(L_590, NULL);
if (!L_591)
{
goto IL_1055;
}
}
IL_1053:
{
return 1;
}
IL_1055:
{
t905 * L_592 = (__this->f10);
int32_t L_593 = m4601(L_592, NULL);
p2 = L_593;
goto IL_0003;
}
IL_1067:
{
int32_t L_594 = p0;
V_54 = L_594;
int32_t L_595 = V_54;
if ((((int32_t)L_595) == ((int32_t)1)))
{
goto IL_107f;
}
}
{
int32_t L_596 = V_54;
if ((((int32_t)L_596) == ((int32_t)2)))
{
goto IL_1081;
}
}
{
goto IL_10b2;
}
IL_107f:
{
return 0;
}
IL_1081:
{
t905 * L_597 = (__this->f10);
bool L_598 = m4600(L_597, NULL);
if (L_598)
{
goto IL_10a3;
}
}
{
t905 * L_599 = (__this->f10);
bool L_600 = m4598(L_599, NULL);
if (!L_600)
{
goto IL_10a3;
}
}
{
return 1;
}
IL_10a3:
{
int32_t* L_601 = p1;
t905 * L_602 = (__this->f10);
int32_t L_603 = m4596(L_602, NULL);
*((int32_t*)(L_601)) = (int32_t)L_603;
return 0;
}
IL_10b2:
{
return 0;
}
}
extern TypeInfo* t180_TI_var;
extern "C" bool m4608 (t907 * __this, int32_t p0, int32_t* p1, int32_t* p2, bool p3, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t180_TI_var = il2cpp_codegen_type_info_from_index(175);
s_Il2CppMethodIntialized = true;
}
bool V_0 = false;
uint16_t V_1 = 0x0;
bool V_2 = false;
bool V_3 = false;
uint16_t V_4 = 0;
uint16_t V_5 = {0};
uint16_t V_6 = {0};
int32_t V_7 = 0;
int32_t V_8 = 0;
int32_t V_9 = 0;
int32_t V_10 = 0;
int32_t V_11 = 0;
int32_t V_12 = 0;
int32_t V_13 = 0;
uint16_t V_14 = {0};
{
V_0 = 0;
V_1 = 0;
}
IL_0004:
{
t834* L_0 = (__this->f1);
int32_t* L_1 = p2;
int32_t L_2 = (*((int32_t*)L_1));
V_4 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_0, L_2, sizeof(uint16_t)));
uint16_t L_3 = V_4;
V_5 = (((int32_t)((uint16_t)((int32_t)((int32_t)L_3&(int32_t)((int32_t)255))))));
uint16_t L_4 = V_4;
V_6 = (((int32_t)((uint16_t)((int32_t)((int32_t)L_4&(int32_t)((int32_t)65280))))));
int32_t* L_5 = p2;
int32_t* L_6 = p2;
*((int32_t*)(L_5)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_6))+(int32_t)1));
uint16_t L_7 = V_6;
V_3 = ((((int32_t)((((int32_t)(((int32_t)((uint16_t)((int32_t)((int32_t)L_7&(int32_t)((int32_t)512))))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_8 = V_0;
if (L_8)
{
goto IL_00aa;
}
}
{
uint16_t L_9 = V_6;
if (!(((int32_t)((uint16_t)((int32_t)((int32_t)L_9&(int32_t)((int32_t)1024)))))))
{
goto IL_0075;
}
}
{
int32_t* L_10 = p1;
if ((((int32_t)(*((int32_t*)L_10))) > ((int32_t)0)))
{
goto IL_0059;
}
}
{
return 0;
}
IL_0059:
{
t15* L_11 = (__this->f3);
int32_t* L_12 = p1;
int32_t* L_13 = p1;
int32_t L_14 = ((int32_t)((int32_t)(*((int32_t*)L_13))-(int32_t)1));
V_13 = L_14;
*((int32_t*)(L_12)) = (int32_t)L_14;
int32_t L_15 = V_13;
uint16_t L_16 = m1839(L_11, L_15, NULL);
V_1 = L_16;
goto IL_009b;
}
IL_0075:
{
int32_t* L_17 = p1;
int32_t L_18 = (__this->f4);
if ((((int32_t)(*((int32_t*)L_17))) < ((int32_t)L_18)))
{
goto IL_0084;
}
}
{
return 0;
}
IL_0084:
{
t15* L_19 = (__this->f3);
int32_t* L_20 = p1;
int32_t* L_21 = p1;
int32_t L_22 = (*((int32_t*)L_21));
V_13 = L_22;
*((int32_t*)(L_20)) = (int32_t)((int32_t)((int32_t)L_22+(int32_t)1));
int32_t L_23 = V_13;
uint16_t L_24 = m1839(L_19, L_23, NULL);
V_1 = L_24;
}
IL_009b:
{
bool L_25 = V_3;
if (!L_25)
{
goto IL_00a8;
}
}
{
uint16_t L_26 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(t180_TI_var);
uint16_t L_27 = m1894(NULL, L_26, NULL);
V_1 = L_27;
}
IL_00a8:
{
V_0 = 1;
}
IL_00aa:
{
uint16_t L_28 = V_6;
V_2 = ((((int32_t)((((int32_t)(((int32_t)((uint16_t)((int32_t)((int32_t)L_28&(int32_t)((int32_t)256))))))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
uint16_t L_29 = V_5;
V_14 = L_29;
uint16_t L_30 = V_14;
if (L_30 == 0)
{
goto IL_00f4;
}
if (L_30 == 1)
{
goto IL_00f2;
}
if (L_30 == 2)
{
goto IL_0221;
}
if (L_30 == 3)
{
goto IL_0221;
}
if (L_30 == 4)
{
goto IL_0221;
}
if (L_30 == 5)
{
goto IL_00f6;
}
if (L_30 == 6)
{
goto IL_0118;
}
if (L_30 == 7)
{
goto IL_013f;
}
if (L_30 == 8)
{
goto IL_0166;
}
if (L_30 == 9)
{
goto IL_01a8;
}
}
{
goto IL_0221;
}
IL_00f2:
{
return 1;
}
IL_00f4:
{
return 0;
}
IL_00f6:
{
uint16_t L_31 = V_1;
t834* L_32 = (__this->f1);
int32_t* L_33 = p2;
int32_t* L_34 = p2;
int32_t L_35 = (*((int32_t*)L_34));
V_13 = L_35;
*((int32_t*)(L_33)) = (int32_t)((int32_t)((int32_t)L_35+(int32_t)1));
int32_t L_36 = V_13;
int32_t L_37 = L_36;
if ((!(((uint32_t)L_31) == ((uint32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_32, L_37, sizeof(uint16_t)))))))
{
goto IL_0113;
}
}
{
bool L_38 = V_2;
return ((((int32_t)L_38) == ((int32_t)0))? 1 : 0);
}
IL_0113:
{
goto IL_0221;
}
IL_0118:
{
t834* L_39 = (__this->f1);
int32_t* L_40 = p2;
int32_t* L_41 = p2;
int32_t L_42 = (*((int32_t*)L_41));
V_13 = L_42;
*((int32_t*)(L_40)) = (int32_t)((int32_t)((int32_t)L_42+(int32_t)1));
int32_t L_43 = V_13;
int32_t L_44 = L_43;
uint16_t L_45 = V_1;
bool L_46 = m4524(NULL, (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_39, L_44, sizeof(uint16_t))), L_45, NULL);
if (!L_46)
{
goto IL_013a;
}
}
{
bool L_47 = V_2;
return ((((int32_t)L_47) == ((int32_t)0))? 1 : 0);
}
IL_013a:
{
goto IL_0221;
}
IL_013f:
{
t834* L_48 = (__this->f1);
int32_t* L_49 = p2;
int32_t* L_50 = p2;
int32_t L_51 = (*((int32_t*)L_50));
V_13 = L_51;
*((int32_t*)(L_49)) = (int32_t)((int32_t)((int32_t)L_51+(int32_t)1));
int32_t L_52 = V_13;
int32_t L_53 = L_52;
uint16_t L_54 = V_1;
bool L_55 = m4524(NULL, (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_48, L_53, sizeof(uint16_t))), L_54, NULL);
if (L_55)
{
goto IL_0161;
}
}
{
bool L_56 = V_2;
return ((((int32_t)L_56) == ((int32_t)0))? 1 : 0);
}
IL_0161:
{
goto IL_0221;
}
IL_0166:
{
t834* L_57 = (__this->f1);
int32_t* L_58 = p2;
int32_t* L_59 = p2;
int32_t L_60 = (*((int32_t*)L_59));
V_13 = L_60;
*((int32_t*)(L_58)) = (int32_t)((int32_t)((int32_t)L_60+(int32_t)1));
int32_t L_61 = V_13;
int32_t L_62 = L_61;
V_7 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_57, L_62, sizeof(uint16_t)));
t834* L_63 = (__this->f1);
int32_t* L_64 = p2;
int32_t* L_65 = p2;
int32_t L_66 = (*((int32_t*)L_65));
V_13 = L_66;
*((int32_t*)(L_64)) = (int32_t)((int32_t)((int32_t)L_66+(int32_t)1));
int32_t L_67 = V_13;
int32_t L_68 = L_67;
V_8 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_63, L_68, sizeof(uint16_t)));
int32_t L_69 = V_7;
uint16_t L_70 = V_1;
if ((((int32_t)L_69) > ((int32_t)L_70)))
{
goto IL_01a3;
}
}
{
uint16_t L_71 = V_1;
int32_t L_72 = V_8;
if ((((int32_t)L_71) > ((int32_t)L_72)))
{
goto IL_01a3;
}
}
{
bool L_73 = V_2;
return ((((int32_t)L_73) == ((int32_t)0))? 1 : 0);
}
IL_01a3:
{
goto IL_0221;
}
IL_01a8:
{
t834* L_74 = (__this->f1);
int32_t* L_75 = p2;
int32_t* L_76 = p2;
int32_t L_77 = (*((int32_t*)L_76));
V_13 = L_77;
*((int32_t*)(L_75)) = (int32_t)((int32_t)((int32_t)L_77+(int32_t)1));
int32_t L_78 = V_13;
int32_t L_79 = L_78;
V_9 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_74, L_79, sizeof(uint16_t)));
t834* L_80 = (__this->f1);
int32_t* L_81 = p2;
int32_t* L_82 = p2;
int32_t L_83 = (*((int32_t*)L_82));
V_13 = L_83;
*((int32_t*)(L_81)) = (int32_t)((int32_t)((int32_t)L_83+(int32_t)1));
int32_t L_84 = V_13;
int32_t L_85 = L_84;
V_10 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_80, L_85, sizeof(uint16_t)));
int32_t* L_86 = p2;
V_11 = (*((int32_t*)L_86));
int32_t* L_87 = p2;
int32_t* L_88 = p2;
int32_t L_89 = V_10;
*((int32_t*)(L_87)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_88))+(int32_t)L_89));
uint16_t L_90 = V_1;
int32_t L_91 = V_9;
V_12 = ((int32_t)((int32_t)L_90-(int32_t)L_91));
int32_t L_92 = V_12;
if ((((int32_t)L_92) < ((int32_t)0)))
{
goto IL_01f4;
}
}
{
int32_t L_93 = V_12;
int32_t L_94 = V_10;
if ((((int32_t)L_93) < ((int32_t)((int32_t)((int32_t)L_94<<(int32_t)4)))))
{
goto IL_01f9;
}
}
IL_01f4:
{
goto IL_0221;
}
IL_01f9:
{
t834* L_95 = (__this->f1);
int32_t L_96 = V_11;
int32_t L_97 = V_12;
int32_t L_98 = ((int32_t)((int32_t)L_96+(int32_t)((int32_t)((int32_t)L_97>>(int32_t)4))));
int32_t L_99 = V_12;
if (!((int32_t)((int32_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_95, L_98, sizeof(uint16_t)))&(int32_t)((int32_t)((int32_t)1<<(int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_99&(int32_t)((int32_t)15)))&(int32_t)((int32_t)31))))))))
{
goto IL_021c;
}
}
{
bool L_100 = V_2;
return ((((int32_t)L_100) == ((int32_t)0))? 1 : 0);
}
IL_021c:
{
goto IL_0221;
}
IL_0221:
{
bool L_101 = p3;
if (L_101)
{
goto IL_0004;
}
}
{
bool L_102 = V_2;
return L_102;
}
}
extern "C" bool m4609 (t907 * __this, int32_t* p0, int32_t p1, const MethodInfo* method)
{
int32_t V_0 = 0;
{
m4606(__this, NULL);
int32_t* L_0 = p0;
V_0 = (*((int32_t*)L_0));
t909* L_1 = (__this->f13);
t404* L_2 = (__this->f16);
int32_t L_3 = 0;
int32_t L_4 = V_0;
((t903 *)(t903 *)SZArrayLdElema(L_1, (*(int32_t*)(int32_t*)SZArrayLdElema(L_2, L_3, sizeof(int32_t))), sizeof(t903 )))->f0 = L_4;
int32_t L_5 = p1;
bool L_6 = m4607(__this, 1, (&V_0), L_5, NULL);
if (!L_6)
{
goto IL_004f;
}
}
{
t909* L_7 = (__this->f13);
t404* L_8 = (__this->f16);
int32_t L_9 = 0;
int32_t L_10 = V_0;
((t903 *)(t903 *)SZArrayLdElema(L_7, (*(int32_t*)(int32_t*)SZArrayLdElema(L_8, L_9, sizeof(int32_t))), sizeof(t903 )))->f1 = L_10;
int32_t* L_11 = p0;
int32_t L_12 = V_0;
*((int32_t*)(L_11)) = (int32_t)L_12;
return 1;
}
IL_004f:
{
return 0;
}
}
extern "C" bool m4610 (t907 * __this, uint16_t p0, int32_t p1, const MethodInfo* method)
{
uint16_t V_0 = {0};
int32_t G_B6_0 = 0;
int32_t G_B12_0 = 0;
int32_t G_B14_0 = 0;
int32_t G_B18_0 = 0;
{
uint16_t L_0 = p0;
V_0 = L_0;
uint16_t L_1 = V_0;
if (((int32_t)((int32_t)L_1-(int32_t)1)) == 0)
{
goto IL_0033;
}
if (((int32_t)((int32_t)L_1-(int32_t)1)) == 1)
{
goto IL_0033;
}
if (((int32_t)((int32_t)L_1-(int32_t)1)) == 2)
{
goto IL_0038;
}
if (((int32_t)((int32_t)L_1-(int32_t)1)) == 3)
{
goto IL_0054;
}
if (((int32_t)((int32_t)L_1-(int32_t)1)) == 4)
{
goto IL_005e;
}
if (((int32_t)((int32_t)L_1-(int32_t)1)) == 5)
{
goto IL_00af;
}
if (((int32_t)((int32_t)L_1-(int32_t)1)) == 6)
{
goto IL_008f;
}
if (((int32_t)((int32_t)L_1-(int32_t)1)) == 7)
{
goto IL_00b9;
}
if (((int32_t)((int32_t)L_1-(int32_t)1)) == 8)
{
goto IL_012c;
}
}
{
goto IL_01a2;
}
IL_0033:
{
int32_t L_2 = p1;
return ((((int32_t)L_2) == ((int32_t)0))? 1 : 0);
}
IL_0038:
{
int32_t L_3 = p1;
if (!L_3)
{
goto IL_0052;
}
}
{
t15* L_4 = (__this->f3);
int32_t L_5 = p1;
uint16_t L_6 = m1839(L_4, ((int32_t)((int32_t)L_5-(int32_t)1)), NULL);
G_B6_0 = ((((int32_t)L_6) == ((int32_t)((int32_t)10)))? 1 : 0);
goto IL_0053;
}
IL_0052:
{
G_B6_0 = 1;
}
IL_0053:
{
return G_B6_0;
}
IL_0054:
{
int32_t L_7 = p1;
int32_t L_8 = (__this->f8);
return ((((int32_t)L_7) == ((int32_t)L_8))? 1 : 0);
}
IL_005e:
{
int32_t L_9 = p1;
int32_t L_10 = (__this->f4);
if ((((int32_t)L_9) == ((int32_t)L_10)))
{
goto IL_008d;
}
}
{
int32_t L_11 = p1;
int32_t L_12 = (__this->f4);
if ((!(((uint32_t)L_11) == ((uint32_t)((int32_t)((int32_t)L_12-(int32_t)1))))))
{
goto IL_008a;
}
}
{
t15* L_13 = (__this->f3);
int32_t L_14 = p1;
uint16_t L_15 = m1839(L_13, L_14, NULL);
G_B12_0 = ((((int32_t)L_15) == ((int32_t)((int32_t)10)))? 1 : 0);
goto IL_008b;
}
IL_008a:
{
G_B12_0 = 0;
}
IL_008b:
{
G_B14_0 = G_B12_0;
goto IL_008e;
}
IL_008d:
{
G_B14_0 = 1;
}
IL_008e:
{
return G_B14_0;
}
IL_008f:
{
int32_t L_16 = p1;
int32_t L_17 = (__this->f4);
if ((((int32_t)L_16) == ((int32_t)L_17)))
{
goto IL_00ad;
}
}
{
t15* L_18 = (__this->f3);
int32_t L_19 = p1;
uint16_t L_20 = m1839(L_18, L_19, NULL);
G_B18_0 = ((((int32_t)L_20) == ((int32_t)((int32_t)10)))? 1 : 0);
goto IL_00ae;
}
IL_00ad:
{
G_B18_0 = 1;
}
IL_00ae:
{
return G_B18_0;
}
IL_00af:
{
int32_t L_21 = p1;
int32_t L_22 = (__this->f4);
return ((((int32_t)L_21) == ((int32_t)L_22))? 1 : 0);
}
IL_00b9:
{
int32_t L_23 = (__this->f4);
if (L_23)
{
goto IL_00c6;
}
}
{
return 0;
}
IL_00c6:
{
int32_t L_24 = p1;
if (L_24)
{
goto IL_00df;
}
}
{
t15* L_25 = (__this->f3);
int32_t L_26 = p1;
uint16_t L_27 = m1839(L_25, L_26, NULL);
bool L_28 = m4611(__this, L_27, NULL);
return L_28;
}
IL_00df:
{
int32_t L_29 = p1;
int32_t L_30 = (__this->f4);
if ((!(((uint32_t)L_29) == ((uint32_t)L_30))))
{
goto IL_0100;
}
}
{
t15* L_31 = (__this->f3);
int32_t L_32 = p1;
uint16_t L_33 = m1839(L_31, ((int32_t)((int32_t)L_32-(int32_t)1)), NULL);
bool L_34 = m4611(__this, L_33, NULL);
return L_34;
}
IL_0100:
{
t15* L_35 = (__this->f3);
int32_t L_36 = p1;
uint16_t L_37 = m1839(L_35, L_36, NULL);
bool L_38 = m4611(__this, L_37, NULL);
t15* L_39 = (__this->f3);
int32_t L_40 = p1;
uint16_t L_41 = m1839(L_39, ((int32_t)((int32_t)L_40-(int32_t)1)), NULL);
bool L_42 = m4611(__this, L_41, NULL);
return ((((int32_t)((((int32_t)L_38) == ((int32_t)L_42))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
IL_012c:
{
int32_t L_43 = (__this->f4);
if (L_43)
{
goto IL_0139;
}
}
{
return 0;
}
IL_0139:
{
int32_t L_44 = p1;
if (L_44)
{
goto IL_0155;
}
}
{
t15* L_45 = (__this->f3);
int32_t L_46 = p1;
uint16_t L_47 = m1839(L_45, L_46, NULL);
bool L_48 = m4611(__this, L_47, NULL);
return ((((int32_t)L_48) == ((int32_t)0))? 1 : 0);
}
IL_0155:
{
int32_t L_49 = p1;
int32_t L_50 = (__this->f4);
if ((!(((uint32_t)L_49) == ((uint32_t)L_50))))
{
goto IL_0179;
}
}
{
t15* L_51 = (__this->f3);
int32_t L_52 = p1;
uint16_t L_53 = m1839(L_51, ((int32_t)((int32_t)L_52-(int32_t)1)), NULL);
bool L_54 = m4611(__this, L_53, NULL);
return ((((int32_t)L_54) == ((int32_t)0))? 1 : 0);
}
IL_0179:
{
t15* L_55 = (__this->f3);
int32_t L_56 = p1;
uint16_t L_57 = m1839(L_55, L_56, NULL);
bool L_58 = m4611(__this, L_57, NULL);
t15* L_59 = (__this->f3);
int32_t L_60 = p1;
uint16_t L_61 = m1839(L_59, ((int32_t)((int32_t)L_60-(int32_t)1)), NULL);
bool L_62 = m4611(__this, L_61, NULL);
return ((((int32_t)L_58) == ((int32_t)L_62))? 1 : 0);
}
IL_01a2:
{
return 0;
}
}
extern "C" bool m4611 (t907 * __this, uint16_t p0, const MethodInfo* method)
{
{
uint16_t L_0 = p0;
bool L_1 = m4524(NULL, 3, L_0, NULL);
return L_1;
}
}
extern TypeInfo* t193_TI_var;
extern TypeInfo* t15_TI_var;
extern "C" t15* m4612 (t907 * __this, int32_t p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t193_TI_var = il2cpp_codegen_type_info_from_index(179);
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
t193* V_2 = {0};
int32_t V_3 = 0;
{
t834* L_0 = (__this->f1);
int32_t L_1 = p0;
int32_t L_2 = ((int32_t)((int32_t)L_1+(int32_t)1));
V_0 = (*(uint16_t*)(uint16_t*)SZArrayLdElema(L_0, L_2, sizeof(uint16_t)));
int32_t L_3 = p0;
V_1 = ((int32_t)((int32_t)L_3+(int32_t)2));
int32_t L_4 = V_0;
V_2 = ((t193*)SZArrayNew(t193_TI_var, L_4));
V_3 = 0;
goto IL_0030;
}
IL_001d:
{
t193* L_5 = V_2;
int32_t L_6 = V_3;
t834* L_7 = (__this->f1);
int32_t L_8 = V_1;
int32_t L_9 = L_8;
V_1 = ((int32_t)((int32_t)L_9+(int32_t)1));
int32_t L_10 = L_9;
*((uint16_t*)(uint16_t*)SZArrayLdElema(L_5, L_6, sizeof(uint16_t))) = (uint16_t)(*(uint16_t*)(uint16_t*)SZArrayLdElema(L_7, L_10, sizeof(uint16_t)));
int32_t L_11 = V_3;
V_3 = ((int32_t)((int32_t)L_11+(int32_t)1));
}
IL_0030:
{
int32_t L_12 = V_3;
int32_t L_13 = V_0;
if ((((int32_t)L_12) < ((int32_t)L_13)))
{
goto IL_001d;
}
}
{
t193* L_14 = V_2;
t15* L_15 = (t15*)il2cpp_codegen_object_new (t15_TI_var);
L_15 = m4962(L_15, L_14, NULL);
return L_15;
}
}
extern "C" void m4613 (t907 * __this, int32_t p0, int32_t p1, const MethodInfo* method)
{
int32_t V_0 = 0;
{
t404* L_0 = (__this->f16);
int32_t L_1 = p0;
int32_t L_2 = L_1;
V_0 = (*(int32_t*)(int32_t*)SZArrayLdElema(L_0, L_2, sizeof(int32_t)));
int32_t L_3 = V_0;
int32_t L_4 = (__this->f14);
if ((((int32_t)L_3) < ((int32_t)L_4)))
{
goto IL_002b;
}
}
{
t909* L_5 = (__this->f13);
int32_t L_6 = V_0;
bool L_7 = m4586(((t903 *)(t903 *)SZArrayLdElema(L_5, L_6, sizeof(t903 ))), NULL);
if (!L_7)
{
goto IL_003c;
}
}
IL_002b:
{
int32_t L_8 = V_0;
int32_t L_9 = m4620(__this, L_8, NULL);
V_0 = L_9;
t404* L_10 = (__this->f16);
int32_t L_11 = p0;
int32_t L_12 = V_0;
*((int32_t*)(int32_t*)SZArrayLdElema(L_10, L_11, sizeof(int32_t))) = (int32_t)L_12;
}
IL_003c:
{
t909* L_13 = (__this->f13);
int32_t L_14 = V_0;
int32_t L_15 = p1;
((t903 *)(t903 *)SZArrayLdElema(L_13, L_14, sizeof(t903 )))->f0 = L_15;
return;
}
}
extern "C" void m4614 (t907 * __this, int32_t p0, int32_t p1, const MethodInfo* method)
{
{
t909* L_0 = (__this->f13);
t404* L_1 = (__this->f16);
int32_t L_2 = p0;
int32_t L_3 = L_2;
int32_t L_4 = p1;
((t903 *)(t903 *)SZArrayLdElema(L_0, (*(int32_t*)(int32_t*)SZArrayLdElema(L_1, L_3, sizeof(int32_t))), sizeof(t903 )))->f1 = L_4;
return;
}
}
extern "C" bool m4615 (t907 * __this, int32_t p0, int32_t p1, bool p2, int32_t p3, const MethodInfo* method)
{
int32_t V_0 = 0;
{
t404* L_0 = (__this->f16);
int32_t L_1 = p1;
int32_t L_2 = L_1;
V_0 = (*(int32_t*)(int32_t*)SZArrayLdElema(L_0, L_2, sizeof(int32_t)));
int32_t L_3 = V_0;
if ((((int32_t)L_3) == ((int32_t)(-1))))
{
goto IL_0027;
}
}
{
t909* L_4 = (__this->f13);
int32_t L_5 = V_0;
int32_t L_6 = m4587(((t903 *)(t903 *)SZArrayLdElema(L_4, L_5, sizeof(t903 ))), NULL);
if ((((int32_t)L_6) >= ((int32_t)0)))
{
goto IL_0029;
}
}
IL_0027:
{
return 0;
}
IL_0029:
{
int32_t L_7 = p0;
if ((((int32_t)L_7) <= ((int32_t)0)))
{
goto IL_0069;
}
}
{
bool L_8 = p2;
if (!L_8)
{
goto IL_0069;
}
}
{
int32_t L_9 = p0;
t909* L_10 = (__this->f13);
int32_t L_11 = V_0;
int32_t L_12 = m4587(((t903 *)(t903 *)SZArrayLdElema(L_10, L_11, sizeof(t903 ))), NULL);
t909* L_13 = (__this->f13);
int32_t L_14 = V_0;
int32_t L_15 = m4588(((t903 *)(t903 *)SZArrayLdElema(L_13, L_14, sizeof(t903 ))), NULL);
m4613(__this, L_9, ((int32_t)((int32_t)L_12+(int32_t)L_15)), NULL);
int32_t L_16 = p0;
int32_t L_17 = p3;
m4614(__this, L_16, L_17, NULL);
}
IL_0069:
{
t404* L_18 = (__this->f16);
int32_t L_19 = p1;
t909* L_20 = (__this->f13);
int32_t L_21 = V_0;
int32_t L_22 = (((t903 *)(t903 *)SZArrayLdElema(L_20, L_21, sizeof(t903 )))->f2);
*((int32_t*)(int32_t*)SZArrayLdElema(L_18, L_19, sizeof(int32_t))) = (int32_t)L_22;
return 1;
}
}
extern "C" int32_t m4616 (t907 * __this, const MethodInfo* method)
{
{
int32_t L_0 = (__this->f15);
__this->f14 = L_0;
int32_t L_1 = (__this->f14);
return L_1;
}
}
extern "C" void m4617 (t907 * __this, int32_t p0, const MethodInfo* method)
{
int32_t V_0 = 0;
int32_t V_1 = 0;
{
V_0 = 0;
goto IL_003b;
}
IL_0007:
{
t404* L_0 = (__this->f16);
int32_t L_1 = V_0;
int32_t L_2 = L_1;
V_1 = (*(int32_t*)(int32_t*)SZArrayLdElema(L_0, L_2, sizeof(int32_t)));
goto IL_0027;
}
IL_0015:
{
t909* L_3 = (__this->f13);
int32_t L_4 = V_1;
int32_t L_5 = (((t903 *)(t903 *)SZArrayLdElema(L_3, L_4, sizeof(t903 )))->f2);
V_1 = L_5;
}
IL_0027:
{
int32_t L_6 = p0;
int32_t L_7 = V_1;
if ((((int32_t)L_6) <= ((int32_t)L_7)))
{
goto IL_0015;
}
}
{
t404* L_8 = (__this->f16);
int32_t L_9 = V_0;
int32_t L_10 = V_1;
*((int32_t*)(int32_t*)SZArrayLdElema(L_8, L_9, sizeof(int32_t))) = (int32_t)L_10;
int32_t L_11 = V_0;
V_0 = ((int32_t)((int32_t)L_11+(int32_t)1));
}
IL_003b:
{
int32_t L_12 = V_0;
t404* L_13 = (__this->f16);
if ((((int32_t)L_12) < ((int32_t)(((int32_t)((int32_t)(((t17 *)L_13)->max_length)))))))
{
goto IL_0007;
}
}
{
return;
}
}
extern TypeInfo* t909_TI_var;
extern "C" void m4618 (t907 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t909_TI_var = il2cpp_codegen_type_info_from_index(587);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
{
t404* L_0 = (__this->f16);
V_0 = (((int32_t)((int32_t)(((t17 *)L_0)->max_length))));
t909* L_1 = (__this->f13);
if (L_1)
{
goto IL_0023;
}
}
{
int32_t L_2 = V_0;
__this->f13 = ((t909*)SZArrayNew(t909_TI_var, ((int32_t)((int32_t)L_2*(int32_t)((int32_t)10)))));
}
IL_0023:
{
V_1 = 0;
goto IL_006d;
}
IL_002a:
{
t404* L_3 = (__this->f16);
int32_t L_4 = V_1;
int32_t L_5 = V_1;
*((int32_t*)(int32_t*)SZArrayLdElema(L_3, L_4, sizeof(int32_t))) = (int32_t)L_5;
t909* L_6 = (__this->f13);
int32_t L_7 = V_1;
((t903 *)(t903 *)SZArrayLdElema(L_6, L_7, sizeof(t903 )))->f0 = (-1);
t909* L_8 = (__this->f13);
int32_t L_9 = V_1;
((t903 *)(t903 *)SZArrayLdElema(L_8, L_9, sizeof(t903 )))->f1 = (-1);
t909* L_10 = (__this->f13);
int32_t L_11 = V_1;
((t903 *)(t903 *)SZArrayLdElema(L_10, L_11, sizeof(t903 )))->f2 = (-1);
int32_t L_12 = V_1;
V_1 = ((int32_t)((int32_t)L_12+(int32_t)1));
}
IL_006d:
{
int32_t L_13 = V_1;
int32_t L_14 = V_0;
if ((((int32_t)L_13) < ((int32_t)L_14)))
{
goto IL_002a;
}
}
{
__this->f14 = 0;
int32_t L_15 = V_0;
__this->f15 = L_15;
return;
}
}
extern "C" int32_t m4619 (t907 * __this, int32_t p0, const MethodInfo* method)
{
int32_t V_0 = 0;
{
t404* L_0 = (__this->f16);
int32_t L_1 = p0;
int32_t L_2 = L_1;
V_0 = (*(int32_t*)(int32_t*)SZArrayLdElema(L_0, L_2, sizeof(int32_t)));
goto IL_0020;
}
IL_000e:
{
t909* L_3 = (__this->f13);
int32_t L_4 = V_0;
int32_t L_5 = (((t903 *)(t903 *)SZArrayLdElema(L_3, L_4, sizeof(t903 )))->f2);
V_0 = L_5;
}
IL_0020:
{
int32_t L_6 = V_0;
if ((((int32_t)L_6) < ((int32_t)0)))
{
goto IL_003d;
}
}
{
t909* L_7 = (__this->f13);
int32_t L_8 = V_0;
bool L_9 = m4586(((t903 *)(t903 *)SZArrayLdElema(L_7, L_8, sizeof(t903 ))), NULL);
if (!L_9)
{
goto IL_000e;
}
}
IL_003d:
{
int32_t L_10 = V_0;
return L_10;
}
}
extern TypeInfo* t909_TI_var;
extern "C" int32_t m4620 (t907 * __this, int32_t p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t909_TI_var = il2cpp_codegen_type_info_from_index(587);
s_Il2CppMethodIntialized = true;
}
t909* V_0 = {0};
int32_t V_1 = 0;
int32_t V_2 = 0;
{
int32_t L_0 = (__this->f15);
t909* L_1 = (__this->f13);
if ((!(((uint32_t)L_0) == ((uint32_t)(((int32_t)((int32_t)(((t17 *)L_1)->max_length))))))))
{
goto IL_0037;
}
}
{
t909* L_2 = (__this->f13);
V_0 = ((t909*)SZArrayNew(t909_TI_var, ((int32_t)((int32_t)(((int32_t)((int32_t)(((t17 *)L_2)->max_length))))*(int32_t)2))));
t909* L_3 = (__this->f13);
t909* L_4 = V_0;
VirtActionInvoker2< t17 *, int32_t >::Invoke(9 /* System.Void System.Array::CopyTo(System.Array,System.Int32) */, L_3, (t17 *)(t17 *)L_4, 0);
t909* L_5 = V_0;
__this->f13 = L_5;
}
IL_0037:
{
int32_t L_6 = (__this->f15);
int32_t L_7 = L_6;
V_2 = L_7;
__this->f15 = ((int32_t)((int32_t)L_7+(int32_t)1));
int32_t L_8 = V_2;
V_1 = L_8;
t909* L_9 = (__this->f13);
int32_t L_10 = V_1;
t909* L_11 = (__this->f13);
int32_t L_12 = V_1;
int32_t L_13 = (-1);
V_2 = L_13;
((t903 *)(t903 *)SZArrayLdElema(L_11, L_12, sizeof(t903 )))->f1 = L_13;
int32_t L_14 = V_2;
((t903 *)(t903 *)SZArrayLdElema(L_9, L_10, sizeof(t903 )))->f0 = L_14;
t909* L_15 = (__this->f13);
int32_t L_16 = V_1;
int32_t L_17 = p0;
((t903 *)(t903 *)SZArrayLdElema(L_15, L_16, sizeof(t903 )))->f2 = L_17;
int32_t L_18 = V_1;
return L_18;
}
}
extern "C" void m4621 (t907 * __this, int32_t p0, int32_t* p1, int32_t* p2, const MethodInfo* method)
{
int32_t V_0 = 0;
{
int32_t* L_0 = p1;
*((int32_t*)(L_0)) = (int32_t)(-1);
int32_t* L_1 = p2;
*((int32_t*)(L_1)) = (int32_t)0;
t404* L_2 = (__this->f16);
int32_t L_3 = p0;
int32_t L_4 = L_3;
V_0 = (*(int32_t*)(int32_t*)SZArrayLdElema(L_2, L_4, sizeof(int32_t)));
goto IL_0052;
}
IL_0014:
{
t909* L_5 = (__this->f13);
int32_t L_6 = V_0;
bool L_7 = m4586(((t903 *)(t903 *)SZArrayLdElema(L_5, L_6, sizeof(t903 ))), NULL);
if (L_7)
{
goto IL_002f;
}
}
{
goto IL_0040;
}
IL_002f:
{
int32_t* L_8 = p1;
if ((((int32_t)(*((int32_t*)L_8))) >= ((int32_t)0)))
{
goto IL_003a;
}
}
{
int32_t* L_9 = p1;
int32_t L_10 = V_0;
*((int32_t*)(L_9)) = (int32_t)L_10;
}
IL_003a:
{
int32_t* L_11 = p2;
int32_t* L_12 = p2;
*((int32_t*)(L_11)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_12))+(int32_t)1));
}
IL_0040:
{
t909* L_13 = (__this->f13);
int32_t L_14 = V_0;
int32_t L_15 = (((t903 *)(t903 *)SZArrayLdElema(L_13, L_14, sizeof(t903 )))->f2);
V_0 = L_15;
}
IL_0052:
{
int32_t L_16 = V_0;
if ((((int32_t)L_16) >= ((int32_t)0)))
{
goto IL_0014;
}
}
{
return;
}
}
extern TypeInfo* t799_TI_var;
extern "C" void m4622 (t907 * __this, t797 * p0, int32_t p1, int32_t p2, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t799_TI_var = il2cpp_codegen_type_info_from_index(560);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
t799 * V_2 = {0};
{
V_0 = 1;
t909* L_0 = (__this->f13);
int32_t L_1 = p1;
int32_t L_2 = (((t903 *)(t903 *)SZArrayLdElema(L_0, L_1, sizeof(t903 )))->f2);
V_1 = L_2;
goto IL_0089;
}
IL_0019:
{
t909* L_3 = (__this->f13);
int32_t L_4 = V_1;
bool L_5 = m4586(((t903 *)(t903 *)SZArrayLdElema(L_3, L_4, sizeof(t903 ))), NULL);
if (L_5)
{
goto IL_0034;
}
}
{
goto IL_0077;
}
IL_0034:
{
t15* L_6 = (__this->f3);
t909* L_7 = (__this->f13);
int32_t L_8 = V_1;
int32_t L_9 = m4587(((t903 *)(t903 *)SZArrayLdElema(L_7, L_8, sizeof(t903 ))), NULL);
t909* L_10 = (__this->f13);
int32_t L_11 = V_1;
int32_t L_12 = m4588(((t903 *)(t903 *)SZArrayLdElema(L_10, L_11, sizeof(t903 ))), NULL);
t799 * L_13 = (t799 *)il2cpp_codegen_object_new (t799_TI_var);
m4439(L_13, L_6, L_9, L_12, NULL);
V_2 = L_13;
t797 * L_14 = p0;
t880 * L_15 = m4455(L_14, NULL);
t799 * L_16 = V_2;
int32_t L_17 = p2;
int32_t L_18 = V_0;
m4447(L_15, L_16, ((int32_t)((int32_t)((int32_t)((int32_t)L_17-(int32_t)1))-(int32_t)L_18)), NULL);
int32_t L_19 = V_0;
V_0 = ((int32_t)((int32_t)L_19+(int32_t)1));
}
IL_0077:
{
t909* L_20 = (__this->f13);
int32_t L_21 = V_1;
int32_t L_22 = (((t903 *)(t903 *)SZArrayLdElema(L_20, L_21, sizeof(t903 )))->f2);
V_1 = L_22;
}
IL_0089:
{
int32_t L_23 = V_1;
if ((((int32_t)L_23) >= ((int32_t)0)))
{
goto IL_0019;
}
}
{
return;
}
}
extern TypeInfo* t796_TI_var;
extern TypeInfo* t797_TI_var;
extern "C" t796 * m4623 (t907 * __this, t552 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t796_TI_var = il2cpp_codegen_type_info_from_index(564);
t797_TI_var = il2cpp_codegen_type_info_from_index(562);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
t797 * V_2 = {0};
t796 * V_3 = {0};
int32_t V_4 = 0;
{
m4621(__this, 0, (&V_1), (&V_0), NULL);
bool L_0 = (((t879 *)__this)->f0);
if (L_0)
{
goto IL_004d;
}
}
{
t552 * L_1 = p0;
t15* L_2 = (__this->f3);
int32_t L_3 = (__this->f4);
t909* L_4 = (__this->f13);
int32_t L_5 = V_1;
int32_t L_6 = m4587(((t903 *)(t903 *)SZArrayLdElema(L_4, L_5, sizeof(t903 ))), NULL);
t909* L_7 = (__this->f13);
int32_t L_8 = V_1;
int32_t L_9 = m4588(((t903 *)(t903 *)SZArrayLdElema(L_7, L_8, sizeof(t903 ))), NULL);
t796 * L_10 = (t796 *)il2cpp_codegen_object_new (t796_TI_var);
m4464(L_10, L_1, __this, L_2, L_3, 0, L_6, L_9, NULL);
return L_10;
}
IL_004d:
{
t552 * L_11 = p0;
t15* L_12 = (__this->f3);
int32_t L_13 = (__this->f4);
t404* L_14 = (__this->f16);
t909* L_15 = (__this->f13);
int32_t L_16 = V_1;
int32_t L_17 = m4587(((t903 *)(t903 *)SZArrayLdElema(L_15, L_16, sizeof(t903 ))), NULL);
t909* L_18 = (__this->f13);
int32_t L_19 = V_1;
int32_t L_20 = m4588(((t903 *)(t903 *)SZArrayLdElema(L_18, L_19, sizeof(t903 ))), NULL);
int32_t L_21 = V_0;
t796 * L_22 = (t796 *)il2cpp_codegen_object_new (t796_TI_var);
m4465(L_22, L_11, __this, L_12, L_13, (((int32_t)((int32_t)(((t17 *)L_14)->max_length)))), L_17, L_20, L_21, NULL);
V_3 = L_22;
t796 * L_23 = V_3;
int32_t L_24 = V_1;
int32_t L_25 = V_0;
m4622(__this, L_23, L_24, L_25, NULL);
V_4 = 1;
goto IL_0107;
}
IL_009d:
{
int32_t L_26 = V_4;
m4621(__this, L_26, (&V_1), (&V_0), NULL);
int32_t L_27 = V_1;
if ((((int32_t)L_27) >= ((int32_t)0)))
{
goto IL_00bb;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t797_TI_var);
t797 * L_28 = ((t797_SFs*)t797_TI_var->static_fields)->f3;
V_2 = L_28;
goto IL_00f3;
}
IL_00bb:
{
t15* L_29 = (__this->f3);
t909* L_30 = (__this->f13);
int32_t L_31 = V_1;
int32_t L_32 = m4587(((t903 *)(t903 *)SZArrayLdElema(L_30, L_31, sizeof(t903 ))), NULL);
t909* L_33 = (__this->f13);
int32_t L_34 = V_1;
int32_t L_35 = m4588(((t903 *)(t903 *)SZArrayLdElema(L_33, L_34, sizeof(t903 ))), NULL);
int32_t L_36 = V_0;
t797 * L_37 = (t797 *)il2cpp_codegen_object_new (t797_TI_var);
m4451(L_37, L_29, L_32, L_35, L_36, NULL);
V_2 = L_37;
t797 * L_38 = V_2;
int32_t L_39 = V_1;
int32_t L_40 = V_0;
m4622(__this, L_38, L_39, L_40, NULL);
}
IL_00f3:
{
t796 * L_41 = V_3;
t798 * L_42 = (t798 *)VirtFuncInvoker0< t798 * >::Invoke(4 /* System.Text.RegularExpressions.GroupCollection System.Text.RegularExpressions.Match::get_Groups() */, L_41);
t797 * L_43 = V_2;
int32_t L_44 = V_4;
m4459(L_42, L_43, L_44, NULL);
int32_t L_45 = V_4;
V_4 = ((int32_t)((int32_t)L_45+(int32_t)1));
}
IL_0107:
{
int32_t L_46 = V_4;
t404* L_47 = (__this->f16);
if ((((int32_t)L_46) < ((int32_t)(((int32_t)((int32_t)(((t17 *)L_47)->max_length)))))))
{
goto IL_009d;
}
}
{
t796 * L_48 = V_3;
return L_48;
}
}
extern "C" void m4624 (t910 * __this, int32_t p0, int32_t p1, const MethodInfo* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = p0;
int32_t L_1 = p1;
if ((((int32_t)L_0) <= ((int32_t)L_1)))
{
goto IL_000f;
}
}
{
int32_t L_2 = p0;
V_0 = L_2;
int32_t L_3 = p1;
p0 = L_3;
int32_t L_4 = V_0;
p1 = L_4;
}
IL_000f:
{
int32_t L_5 = p0;
__this->f0 = L_5;
int32_t L_6 = p1;
__this->f1 = L_6;
__this->f2 = 1;
return;
}
}
extern "C" t910 m4625 (t14 * __this , const MethodInfo* method)
{
t910 V_0 = {0};
{
(&V_0)->f0 = 0;
int32_t L_0 = ((&V_0)->f0);
(&V_0)->f1 = ((int32_t)((int32_t)L_0-(int32_t)1));
(&V_0)->f2 = 1;
t910 L_1 = V_0;
return L_1;
}
}
extern "C" bool m4626 (t910 * __this, const MethodInfo* method)
{
{
bool L_0 = (__this->f2);
return ((((int32_t)L_0) == ((int32_t)0))? 1 : 0);
}
}
extern "C" bool m4627 (t910 * __this, const MethodInfo* method)
{
int32_t G_B3_0 = 0;
{
bool L_0 = (__this->f2);
if (!L_0)
{
goto IL_001b;
}
}
{
int32_t L_1 = (__this->f0);
int32_t L_2 = (__this->f1);
G_B3_0 = ((((int32_t)L_1) == ((int32_t)L_2))? 1 : 0);
goto IL_001c;
}
IL_001b:
{
G_B3_0 = 0;
}
IL_001c:
{
return G_B3_0;
}
}
extern "C" bool m4628 (t910 * __this, const MethodInfo* method)
{
{
int32_t L_0 = (__this->f0);
int32_t L_1 = (__this->f1);
return ((((int32_t)L_0) > ((int32_t)L_1))? 1 : 0);
}
}
extern "C" int32_t m4629 (t910 * __this, const MethodInfo* method)
{
{
bool L_0 = m4628(__this, NULL);
if (!L_0)
{
goto IL_000d;
}
}
{
return 0;
}
IL_000d:
{
int32_t L_1 = (__this->f1);
int32_t L_2 = (__this->f0);
return ((int32_t)((int32_t)((int32_t)((int32_t)L_1-(int32_t)L_2))+(int32_t)1));
}
}
extern "C" bool m4630 (t910 * __this, t910 p0, const MethodInfo* method)
{
int32_t G_B6_0 = 0;
{
bool L_0 = m4628(__this, NULL);
if (L_0)
{
goto IL_0017;
}
}
{
bool L_1 = m4628((&p0), NULL);
if (!L_1)
{
goto IL_0019;
}
}
IL_0017:
{
return 1;
}
IL_0019:
{
int32_t L_2 = (__this->f0);
int32_t L_3 = ((&p0)->f1);
if ((((int32_t)L_2) > ((int32_t)L_3)))
{
goto IL_003f;
}
}
{
int32_t L_4 = ((&p0)->f0);
int32_t L_5 = (__this->f1);
G_B6_0 = ((((int32_t)((((int32_t)L_4) > ((int32_t)L_5))? 1 : 0)) == ((int32_t)0))? 1 : 0);
goto IL_0040;
}
IL_003f:
{
G_B6_0 = 0;
}
IL_0040:
{
return ((((int32_t)G_B6_0) == ((int32_t)0))? 1 : 0);
}
}
extern "C" bool m4631 (t910 * __this, t910 p0, const MethodInfo* method)
{
int32_t G_B6_0 = 0;
{
bool L_0 = m4628(__this, NULL);
if (L_0)
{
goto IL_0017;
}
}
{
bool L_1 = m4628((&p0), NULL);
if (!L_1)
{
goto IL_0019;
}
}
IL_0017:
{
return 0;
}
IL_0019:
{
int32_t L_2 = (__this->f0);
int32_t L_3 = ((&p0)->f1);
if ((((int32_t)L_2) == ((int32_t)((int32_t)((int32_t)L_3+(int32_t)1)))))
{
goto IL_0040;
}
}
{
int32_t L_4 = (__this->f1);
int32_t L_5 = ((&p0)->f0);
G_B6_0 = ((((int32_t)L_4) == ((int32_t)((int32_t)((int32_t)L_5-(int32_t)1))))? 1 : 0);
goto IL_0041;
}
IL_0040:
{
G_B6_0 = 1;
}
IL_0041:
{
return G_B6_0;
}
}
extern "C" bool m4632 (t910 * __this, t910 p0, const MethodInfo* method)
{
int32_t G_B8_0 = 0;
{
bool L_0 = m4628(__this, NULL);
if (L_0)
{
goto IL_0019;
}
}
{
bool L_1 = m4628((&p0), NULL);
if (!L_1)
{
goto IL_0019;
}
}
{
return 1;
}
IL_0019:
{
bool L_2 = m4628(__this, NULL);
if (!L_2)
{
goto IL_0026;
}
}
{
return 0;
}
IL_0026:
{
int32_t L_3 = (__this->f0);
int32_t L_4 = ((&p0)->f0);
if ((((int32_t)L_3) > ((int32_t)L_4)))
{
goto IL_004c;
}
}
{
int32_t L_5 = ((&p0)->f1);
int32_t L_6 = (__this->f1);
G_B8_0 = ((((int32_t)((((int32_t)L_5) > ((int32_t)L_6))? 1 : 0)) == ((int32_t)0))? 1 : 0);
goto IL_004d;
}
IL_004c:
{
G_B8_0 = 0;
}
IL_004d:
{
return G_B8_0;
}
}
extern "C" bool m4633 (t910 * __this, int32_t p0, const MethodInfo* method)
{
int32_t G_B3_0 = 0;
{
int32_t L_0 = (__this->f0);
int32_t L_1 = p0;
if ((((int32_t)L_0) > ((int32_t)L_1)))
{
goto IL_001a;
}
}
{
int32_t L_2 = p0;
int32_t L_3 = (__this->f1);
G_B3_0 = ((((int32_t)((((int32_t)L_2) > ((int32_t)L_3))? 1 : 0)) == ((int32_t)0))? 1 : 0);
goto IL_001b;
}
IL_001a:
{
G_B3_0 = 0;
}
IL_001b:
{
return G_B3_0;
}
}
extern "C" bool m4634 (t910 * __this, t910 p0, const MethodInfo* method)
{
int32_t G_B8_0 = 0;
int32_t G_B10_0 = 0;
{
bool L_0 = m4628(__this, NULL);
if (L_0)
{
goto IL_0017;
}
}
{
bool L_1 = m4628((&p0), NULL);
if (!L_1)
{
goto IL_0019;
}
}
IL_0017:
{
return 0;
}
IL_0019:
{
int32_t L_2 = ((&p0)->f0);
bool L_3 = m4633(__this, L_2, NULL);
if (!L_3)
{
goto IL_003d;
}
}
{
int32_t L_4 = ((&p0)->f1);
bool L_5 = m4633(__this, L_4, NULL);
if (!L_5)
{
goto IL_0064;
}
}
IL_003d:
{
int32_t L_6 = ((&p0)->f1);
bool L_7 = m4633(__this, L_6, NULL);
if (!L_7)
{
goto IL_0061;
}
}
{
int32_t L_8 = ((&p0)->f0);
bool L_9 = m4633(__this, L_8, NULL);
G_B8_0 = ((((int32_t)L_9) == ((int32_t)0))? 1 : 0);
goto IL_0062;
}
IL_0061:
{
G_B8_0 = 0;
}
IL_0062:
{
G_B10_0 = G_B8_0;
goto IL_0065;
}
IL_0064:
{
G_B10_0 = 1;
}
IL_0065:
{
return G_B10_0;
}
}
extern "C" void m4635 (t910 * __this, t910 p0, const MethodInfo* method)
{
{
bool L_0 = m4628((&p0), NULL);
if (!L_0)
{
goto IL_000d;
}
}
{
return;
}
IL_000d:
{
bool L_1 = m4628(__this, NULL);
if (!L_1)
{
goto IL_0032;
}
}
{
int32_t L_2 = ((&p0)->f0);
__this->f0 = L_2;
int32_t L_3 = ((&p0)->f1);
__this->f1 = L_3;
}
IL_0032:
{
int32_t L_4 = ((&p0)->f0);
int32_t L_5 = (__this->f0);
if ((((int32_t)L_4) >= ((int32_t)L_5)))
{
goto IL_0051;
}
}
{
int32_t L_6 = ((&p0)->f0);
__this->f0 = L_6;
}
IL_0051:
{
int32_t L_7 = ((&p0)->f1);
int32_t L_8 = (__this->f1);
if ((((int32_t)L_7) <= ((int32_t)L_8)))
{
goto IL_0070;
}
}
{
int32_t L_9 = ((&p0)->f1);
__this->f1 = L_9;
}
IL_0070:
{
return;
}
}
extern TypeInfo* t910_TI_var;
extern "C" int32_t m4636 (t910 * __this, t14 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t910_TI_var = il2cpp_codegen_type_info_from_index(589);
s_Il2CppMethodIntialized = true;
}
t910 V_0 = {0};
{
int32_t L_0 = (__this->f0);
t14 * L_1 = p0;
V_0 = ((*(t910 *)((t910 *)UnBox (L_1, t910_TI_var))));
int32_t L_2 = ((&V_0)->f0);
return ((int32_t)((int32_t)L_0-(int32_t)L_2));
}
}
// Conversion methods for marshalling of: System.Text.RegularExpressions.Interval
extern "C" void t910_marshal(const t910& unmarshaled, t910_marshaled& marshaled)
{
marshaled.f0 = unmarshaled.f0;
marshaled.f1 = unmarshaled.f1;
marshaled.f2 = unmarshaled.f2;
}
extern "C" void t910_marshal_back(const t910_marshaled& marshaled, t910& unmarshaled)
{
unmarshaled.f0 = marshaled.f0;
unmarshaled.f1 = marshaled.f1;
unmarshaled.f2 = marshaled.f2;
}
// Conversion method for clean up from marshalling of: System.Text.RegularExpressions.Interval
extern "C" void t910_marshal_cleanup(t910_marshaled& marshaled)
{
}
extern "C" void m4637 (t911 * __this, t14 * p0, const MethodInfo* method)
{
{
m1474(__this, NULL);
t14 * L_0 = p0;
__this->f0 = L_0;
VirtActionInvoker0::Invoke(6 /* System.Void System.Text.RegularExpressions.IntervalCollection/Enumerator::Reset() */, __this);
return;
}
}
extern TypeInfo* t953_TI_var;
extern TypeInfo* t779_TI_var;
extern TypeInfo* t912_TI_var;
extern "C" t14 * m4638 (t911 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t953_TI_var = il2cpp_codegen_type_info_from_index(487);
t779_TI_var = il2cpp_codegen_type_info_from_index(431);
t912_TI_var = il2cpp_codegen_type_info_from_index(590);
s_Il2CppMethodIntialized = true;
}
{
int32_t L_0 = (__this->f1);
t14 * L_1 = (__this->f0);
int32_t L_2 = (int32_t)InterfaceFuncInvoker0< int32_t >::Invoke(0 /* System.Int32 System.Collections.ICollection::get_Count() */, t953_TI_var, L_1);
if ((((int32_t)L_0) < ((int32_t)L_2)))
{
goto IL_001c;
}
}
{
t779 * L_3 = (t779 *)il2cpp_codegen_object_new (t779_TI_var);
m4892(L_3, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_3);
}
IL_001c:
{
t14 * L_4 = (__this->f0);
int32_t L_5 = (__this->f1);
t14 * L_6 = (t14 *)InterfaceFuncInvoker1< t14 *, int32_t >::Invoke(2 /* System.Object System.Collections.IList::get_Item(System.Int32) */, t912_TI_var, L_4, L_5);
return L_6;
}
}
extern TypeInfo* t953_TI_var;
extern TypeInfo* t779_TI_var;
extern "C" bool m4639 (t911 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t953_TI_var = il2cpp_codegen_type_info_from_index(487);
t779_TI_var = il2cpp_codegen_type_info_from_index(431);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
{
int32_t L_0 = (__this->f1);
t14 * L_1 = (__this->f0);
int32_t L_2 = (int32_t)InterfaceFuncInvoker0< int32_t >::Invoke(0 /* System.Int32 System.Collections.ICollection::get_Count() */, t953_TI_var, L_1);
if ((((int32_t)L_0) <= ((int32_t)L_2)))
{
goto IL_001c;
}
}
{
t779 * L_3 = (t779 *)il2cpp_codegen_object_new (t779_TI_var);
m4892(L_3, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_3);
}
IL_001c:
{
int32_t L_4 = (__this->f1);
int32_t L_5 = ((int32_t)((int32_t)L_4+(int32_t)1));
V_0 = L_5;
__this->f1 = L_5;
int32_t L_6 = V_0;
t14 * L_7 = (__this->f0);
int32_t L_8 = (int32_t)InterfaceFuncInvoker0< int32_t >::Invoke(0 /* System.Int32 System.Collections.ICollection::get_Count() */, t953_TI_var, L_7);
return ((((int32_t)L_6) < ((int32_t)L_8))? 1 : 0);
}
}
extern "C" void m4640 (t911 * __this, const MethodInfo* method)
{
{
__this->f1 = (-1);
return;
}
}
extern "C" void m4641 (t913 * __this, t14 * p0, t196 p1, const MethodInfo* method)
{
__this->f0 = (methodPointerType)((MethodInfo*)p1.f0)->method;
__this->f3 = p1;
__this->f2 = p0;
}
extern "C" double m4642 (t913 * __this, t910 p0, const MethodInfo* method)
{
if(__this->f9 != NULL)
{
m4642((t913 *)__this->f9,p0, method);
}
il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->f3.f0));
bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->f3.f0));
if (__this->f2 != NULL && ___methodIsStatic)
{
typedef double (*FunctionPointerType) (t14 *, t14 * __this, t910 p0, const MethodInfo* method);
return ((FunctionPointerType)__this->f0)(NULL,__this->f2,p0,(MethodInfo*)(__this->f3.f0));
}
else
{
typedef double (*FunctionPointerType) (t14 * __this, t910 p0, const MethodInfo* method);
return ((FunctionPointerType)__this->f0)(__this->f2,p0,(MethodInfo*)(__this->f3.f0));
}
}
extern "C" double pinvoke_delegate_wrapper_t913(Il2CppObject* delegate, t910 p0)
{
typedef double (STDCALL *native_function_ptr_type)(t910_marshaled);
native_function_ptr_type _il2cpp_pinvoke_func = ((native_function_ptr_type)((Il2CppDelegate*)delegate)->method->method);
// Marshaling of parameter 'p0' to native representation
t910_marshaled _p0_marshaled = { 0 };
t910_marshal(p0, _p0_marshaled);
// Native function invocation and marshaling of return value back from native representation
double _return_value = _il2cpp_pinvoke_func(_p0_marshaled);
// Marshaling cleanup of parameter 'p0' native representation
t910_marshal_cleanup(_p0_marshaled);
return _return_value;
}
extern TypeInfo* t910_TI_var;
extern "C" t14 * m4643 (t913 * __this, t910 p0, t182 * p1, t14 * p2, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t910_TI_var = il2cpp_codegen_type_info_from_index(589);
s_Il2CppMethodIntialized = true;
}
void *__d_args[2] = {0};
__d_args[0] = Box(t910_TI_var, &p0);
return (t14 *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)p1, (Il2CppObject*)p2);
}
extern "C" double m4644 (t913 * __this, t14 * p0, const MethodInfo* method)
{
Il2CppObject *__result = il2cpp_delegate_end_invoke((Il2CppAsyncResult*) p0, 0);
return *(double*)UnBox ((Il2CppCodeGenObject*)__result);
}
extern TypeInfo* t603_TI_var;
extern "C" void m4645 (t914 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t603_TI_var = il2cpp_codegen_type_info_from_index(358);
s_Il2CppMethodIntialized = true;
}
{
m1474(__this, NULL);
t603 * L_0 = (t603 *)il2cpp_codegen_object_new (t603_TI_var);
m3869(L_0, NULL);
__this->f0 = L_0;
return;
}
}
extern TypeInfo* t910_TI_var;
extern "C" t910 m4646 (t914 * __this, int32_t p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t910_TI_var = il2cpp_codegen_type_info_from_index(589);
s_Il2CppMethodIntialized = true;
}
{
t603 * L_0 = (__this->f0);
int32_t L_1 = p0;
t14 * L_2 = (t14 *)VirtFuncInvoker1< t14 *, int32_t >::Invoke(21 /* System.Object System.Collections.ArrayList::get_Item(System.Int32) */, L_0, L_1);
return ((*(t910 *)((t910 *)UnBox (L_2, t910_TI_var))));
}
}
extern TypeInfo* t910_TI_var;
extern "C" void m4647 (t914 * __this, t910 p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t910_TI_var = il2cpp_codegen_type_info_from_index(589);
s_Il2CppMethodIntialized = true;
}
{
t603 * L_0 = (__this->f0);
t910 L_1 = p0;
t910 L_2 = L_1;
t14 * L_3 = Box(t910_TI_var, &L_2);
VirtFuncInvoker1< int32_t, t14 * >::Invoke(30 /* System.Int32 System.Collections.ArrayList::Add(System.Object) */, L_0, L_3);
return;
}
}
extern TypeInfo* t910_TI_var;
extern "C" void m4648 (t914 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t910_TI_var = il2cpp_codegen_type_info_from_index(589);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
t910 V_1 = {0};
t910 V_2 = {0};
{
t603 * L_0 = (__this->f0);
VirtActionInvoker0::Invoke(45 /* System.Void System.Collections.ArrayList::Sort() */, L_0);
V_0 = 0;
goto IL_0083;
}
IL_0012:
{
t603 * L_1 = (__this->f0);
int32_t L_2 = V_0;
t14 * L_3 = (t14 *)VirtFuncInvoker1< t14 *, int32_t >::Invoke(21 /* System.Object System.Collections.ArrayList::get_Item(System.Int32) */, L_1, L_2);
V_1 = ((*(t910 *)((t910 *)UnBox (L_3, t910_TI_var))));
t603 * L_4 = (__this->f0);
int32_t L_5 = V_0;
t14 * L_6 = (t14 *)VirtFuncInvoker1< t14 *, int32_t >::Invoke(21 /* System.Object System.Collections.ArrayList::get_Item(System.Int32) */, L_4, ((int32_t)((int32_t)L_5+(int32_t)1)));
V_2 = ((*(t910 *)((t910 *)UnBox (L_6, t910_TI_var))));
t910 L_7 = V_2;
bool L_8 = m4630((&V_1), L_7, NULL);
if (!L_8)
{
goto IL_0052;
}
}
{
t910 L_9 = V_2;
bool L_10 = m4631((&V_1), L_9, NULL);
if (!L_10)
{
goto IL_007f;
}
}
IL_0052:
{
t910 L_11 = V_2;
m4635((&V_1), L_11, NULL);
t603 * L_12 = (__this->f0);
int32_t L_13 = V_0;
t910 L_14 = V_1;
t910 L_15 = L_14;
t14 * L_16 = Box(t910_TI_var, &L_15);
VirtActionInvoker2< int32_t, t14 * >::Invoke(22 /* System.Void System.Collections.ArrayList::set_Item(System.Int32,System.Object) */, L_12, L_13, L_16);
t603 * L_17 = (__this->f0);
int32_t L_18 = V_0;
VirtActionInvoker1< int32_t >::Invoke(39 /* System.Void System.Collections.ArrayList::RemoveAt(System.Int32) */, L_17, ((int32_t)((int32_t)L_18+(int32_t)1)));
goto IL_0083;
}
IL_007f:
{
int32_t L_19 = V_0;
V_0 = ((int32_t)((int32_t)L_19+(int32_t)1));
}
IL_0083:
{
int32_t L_20 = V_0;
t603 * L_21 = (__this->f0);
int32_t L_22 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(23 /* System.Int32 System.Collections.ArrayList::get_Count() */, L_21);
if ((((int32_t)L_20) < ((int32_t)((int32_t)((int32_t)L_22-(int32_t)1)))))
{
goto IL_0012;
}
}
{
return;
}
}
extern TypeInfo* t914_TI_var;
extern "C" t914 * m4649 (t914 * __this, t913 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t914_TI_var = il2cpp_codegen_type_info_from_index(591);
s_Il2CppMethodIntialized = true;
}
t914 * V_0 = {0};
{
t914 * L_0 = (t914 *)il2cpp_codegen_object_new (t914_TI_var);
m4645(L_0, NULL);
V_0 = L_0;
m4648(__this, NULL);
int32_t L_1 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(4 /* System.Int32 System.Text.RegularExpressions.IntervalCollection::get_Count() */, __this);
t914 * L_2 = V_0;
t913 * L_3 = p0;
m4650(__this, 0, ((int32_t)((int32_t)L_1-(int32_t)1)), L_2, L_3, NULL);
t914 * L_4 = V_0;
t603 * L_5 = (L_4->f0);
VirtActionInvoker0::Invoke(45 /* System.Void System.Collections.ArrayList::Sort() */, L_5);
t914 * L_6 = V_0;
return L_6;
}
}
extern "C" void m4650 (t914 * __this, int32_t p0, int32_t p1, t914 * p2, t913 * p3, const MethodInfo* method)
{
t910 V_0 = {0};
int32_t V_1 = 0;
int32_t V_2 = 0;
double V_3 = 0.0;
int32_t V_4 = 0;
double V_5 = 0.0;
int32_t V_6 = 0;
double V_7 = 0.0;
int32_t V_8 = 0;
t910 V_9 = {0};
t910 V_10 = {0};
t910 V_11 = {0};
t910 V_12 = {0};
{
(&V_0)->f2 = 0;
V_1 = (-1);
V_2 = (-1);
V_3 = (0.0);
int32_t L_0 = p0;
V_4 = L_0;
goto IL_00ae;
}
IL_001e:
{
int32_t L_1 = V_4;
t910 L_2 = m4646(__this, L_1, NULL);
V_9 = L_2;
int32_t L_3 = ((&V_9)->f0);
(&V_0)->f0 = L_3;
V_5 = (0.0);
int32_t L_4 = V_4;
V_6 = L_4;
goto IL_00a0;
}
IL_004a:
{
int32_t L_5 = V_6;
t910 L_6 = m4646(__this, L_5, NULL);
V_10 = L_6;
int32_t L_7 = ((&V_10)->f1);
(&V_0)->f1 = L_7;
double L_8 = V_5;
t913 * L_9 = p3;
int32_t L_10 = V_6;
t910 L_11 = m4646(__this, L_10, NULL);
double L_12 = m4642(L_9, L_11, NULL);
V_5 = ((double)((double)L_8+(double)L_12));
t913 * L_13 = p3;
t910 L_14 = V_0;
double L_15 = m4642(L_13, L_14, NULL);
V_7 = L_15;
double L_16 = V_7;
double L_17 = V_5;
if ((!(((double)L_16) < ((double)L_17))))
{
goto IL_009a;
}
}
{
double L_18 = V_5;
double L_19 = V_3;
if ((!(((double)L_18) > ((double)L_19))))
{
goto IL_009a;
}
}
{
int32_t L_20 = V_4;
V_1 = L_20;
int32_t L_21 = V_6;
V_2 = L_21;
double L_22 = V_5;
V_3 = L_22;
}
IL_009a:
{
int32_t L_23 = V_6;
V_6 = ((int32_t)((int32_t)L_23+(int32_t)1));
}
IL_00a0:
{
int32_t L_24 = V_6;
int32_t L_25 = p1;
if ((((int32_t)L_24) <= ((int32_t)L_25)))
{
goto IL_004a;
}
}
{
int32_t L_26 = V_4;
V_4 = ((int32_t)((int32_t)L_26+(int32_t)1));
}
IL_00ae:
{
int32_t L_27 = V_4;
int32_t L_28 = p1;
if ((((int32_t)L_27) <= ((int32_t)L_28)))
{
goto IL_001e;
}
}
{
int32_t L_29 = V_1;
if ((((int32_t)L_29) >= ((int32_t)0)))
{
goto IL_00e6;
}
}
{
int32_t L_30 = p0;
V_8 = L_30;
goto IL_00d9;
}
IL_00c5:
{
t914 * L_31 = p2;
int32_t L_32 = V_8;
t910 L_33 = m4646(__this, L_32, NULL);
m4647(L_31, L_33, NULL);
int32_t L_34 = V_8;
V_8 = ((int32_t)((int32_t)L_34+(int32_t)1));
}
IL_00d9:
{
int32_t L_35 = V_8;
int32_t L_36 = p1;
if ((((int32_t)L_35) <= ((int32_t)L_36)))
{
goto IL_00c5;
}
}
{
goto IL_0143;
}
IL_00e6:
{
int32_t L_37 = V_1;
t910 L_38 = m4646(__this, L_37, NULL);
V_11 = L_38;
int32_t L_39 = ((&V_11)->f0);
(&V_0)->f0 = L_39;
int32_t L_40 = V_2;
t910 L_41 = m4646(__this, L_40, NULL);
V_12 = L_41;
int32_t L_42 = ((&V_12)->f1);
(&V_0)->f1 = L_42;
t914 * L_43 = p2;
t910 L_44 = V_0;
m4647(L_43, L_44, NULL);
int32_t L_45 = V_1;
int32_t L_46 = p0;
if ((((int32_t)L_45) <= ((int32_t)L_46)))
{
goto IL_012f;
}
}
{
int32_t L_47 = p0;
int32_t L_48 = V_1;
t914 * L_49 = p2;
t913 * L_50 = p3;
m4650(__this, L_47, ((int32_t)((int32_t)L_48-(int32_t)1)), L_49, L_50, NULL);
}
IL_012f:
{
int32_t L_51 = V_2;
int32_t L_52 = p1;
if ((((int32_t)L_51) >= ((int32_t)L_52)))
{
goto IL_0143;
}
}
{
int32_t L_53 = V_2;
int32_t L_54 = p1;
t914 * L_55 = p2;
t913 * L_56 = p3;
m4650(__this, ((int32_t)((int32_t)L_53+(int32_t)1)), L_54, L_55, L_56, NULL);
}
IL_0143:
{
return;
}
}
extern "C" int32_t m4651 (t914 * __this, const MethodInfo* method)
{
{
t603 * L_0 = (__this->f0);
int32_t L_1 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(23 /* System.Int32 System.Collections.ArrayList::get_Count() */, L_0);
return L_1;
}
}
extern "C" bool m4652 (t914 * __this, const MethodInfo* method)
{
{
return 0;
}
}
extern "C" t14 * m4653 (t914 * __this, const MethodInfo* method)
{
{
t603 * L_0 = (__this->f0);
return L_0;
}
}
extern TypeInfo* t306_TI_var;
extern TypeInfo* t910_TI_var;
extern TypeInfo* t328_TI_var;
extern "C" void m4654 (t914 * __this, t17 * p0, int32_t p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t306_TI_var = il2cpp_codegen_type_info_from_index(283);
t910_TI_var = il2cpp_codegen_type_info_from_index(589);
t328_TI_var = il2cpp_codegen_type_info_from_index(86);
s_Il2CppMethodIntialized = true;
}
t910 V_0 = {0};
t14 * V_1 = {0};
t14 * V_2 = {0};
t326 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t326 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
{
t603 * L_0 = (__this->f0);
t14 * L_1 = (t14 *)VirtFuncInvoker0< t14 * >::Invoke(43 /* System.Collections.IEnumerator System.Collections.ArrayList::GetEnumerator() */, L_0);
V_1 = L_1;
}
IL_000c:
try
{ // begin try (depth: 1)
{
goto IL_0040;
}
IL_0011:
{
t14 * L_2 = V_1;
t14 * L_3 = (t14 *)InterfaceFuncInvoker0< t14 * >::Invoke(0 /* System.Object System.Collections.IEnumerator::get_Current() */, t306_TI_var, L_2);
V_0 = ((*(t910 *)((t910 *)UnBox (L_3, t910_TI_var))));
int32_t L_4 = p1;
t17 * L_5 = p0;
int32_t L_6 = m4890(L_5, NULL);
if ((((int32_t)L_4) <= ((int32_t)L_6)))
{
goto IL_002e;
}
}
IL_0029:
{
goto IL_004b;
}
IL_002e:
{
t17 * L_7 = p0;
t910 L_8 = V_0;
t910 L_9 = L_8;
t14 * L_10 = Box(t910_TI_var, &L_9);
int32_t L_11 = p1;
int32_t L_12 = L_11;
p1 = ((int32_t)((int32_t)L_12+(int32_t)1));
m4891(L_7, L_10, L_12, NULL);
}
IL_0040:
{
t14 * L_13 = V_1;
bool L_14 = (bool)InterfaceFuncInvoker0< bool >::Invoke(1 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, t306_TI_var, L_13);
if (L_14)
{
goto IL_0011;
}
}
IL_004b:
{
IL2CPP_LEAVE(0x62, FINALLY_0050);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t326 *)e.ex;
goto FINALLY_0050;
}
FINALLY_0050:
{ // begin finally (depth: 1)
{
t14 * L_15 = V_1;
V_2 = ((t14 *)IsInst(L_15, t328_TI_var));
t14 * L_16 = V_2;
if (L_16)
{
goto IL_005b;
}
}
IL_005a:
{
IL2CPP_END_FINALLY(80)
}
IL_005b:
{
t14 * L_17 = V_2;
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t328_TI_var, L_17);
IL2CPP_END_FINALLY(80)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(80)
{
IL2CPP_JUMP_TBL(0x62, IL_0062)
IL2CPP_RETHROW_IF_UNHANDLED(t326 *)
}
IL_0062:
{
return;
}
}
extern TypeInfo* t911_TI_var;
extern "C" t14 * m4655 (t914 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t911_TI_var = il2cpp_codegen_type_info_from_index(592);
s_Il2CppMethodIntialized = true;
}
{
t603 * L_0 = (__this->f0);
t911 * L_1 = (t911 *)il2cpp_codegen_object_new (t911_TI_var);
m4637(L_1, L_0, NULL);
return L_1;
}
}
extern TypeInfo* t603_TI_var;
extern TypeInfo* t672_TI_var;
extern "C" void m4656 (t915 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t603_TI_var = il2cpp_codegen_type_info_from_index(358);
t672_TI_var = il2cpp_codegen_type_info_from_index(440);
s_Il2CppMethodIntialized = true;
}
{
m1474(__this, NULL);
t603 * L_0 = (t603 *)il2cpp_codegen_object_new (t603_TI_var);
m3869(L_0, NULL);
__this->f2 = L_0;
t672 * L_1 = (t672 *)il2cpp_codegen_object_new (t672_TI_var);
m3953(L_1, NULL);
__this->f3 = L_1;
return;
}
}
extern "C" int32_t m4657 (t14 * __this , t15* p0, int32_t* p1, const MethodInfo* method)
{
{
t15* L_0 = p0;
int32_t* L_1 = p1;
int32_t L_2 = m4660(NULL, L_0, L_1, ((int32_t)10), 1, ((int32_t)2147483647), NULL);
return L_2;
}
}
extern "C" int32_t m4658 (t14 * __this , t15* p0, int32_t* p1, const MethodInfo* method)
{
{
t15* L_0 = p0;
int32_t* L_1 = p1;
int32_t L_2 = m4660(NULL, L_0, L_1, 8, 1, 3, NULL);
return L_2;
}
}
extern "C" int32_t m4659 (t14 * __this , t15* p0, int32_t* p1, int32_t p2, const MethodInfo* method)
{
{
t15* L_0 = p0;
int32_t* L_1 = p1;
int32_t L_2 = p2;
int32_t L_3 = p2;
int32_t L_4 = m4660(NULL, L_0, L_1, ((int32_t)16), L_2, L_3, NULL);
return L_4;
}
}
extern "C" int32_t m4660 (t14 * __this , t15* p0, int32_t* p1, int32_t p2, int32_t p3, int32_t p4, const MethodInfo* method)
{
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
{
int32_t* L_0 = p1;
V_0 = (*((int32_t*)L_0));
V_1 = 0;
V_2 = 0;
int32_t L_1 = p4;
int32_t L_2 = p3;
if ((((int32_t)L_1) >= ((int32_t)L_2)))
{
goto IL_0016;
}
}
{
p4 = ((int32_t)2147483647);
}
IL_0016:
{
goto IL_0048;
}
IL_001b:
{
t15* L_3 = p0;
int32_t L_4 = V_0;
int32_t L_5 = L_4;
V_0 = ((int32_t)((int32_t)L_5+(int32_t)1));
uint16_t L_6 = m1839(L_3, L_5, NULL);
int32_t L_7 = p2;
int32_t L_8 = V_2;
int32_t L_9 = m4676(NULL, L_6, L_7, L_8, NULL);
V_3 = L_9;
int32_t L_10 = V_3;
if ((((int32_t)L_10) >= ((int32_t)0)))
{
goto IL_003e;
}
}
{
int32_t L_11 = V_0;
V_0 = ((int32_t)((int32_t)L_11-(int32_t)1));
goto IL_005c;
}
IL_003e:
{
int32_t L_12 = V_1;
int32_t L_13 = p2;
int32_t L_14 = V_3;
V_1 = ((int32_t)((int32_t)((int32_t)((int32_t)L_12*(int32_t)L_13))+(int32_t)L_14));
int32_t L_15 = V_2;
V_2 = ((int32_t)((int32_t)L_15+(int32_t)1));
}
IL_0048:
{
int32_t L_16 = V_2;
int32_t L_17 = p4;
if ((((int32_t)L_16) >= ((int32_t)L_17)))
{
goto IL_005c;
}
}
{
int32_t L_18 = V_0;
t15* L_19 = p0;
int32_t L_20 = m1820(L_19, NULL);
if ((((int32_t)L_18) < ((int32_t)L_20)))
{
goto IL_001b;
}
}
IL_005c:
{
int32_t L_21 = V_2;
int32_t L_22 = p3;
if ((((int32_t)L_21) >= ((int32_t)L_22)))
{
goto IL_0065;
}
}
{
return (-1);
}
IL_0065:
{
int32_t* L_23 = p1;
int32_t L_24 = V_0;
*((int32_t*)(L_23)) = (int32_t)L_24;
int32_t L_25 = V_1;
return L_25;
}
}
extern TypeInfo* t180_TI_var;
extern "C" t15* m4661 (t14 * __this , t15* p0, int32_t* p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t180_TI_var = il2cpp_codegen_type_info_from_index(175);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
{
t15* L_0 = p0;
int32_t* L_1 = p1;
uint16_t L_2 = m1839(L_0, (*((int32_t*)L_1)), NULL);
IL2CPP_RUNTIME_CLASS_INIT(t180_TI_var);
bool L_3 = m4955(NULL, L_2, NULL);
if (!L_3)
{
goto IL_002f;
}
}
{
t15* L_4 = p0;
int32_t* L_5 = p1;
int32_t L_6 = m4660(NULL, L_4, L_5, ((int32_t)10), 1, 0, NULL);
V_0 = L_6;
int32_t L_7 = V_0;
if ((((int32_t)L_7) <= ((int32_t)0)))
{
goto IL_002d;
}
}
{
t15* L_8 = m2883((&V_0), NULL);
return L_8;
}
IL_002d:
{
return (t15*)NULL;
}
IL_002f:
{
int32_t* L_9 = p1;
V_1 = (*((int32_t*)L_9));
goto IL_0054;
}
IL_0037:
{
t15* L_10 = p0;
int32_t* L_11 = p1;
uint16_t L_12 = m1839(L_10, (*((int32_t*)L_11)), NULL);
bool L_13 = m4674(NULL, L_12, NULL);
if (L_13)
{
goto IL_004e;
}
}
{
goto IL_0059;
}
IL_004e:
{
int32_t* L_14 = p1;
int32_t* L_15 = p1;
*((int32_t*)(L_14)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_15))+(int32_t)1));
}
IL_0054:
{
goto IL_0037;
}
IL_0059:
{
int32_t* L_16 = p1;
int32_t L_17 = V_1;
if ((((int32_t)((int32_t)((int32_t)(*((int32_t*)L_16))-(int32_t)L_17))) <= ((int32_t)0)))
{
goto IL_006f;
}
}
{
t15* L_18 = p0;
int32_t L_19 = V_1;
int32_t* L_20 = p1;
int32_t L_21 = V_1;
t15* L_22 = m1840(L_18, L_19, ((int32_t)((int32_t)(*((int32_t*)L_20))-(int32_t)L_21)), NULL);
return L_22;
}
IL_006f:
{
return (t15*)NULL;
}
}
extern TypeInfo* t921_TI_var;
extern TypeInfo* t535_TI_var;
extern Il2CppCodeGenString* _stringLiteral814;
extern "C" t921 * m4662 (t915 * __this, t15* p0, int32_t p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t921_TI_var = il2cpp_codegen_type_info_from_index(593);
t535_TI_var = il2cpp_codegen_type_info_from_index(272);
_stringLiteral814 = il2cpp_codegen_string_literal_from_index(814);
s_Il2CppMethodIntialized = true;
}
t921 * V_0 = {0};
t921 * V_1 = {0};
t326 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t326 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
{
t15* L_0 = p0;
__this->f0 = L_0;
__this->f1 = 0;
t603 * L_1 = (__this->f2);
VirtActionInvoker0::Invoke(31 /* System.Void System.Collections.ArrayList::Clear() */, L_1);
t672 * L_2 = (__this->f3);
VirtActionInvoker0::Invoke(27 /* System.Void System.Collections.Hashtable::Clear() */, L_2);
__this->f4 = 0;
}
IL_002b:
try
{ // begin try (depth: 1)
{
t921 * L_3 = (t921 *)il2cpp_codegen_object_new (t921_TI_var);
m4720(L_3, NULL);
V_0 = L_3;
t921 * L_4 = V_0;
int32_t L_5 = p1;
m4664(__this, L_4, L_5, (t926 *)NULL, NULL);
m4678(__this, NULL);
t921 * L_6 = V_0;
int32_t L_7 = (__this->f4);
m4721(L_6, L_7, NULL);
t921 * L_8 = V_0;
V_1 = L_8;
goto IL_006a;
}
IL_0053:
{
; // IL_0053: leave IL_006a
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (t326 *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (t535_TI_var, e.ex->object.klass))
goto CATCH_0058;
throw e;
}
CATCH_0058:
{ // begin catch(System.IndexOutOfRangeException)
{
t387 * L_9 = m4686(__this, _stringLiteral814, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_9);
}
IL_0065:
{
goto IL_006a;
}
} // end catch (depth: 1)
IL_006a:
{
t921 * L_10 = V_1;
return L_10;
}
}
extern TypeInfo* t24_TI_var;
extern TypeInfo* t922_TI_var;
extern TypeInfo* t966_TI_var;
extern Il2CppCodeGenString* _stringLiteral232;
extern Il2CppCodeGenString* _stringLiteral815;
extern "C" int32_t m4663 (t915 * __this, t672 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t24_TI_var = il2cpp_codegen_type_info_from_index(74);
t922_TI_var = il2cpp_codegen_type_info_from_index(594);
t966_TI_var = il2cpp_codegen_type_info_from_index(557);
_stringLiteral232 = il2cpp_codegen_string_literal_from_index(232);
_stringLiteral815 = il2cpp_codegen_string_literal_from_index(815);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
t922 * V_2 = {0};
t15* V_3 = {0};
int32_t V_4 = 0;
t15* G_B4_0 = {0};
{
t603 * L_0 = (__this->f2);
int32_t L_1 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(23 /* System.Int32 System.Collections.ArrayList::get_Count() */, L_0);
V_0 = L_1;
t672 * L_2 = p0;
int32_t L_3 = 0;
t14 * L_4 = Box(t24_TI_var, &L_3);
VirtActionInvoker2< t14 *, t14 * >::Invoke(26 /* System.Void System.Collections.Hashtable::Add(System.Object,System.Object) */, L_2, _stringLiteral232, L_4);
V_1 = 0;
goto IL_00a5;
}
IL_0024:
{
t603 * L_5 = (__this->f2);
int32_t L_6 = V_1;
t14 * L_7 = (t14 *)VirtFuncInvoker1< t14 *, int32_t >::Invoke(21 /* System.Object System.Collections.ArrayList::get_Item(System.Int32) */, L_5, L_6);
V_2 = ((t922 *)CastclassClass(L_7, t922_TI_var));
t922 * L_8 = V_2;
t15* L_9 = m4726(L_8, NULL);
if (!L_9)
{
goto IL_004c;
}
}
{
t922 * L_10 = V_2;
t15* L_11 = m4726(L_10, NULL);
G_B4_0 = L_11;
goto IL_005b;
}
IL_004c:
{
t922 * L_12 = V_2;
int32_t L_13 = m4724(L_12, NULL);
V_4 = L_13;
t15* L_14 = m2883((&V_4), NULL);
G_B4_0 = L_14;
}
IL_005b:
{
V_3 = G_B4_0;
t672 * L_15 = p0;
t15* L_16 = V_3;
bool L_17 = (bool)VirtFuncInvoker1< bool, t14 * >::Invoke(28 /* System.Boolean System.Collections.Hashtable::Contains(System.Object) */, L_15, L_16);
if (!L_17)
{
goto IL_008f;
}
}
{
t672 * L_18 = p0;
t15* L_19 = V_3;
t14 * L_20 = (t14 *)VirtFuncInvoker1< t14 *, t14 * >::Invoke(23 /* System.Object System.Collections.Hashtable::get_Item(System.Object) */, L_18, L_19);
t922 * L_21 = V_2;
int32_t L_22 = m4724(L_21, NULL);
if ((((int32_t)((*(int32_t*)((int32_t*)UnBox (L_20, t24_TI_var))))) == ((int32_t)L_22)))
{
goto IL_008a;
}
}
{
t966 * L_23 = (t966 *)il2cpp_codegen_object_new (t966_TI_var);
m4949(L_23, _stringLiteral815, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_23);
}
IL_008a:
{
goto IL_00a1;
}
IL_008f:
{
t672 * L_24 = p0;
t15* L_25 = V_3;
t922 * L_26 = V_2;
int32_t L_27 = m4724(L_26, NULL);
int32_t L_28 = L_27;
t14 * L_29 = Box(t24_TI_var, &L_28);
VirtActionInvoker2< t14 *, t14 * >::Invoke(26 /* System.Void System.Collections.Hashtable::Add(System.Object,System.Object) */, L_24, L_25, L_29);
}
IL_00a1:
{
int32_t L_30 = V_1;
V_1 = ((int32_t)((int32_t)L_30+(int32_t)1));
}
IL_00a5:
{
int32_t L_31 = V_1;
int32_t L_32 = V_0;
if ((((int32_t)L_31) < ((int32_t)L_32)))
{
goto IL_0024;
}
}
{
int32_t L_33 = (__this->f5);
return L_33;
}
}
extern TypeInfo* t921_TI_var;
extern TypeInfo* t920_TI_var;
extern TypeInfo* t931_TI_var;
extern TypeInfo* t934_TI_var;
extern TypeInfo* t929_TI_var;
extern TypeInfo* t930_TI_var;
extern TypeInfo* t925_TI_var;
extern TypeInfo* t15_TI_var;
extern TypeInfo* t180_TI_var;
extern Il2CppCodeGenString* _stringLiteral816;
extern Il2CppCodeGenString* _stringLiteral817;
extern Il2CppCodeGenString* _stringLiteral818;
extern Il2CppCodeGenString* _stringLiteral819;
extern "C" void m4664 (t915 * __this, t920 * p0, int32_t p1, t926 * p2, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t921_TI_var = il2cpp_codegen_type_info_from_index(593);
t920_TI_var = il2cpp_codegen_type_info_from_index(595);
t931_TI_var = il2cpp_codegen_type_info_from_index(596);
t934_TI_var = il2cpp_codegen_type_info_from_index(597);
t929_TI_var = il2cpp_codegen_type_info_from_index(598);
t930_TI_var = il2cpp_codegen_type_info_from_index(599);
t925_TI_var = il2cpp_codegen_type_info_from_index(600);
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
t180_TI_var = il2cpp_codegen_type_info_from_index(175);
_stringLiteral816 = il2cpp_codegen_string_literal_from_index(816);
_stringLiteral817 = il2cpp_codegen_string_literal_from_index(817);
_stringLiteral818 = il2cpp_codegen_string_literal_from_index(818);
_stringLiteral819 = il2cpp_codegen_string_literal_from_index(819);
s_Il2CppMethodIntialized = true;
}
bool V_0 = false;
t930 * V_1 = {0};
t15* V_2 = {0};
t920 * V_3 = {0};
t918 * V_4 = {0};
bool V_5 = false;
uint16_t V_6 = 0x0;
uint16_t V_7 = {0};
uint16_t V_8 = {0};
uint16_t V_9 = {0};
int32_t V_10 = 0;
bool V_11 = false;
uint16_t V_12 = 0x0;
int32_t V_13 = 0;
int32_t V_14 = 0;
bool V_15 = false;
bool V_16 = false;
int32_t V_17 = 0;
t925 * V_18 = {0};
int32_t V_19 = 0;
uint16_t V_20 = 0x0;
int32_t G_B11_0 = 0;
int32_t G_B15_0 = 0;
int32_t G_B19_0 = 0;
{
t920 * L_0 = p0;
V_0 = ((!(((t14*)(t921 *)((t921 *)IsInstClass(L_0, t921_TI_var))) <= ((t14*)(t14 *)NULL)))? 1 : 0);
V_1 = (t930 *)NULL;
V_2 = (t15*)NULL;
t920 * L_1 = (t920 *)il2cpp_codegen_object_new (t920_TI_var);
m4715(L_1, NULL);
V_3 = L_1;
V_4 = (t918 *)NULL;
V_5 = 0;
}
IL_001a:
{
int32_t L_2 = p1;
bool L_3 = m4684(NULL, L_2, NULL);
m4677(__this, L_3, NULL);
int32_t L_4 = (__this->f1);
t15* L_5 = (__this->f0);
int32_t L_6 = m1820(L_5, NULL);
if ((((int32_t)L_4) < ((int32_t)L_6)))
{
goto IL_0041;
}
}
{
goto IL_0484;
}
IL_0041:
{
t15* L_7 = (__this->f0);
int32_t L_8 = (__this->f1);
int32_t L_9 = L_8;
V_19 = L_9;
__this->f1 = ((int32_t)((int32_t)L_9+(int32_t)1));
int32_t L_10 = V_19;
uint16_t L_11 = m1839(L_7, L_10, NULL);
V_6 = L_11;
uint16_t L_12 = V_6;
V_20 = L_12;
uint16_t L_13 = V_20;
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 0)
{
goto IL_00ee;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 1)
{
goto IL_009b;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 2)
{
goto IL_009b;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 3)
{
goto IL_009b;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 4)
{
goto IL_0190;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 5)
{
goto IL_01da;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 6)
{
goto IL_025f;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 7)
{
goto IL_025f;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 8)
{
goto IL_009b;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 9)
{
goto IL_009b;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)36))) == 10)
{
goto IL_0110;
}
}
IL_009b:
{
uint16_t L_14 = V_20;
if (((int32_t)((int32_t)L_14-(int32_t)((int32_t)91))) == 0)
{
goto IL_0182;
}
if (((int32_t)((int32_t)L_14-(int32_t)((int32_t)91))) == 1)
{
goto IL_0133;
}
if (((int32_t)((int32_t)L_14-(int32_t)((int32_t)91))) == 2)
{
goto IL_00b5;
}
if (((int32_t)((int32_t)L_14-(int32_t)((int32_t)91))) == 3)
{
goto IL_00cc;
}
}
IL_00b5:
{
uint16_t L_15 = V_20;
if ((((int32_t)L_15) == ((int32_t)((int32_t)63))))
{
goto IL_025f;
}
}
{
uint16_t L_16 = V_20;
if ((((int32_t)L_16) == ((int32_t)((int32_t)124))))
{
goto IL_01e2;
}
}
{
goto IL_026b;
}
IL_00cc:
{
int32_t L_17 = p1;
bool L_18 = m4681(NULL, L_17, NULL);
if (!L_18)
{
goto IL_00dd;
}
}
{
G_B11_0 = 3;
goto IL_00de;
}
IL_00dd:
{
G_B11_0 = 1;
}
IL_00de:
{
V_7 = G_B11_0;
uint16_t L_19 = V_7;
t931 * L_20 = (t931 *)il2cpp_codegen_object_new (t931_TI_var);
m4774(L_20, L_19, NULL);
V_4 = L_20;
goto IL_0270;
}
IL_00ee:
{
int32_t L_21 = p1;
bool L_22 = m4681(NULL, L_21, NULL);
if (!L_22)
{
goto IL_00ff;
}
}
{
G_B15_0 = 7;
goto IL_0100;
}
IL_00ff:
{
G_B15_0 = 5;
}
IL_0100:
{
V_8 = G_B15_0;
uint16_t L_23 = V_8;
t931 * L_24 = (t931 *)il2cpp_codegen_object_new (t931_TI_var);
m4774(L_24, L_23, NULL);
V_4 = L_24;
goto IL_0270;
}
IL_0110:
{
int32_t L_25 = p1;
bool L_26 = m4683(NULL, L_25, NULL);
if (!L_26)
{
goto IL_0121;
}
}
{
G_B19_0 = 2;
goto IL_0122;
}
IL_0121:
{
G_B19_0 = 1;
}
IL_0122:
{
V_9 = G_B19_0;
uint16_t L_27 = V_9;
t934 * L_28 = (t934 *)il2cpp_codegen_object_new (t934_TI_var);
m4790(L_28, L_27, 0, NULL);
V_4 = L_28;
goto IL_0270;
}
IL_0133:
{
int32_t L_29 = m4672(__this, NULL);
V_10 = L_29;
int32_t L_30 = V_10;
if ((((int32_t)L_30) < ((int32_t)0)))
{
goto IL_014d;
}
}
{
int32_t L_31 = V_10;
V_6 = (((int32_t)((uint16_t)L_31)));
goto IL_017d;
}
IL_014d:
{
int32_t L_32 = p1;
t918 * L_33 = m4671(__this, L_32, NULL);
V_4 = L_33;
t918 * L_34 = V_4;
if (L_34)
{
goto IL_017d;
}
}
{
t15* L_35 = (__this->f0);
int32_t L_36 = (__this->f1);
int32_t L_37 = L_36;
V_19 = L_37;
__this->f1 = ((int32_t)((int32_t)L_37+(int32_t)1));
int32_t L_38 = V_19;
uint16_t L_39 = m1839(L_35, L_38, NULL);
V_6 = L_39;
}
IL_017d:
{
goto IL_0270;
}
IL_0182:
{
int32_t L_40 = p1;
t918 * L_41 = m4668(__this, L_40, NULL);
V_4 = L_41;
goto IL_0270;
}
IL_0190:
{
int32_t L_42 = p1;
bool L_43 = m4680(NULL, L_42, NULL);
V_11 = L_43;
t918 * L_44 = m4665(__this, (&p1), NULL);
V_4 = L_44;
t918 * L_45 = V_4;
if (L_45)
{
goto IL_01d5;
}
}
{
t15* L_46 = V_2;
if (!L_46)
{
goto IL_01d0;
}
}
{
int32_t L_47 = p1;
bool L_48 = m4680(NULL, L_47, NULL);
bool L_49 = V_11;
if ((((int32_t)L_48) == ((int32_t)L_49)))
{
goto IL_01d0;
}
}
{
t920 * L_50 = V_3;
t15* L_51 = V_2;
int32_t L_52 = p1;
bool L_53 = m4680(NULL, L_52, NULL);
t929 * L_54 = (t929 *)il2cpp_codegen_object_new (t929_TI_var);
m4768(L_54, L_51, L_53, NULL);
m4716(L_50, L_54, NULL);
V_2 = (t15*)NULL;
}
IL_01d0:
{
goto IL_001a;
}
IL_01d5:
{
goto IL_0270;
}
IL_01da:
{
V_5 = 1;
goto IL_0484;
}
IL_01e2:
{
t15* L_55 = V_2;
if (!L_55)
{
goto IL_01fc;
}
}
{
t920 * L_56 = V_3;
t15* L_57 = V_2;
int32_t L_58 = p1;
bool L_59 = m4680(NULL, L_58, NULL);
t929 * L_60 = (t929 *)il2cpp_codegen_object_new (t929_TI_var);
m4768(L_60, L_57, L_59, NULL);
m4716(L_56, L_60, NULL);
V_2 = (t15*)NULL;
}
IL_01fc:
{
t926 * L_61 = p2;
if (!L_61)
{
goto IL_0241;
}
}
{
t926 * L_62 = p2;
t918 * L_63 = m4746(L_62, NULL);
if (L_63)
{
goto IL_0219;
}
}
{
t926 * L_64 = p2;
t920 * L_65 = V_3;
m4747(L_64, L_65, NULL);
goto IL_023c;
}
IL_0219:
{
t926 * L_66 = p2;
t918 * L_67 = m4748(L_66, NULL);
if (L_67)
{
goto IL_0230;
}
}
{
t926 * L_68 = p2;
t920 * L_69 = V_3;
m4749(L_68, L_69, NULL);
goto IL_023c;
}
IL_0230:
{
t387 * L_70 = m4686(__this, _stringLiteral816, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_70);
}
IL_023c:
{
goto IL_0254;
}
IL_0241:
{
t930 * L_71 = V_1;
if (L_71)
{
goto IL_024d;
}
}
{
t930 * L_72 = (t930 *)il2cpp_codegen_object_new (t930_TI_var);
m4763(L_72, NULL);
V_1 = L_72;
}
IL_024d:
{
t930 * L_73 = V_1;
t920 * L_74 = V_3;
m4765(L_73, L_74, NULL);
}
IL_0254:
{
t920 * L_75 = (t920 *)il2cpp_codegen_object_new (t920_TI_var);
m4715(L_75, NULL);
V_3 = L_75;
goto IL_001a;
}
IL_025f:
{
t387 * L_76 = m4686(__this, _stringLiteral817, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_76);
}
IL_026b:
{
goto IL_0270;
}
IL_0270:
{
int32_t L_77 = p1;
bool L_78 = m4684(NULL, L_77, NULL);
m4677(__this, L_78, NULL);
int32_t L_79 = (__this->f1);
t15* L_80 = (__this->f0);
int32_t L_81 = m1820(L_80, NULL);
if ((((int32_t)L_79) >= ((int32_t)L_81)))
{
goto IL_0413;
}
}
{
t15* L_82 = (__this->f0);
int32_t L_83 = (__this->f1);
uint16_t L_84 = m1839(L_82, L_83, NULL);
V_12 = L_84;
V_13 = 0;
V_14 = 0;
V_15 = 0;
V_16 = 0;
uint16_t L_85 = V_12;
if ((((int32_t)L_85) == ((int32_t)((int32_t)63))))
{
goto IL_02cc;
}
}
{
uint16_t L_86 = V_12;
if ((((int32_t)L_86) == ((int32_t)((int32_t)42))))
{
goto IL_02cc;
}
}
{
uint16_t L_87 = V_12;
if ((!(((uint32_t)L_87) == ((uint32_t)((int32_t)43)))))
{
goto IL_032f;
}
}
IL_02cc:
{
int32_t L_88 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_88+(int32_t)1));
V_16 = 1;
uint16_t L_89 = V_12;
V_20 = L_89;
uint16_t L_90 = V_20;
if ((((int32_t)L_90) == ((int32_t)((int32_t)42))))
{
goto IL_030c;
}
}
{
uint16_t L_91 = V_20;
if ((((int32_t)L_91) == ((int32_t)((int32_t)43))))
{
goto IL_031b;
}
}
{
uint16_t L_92 = V_20;
if ((((int32_t)L_92) == ((int32_t)((int32_t)63))))
{
goto IL_0301;
}
}
{
goto IL_032a;
}
IL_0301:
{
V_13 = 0;
V_14 = 1;
goto IL_032a;
}
IL_030c:
{
V_13 = 0;
V_14 = ((int32_t)2147483647);
goto IL_032a;
}
IL_031b:
{
V_13 = 1;
V_14 = ((int32_t)2147483647);
goto IL_032a;
}
IL_032a:
{
goto IL_0382;
}
IL_032f:
{
uint16_t L_93 = V_12;
if ((!(((uint32_t)L_93) == ((uint32_t)((int32_t)123)))))
{
goto IL_0382;
}
}
{
int32_t L_94 = (__this->f1);
t15* L_95 = (__this->f0);
int32_t L_96 = m1820(L_95, NULL);
if ((((int32_t)((int32_t)((int32_t)L_94+(int32_t)1))) >= ((int32_t)L_96)))
{
goto IL_0382;
}
}
{
int32_t L_97 = (__this->f1);
V_17 = L_97;
int32_t L_98 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_98+(int32_t)1));
int32_t L_99 = p1;
bool L_100 = m4669(__this, (&V_13), (&V_14), L_99, NULL);
V_16 = L_100;
bool L_101 = V_16;
if (L_101)
{
goto IL_0382;
}
}
{
int32_t L_102 = V_17;
__this->f1 = L_102;
}
IL_0382:
{
bool L_103 = V_16;
if (!L_103)
{
goto IL_0413;
}
}
{
int32_t L_104 = p1;
bool L_105 = m4684(NULL, L_104, NULL);
m4677(__this, L_105, NULL);
int32_t L_106 = (__this->f1);
t15* L_107 = (__this->f0);
int32_t L_108 = m1820(L_107, NULL);
if ((((int32_t)L_106) >= ((int32_t)L_108)))
{
goto IL_03d4;
}
}
{
t15* L_109 = (__this->f0);
int32_t L_110 = (__this->f1);
uint16_t L_111 = m1839(L_109, L_110, NULL);
if ((!(((uint32_t)L_111) == ((uint32_t)((int32_t)63)))))
{
goto IL_03d4;
}
}
{
int32_t L_112 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_112+(int32_t)1));
V_15 = 1;
}
IL_03d4:
{
int32_t L_113 = V_13;
int32_t L_114 = V_14;
bool L_115 = V_15;
t925 * L_116 = (t925 *)il2cpp_codegen_object_new (t925_TI_var);
m4738(L_116, L_113, L_114, L_115, NULL);
V_18 = L_116;
t918 * L_117 = V_4;
if (L_117)
{
goto IL_0406;
}
}
{
t925 * L_118 = V_18;
t15* L_119 = m1864((&V_6), NULL);
int32_t L_120 = p1;
bool L_121 = m4680(NULL, L_120, NULL);
t929 * L_122 = (t929 *)il2cpp_codegen_object_new (t929_TI_var);
m4768(L_122, L_119, L_121, NULL);
m4740(L_118, L_122, NULL);
goto IL_040f;
}
IL_0406:
{
t925 * L_123 = V_18;
t918 * L_124 = V_4;
m4740(L_123, L_124, NULL);
}
IL_040f:
{
t925 * L_125 = V_18;
V_4 = L_125;
}
IL_0413:
{
t918 * L_126 = V_4;
if (L_126)
{
goto IL_0439;
}
}
{
t15* L_127 = V_2;
if (L_127)
{
goto IL_0426;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_128 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
V_2 = L_128;
}
IL_0426:
{
t15* L_129 = V_2;
uint16_t L_130 = V_6;
uint16_t L_131 = L_130;
t14 * L_132 = Box(t180_TI_var, &L_131);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_133 = m1469(NULL, L_129, L_132, NULL);
V_2 = L_133;
goto IL_045e;
}
IL_0439:
{
t15* L_134 = V_2;
if (!L_134)
{
goto IL_0453;
}
}
{
t920 * L_135 = V_3;
t15* L_136 = V_2;
int32_t L_137 = p1;
bool L_138 = m4680(NULL, L_137, NULL);
t929 * L_139 = (t929 *)il2cpp_codegen_object_new (t929_TI_var);
m4768(L_139, L_136, L_138, NULL);
m4716(L_135, L_139, NULL);
V_2 = (t15*)NULL;
}
IL_0453:
{
t920 * L_140 = V_3;
t918 * L_141 = V_4;
m4716(L_140, L_141, NULL);
V_4 = (t918 *)NULL;
}
IL_045e:
{
bool L_142 = V_0;
if (!L_142)
{
goto IL_047f;
}
}
{
int32_t L_143 = (__this->f1);
t15* L_144 = (__this->f0);
int32_t L_145 = m1820(L_144, NULL);
if ((((int32_t)L_143) < ((int32_t)L_145)))
{
goto IL_047f;
}
}
{
goto IL_0484;
}
IL_047f:
{
goto IL_001a;
}
IL_0484:
{
bool L_146 = V_0;
if (!L_146)
{
goto IL_049d;
}
}
{
bool L_147 = V_5;
if (!L_147)
{
goto IL_049d;
}
}
{
t387 * L_148 = m4686(__this, _stringLiteral818, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_148);
}
IL_049d:
{
bool L_149 = V_0;
if (L_149)
{
goto IL_04b6;
}
}
{
bool L_150 = V_5;
if (L_150)
{
goto IL_04b6;
}
}
{
t387 * L_151 = m4686(__this, _stringLiteral819, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_151);
}
IL_04b6:
{
t15* L_152 = V_2;
if (!L_152)
{
goto IL_04ce;
}
}
{
t920 * L_153 = V_3;
t15* L_154 = V_2;
int32_t L_155 = p1;
bool L_156 = m4680(NULL, L_155, NULL);
t929 * L_157 = (t929 *)il2cpp_codegen_object_new (t929_TI_var);
m4768(L_157, L_154, L_156, NULL);
m4716(L_153, L_157, NULL);
}
IL_04ce:
{
t926 * L_158 = p2;
if (!L_158)
{
goto IL_04fe;
}
}
{
t926 * L_159 = p2;
t918 * L_160 = m4746(L_159, NULL);
if (L_160)
{
goto IL_04eb;
}
}
{
t926 * L_161 = p2;
t920 * L_162 = V_3;
m4747(L_161, L_162, NULL);
goto IL_04f2;
}
IL_04eb:
{
t926 * L_163 = p2;
t920 * L_164 = V_3;
m4749(L_163, L_164, NULL);
}
IL_04f2:
{
t920 * L_165 = p0;
t926 * L_166 = p2;
m4716(L_165, L_166, NULL);
goto IL_051e;
}
IL_04fe:
{
t930 * L_167 = V_1;
if (!L_167)
{
goto IL_0517;
}
}
{
t930 * L_168 = V_1;
t920 * L_169 = V_3;
m4765(L_168, L_169, NULL);
t920 * L_170 = p0;
t930 * L_171 = V_1;
m4716(L_170, L_171, NULL);
goto IL_051e;
}
IL_0517:
{
t920 * L_172 = p0;
t920 * L_173 = V_3;
m4716(L_172, L_173, NULL);
}
IL_051e:
{
return;
}
}
extern TypeInfo* t920_TI_var;
extern TypeInfo* t922_TI_var;
extern TypeInfo* t924_TI_var;
extern TypeInfo* t928_TI_var;
extern TypeInfo* t923_TI_var;
extern TypeInfo* t929_TI_var;
extern TypeInfo* t927_TI_var;
extern Il2CppCodeGenString* _stringLiteral820;
extern Il2CppCodeGenString* _stringLiteral821;
extern Il2CppCodeGenString* _stringLiteral822;
extern Il2CppCodeGenString* _stringLiteral823;
extern Il2CppCodeGenString* _stringLiteral824;
extern Il2CppCodeGenString* _stringLiteral825;
extern "C" t918 * m4665 (t915 * __this, int32_t* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t920_TI_var = il2cpp_codegen_type_info_from_index(595);
t922_TI_var = il2cpp_codegen_type_info_from_index(594);
t924_TI_var = il2cpp_codegen_type_info_from_index(601);
t928_TI_var = il2cpp_codegen_type_info_from_index(602);
t923_TI_var = il2cpp_codegen_type_info_from_index(603);
t929_TI_var = il2cpp_codegen_type_info_from_index(598);
t927_TI_var = il2cpp_codegen_type_info_from_index(604);
_stringLiteral820 = il2cpp_codegen_string_literal_from_index(820);
_stringLiteral821 = il2cpp_codegen_string_literal_from_index(821);
_stringLiteral822 = il2cpp_codegen_string_literal_from_index(822);
_stringLiteral823 = il2cpp_codegen_string_literal_from_index(823);
_stringLiteral824 = il2cpp_codegen_string_literal_from_index(824);
_stringLiteral825 = il2cpp_codegen_string_literal_from_index(825);
s_Il2CppMethodIntialized = true;
}
t920 * V_0 = {0};
t920 * V_1 = {0};
t920 * V_2 = {0};
int32_t V_3 = {0};
t920 * V_4 = {0};
t928 * V_5 = {0};
t920 * V_6 = {0};
uint16_t V_7 = 0x0;
t15* V_8 = {0};
t922 * V_9 = {0};
t15* V_10 = {0};
t923 * V_11 = {0};
t926 * V_12 = {0};
int32_t V_13 = 0;
t15* V_14 = {0};
t928 * V_15 = {0};
t920 * V_16 = {0};
t920 * V_17 = {0};
uint16_t V_18 = 0x0;
int32_t V_19 = 0;
{
t15* L_0 = (__this->f0);
int32_t L_1 = (__this->f1);
uint16_t L_2 = m1839(L_0, L_1, NULL);
if ((((int32_t)L_2) == ((int32_t)((int32_t)63))))
{
goto IL_004e;
}
}
{
int32_t* L_3 = p0;
bool L_4 = m4682(NULL, (*((int32_t*)L_3)), NULL);
if (!L_4)
{
goto IL_002f;
}
}
{
t920 * L_5 = (t920 *)il2cpp_codegen_object_new (t920_TI_var);
m4715(L_5, NULL);
V_0 = L_5;
goto IL_0042;
}
IL_002f:
{
t922 * L_6 = (t922 *)il2cpp_codegen_object_new (t922_TI_var);
m4723(L_6, NULL);
V_0 = L_6;
t603 * L_7 = (__this->f2);
t920 * L_8 = V_0;
VirtFuncInvoker1< int32_t, t14 * >::Invoke(30 /* System.Int32 System.Collections.ArrayList::Add(System.Object) */, L_7, L_8);
}
IL_0042:
{
t920 * L_9 = V_0;
int32_t* L_10 = p0;
m4664(__this, L_9, (*((int32_t*)L_10)), (t926 *)NULL, NULL);
t920 * L_11 = V_0;
return L_11;
}
IL_004e:
{
int32_t L_12 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_12+(int32_t)1));
t15* L_13 = (__this->f0);
int32_t L_14 = (__this->f1);
uint16_t L_15 = m1839(L_13, L_14, NULL);
V_18 = L_15;
uint16_t L_16 = V_18;
if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)33))) == 0)
{
goto IL_01e5;
}
if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)33))) == 1)
{
goto IL_0099;
}
if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)33))) == 2)
{
goto IL_0482;
}
if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)33))) == 3)
{
goto IL_0099;
}
if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)33))) == 4)
{
goto IL_0099;
}
if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)33))) == 5)
{
goto IL_0099;
}
if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)33))) == 6)
{
goto IL_021c;
}
if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)33))) == 7)
{
goto IL_0376;
}
}
IL_0099:
{
uint16_t L_17 = V_18;
if (((int32_t)((int32_t)L_17-(int32_t)((int32_t)105))) == 0)
{
goto IL_0139;
}
if (((int32_t)((int32_t)L_17-(int32_t)((int32_t)105))) == 1)
{
goto IL_00bb;
}
if (((int32_t)((int32_t)L_17-(int32_t)((int32_t)105))) == 2)
{
goto IL_00bb;
}
if (((int32_t)((int32_t)L_17-(int32_t)((int32_t)105))) == 3)
{
goto IL_00bb;
}
if (((int32_t)((int32_t)L_17-(int32_t)((int32_t)105))) == 4)
{
goto IL_0139;
}
if (((int32_t)((int32_t)L_17-(int32_t)((int32_t)105))) == 5)
{
goto IL_0139;
}
}
IL_00bb:
{
uint16_t L_18 = V_18;
if (((int32_t)((int32_t)L_18-(int32_t)((int32_t)58))) == 0)
{
goto IL_00f9;
}
if (((int32_t)((int32_t)L_18-(int32_t)((int32_t)58))) == 1)
{
goto IL_00d9;
}
if (((int32_t)((int32_t)L_18-(int32_t)((int32_t)58))) == 2)
{
goto IL_01e5;
}
if (((int32_t)((int32_t)L_18-(int32_t)((int32_t)58))) == 3)
{
goto IL_01e5;
}
if (((int32_t)((int32_t)L_18-(int32_t)((int32_t)58))) == 4)
{
goto IL_0119;
}
}
IL_00d9:
{
uint16_t L_19 = V_18;
if ((((int32_t)L_19) == ((int32_t)((int32_t)45))))
{
goto IL_0139;
}
}
{
uint16_t L_20 = V_18;
if ((((int32_t)L_20) == ((int32_t)((int32_t)115))))
{
goto IL_0139;
}
}
{
uint16_t L_21 = V_18;
if ((((int32_t)L_21) == ((int32_t)((int32_t)120))))
{
goto IL_0139;
}
}
{
goto IL_04de;
}
IL_00f9:
{
int32_t L_22 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_22+(int32_t)1));
t920 * L_23 = (t920 *)il2cpp_codegen_object_new (t920_TI_var);
m4715(L_23, NULL);
V_1 = L_23;
t920 * L_24 = V_1;
int32_t* L_25 = p0;
m4664(__this, L_24, (*((int32_t*)L_25)), (t926 *)NULL, NULL);
t920 * L_26 = V_1;
return L_26;
}
IL_0119:
{
int32_t L_27 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_27+(int32_t)1));
t924 * L_28 = (t924 *)il2cpp_codegen_object_new (t924_TI_var);
m4735(L_28, NULL);
V_2 = L_28;
t920 * L_29 = V_2;
int32_t* L_30 = p0;
m4664(__this, L_29, (*((int32_t*)L_30)), (t926 *)NULL, NULL);
t920 * L_31 = V_2;
return L_31;
}
IL_0139:
{
int32_t* L_32 = p0;
V_3 = (*((int32_t*)L_32));
m4667(__this, (&V_3), 0, NULL);
t15* L_33 = (__this->f0);
int32_t L_34 = (__this->f1);
uint16_t L_35 = m1839(L_33, L_34, NULL);
if ((!(((uint32_t)L_35) == ((uint32_t)((int32_t)45)))))
{
goto IL_0174;
}
}
{
int32_t L_36 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_36+(int32_t)1));
m4667(__this, (&V_3), 1, NULL);
}
IL_0174:
{
t15* L_37 = (__this->f0);
int32_t L_38 = (__this->f1);
uint16_t L_39 = m1839(L_37, L_38, NULL);
if ((!(((uint32_t)L_39) == ((uint32_t)((int32_t)58)))))
{
goto IL_01ae;
}
}
{
int32_t L_40 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_40+(int32_t)1));
t920 * L_41 = (t920 *)il2cpp_codegen_object_new (t920_TI_var);
m4715(L_41, NULL);
V_4 = L_41;
t920 * L_42 = V_4;
int32_t L_43 = V_3;
m4664(__this, L_42, L_43, (t926 *)NULL, NULL);
t920 * L_44 = V_4;
return L_44;
}
IL_01ae:
{
t15* L_45 = (__this->f0);
int32_t L_46 = (__this->f1);
uint16_t L_47 = m1839(L_45, L_46, NULL);
if ((!(((uint32_t)L_47) == ((uint32_t)((int32_t)41)))))
{
goto IL_01d9;
}
}
{
int32_t L_48 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_48+(int32_t)1));
int32_t* L_49 = p0;
int32_t L_50 = V_3;
*((int32_t*)(L_49)) = (int32_t)L_50;
return (t918 *)NULL;
}
IL_01d9:
{
t387 * L_51 = m4686(__this, _stringLiteral820, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_51);
}
IL_01e5:
{
t928 * L_52 = (t928 *)il2cpp_codegen_object_new (t928_TI_var);
m4756(L_52, NULL);
V_5 = L_52;
t928 * L_53 = V_5;
bool L_54 = m4666(__this, L_53, NULL);
if (L_54)
{
goto IL_01fe;
}
}
{
goto IL_021c;
}
IL_01fe:
{
t920 * L_55 = (t920 *)il2cpp_codegen_object_new (t920_TI_var);
m4715(L_55, NULL);
V_6 = L_55;
t920 * L_56 = V_6;
int32_t* L_57 = p0;
m4664(__this, L_56, (*((int32_t*)L_57)), (t926 *)NULL, NULL);
t928 * L_58 = V_5;
t920 * L_59 = V_6;
m4760(L_58, L_59, NULL);
t928 * L_60 = V_5;
return L_60;
}
IL_021c:
{
t15* L_61 = (__this->f0);
int32_t L_62 = (__this->f1);
uint16_t L_63 = m1839(L_61, L_62, NULL);
if ((!(((uint32_t)L_63) == ((uint32_t)((int32_t)60)))))
{
goto IL_023d;
}
}
{
V_7 = ((int32_t)62);
goto IL_0241;
}
IL_023d:
{
V_7 = ((int32_t)39);
}
IL_0241:
{
int32_t L_64 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_64+(int32_t)1));
t15* L_65 = m4673(__this, NULL);
V_8 = L_65;
t15* L_66 = (__this->f0);
int32_t L_67 = (__this->f1);
uint16_t L_68 = m1839(L_66, L_67, NULL);
uint16_t L_69 = V_7;
if ((!(((uint32_t)L_68) == ((uint32_t)L_69))))
{
goto IL_02bc;
}
}
{
t15* L_70 = V_8;
if (L_70)
{
goto IL_0282;
}
}
{
t387 * L_71 = m4686(__this, _stringLiteral821, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_71);
}
IL_0282:
{
int32_t L_72 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_72+(int32_t)1));
t922 * L_73 = (t922 *)il2cpp_codegen_object_new (t922_TI_var);
m4723(L_73, NULL);
V_9 = L_73;
t922 * L_74 = V_9;
t15* L_75 = V_8;
m4727(L_74, L_75, NULL);
t603 * L_76 = (__this->f2);
t922 * L_77 = V_9;
VirtFuncInvoker1< int32_t, t14 * >::Invoke(30 /* System.Int32 System.Collections.ArrayList::Add(System.Object) */, L_76, L_77);
t922 * L_78 = V_9;
int32_t* L_79 = p0;
m4664(__this, L_78, (*((int32_t*)L_79)), (t926 *)NULL, NULL);
t922 * L_80 = V_9;
return L_80;
}
IL_02bc:
{
t15* L_81 = (__this->f0);
int32_t L_82 = (__this->f1);
uint16_t L_83 = m1839(L_81, L_82, NULL);
if ((!(((uint32_t)L_83) == ((uint32_t)((int32_t)45)))))
{
goto IL_036a;
}
}
{
int32_t L_84 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_84+(int32_t)1));
t15* L_85 = m4673(__this, NULL);
V_10 = L_85;
t15* L_86 = V_10;
if (!L_86)
{
goto IL_0309;
}
}
{
t15* L_87 = (__this->f0);
int32_t L_88 = (__this->f1);
uint16_t L_89 = m1839(L_87, L_88, NULL);
uint16_t L_90 = V_7;
if ((((int32_t)L_89) == ((int32_t)L_90)))
{
goto IL_0315;
}
}
IL_0309:
{
t387 * L_91 = m4686(__this, _stringLiteral822, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_91);
}
IL_0315:
{
int32_t L_92 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_92+(int32_t)1));
t923 * L_93 = (t923 *)il2cpp_codegen_object_new (t923_TI_var);
m4732(L_93, NULL);
V_11 = L_93;
t923 * L_94 = V_11;
t15* L_95 = V_8;
m4727(L_94, L_95, NULL);
t923 * L_96 = V_11;
bool L_97 = m4728(L_96, NULL);
if (!L_97)
{
goto IL_034d;
}
}
{
t603 * L_98 = (__this->f2);
t923 * L_99 = V_11;
VirtFuncInvoker1< int32_t, t14 * >::Invoke(30 /* System.Int32 System.Collections.ArrayList::Add(System.Object) */, L_98, L_99);
}
IL_034d:
{
t672 * L_100 = (__this->f3);
t923 * L_101 = V_11;
t15* L_102 = V_10;
VirtActionInvoker2< t14 *, t14 * >::Invoke(26 /* System.Void System.Collections.Hashtable::Add(System.Object,System.Object) */, L_100, L_101, L_102);
t923 * L_103 = V_11;
int32_t* L_104 = p0;
m4664(__this, L_103, (*((int32_t*)L_104)), (t926 *)NULL, NULL);
t923 * L_105 = V_11;
return L_105;
}
IL_036a:
{
t387 * L_106 = m4686(__this, _stringLiteral821, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_106);
}
IL_0376:
{
int32_t L_107 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_107+(int32_t)1));
int32_t L_108 = (__this->f1);
V_13 = L_108;
t15* L_109 = m4673(__this, NULL);
V_14 = L_109;
t15* L_110 = V_14;
if (!L_110)
{
goto IL_03b3;
}
}
{
t15* L_111 = (__this->f0);
int32_t L_112 = (__this->f1);
uint16_t L_113 = m1839(L_111, L_112, NULL);
if ((((int32_t)L_113) == ((int32_t)((int32_t)41))))
{
goto IL_043a;
}
}
IL_03b3:
{
int32_t L_114 = V_13;
__this->f1 = L_114;
t928 * L_115 = (t928 *)il2cpp_codegen_object_new (t928_TI_var);
m4756(L_115, NULL);
V_15 = L_115;
t15* L_116 = (__this->f0);
int32_t L_117 = (__this->f1);
uint16_t L_118 = m1839(L_116, L_117, NULL);
if ((!(((uint32_t)L_118) == ((uint32_t)((int32_t)63)))))
{
goto IL_0406;
}
}
{
int32_t L_119 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_119+(int32_t)1));
t928 * L_120 = V_15;
bool L_121 = m4666(__this, L_120, NULL);
if (L_121)
{
goto IL_0401;
}
}
{
t387 * L_122 = m4686(__this, _stringLiteral823, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_122);
}
IL_0401:
{
goto IL_0416;
}
IL_0406:
{
t928 * L_123 = V_15;
m4758(L_123, 0, NULL);
t928 * L_124 = V_15;
m4757(L_124, 0, NULL);
}
IL_0416:
{
t920 * L_125 = (t920 *)il2cpp_codegen_object_new (t920_TI_var);
m4715(L_125, NULL);
V_16 = L_125;
t920 * L_126 = V_16;
int32_t* L_127 = p0;
m4664(__this, L_126, (*((int32_t*)L_127)), (t926 *)NULL, NULL);
t928 * L_128 = V_15;
t920 * L_129 = V_16;
m4760(L_128, L_129, NULL);
t928 * L_130 = V_15;
V_12 = L_130;
goto IL_046c;
}
IL_043a:
{
int32_t L_131 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_131+(int32_t)1));
t15* L_132 = V_14;
int32_t* L_133 = p0;
bool L_134 = m4680(NULL, (*((int32_t*)L_133)), NULL);
t929 * L_135 = (t929 *)il2cpp_codegen_object_new (t929_TI_var);
m4768(L_135, L_132, L_134, NULL);
t927 * L_136 = (t927 *)il2cpp_codegen_object_new (t927_TI_var);
m4751(L_136, L_135, NULL);
V_12 = L_136;
t672 * L_137 = (__this->f3);
t926 * L_138 = V_12;
t15* L_139 = V_14;
VirtActionInvoker2< t14 *, t14 * >::Invoke(26 /* System.Void System.Collections.Hashtable::Add(System.Object,System.Object) */, L_137, L_138, L_139);
}
IL_046c:
{
t920 * L_140 = (t920 *)il2cpp_codegen_object_new (t920_TI_var);
m4715(L_140, NULL);
V_17 = L_140;
t920 * L_141 = V_17;
int32_t* L_142 = p0;
t926 * L_143 = V_12;
m4664(__this, L_141, (*((int32_t*)L_142)), L_143, NULL);
t920 * L_144 = V_17;
return L_144;
}
IL_0482:
{
int32_t L_145 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_145+(int32_t)1));
goto IL_04b7;
}
IL_0495:
{
int32_t L_146 = (__this->f1);
t15* L_147 = (__this->f0);
int32_t L_148 = m1820(L_147, NULL);
if ((((int32_t)L_146) < ((int32_t)L_148)))
{
goto IL_04b7;
}
}
{
t387 * L_149 = m4686(__this, _stringLiteral824, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_149);
}
IL_04b7:
{
t15* L_150 = (__this->f0);
int32_t L_151 = (__this->f1);
int32_t L_152 = L_151;
V_19 = L_152;
__this->f1 = ((int32_t)((int32_t)L_152+(int32_t)1));
int32_t L_153 = V_19;
uint16_t L_154 = m1839(L_150, L_153, NULL);
if ((!(((uint32_t)L_154) == ((uint32_t)((int32_t)41)))))
{
goto IL_0495;
}
}
{
return (t918 *)NULL;
}
IL_04de:
{
t387 * L_155 = m4686(__this, _stringLiteral825, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_155);
}
}
extern "C" bool m4666 (t915 * __this, t928 * p0, const MethodInfo* method)
{
uint16_t V_0 = 0x0;
{
t15* L_0 = (__this->f0);
int32_t L_1 = (__this->f1);
uint16_t L_2 = m1839(L_0, L_1, NULL);
if ((!(((uint32_t)L_2) == ((uint32_t)((int32_t)60)))))
{
goto IL_0075;
}
}
{
t15* L_3 = (__this->f0);
int32_t L_4 = (__this->f1);
uint16_t L_5 = m1839(L_3, ((int32_t)((int32_t)L_4+(int32_t)1)), NULL);
V_0 = L_5;
uint16_t L_6 = V_0;
if ((((int32_t)L_6) == ((int32_t)((int32_t)33))))
{
goto IL_004d;
}
}
{
uint16_t L_7 = V_0;
if ((((int32_t)L_7) == ((int32_t)((int32_t)61))))
{
goto IL_0041;
}
}
{
goto IL_0059;
}
IL_0041:
{
t928 * L_8 = p0;
m4758(L_8, 0, NULL);
goto IL_005b;
}
IL_004d:
{
t928 * L_9 = p0;
m4758(L_9, 1, NULL);
goto IL_005b;
}
IL_0059:
{
return 0;
}
IL_005b:
{
t928 * L_10 = p0;
m4757(L_10, 1, NULL);
int32_t L_11 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_11+(int32_t)2));
goto IL_00cb;
}
IL_0075:
{
t15* L_12 = (__this->f0);
int32_t L_13 = (__this->f1);
uint16_t L_14 = m1839(L_12, L_13, NULL);
V_0 = L_14;
uint16_t L_15 = V_0;
if ((((int32_t)L_15) == ((int32_t)((int32_t)33))))
{
goto IL_00a8;
}
}
{
uint16_t L_16 = V_0;
if ((((int32_t)L_16) == ((int32_t)((int32_t)61))))
{
goto IL_009c;
}
}
{
goto IL_00b4;
}
IL_009c:
{
t928 * L_17 = p0;
m4758(L_17, 0, NULL);
goto IL_00b6;
}
IL_00a8:
{
t928 * L_18 = p0;
m4758(L_18, 1, NULL);
goto IL_00b6;
}
IL_00b4:
{
return 0;
}
IL_00b6:
{
t928 * L_19 = p0;
m4757(L_19, 0, NULL);
int32_t L_20 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_20+(int32_t)1));
}
IL_00cb:
{
return 1;
}
}
extern "C" void m4667 (t915 * __this, int32_t* p0, bool p1, const MethodInfo* method)
{
uint16_t V_0 = 0x0;
{
goto IL_00ef;
}
IL_0005:
{
t15* L_0 = (__this->f0);
int32_t L_1 = (__this->f1);
uint16_t L_2 = m1839(L_0, L_1, NULL);
V_0 = L_2;
uint16_t L_3 = V_0;
if (((int32_t)((int32_t)L_3-(int32_t)((int32_t)105))) == 0)
{
goto IL_004d;
}
if (((int32_t)((int32_t)L_3-(int32_t)((int32_t)105))) == 1)
{
goto IL_0038;
}
if (((int32_t)((int32_t)L_3-(int32_t)((int32_t)105))) == 2)
{
goto IL_0038;
}
if (((int32_t)((int32_t)L_3-(int32_t)((int32_t)105))) == 3)
{
goto IL_0038;
}
if (((int32_t)((int32_t)L_3-(int32_t)((int32_t)105))) == 4)
{
goto IL_006a;
}
if (((int32_t)((int32_t)L_3-(int32_t)((int32_t)105))) == 5)
{
goto IL_0087;
}
}
IL_0038:
{
uint16_t L_4 = V_0;
if ((((int32_t)L_4) == ((int32_t)((int32_t)115))))
{
goto IL_00a4;
}
}
{
uint16_t L_5 = V_0;
if ((((int32_t)L_5) == ((int32_t)((int32_t)120))))
{
goto IL_00c2;
}
}
{
goto IL_00e0;
}
IL_004d:
{
bool L_6 = p1;
if (!L_6)
{
goto IL_005f;
}
}
{
int32_t* L_7 = p0;
int32_t* L_8 = p0;
*((int32_t*)(L_7)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_8))&(int32_t)((int32_t)-2)));
goto IL_0065;
}
IL_005f:
{
int32_t* L_9 = p0;
int32_t* L_10 = p0;
*((int32_t*)(L_9)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_10))|(int32_t)1));
}
IL_0065:
{
goto IL_00e1;
}
IL_006a:
{
bool L_11 = p1;
if (!L_11)
{
goto IL_007c;
}
}
{
int32_t* L_12 = p0;
int32_t* L_13 = p0;
*((int32_t*)(L_12)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_13))&(int32_t)((int32_t)-3)));
goto IL_0082;
}
IL_007c:
{
int32_t* L_14 = p0;
int32_t* L_15 = p0;
*((int32_t*)(L_14)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_15))|(int32_t)2));
}
IL_0082:
{
goto IL_00e1;
}
IL_0087:
{
bool L_16 = p1;
if (!L_16)
{
goto IL_0099;
}
}
{
int32_t* L_17 = p0;
int32_t* L_18 = p0;
*((int32_t*)(L_17)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_18))&(int32_t)((int32_t)-5)));
goto IL_009f;
}
IL_0099:
{
int32_t* L_19 = p0;
int32_t* L_20 = p0;
*((int32_t*)(L_19)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_20))|(int32_t)4));
}
IL_009f:
{
goto IL_00e1;
}
IL_00a4:
{
bool L_21 = p1;
if (!L_21)
{
goto IL_00b6;
}
}
{
int32_t* L_22 = p0;
int32_t* L_23 = p0;
*((int32_t*)(L_22)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_23))&(int32_t)((int32_t)-17)));
goto IL_00bd;
}
IL_00b6:
{
int32_t* L_24 = p0;
int32_t* L_25 = p0;
*((int32_t*)(L_24)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_25))|(int32_t)((int32_t)16)));
}
IL_00bd:
{
goto IL_00e1;
}
IL_00c2:
{
bool L_26 = p1;
if (!L_26)
{
goto IL_00d4;
}
}
{
int32_t* L_27 = p0;
int32_t* L_28 = p0;
*((int32_t*)(L_27)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_28))&(int32_t)((int32_t)-33)));
goto IL_00db;
}
IL_00d4:
{
int32_t* L_29 = p0;
int32_t* L_30 = p0;
*((int32_t*)(L_29)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_30))|(int32_t)((int32_t)32)));
}
IL_00db:
{
goto IL_00e1;
}
IL_00e0:
{
return;
}
IL_00e1:
{
int32_t L_31 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_31+(int32_t)1));
}
IL_00ef:
{
goto IL_0005;
}
}
extern TypeInfo* t934_TI_var;
extern TypeInfo* t24_TI_var;
extern TypeInfo* t15_TI_var;
extern TypeInfo* t322_TI_var;
extern Il2CppCodeGenString* _stringLiteral826;
extern Il2CppCodeGenString* _stringLiteral182;
extern Il2CppCodeGenString* _stringLiteral827;
extern Il2CppCodeGenString* _stringLiteral828;
extern Il2CppCodeGenString* _stringLiteral829;
extern "C" t918 * m4668 (t915 * __this, int32_t p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t934_TI_var = il2cpp_codegen_type_info_from_index(597);
t24_TI_var = il2cpp_codegen_type_info_from_index(74);
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
t322_TI_var = il2cpp_codegen_type_info_from_index(72);
_stringLiteral826 = il2cpp_codegen_string_literal_from_index(826);
_stringLiteral182 = il2cpp_codegen_string_literal_from_index(182);
_stringLiteral827 = il2cpp_codegen_string_literal_from_index(827);
_stringLiteral828 = il2cpp_codegen_string_literal_from_index(828);
_stringLiteral829 = il2cpp_codegen_string_literal_from_index(829);
s_Il2CppMethodIntialized = true;
}
bool V_0 = false;
bool V_1 = false;
t934 * V_2 = {0};
int32_t V_3 = 0;
int32_t V_4 = 0;
bool V_5 = false;
bool V_6 = false;
int32_t V_7 = 0;
t934 * G_B24_0 = {0};
t934 * G_B23_0 = {0};
int32_t G_B25_0 = 0;
t934 * G_B25_1 = {0};
t934 * G_B28_0 = {0};
t934 * G_B27_0 = {0};
int32_t G_B29_0 = 0;
t934 * G_B29_1 = {0};
t934 * G_B32_0 = {0};
t934 * G_B31_0 = {0};
int32_t G_B33_0 = 0;
t934 * G_B33_1 = {0};
{
V_0 = 0;
t15* L_0 = (__this->f0);
int32_t L_1 = (__this->f1);
uint16_t L_2 = m1839(L_0, L_1, NULL);
if ((!(((uint32_t)L_2) == ((uint32_t)((int32_t)94)))))
{
goto IL_002a;
}
}
{
V_0 = 1;
int32_t L_3 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_3+(int32_t)1));
}
IL_002a:
{
int32_t L_4 = p0;
bool L_5 = m4685(NULL, L_4, NULL);
V_1 = L_5;
bool L_6 = V_0;
int32_t L_7 = p0;
bool L_8 = m4680(NULL, L_7, NULL);
t934 * L_9 = (t934 *)il2cpp_codegen_object_new (t934_TI_var);
m4789(L_9, L_6, L_8, NULL);
V_2 = L_9;
t15* L_10 = (__this->f0);
int32_t L_11 = (__this->f1);
uint16_t L_12 = m1839(L_10, L_11, NULL);
if ((!(((uint32_t)L_12) == ((uint32_t)((int32_t)93)))))
{
goto IL_006c;
}
}
{
t934 * L_13 = V_2;
m4793(L_13, ((int32_t)93), NULL);
int32_t L_14 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_14+(int32_t)1));
}
IL_006c:
{
V_3 = (-1);
V_4 = (-1);
V_5 = 0;
V_6 = 0;
goto IL_027f;
}
IL_007c:
{
t15* L_15 = (__this->f0);
int32_t L_16 = (__this->f1);
int32_t L_17 = L_16;
V_7 = L_17;
__this->f1 = ((int32_t)((int32_t)L_17+(int32_t)1));
int32_t L_18 = V_7;
uint16_t L_19 = m1839(L_15, L_18, NULL);
V_3 = L_19;
int32_t L_20 = V_3;
if ((!(((uint32_t)L_20) == ((uint32_t)((int32_t)93)))))
{
goto IL_00ab;
}
}
{
V_6 = 1;
goto IL_0295;
}
IL_00ab:
{
int32_t L_21 = V_3;
if ((!(((uint32_t)L_21) == ((uint32_t)((int32_t)45)))))
{
goto IL_00ca;
}
}
{
int32_t L_22 = V_4;
if ((((int32_t)L_22) < ((int32_t)0)))
{
goto IL_00ca;
}
}
{
bool L_23 = V_5;
if (L_23)
{
goto IL_00ca;
}
}
{
V_5 = 1;
goto IL_027f;
}
IL_00ca:
{
int32_t L_24 = V_3;
if ((!(((uint32_t)L_24) == ((uint32_t)((int32_t)92)))))
{
goto IL_0212;
}
}
{
int32_t L_25 = m4672(__this, NULL);
V_3 = L_25;
int32_t L_26 = V_3;
if ((((int32_t)L_26) < ((int32_t)0)))
{
goto IL_00e5;
}
}
{
goto IL_0212;
}
IL_00e5:
{
t15* L_27 = (__this->f0);
int32_t L_28 = (__this->f1);
int32_t L_29 = L_28;
V_7 = L_29;
__this->f1 = ((int32_t)((int32_t)L_29+(int32_t)1));
int32_t L_30 = V_7;
uint16_t L_31 = m1839(L_27, L_30, NULL);
V_3 = L_31;
int32_t L_32 = V_3;
V_7 = L_32;
int32_t L_33 = V_7;
if (((int32_t)((int32_t)L_33-(int32_t)((int32_t)80))) == 0)
{
goto IL_01d1;
}
if (((int32_t)((int32_t)L_33-(int32_t)((int32_t)80))) == 1)
{
goto IL_0121;
}
if (((int32_t)((int32_t)L_33-(int32_t)((int32_t)80))) == 2)
{
goto IL_0121;
}
if (((int32_t)((int32_t)L_33-(int32_t)((int32_t)80))) == 3)
{
goto IL_01b3;
}
}
IL_0121:
{
int32_t L_34 = V_7;
if (((int32_t)((int32_t)L_34-(int32_t)((int32_t)112))) == 0)
{
goto IL_01d1;
}
if (((int32_t)((int32_t)L_34-(int32_t)((int32_t)112))) == 1)
{
goto IL_013b;
}
if (((int32_t)((int32_t)L_34-(int32_t)((int32_t)112))) == 2)
{
goto IL_013b;
}
if (((int32_t)((int32_t)L_34-(int32_t)((int32_t)112))) == 3)
{
goto IL_01b3;
}
}
IL_013b:
{
int32_t L_35 = V_7;
if (((int32_t)((int32_t)L_35-(int32_t)((int32_t)98))) == 0)
{
goto IL_0171;
}
if (((int32_t)((int32_t)L_35-(int32_t)((int32_t)98))) == 1)
{
goto IL_0151;
}
if (((int32_t)((int32_t)L_35-(int32_t)((int32_t)98))) == 2)
{
goto IL_0178;
}
}
IL_0151:
{
int32_t L_36 = V_7;
if ((((int32_t)L_36) == ((int32_t)((int32_t)68))))
{
goto IL_0178;
}
}
{
int32_t L_37 = V_7;
if ((((int32_t)L_37) == ((int32_t)((int32_t)87))))
{
goto IL_0196;
}
}
{
int32_t L_38 = V_7;
if ((((int32_t)L_38) == ((int32_t)((int32_t)119))))
{
goto IL_0196;
}
}
{
goto IL_01e7;
}
IL_0171:
{
V_3 = 8;
goto IL_0212;
}
IL_0178:
{
t934 * L_39 = V_2;
bool L_40 = V_1;
G_B23_0 = L_39;
if (!L_40)
{
G_B24_0 = L_39;
goto IL_0186;
}
}
{
G_B25_0 = ((int32_t)9);
G_B25_1 = G_B23_0;
goto IL_0187;
}
IL_0186:
{
G_B25_0 = 4;
G_B25_1 = G_B24_0;
}
IL_0187:
{
int32_t L_41 = V_3;
m4792(G_B25_1, G_B25_0, ((((int32_t)L_41) == ((int32_t)((int32_t)68)))? 1 : 0), NULL);
goto IL_01ec;
}
IL_0196:
{
t934 * L_42 = V_2;
bool L_43 = V_1;
G_B27_0 = L_42;
if (!L_43)
{
G_B28_0 = L_42;
goto IL_01a3;
}
}
{
G_B29_0 = 8;
G_B29_1 = G_B27_0;
goto IL_01a4;
}
IL_01a3:
{
G_B29_0 = 3;
G_B29_1 = G_B28_0;
}
IL_01a4:
{
int32_t L_44 = V_3;
m4792(G_B29_1, G_B29_0, ((((int32_t)L_44) == ((int32_t)((int32_t)87)))? 1 : 0), NULL);
goto IL_01ec;
}
IL_01b3:
{
t934 * L_45 = V_2;
bool L_46 = V_1;
G_B31_0 = L_45;
if (!L_46)
{
G_B32_0 = L_45;
goto IL_01c1;
}
}
{
G_B33_0 = ((int32_t)10);
G_B33_1 = G_B31_0;
goto IL_01c2;
}
IL_01c1:
{
G_B33_0 = 5;
G_B33_1 = G_B32_0;
}
IL_01c2:
{
int32_t L_47 = V_3;
m4792(G_B33_1, G_B33_0, ((((int32_t)L_47) == ((int32_t)((int32_t)83)))? 1 : 0), NULL);
goto IL_01ec;
}
IL_01d1:
{
t934 * L_48 = V_2;
uint16_t L_49 = m4670(__this, NULL);
int32_t L_50 = V_3;
m4792(L_48, L_49, ((((int32_t)L_50) == ((int32_t)((int32_t)80)))? 1 : 0), NULL);
goto IL_01ec;
}
IL_01e7:
{
goto IL_0212;
}
IL_01ec:
{
bool L_51 = V_5;
if (!L_51)
{
goto IL_020a;
}
}
{
int32_t L_52 = V_3;
int32_t L_53 = L_52;
t14 * L_54 = Box(t24_TI_var, &L_53);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_55 = m1469(NULL, _stringLiteral826, L_54, NULL);
t387 * L_56 = m4686(__this, L_55, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_56);
}
IL_020a:
{
V_4 = (-1);
goto IL_027f;
}
IL_0212:
{
bool L_57 = V_5;
if (!L_57)
{
goto IL_0274;
}
}
{
int32_t L_58 = V_3;
int32_t L_59 = V_4;
if ((((int32_t)L_58) >= ((int32_t)L_59)))
{
goto IL_025e;
}
}
{
t322* L_60 = ((t322*)SZArrayNew(t322_TI_var, 5));
ArrayElementTypeCheck (L_60, _stringLiteral182);
*((t14 **)(t14 **)SZArrayLdElema(L_60, 0, sizeof(t14 *))) = (t14 *)_stringLiteral182;
t322* L_61 = L_60;
int32_t L_62 = V_4;
int32_t L_63 = L_62;
t14 * L_64 = Box(t24_TI_var, &L_63);
ArrayElementTypeCheck (L_61, L_64);
*((t14 **)(t14 **)SZArrayLdElema(L_61, 1, sizeof(t14 *))) = (t14 *)L_64;
t322* L_65 = L_61;
ArrayElementTypeCheck (L_65, _stringLiteral827);
*((t14 **)(t14 **)SZArrayLdElema(L_65, 2, sizeof(t14 *))) = (t14 *)_stringLiteral827;
t322* L_66 = L_65;
int32_t L_67 = V_3;
int32_t L_68 = L_67;
t14 * L_69 = Box(t24_TI_var, &L_68);
ArrayElementTypeCheck (L_66, L_69);
*((t14 **)(t14 **)SZArrayLdElema(L_66, 3, sizeof(t14 *))) = (t14 *)L_69;
t322* L_70 = L_66;
ArrayElementTypeCheck (L_70, _stringLiteral828);
*((t14 **)(t14 **)SZArrayLdElema(L_70, 4, sizeof(t14 *))) = (t14 *)_stringLiteral828;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_71 = m1506(NULL, L_70, NULL);
t387 * L_72 = m4686(__this, L_71, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_72);
}
IL_025e:
{
t934 * L_73 = V_2;
int32_t L_74 = V_4;
int32_t L_75 = V_3;
m4794(L_73, (((int32_t)((uint16_t)L_74))), (((int32_t)((uint16_t)L_75))), NULL);
V_4 = (-1);
V_5 = 0;
goto IL_027f;
}
IL_0274:
{
t934 * L_76 = V_2;
int32_t L_77 = V_3;
m4793(L_76, (((int32_t)((uint16_t)L_77))), NULL);
int32_t L_78 = V_3;
V_4 = L_78;
}
IL_027f:
{
int32_t L_79 = (__this->f1);
t15* L_80 = (__this->f0);
int32_t L_81 = m1820(L_80, NULL);
if ((((int32_t)L_79) < ((int32_t)L_81)))
{
goto IL_007c;
}
}
IL_0295:
{
bool L_82 = V_6;
if (L_82)
{
goto IL_02a8;
}
}
{
t387 * L_83 = m4686(__this, _stringLiteral829, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_83);
}
IL_02a8:
{
bool L_84 = V_5;
if (!L_84)
{
goto IL_02b7;
}
}
{
t934 * L_85 = V_2;
m4793(L_85, ((int32_t)45), NULL);
}
IL_02b7:
{
t934 * L_86 = V_2;
return L_86;
}
}
extern Il2CppCodeGenString* _stringLiteral830;
extern Il2CppCodeGenString* _stringLiteral831;
extern "C" bool m4669 (t915 * __this, int32_t* p0, int32_t* p1, int32_t p2, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
_stringLiteral830 = il2cpp_codegen_string_literal_from_index(830);
_stringLiteral831 = il2cpp_codegen_string_literal_from_index(831);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
uint16_t V_3 = 0x0;
{
int32_t* L_0 = p0;
int32_t* L_1 = p1;
int32_t L_2 = 0;
V_2 = L_2;
*((int32_t*)(L_1)) = (int32_t)L_2;
int32_t L_3 = V_2;
*((int32_t*)(L_0)) = (int32_t)L_3;
int32_t L_4 = p2;
bool L_5 = m4684(NULL, L_4, NULL);
m4677(__this, L_5, NULL);
t15* L_6 = (__this->f0);
int32_t L_7 = (__this->f1);
uint16_t L_8 = m1839(L_6, L_7, NULL);
if ((!(((uint32_t)L_8) == ((uint32_t)((int32_t)44)))))
{
goto IL_0033;
}
}
{
V_0 = (-1);
goto IL_004a;
}
IL_0033:
{
int32_t L_9 = m4675(__this, ((int32_t)10), 1, 0, NULL);
V_0 = L_9;
int32_t L_10 = p2;
bool L_11 = m4684(NULL, L_10, NULL);
m4677(__this, L_11, NULL);
}
IL_004a:
{
t15* L_12 = (__this->f0);
int32_t L_13 = (__this->f1);
int32_t L_14 = L_13;
V_2 = L_14;
__this->f1 = ((int32_t)((int32_t)L_14+(int32_t)1));
int32_t L_15 = V_2;
uint16_t L_16 = m1839(L_12, L_15, NULL);
V_3 = L_16;
uint16_t L_17 = V_3;
if ((((int32_t)L_17) == ((int32_t)((int32_t)44))))
{
goto IL_0083;
}
}
{
uint16_t L_18 = V_3;
if ((((int32_t)L_18) == ((int32_t)((int32_t)125))))
{
goto IL_007c;
}
}
{
goto IL_00d0;
}
IL_007c:
{
int32_t L_19 = V_0;
V_1 = L_19;
goto IL_00d2;
}
IL_0083:
{
int32_t L_20 = p2;
bool L_21 = m4684(NULL, L_20, NULL);
m4677(__this, L_21, NULL);
int32_t L_22 = m4675(__this, ((int32_t)10), 1, 0, NULL);
V_1 = L_22;
int32_t L_23 = p2;
bool L_24 = m4684(NULL, L_23, NULL);
m4677(__this, L_24, NULL);
t15* L_25 = (__this->f0);
int32_t L_26 = (__this->f1);
int32_t L_27 = L_26;
V_2 = L_27;
__this->f1 = ((int32_t)((int32_t)L_27+(int32_t)1));
int32_t L_28 = V_2;
uint16_t L_29 = m1839(L_25, L_28, NULL);
if ((((int32_t)L_29) == ((int32_t)((int32_t)125))))
{
goto IL_00cb;
}
}
{
return 0;
}
IL_00cb:
{
goto IL_00d2;
}
IL_00d0:
{
return 0;
}
IL_00d2:
{
int32_t L_30 = V_0;
if ((((int32_t)L_30) > ((int32_t)((int32_t)2147483647))))
{
goto IL_00e8;
}
}
{
int32_t L_31 = V_1;
if ((((int32_t)L_31) <= ((int32_t)((int32_t)2147483647))))
{
goto IL_00f4;
}
}
IL_00e8:
{
t387 * L_32 = m4686(__this, _stringLiteral830, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_32);
}
IL_00f4:
{
int32_t L_33 = V_1;
if ((((int32_t)L_33) < ((int32_t)0)))
{
goto IL_010e;
}
}
{
int32_t L_34 = V_1;
int32_t L_35 = V_0;
if ((((int32_t)L_34) >= ((int32_t)L_35)))
{
goto IL_010e;
}
}
{
t387 * L_36 = m4686(__this, _stringLiteral831, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_36);
}
IL_010e:
{
int32_t* L_37 = p0;
int32_t L_38 = V_0;
*((int32_t*)(L_37)) = (int32_t)L_38;
int32_t L_39 = V_1;
if ((((int32_t)L_39) <= ((int32_t)0)))
{
goto IL_0120;
}
}
{
int32_t* L_40 = p1;
int32_t L_41 = V_1;
*((int32_t*)(L_40)) = (int32_t)L_41;
goto IL_0127;
}
IL_0120:
{
int32_t* L_42 = p1;
*((int32_t*)(L_42)) = (int32_t)((int32_t)2147483647);
}
IL_0127:
{
return 1;
}
}
extern TypeInfo* t15_TI_var;
extern Il2CppCodeGenString* _stringLiteral832;
extern Il2CppCodeGenString* _stringLiteral833;
extern Il2CppCodeGenString* _stringLiteral834;
extern "C" uint16_t m4670 (t915 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
_stringLiteral832 = il2cpp_codegen_string_literal_from_index(832);
_stringLiteral833 = il2cpp_codegen_string_literal_from_index(833);
_stringLiteral834 = il2cpp_codegen_string_literal_from_index(834);
s_Il2CppMethodIntialized = true;
}
t15* V_0 = {0};
uint16_t V_1 = {0};
int32_t V_2 = 0;
{
t15* L_0 = (__this->f0);
int32_t L_1 = (__this->f1);
int32_t L_2 = L_1;
V_2 = L_2;
__this->f1 = ((int32_t)((int32_t)L_2+(int32_t)1));
int32_t L_3 = V_2;
uint16_t L_4 = m1839(L_0, L_3, NULL);
if ((((int32_t)L_4) == ((int32_t)((int32_t)123))))
{
goto IL_002f;
}
}
{
t387 * L_5 = m4686(__this, _stringLiteral832, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_5);
}
IL_002f:
{
t15* L_6 = (__this->f0);
int32_t* L_7 = &(__this->f1);
t15* L_8 = m4661(NULL, L_6, L_7, NULL);
V_0 = L_8;
t15* L_9 = V_0;
if (L_9)
{
goto IL_0053;
}
}
{
t387 * L_10 = m4686(__this, _stringLiteral832, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_10);
}
IL_0053:
{
t15* L_11 = V_0;
uint16_t L_12 = m4523(NULL, L_11, NULL);
V_1 = L_12;
uint16_t L_13 = V_1;
if (L_13)
{
goto IL_0077;
}
}
{
t15* L_14 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_15 = m1807(NULL, _stringLiteral833, L_14, _stringLiteral834, NULL);
t387 * L_16 = m4686(__this, L_15, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_16);
}
IL_0077:
{
t15* L_17 = (__this->f0);
int32_t L_18 = (__this->f1);
int32_t L_19 = L_18;
V_2 = L_19;
__this->f1 = ((int32_t)((int32_t)L_19+(int32_t)1));
int32_t L_20 = V_2;
uint16_t L_21 = m1839(L_17, L_20, NULL);
if ((((int32_t)L_21) == ((int32_t)((int32_t)125))))
{
goto IL_00a6;
}
}
{
t387 * L_22 = m4686(__this, _stringLiteral832, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_22);
}
IL_00a6:
{
uint16_t L_23 = V_1;
return L_23;
}
}
extern TypeInfo* t934_TI_var;
extern TypeInfo* t931_TI_var;
extern TypeInfo* t933_TI_var;
extern TypeInfo* t932_TI_var;
extern Il2CppCodeGenString* _stringLiteral835;
extern "C" t918 * m4671 (t915 * __this, int32_t p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t934_TI_var = il2cpp_codegen_type_info_from_index(597);
t931_TI_var = il2cpp_codegen_type_info_from_index(596);
t933_TI_var = il2cpp_codegen_type_info_from_index(605);
t932_TI_var = il2cpp_codegen_type_info_from_index(606);
_stringLiteral835 = il2cpp_codegen_string_literal_from_index(835);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
bool V_1 = false;
t918 * V_2 = {0};
int32_t V_3 = 0;
t932 * V_4 = {0};
uint16_t V_5 = 0x0;
t15* V_6 = {0};
t932 * V_7 = {0};
int32_t V_8 = 0;
uint16_t V_9 = 0x0;
int32_t G_B11_0 = 0;
int32_t G_B15_0 = 0;
int32_t G_B19_0 = 0;
int32_t G_B24_0 = 0;
int32_t G_B28_0 = 0;
int32_t G_B32_0 = 0;
{
int32_t L_0 = (__this->f1);
V_0 = L_0;
int32_t L_1 = p0;
bool L_2 = m4685(NULL, L_1, NULL);
V_1 = L_2;
V_2 = (t918 *)NULL;
t15* L_3 = (__this->f0);
int32_t L_4 = (__this->f1);
int32_t L_5 = L_4;
V_8 = L_5;
__this->f1 = ((int32_t)((int32_t)L_5+(int32_t)1));
int32_t L_6 = V_8;
uint16_t L_7 = m1839(L_3, L_6, NULL);
V_9 = L_7;
uint16_t L_8 = V_9;
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 0)
{
goto IL_0229;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 1)
{
goto IL_0229;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 2)
{
goto IL_0229;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 3)
{
goto IL_0229;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 4)
{
goto IL_0229;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 5)
{
goto IL_0229;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 6)
{
goto IL_0229;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 7)
{
goto IL_0229;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 8)
{
goto IL_0229;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 9)
{
goto IL_0096;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 10)
{
goto IL_0096;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 11)
{
goto IL_0096;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 12)
{
goto IL_0096;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 13)
{
goto IL_0096;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 14)
{
goto IL_0096;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 15)
{
goto IL_0096;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 16)
{
goto IL_01e0;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 17)
{
goto IL_021c;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 18)
{
goto IL_0096;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 19)
{
goto IL_0181;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 20)
{
goto IL_0096;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 21)
{
goto IL_0096;
}
if (((int32_t)((int32_t)L_8-(int32_t)((int32_t)49))) == 22)
{
goto IL_0204;
}
}
IL_0096:
{
uint16_t L_9 = V_9;
if (((int32_t)((int32_t)L_9-(int32_t)((int32_t)80))) == 0)
{
goto IL_01ce;
}
if (((int32_t)((int32_t)L_9-(int32_t)((int32_t)80))) == 1)
{
goto IL_00b0;
}
if (((int32_t)((int32_t)L_9-(int32_t)((int32_t)80))) == 2)
{
goto IL_00b0;
}
if (((int32_t)((int32_t)L_9-(int32_t)((int32_t)80))) == 3)
{
goto IL_01b4;
}
}
IL_00b0:
{
uint16_t L_10 = V_9;
if (((int32_t)((int32_t)L_10-(int32_t)((int32_t)87))) == 0)
{
goto IL_019b;
}
if (((int32_t)((int32_t)L_10-(int32_t)((int32_t)87))) == 1)
{
goto IL_00ca;
}
if (((int32_t)((int32_t)L_10-(int32_t)((int32_t)87))) == 2)
{
goto IL_00ca;
}
if (((int32_t)((int32_t)L_10-(int32_t)((int32_t)87))) == 3)
{
goto IL_01ec;
}
}
IL_00ca:
{
uint16_t L_11 = V_9;
if (((int32_t)((int32_t)L_11-(int32_t)((int32_t)112))) == 0)
{
goto IL_016f;
}
if (((int32_t)((int32_t)L_11-(int32_t)((int32_t)112))) == 1)
{
goto IL_00e4;
}
if (((int32_t)((int32_t)L_11-(int32_t)((int32_t)112))) == 2)
{
goto IL_00e4;
}
if (((int32_t)((int32_t)L_11-(int32_t)((int32_t)112))) == 3)
{
goto IL_0155;
}
}
IL_00e4:
{
uint16_t L_12 = V_9;
if (((int32_t)((int32_t)L_12-(int32_t)((int32_t)119))) == 0)
{
goto IL_013c;
}
if (((int32_t)((int32_t)L_12-(int32_t)((int32_t)119))) == 1)
{
goto IL_00fe;
}
if (((int32_t)((int32_t)L_12-(int32_t)((int32_t)119))) == 2)
{
goto IL_00fe;
}
if (((int32_t)((int32_t)L_12-(int32_t)((int32_t)119))) == 3)
{
goto IL_01f8;
}
}
IL_00fe:
{
uint16_t L_13 = V_9;
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)98))) == 0)
{
goto IL_0210;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)98))) == 1)
{
goto IL_0114;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)98))) == 2)
{
goto IL_0122;
}
}
IL_0114:
{
uint16_t L_14 = V_9;
if ((((int32_t)L_14) == ((int32_t)((int32_t)107))))
{
goto IL_027c;
}
}
{
goto IL_0328;
}
IL_0122:
{
bool L_15 = V_1;
if (!L_15)
{
goto IL_012f;
}
}
{
G_B11_0 = ((int32_t)9);
goto IL_0130;
}
IL_012f:
{
G_B11_0 = 4;
}
IL_0130:
{
t934 * L_16 = (t934 *)il2cpp_codegen_object_new (t934_TI_var);
m4790(L_16, G_B11_0, 0, NULL);
V_2 = L_16;
goto IL_032f;
}
IL_013c:
{
bool L_17 = V_1;
if (!L_17)
{
goto IL_0148;
}
}
{
G_B15_0 = 8;
goto IL_0149;
}
IL_0148:
{
G_B15_0 = 3;
}
IL_0149:
{
t934 * L_18 = (t934 *)il2cpp_codegen_object_new (t934_TI_var);
m4790(L_18, G_B15_0, 0, NULL);
V_2 = L_18;
goto IL_032f;
}
IL_0155:
{
bool L_19 = V_1;
if (!L_19)
{
goto IL_0162;
}
}
{
G_B19_0 = ((int32_t)10);
goto IL_0163;
}
IL_0162:
{
G_B19_0 = 5;
}
IL_0163:
{
t934 * L_20 = (t934 *)il2cpp_codegen_object_new (t934_TI_var);
m4790(L_20, G_B19_0, 0, NULL);
V_2 = L_20;
goto IL_032f;
}
IL_016f:
{
uint16_t L_21 = m4670(__this, NULL);
t934 * L_22 = (t934 *)il2cpp_codegen_object_new (t934_TI_var);
m4790(L_22, L_21, 0, NULL);
V_2 = L_22;
goto IL_032f;
}
IL_0181:
{
bool L_23 = V_1;
if (!L_23)
{
goto IL_018e;
}
}
{
G_B24_0 = ((int32_t)9);
goto IL_018f;
}
IL_018e:
{
G_B24_0 = 4;
}
IL_018f:
{
t934 * L_24 = (t934 *)il2cpp_codegen_object_new (t934_TI_var);
m4790(L_24, G_B24_0, 1, NULL);
V_2 = L_24;
goto IL_032f;
}
IL_019b:
{
bool L_25 = V_1;
if (!L_25)
{
goto IL_01a7;
}
}
{
G_B28_0 = 8;
goto IL_01a8;
}
IL_01a7:
{
G_B28_0 = 3;
}
IL_01a8:
{
t934 * L_26 = (t934 *)il2cpp_codegen_object_new (t934_TI_var);
m4790(L_26, G_B28_0, 1, NULL);
V_2 = L_26;
goto IL_032f;
}
IL_01b4:
{
bool L_27 = V_1;
if (!L_27)
{
goto IL_01c1;
}
}
{
G_B32_0 = ((int32_t)10);
goto IL_01c2;
}
IL_01c1:
{
G_B32_0 = 5;
}
IL_01c2:
{
t934 * L_28 = (t934 *)il2cpp_codegen_object_new (t934_TI_var);
m4790(L_28, G_B32_0, 1, NULL);
V_2 = L_28;
goto IL_032f;
}
IL_01ce:
{
uint16_t L_29 = m4670(__this, NULL);
t934 * L_30 = (t934 *)il2cpp_codegen_object_new (t934_TI_var);
m4790(L_30, L_29, 1, NULL);
V_2 = L_30;
goto IL_032f;
}
IL_01e0:
{
t931 * L_31 = (t931 *)il2cpp_codegen_object_new (t931_TI_var);
m4774(L_31, 2, NULL);
V_2 = L_31;
goto IL_032f;
}
IL_01ec:
{
t931 * L_32 = (t931 *)il2cpp_codegen_object_new (t931_TI_var);
m4774(L_32, 5, NULL);
V_2 = L_32;
goto IL_032f;
}
IL_01f8:
{
t931 * L_33 = (t931 *)il2cpp_codegen_object_new (t931_TI_var);
m4774(L_33, 6, NULL);
V_2 = L_33;
goto IL_032f;
}
IL_0204:
{
t931 * L_34 = (t931 *)il2cpp_codegen_object_new (t931_TI_var);
m4774(L_34, 4, NULL);
V_2 = L_34;
goto IL_032f;
}
IL_0210:
{
t931 * L_35 = (t931 *)il2cpp_codegen_object_new (t931_TI_var);
m4774(L_35, 8, NULL);
V_2 = L_35;
goto IL_032f;
}
IL_021c:
{
t931 * L_36 = (t931 *)il2cpp_codegen_object_new (t931_TI_var);
m4774(L_36, ((int32_t)9), NULL);
V_2 = L_36;
goto IL_032f;
}
IL_0229:
{
int32_t L_37 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_37-(int32_t)1));
int32_t L_38 = m4675(__this, ((int32_t)10), 1, 0, NULL);
V_3 = L_38;
int32_t L_39 = V_3;
if ((((int32_t)L_39) >= ((int32_t)0)))
{
goto IL_0252;
}
}
{
int32_t L_40 = V_0;
__this->f1 = L_40;
return (t918 *)NULL;
}
IL_0252:
{
int32_t L_41 = p0;
bool L_42 = m4680(NULL, L_41, NULL);
bool L_43 = V_1;
t933 * L_44 = (t933 *)il2cpp_codegen_object_new (t933_TI_var);
m4786(L_44, L_42, L_43, NULL);
V_4 = L_44;
t672 * L_45 = (__this->f3);
t932 * L_46 = V_4;
t15* L_47 = m2883((&V_3), NULL);
VirtActionInvoker2< t14 *, t14 * >::Invoke(26 /* System.Void System.Collections.Hashtable::Add(System.Object,System.Object) */, L_45, L_46, L_47);
t932 * L_48 = V_4;
V_2 = L_48;
goto IL_032f;
}
IL_027c:
{
t15* L_49 = (__this->f0);
int32_t L_50 = (__this->f1);
int32_t L_51 = L_50;
V_8 = L_51;
__this->f1 = ((int32_t)((int32_t)L_51+(int32_t)1));
int32_t L_52 = V_8;
uint16_t L_53 = m1839(L_49, L_52, NULL);
V_5 = L_53;
uint16_t L_54 = V_5;
if ((!(((uint32_t)L_54) == ((uint32_t)((int32_t)60)))))
{
goto IL_02ae;
}
}
{
V_5 = ((int32_t)62);
goto IL_02c3;
}
IL_02ae:
{
uint16_t L_55 = V_5;
if ((((int32_t)L_55) == ((int32_t)((int32_t)39))))
{
goto IL_02c3;
}
}
{
t387 * L_56 = m4686(__this, _stringLiteral835, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_56);
}
IL_02c3:
{
t15* L_57 = m4673(__this, NULL);
V_6 = L_57;
t15* L_58 = V_6;
if (!L_58)
{
goto IL_02ea;
}
}
{
t15* L_59 = (__this->f0);
int32_t L_60 = (__this->f1);
uint16_t L_61 = m1839(L_59, L_60, NULL);
uint16_t L_62 = V_5;
if ((((int32_t)L_61) == ((int32_t)L_62)))
{
goto IL_02f6;
}
}
IL_02ea:
{
t387 * L_63 = m4686(__this, _stringLiteral835, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_63);
}
IL_02f6:
{
int32_t L_64 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_64+(int32_t)1));
int32_t L_65 = p0;
bool L_66 = m4680(NULL, L_65, NULL);
t932 * L_67 = (t932 *)il2cpp_codegen_object_new (t932_TI_var);
m4779(L_67, L_66, NULL);
V_7 = L_67;
t672 * L_68 = (__this->f3);
t932 * L_69 = V_7;
t15* L_70 = V_6;
VirtActionInvoker2< t14 *, t14 * >::Invoke(26 /* System.Void System.Collections.Hashtable::Add(System.Object,System.Object) */, L_68, L_69, L_70);
t932 * L_71 = V_7;
V_2 = L_71;
goto IL_032f;
}
IL_0328:
{
V_2 = (t918 *)NULL;
goto IL_032f;
}
IL_032f:
{
t918 * L_72 = V_2;
if (L_72)
{
goto IL_033c;
}
}
{
int32_t L_73 = V_0;
__this->f1 = L_73;
}
IL_033c:
{
t918 * L_74 = V_2;
return L_74;
}
}
extern TypeInfo* t15_TI_var;
extern TypeInfo* t387_TI_var;
extern Il2CppCodeGenString* _stringLiteral836;
extern Il2CppCodeGenString* _stringLiteral837;
extern Il2CppCodeGenString* _stringLiteral838;
extern "C" int32_t m4672 (t915 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
t387_TI_var = il2cpp_codegen_type_info_from_index(234);
_stringLiteral836 = il2cpp_codegen_string_literal_from_index(836);
_stringLiteral837 = il2cpp_codegen_string_literal_from_index(837);
_stringLiteral838 = il2cpp_codegen_string_literal_from_index(838);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
int32_t V_4 = 0;
uint16_t V_5 = 0x0;
{
int32_t L_0 = (__this->f1);
V_0 = L_0;
int32_t L_1 = V_0;
t15* L_2 = (__this->f0);
int32_t L_3 = m1820(L_2, NULL);
if ((((int32_t)L_1) < ((int32_t)L_3)))
{
goto IL_0034;
}
}
{
t15* L_4 = (__this->f0);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_5 = m1611(NULL, _stringLiteral836, L_4, NULL);
t15* L_6 = (__this->f0);
t387 * L_7 = (t387 *)il2cpp_codegen_object_new (t387_TI_var);
m2966(L_7, L_5, L_6, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_7);
}
IL_0034:
{
t15* L_8 = (__this->f0);
int32_t L_9 = (__this->f1);
int32_t L_10 = L_9;
V_4 = L_10;
__this->f1 = ((int32_t)((int32_t)L_10+(int32_t)1));
int32_t L_11 = V_4;
uint16_t L_12 = m1839(L_8, L_11, NULL);
V_5 = L_12;
uint16_t L_13 = V_5;
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 0)
{
goto IL_00d1;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 1)
{
goto IL_008a;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 2)
{
goto IL_008a;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 3)
{
goto IL_008a;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 4)
{
goto IL_00c8;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 5)
{
goto IL_008a;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 6)
{
goto IL_00c5;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 7)
{
goto IL_0140;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 8)
{
goto IL_00cb;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 9)
{
goto IL_008a;
}
if (((int32_t)((int32_t)L_13-(int32_t)((int32_t)110))) == 10)
{
goto IL_0118;
}
}
IL_008a:
{
uint16_t L_14 = V_5;
if (((int32_t)((int32_t)L_14-(int32_t)((int32_t)97))) == 0)
{
goto IL_00c3;
}
if (((int32_t)((int32_t)L_14-(int32_t)((int32_t)97))) == 1)
{
goto IL_00ac;
}
if (((int32_t)((int32_t)L_14-(int32_t)((int32_t)97))) == 2)
{
goto IL_0168;
}
if (((int32_t)((int32_t)L_14-(int32_t)((int32_t)97))) == 3)
{
goto IL_00ac;
}
if (((int32_t)((int32_t)L_14-(int32_t)((int32_t)97))) == 4)
{
goto IL_00d4;
}
if (((int32_t)((int32_t)L_14-(int32_t)((int32_t)97))) == 5)
{
goto IL_00ce;
}
}
IL_00ac:
{
uint16_t L_15 = V_5;
if ((((int32_t)L_15) == ((int32_t)((int32_t)48))))
{
goto IL_00da;
}
}
{
uint16_t L_16 = V_5;
if ((((int32_t)L_16) == ((int32_t)((int32_t)92))))
{
goto IL_00d7;
}
}
{
goto IL_01a8;
}
IL_00c3:
{
return 7;
}
IL_00c5:
{
return ((int32_t)9);
}
IL_00c8:
{
return ((int32_t)13);
}
IL_00cb:
{
return ((int32_t)11);
}
IL_00ce:
{
return ((int32_t)12);
}
IL_00d1:
{
return ((int32_t)10);
}
IL_00d4:
{
return ((int32_t)27);
}
IL_00d7:
{
return ((int32_t)92);
}
IL_00da:
{
int32_t L_17 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_17-(int32_t)1));
int32_t L_18 = (__this->f1);
V_2 = L_18;
t15* L_19 = (__this->f0);
int32_t* L_20 = &(__this->f1);
int32_t L_21 = m4658(NULL, L_19, L_20, NULL);
V_3 = L_21;
int32_t L_22 = V_3;
if ((!(((uint32_t)L_22) == ((uint32_t)(-1)))))
{
goto IL_0116;
}
}
{
int32_t L_23 = V_2;
int32_t L_24 = (__this->f1);
if ((!(((uint32_t)L_23) == ((uint32_t)L_24))))
{
goto IL_0116;
}
}
{
return 0;
}
IL_0116:
{
int32_t L_25 = V_3;
return L_25;
}
IL_0118:
{
t15* L_26 = (__this->f0);
int32_t* L_27 = &(__this->f1);
int32_t L_28 = m4659(NULL, L_26, L_27, 2, NULL);
V_1 = L_28;
int32_t L_29 = V_1;
if ((((int32_t)L_29) >= ((int32_t)0)))
{
goto IL_013e;
}
}
{
t387 * L_30 = m4686(__this, _stringLiteral837, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_30);
}
IL_013e:
{
int32_t L_31 = V_1;
return L_31;
}
IL_0140:
{
t15* L_32 = (__this->f0);
int32_t* L_33 = &(__this->f1);
int32_t L_34 = m4659(NULL, L_32, L_33, 4, NULL);
V_1 = L_34;
int32_t L_35 = V_1;
if ((((int32_t)L_35) >= ((int32_t)0)))
{
goto IL_0166;
}
}
{
t387 * L_36 = m4686(__this, _stringLiteral837, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_36);
}
IL_0166:
{
int32_t L_37 = V_1;
return L_37;
}
IL_0168:
{
t15* L_38 = (__this->f0);
int32_t L_39 = (__this->f1);
int32_t L_40 = L_39;
V_4 = L_40;
__this->f1 = ((int32_t)((int32_t)L_40+(int32_t)1));
int32_t L_41 = V_4;
uint16_t L_42 = m1839(L_38, L_41, NULL);
V_1 = L_42;
int32_t L_43 = V_1;
if ((((int32_t)L_43) < ((int32_t)((int32_t)64))))
{
goto IL_019c;
}
}
{
int32_t L_44 = V_1;
if ((((int32_t)L_44) > ((int32_t)((int32_t)95))))
{
goto IL_019c;
}
}
{
int32_t L_45 = V_1;
return ((int32_t)((int32_t)L_45-(int32_t)((int32_t)64)));
}
IL_019c:
{
t387 * L_46 = m4686(__this, _stringLiteral838, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_46);
}
IL_01a8:
{
int32_t L_47 = V_0;
__this->f1 = L_47;
return (-1);
}
}
extern "C" t15* m4673 (t915 * __this, const MethodInfo* method)
{
{
t15* L_0 = (__this->f0);
int32_t* L_1 = &(__this->f1);
t15* L_2 = m4661(NULL, L_0, L_1, NULL);
return L_2;
}
}
extern TypeInfo* t180_TI_var;
extern "C" bool m4674 (t14 * __this , uint16_t p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t180_TI_var = il2cpp_codegen_type_info_from_index(175);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = {0};
{
uint16_t L_0 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t180_TI_var);
int32_t L_1 = m4957(NULL, L_0, NULL);
V_0 = L_1;
int32_t L_2 = V_0;
if ((!(((uint32_t)L_2) == ((uint32_t)3))))
{
goto IL_0010;
}
}
{
return 0;
}
IL_0010:
{
int32_t L_3 = V_0;
if ((!(((uint32_t)L_3) == ((uint32_t)((int32_t)18)))))
{
goto IL_001a;
}
}
{
return 1;
}
IL_001a:
{
uint16_t L_4 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t180_TI_var);
bool L_5 = m4954(NULL, L_4, NULL);
return L_5;
}
}
extern "C" int32_t m4675 (t915 * __this, int32_t p0, int32_t p1, int32_t p2, const MethodInfo* method)
{
{
t15* L_0 = (__this->f0);
int32_t* L_1 = &(__this->f1);
int32_t L_2 = p0;
int32_t L_3 = p1;
int32_t L_4 = p2;
int32_t L_5 = m4660(NULL, L_0, L_1, L_2, L_3, L_4, NULL);
return L_5;
}
}
extern "C" int32_t m4676 (t14 * __this , uint16_t p0, int32_t p1, int32_t p2, const MethodInfo* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = p1;
V_0 = L_0;
int32_t L_1 = V_0;
if (((int32_t)((int32_t)L_1-(int32_t)8)) == 0)
{
goto IL_0023;
}
if (((int32_t)((int32_t)L_1-(int32_t)8)) == 1)
{
goto IL_0016;
}
if (((int32_t)((int32_t)L_1-(int32_t)8)) == 2)
{
goto IL_003a;
}
}
IL_0016:
{
int32_t L_2 = V_0;
if ((((int32_t)L_2) == ((int32_t)((int32_t)16))))
{
goto IL_0051;
}
}
{
goto IL_0098;
}
IL_0023:
{
uint16_t L_3 = p0;
if ((((int32_t)L_3) < ((int32_t)((int32_t)48))))
{
goto IL_0038;
}
}
{
uint16_t L_4 = p0;
if ((((int32_t)L_4) > ((int32_t)((int32_t)55))))
{
goto IL_0038;
}
}
{
uint16_t L_5 = p0;
return ((int32_t)((int32_t)L_5-(int32_t)((int32_t)48)));
}
IL_0038:
{
return (-1);
}
IL_003a:
{
uint16_t L_6 = p0;
if ((((int32_t)L_6) < ((int32_t)((int32_t)48))))
{
goto IL_004f;
}
}
{
uint16_t L_7 = p0;
if ((((int32_t)L_7) > ((int32_t)((int32_t)57))))
{
goto IL_004f;
}
}
{
uint16_t L_8 = p0;
return ((int32_t)((int32_t)L_8-(int32_t)((int32_t)48)));
}
IL_004f:
{
return (-1);
}
IL_0051:
{
uint16_t L_9 = p0;
if ((((int32_t)L_9) < ((int32_t)((int32_t)48))))
{
goto IL_0066;
}
}
{
uint16_t L_10 = p0;
if ((((int32_t)L_10) > ((int32_t)((int32_t)57))))
{
goto IL_0066;
}
}
{
uint16_t L_11 = p0;
return ((int32_t)((int32_t)L_11-(int32_t)((int32_t)48)));
}
IL_0066:
{
uint16_t L_12 = p0;
if ((((int32_t)L_12) < ((int32_t)((int32_t)97))))
{
goto IL_007e;
}
}
{
uint16_t L_13 = p0;
if ((((int32_t)L_13) > ((int32_t)((int32_t)102))))
{
goto IL_007e;
}
}
{
uint16_t L_14 = p0;
return ((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)10)+(int32_t)L_14))-(int32_t)((int32_t)97)));
}
IL_007e:
{
uint16_t L_15 = p0;
if ((((int32_t)L_15) < ((int32_t)((int32_t)65))))
{
goto IL_0096;
}
}
{
uint16_t L_16 = p0;
if ((((int32_t)L_16) > ((int32_t)((int32_t)70))))
{
goto IL_0096;
}
}
{
uint16_t L_17 = p0;
return ((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)10)+(int32_t)L_17))-(int32_t)((int32_t)65)));
}
IL_0096:
{
return (-1);
}
IL_0098:
{
return (-1);
}
}
extern TypeInfo* t180_TI_var;
extern "C" void m4677 (t915 * __this, bool p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t180_TI_var = il2cpp_codegen_type_info_from_index(175);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
{
goto IL_0188;
}
IL_0005:
{
t15* L_0 = (__this->f0);
int32_t L_1 = (__this->f1);
uint16_t L_2 = m1839(L_0, L_1, NULL);
if ((!(((uint32_t)L_2) == ((uint32_t)((int32_t)40)))))
{
goto IL_00bc;
}
}
{
int32_t L_3 = (__this->f1);
t15* L_4 = (__this->f0);
int32_t L_5 = m1820(L_4, NULL);
if ((((int32_t)((int32_t)((int32_t)L_3+(int32_t)3))) < ((int32_t)L_5)))
{
goto IL_0036;
}
}
{
return;
}
IL_0036:
{
t15* L_6 = (__this->f0);
int32_t L_7 = (__this->f1);
uint16_t L_8 = m1839(L_6, ((int32_t)((int32_t)L_7+(int32_t)1)), NULL);
if ((!(((uint32_t)L_8) == ((uint32_t)((int32_t)63)))))
{
goto IL_006a;
}
}
{
t15* L_9 = (__this->f0);
int32_t L_10 = (__this->f1);
uint16_t L_11 = m1839(L_9, ((int32_t)((int32_t)L_10+(int32_t)2)), NULL);
if ((((int32_t)L_11) == ((int32_t)((int32_t)35))))
{
goto IL_006b;
}
}
IL_006a:
{
return;
}
IL_006b:
{
int32_t L_12 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_12+(int32_t)3));
goto IL_007e;
}
IL_007e:
{
int32_t L_13 = (__this->f1);
t15* L_14 = (__this->f0);
int32_t L_15 = m1820(L_14, NULL);
if ((((int32_t)L_13) >= ((int32_t)L_15)))
{
goto IL_00b7;
}
}
{
t15* L_16 = (__this->f0);
int32_t L_17 = (__this->f1);
int32_t L_18 = L_17;
V_0 = L_18;
__this->f1 = ((int32_t)((int32_t)L_18+(int32_t)1));
int32_t L_19 = V_0;
uint16_t L_20 = m1839(L_16, L_19, NULL);
if ((!(((uint32_t)L_20) == ((uint32_t)((int32_t)41)))))
{
goto IL_007e;
}
}
IL_00b7:
{
goto IL_0188;
}
IL_00bc:
{
bool L_21 = p0;
if (!L_21)
{
goto IL_011d;
}
}
{
t15* L_22 = (__this->f0);
int32_t L_23 = (__this->f1);
uint16_t L_24 = m1839(L_22, L_23, NULL);
if ((!(((uint32_t)L_24) == ((uint32_t)((int32_t)35)))))
{
goto IL_011d;
}
}
{
goto IL_00df;
}
IL_00df:
{
int32_t L_25 = (__this->f1);
t15* L_26 = (__this->f0);
int32_t L_27 = m1820(L_26, NULL);
if ((((int32_t)L_25) >= ((int32_t)L_27)))
{
goto IL_0118;
}
}
{
t15* L_28 = (__this->f0);
int32_t L_29 = (__this->f1);
int32_t L_30 = L_29;
V_0 = L_30;
__this->f1 = ((int32_t)((int32_t)L_30+(int32_t)1));
int32_t L_31 = V_0;
uint16_t L_32 = m1839(L_28, L_31, NULL);
if ((!(((uint32_t)L_32) == ((uint32_t)((int32_t)10)))))
{
goto IL_00df;
}
}
IL_0118:
{
goto IL_0188;
}
IL_011d:
{
bool L_33 = p0;
if (!L_33)
{
goto IL_0187;
}
}
{
t15* L_34 = (__this->f0);
int32_t L_35 = (__this->f1);
uint16_t L_36 = m1839(L_34, L_35, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t180_TI_var);
bool L_37 = m4956(NULL, L_36, NULL);
if (!L_37)
{
goto IL_0187;
}
}
{
goto IL_0151;
}
IL_0143:
{
int32_t L_38 = (__this->f1);
__this->f1 = ((int32_t)((int32_t)L_38+(int32_t)1));
}
IL_0151:
{
int32_t L_39 = (__this->f1);
t15* L_40 = (__this->f0);
int32_t L_41 = m1820(L_40, NULL);
if ((((int32_t)L_39) >= ((int32_t)L_41)))
{
goto IL_0182;
}
}
{
t15* L_42 = (__this->f0);
int32_t L_43 = (__this->f1);
uint16_t L_44 = m1839(L_42, L_43, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t180_TI_var);
bool L_45 = m4956(NULL, L_44, NULL);
if (L_45)
{
goto IL_0143;
}
}
IL_0182:
{
goto IL_0188;
}
IL_0187:
{
return;
}
IL_0188:
{
int32_t L_46 = (__this->f1);
t15* L_47 = (__this->f0);
int32_t L_48 = m1820(L_47, NULL);
if ((((int32_t)L_46) < ((int32_t)L_48)))
{
goto IL_0005;
}
}
{
return;
}
}
extern TypeInfo* t672_TI_var;
extern TypeInfo* t306_TI_var;
extern TypeInfo* t922_TI_var;
extern TypeInfo* t328_TI_var;
extern TypeInfo* t180_TI_var;
extern TypeInfo* t603_TI_var;
extern TypeInfo* t761_TI_var;
extern TypeInfo* t918_TI_var;
extern TypeInfo* t15_TI_var;
extern TypeInfo* t927_TI_var;
extern TypeInfo* t933_TI_var;
extern TypeInfo* t932_TI_var;
extern TypeInfo* t923_TI_var;
extern Il2CppCodeGenString* _stringLiteral839;
extern Il2CppCodeGenString* _stringLiteral840;
extern Il2CppCodeGenString* _stringLiteral841;
extern "C" void m4678 (t915 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t672_TI_var = il2cpp_codegen_type_info_from_index(440);
t306_TI_var = il2cpp_codegen_type_info_from_index(283);
t922_TI_var = il2cpp_codegen_type_info_from_index(594);
t328_TI_var = il2cpp_codegen_type_info_from_index(86);
t180_TI_var = il2cpp_codegen_type_info_from_index(175);
t603_TI_var = il2cpp_codegen_type_info_from_index(358);
t761_TI_var = il2cpp_codegen_type_info_from_index(396);
t918_TI_var = il2cpp_codegen_type_info_from_index(607);
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
t927_TI_var = il2cpp_codegen_type_info_from_index(604);
t933_TI_var = il2cpp_codegen_type_info_from_index(605);
t932_TI_var = il2cpp_codegen_type_info_from_index(606);
t923_TI_var = il2cpp_codegen_type_info_from_index(603);
_stringLiteral839 = il2cpp_codegen_string_literal_from_index(839);
_stringLiteral840 = il2cpp_codegen_string_literal_from_index(840);
_stringLiteral841 = il2cpp_codegen_string_literal_from_index(841);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
t672 * V_1 = {0};
t603 * V_2 = {0};
t922 * V_3 = {0};
t14 * V_4 = {0};
t922 * V_5 = {0};
t14 * V_6 = {0};
t922 * V_7 = {0};
int32_t V_8 = 0;
int32_t V_9 = 0;
t15* V_10 = {0};
t918 * V_11 = {0};
t14 * V_12 = {0};
t15* V_13 = {0};
t933 * V_14 = {0};
t922 * V_15 = {0};
t14 * V_16 = {0};
int32_t V_17 = 0;
t14 * V_18 = {0};
t14 * V_19 = {0};
t326 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t326 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
t15* G_B50_0 = {0};
t915 * G_B50_1 = {0};
t15* G_B49_0 = {0};
t915 * G_B49_1 = {0};
t15* G_B51_0 = {0};
t15* G_B51_1 = {0};
t915 * G_B51_2 = {0};
{
V_0 = 1;
t672 * L_0 = (t672 *)il2cpp_codegen_object_new (t672_TI_var);
m3953(L_0, NULL);
V_1 = L_0;
V_2 = (t603 *)NULL;
t603 * L_1 = (__this->f2);
t14 * L_2 = (t14 *)VirtFuncInvoker0< t14 * >::Invoke(43 /* System.Collections.IEnumerator System.Collections.ArrayList::GetEnumerator() */, L_1);
V_4 = L_2;
}
IL_0017:
try
{ // begin try (depth: 1)
{
goto IL_0060;
}
IL_001c:
{
t14 * L_3 = V_4;
t14 * L_4 = (t14 *)InterfaceFuncInvoker0< t14 * >::Invoke(0 /* System.Object System.Collections.IEnumerator::get_Current() */, t306_TI_var, L_3);
V_3 = ((t922 *)CastclassClass(L_4, t922_TI_var));
t922 * L_5 = V_3;
t15* L_6 = m4726(L_5, NULL);
if (!L_6)
{
goto IL_0039;
}
}
IL_0034:
{
goto IL_0060;
}
IL_0039:
{
t672 * L_7 = V_1;
t15* L_8 = m2883((&V_0), NULL);
t922 * L_9 = V_3;
VirtActionInvoker2< t14 *, t14 * >::Invoke(26 /* System.Void System.Collections.Hashtable::Add(System.Object,System.Object) */, L_7, L_8, L_9);
t922 * L_10 = V_3;
int32_t L_11 = V_0;
int32_t L_12 = L_11;
V_0 = ((int32_t)((int32_t)L_12+(int32_t)1));
m4725(L_10, L_12, NULL);
int32_t L_13 = (__this->f4);
__this->f4 = ((int32_t)((int32_t)L_13+(int32_t)1));
}
IL_0060:
{
t14 * L_14 = V_4;
bool L_15 = (bool)InterfaceFuncInvoker0< bool >::Invoke(1 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, t306_TI_var, L_14);
if (L_15)
{
goto IL_001c;
}
}
IL_006c:
{
IL2CPP_LEAVE(0x87, FINALLY_0071);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t326 *)e.ex;
goto FINALLY_0071;
}
FINALLY_0071:
{ // begin finally (depth: 1)
{
t14 * L_16 = V_4;
V_16 = ((t14 *)IsInst(L_16, t328_TI_var));
t14 * L_17 = V_16;
if (L_17)
{
goto IL_007f;
}
}
IL_007e:
{
IL2CPP_END_FINALLY(113)
}
IL_007f:
{
t14 * L_18 = V_16;
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t328_TI_var, L_18);
IL2CPP_END_FINALLY(113)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(113)
{
IL2CPP_JUMP_TBL(0x87, IL_0087)
IL2CPP_RETHROW_IF_UNHANDLED(t326 *)
}
IL_0087:
{
t603 * L_19 = (__this->f2);
t14 * L_20 = (t14 *)VirtFuncInvoker0< t14 * >::Invoke(43 /* System.Collections.IEnumerator System.Collections.ArrayList::GetEnumerator() */, L_19);
V_6 = L_20;
}
IL_0094:
try
{ // begin try (depth: 1)
{
goto IL_020a;
}
IL_0099:
{
t14 * L_21 = V_6;
t14 * L_22 = (t14 *)InterfaceFuncInvoker0< t14 * >::Invoke(0 /* System.Object System.Collections.IEnumerator::get_Current() */, t306_TI_var, L_21);
V_5 = ((t922 *)CastclassClass(L_22, t922_TI_var));
t922 * L_23 = V_5;
t15* L_24 = m4726(L_23, NULL);
if (L_24)
{
goto IL_00b8;
}
}
IL_00b3:
{
goto IL_020a;
}
IL_00b8:
{
t672 * L_25 = V_1;
t922 * L_26 = V_5;
t15* L_27 = m4726(L_26, NULL);
bool L_28 = (bool)VirtFuncInvoker1< bool, t14 * >::Invoke(28 /* System.Boolean System.Collections.Hashtable::Contains(System.Object) */, L_25, L_27);
if (!L_28)
{
goto IL_011d;
}
}
IL_00ca:
{
t672 * L_29 = V_1;
t922 * L_30 = V_5;
t15* L_31 = m4726(L_30, NULL);
t14 * L_32 = (t14 *)VirtFuncInvoker1< t14 *, t14 * >::Invoke(23 /* System.Object System.Collections.Hashtable::get_Item(System.Object) */, L_29, L_31);
V_7 = ((t922 *)CastclassClass(L_32, t922_TI_var));
t922 * L_33 = V_5;
t922 * L_34 = V_7;
int32_t L_35 = m4724(L_34, NULL);
m4725(L_33, L_35, NULL);
t922 * L_36 = V_5;
int32_t L_37 = m4724(L_36, NULL);
int32_t L_38 = V_0;
if ((!(((uint32_t)L_37) == ((uint32_t)L_38))))
{
goto IL_0102;
}
}
IL_00f9:
{
int32_t L_39 = V_0;
V_0 = ((int32_t)((int32_t)L_39+(int32_t)1));
goto IL_0118;
}
IL_0102:
{
t922 * L_40 = V_5;
int32_t L_41 = m4724(L_40, NULL);
int32_t L_42 = V_0;
if ((((int32_t)L_41) <= ((int32_t)L_42)))
{
goto IL_0118;
}
}
IL_010f:
{
t603 * L_43 = V_2;
t922 * L_44 = V_5;
VirtFuncInvoker1< int32_t, t14 * >::Invoke(30 /* System.Int32 System.Collections.ArrayList::Add(System.Object) */, L_43, L_44);
}
IL_0118:
{
goto IL_020a;
}
IL_011d:
{
t922 * L_45 = V_5;
t15* L_46 = m4726(L_45, NULL);
uint16_t L_47 = m1839(L_46, 0, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t180_TI_var);
bool L_48 = m4955(NULL, L_47, NULL);
if (!L_48)
{
goto IL_01ac;
}
}
IL_0134:
{
V_8 = 0;
t922 * L_49 = V_5;
t15* L_50 = m4726(L_49, NULL);
int32_t L_51 = m4657(NULL, L_50, (&V_8), NULL);
V_9 = L_51;
int32_t L_52 = V_8;
t922 * L_53 = V_5;
t15* L_54 = m4726(L_53, NULL);
int32_t L_55 = m1820(L_54, NULL);
if ((!(((uint32_t)L_52) == ((uint32_t)L_55))))
{
goto IL_01ac;
}
}
IL_015a:
{
t922 * L_56 = V_5;
int32_t L_57 = V_9;
m4725(L_56, L_57, NULL);
t672 * L_58 = V_1;
t922 * L_59 = V_5;
t15* L_60 = m4726(L_59, NULL);
t922 * L_61 = V_5;
VirtActionInvoker2< t14 *, t14 * >::Invoke(26 /* System.Void System.Collections.Hashtable::Add(System.Object,System.Object) */, L_58, L_60, L_61);
int32_t L_62 = (__this->f4);
__this->f4 = ((int32_t)((int32_t)L_62+(int32_t)1));
int32_t L_63 = V_9;
int32_t L_64 = V_0;
if ((!(((uint32_t)L_63) == ((uint32_t)L_64))))
{
goto IL_0191;
}
}
IL_0188:
{
int32_t L_65 = V_0;
V_0 = ((int32_t)((int32_t)L_65+(int32_t)1));
goto IL_01a7;
}
IL_0191:
{
t603 * L_66 = V_2;
if (L_66)
{
goto IL_019e;
}
}
IL_0197:
{
t603 * L_67 = (t603 *)il2cpp_codegen_object_new (t603_TI_var);
m4944(L_67, 4, NULL);
V_2 = L_67;
}
IL_019e:
{
t603 * L_68 = V_2;
t922 * L_69 = V_5;
VirtFuncInvoker1< int32_t, t14 * >::Invoke(30 /* System.Int32 System.Collections.ArrayList::Add(System.Object) */, L_68, L_69);
}
IL_01a7:
{
goto IL_020a;
}
IL_01ac:
{
t15* L_70 = m2883((&V_0), NULL);
V_10 = L_70;
goto IL_01ca;
}
IL_01ba:
{
int32_t L_71 = V_0;
int32_t L_72 = ((int32_t)((int32_t)L_71+(int32_t)1));
V_0 = L_72;
V_17 = L_72;
t15* L_73 = m2883((&V_17), NULL);
V_10 = L_73;
}
IL_01ca:
{
t672 * L_74 = V_1;
t15* L_75 = V_10;
bool L_76 = (bool)VirtFuncInvoker1< bool, t14 * >::Invoke(28 /* System.Boolean System.Collections.Hashtable::Contains(System.Object) */, L_74, L_75);
if (L_76)
{
goto IL_01ba;
}
}
IL_01d7:
{
t672 * L_77 = V_1;
t15* L_78 = V_10;
t922 * L_79 = V_5;
VirtActionInvoker2< t14 *, t14 * >::Invoke(26 /* System.Void System.Collections.Hashtable::Add(System.Object,System.Object) */, L_77, L_78, L_79);
t672 * L_80 = V_1;
t922 * L_81 = V_5;
t15* L_82 = m4726(L_81, NULL);
t922 * L_83 = V_5;
VirtActionInvoker2< t14 *, t14 * >::Invoke(26 /* System.Void System.Collections.Hashtable::Add(System.Object,System.Object) */, L_80, L_82, L_83);
t922 * L_84 = V_5;
int32_t L_85 = V_0;
int32_t L_86 = L_85;
V_0 = ((int32_t)((int32_t)L_86+(int32_t)1));
m4725(L_84, L_86, NULL);
int32_t L_87 = (__this->f4);
__this->f4 = ((int32_t)((int32_t)L_87+(int32_t)1));
}
IL_020a:
{
t14 * L_88 = V_6;
bool L_89 = (bool)InterfaceFuncInvoker0< bool >::Invoke(1 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, t306_TI_var, L_88);
if (L_89)
{
goto IL_0099;
}
}
IL_0216:
{
IL2CPP_LEAVE(0x231, FINALLY_021b);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t326 *)e.ex;
goto FINALLY_021b;
}
FINALLY_021b:
{ // begin finally (depth: 1)
{
t14 * L_90 = V_6;
V_18 = ((t14 *)IsInst(L_90, t328_TI_var));
t14 * L_91 = V_18;
if (L_91)
{
goto IL_0229;
}
}
IL_0228:
{
IL2CPP_END_FINALLY(539)
}
IL_0229:
{
t14 * L_92 = V_18;
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t328_TI_var, L_92);
IL2CPP_END_FINALLY(539)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(539)
{
IL2CPP_JUMP_TBL(0x231, IL_0231)
IL2CPP_RETHROW_IF_UNHANDLED(t326 *)
}
IL_0231:
{
int32_t L_93 = V_0;
__this->f5 = L_93;
t603 * L_94 = V_2;
if (!L_94)
{
goto IL_0245;
}
}
{
t603 * L_95 = V_2;
m4679(__this, L_95, NULL);
}
IL_0245:
{
t672 * L_96 = (__this->f3);
t14 * L_97 = (t14 *)VirtFuncInvoker0< t14 * >::Invoke(21 /* System.Collections.ICollection System.Collections.Hashtable::get_Keys() */, L_96);
t14 * L_98 = (t14 *)InterfaceFuncInvoker0< t14 * >::Invoke(0 /* System.Collections.IEnumerator System.Collections.IEnumerable::GetEnumerator() */, t761_TI_var, L_97);
V_12 = L_98;
}
IL_0257:
try
{ // begin try (depth: 1)
{
goto IL_036d;
}
IL_025c:
{
t14 * L_99 = V_12;
t14 * L_100 = (t14 *)InterfaceFuncInvoker0< t14 * >::Invoke(0 /* System.Object System.Collections.IEnumerator::get_Current() */, t306_TI_var, L_99);
V_11 = ((t918 *)CastclassClass(L_100, t918_TI_var));
t672 * L_101 = (__this->f3);
t918 * L_102 = V_11;
t14 * L_103 = (t14 *)VirtFuncInvoker1< t14 *, t14 * >::Invoke(23 /* System.Object System.Collections.Hashtable::get_Item(System.Object) */, L_101, L_102);
V_13 = ((t15*)CastclassSealed(L_103, t15_TI_var));
t672 * L_104 = V_1;
t15* L_105 = V_13;
bool L_106 = (bool)VirtFuncInvoker1< bool, t14 * >::Invoke(28 /* System.Boolean System.Collections.Hashtable::Contains(System.Object) */, L_104, L_105);
if (L_106)
{
goto IL_0306;
}
}
IL_028b:
{
t918 * L_107 = V_11;
if (!((t927 *)IsInstClass(L_107, t927_TI_var)))
{
goto IL_02ae;
}
}
IL_0297:
{
t15* L_108 = V_13;
uint16_t L_109 = m1839(L_108, 0, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t180_TI_var);
bool L_110 = m4955(NULL, L_109, NULL);
if (L_110)
{
goto IL_02ae;
}
}
IL_02a9:
{
goto IL_036d;
}
IL_02ae:
{
t918 * L_111 = V_11;
V_14 = ((t933 *)IsInstClass(L_111, t933_TI_var));
t933 * L_112 = V_14;
if (!L_112)
{
goto IL_02d2;
}
}
IL_02be:
{
t933 * L_113 = V_14;
t15* L_114 = V_13;
t672 * L_115 = V_1;
bool L_116 = m4787(L_113, L_114, L_115, NULL);
if (!L_116)
{
goto IL_02d2;
}
}
IL_02cd:
{
goto IL_036d;
}
IL_02d2:
{
t15* L_117 = V_13;
uint16_t L_118 = m1839(L_117, 0, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t180_TI_var);
bool L_119 = m4955(NULL, L_118, NULL);
G_B49_0 = _stringLiteral839;
G_B49_1 = __this;
if (!L_119)
{
G_B50_0 = _stringLiteral839;
G_B50_1 = __this;
goto IL_02f4;
}
}
IL_02ea:
{
G_B51_0 = _stringLiteral840;
G_B51_1 = G_B49_0;
G_B51_2 = G_B49_1;
goto IL_02f9;
}
IL_02f4:
{
G_B51_0 = _stringLiteral841;
G_B51_1 = G_B50_0;
G_B51_2 = G_B50_1;
}
IL_02f9:
{
t15* L_120 = V_13;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_121 = m1807(NULL, G_B51_1, G_B51_0, L_120, NULL);
t387 * L_122 = m4686(G_B51_2, L_121, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_122);
}
IL_0306:
{
t672 * L_123 = V_1;
t15* L_124 = V_13;
t14 * L_125 = (t14 *)VirtFuncInvoker1< t14 *, t14 * >::Invoke(23 /* System.Object System.Collections.Hashtable::get_Item(System.Object) */, L_123, L_124);
V_15 = ((t922 *)CastclassClass(L_125, t922_TI_var));
t918 * L_126 = V_11;
if (!((t932 *)IsInstClass(L_126, t932_TI_var)))
{
goto IL_0334;
}
}
IL_0321:
{
t918 * L_127 = V_11;
t922 * L_128 = V_15;
m4781(((t932 *)CastclassClass(L_127, t932_TI_var)), L_128, NULL);
goto IL_036d;
}
IL_0334:
{
t918 * L_129 = V_11;
if (!((t927 *)IsInstClass(L_129, t927_TI_var)))
{
goto IL_0353;
}
}
IL_0340:
{
t918 * L_130 = V_11;
t922 * L_131 = V_15;
m4752(((t927 *)CastclassClass(L_130, t927_TI_var)), L_131, NULL);
goto IL_036d;
}
IL_0353:
{
t918 * L_132 = V_11;
if (!((t923 *)IsInstClass(L_132, t923_TI_var)))
{
goto IL_036d;
}
}
IL_035f:
{
t918 * L_133 = V_11;
t922 * L_134 = V_15;
m4733(((t923 *)CastclassClass(L_133, t923_TI_var)), L_134, NULL);
}
IL_036d:
{
t14 * L_135 = V_12;
bool L_136 = (bool)InterfaceFuncInvoker0< bool >::Invoke(1 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, t306_TI_var, L_135);
if (L_136)
{
goto IL_025c;
}
}
IL_0379:
{
IL2CPP_LEAVE(0x394, FINALLY_037e);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t326 *)e.ex;
goto FINALLY_037e;
}
FINALLY_037e:
{ // begin finally (depth: 1)
{
t14 * L_137 = V_12;
V_19 = ((t14 *)IsInst(L_137, t328_TI_var));
t14 * L_138 = V_19;
if (L_138)
{
goto IL_038c;
}
}
IL_038b:
{
IL2CPP_END_FINALLY(894)
}
IL_038c:
{
t14 * L_139 = V_19;
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t328_TI_var, L_139);
IL2CPP_END_FINALLY(894)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(894)
{
IL2CPP_JUMP_TBL(0x394, IL_0394)
IL2CPP_RETHROW_IF_UNHANDLED(t326 *)
}
IL_0394:
{
return;
}
}
extern TypeInfo* t922_TI_var;
extern "C" void m4679 (t915 * __this, t603 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t922_TI_var = il2cpp_codegen_type_info_from_index(594);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
t922 * V_3 = {0};
int32_t V_4 = 0;
t922 * V_5 = {0};
{
int32_t L_0 = (__this->f5);
V_0 = L_0;
V_1 = 0;
t603 * L_1 = p0;
int32_t L_2 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(23 /* System.Int32 System.Collections.ArrayList::get_Count() */, L_1);
V_2 = L_2;
t603 * L_3 = p0;
VirtActionInvoker0::Invoke(45 /* System.Void System.Collections.ArrayList::Sort() */, L_3);
goto IL_004d;
}
IL_001b:
{
t603 * L_4 = p0;
int32_t L_5 = V_1;
t14 * L_6 = (t14 *)VirtFuncInvoker1< t14 *, int32_t >::Invoke(21 /* System.Object System.Collections.ArrayList::get_Item(System.Int32) */, L_4, L_5);
V_3 = ((t922 *)CastclassClass(L_6, t922_TI_var));
t922 * L_7 = V_3;
int32_t L_8 = m4724(L_7, NULL);
int32_t L_9 = V_0;
if ((((int32_t)L_8) <= ((int32_t)L_9)))
{
goto IL_0039;
}
}
{
goto IL_0054;
}
IL_0039:
{
t922 * L_10 = V_3;
int32_t L_11 = m4724(L_10, NULL);
int32_t L_12 = V_0;
if ((!(((uint32_t)L_11) == ((uint32_t)L_12))))
{
goto IL_0049;
}
}
{
int32_t L_13 = V_0;
V_0 = ((int32_t)((int32_t)L_13+(int32_t)1));
}
IL_0049:
{
int32_t L_14 = V_1;
V_1 = ((int32_t)((int32_t)L_14+(int32_t)1));
}
IL_004d:
{
int32_t L_15 = V_1;
int32_t L_16 = V_2;
if ((((int32_t)L_15) < ((int32_t)L_16)))
{
goto IL_001b;
}
}
IL_0054:
{
int32_t L_17 = V_0;
__this->f5 = L_17;
int32_t L_18 = V_0;
V_4 = L_18;
goto IL_00a7;
}
IL_0063:
{
t603 * L_19 = p0;
int32_t L_20 = V_1;
t14 * L_21 = (t14 *)VirtFuncInvoker1< t14 *, int32_t >::Invoke(21 /* System.Object System.Collections.ArrayList::get_Item(System.Int32) */, L_19, L_20);
V_5 = ((t922 *)CastclassClass(L_21, t922_TI_var));
t922 * L_22 = V_5;
int32_t L_23 = m4724(L_22, NULL);
int32_t L_24 = V_4;
if ((!(((uint32_t)L_23) == ((uint32_t)L_24))))
{
goto IL_008e;
}
}
{
t922 * L_25 = V_5;
int32_t L_26 = V_0;
m4725(L_25, ((int32_t)((int32_t)L_26-(int32_t)1)), NULL);
goto IL_00a3;
}
IL_008e:
{
t922 * L_27 = V_5;
int32_t L_28 = m4724(L_27, NULL);
V_4 = L_28;
t922 * L_29 = V_5;
int32_t L_30 = V_0;
int32_t L_31 = L_30;
V_0 = ((int32_t)((int32_t)L_31+(int32_t)1));
m4725(L_29, L_31, NULL);
}
IL_00a3:
{
int32_t L_32 = V_1;
V_1 = ((int32_t)((int32_t)L_32+(int32_t)1));
}
IL_00a7:
{
int32_t L_33 = V_1;
int32_t L_34 = V_2;
if ((((int32_t)L_33) < ((int32_t)L_34)))
{
goto IL_0063;
}
}
{
return;
}
}
extern "C" bool m4680 (t14 * __this , int32_t p0, const MethodInfo* method)
{
{
int32_t L_0 = p0;
return ((((int32_t)((((int32_t)((int32_t)((int32_t)L_0&(int32_t)1))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
extern "C" bool m4681 (t14 * __this , int32_t p0, const MethodInfo* method)
{
{
int32_t L_0 = p0;
return ((((int32_t)((((int32_t)((int32_t)((int32_t)L_0&(int32_t)2))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
extern "C" bool m4682 (t14 * __this , int32_t p0, const MethodInfo* method)
{
{
int32_t L_0 = p0;
return ((((int32_t)((((int32_t)((int32_t)((int32_t)L_0&(int32_t)4))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
extern "C" bool m4683 (t14 * __this , int32_t p0, const MethodInfo* method)
{
{
int32_t L_0 = p0;
return ((((int32_t)((((int32_t)((int32_t)((int32_t)L_0&(int32_t)((int32_t)16)))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
extern "C" bool m4684 (t14 * __this , int32_t p0, const MethodInfo* method)
{
{
int32_t L_0 = p0;
return ((((int32_t)((((int32_t)((int32_t)((int32_t)L_0&(int32_t)((int32_t)32)))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
extern "C" bool m4685 (t14 * __this , int32_t p0, const MethodInfo* method)
{
{
int32_t L_0 = p0;
return ((((int32_t)((((int32_t)((int32_t)((int32_t)L_0&(int32_t)((int32_t)256)))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
extern TypeInfo* t15_TI_var;
extern TypeInfo* t387_TI_var;
extern Il2CppCodeGenString* _stringLiteral842;
extern Il2CppCodeGenString* _stringLiteral843;
extern "C" t387 * m4686 (t915 * __this, t15* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
t387_TI_var = il2cpp_codegen_type_info_from_index(234);
_stringLiteral842 = il2cpp_codegen_string_literal_from_index(842);
_stringLiteral843 = il2cpp_codegen_string_literal_from_index(843);
s_Il2CppMethodIntialized = true;
}
{
t15* L_0 = (__this->f0);
t15* L_1 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_2 = m2874(NULL, _stringLiteral842, L_0, _stringLiteral843, L_1, NULL);
p0 = L_2;
t15* L_3 = p0;
t15* L_4 = (__this->f0);
t387 * L_5 = (t387 *)il2cpp_codegen_object_new (t387_TI_var);
m2966(L_5, L_3, L_4, NULL);
return L_5;
}
}
extern TypeInfo* t908_TI_var;
extern "C" void m4687 (t908 * __this, t15* p0, bool p1, bool p2, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t908_TI_var = il2cpp_codegen_type_info_from_index(585);
s_Il2CppMethodIntialized = true;
}
{
m1474(__this, NULL);
t15* L_0 = p0;
__this->f0 = L_0;
t15* L_1 = p0;
int32_t L_2 = m1820(L_1, NULL);
__this->f1 = L_2;
bool L_3 = p1;
__this->f2 = L_3;
bool L_4 = p2;
__this->f3 = L_4;
bool L_5 = p1;
if (!L_5)
{
goto IL_0035;
}
}
{
t15* L_6 = p0;
t15* L_7 = m4960(L_6, NULL);
p0 = L_7;
}
IL_0035:
{
int32_t L_8 = (__this->f1);
IL2CPP_RUNTIME_CLASS_INIT(t908_TI_var);
int32_t L_9 = ((t908_SFs*)t908_TI_var->static_fields)->f6;
if ((((int32_t)L_8) <= ((int32_t)L_9)))
{
goto IL_004b;
}
}
{
m4691(__this, NULL);
}
IL_004b:
{
return;
}
}
extern TypeInfo* t908_TI_var;
extern "C" void m4688 (t14 * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t908_TI_var = il2cpp_codegen_type_info_from_index(585);
s_Il2CppMethodIntialized = true;
}
{
((t908_SFs*)t908_TI_var->static_fields)->f6 = 5;
return;
}
}
extern "C" int32_t m4689 (t908 * __this, const MethodInfo* method)
{
{
int32_t L_0 = (__this->f1);
return L_0;
}
}
extern "C" int32_t m4690 (t908 * __this, t15* p0, int32_t p1, int32_t p2, const MethodInfo* method)
{
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
{
int32_t L_0 = p1;
V_0 = L_0;
bool L_1 = (__this->f3);
if (!L_1)
{
goto IL_0107;
}
}
{
int32_t L_2 = p1;
int32_t L_3 = p2;
if ((((int32_t)L_2) >= ((int32_t)L_3)))
{
goto IL_0016;
}
}
{
return (-1);
}
IL_0016:
{
int32_t L_4 = V_0;
t15* L_5 = p0;
int32_t L_6 = m1820(L_5, NULL);
if ((((int32_t)L_4) <= ((int32_t)L_6)))
{
goto IL_0029;
}
}
{
t15* L_7 = p0;
int32_t L_8 = m1820(L_7, NULL);
V_0 = L_8;
}
IL_0029:
{
int32_t L_9 = (__this->f1);
if ((!(((uint32_t)L_9) == ((uint32_t)1))))
{
goto IL_0067;
}
}
{
goto IL_005a;
}
IL_003a:
{
t15* L_10 = (__this->f0);
uint16_t L_11 = m1839(L_10, 0, NULL);
t15* L_12 = p0;
int32_t L_13 = V_0;
uint16_t L_14 = m1839(L_12, L_13, NULL);
uint16_t L_15 = m4693(__this, L_14, NULL);
if ((!(((uint32_t)L_11) == ((uint32_t)L_15))))
{
goto IL_005a;
}
}
{
int32_t L_16 = V_0;
return L_16;
}
IL_005a:
{
int32_t L_17 = V_0;
int32_t L_18 = ((int32_t)((int32_t)L_17-(int32_t)1));
V_0 = L_18;
int32_t L_19 = p2;
if ((((int32_t)L_18) >= ((int32_t)L_19)))
{
goto IL_003a;
}
}
{
return (-1);
}
IL_0067:
{
int32_t L_20 = p2;
int32_t L_21 = (__this->f1);
if ((((int32_t)L_20) >= ((int32_t)L_21)))
{
goto IL_007d;
}
}
{
int32_t L_22 = (__this->f1);
p2 = ((int32_t)((int32_t)L_22-(int32_t)1));
}
IL_007d:
{
int32_t L_23 = V_0;
V_0 = ((int32_t)((int32_t)L_23-(int32_t)1));
goto IL_00fb;
}
IL_0086:
{
int32_t L_24 = (__this->f1);
V_1 = ((int32_t)((int32_t)L_24-(int32_t)1));
goto IL_00aa;
}
IL_0094:
{
int32_t L_25 = V_1;
int32_t L_26 = ((int32_t)((int32_t)L_25-(int32_t)1));
V_1 = L_26;
if ((((int32_t)L_26) >= ((int32_t)0)))
{
goto IL_00aa;
}
}
{
int32_t L_27 = V_0;
int32_t L_28 = (__this->f1);
return ((int32_t)((int32_t)((int32_t)((int32_t)L_27-(int32_t)L_28))+(int32_t)1));
}
IL_00aa:
{
t15* L_29 = (__this->f0);
int32_t L_30 = V_1;
uint16_t L_31 = m1839(L_29, L_30, NULL);
t15* L_32 = p0;
int32_t L_33 = V_0;
int32_t L_34 = (__this->f1);
int32_t L_35 = V_1;
uint16_t L_36 = m1839(L_32, ((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_33-(int32_t)L_34))+(int32_t)1))+(int32_t)L_35)), NULL);
uint16_t L_37 = m4693(__this, L_36, NULL);
if ((((int32_t)L_31) == ((int32_t)L_37)))
{
goto IL_0094;
}
}
{
int32_t L_38 = V_0;
int32_t L_39 = p2;
if ((((int32_t)L_38) <= ((int32_t)L_39)))
{
goto IL_00f6;
}
}
{
int32_t L_40 = V_0;
t15* L_41 = p0;
int32_t L_42 = V_0;
int32_t L_43 = (__this->f1);
uint16_t L_44 = m1839(L_41, ((int32_t)((int32_t)L_42-(int32_t)L_43)), NULL);
int32_t L_45 = m4692(__this, L_44, NULL);
V_0 = ((int32_t)((int32_t)L_40-(int32_t)L_45));
goto IL_00fb;
}
IL_00f6:
{
goto IL_0102;
}
IL_00fb:
{
int32_t L_46 = V_0;
int32_t L_47 = p2;
if ((((int32_t)L_46) >= ((int32_t)L_47)))
{
goto IL_0086;
}
}
IL_0102:
{
goto IL_01d6;
}
IL_0107:
{
int32_t L_48 = (__this->f1);
if ((!(((uint32_t)L_48) == ((uint32_t)1))))
{
goto IL_0145;
}
}
{
goto IL_013c;
}
IL_0118:
{
t15* L_49 = (__this->f0);
uint16_t L_50 = m1839(L_49, 0, NULL);
t15* L_51 = p0;
int32_t L_52 = V_0;
uint16_t L_53 = m1839(L_51, L_52, NULL);
uint16_t L_54 = m4693(__this, L_53, NULL);
if ((!(((uint32_t)L_50) == ((uint32_t)L_54))))
{
goto IL_0138;
}
}
{
int32_t L_55 = V_0;
return L_55;
}
IL_0138:
{
int32_t L_56 = V_0;
V_0 = ((int32_t)((int32_t)L_56+(int32_t)1));
}
IL_013c:
{
int32_t L_57 = V_0;
int32_t L_58 = p2;
if ((((int32_t)L_57) <= ((int32_t)L_58)))
{
goto IL_0118;
}
}
{
return (-1);
}
IL_0145:
{
int32_t L_59 = p2;
t15* L_60 = p0;
int32_t L_61 = m1820(L_60, NULL);
int32_t L_62 = (__this->f1);
if ((((int32_t)L_59) <= ((int32_t)((int32_t)((int32_t)L_61-(int32_t)L_62)))))
{
goto IL_0167;
}
}
{
t15* L_63 = p0;
int32_t L_64 = m1820(L_63, NULL);
int32_t L_65 = (__this->f1);
p2 = ((int32_t)((int32_t)L_64-(int32_t)L_65));
}
IL_0167:
{
goto IL_01cf;
}
IL_016c:
{
int32_t L_66 = (__this->f1);
V_2 = ((int32_t)((int32_t)L_66-(int32_t)1));
goto IL_0187;
}
IL_017a:
{
int32_t L_67 = V_2;
int32_t L_68 = ((int32_t)((int32_t)L_67-(int32_t)1));
V_2 = L_68;
if ((((int32_t)L_68) >= ((int32_t)0)))
{
goto IL_0187;
}
}
{
int32_t L_69 = V_0;
return L_69;
}
IL_0187:
{
t15* L_70 = (__this->f0);
int32_t L_71 = V_2;
uint16_t L_72 = m1839(L_70, L_71, NULL);
t15* L_73 = p0;
int32_t L_74 = V_0;
int32_t L_75 = V_2;
uint16_t L_76 = m1839(L_73, ((int32_t)((int32_t)L_74+(int32_t)L_75)), NULL);
uint16_t L_77 = m4693(__this, L_76, NULL);
if ((((int32_t)L_72) == ((int32_t)L_77)))
{
goto IL_017a;
}
}
{
int32_t L_78 = V_0;
int32_t L_79 = p2;
if ((((int32_t)L_78) >= ((int32_t)L_79)))
{
goto IL_01ca;
}
}
{
int32_t L_80 = V_0;
t15* L_81 = p0;
int32_t L_82 = V_0;
int32_t L_83 = (__this->f1);
uint16_t L_84 = m1839(L_81, ((int32_t)((int32_t)L_82+(int32_t)L_83)), NULL);
int32_t L_85 = m4692(__this, L_84, NULL);
V_0 = ((int32_t)((int32_t)L_80+(int32_t)L_85));
goto IL_01cf;
}
IL_01ca:
{
goto IL_01d6;
}
IL_01cf:
{
int32_t L_86 = V_0;
int32_t L_87 = p2;
if ((((int32_t)L_86) <= ((int32_t)L_87)))
{
goto IL_016c;
}
}
IL_01d6:
{
return (-1);
}
}
extern TypeInfo* t569_TI_var;
extern TypeInfo* t672_TI_var;
extern TypeInfo* t180_TI_var;
extern TypeInfo* t24_TI_var;
extern "C" void m4691 (t908 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t569_TI_var = il2cpp_codegen_type_info_from_index(338);
t672_TI_var = il2cpp_codegen_type_info_from_index(440);
t180_TI_var = il2cpp_codegen_type_info_from_index(175);
t24_TI_var = il2cpp_codegen_type_info_from_index(74);
s_Il2CppMethodIntialized = true;
}
bool V_0 = false;
uint8_t V_1 = 0x0;
int32_t V_2 = 0;
uint16_t V_3 = 0x0;
int32_t V_4 = 0;
int32_t V_5 = 0;
uint16_t V_6 = 0x0;
t15* G_B13_0 = {0};
t15* G_B12_0 = {0};
int32_t G_B14_0 = 0;
t15* G_B14_1 = {0};
{
int32_t L_0 = (__this->f1);
V_0 = ((((int32_t)L_0) > ((int32_t)((int32_t)254)))? 1 : 0);
V_1 = 0;
V_2 = 0;
goto IL_0045;
}
IL_0017:
{
t15* L_1 = (__this->f0);
int32_t L_2 = V_2;
uint16_t L_3 = m1839(L_1, L_2, NULL);
V_3 = L_3;
uint16_t L_4 = V_3;
if ((((int32_t)L_4) > ((int32_t)((int32_t)255))))
{
goto IL_003f;
}
}
{
uint16_t L_5 = V_3;
uint8_t L_6 = V_1;
if ((((int32_t)(((int32_t)((uint8_t)L_5)))) <= ((int32_t)L_6)))
{
goto IL_003a;
}
}
{
uint16_t L_7 = V_3;
V_1 = (((int32_t)((uint8_t)L_7)));
}
IL_003a:
{
goto IL_0041;
}
IL_003f:
{
V_0 = 1;
}
IL_0041:
{
int32_t L_8 = V_2;
V_2 = ((int32_t)((int32_t)L_8+(int32_t)1));
}
IL_0045:
{
int32_t L_9 = V_2;
int32_t L_10 = (__this->f1);
if ((((int32_t)L_9) < ((int32_t)L_10)))
{
goto IL_0017;
}
}
{
uint8_t L_11 = V_1;
__this->f4 = ((t569*)SZArrayNew(t569_TI_var, ((int32_t)((int32_t)L_11+(int32_t)1))));
bool L_12 = V_0;
if (!L_12)
{
goto IL_0070;
}
}
{
t672 * L_13 = (t672 *)il2cpp_codegen_object_new (t672_TI_var);
m3953(L_13, NULL);
__this->f5 = L_13;
}
IL_0070:
{
V_4 = 0;
int32_t L_14 = (__this->f1);
V_5 = L_14;
goto IL_0102;
}
IL_0080:
{
t15* L_15 = (__this->f0);
bool L_16 = (__this->f3);
G_B12_0 = L_15;
if (L_16)
{
G_B13_0 = L_15;
goto IL_0098;
}
}
{
int32_t L_17 = V_4;
G_B14_0 = L_17;
G_B14_1 = G_B12_0;
goto IL_009c;
}
IL_0098:
{
int32_t L_18 = V_5;
G_B14_0 = ((int32_t)((int32_t)L_18-(int32_t)1));
G_B14_1 = G_B13_0;
}
IL_009c:
{
uint16_t L_19 = m1839(G_B14_1, G_B14_0, NULL);
V_6 = L_19;
uint16_t L_20 = V_6;
t569* L_21 = (__this->f4);
if ((((int32_t)L_20) >= ((int32_t)(((int32_t)((int32_t)(((t17 *)L_21)->max_length)))))))
{
goto IL_00dd;
}
}
{
int32_t L_22 = V_5;
if ((((int32_t)L_22) >= ((int32_t)((int32_t)255))))
{
goto IL_00cf;
}
}
{
t569* L_23 = (__this->f4);
uint16_t L_24 = V_6;
int32_t L_25 = V_5;
*((uint8_t*)(uint8_t*)SZArrayLdElema(L_23, L_24, sizeof(uint8_t))) = (uint8_t)(((int32_t)((uint8_t)L_25)));
goto IL_00f6;
}
IL_00cf:
{
t569* L_26 = (__this->f4);
uint16_t L_27 = V_6;
*((uint8_t*)(uint8_t*)SZArrayLdElema(L_26, L_27, sizeof(uint8_t))) = (uint8_t)((int32_t)255);
}
IL_00dd:
{
t672 * L_28 = (__this->f5);
uint16_t L_29 = V_6;
uint16_t L_30 = L_29;
t14 * L_31 = Box(t180_TI_var, &L_30);
int32_t L_32 = V_5;
int32_t L_33 = L_32;
t14 * L_34 = Box(t24_TI_var, &L_33);
VirtActionInvoker2< t14 *, t14 * >::Invoke(24 /* System.Void System.Collections.Hashtable::set_Item(System.Object,System.Object) */, L_28, L_31, L_34);
}
IL_00f6:
{
int32_t L_35 = V_4;
V_4 = ((int32_t)((int32_t)L_35+(int32_t)1));
int32_t L_36 = V_5;
V_5 = ((int32_t)((int32_t)L_36-(int32_t)1));
}
IL_0102:
{
int32_t L_37 = V_4;
int32_t L_38 = (__this->f1);
if ((((int32_t)L_37) < ((int32_t)L_38)))
{
goto IL_0080;
}
}
{
return;
}
}
extern TypeInfo* t180_TI_var;
extern TypeInfo* t24_TI_var;
extern "C" int32_t m4692 (t908 * __this, uint16_t p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t180_TI_var = il2cpp_codegen_type_info_from_index(175);
t24_TI_var = il2cpp_codegen_type_info_from_index(74);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
t14 * V_1 = {0};
int32_t G_B15_0 = 0;
{
t569* L_0 = (__this->f4);
if (L_0)
{
goto IL_000d;
}
}
{
return 1;
}
IL_000d:
{
uint16_t L_1 = p0;
uint16_t L_2 = m4693(__this, L_1, NULL);
p0 = L_2;
uint16_t L_3 = p0;
t569* L_4 = (__this->f4);
if ((((int32_t)L_3) >= ((int32_t)(((int32_t)((int32_t)(((t17 *)L_4)->max_length)))))))
{
goto IL_004e;
}
}
{
t569* L_5 = (__this->f4);
uint16_t L_6 = p0;
uint16_t L_7 = L_6;
V_0 = (*(uint8_t*)(uint8_t*)SZArrayLdElema(L_5, L_7, sizeof(uint8_t)));
int32_t L_8 = V_0;
if (L_8)
{
goto IL_003c;
}
}
{
int32_t L_9 = (__this->f1);
return ((int32_t)((int32_t)L_9+(int32_t)1));
}
IL_003c:
{
int32_t L_10 = V_0;
if ((((int32_t)L_10) == ((int32_t)((int32_t)255))))
{
goto IL_0049;
}
}
{
int32_t L_11 = V_0;
return L_11;
}
IL_0049:
{
goto IL_0062;
}
IL_004e:
{
uint16_t L_12 = p0;
if ((((int32_t)L_12) >= ((int32_t)((int32_t)255))))
{
goto IL_0062;
}
}
{
int32_t L_13 = (__this->f1);
return ((int32_t)((int32_t)L_13+(int32_t)1));
}
IL_0062:
{
t672 * L_14 = (__this->f5);
if (L_14)
{
goto IL_0076;
}
}
{
int32_t L_15 = (__this->f1);
return ((int32_t)((int32_t)L_15+(int32_t)1));
}
IL_0076:
{
t672 * L_16 = (__this->f5);
uint16_t L_17 = p0;
uint16_t L_18 = L_17;
t14 * L_19 = Box(t180_TI_var, &L_18);
t14 * L_20 = (t14 *)VirtFuncInvoker1< t14 *, t14 * >::Invoke(23 /* System.Object System.Collections.Hashtable::get_Item(System.Object) */, L_16, L_19);
V_1 = L_20;
t14 * L_21 = V_1;
if (!L_21)
{
goto IL_0099;
}
}
{
t14 * L_22 = V_1;
G_B15_0 = ((*(int32_t*)((int32_t*)UnBox (L_22, t24_TI_var))));
goto IL_00a1;
}
IL_0099:
{
int32_t L_23 = (__this->f1);
G_B15_0 = ((int32_t)((int32_t)L_23+(int32_t)1));
}
IL_00a1:
{
return G_B15_0;
}
}
extern TypeInfo* t180_TI_var;
extern "C" uint16_t m4693 (t908 * __this, uint16_t p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t180_TI_var = il2cpp_codegen_type_info_from_index(175);
s_Il2CppMethodIntialized = true;
}
uint16_t G_B3_0 = 0x0;
{
bool L_0 = (__this->f2);
if (L_0)
{
goto IL_0011;
}
}
{
uint16_t L_1 = p0;
G_B3_0 = L_1;
goto IL_0017;
}
IL_0011:
{
uint16_t L_2 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t180_TI_var);
uint16_t L_3 = m1894(NULL, L_2, NULL);
G_B3_0 = L_3;
}
IL_0017:
{
return G_B3_0;
}
}
extern "C" void m4694 (t916 * __this, t552 * p0, t15* p1, const MethodInfo* method)
{
{
m1474(__this, NULL);
t552 * L_0 = p0;
__this->f0 = L_0;
t15* L_1 = p1;
__this->f3 = L_1;
__this->f2 = (t404*)NULL;
__this->f1 = 0;
m4701(__this, NULL);
return;
}
}
extern TypeInfo* t320_TI_var;
extern "C" t15* m4695 (t916 * __this, t796 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t320_TI_var = il2cpp_codegen_type_info_from_index(24);
s_Il2CppMethodIntialized = true;
}
t320 * V_0 = {0};
{
int32_t L_0 = (__this->f1);
if (L_0)
{
goto IL_0012;
}
}
{
t15* L_1 = (__this->f3);
return L_1;
}
IL_0012:
{
t320 * L_2 = (t320 *)il2cpp_codegen_object_new (t320_TI_var);
m1468(L_2, NULL);
V_0 = L_2;
t796 * L_3 = p0;
t320 * L_4 = V_0;
m4696(__this, L_3, L_4, NULL);
t320 * L_5 = V_0;
t15* L_6 = m1472(L_5, NULL);
return L_6;
}
}
extern "C" void m4696 (t916 * __this, t796 * p0, t320 * p1, const MethodInfo* method)
{
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
t797 * V_3 = {0};
int32_t V_4 = 0;
{
int32_t L_0 = (__this->f1);
if (L_0)
{
goto IL_0019;
}
}
{
t320 * L_1 = p1;
t15* L_2 = (__this->f3);
m2875(L_1, L_2, NULL);
return;
}
IL_0019:
{
V_0 = 0;
goto IL_00f1;
}
IL_0020:
{
t404* L_3 = (__this->f2);
int32_t L_4 = V_0;
int32_t L_5 = L_4;
V_0 = ((int32_t)((int32_t)L_5+(int32_t)1));
int32_t L_6 = L_5;
V_1 = (*(int32_t*)(int32_t*)SZArrayLdElema(L_3, L_6, sizeof(int32_t)));
int32_t L_7 = V_1;
if ((((int32_t)L_7) < ((int32_t)0)))
{
goto IL_0055;
}
}
{
t404* L_8 = (__this->f2);
int32_t L_9 = V_0;
int32_t L_10 = L_9;
V_0 = ((int32_t)((int32_t)L_10+(int32_t)1));
int32_t L_11 = L_10;
V_2 = (*(int32_t*)(int32_t*)SZArrayLdElema(L_8, L_11, sizeof(int32_t)));
t320 * L_12 = p1;
t15* L_13 = (__this->f3);
int32_t L_14 = V_1;
int32_t L_15 = V_2;
m4948(L_12, L_13, L_14, L_15, NULL);
goto IL_00f1;
}
IL_0055:
{
int32_t L_16 = V_1;
if ((((int32_t)L_16) >= ((int32_t)((int32_t)-3))))
{
goto IL_008b;
}
}
{
t796 * L_17 = p0;
t798 * L_18 = (t798 *)VirtFuncInvoker0< t798 * >::Invoke(4 /* System.Text.RegularExpressions.GroupCollection System.Text.RegularExpressions.Match::get_Groups() */, L_17);
int32_t L_19 = V_1;
t797 * L_20 = m3996(L_18, ((-((int32_t)((int32_t)L_19+(int32_t)4)))), NULL);
V_3 = L_20;
t320 * L_21 = p1;
t797 * L_22 = V_3;
t15* L_23 = m4443(L_22, NULL);
t797 * L_24 = V_3;
int32_t L_25 = m4440(L_24, NULL);
t797 * L_26 = V_3;
int32_t L_27 = m4441(L_26, NULL);
m4948(L_21, L_23, L_25, L_27, NULL);
goto IL_00f1;
}
IL_008b:
{
int32_t L_28 = V_1;
if ((!(((uint32_t)L_28) == ((uint32_t)(-1)))))
{
goto IL_00a4;
}
}
{
t320 * L_29 = p1;
t796 * L_30 = p0;
t15* L_31 = m4443(L_30, NULL);
m2875(L_29, L_31, NULL);
goto IL_00f1;
}
IL_00a4:
{
int32_t L_32 = V_1;
if ((!(((uint32_t)L_32) == ((uint32_t)((int32_t)-2)))))
{
goto IL_00c5;
}
}
{
t320 * L_33 = p1;
t796 * L_34 = p0;
t15* L_35 = m4443(L_34, NULL);
t796 * L_36 = p0;
int32_t L_37 = m4440(L_36, NULL);
m4948(L_33, L_35, 0, L_37, NULL);
goto IL_00f1;
}
IL_00c5:
{
t796 * L_38 = p0;
int32_t L_39 = m4440(L_38, NULL);
t796 * L_40 = p0;
int32_t L_41 = m4441(L_40, NULL);
V_4 = ((int32_t)((int32_t)L_39+(int32_t)L_41));
t320 * L_42 = p1;
t796 * L_43 = p0;
t15* L_44 = m4443(L_43, NULL);
int32_t L_45 = V_4;
t796 * L_46 = p0;
t15* L_47 = m4443(L_46, NULL);
int32_t L_48 = m1820(L_47, NULL);
int32_t L_49 = V_4;
m4948(L_42, L_44, L_45, ((int32_t)((int32_t)L_48-(int32_t)L_49)), NULL);
}
IL_00f1:
{
int32_t L_50 = V_0;
int32_t L_51 = (__this->f1);
if ((((int32_t)L_50) < ((int32_t)L_51)))
{
goto IL_0020;
}
}
{
return;
}
}
extern "C" bool m4697 (t916 * __this, const MethodInfo* method)
{
{
int32_t L_0 = (__this->f1);
if (L_0)
{
goto IL_000d;
}
}
{
return 0;
}
IL_000d:
{
return 1;
}
}
extern TypeInfo* t404_TI_var;
extern "C" void m4698 (t916 * __this, int32_t p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t404_TI_var = il2cpp_codegen_type_info_from_index(479);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
t404* V_1 = {0};
{
t404* L_0 = (__this->f2);
if (L_0)
{
goto IL_0027;
}
}
{
V_0 = 4;
int32_t L_1 = V_0;
int32_t L_2 = p0;
if ((((int32_t)L_1) >= ((int32_t)L_2)))
{
goto IL_0016;
}
}
{
int32_t L_3 = p0;
V_0 = L_3;
}
IL_0016:
{
int32_t L_4 = V_0;
__this->f2 = ((t404*)SZArrayNew(t404_TI_var, L_4));
goto IL_0072;
}
IL_0027:
{
int32_t L_5 = p0;
t404* L_6 = (__this->f2);
if ((((int32_t)L_5) < ((int32_t)(((int32_t)((int32_t)(((t17 *)L_6)->max_length)))))))
{
goto IL_0072;
}
}
{
t404* L_7 = (__this->f2);
t404* L_8 = (__this->f2);
V_0 = ((int32_t)((int32_t)(((int32_t)((int32_t)(((t17 *)L_7)->max_length))))+(int32_t)((int32_t)((int32_t)(((int32_t)((int32_t)(((t17 *)L_8)->max_length))))>>(int32_t)1))));
int32_t L_9 = V_0;
int32_t L_10 = p0;
if ((((int32_t)L_9) >= ((int32_t)L_10)))
{
goto IL_0052;
}
}
{
int32_t L_11 = p0;
V_0 = L_11;
}
IL_0052:
{
int32_t L_12 = V_0;
V_1 = ((t404*)SZArrayNew(t404_TI_var, L_12));
t404* L_13 = (__this->f2);
t404* L_14 = V_1;
int32_t L_15 = (__this->f1);
m4963(NULL, (t17 *)(t17 *)L_13, (t17 *)(t17 *)L_14, L_15, NULL);
t404* L_16 = V_1;
__this->f2 = L_16;
}
IL_0072:
{
return;
}
}
extern "C" void m4699 (t916 * __this, int32_t p0, int32_t p1, const MethodInfo* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = p0;
int32_t L_1 = p1;
if ((!(((uint32_t)L_0) == ((uint32_t)L_1))))
{
goto IL_0008;
}
}
{
return;
}
IL_0008:
{
int32_t L_2 = (__this->f1);
m4698(__this, ((int32_t)((int32_t)L_2+(int32_t)2)), NULL);
t404* L_3 = (__this->f2);
int32_t L_4 = (__this->f1);
int32_t L_5 = L_4;
V_0 = L_5;
__this->f1 = ((int32_t)((int32_t)L_5+(int32_t)1));
int32_t L_6 = V_0;
int32_t L_7 = p0;
*((int32_t*)(int32_t*)SZArrayLdElema(L_3, L_6, sizeof(int32_t))) = (int32_t)L_7;
t404* L_8 = (__this->f2);
int32_t L_9 = (__this->f1);
int32_t L_10 = L_9;
V_0 = L_10;
__this->f1 = ((int32_t)((int32_t)L_10+(int32_t)1));
int32_t L_11 = V_0;
int32_t L_12 = p1;
int32_t L_13 = p0;
*((int32_t*)(int32_t*)SZArrayLdElema(L_8, L_11, sizeof(int32_t))) = (int32_t)((int32_t)((int32_t)L_12-(int32_t)L_13));
return;
}
}
extern "C" void m4700 (t916 * __this, int32_t p0, const MethodInfo* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = (__this->f1);
m4698(__this, ((int32_t)((int32_t)L_0+(int32_t)1)), NULL);
t404* L_1 = (__this->f2);
int32_t L_2 = (__this->f1);
int32_t L_3 = L_2;
V_0 = L_3;
__this->f1 = ((int32_t)((int32_t)L_3+(int32_t)1));
int32_t L_4 = V_0;
int32_t L_5 = p0;
*((int32_t*)(int32_t*)SZArrayLdElema(L_1, L_4, sizeof(int32_t))) = (int32_t)L_5;
return;
}
}
extern "C" void m4701 (t916 * __this, const MethodInfo* method)
{
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
uint16_t V_3 = 0x0;
int32_t V_4 = 0;
{
V_0 = 0;
V_1 = 0;
goto IL_0090;
}
IL_0009:
{
t15* L_0 = (__this->f3);
int32_t L_1 = V_1;
int32_t L_2 = L_1;
V_1 = ((int32_t)((int32_t)L_2+(int32_t)1));
uint16_t L_3 = m1839(L_0, L_2, NULL);
V_3 = L_3;
uint16_t L_4 = V_3;
if ((((int32_t)L_4) == ((int32_t)((int32_t)36))))
{
goto IL_0027;
}
}
{
goto IL_0090;
}
IL_0027:
{
int32_t L_5 = V_1;
t15* L_6 = (__this->f3);
int32_t L_7 = m1820(L_6, NULL);
if ((!(((uint32_t)L_5) == ((uint32_t)L_7))))
{
goto IL_003d;
}
}
{
goto IL_00a1;
}
IL_003d:
{
t15* L_8 = (__this->f3);
int32_t L_9 = V_1;
uint16_t L_10 = m1839(L_8, L_9, NULL);
if ((!(((uint32_t)L_10) == ((uint32_t)((int32_t)36)))))
{
goto IL_0063;
}
}
{
int32_t L_11 = V_0;
int32_t L_12 = V_1;
m4699(__this, L_11, L_12, NULL);
int32_t L_13 = V_1;
int32_t L_14 = ((int32_t)((int32_t)L_13+(int32_t)1));
V_1 = L_14;
V_0 = L_14;
goto IL_0090;
}
IL_0063:
{
int32_t L_15 = V_1;
V_2 = ((int32_t)((int32_t)L_15-(int32_t)1));
int32_t L_16 = m4702(__this, (&V_1), NULL);
V_4 = L_16;
int32_t L_17 = V_4;
if ((((int32_t)L_17) < ((int32_t)0)))
{
goto IL_007e;
}
}
{
goto IL_0090;
}
IL_007e:
{
int32_t L_18 = V_0;
int32_t L_19 = V_2;
m4699(__this, L_18, L_19, NULL);
int32_t L_20 = V_4;
m4700(__this, L_20, NULL);
int32_t L_21 = V_1;
V_0 = L_21;
}
IL_0090:
{
int32_t L_22 = V_1;
t15* L_23 = (__this->f3);
int32_t L_24 = m1820(L_23, NULL);
if ((((int32_t)L_22) < ((int32_t)L_24)))
{
goto IL_0009;
}
}
IL_00a1:
{
int32_t L_25 = V_0;
if (!L_25)
{
goto IL_00af;
}
}
{
int32_t L_26 = V_0;
int32_t L_27 = V_1;
m4699(__this, L_26, L_27, NULL);
}
IL_00af:
{
return;
}
}
extern TypeInfo* t180_TI_var;
extern TypeInfo* t15_TI_var;
extern TypeInfo* t535_TI_var;
extern "C" int32_t m4702 (t916 * __this, int32_t* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t180_TI_var = il2cpp_codegen_type_info_from_index(175);
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
t535_TI_var = il2cpp_codegen_type_info_from_index(272);
s_Il2CppMethodIntialized = true;
}
uint16_t V_0 = 0x0;
int32_t V_1 = 0;
t15* V_2 = {0};
int32_t V_3 = 0;
uint16_t V_4 = 0x0;
int32_t V_5 = 0;
t326 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t326 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
{
t15* L_0 = (__this->f3);
int32_t* L_1 = p0;
uint16_t L_2 = m1839(L_0, (*((int32_t*)L_1)), NULL);
V_0 = L_2;
uint16_t L_3 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(t180_TI_var);
bool L_4 = m4955(NULL, L_3, NULL);
if (!L_4)
{
goto IL_0045;
}
}
{
t15* L_5 = (__this->f3);
int32_t* L_6 = p0;
int32_t L_7 = m4657(NULL, L_5, L_6, NULL);
V_1 = L_7;
int32_t L_8 = V_1;
if ((((int32_t)L_8) < ((int32_t)0)))
{
goto IL_003e;
}
}
{
int32_t L_9 = V_1;
t552 * L_10 = (__this->f0);
int32_t L_11 = m4506(L_10, NULL);
if ((((int32_t)L_9) <= ((int32_t)L_11)))
{
goto IL_0040;
}
}
IL_003e:
{
return 0;
}
IL_0040:
{
int32_t L_12 = V_1;
return ((int32_t)((int32_t)((-L_12))-(int32_t)4));
}
IL_0045:
{
int32_t* L_13 = p0;
int32_t* L_14 = p0;
*((int32_t*)(L_13)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_14))+(int32_t)1));
uint16_t L_15 = V_0;
V_4 = L_15;
uint16_t L_16 = V_4;
if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)38))) == 0)
{
goto IL_015e;
}
if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)38))) == 1)
{
goto IL_0164;
}
if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)38))) == 2)
{
goto IL_0070;
}
if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)38))) == 3)
{
goto IL_0070;
}
if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)38))) == 4)
{
goto IL_0070;
}
if (((int32_t)((int32_t)L_16-(int32_t)((int32_t)38))) == 5)
{
goto IL_0167;
}
}
IL_0070:
{
uint16_t L_17 = V_4;
if ((((int32_t)L_17) == ((int32_t)((int32_t)95))))
{
goto IL_0176;
}
}
{
uint16_t L_18 = V_4;
if ((((int32_t)L_18) == ((int32_t)((int32_t)96))))
{
goto IL_0161;
}
}
{
uint16_t L_19 = V_4;
if ((((int32_t)L_19) == ((int32_t)((int32_t)123))))
{
goto IL_0090;
}
}
{
goto IL_0178;
}
IL_0090:
{
V_3 = (-1);
}
IL_0092:
try
{ // begin try (depth: 1)
{
t15* L_20 = (__this->f3);
int32_t* L_21 = p0;
uint16_t L_22 = m1839(L_20, (*((int32_t*)L_21)), NULL);
IL2CPP_RUNTIME_CLASS_INIT(t180_TI_var);
bool L_23 = m4955(NULL, L_22, NULL);
if (!L_23)
{
goto IL_00c1;
}
}
IL_00a9:
{
t15* L_24 = (__this->f3);
int32_t* L_25 = p0;
int32_t L_26 = m4657(NULL, L_24, L_25, NULL);
V_3 = L_26;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_27 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
V_2 = L_27;
goto IL_00ce;
}
IL_00c1:
{
t15* L_28 = (__this->f3);
int32_t* L_29 = p0;
t15* L_30 = m4661(NULL, L_28, L_29, NULL);
V_2 = L_30;
}
IL_00ce:
{
goto IL_00ee;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (t326 *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (t535_TI_var, e.ex->object.klass))
goto CATCH_00d3;
throw e;
}
CATCH_00d3:
{ // begin catch(System.IndexOutOfRangeException)
{
int32_t* L_31 = p0;
t15* L_32 = (__this->f3);
int32_t L_33 = m1820(L_32, NULL);
*((int32_t*)(L_31)) = (int32_t)L_33;
V_5 = 0;
goto IL_017a;
}
IL_00e9:
{
; // IL_00e9: leave IL_00ee
}
} // end catch (depth: 1)
IL_00ee:
{
int32_t* L_34 = p0;
t15* L_35 = (__this->f3);
int32_t L_36 = m1820(L_35, NULL);
if ((((int32_t)(*((int32_t*)L_34))) == ((int32_t)L_36)))
{
goto IL_011a;
}
}
{
t15* L_37 = (__this->f3);
int32_t* L_38 = p0;
uint16_t L_39 = m1839(L_37, (*((int32_t*)L_38)), NULL);
if ((!(((uint32_t)L_39) == ((uint32_t)((int32_t)125)))))
{
goto IL_011a;
}
}
{
t15* L_40 = V_2;
if (L_40)
{
goto IL_011c;
}
}
IL_011a:
{
return 0;
}
IL_011c:
{
int32_t* L_41 = p0;
int32_t* L_42 = p0;
*((int32_t*)(L_41)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_42))+(int32_t)1));
t15* L_43 = V_2;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_44 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
bool L_45 = m1838(NULL, L_43, L_44, NULL);
if (!L_45)
{
goto IL_013f;
}
}
{
t552 * L_46 = (__this->f0);
t15* L_47 = V_2;
int32_t L_48 = m4496(L_46, L_47, NULL);
V_3 = L_48;
}
IL_013f:
{
int32_t L_49 = V_3;
if ((((int32_t)L_49) < ((int32_t)0)))
{
goto IL_0157;
}
}
{
int32_t L_50 = V_3;
t552 * L_51 = (__this->f0);
int32_t L_52 = m4506(L_51, NULL);
if ((((int32_t)L_50) <= ((int32_t)L_52)))
{
goto IL_0159;
}
}
IL_0157:
{
return 0;
}
IL_0159:
{
int32_t L_53 = V_3;
return ((int32_t)((int32_t)((-L_53))-(int32_t)4));
}
IL_015e:
{
return ((int32_t)-4);
}
IL_0161:
{
return ((int32_t)-2);
}
IL_0164:
{
return ((int32_t)-3);
}
IL_0167:
{
t552 * L_54 = (__this->f0);
int32_t L_55 = m4506(L_54, NULL);
return ((int32_t)((int32_t)((-L_55))-(int32_t)4));
}
IL_0176:
{
return (-1);
}
IL_0178:
{
return 0;
}
IL_017a:
{
int32_t L_56 = V_5;
return L_56;
}
}
extern "C" void m4703 (t917 * __this, const MethodInfo* method)
{
{
m3924(__this, NULL);
return;
}
}
extern TypeInfo* t912_TI_var;
extern "C" void m4704 (t917 * __this, t918 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t912_TI_var = il2cpp_codegen_type_info_from_index(590);
s_Il2CppMethodIntialized = true;
}
{
t14 * L_0 = m4964(__this, NULL);
t918 * L_1 = p0;
InterfaceFuncInvoker1< int32_t, t14 * >::Invoke(4 /* System.Int32 System.Collections.IList::Add(System.Object) */, t912_TI_var, L_0, L_1);
return;
}
}
extern TypeInfo* t912_TI_var;
extern TypeInfo* t918_TI_var;
extern "C" t918 * m4705 (t917 * __this, int32_t p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t912_TI_var = il2cpp_codegen_type_info_from_index(590);
t918_TI_var = il2cpp_codegen_type_info_from_index(607);
s_Il2CppMethodIntialized = true;
}
{
t14 * L_0 = m4964(__this, NULL);
int32_t L_1 = p0;
t14 * L_2 = (t14 *)InterfaceFuncInvoker1< t14 *, int32_t >::Invoke(2 /* System.Object System.Collections.IList::get_Item(System.Int32) */, t912_TI_var, L_0, L_1);
return ((t918 *)CastclassClass(L_2, t918_TI_var));
}
}
extern TypeInfo* t912_TI_var;
extern "C" void m4706 (t917 * __this, int32_t p0, t918 * p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t912_TI_var = il2cpp_codegen_type_info_from_index(590);
s_Il2CppMethodIntialized = true;
}
{
t14 * L_0 = m4964(__this, NULL);
int32_t L_1 = p0;
t918 * L_2 = p1;
InterfaceActionInvoker2< int32_t, t14 * >::Invoke(3 /* System.Void System.Collections.IList::set_Item(System.Int32,System.Object) */, t912_TI_var, L_0, L_1, L_2);
return;
}
}
extern "C" void m4707 (t917 * __this, t14 * p0, const MethodInfo* method)
{
{
return;
}
}
extern "C" void m4708 (t918 * __this, const MethodInfo* method)
{
{
m1474(__this, NULL);
return;
}
}
extern "C" int32_t m4709 (t918 * __this, const MethodInfo* method)
{
int32_t V_0 = 0;
int32_t V_1 = 0;
{
VirtActionInvoker2< int32_t*, int32_t* >::Invoke(5 /* System.Void System.Text.RegularExpressions.Syntax.Expression::GetWidth(System.Int32&,System.Int32&) */, __this, (&V_0), (&V_1));
int32_t L_0 = V_0;
int32_t L_1 = V_1;
if ((!(((uint32_t)L_0) == ((uint32_t)L_1))))
{
goto IL_0013;
}
}
{
int32_t L_2 = V_0;
return L_2;
}
IL_0013:
{
return (-1);
}
}
extern TypeInfo* t936_TI_var;
extern "C" t936 * m4710 (t918 * __this, bool p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t936_TI_var = il2cpp_codegen_type_info_from_index(608);
s_Il2CppMethodIntialized = true;
}
{
int32_t L_0 = m4709(__this, NULL);
t936 * L_1 = (t936 *)il2cpp_codegen_object_new (t936_TI_var);
m4799(L_1, __this, L_0, NULL);
return L_1;
}
}
extern TypeInfo* t917_TI_var;
extern "C" void m4711 (t919 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t917_TI_var = il2cpp_codegen_type_info_from_index(609);
s_Il2CppMethodIntialized = true;
}
{
m4708(__this, NULL);
t917 * L_0 = (t917 *)il2cpp_codegen_object_new (t917_TI_var);
m4703(L_0, NULL);
__this->f0 = L_0;
return;
}
}
extern "C" t917 * m4712 (t919 * __this, const MethodInfo* method)
{
{
t917 * L_0 = (__this->f0);
return L_0;
}
}
extern "C" void m4713 (t919 * __this, int32_t* p0, int32_t* p1, int32_t p2, const MethodInfo* method)
{
bool V_0 = false;
int32_t V_1 = 0;
t918 * V_2 = {0};
int32_t V_3 = 0;
int32_t V_4 = 0;
int32_t V_5 = 0;
{
int32_t* L_0 = p0;
*((int32_t*)(L_0)) = (int32_t)((int32_t)2147483647);
int32_t* L_1 = p1;
*((int32_t*)(L_1)) = (int32_t)0;
V_0 = 1;
V_1 = 0;
goto IL_0053;
}
IL_0013:
{
t917 * L_2 = m4712(__this, NULL);
int32_t L_3 = V_1;
t918 * L_4 = m4705(L_2, L_3, NULL);
V_2 = L_4;
t918 * L_5 = V_2;
if (L_5)
{
goto IL_002b;
}
}
{
goto IL_004f;
}
IL_002b:
{
V_0 = 0;
t918 * L_6 = V_2;
VirtActionInvoker2< int32_t*, int32_t* >::Invoke(5 /* System.Void System.Text.RegularExpressions.Syntax.Expression::GetWidth(System.Int32&,System.Int32&) */, L_6, (&V_3), (&V_4));
int32_t L_7 = V_3;
int32_t* L_8 = p0;
if ((((int32_t)L_7) >= ((int32_t)(*((int32_t*)L_8)))))
{
goto IL_0042;
}
}
{
int32_t* L_9 = p0;
int32_t L_10 = V_3;
*((int32_t*)(L_9)) = (int32_t)L_10;
}
IL_0042:
{
int32_t L_11 = V_4;
int32_t* L_12 = p1;
if ((((int32_t)L_11) <= ((int32_t)(*((int32_t*)L_12)))))
{
goto IL_004f;
}
}
{
int32_t* L_13 = p1;
int32_t L_14 = V_4;
*((int32_t*)(L_13)) = (int32_t)L_14;
}
IL_004f:
{
int32_t L_15 = V_1;
V_1 = ((int32_t)((int32_t)L_15+(int32_t)1));
}
IL_0053:
{
int32_t L_16 = V_1;
int32_t L_17 = p2;
if ((((int32_t)L_16) < ((int32_t)L_17)))
{
goto IL_0013;
}
}
{
bool L_18 = V_0;
if (!L_18)
{
goto IL_006a;
}
}
{
int32_t* L_19 = p0;
int32_t* L_20 = p1;
int32_t L_21 = 0;
V_5 = L_21;
*((int32_t*)(L_20)) = (int32_t)L_21;
int32_t L_22 = V_5;
*((int32_t*)(L_19)) = (int32_t)L_22;
}
IL_006a:
{
return;
}
}
extern TypeInfo* t306_TI_var;
extern TypeInfo* t918_TI_var;
extern TypeInfo* t328_TI_var;
extern "C" bool m4714 (t919 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t306_TI_var = il2cpp_codegen_type_info_from_index(283);
t918_TI_var = il2cpp_codegen_type_info_from_index(607);
t328_TI_var = il2cpp_codegen_type_info_from_index(86);
s_Il2CppMethodIntialized = true;
}
t918 * V_0 = {0};
t14 * V_1 = {0};
bool V_2 = false;
t14 * V_3 = {0};
t326 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t326 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
{
t917 * L_0 = m4712(__this, NULL);
t14 * L_1 = (t14 *)VirtFuncInvoker0< t14 * >::Invoke(4 /* System.Collections.IEnumerator System.Collections.CollectionBase::GetEnumerator() */, L_0);
V_1 = L_1;
}
IL_000c:
try
{ // begin try (depth: 1)
{
goto IL_002f;
}
IL_0011:
{
t14 * L_2 = V_1;
t14 * L_3 = (t14 *)InterfaceFuncInvoker0< t14 * >::Invoke(0 /* System.Object System.Collections.IEnumerator::get_Current() */, t306_TI_var, L_2);
V_0 = ((t918 *)CastclassClass(L_3, t918_TI_var));
t918 * L_4 = V_0;
bool L_5 = (bool)VirtFuncInvoker0< bool >::Invoke(7 /* System.Boolean System.Text.RegularExpressions.Syntax.Expression::IsComplex() */, L_4);
if (!L_5)
{
goto IL_002f;
}
}
IL_0028:
{
V_2 = 1;
IL2CPP_LEAVE(0x5E, FINALLY_003f);
}
IL_002f:
{
t14 * L_6 = V_1;
bool L_7 = (bool)InterfaceFuncInvoker0< bool >::Invoke(1 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, t306_TI_var, L_6);
if (L_7)
{
goto IL_0011;
}
}
IL_003a:
{
IL2CPP_LEAVE(0x51, FINALLY_003f);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t326 *)e.ex;
goto FINALLY_003f;
}
FINALLY_003f:
{ // begin finally (depth: 1)
{
t14 * L_8 = V_1;
V_3 = ((t14 *)IsInst(L_8, t328_TI_var));
t14 * L_9 = V_3;
if (L_9)
{
goto IL_004a;
}
}
IL_0049:
{
IL2CPP_END_FINALLY(63)
}
IL_004a:
{
t14 * L_10 = V_3;
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t328_TI_var, L_10);
IL2CPP_END_FINALLY(63)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(63)
{
IL2CPP_JUMP_TBL(0x5E, IL_005e)
IL2CPP_JUMP_TBL(0x51, IL_0051)
IL2CPP_RETHROW_IF_UNHANDLED(t326 *)
}
IL_0051:
{
int32_t L_11 = m4709(__this, NULL);
return ((((int32_t)((((int32_t)L_11) > ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
IL_005e:
{
bool L_12 = V_2;
return L_12;
}
}
extern "C" void m4715 (t920 * __this, const MethodInfo* method)
{
{
m4711(__this, NULL);
return;
}
}
extern "C" void m4716 (t920 * __this, t918 * p0, const MethodInfo* method)
{
{
t917 * L_0 = m4712(__this, NULL);
t918 * L_1 = p0;
m4704(L_0, L_1, NULL);
return;
}
}
extern "C" void m4717 (t920 * __this, t14 * p0, bool p1, const MethodInfo* method)
{
int32_t V_0 = 0;
int32_t V_1 = 0;
t918 * V_2 = {0};
{
t917 * L_0 = m4712(__this, NULL);
int32_t L_1 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(5 /* System.Int32 System.Collections.CollectionBase::get_Count() */, L_0);
V_0 = L_1;
V_1 = 0;
goto IL_0048;
}
IL_0013:
{
bool L_2 = p1;
if (!L_2)
{
goto IL_002f;
}
}
{
t917 * L_3 = m4712(__this, NULL);
int32_t L_4 = V_0;
int32_t L_5 = V_1;
t918 * L_6 = m4705(L_3, ((int32_t)((int32_t)((int32_t)((int32_t)L_4-(int32_t)L_5))-(int32_t)1)), NULL);
V_2 = L_6;
goto IL_003c;
}
IL_002f:
{
t917 * L_7 = m4712(__this, NULL);
int32_t L_8 = V_1;
t918 * L_9 = m4705(L_7, L_8, NULL);
V_2 = L_9;
}
IL_003c:
{
t918 * L_10 = V_2;
t14 * L_11 = p0;
bool L_12 = p1;
VirtActionInvoker2< t14 *, bool >::Invoke(4 /* System.Void System.Text.RegularExpressions.Syntax.Expression::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) */, L_10, L_11, L_12);
int32_t L_13 = V_1;
V_1 = ((int32_t)((int32_t)L_13+(int32_t)1));
}
IL_0048:
{
int32_t L_14 = V_1;
int32_t L_15 = V_0;
if ((((int32_t)L_14) < ((int32_t)L_15)))
{
goto IL_0013;
}
}
{
return;
}
}
extern TypeInfo* t306_TI_var;
extern TypeInfo* t918_TI_var;
extern TypeInfo* t328_TI_var;
extern "C" void m4718 (t920 * __this, int32_t* p0, int32_t* p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t306_TI_var = il2cpp_codegen_type_info_from_index(283);
t918_TI_var = il2cpp_codegen_type_info_from_index(607);
t328_TI_var = il2cpp_codegen_type_info_from_index(86);
s_Il2CppMethodIntialized = true;
}
t918 * V_0 = {0};
t14 * V_1 = {0};
int32_t V_2 = 0;
int32_t V_3 = 0;
t14 * V_4 = {0};
t326 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t326 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
{
int32_t* L_0 = p0;
*((int32_t*)(L_0)) = (int32_t)0;
int32_t* L_1 = p1;
*((int32_t*)(L_1)) = (int32_t)0;
t917 * L_2 = m4712(__this, NULL);
t14 * L_3 = (t14 *)VirtFuncInvoker0< t14 * >::Invoke(4 /* System.Collections.IEnumerator System.Collections.CollectionBase::GetEnumerator() */, L_2);
V_1 = L_3;
}
IL_0012:
try
{ // begin try (depth: 1)
{
goto IL_005c;
}
IL_0017:
{
t14 * L_4 = V_1;
t14 * L_5 = (t14 *)InterfaceFuncInvoker0< t14 * >::Invoke(0 /* System.Object System.Collections.IEnumerator::get_Current() */, t306_TI_var, L_4);
V_0 = ((t918 *)CastclassClass(L_5, t918_TI_var));
t918 * L_6 = V_0;
VirtActionInvoker2< int32_t*, int32_t* >::Invoke(5 /* System.Void System.Text.RegularExpressions.Syntax.Expression::GetWidth(System.Int32&,System.Int32&) */, L_6, (&V_2), (&V_3));
int32_t* L_7 = p0;
int32_t* L_8 = p0;
int32_t L_9 = V_2;
*((int32_t*)(L_7)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_8))+(int32_t)L_9));
int32_t* L_10 = p1;
if ((((int32_t)(*((int32_t*)L_10))) == ((int32_t)((int32_t)2147483647))))
{
goto IL_004a;
}
}
IL_003f:
{
int32_t L_11 = V_3;
if ((!(((uint32_t)L_11) == ((uint32_t)((int32_t)2147483647)))))
{
goto IL_0056;
}
}
IL_004a:
{
int32_t* L_12 = p1;
*((int32_t*)(L_12)) = (int32_t)((int32_t)2147483647);
goto IL_005c;
}
IL_0056:
{
int32_t* L_13 = p1;
int32_t* L_14 = p1;
int32_t L_15 = V_3;
*((int32_t*)(L_13)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_14))+(int32_t)L_15));
}
IL_005c:
{
t14 * L_16 = V_1;
bool L_17 = (bool)InterfaceFuncInvoker0< bool >::Invoke(1 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, t306_TI_var, L_16);
if (L_17)
{
goto IL_0017;
}
}
IL_0067:
{
IL2CPP_LEAVE(0x81, FINALLY_006c);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t326 *)e.ex;
goto FINALLY_006c;
}
FINALLY_006c:
{ // begin finally (depth: 1)
{
t14 * L_18 = V_1;
V_4 = ((t14 *)IsInst(L_18, t328_TI_var));
t14 * L_19 = V_4;
if (L_19)
{
goto IL_0079;
}
}
IL_0078:
{
IL2CPP_END_FINALLY(108)
}
IL_0079:
{
t14 * L_20 = V_4;
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t328_TI_var, L_20);
IL2CPP_END_FINALLY(108)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(108)
{
IL2CPP_JUMP_TBL(0x81, IL_0081)
IL2CPP_RETHROW_IF_UNHANDLED(t326 *)
}
IL_0081:
{
return;
}
}
extern TypeInfo* t603_TI_var;
extern TypeInfo* t914_TI_var;
extern TypeInfo* t936_TI_var;
extern TypeInfo* t306_TI_var;
extern TypeInfo* t910_TI_var;
extern TypeInfo* t328_TI_var;
extern TypeInfo* t320_TI_var;
extern TypeInfo* t968_TI_var;
extern TypeInfo* t966_TI_var;
extern Il2CppCodeGenString* _stringLiteral844;
extern Il2CppCodeGenString* _stringLiteral845;
extern "C" t936 * m4719 (t920 * __this, bool p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t603_TI_var = il2cpp_codegen_type_info_from_index(358);
t914_TI_var = il2cpp_codegen_type_info_from_index(591);
t936_TI_var = il2cpp_codegen_type_info_from_index(608);
t306_TI_var = il2cpp_codegen_type_info_from_index(283);
t910_TI_var = il2cpp_codegen_type_info_from_index(589);
t328_TI_var = il2cpp_codegen_type_info_from_index(86);
t320_TI_var = il2cpp_codegen_type_info_from_index(24);
t968_TI_var = il2cpp_codegen_type_info_from_index(610);
t966_TI_var = il2cpp_codegen_type_info_from_index(557);
_stringLiteral844 = il2cpp_codegen_string_literal_from_index(844);
_stringLiteral845 = il2cpp_codegen_string_literal_from_index(845);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
t603 * V_2 = {0};
t914 * V_3 = {0};
int32_t V_4 = 0;
int32_t V_5 = 0;
t918 * V_6 = {0};
t936 * V_7 = {0};
t910 V_8 = {0};
t910 V_9 = {0};
t14 * V_10 = {0};
bool V_11 = false;
int32_t V_12 = 0;
int32_t V_13 = 0;
t936 * V_14 = {0};
t320 * V_15 = {0};
int32_t V_16 = 0;
t936 * V_17 = {0};
t14 * V_18 = {0};
t326 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t326 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
{
int32_t L_0 = m4709(__this, NULL);
V_1 = L_0;
t603 * L_1 = (t603 *)il2cpp_codegen_object_new (t603_TI_var);
m3869(L_1, NULL);
V_2 = L_1;
t914 * L_2 = (t914 *)il2cpp_codegen_object_new (t914_TI_var);
m4645(L_2, NULL);
V_3 = L_2;
V_0 = 0;
t917 * L_3 = m4712(__this, NULL);
int32_t L_4 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(5 /* System.Int32 System.Collections.CollectionBase::get_Count() */, L_3);
V_4 = L_4;
V_5 = 0;
goto IL_00ca;
}
IL_002a:
{
bool L_5 = p0;
if (!L_5)
{
goto IL_0049;
}
}
{
t917 * L_6 = m4712(__this, NULL);
int32_t L_7 = V_4;
int32_t L_8 = V_5;
t918 * L_9 = m4705(L_6, ((int32_t)((int32_t)((int32_t)((int32_t)L_7-(int32_t)L_8))-(int32_t)1)), NULL);
V_6 = L_9;
goto IL_0058;
}
IL_0049:
{
t917 * L_10 = m4712(__this, NULL);
int32_t L_11 = V_5;
t918 * L_12 = m4705(L_10, L_11, NULL);
V_6 = L_12;
}
IL_0058:
{
t918 * L_13 = V_6;
bool L_14 = p0;
t936 * L_15 = (t936 *)VirtFuncInvoker1< t936 *, bool >::Invoke(6 /* System.Text.RegularExpressions.Syntax.AnchorInfo System.Text.RegularExpressions.Syntax.Expression::GetAnchorInfo(System.Boolean) */, L_13, L_14);
V_7 = L_15;
t603 * L_16 = V_2;
t936 * L_17 = V_7;
VirtFuncInvoker1< int32_t, t14 * >::Invoke(30 /* System.Int32 System.Collections.ArrayList::Add(System.Object) */, L_16, L_17);
t936 * L_18 = V_7;
bool L_19 = m4811(L_18, NULL);
if (!L_19)
{
goto IL_008f;
}
}
{
int32_t L_20 = V_0;
t936 * L_21 = V_7;
int32_t L_22 = m4802(L_21, NULL);
int32_t L_23 = V_1;
t936 * L_24 = V_7;
uint16_t L_25 = m4809(L_24, NULL);
t936 * L_26 = (t936 *)il2cpp_codegen_object_new (t936_TI_var);
m4801(L_26, __this, ((int32_t)((int32_t)L_20+(int32_t)L_22)), L_23, L_25, NULL);
return L_26;
}
IL_008f:
{
t936 * L_27 = V_7;
bool L_28 = m4810(L_27, NULL);
if (!L_28)
{
goto IL_00a9;
}
}
{
t914 * L_29 = V_3;
t936 * L_30 = V_7;
int32_t L_31 = V_0;
t910 L_32 = m4812(L_30, L_31, NULL);
m4647(L_29, L_32, NULL);
}
IL_00a9:
{
t936 * L_33 = V_7;
bool L_34 = m4805(L_33, NULL);
if (!L_34)
{
goto IL_00ba;
}
}
{
goto IL_00d3;
}
IL_00ba:
{
int32_t L_35 = V_0;
t936 * L_36 = V_7;
int32_t L_37 = m4803(L_36, NULL);
V_0 = ((int32_t)((int32_t)L_35+(int32_t)L_37));
int32_t L_38 = V_5;
V_5 = ((int32_t)((int32_t)L_38+(int32_t)1));
}
IL_00ca:
{
int32_t L_39 = V_5;
int32_t L_40 = V_4;
if ((((int32_t)L_39) < ((int32_t)L_40)))
{
goto IL_002a;
}
}
IL_00d3:
{
t914 * L_41 = V_3;
m4648(L_41, NULL);
t910 L_42 = m4625(NULL, NULL);
V_8 = L_42;
t914 * L_43 = V_3;
t14 * L_44 = (t14 *)VirtFuncInvoker0< t14 * >::Invoke(8 /* System.Collections.IEnumerator System.Text.RegularExpressions.IntervalCollection::GetEnumerator() */, L_43);
V_10 = L_44;
}
IL_00e8:
try
{ // begin try (depth: 1)
{
goto IL_0112;
}
IL_00ed:
{
t14 * L_45 = V_10;
t14 * L_46 = (t14 *)InterfaceFuncInvoker0< t14 * >::Invoke(0 /* System.Object System.Collections.IEnumerator::get_Current() */, t306_TI_var, L_45);
V_9 = ((*(t910 *)((t910 *)UnBox (L_46, t910_TI_var))));
int32_t L_47 = m4629((&V_9), NULL);
int32_t L_48 = m4629((&V_8), NULL);
if ((((int32_t)L_47) <= ((int32_t)L_48)))
{
goto IL_0112;
}
}
IL_010e:
{
t910 L_49 = V_9;
V_8 = L_49;
}
IL_0112:
{
t14 * L_50 = V_10;
bool L_51 = (bool)InterfaceFuncInvoker0< bool >::Invoke(1 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, t306_TI_var, L_50);
if (L_51)
{
goto IL_00ed;
}
}
IL_011e:
{
IL2CPP_LEAVE(0x139, FINALLY_0123);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t326 *)e.ex;
goto FINALLY_0123;
}
FINALLY_0123:
{ // begin finally (depth: 1)
{
t14 * L_52 = V_10;
V_18 = ((t14 *)IsInst(L_52, t328_TI_var));
t14 * L_53 = V_18;
if (L_53)
{
goto IL_0131;
}
}
IL_0130:
{
IL2CPP_END_FINALLY(291)
}
IL_0131:
{
t14 * L_54 = V_18;
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t328_TI_var, L_54);
IL2CPP_END_FINALLY(291)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(291)
{
IL2CPP_JUMP_TBL(0x139, IL_0139)
IL2CPP_RETHROW_IF_UNHANDLED(t326 *)
}
IL_0139:
{
bool L_55 = m4628((&V_8), NULL);
if (!L_55)
{
goto IL_014d;
}
}
{
int32_t L_56 = V_1;
t936 * L_57 = (t936 *)il2cpp_codegen_object_new (t936_TI_var);
m4799(L_57, __this, L_56, NULL);
return L_57;
}
IL_014d:
{
V_11 = 0;
V_12 = 0;
V_0 = 0;
V_13 = 0;
goto IL_01c8;
}
IL_015d:
{
t603 * L_58 = V_2;
int32_t L_59 = V_13;
t14 * L_60 = (t14 *)VirtFuncInvoker1< t14 *, int32_t >::Invoke(21 /* System.Object System.Collections.ArrayList::get_Item(System.Int32) */, L_58, L_59);
V_14 = ((t936 *)CastclassClass(L_60, t936_TI_var));
t936 * L_61 = V_14;
bool L_62 = m4810(L_61, NULL);
if (!L_62)
{
goto IL_01a7;
}
}
{
t936 * L_63 = V_14;
int32_t L_64 = V_0;
t910 L_65 = m4812(L_63, L_64, NULL);
bool L_66 = m4632((&V_8), L_65, NULL);
if (!L_66)
{
goto IL_01a7;
}
}
{
bool L_67 = V_11;
t936 * L_68 = V_14;
bool L_69 = m4808(L_68, NULL);
V_11 = ((int32_t)((int32_t)L_67|(int32_t)L_69));
t603 * L_70 = V_2;
int32_t L_71 = V_12;
int32_t L_72 = L_71;
V_12 = ((int32_t)((int32_t)L_72+(int32_t)1));
t936 * L_73 = V_14;
VirtActionInvoker2< int32_t, t14 * >::Invoke(22 /* System.Void System.Collections.ArrayList::set_Item(System.Int32,System.Object) */, L_70, L_72, L_73);
}
IL_01a7:
{
t936 * L_74 = V_14;
bool L_75 = m4805(L_74, NULL);
if (!L_75)
{
goto IL_01b8;
}
}
{
goto IL_01d5;
}
IL_01b8:
{
int32_t L_76 = V_0;
t936 * L_77 = V_14;
int32_t L_78 = m4803(L_77, NULL);
V_0 = ((int32_t)((int32_t)L_76+(int32_t)L_78));
int32_t L_79 = V_13;
V_13 = ((int32_t)((int32_t)L_79+(int32_t)1));
}
IL_01c8:
{
int32_t L_80 = V_13;
t603 * L_81 = V_2;
int32_t L_82 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(23 /* System.Int32 System.Collections.ArrayList::get_Count() */, L_81);
if ((((int32_t)L_80) < ((int32_t)L_82)))
{
goto IL_015d;
}
}
IL_01d5:
{
t320 * L_83 = (t320 *)il2cpp_codegen_object_new (t320_TI_var);
m1468(L_83, NULL);
V_15 = L_83;
V_16 = 0;
goto IL_0227;
}
IL_01e4:
{
bool L_84 = p0;
if (!L_84)
{
goto IL_0203;
}
}
{
t603 * L_85 = V_2;
int32_t L_86 = V_12;
int32_t L_87 = V_16;
t14 * L_88 = (t14 *)VirtFuncInvoker1< t14 *, int32_t >::Invoke(21 /* System.Object System.Collections.ArrayList::get_Item(System.Int32) */, L_85, ((int32_t)((int32_t)((int32_t)((int32_t)L_86-(int32_t)L_87))-(int32_t)1)));
V_17 = ((t936 *)CastclassClass(L_88, t936_TI_var));
goto IL_0212;
}
IL_0203:
{
t603 * L_89 = V_2;
int32_t L_90 = V_16;
t14 * L_91 = (t14 *)VirtFuncInvoker1< t14 *, int32_t >::Invoke(21 /* System.Object System.Collections.ArrayList::get_Item(System.Int32) */, L_89, L_90);
V_17 = ((t936 *)CastclassClass(L_91, t936_TI_var));
}
IL_0212:
{
t320 * L_92 = V_15;
t936 * L_93 = V_17;
t15* L_94 = m4807(L_93, NULL);
m2875(L_92, L_94, NULL);
int32_t L_95 = V_16;
V_16 = ((int32_t)((int32_t)L_95+(int32_t)1));
}
IL_0227:
{
int32_t L_96 = V_16;
int32_t L_97 = V_12;
if ((((int32_t)L_96) < ((int32_t)L_97)))
{
goto IL_01e4;
}
}
{
t320 * L_98 = V_15;
int32_t L_99 = m3938(L_98, NULL);
int32_t L_100 = m4629((&V_8), NULL);
if ((!(((uint32_t)L_99) == ((uint32_t)L_100))))
{
goto IL_025b;
}
}
{
int32_t L_101 = ((&V_8)->f0);
int32_t L_102 = V_1;
t320 * L_103 = V_15;
t15* L_104 = m1472(L_103, NULL);
bool L_105 = V_11;
t936 * L_106 = (t936 *)il2cpp_codegen_object_new (t936_TI_var);
m4800(L_106, __this, L_101, L_102, L_104, L_105, NULL);
return L_106;
}
IL_025b:
{
t320 * L_107 = V_15;
int32_t L_108 = m3938(L_107, NULL);
int32_t L_109 = m4629((&V_8), NULL);
if ((((int32_t)L_108) <= ((int32_t)L_109)))
{
goto IL_0285;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t968_TI_var);
t969 * L_110 = m4965(NULL, NULL);
VirtActionInvoker1< t15* >::Invoke(13 /* System.Void System.IO.TextWriter::WriteLine(System.String) */, L_110, _stringLiteral844);
int32_t L_111 = V_1;
t936 * L_112 = (t936 *)il2cpp_codegen_object_new (t936_TI_var);
m4799(L_112, __this, L_111, NULL);
return L_112;
}
IL_0285:
{
t966 * L_113 = (t966 *)il2cpp_codegen_object_new (t966_TI_var);
m4949(L_113, _stringLiteral845, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_113);
}
}
extern "C" void m4720 (t921 * __this, const MethodInfo* method)
{
{
m4715(__this, NULL);
__this->f1 = 0;
return;
}
}
extern "C" void m4721 (t921 * __this, int32_t p0, const MethodInfo* method)
{
{
int32_t L_0 = p0;
__this->f1 = L_0;
return;
}
}
extern TypeInfo* t955_TI_var;
extern "C" void m4722 (t921 * __this, t14 * p0, bool p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t955_TI_var = il2cpp_codegen_type_info_from_index(573);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
t936 * V_2 = {0};
t896 * V_3 = {0};
{
VirtActionInvoker2< int32_t*, int32_t* >::Invoke(5 /* System.Void System.Text.RegularExpressions.Syntax.Group::GetWidth(System.Int32&,System.Int32&) */, __this, (&V_0), (&V_1));
t14 * L_0 = p0;
int32_t L_1 = (__this->f1);
int32_t L_2 = V_0;
int32_t L_3 = V_1;
InterfaceActionInvoker3< int32_t, int32_t, int32_t >::Invoke(23 /* System.Void System.Text.RegularExpressions.ICompiler::EmitInfo(System.Int32,System.Int32,System.Int32) */, t955_TI_var, L_0, L_1, L_2, L_3);
bool L_4 = p1;
t936 * L_5 = (t936 *)VirtFuncInvoker1< t936 *, bool >::Invoke(6 /* System.Text.RegularExpressions.Syntax.AnchorInfo System.Text.RegularExpressions.Syntax.Group::GetAnchorInfo(System.Boolean) */, __this, L_4);
V_2 = L_5;
t14 * L_6 = p0;
t896 * L_7 = (t896 *)InterfaceFuncInvoker0< t896 * >::Invoke(28 /* System.Text.RegularExpressions.LinkRef System.Text.RegularExpressions.ICompiler::NewLink() */, t955_TI_var, L_6);
V_3 = L_7;
t14 * L_8 = p0;
bool L_9 = p1;
t936 * L_10 = V_2;
int32_t L_11 = m4802(L_10, NULL);
t896 * L_12 = V_3;
InterfaceActionInvoker3< bool, int32_t, t896 * >::Invoke(25 /* System.Void System.Text.RegularExpressions.ICompiler::EmitAnchor(System.Boolean,System.Int32,System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_8, L_9, L_11, L_12);
t936 * L_13 = V_2;
bool L_14 = m4811(L_13, NULL);
if (!L_14)
{
goto IL_0051;
}
}
{
t14 * L_15 = p0;
t936 * L_16 = V_2;
uint16_t L_17 = m4809(L_16, NULL);
InterfaceActionInvoker1< uint16_t >::Invoke(9 /* System.Void System.Text.RegularExpressions.ICompiler::EmitPosition(System.Text.RegularExpressions.Position) */, t955_TI_var, L_15, L_17);
goto IL_006f;
}
IL_0051:
{
t936 * L_18 = V_2;
bool L_19 = m4810(L_18, NULL);
if (!L_19)
{
goto IL_006f;
}
}
{
t14 * L_20 = p0;
t936 * L_21 = V_2;
t15* L_22 = m4807(L_21, NULL);
t936 * L_23 = V_2;
bool L_24 = m4808(L_23, NULL);
bool L_25 = p1;
InterfaceActionInvoker3< t15*, bool, bool >::Invoke(8 /* System.Void System.Text.RegularExpressions.ICompiler::EmitString(System.String,System.Boolean,System.Boolean) */, t955_TI_var, L_20, L_22, L_24, L_25);
}
IL_006f:
{
t14 * L_26 = p0;
InterfaceActionInvoker0::Invoke(2 /* System.Void System.Text.RegularExpressions.ICompiler::EmitTrue() */, t955_TI_var, L_26);
t14 * L_27 = p0;
t896 * L_28 = V_3;
InterfaceActionInvoker1< t896 * >::Invoke(29 /* System.Void System.Text.RegularExpressions.ICompiler::ResolveLink(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_27, L_28);
t14 * L_29 = p0;
bool L_30 = p1;
m4717(__this, L_29, L_30, NULL);
t14 * L_31 = p0;
InterfaceActionInvoker0::Invoke(2 /* System.Void System.Text.RegularExpressions.ICompiler::EmitTrue() */, t955_TI_var, L_31);
return;
}
}
extern "C" void m4723 (t922 * __this, const MethodInfo* method)
{
{
m4715(__this, NULL);
__this->f1 = 0;
__this->f2 = (t15*)NULL;
return;
}
}
extern "C" int32_t m4724 (t922 * __this, const MethodInfo* method)
{
{
int32_t L_0 = (__this->f1);
return L_0;
}
}
extern "C" void m4725 (t922 * __this, int32_t p0, const MethodInfo* method)
{
{
int32_t L_0 = p0;
__this->f1 = L_0;
return;
}
}
extern "C" t15* m4726 (t922 * __this, const MethodInfo* method)
{
{
t15* L_0 = (__this->f2);
return L_0;
}
}
extern "C" void m4727 (t922 * __this, t15* p0, const MethodInfo* method)
{
{
t15* L_0 = p0;
__this->f2 = L_0;
return;
}
}
extern "C" bool m4728 (t922 * __this, const MethodInfo* method)
{
{
t15* L_0 = (__this->f2);
return ((((int32_t)((((t14*)(t15*)L_0) == ((t14*)(t14 *)NULL))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
extern TypeInfo* t955_TI_var;
extern "C" void m4729 (t922 * __this, t14 * p0, bool p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t955_TI_var = il2cpp_codegen_type_info_from_index(573);
s_Il2CppMethodIntialized = true;
}
{
t14 * L_0 = p0;
int32_t L_1 = (__this->f1);
InterfaceActionInvoker1< int32_t >::Invoke(10 /* System.Void System.Text.RegularExpressions.ICompiler::EmitOpen(System.Int32) */, t955_TI_var, L_0, L_1);
t14 * L_2 = p0;
bool L_3 = p1;
m4717(__this, L_2, L_3, NULL);
t14 * L_4 = p0;
int32_t L_5 = (__this->f1);
InterfaceActionInvoker1< int32_t >::Invoke(11 /* System.Void System.Text.RegularExpressions.ICompiler::EmitClose(System.Int32) */, t955_TI_var, L_4, L_5);
return;
}
}
extern "C" bool m4730 (t922 * __this, const MethodInfo* method)
{
{
return 1;
}
}
extern TypeInfo* t922_TI_var;
extern "C" int32_t m4731 (t922 * __this, t14 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t922_TI_var = il2cpp_codegen_type_info_from_index(594);
s_Il2CppMethodIntialized = true;
}
{
int32_t L_0 = (__this->f1);
t14 * L_1 = p0;
int32_t L_2 = (((t922 *)CastclassClass(L_1, t922_TI_var))->f1);
return ((int32_t)((int32_t)L_0-(int32_t)L_2));
}
}
extern "C" void m4732 (t923 * __this, const MethodInfo* method)
{
{
m4723(__this, NULL);
__this->f3 = (t922 *)NULL;
return;
}
}
extern "C" void m4733 (t923 * __this, t922 * p0, const MethodInfo* method)
{
{
t922 * L_0 = p0;
__this->f3 = L_0;
return;
}
}
extern TypeInfo* t955_TI_var;
extern "C" void m4734 (t923 * __this, t14 * p0, bool p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t955_TI_var = il2cpp_codegen_type_info_from_index(573);
s_Il2CppMethodIntialized = true;
}
t896 * V_0 = {0};
int32_t V_1 = 0;
int32_t V_2 = 0;
t918 * V_3 = {0};
{
t14 * L_0 = p0;
t896 * L_1 = (t896 *)InterfaceFuncInvoker0< t896 * >::Invoke(28 /* System.Text.RegularExpressions.LinkRef System.Text.RegularExpressions.ICompiler::NewLink() */, t955_TI_var, L_0);
V_0 = L_1;
t14 * L_2 = p0;
int32_t L_3 = m4724(__this, NULL);
t922 * L_4 = (__this->f3);
int32_t L_5 = m4724(L_4, NULL);
bool L_6 = m4728(__this, NULL);
t896 * L_7 = V_0;
InterfaceActionInvoker4< int32_t, int32_t, bool, t896 * >::Invoke(12 /* System.Void System.Text.RegularExpressions.ICompiler::EmitBalanceStart(System.Int32,System.Int32,System.Boolean,System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_2, L_3, L_5, L_6, L_7);
t917 * L_8 = m4712(__this, NULL);
int32_t L_9 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(5 /* System.Int32 System.Collections.CollectionBase::get_Count() */, L_8);
V_1 = L_9;
V_2 = 0;
goto IL_006d;
}
IL_0038:
{
bool L_10 = p1;
if (!L_10)
{
goto IL_0054;
}
}
{
t917 * L_11 = m4712(__this, NULL);
int32_t L_12 = V_1;
int32_t L_13 = V_2;
t918 * L_14 = m4705(L_11, ((int32_t)((int32_t)((int32_t)((int32_t)L_12-(int32_t)L_13))-(int32_t)1)), NULL);
V_3 = L_14;
goto IL_0061;
}
IL_0054:
{
t917 * L_15 = m4712(__this, NULL);
int32_t L_16 = V_2;
t918 * L_17 = m4705(L_15, L_16, NULL);
V_3 = L_17;
}
IL_0061:
{
t918 * L_18 = V_3;
t14 * L_19 = p0;
bool L_20 = p1;
VirtActionInvoker2< t14 *, bool >::Invoke(4 /* System.Void System.Text.RegularExpressions.Syntax.Expression::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) */, L_18, L_19, L_20);
int32_t L_21 = V_2;
V_2 = ((int32_t)((int32_t)L_21+(int32_t)1));
}
IL_006d:
{
int32_t L_22 = V_2;
int32_t L_23 = V_1;
if ((((int32_t)L_22) < ((int32_t)L_23)))
{
goto IL_0038;
}
}
{
t14 * L_24 = p0;
InterfaceActionInvoker0::Invoke(13 /* System.Void System.Text.RegularExpressions.ICompiler::EmitBalance() */, t955_TI_var, L_24);
t14 * L_25 = p0;
t896 * L_26 = V_0;
InterfaceActionInvoker1< t896 * >::Invoke(29 /* System.Void System.Text.RegularExpressions.ICompiler::ResolveLink(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_25, L_26);
return;
}
}
extern "C" void m4735 (t924 * __this, const MethodInfo* method)
{
{
m4715(__this, NULL);
return;
}
}
extern TypeInfo* t955_TI_var;
extern "C" void m4736 (t924 * __this, t14 * p0, bool p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t955_TI_var = il2cpp_codegen_type_info_from_index(573);
s_Il2CppMethodIntialized = true;
}
t896 * V_0 = {0};
{
t14 * L_0 = p0;
t896 * L_1 = (t896 *)InterfaceFuncInvoker0< t896 * >::Invoke(28 /* System.Text.RegularExpressions.LinkRef System.Text.RegularExpressions.ICompiler::NewLink() */, t955_TI_var, L_0);
V_0 = L_1;
t14 * L_2 = p0;
t896 * L_3 = V_0;
InterfaceActionInvoker1< t896 * >::Invoke(16 /* System.Void System.Text.RegularExpressions.ICompiler::EmitSub(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_2, L_3);
t14 * L_4 = p0;
bool L_5 = p1;
m4717(__this, L_4, L_5, NULL);
t14 * L_6 = p0;
InterfaceActionInvoker0::Invoke(2 /* System.Void System.Text.RegularExpressions.ICompiler::EmitTrue() */, t955_TI_var, L_6);
t14 * L_7 = p0;
t896 * L_8 = V_0;
InterfaceActionInvoker1< t896 * >::Invoke(29 /* System.Void System.Text.RegularExpressions.ICompiler::ResolveLink(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_7, L_8);
return;
}
}
extern "C" bool m4737 (t924 * __this, const MethodInfo* method)
{
{
return 1;
}
}
extern "C" void m4738 (t925 * __this, int32_t p0, int32_t p1, bool p2, const MethodInfo* method)
{
{
m4711(__this, NULL);
t917 * L_0 = m4712(__this, NULL);
m4704(L_0, (t918 *)NULL, NULL);
int32_t L_1 = p0;
__this->f1 = L_1;
int32_t L_2 = p1;
__this->f2 = L_2;
bool L_3 = p2;
__this->f3 = L_3;
return;
}
}
extern "C" t918 * m4739 (t925 * __this, const MethodInfo* method)
{
{
t917 * L_0 = m4712(__this, NULL);
t918 * L_1 = m4705(L_0, 0, NULL);
return L_1;
}
}
extern "C" void m4740 (t925 * __this, t918 * p0, const MethodInfo* method)
{
{
t917 * L_0 = m4712(__this, NULL);
t918 * L_1 = p0;
m4706(L_0, 0, L_1, NULL);
return;
}
}
extern "C" int32_t m4741 (t925 * __this, const MethodInfo* method)
{
{
int32_t L_0 = (__this->f1);
return L_0;
}
}
extern TypeInfo* t955_TI_var;
extern "C" void m4742 (t925 * __this, t14 * p0, bool p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t955_TI_var = il2cpp_codegen_type_info_from_index(573);
s_Il2CppMethodIntialized = true;
}
t896 * V_0 = {0};
t896 * V_1 = {0};
{
t918 * L_0 = m4739(__this, NULL);
bool L_1 = (bool)VirtFuncInvoker0< bool >::Invoke(7 /* System.Boolean System.Text.RegularExpressions.Syntax.Expression::IsComplex() */, L_0);
if (!L_1)
{
goto IL_0049;
}
}
{
t14 * L_2 = p0;
t896 * L_3 = (t896 *)InterfaceFuncInvoker0< t896 * >::Invoke(28 /* System.Text.RegularExpressions.LinkRef System.Text.RegularExpressions.ICompiler::NewLink() */, t955_TI_var, L_2);
V_0 = L_3;
t14 * L_4 = p0;
int32_t L_5 = (__this->f1);
int32_t L_6 = (__this->f2);
bool L_7 = (__this->f3);
t896 * L_8 = V_0;
InterfaceActionInvoker4< int32_t, int32_t, bool, t896 * >::Invoke(20 /* System.Void System.Text.RegularExpressions.ICompiler::EmitRepeat(System.Int32,System.Int32,System.Boolean,System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_4, L_5, L_6, L_7, L_8);
t918 * L_9 = m4739(__this, NULL);
t14 * L_10 = p0;
bool L_11 = p1;
VirtActionInvoker2< t14 *, bool >::Invoke(4 /* System.Void System.Text.RegularExpressions.Syntax.Expression::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) */, L_9, L_10, L_11);
t14 * L_12 = p0;
t896 * L_13 = V_0;
InterfaceActionInvoker1< t896 * >::Invoke(21 /* System.Void System.Text.RegularExpressions.ICompiler::EmitUntil(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_12, L_13);
goto IL_0083;
}
IL_0049:
{
t14 * L_14 = p0;
t896 * L_15 = (t896 *)InterfaceFuncInvoker0< t896 * >::Invoke(28 /* System.Text.RegularExpressions.LinkRef System.Text.RegularExpressions.ICompiler::NewLink() */, t955_TI_var, L_14);
V_1 = L_15;
t14 * L_16 = p0;
int32_t L_17 = (__this->f1);
int32_t L_18 = (__this->f2);
bool L_19 = (__this->f3);
t896 * L_20 = V_1;
InterfaceActionInvoker4< int32_t, int32_t, bool, t896 * >::Invoke(24 /* System.Void System.Text.RegularExpressions.ICompiler::EmitFastRepeat(System.Int32,System.Int32,System.Boolean,System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_16, L_17, L_18, L_19, L_20);
t918 * L_21 = m4739(__this, NULL);
t14 * L_22 = p0;
bool L_23 = p1;
VirtActionInvoker2< t14 *, bool >::Invoke(4 /* System.Void System.Text.RegularExpressions.Syntax.Expression::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) */, L_21, L_22, L_23);
t14 * L_24 = p0;
InterfaceActionInvoker0::Invoke(2 /* System.Void System.Text.RegularExpressions.ICompiler::EmitTrue() */, t955_TI_var, L_24);
t14 * L_25 = p0;
t896 * L_26 = V_1;
InterfaceActionInvoker1< t896 * >::Invoke(29 /* System.Void System.Text.RegularExpressions.ICompiler::ResolveLink(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_25, L_26);
}
IL_0083:
{
return;
}
}
extern "C" void m4743 (t925 * __this, int32_t* p0, int32_t* p1, const MethodInfo* method)
{
{
t918 * L_0 = m4739(__this, NULL);
int32_t* L_1 = p0;
int32_t* L_2 = p1;
VirtActionInvoker2< int32_t*, int32_t* >::Invoke(5 /* System.Void System.Text.RegularExpressions.Syntax.Expression::GetWidth(System.Int32&,System.Int32&) */, L_0, L_1, L_2);
int32_t* L_3 = p0;
int32_t* L_4 = p0;
int32_t L_5 = (__this->f1);
*((int32_t*)(L_3)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_4))*(int32_t)L_5));
int32_t* L_6 = p1;
if ((((int32_t)(*((int32_t*)L_6))) == ((int32_t)((int32_t)2147483647))))
{
goto IL_0034;
}
}
{
int32_t L_7 = (__this->f2);
if ((!(((uint32_t)L_7) == ((uint32_t)((int32_t)65535)))))
{
goto IL_0040;
}
}
IL_0034:
{
int32_t* L_8 = p1;
*((int32_t*)(L_8)) = (int32_t)((int32_t)2147483647);
goto IL_004b;
}
IL_0040:
{
int32_t* L_9 = p1;
int32_t* L_10 = p1;
int32_t L_11 = (__this->f2);
*((int32_t*)(L_9)) = (int32_t)((int32_t)((int32_t)(*((int32_t*)L_10))*(int32_t)L_11));
}
IL_004b:
{
return;
}
}
extern TypeInfo* t936_TI_var;
extern TypeInfo* t320_TI_var;
extern "C" t936 * m4744 (t925 * __this, bool p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t936_TI_var = il2cpp_codegen_type_info_from_index(608);
t320_TI_var = il2cpp_codegen_type_info_from_index(24);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
t936 * V_1 = {0};
t15* V_2 = {0};
t320 * V_3 = {0};
int32_t V_4 = 0;
{
int32_t L_0 = m4709(__this, NULL);
V_0 = L_0;
int32_t L_1 = m4741(__this, NULL);
if (L_1)
{
goto IL_001a;
}
}
{
int32_t L_2 = V_0;
t936 * L_3 = (t936 *)il2cpp_codegen_object_new (t936_TI_var);
m4799(L_3, __this, L_2, NULL);
return L_3;
}
IL_001a:
{
t918 * L_4 = m4739(__this, NULL);
bool L_5 = p0;
t936 * L_6 = (t936 *)VirtFuncInvoker1< t936 *, bool >::Invoke(6 /* System.Text.RegularExpressions.Syntax.AnchorInfo System.Text.RegularExpressions.Syntax.Expression::GetAnchorInfo(System.Boolean) */, L_4, L_5);
V_1 = L_6;
t936 * L_7 = V_1;
bool L_8 = m4811(L_7, NULL);
if (!L_8)
{
goto IL_0046;
}
}
{
t936 * L_9 = V_1;
int32_t L_10 = m4802(L_9, NULL);
int32_t L_11 = V_0;
t936 * L_12 = V_1;
uint16_t L_13 = m4809(L_12, NULL);
t936 * L_14 = (t936 *)il2cpp_codegen_object_new (t936_TI_var);
m4801(L_14, __this, L_10, L_11, L_13, NULL);
return L_14;
}
IL_0046:
{
t936 * L_15 = V_1;
bool L_16 = m4810(L_15, NULL);
if (!L_16)
{
goto IL_00bc;
}
}
{
t936 * L_17 = V_1;
bool L_18 = m4806(L_17, NULL);
if (!L_18)
{
goto IL_00a2;
}
}
{
t936 * L_19 = V_1;
t15* L_20 = m4807(L_19, NULL);
V_2 = L_20;
t15* L_21 = V_2;
t320 * L_22 = (t320 *)il2cpp_codegen_object_new (t320_TI_var);
m1533(L_22, L_21, NULL);
V_3 = L_22;
V_4 = 1;
goto IL_0080;
}
IL_0072:
{
t320 * L_23 = V_3;
t15* L_24 = V_2;
m2875(L_23, L_24, NULL);
int32_t L_25 = V_4;
V_4 = ((int32_t)((int32_t)L_25+(int32_t)1));
}
IL_0080:
{
int32_t L_26 = V_4;
int32_t L_27 = m4741(__this, NULL);
if ((((int32_t)L_26) < ((int32_t)L_27)))
{
goto IL_0072;
}
}
{
int32_t L_28 = V_0;
t320 * L_29 = V_3;
t15* L_30 = m1472(L_29, NULL);
t936 * L_31 = V_1;
bool L_32 = m4808(L_31, NULL);
t936 * L_33 = (t936 *)il2cpp_codegen_object_new (t936_TI_var);
m4800(L_33, __this, 0, L_28, L_30, L_32, NULL);
return L_33;
}
IL_00a2:
{
t936 * L_34 = V_1;
int32_t L_35 = m4802(L_34, NULL);
int32_t L_36 = V_0;
t936 * L_37 = V_1;
t15* L_38 = m4807(L_37, NULL);
t936 * L_39 = V_1;
bool L_40 = m4808(L_39, NULL);
t936 * L_41 = (t936 *)il2cpp_codegen_object_new (t936_TI_var);
m4800(L_41, __this, L_35, L_36, L_38, L_40, NULL);
return L_41;
}
IL_00bc:
{
int32_t L_42 = V_0;
t936 * L_43 = (t936 *)il2cpp_codegen_object_new (t936_TI_var);
m4799(L_43, __this, L_42, NULL);
return L_43;
}
}
extern "C" void m4745 (t926 * __this, const MethodInfo* method)
{
{
m4711(__this, NULL);
t917 * L_0 = m4712(__this, NULL);
m4704(L_0, (t918 *)NULL, NULL);
t917 * L_1 = m4712(__this, NULL);
m4704(L_1, (t918 *)NULL, NULL);
return;
}
}
extern "C" t918 * m4746 (t926 * __this, const MethodInfo* method)
{
{
t917 * L_0 = m4712(__this, NULL);
t918 * L_1 = m4705(L_0, 0, NULL);
return L_1;
}
}
extern "C" void m4747 (t926 * __this, t918 * p0, const MethodInfo* method)
{
{
t917 * L_0 = m4712(__this, NULL);
t918 * L_1 = p0;
m4706(L_0, 0, L_1, NULL);
return;
}
}
extern "C" t918 * m4748 (t926 * __this, const MethodInfo* method)
{
{
t917 * L_0 = m4712(__this, NULL);
t918 * L_1 = m4705(L_0, 1, NULL);
return L_1;
}
}
extern "C" void m4749 (t926 * __this, t918 * p0, const MethodInfo* method)
{
{
t917 * L_0 = m4712(__this, NULL);
t918 * L_1 = p0;
m4706(L_0, 1, L_1, NULL);
return;
}
}
extern "C" void m4750 (t926 * __this, int32_t* p0, int32_t* p1, const MethodInfo* method)
{
{
int32_t* L_0 = p0;
int32_t* L_1 = p1;
m4713(__this, L_0, L_1, 2, NULL);
t918 * L_2 = m4746(__this, NULL);
if (!L_2)
{
goto IL_001f;
}
}
{
t918 * L_3 = m4748(__this, NULL);
if (L_3)
{
goto IL_0022;
}
}
IL_001f:
{
int32_t* L_4 = p0;
*((int32_t*)(L_4)) = (int32_t)0;
}
IL_0022:
{
return;
}
}
extern "C" void m4751 (t927 * __this, t929 * p0, const MethodInfo* method)
{
{
m4745(__this, NULL);
t929 * L_0 = p0;
__this->f3 = L_0;
return;
}
}
extern "C" void m4752 (t927 * __this, t922 * p0, const MethodInfo* method)
{
{
t922 * L_0 = p0;
__this->f2 = L_0;
return;
}
}
extern TypeInfo* t955_TI_var;
extern "C" void m4753 (t927 * __this, t14 * p0, bool p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t955_TI_var = il2cpp_codegen_type_info_from_index(573);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
t896 * V_1 = {0};
t896 * V_2 = {0};
{
t922 * L_0 = (__this->f2);
if (L_0)
{
goto IL_0019;
}
}
{
t928 * L_1 = m4755(__this, NULL);
t14 * L_2 = p0;
bool L_3 = p1;
VirtActionInvoker2< t14 *, bool >::Invoke(4 /* System.Void System.Text.RegularExpressions.Syntax.ExpressionAssertion::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) */, L_1, L_2, L_3);
return;
}
IL_0019:
{
t922 * L_4 = (__this->f2);
int32_t L_5 = m4724(L_4, NULL);
V_0 = L_5;
t14 * L_6 = p0;
t896 * L_7 = (t896 *)InterfaceFuncInvoker0< t896 * >::Invoke(28 /* System.Text.RegularExpressions.LinkRef System.Text.RegularExpressions.ICompiler::NewLink() */, t955_TI_var, L_6);
V_1 = L_7;
t918 * L_8 = m4748(__this, NULL);
if (L_8)
{
goto IL_0051;
}
}
{
t14 * L_9 = p0;
int32_t L_10 = V_0;
t896 * L_11 = V_1;
InterfaceActionInvoker2< int32_t, t896 * >::Invoke(15 /* System.Void System.Text.RegularExpressions.ICompiler::EmitIfDefined(System.Int32,System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_9, L_10, L_11);
t918 * L_12 = m4746(__this, NULL);
t14 * L_13 = p0;
bool L_14 = p1;
VirtActionInvoker2< t14 *, bool >::Invoke(4 /* System.Void System.Text.RegularExpressions.Syntax.Expression::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) */, L_12, L_13, L_14);
goto IL_0088;
}
IL_0051:
{
t14 * L_15 = p0;
t896 * L_16 = (t896 *)InterfaceFuncInvoker0< t896 * >::Invoke(28 /* System.Text.RegularExpressions.LinkRef System.Text.RegularExpressions.ICompiler::NewLink() */, t955_TI_var, L_15);
V_2 = L_16;
t14 * L_17 = p0;
int32_t L_18 = V_0;
t896 * L_19 = V_2;
InterfaceActionInvoker2< int32_t, t896 * >::Invoke(15 /* System.Void System.Text.RegularExpressions.ICompiler::EmitIfDefined(System.Int32,System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_17, L_18, L_19);
t918 * L_20 = m4746(__this, NULL);
t14 * L_21 = p0;
bool L_22 = p1;
VirtActionInvoker2< t14 *, bool >::Invoke(4 /* System.Void System.Text.RegularExpressions.Syntax.Expression::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) */, L_20, L_21, L_22);
t14 * L_23 = p0;
t896 * L_24 = V_1;
InterfaceActionInvoker1< t896 * >::Invoke(19 /* System.Void System.Text.RegularExpressions.ICompiler::EmitJump(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_23, L_24);
t14 * L_25 = p0;
t896 * L_26 = V_2;
InterfaceActionInvoker1< t896 * >::Invoke(29 /* System.Void System.Text.RegularExpressions.ICompiler::ResolveLink(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_25, L_26);
t918 * L_27 = m4748(__this, NULL);
t14 * L_28 = p0;
bool L_29 = p1;
VirtActionInvoker2< t14 *, bool >::Invoke(4 /* System.Void System.Text.RegularExpressions.Syntax.Expression::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) */, L_27, L_28, L_29);
}
IL_0088:
{
t14 * L_30 = p0;
t896 * L_31 = V_1;
InterfaceActionInvoker1< t896 * >::Invoke(29 /* System.Void System.Text.RegularExpressions.ICompiler::ResolveLink(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_30, L_31);
return;
}
}
extern "C" bool m4754 (t927 * __this, const MethodInfo* method)
{
{
t922 * L_0 = (__this->f2);
if (L_0)
{
goto IL_0017;
}
}
{
t928 * L_1 = m4755(__this, NULL);
bool L_2 = (bool)VirtFuncInvoker0< bool >::Invoke(7 /* System.Boolean System.Text.RegularExpressions.Syntax.ExpressionAssertion::IsComplex() */, L_1);
return L_2;
}
IL_0017:
{
t918 * L_3 = m4746(__this, NULL);
if (!L_3)
{
goto IL_0034;
}
}
{
t918 * L_4 = m4746(__this, NULL);
bool L_5 = (bool)VirtFuncInvoker0< bool >::Invoke(7 /* System.Boolean System.Text.RegularExpressions.Syntax.Expression::IsComplex() */, L_4);
if (!L_5)
{
goto IL_0034;
}
}
{
return 1;
}
IL_0034:
{
t918 * L_6 = m4748(__this, NULL);
if (!L_6)
{
goto IL_0051;
}
}
{
t918 * L_7 = m4748(__this, NULL);
bool L_8 = (bool)VirtFuncInvoker0< bool >::Invoke(7 /* System.Boolean System.Text.RegularExpressions.Syntax.Expression::IsComplex() */, L_7);
if (!L_8)
{
goto IL_0051;
}
}
{
return 1;
}
IL_0051:
{
int32_t L_9 = m4709(__this, NULL);
return ((((int32_t)((((int32_t)L_9) > ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
extern TypeInfo* t928_TI_var;
extern "C" t928 * m4755 (t927 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t928_TI_var = il2cpp_codegen_type_info_from_index(602);
s_Il2CppMethodIntialized = true;
}
{
t928 * L_0 = (__this->f1);
if (L_0)
{
goto IL_0049;
}
}
{
t928 * L_1 = (t928 *)il2cpp_codegen_object_new (t928_TI_var);
m4756(L_1, NULL);
__this->f1 = L_1;
t928 * L_2 = (__this->f1);
t918 * L_3 = m4746(__this, NULL);
m4747(L_2, L_3, NULL);
t928 * L_4 = (__this->f1);
t918 * L_5 = m4748(__this, NULL);
m4749(L_4, L_5, NULL);
t928 * L_6 = (__this->f1);
t929 * L_7 = (__this->f3);
m4760(L_6, L_7, NULL);
}
IL_0049:
{
t928 * L_8 = (__this->f1);
return L_8;
}
}
extern "C" void m4756 (t928 * __this, const MethodInfo* method)
{
{
m4745(__this, NULL);
t917 * L_0 = m4712(__this, NULL);
m4704(L_0, (t918 *)NULL, NULL);
return;
}
}
extern "C" void m4757 (t928 * __this, bool p0, const MethodInfo* method)
{
{
bool L_0 = p0;
__this->f1 = L_0;
return;
}
}
extern "C" void m4758 (t928 * __this, bool p0, const MethodInfo* method)
{
{
bool L_0 = p0;
__this->f2 = L_0;
return;
}
}
extern "C" t918 * m4759 (t928 * __this, const MethodInfo* method)
{
{
t917 * L_0 = m4712(__this, NULL);
t918 * L_1 = m4705(L_0, 2, NULL);
return L_1;
}
}
extern "C" void m4760 (t928 * __this, t918 * p0, const MethodInfo* method)
{
{
t917 * L_0 = m4712(__this, NULL);
t918 * L_1 = p0;
m4706(L_0, 2, L_1, NULL);
return;
}
}
extern TypeInfo* t955_TI_var;
extern "C" void m4761 (t928 * __this, t14 * p0, bool p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t955_TI_var = il2cpp_codegen_type_info_from_index(573);
s_Il2CppMethodIntialized = true;
}
t896 * V_0 = {0};
t896 * V_1 = {0};
t896 * V_2 = {0};
{
t14 * L_0 = p0;
t896 * L_1 = (t896 *)InterfaceFuncInvoker0< t896 * >::Invoke(28 /* System.Text.RegularExpressions.LinkRef System.Text.RegularExpressions.ICompiler::NewLink() */, t955_TI_var, L_0);
V_0 = L_1;
t14 * L_2 = p0;
t896 * L_3 = (t896 *)InterfaceFuncInvoker0< t896 * >::Invoke(28 /* System.Text.RegularExpressions.LinkRef System.Text.RegularExpressions.ICompiler::NewLink() */, t955_TI_var, L_2);
V_1 = L_3;
bool L_4 = (__this->f2);
if (L_4)
{
goto IL_0026;
}
}
{
t14 * L_5 = p0;
t896 * L_6 = V_0;
t896 * L_7 = V_1;
InterfaceActionInvoker2< t896 *, t896 * >::Invoke(17 /* System.Void System.Text.RegularExpressions.ICompiler::EmitTest(System.Text.RegularExpressions.LinkRef,System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_5, L_6, L_7);
goto IL_002e;
}
IL_0026:
{
t14 * L_8 = p0;
t896 * L_9 = V_1;
t896 * L_10 = V_0;
InterfaceActionInvoker2< t896 *, t896 * >::Invoke(17 /* System.Void System.Text.RegularExpressions.ICompiler::EmitTest(System.Text.RegularExpressions.LinkRef,System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_8, L_9, L_10);
}
IL_002e:
{
t918 * L_11 = m4759(__this, NULL);
t14 * L_12 = p0;
bool L_13 = (__this->f1);
VirtActionInvoker2< t14 *, bool >::Invoke(4 /* System.Void System.Text.RegularExpressions.Syntax.Expression::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) */, L_11, L_12, L_13);
t14 * L_14 = p0;
InterfaceActionInvoker0::Invoke(2 /* System.Void System.Text.RegularExpressions.ICompiler::EmitTrue() */, t955_TI_var, L_14);
t918 * L_15 = m4746(__this, NULL);
if (L_15)
{
goto IL_006a;
}
}
{
t14 * L_16 = p0;
t896 * L_17 = V_1;
InterfaceActionInvoker1< t896 * >::Invoke(29 /* System.Void System.Text.RegularExpressions.ICompiler::ResolveLink(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_16, L_17);
t14 * L_18 = p0;
InterfaceActionInvoker0::Invoke(1 /* System.Void System.Text.RegularExpressions.ICompiler::EmitFalse() */, t955_TI_var, L_18);
t14 * L_19 = p0;
t896 * L_20 = V_0;
InterfaceActionInvoker1< t896 * >::Invoke(29 /* System.Void System.Text.RegularExpressions.ICompiler::ResolveLink(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_19, L_20);
goto IL_00be;
}
IL_006a:
{
t14 * L_21 = p0;
t896 * L_22 = V_0;
InterfaceActionInvoker1< t896 * >::Invoke(29 /* System.Void System.Text.RegularExpressions.ICompiler::ResolveLink(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_21, L_22);
t918 * L_23 = m4746(__this, NULL);
t14 * L_24 = p0;
bool L_25 = p1;
VirtActionInvoker2< t14 *, bool >::Invoke(4 /* System.Void System.Text.RegularExpressions.Syntax.Expression::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) */, L_23, L_24, L_25);
t918 * L_26 = m4748(__this, NULL);
if (L_26)
{
goto IL_0095;
}
}
{
t14 * L_27 = p0;
t896 * L_28 = V_1;
InterfaceActionInvoker1< t896 * >::Invoke(29 /* System.Void System.Text.RegularExpressions.ICompiler::ResolveLink(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_27, L_28);
goto IL_00be;
}
IL_0095:
{
t14 * L_29 = p0;
t896 * L_30 = (t896 *)InterfaceFuncInvoker0< t896 * >::Invoke(28 /* System.Text.RegularExpressions.LinkRef System.Text.RegularExpressions.ICompiler::NewLink() */, t955_TI_var, L_29);
V_2 = L_30;
t14 * L_31 = p0;
t896 * L_32 = V_2;
InterfaceActionInvoker1< t896 * >::Invoke(19 /* System.Void System.Text.RegularExpressions.ICompiler::EmitJump(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_31, L_32);
t14 * L_33 = p0;
t896 * L_34 = V_1;
InterfaceActionInvoker1< t896 * >::Invoke(29 /* System.Void System.Text.RegularExpressions.ICompiler::ResolveLink(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_33, L_34);
t918 * L_35 = m4748(__this, NULL);
t14 * L_36 = p0;
bool L_37 = p1;
VirtActionInvoker2< t14 *, bool >::Invoke(4 /* System.Void System.Text.RegularExpressions.Syntax.Expression::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) */, L_35, L_36, L_37);
t14 * L_38 = p0;
t896 * L_39 = V_2;
InterfaceActionInvoker1< t896 * >::Invoke(29 /* System.Void System.Text.RegularExpressions.ICompiler::ResolveLink(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_38, L_39);
}
IL_00be:
{
return;
}
}
extern "C" bool m4762 (t928 * __this, const MethodInfo* method)
{
{
return 1;
}
}
extern "C" void m4763 (t930 * __this, const MethodInfo* method)
{
{
m4711(__this, NULL);
return;
}
}
extern "C" t917 * m4764 (t930 * __this, const MethodInfo* method)
{
{
t917 * L_0 = m4712(__this, NULL);
return L_0;
}
}
extern "C" void m4765 (t930 * __this, t918 * p0, const MethodInfo* method)
{
{
t917 * L_0 = m4764(__this, NULL);
t918 * L_1 = p0;
m4704(L_0, L_1, NULL);
return;
}
}
extern TypeInfo* t955_TI_var;
extern TypeInfo* t306_TI_var;
extern TypeInfo* t918_TI_var;
extern TypeInfo* t328_TI_var;
extern "C" void m4766 (t930 * __this, t14 * p0, bool p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t955_TI_var = il2cpp_codegen_type_info_from_index(573);
t306_TI_var = il2cpp_codegen_type_info_from_index(283);
t918_TI_var = il2cpp_codegen_type_info_from_index(607);
t328_TI_var = il2cpp_codegen_type_info_from_index(86);
s_Il2CppMethodIntialized = true;
}
t896 * V_0 = {0};
t918 * V_1 = {0};
t14 * V_2 = {0};
t896 * V_3 = {0};
t14 * V_4 = {0};
t326 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t326 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
{
t14 * L_0 = p0;
t896 * L_1 = (t896 *)InterfaceFuncInvoker0< t896 * >::Invoke(28 /* System.Text.RegularExpressions.LinkRef System.Text.RegularExpressions.ICompiler::NewLink() */, t955_TI_var, L_0);
V_0 = L_1;
t917 * L_2 = m4764(__this, NULL);
t14 * L_3 = (t14 *)VirtFuncInvoker0< t14 * >::Invoke(4 /* System.Collections.IEnumerator System.Collections.CollectionBase::GetEnumerator() */, L_2);
V_2 = L_3;
}
IL_0013:
try
{ // begin try (depth: 1)
{
goto IL_004e;
}
IL_0018:
{
t14 * L_4 = V_2;
t14 * L_5 = (t14 *)InterfaceFuncInvoker0< t14 * >::Invoke(0 /* System.Object System.Collections.IEnumerator::get_Current() */, t306_TI_var, L_4);
V_1 = ((t918 *)CastclassClass(L_5, t918_TI_var));
t14 * L_6 = p0;
t896 * L_7 = (t896 *)InterfaceFuncInvoker0< t896 * >::Invoke(28 /* System.Text.RegularExpressions.LinkRef System.Text.RegularExpressions.ICompiler::NewLink() */, t955_TI_var, L_6);
V_3 = L_7;
t14 * L_8 = p0;
t896 * L_9 = V_3;
InterfaceActionInvoker1< t896 * >::Invoke(18 /* System.Void System.Text.RegularExpressions.ICompiler::EmitBranch(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_8, L_9);
t918 * L_10 = V_1;
t14 * L_11 = p0;
bool L_12 = p1;
VirtActionInvoker2< t14 *, bool >::Invoke(4 /* System.Void System.Text.RegularExpressions.Syntax.Expression::Compile(System.Text.RegularExpressions.ICompiler,System.Boolean) */, L_10, L_11, L_12);
t14 * L_13 = p0;
t896 * L_14 = V_0;
InterfaceActionInvoker1< t896 * >::Invoke(19 /* System.Void System.Text.RegularExpressions.ICompiler::EmitJump(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_13, L_14);
t14 * L_15 = p0;
t896 * L_16 = V_3;
InterfaceActionInvoker1< t896 * >::Invoke(29 /* System.Void System.Text.RegularExpressions.ICompiler::ResolveLink(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_15, L_16);
t14 * L_17 = p0;
InterfaceActionInvoker0::Invoke(26 /* System.Void System.Text.RegularExpressions.ICompiler::EmitBranchEnd() */, t955_TI_var, L_17);
}
IL_004e:
{
t14 * L_18 = V_2;
bool L_19 = (bool)InterfaceFuncInvoker0< bool >::Invoke(1 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, t306_TI_var, L_18);
if (L_19)
{
goto IL_0018;
}
}
IL_0059:
{
IL2CPP_LEAVE(0x73, FINALLY_005e);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t326 *)e.ex;
goto FINALLY_005e;
}
FINALLY_005e:
{ // begin finally (depth: 1)
{
t14 * L_20 = V_2;
V_4 = ((t14 *)IsInst(L_20, t328_TI_var));
t14 * L_21 = V_4;
if (L_21)
{
goto IL_006b;
}
}
IL_006a:
{
IL2CPP_END_FINALLY(94)
}
IL_006b:
{
t14 * L_22 = V_4;
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t328_TI_var, L_22);
IL2CPP_END_FINALLY(94)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(94)
{
IL2CPP_JUMP_TBL(0x73, IL_0073)
IL2CPP_RETHROW_IF_UNHANDLED(t326 *)
}
IL_0073:
{
t14 * L_23 = p0;
InterfaceActionInvoker0::Invoke(1 /* System.Void System.Text.RegularExpressions.ICompiler::EmitFalse() */, t955_TI_var, L_23);
t14 * L_24 = p0;
t896 * L_25 = V_0;
InterfaceActionInvoker1< t896 * >::Invoke(29 /* System.Void System.Text.RegularExpressions.ICompiler::ResolveLink(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_24, L_25);
t14 * L_26 = p0;
InterfaceActionInvoker0::Invoke(27 /* System.Void System.Text.RegularExpressions.ICompiler::EmitAlternationEnd() */, t955_TI_var, L_26);
return;
}
}
extern "C" void m4767 (t930 * __this, int32_t* p0, int32_t* p1, const MethodInfo* method)
{
{
int32_t* L_0 = p0;
int32_t* L_1 = p1;
t917 * L_2 = m4764(__this, NULL);
int32_t L_3 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(5 /* System.Int32 System.Collections.CollectionBase::get_Count() */, L_2);
m4713(__this, L_0, L_1, L_3, NULL);
return;
}
}
extern "C" void m4768 (t929 * __this, t15* p0, bool p1, const MethodInfo* method)
{
{
m4708(__this, NULL);
t15* L_0 = p0;
__this->f0 = L_0;
bool L_1 = p1;
__this->f1 = L_1;
return;
}
}
extern TypeInfo* t955_TI_var;
extern "C" void m4769 (t14 * __this , t15* p0, t14 * p1, bool p2, bool p3, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t955_TI_var = il2cpp_codegen_type_info_from_index(573);
s_Il2CppMethodIntialized = true;
}
{
t15* L_0 = p0;
int32_t L_1 = m1820(L_0, NULL);
if (L_1)
{
goto IL_000c;
}
}
{
return;
}
IL_000c:
{
t15* L_2 = p0;
int32_t L_3 = m1820(L_2, NULL);
if ((!(((uint32_t)L_3) == ((uint32_t)1))))
{
goto IL_002d;
}
}
{
t14 * L_4 = p1;
t15* L_5 = p0;
uint16_t L_6 = m1839(L_5, 0, NULL);
bool L_7 = p2;
bool L_8 = p3;
InterfaceActionInvoker4< uint16_t, bool, bool, bool >::Invoke(3 /* System.Void System.Text.RegularExpressions.ICompiler::EmitCharacter(System.Char,System.Boolean,System.Boolean,System.Boolean) */, t955_TI_var, L_4, L_6, 0, L_7, L_8);
goto IL_0036;
}
IL_002d:
{
t14 * L_9 = p1;
t15* L_10 = p0;
bool L_11 = p2;
bool L_12 = p3;
InterfaceActionInvoker3< t15*, bool, bool >::Invoke(8 /* System.Void System.Text.RegularExpressions.ICompiler::EmitString(System.String,System.Boolean,System.Boolean) */, t955_TI_var, L_9, L_10, L_11, L_12);
}
IL_0036:
{
return;
}
}
extern "C" void m4770 (t929 * __this, t14 * p0, bool p1, const MethodInfo* method)
{
{
t15* L_0 = (__this->f0);
t14 * L_1 = p0;
bool L_2 = (__this->f1);
bool L_3 = p1;
m4769(NULL, L_0, L_1, L_2, L_3, NULL);
return;
}
}
extern "C" void m4771 (t929 * __this, int32_t* p0, int32_t* p1, const MethodInfo* method)
{
int32_t V_0 = 0;
{
int32_t* L_0 = p0;
int32_t* L_1 = p1;
t15* L_2 = (__this->f0);
int32_t L_3 = m1820(L_2, NULL);
int32_t L_4 = L_3;
V_0 = L_4;
*((int32_t*)(L_1)) = (int32_t)L_4;
int32_t L_5 = V_0;
*((int32_t*)(L_0)) = (int32_t)L_5;
return;
}
}
extern TypeInfo* t936_TI_var;
extern "C" t936 * m4772 (t929 * __this, bool p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t936_TI_var = il2cpp_codegen_type_info_from_index(608);
s_Il2CppMethodIntialized = true;
}
{
t15* L_0 = (__this->f0);
int32_t L_1 = m1820(L_0, NULL);
t15* L_2 = (__this->f0);
bool L_3 = (__this->f1);
t936 * L_4 = (t936 *)il2cpp_codegen_object_new (t936_TI_var);
m4800(L_4, __this, 0, L_1, L_2, L_3, NULL);
return L_4;
}
}
extern "C" bool m4773 (t929 * __this, const MethodInfo* method)
{
{
return 0;
}
}
extern "C" void m4774 (t931 * __this, uint16_t p0, const MethodInfo* method)
{
{
m4708(__this, NULL);
uint16_t L_0 = p0;
__this->f0 = L_0;
return;
}
}
extern TypeInfo* t955_TI_var;
extern "C" void m4775 (t931 * __this, t14 * p0, bool p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t955_TI_var = il2cpp_codegen_type_info_from_index(573);
s_Il2CppMethodIntialized = true;
}
{
t14 * L_0 = p0;
uint16_t L_1 = (__this->f0);
InterfaceActionInvoker1< uint16_t >::Invoke(9 /* System.Void System.Text.RegularExpressions.ICompiler::EmitPosition(System.Text.RegularExpressions.Position) */, t955_TI_var, L_0, L_1);
return;
}
}
extern "C" void m4776 (t931 * __this, int32_t* p0, int32_t* p1, const MethodInfo* method)
{
int32_t V_0 = 0;
{
int32_t* L_0 = p0;
int32_t* L_1 = p1;
int32_t L_2 = 0;
V_0 = L_2;
*((int32_t*)(L_1)) = (int32_t)L_2;
int32_t L_3 = V_0;
*((int32_t*)(L_0)) = (int32_t)L_3;
return;
}
}
extern "C" bool m4777 (t931 * __this, const MethodInfo* method)
{
{
return 0;
}
}
extern TypeInfo* t936_TI_var;
extern "C" t936 * m4778 (t931 * __this, bool p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t936_TI_var = il2cpp_codegen_type_info_from_index(608);
s_Il2CppMethodIntialized = true;
}
uint16_t V_0 = {0};
{
uint16_t L_0 = (__this->f0);
V_0 = L_0;
uint16_t L_1 = V_0;
if (((int32_t)((int32_t)L_1-(int32_t)2)) == 0)
{
goto IL_0020;
}
if (((int32_t)((int32_t)L_1-(int32_t)2)) == 1)
{
goto IL_0020;
}
if (((int32_t)((int32_t)L_1-(int32_t)2)) == 2)
{
goto IL_0020;
}
}
{
goto IL_002f;
}
IL_0020:
{
uint16_t L_2 = (__this->f0);
t936 * L_3 = (t936 *)il2cpp_codegen_object_new (t936_TI_var);
m4801(L_3, __this, 0, 0, L_2, NULL);
return L_3;
}
IL_002f:
{
t936 * L_4 = (t936 *)il2cpp_codegen_object_new (t936_TI_var);
m4799(L_4, __this, 0, NULL);
return L_4;
}
}
extern "C" void m4779 (t932 * __this, bool p0, const MethodInfo* method)
{
{
m4708(__this, NULL);
bool L_0 = p0;
__this->f1 = L_0;
return;
}
}
extern "C" t922 * m4780 (t932 * __this, const MethodInfo* method)
{
{
t922 * L_0 = (__this->f0);
return L_0;
}
}
extern "C" void m4781 (t932 * __this, t922 * p0, const MethodInfo* method)
{
{
t922 * L_0 = p0;
__this->f0 = L_0;
return;
}
}
extern "C" bool m4782 (t932 * __this, const MethodInfo* method)
{
{
bool L_0 = (__this->f1);
return L_0;
}
}
extern TypeInfo* t955_TI_var;
extern "C" void m4783 (t932 * __this, t14 * p0, bool p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t955_TI_var = il2cpp_codegen_type_info_from_index(573);
s_Il2CppMethodIntialized = true;
}
{
t14 * L_0 = p0;
t922 * L_1 = (__this->f0);
int32_t L_2 = m4724(L_1, NULL);
bool L_3 = (__this->f1);
bool L_4 = p1;
InterfaceActionInvoker3< int32_t, bool, bool >::Invoke(14 /* System.Void System.Text.RegularExpressions.ICompiler::EmitReference(System.Int32,System.Boolean,System.Boolean) */, t955_TI_var, L_0, L_2, L_3, L_4);
return;
}
}
extern "C" void m4784 (t932 * __this, int32_t* p0, int32_t* p1, const MethodInfo* method)
{
{
int32_t* L_0 = p0;
*((int32_t*)(L_0)) = (int32_t)0;
int32_t* L_1 = p1;
*((int32_t*)(L_1)) = (int32_t)((int32_t)2147483647);
return;
}
}
extern "C" bool m4785 (t932 * __this, const MethodInfo* method)
{
{
return 1;
}
}
extern "C" void m4786 (t933 * __this, bool p0, bool p1, const MethodInfo* method)
{
{
bool L_0 = p0;
m4779(__this, L_0, NULL);
bool L_1 = p1;
__this->f3 = L_1;
return;
}
}
extern TypeInfo* t922_TI_var;
extern TypeInfo* t180_TI_var;
extern TypeInfo* t15_TI_var;
extern "C" bool m4787 (t933 * __this, t15* p0, t672 * p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t922_TI_var = il2cpp_codegen_type_info_from_index(594);
t180_TI_var = il2cpp_codegen_type_info_from_index(175);
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
{
bool L_0 = (__this->f3);
if (!L_0)
{
goto IL_006c;
}
}
{
V_0 = 0;
V_1 = 1;
goto IL_002d;
}
IL_0014:
{
t672 * L_1 = p1;
t15* L_2 = p0;
int32_t L_3 = V_1;
t15* L_4 = m1840(L_2, 0, L_3, NULL);
t14 * L_5 = (t14 *)VirtFuncInvoker1< t14 *, t14 * >::Invoke(23 /* System.Object System.Collections.Hashtable::get_Item(System.Object) */, L_1, L_4);
if (!L_5)
{
goto IL_0029;
}
}
{
int32_t L_6 = V_1;
V_0 = L_6;
}
IL_0029:
{
int32_t L_7 = V_1;
V_1 = ((int32_t)((int32_t)L_7+(int32_t)1));
}
IL_002d:
{
int32_t L_8 = V_1;
t15* L_9 = p0;
int32_t L_10 = m1820(L_9, NULL);
if ((((int32_t)L_8) < ((int32_t)L_10)))
{
goto IL_0014;
}
}
{
int32_t L_11 = V_0;
if (!L_11)
{
goto IL_0067;
}
}
{
t672 * L_12 = p1;
t15* L_13 = p0;
int32_t L_14 = V_0;
t15* L_15 = m1840(L_13, 0, L_14, NULL);
t14 * L_16 = (t14 *)VirtFuncInvoker1< t14 *, t14 * >::Invoke(23 /* System.Object System.Collections.Hashtable::get_Item(System.Object) */, L_12, L_15);
m4781(__this, ((t922 *)CastclassClass(L_16, t922_TI_var)), NULL);
t15* L_17 = p0;
int32_t L_18 = V_0;
t15* L_19 = m1867(L_17, L_18, NULL);
__this->f2 = L_19;
return 1;
}
IL_0067:
{
goto IL_007a;
}
IL_006c:
{
t15* L_20 = p0;
int32_t L_21 = m1820(L_20, NULL);
if ((!(((uint32_t)L_21) == ((uint32_t)1))))
{
goto IL_007a;
}
}
{
return 0;
}
IL_007a:
{
V_2 = 0;
t15* L_22 = p0;
int32_t L_23 = m4658(NULL, L_22, (&V_2), NULL);
V_3 = L_23;
int32_t L_24 = V_3;
if ((!(((uint32_t)L_24) == ((uint32_t)(-1)))))
{
goto IL_008e;
}
}
{
return 0;
}
IL_008e:
{
int32_t L_25 = V_3;
if ((((int32_t)L_25) <= ((int32_t)((int32_t)255))))
{
goto IL_00ac;
}
}
{
bool L_26 = (__this->f3);
if (!L_26)
{
goto IL_00ac;
}
}
{
int32_t L_27 = V_3;
V_3 = ((int32_t)((int32_t)L_27/(int32_t)8));
int32_t L_28 = V_2;
V_2 = ((int32_t)((int32_t)L_28-(int32_t)1));
}
IL_00ac:
{
int32_t L_29 = V_3;
V_3 = ((int32_t)((int32_t)L_29&(int32_t)((int32_t)255)));
int32_t L_30 = V_3;
uint16_t L_31 = (((int32_t)((uint16_t)L_30)));
t14 * L_32 = Box(t180_TI_var, &L_31);
t15* L_33 = p0;
int32_t L_34 = V_2;
t15* L_35 = m1867(L_33, L_34, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_36 = m1469(NULL, L_32, L_35, NULL);
__this->f2 = L_36;
return 1;
}
}
extern "C" void m4788 (t933 * __this, t14 * p0, bool p1, const MethodInfo* method)
{
{
t922 * L_0 = m4780(__this, NULL);
if (!L_0)
{
goto IL_0013;
}
}
{
t14 * L_1 = p0;
bool L_2 = p1;
m4783(__this, L_1, L_2, NULL);
}
IL_0013:
{
t15* L_3 = (__this->f2);
if (!L_3)
{
goto IL_0031;
}
}
{
t15* L_4 = (__this->f2);
t14 * L_5 = p0;
bool L_6 = m4782(__this, NULL);
bool L_7 = p1;
m4769(NULL, L_4, L_5, L_6, L_7, NULL);
}
IL_0031:
{
return;
}
}
extern TypeInfo* t914_TI_var;
extern TypeInfo* t935_TI_var;
extern "C" void m4789 (t934 * __this, bool p0, bool p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t914_TI_var = il2cpp_codegen_type_info_from_index(591);
t935_TI_var = il2cpp_codegen_type_info_from_index(611);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
{
m4708(__this, NULL);
bool L_0 = p0;
__this->f1 = L_0;
bool L_1 = p1;
__this->f2 = L_1;
t914 * L_2 = (t914 *)il2cpp_codegen_object_new (t914_TI_var);
m4645(L_2, NULL);
__this->f5 = L_2;
V_0 = ((int32_t)144);
int32_t L_3 = V_0;
t935 * L_4 = (t935 *)il2cpp_codegen_object_new (t935_TI_var);
m4966(L_4, L_3, NULL);
__this->f3 = L_4;
int32_t L_5 = V_0;
t935 * L_6 = (t935 *)il2cpp_codegen_object_new (t935_TI_var);
m4966(L_6, L_5, NULL);
__this->f4 = L_6;
return;
}
}
extern "C" void m4790 (t934 * __this, uint16_t p0, bool p1, const MethodInfo* method)
{
{
m4789(__this, 0, 0, NULL);
uint16_t L_0 = p0;
bool L_1 = p1;
m4792(__this, L_0, L_1, NULL);
return;
}
}
extern TypeInfo* t934_TI_var;
extern "C" void m4791 (t14 * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t934_TI_var = il2cpp_codegen_type_info_from_index(597);
s_Il2CppMethodIntialized = true;
}
{
t910 L_0 = {0};
m4624(&L_0, ((int32_t)65), ((int32_t)90), NULL);
((t934_SFs*)t934_TI_var->static_fields)->f0 = L_0;
return;
}
}
extern "C" void m4792 (t934 * __this, uint16_t p0, bool p1, const MethodInfo* method)
{
int32_t V_0 = 0;
{
uint16_t L_0 = p0;
V_0 = L_0;
bool L_1 = p1;
if (!L_1)
{
goto IL_001a;
}
}
{
t935 * L_2 = (__this->f4);
int32_t L_3 = V_0;
m4967(L_2, L_3, 1, NULL);
goto IL_0027;
}
IL_001a:
{
t935 * L_4 = (__this->f3);
int32_t L_5 = V_0;
m4967(L_4, L_5, 1, NULL);
}
IL_0027:
{
return;
}
}
extern "C" void m4793 (t934 * __this, uint16_t p0, const MethodInfo* method)
{
{
uint16_t L_0 = p0;
uint16_t L_1 = p0;
m4794(__this, L_0, L_1, NULL);
return;
}
}
extern TypeInfo* t934_TI_var;
extern "C" void m4794 (t934 * __this, uint16_t p0, uint16_t p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t934_TI_var = il2cpp_codegen_type_info_from_index(597);
s_Il2CppMethodIntialized = true;
}
t910 V_0 = {0};
t910 V_1 = {0};
{
uint16_t L_0 = p0;
uint16_t L_1 = p1;
m4624((&V_0), L_0, L_1, NULL);
bool L_2 = (__this->f2);
if (!L_2)
{
goto IL_00e2;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t934_TI_var);
t910 L_3 = V_0;
bool L_4 = m4634((&((t934_SFs*)t934_TI_var->static_fields)->f0), L_3, NULL);
if (!L_4)
{
goto IL_00b2;
}
}
{
int32_t L_5 = ((&V_0)->f0);
IL2CPP_RUNTIME_CLASS_INIT(t934_TI_var);
int32_t L_6 = ((&((t934_SFs*)t934_TI_var->static_fields)->f0)->f0);
if ((((int32_t)L_5) >= ((int32_t)L_6)))
{
goto IL_0070;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t934_TI_var);
int32_t L_7 = ((&((t934_SFs*)t934_TI_var->static_fields)->f0)->f0);
int32_t L_8 = ((&V_0)->f1);
m4624((&V_1), ((int32_t)((int32_t)L_7+(int32_t)((int32_t)32))), ((int32_t)((int32_t)L_8+(int32_t)((int32_t)32))), NULL);
int32_t L_9 = ((&((t934_SFs*)t934_TI_var->static_fields)->f0)->f0);
(&V_0)->f1 = ((int32_t)((int32_t)L_9-(int32_t)1));
goto IL_00a1;
}
IL_0070:
{
int32_t L_10 = ((&V_0)->f0);
IL2CPP_RUNTIME_CLASS_INIT(t934_TI_var);
int32_t L_11 = ((&((t934_SFs*)t934_TI_var->static_fields)->f0)->f1);
m4624((&V_1), ((int32_t)((int32_t)L_10+(int32_t)((int32_t)32))), ((int32_t)((int32_t)L_11+(int32_t)((int32_t)32))), NULL);
int32_t L_12 = ((&((t934_SFs*)t934_TI_var->static_fields)->f0)->f1);
(&V_0)->f0 = ((int32_t)((int32_t)L_12+(int32_t)1));
}
IL_00a1:
{
t914 * L_13 = (__this->f5);
t910 L_14 = V_1;
m4647(L_13, L_14, NULL);
goto IL_00e2;
}
IL_00b2:
{
IL2CPP_RUNTIME_CLASS_INIT(t934_TI_var);
t910 L_15 = V_0;
bool L_16 = m4632((&((t934_SFs*)t934_TI_var->static_fields)->f0), L_15, NULL);
if (!L_16)
{
goto IL_00e2;
}
}
{
t910 * L_17 = (&V_0);
int32_t L_18 = (L_17->f1);
L_17->f1 = ((int32_t)((int32_t)L_18+(int32_t)((int32_t)32)));
t910 * L_19 = (&V_0);
int32_t L_20 = (L_19->f0);
L_19->f0 = ((int32_t)((int32_t)L_20+(int32_t)((int32_t)32)));
}
IL_00e2:
{
t914 * L_21 = (__this->f5);
t910 L_22 = V_0;
m4647(L_21, L_22, NULL);
return;
}
}
extern TypeInfo* t913_TI_var;
extern TypeInfo* t955_TI_var;
extern TypeInfo* t306_TI_var;
extern TypeInfo* t910_TI_var;
extern TypeInfo* t935_TI_var;
extern TypeInfo* t328_TI_var;
extern const MethodInfo* m4798_MI_var;
extern "C" void m4795 (t934 * __this, t14 * p0, bool p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t913_TI_var = il2cpp_codegen_type_info_from_index(612);
t955_TI_var = il2cpp_codegen_type_info_from_index(573);
t306_TI_var = il2cpp_codegen_type_info_from_index(283);
t910_TI_var = il2cpp_codegen_type_info_from_index(589);
t935_TI_var = il2cpp_codegen_type_info_from_index(611);
t328_TI_var = il2cpp_codegen_type_info_from_index(86);
m4798_MI_var = il2cpp_codegen_method_info_from_index(327);
s_Il2CppMethodIntialized = true;
}
t914 * V_0 = {0};
int32_t V_1 = 0;
int32_t V_2 = 0;
t896 * V_3 = {0};
t910 V_4 = {0};
t14 * V_5 = {0};
t935 * V_6 = {0};
t910 V_7 = {0};
t14 * V_8 = {0};
int32_t V_9 = 0;
int32_t V_10 = 0;
t14 * V_11 = {0};
t14 * V_12 = {0};
t326 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t326 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
{
t914 * L_0 = (__this->f5);
t196 L_1 = { (void*)m4798_MI_var };
t913 * L_2 = (t913 *)il2cpp_codegen_object_new (t913_TI_var);
m4641(L_2, NULL, L_1, NULL);
t914 * L_3 = m4649(L_0, L_2, NULL);
V_0 = L_3;
t914 * L_4 = V_0;
int32_t L_5 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(4 /* System.Int32 System.Text.RegularExpressions.IntervalCollection::get_Count() */, L_4);
V_1 = L_5;
V_2 = 0;
goto IL_0050;
}
IL_0026:
{
t935 * L_6 = (__this->f3);
int32_t L_7 = V_2;
bool L_8 = m4959(L_6, L_7, NULL);
if (L_8)
{
goto IL_0048;
}
}
{
t935 * L_9 = (__this->f4);
int32_t L_10 = V_2;
bool L_11 = m4959(L_9, L_10, NULL);
if (!L_11)
{
goto IL_004c;
}
}
IL_0048:
{
int32_t L_12 = V_1;
V_1 = ((int32_t)((int32_t)L_12+(int32_t)1));
}
IL_004c:
{
int32_t L_13 = V_2;
V_2 = ((int32_t)((int32_t)L_13+(int32_t)1));
}
IL_0050:
{
int32_t L_14 = V_2;
t935 * L_15 = (__this->f3);
int32_t L_16 = m4958(L_15, NULL);
if ((((int32_t)L_14) < ((int32_t)L_16)))
{
goto IL_0026;
}
}
{
int32_t L_17 = V_1;
if (L_17)
{
goto IL_0068;
}
}
{
return;
}
IL_0068:
{
t14 * L_18 = p0;
t896 * L_19 = (t896 *)InterfaceFuncInvoker0< t896 * >::Invoke(28 /* System.Text.RegularExpressions.LinkRef System.Text.RegularExpressions.ICompiler::NewLink() */, t955_TI_var, L_18);
V_3 = L_19;
int32_t L_20 = V_1;
if ((((int32_t)L_20) <= ((int32_t)1)))
{
goto IL_007d;
}
}
{
t14 * L_21 = p0;
t896 * L_22 = V_3;
InterfaceActionInvoker1< t896 * >::Invoke(22 /* System.Void System.Text.RegularExpressions.ICompiler::EmitIn(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_21, L_22);
}
IL_007d:
{
t914 * L_23 = V_0;
t14 * L_24 = (t14 *)VirtFuncInvoker0< t14 * >::Invoke(8 /* System.Collections.IEnumerator System.Text.RegularExpressions.IntervalCollection::GetEnumerator() */, L_23);
V_5 = L_24;
}
IL_0085:
try
{ // begin try (depth: 1)
{
goto IL_01ac;
}
IL_008a:
{
t14 * L_25 = V_5;
t14 * L_26 = (t14 *)InterfaceFuncInvoker0< t14 * >::Invoke(0 /* System.Object System.Collections.IEnumerator::get_Current() */, t306_TI_var, L_25);
V_4 = ((*(t910 *)((t910 *)UnBox (L_26, t910_TI_var))));
bool L_27 = m4626((&V_4), NULL);
if (!L_27)
{
goto IL_015d;
}
}
IL_00a4:
{
int32_t L_28 = m4629((&V_4), NULL);
t935 * L_29 = (t935 *)il2cpp_codegen_object_new (t935_TI_var);
m4966(L_29, L_28, NULL);
V_6 = L_29;
t914 * L_30 = (__this->f5);
t14 * L_31 = (t14 *)VirtFuncInvoker0< t14 * >::Invoke(8 /* System.Collections.IEnumerator System.Text.RegularExpressions.IntervalCollection::GetEnumerator() */, L_30);
V_8 = L_31;
}
IL_00bf:
try
{ // begin try (depth: 2)
{
goto IL_0114;
}
IL_00c4:
{
t14 * L_32 = V_8;
t14 * L_33 = (t14 *)InterfaceFuncInvoker0< t14 * >::Invoke(0 /* System.Object System.Collections.IEnumerator::get_Current() */, t306_TI_var, L_32);
V_7 = ((*(t910 *)((t910 *)UnBox (L_33, t910_TI_var))));
t910 L_34 = V_7;
bool L_35 = m4632((&V_4), L_34, NULL);
if (!L_35)
{
goto IL_0114;
}
}
IL_00e0:
{
int32_t L_36 = ((&V_7)->f0);
V_9 = L_36;
goto IL_0106;
}
IL_00ee:
{
t935 * L_37 = V_6;
int32_t L_38 = V_9;
int32_t L_39 = ((&V_4)->f0);
m4967(L_37, ((int32_t)((int32_t)L_38-(int32_t)L_39)), 1, NULL);
int32_t L_40 = V_9;
V_9 = ((int32_t)((int32_t)L_40+(int32_t)1));
}
IL_0106:
{
int32_t L_41 = V_9;
int32_t L_42 = ((&V_7)->f1);
if ((((int32_t)L_41) <= ((int32_t)L_42)))
{
goto IL_00ee;
}
}
IL_0114:
{
t14 * L_43 = V_8;
bool L_44 = (bool)InterfaceFuncInvoker0< bool >::Invoke(1 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, t306_TI_var, L_43);
if (L_44)
{
goto IL_00c4;
}
}
IL_0120:
{
IL2CPP_LEAVE(0x13B, FINALLY_0125);
}
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t326 *)e.ex;
goto FINALLY_0125;
}
FINALLY_0125:
{ // begin finally (depth: 2)
{
t14 * L_45 = V_8;
V_11 = ((t14 *)IsInst(L_45, t328_TI_var));
t14 * L_46 = V_11;
if (L_46)
{
goto IL_0133;
}
}
IL_0132:
{
IL2CPP_END_FINALLY(293)
}
IL_0133:
{
t14 * L_47 = V_11;
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t328_TI_var, L_47);
IL2CPP_END_FINALLY(293)
}
} // end finally (depth: 2)
IL2CPP_CLEANUP(293)
{
IL2CPP_JUMP_TBL(0x13B, IL_013b)
IL2CPP_RETHROW_IF_UNHANDLED(t326 *)
}
IL_013b:
{
t14 * L_48 = p0;
int32_t L_49 = ((&V_4)->f0);
t935 * L_50 = V_6;
bool L_51 = (__this->f1);
bool L_52 = (__this->f2);
bool L_53 = p1;
InterfaceActionInvoker5< uint16_t, t935 *, bool, bool, bool >::Invoke(7 /* System.Void System.Text.RegularExpressions.ICompiler::EmitSet(System.Char,System.Collections.BitArray,System.Boolean,System.Boolean,System.Boolean) */, t955_TI_var, L_48, (((int32_t)((uint16_t)L_49))), L_50, L_51, L_52, L_53);
goto IL_01ac;
}
IL_015d:
{
bool L_54 = m4627((&V_4), NULL);
if (!L_54)
{
goto IL_0189;
}
}
IL_0169:
{
t14 * L_55 = p0;
int32_t L_56 = ((&V_4)->f0);
bool L_57 = (__this->f1);
bool L_58 = (__this->f2);
bool L_59 = p1;
InterfaceActionInvoker4< uint16_t, bool, bool, bool >::Invoke(3 /* System.Void System.Text.RegularExpressions.ICompiler::EmitCharacter(System.Char,System.Boolean,System.Boolean,System.Boolean) */, t955_TI_var, L_55, (((int32_t)((uint16_t)L_56))), L_57, L_58, L_59);
goto IL_01ac;
}
IL_0189:
{
t14 * L_60 = p0;
int32_t L_61 = ((&V_4)->f0);
int32_t L_62 = ((&V_4)->f1);
bool L_63 = (__this->f1);
bool L_64 = (__this->f2);
bool L_65 = p1;
InterfaceActionInvoker5< uint16_t, uint16_t, bool, bool, bool >::Invoke(6 /* System.Void System.Text.RegularExpressions.ICompiler::EmitRange(System.Char,System.Char,System.Boolean,System.Boolean,System.Boolean) */, t955_TI_var, L_60, (((int32_t)((uint16_t)L_61))), (((int32_t)((uint16_t)L_62))), L_63, L_64, L_65);
}
IL_01ac:
{
t14 * L_66 = V_5;
bool L_67 = (bool)InterfaceFuncInvoker0< bool >::Invoke(1 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, t306_TI_var, L_66);
if (L_67)
{
goto IL_008a;
}
}
IL_01b8:
{
IL2CPP_LEAVE(0x1D3, FINALLY_01bd);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t326 *)e.ex;
goto FINALLY_01bd;
}
FINALLY_01bd:
{ // begin finally (depth: 1)
{
t14 * L_68 = V_5;
V_12 = ((t14 *)IsInst(L_68, t328_TI_var));
t14 * L_69 = V_12;
if (L_69)
{
goto IL_01cb;
}
}
IL_01ca:
{
IL2CPP_END_FINALLY(445)
}
IL_01cb:
{
t14 * L_70 = V_12;
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t328_TI_var, L_70);
IL2CPP_END_FINALLY(445)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(445)
{
IL2CPP_JUMP_TBL(0x1D3, IL_01d3)
IL2CPP_RETHROW_IF_UNHANDLED(t326 *)
}
IL_01d3:
{
V_10 = 0;
goto IL_024f;
}
IL_01db:
{
t935 * L_71 = (__this->f3);
int32_t L_72 = V_10;
bool L_73 = m4959(L_71, L_72, NULL);
if (!L_73)
{
goto IL_0227;
}
}
{
t935 * L_74 = (__this->f4);
int32_t L_75 = V_10;
bool L_76 = m4959(L_74, L_75, NULL);
if (!L_76)
{
goto IL_0212;
}
}
{
t14 * L_77 = p0;
bool L_78 = (__this->f1);
bool L_79 = p1;
InterfaceActionInvoker3< uint16_t, bool, bool >::Invoke(4 /* System.Void System.Text.RegularExpressions.ICompiler::EmitCategory(System.Text.RegularExpressions.Category,System.Boolean,System.Boolean) */, t955_TI_var, L_77, 2, L_78, L_79);
goto IL_0222;
}
IL_0212:
{
t14 * L_80 = p0;
int32_t L_81 = V_10;
bool L_82 = (__this->f1);
bool L_83 = p1;
InterfaceActionInvoker3< uint16_t, bool, bool >::Invoke(4 /* System.Void System.Text.RegularExpressions.ICompiler::EmitCategory(System.Text.RegularExpressions.Category,System.Boolean,System.Boolean) */, t955_TI_var, L_80, (((int32_t)((uint16_t)L_81))), L_82, L_83);
}
IL_0222:
{
goto IL_0249;
}
IL_0227:
{
t935 * L_84 = (__this->f4);
int32_t L_85 = V_10;
bool L_86 = m4959(L_84, L_85, NULL);
if (!L_86)
{
goto IL_0249;
}
}
{
t14 * L_87 = p0;
int32_t L_88 = V_10;
bool L_89 = (__this->f1);
bool L_90 = p1;
InterfaceActionInvoker3< uint16_t, bool, bool >::Invoke(5 /* System.Void System.Text.RegularExpressions.ICompiler::EmitNotCategory(System.Text.RegularExpressions.Category,System.Boolean,System.Boolean) */, t955_TI_var, L_87, (((int32_t)((uint16_t)L_88))), L_89, L_90);
}
IL_0249:
{
int32_t L_91 = V_10;
V_10 = ((int32_t)((int32_t)L_91+(int32_t)1));
}
IL_024f:
{
int32_t L_92 = V_10;
t935 * L_93 = (__this->f3);
int32_t L_94 = m4958(L_93, NULL);
if ((((int32_t)L_92) < ((int32_t)L_94)))
{
goto IL_01db;
}
}
{
int32_t L_95 = V_1;
if ((((int32_t)L_95) <= ((int32_t)1)))
{
goto IL_028b;
}
}
{
bool L_96 = (__this->f1);
if (!L_96)
{
goto IL_027e;
}
}
{
t14 * L_97 = p0;
InterfaceActionInvoker0::Invoke(2 /* System.Void System.Text.RegularExpressions.ICompiler::EmitTrue() */, t955_TI_var, L_97);
goto IL_0284;
}
IL_027e:
{
t14 * L_98 = p0;
InterfaceActionInvoker0::Invoke(1 /* System.Void System.Text.RegularExpressions.ICompiler::EmitFalse() */, t955_TI_var, L_98);
}
IL_0284:
{
t14 * L_99 = p0;
t896 * L_100 = V_3;
InterfaceActionInvoker1< t896 * >::Invoke(29 /* System.Void System.Text.RegularExpressions.ICompiler::ResolveLink(System.Text.RegularExpressions.LinkRef) */, t955_TI_var, L_99, L_100);
}
IL_028b:
{
return;
}
}
extern "C" void m4796 (t934 * __this, int32_t* p0, int32_t* p1, const MethodInfo* method)
{
int32_t V_0 = 0;
{
int32_t* L_0 = p0;
int32_t* L_1 = p1;
int32_t L_2 = 1;
V_0 = L_2;
*((int32_t*)(L_1)) = (int32_t)L_2;
int32_t L_3 = V_0;
*((int32_t*)(L_0)) = (int32_t)L_3;
return;
}
}
extern "C" bool m4797 (t934 * __this, const MethodInfo* method)
{
{
return 0;
}
}
extern "C" double m4798 (t14 * __this , t910 p0, const MethodInfo* method)
{
{
bool L_0 = m4626((&p0), NULL);
if (!L_0)
{
goto IL_001c;
}
}
{
int32_t L_1 = m4629((&p0), NULL);
return (((double)((double)((int32_t)((int32_t)3+(int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_1+(int32_t)((int32_t)15)))>>(int32_t)4)))))));
}
IL_001c:
{
bool L_2 = m4627((&p0), NULL);
if (!L_2)
{
goto IL_0032;
}
}
{
return (2.0);
}
IL_0032:
{
return (3.0);
}
}
extern "C" void m4799 (t936 * __this, t918 * p0, int32_t p1, const MethodInfo* method)
{
{
m1474(__this, NULL);
t918 * L_0 = p0;
__this->f0 = L_0;
__this->f2 = 0;
int32_t L_1 = p1;
__this->f4 = L_1;
__this->f3 = (t15*)NULL;
__this->f5 = 0;
__this->f1 = 0;
return;
}
}
extern "C" void m4800 (t936 * __this, t918 * p0, int32_t p1, int32_t p2, t15* p3, bool p4, const MethodInfo* method)
{
t936 * G_B2_0 = {0};
t936 * G_B1_0 = {0};
t15* G_B3_0 = {0};
t936 * G_B3_1 = {0};
{
m1474(__this, NULL);
t918 * L_0 = p0;
__this->f0 = L_0;
int32_t L_1 = p1;
__this->f2 = L_1;
int32_t L_2 = p2;
__this->f4 = L_2;
bool L_3 = p4;
G_B1_0 = __this;
if (!L_3)
{
G_B2_0 = __this;
goto IL_002f;
}
}
{
t15* L_4 = p3;
t15* L_5 = m4960(L_4, NULL);
G_B3_0 = L_5;
G_B3_1 = G_B1_0;
goto IL_0031;
}
IL_002f:
{
t15* L_6 = p3;
G_B3_0 = L_6;
G_B3_1 = G_B2_0;
}
IL_0031:
{
G_B3_1->f3 = G_B3_0;
bool L_7 = p4;
__this->f5 = L_7;
__this->f1 = 0;
return;
}
}
extern "C" void m4801 (t936 * __this, t918 * p0, int32_t p1, int32_t p2, uint16_t p3, const MethodInfo* method)
{
{
m1474(__this, NULL);
t918 * L_0 = p0;
__this->f0 = L_0;
int32_t L_1 = p1;
__this->f2 = L_1;
int32_t L_2 = p2;
__this->f4 = L_2;
uint16_t L_3 = p3;
__this->f1 = L_3;
__this->f3 = (t15*)NULL;
__this->f5 = 0;
return;
}
}
extern "C" int32_t m4802 (t936 * __this, const MethodInfo* method)
{
{
int32_t L_0 = (__this->f2);
return L_0;
}
}
extern "C" int32_t m4803 (t936 * __this, const MethodInfo* method)
{
{
int32_t L_0 = (__this->f4);
return L_0;
}
}
extern "C" int32_t m4804 (t936 * __this, const MethodInfo* method)
{
int32_t G_B3_0 = 0;
{
t15* L_0 = (__this->f3);
if (!L_0)
{
goto IL_001b;
}
}
{
t15* L_1 = (__this->f3);
int32_t L_2 = m1820(L_1, NULL);
G_B3_0 = L_2;
goto IL_001c;
}
IL_001b:
{
G_B3_0 = 0;
}
IL_001c:
{
return G_B3_0;
}
}
extern "C" bool m4805 (t936 * __this, const MethodInfo* method)
{
{
int32_t L_0 = (__this->f4);
return ((((int32_t)L_0) < ((int32_t)0))? 1 : 0);
}
}
extern "C" bool m4806 (t936 * __this, const MethodInfo* method)
{
{
int32_t L_0 = m4804(__this, NULL);
int32_t L_1 = m4803(__this, NULL);
return ((((int32_t)L_0) == ((int32_t)L_1))? 1 : 0);
}
}
extern "C" t15* m4807 (t936 * __this, const MethodInfo* method)
{
{
t15* L_0 = (__this->f3);
return L_0;
}
}
extern "C" bool m4808 (t936 * __this, const MethodInfo* method)
{
{
bool L_0 = (__this->f5);
return L_0;
}
}
extern "C" uint16_t m4809 (t936 * __this, const MethodInfo* method)
{
{
uint16_t L_0 = (__this->f1);
return L_0;
}
}
extern "C" bool m4810 (t936 * __this, const MethodInfo* method)
{
{
t15* L_0 = (__this->f3);
return ((((int32_t)((((t14*)(t15*)L_0) == ((t14*)(t14 *)NULL))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
extern "C" bool m4811 (t936 * __this, const MethodInfo* method)
{
{
uint16_t L_0 = (__this->f1);
return ((((int32_t)((((int32_t)L_0) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
extern "C" t910 m4812 (t936 * __this, int32_t p0, const MethodInfo* method)
{
{
bool L_0 = m4810(__this, NULL);
if (L_0)
{
goto IL_0011;
}
}
{
t910 L_1 = m4625(NULL, NULL);
return L_1;
}
IL_0011:
{
int32_t L_2 = p0;
int32_t L_3 = m4802(__this, NULL);
int32_t L_4 = p0;
int32_t L_5 = m4802(__this, NULL);
int32_t L_6 = m4804(__this, NULL);
t910 L_7 = {0};
m4624(&L_7, ((int32_t)((int32_t)L_2+(int32_t)L_3)), ((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_4+(int32_t)L_5))+(int32_t)L_6))-(int32_t)1)), NULL);
return L_7;
}
}
extern TypeInfo* t938_TI_var;
extern "C" void m4813 (t937 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t938_TI_var = il2cpp_codegen_type_info_from_index(613);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t938_TI_var);
m4867(__this, NULL);
return;
}
}
extern TypeInfo* t938_TI_var;
extern "C" void m4814 (t937 * __this, t15* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t938_TI_var = il2cpp_codegen_type_info_from_index(613);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t938_TI_var);
m4867(__this, NULL);
t15* L_0 = p0;
((t938 *)__this)->f2 = L_0;
return;
}
}
extern "C" void m4815 (t940 * __this, t15* p0, t15* p1, int32_t p2, const MethodInfo* method)
{
{
t15* L_0 = p0;
__this->f0 = L_0;
t15* L_1 = p1;
__this->f1 = L_1;
int32_t L_2 = p2;
__this->f2 = L_2;
return;
}
}
// Conversion methods for marshalling of: System.Uri/UriScheme
extern "C" void t940_marshal(const t940& unmarshaled, t940_marshaled& marshaled)
{
marshaled.f0 = il2cpp_codegen_marshal_string(unmarshaled.f0);
marshaled.f1 = il2cpp_codegen_marshal_string(unmarshaled.f1);
marshaled.f2 = unmarshaled.f2;
}
extern "C" void t940_marshal_back(const t940_marshaled& marshaled, t940& unmarshaled)
{
unmarshaled.f0 = il2cpp_codegen_marshal_string_result(marshaled.f0);
unmarshaled.f1 = il2cpp_codegen_marshal_string_result(marshaled.f1);
unmarshaled.f2 = marshaled.f2;
}
// Conversion method for clean up from marshalling of: System.Uri/UriScheme
extern "C" void t940_marshal_cleanup(t940_marshaled& marshaled)
{
il2cpp_codegen_marshal_free(marshaled.f0);
marshaled.f0 = NULL;
il2cpp_codegen_marshal_free(marshaled.f1);
marshaled.f1 = NULL;
}
extern "C" void m4816 (t781 * __this, t15* p0, const MethodInfo* method)
{
{
t15* L_0 = p0;
m4818(__this, L_0, 0, NULL);
return;
}
}
extern Il2CppCodeGenString* _stringLiteral846;
extern "C" void m4817 (t781 * __this, t737 * p0, t736 p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
_stringLiteral846 = il2cpp_codegen_string_literal_from_index(846);
s_Il2CppMethodIntialized = true;
}
{
t737 * L_0 = p0;
t15* L_1 = m4903(L_0, _stringLiteral846, NULL);
m4818(__this, L_1, 1, NULL);
return;
}
}
extern TypeInfo* t15_TI_var;
extern TypeInfo* t942_TI_var;
extern Il2CppCodeGenString* _stringLiteral847;
extern "C" void m4818 (t781 * __this, t15* p0, bool p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
t942_TI_var = il2cpp_codegen_type_info_from_index(614);
_stringLiteral847 = il2cpp_codegen_string_literal_from_index(847);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_0 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
__this->f2 = L_0;
t15* L_1 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
__this->f3 = L_1;
__this->f4 = (-1);
t15* L_2 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
__this->f5 = L_2;
t15* L_3 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
__this->f6 = L_3;
t15* L_4 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
__this->f7 = L_4;
t15* L_5 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
__this->f8 = L_5;
__this->f11 = 1;
m1474(__this, NULL);
bool L_6 = p1;
__this->f12 = L_6;
t15* L_7 = p0;
__this->f1 = L_7;
m4845(__this, 1, NULL);
bool L_8 = (__this->f11);
if (L_8)
{
goto IL_0087;
}
}
{
t15* L_9 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_10 = m1701(NULL, _stringLiteral847, L_9, NULL);
t942 * L_11 = (t942 *)il2cpp_codegen_object_new (t942_TI_var);
m4864(L_11, L_10, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_11);
}
IL_0087:
{
return;
}
}
extern TypeInfo* t781_TI_var;
extern TypeInfo* t941_TI_var;
extern Il2CppCodeGenString* _stringLiteral848;
extern Il2CppCodeGenString* _stringLiteral639;
extern Il2CppCodeGenString* _stringLiteral696;
extern Il2CppCodeGenString* _stringLiteral698;
extern Il2CppCodeGenString* _stringLiteral849;
extern Il2CppCodeGenString* _stringLiteral637;
extern Il2CppCodeGenString* _stringLiteral636;
extern Il2CppCodeGenString* _stringLiteral850;
extern Il2CppCodeGenString* _stringLiteral851;
extern Il2CppCodeGenString* _stringLiteral852;
extern Il2CppCodeGenString* _stringLiteral853;
extern Il2CppCodeGenString* _stringLiteral854;
extern Il2CppCodeGenString* _stringLiteral190;
extern "C" void m4819 (t14 * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
t941_TI_var = il2cpp_codegen_type_info_from_index(615);
_stringLiteral848 = il2cpp_codegen_string_literal_from_index(848);
_stringLiteral639 = il2cpp_codegen_string_literal_from_index(639);
_stringLiteral696 = il2cpp_codegen_string_literal_from_index(696);
_stringLiteral698 = il2cpp_codegen_string_literal_from_index(698);
_stringLiteral849 = il2cpp_codegen_string_literal_from_index(849);
_stringLiteral637 = il2cpp_codegen_string_literal_from_index(637);
_stringLiteral636 = il2cpp_codegen_string_literal_from_index(636);
_stringLiteral850 = il2cpp_codegen_string_literal_from_index(850);
_stringLiteral851 = il2cpp_codegen_string_literal_from_index(851);
_stringLiteral852 = il2cpp_codegen_string_literal_from_index(852);
_stringLiteral853 = il2cpp_codegen_string_literal_from_index(853);
_stringLiteral854 = il2cpp_codegen_string_literal_from_index(854);
_stringLiteral190 = il2cpp_codegen_string_literal_from_index(190);
s_Il2CppMethodIntialized = true;
}
{
((t781_SFs*)t781_TI_var->static_fields)->f16 = _stringLiteral848;
((t781_SFs*)t781_TI_var->static_fields)->f17 = _stringLiteral639;
((t781_SFs*)t781_TI_var->static_fields)->f18 = _stringLiteral696;
((t781_SFs*)t781_TI_var->static_fields)->f19 = _stringLiteral698;
((t781_SFs*)t781_TI_var->static_fields)->f20 = _stringLiteral849;
((t781_SFs*)t781_TI_var->static_fields)->f21 = _stringLiteral637;
((t781_SFs*)t781_TI_var->static_fields)->f22 = _stringLiteral636;
((t781_SFs*)t781_TI_var->static_fields)->f23 = _stringLiteral850;
((t781_SFs*)t781_TI_var->static_fields)->f24 = _stringLiteral851;
((t781_SFs*)t781_TI_var->static_fields)->f25 = _stringLiteral852;
((t781_SFs*)t781_TI_var->static_fields)->f26 = _stringLiteral853;
((t781_SFs*)t781_TI_var->static_fields)->f27 = _stringLiteral854;
t941* L_0 = ((t941*)SZArrayNew(t941_TI_var, 8));
t15* L_1 = ((t781_SFs*)t781_TI_var->static_fields)->f21;
t15* L_2 = ((t781_SFs*)t781_TI_var->static_fields)->f17;
t940 L_3 = {0};
m4815(&L_3, L_1, L_2, ((int32_t)80), NULL);
(*(t940 *)((t940 *)(t940 *)SZArrayLdElema(L_0, 0, sizeof(t940 )))) = L_3;
t941* L_4 = L_0;
t15* L_5 = ((t781_SFs*)t781_TI_var->static_fields)->f22;
t15* L_6 = ((t781_SFs*)t781_TI_var->static_fields)->f17;
t940 L_7 = {0};
m4815(&L_7, L_5, L_6, ((int32_t)443), NULL);
(*(t940 *)((t940 *)(t940 *)SZArrayLdElema(L_4, 1, sizeof(t940 )))) = L_7;
t941* L_8 = L_4;
t15* L_9 = ((t781_SFs*)t781_TI_var->static_fields)->f19;
t15* L_10 = ((t781_SFs*)t781_TI_var->static_fields)->f17;
t940 L_11 = {0};
m4815(&L_11, L_9, L_10, ((int32_t)21), NULL);
(*(t940 *)((t940 *)(t940 *)SZArrayLdElema(L_8, 2, sizeof(t940 )))) = L_11;
t941* L_12 = L_8;
t15* L_13 = ((t781_SFs*)t781_TI_var->static_fields)->f18;
t15* L_14 = ((t781_SFs*)t781_TI_var->static_fields)->f17;
t940 L_15 = {0};
m4815(&L_15, L_13, L_14, (-1), NULL);
(*(t940 *)((t940 *)(t940 *)SZArrayLdElema(L_12, 3, sizeof(t940 )))) = L_15;
t941* L_16 = L_12;
t15* L_17 = ((t781_SFs*)t781_TI_var->static_fields)->f23;
t940 L_18 = {0};
m4815(&L_18, L_17, _stringLiteral190, ((int32_t)25), NULL);
(*(t940 *)((t940 *)(t940 *)SZArrayLdElema(L_16, 4, sizeof(t940 )))) = L_18;
t941* L_19 = L_16;
t15* L_20 = ((t781_SFs*)t781_TI_var->static_fields)->f24;
t940 L_21 = {0};
m4815(&L_21, L_20, _stringLiteral190, ((int32_t)119), NULL);
(*(t940 *)((t940 *)(t940 *)SZArrayLdElema(L_19, 5, sizeof(t940 )))) = L_21;
t941* L_22 = L_19;
t15* L_23 = ((t781_SFs*)t781_TI_var->static_fields)->f25;
t15* L_24 = ((t781_SFs*)t781_TI_var->static_fields)->f17;
t940 L_25 = {0};
m4815(&L_25, L_23, L_24, ((int32_t)119), NULL);
(*(t940 *)((t940 *)(t940 *)SZArrayLdElema(L_22, 6, sizeof(t940 )))) = L_25;
t941* L_26 = L_22;
t15* L_27 = ((t781_SFs*)t781_TI_var->static_fields)->f20;
t15* L_28 = ((t781_SFs*)t781_TI_var->static_fields)->f17;
t940 L_29 = {0};
m4815(&L_29, L_27, L_28, ((int32_t)70), NULL);
(*(t940 *)((t940 *)(t940 *)SZArrayLdElema(L_26, 7, sizeof(t940 )))) = L_29;
((t781_SFs*)t781_TI_var->static_fields)->f28 = L_26;
return;
}
}
extern Il2CppCodeGenString* _stringLiteral846;
extern "C" void m4820 (t781 * __this, t737 * p0, t736 p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
_stringLiteral846 = il2cpp_codegen_string_literal_from_index(846);
s_Il2CppMethodIntialized = true;
}
{
t737 * L_0 = p0;
t15* L_1 = m4821(__this, NULL);
m3922(L_0, _stringLiteral846, L_1, NULL);
return;
}
}
extern TypeInfo* t15_TI_var;
extern "C" t15* m4821 (t781 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
s_Il2CppMethodIntialized = true;
}
{
m4861(__this, NULL);
t15* L_0 = (__this->f13);
if (L_0)
{
goto IL_006e;
}
}
{
t15* L_1 = m4836(__this, 2, NULL);
__this->f13 = L_1;
t15* L_2 = (__this->f6);
int32_t L_3 = m1820(L_2, NULL);
if ((((int32_t)L_3) <= ((int32_t)0)))
{
goto IL_0046;
}
}
{
t15* L_4 = (__this->f13);
t15* L_5 = (__this->f6);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_6 = m1701(NULL, L_4, L_5, NULL);
__this->f13 = L_6;
}
IL_0046:
{
t15* L_7 = (__this->f7);
int32_t L_8 = m1820(L_7, NULL);
if ((((int32_t)L_8) <= ((int32_t)0)))
{
goto IL_006e;
}
}
{
t15* L_9 = (__this->f13);
t15* L_10 = (__this->f7);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_11 = m1701(NULL, L_9, L_10, NULL);
__this->f13 = L_11;
}
IL_006e:
{
t15* L_12 = (__this->f13);
return L_12;
}
}
extern TypeInfo* t781_TI_var;
extern TypeInfo* t24_TI_var;
extern TypeInfo* t15_TI_var;
extern Il2CppCodeGenString* _stringLiteral190;
extern "C" t15* m4822 (t781 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
t24_TI_var = il2cpp_codegen_type_info_from_index(74);
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
_stringLiteral190 = il2cpp_codegen_string_literal_from_index(190);
s_Il2CppMethodIntialized = true;
}
t15* G_B3_0 = {0};
{
m4861(__this, NULL);
t15* L_0 = m4826(__this, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
int32_t L_1 = m4857(NULL, L_0, NULL);
int32_t L_2 = (__this->f4);
if ((!(((uint32_t)L_1) == ((uint32_t)L_2))))
{
goto IL_0027;
}
}
{
t15* L_3 = (__this->f3);
G_B3_0 = L_3;
goto IL_0042;
}
IL_0027:
{
t15* L_4 = (__this->f3);
int32_t L_5 = (__this->f4);
int32_t L_6 = L_5;
t14 * L_7 = Box(t24_TI_var, &L_6);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_8 = m1459(NULL, L_4, _stringLiteral190, L_7, NULL);
G_B3_0 = L_8;
}
IL_0042:
{
return G_B3_0;
}
}
extern "C" t15* m3959 (t781 * __this, const MethodInfo* method)
{
{
m4861(__this, NULL);
t15* L_0 = (__this->f3);
return L_0;
}
}
extern TypeInfo* t781_TI_var;
extern TypeInfo* t15_TI_var;
extern "C" bool m4823 (t781 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
s_Il2CppMethodIntialized = true;
}
{
m4861(__this, NULL);
t15* L_0 = m4826(__this, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_1 = ((t781_SFs*)t781_TI_var->static_fields)->f18;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_2 = m52(NULL, L_0, L_1, NULL);
return L_2;
}
}
extern TypeInfo* t15_TI_var;
extern TypeInfo* t833_TI_var;
extern TypeInfo* t835_TI_var;
extern Il2CppCodeGenString* _stringLiteral694;
extern Il2CppCodeGenString* _stringLiteral693;
extern "C" bool m4824 (t781 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
t833_TI_var = il2cpp_codegen_type_info_from_index(513);
t835_TI_var = il2cpp_codegen_type_info_from_index(514);
_stringLiteral694 = il2cpp_codegen_string_literal_from_index(694);
_stringLiteral693 = il2cpp_codegen_string_literal_from_index(693);
s_Il2CppMethodIntialized = true;
}
t833 * V_0 = {0};
t835 * V_1 = {0};
{
m4861(__this, NULL);
t15* L_0 = m3959(__this, NULL);
int32_t L_1 = m1820(L_0, NULL);
if (L_1)
{
goto IL_001d;
}
}
{
bool L_2 = m4823(__this, NULL);
return L_2;
}
IL_001d:
{
t15* L_3 = (__this->f3);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_4 = m52(NULL, L_3, _stringLiteral694, NULL);
if (L_4)
{
goto IL_0047;
}
}
{
t15* L_5 = (__this->f3);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_6 = m52(NULL, L_5, _stringLiteral693, NULL);
if (!L_6)
{
goto IL_0049;
}
}
IL_0047:
{
return 1;
}
IL_0049:
{
t15* L_7 = (__this->f3);
IL2CPP_RUNTIME_CLASS_INIT(t833_TI_var);
bool L_8 = m4122(NULL, L_7, (&V_0), NULL);
if (!L_8)
{
goto IL_006d;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t833_TI_var);
t833 * L_9 = ((t833_SFs*)t833_TI_var->static_fields)->f6;
t833 * L_10 = V_0;
bool L_11 = (bool)VirtFuncInvoker1< bool, t14 * >::Invoke(0 /* System.Boolean System.Net.IPAddress::Equals(System.Object) */, L_9, L_10);
if (!L_11)
{
goto IL_006d;
}
}
{
return 1;
}
IL_006d:
{
t15* L_12 = (__this->f3);
IL2CPP_RUNTIME_CLASS_INIT(t835_TI_var);
bool L_13 = m4141(NULL, L_12, (&V_1), NULL);
if (!L_13)
{
goto IL_008c;
}
}
{
t835 * L_14 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(t835_TI_var);
bool L_15 = m4145(NULL, L_14, NULL);
if (!L_15)
{
goto IL_008c;
}
}
{
return 1;
}
IL_008c:
{
return 0;
}
}
extern "C" bool m4825 (t781 * __this, const MethodInfo* method)
{
{
m4861(__this, NULL);
bool L_0 = (__this->f9);
return L_0;
}
}
extern "C" t15* m4826 (t781 * __this, const MethodInfo* method)
{
{
m4861(__this, NULL);
t15* L_0 = (__this->f2);
return L_0;
}
}
extern "C" bool m4827 (t781 * __this, const MethodInfo* method)
{
{
bool L_0 = (__this->f11);
return L_0;
}
}
extern TypeInfo* t781_TI_var;
extern TypeInfo* t835_TI_var;
extern "C" int32_t m4828 (t14 * __this , t15* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
t835_TI_var = il2cpp_codegen_type_info_from_index(514);
s_Il2CppMethodIntialized = true;
}
t835 * V_0 = {0};
{
t15* L_0 = p0;
if (!L_0)
{
goto IL_0011;
}
}
{
t15* L_1 = p0;
int32_t L_2 = m1820(L_1, NULL);
if (L_2)
{
goto IL_0013;
}
}
IL_0011:
{
return (int32_t)(0);
}
IL_0013:
{
t15* L_3 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
bool L_4 = m4829(NULL, L_3, NULL);
if (!L_4)
{
goto IL_0020;
}
}
{
return (int32_t)(3);
}
IL_0020:
{
t15* L_5 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
bool L_6 = m4830(NULL, L_5, NULL);
if (!L_6)
{
goto IL_002d;
}
}
{
return (int32_t)(2);
}
IL_002d:
{
t15* L_7 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t835_TI_var);
bool L_8 = m4141(NULL, L_7, (&V_0), NULL);
if (!L_8)
{
goto IL_003c;
}
}
{
return (int32_t)(4);
}
IL_003c:
{
return (int32_t)(0);
}
}
extern TypeInfo* t193_TI_var;
extern "C" bool m4829 (t14 * __this , t15* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t193_TI_var = il2cpp_codegen_type_info_from_index(179);
s_Il2CppMethodIntialized = true;
}
t525* V_0 = {0};
int32_t V_1 = 0;
int32_t V_2 = 0;
uint32_t V_3 = 0;
{
t15* L_0 = p0;
t193* L_1 = ((t193*)SZArrayNew(t193_TI_var, 1));
*((uint16_t*)(uint16_t*)SZArrayLdElema(L_1, 0, sizeof(uint16_t))) = (uint16_t)((int32_t)46);
t525* L_2 = m2876(L_0, L_1, NULL);
V_0 = L_2;
t525* L_3 = V_0;
if ((((int32_t)(((int32_t)((int32_t)(((t17 *)L_3)->max_length))))) == ((int32_t)4)))
{
goto IL_001d;
}
}
{
return 0;
}
IL_001d:
{
V_1 = 0;
goto IL_0057;
}
IL_0024:
{
t525* L_4 = V_0;
int32_t L_5 = V_1;
int32_t L_6 = L_5;
int32_t L_7 = m1820((*(t15**)(t15**)SZArrayLdElema(L_4, L_6, sizeof(t15*))), NULL);
V_2 = L_7;
int32_t L_8 = V_2;
if (L_8)
{
goto IL_0035;
}
}
{
return 0;
}
IL_0035:
{
t525* L_9 = V_0;
int32_t L_10 = V_1;
int32_t L_11 = L_10;
bool L_12 = m4968(NULL, (*(t15**)(t15**)SZArrayLdElema(L_9, L_11, sizeof(t15*))), (&V_3), NULL);
if (L_12)
{
goto IL_0046;
}
}
{
return 0;
}
IL_0046:
{
uint32_t L_13 = V_3;
if ((!(((uint32_t)L_13) > ((uint32_t)((int32_t)255)))))
{
goto IL_0053;
}
}
{
return 0;
}
IL_0053:
{
int32_t L_14 = V_1;
V_1 = ((int32_t)((int32_t)L_14+(int32_t)1));
}
IL_0057:
{
int32_t L_15 = V_1;
if ((((int32_t)L_15) < ((int32_t)4)))
{
goto IL_0024;
}
}
{
return 1;
}
}
extern TypeInfo* t180_TI_var;
extern "C" bool m4830 (t14 * __this , t15* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t180_TI_var = il2cpp_codegen_type_info_from_index(175);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
uint16_t V_3 = 0x0;
{
t15* L_0 = p0;
int32_t L_1 = m1820(L_0, NULL);
V_0 = L_1;
V_1 = 0;
V_2 = 0;
goto IL_006e;
}
IL_0010:
{
t15* L_2 = p0;
int32_t L_3 = V_2;
uint16_t L_4 = m1839(L_2, L_3, NULL);
V_3 = L_4;
int32_t L_5 = V_1;
if (L_5)
{
goto IL_0030;
}
}
{
uint16_t L_6 = V_3;
IL2CPP_RUNTIME_CLASS_INIT(t180_TI_var);
bool L_7 = m4954(NULL, L_6, NULL);
if (L_7)
{
goto IL_002b;
}
}
{
return 0;
}
IL_002b:
{
goto IL_005c;
}
IL_0030:
{
uint16_t L_8 = V_3;
if ((!(((uint32_t)L_8) == ((uint32_t)((int32_t)46)))))
{
goto IL_003f;
}
}
{
V_1 = 0;
goto IL_005c;
}
IL_003f:
{
uint16_t L_9 = V_3;
IL2CPP_RUNTIME_CLASS_INIT(t180_TI_var);
bool L_10 = m4954(NULL, L_9, NULL);
if (L_10)
{
goto IL_005c;
}
}
{
uint16_t L_11 = V_3;
if ((((int32_t)L_11) == ((int32_t)((int32_t)45))))
{
goto IL_005c;
}
}
{
uint16_t L_12 = V_3;
if ((((int32_t)L_12) == ((int32_t)((int32_t)95))))
{
goto IL_005c;
}
}
{
return 0;
}
IL_005c:
{
int32_t L_13 = V_1;
int32_t L_14 = ((int32_t)((int32_t)L_13+(int32_t)1));
V_1 = L_14;
if ((!(((uint32_t)L_14) == ((uint32_t)((int32_t)64)))))
{
goto IL_006a;
}
}
{
return 0;
}
IL_006a:
{
int32_t L_15 = V_2;
V_2 = ((int32_t)((int32_t)L_15+(int32_t)1));
}
IL_006e:
{
int32_t L_16 = V_2;
int32_t L_17 = V_0;
if ((((int32_t)L_16) < ((int32_t)L_17)))
{
goto IL_0010;
}
}
{
return 1;
}
}
extern TypeInfo* t781_TI_var;
extern TypeInfo* t180_TI_var;
extern "C" bool m4831 (t14 * __this , t15* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
t180_TI_var = il2cpp_codegen_type_info_from_index(175);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
uint16_t V_2 = 0x0;
{
t15* L_0 = p0;
if (!L_0)
{
goto IL_0011;
}
}
{
t15* L_1 = p0;
int32_t L_2 = m1820(L_1, NULL);
if (L_2)
{
goto IL_0013;
}
}
IL_0011:
{
return 0;
}
IL_0013:
{
t15* L_3 = p0;
uint16_t L_4 = m1839(L_3, 0, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
bool L_5 = m4832(NULL, L_4, NULL);
if (L_5)
{
goto IL_0026;
}
}
{
return 0;
}
IL_0026:
{
t15* L_6 = p0;
int32_t L_7 = m1820(L_6, NULL);
V_0 = L_7;
V_1 = 1;
goto IL_0070;
}
IL_0034:
{
t15* L_8 = p0;
int32_t L_9 = V_1;
uint16_t L_10 = m1839(L_8, L_9, NULL);
V_2 = L_10;
uint16_t L_11 = V_2;
IL2CPP_RUNTIME_CLASS_INIT(t180_TI_var);
bool L_12 = m4955(NULL, L_11, NULL);
if (L_12)
{
goto IL_006c;
}
}
{
uint16_t L_13 = V_2;
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
bool L_14 = m4832(NULL, L_13, NULL);
if (L_14)
{
goto IL_006c;
}
}
{
uint16_t L_15 = V_2;
if ((((int32_t)L_15) == ((int32_t)((int32_t)46))))
{
goto IL_006c;
}
}
{
uint16_t L_16 = V_2;
if ((((int32_t)L_16) == ((int32_t)((int32_t)43))))
{
goto IL_006c;
}
}
{
uint16_t L_17 = V_2;
if ((((int32_t)L_17) == ((int32_t)((int32_t)45))))
{
goto IL_006c;
}
}
{
return 0;
}
IL_006c:
{
int32_t L_18 = V_1;
V_1 = ((int32_t)((int32_t)L_18+(int32_t)1));
}
IL_0070:
{
int32_t L_19 = V_1;
int32_t L_20 = V_0;
if ((((int32_t)L_19) < ((int32_t)L_20)))
{
goto IL_0034;
}
}
{
return 1;
}
}
extern "C" bool m4832 (t14 * __this , uint16_t p0, const MethodInfo* method)
{
int32_t V_0 = 0;
int32_t G_B5_0 = 0;
int32_t G_B7_0 = 0;
{
uint16_t L_0 = p0;
V_0 = L_0;
int32_t L_1 = V_0;
if ((((int32_t)L_1) < ((int32_t)((int32_t)65))))
{
goto IL_0012;
}
}
{
int32_t L_2 = V_0;
if ((((int32_t)L_2) <= ((int32_t)((int32_t)90))))
{
goto IL_0027;
}
}
IL_0012:
{
int32_t L_3 = V_0;
if ((((int32_t)L_3) < ((int32_t)((int32_t)97))))
{
goto IL_0024;
}
}
{
int32_t L_4 = V_0;
G_B5_0 = ((((int32_t)((((int32_t)L_4) > ((int32_t)((int32_t)122)))? 1 : 0)) == ((int32_t)0))? 1 : 0);
goto IL_0025;
}
IL_0024:
{
G_B5_0 = 0;
}
IL_0025:
{
G_B7_0 = G_B5_0;
goto IL_0028;
}
IL_0027:
{
G_B7_0 = 1;
}
IL_0028:
{
return G_B7_0;
}
}
extern TypeInfo* t781_TI_var;
extern TypeInfo* t15_TI_var;
extern "C" bool m4833 (t781 * __this, t14 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
s_Il2CppMethodIntialized = true;
}
t781 * V_0 = {0};
t15* V_1 = {0};
{
t14 * L_0 = p0;
if (L_0)
{
goto IL_0008;
}
}
{
return 0;
}
IL_0008:
{
t14 * L_1 = p0;
V_0 = ((t781 *)IsInstClass(L_1, t781_TI_var));
t781 * L_2 = V_0;
if (L_2)
{
goto IL_002b;
}
}
{
t14 * L_3 = p0;
V_1 = ((t15*)IsInstSealed(L_3, t15_TI_var));
t15* L_4 = V_1;
if (L_4)
{
goto IL_0024;
}
}
{
return 0;
}
IL_0024:
{
t15* L_5 = V_1;
t781 * L_6 = (t781 *)il2cpp_codegen_object_new (t781_TI_var);
m4816(L_6, L_5, NULL);
V_0 = L_6;
}
IL_002b:
{
t781 * L_7 = V_0;
bool L_8 = m4834(__this, L_7, NULL);
return L_8;
}
}
extern TypeInfo* t15_TI_var;
extern TypeInfo* t545_TI_var;
extern "C" bool m4834 (t781 * __this, t781 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
t545_TI_var = il2cpp_codegen_type_info_from_index(362);
s_Il2CppMethodIntialized = true;
}
t545 * V_0 = {0};
int32_t G_B10_0 = 0;
{
bool L_0 = (__this->f11);
t781 * L_1 = p0;
bool L_2 = (L_1->f11);
if ((((int32_t)L_0) == ((int32_t)L_2)))
{
goto IL_0013;
}
}
{
return 0;
}
IL_0013:
{
bool L_3 = (__this->f11);
if (L_3)
{
goto IL_0030;
}
}
{
t15* L_4 = (__this->f1);
t781 * L_5 = p0;
t15* L_6 = (L_5->f1);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_7 = m52(NULL, L_4, L_6, NULL);
return L_7;
}
IL_0030:
{
IL2CPP_RUNTIME_CLASS_INIT(t545_TI_var);
t545 * L_8 = m3878(NULL, NULL);
V_0 = L_8;
t15* L_9 = (__this->f2);
t545 * L_10 = V_0;
t15* L_11 = m4969(L_9, L_10, NULL);
t781 * L_12 = p0;
t15* L_13 = (L_12->f2);
t545 * L_14 = V_0;
t15* L_15 = m4969(L_13, L_14, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_16 = m52(NULL, L_11, L_15, NULL);
if (!L_16)
{
goto IL_00b4;
}
}
{
t15* L_17 = (__this->f3);
t545 * L_18 = V_0;
t15* L_19 = m4969(L_17, L_18, NULL);
t781 * L_20 = p0;
t15* L_21 = (L_20->f3);
t545 * L_22 = V_0;
t15* L_23 = m4969(L_21, L_22, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_24 = m52(NULL, L_19, L_23, NULL);
if (!L_24)
{
goto IL_00b4;
}
}
{
int32_t L_25 = (__this->f4);
t781 * L_26 = p0;
int32_t L_27 = (L_26->f4);
if ((!(((uint32_t)L_25) == ((uint32_t)L_27))))
{
goto IL_00b4;
}
}
{
t15* L_28 = (__this->f6);
t781 * L_29 = p0;
t15* L_30 = (L_29->f6);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_31 = m52(NULL, L_28, L_30, NULL);
if (!L_31)
{
goto IL_00b4;
}
}
{
t15* L_32 = (__this->f5);
t781 * L_33 = p0;
t15* L_34 = (L_33->f5);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_35 = m52(NULL, L_32, L_34, NULL);
G_B10_0 = ((int32_t)(L_35));
goto IL_00b5;
}
IL_00b4:
{
G_B10_0 = 0;
}
IL_00b5:
{
return G_B10_0;
}
}
extern TypeInfo* t545_TI_var;
extern "C" int32_t m4835 (t781 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t545_TI_var = il2cpp_codegen_type_info_from_index(362);
s_Il2CppMethodIntialized = true;
}
t545 * V_0 = {0};
{
int32_t L_0 = (__this->f15);
if (L_0)
{
goto IL_007a;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t545_TI_var);
t545 * L_1 = m3878(NULL, NULL);
V_0 = L_1;
bool L_2 = (__this->f11);
if (!L_2)
{
goto IL_0069;
}
}
{
t15* L_3 = (__this->f2);
t545 * L_4 = V_0;
t15* L_5 = m4969(L_3, L_4, NULL);
int32_t L_6 = m2856(L_5, NULL);
t15* L_7 = (__this->f3);
t545 * L_8 = V_0;
t15* L_9 = m4969(L_7, L_8, NULL);
int32_t L_10 = m2856(L_9, NULL);
int32_t L_11 = (__this->f4);
t15* L_12 = (__this->f6);
int32_t L_13 = m2856(L_12, NULL);
t15* L_14 = (__this->f5);
int32_t L_15 = m2856(L_14, NULL);
__this->f15 = ((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_6^(int32_t)L_10))^(int32_t)L_11))^(int32_t)L_13))^(int32_t)L_15));
goto IL_007a;
}
IL_0069:
{
t15* L_16 = (__this->f1);
int32_t L_17 = m2856(L_16, NULL);
__this->f15 = L_17;
}
IL_007a:
{
int32_t L_18 = (__this->f15);
return L_18;
}
}
extern TypeInfo* t15_TI_var;
extern TypeInfo* t781_TI_var;
extern TypeInfo* t320_TI_var;
extern TypeInfo* t194_TI_var;
extern const MethodInfo* m1857_MI_var;
extern Il2CppCodeGenString* _stringLiteral850;
extern Il2CppCodeGenString* _stringLiteral851;
extern "C" t15* m4836 (t781 * __this, int32_t p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
t320_TI_var = il2cpp_codegen_type_info_from_index(24);
t194_TI_var = il2cpp_codegen_type_info_from_index(195);
m1857_MI_var = il2cpp_codegen_method_info_from_index(2147483846);
_stringLiteral850 = il2cpp_codegen_string_literal_from_index(850);
_stringLiteral851 = il2cpp_codegen_string_literal_from_index(851);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
t320 * V_1 = {0};
t320 * V_2 = {0};
int32_t V_3 = {0};
t15* V_4 = {0};
t194 * V_5 = {0};
int32_t V_6 = 0;
{
m4861(__this, NULL);
int32_t L_0 = p0;
V_3 = L_0;
int32_t L_1 = V_3;
if (L_1 == 0)
{
goto IL_001f;
}
if (L_1 == 1)
{
goto IL_0031;
}
if (L_1 == 2)
{
goto IL_0134;
}
}
{
goto IL_02ad;
}
IL_001f:
{
t15* L_2 = (__this->f2);
t15* L_3 = m4858(__this, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_4 = m1701(NULL, L_2, L_3, NULL);
return L_4;
}
IL_0031:
{
t15* L_5 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_6 = ((t781_SFs*)t781_TI_var->static_fields)->f23;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_7 = m52(NULL, L_5, L_6, NULL);
if (L_7)
{
goto IL_005b;
}
}
{
t15* L_8 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_9 = ((t781_SFs*)t781_TI_var->static_fields)->f24;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_10 = m52(NULL, L_8, L_9, NULL);
if (!L_10)
{
goto IL_0061;
}
}
IL_005b:
{
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_11 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
return L_11;
}
IL_0061:
{
t320 * L_12 = (t320 *)il2cpp_codegen_object_new (t320_TI_var);
m1468(L_12, NULL);
V_1 = L_12;
t320 * L_13 = V_1;
t15* L_14 = (__this->f2);
m2875(L_13, L_14, NULL);
t320 * L_15 = V_1;
t15* L_16 = m4858(__this, NULL);
m2875(L_15, L_16, NULL);
t15* L_17 = (__this->f5);
int32_t L_18 = m1820(L_17, NULL);
if ((((int32_t)L_18) <= ((int32_t)1)))
{
goto IL_00c3;
}
}
{
t15* L_19 = (__this->f5);
uint16_t L_20 = m1839(L_19, 1, NULL);
if ((!(((uint32_t)L_20) == ((uint32_t)((int32_t)58)))))
{
goto IL_00c3;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_21 = ((t781_SFs*)t781_TI_var->static_fields)->f18;
t15* L_22 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_23 = m52(NULL, L_21, L_22, NULL);
if (!L_23)
{
goto IL_00c3;
}
}
{
t320 * L_24 = V_1;
m3906(L_24, ((int32_t)47), NULL);
}
IL_00c3:
{
t15* L_25 = (__this->f8);
int32_t L_26 = m1820(L_25, NULL);
if ((((int32_t)L_26) <= ((int32_t)0)))
{
goto IL_00e8;
}
}
{
t320 * L_27 = V_1;
t15* L_28 = (__this->f8);
t320 * L_29 = m2875(L_27, L_28, NULL);
m3906(L_29, ((int32_t)64), NULL);
}
IL_00e8:
{
t320 * L_30 = V_1;
t15* L_31 = (__this->f3);
m2875(L_30, L_31, NULL);
t15* L_32 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
int32_t L_33 = m4857(NULL, L_32, NULL);
V_0 = L_33;
int32_t L_34 = (__this->f4);
if ((((int32_t)L_34) == ((int32_t)(-1))))
{
goto IL_012d;
}
}
{
int32_t L_35 = (__this->f4);
int32_t L_36 = V_0;
if ((((int32_t)L_35) == ((int32_t)L_36)))
{
goto IL_012d;
}
}
{
t320 * L_37 = V_1;
t320 * L_38 = m3906(L_37, ((int32_t)58), NULL);
int32_t L_39 = (__this->f4);
m4931(L_38, L_39, NULL);
}
IL_012d:
{
t320 * L_40 = V_1;
t15* L_41 = m1472(L_40, NULL);
return L_41;
}
IL_0134:
{
t320 * L_42 = (t320 *)il2cpp_codegen_object_new (t320_TI_var);
m1468(L_42, NULL);
V_2 = L_42;
t320 * L_43 = V_2;
t15* L_44 = (__this->f2);
m2875(L_43, L_44, NULL);
t320 * L_45 = V_2;
t15* L_46 = m4858(__this, NULL);
m2875(L_45, L_46, NULL);
t15* L_47 = (__this->f5);
int32_t L_48 = m1820(L_47, NULL);
if ((((int32_t)L_48) <= ((int32_t)1)))
{
goto IL_0196;
}
}
{
t15* L_49 = (__this->f5);
uint16_t L_50 = m1839(L_49, 1, NULL);
if ((!(((uint32_t)L_50) == ((uint32_t)((int32_t)58)))))
{
goto IL_0196;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_51 = ((t781_SFs*)t781_TI_var->static_fields)->f18;
t15* L_52 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_53 = m52(NULL, L_51, L_52, NULL);
if (!L_53)
{
goto IL_0196;
}
}
{
t320 * L_54 = V_2;
m3906(L_54, ((int32_t)47), NULL);
}
IL_0196:
{
t15* L_55 = (__this->f8);
int32_t L_56 = m1820(L_55, NULL);
if ((((int32_t)L_56) <= ((int32_t)0)))
{
goto IL_01bb;
}
}
{
t320 * L_57 = V_2;
t15* L_58 = (__this->f8);
t320 * L_59 = m2875(L_57, L_58, NULL);
m3906(L_59, ((int32_t)64), NULL);
}
IL_01bb:
{
t320 * L_60 = V_2;
t15* L_61 = (__this->f3);
m2875(L_60, L_61, NULL);
t15* L_62 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
int32_t L_63 = m4857(NULL, L_62, NULL);
V_0 = L_63;
int32_t L_64 = (__this->f4);
if ((((int32_t)L_64) == ((int32_t)(-1))))
{
goto IL_0200;
}
}
{
int32_t L_65 = (__this->f4);
int32_t L_66 = V_0;
if ((((int32_t)L_65) == ((int32_t)L_66)))
{
goto IL_0200;
}
}
{
t320 * L_67 = V_2;
t320 * L_68 = m3906(L_67, ((int32_t)58), NULL);
int32_t L_69 = (__this->f4);
m4931(L_68, L_69, NULL);
}
IL_0200:
{
t15* L_70 = (__this->f5);
int32_t L_71 = m1820(L_70, NULL);
if ((((int32_t)L_71) <= ((int32_t)0)))
{
goto IL_02a6;
}
}
{
t15* L_72 = m4826(__this, NULL);
V_4 = L_72;
t15* L_73 = V_4;
if (!L_73)
{
goto IL_0284;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t194 * L_74 = ((t781_SFs*)t781_TI_var->static_fields)->f30;
if (L_74)
{
goto IL_0253;
}
}
{
t194 * L_75 = (t194 *)il2cpp_codegen_object_new (t194_TI_var);
m1857(L_75, 2, m1857_MI_var);
V_5 = L_75;
t194 * L_76 = V_5;
VirtActionInvoker2< t15*, int32_t >::Invoke(27 /* System.Void System.Collections.Generic.Dictionary`2<System.String,System.Int32>::Add(!0,!1) */, L_76, _stringLiteral850, 0);
t194 * L_77 = V_5;
VirtActionInvoker2< t15*, int32_t >::Invoke(27 /* System.Void System.Collections.Generic.Dictionary`2<System.String,System.Int32>::Add(!0,!1) */, L_77, _stringLiteral851, 0);
t194 * L_78 = V_5;
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
((t781_SFs*)t781_TI_var->static_fields)->f30 = L_78;
}
IL_0253:
{
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t194 * L_79 = ((t781_SFs*)t781_TI_var->static_fields)->f30;
t15* L_80 = V_4;
bool L_81 = (bool)VirtFuncInvoker2< bool, t15*, int32_t* >::Invoke(32 /* System.Boolean System.Collections.Generic.Dictionary`2<System.String,System.Int32>::TryGetValue(!0,!1&) */, L_79, L_80, (&V_6));
if (!L_81)
{
goto IL_0284;
}
}
{
int32_t L_82 = V_6;
if (!L_82)
{
goto IL_0272;
}
}
{
goto IL_0284;
}
IL_0272:
{
t320 * L_83 = V_2;
t15* L_84 = (__this->f5);
m2875(L_83, L_84, NULL);
goto IL_02a6;
}
IL_0284:
{
t320 * L_85 = V_2;
t15* L_86 = (__this->f5);
t15* L_87 = m4826(__this, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
bool L_88 = m4853(NULL, L_87, NULL);
t15* L_89 = m4854(NULL, L_86, L_88, NULL);
m2875(L_85, L_89, NULL);
goto IL_02a6;
}
IL_02a6:
{
t320 * L_90 = V_2;
t15* L_91 = m1472(L_90, NULL);
return L_91;
}
IL_02ad:
{
return (t15*)NULL;
}
}
extern TypeInfo* t387_TI_var;
extern Il2CppCodeGenString* _stringLiteral855;
extern "C" int32_t m4837 (t14 * __this , uint16_t p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t387_TI_var = il2cpp_codegen_type_info_from_index(234);
_stringLiteral855 = il2cpp_codegen_string_literal_from_index(855);
s_Il2CppMethodIntialized = true;
}
{
uint16_t L_0 = p0;
if ((((int32_t)((int32_t)48)) > ((int32_t)L_0)))
{
goto IL_0015;
}
}
{
uint16_t L_1 = p0;
if ((((int32_t)L_1) > ((int32_t)((int32_t)57))))
{
goto IL_0015;
}
}
{
uint16_t L_2 = p0;
return ((int32_t)((int32_t)L_2-(int32_t)((int32_t)48)));
}
IL_0015:
{
uint16_t L_3 = p0;
if ((((int32_t)((int32_t)97)) > ((int32_t)L_3)))
{
goto IL_002d;
}
}
{
uint16_t L_4 = p0;
if ((((int32_t)L_4) > ((int32_t)((int32_t)102))))
{
goto IL_002d;
}
}
{
uint16_t L_5 = p0;
return ((int32_t)((int32_t)((int32_t)((int32_t)L_5-(int32_t)((int32_t)97)))+(int32_t)((int32_t)10)));
}
IL_002d:
{
uint16_t L_6 = p0;
if ((((int32_t)((int32_t)65)) > ((int32_t)L_6)))
{
goto IL_0045;
}
}
{
uint16_t L_7 = p0;
if ((((int32_t)L_7) > ((int32_t)((int32_t)70))))
{
goto IL_0045;
}
}
{
uint16_t L_8 = p0;
return ((int32_t)((int32_t)((int32_t)((int32_t)L_8-(int32_t)((int32_t)65)))+(int32_t)((int32_t)10)));
}
IL_0045:
{
t387 * L_9 = (t387 *)il2cpp_codegen_object_new (t387_TI_var);
m2010(L_9, _stringLiteral855, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_9);
}
}
extern TypeInfo* t586_TI_var;
extern TypeInfo* t781_TI_var;
extern TypeInfo* t180_TI_var;
extern TypeInfo* t15_TI_var;
extern Il2CppCodeGenString* _stringLiteral856;
extern Il2CppCodeGenString* _stringLiteral857;
extern "C" t15* m4838 (t14 * __this , uint16_t p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t586_TI_var = il2cpp_codegen_type_info_from_index(342);
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
t180_TI_var = il2cpp_codegen_type_info_from_index(175);
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
_stringLiteral856 = il2cpp_codegen_string_literal_from_index(856);
_stringLiteral857 = il2cpp_codegen_string_literal_from_index(857);
s_Il2CppMethodIntialized = true;
}
{
uint16_t L_0 = p0;
if ((((int32_t)L_0) <= ((int32_t)((int32_t)255))))
{
goto IL_0016;
}
}
{
t586 * L_1 = (t586 *)il2cpp_codegen_object_new (t586_TI_var);
m3867(L_1, _stringLiteral856, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_1);
}
IL_0016:
{
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_2 = ((t781_SFs*)t781_TI_var->static_fields)->f16;
uint16_t L_3 = p0;
uint16_t L_4 = m1839(L_2, ((int32_t)((int32_t)((int32_t)((int32_t)L_3&(int32_t)((int32_t)240)))>>(int32_t)4)), NULL);
uint16_t L_5 = L_4;
t14 * L_6 = Box(t180_TI_var, &L_5);
t15* L_7 = ((t781_SFs*)t781_TI_var->static_fields)->f16;
uint16_t L_8 = p0;
uint16_t L_9 = m1839(L_7, ((int32_t)((int32_t)L_8&(int32_t)((int32_t)15))), NULL);
uint16_t L_10 = L_9;
t14 * L_11 = Box(t180_TI_var, &L_10);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_12 = m1459(NULL, _stringLiteral857, L_6, L_11, NULL);
return L_12;
}
}
extern "C" bool m4839 (t14 * __this , uint16_t p0, const MethodInfo* method)
{
int32_t G_B7_0 = 0;
int32_t G_B9_0 = 0;
{
uint16_t L_0 = p0;
if ((((int32_t)((int32_t)48)) > ((int32_t)L_0)))
{
goto IL_0010;
}
}
{
uint16_t L_1 = p0;
if ((((int32_t)L_1) <= ((int32_t)((int32_t)57))))
{
goto IL_0035;
}
}
IL_0010:
{
uint16_t L_2 = p0;
if ((((int32_t)((int32_t)97)) > ((int32_t)L_2)))
{
goto IL_0020;
}
}
{
uint16_t L_3 = p0;
if ((((int32_t)L_3) <= ((int32_t)((int32_t)102))))
{
goto IL_0035;
}
}
IL_0020:
{
uint16_t L_4 = p0;
if ((((int32_t)((int32_t)65)) > ((int32_t)L_4)))
{
goto IL_0032;
}
}
{
uint16_t L_5 = p0;
G_B7_0 = ((((int32_t)((((int32_t)L_5) > ((int32_t)((int32_t)70)))? 1 : 0)) == ((int32_t)0))? 1 : 0);
goto IL_0033;
}
IL_0032:
{
G_B7_0 = 0;
}
IL_0033:
{
G_B9_0 = G_B7_0;
goto IL_0036;
}
IL_0035:
{
G_B9_0 = 1;
}
IL_0036:
{
return G_B9_0;
}
}
extern TypeInfo* t781_TI_var;
extern "C" bool m4840 (t14 * __this , t15* p0, int32_t p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
s_Il2CppMethodIntialized = true;
}
int32_t G_B6_0 = 0;
{
int32_t L_0 = p1;
t15* L_1 = p0;
int32_t L_2 = m1820(L_1, NULL);
if ((((int32_t)((int32_t)((int32_t)L_0+(int32_t)3))) <= ((int32_t)L_2)))
{
goto IL_0010;
}
}
{
return 0;
}
IL_0010:
{
t15* L_3 = p0;
int32_t L_4 = p1;
int32_t L_5 = L_4;
p1 = ((int32_t)((int32_t)L_5+(int32_t)1));
uint16_t L_6 = m1839(L_3, L_5, NULL);
if ((!(((uint32_t)L_6) == ((uint32_t)((int32_t)37)))))
{
goto IL_0047;
}
}
{
t15* L_7 = p0;
int32_t L_8 = p1;
int32_t L_9 = L_8;
p1 = ((int32_t)((int32_t)L_9+(int32_t)1));
uint16_t L_10 = m1839(L_7, L_9, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
bool L_11 = m4839(NULL, L_10, NULL);
if (!L_11)
{
goto IL_0047;
}
}
{
t15* L_12 = p0;
int32_t L_13 = p1;
uint16_t L_14 = m1839(L_12, L_13, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
bool L_15 = m4839(NULL, L_14, NULL);
G_B6_0 = ((int32_t)(L_15));
goto IL_0048;
}
IL_0047:
{
G_B6_0 = 0;
}
IL_0048:
{
return G_B6_0;
}
}
extern TypeInfo* t180_TI_var;
extern TypeInfo* t781_TI_var;
extern TypeInfo* t15_TI_var;
extern "C" void m4841 (t781 * __this, t15** p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t180_TI_var = il2cpp_codegen_type_info_from_index(175);
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
s_Il2CppMethodIntialized = true;
}
t15* V_0 = {0};
t15* G_B4_0 = {0};
{
t15* L_0 = (__this->f6);
int32_t L_1 = m1820(L_0, NULL);
if ((((int32_t)L_1) <= ((int32_t)0)))
{
goto IL_005e;
}
}
{
t15* L_2 = (__this->f6);
uint16_t L_3 = m1839(L_2, 0, NULL);
if ((!(((uint32_t)L_3) == ((uint32_t)((int32_t)63)))))
{
goto IL_0047;
}
}
{
uint16_t L_4 = ((int32_t)63);
t14 * L_5 = Box(t180_TI_var, &L_4);
t15* L_6 = (__this->f6);
t15* L_7 = m1867(L_6, 1, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_8 = m4847(NULL, L_7, 0, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_9 = m1469(NULL, L_5, L_8, NULL);
G_B4_0 = L_9;
goto IL_0053;
}
IL_0047:
{
t15* L_10 = (__this->f6);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_11 = m4847(NULL, L_10, 0, NULL);
G_B4_0 = L_11;
}
IL_0053:
{
V_0 = G_B4_0;
t15** L_12 = p0;
t15** L_13 = p0;
t15* L_14 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_15 = m1701(NULL, (*((t15**)L_13)), L_14, NULL);
*((t14 **)(L_12)) = (t14 *)L_15;
}
IL_005e:
{
t15* L_16 = (__this->f7);
int32_t L_17 = m1820(L_16, NULL);
if ((((int32_t)L_17) <= ((int32_t)0)))
{
goto IL_007e;
}
}
{
t15** L_18 = p0;
t15** L_19 = p0;
t15* L_20 = (__this->f7);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_21 = m1701(NULL, (*((t15**)L_19)), L_20, NULL);
*((t14 **)(L_18)) = (t14 *)L_21;
}
IL_007e:
{
return;
}
}
extern TypeInfo* t781_TI_var;
extern "C" t15* m4842 (t781 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
s_Il2CppMethodIntialized = true;
}
{
t15* L_0 = (__this->f14);
if (!L_0)
{
goto IL_0012;
}
}
{
t15* L_1 = (__this->f14);
return L_1;
}
IL_0012:
{
bool L_2 = (__this->f11);
if (!L_2)
{
goto IL_0035;
}
}
{
t15* L_3 = m4836(__this, 2, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_4 = m4847(NULL, L_3, 1, NULL);
__this->f14 = L_4;
goto IL_0047;
}
IL_0035:
{
t15* L_5 = (__this->f5);
t15* L_6 = (t15*)VirtFuncInvoker1< t15*, t15* >::Invoke(5 /* System.String System.Uri::Unescape(System.String) */, __this, L_5);
__this->f14 = L_6;
}
IL_0047:
{
t15** L_7 = &(__this->f14);
m4841(__this, L_7, NULL);
t15* L_8 = (__this->f14);
return L_8;
}
}
extern TypeInfo* t781_TI_var;
extern "C" t15* m4843 (t14 * __this , t15* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
s_Il2CppMethodIntialized = true;
}
{
t15* L_0 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_1 = m4844(NULL, L_0, 0, 1, 1, NULL);
return L_1;
}
}
extern TypeInfo* t15_TI_var;
extern TypeInfo* t320_TI_var;
extern TypeInfo* t781_TI_var;
extern TypeInfo* t744_TI_var;
extern TypeInfo* t193_TI_var;
extern Il2CppCodeGenString* _stringLiteral858;
extern Il2CppCodeGenString* _stringLiteral859;
extern "C" t15* m4844 (t14 * __this , t15* p0, bool p1, bool p2, bool p3, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
t320_TI_var = il2cpp_codegen_type_info_from_index(24);
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
t744_TI_var = il2cpp_codegen_type_info_from_index(363);
t193_TI_var = il2cpp_codegen_type_info_from_index(179);
_stringLiteral858 = il2cpp_codegen_string_literal_from_index(858);
_stringLiteral859 = il2cpp_codegen_string_literal_from_index(859);
s_Il2CppMethodIntialized = true;
}
t320 * V_0 = {0};
int32_t V_1 = 0;
int32_t V_2 = 0;
t569* V_3 = {0};
int32_t V_4 = 0;
int32_t V_5 = 0;
uint16_t V_6 = 0x0;
{
t15* L_0 = p0;
if (L_0)
{
goto IL_000c;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_1 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
return L_1;
}
IL_000c:
{
t320 * L_2 = (t320 *)il2cpp_codegen_object_new (t320_TI_var);
m1468(L_2, NULL);
V_0 = L_2;
t15* L_3 = p0;
int32_t L_4 = m1820(L_3, NULL);
V_1 = L_4;
V_2 = 0;
goto IL_0105;
}
IL_0020:
{
t15* L_5 = p0;
int32_t L_6 = V_2;
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
bool L_7 = m4840(NULL, L_5, L_6, NULL);
if (!L_7)
{
goto IL_0044;
}
}
{
t320 * L_8 = V_0;
t15* L_9 = p0;
int32_t L_10 = V_2;
t15* L_11 = m1840(L_9, L_10, 3, NULL);
m2875(L_8, L_11, NULL);
int32_t L_12 = V_2;
V_2 = ((int32_t)((int32_t)L_12+(int32_t)2));
goto IL_0101;
}
IL_0044:
{
IL2CPP_RUNTIME_CLASS_INIT(t744_TI_var);
t744 * L_13 = m3908(NULL, NULL);
t193* L_14 = ((t193*)SZArrayNew(t193_TI_var, 1));
t15* L_15 = p0;
int32_t L_16 = V_2;
uint16_t L_17 = m1839(L_15, L_16, NULL);
*((uint16_t*)(uint16_t*)SZArrayLdElema(L_14, 0, sizeof(uint16_t))) = (uint16_t)L_17;
t569* L_18 = (t569*)VirtFuncInvoker1< t569*, t193* >::Invoke(12 /* System.Byte[] System.Text.Encoding::GetBytes(System.Char[]) */, L_13, L_14);
V_3 = L_18;
t569* L_19 = V_3;
V_4 = (((int32_t)((int32_t)(((t17 *)L_19)->max_length))));
V_5 = 0;
goto IL_00f8;
}
IL_006c:
{
t569* L_20 = V_3;
int32_t L_21 = V_5;
int32_t L_22 = L_21;
V_6 = (((int32_t)((uint16_t)(*(uint8_t*)(uint8_t*)SZArrayLdElema(L_20, L_22, sizeof(uint8_t))))));
uint16_t L_23 = V_6;
if ((((int32_t)L_23) <= ((int32_t)((int32_t)32))))
{
goto IL_00d6;
}
}
{
uint16_t L_24 = V_6;
if ((((int32_t)L_24) >= ((int32_t)((int32_t)127))))
{
goto IL_00d6;
}
}
{
uint16_t L_25 = V_6;
int32_t L_26 = m1895(_stringLiteral858, L_25, NULL);
if ((!(((uint32_t)L_26) == ((uint32_t)(-1)))))
{
goto IL_00d6;
}
}
{
bool L_27 = p2;
if (!L_27)
{
goto IL_00a6;
}
}
{
uint16_t L_28 = V_6;
if ((((int32_t)L_28) == ((int32_t)((int32_t)35))))
{
goto IL_00d6;
}
}
IL_00a6:
{
bool L_29 = p3;
if (!L_29)
{
goto IL_00be;
}
}
{
uint16_t L_30 = V_6;
if ((((int32_t)L_30) == ((int32_t)((int32_t)91))))
{
goto IL_00d6;
}
}
{
uint16_t L_31 = V_6;
if ((((int32_t)L_31) == ((int32_t)((int32_t)93))))
{
goto IL_00d6;
}
}
IL_00be:
{
bool L_32 = p1;
if (!L_32)
{
goto IL_00e9;
}
}
{
uint16_t L_33 = V_6;
int32_t L_34 = m1895(_stringLiteral859, L_33, NULL);
if ((((int32_t)L_34) == ((int32_t)(-1))))
{
goto IL_00e9;
}
}
IL_00d6:
{
t320 * L_35 = V_0;
uint16_t L_36 = V_6;
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_37 = m4838(NULL, L_36, NULL);
m2875(L_35, L_37, NULL);
goto IL_00f2;
}
IL_00e9:
{
t320 * L_38 = V_0;
uint16_t L_39 = V_6;
m3906(L_38, L_39, NULL);
}
IL_00f2:
{
int32_t L_40 = V_5;
V_5 = ((int32_t)((int32_t)L_40+(int32_t)1));
}
IL_00f8:
{
int32_t L_41 = V_5;
int32_t L_42 = V_4;
if ((((int32_t)L_41) < ((int32_t)L_42)))
{
goto IL_006c;
}
}
IL_0101:
{
int32_t L_43 = V_2;
V_2 = ((int32_t)((int32_t)L_43+(int32_t)1));
}
IL_0105:
{
int32_t L_44 = V_2;
int32_t L_45 = V_1;
if ((((int32_t)L_44) < ((int32_t)L_45)))
{
goto IL_0020;
}
}
{
t320 * L_46 = V_0;
t15* L_47 = m1472(L_46, NULL);
return L_47;
}
}
extern TypeInfo* t781_TI_var;
extern TypeInfo* t545_TI_var;
extern "C" void m4845 (t781 * __this, int32_t p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
t545_TI_var = il2cpp_codegen_type_info_from_index(362);
s_Il2CppMethodIntialized = true;
}
{
int32_t L_0 = p0;
t15* L_1 = (__this->f1);
m4851(__this, L_0, L_1, NULL);
bool L_2 = (__this->f12);
if (!L_2)
{
goto IL_0019;
}
}
{
return;
}
IL_0019:
{
t15* L_3 = (__this->f3);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_4 = m4844(NULL, L_3, 0, 1, 0, NULL);
__this->f3 = L_4;
t15* L_5 = (__this->f3);
int32_t L_6 = m1820(L_5, NULL);
if ((((int32_t)L_6) <= ((int32_t)1)))
{
goto IL_0086;
}
}
{
t15* L_7 = (__this->f3);
uint16_t L_8 = m1839(L_7, 0, NULL);
if ((((int32_t)L_8) == ((int32_t)((int32_t)91))))
{
goto IL_0086;
}
}
{
t15* L_9 = (__this->f3);
t15* L_10 = (__this->f3);
int32_t L_11 = m1820(L_10, NULL);
uint16_t L_12 = m1839(L_9, ((int32_t)((int32_t)L_11-(int32_t)1)), NULL);
if ((((int32_t)L_12) == ((int32_t)((int32_t)93))))
{
goto IL_0086;
}
}
{
t15* L_13 = (__this->f3);
IL2CPP_RUNTIME_CLASS_INIT(t545_TI_var);
t545 * L_14 = m3878(NULL, NULL);
t15* L_15 = m4969(L_13, L_14, NULL);
__this->f3 = L_15;
}
IL_0086:
{
t15* L_16 = (__this->f5);
int32_t L_17 = m1820(L_16, NULL);
if ((((int32_t)L_17) <= ((int32_t)0)))
{
goto IL_00a8;
}
}
{
t15* L_18 = (__this->f5);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_19 = m4843(NULL, L_18, NULL);
__this->f5 = L_19;
}
IL_00a8:
{
return;
}
}
extern TypeInfo* t781_TI_var;
extern "C" t15* m4846 (t781 * __this, t15* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
s_Il2CppMethodIntialized = true;
}
{
t15* L_0 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_1 = m4847(NULL, L_0, 0, NULL);
return L_1;
}
}
extern TypeInfo* t15_TI_var;
extern TypeInfo* t320_TI_var;
extern TypeInfo* t781_TI_var;
extern Il2CppCodeGenString* _stringLiteral860;
extern Il2CppCodeGenString* _stringLiteral861;
extern Il2CppCodeGenString* _stringLiteral862;
extern "C" t15* m4847 (t14 * __this , t15* p0, bool p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
t320_TI_var = il2cpp_codegen_type_info_from_index(24);
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
_stringLiteral860 = il2cpp_codegen_string_literal_from_index(860);
_stringLiteral861 = il2cpp_codegen_string_literal_from_index(861);
_stringLiteral862 = il2cpp_codegen_string_literal_from_index(862);
s_Il2CppMethodIntialized = true;
}
t320 * V_0 = {0};
int32_t V_1 = 0;
int32_t V_2 = 0;
uint16_t V_3 = 0x0;
uint16_t V_4 = 0x0;
uint16_t V_5 = 0x0;
{
t15* L_0 = p0;
if (L_0)
{
goto IL_000c;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_1 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
return L_1;
}
IL_000c:
{
t320 * L_2 = (t320 *)il2cpp_codegen_object_new (t320_TI_var);
m1468(L_2, NULL);
V_0 = L_2;
t15* L_3 = p0;
int32_t L_4 = m1820(L_3, NULL);
V_1 = L_4;
V_2 = 0;
goto IL_00ca;
}
IL_0020:
{
t15* L_5 = p0;
int32_t L_6 = V_2;
uint16_t L_7 = m1839(L_5, L_6, NULL);
V_3 = L_7;
uint16_t L_8 = V_3;
if ((!(((uint32_t)L_8) == ((uint32_t)((int32_t)37)))))
{
goto IL_00be;
}
}
{
t15* L_9 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
uint16_t L_10 = m4855(NULL, L_9, (&V_2), (&V_4), NULL);
V_5 = L_10;
bool L_11 = p1;
if (!L_11)
{
goto IL_005c;
}
}
{
uint16_t L_12 = V_5;
if ((!(((uint32_t)L_12) == ((uint32_t)((int32_t)35)))))
{
goto IL_005c;
}
}
{
t320 * L_13 = V_0;
m2875(L_13, _stringLiteral860, NULL);
goto IL_00b5;
}
IL_005c:
{
bool L_14 = p1;
if (!L_14)
{
goto IL_007c;
}
}
{
uint16_t L_15 = V_5;
if ((!(((uint32_t)L_15) == ((uint32_t)((int32_t)37)))))
{
goto IL_007c;
}
}
{
t320 * L_16 = V_0;
m2875(L_16, _stringLiteral861, NULL);
goto IL_00b5;
}
IL_007c:
{
bool L_17 = p1;
if (!L_17)
{
goto IL_009c;
}
}
{
uint16_t L_18 = V_5;
if ((!(((uint32_t)L_18) == ((uint32_t)((int32_t)63)))))
{
goto IL_009c;
}
}
{
t320 * L_19 = V_0;
m2875(L_19, _stringLiteral862, NULL);
goto IL_00b5;
}
IL_009c:
{
t320 * L_20 = V_0;
uint16_t L_21 = V_5;
m3906(L_20, L_21, NULL);
uint16_t L_22 = V_4;
if (!L_22)
{
goto IL_00b5;
}
}
{
t320 * L_23 = V_0;
uint16_t L_24 = V_4;
m3906(L_23, L_24, NULL);
}
IL_00b5:
{
int32_t L_25 = V_2;
V_2 = ((int32_t)((int32_t)L_25-(int32_t)1));
goto IL_00c6;
}
IL_00be:
{
t320 * L_26 = V_0;
uint16_t L_27 = V_3;
m3906(L_26, L_27, NULL);
}
IL_00c6:
{
int32_t L_28 = V_2;
V_2 = ((int32_t)((int32_t)L_28+(int32_t)1));
}
IL_00ca:
{
int32_t L_29 = V_2;
int32_t L_30 = V_1;
if ((((int32_t)L_29) < ((int32_t)L_30)))
{
goto IL_0020;
}
}
{
t320 * L_31 = V_0;
t15* L_32 = m1472(L_31, NULL);
return L_32;
}
}
extern TypeInfo* t781_TI_var;
extern TypeInfo* t15_TI_var;
extern TypeInfo* t193_TI_var;
extern Il2CppCodeGenString* _stringLiteral863;
extern Il2CppCodeGenString* _stringLiteral864;
extern "C" void m4848 (t781 * __this, t15* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
t193_TI_var = il2cpp_codegen_type_info_from_index(179);
_stringLiteral863 = il2cpp_codegen_string_literal_from_index(863);
_stringLiteral864 = il2cpp_codegen_string_literal_from_index(864);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
{
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_0 = ((t781_SFs*)t781_TI_var->static_fields)->f18;
__this->f2 = L_0;
__this->f4 = (-1);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_1 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
__this->f7 = L_1;
t15* L_2 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
__this->f6 = L_2;
__this->f9 = 1;
t15* L_3 = p0;
t193* L_4 = ((t193*)SZArrayNew(t193_TI_var, 1));
*((uint16_t*)(uint16_t*)SZArrayLdElema(L_4, 0, sizeof(uint16_t))) = (uint16_t)((int32_t)92);
t15* L_5 = m4970(L_3, L_4, NULL);
p0 = L_5;
t15* L_6 = p0;
int32_t L_7 = m1895(L_6, ((int32_t)92), NULL);
V_0 = L_7;
int32_t L_8 = V_0;
if ((((int32_t)L_8) <= ((int32_t)0)))
{
goto IL_0072;
}
}
{
t15* L_9 = p0;
int32_t L_10 = V_0;
t15* L_11 = m1867(L_9, L_10, NULL);
__this->f5 = L_11;
t15* L_12 = p0;
int32_t L_13 = V_0;
t15* L_14 = m1840(L_12, 0, L_13, NULL);
__this->f3 = L_14;
goto IL_0084;
}
IL_0072:
{
t15* L_15 = p0;
__this->f3 = L_15;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_16 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
__this->f5 = L_16;
}
IL_0084:
{
t15* L_17 = (__this->f5);
t15* L_18 = m2880(L_17, _stringLiteral863, _stringLiteral864, NULL);
__this->f5 = L_18;
return;
}
}
extern TypeInfo* t781_TI_var;
extern TypeInfo* t15_TI_var;
extern Il2CppCodeGenString* _stringLiteral865;
extern Il2CppCodeGenString* _stringLiteral863;
extern Il2CppCodeGenString* _stringLiteral864;
extern "C" t15* m4849 (t781 * __this, t15* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
_stringLiteral865 = il2cpp_codegen_string_literal_from_index(865);
_stringLiteral863 = il2cpp_codegen_string_literal_from_index(863);
_stringLiteral864 = il2cpp_codegen_string_literal_from_index(864);
s_Il2CppMethodIntialized = true;
}
{
t15* L_0 = p0;
int32_t L_1 = m1820(L_0, NULL);
if ((((int32_t)L_1) <= ((int32_t)2)))
{
goto IL_002e;
}
}
{
t15* L_2 = p0;
uint16_t L_3 = m1839(L_2, 2, NULL);
if ((((int32_t)L_3) == ((int32_t)((int32_t)92))))
{
goto IL_002e;
}
}
{
t15* L_4 = p0;
uint16_t L_5 = m1839(L_4, 2, NULL);
if ((((int32_t)L_5) == ((int32_t)((int32_t)47))))
{
goto IL_002e;
}
}
{
return _stringLiteral865;
}
IL_002e:
{
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_6 = ((t781_SFs*)t781_TI_var->static_fields)->f18;
__this->f2 = L_6;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_7 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
__this->f3 = L_7;
__this->f4 = (-1);
t15* L_8 = p0;
t15* L_9 = m2880(L_8, _stringLiteral863, _stringLiteral864, NULL);
__this->f5 = L_9;
t15* L_10 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
__this->f7 = L_10;
t15* L_11 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
__this->f6 = L_11;
return (t15*)NULL;
}
}
extern TypeInfo* t781_TI_var;
extern TypeInfo* t15_TI_var;
extern TypeInfo* t193_TI_var;
extern TypeInfo* t180_TI_var;
extern "C" void m4850 (t781 * __this, t15* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
t193_TI_var = il2cpp_codegen_type_info_from_index(179);
t180_TI_var = il2cpp_codegen_type_info_from_index(175);
s_Il2CppMethodIntialized = true;
}
{
__this->f0 = 1;
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_0 = ((t781_SFs*)t781_TI_var->static_fields)->f18;
__this->f2 = L_0;
__this->f4 = (-1);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_1 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
__this->f7 = L_1;
t15* L_2 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
__this->f6 = L_2;
t15* L_3 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
__this->f3 = L_3;
__this->f5 = (t15*)NULL;
t15* L_4 = p0;
int32_t L_5 = m1820(L_4, NULL);
if ((((int32_t)L_5) < ((int32_t)2)))
{
goto IL_008f;
}
}
{
t15* L_6 = p0;
uint16_t L_7 = m1839(L_6, 0, NULL);
if ((!(((uint32_t)L_7) == ((uint32_t)((int32_t)47)))))
{
goto IL_008f;
}
}
{
t15* L_8 = p0;
uint16_t L_9 = m1839(L_8, 1, NULL);
if ((!(((uint32_t)L_9) == ((uint32_t)((int32_t)47)))))
{
goto IL_008f;
}
}
{
t15* L_10 = p0;
t193* L_11 = ((t193*)SZArrayNew(t193_TI_var, 1));
*((uint16_t*)(uint16_t*)SZArrayLdElema(L_11, 0, sizeof(uint16_t))) = (uint16_t)((int32_t)47);
t15* L_12 = m4970(L_10, L_11, NULL);
p0 = L_12;
uint16_t L_13 = ((int32_t)47);
t14 * L_14 = Box(t180_TI_var, &L_13);
t15* L_15 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_16 = m1469(NULL, L_14, L_15, NULL);
__this->f5 = L_16;
}
IL_008f:
{
t15* L_17 = (__this->f5);
if (L_17)
{
goto IL_00a1;
}
}
{
t15* L_18 = p0;
__this->f5 = L_18;
}
IL_00a1:
{
return;
}
}
extern TypeInfo* t553_TI_var;
extern TypeInfo* t942_TI_var;
extern Il2CppCodeGenString* _stringLiteral866;
extern "C" void m4851 (t781 * __this, int32_t p0, t15* p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t553_TI_var = il2cpp_codegen_type_info_from_index(318);
t942_TI_var = il2cpp_codegen_type_info_from_index(614);
_stringLiteral866 = il2cpp_codegen_string_literal_from_index(866);
s_Il2CppMethodIntialized = true;
}
t15* V_0 = {0};
{
t15* L_0 = p1;
if (L_0)
{
goto IL_0011;
}
}
{
t553 * L_1 = (t553 *)il2cpp_codegen_object_new (t553_TI_var);
m2890(L_1, _stringLiteral866, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_1);
}
IL_0011:
{
int32_t L_2 = p0;
t15* L_3 = p1;
t15* L_4 = m4852(__this, L_2, L_3, NULL);
V_0 = L_4;
t15* L_5 = V_0;
if (!L_5)
{
goto IL_0027;
}
}
{
t15* L_6 = V_0;
t942 * L_7 = (t942 *)il2cpp_codegen_object_new (t942_TI_var);
m4864(L_7, L_6, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_7);
}
IL_0027:
{
return;
}
}
extern TypeInfo* t768_TI_var;
extern TypeInfo* t781_TI_var;
extern TypeInfo* t545_TI_var;
extern TypeInfo* t15_TI_var;
extern TypeInfo* t180_TI_var;
extern TypeInfo* t835_TI_var;
extern TypeInfo* t937_TI_var;
extern Il2CppCodeGenString* _stringLiteral867;
extern Il2CppCodeGenString* _stringLiteral868;
extern Il2CppCodeGenString* _stringLiteral869;
extern Il2CppCodeGenString* _stringLiteral870;
extern Il2CppCodeGenString* _stringLiteral871;
extern Il2CppCodeGenString* _stringLiteral872;
extern Il2CppCodeGenString* _stringLiteral873;
extern Il2CppCodeGenString* _stringLiteral864;
extern Il2CppCodeGenString* _stringLiteral874;
extern Il2CppCodeGenString* _stringLiteral875;
extern Il2CppCodeGenString* _stringLiteral876;
extern Il2CppCodeGenString* _stringLiteral182;
extern Il2CppCodeGenString* _stringLiteral183;
extern Il2CppCodeGenString* _stringLiteral877;
extern Il2CppCodeGenString* _stringLiteral189;
extern "C" t15* m4852 (t781 * __this, int32_t p0, t15* p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t768_TI_var = il2cpp_codegen_type_info_from_index(403);
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
t545_TI_var = il2cpp_codegen_type_info_from_index(362);
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
t180_TI_var = il2cpp_codegen_type_info_from_index(175);
t835_TI_var = il2cpp_codegen_type_info_from_index(514);
t937_TI_var = il2cpp_codegen_type_info_from_index(617);
_stringLiteral867 = il2cpp_codegen_string_literal_from_index(867);
_stringLiteral868 = il2cpp_codegen_string_literal_from_index(868);
_stringLiteral869 = il2cpp_codegen_string_literal_from_index(869);
_stringLiteral870 = il2cpp_codegen_string_literal_from_index(870);
_stringLiteral871 = il2cpp_codegen_string_literal_from_index(871);
_stringLiteral872 = il2cpp_codegen_string_literal_from_index(872);
_stringLiteral873 = il2cpp_codegen_string_literal_from_index(873);
_stringLiteral864 = il2cpp_codegen_string_literal_from_index(864);
_stringLiteral874 = il2cpp_codegen_string_literal_from_index(874);
_stringLiteral875 = il2cpp_codegen_string_literal_from_index(875);
_stringLiteral876 = il2cpp_codegen_string_literal_from_index(876);
_stringLiteral182 = il2cpp_codegen_string_literal_from_index(182);
_stringLiteral183 = il2cpp_codegen_string_literal_from_index(183);
_stringLiteral877 = il2cpp_codegen_string_literal_from_index(877);
_stringLiteral189 = il2cpp_codegen_string_literal_from_index(189);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
t15* V_2 = {0};
int32_t V_3 = 0;
int32_t V_4 = 0;
bool V_5 = false;
bool V_6 = false;
bool V_7 = false;
int32_t V_8 = 0;
int32_t V_9 = 0;
t15* V_10 = {0};
bool V_11 = false;
t835 * V_12 = {0};
t942 * V_13 = {0};
int32_t G_B50_0 = 0;
int32_t G_B55_0 = 0;
int32_t G_B57_0 = 0;
int32_t G_B139_0 = 0;
{
t15* L_0 = p1;
t15* L_1 = m2873(L_0, NULL);
p1 = L_1;
t15* L_2 = p1;
int32_t L_3 = m1820(L_2, NULL);
V_0 = L_3;
int32_t L_4 = V_0;
if (L_4)
{
goto IL_002b;
}
}
{
int32_t L_5 = p0;
if ((((int32_t)L_5) == ((int32_t)2)))
{
goto IL_0022;
}
}
{
int32_t L_6 = p0;
if (L_6)
{
goto IL_002b;
}
}
IL_0022:
{
__this->f11 = 0;
return (t15*)NULL;
}
IL_002b:
{
int32_t L_7 = V_0;
if ((((int32_t)L_7) > ((int32_t)1)))
{
goto IL_003f;
}
}
{
int32_t L_8 = p0;
if ((((int32_t)L_8) == ((int32_t)2)))
{
goto IL_003f;
}
}
{
return _stringLiteral867;
}
IL_003f:
{
V_1 = 0;
t15* L_9 = p1;
int32_t L_10 = m1895(L_9, ((int32_t)58), NULL);
V_1 = L_10;
int32_t L_11 = V_1;
if (L_11)
{
goto IL_0056;
}
}
{
return _stringLiteral868;
}
IL_0056:
{
int32_t L_12 = V_1;
if ((((int32_t)L_12) >= ((int32_t)0)))
{
goto IL_00d5;
}
}
{
t15* L_13 = p1;
uint16_t L_14 = m1839(L_13, 0, NULL);
if ((!(((uint32_t)L_14) == ((uint32_t)((int32_t)47)))))
{
goto IL_0091;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t768_TI_var);
uint16_t L_15 = ((t768_SFs*)t768_TI_var->static_fields)->f2;
if ((!(((uint32_t)L_15) == ((uint32_t)((int32_t)47)))))
{
goto IL_0091;
}
}
{
t15* L_16 = p1;
m4850(__this, L_16, NULL);
int32_t L_17 = p0;
if ((!(((uint32_t)L_17) == ((uint32_t)2))))
{
goto IL_008c;
}
}
{
__this->f11 = 0;
}
IL_008c:
{
goto IL_00d3;
}
IL_0091:
{
t15* L_18 = p1;
int32_t L_19 = m1820(L_18, NULL);
if ((((int32_t)L_19) < ((int32_t)2)))
{
goto IL_00c5;
}
}
{
t15* L_20 = p1;
uint16_t L_21 = m1839(L_20, 0, NULL);
if ((!(((uint32_t)L_21) == ((uint32_t)((int32_t)92)))))
{
goto IL_00c5;
}
}
{
t15* L_22 = p1;
uint16_t L_23 = m1839(L_22, 1, NULL);
if ((!(((uint32_t)L_23) == ((uint32_t)((int32_t)92)))))
{
goto IL_00c5;
}
}
{
t15* L_24 = p1;
m4848(__this, L_24, NULL);
goto IL_00d3;
}
IL_00c5:
{
__this->f11 = 0;
t15* L_25 = p1;
__this->f5 = L_25;
}
IL_00d3:
{
return (t15*)NULL;
}
IL_00d5:
{
int32_t L_26 = V_1;
if ((!(((uint32_t)L_26) == ((uint32_t)1))))
{
goto IL_0105;
}
}
{
t15* L_27 = p1;
uint16_t L_28 = m1839(L_27, 0, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
bool L_29 = m4832(NULL, L_28, NULL);
if (L_29)
{
goto IL_00f3;
}
}
{
return _stringLiteral869;
}
IL_00f3:
{
t15* L_30 = p1;
t15* L_31 = m4849(__this, L_30, NULL);
V_2 = L_31;
t15* L_32 = V_2;
if (!L_32)
{
goto IL_0103;
}
}
{
t15* L_33 = V_2;
return L_33;
}
IL_0103:
{
return (t15*)NULL;
}
IL_0105:
{
t15* L_34 = p1;
int32_t L_35 = V_1;
t15* L_36 = m1840(L_34, 0, L_35, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t545_TI_var);
t545 * L_37 = m3878(NULL, NULL);
t15* L_38 = m4969(L_36, L_37, NULL);
__this->f2 = L_38;
t15* L_39 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
bool L_40 = m4831(NULL, L_39, NULL);
if (L_40)
{
goto IL_0138;
}
}
{
t15* L_41 = m4001(NULL, _stringLiteral870, NULL);
return L_41;
}
IL_0138:
{
int32_t L_42 = V_1;
V_3 = ((int32_t)((int32_t)L_42+(int32_t)1));
t15* L_43 = p1;
int32_t L_44 = m1820(L_43, NULL);
V_4 = L_44;
t15* L_45 = p1;
int32_t L_46 = V_3;
int32_t L_47 = m3999(L_45, ((int32_t)35), L_46, NULL);
V_1 = L_47;
bool L_48 = m4825(__this, NULL);
if (L_48)
{
goto IL_019e;
}
}
{
int32_t L_49 = V_1;
if ((((int32_t)L_49) == ((int32_t)(-1))))
{
goto IL_019e;
}
}
{
bool L_50 = (__this->f12);
if (!L_50)
{
goto IL_017d;
}
}
{
t15* L_51 = p1;
int32_t L_52 = V_1;
t15* L_53 = m1867(L_51, L_52, NULL);
__this->f7 = L_53;
goto IL_019b;
}
IL_017d:
{
t15* L_54 = p1;
int32_t L_55 = V_1;
t15* L_56 = m1867(L_54, ((int32_t)((int32_t)L_55+(int32_t)1)), NULL);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_57 = m4843(NULL, L_56, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_58 = m1701(NULL, _stringLiteral871, L_57, NULL);
__this->f7 = L_58;
}
IL_019b:
{
int32_t L_59 = V_1;
V_4 = L_59;
}
IL_019e:
{
t15* L_60 = p1;
int32_t L_61 = V_3;
int32_t L_62 = V_4;
int32_t L_63 = V_3;
int32_t L_64 = m4971(L_60, ((int32_t)63), L_61, ((int32_t)((int32_t)L_62-(int32_t)L_63)), NULL);
V_1 = L_64;
int32_t L_65 = V_1;
if ((((int32_t)L_65) == ((int32_t)(-1))))
{
goto IL_01e3;
}
}
{
t15* L_66 = p1;
int32_t L_67 = V_1;
int32_t L_68 = V_4;
int32_t L_69 = V_1;
t15* L_70 = m1840(L_66, L_67, ((int32_t)((int32_t)L_68-(int32_t)L_69)), NULL);
__this->f6 = L_70;
int32_t L_71 = V_1;
V_4 = L_71;
bool L_72 = (__this->f12);
if (L_72)
{
goto IL_01e3;
}
}
{
t15* L_73 = (__this->f6);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_74 = m4843(NULL, L_73, NULL);
__this->f6 = L_74;
}
IL_01e3:
{
t15* L_75 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
bool L_76 = m4859(NULL, L_75, NULL);
if (!L_76)
{
goto IL_0255;
}
}
{
t15* L_77 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_78 = ((t781_SFs*)t781_TI_var->static_fields)->f23;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_79 = m1838(NULL, L_77, L_78, NULL);
if (!L_79)
{
goto IL_0255;
}
}
{
t15* L_80 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_81 = ((t781_SFs*)t781_TI_var->static_fields)->f24;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_82 = m1838(NULL, L_80, L_81, NULL);
if (!L_82)
{
goto IL_0255;
}
}
{
int32_t L_83 = V_4;
int32_t L_84 = V_3;
if ((((int32_t)((int32_t)((int32_t)L_83-(int32_t)L_84))) < ((int32_t)2)))
{
goto IL_024f;
}
}
{
int32_t L_85 = V_4;
int32_t L_86 = V_3;
if ((((int32_t)((int32_t)((int32_t)L_85-(int32_t)L_86))) < ((int32_t)2)))
{
goto IL_0255;
}
}
{
t15* L_87 = p1;
int32_t L_88 = V_3;
uint16_t L_89 = m1839(L_87, L_88, NULL);
if ((!(((uint32_t)L_89) == ((uint32_t)((int32_t)47)))))
{
goto IL_0255;
}
}
{
t15* L_90 = p1;
int32_t L_91 = V_3;
uint16_t L_92 = m1839(L_90, ((int32_t)((int32_t)L_91+(int32_t)1)), NULL);
if ((((int32_t)L_92) == ((int32_t)((int32_t)47))))
{
goto IL_0255;
}
}
IL_024f:
{
return _stringLiteral872;
}
IL_0255:
{
int32_t L_93 = V_4;
int32_t L_94 = V_3;
if ((((int32_t)((int32_t)((int32_t)L_93-(int32_t)L_94))) < ((int32_t)2)))
{
goto IL_027c;
}
}
{
t15* L_95 = p1;
int32_t L_96 = V_3;
uint16_t L_97 = m1839(L_95, L_96, NULL);
if ((!(((uint32_t)L_97) == ((uint32_t)((int32_t)47)))))
{
goto IL_027c;
}
}
{
t15* L_98 = p1;
int32_t L_99 = V_3;
uint16_t L_100 = m1839(L_98, ((int32_t)((int32_t)L_99+(int32_t)1)), NULL);
G_B50_0 = ((((int32_t)L_100) == ((int32_t)((int32_t)47)))? 1 : 0);
goto IL_027d;
}
IL_027c:
{
G_B50_0 = 0;
}
IL_027d:
{
V_5 = G_B50_0;
t15* L_101 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_102 = ((t781_SFs*)t781_TI_var->static_fields)->f18;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_103 = m52(NULL, L_101, L_102, NULL);
if (!L_103)
{
goto IL_02b7;
}
}
{
bool L_104 = V_5;
if (!L_104)
{
goto IL_02b7;
}
}
{
int32_t L_105 = V_4;
int32_t L_106 = V_3;
if ((((int32_t)((int32_t)((int32_t)L_105-(int32_t)L_106))) == ((int32_t)2)))
{
goto IL_02b4;
}
}
{
t15* L_107 = p1;
int32_t L_108 = V_3;
uint16_t L_109 = m1839(L_107, ((int32_t)((int32_t)L_108+(int32_t)2)), NULL);
G_B55_0 = ((((int32_t)L_109) == ((int32_t)((int32_t)47)))? 1 : 0);
goto IL_02b5;
}
IL_02b4:
{
G_B55_0 = 1;
}
IL_02b5:
{
G_B57_0 = G_B55_0;
goto IL_02b8;
}
IL_02b7:
{
G_B57_0 = 0;
}
IL_02b8:
{
V_6 = G_B57_0;
V_7 = 0;
bool L_110 = V_5;
if (!L_110)
{
goto IL_03a8;
}
}
{
int32_t L_111 = p0;
if ((!(((uint32_t)L_111) == ((uint32_t)2))))
{
goto IL_02d1;
}
}
{
return _stringLiteral873;
}
IL_02d1:
{
t15* L_112 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_113 = ((t781_SFs*)t781_TI_var->static_fields)->f23;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_114 = m1838(NULL, L_112, L_113, NULL);
if (!L_114)
{
goto IL_02ff;
}
}
{
t15* L_115 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_116 = ((t781_SFs*)t781_TI_var->static_fields)->f24;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_117 = m1838(NULL, L_115, L_116, NULL);
if (!L_117)
{
goto IL_02ff;
}
}
{
int32_t L_118 = V_3;
V_3 = ((int32_t)((int32_t)L_118+(int32_t)2));
}
IL_02ff:
{
t15* L_119 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_120 = ((t781_SFs*)t781_TI_var->static_fields)->f18;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_121 = m52(NULL, L_119, L_120, NULL);
if (!L_121)
{
goto IL_0383;
}
}
{
V_8 = 2;
int32_t L_122 = V_3;
V_9 = L_122;
goto IL_033f;
}
IL_031f:
{
t15* L_123 = p1;
int32_t L_124 = V_9;
uint16_t L_125 = m1839(L_123, L_124, NULL);
if ((((int32_t)L_125) == ((int32_t)((int32_t)47))))
{
goto IL_0333;
}
}
{
goto IL_0348;
}
IL_0333:
{
int32_t L_126 = V_8;
V_8 = ((int32_t)((int32_t)L_126+(int32_t)1));
int32_t L_127 = V_9;
V_9 = ((int32_t)((int32_t)L_127+(int32_t)1));
}
IL_033f:
{
int32_t L_128 = V_9;
int32_t L_129 = V_4;
if ((((int32_t)L_128) < ((int32_t)L_129)))
{
goto IL_031f;
}
}
IL_0348:
{
int32_t L_130 = V_8;
if ((((int32_t)L_130) < ((int32_t)4)))
{
goto IL_0377;
}
}
{
V_6 = 0;
goto IL_035c;
}
IL_0358:
{
int32_t L_131 = V_3;
V_3 = ((int32_t)((int32_t)L_131+(int32_t)1));
}
IL_035c:
{
int32_t L_132 = V_3;
int32_t L_133 = V_4;
if ((((int32_t)L_132) >= ((int32_t)L_133)))
{
goto IL_0372;
}
}
{
t15* L_134 = p1;
int32_t L_135 = V_3;
uint16_t L_136 = m1839(L_134, L_135, NULL);
if ((((int32_t)L_136) == ((int32_t)((int32_t)47))))
{
goto IL_0358;
}
}
IL_0372:
{
goto IL_0383;
}
IL_0377:
{
int32_t L_137 = V_8;
if ((((int32_t)L_137) < ((int32_t)3)))
{
goto IL_0383;
}
}
{
int32_t L_138 = V_3;
V_3 = ((int32_t)((int32_t)L_138+(int32_t)1));
}
IL_0383:
{
int32_t L_139 = V_4;
int32_t L_140 = V_3;
if ((((int32_t)((int32_t)((int32_t)L_139-(int32_t)L_140))) <= ((int32_t)1)))
{
goto IL_03a3;
}
}
{
t15* L_141 = p1;
int32_t L_142 = V_3;
uint16_t L_143 = m1839(L_141, ((int32_t)((int32_t)L_142+(int32_t)1)), NULL);
if ((!(((uint32_t)L_143) == ((uint32_t)((int32_t)58)))))
{
goto IL_03a3;
}
}
{
V_6 = 0;
V_7 = 1;
}
IL_03a3:
{
goto IL_03d2;
}
IL_03a8:
{
t15* L_144 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
bool L_145 = m4859(NULL, L_144, NULL);
if (L_145)
{
goto IL_03d2;
}
}
{
t15* L_146 = p1;
int32_t L_147 = V_3;
int32_t L_148 = V_4;
int32_t L_149 = V_3;
t15* L_150 = m1840(L_146, L_147, ((int32_t)((int32_t)L_148-(int32_t)L_149)), NULL);
__this->f5 = L_150;
__this->f10 = 1;
return (t15*)NULL;
}
IL_03d2:
{
bool L_151 = V_6;
if (!L_151)
{
goto IL_03e0;
}
}
{
V_1 = (-1);
goto IL_040a;
}
IL_03e0:
{
t15* L_152 = p1;
int32_t L_153 = V_3;
int32_t L_154 = V_4;
int32_t L_155 = V_3;
int32_t L_156 = m4971(L_152, ((int32_t)47), L_153, ((int32_t)((int32_t)L_154-(int32_t)L_155)), NULL);
V_1 = L_156;
int32_t L_157 = V_1;
if ((!(((uint32_t)L_157) == ((uint32_t)(-1)))))
{
goto IL_040a;
}
}
{
bool L_158 = V_7;
if (!L_158)
{
goto IL_040a;
}
}
{
t15* L_159 = p1;
int32_t L_160 = V_3;
int32_t L_161 = V_4;
int32_t L_162 = V_3;
int32_t L_163 = m4971(L_159, ((int32_t)92), L_160, ((int32_t)((int32_t)L_161-(int32_t)L_162)), NULL);
V_1 = L_163;
}
IL_040a:
{
int32_t L_164 = V_1;
if ((!(((uint32_t)L_164) == ((uint32_t)(-1)))))
{
goto IL_044b;
}
}
{
t15* L_165 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_166 = ((t781_SFs*)t781_TI_var->static_fields)->f23;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_167 = m1838(NULL, L_165, L_166, NULL);
if (!L_167)
{
goto IL_0446;
}
}
{
t15* L_168 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_169 = ((t781_SFs*)t781_TI_var->static_fields)->f24;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_170 = m1838(NULL, L_168, L_169, NULL);
if (!L_170)
{
goto IL_0446;
}
}
{
__this->f5 = _stringLiteral864;
}
IL_0446:
{
goto IL_045f;
}
IL_044b:
{
t15* L_171 = p1;
int32_t L_172 = V_1;
int32_t L_173 = V_4;
int32_t L_174 = V_1;
t15* L_175 = m1840(L_171, L_172, ((int32_t)((int32_t)L_173-(int32_t)L_174)), NULL);
__this->f5 = L_175;
int32_t L_176 = V_1;
V_4 = L_176;
}
IL_045f:
{
bool L_177 = V_6;
if (!L_177)
{
goto IL_046d;
}
}
{
V_1 = (-1);
goto IL_047b;
}
IL_046d:
{
t15* L_178 = p1;
int32_t L_179 = V_3;
int32_t L_180 = V_4;
int32_t L_181 = V_3;
int32_t L_182 = m4971(L_178, ((int32_t)64), L_179, ((int32_t)((int32_t)L_180-(int32_t)L_181)), NULL);
V_1 = L_182;
}
IL_047b:
{
int32_t L_183 = V_1;
if ((((int32_t)L_183) == ((int32_t)(-1))))
{
goto IL_0496;
}
}
{
t15* L_184 = p1;
int32_t L_185 = V_3;
int32_t L_186 = V_1;
int32_t L_187 = V_3;
t15* L_188 = m1840(L_184, L_185, ((int32_t)((int32_t)L_186-(int32_t)L_187)), NULL);
__this->f8 = L_188;
int32_t L_189 = V_1;
V_3 = ((int32_t)((int32_t)L_189+(int32_t)1));
}
IL_0496:
{
__this->f4 = (-1);
bool L_190 = V_6;
if (!L_190)
{
goto IL_04ab;
}
}
{
V_1 = (-1);
goto IL_04bc;
}
IL_04ab:
{
t15* L_191 = p1;
int32_t L_192 = V_4;
int32_t L_193 = V_4;
int32_t L_194 = V_3;
int32_t L_195 = m4972(L_191, ((int32_t)58), ((int32_t)((int32_t)L_192-(int32_t)1)), ((int32_t)((int32_t)L_193-(int32_t)L_194)), NULL);
V_1 = L_195;
}
IL_04bc:
{
int32_t L_196 = V_1;
if ((((int32_t)L_196) == ((int32_t)(-1))))
{
goto IL_0566;
}
}
{
int32_t L_197 = V_1;
int32_t L_198 = V_4;
if ((((int32_t)L_197) == ((int32_t)((int32_t)((int32_t)L_198-(int32_t)1)))))
{
goto IL_0566;
}
}
{
t15* L_199 = p1;
int32_t L_200 = V_1;
int32_t L_201 = V_4;
int32_t L_202 = V_1;
t15* L_203 = m1840(L_199, ((int32_t)((int32_t)L_200+(int32_t)1)), ((int32_t)((int32_t)L_201-(int32_t)((int32_t)((int32_t)L_202+(int32_t)1)))), NULL);
V_10 = L_203;
t15* L_204 = V_10;
int32_t L_205 = m1820(L_204, NULL);
if ((((int32_t)L_205) <= ((int32_t)0)))
{
goto IL_0544;
}
}
{
t15* L_206 = V_10;
t15* L_207 = V_10;
int32_t L_208 = m1820(L_207, NULL);
uint16_t L_209 = m1839(L_206, ((int32_t)((int32_t)L_208-(int32_t)1)), NULL);
if ((((int32_t)L_209) == ((int32_t)((int32_t)93))))
{
goto IL_0544;
}
}
{
t15* L_210 = V_10;
IL2CPP_RUNTIME_CLASS_INIT(t545_TI_var);
t545 * L_211 = m3878(NULL, NULL);
int32_t* L_212 = &(__this->f4);
bool L_213 = m4912(NULL, L_210, 7, L_211, L_212, NULL);
if (!L_213)
{
goto IL_0536;
}
}
{
int32_t L_214 = (__this->f4);
if ((((int32_t)L_214) < ((int32_t)0)))
{
goto IL_0536;
}
}
{
int32_t L_215 = (__this->f4);
if ((((int32_t)L_215) <= ((int32_t)((int32_t)65535))))
{
goto IL_053c;
}
}
IL_0536:
{
return _stringLiteral874;
}
IL_053c:
{
int32_t L_216 = V_1;
V_4 = L_216;
goto IL_0561;
}
IL_0544:
{
int32_t L_217 = (__this->f4);
if ((!(((uint32_t)L_217) == ((uint32_t)(-1)))))
{
goto IL_0561;
}
}
{
t15* L_218 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
int32_t L_219 = m4857(NULL, L_218, NULL);
__this->f4 = L_219;
}
IL_0561:
{
goto IL_0583;
}
IL_0566:
{
int32_t L_220 = (__this->f4);
if ((!(((uint32_t)L_220) == ((uint32_t)(-1)))))
{
goto IL_0583;
}
}
{
t15* L_221 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
int32_t L_222 = m4857(NULL, L_221, NULL);
__this->f4 = L_222;
}
IL_0583:
{
t15* L_223 = p1;
int32_t L_224 = V_3;
int32_t L_225 = V_4;
int32_t L_226 = V_3;
t15* L_227 = m1840(L_223, L_224, ((int32_t)((int32_t)L_225-(int32_t)L_226)), NULL);
p1 = L_227;
t15* L_228 = p1;
__this->f3 = L_228;
bool L_229 = V_6;
if (!L_229)
{
goto IL_05c7;
}
}
{
uint16_t L_230 = ((int32_t)47);
t14 * L_231 = Box(t180_TI_var, &L_230);
t15* L_232 = p1;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_233 = m1469(NULL, L_231, L_232, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_234 = m4854(NULL, L_233, 1, NULL);
__this->f5 = L_234;
t15* L_235 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
__this->f3 = L_235;
goto IL_071c;
}
IL_05c7:
{
t15* L_236 = (__this->f3);
int32_t L_237 = m1820(L_236, NULL);
if ((!(((uint32_t)L_237) == ((uint32_t)2))))
{
goto IL_0612;
}
}
{
t15* L_238 = (__this->f3);
uint16_t L_239 = m1839(L_238, 1, NULL);
if ((!(((uint32_t)L_239) == ((uint32_t)((int32_t)58)))))
{
goto IL_0612;
}
}
{
t15* L_240 = (__this->f3);
t15* L_241 = (__this->f5);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_242 = m1701(NULL, L_240, L_241, NULL);
__this->f5 = L_242;
t15* L_243 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
__this->f3 = L_243;
goto IL_071c;
}
IL_0612:
{
bool L_244 = (__this->f0);
if (!L_244)
{
goto IL_063a;
}
}
{
t15* L_245 = p1;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_246 = m1701(NULL, _stringLiteral875, L_245, NULL);
p1 = L_246;
t15* L_247 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
__this->f3 = L_247;
goto IL_071c;
}
IL_063a:
{
t15* L_248 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_249 = ((t781_SFs*)t781_TI_var->static_fields)->f18;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_250 = m52(NULL, L_248, L_249, NULL);
if (!L_250)
{
goto IL_065b;
}
}
{
__this->f9 = 1;
goto IL_071c;
}
IL_065b:
{
t15* L_251 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_252 = ((t781_SFs*)t781_TI_var->static_fields)->f24;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_253 = m52(NULL, L_251, L_252, NULL);
if (!L_253)
{
goto IL_069d;
}
}
{
t15* L_254 = (__this->f3);
int32_t L_255 = m1820(L_254, NULL);
if ((((int32_t)L_255) <= ((int32_t)0)))
{
goto IL_0698;
}
}
{
t15* L_256 = (__this->f3);
__this->f5 = L_256;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_257 = ((t15_SFs*)t15_TI_var->static_fields)->f2;
__this->f3 = L_257;
}
IL_0698:
{
goto IL_071c;
}
IL_069d:
{
t15* L_258 = (__this->f3);
int32_t L_259 = m1820(L_258, NULL);
if (L_259)
{
goto IL_071c;
}
}
{
t15* L_260 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_261 = ((t781_SFs*)t781_TI_var->static_fields)->f21;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_262 = m52(NULL, L_260, L_261, NULL);
if (L_262)
{
goto IL_0716;
}
}
{
t15* L_263 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_264 = ((t781_SFs*)t781_TI_var->static_fields)->f20;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_265 = m52(NULL, L_263, L_264, NULL);
if (L_265)
{
goto IL_0716;
}
}
{
t15* L_266 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_267 = ((t781_SFs*)t781_TI_var->static_fields)->f25;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_268 = m52(NULL, L_266, L_267, NULL);
if (L_268)
{
goto IL_0716;
}
}
{
t15* L_269 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_270 = ((t781_SFs*)t781_TI_var->static_fields)->f22;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_271 = m52(NULL, L_269, L_270, NULL);
if (L_271)
{
goto IL_0716;
}
}
{
t15* L_272 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_273 = ((t781_SFs*)t781_TI_var->static_fields)->f19;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_274 = m52(NULL, L_272, L_273, NULL);
if (!L_274)
{
goto IL_071c;
}
}
IL_0716:
{
return _stringLiteral876;
}
IL_071c:
{
t15* L_275 = (__this->f3);
int32_t L_276 = m1820(L_275, NULL);
if ((((int32_t)L_276) <= ((int32_t)0)))
{
goto IL_073d;
}
}
{
t15* L_277 = (__this->f3);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
int32_t L_278 = m4828(NULL, L_277, NULL);
G_B139_0 = ((((int32_t)L_278) == ((int32_t)0))? 1 : 0);
goto IL_073e;
}
IL_073d:
{
G_B139_0 = 0;
}
IL_073e:
{
V_11 = G_B139_0;
bool L_279 = V_11;
if (L_279)
{
goto IL_07c1;
}
}
{
t15* L_280 = (__this->f3);
int32_t L_281 = m1820(L_280, NULL);
if ((((int32_t)L_281) <= ((int32_t)1)))
{
goto IL_07c1;
}
}
{
t15* L_282 = (__this->f3);
uint16_t L_283 = m1839(L_282, 0, NULL);
if ((!(((uint32_t)L_283) == ((uint32_t)((int32_t)91)))))
{
goto IL_07c1;
}
}
{
t15* L_284 = (__this->f3);
t15* L_285 = (__this->f3);
int32_t L_286 = m1820(L_285, NULL);
uint16_t L_287 = m1839(L_284, ((int32_t)((int32_t)L_286-(int32_t)1)), NULL);
if ((!(((uint32_t)L_287) == ((uint32_t)((int32_t)93)))))
{
goto IL_07c1;
}
}
{
t15* L_288 = (__this->f3);
IL2CPP_RUNTIME_CLASS_INIT(t835_TI_var);
bool L_289 = m4141(NULL, L_288, (&V_12), NULL);
if (!L_289)
{
goto IL_07be;
}
}
{
t835 * L_290 = V_12;
t15* L_291 = m4151(L_290, 1, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_292 = m1807(NULL, _stringLiteral182, L_291, _stringLiteral183, NULL);
__this->f3 = L_292;
goto IL_07c1;
}
IL_07be:
{
V_11 = 1;
}
IL_07c1:
{
bool L_293 = V_11;
if (!L_293)
{
goto IL_07fe;
}
}
{
t938 * L_294 = m4860(__this, NULL);
if (((t937 *)IsInstClass(L_294, t937_TI_var)))
{
goto IL_07e3;
}
}
{
t938 * L_295 = m4860(__this, NULL);
if (L_295)
{
goto IL_07fe;
}
}
IL_07e3:
{
t15* L_296 = (__this->f3);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
t15* L_297 = m1807(NULL, _stringLiteral877, L_296, _stringLiteral189, NULL);
t15* L_298 = m4001(NULL, L_297, NULL);
return L_298;
}
IL_07fe:
{
V_13 = (t942 *)NULL;
t938 * L_299 = m4860(__this, NULL);
if (!L_299)
{
goto IL_081a;
}
}
{
t938 * L_300 = m4860(__this, NULL);
VirtActionInvoker2< t781 *, t942 ** >::Invoke(4 /* System.Void System.UriParser::InitializeAndValidate(System.Uri,System.UriFormatException&) */, L_300, __this, (&V_13));
}
IL_081a:
{
t942 * L_301 = V_13;
if (!L_301)
{
goto IL_0829;
}
}
{
t942 * L_302 = V_13;
t15* L_303 = (t15*)VirtFuncInvoker0< t15* >::Invoke(6 /* System.String System.Exception::get_Message() */, L_302);
return L_303;
}
IL_0829:
{
t15* L_304 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_305 = ((t781_SFs*)t781_TI_var->static_fields)->f23;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_306 = m1838(NULL, L_304, L_305, NULL);
if (!L_306)
{
goto IL_0884;
}
}
{
t15* L_307 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_308 = ((t781_SFs*)t781_TI_var->static_fields)->f24;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_309 = m1838(NULL, L_307, L_308, NULL);
if (!L_309)
{
goto IL_0884;
}
}
{
t15* L_310 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_311 = ((t781_SFs*)t781_TI_var->static_fields)->f18;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_312 = m1838(NULL, L_310, L_311, NULL);
if (!L_312)
{
goto IL_0884;
}
}
{
t15* L_313 = (__this->f5);
t15* L_314 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
bool L_315 = m4853(NULL, L_314, NULL);
t15* L_316 = m4854(NULL, L_313, L_315, NULL);
__this->f5 = L_316;
}
IL_0884:
{
return (t15*)NULL;
}
}
extern TypeInfo* t781_TI_var;
extern TypeInfo* t194_TI_var;
extern const MethodInfo* m1857_MI_var;
extern Il2CppCodeGenString* _stringLiteral696;
extern Il2CppCodeGenString* _stringLiteral637;
extern Il2CppCodeGenString* _stringLiteral636;
extern Il2CppCodeGenString* _stringLiteral853;
extern Il2CppCodeGenString* _stringLiteral854;
extern "C" bool m4853 (t14 * __this , t15* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
t194_TI_var = il2cpp_codegen_type_info_from_index(195);
m1857_MI_var = il2cpp_codegen_method_info_from_index(2147483846);
_stringLiteral696 = il2cpp_codegen_string_literal_from_index(696);
_stringLiteral637 = il2cpp_codegen_string_literal_from_index(637);
_stringLiteral636 = il2cpp_codegen_string_literal_from_index(636);
_stringLiteral853 = il2cpp_codegen_string_literal_from_index(853);
_stringLiteral854 = il2cpp_codegen_string_literal_from_index(854);
s_Il2CppMethodIntialized = true;
}
t15* V_0 = {0};
t194 * V_1 = {0};
int32_t V_2 = 0;
{
t15* L_0 = p0;
V_0 = L_0;
t15* L_1 = V_0;
if (!L_1)
{
goto IL_007a;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t194 * L_2 = ((t781_SFs*)t781_TI_var->static_fields)->f31;
if (L_2)
{
goto IL_005b;
}
}
{
t194 * L_3 = (t194 *)il2cpp_codegen_object_new (t194_TI_var);
m1857(L_3, 5, m1857_MI_var);
V_1 = L_3;
t194 * L_4 = V_1;
VirtActionInvoker2< t15*, int32_t >::Invoke(27 /* System.Void System.Collections.Generic.Dictionary`2<System.String,System.Int32>::Add(!0,!1) */, L_4, _stringLiteral696, 0);
t194 * L_5 = V_1;
VirtActionInvoker2< t15*, int32_t >::Invoke(27 /* System.Void System.Collections.Generic.Dictionary`2<System.String,System.Int32>::Add(!0,!1) */, L_5, _stringLiteral637, 0);
t194 * L_6 = V_1;
VirtActionInvoker2< t15*, int32_t >::Invoke(27 /* System.Void System.Collections.Generic.Dictionary`2<System.String,System.Int32>::Add(!0,!1) */, L_6, _stringLiteral636, 0);
t194 * L_7 = V_1;
VirtActionInvoker2< t15*, int32_t >::Invoke(27 /* System.Void System.Collections.Generic.Dictionary`2<System.String,System.Int32>::Add(!0,!1) */, L_7, _stringLiteral853, 0);
t194 * L_8 = V_1;
VirtActionInvoker2< t15*, int32_t >::Invoke(27 /* System.Void System.Collections.Generic.Dictionary`2<System.String,System.Int32>::Add(!0,!1) */, L_8, _stringLiteral854, 0);
t194 * L_9 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
((t781_SFs*)t781_TI_var->static_fields)->f31 = L_9;
}
IL_005b:
{
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t194 * L_10 = ((t781_SFs*)t781_TI_var->static_fields)->f31;
t15* L_11 = V_0;
bool L_12 = (bool)VirtFuncInvoker2< bool, t15*, int32_t* >::Invoke(32 /* System.Boolean System.Collections.Generic.Dictionary`2<System.String,System.Int32>::TryGetValue(!0,!1&) */, L_10, L_11, (&V_2));
if (!L_12)
{
goto IL_007a;
}
}
{
int32_t L_13 = V_2;
if (!L_13)
{
goto IL_0078;
}
}
{
goto IL_007a;
}
IL_0078:
{
return 1;
}
IL_007a:
{
return 0;
}
}
extern TypeInfo* t15_TI_var;
extern TypeInfo* t320_TI_var;
extern TypeInfo* t180_TI_var;
extern TypeInfo* t603_TI_var;
extern TypeInfo* t306_TI_var;
extern TypeInfo* t328_TI_var;
extern Il2CppCodeGenString* _stringLiteral864;
extern Il2CppCodeGenString* _stringLiteral97;
extern Il2CppCodeGenString* _stringLiteral878;
extern "C" t15* m4854 (t14 * __this , t15* p0, bool p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
t320_TI_var = il2cpp_codegen_type_info_from_index(24);
t180_TI_var = il2cpp_codegen_type_info_from_index(175);
t603_TI_var = il2cpp_codegen_type_info_from_index(358);
t306_TI_var = il2cpp_codegen_type_info_from_index(283);
t328_TI_var = il2cpp_codegen_type_info_from_index(86);
_stringLiteral864 = il2cpp_codegen_string_literal_from_index(864);
_stringLiteral97 = il2cpp_codegen_string_literal_from_index(97);
_stringLiteral878 = il2cpp_codegen_string_literal_from_index(878);
s_Il2CppMethodIntialized = true;
}
t320 * V_0 = {0};
int32_t V_1 = 0;
uint16_t V_2 = 0x0;
uint16_t V_3 = 0x0;
uint16_t V_4 = 0x0;
t603 * V_5 = {0};
int32_t V_6 = 0;
int32_t V_7 = 0;
t15* V_8 = {0};
int32_t V_9 = 0;
bool V_10 = false;
t15* V_11 = {0};
t14 * V_12 = {0};
uint16_t V_13 = 0x0;
t14 * V_14 = {0};
t326 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t326 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
{
t15* L_0 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_1 = m52(NULL, L_0, _stringLiteral864, NULL);
if (!L_1)
{
goto IL_0012;
}
}
{
t15* L_2 = p0;
return L_2;
}
IL_0012:
{
t320 * L_3 = (t320 *)il2cpp_codegen_object_new (t320_TI_var);
m1468(L_3, NULL);
V_0 = L_3;
bool L_4 = p1;
if (!L_4)
{
goto IL_00f5;
}
}
{
V_1 = 0;
goto IL_00dc;
}
IL_0025:
{
t15* L_5 = p0;
int32_t L_6 = V_1;
uint16_t L_7 = m1839(L_5, L_6, NULL);
V_2 = L_7;
uint16_t L_8 = V_2;
V_13 = L_8;
uint16_t L_9 = V_13;
if ((((int32_t)L_9) == ((int32_t)((int32_t)37))))
{
goto IL_0055;
}
}
{
uint16_t L_10 = V_13;
if ((((int32_t)L_10) == ((int32_t)((int32_t)92))))
{
goto IL_0047;
}
}
{
goto IL_00cb;
}
IL_0047:
{
t320 * L_11 = V_0;
m3906(L_11, ((int32_t)47), NULL);
goto IL_00d8;
}
IL_0055:
{
int32_t L_12 = V_1;
t15* L_13 = p0;
int32_t L_14 = m1820(L_13, NULL);
if ((((int32_t)L_12) >= ((int32_t)((int32_t)((int32_t)L_14-(int32_t)2)))))
{
goto IL_00be;
}
}
{
t15* L_15 = p0;
int32_t L_16 = V_1;
uint16_t L_17 = m1839(L_15, ((int32_t)((int32_t)L_16+(int32_t)1)), NULL);
V_3 = L_17;
t15* L_18 = p0;
int32_t L_19 = V_1;
uint16_t L_20 = m1839(L_18, ((int32_t)((int32_t)L_19+(int32_t)2)), NULL);
IL2CPP_RUNTIME_CLASS_INIT(t180_TI_var);
uint16_t L_21 = m1892(NULL, L_20, NULL);
V_4 = L_21;
uint16_t L_22 = V_3;
if ((!(((uint32_t)L_22) == ((uint32_t)((int32_t)50)))))
{
goto IL_008e;
}
}
{
uint16_t L_23 = V_4;
if ((((int32_t)L_23) == ((int32_t)((int32_t)70))))
{
goto IL_009f;
}
}
IL_008e:
{
uint16_t L_24 = V_3;
if ((!(((uint32_t)L_24) == ((uint32_t)((int32_t)53)))))
{
goto IL_00b1;
}
}
{
uint16_t L_25 = V_4;
if ((!(((uint32_t)L_25) == ((uint32_t)((int32_t)67)))))
{
goto IL_00b1;
}
}
IL_009f:
{
t320 * L_26 = V_0;
m3906(L_26, ((int32_t)47), NULL);
int32_t L_27 = V_1;
V_1 = ((int32_t)((int32_t)L_27+(int32_t)2));
goto IL_00b9;
}
IL_00b1:
{
t320 * L_28 = V_0;
uint16_t L_29 = V_2;
m3906(L_28, L_29, NULL);
}
IL_00b9:
{
goto IL_00c6;
}
IL_00be:
{
t320 * L_30 = V_0;
uint16_t L_31 = V_2;
m3906(L_30, L_31, NULL);
}
IL_00c6:
{
goto IL_00d8;
}
IL_00cb:
{
t320 * L_32 = V_0;
uint16_t L_33 = V_2;
m3906(L_32, L_33, NULL);
goto IL_00d8;
}
IL_00d8:
{
int32_t L_34 = V_1;
V_1 = ((int32_t)((int32_t)L_34+(int32_t)1));
}
IL_00dc:
{
int32_t L_35 = V_1;
t15* L_36 = p0;
int32_t L_37 = m1820(L_36, NULL);
if ((((int32_t)L_35) < ((int32_t)L_37)))
{
goto IL_0025;
}
}
{
t320 * L_38 = V_0;
t15* L_39 = m1472(L_38, NULL);
p0 = L_39;
goto IL_0101;
}
IL_00f5:
{
t15* L_40 = p0;
t15* L_41 = m2881(L_40, ((int32_t)92), ((int32_t)47), NULL);
p0 = L_41;
}
IL_0101:
{
t603 * L_42 = (t603 *)il2cpp_codegen_object_new (t603_TI_var);
m3869(L_42, NULL);
V_5 = L_42;
V_6 = 0;
goto IL_01a3;
}
IL_0110:
{
t15* L_43 = p0;
int32_t L_44 = V_6;
int32_t L_45 = m3999(L_43, ((int32_t)47), L_44, NULL);
V_7 = L_45;
int32_t L_46 = V_7;
if ((!(((uint32_t)L_46) == ((uint32_t)(-1)))))
{
goto IL_012c;
}
}
{
t15* L_47 = p0;
int32_t L_48 = m1820(L_47, NULL);
V_7 = L_48;
}
IL_012c:
{
t15* L_49 = p0;
int32_t L_50 = V_6;
int32_t L_51 = V_7;
int32_t L_52 = V_6;
t15* L_53 = m1840(L_49, L_50, ((int32_t)((int32_t)L_51-(int32_t)L_52)), NULL);
V_8 = L_53;
int32_t L_54 = V_7;
V_6 = ((int32_t)((int32_t)L_54+(int32_t)1));
t15* L_55 = V_8;
int32_t L_56 = m1820(L_55, NULL);
if (!L_56)
{
goto IL_015e;
}
}
{
t15* L_57 = V_8;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_58 = m52(NULL, L_57, _stringLiteral97, NULL);
if (!L_58)
{
goto IL_0163;
}
}
IL_015e:
{
goto IL_01a3;
}
IL_0163:
{
t15* L_59 = V_8;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_60 = m52(NULL, L_59, _stringLiteral878, NULL);
if (!L_60)
{
goto IL_0199;
}
}
{
t603 * L_61 = V_5;
int32_t L_62 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(23 /* System.Int32 System.Collections.ArrayList::get_Count() */, L_61);
V_9 = L_62;
int32_t L_63 = V_9;
if (L_63)
{
goto IL_0189;
}
}
{
goto IL_01a3;
}
IL_0189:
{
t603 * L_64 = V_5;
int32_t L_65 = V_9;
VirtActionInvoker1< int32_t >::Invoke(39 /* System.Void System.Collections.ArrayList::RemoveAt(System.Int32) */, L_64, ((int32_t)((int32_t)L_65-(int32_t)1)));
goto IL_01a3;
}
IL_0199:
{
t603 * L_66 = V_5;
t15* L_67 = V_8;
VirtFuncInvoker1< int32_t, t14 * >::Invoke(30 /* System.Int32 System.Collections.ArrayList::Add(System.Object) */, L_66, L_67);
}
IL_01a3:
{
int32_t L_68 = V_6;
t15* L_69 = p0;
int32_t L_70 = m1820(L_69, NULL);
if ((((int32_t)L_68) < ((int32_t)L_70)))
{
goto IL_0110;
}
}
{
t603 * L_71 = V_5;
int32_t L_72 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(23 /* System.Int32 System.Collections.ArrayList::get_Count() */, L_71);
if (L_72)
{
goto IL_01c2;
}
}
{
return _stringLiteral864;
}
IL_01c2:
{
t320 * L_73 = V_0;
m4973(L_73, 0, NULL);
t15* L_74 = p0;
uint16_t L_75 = m1839(L_74, 0, NULL);
if ((!(((uint32_t)L_75) == ((uint32_t)((int32_t)47)))))
{
goto IL_01e0;
}
}
{
t320 * L_76 = V_0;
m3906(L_76, ((int32_t)47), NULL);
}
IL_01e0:
{
V_10 = 1;
t603 * L_77 = V_5;
t14 * L_78 = (t14 *)VirtFuncInvoker0< t14 * >::Invoke(43 /* System.Collections.IEnumerator System.Collections.ArrayList::GetEnumerator() */, L_77);
V_12 = L_78;
}
IL_01ec:
try
{ // begin try (depth: 1)
{
goto IL_0220;
}
IL_01f1:
{
t14 * L_79 = V_12;
t14 * L_80 = (t14 *)InterfaceFuncInvoker0< t14 * >::Invoke(0 /* System.Object System.Collections.IEnumerator::get_Current() */, t306_TI_var, L_79);
V_11 = ((t15*)CastclassSealed(L_80, t15_TI_var));
bool L_81 = V_10;
if (!L_81)
{
goto IL_020e;
}
}
IL_0206:
{
V_10 = 0;
goto IL_0217;
}
IL_020e:
{
t320 * L_82 = V_0;
m3906(L_82, ((int32_t)47), NULL);
}
IL_0217:
{
t320 * L_83 = V_0;
t15* L_84 = V_11;
m2875(L_83, L_84, NULL);
}
IL_0220:
{
t14 * L_85 = V_12;
bool L_86 = (bool)InterfaceFuncInvoker0< bool >::Invoke(1 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, t306_TI_var, L_85);
if (L_86)
{
goto IL_01f1;
}
}
IL_022c:
{
IL2CPP_LEAVE(0x247, FINALLY_0231);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t326 *)e.ex;
goto FINALLY_0231;
}
FINALLY_0231:
{ // begin finally (depth: 1)
{
t14 * L_87 = V_12;
V_14 = ((t14 *)IsInst(L_87, t328_TI_var));
t14 * L_88 = V_14;
if (L_88)
{
goto IL_023f;
}
}
IL_023e:
{
IL2CPP_END_FINALLY(561)
}
IL_023f:
{
t14 * L_89 = V_14;
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t328_TI_var, L_89);
IL2CPP_END_FINALLY(561)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(561)
{
IL2CPP_JUMP_TBL(0x247, IL_0247)
IL2CPP_RETHROW_IF_UNHANDLED(t326 *)
}
IL_0247:
{
t15* L_90 = p0;
bool L_91 = m2878(L_90, _stringLiteral864, NULL);
if (!L_91)
{
goto IL_0260;
}
}
{
t320 * L_92 = V_0;
m3906(L_92, ((int32_t)47), NULL);
}
IL_0260:
{
t320 * L_93 = V_0;
t15* L_94 = m1472(L_93, NULL);
return L_94;
}
}
extern TypeInfo* t387_TI_var;
extern TypeInfo* t586_TI_var;
extern TypeInfo* t781_TI_var;
extern TypeInfo* t569_TI_var;
extern Il2CppCodeGenString* _stringLiteral803;
extern Il2CppCodeGenString* _stringLiteral560;
extern "C" uint16_t m4855 (t14 * __this , t15* p0, int32_t* p1, uint16_t* p2, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t387_TI_var = il2cpp_codegen_type_info_from_index(234);
t586_TI_var = il2cpp_codegen_type_info_from_index(342);
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
t569_TI_var = il2cpp_codegen_type_info_from_index(338);
_stringLiteral803 = il2cpp_codegen_string_literal_from_index(803);
_stringLiteral560 = il2cpp_codegen_string_literal_from_index(560);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
int32_t V_4 = 0;
t569* V_5 = {0};
bool V_6 = false;
int32_t V_7 = 0;
int32_t V_8 = 0;
int32_t V_9 = 0;
uint8_t V_10 = 0x0;
int32_t V_11 = 0;
int32_t V_12 = 0;
int32_t V_13 = 0;
{
uint16_t* L_0 = p2;
*((int16_t*)(L_0)) = (int16_t)0;
t15* L_1 = p0;
if (L_1)
{
goto IL_0014;
}
}
{
t387 * L_2 = (t387 *)il2cpp_codegen_object_new (t387_TI_var);
m2010(L_2, _stringLiteral803, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_2);
}
IL_0014:
{
int32_t* L_3 = p1;
if ((((int32_t)(*((int32_t*)L_3))) < ((int32_t)0)))
{
goto IL_0029;
}
}
{
int32_t* L_4 = p1;
t15* L_5 = p0;
int32_t L_6 = m1820(L_5, NULL);
if ((((int32_t)(*((int32_t*)L_4))) < ((int32_t)L_6)))
{
goto IL_0034;
}
}
IL_0029:
{
t586 * L_7 = (t586 *)il2cpp_codegen_object_new (t586_TI_var);
m3867(L_7, _stringLiteral560, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_7);
}
IL_0034:
{
t15* L_8 = p0;
int32_t* L_9 = p1;
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
bool L_10 = m4840(NULL, L_8, (*((int32_t*)L_9)), NULL);
if (L_10)
{
goto IL_0053;
}
}
{
t15* L_11 = p0;
int32_t* L_12 = p1;
int32_t* L_13 = p1;
int32_t L_14 = (*((int32_t*)L_13));
V_13 = L_14;
*((int32_t*)(L_12)) = (int32_t)((int32_t)((int32_t)L_14+(int32_t)1));
int32_t L_15 = V_13;
uint16_t L_16 = m1839(L_11, L_15, NULL);
return L_16;
}
IL_0053:
{
int32_t* L_17 = p1;
int32_t* L_18 = p1;
int32_t L_19 = (*((int32_t*)L_18));
V_13 = L_19;
*((int32_t*)(L_17)) = (int32_t)((int32_t)((int32_t)L_19+(int32_t)1));
int32_t L_20 = V_13;
V_0 = L_20;
t15* L_21 = p0;
int32_t* L_22 = p1;
int32_t* L_23 = p1;
int32_t L_24 = (*((int32_t*)L_23));
V_13 = L_24;
*((int32_t*)(L_22)) = (int32_t)((int32_t)((int32_t)L_24+(int32_t)1));
int32_t L_25 = V_13;
uint16_t L_26 = m1839(L_21, L_25, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
int32_t L_27 = m4837(NULL, L_26, NULL);
V_1 = L_27;
t15* L_28 = p0;
int32_t* L_29 = p1;
int32_t* L_30 = p1;
int32_t L_31 = (*((int32_t*)L_30));
V_13 = L_31;
*((int32_t*)(L_29)) = (int32_t)((int32_t)((int32_t)L_31+(int32_t)1));
int32_t L_32 = V_13;
uint16_t L_33 = m1839(L_28, L_32, NULL);
int32_t L_34 = m4837(NULL, L_33, NULL);
V_2 = L_34;
int32_t L_35 = V_1;
V_3 = L_35;
V_4 = 0;
goto IL_00a1;
}
IL_0097:
{
int32_t L_36 = V_4;
V_4 = ((int32_t)((int32_t)L_36+(int32_t)1));
int32_t L_37 = V_3;
V_3 = ((int32_t)((int32_t)L_37<<(int32_t)1));
}
IL_00a1:
{
int32_t L_38 = V_3;
if ((((int32_t)((int32_t)((int32_t)L_38&(int32_t)8))) == ((int32_t)8)))
{
goto IL_0097;
}
}
{
int32_t L_39 = V_4;
if ((((int32_t)L_39) > ((int32_t)1)))
{
goto IL_00b9;
}
}
{
int32_t L_40 = V_1;
int32_t L_41 = V_2;
return (((int32_t)((uint16_t)((int32_t)((int32_t)((int32_t)((int32_t)L_40<<(int32_t)4))|(int32_t)L_41)))));
}
IL_00b9:
{
int32_t L_42 = V_4;
V_5 = ((t569*)SZArrayNew(t569_TI_var, L_42));
V_6 = 0;
t569* L_43 = V_5;
int32_t L_44 = V_1;
int32_t L_45 = V_2;
*((uint8_t*)(uint8_t*)SZArrayLdElema(L_43, 0, sizeof(uint8_t))) = (uint8_t)(((int32_t)((uint8_t)((int32_t)((int32_t)((int32_t)((int32_t)L_44<<(int32_t)4))|(int32_t)L_45)))));
V_7 = 1;
goto IL_014b;
}
IL_00d7:
{
t15* L_46 = p0;
int32_t* L_47 = p1;
int32_t* L_48 = p1;
int32_t L_49 = (*((int32_t*)L_48));
V_13 = L_49;
*((int32_t*)(L_47)) = (int32_t)((int32_t)((int32_t)L_49+(int32_t)1));
int32_t L_50 = V_13;
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
bool L_51 = m4840(NULL, L_46, L_50, NULL);
if (L_51)
{
goto IL_00f5;
}
}
{
V_6 = 1;
goto IL_0154;
}
IL_00f5:
{
t15* L_52 = p0;
int32_t* L_53 = p1;
int32_t* L_54 = p1;
int32_t L_55 = (*((int32_t*)L_54));
V_13 = L_55;
*((int32_t*)(L_53)) = (int32_t)((int32_t)((int32_t)L_55+(int32_t)1));
int32_t L_56 = V_13;
uint16_t L_57 = m1839(L_52, L_56, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
int32_t L_58 = m4837(NULL, L_57, NULL);
V_8 = L_58;
int32_t L_59 = V_8;
if ((((int32_t)((int32_t)((int32_t)L_59&(int32_t)((int32_t)12)))) == ((int32_t)8)))
{
goto IL_0120;
}
}
{
V_6 = 1;
goto IL_0154;
}
IL_0120:
{
t15* L_60 = p0;
int32_t* L_61 = p1;
int32_t* L_62 = p1;
int32_t L_63 = (*((int32_t*)L_62));
V_13 = L_63;
*((int32_t*)(L_61)) = (int32_t)((int32_t)((int32_t)L_63+(int32_t)1));
int32_t L_64 = V_13;
uint16_t L_65 = m1839(L_60, L_64, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
int32_t L_66 = m4837(NULL, L_65, NULL);
V_9 = L_66;
t569* L_67 = V_5;
int32_t L_68 = V_7;
int32_t L_69 = V_8;
int32_t L_70 = V_9;
*((uint8_t*)(uint8_t*)SZArrayLdElema(L_67, L_68, sizeof(uint8_t))) = (uint8_t)(((int32_t)((uint8_t)((int32_t)((int32_t)((int32_t)((int32_t)L_69<<(int32_t)4))|(int32_t)L_70)))));
int32_t L_71 = V_7;
V_7 = ((int32_t)((int32_t)L_71+(int32_t)1));
}
IL_014b:
{
int32_t L_72 = V_7;
int32_t L_73 = V_4;
if ((((int32_t)L_72) < ((int32_t)L_73)))
{
goto IL_00d7;
}
}
IL_0154:
{
bool L_74 = V_6;
if (!L_74)
{
goto IL_0166;
}
}
{
int32_t* L_75 = p1;
int32_t L_76 = V_0;
*((int32_t*)(L_75)) = (int32_t)((int32_t)((int32_t)L_76+(int32_t)3));
t569* L_77 = V_5;
int32_t L_78 = 0;
return (((int32_t)((uint16_t)(*(uint8_t*)(uint8_t*)SZArrayLdElema(L_77, L_78, sizeof(uint8_t))))));
}
IL_0166:
{
V_10 = ((int32_t)255);
uint8_t L_79 = V_10;
int32_t L_80 = V_4;
V_10 = (((int32_t)((uint8_t)((int32_t)((int32_t)L_79>>(int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_80+(int32_t)1))&(int32_t)((int32_t)31))))))));
t569* L_81 = V_5;
int32_t L_82 = 0;
uint8_t L_83 = V_10;
V_11 = ((int32_t)((int32_t)(*(uint8_t*)(uint8_t*)SZArrayLdElema(L_81, L_82, sizeof(uint8_t)))&(int32_t)L_83));
V_12 = 1;
goto IL_01a4;
}
IL_018b:
{
int32_t L_84 = V_11;
V_11 = ((int32_t)((int32_t)L_84<<(int32_t)6));
int32_t L_85 = V_11;
t569* L_86 = V_5;
int32_t L_87 = V_12;
int32_t L_88 = L_87;
V_11 = ((int32_t)((int32_t)L_85|(int32_t)((int32_t)((int32_t)(*(uint8_t*)(uint8_t*)SZArrayLdElema(L_86, L_88, sizeof(uint8_t)))&(int32_t)((int32_t)63)))));
int32_t L_89 = V_12;
V_12 = ((int32_t)((int32_t)L_89+(int32_t)1));
}
IL_01a4:
{
int32_t L_90 = V_12;
int32_t L_91 = V_4;
if ((((int32_t)L_90) < ((int32_t)L_91)))
{
goto IL_018b;
}
}
{
int32_t L_92 = V_11;
if ((((int32_t)L_92) > ((int32_t)((int32_t)65535))))
{
goto IL_01bd;
}
}
{
int32_t L_93 = V_11;
return (((int32_t)((uint16_t)L_93)));
}
IL_01bd:
{
int32_t L_94 = V_11;
V_11 = ((int32_t)((int32_t)L_94-(int32_t)((int32_t)65536)));
uint16_t* L_95 = p2;
int32_t L_96 = V_11;
*((int16_t*)(L_95)) = (int16_t)(((int32_t)((uint16_t)((int32_t)((int32_t)((int32_t)((int32_t)L_96&(int32_t)((int32_t)1023)))|(int32_t)((int32_t)56320))))));
int32_t L_97 = V_11;
return (((int32_t)((uint16_t)((int32_t)((int32_t)((int32_t)((int32_t)L_97>>(int32_t)((int32_t)10)))|(int32_t)((int32_t)55296))))));
}
}
extern TypeInfo* t781_TI_var;
extern TypeInfo* t15_TI_var;
extern "C" t15* m4856 (t14 * __this , t15* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
{
V_0 = 0;
goto IL_0037;
}
IL_0007:
{
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t941* L_0 = ((t781_SFs*)t781_TI_var->static_fields)->f28;
int32_t L_1 = V_0;
t15* L_2 = (((t940 *)(t940 *)SZArrayLdElema(L_0, L_1, sizeof(t940 )))->f0);
t15* L_3 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_4 = m52(NULL, L_2, L_3, NULL);
if (!L_4)
{
goto IL_0033;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t941* L_5 = ((t781_SFs*)t781_TI_var->static_fields)->f28;
int32_t L_6 = V_0;
t15* L_7 = (((t940 *)(t940 *)SZArrayLdElema(L_5, L_6, sizeof(t940 )))->f1);
return L_7;
}
IL_0033:
{
int32_t L_8 = V_0;
V_0 = ((int32_t)((int32_t)L_8+(int32_t)1));
}
IL_0037:
{
int32_t L_9 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t941* L_10 = ((t781_SFs*)t781_TI_var->static_fields)->f28;
if ((((int32_t)L_9) < ((int32_t)(((int32_t)((int32_t)(((t17 *)L_10)->max_length)))))))
{
goto IL_0007;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_11 = ((t781_SFs*)t781_TI_var->static_fields)->f17;
return L_11;
}
}
extern TypeInfo* t938_TI_var;
extern "C" int32_t m4857 (t14 * __this , t15* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t938_TI_var = il2cpp_codegen_type_info_from_index(613);
s_Il2CppMethodIntialized = true;
}
t938 * V_0 = {0};
{
t15* L_0 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t938_TI_var);
t938 * L_1 = m4876(NULL, L_0, NULL);
V_0 = L_1;
t938 * L_2 = V_0;
if (L_2)
{
goto IL_000f;
}
}
{
return (-1);
}
IL_000f:
{
t938 * L_3 = V_0;
int32_t L_4 = m4872(L_3, NULL);
return L_4;
}
}
extern TypeInfo* t781_TI_var;
extern Il2CppCodeGenString* _stringLiteral190;
extern "C" t15* m4858 (t781 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
_stringLiteral190 = il2cpp_codegen_string_literal_from_index(190);
s_Il2CppMethodIntialized = true;
}
{
bool L_0 = (__this->f10);
if (!L_0)
{
goto IL_0011;
}
}
{
return _stringLiteral190;
}
IL_0011:
{
t15* L_1 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_2 = m4856(NULL, L_1, NULL);
return L_2;
}
}
extern TypeInfo* t781_TI_var;
extern TypeInfo* t194_TI_var;
extern const MethodInfo* m1857_MI_var;
extern Il2CppCodeGenString* _stringLiteral637;
extern Il2CppCodeGenString* _stringLiteral636;
extern Il2CppCodeGenString* _stringLiteral696;
extern Il2CppCodeGenString* _stringLiteral698;
extern Il2CppCodeGenString* _stringLiteral852;
extern Il2CppCodeGenString* _stringLiteral849;
extern Il2CppCodeGenString* _stringLiteral850;
extern Il2CppCodeGenString* _stringLiteral851;
extern Il2CppCodeGenString* _stringLiteral853;
extern Il2CppCodeGenString* _stringLiteral854;
extern "C" bool m4859 (t14 * __this , t15* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
t194_TI_var = il2cpp_codegen_type_info_from_index(195);
m1857_MI_var = il2cpp_codegen_method_info_from_index(2147483846);
_stringLiteral637 = il2cpp_codegen_string_literal_from_index(637);
_stringLiteral636 = il2cpp_codegen_string_literal_from_index(636);
_stringLiteral696 = il2cpp_codegen_string_literal_from_index(696);
_stringLiteral698 = il2cpp_codegen_string_literal_from_index(698);
_stringLiteral852 = il2cpp_codegen_string_literal_from_index(852);
_stringLiteral849 = il2cpp_codegen_string_literal_from_index(849);
_stringLiteral850 = il2cpp_codegen_string_literal_from_index(850);
_stringLiteral851 = il2cpp_codegen_string_literal_from_index(851);
_stringLiteral853 = il2cpp_codegen_string_literal_from_index(853);
_stringLiteral854 = il2cpp_codegen_string_literal_from_index(854);
s_Il2CppMethodIntialized = true;
}
t15* V_0 = {0};
t194 * V_1 = {0};
int32_t V_2 = 0;
{
t15* L_0 = p0;
V_0 = L_0;
t15* L_1 = V_0;
if (!L_1)
{
goto IL_00b7;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t194 * L_2 = ((t781_SFs*)t781_TI_var->static_fields)->f32;
if (L_2)
{
goto IL_0098;
}
}
{
t194 * L_3 = (t194 *)il2cpp_codegen_object_new (t194_TI_var);
m1857(L_3, ((int32_t)10), m1857_MI_var);
V_1 = L_3;
t194 * L_4 = V_1;
VirtActionInvoker2< t15*, int32_t >::Invoke(27 /* System.Void System.Collections.Generic.Dictionary`2<System.String,System.Int32>::Add(!0,!1) */, L_4, _stringLiteral637, 0);
t194 * L_5 = V_1;
VirtActionInvoker2< t15*, int32_t >::Invoke(27 /* System.Void System.Collections.Generic.Dictionary`2<System.String,System.Int32>::Add(!0,!1) */, L_5, _stringLiteral636, 0);
t194 * L_6 = V_1;
VirtActionInvoker2< t15*, int32_t >::Invoke(27 /* System.Void System.Collections.Generic.Dictionary`2<System.String,System.Int32>::Add(!0,!1) */, L_6, _stringLiteral696, 0);
t194 * L_7 = V_1;
VirtActionInvoker2< t15*, int32_t >::Invoke(27 /* System.Void System.Collections.Generic.Dictionary`2<System.String,System.Int32>::Add(!0,!1) */, L_7, _stringLiteral698, 0);
t194 * L_8 = V_1;
VirtActionInvoker2< t15*, int32_t >::Invoke(27 /* System.Void System.Collections.Generic.Dictionary`2<System.String,System.Int32>::Add(!0,!1) */, L_8, _stringLiteral852, 0);
t194 * L_9 = V_1;
VirtActionInvoker2< t15*, int32_t >::Invoke(27 /* System.Void System.Collections.Generic.Dictionary`2<System.String,System.Int32>::Add(!0,!1) */, L_9, _stringLiteral849, 0);
t194 * L_10 = V_1;
VirtActionInvoker2< t15*, int32_t >::Invoke(27 /* System.Void System.Collections.Generic.Dictionary`2<System.String,System.Int32>::Add(!0,!1) */, L_10, _stringLiteral850, 0);
t194 * L_11 = V_1;
VirtActionInvoker2< t15*, int32_t >::Invoke(27 /* System.Void System.Collections.Generic.Dictionary`2<System.String,System.Int32>::Add(!0,!1) */, L_11, _stringLiteral851, 0);
t194 * L_12 = V_1;
VirtActionInvoker2< t15*, int32_t >::Invoke(27 /* System.Void System.Collections.Generic.Dictionary`2<System.String,System.Int32>::Add(!0,!1) */, L_12, _stringLiteral853, 0);
t194 * L_13 = V_1;
VirtActionInvoker2< t15*, int32_t >::Invoke(27 /* System.Void System.Collections.Generic.Dictionary`2<System.String,System.Int32>::Add(!0,!1) */, L_13, _stringLiteral854, 0);
t194 * L_14 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
((t781_SFs*)t781_TI_var->static_fields)->f32 = L_14;
}
IL_0098:
{
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t194 * L_15 = ((t781_SFs*)t781_TI_var->static_fields)->f32;
t15* L_16 = V_0;
bool L_17 = (bool)VirtFuncInvoker2< bool, t15*, int32_t* >::Invoke(32 /* System.Boolean System.Collections.Generic.Dictionary`2<System.String,System.Int32>::TryGetValue(!0,!1&) */, L_15, L_16, (&V_2));
if (!L_17)
{
goto IL_00b7;
}
}
{
int32_t L_18 = V_2;
if (!L_18)
{
goto IL_00b5;
}
}
{
goto IL_00b7;
}
IL_00b5:
{
return 1;
}
IL_00b7:
{
return 0;
}
}
extern TypeInfo* t938_TI_var;
extern TypeInfo* t937_TI_var;
extern Il2CppCodeGenString* _stringLiteral879;
extern "C" t938 * m4860 (t781 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t938_TI_var = il2cpp_codegen_type_info_from_index(613);
t937_TI_var = il2cpp_codegen_type_info_from_index(617);
_stringLiteral879 = il2cpp_codegen_string_literal_from_index(879);
s_Il2CppMethodIntialized = true;
}
{
t938 * L_0 = (__this->f29);
if (L_0)
{
goto IL_0037;
}
}
{
t15* L_1 = m4826(__this, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t938_TI_var);
t938 * L_2 = m4876(NULL, L_1, NULL);
__this->f29 = L_2;
t938 * L_3 = (__this->f29);
if (L_3)
{
goto IL_0037;
}
}
{
t937 * L_4 = (t937 *)il2cpp_codegen_object_new (t937_TI_var);
m4814(L_4, _stringLiteral879, NULL);
__this->f29 = L_4;
}
IL_0037:
{
t938 * L_5 = (__this->f29);
return L_5;
}
}
extern TypeInfo* t779_TI_var;
extern Il2CppCodeGenString* _stringLiteral880;
extern "C" void m4861 (t781 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t779_TI_var = il2cpp_codegen_type_info_from_index(431);
_stringLiteral880 = il2cpp_codegen_string_literal_from_index(880);
s_Il2CppMethodIntialized = true;
}
{
bool L_0 = m4827(__this, NULL);
if (L_0)
{
goto IL_0016;
}
}
{
t779 * L_1 = (t779 *)il2cpp_codegen_object_new (t779_TI_var);
m3947(L_1, _stringLiteral880, NULL);
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)L_1);
}
IL_0016:
{
return;
}
}
extern "C" bool m4862 (t14 * __this , t781 * p0, t781 * p1, const MethodInfo* method)
{
{
t781 * L_0 = p0;
t781 * L_1 = p1;
bool L_2 = m4974(NULL, L_0, L_1, NULL);
return L_2;
}
}
extern Il2CppCodeGenString* _stringLiteral881;
extern "C" void m4863 (t942 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
_stringLiteral881 = il2cpp_codegen_string_literal_from_index(881);
s_Il2CppMethodIntialized = true;
}
{
t15* L_0 = m4001(NULL, _stringLiteral881, NULL);
m3877(__this, L_0, NULL);
return;
}
}
extern "C" void m4864 (t942 * __this, t15* p0, const MethodInfo* method)
{
{
t15* L_0 = p0;
m3877(__this, L_0, NULL);
return;
}
}
extern "C" void m4865 (t942 * __this, t737 * p0, t736 p1, const MethodInfo* method)
{
{
t737 * L_0 = p0;
t736 L_1 = p1;
m4975(__this, L_0, L_1, NULL);
return;
}
}
extern "C" void m4866 (t942 * __this, t737 * p0, t736 p1, const MethodInfo* method)
{
{
t737 * L_0 = p0;
t736 L_1 = p1;
m4976(__this, L_0, L_1, NULL);
return;
}
}
extern "C" void m4867 (t938 * __this, const MethodInfo* method)
{
{
m1474(__this, NULL);
return;
}
}
extern TypeInfo* t14_TI_var;
extern TypeInfo* t938_TI_var;
extern TypeInfo* t552_TI_var;
extern Il2CppCodeGenString* _stringLiteral882;
extern Il2CppCodeGenString* _stringLiteral883;
extern "C" void m4868 (t14 * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t14_TI_var = il2cpp_codegen_type_info_from_index(0);
t938_TI_var = il2cpp_codegen_type_info_from_index(613);
t552_TI_var = il2cpp_codegen_type_info_from_index(317);
_stringLiteral882 = il2cpp_codegen_string_literal_from_index(882);
_stringLiteral883 = il2cpp_codegen_string_literal_from_index(883);
s_Il2CppMethodIntialized = true;
}
{
t14 * L_0 = (t14 *)il2cpp_codegen_object_new (t14_TI_var);
m1474(L_0, NULL);
((t938_SFs*)t938_TI_var->static_fields)->f0 = L_0;
t552 * L_1 = (t552 *)il2cpp_codegen_object_new (t552_TI_var);
m3993(L_1, _stringLiteral882, NULL);
((t938_SFs*)t938_TI_var->static_fields)->f4 = L_1;
t552 * L_2 = (t552 *)il2cpp_codegen_object_new (t552_TI_var);
m3993(L_2, _stringLiteral883, NULL);
((t938_SFs*)t938_TI_var->static_fields)->f5 = L_2;
return;
}
}
extern TypeInfo* t15_TI_var;
extern TypeInfo* t942_TI_var;
extern Il2CppCodeGenString* _stringLiteral879;
extern Il2CppCodeGenString* _stringLiteral884;
extern "C" void m4869 (t938 * __this, t781 * p0, t942 ** p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t15_TI_var = il2cpp_codegen_type_info_from_index(6);
t942_TI_var = il2cpp_codegen_type_info_from_index(614);
_stringLiteral879 = il2cpp_codegen_string_literal_from_index(879);
_stringLiteral884 = il2cpp_codegen_string_literal_from_index(884);
s_Il2CppMethodIntialized = true;
}
{
t781 * L_0 = p0;
t15* L_1 = m4826(L_0, NULL);
t15* L_2 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_3 = m1838(NULL, L_1, L_2, NULL);
if (!L_3)
{
goto IL_003c;
}
}
{
t15* L_4 = (__this->f2);
IL2CPP_RUNTIME_CLASS_INIT(t15_TI_var);
bool L_5 = m1838(NULL, L_4, _stringLiteral879, NULL);
if (!L_5)
{
goto IL_003c;
}
}
{
t942 ** L_6 = p1;
t942 * L_7 = (t942 *)il2cpp_codegen_object_new (t942_TI_var);
m4864(L_7, _stringLiteral884, NULL);
*((t14 **)(L_6)) = (t14 *)L_7;
goto IL_003f;
}
IL_003c:
{
t942 ** L_8 = p1;
*((t14 **)(L_8)) = (t14 *)NULL;
}
IL_003f:
{
return;
}
}
extern "C" void m4870 (t938 * __this, t15* p0, int32_t p1, const MethodInfo* method)
{
{
return;
}
}
extern "C" void m4871 (t938 * __this, t15* p0, const MethodInfo* method)
{
{
t15* L_0 = p0;
__this->f2 = L_0;
return;
}
}
extern "C" int32_t m4872 (t938 * __this, const MethodInfo* method)
{
{
int32_t L_0 = (__this->f3);
return L_0;
}
}
extern "C" void m4873 (t938 * __this, int32_t p0, const MethodInfo* method)
{
{
int32_t L_0 = p0;
__this->f3 = L_0;
return;
}
}
extern TypeInfo* t938_TI_var;
extern TypeInfo* t672_TI_var;
extern TypeInfo* t937_TI_var;
extern TypeInfo* t781_TI_var;
extern Il2CppCodeGenString* _stringLiteral885;
extern "C" void m4874 (t14 * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t938_TI_var = il2cpp_codegen_type_info_from_index(613);
t672_TI_var = il2cpp_codegen_type_info_from_index(440);
t937_TI_var = il2cpp_codegen_type_info_from_index(617);
t781_TI_var = il2cpp_codegen_type_info_from_index(504);
_stringLiteral885 = il2cpp_codegen_string_literal_from_index(885);
s_Il2CppMethodIntialized = true;
}
t672 * V_0 = {0};
t14 * V_1 = {0};
t326 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t326 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
{
IL2CPP_RUNTIME_CLASS_INIT(t938_TI_var);
t672 * L_0 = ((t938_SFs*)t938_TI_var->static_fields)->f1;
if (!L_0)
{
goto IL_000b;
}
}
{
return;
}
IL_000b:
{
t672 * L_1 = (t672 *)il2cpp_codegen_object_new (t672_TI_var);
m3953(L_1, NULL);
V_0 = L_1;
t672 * L_2 = V_0;
t937 * L_3 = (t937 *)il2cpp_codegen_object_new (t937_TI_var);
m4813(L_3, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t781_TI_var);
t15* L_4 = ((t781_SFs*)t781_TI_var->static_fields)->f18;
IL2CPP_RUNTIME_CLASS_INIT(t938_TI_var);
m4875(NULL, L_2, L_3, L_4, (-1), NULL);
t672 * L_5 = V_0;
t937 * L_6 = (t937 *)il2cpp_codegen_object_new (t937_TI_var);
m4813(L_6, NULL);
t15* L_7 = ((t781_SFs*)t781_TI_var->static_fields)->f19;
m4875(NULL, L_5, L_6, L_7, ((int32_t)21), NULL);
t672 * L_8 = V_0;
t937 * L_9 = (t937 *)il2cpp_codegen_object_new (t937_TI_var);
m4813(L_9, NULL);
t15* L_10 = ((t781_SFs*)t781_TI_var->static_fields)->f20;
m4875(NULL, L_8, L_9, L_10, ((int32_t)70), NULL);
t672 * L_11 = V_0;
t937 * L_12 = (t937 *)il2cpp_codegen_object_new (t937_TI_var);
m4813(L_12, NULL);
t15* L_13 = ((t781_SFs*)t781_TI_var->static_fields)->f21;
m4875(NULL, L_11, L_12, L_13, ((int32_t)80), NULL);
t672 * L_14 = V_0;
t937 * L_15 = (t937 *)il2cpp_codegen_object_new (t937_TI_var);
m4813(L_15, NULL);
t15* L_16 = ((t781_SFs*)t781_TI_var->static_fields)->f22;
m4875(NULL, L_14, L_15, L_16, ((int32_t)443), NULL);
t672 * L_17 = V_0;
t937 * L_18 = (t937 *)il2cpp_codegen_object_new (t937_TI_var);
m4813(L_18, NULL);
t15* L_19 = ((t781_SFs*)t781_TI_var->static_fields)->f23;
m4875(NULL, L_17, L_18, L_19, ((int32_t)25), NULL);
t672 * L_20 = V_0;
t937 * L_21 = (t937 *)il2cpp_codegen_object_new (t937_TI_var);
m4813(L_21, NULL);
t15* L_22 = ((t781_SFs*)t781_TI_var->static_fields)->f26;
m4875(NULL, L_20, L_21, L_22, (-1), NULL);
t672 * L_23 = V_0;
t937 * L_24 = (t937 *)il2cpp_codegen_object_new (t937_TI_var);
m4813(L_24, NULL);
t15* L_25 = ((t781_SFs*)t781_TI_var->static_fields)->f27;
m4875(NULL, L_23, L_24, L_25, (-1), NULL);
t672 * L_26 = V_0;
t937 * L_27 = (t937 *)il2cpp_codegen_object_new (t937_TI_var);
m4813(L_27, NULL);
t15* L_28 = ((t781_SFs*)t781_TI_var->static_fields)->f24;
m4875(NULL, L_26, L_27, L_28, ((int32_t)119), NULL);
t672 * L_29 = V_0;
t937 * L_30 = (t937 *)il2cpp_codegen_object_new (t937_TI_var);
m4813(L_30, NULL);
t15* L_31 = ((t781_SFs*)t781_TI_var->static_fields)->f25;
m4875(NULL, L_29, L_30, L_31, ((int32_t)119), NULL);
t672 * L_32 = V_0;
t937 * L_33 = (t937 *)il2cpp_codegen_object_new (t937_TI_var);
m4813(L_33, NULL);
m4875(NULL, L_32, L_33, _stringLiteral885, ((int32_t)389), NULL);
t14 * L_34 = ((t938_SFs*)t938_TI_var->static_fields)->f0;
V_1 = L_34;
t14 * L_35 = V_1;
m3954(NULL, L_35, NULL);
}
IL_00e6:
try
{ // begin try (depth: 1)
{
IL2CPP_RUNTIME_CLASS_INIT(t938_TI_var);
t672 * L_36 = ((t938_SFs*)t938_TI_var->static_fields)->f1;
if (L_36)
{
goto IL_00fb;
}
}
IL_00f0:
{
t672 * L_37 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(t938_TI_var);
((t938_SFs*)t938_TI_var->static_fields)->f1 = L_37;
goto IL_00fd;
}
IL_00fb:
{
V_0 = (t672 *)NULL;
}
IL_00fd:
{
IL2CPP_LEAVE(0x109, FINALLY_0102);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t326 *)e.ex;
goto FINALLY_0102;
}
FINALLY_0102:
{ // begin finally (depth: 1)
t14 * L_38 = V_1;
m3956(NULL, L_38, NULL);
IL2CPP_END_FINALLY(258)
} // end finally (depth: 1)
IL2CPP_CLEANUP(258)
{
IL2CPP_JUMP_TBL(0x109, IL_0109)
IL2CPP_RETHROW_IF_UNHANDLED(t326 *)
}
IL_0109:
{
return;
}
}
extern TypeInfo* t939_TI_var;
extern TypeInfo* t937_TI_var;
extern "C" void m4875 (t14 * __this , t672 * p0, t938 * p1, t15* p2, int32_t p3, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t939_TI_var = il2cpp_codegen_type_info_from_index(618);
t937_TI_var = il2cpp_codegen_type_info_from_index(617);
s_Il2CppMethodIntialized = true;
}
t937 * V_0 = {0};
{
t938 * L_0 = p1;
t15* L_1 = p2;
m4871(L_0, L_1, NULL);
t938 * L_2 = p1;
int32_t L_3 = p3;
m4873(L_2, L_3, NULL);
t938 * L_4 = p1;
if (!((t939 *)IsInstClass(L_4, t939_TI_var)))
{
goto IL_0026;
}
}
{
t672 * L_5 = p0;
t15* L_6 = p2;
t938 * L_7 = p1;
VirtActionInvoker2< t14 *, t14 * >::Invoke(26 /* System.Void System.Collections.Hashtable::Add(System.Object,System.Object) */, L_5, L_6, L_7);
goto IL_0042;
}
IL_0026:
{
t937 * L_8 = (t937 *)il2cpp_codegen_object_new (t937_TI_var);
m4813(L_8, NULL);
V_0 = L_8;
t937 * L_9 = V_0;
t15* L_10 = p2;
m4871(L_9, L_10, NULL);
t937 * L_11 = V_0;
int32_t L_12 = p3;
m4873(L_11, L_12, NULL);
t672 * L_13 = p0;
t15* L_14 = p2;
t937 * L_15 = V_0;
VirtActionInvoker2< t14 *, t14 * >::Invoke(26 /* System.Void System.Collections.Hashtable::Add(System.Object,System.Object) */, L_13, L_14, L_15);
}
IL_0042:
{
t938 * L_16 = p1;
t15* L_17 = p2;
int32_t L_18 = p3;
VirtActionInvoker2< t15*, int32_t >::Invoke(5 /* System.Void System.UriParser::OnRegister(System.String,System.Int32) */, L_16, L_17, L_18);
return;
}
}
extern TypeInfo* t938_TI_var;
extern TypeInfo* t545_TI_var;
extern "C" t938 * m4876 (t14 * __this , t15* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t938_TI_var = il2cpp_codegen_type_info_from_index(613);
t545_TI_var = il2cpp_codegen_type_info_from_index(362);
s_Il2CppMethodIntialized = true;
}
t15* V_0 = {0};
{
t15* L_0 = p0;
if (L_0)
{
goto IL_0008;
}
}
{
return (t938 *)NULL;
}
IL_0008:
{
IL2CPP_RUNTIME_CLASS_INIT(t938_TI_var);
m4874(NULL, NULL);
t15* L_1 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t545_TI_var);
t545 * L_2 = m3878(NULL, NULL);
t15* L_3 = m4969(L_1, L_2, NULL);
V_0 = L_3;
t672 * L_4 = ((t938_SFs*)t938_TI_var->static_fields)->f1;
t15* L_5 = V_0;
t14 * L_6 = (t14 *)VirtFuncInvoker1< t14 *, t14 * >::Invoke(23 /* System.Object System.Collections.Hashtable::get_Item(System.Object) */, L_4, L_5);
return ((t938 *)CastclassClass(L_6, t938_TI_var));
}
}
extern "C" void m4877 (t784 * __this, t14 * p0, t196 p1, const MethodInfo* method)
{
__this->f0 = (methodPointerType)((MethodInfo*)p1.f0)->method;
__this->f3 = p1;
__this->f2 = p0;
}
extern "C" bool m3967 (t784 * __this, t14 * p0, t705 * p1, t787 * p2, int32_t p3, const MethodInfo* method)
{
if(__this->f9 != NULL)
{
m3967((t784 *)__this->f9,p0, p1, p2, p3, method);
}
il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->f3.f0));
bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->f3.f0));
if (__this->f2 != NULL && ___methodIsStatic)
{
typedef bool (*FunctionPointerType) (t14 *, t14 * __this, t14 * p0, t705 * p1, t787 * p2, int32_t p3, const MethodInfo* method);
return ((FunctionPointerType)__this->f0)(NULL,__this->f2,p0, p1, p2, p3,(MethodInfo*)(__this->f3.f0));
}
else if (__this->f2 != NULL || ___methodIsStatic)
{
typedef bool (*FunctionPointerType) (t14 * __this, t14 * p0, t705 * p1, t787 * p2, int32_t p3, const MethodInfo* method);
return ((FunctionPointerType)__this->f0)(__this->f2,p0, p1, p2, p3,(MethodInfo*)(__this->f3.f0));
}
else
{
typedef bool (*FunctionPointerType) (t14 * __this, t705 * p1, t787 * p2, int32_t p3, const MethodInfo* method);
return ((FunctionPointerType)__this->f0)(p0, p1, p2, p3,(MethodInfo*)(__this->f3.f0));
}
}
extern "C" bool pinvoke_delegate_wrapper_t784(Il2CppObject* delegate, t14 * p0, t705 * p1, t787 * p2, int32_t p3)
{
// Marshaling of parameter 'p0' to native representation
t14 * _p0_marshaled = { 0 };
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)il2cpp_codegen_get_not_supported_exception("Cannot marshal type 'System.Object'."));
}
extern TypeInfo* t785_TI_var;
extern "C" t14 * m4878 (t784 * __this, t14 * p0, t705 * p1, t787 * p2, int32_t p3, t182 * p4, t14 * p5, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
t785_TI_var = il2cpp_codegen_type_info_from_index(509);
s_Il2CppMethodIntialized = true;
}
void *__d_args[5] = {0};
__d_args[0] = p0;
__d_args[1] = p1;
__d_args[2] = p2;
__d_args[3] = Box(t785_TI_var, &p3);
return (t14 *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)p4, (Il2CppObject*)p5);
}
extern "C" bool m4879 (t784 * __this, t14 * p0, const MethodInfo* method)
{
Il2CppObject *__result = il2cpp_delegate_end_invoke((Il2CppAsyncResult*) p0, 0);
return *(bool*)UnBox ((Il2CppCodeGenObject*)__result);
}
extern "C" void m4880 (t947 * __this, t14 * p0, t196 p1, const MethodInfo* method)
{
__this->f0 = (methodPointerType)((MethodInfo*)p1.f0)->method;
__this->f3 = p1;
__this->f2 = p0;
}
extern "C" t15* m4881 (t947 * __this, t796 * p0, const MethodInfo* method)
{
if(__this->f9 != NULL)
{
m4881((t947 *)__this->f9,p0, method);
}
il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->f3.f0));
bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->f3.f0));
if (__this->f2 != NULL && ___methodIsStatic)
{
typedef t15* (*FunctionPointerType) (t14 *, t14 * __this, t796 * p0, const MethodInfo* method);
return ((FunctionPointerType)__this->f0)(NULL,__this->f2,p0,(MethodInfo*)(__this->f3.f0));
}
else if (__this->f2 != NULL || ___methodIsStatic)
{
typedef t15* (*FunctionPointerType) (t14 * __this, t796 * p0, const MethodInfo* method);
return ((FunctionPointerType)__this->f0)(__this->f2,p0,(MethodInfo*)(__this->f3.f0));
}
else
{
typedef t15* (*FunctionPointerType) (t14 * __this, const MethodInfo* method);
return ((FunctionPointerType)__this->f0)(p0,(MethodInfo*)(__this->f3.f0));
}
}
extern "C" t15* pinvoke_delegate_wrapper_t947(Il2CppObject* delegate, t796 * p0)
{
// Marshaling of parameter 'p0' to native representation
t796 * _p0_marshaled = { 0 };
il2cpp_codegen_raise_exception((Il2CppCodeGenException*)il2cpp_codegen_get_not_supported_exception("Cannot marshal type 'System.Text.RegularExpressions.Match'."));
}
extern "C" t14 * m4882 (t947 * __this, t796 * p0, t182 * p1, t14 * p2, const MethodInfo* method)
{
void *__d_args[2] = {0};
__d_args[0] = p0;
return (t14 *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)p1, (Il2CppObject*)p2);
}
extern "C" t15* m4883 (t947 * __this, t14 * p0, const MethodInfo* method)
{
Il2CppObject *__result = il2cpp_delegate_end_invoke((Il2CppAsyncResult*) p0, 0);
return (t15*)__result;
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
|
341ba312bc63ddc7f4f7407c9e2bdb80dea030d2 | 6b7b2b4c1a00a4f16950dab4daf1c9b7d1b3ec79 | /cli.cpp | ba294b01684d08bee24f0ae740b8f87e66f8ccda | [] | no_license | jangmarker/tt1_contextgraph | 659c40138cd220e2d3c60905f6a8c5e93a17db85 | 77429b660e69860a202bad7545f63bef61194fcd | refs/heads/master | 2021-05-09T02:18:43.579308 | 2018-01-29T14:39:18 | 2018-01-29T14:39:18 | 119,204,284 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,721 | cpp | cli.cpp | #include "cli.h"
#include "database.h"
#include "file_access.h"
#include "search.h"
#include "gml_generation.h"
#include "3rdparty/CLI11.hpp"
#include <experimental/filesystem>
#include <string>
#include <string_view>
using namespace std::literals::string_literals;
namespace fs = std::experimental::filesystem;
namespace {
class Phase {
public:
explicit Phase(std::string_view name, std::ostream& ostream)
: stream(ostream)
{
stream << name << "... " << std::flush;
}
~Phase() {
stream << "Done" << std::endl;
}
private:
std::ostream& stream;
};
};
int cli(int argc, char** argv, std::ostream& ostream)
{
CLI::App app{"Text Technologie 1 - Aufgabe 5 - Lösung Jan Marker"};
static struct {
std::string databaseFile;
std::string outputFile;
std::string searchTerm;
std::size_t neighborCount;
std::size_t depth;
} options;
app.add_option("-i", options.databaseFile, "Path to the vector file.")
->check(CLI::ExistingFile)
->mandatory(true);
app.add_option("-o", options.outputFile, "Path to the output GML file.")
->mandatory(true);
app.add_option("-s", options.searchTerm, "Search term.")
->mandatory(true);
app.add_option("-t", options.neighborCount, "Number of neighbors per node.")
->mandatory(true);
app.add_option("-d", options.depth, "Depth of search")
->mandatory(true);
CLI11_PARSE(app, argc, argv);
Database db;
{
Phase phase("Reading file", ostream);
db = file_access::databaseFrom(fs::path(options.databaseFile));
}
search::SearchResultPtr res;
{
Phase phase("Searching", ostream);
res = search::search(db, options.searchTerm,
search::NeighborCount(options.neighborCount),
search::Depth(options.depth + 1)); // the depth is increased by one to know about
// connections between leaf nodes and other
// existing nodes
// for leaf nodes, the graph generation algorithm
// will only create edges that point to already
// existing nodes
}
{
Phase phase("Writing GML", ostream);
gml_generation::writeToFile(fs::path(options.outputFile), gml_generation::Graph{res, options.depth});
}
return 0;
}
|
a124896a5689f6901b2a8db4f3ce6313eff50f01 | 7c1128e7b295b81a80d4ab35b34ef96becc9b923 | /src/framework/error.h | a7649fba055d1f7935443036a45041c654d363db | [
"BSD-2-Clause"
] | permissive | yang123vc/vr | 3a621ddb184c6b96808be107fe9cd515154e306a | e2f9802ecbd9ee4a4b6047ef7d17662e4898fd1c | refs/heads/master | 2020-04-06T06:48:00.567864 | 2016-08-24T03:19:33 | 2016-08-24T03:21:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 329 | h | error.h | #pragma once
#include "framework/fmt.h"
namespace framework {
template <typename ... Args, typename E = std::runtime_error> __declspec(noreturn) void die(const char * format, const Args & ... args) /* throw(E) */ {
string message = fmt::format(format, args...);
throw E(fmt::format(format, args...));
}
} |
be8f5bfa605d32ec8b76146e0824de86f7fc9c18 | 6c78ebd8f7a91957f84e260bf4640e76b8d665e7 | /include/ncine/IAudioDevice.h | a34eea9c5c6fbc9d8362bf43a6d320210ee4bf70 | [
"MIT"
] | permissive | TheCoderRaman/nCine | b74728783e34151b4276e2fb303d605602ca78ba | a35f9898cc754a9c1f3c82d8e505160571cb4cf6 | refs/heads/master | 2023-08-28T14:57:43.613194 | 2019-05-30T19:16:32 | 2019-06-14T16:31:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,963 | h | IAudioDevice.h | #ifndef CLASS_NCINE_IAUDIODEVICE
#define CLASS_NCINE_IAUDIODEVICE
#include "common_defines.h"
namespace ncine {
class IAudioPlayer;
/// Audio device interface class
class DLL_PUBLIC IAudioDevice
{
public:
enum class PlayerType
{
BUFFER,
AUDIOSTREAM
};
virtual ~IAudioDevice() = 0;
/// Returns the listener gain value
virtual float gain() = 0;
/// Sets the listener gain value
virtual void setGain(float gain) = 0;
/// Stops every player currently playing
virtual void stopPlayers() = 0;
/// Pauses every player currently playing
virtual void pausePlayers() = 0;
/// Stops every player of the specified type
virtual void stopPlayers(PlayerType playerType) = 0;
/// Pauses every player of the specified type
virtual void pausePlayers(PlayerType playerType) = 0;
/// Pauses every player currently playing without unregistering it
virtual void freezePlayers() = 0;
/// Resumes every player previoulsy "frozen" to a playing state
virtual void unfreezePlayers() = 0;
/// Returns the next available source index available for playing
virtual int nextAvailableSource() = 0;
/// Registers a new stream player for buffer update
virtual void registerPlayer(IAudioPlayer *player) = 0;
/// Updates players state (and buffer queue in the case of stream players)
virtual void updatePlayers() = 0;
};
inline IAudioDevice::~IAudioDevice() {}
/// A fake audio device which doesn't play anything
class DLL_PUBLIC NullAudioDevice : public IAudioDevice
{
public:
float gain() override { return 1.0f; }
void setGain(float gain) override {}
void stopPlayers() override {}
void pausePlayers() override {}
void stopPlayers(PlayerType playerType) override {}
void pausePlayers(PlayerType playerType) override {}
void freezePlayers() override {}
void unfreezePlayers() override {}
int nextAvailableSource() override { return -1; }
void registerPlayer(IAudioPlayer *player) override {}
void updatePlayers() override {}
};
}
#endif
|
04f41097a71a6f839673ceffe4b2267f3d4ec983 | 7c73ae25ddd9c84acdc907b09db6faf8799e01a1 | /Assignments/Lab Assignment Day-25/doblelinkedlist.cpp | 4bc556252cb49d02494d2e72b1d730c4fbd55b68 | [] | no_license | amitbanerjee1999/Lab-Assignment-3rd-Sem | 9c98d7e618a1d6712cfcb0c12c9594d8ba0ea332 | 8bec1ba28dfc374ae5d102278996c66e09767112 | refs/heads/main | 2023-05-15T06:36:44.654035 | 2021-05-30T19:10:53 | 2021-05-30T19:10:53 | 358,642,948 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,894 | cpp | doblelinkedlist.cpp | #include<iostream>
#include <bits/stdc++.h>
using namespace std;
class Node
{
public:
int data;
Node *next;
Node *prev;
};
class DoubleyLinkedList:public Node{
Node *head,*tail;
public:
DoubleyLinkedList(){
head=NULL;
tail=NULL;
}
Node* getnode();
void insertBeg();
void insertEnd();
void insertAfter();
void insertBefore();
void insertAtAnyPos();
void delBeg();
void delEnd();
void delAfter();
void delBefore();
void delAtAnyPos();
void display();
~DoubleyLinkedList();
};
Node* DoubleyLinkedList::getnode()
{
Node *newnode;
newnode=new Node;
cout<<"Enter data :";
cin>>newnode->data;
newnode->next=NULL;
newnode->prev=NULL;
return(newnode);
}
void DoubleyLinkedList::insertBeg(){
Node *temp;
temp=getnode();
if(head==NULL){
head=tail=temp;
}
else{
temp->next=head;
head->prev=temp;
head=temp;
}
cout<<head->data<<"is inserted.\n";
display();
}
void DoubleyLinkedList::insertEnd(){
Node *temp;
temp=getnode();
if(head==NULL){
head=tail=temp;
}
else{
tail->next=temp;
temp->prev=tail;
tail=temp;
}
cout<<tail->data<<"is inserted.\n";
display();
}
void DoubleyLinkedList::insertAfter(){
Node *curr=new Node();
Node *temp=head;
int item;
cout<<"Enter the value:";
cin>>item;
curr->data=item;
if(temp==NULL){
cout<<"The list is empty!!!\n please make the list first and the try again!!!!"<<endl;
return;
}
else{
curr->prev=temp;
curr->next=temp->next;
temp->next->prev=curr;
temp->next=curr;
return;
}
}
void DoubleyLinkedList::insertBefore(){
}
void DoubleyLinkedList::insertAtAnyPos(){
}
void DoubleyLinkedList::delBeg(){
if(head==NULL){
cout<<"The list is empty!!!"<<endl;
}
else{
cout<<head->data<<" is deleted.\n";
if(head==tail){
head=tail=NULL;
}
else{
Node* temp;
temp=head;
head=head->next;
head->prev=NULL;
free(temp);
}
display();
}
}
void DoubleyLinkedList::delEnd(){
if(head==NULL){
cout<<"the list is empty!!!!"<<endl;
}
else{
cout<<tail->data<<" is deleted.\n";
if(head==tail){
head=tail=NULL;
}
else{
Node* temp;
temp=tail;
tail=tail->prev;
free(temp);
tail->next=NULL;
}
display();
}
}
void DoubleyLinkedList::delAfter(){
}
void DoubleyLinkedList::delBefore(){
}
void DoubleyLinkedList::delAtAnyPos(){
}
void DoubleyLinkedList::display(){
if(head==NULL){
cout<<"The List is Empty!!!!\n";
}
else{
Node *temp=head;
cout<<"The element in the list are: ";
while(temp!=NULL){
cout<<temp->data<<"<-->";
temp=temp->next;
}
}
cout<<"NULL"<<endl;
}
DoubleyLinkedList :: ~DoubleyLinkedList(){
Node *temp=head;
while(head!=NULL){
head=head->next;
delete (temp);
temp=head;
}
}
int main()
{
DoubleyLinkedList d;
int c;
do{
cout<<"\n******Enter Your Choice******\n";
cout<<"1:Insert Element at The Begening of the Doubly Linked List "<<endl;
cout<<"2:Insert Element at The End of the Doubly Linked List"<<endl;
cout<<"3:Display the Linked List"<<endl;
cout<<"4:Delete Element at begening"<<endl;
cout<<"5:Delete Element at end"<<endl;
cout<<"6:bguyfvcgh"<<endl;
cout<<"0:EXIT out!!!!"<<endl;
cin>>c;
switch(c){
case 1:
system("CLS");
d.insertBeg();
break;
case 2:
system("CLS");
d.insertEnd();
break;
case 3:
system("CLS");
d.display();
break;
case 4:
system("CLS");
d.delBeg();
break;
case 5:
system("CLS");
d.delEnd();
break;
case 6:
system("CLS");
d.insertAfter();
break;
case 0:
cout<<"Good Bye!!!!!!!";
break;
default:cout<<"Wrong Selection!!! please try again!!!"<<endl;
}
}
while(c!=0);
return 0;
}
|
d8fb59d628fba035d0234946e0f4b35a347f2ee9 | d38d42d5ac27be333b0a7514b9f1eb60724e7e6e | /Pong/Math.cpp | ac6451b0f5fbd92740a11e3b7483fe35b3c9ff3c | [] | no_license | hilvi/SimpleEngine | 220569cbc7665c2d6f2270fcc640ec5bf2df40f6 | 6bac87854c6c8f976e8d0f6e4dc08f339d592ace | refs/heads/master | 2021-01-23T11:55:15.148077 | 2014-03-14T08:00:38 | 2014-03-14T08:00:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 622 | cpp | Math.cpp | #include "Math.h"
namespace Math
{
float dotProduct(const sf::Vector2f &lhs, const sf::Vector2f &rhs)
{
return lhs.x * rhs.x + lhs.y * rhs.y;
}
sf::Vector2f reflection(const sf::Vector2f &vector, const sf::Vector2f &normal)
{
return vector - 2 * dotProduct(vector, normal) * normal;
}
sf::Vector2f normalize(const sf::Vector2f &vector)
{
float mag = magnitude(vector);
if(mag == 0)
return sf::Vector2f(0 , 0);
else
return sf::Vector2f(vector.x / mag, vector.y / mag);
}
float magnitude(const sf::Vector2f &vector)
{
return sqrtf(vector.x * vector.x + vector.y * vector.y);
}
}
|
402ed41bccb3b8a34651b8ad87187533028f2cf2 | 44dc0b2c24a056affaf94502d6ff09fe920129ee | /AirBreakers/LoadInTitle.cpp | 2d5eafe600a3332006364a75e33ae954d9672925 | [] | no_license | kazenoarika/AirBreakers | 07c39335b0a51fde738448372d65c6c505668f26 | eb97b2aebc0474a980a1e55736cbc33902548213 | refs/heads/master | 2020-04-06T04:12:08.047244 | 2016-07-11T01:01:14 | 2016-07-11T01:04:48 | 56,426,892 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,578 | cpp | LoadInTitle.cpp | #include "Game.h"
#include "LoadInTitle.h"
#include "Input.h"
CLoadInTitle::CLoadInTitle(const std::shared_ptr<ITitleChanger> changer):BaseTitle(changer){
}
CLoadInTitle::~CLoadInTitle(void)
{
}
void CLoadInTitle::Initialize(){
GhBackground = LoadGraph("dat/image/title/load00.jpg");
/* std::ifstream ifs("");
char str[256];
if(ifs.fail()){
// ファイル読み込み失敗
}
while(ifs.getline(str, 256)){
}
*/
/*== メニュー周り設定 ================*/
int tmpMenuMax = Game::Instance()->MaxSavedata;
mMenumgr.SetCurrent(0);
mMenumgr.SetSelectMax(tmpMenuMax);
std::string strTmp[] = {"Savedata1","Savedata2","Savedata3"};
const int menuDX = 100;
const int menuDY = 100;
const int betweenDY = 169;
for(int i=0;i<tmpMenuMax;i++){
mMenumgr.GetMenu(i)->SetMenu(menuDX, menuDY+(i*betweenDY), strTmp[i], "");
}
state = LOAD;}
void CLoadInTitle::Finalize(){
}
void CLoadInTitle::Draw(){
DrawGraph(0,0,GhBackground,false);
/*== ================*/
const int defX = mMenumgr.GetCurrentMenu()->GetTransform().GetX();
const int defY = mMenumgr.GetCurrentMenu()->GetTransform().GetY();
const int width = 685;
const int height = 150;
SetDrawBlendMode(DX_BLENDMODE_ALPHA, 80); // 透明度を引数から設定
DrawFillBox(
defX,
defY,
defX + width,
defY + height,
GetColor(40,40,40)
);
SetDrawBlendMode( DX_BLENDMODE_NOBLEND , 0 );}
void CLoadInTitle::Update(){
if(pInput->IsPushUp()==1){
mMenumgr.CurrentUp();
}
if(pInput->IsPushDown()==1){
mMenumgr.CurrentDown();
}
if(pInput->IsPushBom()==1){
GoToMenu();
}} |
4c15994499fa3334a99cfd723015b6f85dffc4fd | 914a83057719d6b9276b1a0ec4f9c66fea064276 | /test/performance-regression/full-apps/qmcpack/src/Optimize/VariableSet.cpp | 79c6a7d94b5c16efe97563e5c61ded7a2904aa09 | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-free-unknown",
"GPL-1.0-or-later",
"BSD-2-Clause"
] | permissive | jjwilke/hclib | e8970675bf49f89c1e5e2120b06387d0b14b6645 | 5c57408ac009386702e9b96ec2401da0e8369dbe | refs/heads/master | 2020-03-31T19:38:28.239603 | 2018-12-21T20:29:44 | 2018-12-21T20:29:44 | 152,505,070 | 0 | 0 | Apache-2.0 | 2018-10-11T00:02:52 | 2018-10-11T00:02:51 | null | UTF-8 | C++ | false | false | 4,783 | cpp | VariableSet.cpp | //////////////////////////////////////////////////////////////////
// (c) Copyright 2008- by Jeongnim Kim
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
// Jeongnim Kim
// National Center for Supercomputing Applications &
// Materials Computation Center
// University of Illinois, Urbana-Champaign
// Urbana, IL 61801
// e-mail: jnkim@ncsa.uiuc.edu
//
// Supported by
// National Center for Supercomputing Applications, UIUC
// Materials Computation Center, UIUC
//////////////////////////////////////////////////////////////////
// -*- C++ -*-
/** @file VariableSet.cpp
* @brief Define VariableSet functions.
*/
#include "Optimize/VariableSet.h"
#include <map>
namespace optimize
{
// VariableSet::VariableSet(variable_map_type& input):num_active_vars(0)
// {
// Index.resize(input.size(),-1);
// NameAndValue.resize(input.size());
// std::copy(input.begin(),input.end(),NameAndValue.begin());
// for(int i=0; i<Index.size(); ++i) Index[i]=i;
//
// ParameterType.resize(0); Recompute.resize(0);
// for(int i=0; i<Index.size(); ++i) ParameterType.push_back(indx_pair_type(NameAndValue[i].first,0));
// for(int i=0; i<Index.size(); ++i) Recompute.push_back(indx_pair_type(NameAndValue[i].first,1));
// }
void VariableSet::clear()
{
num_active_vars=0;
Index.clear();
NameAndValue.clear();
Recompute.clear();
ParameterType.clear();
}
/** insert name-value pairs of this object to output
* @param output parameters to be added
*/
// void VariableSet::insertTo(variable_map_type& output) const
// {
// for(int i=0; i<Index.size(); ++i)
// {
// if(Index[i]>-1)
// {
// output[NameAndValue[i].first]=NameAndValue[i].second;
// output[Recompute[i].first]=Recompute[i].second;
// output[ParameterType[i].first]=ParameterType[i].second;
// }
// }
// }
void VariableSet::insertFrom(const VariableSet& input)
{
for(int i=0; i<input.size(); ++i)
{
iterator loc=find(input.name(i));
if(loc==NameAndValue.end())
{
Index.push_back(input.Index[i]);
NameAndValue.push_back(input.NameAndValue[i]);
ParameterType.push_back(input.ParameterType[i]);
Recompute.push_back(input.Recompute[i]);
}
else
(*loc).second=input.NameAndValue[i].second;
}
num_active_vars=input.num_active_vars;
}
void VariableSet::activate(const variable_map_type& selected)
{
//activate the variables
variable_map_type::const_iterator it(selected.begin()),it_end(selected.end());
while(it != it_end)
{
iterator loc=find((*it++).first);
if(loc != NameAndValue.end())
{
int i=loc-NameAndValue.begin();
if(Index[i]<0)
Index[i]=num_active_vars++;
}
}
}
void VariableSet::disable(const variable_map_type& selected)
{
variable_map_type::const_iterator it(selected.begin()),it_end(selected.end());
while(it != it_end)
{
int loc=find((*it++).first)-NameAndValue.begin();
if(loc<NameAndValue.size())
Index[loc]=-1;
}
}
void VariableSet::removeInactive()
{
std::vector<int> valid(Index);
std::vector<pair_type> acopy(NameAndValue);
std::vector<indx_pair_type> bcopy(Recompute), ccopy(ParameterType);
num_active_vars=0;
Index.clear();
NameAndValue.clear();
Recompute.clear();
ParameterType.clear();
for(int i=0; i<valid.size(); ++i)
{
if(valid[i]>-1)
{
Index.push_back(num_active_vars++);
NameAndValue.push_back(acopy[i]);
Recompute.push_back(bcopy[i]);
ParameterType.push_back(ccopy[i]);
}
}
}
void VariableSet::resetIndex()
{
num_active_vars=0;
for(int i=0; i<Index.size(); ++i)
{
Index[i]=(Index[i]<0)?-1:num_active_vars++;
}
}
void VariableSet::getIndex(const VariableSet& selected)
{
for(int i=0; i<NameAndValue.size(); ++i)
{
Index[i]=selected.getIndex(NameAndValue[i].first);
if(Index[i]>=0)
num_active_vars++;
}
}
void VariableSet::setDefaults(bool optimize_all)
{
for(int i=0; i<Index.size(); ++i)
Index[i]=optimize_all?i:-1;
}
void VariableSet::print(std::ostream& os)
{
for(int i=0; i<NameAndValue.size(); ++i)
{
os <<NameAndValue[i].first << " " << NameAndValue[i].second << " " << ParameterType[i].second << " " << Recompute[i].second << " " ;
if(Index[i]<0)
os << " OFF" << std::endl;
else
os << " ON " << Index[i] << std::endl;
}
}
}
/***************************************************************************
* $RCSfile$ $Author: jnkim $
* $Revision: 2550 $ $Date: 2008-03-26 15:17:43 -0500 (Wed, 26 Mar 2008) $
* $Id: VarList.h 2550 2008-03-26 20:17:43Z jnkim $
***************************************************************************/
|
01f755d9448ed976fbd08ecd1cbfa307481c1d3c | 9de0cec678bc4a3bec2b4adabef9f39ff5b4afac | /PWGLF/SPECTRA/AntiprotonToProton/AliProtonAnalysisBase.h | 5a88df4fed163a0e19fde5848766421ef976dfaa | [] | permissive | alisw/AliPhysics | 91bf1bd01ab2af656a25ff10b25e618a63667d3e | 5df28b2b415e78e81273b0d9bf5c1b99feda3348 | refs/heads/master | 2023-08-31T20:41:44.927176 | 2023-08-31T14:51:12 | 2023-08-31T14:51:12 | 61,661,378 | 129 | 1,150 | BSD-3-Clause | 2023-09-14T18:48:45 | 2016-06-21T19:31:29 | C++ | UTF-8 | C++ | false | false | 16,459 | h | AliProtonAnalysisBase.h | #ifndef ALIPROTONANALYSISBASE_H
#define ALIPROTONANALYSISBASE_H
/* See cxx source for full Copyright notice */
/* $Id: AliProtonAnalysisBase.h 31056 2009-02-16 14:31:41Z pchrist $ */
//-------------------------------------------------------------------------
// Class AliProtonAnalysisBase
// This is the base class for the baryon (proton) analysis
//
// Origin: Panos Christakoglou | Panos.Christakoglou@cern.ch
//-------------------------------------------------------------------------
#include "TObject.h"
#include "TString.h"
class TF1;
class TCanvas;
class TList;
#include "AliPhysicsSelection.h"
#include "AliBackgroundSelection.h"
#include "AliPID.h"
#include "AliAODMCParticle.h"
class AliESDEvent;
class AliESDtrack;
class AliESDVertex;
class AliAODVertex;
class AliAODEvent;
class AliAODTrack;
class AliPIDResponse;
class AliProtonAnalysisBase : public TObject {
public:
enum AnalysisMode { kInvalid = -1, kTPC = 0, kHybrid, kFullHybrid, kGlobal };
enum PIDMode { kBayesian = 0, kRatio, kSigma};
enum CollidingSystem {pp = 0, pA, AA};
AliProtonAnalysisBase();
virtual ~AliProtonAnalysisBase();
void SetAnalysisLevel(const char* type) {fProtonAnalysisLevel = type;}
void SetAnalysisMode(AnalysisMode analysismode) {fProtonAnalysisMode = analysismode;}
void SetEtaMode() {fAnalysisEtaMode = kTRUE;}
void SetPIDMode(PIDMode pidmode) {fProtonPIDMode = pidmode;}
void SetCollidingSystem(CollidingSystem system) {fSystem = system;}
CollidingSystem GetCollidingSystem() {return fSystem;}
const char *GetAnalysisLevel() {return fProtonAnalysisLevel.Data();}
AnalysisMode GetAnalysisMode() const {return fProtonAnalysisMode;}
Bool_t GetEtaMode() const {return fAnalysisEtaMode;}
PIDMode GetPIDMode() const {return fProtonPIDMode;}
Bool_t GetMCAnalysisMode() {return fAnalysisMC;}
void SetMCAnalysisMode(Bool_t mode) {fAnalysisMC = mode;}
const AliESDVertex *GetVertex(AliESDEvent *esd,
AnalysisMode mode,
Double_t gVx = 100.,
Double_t gVy = 100.,
Double_t gVz = 100.);
const AliAODVertex *GetVertex(AliAODEvent *aod,
Double_t gVx = 100.,
Double_t gVy = 100.,
Double_t gVz = 100.);
void SetAcceptedVertexDiamond(Double_t gVx, Double_t gVy, Double_t gVz) {
fVxMax = gVx; fVyMax = gVy; fVzMax = gVz;}
Double_t GetVxMax() const {return fVxMax;}
Double_t GetVyMax() const {return fVyMax;}
Double_t GetVzMax() const {return fVzMax;}
void SetMinNumOfContributors(Int_t nContributors) {
fMinNumOfContributors = nContributors;}
Int_t GetMinNumOfContributors() {return fMinNumOfContributors;}
void SetPhaseSpace(Int_t nBinsX, Double_t gXmin, Double_t gXmax,
Int_t nBinsY, Double_t gYmin, Double_t gYmax) {
fNBinsX = nBinsX; fMinX = gXmin; fMaxX = gXmax;
fNBinsY = nBinsY; fMinY = gYmin; fMaxY = gYmax;
}
Int_t GetNBinsX() const {return fNBinsX;}
Int_t GetNBinsY() const {return fNBinsY;}
Double_t GetMinX() const {return fMinX;}
Double_t GetMinY() const {return fMinY;}
Double_t GetMaxX() const {return fMaxX;}
Double_t GetMaxY() const {return fMaxY;}
TF1 *GetPtDependentDcaXY () const {return fPtDependentDcaXY;}
//Physics Selection
void OfflineTriggerInit() {
kUseOfflineTrigger = kTRUE;
fPhysicsSelection = new AliPhysicsSelection();
if(fAnalysisMC)fPhysicsSelection->SetAnalyzeMC();
}
Bool_t IsOfflineTriggerUsed() {return kUseOfflineTrigger;}
AliPhysicsSelection *GetPhysicsSelectionObject() {return fPhysicsSelection;}
//PID object
void SetPIDResponse(AliPIDResponse *response) {fPIDResponse = response;}
AliPIDResponse *GetPIDResponse() {return fPIDResponse;}
Bool_t IsPrimary(AliESDEvent *esd,
const AliESDVertex *vertex,
AliESDtrack *track);
Bool_t IsAccepted(AliESDtrack *track);
Bool_t IsInPhaseSpace(AliESDtrack *track);
Bool_t IsAccepted(AliAODTrack *track);
Bool_t IsInPhaseSpace(AliAODMCParticle *track);
Float_t GetSigmaToVertex(AliESDtrack* esdTrack) const;
Double_t Rapidity(Double_t Px, Double_t Py, Double_t Pz) const;
//Cut functions
void SetITSSAMultiplicity(){
fMultITSSAFlag = kTRUE;
}
void SetMultiplicityMode(){
fMultFlag = kTRUE;
}
void SetMultiplicityRange(Float_t min,Float_t max){
fMinMult = min;
fMaxMult = max;
}
Bool_t IsUsedMultiplicitySelection() {return fMultFlag;}
Bool_t IsUsedITSSAMultiplicitySelection() {return fMultITSSAFlag;}
void SetPointOnSPDLayers() {fPointOnSPDLayersFlag = kTRUE;}
void UnSetPointOnSPDLayers() {fPointOnSPDLayersFlag = kFALSE;}
void SetPointOnSDDLayers() {fPointOnSDDLayersFlag = kTRUE;}
void SetPointOnSSDLayers() {fPointOnSSDLayersFlag = kTRUE;}
void SetPointOnITSLayer1() {fPointOnITSLayer1Flag = kTRUE;}
void SetPointOnITSLayer2() {fPointOnITSLayer2Flag = kTRUE;}
void SetPointOnITSLayer3() {fPointOnITSLayer3Flag = kTRUE;}
void SetPointOnITSLayer4() {fPointOnITSLayer4Flag = kTRUE;}
void SetPointOnITSLayer5() {fPointOnITSLayer5Flag = kTRUE;}
void SetPointOnITSLayer6() {fPointOnITSLayer6Flag = kTRUE;}
Bool_t IsUsedPointOnSPDLayer() const {return fPointOnSPDLayersFlag;}
Bool_t IsUsedPointOnSDDLayer() const {return fPointOnSDDLayersFlag;}
Bool_t IsUsedPointOnSSDLayer() const {return fPointOnSSDLayersFlag;}
Bool_t IsUsedPointOnITSLayer1() const {return fPointOnITSLayer1Flag;}
Bool_t IsUsedPointOnITSLayer2() const {return fPointOnITSLayer2Flag;}
Bool_t IsUsedPointOnITSLayer3() const {return fPointOnITSLayer3Flag;}
Bool_t IsUsedPointOnITSLayer4() const {return fPointOnITSLayer4Flag;}
Bool_t IsUsedPointOnITSLayer5() const {return fPointOnITSLayer5Flag;}
Bool_t IsUsedPointOnITSLayer6() const {return fPointOnITSLayer6Flag;}
void SetMinITSClusters(Int_t minITSClusters) {
fMinITSClusters = minITSClusters;
fMinITSClustersFlag = kTRUE;
}
Int_t GetMinITSClusters() const {return fMinITSClusters;}
Bool_t IsUsedMinITSClusters() const {return fMinITSClustersFlag;}
void SetMaxChi2PerITSCluster(Double_t maxChi2PerITSCluster) {
fMaxChi2PerITSCluster = maxChi2PerITSCluster;
fMaxChi2PerITSClusterFlag = kTRUE;
}
Bool_t IsUsedMaxChi2PerITSCluster() const {return fMaxChi2PerITSClusterFlag;}
Double_t GetMaxChi2PerITSCluster() const {return fMaxChi2PerITSCluster;}
void SetMinTPCClusters(Int_t minTPCClusters) {
fMinTPCClusters = minTPCClusters;
fMinTPCClustersFlag = kTRUE;
}
Bool_t IsUsedMinTPCClusters() const {return fMinTPCClustersFlag;}
Int_t GetMinTPCClusters() const {return fMinTPCClusters;}
void SetMaxChi2PerTPCCluster(Double_t maxChi2PerTPCCluster) {
fMaxChi2PerTPCCluster = maxChi2PerTPCCluster;
fMaxChi2PerTPCClusterFlag = kTRUE;
}
Bool_t IsUsedMaxChi2PerTPCCluster() const {return fMaxChi2PerTPCClusterFlag;}
Double_t GetMaxChi2PerTPCCluster() const {return fMaxChi2PerTPCCluster;}
void SetMaxCov11(Double_t maxCov11) {
fMaxCov11 = maxCov11; fMaxCov11Flag = kTRUE;}
void SetMaxCov22(Double_t maxCov22) {
fMaxCov22 = maxCov22; fMaxCov22Flag = kTRUE;}
void SetMaxCov33(Double_t maxCov33) {
fMaxCov33 = maxCov33; fMaxCov33Flag = kTRUE;}
void SetMaxCov44(Double_t maxCov44) {
fMaxCov44 = maxCov44; fMaxCov44Flag = kTRUE;}
void SetMaxCov55(Double_t maxCov55) {
fMaxCov55 = maxCov55; fMaxCov55Flag = kTRUE;}
Bool_t IsUsedMaxCov11() const {return fMaxCov11Flag;}
Bool_t IsUsedMaxCov22() const {return fMaxCov22Flag;}
Bool_t IsUsedMaxCov33() const {return fMaxCov33Flag;}
Bool_t IsUsedMaxCov44() const {return fMaxCov44Flag;}
Bool_t IsUsedMaxCov55() const {return fMaxCov55Flag;}
Double_t GetMaxCov11() const {return fMaxCov11;}
Double_t GetMaxCov22() const {return fMaxCov22;}
Double_t GetMaxCov33() const {return fMaxCov33;}
Double_t GetMaxCov44() const {return fMaxCov44;}
Double_t GetMaxCov55() const {return fMaxCov55;}
void SetMaxSigmaToVertex(Double_t maxSigmaToVertex) {
fMaxSigmaToVertex = maxSigmaToVertex;
fMaxSigmaToVertexFlag = kTRUE;
}
Bool_t IsUsedMaxSigmaToVertex() const {return fMaxSigmaToVertexFlag;}
Double_t GetMaxSigmaToVertex() const {return fMaxSigmaToVertex;}
void SetMaxSigmaToVertexTPC(Double_t maxSigmaToVertex) {
fMaxSigmaToVertexTPC = maxSigmaToVertex;
fMaxSigmaToVertexTPCFlag = kTRUE;
}
Bool_t IsUsedMaxSigmaToVertexTPC() const {return fMaxSigmaToVertexTPCFlag;}
Double_t GetMaxSigmaToVertexTPC() const {return fMaxSigmaToVertexTPC;}
void SetMaxDCAXY(Double_t maxDCAXY) {
fMaxDCAXY = maxDCAXY;
fMaxDCAXYFlag = kTRUE;
//fPtDependentDcaXYFlag = kFALSE;
}
Bool_t IsUsedMaxDCAXY() const {return fMaxDCAXYFlag;}
Double_t GetMaxDCAXY() const {return fMaxDCAXY;}
void SetMaxDCAXYTPC(Double_t maxDCAXY) {
fMaxDCAXYTPC = maxDCAXY;
fMaxDCAXYTPCFlag = kTRUE;
}
Bool_t IsUsedMaxDCAXYTPC() const {return fMaxDCAXYTPCFlag;}
Double_t GetMaxDCAXYTPC() const {return fMaxDCAXYTPC;}
void SetMaxDCAZ(Double_t maxDCAZ) {
fMaxDCAZ = maxDCAZ;
fMaxDCAZFlag = kTRUE;
}
Bool_t IsUsedMaxDCAZ() const {return fMaxDCAZFlag;}
Double_t GetMaxDCAZ() const {return fMaxDCAZ;}
void SetMaxDCAZTPC(Double_t maxDCAZ) {
fMaxDCAZTPC = maxDCAZ;
fMaxDCAZTPCFlag = kTRUE;
}
Bool_t IsUsedMaxDCAZTPC() const {return fMaxDCAZTPCFlag;}
Double_t GetMaxDCAZTPC() const {return fMaxDCAZTPC;}
void SetMaxDCA3D(Double_t maxDCA3D) {
fMaxDCA3D = maxDCA3D;
fMaxDCA3DFlag = kTRUE;
}
Bool_t IsUsedMaxDCA3D() const {return fMaxDCA3DFlag;}
Double_t GetMaxDCA3D() const {return fMaxDCA3D;}
void SetPtDependentDCAxy(Int_t nSigma, Double_t p0,
Double_t p1, Double_t p2);
Bool_t IsUsedPtDependentDCAxy() const {return fPtDependentDcaXYFlag;}
void SetMaxDCA3DTPC(Double_t maxDCA3D) {
fMaxDCA3DTPC = maxDCA3D;
fMaxDCA3DTPCFlag = kTRUE;
}
Bool_t IsUsedMaxDCA3DTPC() const {return fMaxDCA3DTPCFlag;}
Double_t GetMaxDCA3DTPC() const {return fMaxDCA3DTPC;}
void SetMaxConstrainChi2(Double_t maxConstrainChi2) {
fMaxConstrainChi2 = maxConstrainChi2;
fMaxConstrainChi2Flag = kTRUE;
}
Bool_t IsUsedMaxConstrainChi2() const {return fMaxConstrainChi2Flag;}
Double_t GetMaxConstrainChi2() const {return fMaxConstrainChi2;}
void SetMinTPCdEdxPoints(Int_t mindEdxpoints) {
fMinTPCdEdxPoints = mindEdxpoints;
fMinTPCdEdxPointsFlag = kTRUE;
}
Bool_t IsUsedMinTPCdEdxPoints() const {return fMinTPCdEdxPointsFlag;}
Int_t GetMinTPCdEdxPoints() const {return fMinTPCdEdxPoints;}
void SetITSRefit() {fITSRefitFlag = kTRUE;}
Bool_t IsUsedITSRefit() const {return fITSRefitFlag;}
void SetTPCRefit() {fTPCRefitFlag = kTRUE;}
Bool_t IsUsedTPCRefit() const {return fTPCRefitFlag;}
void SetESDpid() {fESDpidFlag = kTRUE;}
Bool_t IsUsedESDpid() const {return fESDpidFlag;}
void SetTPCpid() {fTPCpidFlag = kTRUE;}
Bool_t IsUsedTPCpid() const {return fTPCpidFlag;}
void SetTOFpid() {fTOFpidFlag = kTRUE;}
Bool_t IsUsedTOFpid() const {return fTOFpidFlag;}
TCanvas *GetListOfCuts();
Bool_t IsInMultiplicityWindow(AliESDEvent* const fESD);
//PID related functions
Bool_t IsProton(AliESDtrack *track);
void SetNSigma(Int_t nsigma) {fNSigma = nsigma;}
Int_t GetNSigma() const {return fNSigma;}
void SetRatio(Double_t ratio) {fNRatio = ratio;}
Double_t GetRatio() {return fNRatio;}
void SetPriorProbabilities(Double_t * const partFrac) {
for(Int_t i = 0; i < AliPID::kSPECIESC; i++) fPartFrac[i] = partFrac[i];}
void SetPriorProbabilityFunctions(TF1 *const felectron,
TF1 *const fmuon,
TF1 *const fpion,
TF1 *const fkaon,
TF1 *const fproton) {
fFunctionProbabilityFlag = kTRUE;
fElectronFunction = felectron; fMuonFunction = fmuon;
fPionFunction = fpion; fKaonFunction = fkaon; fProtonFunction = fproton;
}
Bool_t IsPriorProbabilityFunctionUsed() const {return fFunctionProbabilityFlag;}
Double_t GetParticleFraction(Int_t i, Double_t p);
//Double_t Bethe(Double_t bg) const;
void SetDebugMode() {fDebugMode = kTRUE;}
Bool_t GetDebugMode() const {return fDebugMode;}
void SetRunQA();
Bool_t IsQARun() {return fRunQAAnalysis;}
TList *GetVertexQAList() {return fListVertexQA;}
private:
AliProtonAnalysisBase(const AliProtonAnalysisBase&); // Not implemented
AliProtonAnalysisBase& operator=(const AliProtonAnalysisBase&); // Not implemented
AliPIDResponse *fPIDResponse; // PID response Handler
TString fProtonAnalysisLevel;//"ESD", "AOD" or "MC"
Bool_t fAnalysisMC; //kTRUE if MC analysis while reading the ESDs
Bool_t kUseOfflineTrigger; //use the offline trigger or not
AliPhysicsSelection *fPhysicsSelection; //Trigger selection: offline
AnalysisMode fProtonAnalysisMode; //Analysis mode: TPC-Hybrid-Global
PIDMode fProtonPIDMode; //PID mode: Bayesian-dE/dx ratio-Nsigma areas
Bool_t fAnalysisEtaMode; //run the analysis in eta or y
CollidingSystem fSystem; //
Bool_t fRunQAAnalysis; //boolnean to indicate to run the QA or not
Double_t fVxMax, fVyMax, fVzMax; //vertex diamond constrain
Int_t fMinNumOfContributors;//min number of contributors
Int_t fNBinsX; //number of bins in y or eta
Double_t fMinX, fMaxX; //min & max value of y or eta
Int_t fNBinsY; //number of bins in pT
Double_t fMinY, fMaxY; //min & max value of pT
//cuts
Bool_t fMultFlag;
Bool_t fMultITSSAFlag;
Float_t fMinMult, fMaxMult;
Int_t fMinTPCClusters, fMinITSClusters; //min TPC & ITS clusters
Double_t fMaxChi2PerTPCCluster, fMaxChi2PerITSCluster; //max chi2 per TPC & ITS cluster
Double_t fMaxCov11, fMaxCov22, fMaxCov33, fMaxCov44, fMaxCov55; //max values of cov. matrix
Double_t fMaxSigmaToVertex; //max sigma to vertex cut
Double_t fMaxSigmaToVertexTPC; //max sigma to vertex cut
Double_t fMaxDCAXY, fMaxDCAXYTPC; //max DCA xy
Double_t fMaxDCAZ, fMaxDCAZTPC; //max DCA z
Double_t fMaxDCA3D, fMaxDCA3DTPC; //max DCA 3D
Double_t fMaxConstrainChi2; //max constrain chi2 - vertex
Int_t fMinTPCdEdxPoints;//min number of TPC points used for the dE/dx
Bool_t fMinTPCClustersFlag, fMinITSClustersFlag; //shows if this cut is used or not
Bool_t fMaxChi2PerTPCClusterFlag, fMaxChi2PerITSClusterFlag; //shows if this cut is used or not
Bool_t fMaxCov11Flag, fMaxCov22Flag, fMaxCov33Flag, fMaxCov44Flag, fMaxCov55Flag; //shows if this cut is used or not
Bool_t fMaxSigmaToVertexFlag; //shows if this cut is used or not
Bool_t fMaxSigmaToVertexTPCFlag; //shows if this cut is used or not
Bool_t fMaxDCAXYFlag, fMaxDCAXYTPCFlag; //shows if this cut is used or not
Bool_t fMaxDCAZFlag, fMaxDCAZTPCFlag; //shows if this cut is used or not
Bool_t fMaxDCA3DFlag, fMaxDCA3DTPCFlag; //shows if this cut is used or not
Bool_t fMaxConstrainChi2Flag; //shows if this cut is used or not
Bool_t fITSRefitFlag, fTPCRefitFlag; //shows if this cut is used or not
Bool_t fESDpidFlag, fTPCpidFlag, fTOFpidFlag; //shows if this cut is used or not
Bool_t fPointOnSPDLayersFlag;//shows if this cut is used or not
Bool_t fPointOnSDDLayersFlag;//shows if this cut is used or not
Bool_t fPointOnSSDLayersFlag;//shows if this cut is used or not
Bool_t fPointOnITSLayer1Flag, fPointOnITSLayer2Flag; //shows if this cut is used or not
Bool_t fPointOnITSLayer3Flag, fPointOnITSLayer4Flag; //shows if this cut is used or not
Bool_t fPointOnITSLayer5Flag, fPointOnITSLayer6Flag; //shows if this cut is used or not
Bool_t fMinTPCdEdxPointsFlag; //shows if this cut is used or not
TF1 *fPtDependentDcaXY; //pt dependence dca cut (xy)
Bool_t fPtDependentDcaXYFlag; //shows if this cut is used or not
Int_t fNSigmaDCAXY; //n-sigma dca xy cut (pt dependent)
//pid
Bool_t fFunctionProbabilityFlag; //flag: kTRUE if functions used
Int_t fNSigma; //N-sigma cut in the dE/dx band
Double_t fNRatio; //min value of the ratio of the measured dE/dx vs the expected
Double_t fPartFrac[10]; //prior probabilities
TF1 *fElectronFunction; //momentum dependence of the prior probs
TF1 *fMuonFunction; //momentum dependence of the prior probs
TF1 *fPionFunction; //momentum dependence of the prior probs
TF1 *fKaonFunction; //momentum dependence of the prior probs
TF1 *fProtonFunction; //momentum dependence of the prior probs
//Debug
Bool_t fDebugMode; //Enable the debug mode
//QA list
TList *fListVertexQA; //vertex QA list
ClassDef(AliProtonAnalysisBase,1);
};
#endif
|
26b47f260becbf79b5749f8e83e4ff188b8ba92a | b0acd23046e2d4fb2facdb4b37d7b464547108dc | /Data Structures/Doubly Linked List/Doubly Linked List.cpp | 33e1d514fe95d29d7b67db7b3f09eba06a2b9d9c | [
"MIT"
] | permissive | AliOsm/ADT | 6e352c97440e0ab7be26cea30f7589d1ab361ef4 | 1d9ff3a18e7009a48254173392b31ae9b3c17397 | refs/heads/master | 2021-06-03T06:03:48.049449 | 2020-02-14T01:18:19 | 2020-02-14T01:18:19 | 110,666,418 | 4 | 4 | MIT | 2018-04-07T11:54:21 | 2017-11-14T09:05:36 | C++ | UTF-8 | C++ | false | false | 2,050 | cpp | Doubly Linked List.cpp | #include <iostream>
using namespace std;
typedef int T;
struct node{
T info;
node *next;
node *back;
node(T data = 0,node *n = NULL,node * b =NULL){
info = data;
next = n;
back = b;
}
};
class DoublyLinkedList{
private:
node *first,*last;
int length;
public:
DoublyLinkedList(){
first = last = NULL;
length = 0;
}
void insert(T val){
node *NewNode = new node(val);
if(first == NULL)
last = first = NewNode;
else{
NewNode -> back = last;
last -> next = NewNode;
last = NewNode;
}
++length;
}
void insertFirst(T val){
node *NewNode = new node(val);
if(first == NULL)
last = first = NewNode;
else{
first -> back = NewNode;
NewNode -> next = first;
first = NewNode;
}
++length;
}
void insertAt(T val,int pos){
if(pos >= length || pos < 0){
cout <<"index "<<pos<<" is Out of Range \n";
return;
}
node *cur = first,* Newnode;
if(first == NULL)
insert(val);
else {
int i=0;
while(cur -> next != NULL && i < pos){
++i;
cur = cur ->next;
}
if(pos > i + 1)
return;
else if(cur -> next == NULL && pos == i + 1)
insert(val);
else if(pos == 0)
insertFirst(val);
else {
Newnode = new node(val);
node *tail = cur -> back;
tail -> next = Newnode;
Newnode -> back = tail;
Newnode -> next = cur;
}
}
++length;
}
void pop(){//O(1)
if(first == NULL)
return;
else if(first -> next == NULL){
delete first;
first = last = NULL;
}else{
last = last -> back;
delete last -> next;
last -> next = NULL;
}
--length;
}
void print(){
node *cur = first ;
while(cur != NULL){
cout <<cur -> info <<" ";
cur = cur -> next;
}
cout <<'\n';
}
void ClearList(){
node *Newnode = first;
while(first != NULL){
Newnode = first;
first = first->next;
delete Newnode;
}
length = 0;
}
~DoublyLinkedList(){
ClearList();
}
};
int main(){
DoublyLinkedList l;
l.insert(2);
l.insertFirst(8);
l.insertAt(5,0);
l.insertAt(10,3);
l.pop();
l.print();
return 0;
} |
c03e435ace5798318b432497f120ad5ea9dfc3ad | d690a7f7fe2329f08274e50d6b9f6c1e048c5e57 | /src/platform/stm32/drivers/UsbMidi.h | ee925f5b1389e32c5896bce3b6d49bd881637d21 | [
"freertos-exception-2.0",
"MIT",
"GPL-2.0-or-later"
] | permissive | westlicht/performer | 5fde2bbb74db2eb9b855cc08c11fb99f3cb8746a | dac9d12621b4683fc0e98303a422b34ac6f3d23a | refs/heads/master | 2022-10-03T00:02:48.422071 | 2022-06-07T12:16:45 | 2022-06-07T20:46:39 | 98,348,867 | 219 | 69 | MIT | 2022-09-21T13:31:29 | 2017-07-25T20:51:01 | C | UTF-8 | C++ | false | false | 2,468 | h | UsbMidi.h | #pragma once
#include "core/utils/RingBuffer.h"
#include "core/midi/MidiMessage.h"
#include <functional>
#include <cstdint>
class UsbMidi {
public:
typedef std::function<void(uint16_t vendorId, uint16_t productId)> ConnectHandler;
typedef std::function<void()> DisconnectHandler;
typedef std::function<bool(uint8_t)> RecvFilter;
void init() {}
bool send(uint8_t cable, const MidiMessage &message) {
if (_txQueue.full()) {
return false;
}
_txQueue.write({ cable, message });
return true;
}
bool recv(uint8_t *cable, MidiMessage *message) {
if (_rxQueue.empty()) {
return false;
}
auto cableAndMessage = _rxQueue.read();
*cable = cableAndMessage.cable;
*message = cableAndMessage.message;
return true;
}
void setConnectHandler(ConnectHandler handler) {
_connectHandler = handler;
}
void setDisconnectHandler(DisconnectHandler handler) {
_disconnectHandler = handler;
}
void setRecvFilter(RecvFilter filter) {
_recvFilter = filter;
}
uint32_t rxOverflow() const { return 0; }
private:
void connect(uint16_t vendorId, uint16_t productId) {
if (_connectHandler) {
_connectHandler(vendorId, productId);
}
}
void disconnect() {
if (_disconnectHandler) {
_disconnectHandler();
}
}
void enqueueMessage(uint8_t cable, const MidiMessage &message) {
if (_rxQueue.full()) {
// overflow
++_rxOverflow;
}
_rxQueue.write({ cable, message });
}
void enqueueData(uint8_t cable, uint8_t data) {
if (_recvFilter && !_recvFilter(data)) {
// _recvFilter(data);
}
}
bool dequeueMessage(uint8_t *cable, MidiMessage *message) {
if (_txQueue.empty()) {
return false;
}
auto messageAndCable = _txQueue.readAndReplace();
*cable = messageAndCable.cable;
*message = messageAndCable.message;
return true;
}
ConnectHandler _connectHandler;
DisconnectHandler _disconnectHandler;
RecvFilter _recvFilter;
struct CableAndMessage {
uint8_t cable;
MidiMessage message;
};
RingBuffer<CableAndMessage, 128> _txQueue;
RingBuffer<CableAndMessage, 16> _rxQueue;
volatile uint32_t _rxOverflow = 0;
friend class UsbH;
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.