text
stringlengths
8
6.88M
#include <cmath> #include "../border.h" /****************************/ /* definizione del contorno */ /****************************/ class Helicoid: public Border { /* t va da 0 a 4 */ double R; double r; double h; double N; public: Helicoid(): R(1.0), r(0.1), h(1.0), N(5.5) {} vector3 border_function(double t) { if (t<2.0) { if (t<1.0) { // t in [0,1] return vector3(r+t*(R-r),0,-h); } else { // t in [1,2] double a=N*2.0*M_PI*(t-1.0); return vector3(R*cos(a),R*sin(a),(t-1.5)*2.0*h); } } else { if (t<3.0) { // t in [2,3] double a=N*2.0*M_PI; double s=(3.0-t)*R; return vector3(r+s*(R-r)*cos(a),r+s*(R-r)*sin(a),h); } else { // t in [3,4] double a=N*2.0*M_PI*(4.0-t); return vector3(r*cos(a),r*sin(a),(3.5-t)*2.0*h); } } return vector3(R*cos(t),R*sin(t),h*cos(N*t)); } vertex* new_border_vertex(vertex *v,vertex *w) { surf &S = *this; vertex *p; double d; if (v->next_border==w || w->next_border==v) { d=(v->border+w->border)/2.0; if (fabs(v->border-w->border)<1.5) { p=S.new_vertex(border_function(d)); p->border=d; } else { cout<<"d="<<d<<" t="<<v->border<<" s="<<w->border<<"\n"; d+=2.0; while (d>=4.0) d-=4.0; p=S.new_vertex(border_function(d)); p->border=d; cout<<"-> d="<<d<<" t="<<v->border<<" s="<<w->border<<"\n"; } if (v->next_border==w) { v->next_border=p; p->next_border=w; } else { w->next_border=p; p->next_border=v; } } else p=S.new_vertex(0.5*(*v+*w)); return p; } void quadr(vertex *a,vertex*b,vertex*c,vertex*d) { new_triangle(a,b,c); new_triangle(a,c,d); } void init_border() { surf &S = *this; int i; cout<<"R= "; cin>>R; cout<<"r= "; cin>>r; cout<<"h= "; cin>>h; cout<<"N= "; cin>>N; int K=7*int(N+1); vertex **p; vertex **q; vertex **r; typedef vertex *vertex_ptr; p=new vertex_ptr [K]; q=new vertex_ptr [K]; r=new vertex_ptr [K]; r[0]=S.new_vertex(border_function(0.5)); r[0]->border=0.5; r[K-1]=S.new_vertex(border_function(2.5)); r[K-1]->border=2.5; for (i=0;i<K;i++) { p[i]=S.new_vertex(border_function(1.0+double(i)/(K-1))); p[i]->border=1.0+double(i)/(K-1); q[i]=S.new_vertex(border_function(4.0-double(i)/(K-1))); q[i]->border=4.0-double(i)/(K-1); if (i>0 && i<K-1) r[i]=S.new_vertex(0.5*(*p[i]+*q[i])); if (i) { p[i-1]->next_border=p[i]; q[i]->next_border=q[i-1]; } } p[K-1]->next_border=r[K-1]; r[K-1]->next_border=q[K-1]; q[0]->next_border=r[0]; r[0]->next_border=p[0]; for (i=1;i<K;++i) { quadr(p[i-1],p[i],r[i],r[i-1]); quadr(r[i-1],r[i],q[i],q[i-1]); } } }; static bool initializer = registry_function<Helicoid>("helicoid");
#pragma once #include "SM_Cube.h" #include "SM_Ray.h" #include "SM_Vector.h" #include "SM_Quaternion.h" #include "SM_Matrix.h" #include "SM_Plane.h" namespace sm { bool ray_ray_intersect(const Ray& ray0, const Ray& ray1, vec3* cross); bool line_line_intersect(const vec3& p1, const vec3& p2, const vec3& p3, const vec3& p4, vec3* pa, vec3* pb, float* mua, float* mub); bool ray_aabb_intersect(const cube& aabb, const Ray& ray, vec3* cross); bool ray_obb_intersect(const cube& aabb, const vec3& pos, const Quaternion& angle, const vec3& scale, const Ray& ray, vec3* cross); bool ray_plane_intersect(const Ray& ray, const Plane& plane, vec3* cross); bool ray_plane_intersect_both_faces(const Ray& ray, const Plane& plane, vec3* cross); bool ray_triangle_intersect(const mat4& mat, const vec3& v0, const vec3& v1, const vec3& v2, const Ray& ray, vec3* cross); bool ray_triangle_intersect_both_faces(const mat4& mat, const vec3& v0, const vec3& v1, const vec3& v2, const Ray& ray, vec3* cross); bool ray_polygon_intersect(const mat4& mat, const vec3* polygon, size_t polygon_n, const Ray& ray, vec3* cross); bool ray_polygon_intersect_both_faces(const mat4& mat, const vec3* polygon, size_t polygon_n, const Ray& ray, vec3* cross); }
/* * Copyright (c) 2016-2020 Morwenn * SPDX-License-Identifier: MIT */ #include <array> #include <string> #include <catch2/catch.hpp> #include <cpp-sort/comparators/natural_less.h> #include <cpp-sort/sorters/heap_sorter.h> TEST_CASE( "string natural sort with natural_less" ) { std::array<std::string, 7> array = { "Yay", "Yay 32 lol", "Yuy 32 lol", "Yay 045", "Yay 01245 huhuhu", "Yay 45", "Yay 1234" }; cppsort::heap_sort(array, cppsort::natural_less); std::array<std::string, 7> expected = { "Yay", "Yay 32 lol", "Yay 45", "Yay 045", "Yay 1234", "Yay 01245 huhuhu", "Yuy 32 lol" }; CHECK( array == expected ); }
//================================================================================================== // Name : Configuration.h // Author : Ken Cheng // Copyright : This work is licensed under the Creative Commons // Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this // license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/. // Description : Contains classes that hold input data. //================================================================================================== #ifndef CONFIGURATION_H_ #define CONFIGURATION_H_ #include <map> #include <set> #include <string> #include <vector> namespace LabRetriever { using namespace std; /* * Represents the alleles belonging to the suspect. */ class AlleleProfile { public: AlleleProfile() {}; AlleleProfile(const vector<string>& alleles); /* Returns a reference to this AlleleProfile, for chaining. */ AlleleProfile& addAllele(const string& allele); bool contains(const string& allele) const; const map<string, unsigned int>& getAlleleCounts() const; unsigned int getAlleleCounts(const string& allele) const; const set<string>& getAlleles() const; private: map<string, unsigned int> alleleCounts; set<string> alleles; }; /* * Represents data gathered from a replicate of LTDNA. */ class ReplicateData { public: set<string> unattributedAlleles; set<string> maskedAlleles; /* * Static factory methods. */ static ReplicateData fromUnattributedAndMaskedAlleles(const set<string>& unattributedAlleles, const set<string>& maskedAlleles); private: ReplicateData(const set<string>& unattributedAlleles, const set<string>& maskedAlleles); }; struct IdenticalByDescentProbability { public: IdenticalByDescentProbability(double oneAlleleInCommonProb, double bothAllelesInCommonProb); IdenticalByDescentProbability(double zeroAllelesInCommonProb, double oneAlleleInCommonProb, double bothAllelesInCommonProb); double zeroAllelesInCommonProb; double oneAlleleInCommonProb; double bothAllelesInCommonProb; }; /* * Contains data with which the solvers will use to calculate likelihoods. */ struct Configuration { public: AlleleProfile suspectProfile; vector<ReplicateData> data; map<string, double> alleleProportions; IdenticalByDescentProbability identicalByDescentProbability; double dropoutRate; double dropinRate; double alpha; Configuration(const AlleleProfile& suspectProfile, const vector<ReplicateData>& data, const map<string, double>& alleleProportions, const IdenticalByDescentProbability& identicalByDescentProbability, double dropoutRate, double dropinRate, double alpha) : suspectProfile(suspectProfile), data(data), alleleProportions(alleleProportions), identicalByDescentProbability(identicalByDescentProbability), dropoutRate(dropoutRate), dropinRate(dropinRate), alpha(alpha) {}; Configuration(const vector<string>& suspectAlleles, const vector<set<string> >& assumedAlleles, const vector<set<string> >& unattributedAlleles, const map<string, double>& alleleProportions, const IdenticalByDescentProbability& identicalByDescentProbability, double dropoutRate, double dropinRate, double alpha); Configuration& setSuspectProfile(const AlleleProfile& suspectProfile); Configuration& setData(const vector<ReplicateData>& data); Configuration& setAlleleProportions(const map<string, double>& alleleProportions); Configuration& setIdenticalByDescentProbability(const IdenticalByDescentProbability&); Configuration& setDropoutRate(double dropoutRate); Configuration& setDropinRate(double dropinRate); Configuration& setAlpha(double alpha); }; } /* namespace LabRetriever */ #endif /* CONFIGURATION_H_ */
// Fri Apr 29 12:03:02 EDT 2016 // Evan S Weinberg 2016 // This is a set of testing routines that make sure the inverters (CG, BiCGStab, GMRES) // always work! Need to update with imaginary value tests. // Need to put in a test for power iterations. Prob requires returning eigenvector. #include <iostream> #include <iomanip> // to set output precision. #include <cmath> #include <string> #include <sstream> #include <complex> #include "generic_inverters.h" #include "generic_inverters_precond.h" #include "generic_eigenvalues.h" #include "generic_vector.h" #include "generic_traits.h" #include "verbosity.h" using namespace std; // For now, define the length in a direction. #define N 128 // Define pi. #define PI 3.141592653589793 // Define mass. #define MASS 0.1*0.1 // Square laplacian function. void square_laplacian(double* lhs, double* rhs, void* extra_data); // Zero out vectors, set a point source. void initialize_test(double* lattice, double* lhs, double* rhs, double* check, int size); // Check solution. double check_test(double* lhs, double* rhs, double* check, int size, void (*matrix_vector)(double*,double*,void*), void* extra_info); int main(int argc, char** argv) { // Declare some variables. int i, j; double *lattice; // At some point, I'll have a generic (template) lattice class. double *lhs, *rhs, *check; // For some Kinetic terms. double eig = 0.0; // To test power iterations. double explicit_resid = 0.0; double bnorm = 0.0; inversion_info invif; eigenvalue_info eigif; // Set output precision. cout << setiosflags(ios::scientific) << setprecision(6); // Create a verbosity struct. inversion_verbose_struct verb; verb.verbosity = VERB_DETAIL; verb.verb_prefix = ""; verb.precond_verbosity = VERB_PASS_THROUGH; verb.precond_verb_prefix = "Prec "; // Initialize the lattice. Indexing: index = y*N + x. lattice = new double[N*N]; lhs = new double[N*N]; rhs = new double[N*N]; check = new double[N*N]; printf("Begin Check CG.\n"); initialize_test(lattice, lhs, rhs, check, N*N); invif = minv_vector_cg(lhs, rhs, N*N, 4000, 1e-6, square_laplacian, NULL, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check CG.\n"); printf("\n\n\n"); printf("Begin Check restarted CG(8).\n"); initialize_test(lattice, lhs, rhs, check, N*N); invif = minv_vector_cg_restart(lhs, rhs, N*N, 4000, 1e-6, 8, square_laplacian, NULL, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check restarted CG(8).\n"); printf("\n\n\n"); printf("Begin Check CR.\n"); initialize_test(lattice, lhs, rhs, check, N*N); invif = minv_vector_cr(lhs, rhs, N*N, 4000, 1e-6, square_laplacian, NULL, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check CR.\n"); printf("\n\n\n"); printf("Begin Check restarted CR(8).\n"); initialize_test(lattice, lhs, rhs, check, N*N); invif = minv_vector_cr_restart(lhs, rhs, N*N, 4000, 1e-6, 8, square_laplacian, NULL, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check restarted CR(8).\n"); printf("\n\n\n"); printf("Begin Check BiCGStab.\n"); initialize_test(lattice, lhs, rhs, check, N*N); invif = minv_vector_bicgstab(lhs, rhs, N*N, 4000, 1e-6, square_laplacian, NULL, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check BiCGStab.\n"); printf("\n\n\n"); printf("Begin Check restarted BiCGStab(8).\n"); initialize_test(lattice, lhs, rhs, check, N*N); invif = minv_vector_bicgstab_restart(lhs, rhs, N*N, 4000, 1e-6, 8, square_laplacian, NULL, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check restarted BiCGStab(8).\n"); printf("\n\n\n"); printf("Begin Check BiCGStab-1.\n"); initialize_test(lattice, lhs, rhs, check, N*N); invif = minv_vector_bicgstab_l(lhs, rhs, N*N, 10000, 1e-6, 1, square_laplacian, NULL, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check BiCGStab-1.\n"); printf("\n\n\n"); printf("Begin Check BiCGStab-2.\n"); initialize_test(lattice, lhs, rhs, check, N*N); invif = minv_vector_bicgstab_l(lhs, rhs, N*N, 10000, 1e-6, 2, square_laplacian, NULL, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check BiCGStab-2.\n"); printf("\n\n\n"); printf("Begin Check BiCGStab-8.\n"); initialize_test(lattice, lhs, rhs, check, N*N); invif = minv_vector_bicgstab_l(lhs, rhs, N*N, 10000, 1e-6, 8, square_laplacian, NULL, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check BiCGStab-8.\n"); printf("\n\n\n"); printf("Begin Check BiCGStab-8(64).\n"); initialize_test(lattice, lhs, rhs, check, N*N); invif = minv_vector_bicgstab_l_restart(lhs, rhs, N*N, 10000, 1e-6, 64, 8, square_laplacian, NULL, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check BiCGStab-8(64).\n"); printf("\n\n\n"); printf("Begin Check GCR.\n"); initialize_test(lattice, lhs, rhs, check, N*N); invif = minv_vector_gcr(lhs, rhs, N*N, 4000, 1e-6, square_laplacian, NULL, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check GCR.\n"); printf("\n\n\n"); printf("Begin Check restarted GCR(8).\n"); initialize_test(lattice, lhs, rhs, check, N*N); invif = minv_vector_gcr_restart(lhs, rhs, N*N, 4000, 1e-6, 8, square_laplacian, NULL, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check restarted GCR(8).\n"); printf("\n\n\n"); printf("Begin Check unrestarted GMRES.\n"); initialize_test(lattice, lhs, rhs, check, N*N); invif = minv_vector_gmres(lhs, rhs, N*N, 4000, 1e-6, square_laplacian, NULL, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check unrestarted GMRES.\n"); printf("\n\n\n"); printf("Begin Check restarted GMRES(8).\n"); initialize_test(lattice, lhs, rhs, check, N*N); invif = minv_vector_gmres_restart(lhs, rhs, N*N, 4000, 1e-6, 8, square_laplacian, NULL, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check restarted GMRES(8).\n"); printf("\n\n\n"); printf("Begin Check SOR with omega = 0.1.\n"); initialize_test(lattice, lhs, rhs, check, N*N); invif = minv_vector_sor(lhs, rhs, N*N, 10000, 1e-6, 0.01, square_laplacian, NULL, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check SOR with omega = 0.1.\n"); printf("\n\n\n"); printf("Begin Check MinRes.\n"); initialize_test(lattice, lhs, rhs, check, N*N); invif = minv_vector_minres(lhs, rhs, N*N, 10000, 1e-6, square_laplacian, NULL, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check MinRes.\n"); printf("\n\n\n"); printf("Begin Check MinRes (Relaxation param 0.8).\n"); initialize_test(lattice, lhs, rhs, check, N*N); invif = minv_vector_minres(lhs, rhs, N*N, 10000, 1e-6, 0.8, square_laplacian, NULL, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check MinRes (Relaxation param 0.8).\n"); printf("\n\n\n"); printf("Begin Check Preconditioned CG (3 iter MinRes).\n"); initialize_test(lattice, lhs, rhs, check, N*N); // Prepare MR preconditioner. minres_precond_struct_real mps; mps.n_step = 3; mps.rel_res = 1e-15; // Make n_step the dominant factor. mps.matrix_vector = square_laplacian; mps.matrix_extra_data = NULL; // End Prepare MR preconditioner. invif = minv_vector_cg_precond(lhs, rhs, N*N, 10000, 1e-6, square_laplacian, NULL, minres_preconditioner, (void*)&mps, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check Preconditioned CG (3 iter MinRes).\n"); printf("\n\n\n"); printf("Begin Check Flexibly Preconditioned CG (1e-1 rel resid MinRes).\n"); initialize_test(lattice, lhs, rhs, check, N*N); // Prepare MR preconditioner. mps.n_step = 10000; // make rel_res the dominant factor. mps.rel_res = 1e-1; mps.matrix_vector = square_laplacian; mps.matrix_extra_data = NULL; // End Prepare MR preconditioner. invif = minv_vector_cg_flex_precond(lhs, rhs, N*N, 4000, 1e-6, square_laplacian, NULL, minres_preconditioner, (void*)&mps, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check Flexibly Preconditioned CG (1e-1 rel resid MinRes).\n"); printf("\n\n\n"); printf("Begin Check Restarted Flexibly Preconditioned CG(12) (0.8 rel resid MinRes).\n"); initialize_test(lattice, lhs, rhs, check, N*N); // Prepare MR preconditioner. mps.n_step = 10000; // make rel_res the dominant factor. mps.rel_res = 0.8; mps.matrix_vector = square_laplacian; mps.matrix_extra_data = NULL; // End Prepare MR preconditioner. invif = minv_vector_cg_flex_precond_restart(lhs, rhs, N*N, 4000, 1e-6, 12, square_laplacian, NULL, minres_preconditioner, (void*)&mps, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check Restarted Flexibly Preconditioned CG(12) (0.8 rel resid MinRes).\n"); printf("\n\n\n"); printf("Begin Check Preconditioned BiCGStab (6 iter MinRes).\n"); initialize_test(lattice, lhs, rhs, check, N*N); // Prepare MR preconditioner. mps.n_step = 6; mps.rel_res = 1e-15; // Make n_step the dominant factor. mps.matrix_vector = square_laplacian; mps.matrix_extra_data = NULL; // End Prepare MR preconditioner. invif = minv_vector_bicgstab_precond(lhs, rhs, N*N, 10000, 1e-6, square_laplacian, NULL, minres_preconditioner, (void*)&mps, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check Preconditioned BiCGStab (6 iter MinRes).\n"); printf("\n\n\n"); printf("Begin Check Preconditioned BiCGStab (8 iter GCR).\n"); initialize_test(lattice, lhs, rhs, check, N*N); //Prepare GCR preconditioner. gcr_precond_struct_real gps; gps.n_step = 8; gps.rel_res = 1e-20; // Make n_step the dominant factor. gps.matrix_vector = square_laplacian; gps.matrix_extra_data = NULL; // End Prepare GCR preconditioner. invif = minv_vector_bicgstab_precond(lhs, rhs, N*N, 10000, 1e-6, square_laplacian, NULL, gcr_preconditioner, (void*)&gps, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check Preconditioned BiCGStab (8 iter GCR).\n"); printf("\n\n\n"); printf("Begin Check Preconditioned Restarted BiCGStab(8) (6 iter MinRes).\n"); initialize_test(lattice, lhs, rhs, check, N*N); // Prepare MR preconditioner. mps.n_step = 6; mps.rel_res = 1e-15; // Make n_step the dominant factor. mps.matrix_vector = square_laplacian; mps.matrix_extra_data = NULL; // End Prepare MR preconditioner. invif = minv_vector_bicgstab_precond_restart(lhs, rhs, N*N, 10000, 1e-6, 8, square_laplacian, NULL, minres_preconditioner, (void*)&mps, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check Preconditioned Restarted BiCGStab(8) (6 iter MinRes).\n"); printf("\n\n\n"); printf("Begin Check Variably Preconditioned GCR (1e-1 rel resid MinRes).\n"); initialize_test(lattice, lhs, rhs, check, N*N); // Prepare MR preconditioner. mps.n_step = 10000; // Make rel_res the dominant factor. mps.rel_res = 1e-1; // Make n_step the dominant factor. mps.matrix_vector = square_laplacian; mps.matrix_extra_data = NULL; // End Prepare MinRes preconditioner. invif = minv_vector_gcr_var_precond(lhs, rhs, N*N, 10000, 1e-6, square_laplacian, NULL, minres_preconditioner, (void*)&mps, &verb); if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check Variably Preconditioned GCR (1e-1 rel resid MinRes).\n"); printf("\n\n\n"); printf("Begin Check Variably Preconditioned GCR (8 iter GCR).\n"); initialize_test(lattice, lhs, rhs, check, N*N); //Prepare GCR preconditioner. gps.n_step = 8; gps.rel_res = 1e-20; // Make n_step the dominant factor. gps.matrix_vector = square_laplacian; gps.matrix_extra_data = NULL; invif = minv_vector_gcr_var_precond(lhs, rhs, N*N, 10000, 1e-6, square_laplacian, NULL, gcr_preconditioner, (void*)&gps, &verb); /**/ if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check Variably Preconditioned GCR (8 iter GCR).\n"); printf("\n\n\n"); printf("Begin Check Restarted Variably Preconditioned GCR(12) (8 iter GCR).\n"); initialize_test(lattice, lhs, rhs, check, N*N); //Prepare GCR preconditioner. gps.n_step = 8; gps.rel_res = 1e-20; // Make n_step the dominant factor. gps.matrix_vector = square_laplacian; gps.matrix_extra_data = NULL; invif = minv_vector_gcr_var_precond_restart(lhs, rhs, N*N, 10000, 1e-6, 12, square_laplacian, NULL, gcr_preconditioner, (void*)&gps, &verb); /**/ if (invif.success == true) { printf("GOOD Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } else { printf("FAIL Iter: %d Ops: %d Resid: %.15e.\n", invif.iter, invif.ops_count, sqrt(invif.resSq)); } explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check Restarted Variably Preconditioned GCR(12) (8 iter GCR).\n"); printf("\n\n\n"); printf("Begin Check Power Iteration.\n"); initialize_test(lattice, lhs, rhs, check, N*N); eigif = eig_vector_poweriter(&eig, rhs, N*N, 10000, 1e-7, square_laplacian, NULL); if (eigif.success == true) { printf("GOOD Iter: %d RelResid: %.15e Eval: %.15e.\n", eigif.iter, eigif.relative_diff, eig); } else { printf("FAIL Iter: %d RelResid: %.15e Eval: %.15e.\n", eigif.iter, eigif.relative_diff, eig); } //explicit_resid = check_test(lhs, rhs, check, N*N, square_laplacian, NULL); //printf("Explicit Resid: %.15e.\n", explicit_resid); printf("End Check Power Iteration.\n"); printf("\n\n\n"); // Free the lattice. delete[] lattice; delete[] lhs; delete[] rhs; delete[] check; } // Square lattice. // Kinetic term for a 2D laplacian w/ period bc. Applies lhs = A*rhs. // The unit vectors are e_1 = xhat, e_2 = yhat. // The "extra_data" allows us to generalize these functions later. // It would become an internal structure in C++ code. void square_laplacian(double* lhs, double* rhs, void* extra_data) { // Declare variables. int i; int x,y; // For a 2D square lattice, the stencil is: // | 0 -1 0 | // | -1 +4 -1 | // | 0 -1 0 | // // e2 = yhat // ^ // | // |-> e1 = xhat // Apply the stencil. for (i = 0; i < N*N; i++) { lhs[i] = 0.0; x = i%N; // integer mod. y = i/N; // integer divide. // + e1. lhs[i] = lhs[i]-rhs[y*N+((x+1)%N)]; // - e1. lhs[i] = lhs[i]-rhs[y*N+((x+N-1)%N)]; // The extra +N is because of the % sign convention. // + e2. lhs[i] = lhs[i]-rhs[((y+1)%N)*N+x]; // - e2. lhs[i] = lhs[i]-rhs[((y+N-1)%N)*N+x]; // 0 // Added mass term here. lhs[i] = lhs[i]+(4+MASS)*rhs[i]; } } // Zero out vectors, set a point source. void initialize_test(double* lattice, double* lhs, double* rhs, double* check, int size) { int i; int half_size = (int)(sqrt(size)/2+0.5); zero<double>(lattice,size); zero<double>(lhs,size); zero<double>(rhs,size); zero<double>(check,size); // Set a point on the rhs. rhs[half_size+half_size*half_size*2] = 1.0; //rhs[N/2+(N/2)*N] = 1.0; // Set a point on the lhs. lhs[half_size+half_size*half_size*2] = 1.0; } // Check solution. double check_test(double* lhs, double* rhs, double* check, int size, void (*matrix_vector)(double*,double*,void*), void* extra_info) { int i; double explicit_resid = 0.0; // Check and make sure we get the right answer. matrix_vector(check, lhs, extra_info); for (i = 0; i < size; i++) { explicit_resid += (rhs[i] - check[i])*(rhs[i] - check[i]); } explicit_resid = sqrt(explicit_resid); return explicit_resid; }
#pragma once #include <boost/predef.h> namespace yama { #if BOOST_COMP_GNUC inline void debug_break_function() { asm("int $3"); } #define BK_DEBUG_BREAK ::yama::debug_break_function #elif BOOST_COMP_MSVC #define BK_DEBUG_BREAK ::__debugbreak #endif #define BK_ABORT_TODO []() -> void { BK_DEBUG_BREAK(); ::abort(); } namespace detail { void assertion_handler(char const* condition, char const* file, int line, char const* function); } //namespace yama::detail #define BK_ASSERT_IMPL(condition, file, line, function) \ [&]() -> void { \ while (!(condition)) { \ ::yama::detail::assertion_handler(#condition, file, line, function); \ BK_DEBUG_BREAK(); \ } \ }() #if !defined(NDEBUG) #define BK_ASSERT(condition) BK_ASSERT_IMPL(condition, __FILE__, __LINE__, __func__) #else #define BK_ASSERT(condition) (void)0 #endif } //namespace yama
#include "PlayerState.h" PlayerState::PlayerState(PlayerData *playerData) { this->mPlayerData = playerData; } PlayerState::PlayerState() { } PlayerState::~PlayerState() { } void PlayerState::Update(float dt) { } void PlayerState::HandleKeyboard(std::map<int, bool> keys) { } float PlayerState::GetAcceX() { return acceleratorX; } float PlayerState::GetAcceY() { return acceleratorY; } void PlayerState::OnCollision(Entity *impactor, Entity::SideCollisions side, Entity::CollisionReturn data) { }
class CZ_75_P_07_DUTY; class CZ75P_DZ: CZ_75_P_07_DUTY { displayName = $STR_DZ_WPN_CZ75P_NAME; descriptionShort = $STR_DZ_WPN_CZ75_DESC; magazines[] = {"18Rnd_9x19_Phantom"}; }; class CZ_75_D_COMPACT; class CZ75D_DZ: CZ_75_D_COMPACT { displayName = $STR_DZ_WPN_CZ75D_NAME; descriptionShort = $STR_DZ_WPN_CZ75_DESC; magazines[] = {"18Rnd_9x19_Phantom"}; }; class CZ_75_SP_01_PHANTOM; class CZ75SP_DZ: CZ_75_SP_01_PHANTOM { displayName = $STR_DZ_WPN_CZ75SP_NAME; descriptionShort = $STR_DZ_WPN_CZ75_DESC; magazines[] = {"18Rnd_9x19_Phantom"}; class Attachments { Attachment_Sup9 = "CZ75SP_SD_DZ"; }; }; class CZ_75_SP_01_PHANTOM_SD; class CZ75SP_SD_DZ: CZ_75_SP_01_PHANTOM_SD { displayName = $STR_DZ_WPN_CZ75SP_SD_NAME; descriptionShort = $STR_DZ_WPN_CZ75_DESC; magazines[] = {"18Rnd_9x19_PhantomSD"}; class ItemActions { class RemoveSuppressor { text = $STR_ATTACHMENT_RMVE_Silencer; script = "; ['Attachment_Sup9',_id,'CZ75SP_DZ'] call player_removeAttachment"; }; }; };
#include<iostream> #include<algorithm> #include<vector> #include<deque> using namespace std; class MyStack { public: /** Initialize your data structure here. */ MyStack() { //基本思想:队列,用队列实现栈 //当队列push新进来一个元素val,则将队列里原来的所有元素依次出队列重新依次入队列,这样就使得新元素val位于队头了而且原来元素顺序不变 //入栈时间复杂度O(N)出栈时间复杂度O(1) } /** Push element x onto stack. */ void push(int x) { int len = queue.size(); queue.push_back(x); while (len--) { int val = queue.front(); queue.pop_front(); queue.push_back(val); } } /** Removes the element on top of the stack and returns that element. */ int pop() { int val = queue.front(); queue.pop_front(); return val; } /** Get the top element. */ int top() { return queue.front(); } /** Returns whether the stack is empty. */ bool empty() { return queue.empty(); } private: deque<int> queue; }; int main() { MyStack obj; obj.push(1); obj.push(2); cout << obj.pop() << endl; cout << obj.top() << endl; cout << obj.empty() << endl; return 0; }
/* Copyright (C) 2011 John Adcock Copyright (C) 2011 Narunder S Claire This file is part of XLW, a free-software/open-source C++ wrapper of the Excel C API - http://xlw.sourceforge.net/ XLW is free software: you can redistribute it and/or modify it under the terms of the XLW license. You should have received a copy of the license along with this program; if not, please email xlw-users@lists.sf.net This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details. */ #ifndef COMMANDS_H #define COMMANDS_H using namespace xlw; //<xlw:onopen( welcome) //<xlw:onclose(goodbye) //<xlw:libraryname=MyTestLibrary void // Test Menu Command testCommand(); #endif // COMMANDS_H
#pragma once #ifndef YEAR_H #define YEAR_H #include <string> #include <vector> #include "month.hpp" class Year { private: std::vector<Month>months; std::string date; public: void setDate(std::string date) { this->date = date; } std::string getDate() { return date; } std::string toString(); Month getMonth(int mon); void setMonths(std::string date); Year(std::string date); Year(); ~Year(); }; #endif
// https://oj.leetcode.com/problems/divide-two-integers/ // Be careful about overflow when using abs() class Solution { public: int divide(int dividend, int divisor) { if (divisor == 0) { return INT_MAX; } long long dvd = dividend; long long dvs = divisor; dvd = abs(dvd); dvs = abs(dvs); int ret = 0; while (dvd >= dvs) { long long ds = dvs; for (int i = 1; dvd >= ds; ds <<= 1, i <<= 1) { ret += i; dvd -= ds; } } return ((dividend < 0) ^ (divisor < 0)) ? -ret : ret; } };
#include <iostream> #include "myException.h" using namespace std; /* class Base { protected: int bNumber; public: Base() :bNumber(0) {} Base(int number) :bNumber(number) {} virtual void show() { cout << "부모함수" << endl; } }; class Child1 : public Base { private: double dData; public: Child1(int n, double d) : dData(d) { Base(number); } virtual void show() { cout << "자식함수" << endl; } }; class Child2 : public Base { private: string text; public: Child2(int n, string t) :text(t) { Base(number); } virtual void show() { cout << "자식2 함수" << endl; } }; ostream& operator<<(ostream& os, const type_info& ref) { os << ref.name(); return os; } 상품코드 | 상품분류 | 상품명 | 가격 | 비고 1 | 비고 2 | 비고 3 214534 의류 후드티 2,2300 남성 상의 131054 가전제품 냉장고 1,232,450 220V 주방 520143 잡화 물티슈 1,000 - */ /* try : 예외를 발견 ---> 오류가 날 것이라고 예상이 되는 코드를 try블록으로 감싼다. throw : 예외를 던진다. catch : 예외를 잡는다. */ int CalcFunc(int x, int y) throw(ArithmeticException) { int result = 0; result = x + y ; cout << result << endl; result = x - y ; cout << result << endl; result = x * y ; cout << result << endl; if (y == 0)throw ArithmeticException(); result = x / y ; cout << result << endl; result = x % y ; cout << result << endl; return result; } int main() { int num1(0), num2(0); //int* ptr = nullptr; cout << "정수 2개 입력 > "; cin >> num1 >> num2; /* try { if (num1 < 0) throw bad_alloc(); if(num1 == 0) throw exception("bad alloc(0)"); ptr = new int[num1]; } catch (exception e) { cout << e.what() << endl; }*/ int r = 0; try { r = CalcFunc(num1, num2); } catch (exception e) { } cout << r << endl; return 0; }
#include "Clock.h" Clock::Clock(const string &f) { inicio = clock(); funcao = f; } Clock::~Clock() { clock_t total = clock() - inicio; cout << "Tempo para a funcao " << funcao << ": (segundos) " << double(total) / CLOCKS_PER_SEC << endl; }
#include "mode/dbA1_test.hpp" int main() { dbA1_test::obj().where("id",">","0")->show(); return 0; }
#include "select_target.h" /** * Select Target Person */ SelectTarget::SelectTarget() : it_(nh_) { image_sub_ = it_.subscribe("/ps3_eye/image_raw", 1, &SelectTarget::ImageCallback, this); target_sub_ = nh_.subscribe("/SelectTargetPerFoRo", 1, &SelectTarget::SelectTargetCallback, this); target_shirt_pub_ = nh_.advertise<PerFoRoControl::SelectTarget>("/SelectTargetShirtPerFoRo", 1); target_pant_pub_ = nh_.advertise<PerFoRoControl::SelectTarget>("/SelectTargetPantPerFoRo", 1); target_dock_pub_ = nh_.advertise<PerFoRoControl::SelectTarget>("/SelectTargetDockPerFoRo", 1); IMSHOW = false; selectObject = false; //cv::namedWindow(OPENCV_WINDOW); } void SelectTarget::SelectTargetCallback(const PerFoRoControl::SelectTarget msg) { selection.x = msg.x; selection.y = msg.y; selection.width = msg.width; selection.height = msg.height; select_target_shirt_msg.x = selection.x + (selection.width/4); select_target_shirt_msg.y = selection.y; select_target_shirt_msg.width = selection.width/4; select_target_shirt_msg.height = selection.height/4; target_shirt_pub_.publish(select_target_shirt_msg); select_target_pant_msg.x = selection.x + (selection.width/4); select_target_pant_msg.y = selection.y + (3*selection.height/4); select_target_pant_msg.width = selection.width/4; select_target_pant_msg.height = selection.height/4; target_pant_pub_.publish(select_target_pant_msg); select_target_dock_msg.x = selection.x; select_target_dock_msg.y = selection.y; select_target_dock_msg.width = selection.width; select_target_dock_msg.height = selection.height; target_dock_pub_.publish(select_target_dock_msg); } void SelectTarget::ImageCallback(const sensor_msgs::ImageConstPtr& msg) { cv_bridge::CvImagePtr cv_ptr; try { cv_ptr = cv_bridge::toCvCopy(msg, sensor_msgs::image_encodings::BGR8); } catch (cv_bridge::Exception& e) { ROS_ERROR("cv_bridge exception: %s", e.what()); return; } frame = cv_ptr->image; char key = (char)cvWaitKey(10); if (key ==27 ) { ros::requestShutdown(); } else if ( key =='z' ) { IMSHOW = true; //namedWindow(OPENCV_WINDOW); //setMouseCallback(OPENCV_WINDOW, onMouse, NULL); } else if (key == 'x') { IMSHOW = false; cvDestroyAllWindows() ; //namedWindow(OPENCV_WINDOW); } // Update GUI Window //if (IMSHOW) { // imshow(OPENCV_WINDOW, frame); ///imshow("Binary Image with Detected Object", imgThresh); //} //cv::waitKey(3); } void SelectTarget::SelectObject(int event, int x, int y) { fflush(stdout); if (selectObject) { selection.x = MIN(x, origin.x); selection.y = MIN(y, origin.y); selection.width = std::abs(x - origin.x); selection.height = std::abs(y - origin.y); } switch(event) { case CV_EVENT_LBUTTONDOWN: { //cout<<"L BTN DWN"<<endl; //drawing = true; origin = Point(x,y); selection = Rect(x,y,0,0); selectObject = true; //cout<<"Left B"<<origin<<endl; break; } case CV_EVENT_LBUTTONUP: { select_target_shirt_msg.x = selection.x + (selection.width/4); select_target_shirt_msg.y = selection.y; select_target_shirt_msg.width = selection.width/4; select_target_shirt_msg.height = selection.height/4; target_shirt_pub_.publish(select_target_shirt_msg); select_target_pant_msg.x = selection.x + (selection.width/4); select_target_pant_msg.y = selection.y + (3*selection.height/4); select_target_pant_msg.width = selection.width/4; select_target_pant_msg.height = selection.height/4; target_pant_pub_.publish(select_target_pant_msg); break; } } } void onMouse(int event, int x, int y, int, void* ) { st::ST->SelectObject(event,x,y); } int main(int argc, char** argv) { ros::init(argc, argv, "Select_Target"); st::ST = new SelectTarget; ros::spin(); return 0; }
// Created on: 2017-04-21 // Created by: Alexander Bobkov // Copyright (c) 2017 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef _BRepTools_History_HeaderFile #define _BRepTools_History_HeaderFile #include <NCollection_Handle.hxx> #include <TopExp.hxx> #include <TopTools_DataMapOfShapeListOfShape.hxx> #include <TopTools_MapOfShape.hxx> class BRepTools_History; DEFINE_STANDARD_HANDLE(BRepTools_History, Standard_Transient) //! The history keeps the following relations between the input shapes //! (S1, ..., Sm) and output shapes (T1, ..., Tn): //! 1) an output shape Tj is generated from an input shape Si: Tj <= G(Si); //! 2) a output shape Tj is modified from an input shape Si: Tj <= M(Si); //! 3) an input shape (Si) is removed: R(Si) == 1. //! //! The relations are kept only for shapes of types vertex, edge, face, and //! solid. //! //! The last relation means that: //! 1) shape Si is not an output shape and //! 2) no any shape is modified (produced) from shape Si: //! R(Si) == 1 ==> Si != Tj, M(Si) == 0. //! //! It means that the input shape cannot be removed and modified //! simultaneously. However, the shapes may be generated from the //! removed shape. For instance, in Fillet operation the edges //! generate faces and then are removed. //! //! No any shape could be generated and modified from the same shape //! simultaneously: sets G(Si) and M(Si) are not intersected //! (G(Si) ^ M(Si) == 0). //! //! Each output shape should be: //! 1) an input shape or //! 2) generated or modified from an input shape (even generated from the //! implicit null shape if necessary): //! Tj == Si V (exists Si that Tj <= G(Si) U M(Si)). //! //! Recommendations to choose between relations 'generated' and 'modified': //! 1) a shape is generated from input shapes if it dimension is greater or //! smaller than the dimensions of the input shapes; //! 2) a shape is generated from input shapes if these shapes are also output //! shapes; //! 3) a shape is generated from input shapes of the same dimension if it is //! produced by joining shapes generated from these shapes; //! 4) a shape is modified from an input shape if it replaces the input shape by //! changes of the location, the tolerance, the bounds of the parametric //! space (the faces for a solid), the parametrization and/or by applying of //! an approximation; //! 5) a shape is modified from input shapes of the same dimension if it is //! produced by joining shapes modified from these shapes. //! //! Two sequential histories: //! - one history (H12) of shapes S1, ..., Sm to shapes T1, ..., Tn and //! - another history (H23) of shapes T1, ..., Tn to shapes Q1, ..., Ql //! could be merged to the single history (H13) of shapes S1, ..., Sm to shapes //! Q1, ..., Ql. //! //! During the merge: //! 1) if shape Tj is generated from shape Si then each shape generated or //! modified from shape Tj is considered as a shape generated from shape Si //! among shapes Q1, ..., Ql: //! Tj <= G12(Si), Qk <= G23(Tj) U M23(Tj) ==> Qk <= G13(Si). //! 2) if shape Tj is modified from shape Si, shape Qk is generated from shape //! Tj then shape Qk is considered as a shape generated from shape Si among //! shapes Q1, ..., Ql: //! Tj <= M12(Si), Qk <= G23(Tj) ==> Qk <= G13(Si); //! 3) if shape Tj is modified from shape Si, shape Qk is modified from shape //! Tj then shape Qk is considered as a shape modified from shape Si among //! shapes Q1, ..., Ql: //! Tj <= M12(Si), Qk <= M23(Tj) ==> Qk <= M13(Si); class BRepTools_History: public Standard_Transient { public: //! @name Constructors for History creation //! Empty constructor BRepTools_History() {} //! Template constructor for History creation from the algorithm having //! standard history methods such as IsDeleted(), Modified() and Generated(). //! @param theArguments [in] Arguments of the algorithm; //! @param theAlgo [in] The algorithm. template <class TheAlgo> BRepTools_History(const TopTools_ListOfShape& theArguments, TheAlgo& theAlgo) { // Map all argument shapes to save them in history TopTools_IndexedMapOfShape anArgsMap; TopTools_ListIteratorOfListOfShape aIt(theArguments); for (; aIt.More(); aIt.Next()) { if (!aIt.Value().IsNull()) TopExp::MapShapes(aIt.Value(), anArgsMap); } // Copy the history for all supported shapes from the algorithm Standard_Integer i, aNb = anArgsMap.Extent(); for (i = 1; i <= aNb; ++i) { const TopoDS_Shape& aS = anArgsMap(i); if (!IsSupportedType(aS)) continue; if (theAlgo.IsDeleted(aS)) Remove(aS); // Check Modified const TopTools_ListOfShape& aModified = theAlgo.Modified(aS); for (aIt.Initialize(aModified); aIt.More(); aIt.Next()) AddModified(aS, aIt.Value()); // Check Generated const TopTools_ListOfShape& aGenerated = theAlgo.Generated(aS); for (aIt.Initialize(aGenerated); aIt.More(); aIt.Next()) AddGenerated(aS, aIt.Value()); } } public: //! The types of the historical relations. enum TRelationType { TRelationType_Removed, TRelationType_Generated, TRelationType_Modified }; public: //! Returns 'true' if the type of the shape is supported by the history. static Standard_Boolean IsSupportedType(const TopoDS_Shape& theShape) { const TopAbs_ShapeEnum aType = theShape.ShapeType(); return aType == TopAbs_VERTEX || aType == TopAbs_EDGE || aType == TopAbs_FACE || aType == TopAbs_SOLID; } public: //! Methods to set the history. //! Set the second shape as generated one from the first shape. Standard_EXPORT void AddGenerated( const TopoDS_Shape& theInitial, const TopoDS_Shape& theGenerated); //! Set the second shape as modified one from the first shape. Standard_EXPORT void AddModified( const TopoDS_Shape& theInitial, const TopoDS_Shape& theModified); //! Set the shape as removed one. Standard_EXPORT void Remove(const TopoDS_Shape& theRemoved); //! Set the second shape as the only generated one from the first one. Standard_EXPORT void ReplaceGenerated( const TopoDS_Shape& theInitial, const TopoDS_Shape& theGenerated); //! Set the second shape as the only modified one from the first one. Standard_EXPORT void ReplaceModified( const TopoDS_Shape& theInitial, const TopoDS_Shape& theModified); //! Clears the history. void Clear() { myShapeToModified.Clear(); myShapeToGenerated.Clear(); myRemoved.Clear(); } public: //! Methods to read the history. //! Returns all shapes generated from the shape. Standard_EXPORT const TopTools_ListOfShape& Generated(const TopoDS_Shape& theInitial) const; //! Returns all shapes modified from the shape. Standard_EXPORT const TopTools_ListOfShape& Modified(const TopoDS_Shape& theInitial) const; //! Returns 'true' if the shape is removed. Standard_EXPORT Standard_Boolean IsRemoved(const TopoDS_Shape& theInitial) const; //! Returns 'true' if there any shapes with Generated elements present Standard_Boolean HasGenerated() const { return !myShapeToGenerated.IsEmpty(); } //! Returns 'true' if there any Modified shapes present Standard_Boolean HasModified() const { return !myShapeToModified.IsEmpty(); } //! Returns 'true' if there any removed shapes present Standard_Boolean HasRemoved() const { return !myRemoved.IsEmpty(); } public: //! A method to merge a next history to this history. //! Merges the next history to this history. Standard_EXPORT void Merge(const Handle(BRepTools_History)& theHistory23); //! Merges the next history to this history. Standard_EXPORT void Merge(const BRepTools_History& theHistory23); //! Template method for merging history of the algorithm having standard //! history methods such as IsDeleted(), Modified() and Generated() //! into current history object. //! @param theArguments [in] Arguments of the algorithm; //! @param theAlgo [in] The algorithm. template<class TheAlgo> void Merge(const TopTools_ListOfShape& theArguments, TheAlgo& theAlgo) { // Create new history object from the given algorithm and merge it into this. Merge(BRepTools_History(theArguments, theAlgo)); } public: //! A method to dump a history //! Prints the brief description of the history into a stream void Dump(Standard_OStream& theS) { theS << "History contains:\n"; theS << " - " << myRemoved.Extent() << " Deleted shapes;\n"; theS << " - " << myShapeToModified.Extent() << " Modified shapes;\n"; theS << " - " << myShapeToGenerated.Extent() << " Generated shapes.\n"; } public: //! Define the OCCT RTTI for the type. DEFINE_STANDARD_RTTIEXT(BRepTools_History, Standard_Transient) private: //! Prepares the shapes generated from the first shape to set the second one //! as generated one from the first one by the addition or the replacement. //! Returns 'true' on success. Standard_Boolean prepareGenerated( const TopoDS_Shape& theInitial, const TopoDS_Shape& theGenerated); //! Prepares the shapes modified from the first shape to set the second one //! as modified one from the first one by the addition or the replacement. //! Returns 'true' on success. Standard_Boolean prepareModified( const TopoDS_Shape& theInitial, const TopoDS_Shape& theModified); private: //! Data to keep the history. //! Maps each input shape to all shapes modified from it. //! If an input shape is not bound to the map then //! there is no shapes modified from the shape. //! No any shape should be mapped to an empty list. TopTools_DataMapOfShapeListOfShape myShapeToModified; //! Maps each input shape to all shapes generated from it. //! If an input shape is not bound to the map then //! there is no shapes generated from the shape. //! No any shape should be mapped to an empty list. TopTools_DataMapOfShapeListOfShape myShapeToGenerated; TopTools_MapOfShape myRemoved; //!< The removed shapes. private: //! Auxiliary members to read the history. //! An auxiliary empty list. static const TopTools_ListOfShape myEmptyList; //! A method to export the auxiliary list. Standard_EXPORT static const TopTools_ListOfShape& emptyList(); private: //! Auxiliary messages. static const char* myMsgUnsupportedType; static const char* myMsgGeneratedAndRemoved; static const char* myMsgModifiedAndRemoved; static const char* myMsgGeneratedAndModified; }; #endif // _BRepTools_History_HeaderFile
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- * * Copyright (C) 1995-2008 Opera Software AS. All rights reserved. * * This file is part of the Opera web browser. It may not be distributed * under any circumstances. * * @author Manuela Hutter (manuelah) */ #include "core/pch.h" #ifdef DOM_GEOLOCATION_SUPPORT #include "adjunct/quick/dialogs/GeolocationPrivacyDialog.h" #include "adjunct/quick_toolkit/widgets/OpBrowserView.h" #include "adjunct/quick/WindowCommanderProxy.h" #include "modules/locale/oplanguagemanager.h" #include "modules/prefs/prefsmanager/collections/pc_geoloc.h" #include "modules/widgets/OpButton.h" #include "modules/windowcommander/OpWindowCommander.h" /*********************************************************************************** ** GeolocationPrivacyDialog::OnInit ************************************************************************************/ void GeolocationPrivacyDialog::OnInit() { // initialize browser view and loading elements OpBrowserView* view = (OpBrowserView*)GetWidgetByName("license_browserview"); if(view && view->GetWindow()) { view->GetBorderSkin()->SetImage("Dialog Browser Skin"); view->GetWindowCommander()->SetScriptingDisabled(TRUE); WindowCommanderProxy::OpenURL(view, GEOLOCATION_PRIVACY_TERMS); view->AddListener(this); // To be able to block context menus } // hide browser view ShowWidget("browserview_group", FALSE); SetWidgetValue("enable_geolocation", 1); } GeolocationPrivacyDialog::~GeolocationPrivacyDialog() { OpBrowserView* view = (OpBrowserView*)GetWidgetByName("license_browserview"); if(view) view->RemoveListener(this); } /*********************************************************************************** ** GeolocationPrivacyDialog::OnOk ************************************************************************************/ UINT32 GeolocationPrivacyDialog::OnOk() { BOOL enable = FALSE; OpButton *checkbox = (OpButton *)GetWidgetByName("enable_geolocation"); if(checkbox) { enable = checkbox->GetValue(); } if(enable) { OP_STATUS s; // don't show the dialog again TRAP(s, g_pcui->WriteIntegerL(PrefsCollectionUI::ShowGeolocationLicenseDialog, FALSE)); // make sure geolocation is enabled TRAP(s, g_pcgeolocation->WriteIntegerL(PrefsCollectionGeolocation::EnableGeolocation, TRUE)); m_desktop_window.HandleCurrentPermission(true, m_persistence); } else { m_desktop_window.HandleCurrentPermission(false, OpPermissionListener::PermissionCallback::PERSISTENCE_TYPE_RUNTIME); } return 1; } /*********************************************************************************** ** GeolocationPrivacyDialog::OnCancel ************************************************************************************/ void GeolocationPrivacyDialog::OnCancel() { m_desktop_window.HandleCurrentPermission(false, OpPermissionListener::PermissionCallback::PERSISTENCE_TYPE_RUNTIME); } /*********************************************************************************** ** GeolocationPrivacyDialog::OnPagePopupMenu ***********************************************************************************/ BOOL GeolocationPrivacyDialog::OnPagePopupMenu(OpWindowCommander* commander, OpDocumentContext& context) { // Disable all context menus for this page return TRUE; } /*********************************************************************************** ** GeolocationPrivacyDialog::OnPageLoadingFinished ***********************************************************************************/ void GeolocationPrivacyDialog::OnPageLoadingFinished(OpWindowCommander* commander, OpLoadingListener::LoadingFinishStatus status, BOOL was_stopped_by_user) { if (commander->HttpResponseIs200() == YES) { ShowBrowserView(); } else { ShowBrowserViewError(); } } /*********************************************************************************** ** GeolocationPrivacyDialog::ShowBrowserView ***********************************************************************************/ void GeolocationPrivacyDialog::ShowBrowserView() { // show license ShowWidget("browserview_group"); // hide 'loading' info ShowWidget("loading_info_group", FALSE); // make sure relayouting is done correctly CompressGroups(); } /*********************************************************************************** ** ShowBrowserViewError ***********************************************************************************/ void GeolocationPrivacyDialog::ShowBrowserViewError() { OpString error_text; g_languageManager->GetString(Str::D_FEATURE_LICENSE_LOADING_ERROR, error_text); SetWidgetText("license_loading_info_label", error_text.CStr()); ShowWidget("loading_icon", FALSE); } void GeolocationPrivacyDialog::OnChange(OpWidget *widget, BOOL changed_by_mouse) { if (widget == NULL) { return; } if (widget->IsNamed("enable_geolocation")) { INT32 enable = widget->GetValue(); OpString button_text; if (enable) { g_languageManager->GetString( Str::D_GEOLOCATION_PRIVACY_DIALOG_ACCEPT, button_text); } else { g_languageManager->GetString( Str::S_GEOLOCATION_DENY, button_text); } SetButtonText(0, button_text); } } #endif // DOM_GEOLOCATION_SUPPORT
#include <iostream> #include <string.h> #include <stdlib.h> #include<conio.h> #include <ctime> using namespace std; int STRCMP(char B[],char C[],int n) { int I; for ( I=0;B[I]==C[I] && I<n;I++); return B[I]-C[I]; } int main() { srand((unsigned) time(0)); char A[500][5]={ "ache","army","acid","able","aged","acne","amid","apex","alum","aide","awry","axle","axis","aunt","arid","acre","amen","arch","axes","avow", "balm","bang","band","bale","bark","bite","bank","base","bare","bear","bend","best","bolt","bold","bias","beat","bath","brat","busy","bury", "cage","cake","curd","cale","claw","cult","crow","cash","cave","crap","crab","coil","coin","cram","cyst","cone","curb","coax","crew","cape", "damp","deny","dock","dear","dice","drug","dumb","duke","duet","drag","dose","dirt","disk","dish","draw","defy","dawn","dart","dark","debt", "earl","easy","echo","envy","emit","epic","evil","exam","exit","etch","east","earn","each","edit","edgy","eave","exon","dumb","duty","dusk", "fact","fail","fake","fate","four","five","flap","flog","flow","frog","file","film","fuel","fret","fawn","fear","fair","fare","fast","fang", "gasp","gaze","gear","grow","grey","goal","gulp","gulf","glow","glue","glad","golf","gawk","gape","girl","grew","gram","grin","grip","gust", "hail","hard","hair","hare","hate","hawk","hunt","heat","hint","hike","howl","husk","hymn","home","holy","herb","horn","hour","hire","heap", "inch","idol","idle","idea","iron","inch","item","icon","harm","flat","foam","fate","fame","foil","fold","foci","fray","face","fist","fish", "jail","jaws","jerk","jinx","june","july","jolt","jury","just","join","jump","joke","jade","junk","jute","judo","kale","kept","kind","kite", "lace","lack","lamp","lair","lake","lame","lazy","life","lift","lice","leap","liar","lieu","lime","lion","limp","luck","leak","leap","lead", "loan","lone","loci","lock","lust","lush","lose","lost","link","lump","lurk","sore","sour","sway","soup","stay","stew","stun","slum","swim", "main","mane","mark","mask","monk","mist","moth","mine","mold","mere","mint","mock","move","meat","meal","mend","mind","many","male","mate", "name","nail","near","neat","nerd","navy","neck","nest","norm","note","nose","mute","must","musk","quit","quiz","quip","quad","puke","prom", "oath","odor","omen","oily","omit","once","only","opal","oral","oust","oval","oven","over","ovum","oxen","poem","poet","pond","pour","prey", "pace","pack","page","pain","pale","pair","palm","park","pave","path","peal","peak","perk","pest","pier","pint","plea","ploy","pink","pity", "rage","rape","rain","rant","rice","rich","ride","ripe","risk","road","roam","ruin","ruby","rude","rule","rush","riot","rely","rift","ring", "sack","safe","sage","said","same","salt","sane","sand","self","scar","seal","silk","scan","slow","slew","site","slam","snow","soak","soap", "talk","tale","tank","tear","task","teal","tone","true","torn","tune","type","town","tube","trim","trek","tram","tend","thin","tape","tile", "ugly","urea","user","writ","wrap","wind","wink","weak","wise","wide","wipe","wolf","yard","yawn","zero","zone","yawn","yarn","your","fist", "vain","vale","veal","veil","vast","verb","vile","vibe","vase","vice","veto","vote","void","vent","vein","vage","view","visa","vary","vest", "wait","wake","walk","ward","warn","warm","wary","wasp","wash","wave","wear","weld","whim","whip","wing","wick","wire","wish","wish","worm", "rush","rail","take","tame","rate","rank","pole","pose","plug","plum","pore","ryme","port","rock","robe","real","obey","math","love","loaf", "only","rust","soil","soak","ship","sign","tide","toad","tone","term","trap","twin","twig","turf","tidy","teak","team","bike","cane","clue", "bate","cost","date","bite","chef","damn","darn","dime","drop","hive","duel","crux","crop","cure","crib","feud","fire","pipe","pine","tour", }; int a; a=rand()%500; char D[5]; strcpy(D,A[a]); cout<<"GUESS THE WORD"<<endl; cout<<"HEY GUYS!!LETS PLAY A GAME"<<endl; cout<<"RULES OF THE GAME ARE AS FOLLOWS:"<<endl; cout<<"1.You will be given a four letter word to guess.You will be asked to guess the word.Write in lower case."<<endl; cout<<"2.THE LETTERS IN THE WORD CANNOT BE REPEATED."<<endl; cout<<"3.If a particular letter in the given word is present in the actual word and is in the correct position,it will be indicated by a '$' sign directly below it."<<endl; cout<<"4.If a particular letter in the given word is present in the actual word but not present in the correct position,it will be indicated by a '#' sign directly below it."<<endl; cout<<"5.If a particular letter in the given word is not present in the actual word ,it will be indicated by a '!' sign directly below it."<<endl; cout<<"6.You will be given a maximum of 10 chances to guess the word."<<endl; cout<<"7.If the word is guessed score will be provided at the end of the game.The maximum score in the game is 1000."<<endl; cout<<"8.If the word is not guessed,you lose and the game ends."<<endl; cout<<"9.You can chose to play again or exit the game."<<endl; char E[5],F[4]; char G[4]={'$','$','$','$'}; char m; int num=0,p=0,found=0,K=0; char ANSWER; do { cout<<"Please give the desired word."<<endl; cin>>E; if( strlen(E)!=4) { cout<<"!! Please enter a four letter word only."<<endl; cin>>E; }; do { for(int i=0;i<3;i++)E[i]= tolower(E[i]); p=0; for(int i=3;i>0 && p==0;i--) { for(int j=i-1 && p==0;j>=0;j--) { if(E[j]==E[i]) { p++; } } } if(p!=0) { cout<<"Given word not valid.THE LETTERS IN THE WORD ARE REPEATING."<<endl; cin>>E; } }while(p!=0); for(int i=0;i<4;i++) { int j=0; while( j<4 && found==0) { if(E[i]==D[j]) { found++; } else { j++; } }; if(found==0) { m='!'; } else if(found==1) { if(j==i) { m='$'; } else { m='#'; } } cout<<m; F[i]=m; found=0; }; if(STRCMP(F,G,4)==0) K++; num++; cout<<endl; } while(K==0 && num<=9); if(K==0) { cout<<"You lose:(("<<endl; cout<<"POINTS SCORED:0"<<endl; cout<<"The actual word was "<<D<<"."; } else if(K==1) { cout<<"You WIN:))"<<endl; cout<<"POINTS SCORED:"<<1000-(num-1)*100<<endl; }; getch(); }
#pragma once #include "utils/log.hpp" #define SCENE_TLOG __TLOG << setw(20) << "[SCENE] " #define SCENE_DLOG __DLOG << setw(20) << "[SCENE] " #define SCENE_ILOG __ILOG << setw(20) << "[SCENE] " #define SCENE_ELOG __ELOG << setw(20) << "[SCENE] "
#include <bits/stdc++.h> using namespace std; int a[100005]; int main(){ int n; cin >> n; for(int i=0; i<n; i++){ cin >> a[i]; } bool flag = true; int ans = 0; while(flag){ int m = 1e9; for(int i=0; i<n; i++){ if(a[i] > 0) m = min(m, a[i]); } for(int i=0; i<n; i++){ if(a[i] != m) a[i] = a[i] % m; } int zero_cnt = 0; int m_cnt = 0; for(int i=0; i<n; i++){ zero_cnt += (a[i] == 0); m_cnt += (a[i] == m); } if(zero_cnt == n - m_cnt){ flag = false; ans = m; } } cout << ans << endl; return 0; }
#pragma once #include <iterator> #include <cstdint> ////////////////////////////////////////////////////////////////////////////// /// \file ColorBackInserter.hpp /// \brief Contains the definition for a class that deals with a color iterator /// /// \addtogroup Level /// @{ ////////////////////////////////////////////////////////////////////////////// namespace worldlib { enum class ColorOrder : int; //////////////////////////////////////////////////////////// /// \brief Iterator that behaves like std::back_insert_iterator. /// Basically, the = operator takes a full 32-bit color and rearranges it as necessary. /// Depending on the iterator type, it will either split up the 32-bit colors into their individual components (in case you need to interface with something that expects a pointer to chars and don't want to have to worry about endianness), or just insert it normally. //////////////////////////////////////////////////////////// template<class ContainerType> class ColorBackInserterIterator : std::iterator<std::output_iterator_tag, void, void, void, void> { protected: //////////////////////////////////////////////////////////// /// \brief The container this iterator belongs to //////////////////////////////////////////////////////////// ContainerType *myContainer; //////////////////////////////////////////////////////////// /// \brief The order incoming colors are put into //////////////////////////////////////////////////////////// int colorOrder; public: //////////////////////////////////////////////////////////// /// \brief The data type this iterator points to //////////////////////////////////////////////////////////// typedef typename ContainerType::value_type typePointedTo; //////////////////////////////////////////////////////////// /// \brief Creates a ColorBackInsertIterator from the specified container and tells it how to arrange the colors. /// /// /// \param otherContainer The container to insert into /// \param order The order to insert into. For example, ColorOrder::ARGB. /// //////////////////////////////////////////////////////////// ColorBackInserterIterator(ContainerType& otherContainer, ColorOrder order) : myContainer(std::addressof(otherContainer)) { colorOrder = (int)order; } //////////////////////////////////////////////////////////// /// \brief Inserts the color into the iterator's container. /// \details Automatically converts the color into the format requested when the iterator was constructed. /// If the container contains 8-bit data, then the 32-bit color is split into 4 bytes in the requested order. /// If the container contains 32-bit data, then the data is simply inserted after being rearranged in the requested order. /// /// \param value ARGB color value to insert. /// /// \return The current structure (*this) /// //////////////////////////////////////////////////////////// ColorBackInserterIterator<ContainerType> &operator=(std::uint32_t value) { std::uint8_t colors[] = { (value & 0xFF000000) >> 24, (value & 0x00FF0000) >> 16, (value & 0x0000FF00) >> 8, (value & 0x000000FF) >> 0 }; std::uint8_t slot1 = colors[(colorOrder & 0xC0) >> 6]; std::uint8_t slot2 = colors[(colorOrder & 0x30) >> 4]; std::uint8_t slot3 = colors[(colorOrder & 0x0C) >> 2]; std::uint8_t slot4 = colors[(colorOrder & 0x03) >> 0]; if (std::numeric_limits<typePointedTo>::max() - std::numeric_limits<typePointedTo>::min() == std::numeric_limits<std::uint8_t>::max()) { myContainer->push_back(slot1); myContainer->push_back(slot2); myContainer->push_back(slot3); myContainer->push_back(slot4); } else { myContainer->push_back((slot1 << 24) | (slot2 << 16) | (slot3 << 8) | (slot4 << 0)); } return *this; } //////////////////////////////////////////////////////////// /// \brief Does nothing. As with a normal std::back_insert_iterator, simply exists to satisfy the requirements of an iterator. //////////////////////////////////////////////////////////// ColorBackInserterIterator<ContainerType> &operator*() { return (*this); } //////////////////////////////////////////////////////////// /// \brief Does nothing. As with a normal std::back_insert_iterator, simply exists to satisfy the requirements of an iterator. //////////////////////////////////////////////////////////// ColorBackInserterIterator<ContainerType> &operator++(){ return (*this); } //////////////////////////////////////////////////////////// /// \brief Does nothing. As with a normal std::back_insert_iterator, simply exists to satisfy the requirements of an iterator. //////////////////////////////////////////////////////////// ColorBackInserterIterator<ContainerType> operator++(int) { return (*this); } }; //////////////////////////////////////////////////////////// /// \relates ColorBackInserterIterator /// \brief Returns a ColorBackInserterIterator. /// \details Convenience function in the same vein of std::back_inserter /// /// \param container The container to insert into. For example, a std::vector<unsigned char> or a std::vector<std::uint32_t>. /// \param order The order to insert into. For example, ColorOrder::ARGB. /// //////////////////////////////////////////////////////////// template<class containerType> inline ColorBackInserterIterator<containerType> ColorBackInserter(containerType &container, ColorOrder order) { return (ColorBackInserterIterator<containerType>(container, order)); } //////////////////////////////////////////////////////////// /// \relates ColorBackInserterIterator /// \brief The order colors are stored in a ColorBackInsertIterator. /// \details Colors specified multiple times (for example, AAAA), will just copy that part. //////////////////////////////////////////////////////////// enum class ColorOrder : int { AAAA = 0x00, AAAR = 0x01, AAAG = 0x02, AAAB = 0x03, AARA = 0x04, AARR = 0x05, AARG = 0x06, AARB = 0x07, AAGA = 0x08, AAGR = 0x09, AAGG = 0x0A, AAGB = 0x0B, AABA = 0x0C, AABR = 0x0D, AABG = 0x0E, AABB = 0x0F, ARAA = 0x10, ARAR = 0x11, ARAG = 0x12, ARAB = 0x13, ARRA = 0x14, ARRR = 0x15, ARRG = 0x16, ARRB = 0x17, ARGA = 0x18, ARGR = 0x19, ARGG = 0x1A, ARGB = 0x1B, ARBA = 0x1C, ARBR = 0x1D, ARBG = 0x1E, ARBB = 0x1F, AGAA = 0x20, AGAR = 0x21, AGAG = 0x22, AGAB = 0x23, AGRA = 0x24, AGRR = 0x25, AGRG = 0x26, AGRB = 0x27, AGGA = 0x28, AGGR = 0x29, AGGG = 0x2A, AGGB = 0x2B, AGBA = 0x2C, AGBR = 0x2D, AGBG = 0x2E, AGBB = 0x2F, ABAA = 0x30, ABAR = 0x31, ABAG = 0x32, ABAB = 0x33, ABRA = 0x34, ABRR = 0x35, ABRG = 0x36, ABRB = 0x37, ABGA = 0x38, ABGR = 0x39, ABGG = 0x3A, ABGB = 0x3B, ABBA = 0x3C, ABBR = 0x3D, ABBG = 0x3E, ABBB = 0x3F, RAAA = 0x40, RAAR = 0x41, RAAG = 0x42, RAAB = 0x43, RARA = 0x44, RARR = 0x45, RARG = 0x46, RARB = 0x47, RAGA = 0x48, RAGR = 0x49, RAGG = 0x4A, RAGB = 0x4B, RABA = 0x4C, RABR = 0x4D, RABG = 0x4E, RABB = 0x4F, RRAA = 0x50, RRAR = 0x51, RRAG = 0x52, RRAB = 0x53, RRRA = 0x54, RRRR = 0x55, RRRG = 0x56, RRRB = 0x57, RRGA = 0x58, RRGR = 0x59, RRGG = 0x5A, RRGB = 0x5B, RRBA = 0x5C, RRBR = 0x5D, RRBG = 0x5E, RRBB = 0x5F, RGAA = 0x60, RGAR = 0x61, RGAG = 0x62, RGAB = 0x63, RGRA = 0x64, RGRR = 0x65, RGRG = 0x66, RGRB = 0x67, RGGA = 0x68, RGGR = 0x69, RGGG = 0x6A, RGGB = 0x6B, RGBA = 0x6C, RGBR = 0x6D, RGBG = 0x6E, RGBB = 0x6F, RBAA = 0x70, RBAR = 0x71, RBAG = 0x72, RBAB = 0x73, RBRA = 0x74, RBRR = 0x75, RBRG = 0x76, RBRB = 0x77, RBGA = 0x78, RBGR = 0x79, RBGG = 0x7A, RBGB = 0x7B, RBBA = 0x7C, RBBR = 0x7D, RBBG = 0x7E, RBBB = 0x7F, GAAA = 0x80, GAAR = 0x81, GAAG = 0x82, GAAB = 0x83, GARA = 0x84, GARR = 0x85, GARG = 0x86, GARB = 0x87, GAGA = 0x88, GAGR = 0x89, GAGG = 0x8A, GAGB = 0x8B, GABA = 0x8C, GABR = 0x8D, GABG = 0x8E, GABB = 0x8F, GRAA = 0x90, GRAR = 0x91, GRAG = 0x92, GRAB = 0x93, GRRA = 0x94, GRRR = 0x95, GRRG = 0x96, GRRB = 0x97, GRGA = 0x98, GRGR = 0x99, GRGG = 0x9A, GRGB = 0x9B, GRBA = 0x9C, GRBR = 0x9D, GRBG = 0x9E, GRBB = 0x9F, GGAA = 0xA0, GGAR = 0xA1, GGAG = 0xA2, GGAB = 0xA3, GGRA = 0xA4, GGRR = 0xA5, GGRG = 0xA6, GGRB = 0xA7, GGGA = 0xA8, GGGR = 0xA9, GGGG = 0xAA, GGGB = 0xAB, GGBA = 0xAC, GGBR = 0xAD, GGBG = 0xAE, GGBB = 0xAF, GBAA = 0xB0, GBAR = 0xB1, GBAG = 0xB2, GBAB = 0xB3, GBRA = 0xB4, GBRR = 0xB5, GBRG = 0xB6, GBRB = 0xB7, GBGA = 0xB8, GBGR = 0xB9, GBGG = 0xBA, GBGB = 0xBB, GBBA = 0xBC, GBBR = 0xBD, GBBG = 0xBE, GBBB = 0xBF, BAAA = 0xC0, BAAR = 0xC1, BAAG = 0xC2, BAAB = 0xC3, BARA = 0xC4, BARR = 0xC5, BARG = 0xC6, BARB = 0xC7, BAGA = 0xC8, BAGR = 0xC9, BAGG = 0xCA, BAGB = 0xCB, BABA = 0xCC, BABR = 0xCD, BABG = 0xCE, BABB = 0xCF, BRAA = 0xD0, BRAR = 0xD1, BRAG = 0xD2, BRAB = 0xD3, BRRA = 0xD4, BRRR = 0xD5, BRRG = 0xD6, BRRB = 0xD7, BRGA = 0xD8, BRGR = 0xD9, BRGG = 0xDA, BRGB = 0xDB, BRBA = 0xDC, BRBR = 0xDD, BRBG = 0xDE, BRBB = 0xDF, BGAA = 0xE0, BGAR = 0xE1, BGAG = 0xE2, BGAB = 0xE3, BGRA = 0xE4, BGRR = 0xE5, BGRG = 0xE6, BGRB = 0xE7, BGGA = 0xE8, BGGR = 0xE9, BGGG = 0xEA, BGGB = 0xEB, BGBA = 0xEC, BGBR = 0xED, BGBG = 0xEE, BGBB = 0xEF, BBAA = 0xF0, BBAR = 0xF1, BBAG = 0xF2, BBAB = 0xF3, BBRA = 0xF4, BBRR = 0xF5, BBRG = 0xF6, BBRB = 0xF7, BBGA = 0xF8, BBGR = 0xF9, BBGG = 0xFA, BBGB = 0xFB, BBBA = 0xFC, BBBR = 0xFD, BBBG = 0xFE, BBBB = 0xFF, }; } ////////////////////////////////////////////////////////////////////////////// /// @} //////////////////////////////////////////////////////////////////////////////
#include "std_lib_facilities.h" int main() { cout<< "Please enter an integer value followed by a unit (cm, m, in, ft)\n"; double number; double largest = numeric_limits<double>::lowest(); double smallest = numeric_limits<double>::max(); string unit; double sum = 0; int number_of_values = 0; vector<double> v; constexpr double cm_per_m = 100; constexpr double cm_per_in = 2.54; constexpr double in_per_ft = 12; while (cin>> number >> unit) { if (unit.empty()) simple_error("No unit"); if (unit != "cm" & unit!= "m" & unit!= "ft" & unit!= "in") simple_error("Invalid unit"); cout<< "The value entered: " << number << unit <<'\n'; if (unit == "cm") {number = number / cm_per_m; cout<< "The number in meters is: " << number << '\n';} else if (unit == "in") {number = number * cm_per_in / cm_per_m; cout<< "The number in meters is: " << number << '\n';} else if (unit == "ft") {number = number * in_per_ft * cm_per_in / cm_per_m; cout<< "The number in meters is: " << number << '\n';} if (number>largest) largest = number; cout<< largest <<" the largest so far\n"; if (number<smallest) smallest = number; cout<<smallest <<" the smallest so far\n"; sum = sum + number; cout<< "The sum of the values in meters is: " << sum << '\n'; ++number_of_values; cout<< "The number of values is: " << number_of_values << '\n'; v.push_back(number); {sort(v); for(int i = 0; i<v.size(); ++i) cout<<"v[" << i << "] == " <<v[i]<< "\n \n";} } return 0; }
// // Created by Alan de Freitas on 05/04/2018. // #ifndef EVOLUTIONARY_COMPUTATION_KNAPSACK_H #define EVOLUTIONARY_COMPUTATION_KNAPSACK_H #include <iostream> #include <vector> #include <chrono> #include <random> #include <algorithm> #include "knapsackP.h" class knapsack { public: knapsack(knapsack_p &p); void disp(knapsack_p &p); double evaluate(knapsack_p &p); void mutation(knapsack_p &p, double mutation_strength); knapsack crossover(knapsack_p &p, knapsack& rhs); double distance(knapsack_p &p, knapsack& rhs, double max_dist = std::numeric_limits<double>::max()); double fx; double fitness; private: std::vector<int> _knapsack; static std::default_random_engine _generator; }; #endif //EVOLUTIONARY_COMPUTATION_KNAPSACK_H
// // Created by Brady Bodily on 2/3/17. // #ifndef ANALYSTCOMPARER_HISTORY_HPP #define ANALYSTCOMPARER_HISTORY_HPP #include <fstream> #include <vector> #include "PurchaseSale.hpp" class History { private: int m_numDays; std::vector<PurchaseSale*> m_history; int m_seedMoney; public: History(int days, int seedMoney); int getNumDays(); void newPurchaseSale(std::string symbol, int quantity, int purchaseTime, int purchasePrice, int purchaseFee, int saleTime, int salePrice, int saleFee); int getSeedMoney(); std::vector<PurchaseSale*> getHistory(); double compute(); }; #endif //ANALYSTCOMPARER_HISTORY_HPP
/* Petar 'PetarV' Velickovic Algorithm: Edmonds-Karp Algorithm */ #include <stdio.h> #include <math.h> #include <string.h> #include <iostream> #include <vector> #include <list> #include <string> #include <algorithm> #include <queue> #include <stack> #include <set> #include <map> #include <complex> #define MAX_N 500 #define INF 987654321 using namespace std; typedef long long lld; struct Node { vector<int> adj; }; Node graf[MAX_N]; bool mark[MAX_N]; int cap[MAX_N][MAX_N]; int parent[MAX_N]; int v, e; int s, t; //Edmonds-Karpov algoritam za nalazenje maksimalnog protoka izmedju dva cvora u grafu //Moze se koristiti i za nalazenje maksimalnog matchinga //Slozenost: O(V * E^2) inline int BFS() { int ret = 0; for (int i=1;i<=v;i++) parent[i] = 0; queue<int> bfs_queue; queue<int> minCapacity; parent[s] = -1; bfs_queue.push(s); minCapacity.push(INF); while (!bfs_queue.empty()) { int xt = bfs_queue.front(); int mt = minCapacity.front(); bfs_queue.pop(); minCapacity.pop(); for (int i=0;i<graf[xt].adj.size();i++) { int xt1 = graf[xt].adj[i]; if (cap[xt][xt1] > 0 && parent[xt1] == 0) { bfs_queue.push(xt1); minCapacity.push(min(mt,cap[xt][xt1])); parent[xt1] = xt; if (xt1 == t) { ret = min(mt, cap[xt][xt1]); break; } } } } if (ret > 0) { int currNode = t; while (currNode != s) { cap[parent[currNode]][currNode] -= ret; cap[currNode][parent[currNode]] += ret; currNode = parent[currNode]; } } return ret; } inline int EdmondsKarp() { int flow = 0; while (true) { int currFlow = BFS(); if (currFlow == 0) break; else flow += currFlow; } return flow; } int main() { v = 4, e = 5; s = 1, t = 4; graf[1].adj.push_back(2); graf[2].adj.push_back(1); cap[1][2] = 40; graf[1].adj.push_back(4); graf[4].adj.push_back(1); cap[1][4] = 20; graf[2].adj.push_back(4); graf[4].adj.push_back(2); cap[2][4] = 20; graf[2].adj.push_back(3); graf[3].adj.push_back(2); cap[2][3] = 30; graf[3].adj.push_back(4); graf[4].adj.push_back(3); cap[3][4] = 10; printf("%d\n",EdmondsKarp()); return 0; }
/* * LED_Matrix.ino * * Created: 6/12/2015 11:12:24 AM * Author: Tobias Nuss */ #define LOG_OUT 1 // use the log output function #define FFT_N 256 // set to 256 point fft #include <FFT.h> // include the library #include <avr/interrupt.h> #include <avr/io.h> #include <stdint.h> #include <math.h> #include "Adafruit_NeoPixel.h" #include "MyLedMatrix.h" #include "Snake.h" #include "Pixels.h" #include "SpectrumAnalyzer.h" #define LOG_OUT 1 // use the log output function #define FFT_N 256 // set to 256 point fft #define led11 0x00 #define led12 0x17 #define BRIGHTNESS 64 #define statusLED 13 #define baudRate 115200 // Parameter 1 = number of pixels in strip // Parameter 2 = Arduino pin number (most are valid) // Parameter 3 = pixel type flags, add together as needed: // NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs) // NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers) // NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products) // NEO_RGB Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2) //Adafruit_NeoPixel strip = Adafruit_NeoPixel(leds, pin, NEO_GRB + NEO_KHZ800); uint8_t height = 10; uint8_t width = 12; uint8_t pin = 4; uint8_t leds = 120; volatile uint8_t transmit_started = 0; volatile uint8_t uart_timeout = 0; #define LOG_OUT 1 // use the log output function #define FFT_N 256 // set to 256 point fft void setup() { //Serial1.begin(baudRate); Serial.begin(baudRate); // Status LED to Output pinMode(statusLED, OUTPUT); // ADC for FFT //adc_Setup(); TIMSK0 = 0; // turn off timer0 for lower jitter ADCSRA = 0xe5; // set the adc to free running mode ADMUX = 0x40; // use adc0 DIDR0 = 0x01; // turn off the digital input for adc0 // This is for Trinket 5V 16MHz, you can remove these three lines if you are not using a Trinket #if defined (__AVR_ATtiny85__) if (F_CPU == 16000000) clock_prescale_set(clock_div_1); #endif // End of trinket special code MyLedMatrix *matrix = new MyLedMatrix(height, width, leds, pin, NEO_GRB + NEO_KHZ800); matrix->begin(); matrix->show(); // Initialize all pixels to 'off' delete matrix; // Interrupt on Rx Pin 0 //attachInterrupt(digitalPinToInterrupt(0), RxInterrupt, CHANGE); Serial.println("--Bereit--"); Serial1.println("--Bereit--"); interrupts(); } // end setup int cnter=0; int doOnce=0; void loop() { // DO FFT (EQUALIZER) doFFT(); //blink(); /* // START OF PIXELFUNCTIONS Pixels* pixels = new Pixels(quitButton, height, width, leds, pin, NEO_GRB + NEO_KHZ800); pixels->glowDispandMultiColor(); while(pixels->Rainbow(10, 10)); cnter = random(1,7); switch(cnter){ case 1 : while(pixels->colorWipe(BLUE, 10)); break; case 2 : while(pixels->colorWipe(RED, 10)); break; case 3 : while(pixels->colorWipe(YELLOW, 10)); break; case 4 : while(pixels->colorWipe(PINK, 10)); break; case 5 : while(pixels->colorWipe(GREEN, 10)); break; case 6 : while(pixels->colorWipe(ORANGE, 10)); break; case 7 : while(pixels->colorWipe(WHITE, 10)); break; } while(pixels->theaterChaseRainbow(20)); delete pixels; // END OF PIXELFUNCTIONS */ } void RxInterrupt() { if(Serial.available()) { int incomingByte = Serial.read(); if(incomingByte == 'X') Serial.println("OK!"); } } void blink() { digitalWrite(13, HIGH); delay(1000); digitalWrite(13, LOW); delay(1000); } int aEqualizerArray[13]; int *pEqualizerPtr = aEqualizerArray; void doFFT() { cli(); // UDRE interrupt slows this way down on arduino1.0 for (int i = 0 ; i < 512 ; i += 2) { // save 256 samples while(!(ADCSRA & 0x10)); // wait for adc to be ready ADCSRA = 0xf5; // restart adc byte m = ADCL; // fetch adc data byte j = ADCH; int k = (j << 8) | m; // form into an int k -= 0x0200; // form into a signed int k <<= 6; // form into a 16b signed int fft_input[i] = k; // put real data into even bins fft_input[i+1] = 0; // set odd bins to 0 } fft_window(); // window the data for better frequency response fft_reorder(); // reorder the data before doing the fft fft_run(); // process the data in the fft fft_mag_log(); // take the output of the fft sei(); //Serial.println("start"); for (byte i = 0 ; i < FFT_N/2 ; i++) { Serial.println(fft_log_out[i]); // send out the data delay(100); } /* // Normalize -> 12 cols -> 12 frequencies byte i=0; while (i<FFT_N/2) { byte add; for (byte j=0; j<10; j++) { add += fft_log_out[j+i]; } *pEqualizerPtr = add; pEqualizerPtr++; i += 10; } pEqualizerPtr = aEqualizerArray; //MyLedMatrix *matrix = new MyLedMatrix(height, width, leds, pin, NEO_GRB + NEO_KHZ800); //matrix->ClearScreen(); for(byte x=0; x<12; x++) { for(byte y=0; y<10; y++) { float yPeak = aEqualizerArray[x]; float test = (yPeak / 255) * 10; byte test2 = test; //Serial.print(x); Serial.print(", "); Serial.println(test2); //matrix->SetXY(x, test2, GREEN); } } for (byte i = 0 ; i < 10 ; i++) { Serial.println(aEqualizerArray[i]); // send out the data delay(100); } //matrix->show(); //delete matrix; //delay(100); */ }
#include<Keypad.h> #include<String.h> #include<Stdlib.h> const byte ROWS = 4; const byte COLS = 4; char keys[ROWS][COLS] = { {'1','2','3','A'}, {'4','5','6','B'}, {'7','8','9','C'}, {'*','0','#','D'} }; byte rowPins[ROWS] = {9,8,7,6}; byte colPins[COLS] = {5,4,3,2}; Keypad keypad = Keypad(makeKeymap(keys), rowPins, colPins, ROWS, COLS); int led_pin = 13; boolean blink = false; String password = "1234"; String input = ""; void setup() { // put your setup code here, to run once: Serial.begin(9600); pinMode(led_pin, OUTPUT); keypad.addEventListener(listener); } void loop() { // put your main code here, to run repeatedly: char key = keypad.getKey(); if(key != NO_KEY) { // Serial.println(key); Serial.println(input); } } void listener(KeypadEvent key){ switch(keypad.getState()){ case PRESSED: if(key== 'A'){ if(input == password){ digitalWrite(led_pin, true); Serial.println("Correct"); }else{ digitalWrite(led_pin, false); } input= ""; }else{ input += key; } break; } }
#pragma once #include "Interface/ISubPass.h" #include "Render/FrameStructure.h" namespace Rocket { Interface IDrawSubPass : inheritance ISubPass { public: virtual void Draw(Frame& frame) = 0; }; }
#include "highgui.h" #include "cv.h" #include "cvaux.h" #include <ctype.h> #include <stdlib.h> #include <iostream> using namespace cv; using namespace std; void hog_svm() { cvNamedWindow("PeopleDetection",CV_WINDOW_NORMAL); CvCapture *capture = cvCreateFileCapture("E:\\毕业设计\\代码\\测试视频\\test.avi"); //CvCapture *capture = cvCreateFileCapture("E:\\大三上\\项目\\图像预处理\\第一次视频拍摄\\摔倒.avi"); //CvVideoWriter* writer = cvCreateVideoWriter("test_detector.avi",CV_FOURCC('M', 'J', 'P', 'G'),25,cvSize(500,300),1); IplImage *frame; //IplImage *frame_new=0; while(1) { frame = cvQueryFrame(capture); if(!frame) break; Mat image1 = (Mat)(frame); Mat image; resize(image1,image,cvSize(500,300),400,400,CV_INTER_LINEAR); //太大的话跑不动 // 1. 定义HOG对象 HOGDescriptor hog; // 采用默认参数 // 2. 设置SVM分类器 hog.setSVMDetector(HOGDescriptor::getDefaultPeopleDetector()); // 暂时采用OpenCV默认的行人检测分类器 // 3. 在测试图像上检测行人区域 vector<Rect> regions; hog.detectMultiScale(image, regions, 0, Size(8, 8), Size(32, 32), 1.05, 1); //Mat red_rect = cvCreateMat(image1.rows,image1.cols,; //显示矩形,默认的矩形框太大,手动使其变小 for(int i=0; i<regions.size(); i++) { Rect r = regions[i]; r.x += cvRound(r.width*0.1); r.width = cvRound(r.width*0.8); r.y += cvRound(r.height*0.07); r.height = cvRound(r.height*0.8); rectangle(image, r.tl(), r.br(), Scalar(0,0,255), 2); //tl()返回左上角坐标,br()返回右下角坐标 } /*for (size_t i = 0; i < regions.size(); i++) { rectangle(image, regions[i], Scalar(0, 0, 255), 2); //对判定是行人的区域画一个矩形进行标记 } */ //IplImage *frame_new; *frame = IplImage(image); //cvWriteFrame(writer,frame); //将视频帧存入writer cvShowImage("PeopleDetection", frame); //waitKey(0); //system("pause"); //cvShowImage("测试",frame); char c = cvWaitKey(10); //实际参数需要33(一秒30帧) if(c==27) { break; } } cvReleaseCapture(&capture); cvDestroyWindow("PeopleDetection"); cvWaitKey(0); system("pause"); //return frame; }
#define CLIENT_DESCRIPTION "InformationOverlay" #include <Ogre.h> #include <OIS/OIS.h> using namespace Ogre; using namespace std; //게임매니저헤더, 게임스테이트헤더 #include "GameManager.h" #include "PlayState.h" #include "StartState.h" #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 #define WIN32_LEAN_AND_MEAN #include "windows.h" #endif #ifdef __cplusplus extern "C" { #endif #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT ) #else int main(int argc, char *argv[]) #endif { // 게임 매니저 오브젝트 GameManager game; try { //게임 초기화 및 첫 번째 상태넣기 game.init(); game.changeState(StartState::getInstance()); game.go(); } catch( Ogre::Exception& e ) { #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL); #else std::cerr << "An exception has occured: " << e.getFullDescription().c_str() << std::endl; #endif } return 0; } #ifdef __cplusplus } #endif
#include "Player.h" #include <SDL/SDL.h> #include <SDL/SDL_opengl.h> #include "vec2.h" #include "util.h" #include "Laser.h" #include "draw.h" //Initializer for the playermotion struct playermotion::playermotion() : left(false), right(false), up(false), down(false), xrecent(0), yrecent(0) { } //Player constructor Player::Player() : pos(0), motion(playermotion()), angle(0), speed(.1) { } //Draw the player void Player::draw() { //Save the matrix glPushMatrix(); //Modify the matrix for the character glTranslatef(pos.x, pos.y, 0); glRotatef(angle, 0, 0, 1); glColor3f(0, 0, 0); //Draw the character drawRect(0, 0, .5, .5); //Reset the matrix glPopMatrix(); //Draw the laser when the mouse is clicked float x, y; if (mouse(&x, &y)) { Laser laser (vec2(pos.x, pos.y), vec2(x - pos.x, y - pos.y)); laser.draw(); } } //Input handling void Player::input(SDL_Event event) { switch (event.type) { case SDL_KEYDOWN: //Process is the same for all motion keys //So only described for the right key if (event.key.keysym.sym == SDLK_RIGHT || event.key.keysym.sym == SDLK_d) { //Say that the right arrow (or D) is pressed motion.right = true; //Set the most recent key pressed to right motion.xrecent = PM_RIGHT; } if (event.key.keysym.sym == SDLK_LEFT || event.key.keysym.sym == SDLK_a) { motion.left = true; motion.xrecent = PM_LEFT; } if (event.key.keysym.sym == SDLK_UP || event.key.keysym.sym == SDLK_w) { motion.up = true; motion.yrecent = PM_UP; } if (event.key.keysym.sym == SDLK_DOWN || event.key.keysym.sym == SDLK_s) { motion.down = false; motion.yrecent = PM_DOWN; } break; case SDL_KEYUP: //Process is the same for all motion keys if (event.key.keysym.sym == SDLK_RIGHT || event.key.keysym.sym == SDLK_d) { //Stop moving to the right motion.right = false; //If the left key is also pressed, start moving to the left if (motion.left) motion.xrecent = PM_LEFT; //If it's not, you can just stop moving else motion.xrecent = PM_NONE; } if (event.key.keysym.sym == SDLK_LEFT || event.key.keysym.sym == SDLK_a) { motion.left = false; if (motion.right) motion.xrecent = PM_RIGHT; else motion.xrecent = PM_NONE; } if (event.key.keysym.sym == SDLK_UP || event.key.keysym.sym == SDLK_w) { motion.up = false; if (motion.down) motion.yrecent = PM_DOWN; else motion.yrecent = PM_NONE; } if (event.key.keysym.sym == SDLK_DOWN || event.key.keysym.sym == SDLK_s) { motion.down = false; if (motion.up) motion.yrecent = PM_UP; else motion.yrecent = PM_NONE; } break; } } //Handle player motion void Player::update() { //Handle diagonal motion float fac = 1; if (motion.xrecent != PM_NONE && motion.yrecent != PM_NONE) fac = .7071067; //Move using the most recent key pressed on an axis //Left and right if (motion.xrecent == PM_RIGHT) { pos.x += speed * fac; } else if (motion.xrecent == PM_LEFT) { pos.x -= speed * fac; } //Up and down if (motion.yrecent == PM_UP) { pos.y += speed * fac; } else if (motion.yrecent == PM_DOWN) { pos.y -= speed * fac; } //Restrict the player inside the window if (pos.x < -12.83) pos.x = -12.83; if (pos.x > 12.83) pos.x = 12.83; if (pos.y < -9.5) pos.y = -9.5; if (pos.y > 9.5) pos.y = 9.5; }
// Copyright (c) 2019, tlblanc <tlblanc1490 at gmail dot com> #include "test/test.hpp" #include "stream_buffer.hpp" #include "scanner.hpp" static Scanner scanner_from_content( char *content, size_t len) { auto buffer = std::make_unique<StreamBuffer>( reinterpret_cast<uint8_t*>(content), len, do_nothing_delete_dispose_func); buffer->extend(len); return Scanner(std::make_unique<RecovererBuffer>(std::move(buffer))); } static int test_scanner_read_line_empty() { char content[] = "\0"; const uint8_t *data; size_t rbytes; auto scanner = scanner_from_content(content, 0); ASSERT_EQ(scanner.peek(&data, 0, &rbytes), OK); ASSERT_EQ(rbytes, 0); return EXIT_SUCCESS; } static int test_scanner_read_line_newline_only() { char content[] = "\n\n\n\n\n"; const uint8_t *data; size_t rbytes; auto scanner = scanner_from_content(content, strlen(content)); ASSERT_EQ(scanner.peek(&data, 0, &rbytes), OK); ASSERT_EQ(scanner.consume(rbytes), 0); return EXIT_SUCCESS; } static int test_scanner_read_line_with_newline() { char content[] = "some bytes\n"; const uint8_t *data; size_t rbytes; auto scanner = scanner_from_content(content, strlen(content)); ASSERT_EQ(scanner.peek(&data, 0, &rbytes), OK); ASSERT_EQ(rbytes, strlen(content) - 1); ASSERT_MEM_EQ(data, content, rbytes); ASSERT_EQ(scanner.consume(rbytes), rbytes); ASSERT_EQ(scanner.peek(&data, 0, &rbytes), OK); ASSERT_EQ(rbytes, 0); return EXIT_SUCCESS; } static int test_scanner_read_multiple_lines() { char content[] = "line0\nline1\nline2\nline3\nline4"; char expected[] = "line "; const uint8_t *data; size_t rbytes; auto scanner = scanner_from_content(content, strlen(content)); for (int i = 0; i < 5; i++) { expected[4] = 48 + i; ASSERT_EQ(scanner.peek(&data, 0, &rbytes), OK); ASSERT_EQ(rbytes, strlen(expected)); ASSERT_MEM_EQ(expected, data, rbytes); ASSERT_EQ(scanner.consume(rbytes), rbytes); } ASSERT_EQ(scanner.peek(&data, 0, &rbytes), OK); ASSERT_EQ(rbytes, 0); return EXIT_SUCCESS; } int main(int argc, char *argv[]) { test_ctx_t ctx; TEST_INIT(ctx, argc, argv); TEST_RUN(ctx, test_scanner_read_line_empty()); TEST_RUN(ctx, test_scanner_read_line_newline_only()); TEST_RUN(ctx, test_scanner_read_line_with_newline()); TEST_RUN(ctx, test_scanner_read_multiple_lines()); return TEST_RELEASE(ctx); }
#pragma once #ifndef VANZATOR_H #define VANZATOR_H #include "animal.h" #include "client.h" #include <unordered_map> #include <queue> class Vanzator { public: Vanzator(); virtual ~Vanzator(); protected: void Inventariere(animal* an,Client* cl); private: }; #endif // VANZATOR_H
const int potPin = A0;//potentiometer const int but1 = 3, but2 = 4, but3 = 5; //button const int led1 = 11, led2 = 10, led3 = 9; //led int potValue = 0; void setup() { // put your setup code here, to run once: pinMode(led1, OUTPUT); pinMode(led2, OUTPUT); pinMode(led3, OUTPUT); pinMode(but1, INPUT); pinMode(but2, INPUT); pinMode(but3, INPUT); pinMode(potPin, INPUT); Serial.begin(9600); // Serial Monitor Ctrl + Shift + m } void loop() { // put your main code here, to run repeatedly: int but3_read = digitalRead(but3); int but2_read = digitalRead(but2); int but1_read = digitalRead(but1); if(but3_read == HIGH){ digitalWrite(led1, LOW); digitalWrite(led2, LOW); digitalWrite(led3, LOW); Serial.println("Brake"); } else if(but2_read == HIGH){ digitalWrite(led1, HIGH); digitalWrite(led2, LOW); digitalWrite(led3, HIGH); delay(sqrt(potValue*25)); digitalWrite(led1, LOW); digitalWrite(led2, HIGH); digitalWrite(led3, LOW); delay(sqrt(potValue*25)); Serial.println("Cruise"); } else if(but1_read == HIGH){ potValue = analogRead(potPin); digitalWrite(led1, HIGH); digitalWrite(led2, LOW); digitalWrite(led3, HIGH); delay(sqrt(potValue*25)); digitalWrite(led1, LOW); digitalWrite(led2, HIGH); digitalWrite(led3, LOW); delay(sqrt(potValue*25)); Serial.println("Accelerate"); } }
int Solution::solve(vector<int> &A, int B) { int n = A.size(); int sum = 0, cnt = 0; int i = 0, j = 0; while (j < n) { sum += A[j]; while (sum >= B) sum -= A[i], i++; cnt += j - i + 1; j++; } return cnt; } // or // int Solution::solve(vector<int> &A, int B) { // int n = A.size(); // int sum = 0, cnt = 0; // for (int i = 0; i < n; i++) // { // sum = 0; // for (int j = i; j < n; j++) // { // sum += A[j]; // if (sum < B) // cnt++; // else // break; // } // } // return cnt; // }
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- ** ** Copyright (C) 1995-2009 Opera Software ASA. All rights reserved. ** ** This file is part of the Opera web browser. ** It may not be distributed under any circumstances. */ #include "core/pch.h" #ifdef DATABASE_STORAGE_SUPPORT #include "modules/dom/src/js/window.h" #include "modules/dom/src/domenvironmentimpl.h" #include "modules/dom/src/storage/database.h" #include "modules/dom/src/storage/sqltransaction.h" #include "modules/dom/src/storage/storageutils.h" #include "modules/doc/frm_doc.h" #include "modules/database/opdatabase.h" #include "modules/database/opdatabasemanager.h" DOM_DbManager::~DOM_DbManager() { m_db_list.RemoveAll(); } DOM_Database* DOM_DbManager::FindDbObject(WSD_Database *db) const { for (DOM_Database *iter = GetFirstDb(); iter != NULL; iter = iter->Suc()) if (iter->GetDb() == db) return iter; return NULL; } DOM_Database* DOM_DbManager::FindDbByName(const uni_char *name) const { for (DOM_Database *iter = GetFirstDb(); iter != NULL; iter = iter->Suc()) { const uni_char *odbn = iter->GetRealName(); if (odbn == name || (odbn != NULL && name != NULL && uni_str_eq(odbn, name))) return iter; } return NULL; } /*static*/ DOM_DbManager *DOM_DbManager::LookupManagerForWindow(DOM_Object *win_obj) { if (win_obj == NULL || !win_obj->IsA(DOM_TYPE_WINDOW)) return NULL; JS_Window *window = static_cast<JS_Window *>(win_obj); ES_Value value; if (window->GetPrivate(DOM_PRIVATE_database, &value) == OpBoolean::IS_TRUE && value.type == VALUE_OBJECT) if (DOM_Object *object = DOM_GetHostObject(value.value.object)) if (object->IsA(DOM_TYPE_OBJECT)) return static_cast<DOM_DbManager *>(object); return NULL; } void DOM_DbManager::ClearExpectedVersions(const uni_char *db_name) { if (uni_str_eq(db_name, UNI_L("*"))) { for (DOM_Database *dom_db = GetFirstDb(); dom_db != NULL; dom_db = dom_db->Suc()) dom_db->ClearExpectedVersion(); } else { DOM_Database *dom_db = FindDbByName(db_name); if (dom_db != NULL) dom_db->ClearExpectedVersion(); } } void DOM_DbManager::GCTrace() { for (DOM_Database *db = GetFirstDb(); db != NULL; db = db->Suc()) { /* Databases that have open transactions need to be gcmarked so they can gcmark their respective transactions, else the database can be collected. */ if (db->HasOpenTransactions()) GCMark(db); } } OP_STATUS DOM_DbManager::InsertDbObject(DOM_Database *db_object) { db_object->Into(&m_db_list); return OpStatus::OK; } /* static */ OP_STATUS DOM_DbManager::Make(DOM_DbManager *&manager, DOM_Runtime *runtime) { RETURN_IF_ERROR(DOMSetObjectRuntime(manager = OP_NEW(DOM_DbManager, ()), runtime, runtime->GetObjectPrototype(), "Object")); return OpStatus::OK; } OP_STATUS DOM_DbManager::FindOrCreateDb(DOM_Database *&database, const uni_char *db_name, const uni_char *version, const uni_char *display_name, OpFileLength author_size) { DOM_Runtime *runtime = GetRuntime(); if (!runtime->GetFramesDocument()) return OpStatus::ERR; DOM_PSUtils::PS_OriginInfo oi; RETURN_IF_ERROR(DOM_PSUtils::GetPersistentStorageOriginInfo(runtime, oi)); WSD_Database *db = NULL; RETURN_IF_ERROR(WSD_Database::GetInstance(oi.m_origin, db_name, oi.m_is_persistent, oi.m_context_id, &db)); AutoReleaseWSDDatabasePtr db_ptr(db); // Anchor pointer. if (version != NULL) { if (db->GetVersion() == NULL) // The database doesn't have a version yet, so set it RETURN_IF_ERROR(db->SetVersion(version)); else if (*version != 0 && !uni_str_eq(version, db->GetVersion())) /* The database either has an empty version and it's trying to be opened with another version or the versions differ, so it's an error. If the database has a non-empty version but an empty version is provided then it's ok and it means the author just wants the latest version available. */ return OpStatus::ERR; } database = FindDbObject(db); if (database == NULL) { RETURN_IF_ERROR(DOM_Database::Make(this, database, runtime, db, version, display_name, author_size)); db_ptr.Override(NULL); InsertDbObject(database); } return OpStatus::OK; } /*static*/ void DOM_Database::BeforeUnload(DOM_EnvironmentImpl *e) { DOM_DbManager *dbm = DOM_DbManager::LookupManagerForWindow(e->GetWindow()); if (dbm == NULL) return; for (DOM_Database *db = dbm->GetFirstDb(); db != NULL; db = db->Suc()) { for (DOM_SQLTransaction *t = db->m_transactions.First(); t != NULL; t = t->Suc()) { // Finished transactions remove themselves from the list, so they can be gc'ed. OP_ASSERT(!t->HasFinished()); t->SetDone(FALSE); } db->m_db = NULL; } } DOM_Database::DOM_Database(WSD_Database* db, OpFileLength author_size) : DOM_BuiltInConstructor(DOM_Runtime::DATABASE_PROTOTYPE) , m_db(db) , m_db_mgr(NULL) , m_author_size(author_size) { } OP_STATUS DOM_Database::EnsureDbIsInitialized() { if (m_db == NULL) { if (!GetRuntime()->GetFramesDocument()) return OpStatus::ERR; DOM_PSUtils::PS_OriginInfo oi; RETURN_IF_ERROR(DOM_PSUtils::GetPersistentStorageOriginInfo(GetRuntime(), oi)); WSD_Database *db; RETURN_IF_ERROR(WSD_Database::GetInstance(oi.m_origin, m_name, oi.m_is_persistent, oi.m_context_id, &db)); m_db = db; } return OpStatus::OK; } /* virtual */ DOM_Database::~DOM_Database() { OP_DELETEA(const_cast<uni_char *>(m_origin)); OP_DELETEA(const_cast<uni_char *>(m_name)); OP_DELETEA(const_cast<uni_char *>(m_display_name)); OP_DELETEA(const_cast<uni_char *>(m_expected_version)); Out(); // The transactions might still be attached during shutdown, when everything is forcefully gc'ed. m_transactions.RemoveAll(); } /* static */ OP_STATUS DOM_Database::Make(DOM_DbManager *db_mgr, DOM_Database *&db_object, DOM_Runtime *runtime, WSD_Database *database, const uni_char *expected_version, const uni_char *display_name, OpFileLength author_size) { OP_STATUS status = OpStatus::ERR_NO_MEMORY; const uni_char *origin = NULL, *name = NULL, *display_name_copy = NULL, *expected_version_copy = NULL; db_object = NULL; if (database->GetOrigin() && !(origin = UniSetNewStr(database->GetOrigin())) || database->GetName() && !(name = UniSetNewStr(database->GetName())) || display_name && !(display_name_copy = UniSetNewStr(display_name)) || expected_version && !(expected_version_copy = UniSetNewStr(expected_version))) goto cleanup; status = DOMSetObjectRuntime((db_object = OP_NEW(DOM_Database, (database, author_size))), runtime, runtime->GetPrototype(DOM_Runtime::DATABASE_PROTOTYPE), "Database"); if (OpStatus::IsError(status)) goto cleanup; db_object->m_db_mgr = db_mgr; db_object->m_origin = origin; db_object->m_name = name; db_object->m_expected_version = expected_version_copy; db_object->m_display_name = display_name_copy; return OpStatus::OK; cleanup: OP_DELETE(db_object); OP_DELETEA(const_cast<uni_char *>(origin)); OP_DELETEA(const_cast<uni_char *>(name)); OP_DELETEA(const_cast<uni_char *>(expected_version_copy)); OP_DELETEA(const_cast<uni_char *>(display_name_copy)); return status; } /*static*/ BOOL DOM_Database::IsValidCallbackObject(ES_Object *callback_object, DOM_Runtime *runtime) { OP_ASSERT(callback_object != NULL); if (ES_Runtime::IsCallable(callback_object)) return TRUE; else { ES_Value value; // ES_Runtime::GetName() doesn't handle getters, but it's acceptable for now. if (runtime->GetName(callback_object, UNI_L("handleEvent"), &value) == OpBoolean::IS_TRUE && value.type == VALUE_OBJECT && ES_Runtime::IsCallable(value.value.object)) return TRUE; } return FALSE; } /*static*/ BOOL DOM_Database::ReadCallbackArgument(ES_Value* argv, int argc, int position, DOM_Runtime *runtime, ES_Object **dest_callback) { if (argc <= position || argv[position].type == VALUE_UNDEFINED || argv[position].type == VALUE_NULL) { *dest_callback = NULL; return TRUE; } if (IsValidCallbackObject(argv[position].value.object, runtime)) { *dest_callback = argv[position].value.object; return TRUE; } return FALSE; } /* virtual */ ES_GetState DOM_Database::GetName(OpAtom property_name, ES_Value *value, ES_Runtime *origining_runtime) { if (property_name == OP_ATOM_version) { if (value) { GET_FAILED_IF_ERROR(EnsureDbIsInitialized()); DOMSetString(value, m_db->GetVersion()); } return GET_SUCCESS; } return GET_FAILED; } /* virtual */ ES_PutState DOM_Database::PutName(OpAtom property_name, ES_Value *value, ES_Runtime *origining_runtime) { if (property_name == OP_ATOM_version) // read only return PUT_SUCCESS; return PUT_FAILED; } void DOM_Database::ClearExpectedVersion() { OP_DELETEA(const_cast<uni_char *>(m_expected_version)); m_expected_version = NULL; } /* virtual */ void DOM_Database::GCTrace() { GCMark(m_db_mgr); DOM_SQLTransaction *current = static_cast<DOM_SQLTransaction *>(m_transactions.First()); for (; current != NULL; current = static_cast<DOM_SQLTransaction *>(current->Suc())) GCMark(current); } /* static */ int DOM_Database::CreateTransaction(DOM_Object *this_object, ES_Value *argv, int argc, ES_Value *return_value, DOM_Runtime *origining_runtime, int data) { DOM_THIS_OBJECT(database, DOM_TYPE_DATABASE, DOM_Database); DOM_CHECK_ARGUMENTS("o|OO"); ES_Object *transaction_cb, *error_cb, *void_cb; if (!ReadCallbackArgument(argv, argc, 0, origining_runtime, &transaction_cb) || !ReadCallbackArgument(argv, argc, 1, origining_runtime, &error_cb) || !ReadCallbackArgument(argv, argc, 2, origining_runtime, &void_cb)) return DOM_CALL_INTERNALEXCEPTION(WRONG_ARGUMENTS_ERR); CALL_FAILED_IF_ERROR(database->EnsureDbIsInitialized()); OP_ASSERT(data == 0 || data == 1); BOOL read_only = data == 1; DOM_SQLTransaction *trans; CALL_FAILED_IF_ERROR(DOM_SQLTransaction::Make(trans, database, read_only, database->m_expected_version)); trans->Into(&database->m_transactions); trans->SetTransactionCb(transaction_cb); trans->SetErrorCb (error_cb); trans->SetVoidCb (void_cb); CALL_FAILED_IF_ERROR(trans->Run()); return ES_FAILED; } /* static */ int DOM_Database::changeVersion(DOM_Object *this_object, ES_Value *argv, int argc, ES_Value *return_value, DOM_Runtime *origining_runtime) { DOM_THIS_OBJECT(database, DOM_TYPE_DATABASE, DOM_Database); DOM_CHECK_ARGUMENTS("ss|OOO"); CALL_FAILED_IF_ERROR(database->EnsureDbIsInitialized()); ES_Object *transaction_cb, *error_cb, *void_cb; if (!ReadCallbackArgument(argv, argc, 2, origining_runtime, &transaction_cb) || !ReadCallbackArgument(argv, argc, 3, origining_runtime, &error_cb) || !ReadCallbackArgument(argv, argc, 4, origining_runtime, &void_cb)) return DOM_CALL_INTERNALEXCEPTION(WRONG_ARGUMENTS_ERR); if (transaction_cb == NULL) { /** * Optimize for the case of no transaction callback * Just update the version directly */ if (database->m_db != NULL) { if (database->m_db->GetIndexEntry()->CompareVersion(argv[0].value.string)) { CALL_FAILED_IF_ERROR(database->m_db->GetIndexEntry()->SetVersion(argv[1].value.string)); OP_DELETEA(const_cast<uni_char *>(database->m_expected_version)); database->m_expected_version = UniSetNewStr(argv[1].value.string); if (database->m_expected_version == NULL) CALL_FAILED_IF_ERROR(OpStatus::ERR_NO_MEMORY); } #ifdef OPERA_CONSOLE else { TempBuffer message; CALL_FAILED_IF_ERROR(message.AppendFormat(UNI_L("Version '%s' did not match current version '%s' of database '%s'"), argv[0].value.string, database->m_db->GetVersion() ? database->m_db->GetVersion() : UNI_L(""), database->m_name ? database->m_name : UNI_L(""))); DOM_PSUtils::PostExceptionToConsole( origining_runtime, GetCurrentThread(origining_runtime) != NULL ? GetCurrentThread(origining_runtime)->GetInfoString() : UNI_L("") , message.GetStorage()); } #endif //OPERA_CONSOLE } return ES_FAILED; } DOM_SQLTransaction *trans; CALL_FAILED_IF_ERROR(DOM_SQLTransaction::Make(trans, database, FALSE, database->m_expected_version)); CALL_FAILED_IF_ERROR(trans->SetChangeDatabaseVersion(argv[0].value.string, argv[1].value.string)); trans->SetTransactionCb(transaction_cb); trans->SetErrorCb(error_cb); trans->SetVoidCb(void_cb); CALL_FAILED_IF_ERROR(trans->Run()); return ES_FAILED; } #include "modules/dom/src/domglobaldata.h" DOM_FUNCTIONS_START(DOM_Database) DOM_FUNCTIONS_FUNCTION(DOM_Database, DOM_Database::changeVersion, "changeVersion", "ss|OOO-") DOM_FUNCTIONS_END(DOM_Database) DOM_FUNCTIONS_WITH_DATA_START(DOM_Database) DOM_FUNCTIONS_WITH_DATA_FUNCTION(DOM_Database, DOM_Database::CreateTransaction, 0, "transaction", "o|OO-") DOM_FUNCTIONS_WITH_DATA_FUNCTION(DOM_Database, DOM_Database::CreateTransaction, 1, "readTransaction", "o|OO-") DOM_FUNCTIONS_WITH_DATA_END(DOM_Database) #endif // DATABASE_STORAGE_SUPPORT
#include <string> #include <vector> #include "Playlist.h" using namespace std; class PlaylistLibrary{ public: PlaylistLibrary(); ~PlaylistLibrary(); void addPlaylist(Playlist *playlist); Playlist * getPlaylist(int user_id); void removePlaylist(Playlist *playlist); void displayPlaylists(); private: PlaylistLibrary(Playlist& playlist); vector<Playlist*> library; };
#include "stepPlayer.h" PLAY::PLAY(){ _player = PLAYER1; } VOID PLAY::Init(){ _player = PLAYER1; } INT PLAY::GetPlayer( ){ return _player; } VOID PLAY::ChangePlayer( ){ _player = ( _player == PLAYER1 )? PLAYER2 : PLAYER1; }
#ifndef RESOURCEMANAGER_H #define RESOURCEMANAGER_H #include <GL/glew.h> #include <map> #include <string> #include <fstream> #include "texture.h" #include "shader.h" #include "debug.h" class ResourceManager{ public: //lists of shaders and textures static std::map < std::string, Shader> _shaders; static std::map < std::string, Texture> _textures; //load shader, returns a shader after completion or if it already exists static Shader loadShader(const GLchar* vShaderFile, const GLchar* fShaderFile,std::string name); //return a shader static Shader getShader(std::string name); //load texture, returns a texture after completion or if it already exists static Texture loadTexture(const GLchar* file,std::string name,int filter); //return a texture static Texture getTexture(std::string name); //clear the resource manager completely static void clear(); private: ResourceManager(); virtual ~ResourceManager(); //load the shader from the file static Shader loadShaderFromFile(const GLchar* vShaderFile, const GLchar* fShaderFile); //load the texture form the file static void loadTextureFromFile(const GLchar* file,int filter); }; #endif //RESOURCEMANAGER_H
#ifndef STDOPT_OPTION_H #define STDOPT_OPTION_H /** * Copyright 2008 Matthew Graham * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <sstream> #include <vector> namespace stdopt { /** * Interface for storing the option value. */ class option_value_i { public: /** * Virtual parser */ virtual bool parse_value( const std::string & ) = 0; /** * Check if this option was set _correctly_ in the configuration file. * It returns false if there was an error. */ virtual bool set() const = 0; /** * Check if this option was set incorrectly in the configuration file. */ virtual bool error() const = 0; }; /** * Usage option specification. */ class usage_option_i : virtual public option_value_i { public: /** * Get the character flag for this option. */ virtual char usage_character() const = 0; /** * Get the longer name for this option. */ virtual const std::string & option_name() const = 0; /** * Get the description for this option. */ virtual const std::string & description() const = 0; /** * Check if this usage option requires a parameter. */ virtual bool requires_param() const = 0; /** * Check if an option type takes a parameter. * Most types require a parameter. */ template < typename T > static bool type_requires_param() { return true; } }; /** * Declare the type required function for the boolean type. * This is the only type that doesn't require a parameter. */ template <> bool usage_option_i::type_requires_param< bool >(); /** * Config option specification. */ class config_option_i : virtual public option_value_i { public: /** * Get the name of this option. */ virtual const std::string & option_name() const = 0; /** * Get the description for this option. Used to describe * in the docs. */ virtual const std::string & description() const = 0; /** * Check if this options _must_ be set in the configuration file. */ virtual bool config_required() const = 0; }; /** * A templated implementation of the option_value_i interface. * This implements the code for parsing values and setting them * for later retrieval by the client code. * Any type can be used as long as it has a default constructor and supports * the istream >> operator. */ template < typename T > class option_value_c : virtual public option_value_i { private: /** * The internal type for storing values set by command line or * configuration file. */ typedef std::vector< T > value_list; public: /** * The iterator class for iterating over values set for a given * option. Values are read-only for client code. */ typedef typename value_list::const_iterator iterator; typedef typename value_list::reference reference; typedef typename value_list::const_reference const_reference; public: /** * Construct an option value with _no_ default value. */ option_value_c() : m_values() , m_default() , m_default_set( false ) , m_set( false ) , m_error( false ) {} /** * Construct an option value with a default value. */ option_value_c( const_reference default_value ) : m_values() , m_default( default_value ) , m_default_set( true ) , m_set( false ) , m_error( false ) {} /** * Check if this option was set _correctly_ in the configuration file. * It returns false if there was an error. */ virtual bool set() const { return m_set && ! m_error; } /** * Check if this option was set incorrectly in the configuration file. */ virtual bool error() const { return m_error; } /** * Get the value set. If the value is set multiple times * this will return the first value. */ const_reference value() const { if ( ! m_set ) { // return default even if it's not set // to avoid seg faults return m_default; } return m_values.front(); } /** * If the value is set multiple times, this will return the * most recently set value. */ const_reference last_value() const { if ( ! m_set ) { // return default even if it's not set // to avoid seg faults return m_default; } return m_values.back(); } /** * Get the number of values set for this option. */ int size() const { return m_values.size(); } /** * Get the ith value set for this option. */ const_reference value( int i ) const { return m_values[ i ]; } /** * Get the begin iterator for the list of values on this option. */ iterator begin() const { return m_values.begin(); } /** * Get the end iterator for the list of values on this option. */ iterator end() const { return m_values.end(); } /** * Implementation of parsing the string value into the templated * type. The templated type just needs an implementation of * istream >> T */ virtual bool parse_value( const std::string &str_value ) { // don't keep parsing after an error if ( m_error ) return false; std::istringstream input( str_value ); T val( m_default ); input >> val; m_error = input.fail(); if ( ! m_error ) { m_set = true; m_values.push_back( val ); } return ! m_error; } private: value_list m_values; const T m_default; const bool m_default_set; bool m_set; bool m_error; }; template <> bool option_value_c< bool >::parse_value( const std::string &str_value ); template <> bool option_value_c< std::string >::parse_value( const std::string &str_value ); /** * An option that can be set on command line usage or a configuration file. */ template < typename T > class shared_option_c : public option_value_c< T > , virtual public config_option_i , virtual public usage_option_i { public: shared_option_c(); virtual char option_character() const { return m_option_char; } virtual const std::string & option_name() const { return m_option_name; } virtual const std::string & description() const { return m_description; } virtual bool requires_param() const { return usage_option_i::type_requires_param< T >(); } virtual bool config_required() const { return m_config_required; } private: std::string m_option_name; std::string m_description; char m_option_char; bool m_config_required; }; } // end namespace #endif
#include "il2cpp-config.h" #include "class-internals.h" #include "codegen/il2cpp-codegen.h" #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif #include <cstring> #include <string.h> #include <stdio.h> #ifndef _MSC_VER #include <alloca.h> #else #include <malloc.h> #endif #include <cmath> #include <limits> #include <assert.h> // System.Object #include "mscorlib_System_Object.h" // System.Array #include "mscorlib_System_Array.h" // System.Array/InternalEnumerator`1<System.Object> #include "mscorlib_System_Array_InternalEnumerator_1_gen_0.h" #ifndef _MSC_VER #else #endif // System.Array/InternalEnumerator`1<System.Object> #include "mscorlib_System_Array_InternalEnumerator_1_gen_0MethodDeclarations.h" // System.Int32 #include "mscorlib_System_Int32.h" // System.String #include "mscorlib_System_String.h" // System.InvalidOperationException #include "mscorlib_System_InvalidOperationException.h" // System.Void #include "mscorlib_System_Void.h" // System.Boolean #include "mscorlib_System_Boolean.h" // System.InvalidOperationException #include "mscorlib_System_InvalidOperationExceptionMethodDeclarations.h" // System.Array #include "mscorlib_System_ArrayMethodDeclarations.h" struct Array_t; struct Object_t; // Declaration !!0 System.Array::InternalArray__get_Item<System.Object>(System.Int32) // !!0 System.Array::InternalArray__get_Item<System.Object>(System.Int32) extern "C" Object_t * Array_InternalArray__get_Item_TisObject_t_m12107_gshared (Array_t * __this, int32_t p0, const MethodInfo* method); #define Array_InternalArray__get_Item_TisObject_t_m12107(__this, p0, method) (( Object_t * (*) (Array_t *, int32_t, const MethodInfo*))Array_InternalArray__get_Item_TisObject_t_m12107_gshared)(__this, p0, method) // System.Void System.Array/InternalEnumerator`1<System.Object>::.ctor(System.Array) extern "C" void InternalEnumerator_1__ctor_m8323_gshared (InternalEnumerator_1_t1447 * __this, Array_t * ___array, const MethodInfo* method) { { Array_t * L_0 = ___array; __this->___array_0 = L_0; __this->___idx_1 = ((int32_t)-2); return; } } // System.Object System.Array/InternalEnumerator`1<System.Object>::System.Collections.IEnumerator.get_Current() extern "C" Object_t * InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m8325_gshared (InternalEnumerator_1_t1447 * __this, const MethodInfo* method) { { Object_t * L_0 = (( Object_t * (*) (InternalEnumerator_1_t1447 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((InternalEnumerator_1_t1447 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); return L_0; } } // System.Void System.Array/InternalEnumerator`1<System.Object>::Dispose() extern "C" void InternalEnumerator_1_Dispose_m8327_gshared (InternalEnumerator_1_t1447 * __this, const MethodInfo* method) { { __this->___idx_1 = ((int32_t)-2); return; } } // System.Boolean System.Array/InternalEnumerator`1<System.Object>::MoveNext() extern "C" bool InternalEnumerator_1_MoveNext_m8329_gshared (InternalEnumerator_1_t1447 * __this, const MethodInfo* method) { int32_t V_0 = 0; int32_t G_B5_0 = 0; { int32_t L_0 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_0) == ((uint32_t)((int32_t)-2))))) { goto IL_001e; } } { Array_t * L_1 = (Array_t *)(__this->___array_0); NullCheck((Array_t *)L_1); int32_t L_2 = Array_get_Length_m2256((Array_t *)L_1, /*hidden argument*/NULL); __this->___idx_1 = L_2; } IL_001e: { int32_t L_3 = (int32_t)(__this->___idx_1); if ((((int32_t)L_3) == ((int32_t)(-1)))) { goto IL_0043; } } { int32_t L_4 = (int32_t)(__this->___idx_1); int32_t L_5 = (int32_t)((int32_t)((int32_t)L_4-(int32_t)1)); V_0 = (int32_t)L_5; __this->___idx_1 = L_5; int32_t L_6 = V_0; G_B5_0 = ((((int32_t)((((int32_t)L_6) == ((int32_t)(-1)))? 1 : 0)) == ((int32_t)0))? 1 : 0); goto IL_0044; } IL_0043: { G_B5_0 = 0; } IL_0044: { return G_B5_0; } } // T System.Array/InternalEnumerator`1<System.Object>::get_Current() extern TypeInfo* InvalidOperationException_t580_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2671; extern Il2CppCodeGenString* _stringLiteral2672; extern "C" Object_t * InternalEnumerator_1_get_Current_m8331_gshared (InternalEnumerator_1_t1447 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { InvalidOperationException_t580_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(236); _stringLiteral2671 = il2cpp_codegen_string_literal_from_index(2671); _stringLiteral2672 = il2cpp_codegen_string_literal_from_index(2672); s_Il2CppMethodIntialized = true; } { int32_t L_0 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_0) == ((uint32_t)((int32_t)-2))))) { goto IL_0018; } } { InvalidOperationException_t580 * L_1 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_1, (String_t*)_stringLiteral2671, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0018: { int32_t L_2 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_2) == ((uint32_t)(-1))))) { goto IL_002f; } } { InvalidOperationException_t580 * L_3 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_3, (String_t*)_stringLiteral2672, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_3); } IL_002f: { Array_t * L_4 = (Array_t *)(__this->___array_0); Array_t * L_5 = (Array_t *)(__this->___array_0); NullCheck((Array_t *)L_5); int32_t L_6 = Array_get_Length_m2256((Array_t *)L_5, /*hidden argument*/NULL); int32_t L_7 = (int32_t)(__this->___idx_1); NullCheck((Array_t *)L_4); Object_t * L_8 = (( Object_t * (*) (Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((Array_t *)L_4, (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_6-(int32_t)1))-(int32_t)L_7)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); return L_8; } } #ifndef _MSC_VER #else #endif #include "mscorlib_ArrayTypes.h" #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif // System.Action`1<System.Boolean> #include "mscorlib_System_Action_1_gen.h" #ifndef _MSC_VER #else #endif // System.Action`1<System.Boolean> #include "mscorlib_System_Action_1_genMethodDeclarations.h" // System.IntPtr #include "mscorlib_System_IntPtr.h" // System.AsyncCallback #include "mscorlib_System_AsyncCallback.h" // System.Void System.Action`1<System.Boolean>::.ctor(System.Object,System.IntPtr) extern "C" void Action_1__ctor_m8337_gshared (Action_1_t24 * __this, Object_t * ___object, IntPtr_t ___method, const MethodInfo* method) { __this->___method_ptr_0 = (methodPointerType)((MethodInfo*)___method.___m_value_0)->method; __this->___method_3 = ___method; __this->___m_target_2 = ___object; } // System.Void System.Action`1<System.Boolean>::Invoke(T) extern "C" void Action_1_Invoke_m1188_gshared (Action_1_t24 * __this, bool ___obj, const MethodInfo* method) { if(__this->___prev_9 != NULL) { Action_1_Invoke_m1188((Action_1_t24 *)__this->___prev_9,___obj, method); } il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->___method_3.___m_value_0)); bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->___method_3.___m_value_0)); if (__this->___m_target_2 != NULL && ___methodIsStatic) { typedef void (*FunctionPointerType) (Object_t *, Object_t * __this, bool ___obj, const MethodInfo* method); ((FunctionPointerType)__this->___method_ptr_0)(NULL,__this->___m_target_2,___obj,(MethodInfo*)(__this->___method_3.___m_value_0)); } else { typedef void (*FunctionPointerType) (Object_t * __this, bool ___obj, const MethodInfo* method); ((FunctionPointerType)__this->___method_ptr_0)(__this->___m_target_2,___obj,(MethodInfo*)(__this->___method_3.___m_value_0)); } } // System.IAsyncResult System.Action`1<System.Boolean>::BeginInvoke(T,System.AsyncCallback,System.Object) extern TypeInfo* Boolean_t340_il2cpp_TypeInfo_var; extern "C" Object_t * Action_1_BeginInvoke_m8338_gshared (Action_1_t24 * __this, bool ___obj, AsyncCallback_t54 * ___callback, Object_t * ___object, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { Boolean_t340_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(13); s_Il2CppMethodIntialized = true; } void *__d_args[2] = {0}; __d_args[0] = Box(Boolean_t340_il2cpp_TypeInfo_var, &___obj); return (Object_t *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)___callback, (Il2CppObject*)___object); } // System.Void System.Action`1<System.Boolean>::EndInvoke(System.IAsyncResult) extern "C" void Action_1_EndInvoke_m8339_gshared (Action_1_t24 * __this, Object_t * ___result, const MethodInfo* method) { il2cpp_delegate_end_invoke((Il2CppAsyncResult*) ___result, 0); } // System.Action`1<System.Object> #include "mscorlib_System_Action_1_gen_5.h" #ifndef _MSC_VER #else #endif // System.Action`1<System.Object> #include "mscorlib_System_Action_1_gen_5MethodDeclarations.h" // System.Void System.Action`1<System.Object>::.ctor(System.Object,System.IntPtr) extern "C" void Action_1__ctor_m8341_gshared (Action_1_t1449 * __this, Object_t * ___object, IntPtr_t ___method, const MethodInfo* method) { __this->___method_ptr_0 = (methodPointerType)((MethodInfo*)___method.___m_value_0)->method; __this->___method_3 = ___method; __this->___m_target_2 = ___object; } // System.Void System.Action`1<System.Object>::Invoke(T) extern "C" void Action_1_Invoke_m8342_gshared (Action_1_t1449 * __this, Object_t * ___obj, const MethodInfo* method) { if(__this->___prev_9 != NULL) { Action_1_Invoke_m8342((Action_1_t1449 *)__this->___prev_9,___obj, method); } il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->___method_3.___m_value_0)); bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->___method_3.___m_value_0)); if (__this->___m_target_2 != NULL && ___methodIsStatic) { typedef void (*FunctionPointerType) (Object_t *, Object_t * __this, Object_t * ___obj, const MethodInfo* method); ((FunctionPointerType)__this->___method_ptr_0)(NULL,__this->___m_target_2,___obj,(MethodInfo*)(__this->___method_3.___m_value_0)); } else if (__this->___m_target_2 != NULL || ___methodIsStatic) { typedef void (*FunctionPointerType) (Object_t * __this, Object_t * ___obj, const MethodInfo* method); ((FunctionPointerType)__this->___method_ptr_0)(__this->___m_target_2,___obj,(MethodInfo*)(__this->___method_3.___m_value_0)); } else { typedef void (*FunctionPointerType) (Object_t * __this, const MethodInfo* method); ((FunctionPointerType)__this->___method_ptr_0)(___obj,(MethodInfo*)(__this->___method_3.___m_value_0)); } } // System.IAsyncResult System.Action`1<System.Object>::BeginInvoke(T,System.AsyncCallback,System.Object) extern "C" Object_t * Action_1_BeginInvoke_m8344_gshared (Action_1_t1449 * __this, Object_t * ___obj, AsyncCallback_t54 * ___callback, Object_t * ___object, const MethodInfo* method) { void *__d_args[2] = {0}; __d_args[0] = ___obj; return (Object_t *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)___callback, (Il2CppObject*)___object); } // System.Void System.Action`1<System.Object>::EndInvoke(System.IAsyncResult) extern "C" void Action_1_EndInvoke_m8346_gshared (Action_1_t1449 * __this, Object_t * ___result, const MethodInfo* method) { il2cpp_delegate_end_invoke((Il2CppAsyncResult*) ___result, 0); } // System.Collections.Generic.List`1<System.Object> #include "mscorlib_System_Collections_Generic_List_1_gen.h" #ifndef _MSC_VER #else #endif // System.Collections.Generic.List`1<System.Object> #include "mscorlib_System_Collections_Generic_List_1_genMethodDeclarations.h" // System.ArgumentException #include "mscorlib_System_ArgumentException.h" // System.ArgumentOutOfRangeException #include "mscorlib_System_ArgumentOutOfRangeException.h" // System.Collections.Generic.List`1/Enumerator<System.Object> #include "mscorlib_System_Collections_Generic_List_1_Enumerator_gen_1.h" // System.ArgumentException #include "mscorlib_System_ArgumentExceptionMethodDeclarations.h" // System.ArgumentOutOfRangeException #include "mscorlib_System_ArgumentOutOfRangeExceptionMethodDeclarations.h" // System.Object #include "mscorlib_System_ObjectMethodDeclarations.h" // System.Math #include "mscorlib_System_MathMethodDeclarations.h" // System.Collections.Generic.List`1/Enumerator<System.Object> #include "mscorlib_System_Collections_Generic_List_1_Enumerator_gen_1MethodDeclarations.h" struct Array_t; struct ObjectU5BU5D_t207; // Declaration System.Void System.Array::Resize<System.Object>(!!0[]&,System.Int32) // System.Void System.Array::Resize<System.Object>(!!0[]&,System.Int32) extern "C" void Array_Resize_TisObject_t_m12119_gshared (Object_t * __this /* static, unused */, ObjectU5BU5D_t207** p0, int32_t p1, const MethodInfo* method); #define Array_Resize_TisObject_t_m12119(__this /* static, unused */, p0, p1, method) (( void (*) (Object_t * /* static, unused */, ObjectU5BU5D_t207**, int32_t, const MethodInfo*))Array_Resize_TisObject_t_m12119_gshared)(__this /* static, unused */, p0, p1, method) struct Array_t; struct ObjectU5BU5D_t207; struct Object_t; // Declaration System.Int32 System.Array::IndexOf<System.Object>(!!0[],!!0,System.Int32,System.Int32) // System.Int32 System.Array::IndexOf<System.Object>(!!0[],!!0,System.Int32,System.Int32) extern "C" int32_t Array_IndexOf_TisObject_t_m8306_gshared (Object_t * __this /* static, unused */, ObjectU5BU5D_t207* p0, Object_t * p1, int32_t p2, int32_t p3, const MethodInfo* method); #define Array_IndexOf_TisObject_t_m8306(__this /* static, unused */, p0, p1, p2, p3, method) (( int32_t (*) (Object_t * /* static, unused */, ObjectU5BU5D_t207*, Object_t *, int32_t, int32_t, const MethodInfo*))Array_IndexOf_TisObject_t_m8306_gshared)(__this /* static, unused */, p0, p1, p2, p3, method) // System.Void System.Collections.Generic.List`1<System.Object>::.ctor() extern "C" void List_1__ctor_m1280_gshared (List_1_t194 * __this, const MethodInfo* method) { { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); ObjectU5BU5D_t207* L_0 = ((List_1_t194_StaticFields*)IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->static_fields)->___EmptyArray_3; __this->____items_0 = L_0; return; } } // System.Void System.Collections.Generic.List`1<System.Object>::.ctor(System.Int32) extern TypeInfo* ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral1221; extern "C" void List_1__ctor_m8387_gshared (List_1_t194 * __this, int32_t ___capacity, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(147); _stringLiteral1221 = il2cpp_codegen_string_literal_from_index(1221); s_Il2CppMethodIntialized = true; } { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); int32_t L_0 = ___capacity; if ((((int32_t)L_0) >= ((int32_t)0))) { goto IL_0018; } } { ArgumentOutOfRangeException_t350 * L_1 = (ArgumentOutOfRangeException_t350 *)il2cpp_codegen_object_new (ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var); ArgumentOutOfRangeException__ctor_m2260(L_1, (String_t*)_stringLiteral1221, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0018: { int32_t L_2 = ___capacity; __this->____items_0 = ((ObjectU5BU5D_t207*)SZArrayNew(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1), L_2)); return; } } // System.Void System.Collections.Generic.List`1<System.Object>::.cctor() extern "C" void List_1__cctor_m8389_gshared (Object_t * __this /* static, unused */, const MethodInfo* method) { { ((List_1_t194_StaticFields*)IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->static_fields)->___EmptyArray_3 = ((ObjectU5BU5D_t207*)SZArrayNew(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1), 0)); return; } } // System.Collections.Generic.IEnumerator`1<T> System.Collections.Generic.List`1<System.Object>::System.Collections.Generic.IEnumerable<T>.GetEnumerator() extern "C" Object_t* List_1_System_Collections_Generic_IEnumerableU3CTU3E_GetEnumerator_m8391_gshared (List_1_t194 * __this, const MethodInfo* method) { { NullCheck((List_1_t194 *)__this); Enumerator_t1457 L_0 = (( Enumerator_t1457 (*) (List_1_t194 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((List_1_t194 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); Enumerator_t1457 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3), &L_1); return (Object_t*)L_2; } } // System.Void System.Collections.Generic.List`1<System.Object>::System.Collections.ICollection.CopyTo(System.Array,System.Int32) extern "C" void List_1_System_Collections_ICollection_CopyTo_m8393_gshared (List_1_t194 * __this, Array_t * ___array, int32_t ___arrayIndex, const MethodInfo* method) { { ObjectU5BU5D_t207* L_0 = (ObjectU5BU5D_t207*)(__this->____items_0); Array_t * L_1 = ___array; int32_t L_2 = ___arrayIndex; int32_t L_3 = (int32_t)(__this->____size_1); Array_Copy_m4087(NULL /*static, unused*/, (Array_t *)(Array_t *)L_0, (int32_t)0, (Array_t *)L_1, (int32_t)L_2, (int32_t)L_3, /*hidden argument*/NULL); return; } } // System.Collections.IEnumerator System.Collections.Generic.List`1<System.Object>::System.Collections.IEnumerable.GetEnumerator() extern "C" Object_t * List_1_System_Collections_IEnumerable_GetEnumerator_m8395_gshared (List_1_t194 * __this, const MethodInfo* method) { { NullCheck((List_1_t194 *)__this); Enumerator_t1457 L_0 = (( Enumerator_t1457 (*) (List_1_t194 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((List_1_t194 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); Enumerator_t1457 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3), &L_1); return (Object_t *)L_2; } } // System.Int32 System.Collections.Generic.List`1<System.Object>::System.Collections.IList.Add(System.Object) extern TypeInfo* NullReferenceException_t319_il2cpp_TypeInfo_var; extern TypeInfo* InvalidCastException_t1333_il2cpp_TypeInfo_var; extern TypeInfo* ArgumentException_t320_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2673; extern "C" int32_t List_1_System_Collections_IList_Add_m8397_gshared (List_1_t194 * __this, Object_t * ___item, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NullReferenceException_t319_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(2); InvalidCastException_t1333_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(506); ArgumentException_t320_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(3); _stringLiteral2673 = il2cpp_codegen_string_literal_from_index(2673); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; Exception_t74 * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t74 * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); int32_t __leave_target = 0; NO_UNUSED_WARNING (__leave_target); IL_0000: try { // begin try (depth: 1) { Object_t * L_0 = ___item; NullCheck((List_1_t194 *)__this); VirtActionInvoker1< Object_t * >::Invoke(19 /* System.Void System.Collections.Generic.List`1<System.Object>::Add(T) */, (List_1_t194 *)__this, (Object_t *)((Object_t *)Castclass(L_0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)))); int32_t L_1 = (int32_t)(__this->____size_1); V_0 = (int32_t)((int32_t)((int32_t)L_1-(int32_t)1)); goto IL_0036; } IL_001a: { ; // IL_001a: leave IL_002b } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __exception_local = (Exception_t74 *)e.ex; if(il2cpp_codegen_class_is_assignable_from (NullReferenceException_t319_il2cpp_TypeInfo_var, e.ex->object.klass)) goto CATCH_001f; if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t1333_il2cpp_TypeInfo_var, e.ex->object.klass)) goto CATCH_0025; throw e; } CATCH_001f: { // begin catch(System.NullReferenceException) goto IL_002b; } // end catch (depth: 1) CATCH_0025: { // begin catch(System.InvalidCastException) goto IL_002b; } // end catch (depth: 1) IL_002b: { ArgumentException_t320 * L_2 = (ArgumentException_t320 *)il2cpp_codegen_object_new (ArgumentException_t320_il2cpp_TypeInfo_var); ArgumentException__ctor_m1183(L_2, (String_t*)_stringLiteral2673, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_2); } IL_0036: { int32_t L_3 = V_0; return L_3; } } // System.Boolean System.Collections.Generic.List`1<System.Object>::System.Collections.IList.Contains(System.Object) extern TypeInfo* NullReferenceException_t319_il2cpp_TypeInfo_var; extern TypeInfo* InvalidCastException_t1333_il2cpp_TypeInfo_var; extern "C" bool List_1_System_Collections_IList_Contains_m8399_gshared (List_1_t194 * __this, Object_t * ___item, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NullReferenceException_t319_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(2); InvalidCastException_t1333_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(506); s_Il2CppMethodIntialized = true; } bool V_0 = false; Exception_t74 * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t74 * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); int32_t __leave_target = 0; NO_UNUSED_WARNING (__leave_target); IL_0000: try { // begin try (depth: 1) { Object_t * L_0 = ___item; NullCheck((List_1_t194 *)__this); bool L_1 = (bool)VirtFuncInvoker1< bool, Object_t * >::Invoke(21 /* System.Boolean System.Collections.Generic.List`1<System.Object>::Contains(T) */, (List_1_t194 *)__this, (Object_t *)((Object_t *)Castclass(L_0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)))); V_0 = (bool)L_1; goto IL_0025; } IL_0012: { ; // IL_0012: leave IL_0023 } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __exception_local = (Exception_t74 *)e.ex; if(il2cpp_codegen_class_is_assignable_from (NullReferenceException_t319_il2cpp_TypeInfo_var, e.ex->object.klass)) goto CATCH_0017; if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t1333_il2cpp_TypeInfo_var, e.ex->object.klass)) goto CATCH_001d; throw e; } CATCH_0017: { // begin catch(System.NullReferenceException) goto IL_0023; } // end catch (depth: 1) CATCH_001d: { // begin catch(System.InvalidCastException) goto IL_0023; } // end catch (depth: 1) IL_0023: { return 0; } IL_0025: { bool L_2 = V_0; return L_2; } } // System.Int32 System.Collections.Generic.List`1<System.Object>::System.Collections.IList.IndexOf(System.Object) extern TypeInfo* NullReferenceException_t319_il2cpp_TypeInfo_var; extern TypeInfo* InvalidCastException_t1333_il2cpp_TypeInfo_var; extern "C" int32_t List_1_System_Collections_IList_IndexOf_m8401_gshared (List_1_t194 * __this, Object_t * ___item, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NullReferenceException_t319_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(2); InvalidCastException_t1333_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(506); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; Exception_t74 * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t74 * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); int32_t __leave_target = 0; NO_UNUSED_WARNING (__leave_target); IL_0000: try { // begin try (depth: 1) { Object_t * L_0 = ___item; NullCheck((List_1_t194 *)__this); int32_t L_1 = (int32_t)VirtFuncInvoker1< int32_t, Object_t * >::Invoke(25 /* System.Int32 System.Collections.Generic.List`1<System.Object>::IndexOf(T) */, (List_1_t194 *)__this, (Object_t *)((Object_t *)Castclass(L_0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)))); V_0 = (int32_t)L_1; goto IL_0025; } IL_0012: { ; // IL_0012: leave IL_0023 } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __exception_local = (Exception_t74 *)e.ex; if(il2cpp_codegen_class_is_assignable_from (NullReferenceException_t319_il2cpp_TypeInfo_var, e.ex->object.klass)) goto CATCH_0017; if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t1333_il2cpp_TypeInfo_var, e.ex->object.klass)) goto CATCH_001d; throw e; } CATCH_0017: { // begin catch(System.NullReferenceException) goto IL_0023; } // end catch (depth: 1) CATCH_001d: { // begin catch(System.InvalidCastException) goto IL_0023; } // end catch (depth: 1) IL_0023: { return (-1); } IL_0025: { int32_t L_2 = V_0; return L_2; } } // System.Void System.Collections.Generic.List`1<System.Object>::System.Collections.IList.Insert(System.Int32,System.Object) extern TypeInfo* NullReferenceException_t319_il2cpp_TypeInfo_var; extern TypeInfo* InvalidCastException_t1333_il2cpp_TypeInfo_var; extern TypeInfo* ArgumentException_t320_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2673; extern "C" void List_1_System_Collections_IList_Insert_m8403_gshared (List_1_t194 * __this, int32_t ___index, Object_t * ___item, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NullReferenceException_t319_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(2); InvalidCastException_t1333_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(506); ArgumentException_t320_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(3); _stringLiteral2673 = il2cpp_codegen_string_literal_from_index(2673); s_Il2CppMethodIntialized = true; } Exception_t74 * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t74 * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); int32_t __leave_target = 0; NO_UNUSED_WARNING (__leave_target); { int32_t L_0 = ___index; NullCheck((List_1_t194 *)__this); (( void (*) (List_1_t194 *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)((List_1_t194 *)__this, (int32_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); } IL_0007: try { // begin try (depth: 1) { int32_t L_1 = ___index; Object_t * L_2 = ___item; NullCheck((List_1_t194 *)__this); VirtActionInvoker2< int32_t, Object_t * >::Invoke(26 /* System.Void System.Collections.Generic.List`1<System.Object>::Insert(System.Int32,T) */, (List_1_t194 *)__this, (int32_t)L_1, (Object_t *)((Object_t *)Castclass(L_2, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)))); goto IL_0035; } IL_0019: { ; // IL_0019: leave IL_002a } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __exception_local = (Exception_t74 *)e.ex; if(il2cpp_codegen_class_is_assignable_from (NullReferenceException_t319_il2cpp_TypeInfo_var, e.ex->object.klass)) goto CATCH_001e; if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t1333_il2cpp_TypeInfo_var, e.ex->object.klass)) goto CATCH_0024; throw e; } CATCH_001e: { // begin catch(System.NullReferenceException) goto IL_002a; } // end catch (depth: 1) CATCH_0024: { // begin catch(System.InvalidCastException) goto IL_002a; } // end catch (depth: 1) IL_002a: { ArgumentException_t320 * L_3 = (ArgumentException_t320 *)il2cpp_codegen_object_new (ArgumentException_t320_il2cpp_TypeInfo_var); ArgumentException__ctor_m1183(L_3, (String_t*)_stringLiteral2673, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_3); } IL_0035: { return; } } // System.Void System.Collections.Generic.List`1<System.Object>::System.Collections.IList.Remove(System.Object) extern TypeInfo* NullReferenceException_t319_il2cpp_TypeInfo_var; extern TypeInfo* InvalidCastException_t1333_il2cpp_TypeInfo_var; extern "C" void List_1_System_Collections_IList_Remove_m8405_gshared (List_1_t194 * __this, Object_t * ___item, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NullReferenceException_t319_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(2); InvalidCastException_t1333_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(506); s_Il2CppMethodIntialized = true; } Exception_t74 * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t74 * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); int32_t __leave_target = 0; NO_UNUSED_WARNING (__leave_target); IL_0000: try { // begin try (depth: 1) { Object_t * L_0 = ___item; NullCheck((List_1_t194 *)__this); VirtFuncInvoker1< bool, Object_t * >::Invoke(23 /* System.Boolean System.Collections.Generic.List`1<System.Object>::Remove(T) */, (List_1_t194 *)__this, (Object_t *)((Object_t *)Castclass(L_0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)))); goto IL_0023; } IL_0012: { ; // IL_0012: leave IL_0023 } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __exception_local = (Exception_t74 *)e.ex; if(il2cpp_codegen_class_is_assignable_from (NullReferenceException_t319_il2cpp_TypeInfo_var, e.ex->object.klass)) goto CATCH_0017; if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t1333_il2cpp_TypeInfo_var, e.ex->object.klass)) goto CATCH_001d; throw e; } CATCH_0017: { // begin catch(System.NullReferenceException) goto IL_0023; } // end catch (depth: 1) CATCH_001d: { // begin catch(System.InvalidCastException) goto IL_0023; } // end catch (depth: 1) IL_0023: { return; } } // System.Boolean System.Collections.Generic.List`1<System.Object>::System.Collections.Generic.ICollection<T>.get_IsReadOnly() extern "C" bool List_1_System_Collections_Generic_ICollectionU3CTU3E_get_IsReadOnly_m8407_gshared (List_1_t194 * __this, const MethodInfo* method) { { return 0; } } // System.Object System.Collections.Generic.List`1<System.Object>::System.Collections.ICollection.get_SyncRoot() extern "C" Object_t * List_1_System_Collections_ICollection_get_SyncRoot_m8409_gshared (List_1_t194 * __this, const MethodInfo* method) { { return __this; } } // System.Object System.Collections.Generic.List`1<System.Object>::System.Collections.IList.get_Item(System.Int32) extern "C" Object_t * List_1_System_Collections_IList_get_Item_m8411_gshared (List_1_t194 * __this, int32_t ___index, const MethodInfo* method) { { int32_t L_0 = ___index; NullCheck((List_1_t194 *)__this); Object_t * L_1 = (Object_t *)VirtFuncInvoker1< Object_t *, int32_t >::Invoke(28 /* T System.Collections.Generic.List`1<System.Object>::get_Item(System.Int32) */, (List_1_t194 *)__this, (int32_t)L_0); return L_1; } } // System.Void System.Collections.Generic.List`1<System.Object>::System.Collections.IList.set_Item(System.Int32,System.Object) extern TypeInfo* NullReferenceException_t319_il2cpp_TypeInfo_var; extern TypeInfo* InvalidCastException_t1333_il2cpp_TypeInfo_var; extern TypeInfo* ArgumentException_t320_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral462; extern "C" void List_1_System_Collections_IList_set_Item_m8413_gshared (List_1_t194 * __this, int32_t ___index, Object_t * ___value, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NullReferenceException_t319_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(2); InvalidCastException_t1333_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(506); ArgumentException_t320_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(3); _stringLiteral462 = il2cpp_codegen_string_literal_from_index(462); s_Il2CppMethodIntialized = true; } Exception_t74 * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t74 * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); int32_t __leave_target = 0; NO_UNUSED_WARNING (__leave_target); IL_0000: try { // begin try (depth: 1) { int32_t L_0 = ___index; Object_t * L_1 = ___value; NullCheck((List_1_t194 *)__this); VirtActionInvoker2< int32_t, Object_t * >::Invoke(29 /* System.Void System.Collections.Generic.List`1<System.Object>::set_Item(System.Int32,T) */, (List_1_t194 *)__this, (int32_t)L_0, (Object_t *)((Object_t *)Castclass(L_1, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)))); goto IL_002e; } IL_0012: { ; // IL_0012: leave IL_0023 } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __exception_local = (Exception_t74 *)e.ex; if(il2cpp_codegen_class_is_assignable_from (NullReferenceException_t319_il2cpp_TypeInfo_var, e.ex->object.klass)) goto CATCH_0017; if(il2cpp_codegen_class_is_assignable_from (InvalidCastException_t1333_il2cpp_TypeInfo_var, e.ex->object.klass)) goto CATCH_001d; throw e; } CATCH_0017: { // begin catch(System.NullReferenceException) goto IL_0023; } // end catch (depth: 1) CATCH_001d: { // begin catch(System.InvalidCastException) goto IL_0023; } // end catch (depth: 1) IL_0023: { ArgumentException_t320 * L_2 = (ArgumentException_t320 *)il2cpp_codegen_object_new (ArgumentException_t320_il2cpp_TypeInfo_var); ArgumentException__ctor_m1183(L_2, (String_t*)_stringLiteral462, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_2); } IL_002e: { return; } } // System.Void System.Collections.Generic.List`1<System.Object>::Add(T) extern "C" void List_1_Add_m8415_gshared (List_1_t194 * __this, Object_t * ___item, const MethodInfo* method) { int32_t V_0 = 0; { int32_t L_0 = (int32_t)(__this->____size_1); ObjectU5BU5D_t207* L_1 = (ObjectU5BU5D_t207*)(__this->____items_0); NullCheck(L_1); if ((!(((uint32_t)L_0) == ((uint32_t)(((int32_t)(((Array_t *)L_1)->max_length))))))) { goto IL_001a; } } { NullCheck((List_1_t194 *)__this); (( void (*) (List_1_t194 *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 13)->method)((List_1_t194 *)__this, (int32_t)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 13)); } IL_001a: { ObjectU5BU5D_t207* L_2 = (ObjectU5BU5D_t207*)(__this->____items_0); int32_t L_3 = (int32_t)(__this->____size_1); int32_t L_4 = (int32_t)L_3; V_0 = (int32_t)L_4; __this->____size_1 = ((int32_t)((int32_t)L_4+(int32_t)1)); int32_t L_5 = V_0; Object_t * L_6 = ___item; NullCheck(L_2); IL2CPP_ARRAY_BOUNDS_CHECK(L_2, L_5); *((Object_t **)(Object_t **)SZArrayLdElema(L_2, L_5)) = (Object_t *)L_6; int32_t L_7 = (int32_t)(__this->____version_2); __this->____version_2 = ((int32_t)((int32_t)L_7+(int32_t)1)); return; } } // System.Void System.Collections.Generic.List`1<System.Object>::GrowIfNeeded(System.Int32) extern "C" void List_1_GrowIfNeeded_m8417_gshared (List_1_t194 * __this, int32_t ___newCount, const MethodInfo* method) { int32_t V_0 = 0; { int32_t L_0 = (int32_t)(__this->____size_1); int32_t L_1 = ___newCount; V_0 = (int32_t)((int32_t)((int32_t)L_0+(int32_t)L_1)); int32_t L_2 = V_0; ObjectU5BU5D_t207* L_3 = (ObjectU5BU5D_t207*)(__this->____items_0); NullCheck(L_3); if ((((int32_t)L_2) <= ((int32_t)(((int32_t)(((Array_t *)L_3)->max_length)))))) { goto IL_0031; } } { NullCheck((List_1_t194 *)__this); int32_t L_4 = (( int32_t (*) (List_1_t194 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 14)->method)((List_1_t194 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 14)); int32_t L_5 = Math_Max_m3319(NULL /*static, unused*/, (int32_t)((int32_t)((int32_t)L_4*(int32_t)2)), (int32_t)4, /*hidden argument*/NULL); int32_t L_6 = V_0; int32_t L_7 = Math_Max_m3319(NULL /*static, unused*/, (int32_t)L_5, (int32_t)L_6, /*hidden argument*/NULL); NullCheck((List_1_t194 *)__this); (( void (*) (List_1_t194 *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 15)->method)((List_1_t194 *)__this, (int32_t)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 15)); } IL_0031: { return; } } // System.Void System.Collections.Generic.List`1<System.Object>::Clear() extern "C" void List_1_Clear_m8419_gshared (List_1_t194 * __this, const MethodInfo* method) { { ObjectU5BU5D_t207* L_0 = (ObjectU5BU5D_t207*)(__this->____items_0); ObjectU5BU5D_t207* L_1 = (ObjectU5BU5D_t207*)(__this->____items_0); NullCheck(L_1); Array_Clear_m2479(NULL /*static, unused*/, (Array_t *)(Array_t *)L_0, (int32_t)0, (int32_t)(((int32_t)(((Array_t *)L_1)->max_length))), /*hidden argument*/NULL); __this->____size_1 = 0; int32_t L_2 = (int32_t)(__this->____version_2); __this->____version_2 = ((int32_t)((int32_t)L_2+(int32_t)1)); return; } } // System.Boolean System.Collections.Generic.List`1<System.Object>::Contains(T) extern "C" bool List_1_Contains_m8421_gshared (List_1_t194 * __this, Object_t * ___item, const MethodInfo* method) { { ObjectU5BU5D_t207* L_0 = (ObjectU5BU5D_t207*)(__this->____items_0); Object_t * L_1 = ___item; int32_t L_2 = (int32_t)(__this->____size_1); int32_t L_3 = (( int32_t (*) (Object_t * /* static, unused */, ObjectU5BU5D_t207*, Object_t *, int32_t, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 16)->method)(NULL /*static, unused*/, (ObjectU5BU5D_t207*)L_0, (Object_t *)L_1, (int32_t)0, (int32_t)L_2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 16)); return ((((int32_t)((((int32_t)L_3) == ((int32_t)(-1)))? 1 : 0)) == ((int32_t)0))? 1 : 0); } } // System.Void System.Collections.Generic.List`1<System.Object>::CopyTo(T[],System.Int32) extern "C" void List_1_CopyTo_m8423_gshared (List_1_t194 * __this, ObjectU5BU5D_t207* ___array, int32_t ___arrayIndex, const MethodInfo* method) { { ObjectU5BU5D_t207* L_0 = (ObjectU5BU5D_t207*)(__this->____items_0); ObjectU5BU5D_t207* L_1 = ___array; int32_t L_2 = ___arrayIndex; int32_t L_3 = (int32_t)(__this->____size_1); Array_Copy_m4087(NULL /*static, unused*/, (Array_t *)(Array_t *)L_0, (int32_t)0, (Array_t *)(Array_t *)L_1, (int32_t)L_2, (int32_t)L_3, /*hidden argument*/NULL); return; } } // System.Collections.Generic.List`1/Enumerator<T> System.Collections.Generic.List`1<System.Object>::GetEnumerator() extern "C" Enumerator_t1457 List_1_GetEnumerator_m8424_gshared (List_1_t194 * __this, const MethodInfo* method) { { Enumerator_t1457 L_0 = {0}; (( void (*) (Enumerator_t1457 *, List_1_t194 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 17)->method)(&L_0, (List_1_t194 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 17)); return L_0; } } // System.Int32 System.Collections.Generic.List`1<System.Object>::IndexOf(T) extern "C" int32_t List_1_IndexOf_m8426_gshared (List_1_t194 * __this, Object_t * ___item, const MethodInfo* method) { { ObjectU5BU5D_t207* L_0 = (ObjectU5BU5D_t207*)(__this->____items_0); Object_t * L_1 = ___item; int32_t L_2 = (int32_t)(__this->____size_1); int32_t L_3 = (( int32_t (*) (Object_t * /* static, unused */, ObjectU5BU5D_t207*, Object_t *, int32_t, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 16)->method)(NULL /*static, unused*/, (ObjectU5BU5D_t207*)L_0, (Object_t *)L_1, (int32_t)0, (int32_t)L_2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 16)); return L_3; } } // System.Void System.Collections.Generic.List`1<System.Object>::Shift(System.Int32,System.Int32) extern "C" void List_1_Shift_m8428_gshared (List_1_t194 * __this, int32_t ___start, int32_t ___delta, const MethodInfo* method) { { int32_t L_0 = ___delta; if ((((int32_t)L_0) >= ((int32_t)0))) { goto IL_000c; } } { int32_t L_1 = ___start; int32_t L_2 = ___delta; ___start = (int32_t)((int32_t)((int32_t)L_1-(int32_t)L_2)); } IL_000c: { int32_t L_3 = ___start; int32_t L_4 = (int32_t)(__this->____size_1); if ((((int32_t)L_3) >= ((int32_t)L_4))) { goto IL_0035; } } { ObjectU5BU5D_t207* L_5 = (ObjectU5BU5D_t207*)(__this->____items_0); int32_t L_6 = ___start; ObjectU5BU5D_t207* L_7 = (ObjectU5BU5D_t207*)(__this->____items_0); int32_t L_8 = ___start; int32_t L_9 = ___delta; int32_t L_10 = (int32_t)(__this->____size_1); int32_t L_11 = ___start; Array_Copy_m4087(NULL /*static, unused*/, (Array_t *)(Array_t *)L_5, (int32_t)L_6, (Array_t *)(Array_t *)L_7, (int32_t)((int32_t)((int32_t)L_8+(int32_t)L_9)), (int32_t)((int32_t)((int32_t)L_10-(int32_t)L_11)), /*hidden argument*/NULL); } IL_0035: { int32_t L_12 = (int32_t)(__this->____size_1); int32_t L_13 = ___delta; __this->____size_1 = ((int32_t)((int32_t)L_12+(int32_t)L_13)); int32_t L_14 = ___delta; if ((((int32_t)L_14) >= ((int32_t)0))) { goto IL_005d; } } { ObjectU5BU5D_t207* L_15 = (ObjectU5BU5D_t207*)(__this->____items_0); int32_t L_16 = (int32_t)(__this->____size_1); int32_t L_17 = ___delta; Array_Clear_m2479(NULL /*static, unused*/, (Array_t *)(Array_t *)L_15, (int32_t)L_16, (int32_t)((-L_17)), /*hidden argument*/NULL); } IL_005d: { return; } } // System.Void System.Collections.Generic.List`1<System.Object>::CheckIndex(System.Int32) extern TypeInfo* ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral264; extern "C" void List_1_CheckIndex_m8430_gshared (List_1_t194 * __this, int32_t ___index, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(147); _stringLiteral264 = il2cpp_codegen_string_literal_from_index(264); s_Il2CppMethodIntialized = true; } { int32_t L_0 = ___index; if ((((int32_t)L_0) < ((int32_t)0))) { goto IL_0013; } } { int32_t L_1 = ___index; int32_t L_2 = (int32_t)(__this->____size_1); if ((!(((uint32_t)L_1) > ((uint32_t)L_2)))) { goto IL_001e; } } IL_0013: { ArgumentOutOfRangeException_t350 * L_3 = (ArgumentOutOfRangeException_t350 *)il2cpp_codegen_object_new (ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var); ArgumentOutOfRangeException__ctor_m2260(L_3, (String_t*)_stringLiteral264, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_3); } IL_001e: { return; } } // System.Void System.Collections.Generic.List`1<System.Object>::Insert(System.Int32,T) extern "C" void List_1_Insert_m8432_gshared (List_1_t194 * __this, int32_t ___index, Object_t * ___item, const MethodInfo* method) { { int32_t L_0 = ___index; NullCheck((List_1_t194 *)__this); (( void (*) (List_1_t194 *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)((List_1_t194 *)__this, (int32_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); int32_t L_1 = (int32_t)(__this->____size_1); ObjectU5BU5D_t207* L_2 = (ObjectU5BU5D_t207*)(__this->____items_0); NullCheck(L_2); if ((!(((uint32_t)L_1) == ((uint32_t)(((int32_t)(((Array_t *)L_2)->max_length))))))) { goto IL_0021; } } { NullCheck((List_1_t194 *)__this); (( void (*) (List_1_t194 *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 13)->method)((List_1_t194 *)__this, (int32_t)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 13)); } IL_0021: { int32_t L_3 = ___index; NullCheck((List_1_t194 *)__this); (( void (*) (List_1_t194 *, int32_t, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 18)->method)((List_1_t194 *)__this, (int32_t)L_3, (int32_t)1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 18)); ObjectU5BU5D_t207* L_4 = (ObjectU5BU5D_t207*)(__this->____items_0); int32_t L_5 = ___index; Object_t * L_6 = ___item; NullCheck(L_4); IL2CPP_ARRAY_BOUNDS_CHECK(L_4, L_5); *((Object_t **)(Object_t **)SZArrayLdElema(L_4, L_5)) = (Object_t *)L_6; int32_t L_7 = (int32_t)(__this->____version_2); __this->____version_2 = ((int32_t)((int32_t)L_7+(int32_t)1)); return; } } // System.Boolean System.Collections.Generic.List`1<System.Object>::Remove(T) extern "C" bool List_1_Remove_m8434_gshared (List_1_t194 * __this, Object_t * ___item, const MethodInfo* method) { int32_t V_0 = 0; { Object_t * L_0 = ___item; NullCheck((List_1_t194 *)__this); int32_t L_1 = (int32_t)VirtFuncInvoker1< int32_t, Object_t * >::Invoke(25 /* System.Int32 System.Collections.Generic.List`1<System.Object>::IndexOf(T) */, (List_1_t194 *)__this, (Object_t *)L_0); V_0 = (int32_t)L_1; int32_t L_2 = V_0; if ((((int32_t)L_2) == ((int32_t)(-1)))) { goto IL_0016; } } { int32_t L_3 = V_0; NullCheck((List_1_t194 *)__this); VirtActionInvoker1< int32_t >::Invoke(27 /* System.Void System.Collections.Generic.List`1<System.Object>::RemoveAt(System.Int32) */, (List_1_t194 *)__this, (int32_t)L_3); } IL_0016: { int32_t L_4 = V_0; return ((((int32_t)((((int32_t)L_4) == ((int32_t)(-1)))? 1 : 0)) == ((int32_t)0))? 1 : 0); } } // System.Void System.Collections.Generic.List`1<System.Object>::RemoveAt(System.Int32) extern TypeInfo* ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral264; extern "C" void List_1_RemoveAt_m8436_gshared (List_1_t194 * __this, int32_t ___index, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(147); _stringLiteral264 = il2cpp_codegen_string_literal_from_index(264); s_Il2CppMethodIntialized = true; } { int32_t L_0 = ___index; if ((((int32_t)L_0) < ((int32_t)0))) { goto IL_0013; } } { int32_t L_1 = ___index; int32_t L_2 = (int32_t)(__this->____size_1); if ((!(((uint32_t)L_1) >= ((uint32_t)L_2)))) { goto IL_001e; } } IL_0013: { ArgumentOutOfRangeException_t350 * L_3 = (ArgumentOutOfRangeException_t350 *)il2cpp_codegen_object_new (ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var); ArgumentOutOfRangeException__ctor_m2260(L_3, (String_t*)_stringLiteral264, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_3); } IL_001e: { int32_t L_4 = ___index; NullCheck((List_1_t194 *)__this); (( void (*) (List_1_t194 *, int32_t, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 18)->method)((List_1_t194 *)__this, (int32_t)L_4, (int32_t)(-1), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 18)); ObjectU5BU5D_t207* L_5 = (ObjectU5BU5D_t207*)(__this->____items_0); int32_t L_6 = (int32_t)(__this->____size_1); Array_Clear_m2479(NULL /*static, unused*/, (Array_t *)(Array_t *)L_5, (int32_t)L_6, (int32_t)1, /*hidden argument*/NULL); int32_t L_7 = (int32_t)(__this->____version_2); __this->____version_2 = ((int32_t)((int32_t)L_7+(int32_t)1)); return; } } // T[] System.Collections.Generic.List`1<System.Object>::ToArray() extern "C" ObjectU5BU5D_t207* List_1_ToArray_m8438_gshared (List_1_t194 * __this, const MethodInfo* method) { ObjectU5BU5D_t207* V_0 = {0}; { int32_t L_0 = (int32_t)(__this->____size_1); V_0 = (ObjectU5BU5D_t207*)((ObjectU5BU5D_t207*)SZArrayNew(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1), L_0)); ObjectU5BU5D_t207* L_1 = (ObjectU5BU5D_t207*)(__this->____items_0); ObjectU5BU5D_t207* L_2 = V_0; int32_t L_3 = (int32_t)(__this->____size_1); Array_Copy_m2413(NULL /*static, unused*/, (Array_t *)(Array_t *)L_1, (Array_t *)(Array_t *)L_2, (int32_t)L_3, /*hidden argument*/NULL); ObjectU5BU5D_t207* L_4 = V_0; return L_4; } } // System.Int32 System.Collections.Generic.List`1<System.Object>::get_Capacity() extern "C" int32_t List_1_get_Capacity_m8440_gshared (List_1_t194 * __this, const MethodInfo* method) { { ObjectU5BU5D_t207* L_0 = (ObjectU5BU5D_t207*)(__this->____items_0); NullCheck(L_0); return (((int32_t)(((Array_t *)L_0)->max_length))); } } // System.Void System.Collections.Generic.List`1<System.Object>::set_Capacity(System.Int32) extern TypeInfo* ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var; extern "C" void List_1_set_Capacity_m8442_gshared (List_1_t194 * __this, int32_t ___value, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(147); s_Il2CppMethodIntialized = true; } { int32_t L_0 = ___value; int32_t L_1 = (int32_t)(__this->____size_1); if ((!(((uint32_t)L_0) < ((uint32_t)L_1)))) { goto IL_0012; } } { ArgumentOutOfRangeException_t350 * L_2 = (ArgumentOutOfRangeException_t350 *)il2cpp_codegen_object_new (ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var); ArgumentOutOfRangeException__ctor_m2395(L_2, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_2); } IL_0012: { ObjectU5BU5D_t207** L_3 = (ObjectU5BU5D_t207**)&(__this->____items_0); int32_t L_4 = ___value; (( void (*) (Object_t * /* static, unused */, ObjectU5BU5D_t207**, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 20)->method)(NULL /*static, unused*/, (ObjectU5BU5D_t207**)L_3, (int32_t)L_4, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 20)); return; } } // System.Int32 System.Collections.Generic.List`1<System.Object>::get_Count() extern "C" int32_t List_1_get_Count_m8444_gshared (List_1_t194 * __this, const MethodInfo* method) { { int32_t L_0 = (int32_t)(__this->____size_1); return L_0; } } // T System.Collections.Generic.List`1<System.Object>::get_Item(System.Int32) extern TypeInfo* ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral264; extern "C" Object_t * List_1_get_Item_m8446_gshared (List_1_t194 * __this, int32_t ___index, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(147); _stringLiteral264 = il2cpp_codegen_string_literal_from_index(264); s_Il2CppMethodIntialized = true; } { int32_t L_0 = ___index; int32_t L_1 = (int32_t)(__this->____size_1); if ((!(((uint32_t)L_0) >= ((uint32_t)L_1)))) { goto IL_0017; } } { ArgumentOutOfRangeException_t350 * L_2 = (ArgumentOutOfRangeException_t350 *)il2cpp_codegen_object_new (ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var); ArgumentOutOfRangeException__ctor_m2260(L_2, (String_t*)_stringLiteral264, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_2); } IL_0017: { ObjectU5BU5D_t207* L_3 = (ObjectU5BU5D_t207*)(__this->____items_0); int32_t L_4 = ___index; NullCheck(L_3); IL2CPP_ARRAY_BOUNDS_CHECK(L_3, L_4); int32_t L_5 = L_4; return (*(Object_t **)(Object_t **)SZArrayLdElema(L_3, L_5)); } } // System.Void System.Collections.Generic.List`1<System.Object>::set_Item(System.Int32,T) extern TypeInfo* ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral264; extern "C" void List_1_set_Item_m8448_gshared (List_1_t194 * __this, int32_t ___index, Object_t * ___value, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(147); _stringLiteral264 = il2cpp_codegen_string_literal_from_index(264); s_Il2CppMethodIntialized = true; } { int32_t L_0 = ___index; NullCheck((List_1_t194 *)__this); (( void (*) (List_1_t194 *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)((List_1_t194 *)__this, (int32_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); int32_t L_1 = ___index; int32_t L_2 = (int32_t)(__this->____size_1); if ((!(((uint32_t)L_1) == ((uint32_t)L_2)))) { goto IL_001e; } } { ArgumentOutOfRangeException_t350 * L_3 = (ArgumentOutOfRangeException_t350 *)il2cpp_codegen_object_new (ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var); ArgumentOutOfRangeException__ctor_m2260(L_3, (String_t*)_stringLiteral264, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_3); } IL_001e: { ObjectU5BU5D_t207* L_4 = (ObjectU5BU5D_t207*)(__this->____items_0); int32_t L_5 = ___index; Object_t * L_6 = ___value; NullCheck(L_4); IL2CPP_ARRAY_BOUNDS_CHECK(L_4, L_5); *((Object_t **)(Object_t **)SZArrayLdElema(L_4, L_5)) = (Object_t *)L_6; return; } } #ifndef _MSC_VER #else #endif // System.Type #include "mscorlib_System_Type.h" // System.ObjectDisposedException #include "mscorlib_System_ObjectDisposedException.h" // System.Type #include "mscorlib_System_TypeMethodDeclarations.h" // System.ObjectDisposedException #include "mscorlib_System_ObjectDisposedExceptionMethodDeclarations.h" // System.Void System.Collections.Generic.List`1/Enumerator<System.Object>::.ctor(System.Collections.Generic.List`1<T>) extern "C" void Enumerator__ctor_m8449_gshared (Enumerator_t1457 * __this, List_1_t194 * ___l, const MethodInfo* method) { { List_1_t194 * L_0 = ___l; __this->___l_0 = L_0; List_1_t194 * L_1 = ___l; NullCheck(L_1); int32_t L_2 = (int32_t)(L_1->____version_2); __this->___ver_2 = L_2; return; } } // System.Object System.Collections.Generic.List`1/Enumerator<System.Object>::System.Collections.IEnumerator.get_Current() extern TypeInfo* InvalidOperationException_t580_il2cpp_TypeInfo_var; extern "C" Object_t * Enumerator_System_Collections_IEnumerator_get_Current_m8450_gshared (Enumerator_t1457 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { InvalidOperationException_t580_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(236); s_Il2CppMethodIntialized = true; } { (( void (*) (Enumerator_t1457 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Enumerator_t1457 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); int32_t L_0 = (int32_t)(__this->___next_1); if ((((int32_t)L_0) > ((int32_t)0))) { goto IL_0018; } } { InvalidOperationException_t580 * L_1 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2259(L_1, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0018: { Object_t * L_2 = (Object_t *)(__this->___current_3); return L_2; } } // System.Void System.Collections.Generic.List`1/Enumerator<System.Object>::Dispose() extern "C" void Enumerator_Dispose_m8451_gshared (Enumerator_t1457 * __this, const MethodInfo* method) { { __this->___l_0 = (List_1_t194 *)NULL; return; } } // System.Void System.Collections.Generic.List`1/Enumerator<System.Object>::VerifyState() extern TypeInfo* ObjectDisposedException_t625_il2cpp_TypeInfo_var; extern TypeInfo* InvalidOperationException_t580_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2674; extern "C" void Enumerator_VerifyState_m8452_gshared (Enumerator_t1457 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ObjectDisposedException_t625_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(396); InvalidOperationException_t580_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(236); _stringLiteral2674 = il2cpp_codegen_string_literal_from_index(2674); s_Il2CppMethodIntialized = true; } { List_1_t194 * L_0 = (List_1_t194 *)(__this->___l_0); if (L_0) { goto IL_0026; } } { Enumerator_t1457 L_1 = (*(Enumerator_t1457 *)__this); Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), &L_1); NullCheck((Object_t *)L_2); Type_t * L_3 = Object_GetType_m1206((Object_t *)L_2, /*hidden argument*/NULL); NullCheck((Type_t *)L_3); String_t* L_4 = (String_t*)VirtFuncInvoker0< String_t* >::Invoke(18 /* System.String System.Type::get_FullName() */, (Type_t *)L_3); ObjectDisposedException_t625 * L_5 = (ObjectDisposedException_t625 *)il2cpp_codegen_object_new (ObjectDisposedException_t625_il2cpp_TypeInfo_var); ObjectDisposedException__ctor_m2480(L_5, (String_t*)L_4, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_5); } IL_0026: { int32_t L_6 = (int32_t)(__this->___ver_2); List_1_t194 * L_7 = (List_1_t194 *)(__this->___l_0); NullCheck(L_7); int32_t L_8 = (int32_t)(L_7->____version_2); if ((((int32_t)L_6) == ((int32_t)L_8))) { goto IL_0047; } } { InvalidOperationException_t580 * L_9 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_9, (String_t*)_stringLiteral2674, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_9); } IL_0047: { return; } } // System.Boolean System.Collections.Generic.List`1/Enumerator<System.Object>::MoveNext() extern "C" bool Enumerator_MoveNext_m8453_gshared (Enumerator_t1457 * __this, const MethodInfo* method) { int32_t V_0 = 0; { (( void (*) (Enumerator_t1457 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Enumerator_t1457 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); int32_t L_0 = (int32_t)(__this->___next_1); if ((((int32_t)L_0) >= ((int32_t)0))) { goto IL_0014; } } { return 0; } IL_0014: { int32_t L_1 = (int32_t)(__this->___next_1); List_1_t194 * L_2 = (List_1_t194 *)(__this->___l_0); NullCheck(L_2); int32_t L_3 = (int32_t)(L_2->____size_1); if ((((int32_t)L_1) >= ((int32_t)L_3))) { goto IL_0053; } } { List_1_t194 * L_4 = (List_1_t194 *)(__this->___l_0); NullCheck(L_4); ObjectU5BU5D_t207* L_5 = (ObjectU5BU5D_t207*)(L_4->____items_0); int32_t L_6 = (int32_t)(__this->___next_1); int32_t L_7 = (int32_t)L_6; V_0 = (int32_t)L_7; __this->___next_1 = ((int32_t)((int32_t)L_7+(int32_t)1)); int32_t L_8 = V_0; NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, L_8); int32_t L_9 = L_8; __this->___current_3 = (*(Object_t **)(Object_t **)SZArrayLdElema(L_5, L_9)); return 1; } IL_0053: { __this->___next_1 = (-1); return 0; } } // T System.Collections.Generic.List`1/Enumerator<System.Object>::get_Current() extern "C" Object_t * Enumerator_get_Current_m8454_gshared (Enumerator_t1457 * __this, const MethodInfo* method) { { Object_t * L_0 = (Object_t *)(__this->___current_3); return L_0; } } // System.Collections.Generic.EqualityComparer`1<System.Object> #include "mscorlib_System_Collections_Generic_EqualityComparer_1_gen.h" #ifndef _MSC_VER #else #endif // System.Collections.Generic.EqualityComparer`1<System.Object> #include "mscorlib_System_Collections_Generic_EqualityComparer_1_genMethodDeclarations.h" // System.RuntimeTypeHandle #include "mscorlib_System_RuntimeTypeHandle.h" // System.Collections.Generic.EqualityComparer`1/DefaultComparer<System.Object> #include "mscorlib_System_Collections_Generic_EqualityComparer_1_Defau.h" // System.Activator #include "mscorlib_System_ActivatorMethodDeclarations.h" // System.Collections.Generic.EqualityComparer`1/DefaultComparer<System.Object> #include "mscorlib_System_Collections_Generic_EqualityComparer_1_DefauMethodDeclarations.h" // System.Void System.Collections.Generic.EqualityComparer`1<System.Object>::.ctor() extern "C" void EqualityComparer_1__ctor_m8455_gshared (EqualityComparer_1_t1458 * __this, const MethodInfo* method) { { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); return; } } // System.Void System.Collections.Generic.EqualityComparer`1<System.Object>::.cctor() extern const Il2CppType* GenericEqualityComparer_1_t2042_0_0_0_var; extern TypeInfo* Type_t_il2cpp_TypeInfo_var; extern TypeInfo* TypeU5BU5D_t203_il2cpp_TypeInfo_var; extern "C" void EqualityComparer_1__cctor_m8456_gshared (Object_t * __this /* static, unused */, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { GenericEqualityComparer_1_t2042_0_0_0_var = il2cpp_codegen_type_from_index(2137); Type_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(160); TypeU5BU5D_t203_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(173); s_Il2CppMethodIntialized = true; } { IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_0 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)), /*hidden argument*/NULL); Type_t * L_1 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)), /*hidden argument*/NULL); NullCheck((Type_t *)L_0); bool L_2 = (bool)VirtFuncInvoker1< bool, Type_t * >::Invoke(40 /* System.Boolean System.Type::IsAssignableFrom(System.Type) */, (Type_t *)L_0, (Type_t *)L_1); if (!L_2) { goto IL_0054; } } { IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_3 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(GenericEqualityComparer_1_t2042_0_0_0_var), /*hidden argument*/NULL); TypeU5BU5D_t203* L_4 = (TypeU5BU5D_t203*)((TypeU5BU5D_t203*)SZArrayNew(TypeU5BU5D_t203_il2cpp_TypeInfo_var, 1)); Type_t * L_5 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)), /*hidden argument*/NULL); NullCheck(L_4); IL2CPP_ARRAY_BOUNDS_CHECK(L_4, 0); ArrayElementTypeCheck (L_4, L_5); *((Type_t **)(Type_t **)SZArrayLdElema(L_4, 0)) = (Type_t *)L_5; NullCheck((Type_t *)L_3); Type_t * L_6 = (Type_t *)VirtFuncInvoker1< Type_t *, TypeU5BU5D_t203* >::Invoke(79 /* System.Type System.Type::MakeGenericType(System.Type[]) */, (Type_t *)L_3, (TypeU5BU5D_t203*)L_4); Object_t * L_7 = Activator_CreateInstance_m7459(NULL /*static, unused*/, (Type_t *)L_6, /*hidden argument*/NULL); ((EqualityComparer_1_t1458_StaticFields*)IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)->static_fields)->____default_0 = ((EqualityComparer_1_t1458 *)Castclass(L_7, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2))); goto IL_005e; } IL_0054: { DefaultComparer_t1460 * L_8 = (DefaultComparer_t1460 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); (( void (*) (DefaultComparer_t1460 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)(L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); ((EqualityComparer_1_t1458_StaticFields*)IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)->static_fields)->____default_0 = L_8; } IL_005e: { return; } } // System.Int32 System.Collections.Generic.EqualityComparer`1<System.Object>::System.Collections.IEqualityComparer.GetHashCode(System.Object) extern "C" int32_t EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m8457_gshared (EqualityComparer_1_t1458 * __this, Object_t * ___obj, const MethodInfo* method) { { Object_t * L_0 = ___obj; NullCheck((EqualityComparer_1_t1458 *)__this); int32_t L_1 = (int32_t)VirtFuncInvoker1< int32_t, Object_t * >::Invoke(8 /* System.Int32 System.Collections.Generic.EqualityComparer`1<System.Object>::GetHashCode(T) */, (EqualityComparer_1_t1458 *)__this, (Object_t *)((Object_t *)Castclass(L_0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)))); return L_1; } } // System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::System.Collections.IEqualityComparer.Equals(System.Object,System.Object) extern "C" bool EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m8458_gshared (EqualityComparer_1_t1458 * __this, Object_t * ___x, Object_t * ___y, const MethodInfo* method) { { Object_t * L_0 = ___x; Object_t * L_1 = ___y; NullCheck((EqualityComparer_1_t1458 *)__this); bool L_2 = (bool)VirtFuncInvoker2< bool, Object_t *, Object_t * >::Invoke(9 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::Equals(T,T) */, (EqualityComparer_1_t1458 *)__this, (Object_t *)((Object_t *)Castclass(L_0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6))), (Object_t *)((Object_t *)Castclass(L_1, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)))); return L_2; } } // System.Collections.Generic.EqualityComparer`1<T> System.Collections.Generic.EqualityComparer`1<System.Object>::get_Default() extern "C" EqualityComparer_1_t1458 * EqualityComparer_1_get_Default_m8459_gshared (Object_t * __this /* static, unused */, const MethodInfo* method) { { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)); EqualityComparer_1_t1458 * L_0 = ((EqualityComparer_1_t1458_StaticFields*)IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)->static_fields)->____default_0; return L_0; } } #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.EqualityComparer`1/DefaultComparer<System.Object>::.ctor() extern "C" void DefaultComparer__ctor_m8465_gshared (DefaultComparer_t1460 * __this, const MethodInfo* method) { { NullCheck((EqualityComparer_1_t1458 *)__this); IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); (( void (*) (EqualityComparer_1_t1458 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((EqualityComparer_1_t1458 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); return; } } // System.Int32 System.Collections.Generic.EqualityComparer`1/DefaultComparer<System.Object>::GetHashCode(T) extern "C" int32_t DefaultComparer_GetHashCode_m8466_gshared (DefaultComparer_t1460 * __this, Object_t * ___obj, const MethodInfo* method) { { Object_t * L_0 = ___obj; if (L_0) { goto IL_000d; } } { return 0; } IL_000d: { NullCheck((Object_t *)(*(&___obj))); int32_t L_1 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(2 /* System.Int32 System.Object::GetHashCode() */, (Object_t *)(*(&___obj))); return L_1; } } // System.Boolean System.Collections.Generic.EqualityComparer`1/DefaultComparer<System.Object>::Equals(T,T) extern "C" bool DefaultComparer_Equals_m8467_gshared (DefaultComparer_t1460 * __this, Object_t * ___x, Object_t * ___y, const MethodInfo* method) { { Object_t * L_0 = ___x; if (L_0) { goto IL_0015; } } { Object_t * L_1 = ___y; return ((((Object_t*)(Object_t *)L_1) == ((Object_t*)(Object_t *)NULL))? 1 : 0); } IL_0015: { Object_t * L_2 = ___y; NullCheck((Object_t *)(*(&___x))); bool L_3 = (bool)VirtFuncInvoker1< bool, Object_t * >::Invoke(0 /* System.Boolean System.Object::Equals(System.Object) */, (Object_t *)(*(&___x)), (Object_t *)L_2); return L_3; } } #ifndef _MSC_VER #else #endif // UnityEngine.SocialPlatforms.GameCenter.GcAchievementData #include "UnityEngine_UnityEngine_SocialPlatforms_GameCenter_GcAchieve_0.h" // System.Array/InternalEnumerator`1<UnityEngine.SocialPlatforms.GameCenter.GcAchievementData> #include "mscorlib_System_Array_InternalEnumerator_1_gen_9.h" #ifndef _MSC_VER #else #endif // System.Array/InternalEnumerator`1<UnityEngine.SocialPlatforms.GameCenter.GcAchievementData> #include "mscorlib_System_Array_InternalEnumerator_1_gen_9MethodDeclarations.h" struct Array_t; // Declaration !!0 System.Array::InternalArray__get_Item<UnityEngine.SocialPlatforms.GameCenter.GcAchievementData>(System.Int32) // !!0 System.Array::InternalArray__get_Item<UnityEngine.SocialPlatforms.GameCenter.GcAchievementData>(System.Int32) extern "C" GcAchievementData_t231 Array_InternalArray__get_Item_TisGcAchievementData_t231_m12121_gshared (Array_t * __this, int32_t p0, const MethodInfo* method); #define Array_InternalArray__get_Item_TisGcAchievementData_t231_m12121(__this, p0, method) (( GcAchievementData_t231 (*) (Array_t *, int32_t, const MethodInfo*))Array_InternalArray__get_Item_TisGcAchievementData_t231_m12121_gshared)(__this, p0, method) // System.Void System.Array/InternalEnumerator`1<UnityEngine.SocialPlatforms.GameCenter.GcAchievementData>::.ctor(System.Array) extern "C" void InternalEnumerator_1__ctor_m8472_gshared (InternalEnumerator_1_t1461 * __this, Array_t * ___array, const MethodInfo* method) { { Array_t * L_0 = ___array; __this->___array_0 = L_0; __this->___idx_1 = ((int32_t)-2); return; } } // System.Object System.Array/InternalEnumerator`1<UnityEngine.SocialPlatforms.GameCenter.GcAchievementData>::System.Collections.IEnumerator.get_Current() extern "C" Object_t * InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m8473_gshared (InternalEnumerator_1_t1461 * __this, const MethodInfo* method) { { GcAchievementData_t231 L_0 = (( GcAchievementData_t231 (*) (InternalEnumerator_1_t1461 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((InternalEnumerator_1_t1461 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); GcAchievementData_t231 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1), &L_1); return L_2; } } // System.Void System.Array/InternalEnumerator`1<UnityEngine.SocialPlatforms.GameCenter.GcAchievementData>::Dispose() extern "C" void InternalEnumerator_1_Dispose_m8474_gshared (InternalEnumerator_1_t1461 * __this, const MethodInfo* method) { { __this->___idx_1 = ((int32_t)-2); return; } } // System.Boolean System.Array/InternalEnumerator`1<UnityEngine.SocialPlatforms.GameCenter.GcAchievementData>::MoveNext() extern "C" bool InternalEnumerator_1_MoveNext_m8475_gshared (InternalEnumerator_1_t1461 * __this, const MethodInfo* method) { int32_t V_0 = 0; int32_t G_B5_0 = 0; { int32_t L_0 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_0) == ((uint32_t)((int32_t)-2))))) { goto IL_001e; } } { Array_t * L_1 = (Array_t *)(__this->___array_0); NullCheck((Array_t *)L_1); int32_t L_2 = Array_get_Length_m2256((Array_t *)L_1, /*hidden argument*/NULL); __this->___idx_1 = L_2; } IL_001e: { int32_t L_3 = (int32_t)(__this->___idx_1); if ((((int32_t)L_3) == ((int32_t)(-1)))) { goto IL_0043; } } { int32_t L_4 = (int32_t)(__this->___idx_1); int32_t L_5 = (int32_t)((int32_t)((int32_t)L_4-(int32_t)1)); V_0 = (int32_t)L_5; __this->___idx_1 = L_5; int32_t L_6 = V_0; G_B5_0 = ((((int32_t)((((int32_t)L_6) == ((int32_t)(-1)))? 1 : 0)) == ((int32_t)0))? 1 : 0); goto IL_0044; } IL_0043: { G_B5_0 = 0; } IL_0044: { return G_B5_0; } } // T System.Array/InternalEnumerator`1<UnityEngine.SocialPlatforms.GameCenter.GcAchievementData>::get_Current() extern TypeInfo* InvalidOperationException_t580_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2671; extern Il2CppCodeGenString* _stringLiteral2672; extern "C" GcAchievementData_t231 InternalEnumerator_1_get_Current_m8476_gshared (InternalEnumerator_1_t1461 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { InvalidOperationException_t580_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(236); _stringLiteral2671 = il2cpp_codegen_string_literal_from_index(2671); _stringLiteral2672 = il2cpp_codegen_string_literal_from_index(2672); s_Il2CppMethodIntialized = true; } { int32_t L_0 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_0) == ((uint32_t)((int32_t)-2))))) { goto IL_0018; } } { InvalidOperationException_t580 * L_1 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_1, (String_t*)_stringLiteral2671, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0018: { int32_t L_2 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_2) == ((uint32_t)(-1))))) { goto IL_002f; } } { InvalidOperationException_t580 * L_3 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_3, (String_t*)_stringLiteral2672, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_3); } IL_002f: { Array_t * L_4 = (Array_t *)(__this->___array_0); Array_t * L_5 = (Array_t *)(__this->___array_0); NullCheck((Array_t *)L_5); int32_t L_6 = Array_get_Length_m2256((Array_t *)L_5, /*hidden argument*/NULL); int32_t L_7 = (int32_t)(__this->___idx_1); NullCheck((Array_t *)L_4); GcAchievementData_t231 L_8 = (( GcAchievementData_t231 (*) (Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((Array_t *)L_4, (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_6-(int32_t)1))-(int32_t)L_7)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); return L_8; } } #ifndef _MSC_VER #else #endif #include "UnityEngine_ArrayTypes.h" #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif // UnityEngine.SocialPlatforms.GameCenter.GcScoreData #include "UnityEngine_UnityEngine_SocialPlatforms_GameCenter_GcScoreDa.h" // System.Array/InternalEnumerator`1<UnityEngine.SocialPlatforms.GameCenter.GcScoreData> #include "mscorlib_System_Array_InternalEnumerator_1_gen_11.h" #ifndef _MSC_VER #else #endif // System.Array/InternalEnumerator`1<UnityEngine.SocialPlatforms.GameCenter.GcScoreData> #include "mscorlib_System_Array_InternalEnumerator_1_gen_11MethodDeclarations.h" struct Array_t; // Declaration !!0 System.Array::InternalArray__get_Item<UnityEngine.SocialPlatforms.GameCenter.GcScoreData>(System.Int32) // !!0 System.Array::InternalArray__get_Item<UnityEngine.SocialPlatforms.GameCenter.GcScoreData>(System.Int32) extern "C" GcScoreData_t232 Array_InternalArray__get_Item_TisGcScoreData_t232_m12132_gshared (Array_t * __this, int32_t p0, const MethodInfo* method); #define Array_InternalArray__get_Item_TisGcScoreData_t232_m12132(__this, p0, method) (( GcScoreData_t232 (*) (Array_t *, int32_t, const MethodInfo*))Array_InternalArray__get_Item_TisGcScoreData_t232_m12132_gshared)(__this, p0, method) // System.Void System.Array/InternalEnumerator`1<UnityEngine.SocialPlatforms.GameCenter.GcScoreData>::.ctor(System.Array) extern "C" void InternalEnumerator_1__ctor_m8482_gshared (InternalEnumerator_1_t1463 * __this, Array_t * ___array, const MethodInfo* method) { { Array_t * L_0 = ___array; __this->___array_0 = L_0; __this->___idx_1 = ((int32_t)-2); return; } } // System.Object System.Array/InternalEnumerator`1<UnityEngine.SocialPlatforms.GameCenter.GcScoreData>::System.Collections.IEnumerator.get_Current() extern "C" Object_t * InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m8483_gshared (InternalEnumerator_1_t1463 * __this, const MethodInfo* method) { { GcScoreData_t232 L_0 = (( GcScoreData_t232 (*) (InternalEnumerator_1_t1463 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((InternalEnumerator_1_t1463 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); GcScoreData_t232 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1), &L_1); return L_2; } } // System.Void System.Array/InternalEnumerator`1<UnityEngine.SocialPlatforms.GameCenter.GcScoreData>::Dispose() extern "C" void InternalEnumerator_1_Dispose_m8484_gshared (InternalEnumerator_1_t1463 * __this, const MethodInfo* method) { { __this->___idx_1 = ((int32_t)-2); return; } } // System.Boolean System.Array/InternalEnumerator`1<UnityEngine.SocialPlatforms.GameCenter.GcScoreData>::MoveNext() extern "C" bool InternalEnumerator_1_MoveNext_m8485_gshared (InternalEnumerator_1_t1463 * __this, const MethodInfo* method) { int32_t V_0 = 0; int32_t G_B5_0 = 0; { int32_t L_0 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_0) == ((uint32_t)((int32_t)-2))))) { goto IL_001e; } } { Array_t * L_1 = (Array_t *)(__this->___array_0); NullCheck((Array_t *)L_1); int32_t L_2 = Array_get_Length_m2256((Array_t *)L_1, /*hidden argument*/NULL); __this->___idx_1 = L_2; } IL_001e: { int32_t L_3 = (int32_t)(__this->___idx_1); if ((((int32_t)L_3) == ((int32_t)(-1)))) { goto IL_0043; } } { int32_t L_4 = (int32_t)(__this->___idx_1); int32_t L_5 = (int32_t)((int32_t)((int32_t)L_4-(int32_t)1)); V_0 = (int32_t)L_5; __this->___idx_1 = L_5; int32_t L_6 = V_0; G_B5_0 = ((((int32_t)((((int32_t)L_6) == ((int32_t)(-1)))? 1 : 0)) == ((int32_t)0))? 1 : 0); goto IL_0044; } IL_0043: { G_B5_0 = 0; } IL_0044: { return G_B5_0; } } // T System.Array/InternalEnumerator`1<UnityEngine.SocialPlatforms.GameCenter.GcScoreData>::get_Current() extern TypeInfo* InvalidOperationException_t580_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2671; extern Il2CppCodeGenString* _stringLiteral2672; extern "C" GcScoreData_t232 InternalEnumerator_1_get_Current_m8486_gshared (InternalEnumerator_1_t1463 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { InvalidOperationException_t580_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(236); _stringLiteral2671 = il2cpp_codegen_string_literal_from_index(2671); _stringLiteral2672 = il2cpp_codegen_string_literal_from_index(2672); s_Il2CppMethodIntialized = true; } { int32_t L_0 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_0) == ((uint32_t)((int32_t)-2))))) { goto IL_0018; } } { InvalidOperationException_t580 * L_1 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_1, (String_t*)_stringLiteral2671, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0018: { int32_t L_2 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_2) == ((uint32_t)(-1))))) { goto IL_002f; } } { InvalidOperationException_t580 * L_3 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_3, (String_t*)_stringLiteral2672, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_3); } IL_002f: { Array_t * L_4 = (Array_t *)(__this->___array_0); Array_t * L_5 = (Array_t *)(__this->___array_0); NullCheck((Array_t *)L_5); int32_t L_6 = Array_get_Length_m2256((Array_t *)L_5, /*hidden argument*/NULL); int32_t L_7 = (int32_t)(__this->___idx_1); NullCheck((Array_t *)L_4); GcScoreData_t232 L_8 = (( GcScoreData_t232 (*) (Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((Array_t *)L_4, (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_6-(int32_t)1))-(int32_t)L_7)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); return L_8; } } #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif // System.Collections.Generic.Dictionary`2<System.Int32,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_gen_9.h" #ifndef _MSC_VER #else #endif // System.Collections.Generic.Dictionary`2<System.Int32,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_gen_9MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/KeyCollection<System.Int32,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_KeyCollecti_0.h" // System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_ValueCollec_2.h" // System.ArgumentNullException #include "mscorlib_System_ArgumentNullException.h" // System.Collections.Generic.Link #include "mscorlib_System_Collections_Generic_Link.h" // System.Collections.Generic.KeyNotFoundException #include "mscorlib_System_Collections_Generic_KeyNotFoundException.h" // System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object> #include "mscorlib_System_Collections_Generic_KeyValuePair_2_gen_3.h" // System.Runtime.Serialization.SerializationInfo #include "mscorlib_System_Runtime_Serialization_SerializationInfo.h" // System.Runtime.Serialization.StreamingContext #include "mscorlib_System_Runtime_Serialization_StreamingContext.h" // System.Collections.DictionaryEntry #include "mscorlib_System_Collections_DictionaryEntry.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Collections.DictionaryEntry> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1_1.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1_2.h" // System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_Enumerator__1.h" // System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Int32,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_ShimEnumera.h" // System.Collections.Generic.EqualityComparer`1<System.Int32> #include "mscorlib_System_Collections_Generic_EqualityComparer_1_gen_0.h" // System.ArgumentNullException #include "mscorlib_System_ArgumentNullExceptionMethodDeclarations.h" // System.Collections.Generic.KeyNotFoundException #include "mscorlib_System_Collections_Generic_KeyNotFoundExceptionMethodDeclarations.h" // System.Collections.Generic.Dictionary`2/KeyCollection<System.Int32,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_KeyCollecti_0MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_ValueCollec_2MethodDeclarations.h" // System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object> #include "mscorlib_System_Collections_Generic_KeyValuePair_2_gen_3MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Collections.DictionaryEntry> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1_1MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1_2MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_Enumerator__1MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Int32,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_ShimEnumeraMethodDeclarations.h" // System.Collections.Generic.EqualityComparer`1<System.Int32> #include "mscorlib_System_Collections_Generic_EqualityComparer_1_gen_0MethodDeclarations.h" // System.Collections.Hashtable #include "mscorlib_System_Collections_HashtableMethodDeclarations.h" // System.Runtime.Serialization.SerializationInfo #include "mscorlib_System_Runtime_Serialization_SerializationInfoMethodDeclarations.h" // System.String #include "mscorlib_System_StringMethodDeclarations.h" // System.Collections.DictionaryEntry #include "mscorlib_System_Collections_DictionaryEntryMethodDeclarations.h" struct Dictionary_2_t1471; struct DictionaryEntryU5BU5D_t1958; struct Transform_1_t1470; // Declaration System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Do_CopyTo<System.Collections.DictionaryEntry,System.Collections.DictionaryEntry>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Do_CopyTo<System.Collections.DictionaryEntry,System.Collections.DictionaryEntry>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) extern "C" void Dictionary_2_Do_CopyTo_TisDictionaryEntry_t567_TisDictionaryEntry_t567_m12191_gshared (Dictionary_2_t1471 * __this, DictionaryEntryU5BU5D_t1958* p0, int32_t p1, Transform_1_t1470 * p2, const MethodInfo* method); #define Dictionary_2_Do_CopyTo_TisDictionaryEntry_t567_TisDictionaryEntry_t567_m12191(__this, p0, p1, p2, method) (( void (*) (Dictionary_2_t1471 *, DictionaryEntryU5BU5D_t1958*, int32_t, Transform_1_t1470 *, const MethodInfo*))Dictionary_2_Do_CopyTo_TisDictionaryEntry_t567_TisDictionaryEntry_t567_m12191_gshared)(__this, p0, p1, p2, method) struct Dictionary_2_t1471; struct Array_t; struct Transform_1_t1484; // Declaration System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Do_ICollectionCopyTo<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>(System.Array,System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Do_ICollectionCopyTo<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>(System.Array,System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) extern "C" void Dictionary_2_Do_ICollectionCopyTo_TisKeyValuePair_2_t1472_m12193_gshared (Dictionary_2_t1471 * __this, Array_t * p0, int32_t p1, Transform_1_t1484 * p2, const MethodInfo* method); #define Dictionary_2_Do_ICollectionCopyTo_TisKeyValuePair_2_t1472_m12193(__this, p0, p1, p2, method) (( void (*) (Dictionary_2_t1471 *, Array_t *, int32_t, Transform_1_t1484 *, const MethodInfo*))Dictionary_2_Do_ICollectionCopyTo_TisKeyValuePair_2_t1472_m12193_gshared)(__this, p0, p1, p2, method) struct Dictionary_2_t1471; struct KeyValuePair_2U5BU5D_t1821; struct Transform_1_t1484; // Declaration System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Do_CopyTo<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>,System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Do_CopyTo<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>,System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) extern "C" void Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t1472_TisKeyValuePair_2_t1472_m12194_gshared (Dictionary_2_t1471 * __this, KeyValuePair_2U5BU5D_t1821* p0, int32_t p1, Transform_1_t1484 * p2, const MethodInfo* method); #define Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t1472_TisKeyValuePair_2_t1472_m12194(__this, p0, p1, p2, method) (( void (*) (Dictionary_2_t1471 *, KeyValuePair_2U5BU5D_t1821*, int32_t, Transform_1_t1484 *, const MethodInfo*))Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t1472_TisKeyValuePair_2_t1472_m12194_gshared)(__this, p0, p1, p2, method) // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::.ctor() extern "C" void Dictionary_2__ctor_m8497_gshared (Dictionary_2_t1471 * __this, const MethodInfo* method) { { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); NullCheck((Dictionary_2_t1471 *)__this); (( void (*) (Dictionary_2_t1471 *, int32_t, Object_t*, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1471 *)__this, (int32_t)((int32_t)10), (Object_t*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::.ctor(System.Collections.Generic.IEqualityComparer`1<TKey>) extern "C" void Dictionary_2__ctor_m8499_gshared (Dictionary_2_t1471 * __this, Object_t* ___comparer, const MethodInfo* method) { { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); Object_t* L_0 = ___comparer; NullCheck((Dictionary_2_t1471 *)__this); (( void (*) (Dictionary_2_t1471 *, int32_t, Object_t*, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1471 *)__this, (int32_t)((int32_t)10), (Object_t*)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>) extern "C" void Dictionary_2__ctor_m8501_gshared (Dictionary_2_t1471 * __this, Object_t* ___dictionary, const MethodInfo* method) { { Object_t* L_0 = ___dictionary; NullCheck((Dictionary_2_t1471 *)__this); (( void (*) (Dictionary_2_t1471 *, Object_t*, Object_t*, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((Dictionary_2_t1471 *)__this, (Object_t*)L_0, (Object_t*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::.ctor(System.Int32) extern "C" void Dictionary_2__ctor_m8503_gshared (Dictionary_2_t1471 * __this, int32_t ___capacity, const MethodInfo* method) { { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); int32_t L_0 = ___capacity; NullCheck((Dictionary_2_t1471 *)__this); (( void (*) (Dictionary_2_t1471 *, int32_t, Object_t*, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1471 *)__this, (int32_t)L_0, (Object_t*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>,System.Collections.Generic.IEqualityComparer`1<TKey>) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern TypeInfo* IEnumerator_t286_il2cpp_TypeInfo_var; extern TypeInfo* IDisposable_t326_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral1250; extern "C" void Dictionary_2__ctor_m8505_gshared (Dictionary_2_t1471 * __this, Object_t* ___dictionary, Object_t* ___comparer, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); IEnumerator_t286_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(142); IDisposable_t326_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(27); _stringLiteral1250 = il2cpp_codegen_string_literal_from_index(1250); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; KeyValuePair_2_t1472 V_1 = {0}; Object_t* V_2 = {0}; Exception_t74 * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t74 * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); int32_t __leave_target = 0; NO_UNUSED_WARNING (__leave_target); { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); Object_t* L_0 = ___dictionary; if (L_0) { goto IL_0017; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral1250, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0017: { Object_t* L_2 = ___dictionary; NullCheck((Object_t*)L_2); int32_t L_3 = (int32_t)InterfaceFuncInvoker0< int32_t >::Invoke(0 /* System.Int32 System.Collections.Generic.ICollection`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>::get_Count() */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), (Object_t*)L_2); V_0 = (int32_t)L_3; int32_t L_4 = V_0; Object_t* L_5 = ___comparer; NullCheck((Dictionary_2_t1471 *)__this); (( void (*) (Dictionary_2_t1471 *, int32_t, Object_t*, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1471 *)__this, (int32_t)L_4, (Object_t*)L_5, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); Object_t* L_6 = ___dictionary; NullCheck((Object_t*)L_6); Object_t* L_7 = (Object_t*)InterfaceFuncInvoker0< Object_t* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<T> System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>::GetEnumerator() */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3), (Object_t*)L_6); V_2 = (Object_t*)L_7; } IL_002d: try { // begin try (depth: 1) { goto IL_004d; } IL_0032: { Object_t* L_8 = V_2; NullCheck((Object_t*)L_8); KeyValuePair_2_t1472 L_9 = (KeyValuePair_2_t1472 )InterfaceFuncInvoker0< KeyValuePair_2_t1472 >::Invoke(0 /* T System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>::get_Current() */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4), (Object_t*)L_8); V_1 = (KeyValuePair_2_t1472 )L_9; int32_t L_10 = (( int32_t (*) (KeyValuePair_2_t1472 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((KeyValuePair_2_t1472 *)(&V_1), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); Object_t * L_11 = (( Object_t * (*) (KeyValuePair_2_t1472 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)->method)((KeyValuePair_2_t1472 *)(&V_1), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); NullCheck((Dictionary_2_t1471 *)__this); VirtActionInvoker2< int32_t, Object_t * >::Invoke(17 /* System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Add(TKey,TValue) */, (Dictionary_2_t1471 *)__this, (int32_t)L_10, (Object_t *)L_11); } IL_004d: { Object_t* L_12 = V_2; NullCheck((Object_t *)L_12); bool L_13 = (bool)InterfaceFuncInvoker0< bool >::Invoke(1 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t286_il2cpp_TypeInfo_var, (Object_t *)L_12); if (L_13) { goto IL_0032; } } IL_0058: { IL2CPP_LEAVE(0x68, FINALLY_005d); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t74 *)e.ex; goto FINALLY_005d; } FINALLY_005d: { // begin finally (depth: 1) { Object_t* L_14 = V_2; if (L_14) { goto IL_0061; } } IL_0060: { IL2CPP_END_FINALLY(93) } IL_0061: { Object_t* L_15 = V_2; NullCheck((Object_t *)L_15); InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t326_il2cpp_TypeInfo_var, (Object_t *)L_15); IL2CPP_END_FINALLY(93) } } // end finally (depth: 1) IL2CPP_CLEANUP(93) { IL2CPP_JUMP_TBL(0x68, IL_0068) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t74 *) } IL_0068: { return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) extern "C" void Dictionary_2__ctor_m8507_gshared (Dictionary_2_t1471 * __this, SerializationInfo_t317 * ___info, StreamingContext_t318 ___context, const MethodInfo* method) { { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); SerializationInfo_t317 * L_0 = ___info; __this->___serialization_info_13 = L_0; return; } } // System.Collections.Generic.ICollection`1<TKey> System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Keys() extern "C" Object_t* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Keys_m8509_gshared (Dictionary_2_t1471 * __this, const MethodInfo* method) { { NullCheck((Dictionary_2_t1471 *)__this); KeyCollection_t1476 * L_0 = (( KeyCollection_t1476 * (*) (Dictionary_2_t1471 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)((Dictionary_2_t1471 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); return L_0; } } // System.Collections.Generic.ICollection`1<TValue> System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Values() extern "C" Object_t* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Values_m8511_gshared (Dictionary_2_t1471 * __this, const MethodInfo* method) { { NullCheck((Dictionary_2_t1471 *)__this); ValueCollection_t1480 * L_0 = (( ValueCollection_t1480 * (*) (Dictionary_2_t1471 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)->method)((Dictionary_2_t1471 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)); return L_0; } } // System.Object System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.IDictionary.get_Item(System.Object) extern "C" Object_t * Dictionary_2_System_Collections_IDictionary_get_Item_m8513_gshared (Dictionary_2_t1471 * __this, Object_t * ___key, const MethodInfo* method) { { Object_t * L_0 = ___key; if (!((Object_t *)IsInst(L_0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)))) { goto IL_002f; } } { Object_t * L_1 = ___key; NullCheck((Dictionary_2_t1471 *)__this); bool L_2 = (bool)VirtFuncInvoker1< bool, int32_t >::Invoke(30 /* System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::ContainsKey(TKey) */, (Dictionary_2_t1471 *)__this, (int32_t)((*(int32_t*)((int32_t*)UnBox (L_1, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)))))); if (!L_2) { goto IL_002f; } } { Object_t * L_3 = ___key; NullCheck((Dictionary_2_t1471 *)__this); int32_t L_4 = (( int32_t (*) (Dictionary_2_t1471 *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 12)->method)((Dictionary_2_t1471 *)__this, (Object_t *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 12)); NullCheck((Dictionary_2_t1471 *)__this); Object_t * L_5 = (Object_t *)VirtFuncInvoker1< Object_t *, int32_t >::Invoke(19 /* TValue System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::get_Item(TKey) */, (Dictionary_2_t1471 *)__this, (int32_t)L_4); return L_5; } IL_002f: { return NULL; } } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.IDictionary.set_Item(System.Object,System.Object) extern "C" void Dictionary_2_System_Collections_IDictionary_set_Item_m8515_gshared (Dictionary_2_t1471 * __this, Object_t * ___key, Object_t * ___value, const MethodInfo* method) { { Object_t * L_0 = ___key; NullCheck((Dictionary_2_t1471 *)__this); int32_t L_1 = (( int32_t (*) (Dictionary_2_t1471 *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 12)->method)((Dictionary_2_t1471 *)__this, (Object_t *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 12)); Object_t * L_2 = ___value; NullCheck((Dictionary_2_t1471 *)__this); Object_t * L_3 = (( Object_t * (*) (Dictionary_2_t1471 *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 15)->method)((Dictionary_2_t1471 *)__this, (Object_t *)L_2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 15)); NullCheck((Dictionary_2_t1471 *)__this); VirtActionInvoker2< int32_t, Object_t * >::Invoke(20 /* System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::set_Item(TKey,TValue) */, (Dictionary_2_t1471 *)__this, (int32_t)L_1, (Object_t *)L_3); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.IDictionary.Add(System.Object,System.Object) extern "C" void Dictionary_2_System_Collections_IDictionary_Add_m8517_gshared (Dictionary_2_t1471 * __this, Object_t * ___key, Object_t * ___value, const MethodInfo* method) { { Object_t * L_0 = ___key; NullCheck((Dictionary_2_t1471 *)__this); int32_t L_1 = (( int32_t (*) (Dictionary_2_t1471 *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 12)->method)((Dictionary_2_t1471 *)__this, (Object_t *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 12)); Object_t * L_2 = ___value; NullCheck((Dictionary_2_t1471 *)__this); Object_t * L_3 = (( Object_t * (*) (Dictionary_2_t1471 *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 15)->method)((Dictionary_2_t1471 *)__this, (Object_t *)L_2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 15)); NullCheck((Dictionary_2_t1471 *)__this); VirtActionInvoker2< int32_t, Object_t * >::Invoke(17 /* System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Add(TKey,TValue) */, (Dictionary_2_t1471 *)__this, (int32_t)L_1, (Object_t *)L_3); return; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.IDictionary.Contains(System.Object) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern "C" bool Dictionary_2_System_Collections_IDictionary_Contains_m8519_gshared (Dictionary_2_t1471 * __this, Object_t * ___key, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); s_Il2CppMethodIntialized = true; } { Object_t * L_0 = ___key; if (L_0) { goto IL_0011; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0011: { Object_t * L_2 = ___key; if (!((Object_t *)IsInst(L_2, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)))) { goto IL_0029; } } { Object_t * L_3 = ___key; NullCheck((Dictionary_2_t1471 *)__this); bool L_4 = (bool)VirtFuncInvoker1< bool, int32_t >::Invoke(30 /* System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::ContainsKey(TKey) */, (Dictionary_2_t1471 *)__this, (int32_t)((*(int32_t*)((int32_t*)UnBox (L_3, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)))))); return L_4; } IL_0029: { return 0; } } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.IDictionary.Remove(System.Object) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern "C" void Dictionary_2_System_Collections_IDictionary_Remove_m8521_gshared (Dictionary_2_t1471 * __this, Object_t * ___key, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); s_Il2CppMethodIntialized = true; } { Object_t * L_0 = ___key; if (L_0) { goto IL_0011; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0011: { Object_t * L_2 = ___key; if (!((Object_t *)IsInst(L_2, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)))) { goto IL_0029; } } { Object_t * L_3 = ___key; NullCheck((Dictionary_2_t1471 *)__this); VirtFuncInvoker1< bool, int32_t >::Invoke(33 /* System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Remove(TKey) */, (Dictionary_2_t1471 *)__this, (int32_t)((*(int32_t*)((int32_t*)UnBox (L_3, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)))))); } IL_0029: { return; } } // System.Object System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.ICollection.get_SyncRoot() extern "C" Object_t * Dictionary_2_System_Collections_ICollection_get_SyncRoot_m8523_gshared (Dictionary_2_t1471 * __this, const MethodInfo* method) { { return __this; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.get_IsReadOnly() extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_get_IsReadOnly_m8525_gshared (Dictionary_2_t1471 * __this, const MethodInfo* method) { { return 0; } } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Add(System.Collections.Generic.KeyValuePair`2<TKey,TValue>) extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Add_m8527_gshared (Dictionary_2_t1471 * __this, KeyValuePair_2_t1472 ___keyValuePair, const MethodInfo* method) { { int32_t L_0 = (( int32_t (*) (KeyValuePair_2_t1472 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((KeyValuePair_2_t1472 *)(&___keyValuePair), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); Object_t * L_1 = (( Object_t * (*) (KeyValuePair_2_t1472 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)->method)((KeyValuePair_2_t1472 *)(&___keyValuePair), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); NullCheck((Dictionary_2_t1471 *)__this); VirtActionInvoker2< int32_t, Object_t * >::Invoke(17 /* System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Add(TKey,TValue) */, (Dictionary_2_t1471 *)__this, (int32_t)L_0, (Object_t *)L_1); return; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains(System.Collections.Generic.KeyValuePair`2<TKey,TValue>) extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Contains_m8529_gshared (Dictionary_2_t1471 * __this, KeyValuePair_2_t1472 ___keyValuePair, const MethodInfo* method) { { KeyValuePair_2_t1472 L_0 = ___keyValuePair; NullCheck((Dictionary_2_t1471 *)__this); bool L_1 = (( bool (*) (Dictionary_2_t1471 *, KeyValuePair_2_t1472 , const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 18)->method)((Dictionary_2_t1471 *)__this, (KeyValuePair_2_t1472 )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 18)); return L_1; } } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32) extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_CopyTo_m8531_gshared (Dictionary_2_t1471 * __this, KeyValuePair_2U5BU5D_t1821* ___array, int32_t ___index, const MethodInfo* method) { { KeyValuePair_2U5BU5D_t1821* L_0 = ___array; int32_t L_1 = ___index; NullCheck((Dictionary_2_t1471 *)__this); (( void (*) (Dictionary_2_t1471 *, KeyValuePair_2U5BU5D_t1821*, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 19)->method)((Dictionary_2_t1471 *)__this, (KeyValuePair_2U5BU5D_t1821*)L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 19)); return; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove(System.Collections.Generic.KeyValuePair`2<TKey,TValue>) extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Remove_m8533_gshared (Dictionary_2_t1471 * __this, KeyValuePair_2_t1472 ___keyValuePair, const MethodInfo* method) { { KeyValuePair_2_t1472 L_0 = ___keyValuePair; NullCheck((Dictionary_2_t1471 *)__this); bool L_1 = (( bool (*) (Dictionary_2_t1471 *, KeyValuePair_2_t1472 , const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 18)->method)((Dictionary_2_t1471 *)__this, (KeyValuePair_2_t1472 )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 18)); if (L_1) { goto IL_000e; } } { return 0; } IL_000e: { int32_t L_2 = (( int32_t (*) (KeyValuePair_2_t1472 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((KeyValuePair_2_t1472 *)(&___keyValuePair), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); NullCheck((Dictionary_2_t1471 *)__this); bool L_3 = (bool)VirtFuncInvoker1< bool, int32_t >::Invoke(33 /* System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Remove(TKey) */, (Dictionary_2_t1471 *)__this, (int32_t)L_2); return L_3; } } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.ICollection.CopyTo(System.Array,System.Int32) extern TypeInfo* DictionaryEntryU5BU5D_t1958_il2cpp_TypeInfo_var; extern "C" void Dictionary_2_System_Collections_ICollection_CopyTo_m8535_gshared (Dictionary_2_t1471 * __this, Array_t * ___array, int32_t ___index, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { DictionaryEntryU5BU5D_t1958_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(2138); s_Il2CppMethodIntialized = true; } KeyValuePair_2U5BU5D_t1821* V_0 = {0}; DictionaryEntryU5BU5D_t1958* V_1 = {0}; int32_t G_B5_0 = 0; DictionaryEntryU5BU5D_t1958* G_B5_1 = {0}; Dictionary_2_t1471 * G_B5_2 = {0}; int32_t G_B4_0 = 0; DictionaryEntryU5BU5D_t1958* G_B4_1 = {0}; Dictionary_2_t1471 * G_B4_2 = {0}; { Array_t * L_0 = ___array; V_0 = (KeyValuePair_2U5BU5D_t1821*)((KeyValuePair_2U5BU5D_t1821*)IsInst(L_0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 20))); KeyValuePair_2U5BU5D_t1821* L_1 = V_0; if (!L_1) { goto IL_0016; } } { KeyValuePair_2U5BU5D_t1821* L_2 = V_0; int32_t L_3 = ___index; NullCheck((Dictionary_2_t1471 *)__this); (( void (*) (Dictionary_2_t1471 *, KeyValuePair_2U5BU5D_t1821*, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 19)->method)((Dictionary_2_t1471 *)__this, (KeyValuePair_2U5BU5D_t1821*)L_2, (int32_t)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 19)); return; } IL_0016: { Array_t * L_4 = ___array; int32_t L_5 = ___index; NullCheck((Dictionary_2_t1471 *)__this); (( void (*) (Dictionary_2_t1471 *, Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 21)->method)((Dictionary_2_t1471 *)__this, (Array_t *)L_4, (int32_t)L_5, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 21)); Array_t * L_6 = ___array; V_1 = (DictionaryEntryU5BU5D_t1958*)((DictionaryEntryU5BU5D_t1958*)IsInst(L_6, DictionaryEntryU5BU5D_t1958_il2cpp_TypeInfo_var)); DictionaryEntryU5BU5D_t1958* L_7 = V_1; if (!L_7) { goto IL_0051; } } { DictionaryEntryU5BU5D_t1958* L_8 = V_1; int32_t L_9 = ___index; Transform_1_t1470 * L_10 = ((Dictionary_2_t1471_StaticFields*)IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 22)->static_fields)->___U3CU3Ef__amU24cacheB_15; G_B4_0 = L_9; G_B4_1 = L_8; G_B4_2 = ((Dictionary_2_t1471 *)(__this)); if (L_10) { G_B5_0 = L_9; G_B5_1 = L_8; G_B5_2 = ((Dictionary_2_t1471 *)(__this)); goto IL_0046; } } { IntPtr_t L_11 = { (void*)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 23) }; Transform_1_t1470 * L_12 = (Transform_1_t1470 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 24)); (( void (*) (Transform_1_t1470 *, Object_t *, IntPtr_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 25)->method)(L_12, (Object_t *)NULL, (IntPtr_t)L_11, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 25)); ((Dictionary_2_t1471_StaticFields*)IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 22)->static_fields)->___U3CU3Ef__amU24cacheB_15 = L_12; G_B5_0 = G_B4_0; G_B5_1 = G_B4_1; G_B5_2 = ((Dictionary_2_t1471 *)(G_B4_2)); } IL_0046: { Transform_1_t1470 * L_13 = ((Dictionary_2_t1471_StaticFields*)IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 22)->static_fields)->___U3CU3Ef__amU24cacheB_15; NullCheck((Dictionary_2_t1471 *)G_B5_2); (( void (*) (Dictionary_2_t1471 *, DictionaryEntryU5BU5D_t1958*, int32_t, Transform_1_t1470 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 26)->method)((Dictionary_2_t1471 *)G_B5_2, (DictionaryEntryU5BU5D_t1958*)G_B5_1, (int32_t)G_B5_0, (Transform_1_t1470 *)L_13, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 26)); return; } IL_0051: { Array_t * L_14 = ___array; int32_t L_15 = ___index; IntPtr_t L_16 = { (void*)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 27) }; Transform_1_t1484 * L_17 = (Transform_1_t1484 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 28)); (( void (*) (Transform_1_t1484 *, Object_t *, IntPtr_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 29)->method)(L_17, (Object_t *)NULL, (IntPtr_t)L_16, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 29)); NullCheck((Dictionary_2_t1471 *)__this); (( void (*) (Dictionary_2_t1471 *, Array_t *, int32_t, Transform_1_t1484 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 30)->method)((Dictionary_2_t1471 *)__this, (Array_t *)L_14, (int32_t)L_15, (Transform_1_t1484 *)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 30)); return; } } // System.Collections.IEnumerator System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.IEnumerable.GetEnumerator() extern "C" Object_t * Dictionary_2_System_Collections_IEnumerable_GetEnumerator_m8537_gshared (Dictionary_2_t1471 * __this, const MethodInfo* method) { { Enumerator_t1478 L_0 = {0}; (( void (*) (Enumerator_t1478 *, Dictionary_2_t1471 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 32)->method)(&L_0, (Dictionary_2_t1471 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 32)); Enumerator_t1478 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 31), &L_1); return (Object_t *)L_2; } } // System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<TKey,TValue>> System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>.GetEnumerator() extern "C" Object_t* Dictionary_2_System_Collections_Generic_IEnumerableU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_GetEnumerator_m8539_gshared (Dictionary_2_t1471 * __this, const MethodInfo* method) { { Enumerator_t1478 L_0 = {0}; (( void (*) (Enumerator_t1478 *, Dictionary_2_t1471 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 32)->method)(&L_0, (Dictionary_2_t1471 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 32)); Enumerator_t1478 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 31), &L_1); return (Object_t*)L_2; } } // System.Collections.IDictionaryEnumerator System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::System.Collections.IDictionary.GetEnumerator() extern "C" Object_t * Dictionary_2_System_Collections_IDictionary_GetEnumerator_m8541_gshared (Dictionary_2_t1471 * __this, const MethodInfo* method) { { ShimEnumerator_t1485 * L_0 = (ShimEnumerator_t1485 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 33)); (( void (*) (ShimEnumerator_t1485 *, Dictionary_2_t1471 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 34)->method)(L_0, (Dictionary_2_t1471 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 34)); return L_0; } } // System.Int32 System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::get_Count() extern "C" int32_t Dictionary_2_get_Count_m8543_gshared (Dictionary_2_t1471 * __this, const MethodInfo* method) { { int32_t L_0 = (int32_t)(__this->___count_10); return L_0; } } // TValue System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::get_Item(TKey) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern TypeInfo* KeyNotFoundException_t872_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern "C" Object_t * Dictionary_2_get_Item_m8545_gshared (Dictionary_2_t1471 * __this, int32_t ___key, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); KeyNotFoundException_t872_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(2139); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; int32_t V_1 = 0; { int32_t L_0 = ___key; goto IL_0016; } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0016: { Object_t* L_2 = (Object_t*)(__this->___hcp_12); int32_t L_3 = ___key; NullCheck((Object_t*)L_2); int32_t L_4 = (int32_t)InterfaceFuncInvoker1< int32_t, int32_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Int32>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_2, (int32_t)L_3); V_0 = (int32_t)((int32_t)((int32_t)L_4|(int32_t)((int32_t)-2147483648))); Int32U5BU5D_t501* L_5 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_6 = V_0; Int32U5BU5D_t501* L_7 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_7); NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, ((int32_t)((int32_t)((int32_t)((int32_t)L_6&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_7)->max_length)))))); int32_t L_8 = ((int32_t)((int32_t)((int32_t)((int32_t)L_6&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_7)->max_length))))); V_1 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_5, L_8))-(int32_t)1)); goto IL_009b; } IL_0048: { LinkU5BU5D_t1466* L_9 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_10 = V_1; NullCheck(L_9); IL2CPP_ARRAY_BOUNDS_CHECK(L_9, L_10); int32_t L_11 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_9, L_10))->___HashCode_0); int32_t L_12 = V_0; if ((!(((uint32_t)L_11) == ((uint32_t)L_12)))) { goto IL_0089; } } { Object_t* L_13 = (Object_t*)(__this->___hcp_12); Int32U5BU5D_t501* L_14 = (Int32U5BU5D_t501*)(__this->___keySlots_6); int32_t L_15 = V_1; NullCheck(L_14); IL2CPP_ARRAY_BOUNDS_CHECK(L_14, L_15); int32_t L_16 = L_15; int32_t L_17 = ___key; NullCheck((Object_t*)L_13); bool L_18 = (bool)InterfaceFuncInvoker2< bool, int32_t, int32_t >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Int32>::Equals(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_13, (int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_14, L_16)), (int32_t)L_17); if (!L_18) { goto IL_0089; } } { ObjectU5BU5D_t207* L_19 = (ObjectU5BU5D_t207*)(__this->___valueSlots_7); int32_t L_20 = V_1; NullCheck(L_19); IL2CPP_ARRAY_BOUNDS_CHECK(L_19, L_20); int32_t L_21 = L_20; return (*(Object_t **)(Object_t **)SZArrayLdElema(L_19, L_21)); } IL_0089: { LinkU5BU5D_t1466* L_22 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_23 = V_1; NullCheck(L_22); IL2CPP_ARRAY_BOUNDS_CHECK(L_22, L_23); int32_t L_24 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_22, L_23))->___Next_1); V_1 = (int32_t)L_24; } IL_009b: { int32_t L_25 = V_1; if ((!(((uint32_t)L_25) == ((uint32_t)(-1))))) { goto IL_0048; } } { KeyNotFoundException_t872 * L_26 = (KeyNotFoundException_t872 *)il2cpp_codegen_object_new (KeyNotFoundException_t872_il2cpp_TypeInfo_var); KeyNotFoundException__ctor_m4734(L_26, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_26); } } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::set_Item(TKey,TValue) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern "C" void Dictionary_2_set_Item_m8547_gshared (Dictionary_2_t1471 * __this, int32_t ___key, Object_t * ___value, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); 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; { int32_t L_0 = ___key; goto IL_0016; } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0016: { Object_t* L_2 = (Object_t*)(__this->___hcp_12); int32_t L_3 = ___key; NullCheck((Object_t*)L_2); int32_t L_4 = (int32_t)InterfaceFuncInvoker1< int32_t, int32_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Int32>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_2, (int32_t)L_3); V_0 = (int32_t)((int32_t)((int32_t)L_4|(int32_t)((int32_t)-2147483648))); int32_t L_5 = V_0; Int32U5BU5D_t501* L_6 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_6); V_1 = (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_6)->max_length))))); Int32U5BU5D_t501* L_7 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_8 = V_1; NullCheck(L_7); IL2CPP_ARRAY_BOUNDS_CHECK(L_7, L_8); int32_t L_9 = L_8; V_2 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_7, L_9))-(int32_t)1)); V_3 = (int32_t)(-1); int32_t L_10 = V_2; if ((((int32_t)L_10) == ((int32_t)(-1)))) { goto IL_00a2; } } IL_004e: { LinkU5BU5D_t1466* L_11 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_12 = V_2; NullCheck(L_11); IL2CPP_ARRAY_BOUNDS_CHECK(L_11, L_12); int32_t L_13 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_11, L_12))->___HashCode_0); int32_t L_14 = V_0; if ((!(((uint32_t)L_13) == ((uint32_t)L_14)))) { goto IL_0087; } } { Object_t* L_15 = (Object_t*)(__this->___hcp_12); Int32U5BU5D_t501* L_16 = (Int32U5BU5D_t501*)(__this->___keySlots_6); int32_t L_17 = V_2; NullCheck(L_16); IL2CPP_ARRAY_BOUNDS_CHECK(L_16, L_17); int32_t L_18 = L_17; int32_t L_19 = ___key; NullCheck((Object_t*)L_15); bool L_20 = (bool)InterfaceFuncInvoker2< bool, int32_t, int32_t >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Int32>::Equals(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_15, (int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_16, L_18)), (int32_t)L_19); if (!L_20) { goto IL_0087; } } { goto IL_00a2; } IL_0087: { int32_t L_21 = V_2; V_3 = (int32_t)L_21; LinkU5BU5D_t1466* L_22 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_23 = V_2; NullCheck(L_22); IL2CPP_ARRAY_BOUNDS_CHECK(L_22, L_23); int32_t L_24 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_22, L_23))->___Next_1); V_2 = (int32_t)L_24; int32_t L_25 = V_2; if ((!(((uint32_t)L_25) == ((uint32_t)(-1))))) { goto IL_004e; } } IL_00a2: { int32_t L_26 = V_2; if ((!(((uint32_t)L_26) == ((uint32_t)(-1))))) { goto IL_0166; } } { int32_t L_27 = (int32_t)(__this->___count_10); int32_t L_28 = (int32_t)((int32_t)((int32_t)L_27+(int32_t)1)); V_4 = (int32_t)L_28; __this->___count_10 = L_28; int32_t L_29 = V_4; int32_t L_30 = (int32_t)(__this->___threshold_11); if ((((int32_t)L_29) <= ((int32_t)L_30))) { goto IL_00de; } } { NullCheck((Dictionary_2_t1471 *)__this); (( void (*) (Dictionary_2_t1471 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 36)->method)((Dictionary_2_t1471 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 36)); int32_t L_31 = V_0; Int32U5BU5D_t501* L_32 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_32); V_1 = (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_31&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_32)->max_length))))); } IL_00de: { int32_t L_33 = (int32_t)(__this->___emptySlot_9); V_2 = (int32_t)L_33; int32_t L_34 = V_2; if ((!(((uint32_t)L_34) == ((uint32_t)(-1))))) { goto IL_0105; } } { int32_t L_35 = (int32_t)(__this->___touchedSlots_8); int32_t L_36 = (int32_t)L_35; V_4 = (int32_t)L_36; __this->___touchedSlots_8 = ((int32_t)((int32_t)L_36+(int32_t)1)); int32_t L_37 = V_4; V_2 = (int32_t)L_37; goto IL_011c; } IL_0105: { LinkU5BU5D_t1466* L_38 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_39 = V_2; NullCheck(L_38); IL2CPP_ARRAY_BOUNDS_CHECK(L_38, L_39); int32_t L_40 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_38, L_39))->___Next_1); __this->___emptySlot_9 = L_40; } IL_011c: { LinkU5BU5D_t1466* L_41 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_42 = V_2; NullCheck(L_41); IL2CPP_ARRAY_BOUNDS_CHECK(L_41, L_42); Int32U5BU5D_t501* L_43 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_44 = V_1; NullCheck(L_43); IL2CPP_ARRAY_BOUNDS_CHECK(L_43, L_44); int32_t L_45 = L_44; ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_41, L_42))->___Next_1 = ((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_43, L_45))-(int32_t)1)); Int32U5BU5D_t501* L_46 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_47 = V_1; int32_t L_48 = V_2; NullCheck(L_46); IL2CPP_ARRAY_BOUNDS_CHECK(L_46, L_47); *((int32_t*)(int32_t*)SZArrayLdElema(L_46, L_47)) = (int32_t)((int32_t)((int32_t)L_48+(int32_t)1)); LinkU5BU5D_t1466* L_49 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_50 = V_2; NullCheck(L_49); IL2CPP_ARRAY_BOUNDS_CHECK(L_49, L_50); int32_t L_51 = V_0; ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_49, L_50))->___HashCode_0 = L_51; Int32U5BU5D_t501* L_52 = (Int32U5BU5D_t501*)(__this->___keySlots_6); int32_t L_53 = V_2; int32_t L_54 = ___key; NullCheck(L_52); IL2CPP_ARRAY_BOUNDS_CHECK(L_52, L_53); *((int32_t*)(int32_t*)SZArrayLdElema(L_52, L_53)) = (int32_t)L_54; goto IL_01b5; } IL_0166: { int32_t L_55 = V_3; if ((((int32_t)L_55) == ((int32_t)(-1)))) { goto IL_01b5; } } { LinkU5BU5D_t1466* L_56 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_57 = V_3; NullCheck(L_56); IL2CPP_ARRAY_BOUNDS_CHECK(L_56, L_57); LinkU5BU5D_t1466* L_58 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_59 = V_2; NullCheck(L_58); IL2CPP_ARRAY_BOUNDS_CHECK(L_58, L_59); int32_t L_60 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_58, L_59))->___Next_1); ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_56, L_57))->___Next_1 = L_60; LinkU5BU5D_t1466* L_61 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_62 = V_2; NullCheck(L_61); IL2CPP_ARRAY_BOUNDS_CHECK(L_61, L_62); Int32U5BU5D_t501* L_63 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_64 = V_1; NullCheck(L_63); IL2CPP_ARRAY_BOUNDS_CHECK(L_63, L_64); int32_t L_65 = L_64; ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_61, L_62))->___Next_1 = ((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_63, L_65))-(int32_t)1)); Int32U5BU5D_t501* L_66 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_67 = V_1; int32_t L_68 = V_2; NullCheck(L_66); IL2CPP_ARRAY_BOUNDS_CHECK(L_66, L_67); *((int32_t*)(int32_t*)SZArrayLdElema(L_66, L_67)) = (int32_t)((int32_t)((int32_t)L_68+(int32_t)1)); } IL_01b5: { ObjectU5BU5D_t207* L_69 = (ObjectU5BU5D_t207*)(__this->___valueSlots_7); int32_t L_70 = V_2; Object_t * L_71 = ___value; NullCheck(L_69); IL2CPP_ARRAY_BOUNDS_CHECK(L_69, L_70); *((Object_t **)(Object_t **)SZArrayLdElema(L_69, L_70)) = (Object_t *)L_71; int32_t L_72 = (int32_t)(__this->___generation_14); __this->___generation_14 = ((int32_t)((int32_t)L_72+(int32_t)1)); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Init(System.Int32,System.Collections.Generic.IEqualityComparer`1<TKey>) extern TypeInfo* ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral1221; extern "C" void Dictionary_2_Init_m8549_gshared (Dictionary_2_t1471 * __this, int32_t ___capacity, Object_t* ___hcp, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(147); _stringLiteral1221 = il2cpp_codegen_string_literal_from_index(1221); s_Il2CppMethodIntialized = true; } Object_t* V_0 = {0}; Dictionary_2_t1471 * G_B4_0 = {0}; Dictionary_2_t1471 * G_B3_0 = {0}; Object_t* G_B5_0 = {0}; Dictionary_2_t1471 * G_B5_1 = {0}; { int32_t L_0 = ___capacity; if ((((int32_t)L_0) >= ((int32_t)0))) { goto IL_0012; } } { ArgumentOutOfRangeException_t350 * L_1 = (ArgumentOutOfRangeException_t350 *)il2cpp_codegen_object_new (ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var); ArgumentOutOfRangeException__ctor_m2260(L_1, (String_t*)_stringLiteral1221, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0012: { Object_t* L_2 = ___hcp; G_B3_0 = ((Dictionary_2_t1471 *)(__this)); if (!L_2) { G_B4_0 = ((Dictionary_2_t1471 *)(__this)); goto IL_0021; } } { Object_t* L_3 = ___hcp; V_0 = (Object_t*)L_3; Object_t* L_4 = V_0; G_B5_0 = L_4; G_B5_1 = ((Dictionary_2_t1471 *)(G_B3_0)); goto IL_0026; } IL_0021: { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 38)); EqualityComparer_1_t1486 * L_5 = (( EqualityComparer_1_t1486 * (*) (Object_t * /* static, unused */, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 37)->method)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 37)); G_B5_0 = ((Object_t*)(L_5)); G_B5_1 = ((Dictionary_2_t1471 *)(G_B4_0)); } IL_0026: { NullCheck(G_B5_1); G_B5_1->___hcp_12 = G_B5_0; int32_t L_6 = ___capacity; if (L_6) { goto IL_0035; } } { ___capacity = (int32_t)((int32_t)10); } IL_0035: { int32_t L_7 = ___capacity; ___capacity = (int32_t)((int32_t)((int32_t)(((int32_t)((float)((float)(((float)L_7))/(float)(0.9f)))))+(int32_t)1)); int32_t L_8 = ___capacity; NullCheck((Dictionary_2_t1471 *)__this); (( void (*) (Dictionary_2_t1471 *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 39)->method)((Dictionary_2_t1471 *)__this, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 39)); __this->___generation_14 = 0; return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::InitArrays(System.Int32) extern TypeInfo* Int32U5BU5D_t501_il2cpp_TypeInfo_var; extern TypeInfo* LinkU5BU5D_t1466_il2cpp_TypeInfo_var; extern "C" void Dictionary_2_InitArrays_m8551_gshared (Dictionary_2_t1471 * __this, int32_t ___size, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { Int32U5BU5D_t501_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(348); LinkU5BU5D_t1466_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(2140); s_Il2CppMethodIntialized = true; } { int32_t L_0 = ___size; __this->___table_4 = ((Int32U5BU5D_t501*)SZArrayNew(Int32U5BU5D_t501_il2cpp_TypeInfo_var, L_0)); int32_t L_1 = ___size; __this->___linkSlots_5 = ((LinkU5BU5D_t1466*)SZArrayNew(LinkU5BU5D_t1466_il2cpp_TypeInfo_var, L_1)); __this->___emptySlot_9 = (-1); int32_t L_2 = ___size; __this->___keySlots_6 = ((Int32U5BU5D_t501*)SZArrayNew(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 40), L_2)); int32_t L_3 = ___size; __this->___valueSlots_7 = ((ObjectU5BU5D_t207*)SZArrayNew(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 41), L_3)); __this->___touchedSlots_8 = 0; Int32U5BU5D_t501* L_4 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_4); __this->___threshold_11 = (((int32_t)((float)((float)(((float)(((int32_t)(((Array_t *)L_4)->max_length)))))*(float)(0.9f))))); int32_t L_5 = (int32_t)(__this->___threshold_11); if (L_5) { goto IL_0074; } } { Int32U5BU5D_t501* L_6 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_6); if ((((int32_t)(((int32_t)(((Array_t *)L_6)->max_length)))) <= ((int32_t)0))) { goto IL_0074; } } { __this->___threshold_11 = 1; } IL_0074: { return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::CopyToCheck(System.Array,System.Int32) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern TypeInfo* ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var; extern TypeInfo* ArgumentException_t320_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral173; extern Il2CppCodeGenString* _stringLiteral264; extern Il2CppCodeGenString* _stringLiteral2675; extern Il2CppCodeGenString* _stringLiteral2676; extern "C" void Dictionary_2_CopyToCheck_m8553_gshared (Dictionary_2_t1471 * __this, Array_t * ___array, int32_t ___index, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(147); ArgumentException_t320_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(3); _stringLiteral173 = il2cpp_codegen_string_literal_from_index(173); _stringLiteral264 = il2cpp_codegen_string_literal_from_index(264); _stringLiteral2675 = il2cpp_codegen_string_literal_from_index(2675); _stringLiteral2676 = il2cpp_codegen_string_literal_from_index(2676); s_Il2CppMethodIntialized = true; } { Array_t * L_0 = ___array; if (L_0) { goto IL_0011; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral173, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0011: { int32_t L_2 = ___index; if ((((int32_t)L_2) >= ((int32_t)0))) { goto IL_0023; } } { ArgumentOutOfRangeException_t350 * L_3 = (ArgumentOutOfRangeException_t350 *)il2cpp_codegen_object_new (ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var); ArgumentOutOfRangeException__ctor_m2260(L_3, (String_t*)_stringLiteral264, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_3); } IL_0023: { int32_t L_4 = ___index; Array_t * L_5 = ___array; NullCheck((Array_t *)L_5); int32_t L_6 = Array_get_Length_m2256((Array_t *)L_5, /*hidden argument*/NULL); if ((((int32_t)L_4) <= ((int32_t)L_6))) { goto IL_003a; } } { ArgumentException_t320 * L_7 = (ArgumentException_t320 *)il2cpp_codegen_object_new (ArgumentException_t320_il2cpp_TypeInfo_var); ArgumentException__ctor_m1183(L_7, (String_t*)_stringLiteral2675, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_7); } IL_003a: { Array_t * L_8 = ___array; NullCheck((Array_t *)L_8); int32_t L_9 = Array_get_Length_m2256((Array_t *)L_8, /*hidden argument*/NULL); int32_t L_10 = ___index; NullCheck((Dictionary_2_t1471 *)__this); int32_t L_11 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(9 /* System.Int32 System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::get_Count() */, (Dictionary_2_t1471 *)__this); if ((((int32_t)((int32_t)((int32_t)L_9-(int32_t)L_10))) >= ((int32_t)L_11))) { goto IL_0058; } } { ArgumentException_t320 * L_12 = (ArgumentException_t320 *)il2cpp_codegen_object_new (ArgumentException_t320_il2cpp_TypeInfo_var); ArgumentException__ctor_m1183(L_12, (String_t*)_stringLiteral2676, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_12); } IL_0058: { return; } } // System.Collections.Generic.KeyValuePair`2<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::make_pair(TKey,TValue) extern "C" KeyValuePair_2_t1472 Dictionary_2_make_pair_m8555_gshared (Object_t * __this /* static, unused */, int32_t ___key, Object_t * ___value, const MethodInfo* method) { { int32_t L_0 = ___key; Object_t * L_1 = ___value; KeyValuePair_2_t1472 L_2 = {0}; (( void (*) (KeyValuePair_2_t1472 *, int32_t, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 44)->method)(&L_2, (int32_t)L_0, (Object_t *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 44)); return L_2; } } // TKey System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::pick_key(TKey,TValue) extern "C" int32_t Dictionary_2_pick_key_m8557_gshared (Object_t * __this /* static, unused */, int32_t ___key, Object_t * ___value, const MethodInfo* method) { { int32_t L_0 = ___key; return L_0; } } // TValue System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::pick_value(TKey,TValue) extern "C" Object_t * Dictionary_2_pick_value_m8559_gshared (Object_t * __this /* static, unused */, int32_t ___key, Object_t * ___value, const MethodInfo* method) { { Object_t * L_0 = ___value; return L_0; } } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32) extern "C" void Dictionary_2_CopyTo_m8561_gshared (Dictionary_2_t1471 * __this, KeyValuePair_2U5BU5D_t1821* ___array, int32_t ___index, const MethodInfo* method) { { KeyValuePair_2U5BU5D_t1821* L_0 = ___array; int32_t L_1 = ___index; NullCheck((Dictionary_2_t1471 *)__this); (( void (*) (Dictionary_2_t1471 *, Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 21)->method)((Dictionary_2_t1471 *)__this, (Array_t *)(Array_t *)L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 21)); KeyValuePair_2U5BU5D_t1821* L_2 = ___array; int32_t L_3 = ___index; IntPtr_t L_4 = { (void*)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 27) }; Transform_1_t1484 * L_5 = (Transform_1_t1484 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 28)); (( void (*) (Transform_1_t1484 *, Object_t *, IntPtr_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 29)->method)(L_5, (Object_t *)NULL, (IntPtr_t)L_4, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 29)); NullCheck((Dictionary_2_t1471 *)__this); (( void (*) (Dictionary_2_t1471 *, KeyValuePair_2U5BU5D_t1821*, int32_t, Transform_1_t1484 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 45)->method)((Dictionary_2_t1471 *)__this, (KeyValuePair_2U5BU5D_t1821*)L_2, (int32_t)L_3, (Transform_1_t1484 *)L_5, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 45)); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Resize() extern TypeInfo* Hashtable_t392_il2cpp_TypeInfo_var; extern TypeInfo* Int32U5BU5D_t501_il2cpp_TypeInfo_var; extern TypeInfo* LinkU5BU5D_t1466_il2cpp_TypeInfo_var; extern "C" void Dictionary_2_Resize_m8563_gshared (Dictionary_2_t1471 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { Hashtable_t392_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(233); Int32U5BU5D_t501_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(348); LinkU5BU5D_t1466_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(2140); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; Int32U5BU5D_t501* V_1 = {0}; LinkU5BU5D_t1466* V_2 = {0}; int32_t V_3 = 0; int32_t V_4 = 0; int32_t V_5 = 0; int32_t V_6 = 0; Int32U5BU5D_t501* V_7 = {0}; ObjectU5BU5D_t207* V_8 = {0}; int32_t V_9 = 0; { Int32U5BU5D_t501* L_0 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_0); IL2CPP_RUNTIME_CLASS_INIT(Hashtable_t392_il2cpp_TypeInfo_var); int32_t L_1 = Hashtable_ToPrime_m4957(NULL /*static, unused*/, (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)(((int32_t)(((Array_t *)L_0)->max_length)))<<(int32_t)1))|(int32_t)1)), /*hidden argument*/NULL); V_0 = (int32_t)L_1; int32_t L_2 = V_0; V_1 = (Int32U5BU5D_t501*)((Int32U5BU5D_t501*)SZArrayNew(Int32U5BU5D_t501_il2cpp_TypeInfo_var, L_2)); int32_t L_3 = V_0; V_2 = (LinkU5BU5D_t1466*)((LinkU5BU5D_t1466*)SZArrayNew(LinkU5BU5D_t1466_il2cpp_TypeInfo_var, L_3)); V_3 = (int32_t)0; goto IL_00b1; } IL_0027: { Int32U5BU5D_t501* L_4 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_5 = V_3; NullCheck(L_4); IL2CPP_ARRAY_BOUNDS_CHECK(L_4, L_5); int32_t L_6 = L_5; V_4 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_4, L_6))-(int32_t)1)); goto IL_00a5; } IL_0038: { LinkU5BU5D_t1466* L_7 = V_2; int32_t L_8 = V_4; NullCheck(L_7); IL2CPP_ARRAY_BOUNDS_CHECK(L_7, L_8); Object_t* L_9 = (Object_t*)(__this->___hcp_12); Int32U5BU5D_t501* L_10 = (Int32U5BU5D_t501*)(__this->___keySlots_6); int32_t L_11 = V_4; NullCheck(L_10); IL2CPP_ARRAY_BOUNDS_CHECK(L_10, L_11); int32_t L_12 = L_11; NullCheck((Object_t*)L_9); int32_t L_13 = (int32_t)InterfaceFuncInvoker1< int32_t, int32_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Int32>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_9, (int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_10, L_12))); int32_t L_14 = (int32_t)((int32_t)((int32_t)L_13|(int32_t)((int32_t)-2147483648))); V_9 = (int32_t)L_14; ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_7, L_8))->___HashCode_0 = L_14; int32_t L_15 = V_9; V_5 = (int32_t)L_15; int32_t L_16 = V_5; int32_t L_17 = V_0; V_6 = (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_16&(int32_t)((int32_t)2147483647)))%(int32_t)L_17)); LinkU5BU5D_t1466* L_18 = V_2; int32_t L_19 = V_4; NullCheck(L_18); IL2CPP_ARRAY_BOUNDS_CHECK(L_18, L_19); Int32U5BU5D_t501* L_20 = V_1; int32_t L_21 = V_6; NullCheck(L_20); IL2CPP_ARRAY_BOUNDS_CHECK(L_20, L_21); int32_t L_22 = L_21; ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_18, L_19))->___Next_1 = ((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_20, L_22))-(int32_t)1)); Int32U5BU5D_t501* L_23 = V_1; int32_t L_24 = V_6; int32_t L_25 = V_4; NullCheck(L_23); IL2CPP_ARRAY_BOUNDS_CHECK(L_23, L_24); *((int32_t*)(int32_t*)SZArrayLdElema(L_23, L_24)) = (int32_t)((int32_t)((int32_t)L_25+(int32_t)1)); LinkU5BU5D_t1466* L_26 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_27 = V_4; NullCheck(L_26); IL2CPP_ARRAY_BOUNDS_CHECK(L_26, L_27); int32_t L_28 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_26, L_27))->___Next_1); V_4 = (int32_t)L_28; } IL_00a5: { int32_t L_29 = V_4; if ((!(((uint32_t)L_29) == ((uint32_t)(-1))))) { goto IL_0038; } } { int32_t L_30 = V_3; V_3 = (int32_t)((int32_t)((int32_t)L_30+(int32_t)1)); } IL_00b1: { int32_t L_31 = V_3; Int32U5BU5D_t501* L_32 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_32); if ((((int32_t)L_31) < ((int32_t)(((int32_t)(((Array_t *)L_32)->max_length)))))) { goto IL_0027; } } { Int32U5BU5D_t501* L_33 = V_1; __this->___table_4 = L_33; LinkU5BU5D_t1466* L_34 = V_2; __this->___linkSlots_5 = L_34; int32_t L_35 = V_0; V_7 = (Int32U5BU5D_t501*)((Int32U5BU5D_t501*)SZArrayNew(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 40), L_35)); int32_t L_36 = V_0; V_8 = (ObjectU5BU5D_t207*)((ObjectU5BU5D_t207*)SZArrayNew(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 41), L_36)); Int32U5BU5D_t501* L_37 = (Int32U5BU5D_t501*)(__this->___keySlots_6); Int32U5BU5D_t501* L_38 = V_7; int32_t L_39 = (int32_t)(__this->___touchedSlots_8); Array_Copy_m4087(NULL /*static, unused*/, (Array_t *)(Array_t *)L_37, (int32_t)0, (Array_t *)(Array_t *)L_38, (int32_t)0, (int32_t)L_39, /*hidden argument*/NULL); ObjectU5BU5D_t207* L_40 = (ObjectU5BU5D_t207*)(__this->___valueSlots_7); ObjectU5BU5D_t207* L_41 = V_8; int32_t L_42 = (int32_t)(__this->___touchedSlots_8); Array_Copy_m4087(NULL /*static, unused*/, (Array_t *)(Array_t *)L_40, (int32_t)0, (Array_t *)(Array_t *)L_41, (int32_t)0, (int32_t)L_42, /*hidden argument*/NULL); Int32U5BU5D_t501* L_43 = V_7; __this->___keySlots_6 = L_43; ObjectU5BU5D_t207* L_44 = V_8; __this->___valueSlots_7 = L_44; int32_t L_45 = V_0; __this->___threshold_11 = (((int32_t)((float)((float)(((float)L_45))*(float)(0.9f))))); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Add(TKey,TValue) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern TypeInfo* ArgumentException_t320_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern Il2CppCodeGenString* _stringLiteral2677; extern "C" void Dictionary_2_Add_m8565_gshared (Dictionary_2_t1471 * __this, int32_t ___key, Object_t * ___value, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); ArgumentException_t320_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(3); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); _stringLiteral2677 = il2cpp_codegen_string_literal_from_index(2677); 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 L_0 = ___key; goto IL_0016; } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0016: { Object_t* L_2 = (Object_t*)(__this->___hcp_12); int32_t L_3 = ___key; NullCheck((Object_t*)L_2); int32_t L_4 = (int32_t)InterfaceFuncInvoker1< int32_t, int32_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Int32>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_2, (int32_t)L_3); V_0 = (int32_t)((int32_t)((int32_t)L_4|(int32_t)((int32_t)-2147483648))); int32_t L_5 = V_0; Int32U5BU5D_t501* L_6 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_6); V_1 = (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_6)->max_length))))); Int32U5BU5D_t501* L_7 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_8 = V_1; NullCheck(L_7); IL2CPP_ARRAY_BOUNDS_CHECK(L_7, L_8); int32_t L_9 = L_8; V_2 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_7, L_9))-(int32_t)1)); goto IL_009b; } IL_004a: { LinkU5BU5D_t1466* L_10 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_11 = V_2; NullCheck(L_10); IL2CPP_ARRAY_BOUNDS_CHECK(L_10, L_11); int32_t L_12 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_10, L_11))->___HashCode_0); int32_t L_13 = V_0; if ((!(((uint32_t)L_12) == ((uint32_t)L_13)))) { goto IL_0089; } } { Object_t* L_14 = (Object_t*)(__this->___hcp_12); Int32U5BU5D_t501* L_15 = (Int32U5BU5D_t501*)(__this->___keySlots_6); int32_t L_16 = V_2; NullCheck(L_15); IL2CPP_ARRAY_BOUNDS_CHECK(L_15, L_16); int32_t L_17 = L_16; int32_t L_18 = ___key; NullCheck((Object_t*)L_14); bool L_19 = (bool)InterfaceFuncInvoker2< bool, int32_t, int32_t >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Int32>::Equals(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_14, (int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_15, L_17)), (int32_t)L_18); if (!L_19) { goto IL_0089; } } { ArgumentException_t320 * L_20 = (ArgumentException_t320 *)il2cpp_codegen_object_new (ArgumentException_t320_il2cpp_TypeInfo_var); ArgumentException__ctor_m1183(L_20, (String_t*)_stringLiteral2677, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_20); } IL_0089: { LinkU5BU5D_t1466* L_21 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_22 = V_2; NullCheck(L_21); IL2CPP_ARRAY_BOUNDS_CHECK(L_21, L_22); int32_t L_23 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_21, L_22))->___Next_1); V_2 = (int32_t)L_23; } IL_009b: { int32_t L_24 = V_2; if ((!(((uint32_t)L_24) == ((uint32_t)(-1))))) { goto IL_004a; } } { int32_t L_25 = (int32_t)(__this->___count_10); int32_t L_26 = (int32_t)((int32_t)((int32_t)L_25+(int32_t)1)); V_3 = (int32_t)L_26; __this->___count_10 = L_26; int32_t L_27 = V_3; int32_t L_28 = (int32_t)(__this->___threshold_11); if ((((int32_t)L_27) <= ((int32_t)L_28))) { goto IL_00d5; } } { NullCheck((Dictionary_2_t1471 *)__this); (( void (*) (Dictionary_2_t1471 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 36)->method)((Dictionary_2_t1471 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 36)); int32_t L_29 = V_0; Int32U5BU5D_t501* L_30 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_30); V_1 = (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_29&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_30)->max_length))))); } IL_00d5: { int32_t L_31 = (int32_t)(__this->___emptySlot_9); V_2 = (int32_t)L_31; int32_t L_32 = V_2; if ((!(((uint32_t)L_32) == ((uint32_t)(-1))))) { goto IL_00fa; } } { int32_t L_33 = (int32_t)(__this->___touchedSlots_8); int32_t L_34 = (int32_t)L_33; V_3 = (int32_t)L_34; __this->___touchedSlots_8 = ((int32_t)((int32_t)L_34+(int32_t)1)); int32_t L_35 = V_3; V_2 = (int32_t)L_35; goto IL_0111; } IL_00fa: { LinkU5BU5D_t1466* L_36 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_37 = V_2; NullCheck(L_36); IL2CPP_ARRAY_BOUNDS_CHECK(L_36, L_37); int32_t L_38 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_36, L_37))->___Next_1); __this->___emptySlot_9 = L_38; } IL_0111: { LinkU5BU5D_t1466* L_39 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_40 = V_2; NullCheck(L_39); IL2CPP_ARRAY_BOUNDS_CHECK(L_39, L_40); int32_t L_41 = V_0; ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_39, L_40))->___HashCode_0 = L_41; LinkU5BU5D_t1466* L_42 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_43 = V_2; NullCheck(L_42); IL2CPP_ARRAY_BOUNDS_CHECK(L_42, L_43); Int32U5BU5D_t501* L_44 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_45 = V_1; NullCheck(L_44); IL2CPP_ARRAY_BOUNDS_CHECK(L_44, L_45); int32_t L_46 = L_45; ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_42, L_43))->___Next_1 = ((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_44, L_46))-(int32_t)1)); Int32U5BU5D_t501* L_47 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_48 = V_1; int32_t L_49 = V_2; NullCheck(L_47); IL2CPP_ARRAY_BOUNDS_CHECK(L_47, L_48); *((int32_t*)(int32_t*)SZArrayLdElema(L_47, L_48)) = (int32_t)((int32_t)((int32_t)L_49+(int32_t)1)); Int32U5BU5D_t501* L_50 = (Int32U5BU5D_t501*)(__this->___keySlots_6); int32_t L_51 = V_2; int32_t L_52 = ___key; NullCheck(L_50); IL2CPP_ARRAY_BOUNDS_CHECK(L_50, L_51); *((int32_t*)(int32_t*)SZArrayLdElema(L_50, L_51)) = (int32_t)L_52; ObjectU5BU5D_t207* L_53 = (ObjectU5BU5D_t207*)(__this->___valueSlots_7); int32_t L_54 = V_2; Object_t * L_55 = ___value; NullCheck(L_53); IL2CPP_ARRAY_BOUNDS_CHECK(L_53, L_54); *((Object_t **)(Object_t **)SZArrayLdElema(L_53, L_54)) = (Object_t *)L_55; int32_t L_56 = (int32_t)(__this->___generation_14); __this->___generation_14 = ((int32_t)((int32_t)L_56+(int32_t)1)); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Clear() extern "C" void Dictionary_2_Clear_m8567_gshared (Dictionary_2_t1471 * __this, const MethodInfo* method) { { __this->___count_10 = 0; Int32U5BU5D_t501* L_0 = (Int32U5BU5D_t501*)(__this->___table_4); Int32U5BU5D_t501* L_1 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_1); Array_Clear_m2479(NULL /*static, unused*/, (Array_t *)(Array_t *)L_0, (int32_t)0, (int32_t)(((int32_t)(((Array_t *)L_1)->max_length))), /*hidden argument*/NULL); Int32U5BU5D_t501* L_2 = (Int32U5BU5D_t501*)(__this->___keySlots_6); Int32U5BU5D_t501* L_3 = (Int32U5BU5D_t501*)(__this->___keySlots_6); NullCheck(L_3); Array_Clear_m2479(NULL /*static, unused*/, (Array_t *)(Array_t *)L_2, (int32_t)0, (int32_t)(((int32_t)(((Array_t *)L_3)->max_length))), /*hidden argument*/NULL); ObjectU5BU5D_t207* L_4 = (ObjectU5BU5D_t207*)(__this->___valueSlots_7); ObjectU5BU5D_t207* L_5 = (ObjectU5BU5D_t207*)(__this->___valueSlots_7); NullCheck(L_5); Array_Clear_m2479(NULL /*static, unused*/, (Array_t *)(Array_t *)L_4, (int32_t)0, (int32_t)(((int32_t)(((Array_t *)L_5)->max_length))), /*hidden argument*/NULL); LinkU5BU5D_t1466* L_6 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); LinkU5BU5D_t1466* L_7 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); NullCheck(L_7); Array_Clear_m2479(NULL /*static, unused*/, (Array_t *)(Array_t *)L_6, (int32_t)0, (int32_t)(((int32_t)(((Array_t *)L_7)->max_length))), /*hidden argument*/NULL); __this->___emptySlot_9 = (-1); __this->___touchedSlots_8 = 0; int32_t L_8 = (int32_t)(__this->___generation_14); __this->___generation_14 = ((int32_t)((int32_t)L_8+(int32_t)1)); return; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::ContainsKey(TKey) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern "C" bool Dictionary_2_ContainsKey_m8569_gshared (Dictionary_2_t1471 * __this, int32_t ___key, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; int32_t V_1 = 0; { int32_t L_0 = ___key; goto IL_0016; } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0016: { Object_t* L_2 = (Object_t*)(__this->___hcp_12); int32_t L_3 = ___key; NullCheck((Object_t*)L_2); int32_t L_4 = (int32_t)InterfaceFuncInvoker1< int32_t, int32_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Int32>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_2, (int32_t)L_3); V_0 = (int32_t)((int32_t)((int32_t)L_4|(int32_t)((int32_t)-2147483648))); Int32U5BU5D_t501* L_5 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_6 = V_0; Int32U5BU5D_t501* L_7 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_7); NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, ((int32_t)((int32_t)((int32_t)((int32_t)L_6&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_7)->max_length)))))); int32_t L_8 = ((int32_t)((int32_t)((int32_t)((int32_t)L_6&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_7)->max_length))))); V_1 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_5, L_8))-(int32_t)1)); goto IL_0090; } IL_0048: { LinkU5BU5D_t1466* L_9 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_10 = V_1; NullCheck(L_9); IL2CPP_ARRAY_BOUNDS_CHECK(L_9, L_10); int32_t L_11 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_9, L_10))->___HashCode_0); int32_t L_12 = V_0; if ((!(((uint32_t)L_11) == ((uint32_t)L_12)))) { goto IL_007e; } } { Object_t* L_13 = (Object_t*)(__this->___hcp_12); Int32U5BU5D_t501* L_14 = (Int32U5BU5D_t501*)(__this->___keySlots_6); int32_t L_15 = V_1; NullCheck(L_14); IL2CPP_ARRAY_BOUNDS_CHECK(L_14, L_15); int32_t L_16 = L_15; int32_t L_17 = ___key; NullCheck((Object_t*)L_13); bool L_18 = (bool)InterfaceFuncInvoker2< bool, int32_t, int32_t >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Int32>::Equals(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_13, (int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_14, L_16)), (int32_t)L_17); if (!L_18) { goto IL_007e; } } { return 1; } IL_007e: { LinkU5BU5D_t1466* L_19 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_20 = V_1; NullCheck(L_19); IL2CPP_ARRAY_BOUNDS_CHECK(L_19, L_20); int32_t L_21 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_19, L_20))->___Next_1); V_1 = (int32_t)L_21; } IL_0090: { int32_t L_22 = V_1; if ((!(((uint32_t)L_22) == ((uint32_t)(-1))))) { goto IL_0048; } } { return 0; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::ContainsValue(TValue) extern "C" bool Dictionary_2_ContainsValue_m8571_gshared (Dictionary_2_t1471 * __this, Object_t * ___value, const MethodInfo* method) { Object_t* V_0 = {0}; int32_t V_1 = 0; int32_t V_2 = 0; { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 47)); EqualityComparer_1_t1458 * L_0 = (( EqualityComparer_1_t1458 * (*) (Object_t * /* static, unused */, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 46)->method)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 46)); V_0 = (Object_t*)L_0; V_1 = (int32_t)0; goto IL_0054; } IL_000d: { Int32U5BU5D_t501* L_1 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_2 = V_1; NullCheck(L_1); IL2CPP_ARRAY_BOUNDS_CHECK(L_1, L_2); int32_t L_3 = L_2; V_2 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_1, L_3))-(int32_t)1)); goto IL_0049; } IL_001d: { Object_t* L_4 = V_0; ObjectU5BU5D_t207* L_5 = (ObjectU5BU5D_t207*)(__this->___valueSlots_7); int32_t L_6 = V_2; NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, L_6); int32_t L_7 = L_6; Object_t * L_8 = ___value; NullCheck((Object_t*)L_4); bool L_9 = (bool)InterfaceFuncInvoker2< bool, Object_t *, Object_t * >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Object>::Equals(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 48), (Object_t*)L_4, (Object_t *)(*(Object_t **)(Object_t **)SZArrayLdElema(L_5, L_7)), (Object_t *)L_8); if (!L_9) { goto IL_0037; } } { return 1; } IL_0037: { LinkU5BU5D_t1466* L_10 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_11 = V_2; NullCheck(L_10); IL2CPP_ARRAY_BOUNDS_CHECK(L_10, L_11); int32_t L_12 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_10, L_11))->___Next_1); V_2 = (int32_t)L_12; } IL_0049: { int32_t L_13 = V_2; if ((!(((uint32_t)L_13) == ((uint32_t)(-1))))) { goto IL_001d; } } { int32_t L_14 = V_1; V_1 = (int32_t)((int32_t)((int32_t)L_14+(int32_t)1)); } IL_0054: { int32_t L_15 = V_1; Int32U5BU5D_t501* L_16 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_16); if ((((int32_t)L_15) < ((int32_t)(((int32_t)(((Array_t *)L_16)->max_length)))))) { goto IL_000d; } } { return 0; } } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral273; extern Il2CppCodeGenString* _stringLiteral275; extern Il2CppCodeGenString* _stringLiteral277; extern Il2CppCodeGenString* _stringLiteral1255; extern Il2CppCodeGenString* _stringLiteral2678; extern "C" void Dictionary_2_GetObjectData_m8573_gshared (Dictionary_2_t1471 * __this, SerializationInfo_t317 * ___info, StreamingContext_t318 ___context, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); _stringLiteral273 = il2cpp_codegen_string_literal_from_index(273); _stringLiteral275 = il2cpp_codegen_string_literal_from_index(275); _stringLiteral277 = il2cpp_codegen_string_literal_from_index(277); _stringLiteral1255 = il2cpp_codegen_string_literal_from_index(1255); _stringLiteral2678 = il2cpp_codegen_string_literal_from_index(2678); s_Il2CppMethodIntialized = true; } KeyValuePair_2U5BU5D_t1821* V_0 = {0}; { SerializationInfo_t317 * L_0 = ___info; if (L_0) { goto IL_0011; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral273, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0011: { SerializationInfo_t317 * L_2 = ___info; int32_t L_3 = (int32_t)(__this->___generation_14); NullCheck((SerializationInfo_t317 *)L_2); SerializationInfo_AddValue_m2266((SerializationInfo_t317 *)L_2, (String_t*)_stringLiteral275, (int32_t)L_3, /*hidden argument*/NULL); SerializationInfo_t317 * L_4 = ___info; Object_t* L_5 = (Object_t*)(__this->___hcp_12); NullCheck((SerializationInfo_t317 *)L_4); SerializationInfo_AddValue_m2277((SerializationInfo_t317 *)L_4, (String_t*)_stringLiteral277, (Object_t *)L_5, /*hidden argument*/NULL); V_0 = (KeyValuePair_2U5BU5D_t1821*)NULL; int32_t L_6 = (int32_t)(__this->___count_10); if ((((int32_t)L_6) <= ((int32_t)0))) { goto IL_0055; } } { int32_t L_7 = (int32_t)(__this->___count_10); V_0 = (KeyValuePair_2U5BU5D_t1821*)((KeyValuePair_2U5BU5D_t1821*)SZArrayNew(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 49), L_7)); KeyValuePair_2U5BU5D_t1821* L_8 = V_0; NullCheck((Dictionary_2_t1471 *)__this); (( void (*) (Dictionary_2_t1471 *, KeyValuePair_2U5BU5D_t1821*, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 19)->method)((Dictionary_2_t1471 *)__this, (KeyValuePair_2U5BU5D_t1821*)L_8, (int32_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 19)); } IL_0055: { SerializationInfo_t317 * L_9 = ___info; Int32U5BU5D_t501* L_10 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_10); NullCheck((SerializationInfo_t317 *)L_9); SerializationInfo_AddValue_m2266((SerializationInfo_t317 *)L_9, (String_t*)_stringLiteral1255, (int32_t)(((int32_t)(((Array_t *)L_10)->max_length))), /*hidden argument*/NULL); SerializationInfo_t317 * L_11 = ___info; KeyValuePair_2U5BU5D_t1821* L_12 = V_0; NullCheck((SerializationInfo_t317 *)L_11); SerializationInfo_AddValue_m2277((SerializationInfo_t317 *)L_11, (String_t*)_stringLiteral2678, (Object_t *)(Object_t *)L_12, /*hidden argument*/NULL); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::OnDeserialization(System.Object) extern TypeInfo* Type_t_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral275; extern Il2CppCodeGenString* _stringLiteral277; extern Il2CppCodeGenString* _stringLiteral1255; extern Il2CppCodeGenString* _stringLiteral2678; extern "C" void Dictionary_2_OnDeserialization_m8575_gshared (Dictionary_2_t1471 * __this, Object_t * ___sender, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { Type_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(160); _stringLiteral275 = il2cpp_codegen_string_literal_from_index(275); _stringLiteral277 = il2cpp_codegen_string_literal_from_index(277); _stringLiteral1255 = il2cpp_codegen_string_literal_from_index(1255); _stringLiteral2678 = il2cpp_codegen_string_literal_from_index(2678); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; KeyValuePair_2U5BU5D_t1821* V_1 = {0}; int32_t V_2 = 0; { SerializationInfo_t317 * L_0 = (SerializationInfo_t317 *)(__this->___serialization_info_13); if (L_0) { goto IL_000c; } } { return; } IL_000c: { SerializationInfo_t317 * L_1 = (SerializationInfo_t317 *)(__this->___serialization_info_13); NullCheck((SerializationInfo_t317 *)L_1); int32_t L_2 = SerializationInfo_GetInt32_m2276((SerializationInfo_t317 *)L_1, (String_t*)_stringLiteral275, /*hidden argument*/NULL); __this->___generation_14 = L_2; SerializationInfo_t317 * L_3 = (SerializationInfo_t317 *)(__this->___serialization_info_13); IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_4 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 50)), /*hidden argument*/NULL); NullCheck((SerializationInfo_t317 *)L_3); Object_t * L_5 = SerializationInfo_GetValue_m2267((SerializationInfo_t317 *)L_3, (String_t*)_stringLiteral277, (Type_t *)L_4, /*hidden argument*/NULL); __this->___hcp_12 = ((Object_t*)Castclass(L_5, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35))); SerializationInfo_t317 * L_6 = (SerializationInfo_t317 *)(__this->___serialization_info_13); NullCheck((SerializationInfo_t317 *)L_6); int32_t L_7 = SerializationInfo_GetInt32_m2276((SerializationInfo_t317 *)L_6, (String_t*)_stringLiteral1255, /*hidden argument*/NULL); V_0 = (int32_t)L_7; SerializationInfo_t317 * L_8 = (SerializationInfo_t317 *)(__this->___serialization_info_13); Type_t * L_9 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 51)), /*hidden argument*/NULL); NullCheck((SerializationInfo_t317 *)L_8); Object_t * L_10 = SerializationInfo_GetValue_m2267((SerializationInfo_t317 *)L_8, (String_t*)_stringLiteral2678, (Type_t *)L_9, /*hidden argument*/NULL); V_1 = (KeyValuePair_2U5BU5D_t1821*)((KeyValuePair_2U5BU5D_t1821*)Castclass(L_10, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 20))); int32_t L_11 = V_0; if ((((int32_t)L_11) >= ((int32_t)((int32_t)10)))) { goto IL_0083; } } { V_0 = (int32_t)((int32_t)10); } IL_0083: { int32_t L_12 = V_0; NullCheck((Dictionary_2_t1471 *)__this); (( void (*) (Dictionary_2_t1471 *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 39)->method)((Dictionary_2_t1471 *)__this, (int32_t)L_12, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 39)); __this->___count_10 = 0; KeyValuePair_2U5BU5D_t1821* L_13 = V_1; if (!L_13) { goto IL_00c9; } } { V_2 = (int32_t)0; goto IL_00c0; } IL_009e: { KeyValuePair_2U5BU5D_t1821* L_14 = V_1; int32_t L_15 = V_2; NullCheck(L_14); IL2CPP_ARRAY_BOUNDS_CHECK(L_14, L_15); int32_t L_16 = (( int32_t (*) (KeyValuePair_2_t1472 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((KeyValuePair_2_t1472 *)((KeyValuePair_2_t1472 *)(KeyValuePair_2_t1472 *)SZArrayLdElema(L_14, L_15)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); KeyValuePair_2U5BU5D_t1821* L_17 = V_1; int32_t L_18 = V_2; NullCheck(L_17); IL2CPP_ARRAY_BOUNDS_CHECK(L_17, L_18); Object_t * L_19 = (( Object_t * (*) (KeyValuePair_2_t1472 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)->method)((KeyValuePair_2_t1472 *)((KeyValuePair_2_t1472 *)(KeyValuePair_2_t1472 *)SZArrayLdElema(L_17, L_18)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); NullCheck((Dictionary_2_t1471 *)__this); VirtActionInvoker2< int32_t, Object_t * >::Invoke(17 /* System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Add(TKey,TValue) */, (Dictionary_2_t1471 *)__this, (int32_t)L_16, (Object_t *)L_19); int32_t L_20 = V_2; V_2 = (int32_t)((int32_t)((int32_t)L_20+(int32_t)1)); } IL_00c0: { int32_t L_21 = V_2; KeyValuePair_2U5BU5D_t1821* L_22 = V_1; NullCheck(L_22); if ((((int32_t)L_21) < ((int32_t)(((int32_t)(((Array_t *)L_22)->max_length)))))) { goto IL_009e; } } IL_00c9: { int32_t L_23 = (int32_t)(__this->___generation_14); __this->___generation_14 = ((int32_t)((int32_t)L_23+(int32_t)1)); __this->___serialization_info_13 = (SerializationInfo_t317 *)NULL; return; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Remove(TKey) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern TypeInfo* Int32_t327_il2cpp_TypeInfo_var; extern TypeInfo* Object_t_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern "C" bool Dictionary_2_Remove_m8577_gshared (Dictionary_2_t1471 * __this, int32_t ___key, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); Int32_t327_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(35); Object_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(0); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); 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; Object_t * V_5 = {0}; { int32_t L_0 = ___key; goto IL_0016; } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0016: { Object_t* L_2 = (Object_t*)(__this->___hcp_12); int32_t L_3 = ___key; NullCheck((Object_t*)L_2); int32_t L_4 = (int32_t)InterfaceFuncInvoker1< int32_t, int32_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Int32>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_2, (int32_t)L_3); V_0 = (int32_t)((int32_t)((int32_t)L_4|(int32_t)((int32_t)-2147483648))); int32_t L_5 = V_0; Int32U5BU5D_t501* L_6 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_6); V_1 = (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_6)->max_length))))); Int32U5BU5D_t501* L_7 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_8 = V_1; NullCheck(L_7); IL2CPP_ARRAY_BOUNDS_CHECK(L_7, L_8); int32_t L_9 = L_8; V_2 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_7, L_9))-(int32_t)1)); int32_t L_10 = V_2; if ((!(((uint32_t)L_10) == ((uint32_t)(-1))))) { goto IL_004e; } } { return 0; } IL_004e: { V_3 = (int32_t)(-1); } IL_0050: { LinkU5BU5D_t1466* L_11 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_12 = V_2; NullCheck(L_11); IL2CPP_ARRAY_BOUNDS_CHECK(L_11, L_12); int32_t L_13 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_11, L_12))->___HashCode_0); int32_t L_14 = V_0; if ((!(((uint32_t)L_13) == ((uint32_t)L_14)))) { goto IL_0089; } } { Object_t* L_15 = (Object_t*)(__this->___hcp_12); Int32U5BU5D_t501* L_16 = (Int32U5BU5D_t501*)(__this->___keySlots_6); int32_t L_17 = V_2; NullCheck(L_16); IL2CPP_ARRAY_BOUNDS_CHECK(L_16, L_17); int32_t L_18 = L_17; int32_t L_19 = ___key; NullCheck((Object_t*)L_15); bool L_20 = (bool)InterfaceFuncInvoker2< bool, int32_t, int32_t >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Int32>::Equals(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_15, (int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_16, L_18)), (int32_t)L_19); if (!L_20) { goto IL_0089; } } { goto IL_00a4; } IL_0089: { int32_t L_21 = V_2; V_3 = (int32_t)L_21; LinkU5BU5D_t1466* L_22 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_23 = V_2; NullCheck(L_22); IL2CPP_ARRAY_BOUNDS_CHECK(L_22, L_23); int32_t L_24 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_22, L_23))->___Next_1); V_2 = (int32_t)L_24; int32_t L_25 = V_2; if ((!(((uint32_t)L_25) == ((uint32_t)(-1))))) { goto IL_0050; } } IL_00a4: { int32_t L_26 = V_2; if ((!(((uint32_t)L_26) == ((uint32_t)(-1))))) { goto IL_00ad; } } { return 0; } IL_00ad: { int32_t L_27 = (int32_t)(__this->___count_10); __this->___count_10 = ((int32_t)((int32_t)L_27-(int32_t)1)); int32_t L_28 = V_3; if ((!(((uint32_t)L_28) == ((uint32_t)(-1))))) { goto IL_00e2; } } { Int32U5BU5D_t501* L_29 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_30 = V_1; LinkU5BU5D_t1466* L_31 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_32 = V_2; NullCheck(L_31); IL2CPP_ARRAY_BOUNDS_CHECK(L_31, L_32); int32_t L_33 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_31, L_32))->___Next_1); NullCheck(L_29); IL2CPP_ARRAY_BOUNDS_CHECK(L_29, L_30); *((int32_t*)(int32_t*)SZArrayLdElema(L_29, L_30)) = (int32_t)((int32_t)((int32_t)L_33+(int32_t)1)); goto IL_0104; } IL_00e2: { LinkU5BU5D_t1466* L_34 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_35 = V_3; NullCheck(L_34); IL2CPP_ARRAY_BOUNDS_CHECK(L_34, L_35); LinkU5BU5D_t1466* L_36 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_37 = V_2; NullCheck(L_36); IL2CPP_ARRAY_BOUNDS_CHECK(L_36, L_37); int32_t L_38 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_36, L_37))->___Next_1); ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_34, L_35))->___Next_1 = L_38; } IL_0104: { LinkU5BU5D_t1466* L_39 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_40 = V_2; NullCheck(L_39); IL2CPP_ARRAY_BOUNDS_CHECK(L_39, L_40); int32_t L_41 = (int32_t)(__this->___emptySlot_9); ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_39, L_40))->___Next_1 = L_41; int32_t L_42 = V_2; __this->___emptySlot_9 = L_42; LinkU5BU5D_t1466* L_43 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_44 = V_2; NullCheck(L_43); IL2CPP_ARRAY_BOUNDS_CHECK(L_43, L_44); ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_43, L_44))->___HashCode_0 = 0; Int32U5BU5D_t501* L_45 = (Int32U5BU5D_t501*)(__this->___keySlots_6); int32_t L_46 = V_2; Initobj (Int32_t327_il2cpp_TypeInfo_var, (&V_4)); int32_t L_47 = V_4; NullCheck(L_45); IL2CPP_ARRAY_BOUNDS_CHECK(L_45, L_46); *((int32_t*)(int32_t*)SZArrayLdElema(L_45, L_46)) = (int32_t)L_47; ObjectU5BU5D_t207* L_48 = (ObjectU5BU5D_t207*)(__this->___valueSlots_7); int32_t L_49 = V_2; Initobj (Object_t_il2cpp_TypeInfo_var, (&V_5)); Object_t * L_50 = V_5; NullCheck(L_48); IL2CPP_ARRAY_BOUNDS_CHECK(L_48, L_49); *((Object_t **)(Object_t **)SZArrayLdElema(L_48, L_49)) = (Object_t *)L_50; int32_t L_51 = (int32_t)(__this->___generation_14); __this->___generation_14 = ((int32_t)((int32_t)L_51+(int32_t)1)); return 1; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::TryGetValue(TKey,TValue&) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern TypeInfo* Object_t_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern "C" bool Dictionary_2_TryGetValue_m8579_gshared (Dictionary_2_t1471 * __this, int32_t ___key, Object_t ** ___value, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); Object_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(0); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; int32_t V_1 = 0; Object_t * V_2 = {0}; { int32_t L_0 = ___key; goto IL_0016; } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0016: { Object_t* L_2 = (Object_t*)(__this->___hcp_12); int32_t L_3 = ___key; NullCheck((Object_t*)L_2); int32_t L_4 = (int32_t)InterfaceFuncInvoker1< int32_t, int32_t >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Int32>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_2, (int32_t)L_3); V_0 = (int32_t)((int32_t)((int32_t)L_4|(int32_t)((int32_t)-2147483648))); Int32U5BU5D_t501* L_5 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_6 = V_0; Int32U5BU5D_t501* L_7 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_7); NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, ((int32_t)((int32_t)((int32_t)((int32_t)L_6&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_7)->max_length)))))); int32_t L_8 = ((int32_t)((int32_t)((int32_t)((int32_t)L_6&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_7)->max_length))))); V_1 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_5, L_8))-(int32_t)1)); goto IL_00a2; } IL_0048: { LinkU5BU5D_t1466* L_9 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_10 = V_1; NullCheck(L_9); IL2CPP_ARRAY_BOUNDS_CHECK(L_9, L_10); int32_t L_11 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_9, L_10))->___HashCode_0); int32_t L_12 = V_0; if ((!(((uint32_t)L_11) == ((uint32_t)L_12)))) { goto IL_0090; } } { Object_t* L_13 = (Object_t*)(__this->___hcp_12); Int32U5BU5D_t501* L_14 = (Int32U5BU5D_t501*)(__this->___keySlots_6); int32_t L_15 = V_1; NullCheck(L_14); IL2CPP_ARRAY_BOUNDS_CHECK(L_14, L_15); int32_t L_16 = L_15; int32_t L_17 = ___key; NullCheck((Object_t*)L_13); bool L_18 = (bool)InterfaceFuncInvoker2< bool, int32_t, int32_t >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Int32>::Equals(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_13, (int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_14, L_16)), (int32_t)L_17); if (!L_18) { goto IL_0090; } } { Object_t ** L_19 = ___value; ObjectU5BU5D_t207* L_20 = (ObjectU5BU5D_t207*)(__this->___valueSlots_7); int32_t L_21 = V_1; NullCheck(L_20); IL2CPP_ARRAY_BOUNDS_CHECK(L_20, L_21); int32_t L_22 = L_21; *L_19 = (*(Object_t **)(Object_t **)SZArrayLdElema(L_20, L_22)); return 1; } IL_0090: { LinkU5BU5D_t1466* L_23 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_24 = V_1; NullCheck(L_23); IL2CPP_ARRAY_BOUNDS_CHECK(L_23, L_24); int32_t L_25 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_23, L_24))->___Next_1); V_1 = (int32_t)L_25; } IL_00a2: { int32_t L_26 = V_1; if ((!(((uint32_t)L_26) == ((uint32_t)(-1))))) { goto IL_0048; } } { Object_t ** L_27 = ___value; Initobj (Object_t_il2cpp_TypeInfo_var, (&V_2)); Object_t * L_28 = V_2; *L_27 = L_28; return 0; } } // System.Collections.Generic.Dictionary`2/KeyCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::get_Keys() extern "C" KeyCollection_t1476 * Dictionary_2_get_Keys_m8581_gshared (Dictionary_2_t1471 * __this, const MethodInfo* method) { { KeyCollection_t1476 * L_0 = (KeyCollection_t1476 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 52)); (( void (*) (KeyCollection_t1476 *, Dictionary_2_t1471 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 53)->method)(L_0, (Dictionary_2_t1471 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 53)); return L_0; } } // System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::get_Values() extern "C" ValueCollection_t1480 * Dictionary_2_get_Values_m8583_gshared (Dictionary_2_t1471 * __this, const MethodInfo* method) { { ValueCollection_t1480 * L_0 = (ValueCollection_t1480 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 54)); (( void (*) (ValueCollection_t1480 *, Dictionary_2_t1471 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 55)->method)(L_0, (Dictionary_2_t1471 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 55)); return L_0; } } // TKey System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::ToTKey(System.Object) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern TypeInfo* Type_t_il2cpp_TypeInfo_var; extern TypeInfo* String_t_il2cpp_TypeInfo_var; extern TypeInfo* ArgumentException_t320_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern Il2CppCodeGenString* _stringLiteral2679; extern "C" int32_t Dictionary_2_ToTKey_m8585_gshared (Dictionary_2_t1471 * __this, Object_t * ___key, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); Type_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(160); String_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(23); ArgumentException_t320_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(3); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); _stringLiteral2679 = il2cpp_codegen_string_literal_from_index(2679); s_Il2CppMethodIntialized = true; } { Object_t * L_0 = ___key; if (L_0) { goto IL_0011; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0011: { Object_t * L_2 = ___key; if (((Object_t *)IsInst(L_2, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)))) { goto IL_0040; } } { IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_3 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 56)), /*hidden argument*/NULL); NullCheck((Type_t *)L_3); String_t* L_4 = (String_t*)VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Type::ToString() */, (Type_t *)L_3); IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var); String_t* L_5 = String_Concat_m1205(NULL /*static, unused*/, (String_t*)_stringLiteral2679, (String_t*)L_4, /*hidden argument*/NULL); ArgumentException_t320 * L_6 = (ArgumentException_t320 *)il2cpp_codegen_object_new (ArgumentException_t320_il2cpp_TypeInfo_var); ArgumentException__ctor_m2258(L_6, (String_t*)L_5, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_6); } IL_0040: { Object_t * L_7 = ___key; return ((*(int32_t*)((int32_t*)UnBox (L_7, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10))))); } } // TValue System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::ToTValue(System.Object) extern TypeInfo* Type_t_il2cpp_TypeInfo_var; extern TypeInfo* Object_t_il2cpp_TypeInfo_var; extern TypeInfo* String_t_il2cpp_TypeInfo_var; extern TypeInfo* ArgumentException_t320_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2679; extern Il2CppCodeGenString* _stringLiteral462; extern "C" Object_t * Dictionary_2_ToTValue_m8587_gshared (Dictionary_2_t1471 * __this, Object_t * ___value, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { Type_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(160); Object_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(0); String_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(23); ArgumentException_t320_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(3); _stringLiteral2679 = il2cpp_codegen_string_literal_from_index(2679); _stringLiteral462 = il2cpp_codegen_string_literal_from_index(462); s_Il2CppMethodIntialized = true; } Object_t * V_0 = {0}; { Object_t * L_0 = ___value; if (L_0) { goto IL_0024; } } { IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_1 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 57)), /*hidden argument*/NULL); NullCheck((Type_t *)L_1); bool L_2 = (bool)VirtFuncInvoker0< bool >::Invoke(33 /* System.Boolean System.Type::get_IsValueType() */, (Type_t *)L_1); if (L_2) { goto IL_0024; } } { Initobj (Object_t_il2cpp_TypeInfo_var, (&V_0)); Object_t * L_3 = V_0; return L_3; } IL_0024: { Object_t * L_4 = ___value; if (((Object_t *)IsInst(L_4, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 14)))) { goto IL_0053; } } { IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_5 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 57)), /*hidden argument*/NULL); NullCheck((Type_t *)L_5); String_t* L_6 = (String_t*)VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Type::ToString() */, (Type_t *)L_5); IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var); String_t* L_7 = String_Concat_m1205(NULL /*static, unused*/, (String_t*)_stringLiteral2679, (String_t*)L_6, /*hidden argument*/NULL); ArgumentException_t320 * L_8 = (ArgumentException_t320 *)il2cpp_codegen_object_new (ArgumentException_t320_il2cpp_TypeInfo_var); ArgumentException__ctor_m2258(L_8, (String_t*)L_7, (String_t*)_stringLiteral462, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_8); } IL_0053: { Object_t * L_9 = ___value; return ((Object_t *)Castclass(L_9, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 14))); } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::ContainsKeyValuePair(System.Collections.Generic.KeyValuePair`2<TKey,TValue>) extern "C" bool Dictionary_2_ContainsKeyValuePair_m8589_gshared (Dictionary_2_t1471 * __this, KeyValuePair_2_t1472 ___pair, const MethodInfo* method) { Object_t * V_0 = {0}; { int32_t L_0 = (( int32_t (*) (KeyValuePair_2_t1472 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((KeyValuePair_2_t1472 *)(&___pair), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); NullCheck((Dictionary_2_t1471 *)__this); bool L_1 = (bool)VirtFuncInvoker2< bool, int32_t, Object_t ** >::Invoke(18 /* System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::TryGetValue(TKey,TValue&) */, (Dictionary_2_t1471 *)__this, (int32_t)L_0, (Object_t **)(&V_0)); if (L_1) { goto IL_0016; } } { return 0; } IL_0016: { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 47)); EqualityComparer_1_t1458 * L_2 = (( EqualityComparer_1_t1458 * (*) (Object_t * /* static, unused */, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 46)->method)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 46)); Object_t * L_3 = (( Object_t * (*) (KeyValuePair_2_t1472 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)->method)((KeyValuePair_2_t1472 *)(&___pair), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); Object_t * L_4 = V_0; NullCheck((EqualityComparer_1_t1458 *)L_2); bool L_5 = (bool)VirtFuncInvoker2< bool, Object_t *, Object_t * >::Invoke(9 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::Equals(T,T) */, (EqualityComparer_1_t1458 *)L_2, (Object_t *)L_3, (Object_t *)L_4); return L_5; } } // System.Collections.Generic.Dictionary`2/Enumerator<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::GetEnumerator() extern "C" Enumerator_t1478 Dictionary_2_GetEnumerator_m8591_gshared (Dictionary_2_t1471 * __this, const MethodInfo* method) { { Enumerator_t1478 L_0 = {0}; (( void (*) (Enumerator_t1478 *, Dictionary_2_t1471 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 32)->method)(&L_0, (Dictionary_2_t1471 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 32)); return L_0; } } // System.Collections.DictionaryEntry System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::<CopyTo>m__0(TKey,TValue) extern "C" DictionaryEntry_t567 Dictionary_2_U3CCopyToU3Em__0_m8593_gshared (Object_t * __this /* static, unused */, int32_t ___key, Object_t * ___value, const MethodInfo* method) { { int32_t L_0 = ___key; int32_t L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10), &L_1); Object_t * L_3 = ___value; DictionaryEntry_t567 L_4 = {0}; DictionaryEntry__ctor_m2254(&L_4, (Object_t *)L_2, (Object_t *)L_3, /*hidden argument*/NULL); return L_4; } } #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif // System.Array/InternalEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>> #include "mscorlib_System_Array_InternalEnumerator_1_gen_14.h" #ifndef _MSC_VER #else #endif // System.Array/InternalEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>> #include "mscorlib_System_Array_InternalEnumerator_1_gen_14MethodDeclarations.h" struct Array_t; // Declaration !!0 System.Array::InternalArray__get_Item<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>(System.Int32) // !!0 System.Array::InternalArray__get_Item<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>(System.Int32) extern "C" KeyValuePair_2_t1472 Array_InternalArray__get_Item_TisKeyValuePair_2_t1472_m12143_gshared (Array_t * __this, int32_t p0, const MethodInfo* method); #define Array_InternalArray__get_Item_TisKeyValuePair_2_t1472_m12143(__this, p0, method) (( KeyValuePair_2_t1472 (*) (Array_t *, int32_t, const MethodInfo*))Array_InternalArray__get_Item_TisKeyValuePair_2_t1472_m12143_gshared)(__this, p0, method) // System.Void System.Array/InternalEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>::.ctor(System.Array) extern "C" void InternalEnumerator_1__ctor_m8594_gshared (InternalEnumerator_1_t1473 * __this, Array_t * ___array, const MethodInfo* method) { { Array_t * L_0 = ___array; __this->___array_0 = L_0; __this->___idx_1 = ((int32_t)-2); return; } } // System.Object System.Array/InternalEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>::System.Collections.IEnumerator.get_Current() extern "C" Object_t * InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m8595_gshared (InternalEnumerator_1_t1473 * __this, const MethodInfo* method) { { KeyValuePair_2_t1472 L_0 = (( KeyValuePair_2_t1472 (*) (InternalEnumerator_1_t1473 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((InternalEnumerator_1_t1473 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); KeyValuePair_2_t1472 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1), &L_1); return L_2; } } // System.Void System.Array/InternalEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>::Dispose() extern "C" void InternalEnumerator_1_Dispose_m8596_gshared (InternalEnumerator_1_t1473 * __this, const MethodInfo* method) { { __this->___idx_1 = ((int32_t)-2); return; } } // System.Boolean System.Array/InternalEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>::MoveNext() extern "C" bool InternalEnumerator_1_MoveNext_m8597_gshared (InternalEnumerator_1_t1473 * __this, const MethodInfo* method) { int32_t V_0 = 0; int32_t G_B5_0 = 0; { int32_t L_0 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_0) == ((uint32_t)((int32_t)-2))))) { goto IL_001e; } } { Array_t * L_1 = (Array_t *)(__this->___array_0); NullCheck((Array_t *)L_1); int32_t L_2 = Array_get_Length_m2256((Array_t *)L_1, /*hidden argument*/NULL); __this->___idx_1 = L_2; } IL_001e: { int32_t L_3 = (int32_t)(__this->___idx_1); if ((((int32_t)L_3) == ((int32_t)(-1)))) { goto IL_0043; } } { int32_t L_4 = (int32_t)(__this->___idx_1); int32_t L_5 = (int32_t)((int32_t)((int32_t)L_4-(int32_t)1)); V_0 = (int32_t)L_5; __this->___idx_1 = L_5; int32_t L_6 = V_0; G_B5_0 = ((((int32_t)((((int32_t)L_6) == ((int32_t)(-1)))? 1 : 0)) == ((int32_t)0))? 1 : 0); goto IL_0044; } IL_0043: { G_B5_0 = 0; } IL_0044: { return G_B5_0; } } // T System.Array/InternalEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>::get_Current() extern TypeInfo* InvalidOperationException_t580_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2671; extern Il2CppCodeGenString* _stringLiteral2672; extern "C" KeyValuePair_2_t1472 InternalEnumerator_1_get_Current_m8598_gshared (InternalEnumerator_1_t1473 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { InvalidOperationException_t580_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(236); _stringLiteral2671 = il2cpp_codegen_string_literal_from_index(2671); _stringLiteral2672 = il2cpp_codegen_string_literal_from_index(2672); s_Il2CppMethodIntialized = true; } { int32_t L_0 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_0) == ((uint32_t)((int32_t)-2))))) { goto IL_0018; } } { InvalidOperationException_t580 * L_1 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_1, (String_t*)_stringLiteral2671, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0018: { int32_t L_2 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_2) == ((uint32_t)(-1))))) { goto IL_002f; } } { InvalidOperationException_t580 * L_3 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_3, (String_t*)_stringLiteral2672, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_3); } IL_002f: { Array_t * L_4 = (Array_t *)(__this->___array_0); Array_t * L_5 = (Array_t *)(__this->___array_0); NullCheck((Array_t *)L_5); int32_t L_6 = Array_get_Length_m2256((Array_t *)L_5, /*hidden argument*/NULL); int32_t L_7 = (int32_t)(__this->___idx_1); NullCheck((Array_t *)L_4); KeyValuePair_2_t1472 L_8 = (( KeyValuePair_2_t1472 (*) (Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((Array_t *)L_4, (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_6-(int32_t)1))-(int32_t)L_7)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); return L_8; } } #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>::.ctor(TKey,TValue) extern "C" void KeyValuePair_2__ctor_m8599_gshared (KeyValuePair_2_t1472 * __this, int32_t ___key, Object_t * ___value, const MethodInfo* method) { { int32_t L_0 = ___key; (( void (*) (KeyValuePair_2_t1472 *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((KeyValuePair_2_t1472 *)__this, (int32_t)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); Object_t * L_1 = ___value; (( void (*) (KeyValuePair_2_t1472 *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((KeyValuePair_2_t1472 *)__this, (Object_t *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); return; } } // TKey System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>::get_Key() extern "C" int32_t KeyValuePair_2_get_Key_m8600_gshared (KeyValuePair_2_t1472 * __this, const MethodInfo* method) { { int32_t L_0 = (int32_t)(__this->___key_0); return L_0; } } // System.Void System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>::set_Key(TKey) extern "C" void KeyValuePair_2_set_Key_m8601_gshared (KeyValuePair_2_t1472 * __this, int32_t ___value, const MethodInfo* method) { { int32_t L_0 = ___value; __this->___key_0 = L_0; return; } } // TValue System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>::get_Value() extern "C" Object_t * KeyValuePair_2_get_Value_m8602_gshared (KeyValuePair_2_t1472 * __this, const MethodInfo* method) { { Object_t * L_0 = (Object_t *)(__this->___value_1); return L_0; } } // System.Void System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>::set_Value(TValue) extern "C" void KeyValuePair_2_set_Value_m8603_gshared (KeyValuePair_2_t1472 * __this, Object_t * ___value, const MethodInfo* method) { { Object_t * L_0 = ___value; __this->___value_1 = L_0; return; } } // System.String System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>::ToString() // System.Int32 #include "mscorlib_System_Int32MethodDeclarations.h" extern TypeInfo* StringU5BU5D_t204_il2cpp_TypeInfo_var; extern TypeInfo* String_t_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral188; extern Il2CppCodeGenString* _stringLiteral252; extern Il2CppCodeGenString* _stringLiteral189; extern "C" String_t* KeyValuePair_2_ToString_m8604_gshared (KeyValuePair_2_t1472 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { StringU5BU5D_t204_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(84); String_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(23); _stringLiteral188 = il2cpp_codegen_string_literal_from_index(188); _stringLiteral252 = il2cpp_codegen_string_literal_from_index(252); _stringLiteral189 = il2cpp_codegen_string_literal_from_index(189); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; Object_t * V_1 = {0}; int32_t G_B2_0 = 0; StringU5BU5D_t204* G_B2_1 = {0}; StringU5BU5D_t204* G_B2_2 = {0}; int32_t G_B1_0 = 0; StringU5BU5D_t204* G_B1_1 = {0}; StringU5BU5D_t204* G_B1_2 = {0}; String_t* G_B3_0 = {0}; int32_t G_B3_1 = 0; StringU5BU5D_t204* G_B3_2 = {0}; StringU5BU5D_t204* G_B3_3 = {0}; int32_t G_B5_0 = 0; StringU5BU5D_t204* G_B5_1 = {0}; StringU5BU5D_t204* G_B5_2 = {0}; int32_t G_B4_0 = 0; StringU5BU5D_t204* G_B4_1 = {0}; StringU5BU5D_t204* G_B4_2 = {0}; String_t* G_B6_0 = {0}; int32_t G_B6_1 = 0; StringU5BU5D_t204* G_B6_2 = {0}; StringU5BU5D_t204* G_B6_3 = {0}; { StringU5BU5D_t204* L_0 = (StringU5BU5D_t204*)((StringU5BU5D_t204*)SZArrayNew(StringU5BU5D_t204_il2cpp_TypeInfo_var, 5)); NullCheck(L_0); IL2CPP_ARRAY_BOUNDS_CHECK(L_0, 0); ArrayElementTypeCheck (L_0, _stringLiteral188); *((String_t**)(String_t**)SZArrayLdElema(L_0, 0)) = (String_t*)_stringLiteral188; StringU5BU5D_t204* L_1 = (StringU5BU5D_t204*)L_0; int32_t L_2 = (( int32_t (*) (KeyValuePair_2_t1472 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((KeyValuePair_2_t1472 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); } { int32_t L_3 = (( int32_t (*) (KeyValuePair_2_t1472 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((KeyValuePair_2_t1472 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); V_0 = (int32_t)L_3; NullCheck((int32_t*)(&V_0)); String_t* L_4 = Int32_ToString_m1243((int32_t*)(&V_0), NULL); G_B3_0 = L_4; G_B3_1 = G_B1_0; G_B3_2 = G_B1_1; G_B3_3 = G_B1_2; goto IL_003e; } IL_0039: { IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var); String_t* L_5 = ((String_t_StaticFields*)String_t_il2cpp_TypeInfo_var->static_fields)->___Empty_2; G_B3_0 = L_5; G_B3_1 = G_B2_0; G_B3_2 = G_B2_1; G_B3_3 = G_B2_2; } IL_003e: { NullCheck(G_B3_2); IL2CPP_ARRAY_BOUNDS_CHECK(G_B3_2, G_B3_1); ArrayElementTypeCheck (G_B3_2, G_B3_0); *((String_t**)(String_t**)SZArrayLdElema(G_B3_2, G_B3_1)) = (String_t*)G_B3_0; StringU5BU5D_t204* L_6 = (StringU5BU5D_t204*)G_B3_3; NullCheck(L_6); IL2CPP_ARRAY_BOUNDS_CHECK(L_6, 2); ArrayElementTypeCheck (L_6, _stringLiteral252); *((String_t**)(String_t**)SZArrayLdElema(L_6, 2)) = (String_t*)_stringLiteral252; StringU5BU5D_t204* L_7 = (StringU5BU5D_t204*)L_6; Object_t * L_8 = (( Object_t * (*) (KeyValuePair_2_t1472 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((KeyValuePair_2_t1472 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); G_B4_0 = 3; G_B4_1 = L_7; G_B4_2 = L_7; if (!L_8) { G_B5_0 = 3; G_B5_1 = L_7; G_B5_2 = L_7; goto IL_0072; } } { Object_t * L_9 = (( Object_t * (*) (KeyValuePair_2_t1472 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((KeyValuePair_2_t1472 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); V_1 = (Object_t *)L_9; NullCheck((Object_t *)(*(&V_1))); String_t* L_10 = (String_t*)VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, (Object_t *)(*(&V_1))); G_B6_0 = L_10; G_B6_1 = G_B4_0; G_B6_2 = G_B4_1; G_B6_3 = G_B4_2; goto IL_0077; } IL_0072: { IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var); String_t* L_11 = ((String_t_StaticFields*)String_t_il2cpp_TypeInfo_var->static_fields)->___Empty_2; G_B6_0 = L_11; G_B6_1 = G_B5_0; G_B6_2 = G_B5_1; G_B6_3 = G_B5_2; } IL_0077: { NullCheck(G_B6_2); IL2CPP_ARRAY_BOUNDS_CHECK(G_B6_2, G_B6_1); ArrayElementTypeCheck (G_B6_2, G_B6_0); *((String_t**)(String_t**)SZArrayLdElema(G_B6_2, G_B6_1)) = (String_t*)G_B6_0; StringU5BU5D_t204* L_12 = (StringU5BU5D_t204*)G_B6_3; NullCheck(L_12); IL2CPP_ARRAY_BOUNDS_CHECK(L_12, 4); ArrayElementTypeCheck (L_12, _stringLiteral189); *((String_t**)(String_t**)SZArrayLdElema(L_12, 4)) = (String_t*)_stringLiteral189; IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var); String_t* L_13 = String_Concat_m1245(NULL /*static, unused*/, (StringU5BU5D_t204*)L_12, /*hidden argument*/NULL); return L_13; } } #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif // System.Array/InternalEnumerator`1<System.Int32> #include "mscorlib_System_Array_InternalEnumerator_1_gen_15.h" #ifndef _MSC_VER #else #endif // System.Array/InternalEnumerator`1<System.Int32> #include "mscorlib_System_Array_InternalEnumerator_1_gen_15MethodDeclarations.h" struct Array_t; // Declaration !!0 System.Array::InternalArray__get_Item<System.Int32>(System.Int32) // !!0 System.Array::InternalArray__get_Item<System.Int32>(System.Int32) extern "C" int32_t Array_InternalArray__get_Item_TisInt32_t327_m12154_gshared (Array_t * __this, int32_t p0, const MethodInfo* method); #define Array_InternalArray__get_Item_TisInt32_t327_m12154(__this, p0, method) (( int32_t (*) (Array_t *, int32_t, const MethodInfo*))Array_InternalArray__get_Item_TisInt32_t327_m12154_gshared)(__this, p0, method) // System.Void System.Array/InternalEnumerator`1<System.Int32>::.ctor(System.Array) extern "C" void InternalEnumerator_1__ctor_m8605_gshared (InternalEnumerator_1_t1474 * __this, Array_t * ___array, const MethodInfo* method) { { Array_t * L_0 = ___array; __this->___array_0 = L_0; __this->___idx_1 = ((int32_t)-2); return; } } // System.Object System.Array/InternalEnumerator`1<System.Int32>::System.Collections.IEnumerator.get_Current() extern "C" Object_t * InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m8606_gshared (InternalEnumerator_1_t1474 * __this, const MethodInfo* method) { { int32_t L_0 = (( int32_t (*) (InternalEnumerator_1_t1474 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((InternalEnumerator_1_t1474 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); int32_t L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1), &L_1); return L_2; } } // System.Void System.Array/InternalEnumerator`1<System.Int32>::Dispose() extern "C" void InternalEnumerator_1_Dispose_m8607_gshared (InternalEnumerator_1_t1474 * __this, const MethodInfo* method) { { __this->___idx_1 = ((int32_t)-2); return; } } // System.Boolean System.Array/InternalEnumerator`1<System.Int32>::MoveNext() extern "C" bool InternalEnumerator_1_MoveNext_m8608_gshared (InternalEnumerator_1_t1474 * __this, const MethodInfo* method) { int32_t V_0 = 0; int32_t G_B5_0 = 0; { int32_t L_0 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_0) == ((uint32_t)((int32_t)-2))))) { goto IL_001e; } } { Array_t * L_1 = (Array_t *)(__this->___array_0); NullCheck((Array_t *)L_1); int32_t L_2 = Array_get_Length_m2256((Array_t *)L_1, /*hidden argument*/NULL); __this->___idx_1 = L_2; } IL_001e: { int32_t L_3 = (int32_t)(__this->___idx_1); if ((((int32_t)L_3) == ((int32_t)(-1)))) { goto IL_0043; } } { int32_t L_4 = (int32_t)(__this->___idx_1); int32_t L_5 = (int32_t)((int32_t)((int32_t)L_4-(int32_t)1)); V_0 = (int32_t)L_5; __this->___idx_1 = L_5; int32_t L_6 = V_0; G_B5_0 = ((((int32_t)((((int32_t)L_6) == ((int32_t)(-1)))? 1 : 0)) == ((int32_t)0))? 1 : 0); goto IL_0044; } IL_0043: { G_B5_0 = 0; } IL_0044: { return G_B5_0; } } // T System.Array/InternalEnumerator`1<System.Int32>::get_Current() extern TypeInfo* InvalidOperationException_t580_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2671; extern Il2CppCodeGenString* _stringLiteral2672; extern "C" int32_t InternalEnumerator_1_get_Current_m8609_gshared (InternalEnumerator_1_t1474 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { InvalidOperationException_t580_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(236); _stringLiteral2671 = il2cpp_codegen_string_literal_from_index(2671); _stringLiteral2672 = il2cpp_codegen_string_literal_from_index(2672); s_Il2CppMethodIntialized = true; } { int32_t L_0 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_0) == ((uint32_t)((int32_t)-2))))) { goto IL_0018; } } { InvalidOperationException_t580 * L_1 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_1, (String_t*)_stringLiteral2671, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0018: { int32_t L_2 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_2) == ((uint32_t)(-1))))) { goto IL_002f; } } { InvalidOperationException_t580 * L_3 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_3, (String_t*)_stringLiteral2672, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_3); } IL_002f: { Array_t * L_4 = (Array_t *)(__this->___array_0); Array_t * L_5 = (Array_t *)(__this->___array_0); NullCheck((Array_t *)L_5); int32_t L_6 = Array_get_Length_m2256((Array_t *)L_5, /*hidden argument*/NULL); int32_t L_7 = (int32_t)(__this->___idx_1); NullCheck((Array_t *)L_4); int32_t L_8 = (( int32_t (*) (Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((Array_t *)L_4, (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_6-(int32_t)1))-(int32_t)L_7)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); return L_8; } } #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif // System.Array/InternalEnumerator`1<System.Collections.Generic.Link> #include "mscorlib_System_Array_InternalEnumerator_1_gen_16.h" #ifndef _MSC_VER #else #endif // System.Array/InternalEnumerator`1<System.Collections.Generic.Link> #include "mscorlib_System_Array_InternalEnumerator_1_gen_16MethodDeclarations.h" struct Array_t; // Declaration !!0 System.Array::InternalArray__get_Item<System.Collections.Generic.Link>(System.Int32) // !!0 System.Array::InternalArray__get_Item<System.Collections.Generic.Link>(System.Int32) extern "C" Link_t871 Array_InternalArray__get_Item_TisLink_t871_m12165_gshared (Array_t * __this, int32_t p0, const MethodInfo* method); #define Array_InternalArray__get_Item_TisLink_t871_m12165(__this, p0, method) (( Link_t871 (*) (Array_t *, int32_t, const MethodInfo*))Array_InternalArray__get_Item_TisLink_t871_m12165_gshared)(__this, p0, method) // System.Void System.Array/InternalEnumerator`1<System.Collections.Generic.Link>::.ctor(System.Array) extern "C" void InternalEnumerator_1__ctor_m8610_gshared (InternalEnumerator_1_t1475 * __this, Array_t * ___array, const MethodInfo* method) { { Array_t * L_0 = ___array; __this->___array_0 = L_0; __this->___idx_1 = ((int32_t)-2); return; } } // System.Object System.Array/InternalEnumerator`1<System.Collections.Generic.Link>::System.Collections.IEnumerator.get_Current() extern "C" Object_t * InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m8611_gshared (InternalEnumerator_1_t1475 * __this, const MethodInfo* method) { { Link_t871 L_0 = (( Link_t871 (*) (InternalEnumerator_1_t1475 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((InternalEnumerator_1_t1475 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); Link_t871 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1), &L_1); return L_2; } } // System.Void System.Array/InternalEnumerator`1<System.Collections.Generic.Link>::Dispose() extern "C" void InternalEnumerator_1_Dispose_m8612_gshared (InternalEnumerator_1_t1475 * __this, const MethodInfo* method) { { __this->___idx_1 = ((int32_t)-2); return; } } // System.Boolean System.Array/InternalEnumerator`1<System.Collections.Generic.Link>::MoveNext() extern "C" bool InternalEnumerator_1_MoveNext_m8613_gshared (InternalEnumerator_1_t1475 * __this, const MethodInfo* method) { int32_t V_0 = 0; int32_t G_B5_0 = 0; { int32_t L_0 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_0) == ((uint32_t)((int32_t)-2))))) { goto IL_001e; } } { Array_t * L_1 = (Array_t *)(__this->___array_0); NullCheck((Array_t *)L_1); int32_t L_2 = Array_get_Length_m2256((Array_t *)L_1, /*hidden argument*/NULL); __this->___idx_1 = L_2; } IL_001e: { int32_t L_3 = (int32_t)(__this->___idx_1); if ((((int32_t)L_3) == ((int32_t)(-1)))) { goto IL_0043; } } { int32_t L_4 = (int32_t)(__this->___idx_1); int32_t L_5 = (int32_t)((int32_t)((int32_t)L_4-(int32_t)1)); V_0 = (int32_t)L_5; __this->___idx_1 = L_5; int32_t L_6 = V_0; G_B5_0 = ((((int32_t)((((int32_t)L_6) == ((int32_t)(-1)))? 1 : 0)) == ((int32_t)0))? 1 : 0); goto IL_0044; } IL_0043: { G_B5_0 = 0; } IL_0044: { return G_B5_0; } } // T System.Array/InternalEnumerator`1<System.Collections.Generic.Link>::get_Current() extern TypeInfo* InvalidOperationException_t580_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2671; extern Il2CppCodeGenString* _stringLiteral2672; extern "C" Link_t871 InternalEnumerator_1_get_Current_m8614_gshared (InternalEnumerator_1_t1475 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { InvalidOperationException_t580_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(236); _stringLiteral2671 = il2cpp_codegen_string_literal_from_index(2671); _stringLiteral2672 = il2cpp_codegen_string_literal_from_index(2672); s_Il2CppMethodIntialized = true; } { int32_t L_0 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_0) == ((uint32_t)((int32_t)-2))))) { goto IL_0018; } } { InvalidOperationException_t580 * L_1 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_1, (String_t*)_stringLiteral2671, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0018: { int32_t L_2 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_2) == ((uint32_t)(-1))))) { goto IL_002f; } } { InvalidOperationException_t580 * L_3 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_3, (String_t*)_stringLiteral2672, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_3); } IL_002f: { Array_t * L_4 = (Array_t *)(__this->___array_0); Array_t * L_5 = (Array_t *)(__this->___array_0); NullCheck((Array_t *)L_5); int32_t L_6 = Array_get_Length_m2256((Array_t *)L_5, /*hidden argument*/NULL); int32_t L_7 = (int32_t)(__this->___idx_1); NullCheck((Array_t *)L_4); Link_t871 L_8 = (( Link_t871 (*) (Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((Array_t *)L_4, (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_6-(int32_t)1))-(int32_t)L_7)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); return L_8; } } #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif // System.NotSupportedException #include "mscorlib_System_NotSupportedException.h" // System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<System.Int32,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_KeyCollecti_1.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Int32> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1.h" // System.NotSupportedException #include "mscorlib_System_NotSupportedExceptionMethodDeclarations.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Int32> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<System.Int32,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_KeyCollecti_1MethodDeclarations.h" struct Dictionary_2_t1471; struct Array_t; struct Transform_1_t1479; // Declaration System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Do_ICollectionCopyTo<System.Int32>(System.Array,System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Do_ICollectionCopyTo<System.Int32>(System.Array,System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) extern "C" void Dictionary_2_Do_ICollectionCopyTo_TisInt32_t327_m12176_gshared (Dictionary_2_t1471 * __this, Array_t * p0, int32_t p1, Transform_1_t1479 * p2, const MethodInfo* method); #define Dictionary_2_Do_ICollectionCopyTo_TisInt32_t327_m12176(__this, p0, p1, p2, method) (( void (*) (Dictionary_2_t1471 *, Array_t *, int32_t, Transform_1_t1479 *, const MethodInfo*))Dictionary_2_Do_ICollectionCopyTo_TisInt32_t327_m12176_gshared)(__this, p0, p1, p2, method) struct Dictionary_2_t1471; struct Int32U5BU5D_t501; struct Transform_1_t1479; // Declaration System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Do_CopyTo<System.Int32,System.Int32>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Do_CopyTo<System.Int32,System.Int32>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) extern "C" void Dictionary_2_Do_CopyTo_TisInt32_t327_TisInt32_t327_m12177_gshared (Dictionary_2_t1471 * __this, Int32U5BU5D_t501* p0, int32_t p1, Transform_1_t1479 * p2, const MethodInfo* method); #define Dictionary_2_Do_CopyTo_TisInt32_t327_TisInt32_t327_m12177(__this, p0, p1, p2, method) (( void (*) (Dictionary_2_t1471 *, Int32U5BU5D_t501*, int32_t, Transform_1_t1479 *, const MethodInfo*))Dictionary_2_Do_CopyTo_TisInt32_t327_TisInt32_t327_m12177_gshared)(__this, p0, p1, p2, method) // System.Void System.Collections.Generic.Dictionary`2/KeyCollection<System.Int32,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral1250; extern "C" void KeyCollection__ctor_m8615_gshared (KeyCollection_t1476 * __this, Dictionary_2_t1471 * ___dictionary, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); _stringLiteral1250 = il2cpp_codegen_string_literal_from_index(1250); s_Il2CppMethodIntialized = true; } { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); Dictionary_2_t1471 * L_0 = ___dictionary; if (L_0) { goto IL_0017; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral1250, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0017: { Dictionary_2_t1471 * L_2 = ___dictionary; __this->___dictionary_0 = L_2; return; } } // System.Void System.Collections.Generic.Dictionary`2/KeyCollection<System.Int32,System.Object>::System.Collections.Generic.ICollection<TKey>.Add(TKey) extern TypeInfo* NotSupportedException_t582_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2680; extern "C" void KeyCollection_System_Collections_Generic_ICollectionU3CTKeyU3E_Add_m8616_gshared (KeyCollection_t1476 * __this, int32_t ___item, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NotSupportedException_t582_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(248); _stringLiteral2680 = il2cpp_codegen_string_literal_from_index(2680); s_Il2CppMethodIntialized = true; } { NotSupportedException_t582 * L_0 = (NotSupportedException_t582 *)il2cpp_codegen_object_new (NotSupportedException_t582_il2cpp_TypeInfo_var); NotSupportedException__ctor_m2270(L_0, (String_t*)_stringLiteral2680, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_0); } } // System.Void System.Collections.Generic.Dictionary`2/KeyCollection<System.Int32,System.Object>::System.Collections.Generic.ICollection<TKey>.Clear() extern TypeInfo* NotSupportedException_t582_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2680; extern "C" void KeyCollection_System_Collections_Generic_ICollectionU3CTKeyU3E_Clear_m8617_gshared (KeyCollection_t1476 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NotSupportedException_t582_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(248); _stringLiteral2680 = il2cpp_codegen_string_literal_from_index(2680); s_Il2CppMethodIntialized = true; } { NotSupportedException_t582 * L_0 = (NotSupportedException_t582 *)il2cpp_codegen_object_new (NotSupportedException_t582_il2cpp_TypeInfo_var); NotSupportedException__ctor_m2270(L_0, (String_t*)_stringLiteral2680, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_0); } } // System.Boolean System.Collections.Generic.Dictionary`2/KeyCollection<System.Int32,System.Object>::System.Collections.Generic.ICollection<TKey>.Contains(TKey) extern "C" bool KeyCollection_System_Collections_Generic_ICollectionU3CTKeyU3E_Contains_m8618_gshared (KeyCollection_t1476 * __this, int32_t ___item, const MethodInfo* method) { { Dictionary_2_t1471 * L_0 = (Dictionary_2_t1471 *)(__this->___dictionary_0); int32_t L_1 = ___item; NullCheck((Dictionary_2_t1471 *)L_0); bool L_2 = (bool)VirtFuncInvoker1< bool, int32_t >::Invoke(30 /* System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::ContainsKey(TKey) */, (Dictionary_2_t1471 *)L_0, (int32_t)L_1); return L_2; } } // System.Boolean System.Collections.Generic.Dictionary`2/KeyCollection<System.Int32,System.Object>::System.Collections.Generic.ICollection<TKey>.Remove(TKey) extern TypeInfo* NotSupportedException_t582_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2680; extern "C" bool KeyCollection_System_Collections_Generic_ICollectionU3CTKeyU3E_Remove_m8619_gshared (KeyCollection_t1476 * __this, int32_t ___item, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NotSupportedException_t582_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(248); _stringLiteral2680 = il2cpp_codegen_string_literal_from_index(2680); s_Il2CppMethodIntialized = true; } { NotSupportedException_t582 * L_0 = (NotSupportedException_t582 *)il2cpp_codegen_object_new (NotSupportedException_t582_il2cpp_TypeInfo_var); NotSupportedException__ctor_m2270(L_0, (String_t*)_stringLiteral2680, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_0); } } // System.Collections.Generic.IEnumerator`1<TKey> System.Collections.Generic.Dictionary`2/KeyCollection<System.Int32,System.Object>::System.Collections.Generic.IEnumerable<TKey>.GetEnumerator() extern "C" Object_t* KeyCollection_System_Collections_Generic_IEnumerableU3CTKeyU3E_GetEnumerator_m8620_gshared (KeyCollection_t1476 * __this, const MethodInfo* method) { { NullCheck((KeyCollection_t1476 *)__this); Enumerator_t1477 L_0 = (( Enumerator_t1477 (*) (KeyCollection_t1476 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((KeyCollection_t1476 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); Enumerator_t1477 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), &L_1); return (Object_t*)L_2; } } // System.Void System.Collections.Generic.Dictionary`2/KeyCollection<System.Int32,System.Object>::System.Collections.ICollection.CopyTo(System.Array,System.Int32) extern "C" void KeyCollection_System_Collections_ICollection_CopyTo_m8621_gshared (KeyCollection_t1476 * __this, Array_t * ___array, int32_t ___index, const MethodInfo* method) { Int32U5BU5D_t501* V_0 = {0}; { Array_t * L_0 = ___array; V_0 = (Int32U5BU5D_t501*)((Int32U5BU5D_t501*)IsInst(L_0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3))); Int32U5BU5D_t501* L_1 = V_0; if (!L_1) { goto IL_0016; } } { Int32U5BU5D_t501* L_2 = V_0; int32_t L_3 = ___index; NullCheck((KeyCollection_t1476 *)__this); (( void (*) (KeyCollection_t1476 *, Int32U5BU5D_t501*, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((KeyCollection_t1476 *)__this, (Int32U5BU5D_t501*)L_2, (int32_t)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); return; } IL_0016: { Dictionary_2_t1471 * L_4 = (Dictionary_2_t1471 *)(__this->___dictionary_0); Array_t * L_5 = ___array; int32_t L_6 = ___index; NullCheck((Dictionary_2_t1471 *)L_4); (( void (*) (Dictionary_2_t1471 *, Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((Dictionary_2_t1471 *)L_4, (Array_t *)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); Dictionary_2_t1471 * L_7 = (Dictionary_2_t1471 *)(__this->___dictionary_0); Array_t * L_8 = ___array; int32_t L_9 = ___index; IntPtr_t L_10 = { (void*)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6) }; Transform_1_t1479 * L_11 = (Transform_1_t1479 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); (( void (*) (Transform_1_t1479 *, Object_t *, IntPtr_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)(L_11, (Object_t *)NULL, (IntPtr_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); NullCheck((Dictionary_2_t1471 *)L_7); (( void (*) (Dictionary_2_t1471 *, Array_t *, int32_t, Transform_1_t1479 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)->method)((Dictionary_2_t1471 *)L_7, (Array_t *)L_8, (int32_t)L_9, (Transform_1_t1479 *)L_11, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)); return; } } // System.Collections.IEnumerator System.Collections.Generic.Dictionary`2/KeyCollection<System.Int32,System.Object>::System.Collections.IEnumerable.GetEnumerator() extern "C" Object_t * KeyCollection_System_Collections_IEnumerable_GetEnumerator_m8622_gshared (KeyCollection_t1476 * __this, const MethodInfo* method) { { NullCheck((KeyCollection_t1476 *)__this); Enumerator_t1477 L_0 = (( Enumerator_t1477 (*) (KeyCollection_t1476 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((KeyCollection_t1476 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); Enumerator_t1477 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), &L_1); return (Object_t *)L_2; } } // System.Boolean System.Collections.Generic.Dictionary`2/KeyCollection<System.Int32,System.Object>::System.Collections.Generic.ICollection<TKey>.get_IsReadOnly() extern "C" bool KeyCollection_System_Collections_Generic_ICollectionU3CTKeyU3E_get_IsReadOnly_m8623_gshared (KeyCollection_t1476 * __this, const MethodInfo* method) { { return 1; } } // System.Object System.Collections.Generic.Dictionary`2/KeyCollection<System.Int32,System.Object>::System.Collections.ICollection.get_SyncRoot() extern TypeInfo* ICollection_t576_il2cpp_TypeInfo_var; extern "C" Object_t * KeyCollection_System_Collections_ICollection_get_SyncRoot_m8624_gshared (KeyCollection_t1476 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ICollection_t576_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(234); s_Il2CppMethodIntialized = true; } { Dictionary_2_t1471 * L_0 = (Dictionary_2_t1471 *)(__this->___dictionary_0); NullCheck((Object_t *)L_0); Object_t * L_1 = (Object_t *)InterfaceFuncInvoker0< Object_t * >::Invoke(1 /* System.Object System.Collections.ICollection::get_SyncRoot() */, ICollection_t576_il2cpp_TypeInfo_var, (Object_t *)L_0); return L_1; } } // System.Void System.Collections.Generic.Dictionary`2/KeyCollection<System.Int32,System.Object>::CopyTo(TKey[],System.Int32) extern "C" void KeyCollection_CopyTo_m8625_gshared (KeyCollection_t1476 * __this, Int32U5BU5D_t501* ___array, int32_t ___index, const MethodInfo* method) { { Dictionary_2_t1471 * L_0 = (Dictionary_2_t1471 *)(__this->___dictionary_0); Int32U5BU5D_t501* L_1 = ___array; int32_t L_2 = ___index; NullCheck((Dictionary_2_t1471 *)L_0); (( void (*) (Dictionary_2_t1471 *, Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((Dictionary_2_t1471 *)L_0, (Array_t *)(Array_t *)L_1, (int32_t)L_2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); Dictionary_2_t1471 * L_3 = (Dictionary_2_t1471 *)(__this->___dictionary_0); Int32U5BU5D_t501* L_4 = ___array; int32_t L_5 = ___index; IntPtr_t L_6 = { (void*)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6) }; Transform_1_t1479 * L_7 = (Transform_1_t1479 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); (( void (*) (Transform_1_t1479 *, Object_t *, IntPtr_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)(L_7, (Object_t *)NULL, (IntPtr_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); NullCheck((Dictionary_2_t1471 *)L_3); (( void (*) (Dictionary_2_t1471 *, Int32U5BU5D_t501*, int32_t, Transform_1_t1479 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)->method)((Dictionary_2_t1471 *)L_3, (Int32U5BU5D_t501*)L_4, (int32_t)L_5, (Transform_1_t1479 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)); return; } } // System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<TKey,TValue> System.Collections.Generic.Dictionary`2/KeyCollection<System.Int32,System.Object>::GetEnumerator() extern "C" Enumerator_t1477 KeyCollection_GetEnumerator_m8626_gshared (KeyCollection_t1476 * __this, const MethodInfo* method) { { Dictionary_2_t1471 * L_0 = (Dictionary_2_t1471 *)(__this->___dictionary_0); Enumerator_t1477 L_1 = {0}; (( void (*) (Enumerator_t1477 *, Dictionary_2_t1471 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 11)->method)(&L_1, (Dictionary_2_t1471 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 11)); return L_1; } } // System.Int32 System.Collections.Generic.Dictionary`2/KeyCollection<System.Int32,System.Object>::get_Count() extern "C" int32_t KeyCollection_get_Count_m8627_gshared (KeyCollection_t1476 * __this, const MethodInfo* method) { { Dictionary_2_t1471 * L_0 = (Dictionary_2_t1471 *)(__this->___dictionary_0); NullCheck((Dictionary_2_t1471 *)L_0); int32_t L_1 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(9 /* System.Int32 System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::get_Count() */, (Dictionary_2_t1471 *)L_0); return L_1; } } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<System.Int32,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>) extern "C" void Enumerator__ctor_m8628_gshared (Enumerator_t1477 * __this, Dictionary_2_t1471 * ___host, const MethodInfo* method) { { Dictionary_2_t1471 * L_0 = ___host; NullCheck((Dictionary_2_t1471 *)L_0); Enumerator_t1478 L_1 = (( Enumerator_t1478 (*) (Dictionary_2_t1471 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1471 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); __this->___host_enumerator_0 = L_1; return; } } // System.Object System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<System.Int32,System.Object>::System.Collections.IEnumerator.get_Current() extern "C" Object_t * Enumerator_System_Collections_IEnumerator_get_Current_m8629_gshared (Enumerator_t1477 * __this, const MethodInfo* method) { { Enumerator_t1478 * L_0 = (Enumerator_t1478 *)&(__this->___host_enumerator_0); int32_t L_1 = (( int32_t (*) (Enumerator_t1478 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((Enumerator_t1478 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); int32_t L_2 = L_1; Object_t * L_3 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), &L_2); return L_3; } } // System.Void System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<System.Int32,System.Object>::Dispose() extern "C" void Enumerator_Dispose_m8630_gshared (Enumerator_t1477 * __this, const MethodInfo* method) { { Enumerator_t1478 * L_0 = (Enumerator_t1478 *)&(__this->___host_enumerator_0); (( void (*) (Enumerator_t1478 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)->method)((Enumerator_t1478 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)); return; } } // System.Boolean System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<System.Int32,System.Object>::MoveNext() extern "C" bool Enumerator_MoveNext_m8631_gshared (Enumerator_t1477 * __this, const MethodInfo* method) { { Enumerator_t1478 * L_0 = (Enumerator_t1478 *)&(__this->___host_enumerator_0); bool L_1 = (( bool (*) (Enumerator_t1478 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((Enumerator_t1478 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); return L_1; } } // TKey System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<System.Int32,System.Object>::get_Current() extern "C" int32_t Enumerator_get_Current_m8632_gshared (Enumerator_t1477 * __this, const MethodInfo* method) { { Enumerator_t1478 * L_0 = (Enumerator_t1478 *)&(__this->___host_enumerator_0); KeyValuePair_2_t1472 * L_1 = (KeyValuePair_2_t1472 *)&(L_0->___current_3); int32_t L_2 = (( int32_t (*) (KeyValuePair_2_t1472 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((KeyValuePair_2_t1472 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); return L_2; } } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>) extern "C" void Enumerator__ctor_m8633_gshared (Enumerator_t1478 * __this, Dictionary_2_t1471 * ___dictionary, const MethodInfo* method) { { Dictionary_2_t1471 * L_0 = ___dictionary; __this->___dictionary_0 = L_0; Dictionary_2_t1471 * L_1 = ___dictionary; NullCheck(L_1); int32_t L_2 = (int32_t)(L_1->___generation_14); __this->___stamp_2 = L_2; return; } } // System.Object System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object>::System.Collections.IEnumerator.get_Current() extern "C" Object_t * Enumerator_System_Collections_IEnumerator_get_Current_m8634_gshared (Enumerator_t1478 * __this, const MethodInfo* method) { { (( void (*) (Enumerator_t1478 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Enumerator_t1478 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); KeyValuePair_2_t1472 L_0 = (KeyValuePair_2_t1472 )(__this->___current_3); KeyValuePair_2_t1472 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1), &L_1); return L_2; } } // System.Collections.DictionaryEntry System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object>::System.Collections.IDictionaryEnumerator.get_Entry() extern "C" DictionaryEntry_t567 Enumerator_System_Collections_IDictionaryEnumerator_get_Entry_m8635_gshared (Enumerator_t1478 * __this, const MethodInfo* method) { { (( void (*) (Enumerator_t1478 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Enumerator_t1478 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); KeyValuePair_2_t1472 * L_0 = (KeyValuePair_2_t1472 *)&(__this->___current_3); int32_t L_1 = (( int32_t (*) (KeyValuePair_2_t1472 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((KeyValuePair_2_t1472 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); int32_t L_2 = L_1; Object_t * L_3 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3), &L_2); KeyValuePair_2_t1472 * L_4 = (KeyValuePair_2_t1472 *)&(__this->___current_3); Object_t * L_5 = (( Object_t * (*) (KeyValuePair_2_t1472 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((KeyValuePair_2_t1472 *)L_4, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); DictionaryEntry_t567 L_6 = {0}; DictionaryEntry__ctor_m2254(&L_6, (Object_t *)L_3, (Object_t *)L_5, /*hidden argument*/NULL); return L_6; } } // System.Object System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object>::System.Collections.IDictionaryEnumerator.get_Key() extern "C" Object_t * Enumerator_System_Collections_IDictionaryEnumerator_get_Key_m8636_gshared (Enumerator_t1478 * __this, const MethodInfo* method) { { int32_t L_0 = (( int32_t (*) (Enumerator_t1478 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)->method)((Enumerator_t1478 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); int32_t L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3), &L_1); return L_2; } } // System.Object System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object>::System.Collections.IDictionaryEnumerator.get_Value() extern "C" Object_t * Enumerator_System_Collections_IDictionaryEnumerator_get_Value_m8637_gshared (Enumerator_t1478 * __this, const MethodInfo* method) { { Object_t * L_0 = (( Object_t * (*) (Enumerator_t1478 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)->method)((Enumerator_t1478 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); return L_0; } } // System.Boolean System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object>::MoveNext() extern "C" bool Enumerator_MoveNext_m8638_gshared (Enumerator_t1478 * __this, const MethodInfo* method) { int32_t V_0 = 0; int32_t V_1 = 0; { (( void (*) (Enumerator_t1478 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)((Enumerator_t1478 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); int32_t L_0 = (int32_t)(__this->___next_1); if ((((int32_t)L_0) >= ((int32_t)0))) { goto IL_0014; } } { return 0; } IL_0014: { goto IL_007b; } IL_0019: { int32_t L_1 = (int32_t)(__this->___next_1); int32_t L_2 = (int32_t)L_1; V_1 = (int32_t)L_2; __this->___next_1 = ((int32_t)((int32_t)L_2+(int32_t)1)); int32_t L_3 = V_1; V_0 = (int32_t)L_3; Dictionary_2_t1471 * L_4 = (Dictionary_2_t1471 *)(__this->___dictionary_0); NullCheck(L_4); LinkU5BU5D_t1466* L_5 = (LinkU5BU5D_t1466*)(L_4->___linkSlots_5); int32_t L_6 = V_0; NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, L_6); int32_t L_7 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_5, L_6))->___HashCode_0); if (!((int32_t)((int32_t)L_7&(int32_t)((int32_t)-2147483648)))) { goto IL_007b; } } { Dictionary_2_t1471 * L_8 = (Dictionary_2_t1471 *)(__this->___dictionary_0); NullCheck(L_8); Int32U5BU5D_t501* L_9 = (Int32U5BU5D_t501*)(L_8->___keySlots_6); int32_t L_10 = V_0; NullCheck(L_9); IL2CPP_ARRAY_BOUNDS_CHECK(L_9, L_10); int32_t L_11 = L_10; Dictionary_2_t1471 * L_12 = (Dictionary_2_t1471 *)(__this->___dictionary_0); NullCheck(L_12); ObjectU5BU5D_t207* L_13 = (ObjectU5BU5D_t207*)(L_12->___valueSlots_7); int32_t L_14 = V_0; NullCheck(L_13); IL2CPP_ARRAY_BOUNDS_CHECK(L_13, L_14); int32_t L_15 = L_14; KeyValuePair_2_t1472 L_16 = {0}; (( void (*) (KeyValuePair_2_t1472 *, int32_t, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)->method)(&L_16, (int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_9, L_11)), (Object_t *)(*(Object_t **)(Object_t **)SZArrayLdElema(L_13, L_15)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)); __this->___current_3 = L_16; return 1; } IL_007b: { int32_t L_17 = (int32_t)(__this->___next_1); Dictionary_2_t1471 * L_18 = (Dictionary_2_t1471 *)(__this->___dictionary_0); NullCheck(L_18); int32_t L_19 = (int32_t)(L_18->___touchedSlots_8); if ((((int32_t)L_17) < ((int32_t)L_19))) { goto IL_0019; } } { __this->___next_1 = (-1); return 0; } } // System.Collections.Generic.KeyValuePair`2<TKey,TValue> System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object>::get_Current() extern "C" KeyValuePair_2_t1472 Enumerator_get_Current_m8639_gshared (Enumerator_t1478 * __this, const MethodInfo* method) { { KeyValuePair_2_t1472 L_0 = (KeyValuePair_2_t1472 )(__this->___current_3); return L_0; } } // TKey System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object>::get_CurrentKey() extern "C" int32_t Enumerator_get_CurrentKey_m8640_gshared (Enumerator_t1478 * __this, const MethodInfo* method) { { (( void (*) (Enumerator_t1478 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Enumerator_t1478 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); KeyValuePair_2_t1472 * L_0 = (KeyValuePair_2_t1472 *)&(__this->___current_3); int32_t L_1 = (( int32_t (*) (KeyValuePair_2_t1472 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((KeyValuePair_2_t1472 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); return L_1; } } // TValue System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object>::get_CurrentValue() extern "C" Object_t * Enumerator_get_CurrentValue_m8641_gshared (Enumerator_t1478 * __this, const MethodInfo* method) { { (( void (*) (Enumerator_t1478 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Enumerator_t1478 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); KeyValuePair_2_t1472 * L_0 = (KeyValuePair_2_t1472 *)&(__this->___current_3); Object_t * L_1 = (( Object_t * (*) (KeyValuePair_2_t1472 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((KeyValuePair_2_t1472 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); return L_1; } } // System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object>::VerifyState() extern TypeInfo* ObjectDisposedException_t625_il2cpp_TypeInfo_var; extern TypeInfo* InvalidOperationException_t580_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2681; extern "C" void Enumerator_VerifyState_m8642_gshared (Enumerator_t1478 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ObjectDisposedException_t625_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(396); InvalidOperationException_t580_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(236); _stringLiteral2681 = il2cpp_codegen_string_literal_from_index(2681); s_Il2CppMethodIntialized = true; } { Dictionary_2_t1471 * L_0 = (Dictionary_2_t1471 *)(__this->___dictionary_0); if (L_0) { goto IL_0012; } } { ObjectDisposedException_t625 * L_1 = (ObjectDisposedException_t625 *)il2cpp_codegen_object_new (ObjectDisposedException_t625_il2cpp_TypeInfo_var); ObjectDisposedException__ctor_m2480(L_1, (String_t*)NULL, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0012: { Dictionary_2_t1471 * L_2 = (Dictionary_2_t1471 *)(__this->___dictionary_0); NullCheck(L_2); int32_t L_3 = (int32_t)(L_2->___generation_14); int32_t L_4 = (int32_t)(__this->___stamp_2); if ((((int32_t)L_3) == ((int32_t)L_4))) { goto IL_0033; } } { InvalidOperationException_t580 * L_5 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_5, (String_t*)_stringLiteral2681, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_5); } IL_0033: { return; } } // System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object>::VerifyCurrent() extern TypeInfo* InvalidOperationException_t580_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2682; extern "C" void Enumerator_VerifyCurrent_m8643_gshared (Enumerator_t1478 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { InvalidOperationException_t580_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(236); _stringLiteral2682 = il2cpp_codegen_string_literal_from_index(2682); s_Il2CppMethodIntialized = true; } { (( void (*) (Enumerator_t1478 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)((Enumerator_t1478 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); int32_t L_0 = (int32_t)(__this->___next_1); if ((((int32_t)L_0) > ((int32_t)0))) { goto IL_001d; } } { InvalidOperationException_t580 * L_1 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_1, (String_t*)_stringLiteral2682, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_001d: { return; } } // System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object>::Dispose() extern "C" void Enumerator_Dispose_m8644_gshared (Enumerator_t1478 * __this, const MethodInfo* method) { { __this->___dictionary_0 = (Dictionary_2_t1471 *)NULL; return; } } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Int32>::.ctor(System.Object,System.IntPtr) extern "C" void Transform_1__ctor_m8645_gshared (Transform_1_t1479 * __this, Object_t * ___object, IntPtr_t ___method, const MethodInfo* method) { __this->___method_ptr_0 = (methodPointerType)((MethodInfo*)___method.___m_value_0)->method; __this->___method_3 = ___method; __this->___m_target_2 = ___object; } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Int32>::Invoke(TKey,TValue) extern "C" int32_t Transform_1_Invoke_m8646_gshared (Transform_1_t1479 * __this, int32_t ___key, Object_t * ___value, const MethodInfo* method) { if(__this->___prev_9 != NULL) { Transform_1_Invoke_m8646((Transform_1_t1479 *)__this->___prev_9,___key, ___value, method); } il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->___method_3.___m_value_0)); bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->___method_3.___m_value_0)); if (__this->___m_target_2 != NULL && ___methodIsStatic) { typedef int32_t (*FunctionPointerType) (Object_t *, Object_t * __this, int32_t ___key, Object_t * ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(NULL,__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } else { typedef int32_t (*FunctionPointerType) (Object_t * __this, int32_t ___key, Object_t * ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } } // System.IAsyncResult System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Int32>::BeginInvoke(TKey,TValue,System.AsyncCallback,System.Object) extern TypeInfo* Int32_t327_il2cpp_TypeInfo_var; extern "C" Object_t * Transform_1_BeginInvoke_m8647_gshared (Transform_1_t1479 * __this, int32_t ___key, Object_t * ___value, AsyncCallback_t54 * ___callback, Object_t * ___object, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { Int32_t327_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(35); s_Il2CppMethodIntialized = true; } void *__d_args[3] = {0}; __d_args[0] = Box(Int32_t327_il2cpp_TypeInfo_var, &___key); __d_args[1] = ___value; return (Object_t *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)___callback, (Il2CppObject*)___object); } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Int32>::EndInvoke(System.IAsyncResult) extern "C" int32_t Transform_1_EndInvoke_m8648_gshared (Transform_1_t1479 * __this, Object_t * ___result, const MethodInfo* method) { Il2CppObject *__result = il2cpp_delegate_end_invoke((Il2CppAsyncResult*) ___result, 0); return *(int32_t*)UnBox ((Il2CppCodeGenObject*)__result); } #ifndef _MSC_VER #else #endif // System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<System.Int32,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_ValueCollec_3.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1_0.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1_0MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<System.Int32,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_ValueCollec_3MethodDeclarations.h" struct Dictionary_2_t1471; struct Array_t; struct Transform_1_t1482; // Declaration System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Do_ICollectionCopyTo<System.Object>(System.Array,System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Do_ICollectionCopyTo<System.Object>(System.Array,System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) extern "C" void Dictionary_2_Do_ICollectionCopyTo_TisObject_t_m12179_gshared (Dictionary_2_t1471 * __this, Array_t * p0, int32_t p1, Transform_1_t1482 * p2, const MethodInfo* method); #define Dictionary_2_Do_ICollectionCopyTo_TisObject_t_m12179(__this, p0, p1, p2, method) (( void (*) (Dictionary_2_t1471 *, Array_t *, int32_t, Transform_1_t1482 *, const MethodInfo*))Dictionary_2_Do_ICollectionCopyTo_TisObject_t_m12179_gshared)(__this, p0, p1, p2, method) struct Dictionary_2_t1471; struct ObjectU5BU5D_t207; struct Transform_1_t1482; // Declaration System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Do_CopyTo<System.Object,System.Object>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) // System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Do_CopyTo<System.Object,System.Object>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) extern "C" void Dictionary_2_Do_CopyTo_TisObject_t_TisObject_t_m12178_gshared (Dictionary_2_t1471 * __this, ObjectU5BU5D_t207* p0, int32_t p1, Transform_1_t1482 * p2, const MethodInfo* method); #define Dictionary_2_Do_CopyTo_TisObject_t_TisObject_t_m12178(__this, p0, p1, p2, method) (( void (*) (Dictionary_2_t1471 *, ObjectU5BU5D_t207*, int32_t, Transform_1_t1482 *, const MethodInfo*))Dictionary_2_Do_CopyTo_TisObject_t_TisObject_t_m12178_gshared)(__this, p0, p1, p2, method) // System.Void System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral1250; extern "C" void ValueCollection__ctor_m8649_gshared (ValueCollection_t1480 * __this, Dictionary_2_t1471 * ___dictionary, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); _stringLiteral1250 = il2cpp_codegen_string_literal_from_index(1250); s_Il2CppMethodIntialized = true; } { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); Dictionary_2_t1471 * L_0 = ___dictionary; if (L_0) { goto IL_0017; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral1250, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0017: { Dictionary_2_t1471 * L_2 = ___dictionary; __this->___dictionary_0 = L_2; return; } } // System.Void System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Object>::System.Collections.Generic.ICollection<TValue>.Add(TValue) extern TypeInfo* NotSupportedException_t582_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2680; extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Add_m8650_gshared (ValueCollection_t1480 * __this, Object_t * ___item, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NotSupportedException_t582_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(248); _stringLiteral2680 = il2cpp_codegen_string_literal_from_index(2680); s_Il2CppMethodIntialized = true; } { NotSupportedException_t582 * L_0 = (NotSupportedException_t582 *)il2cpp_codegen_object_new (NotSupportedException_t582_il2cpp_TypeInfo_var); NotSupportedException__ctor_m2270(L_0, (String_t*)_stringLiteral2680, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_0); } } // System.Void System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Object>::System.Collections.Generic.ICollection<TValue>.Clear() extern TypeInfo* NotSupportedException_t582_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2680; extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Clear_m8651_gshared (ValueCollection_t1480 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NotSupportedException_t582_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(248); _stringLiteral2680 = il2cpp_codegen_string_literal_from_index(2680); s_Il2CppMethodIntialized = true; } { NotSupportedException_t582 * L_0 = (NotSupportedException_t582 *)il2cpp_codegen_object_new (NotSupportedException_t582_il2cpp_TypeInfo_var); NotSupportedException__ctor_m2270(L_0, (String_t*)_stringLiteral2680, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_0); } } // System.Boolean System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Object>::System.Collections.Generic.ICollection<TValue>.Contains(TValue) extern "C" bool ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Contains_m8652_gshared (ValueCollection_t1480 * __this, Object_t * ___item, const MethodInfo* method) { { Dictionary_2_t1471 * L_0 = (Dictionary_2_t1471 *)(__this->___dictionary_0); Object_t * L_1 = ___item; NullCheck((Dictionary_2_t1471 *)L_0); bool L_2 = (( bool (*) (Dictionary_2_t1471 *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1471 *)L_0, (Object_t *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); return L_2; } } // System.Boolean System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Object>::System.Collections.Generic.ICollection<TValue>.Remove(TValue) extern TypeInfo* NotSupportedException_t582_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2680; extern "C" bool ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Remove_m8653_gshared (ValueCollection_t1480 * __this, Object_t * ___item, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NotSupportedException_t582_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(248); _stringLiteral2680 = il2cpp_codegen_string_literal_from_index(2680); s_Il2CppMethodIntialized = true; } { NotSupportedException_t582 * L_0 = (NotSupportedException_t582 *)il2cpp_codegen_object_new (NotSupportedException_t582_il2cpp_TypeInfo_var); NotSupportedException__ctor_m2270(L_0, (String_t*)_stringLiteral2680, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_0); } } // System.Collections.Generic.IEnumerator`1<TValue> System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Object>::System.Collections.Generic.IEnumerable<TValue>.GetEnumerator() extern "C" Object_t* ValueCollection_System_Collections_Generic_IEnumerableU3CTValueU3E_GetEnumerator_m8654_gshared (ValueCollection_t1480 * __this, const MethodInfo* method) { { NullCheck((ValueCollection_t1480 *)__this); Enumerator_t1481 L_0 = (( Enumerator_t1481 (*) (ValueCollection_t1480 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((ValueCollection_t1480 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); Enumerator_t1481 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), &L_1); return (Object_t*)L_2; } } // System.Void System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Object>::System.Collections.ICollection.CopyTo(System.Array,System.Int32) extern "C" void ValueCollection_System_Collections_ICollection_CopyTo_m8655_gshared (ValueCollection_t1480 * __this, Array_t * ___array, int32_t ___index, const MethodInfo* method) { ObjectU5BU5D_t207* V_0 = {0}; { Array_t * L_0 = ___array; V_0 = (ObjectU5BU5D_t207*)((ObjectU5BU5D_t207*)IsInst(L_0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3))); ObjectU5BU5D_t207* L_1 = V_0; if (!L_1) { goto IL_0016; } } { ObjectU5BU5D_t207* L_2 = V_0; int32_t L_3 = ___index; NullCheck((ValueCollection_t1480 *)__this); (( void (*) (ValueCollection_t1480 *, ObjectU5BU5D_t207*, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((ValueCollection_t1480 *)__this, (ObjectU5BU5D_t207*)L_2, (int32_t)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); return; } IL_0016: { Dictionary_2_t1471 * L_4 = (Dictionary_2_t1471 *)(__this->___dictionary_0); Array_t * L_5 = ___array; int32_t L_6 = ___index; NullCheck((Dictionary_2_t1471 *)L_4); (( void (*) (Dictionary_2_t1471 *, Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((Dictionary_2_t1471 *)L_4, (Array_t *)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); Dictionary_2_t1471 * L_7 = (Dictionary_2_t1471 *)(__this->___dictionary_0); Array_t * L_8 = ___array; int32_t L_9 = ___index; IntPtr_t L_10 = { (void*)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6) }; Transform_1_t1482 * L_11 = (Transform_1_t1482 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); (( void (*) (Transform_1_t1482 *, Object_t *, IntPtr_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)(L_11, (Object_t *)NULL, (IntPtr_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); NullCheck((Dictionary_2_t1471 *)L_7); (( void (*) (Dictionary_2_t1471 *, Array_t *, int32_t, Transform_1_t1482 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)->method)((Dictionary_2_t1471 *)L_7, (Array_t *)L_8, (int32_t)L_9, (Transform_1_t1482 *)L_11, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)); return; } } // System.Collections.IEnumerator System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Object>::System.Collections.IEnumerable.GetEnumerator() extern "C" Object_t * ValueCollection_System_Collections_IEnumerable_GetEnumerator_m8656_gshared (ValueCollection_t1480 * __this, const MethodInfo* method) { { NullCheck((ValueCollection_t1480 *)__this); Enumerator_t1481 L_0 = (( Enumerator_t1481 (*) (ValueCollection_t1480 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((ValueCollection_t1480 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); Enumerator_t1481 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), &L_1); return (Object_t *)L_2; } } // System.Boolean System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Object>::System.Collections.Generic.ICollection<TValue>.get_IsReadOnly() extern "C" bool ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_get_IsReadOnly_m8657_gshared (ValueCollection_t1480 * __this, const MethodInfo* method) { { return 1; } } // System.Object System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Object>::System.Collections.ICollection.get_SyncRoot() extern TypeInfo* ICollection_t576_il2cpp_TypeInfo_var; extern "C" Object_t * ValueCollection_System_Collections_ICollection_get_SyncRoot_m8658_gshared (ValueCollection_t1480 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ICollection_t576_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(234); s_Il2CppMethodIntialized = true; } { Dictionary_2_t1471 * L_0 = (Dictionary_2_t1471 *)(__this->___dictionary_0); NullCheck((Object_t *)L_0); Object_t * L_1 = (Object_t *)InterfaceFuncInvoker0< Object_t * >::Invoke(1 /* System.Object System.Collections.ICollection::get_SyncRoot() */, ICollection_t576_il2cpp_TypeInfo_var, (Object_t *)L_0); return L_1; } } // System.Void System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Object>::CopyTo(TValue[],System.Int32) extern "C" void ValueCollection_CopyTo_m8659_gshared (ValueCollection_t1480 * __this, ObjectU5BU5D_t207* ___array, int32_t ___index, const MethodInfo* method) { { Dictionary_2_t1471 * L_0 = (Dictionary_2_t1471 *)(__this->___dictionary_0); ObjectU5BU5D_t207* L_1 = ___array; int32_t L_2 = ___index; NullCheck((Dictionary_2_t1471 *)L_0); (( void (*) (Dictionary_2_t1471 *, Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((Dictionary_2_t1471 *)L_0, (Array_t *)(Array_t *)L_1, (int32_t)L_2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); Dictionary_2_t1471 * L_3 = (Dictionary_2_t1471 *)(__this->___dictionary_0); ObjectU5BU5D_t207* L_4 = ___array; int32_t L_5 = ___index; IntPtr_t L_6 = { (void*)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6) }; Transform_1_t1482 * L_7 = (Transform_1_t1482 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); (( void (*) (Transform_1_t1482 *, Object_t *, IntPtr_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)(L_7, (Object_t *)NULL, (IntPtr_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); NullCheck((Dictionary_2_t1471 *)L_3); (( void (*) (Dictionary_2_t1471 *, ObjectU5BU5D_t207*, int32_t, Transform_1_t1482 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)->method)((Dictionary_2_t1471 *)L_3, (ObjectU5BU5D_t207*)L_4, (int32_t)L_5, (Transform_1_t1482 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)); return; } } // System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Object>::GetEnumerator() extern "C" Enumerator_t1481 ValueCollection_GetEnumerator_m8660_gshared (ValueCollection_t1480 * __this, const MethodInfo* method) { { Dictionary_2_t1471 * L_0 = (Dictionary_2_t1471 *)(__this->___dictionary_0); Enumerator_t1481 L_1 = {0}; (( void (*) (Enumerator_t1481 *, Dictionary_2_t1471 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 11)->method)(&L_1, (Dictionary_2_t1471 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 11)); return L_1; } } // System.Int32 System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Object>::get_Count() extern "C" int32_t ValueCollection_get_Count_m8661_gshared (ValueCollection_t1480 * __this, const MethodInfo* method) { { Dictionary_2_t1471 * L_0 = (Dictionary_2_t1471 *)(__this->___dictionary_0); NullCheck((Dictionary_2_t1471 *)L_0); int32_t L_1 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(9 /* System.Int32 System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::get_Count() */, (Dictionary_2_t1471 *)L_0); return L_1; } } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<System.Int32,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>) extern "C" void Enumerator__ctor_m8662_gshared (Enumerator_t1481 * __this, Dictionary_2_t1471 * ___host, const MethodInfo* method) { { Dictionary_2_t1471 * L_0 = ___host; NullCheck((Dictionary_2_t1471 *)L_0); Enumerator_t1478 L_1 = (( Enumerator_t1478 (*) (Dictionary_2_t1471 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1471 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); __this->___host_enumerator_0 = L_1; return; } } // System.Object System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<System.Int32,System.Object>::System.Collections.IEnumerator.get_Current() extern "C" Object_t * Enumerator_System_Collections_IEnumerator_get_Current_m8663_gshared (Enumerator_t1481 * __this, const MethodInfo* method) { { Enumerator_t1478 * L_0 = (Enumerator_t1478 *)&(__this->___host_enumerator_0); Object_t * L_1 = (( Object_t * (*) (Enumerator_t1478 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((Enumerator_t1478 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); return L_1; } } // System.Void System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<System.Int32,System.Object>::Dispose() extern "C" void Enumerator_Dispose_m8664_gshared (Enumerator_t1481 * __this, const MethodInfo* method) { { Enumerator_t1478 * L_0 = (Enumerator_t1478 *)&(__this->___host_enumerator_0); (( void (*) (Enumerator_t1478 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)->method)((Enumerator_t1478 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)); return; } } // System.Boolean System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<System.Int32,System.Object>::MoveNext() extern "C" bool Enumerator_MoveNext_m8665_gshared (Enumerator_t1481 * __this, const MethodInfo* method) { { Enumerator_t1478 * L_0 = (Enumerator_t1478 *)&(__this->___host_enumerator_0); bool L_1 = (( bool (*) (Enumerator_t1478 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((Enumerator_t1478 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); return L_1; } } // TValue System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<System.Int32,System.Object>::get_Current() extern "C" Object_t * Enumerator_get_Current_m8666_gshared (Enumerator_t1481 * __this, const MethodInfo* method) { { Enumerator_t1478 * L_0 = (Enumerator_t1478 *)&(__this->___host_enumerator_0); KeyValuePair_2_t1472 * L_1 = (KeyValuePair_2_t1472 *)&(L_0->___current_3); Object_t * L_2 = (( Object_t * (*) (KeyValuePair_2_t1472 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((KeyValuePair_2_t1472 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); return L_2; } } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Object>::.ctor(System.Object,System.IntPtr) extern "C" void Transform_1__ctor_m8667_gshared (Transform_1_t1482 * __this, Object_t * ___object, IntPtr_t ___method, const MethodInfo* method) { __this->___method_ptr_0 = (methodPointerType)((MethodInfo*)___method.___m_value_0)->method; __this->___method_3 = ___method; __this->___m_target_2 = ___object; } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Object>::Invoke(TKey,TValue) extern "C" Object_t * Transform_1_Invoke_m8668_gshared (Transform_1_t1482 * __this, int32_t ___key, Object_t * ___value, const MethodInfo* method) { if(__this->___prev_9 != NULL) { Transform_1_Invoke_m8668((Transform_1_t1482 *)__this->___prev_9,___key, ___value, method); } il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->___method_3.___m_value_0)); bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->___method_3.___m_value_0)); if (__this->___m_target_2 != NULL && ___methodIsStatic) { typedef Object_t * (*FunctionPointerType) (Object_t *, Object_t * __this, int32_t ___key, Object_t * ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(NULL,__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } else { typedef Object_t * (*FunctionPointerType) (Object_t * __this, int32_t ___key, Object_t * ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } } // System.IAsyncResult System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Object>::BeginInvoke(TKey,TValue,System.AsyncCallback,System.Object) extern TypeInfo* Int32_t327_il2cpp_TypeInfo_var; extern "C" Object_t * Transform_1_BeginInvoke_m8669_gshared (Transform_1_t1482 * __this, int32_t ___key, Object_t * ___value, AsyncCallback_t54 * ___callback, Object_t * ___object, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { Int32_t327_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(35); s_Il2CppMethodIntialized = true; } void *__d_args[3] = {0}; __d_args[0] = Box(Int32_t327_il2cpp_TypeInfo_var, &___key); __d_args[1] = ___value; return (Object_t *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)___callback, (Il2CppObject*)___object); } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Object>::EndInvoke(System.IAsyncResult) extern "C" Object_t * Transform_1_EndInvoke_m8670_gshared (Transform_1_t1482 * __this, Object_t * ___result, const MethodInfo* method) { Il2CppObject *__result = il2cpp_delegate_end_invoke((Il2CppAsyncResult*) ___result, 0); return (Object_t *)__result; } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Collections.DictionaryEntry>::.ctor(System.Object,System.IntPtr) extern "C" void Transform_1__ctor_m8671_gshared (Transform_1_t1470 * __this, Object_t * ___object, IntPtr_t ___method, const MethodInfo* method) { __this->___method_ptr_0 = (methodPointerType)((MethodInfo*)___method.___m_value_0)->method; __this->___method_3 = ___method; __this->___m_target_2 = ___object; } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Collections.DictionaryEntry>::Invoke(TKey,TValue) extern "C" DictionaryEntry_t567 Transform_1_Invoke_m8672_gshared (Transform_1_t1470 * __this, int32_t ___key, Object_t * ___value, const MethodInfo* method) { if(__this->___prev_9 != NULL) { Transform_1_Invoke_m8672((Transform_1_t1470 *)__this->___prev_9,___key, ___value, method); } il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->___method_3.___m_value_0)); bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->___method_3.___m_value_0)); if (__this->___m_target_2 != NULL && ___methodIsStatic) { typedef DictionaryEntry_t567 (*FunctionPointerType) (Object_t *, Object_t * __this, int32_t ___key, Object_t * ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(NULL,__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } else { typedef DictionaryEntry_t567 (*FunctionPointerType) (Object_t * __this, int32_t ___key, Object_t * ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } } // System.IAsyncResult System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Collections.DictionaryEntry>::BeginInvoke(TKey,TValue,System.AsyncCallback,System.Object) extern TypeInfo* Int32_t327_il2cpp_TypeInfo_var; extern "C" Object_t * Transform_1_BeginInvoke_m8673_gshared (Transform_1_t1470 * __this, int32_t ___key, Object_t * ___value, AsyncCallback_t54 * ___callback, Object_t * ___object, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { Int32_t327_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(35); s_Il2CppMethodIntialized = true; } void *__d_args[3] = {0}; __d_args[0] = Box(Int32_t327_il2cpp_TypeInfo_var, &___key); __d_args[1] = ___value; return (Object_t *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)___callback, (Il2CppObject*)___object); } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Collections.DictionaryEntry>::EndInvoke(System.IAsyncResult) extern "C" DictionaryEntry_t567 Transform_1_EndInvoke_m8674_gshared (Transform_1_t1470 * __this, Object_t * ___result, const MethodInfo* method) { Il2CppObject *__result = il2cpp_delegate_end_invoke((Il2CppAsyncResult*) ___result, 0); return *(DictionaryEntry_t567 *)UnBox ((Il2CppCodeGenObject*)__result); } #ifndef _MSC_VER #else #endif // System.Array/InternalEnumerator`1<System.Collections.DictionaryEntry> #include "mscorlib_System_Array_InternalEnumerator_1_gen_17.h" #ifndef _MSC_VER #else #endif // System.Array/InternalEnumerator`1<System.Collections.DictionaryEntry> #include "mscorlib_System_Array_InternalEnumerator_1_gen_17MethodDeclarations.h" struct Array_t; // Declaration !!0 System.Array::InternalArray__get_Item<System.Collections.DictionaryEntry>(System.Int32) // !!0 System.Array::InternalArray__get_Item<System.Collections.DictionaryEntry>(System.Int32) extern "C" DictionaryEntry_t567 Array_InternalArray__get_Item_TisDictionaryEntry_t567_m12181_gshared (Array_t * __this, int32_t p0, const MethodInfo* method); #define Array_InternalArray__get_Item_TisDictionaryEntry_t567_m12181(__this, p0, method) (( DictionaryEntry_t567 (*) (Array_t *, int32_t, const MethodInfo*))Array_InternalArray__get_Item_TisDictionaryEntry_t567_m12181_gshared)(__this, p0, method) // System.Void System.Array/InternalEnumerator`1<System.Collections.DictionaryEntry>::.ctor(System.Array) extern "C" void InternalEnumerator_1__ctor_m8675_gshared (InternalEnumerator_1_t1483 * __this, Array_t * ___array, const MethodInfo* method) { { Array_t * L_0 = ___array; __this->___array_0 = L_0; __this->___idx_1 = ((int32_t)-2); return; } } // System.Object System.Array/InternalEnumerator`1<System.Collections.DictionaryEntry>::System.Collections.IEnumerator.get_Current() extern "C" Object_t * InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m8676_gshared (InternalEnumerator_1_t1483 * __this, const MethodInfo* method) { { DictionaryEntry_t567 L_0 = (( DictionaryEntry_t567 (*) (InternalEnumerator_1_t1483 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((InternalEnumerator_1_t1483 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); DictionaryEntry_t567 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1), &L_1); return L_2; } } // System.Void System.Array/InternalEnumerator`1<System.Collections.DictionaryEntry>::Dispose() extern "C" void InternalEnumerator_1_Dispose_m8677_gshared (InternalEnumerator_1_t1483 * __this, const MethodInfo* method) { { __this->___idx_1 = ((int32_t)-2); return; } } // System.Boolean System.Array/InternalEnumerator`1<System.Collections.DictionaryEntry>::MoveNext() extern "C" bool InternalEnumerator_1_MoveNext_m8678_gshared (InternalEnumerator_1_t1483 * __this, const MethodInfo* method) { int32_t V_0 = 0; int32_t G_B5_0 = 0; { int32_t L_0 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_0) == ((uint32_t)((int32_t)-2))))) { goto IL_001e; } } { Array_t * L_1 = (Array_t *)(__this->___array_0); NullCheck((Array_t *)L_1); int32_t L_2 = Array_get_Length_m2256((Array_t *)L_1, /*hidden argument*/NULL); __this->___idx_1 = L_2; } IL_001e: { int32_t L_3 = (int32_t)(__this->___idx_1); if ((((int32_t)L_3) == ((int32_t)(-1)))) { goto IL_0043; } } { int32_t L_4 = (int32_t)(__this->___idx_1); int32_t L_5 = (int32_t)((int32_t)((int32_t)L_4-(int32_t)1)); V_0 = (int32_t)L_5; __this->___idx_1 = L_5; int32_t L_6 = V_0; G_B5_0 = ((((int32_t)((((int32_t)L_6) == ((int32_t)(-1)))? 1 : 0)) == ((int32_t)0))? 1 : 0); goto IL_0044; } IL_0043: { G_B5_0 = 0; } IL_0044: { return G_B5_0; } } // T System.Array/InternalEnumerator`1<System.Collections.DictionaryEntry>::get_Current() extern TypeInfo* InvalidOperationException_t580_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2671; extern Il2CppCodeGenString* _stringLiteral2672; extern "C" DictionaryEntry_t567 InternalEnumerator_1_get_Current_m8679_gshared (InternalEnumerator_1_t1483 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { InvalidOperationException_t580_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(236); _stringLiteral2671 = il2cpp_codegen_string_literal_from_index(2671); _stringLiteral2672 = il2cpp_codegen_string_literal_from_index(2672); s_Il2CppMethodIntialized = true; } { int32_t L_0 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_0) == ((uint32_t)((int32_t)-2))))) { goto IL_0018; } } { InvalidOperationException_t580 * L_1 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_1, (String_t*)_stringLiteral2671, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0018: { int32_t L_2 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_2) == ((uint32_t)(-1))))) { goto IL_002f; } } { InvalidOperationException_t580 * L_3 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_3, (String_t*)_stringLiteral2672, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_3); } IL_002f: { Array_t * L_4 = (Array_t *)(__this->___array_0); Array_t * L_5 = (Array_t *)(__this->___array_0); NullCheck((Array_t *)L_5); int32_t L_6 = Array_get_Length_m2256((Array_t *)L_5, /*hidden argument*/NULL); int32_t L_7 = (int32_t)(__this->___idx_1); NullCheck((Array_t *)L_4); DictionaryEntry_t567 L_8 = (( DictionaryEntry_t567 (*) (Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((Array_t *)L_4, (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_6-(int32_t)1))-(int32_t)L_7)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); return L_8; } } #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>::.ctor(System.Object,System.IntPtr) extern "C" void Transform_1__ctor_m8680_gshared (Transform_1_t1484 * __this, Object_t * ___object, IntPtr_t ___method, const MethodInfo* method) { __this->___method_ptr_0 = (methodPointerType)((MethodInfo*)___method.___m_value_0)->method; __this->___method_3 = ___method; __this->___m_target_2 = ___object; } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>::Invoke(TKey,TValue) extern "C" KeyValuePair_2_t1472 Transform_1_Invoke_m8681_gshared (Transform_1_t1484 * __this, int32_t ___key, Object_t * ___value, const MethodInfo* method) { if(__this->___prev_9 != NULL) { Transform_1_Invoke_m8681((Transform_1_t1484 *)__this->___prev_9,___key, ___value, method); } il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->___method_3.___m_value_0)); bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->___method_3.___m_value_0)); if (__this->___m_target_2 != NULL && ___methodIsStatic) { typedef KeyValuePair_2_t1472 (*FunctionPointerType) (Object_t *, Object_t * __this, int32_t ___key, Object_t * ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(NULL,__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } else { typedef KeyValuePair_2_t1472 (*FunctionPointerType) (Object_t * __this, int32_t ___key, Object_t * ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } } // System.IAsyncResult System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>::BeginInvoke(TKey,TValue,System.AsyncCallback,System.Object) extern TypeInfo* Int32_t327_il2cpp_TypeInfo_var; extern "C" Object_t * Transform_1_BeginInvoke_m8682_gshared (Transform_1_t1484 * __this, int32_t ___key, Object_t * ___value, AsyncCallback_t54 * ___callback, Object_t * ___object, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { Int32_t327_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(35); s_Il2CppMethodIntialized = true; } void *__d_args[3] = {0}; __d_args[0] = Box(Int32_t327_il2cpp_TypeInfo_var, &___key); __d_args[1] = ___value; return (Object_t *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)___callback, (Il2CppObject*)___object); } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Int32,System.Object,System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>>::EndInvoke(System.IAsyncResult) extern "C" KeyValuePair_2_t1472 Transform_1_EndInvoke_m8683_gshared (Transform_1_t1484 * __this, Object_t * ___result, const MethodInfo* method) { Il2CppObject *__result = il2cpp_delegate_end_invoke((Il2CppAsyncResult*) ___result, 0); return *(KeyValuePair_2_t1472 *)UnBox ((Il2CppCodeGenObject*)__result); } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Int32,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>) extern "C" void ShimEnumerator__ctor_m8684_gshared (ShimEnumerator_t1485 * __this, Dictionary_2_t1471 * ___host, const MethodInfo* method) { { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); Dictionary_2_t1471 * L_0 = ___host; NullCheck((Dictionary_2_t1471 *)L_0); Enumerator_t1478 L_1 = (( Enumerator_t1478 (*) (Dictionary_2_t1471 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1471 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); __this->___host_enumerator_0 = L_1; return; } } // System.Boolean System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Int32,System.Object>::MoveNext() extern "C" bool ShimEnumerator_MoveNext_m8685_gshared (ShimEnumerator_t1485 * __this, const MethodInfo* method) { { Enumerator_t1478 * L_0 = (Enumerator_t1478 *)&(__this->___host_enumerator_0); bool L_1 = (( bool (*) (Enumerator_t1478 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((Enumerator_t1478 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); return L_1; } } // System.Collections.DictionaryEntry System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Int32,System.Object>::get_Entry() extern TypeInfo* IDictionaryEnumerator_t566_il2cpp_TypeInfo_var; extern "C" DictionaryEntry_t567 ShimEnumerator_get_Entry_m8686_gshared (ShimEnumerator_t1485 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { IDictionaryEnumerator_t566_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(274); s_Il2CppMethodIntialized = true; } { Enumerator_t1478 L_0 = (Enumerator_t1478 )(__this->___host_enumerator_0); Enumerator_t1478 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), &L_1); NullCheck((Object_t *)L_2); DictionaryEntry_t567 L_3 = (DictionaryEntry_t567 )InterfaceFuncInvoker0< DictionaryEntry_t567 >::Invoke(0 /* System.Collections.DictionaryEntry System.Collections.IDictionaryEnumerator::get_Entry() */, IDictionaryEnumerator_t566_il2cpp_TypeInfo_var, (Object_t *)L_2); return L_3; } } // System.Object System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Int32,System.Object>::get_Key() extern "C" Object_t * ShimEnumerator_get_Key_m8687_gshared (ShimEnumerator_t1485 * __this, const MethodInfo* method) { KeyValuePair_2_t1472 V_0 = {0}; { Enumerator_t1478 * L_0 = (Enumerator_t1478 *)&(__this->___host_enumerator_0); KeyValuePair_2_t1472 L_1 = (( KeyValuePair_2_t1472 (*) (Enumerator_t1478 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)->method)((Enumerator_t1478 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)); V_0 = (KeyValuePair_2_t1472 )L_1; int32_t L_2 = (( int32_t (*) (KeyValuePair_2_t1472 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((KeyValuePair_2_t1472 *)(&V_0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); int32_t L_3 = L_2; Object_t * L_4 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5), &L_3); return L_4; } } // System.Object System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Int32,System.Object>::get_Value() extern "C" Object_t * ShimEnumerator_get_Value_m8688_gshared (ShimEnumerator_t1485 * __this, const MethodInfo* method) { KeyValuePair_2_t1472 V_0 = {0}; { Enumerator_t1478 * L_0 = (Enumerator_t1478 *)&(__this->___host_enumerator_0); KeyValuePair_2_t1472 L_1 = (( KeyValuePair_2_t1472 (*) (Enumerator_t1478 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)->method)((Enumerator_t1478 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)); V_0 = (KeyValuePair_2_t1472 )L_1; Object_t * L_2 = (( Object_t * (*) (KeyValuePair_2_t1472 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)->method)((KeyValuePair_2_t1472 *)(&V_0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); return L_2; } } // System.Object System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Int32,System.Object>::get_Current() extern TypeInfo* DictionaryEntry_t567_il2cpp_TypeInfo_var; extern "C" Object_t * ShimEnumerator_get_Current_m8689_gshared (ShimEnumerator_t1485 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { DictionaryEntry_t567_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(237); s_Il2CppMethodIntialized = true; } { NullCheck((ShimEnumerator_t1485 *)__this); DictionaryEntry_t567 L_0 = (DictionaryEntry_t567 )VirtFuncInvoker0< DictionaryEntry_t567 >::Invoke(6 /* System.Collections.DictionaryEntry System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Int32,System.Object>::get_Entry() */, (ShimEnumerator_t1485 *)__this); DictionaryEntry_t567 L_1 = L_0; Object_t * L_2 = Box(DictionaryEntry_t567_il2cpp_TypeInfo_var, &L_1); return L_2; } } #ifndef _MSC_VER #else #endif // System.Collections.Generic.EqualityComparer`1/DefaultComparer<System.Int32> #include "mscorlib_System_Collections_Generic_EqualityComparer_1_Defau_0.h" // System.Collections.Generic.EqualityComparer`1/DefaultComparer<System.Int32> #include "mscorlib_System_Collections_Generic_EqualityComparer_1_Defau_0MethodDeclarations.h" // System.Void System.Collections.Generic.EqualityComparer`1<System.Int32>::.ctor() extern "C" void EqualityComparer_1__ctor_m8690_gshared (EqualityComparer_1_t1486 * __this, const MethodInfo* method) { { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); return; } } // System.Void System.Collections.Generic.EqualityComparer`1<System.Int32>::.cctor() extern const Il2CppType* GenericEqualityComparer_1_t2042_0_0_0_var; extern TypeInfo* Type_t_il2cpp_TypeInfo_var; extern TypeInfo* TypeU5BU5D_t203_il2cpp_TypeInfo_var; extern "C" void EqualityComparer_1__cctor_m8691_gshared (Object_t * __this /* static, unused */, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { GenericEqualityComparer_1_t2042_0_0_0_var = il2cpp_codegen_type_from_index(2137); Type_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(160); TypeU5BU5D_t203_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(173); s_Il2CppMethodIntialized = true; } { IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_0 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)), /*hidden argument*/NULL); Type_t * L_1 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)), /*hidden argument*/NULL); NullCheck((Type_t *)L_0); bool L_2 = (bool)VirtFuncInvoker1< bool, Type_t * >::Invoke(40 /* System.Boolean System.Type::IsAssignableFrom(System.Type) */, (Type_t *)L_0, (Type_t *)L_1); if (!L_2) { goto IL_0054; } } { IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_3 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(GenericEqualityComparer_1_t2042_0_0_0_var), /*hidden argument*/NULL); TypeU5BU5D_t203* L_4 = (TypeU5BU5D_t203*)((TypeU5BU5D_t203*)SZArrayNew(TypeU5BU5D_t203_il2cpp_TypeInfo_var, 1)); Type_t * L_5 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)), /*hidden argument*/NULL); NullCheck(L_4); IL2CPP_ARRAY_BOUNDS_CHECK(L_4, 0); ArrayElementTypeCheck (L_4, L_5); *((Type_t **)(Type_t **)SZArrayLdElema(L_4, 0)) = (Type_t *)L_5; NullCheck((Type_t *)L_3); Type_t * L_6 = (Type_t *)VirtFuncInvoker1< Type_t *, TypeU5BU5D_t203* >::Invoke(79 /* System.Type System.Type::MakeGenericType(System.Type[]) */, (Type_t *)L_3, (TypeU5BU5D_t203*)L_4); Object_t * L_7 = Activator_CreateInstance_m7459(NULL /*static, unused*/, (Type_t *)L_6, /*hidden argument*/NULL); ((EqualityComparer_1_t1486_StaticFields*)IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)->static_fields)->____default_0 = ((EqualityComparer_1_t1486 *)Castclass(L_7, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2))); goto IL_005e; } IL_0054: { DefaultComparer_t1488 * L_8 = (DefaultComparer_t1488 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); (( void (*) (DefaultComparer_t1488 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)(L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); ((EqualityComparer_1_t1486_StaticFields*)IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)->static_fields)->____default_0 = L_8; } IL_005e: { return; } } // System.Int32 System.Collections.Generic.EqualityComparer`1<System.Int32>::System.Collections.IEqualityComparer.GetHashCode(System.Object) extern "C" int32_t EqualityComparer_1_System_Collections_IEqualityComparer_GetHashCode_m8692_gshared (EqualityComparer_1_t1486 * __this, Object_t * ___obj, const MethodInfo* method) { { Object_t * L_0 = ___obj; NullCheck((EqualityComparer_1_t1486 *)__this); int32_t L_1 = (int32_t)VirtFuncInvoker1< int32_t, int32_t >::Invoke(8 /* System.Int32 System.Collections.Generic.EqualityComparer`1<System.Int32>::GetHashCode(T) */, (EqualityComparer_1_t1486 *)__this, (int32_t)((*(int32_t*)((int32_t*)UnBox (L_0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)))))); return L_1; } } // System.Boolean System.Collections.Generic.EqualityComparer`1<System.Int32>::System.Collections.IEqualityComparer.Equals(System.Object,System.Object) extern "C" bool EqualityComparer_1_System_Collections_IEqualityComparer_Equals_m8693_gshared (EqualityComparer_1_t1486 * __this, Object_t * ___x, Object_t * ___y, const MethodInfo* method) { { Object_t * L_0 = ___x; Object_t * L_1 = ___y; NullCheck((EqualityComparer_1_t1486 *)__this); bool L_2 = (bool)VirtFuncInvoker2< bool, int32_t, int32_t >::Invoke(9 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Int32>::Equals(T,T) */, (EqualityComparer_1_t1486 *)__this, (int32_t)((*(int32_t*)((int32_t*)UnBox (L_0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6))))), (int32_t)((*(int32_t*)((int32_t*)UnBox (L_1, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)))))); return L_2; } } // System.Collections.Generic.EqualityComparer`1<T> System.Collections.Generic.EqualityComparer`1<System.Int32>::get_Default() extern "C" EqualityComparer_1_t1486 * EqualityComparer_1_get_Default_m8694_gshared (Object_t * __this /* static, unused */, const MethodInfo* method) { { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)); EqualityComparer_1_t1486 * L_0 = ((EqualityComparer_1_t1486_StaticFields*)IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)->static_fields)->____default_0; return L_0; } } // System.Collections.Generic.GenericEqualityComparer`1<System.Int32> #include "mscorlib_System_Collections_Generic_GenericEqualityComparer__3.h" #ifndef _MSC_VER #else #endif // System.Collections.Generic.GenericEqualityComparer`1<System.Int32> #include "mscorlib_System_Collections_Generic_GenericEqualityComparer__3MethodDeclarations.h" // System.Void System.Collections.Generic.GenericEqualityComparer`1<System.Int32>::.ctor() extern "C" void GenericEqualityComparer_1__ctor_m8695_gshared (GenericEqualityComparer_1_t1487 * __this, const MethodInfo* method) { { NullCheck((EqualityComparer_1_t1486 *)__this); IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); (( void (*) (EqualityComparer_1_t1486 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((EqualityComparer_1_t1486 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); return; } } // System.Int32 System.Collections.Generic.GenericEqualityComparer`1<System.Int32>::GetHashCode(T) extern "C" int32_t GenericEqualityComparer_1_GetHashCode_m8696_gshared (GenericEqualityComparer_1_t1487 * __this, int32_t ___obj, const MethodInfo* method) { { int32_t L_0 = ___obj; goto IL_000d; } { return 0; } IL_000d: { NullCheck((int32_t*)(&___obj)); int32_t L_1 = Int32_GetHashCode_m1196((int32_t*)(&___obj), NULL); return L_1; } } // System.Boolean System.Collections.Generic.GenericEqualityComparer`1<System.Int32>::Equals(T,T) extern "C" bool GenericEqualityComparer_1_Equals_m8697_gshared (GenericEqualityComparer_1_t1487 * __this, int32_t ___x, int32_t ___y, const MethodInfo* method) { { int32_t L_0 = ___x; goto IL_0015; } { int32_t L_1 = ___y; int32_t L_2 = L_1; Object_t * L_3 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), &L_2); return ((((Object_t*)(Object_t *)L_3) == ((Object_t*)(Object_t *)NULL))? 1 : 0); } IL_0015: { int32_t L_4 = ___y; NullCheck((int32_t*)(&___x)); bool L_5 = Int32_Equals_m1198((int32_t*)(&___x), (int32_t)L_4, NULL); return L_5; } } #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.EqualityComparer`1/DefaultComparer<System.Int32>::.ctor() extern "C" void DefaultComparer__ctor_m8698_gshared (DefaultComparer_t1488 * __this, const MethodInfo* method) { { NullCheck((EqualityComparer_1_t1486 *)__this); IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); (( void (*) (EqualityComparer_1_t1486 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((EqualityComparer_1_t1486 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); return; } } // System.Int32 System.Collections.Generic.EqualityComparer`1/DefaultComparer<System.Int32>::GetHashCode(T) extern "C" int32_t DefaultComparer_GetHashCode_m8699_gshared (DefaultComparer_t1488 * __this, int32_t ___obj, const MethodInfo* method) { { int32_t L_0 = ___obj; goto IL_000d; } { return 0; } IL_000d: { NullCheck((int32_t*)(&___obj)); int32_t L_1 = Int32_GetHashCode_m1196((int32_t*)(&___obj), NULL); return L_1; } } // System.Boolean System.Collections.Generic.EqualityComparer`1/DefaultComparer<System.Int32>::Equals(T,T) extern "C" bool DefaultComparer_Equals_m8700_gshared (DefaultComparer_t1488 * __this, int32_t ___x, int32_t ___y, const MethodInfo* method) { { int32_t L_0 = ___x; goto IL_0015; } { int32_t L_1 = ___y; int32_t L_2 = L_1; Object_t * L_3 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), &L_2); return ((((Object_t*)(Object_t *)L_3) == ((Object_t*)(Object_t *)NULL))? 1 : 0); } IL_0015: { int32_t L_4 = ___y; int32_t L_5 = L_4; Object_t * L_6 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), &L_5); NullCheck((int32_t*)(&___x)); bool L_7 = Int32_Equals_m3417((int32_t*)(&___x), (Object_t *)L_6, NULL); return L_7; } } // System.Collections.Generic.Dictionary`2<System.Object,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_gen_10.h" #ifndef _MSC_VER #else #endif // System.Collections.Generic.Dictionary`2<System.Object,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_gen_10MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_KeyCollecti_3.h" // System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_ValueCollec_5.h" // System.Collections.Generic.KeyValuePair`2<System.Object,System.Object> #include "mscorlib_System_Collections_Generic_KeyValuePair_2_gen_5.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Object,System.Collections.DictionaryEntry> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1_5.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Object,System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1_6.h" // System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_Enumerator__3.h" // System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Object,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_ShimEnumera_0.h" // System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_KeyCollecti_3MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_ValueCollec_5MethodDeclarations.h" // System.Collections.Generic.KeyValuePair`2<System.Object,System.Object> #include "mscorlib_System_Collections_Generic_KeyValuePair_2_gen_5MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Object,System.Collections.DictionaryEntry> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1_5MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Object,System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1_6MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_Enumerator__3MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Object,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_ShimEnumera_0MethodDeclarations.h" struct Dictionary_2_t1499; struct DictionaryEntryU5BU5D_t1958; struct Transform_1_t1498; // Declaration System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::Do_CopyTo<System.Collections.DictionaryEntry,System.Collections.DictionaryEntry>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::Do_CopyTo<System.Collections.DictionaryEntry,System.Collections.DictionaryEntry>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) extern "C" void Dictionary_2_Do_CopyTo_TisDictionaryEntry_t567_TisDictionaryEntry_t567_m12208_gshared (Dictionary_2_t1499 * __this, DictionaryEntryU5BU5D_t1958* p0, int32_t p1, Transform_1_t1498 * p2, const MethodInfo* method); #define Dictionary_2_Do_CopyTo_TisDictionaryEntry_t567_TisDictionaryEntry_t567_m12208(__this, p0, p1, p2, method) (( void (*) (Dictionary_2_t1499 *, DictionaryEntryU5BU5D_t1958*, int32_t, Transform_1_t1498 *, const MethodInfo*))Dictionary_2_Do_CopyTo_TisDictionaryEntry_t567_TisDictionaryEntry_t567_m12208_gshared)(__this, p0, p1, p2, method) struct Dictionary_2_t1499; struct Array_t; struct Transform_1_t1508; // Declaration System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::Do_ICollectionCopyTo<System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>>(System.Array,System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::Do_ICollectionCopyTo<System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>>(System.Array,System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) extern "C" void Dictionary_2_Do_ICollectionCopyTo_TisKeyValuePair_2_t1500_m12210_gshared (Dictionary_2_t1499 * __this, Array_t * p0, int32_t p1, Transform_1_t1508 * p2, const MethodInfo* method); #define Dictionary_2_Do_ICollectionCopyTo_TisKeyValuePair_2_t1500_m12210(__this, p0, p1, p2, method) (( void (*) (Dictionary_2_t1499 *, Array_t *, int32_t, Transform_1_t1508 *, const MethodInfo*))Dictionary_2_Do_ICollectionCopyTo_TisKeyValuePair_2_t1500_m12210_gshared)(__this, p0, p1, p2, method) struct Dictionary_2_t1499; struct KeyValuePair_2U5BU5D_t1632; struct Transform_1_t1508; // Declaration System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::Do_CopyTo<System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>,System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::Do_CopyTo<System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>,System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) extern "C" void Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t1500_TisKeyValuePair_2_t1500_m12211_gshared (Dictionary_2_t1499 * __this, KeyValuePair_2U5BU5D_t1632* p0, int32_t p1, Transform_1_t1508 * p2, const MethodInfo* method); #define Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t1500_TisKeyValuePair_2_t1500_m12211(__this, p0, p1, p2, method) (( void (*) (Dictionary_2_t1499 *, KeyValuePair_2U5BU5D_t1632*, int32_t, Transform_1_t1508 *, const MethodInfo*))Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t1500_TisKeyValuePair_2_t1500_m12211_gshared)(__this, p0, p1, p2, method) // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::.ctor() extern "C" void Dictionary_2__ctor_m8790_gshared (Dictionary_2_t1499 * __this, const MethodInfo* method) { { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); NullCheck((Dictionary_2_t1499 *)__this); (( void (*) (Dictionary_2_t1499 *, int32_t, Object_t*, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1499 *)__this, (int32_t)((int32_t)10), (Object_t*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::.ctor(System.Collections.Generic.IEqualityComparer`1<TKey>) extern "C" void Dictionary_2__ctor_m8791_gshared (Dictionary_2_t1499 * __this, Object_t* ___comparer, const MethodInfo* method) { { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); Object_t* L_0 = ___comparer; NullCheck((Dictionary_2_t1499 *)__this); (( void (*) (Dictionary_2_t1499 *, int32_t, Object_t*, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1499 *)__this, (int32_t)((int32_t)10), (Object_t*)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>) extern "C" void Dictionary_2__ctor_m8793_gshared (Dictionary_2_t1499 * __this, Object_t* ___dictionary, const MethodInfo* method) { { Object_t* L_0 = ___dictionary; NullCheck((Dictionary_2_t1499 *)__this); (( void (*) (Dictionary_2_t1499 *, Object_t*, Object_t*, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((Dictionary_2_t1499 *)__this, (Object_t*)L_0, (Object_t*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::.ctor(System.Int32) extern "C" void Dictionary_2__ctor_m8795_gshared (Dictionary_2_t1499 * __this, int32_t ___capacity, const MethodInfo* method) { { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); int32_t L_0 = ___capacity; NullCheck((Dictionary_2_t1499 *)__this); (( void (*) (Dictionary_2_t1499 *, int32_t, Object_t*, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1499 *)__this, (int32_t)L_0, (Object_t*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>,System.Collections.Generic.IEqualityComparer`1<TKey>) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern TypeInfo* IEnumerator_t286_il2cpp_TypeInfo_var; extern TypeInfo* IDisposable_t326_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral1250; extern "C" void Dictionary_2__ctor_m8797_gshared (Dictionary_2_t1499 * __this, Object_t* ___dictionary, Object_t* ___comparer, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); IEnumerator_t286_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(142); IDisposable_t326_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(27); _stringLiteral1250 = il2cpp_codegen_string_literal_from_index(1250); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; KeyValuePair_2_t1500 V_1 = {0}; Object_t* V_2 = {0}; Exception_t74 * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t74 * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); int32_t __leave_target = 0; NO_UNUSED_WARNING (__leave_target); { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); Object_t* L_0 = ___dictionary; if (L_0) { goto IL_0017; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral1250, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0017: { Object_t* L_2 = ___dictionary; NullCheck((Object_t*)L_2); int32_t L_3 = (int32_t)InterfaceFuncInvoker0< int32_t >::Invoke(0 /* System.Int32 System.Collections.Generic.ICollection`1<System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>>::get_Count() */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), (Object_t*)L_2); V_0 = (int32_t)L_3; int32_t L_4 = V_0; Object_t* L_5 = ___comparer; NullCheck((Dictionary_2_t1499 *)__this); (( void (*) (Dictionary_2_t1499 *, int32_t, Object_t*, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1499 *)__this, (int32_t)L_4, (Object_t*)L_5, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); Object_t* L_6 = ___dictionary; NullCheck((Object_t*)L_6); Object_t* L_7 = (Object_t*)InterfaceFuncInvoker0< Object_t* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<T> System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>>::GetEnumerator() */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3), (Object_t*)L_6); V_2 = (Object_t*)L_7; } IL_002d: try { // begin try (depth: 1) { goto IL_004d; } IL_0032: { Object_t* L_8 = V_2; NullCheck((Object_t*)L_8); KeyValuePair_2_t1500 L_9 = (KeyValuePair_2_t1500 )InterfaceFuncInvoker0< KeyValuePair_2_t1500 >::Invoke(0 /* T System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>>::get_Current() */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4), (Object_t*)L_8); V_1 = (KeyValuePair_2_t1500 )L_9; Object_t * L_10 = (( Object_t * (*) (KeyValuePair_2_t1500 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((KeyValuePair_2_t1500 *)(&V_1), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); Object_t * L_11 = (( Object_t * (*) (KeyValuePair_2_t1500 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)->method)((KeyValuePair_2_t1500 *)(&V_1), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); NullCheck((Dictionary_2_t1499 *)__this); VirtActionInvoker2< Object_t *, Object_t * >::Invoke(17 /* System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::Add(TKey,TValue) */, (Dictionary_2_t1499 *)__this, (Object_t *)L_10, (Object_t *)L_11); } IL_004d: { Object_t* L_12 = V_2; NullCheck((Object_t *)L_12); bool L_13 = (bool)InterfaceFuncInvoker0< bool >::Invoke(1 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t286_il2cpp_TypeInfo_var, (Object_t *)L_12); if (L_13) { goto IL_0032; } } IL_0058: { IL2CPP_LEAVE(0x68, FINALLY_005d); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t74 *)e.ex; goto FINALLY_005d; } FINALLY_005d: { // begin finally (depth: 1) { Object_t* L_14 = V_2; if (L_14) { goto IL_0061; } } IL_0060: { IL2CPP_END_FINALLY(93) } IL_0061: { Object_t* L_15 = V_2; NullCheck((Object_t *)L_15); InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t326_il2cpp_TypeInfo_var, (Object_t *)L_15); IL2CPP_END_FINALLY(93) } } // end finally (depth: 1) IL2CPP_CLEANUP(93) { IL2CPP_JUMP_TBL(0x68, IL_0068) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t74 *) } IL_0068: { return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) extern "C" void Dictionary_2__ctor_m8799_gshared (Dictionary_2_t1499 * __this, SerializationInfo_t317 * ___info, StreamingContext_t318 ___context, const MethodInfo* method) { { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); SerializationInfo_t317 * L_0 = ___info; __this->___serialization_info_13 = L_0; return; } } // System.Collections.Generic.ICollection`1<TKey> System.Collections.Generic.Dictionary`2<System.Object,System.Object>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Keys() extern "C" Object_t* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Keys_m8801_gshared (Dictionary_2_t1499 * __this, const MethodInfo* method) { { NullCheck((Dictionary_2_t1499 *)__this); KeyCollection_t1502 * L_0 = (( KeyCollection_t1502 * (*) (Dictionary_2_t1499 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)((Dictionary_2_t1499 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); return L_0; } } // System.Collections.Generic.ICollection`1<TValue> System.Collections.Generic.Dictionary`2<System.Object,System.Object>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Values() extern "C" Object_t* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Values_m8803_gshared (Dictionary_2_t1499 * __this, const MethodInfo* method) { { NullCheck((Dictionary_2_t1499 *)__this); ValueCollection_t1506 * L_0 = (( ValueCollection_t1506 * (*) (Dictionary_2_t1499 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)->method)((Dictionary_2_t1499 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)); return L_0; } } // System.Object System.Collections.Generic.Dictionary`2<System.Object,System.Object>::System.Collections.IDictionary.get_Item(System.Object) extern "C" Object_t * Dictionary_2_System_Collections_IDictionary_get_Item_m8805_gshared (Dictionary_2_t1499 * __this, Object_t * ___key, const MethodInfo* method) { { Object_t * L_0 = ___key; if (!((Object_t *)IsInst(L_0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)))) { goto IL_002f; } } { Object_t * L_1 = ___key; NullCheck((Dictionary_2_t1499 *)__this); bool L_2 = (bool)VirtFuncInvoker1< bool, Object_t * >::Invoke(30 /* System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Object>::ContainsKey(TKey) */, (Dictionary_2_t1499 *)__this, (Object_t *)((Object_t *)Castclass(L_1, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)))); if (!L_2) { goto IL_002f; } } { Object_t * L_3 = ___key; NullCheck((Dictionary_2_t1499 *)__this); Object_t * L_4 = (( Object_t * (*) (Dictionary_2_t1499 *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 12)->method)((Dictionary_2_t1499 *)__this, (Object_t *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 12)); NullCheck((Dictionary_2_t1499 *)__this); Object_t * L_5 = (Object_t *)VirtFuncInvoker1< Object_t *, Object_t * >::Invoke(19 /* TValue System.Collections.Generic.Dictionary`2<System.Object,System.Object>::get_Item(TKey) */, (Dictionary_2_t1499 *)__this, (Object_t *)L_4); return L_5; } IL_002f: { return NULL; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::System.Collections.IDictionary.set_Item(System.Object,System.Object) extern "C" void Dictionary_2_System_Collections_IDictionary_set_Item_m8807_gshared (Dictionary_2_t1499 * __this, Object_t * ___key, Object_t * ___value, const MethodInfo* method) { { Object_t * L_0 = ___key; NullCheck((Dictionary_2_t1499 *)__this); Object_t * L_1 = (( Object_t * (*) (Dictionary_2_t1499 *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 12)->method)((Dictionary_2_t1499 *)__this, (Object_t *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 12)); Object_t * L_2 = ___value; NullCheck((Dictionary_2_t1499 *)__this); Object_t * L_3 = (( Object_t * (*) (Dictionary_2_t1499 *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 15)->method)((Dictionary_2_t1499 *)__this, (Object_t *)L_2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 15)); NullCheck((Dictionary_2_t1499 *)__this); VirtActionInvoker2< Object_t *, Object_t * >::Invoke(20 /* System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::set_Item(TKey,TValue) */, (Dictionary_2_t1499 *)__this, (Object_t *)L_1, (Object_t *)L_3); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::System.Collections.IDictionary.Add(System.Object,System.Object) extern "C" void Dictionary_2_System_Collections_IDictionary_Add_m8809_gshared (Dictionary_2_t1499 * __this, Object_t * ___key, Object_t * ___value, const MethodInfo* method) { { Object_t * L_0 = ___key; NullCheck((Dictionary_2_t1499 *)__this); Object_t * L_1 = (( Object_t * (*) (Dictionary_2_t1499 *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 12)->method)((Dictionary_2_t1499 *)__this, (Object_t *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 12)); Object_t * L_2 = ___value; NullCheck((Dictionary_2_t1499 *)__this); Object_t * L_3 = (( Object_t * (*) (Dictionary_2_t1499 *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 15)->method)((Dictionary_2_t1499 *)__this, (Object_t *)L_2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 15)); NullCheck((Dictionary_2_t1499 *)__this); VirtActionInvoker2< Object_t *, Object_t * >::Invoke(17 /* System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::Add(TKey,TValue) */, (Dictionary_2_t1499 *)__this, (Object_t *)L_1, (Object_t *)L_3); return; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Object>::System.Collections.IDictionary.Contains(System.Object) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern "C" bool Dictionary_2_System_Collections_IDictionary_Contains_m8811_gshared (Dictionary_2_t1499 * __this, Object_t * ___key, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); s_Il2CppMethodIntialized = true; } { Object_t * L_0 = ___key; if (L_0) { goto IL_0011; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0011: { Object_t * L_2 = ___key; if (!((Object_t *)IsInst(L_2, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)))) { goto IL_0029; } } { Object_t * L_3 = ___key; NullCheck((Dictionary_2_t1499 *)__this); bool L_4 = (bool)VirtFuncInvoker1< bool, Object_t * >::Invoke(30 /* System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Object>::ContainsKey(TKey) */, (Dictionary_2_t1499 *)__this, (Object_t *)((Object_t *)Castclass(L_3, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)))); return L_4; } IL_0029: { return 0; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::System.Collections.IDictionary.Remove(System.Object) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern "C" void Dictionary_2_System_Collections_IDictionary_Remove_m8813_gshared (Dictionary_2_t1499 * __this, Object_t * ___key, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); s_Il2CppMethodIntialized = true; } { Object_t * L_0 = ___key; if (L_0) { goto IL_0011; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0011: { Object_t * L_2 = ___key; if (!((Object_t *)IsInst(L_2, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)))) { goto IL_0029; } } { Object_t * L_3 = ___key; NullCheck((Dictionary_2_t1499 *)__this); VirtFuncInvoker1< bool, Object_t * >::Invoke(33 /* System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Object>::Remove(TKey) */, (Dictionary_2_t1499 *)__this, (Object_t *)((Object_t *)Castclass(L_3, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)))); } IL_0029: { return; } } // System.Object System.Collections.Generic.Dictionary`2<System.Object,System.Object>::System.Collections.ICollection.get_SyncRoot() extern "C" Object_t * Dictionary_2_System_Collections_ICollection_get_SyncRoot_m8815_gshared (Dictionary_2_t1499 * __this, const MethodInfo* method) { { return __this; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.get_IsReadOnly() extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_get_IsReadOnly_m8817_gshared (Dictionary_2_t1499 * __this, const MethodInfo* method) { { return 0; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Add(System.Collections.Generic.KeyValuePair`2<TKey,TValue>) extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Add_m8819_gshared (Dictionary_2_t1499 * __this, KeyValuePair_2_t1500 ___keyValuePair, const MethodInfo* method) { { Object_t * L_0 = (( Object_t * (*) (KeyValuePair_2_t1500 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((KeyValuePair_2_t1500 *)(&___keyValuePair), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); Object_t * L_1 = (( Object_t * (*) (KeyValuePair_2_t1500 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)->method)((KeyValuePair_2_t1500 *)(&___keyValuePair), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); NullCheck((Dictionary_2_t1499 *)__this); VirtActionInvoker2< Object_t *, Object_t * >::Invoke(17 /* System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::Add(TKey,TValue) */, (Dictionary_2_t1499 *)__this, (Object_t *)L_0, (Object_t *)L_1); return; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains(System.Collections.Generic.KeyValuePair`2<TKey,TValue>) extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Contains_m8821_gshared (Dictionary_2_t1499 * __this, KeyValuePair_2_t1500 ___keyValuePair, const MethodInfo* method) { { KeyValuePair_2_t1500 L_0 = ___keyValuePair; NullCheck((Dictionary_2_t1499 *)__this); bool L_1 = (( bool (*) (Dictionary_2_t1499 *, KeyValuePair_2_t1500 , const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 18)->method)((Dictionary_2_t1499 *)__this, (KeyValuePair_2_t1500 )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 18)); return L_1; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32) extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_CopyTo_m8823_gshared (Dictionary_2_t1499 * __this, KeyValuePair_2U5BU5D_t1632* ___array, int32_t ___index, const MethodInfo* method) { { KeyValuePair_2U5BU5D_t1632* L_0 = ___array; int32_t L_1 = ___index; NullCheck((Dictionary_2_t1499 *)__this); (( void (*) (Dictionary_2_t1499 *, KeyValuePair_2U5BU5D_t1632*, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 19)->method)((Dictionary_2_t1499 *)__this, (KeyValuePair_2U5BU5D_t1632*)L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 19)); return; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Object>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove(System.Collections.Generic.KeyValuePair`2<TKey,TValue>) extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Remove_m8825_gshared (Dictionary_2_t1499 * __this, KeyValuePair_2_t1500 ___keyValuePair, const MethodInfo* method) { { KeyValuePair_2_t1500 L_0 = ___keyValuePair; NullCheck((Dictionary_2_t1499 *)__this); bool L_1 = (( bool (*) (Dictionary_2_t1499 *, KeyValuePair_2_t1500 , const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 18)->method)((Dictionary_2_t1499 *)__this, (KeyValuePair_2_t1500 )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 18)); if (L_1) { goto IL_000e; } } { return 0; } IL_000e: { Object_t * L_2 = (( Object_t * (*) (KeyValuePair_2_t1500 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((KeyValuePair_2_t1500 *)(&___keyValuePair), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); NullCheck((Dictionary_2_t1499 *)__this); bool L_3 = (bool)VirtFuncInvoker1< bool, Object_t * >::Invoke(33 /* System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Object>::Remove(TKey) */, (Dictionary_2_t1499 *)__this, (Object_t *)L_2); return L_3; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::System.Collections.ICollection.CopyTo(System.Array,System.Int32) extern TypeInfo* DictionaryEntryU5BU5D_t1958_il2cpp_TypeInfo_var; extern "C" void Dictionary_2_System_Collections_ICollection_CopyTo_m8827_gshared (Dictionary_2_t1499 * __this, Array_t * ___array, int32_t ___index, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { DictionaryEntryU5BU5D_t1958_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(2138); s_Il2CppMethodIntialized = true; } KeyValuePair_2U5BU5D_t1632* V_0 = {0}; DictionaryEntryU5BU5D_t1958* V_1 = {0}; int32_t G_B5_0 = 0; DictionaryEntryU5BU5D_t1958* G_B5_1 = {0}; Dictionary_2_t1499 * G_B5_2 = {0}; int32_t G_B4_0 = 0; DictionaryEntryU5BU5D_t1958* G_B4_1 = {0}; Dictionary_2_t1499 * G_B4_2 = {0}; { Array_t * L_0 = ___array; V_0 = (KeyValuePair_2U5BU5D_t1632*)((KeyValuePair_2U5BU5D_t1632*)IsInst(L_0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 20))); KeyValuePair_2U5BU5D_t1632* L_1 = V_0; if (!L_1) { goto IL_0016; } } { KeyValuePair_2U5BU5D_t1632* L_2 = V_0; int32_t L_3 = ___index; NullCheck((Dictionary_2_t1499 *)__this); (( void (*) (Dictionary_2_t1499 *, KeyValuePair_2U5BU5D_t1632*, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 19)->method)((Dictionary_2_t1499 *)__this, (KeyValuePair_2U5BU5D_t1632*)L_2, (int32_t)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 19)); return; } IL_0016: { Array_t * L_4 = ___array; int32_t L_5 = ___index; NullCheck((Dictionary_2_t1499 *)__this); (( void (*) (Dictionary_2_t1499 *, Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 21)->method)((Dictionary_2_t1499 *)__this, (Array_t *)L_4, (int32_t)L_5, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 21)); Array_t * L_6 = ___array; V_1 = (DictionaryEntryU5BU5D_t1958*)((DictionaryEntryU5BU5D_t1958*)IsInst(L_6, DictionaryEntryU5BU5D_t1958_il2cpp_TypeInfo_var)); DictionaryEntryU5BU5D_t1958* L_7 = V_1; if (!L_7) { goto IL_0051; } } { DictionaryEntryU5BU5D_t1958* L_8 = V_1; int32_t L_9 = ___index; Transform_1_t1498 * L_10 = ((Dictionary_2_t1499_StaticFields*)IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 22)->static_fields)->___U3CU3Ef__amU24cacheB_15; G_B4_0 = L_9; G_B4_1 = L_8; G_B4_2 = ((Dictionary_2_t1499 *)(__this)); if (L_10) { G_B5_0 = L_9; G_B5_1 = L_8; G_B5_2 = ((Dictionary_2_t1499 *)(__this)); goto IL_0046; } } { IntPtr_t L_11 = { (void*)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 23) }; Transform_1_t1498 * L_12 = (Transform_1_t1498 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 24)); (( void (*) (Transform_1_t1498 *, Object_t *, IntPtr_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 25)->method)(L_12, (Object_t *)NULL, (IntPtr_t)L_11, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 25)); ((Dictionary_2_t1499_StaticFields*)IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 22)->static_fields)->___U3CU3Ef__amU24cacheB_15 = L_12; G_B5_0 = G_B4_0; G_B5_1 = G_B4_1; G_B5_2 = ((Dictionary_2_t1499 *)(G_B4_2)); } IL_0046: { Transform_1_t1498 * L_13 = ((Dictionary_2_t1499_StaticFields*)IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 22)->static_fields)->___U3CU3Ef__amU24cacheB_15; NullCheck((Dictionary_2_t1499 *)G_B5_2); (( void (*) (Dictionary_2_t1499 *, DictionaryEntryU5BU5D_t1958*, int32_t, Transform_1_t1498 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 26)->method)((Dictionary_2_t1499 *)G_B5_2, (DictionaryEntryU5BU5D_t1958*)G_B5_1, (int32_t)G_B5_0, (Transform_1_t1498 *)L_13, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 26)); return; } IL_0051: { Array_t * L_14 = ___array; int32_t L_15 = ___index; IntPtr_t L_16 = { (void*)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 27) }; Transform_1_t1508 * L_17 = (Transform_1_t1508 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 28)); (( void (*) (Transform_1_t1508 *, Object_t *, IntPtr_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 29)->method)(L_17, (Object_t *)NULL, (IntPtr_t)L_16, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 29)); NullCheck((Dictionary_2_t1499 *)__this); (( void (*) (Dictionary_2_t1499 *, Array_t *, int32_t, Transform_1_t1508 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 30)->method)((Dictionary_2_t1499 *)__this, (Array_t *)L_14, (int32_t)L_15, (Transform_1_t1508 *)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 30)); return; } } // System.Collections.IEnumerator System.Collections.Generic.Dictionary`2<System.Object,System.Object>::System.Collections.IEnumerable.GetEnumerator() extern "C" Object_t * Dictionary_2_System_Collections_IEnumerable_GetEnumerator_m8829_gshared (Dictionary_2_t1499 * __this, const MethodInfo* method) { { Enumerator_t1504 L_0 = {0}; (( void (*) (Enumerator_t1504 *, Dictionary_2_t1499 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 32)->method)(&L_0, (Dictionary_2_t1499 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 32)); Enumerator_t1504 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 31), &L_1); return (Object_t *)L_2; } } // System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<TKey,TValue>> System.Collections.Generic.Dictionary`2<System.Object,System.Object>::System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>.GetEnumerator() extern "C" Object_t* Dictionary_2_System_Collections_Generic_IEnumerableU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_GetEnumerator_m8831_gshared (Dictionary_2_t1499 * __this, const MethodInfo* method) { { Enumerator_t1504 L_0 = {0}; (( void (*) (Enumerator_t1504 *, Dictionary_2_t1499 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 32)->method)(&L_0, (Dictionary_2_t1499 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 32)); Enumerator_t1504 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 31), &L_1); return (Object_t*)L_2; } } // System.Collections.IDictionaryEnumerator System.Collections.Generic.Dictionary`2<System.Object,System.Object>::System.Collections.IDictionary.GetEnumerator() extern "C" Object_t * Dictionary_2_System_Collections_IDictionary_GetEnumerator_m8833_gshared (Dictionary_2_t1499 * __this, const MethodInfo* method) { { ShimEnumerator_t1509 * L_0 = (ShimEnumerator_t1509 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 33)); (( void (*) (ShimEnumerator_t1509 *, Dictionary_2_t1499 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 34)->method)(L_0, (Dictionary_2_t1499 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 34)); return L_0; } } // System.Int32 System.Collections.Generic.Dictionary`2<System.Object,System.Object>::get_Count() extern "C" int32_t Dictionary_2_get_Count_m8835_gshared (Dictionary_2_t1499 * __this, const MethodInfo* method) { { int32_t L_0 = (int32_t)(__this->___count_10); return L_0; } } // TValue System.Collections.Generic.Dictionary`2<System.Object,System.Object>::get_Item(TKey) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern TypeInfo* KeyNotFoundException_t872_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern "C" Object_t * Dictionary_2_get_Item_m8837_gshared (Dictionary_2_t1499 * __this, Object_t * ___key, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); KeyNotFoundException_t872_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(2139); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; int32_t V_1 = 0; { Object_t * L_0 = ___key; if (L_0) { goto IL_0016; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0016: { Object_t* L_2 = (Object_t*)(__this->___hcp_12); Object_t * L_3 = ___key; NullCheck((Object_t*)L_2); int32_t L_4 = (int32_t)InterfaceFuncInvoker1< int32_t, Object_t * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_2, (Object_t *)L_3); V_0 = (int32_t)((int32_t)((int32_t)L_4|(int32_t)((int32_t)-2147483648))); Int32U5BU5D_t501* L_5 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_6 = V_0; Int32U5BU5D_t501* L_7 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_7); NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, ((int32_t)((int32_t)((int32_t)((int32_t)L_6&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_7)->max_length)))))); int32_t L_8 = ((int32_t)((int32_t)((int32_t)((int32_t)L_6&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_7)->max_length))))); V_1 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_5, L_8))-(int32_t)1)); goto IL_009b; } IL_0048: { LinkU5BU5D_t1466* L_9 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_10 = V_1; NullCheck(L_9); IL2CPP_ARRAY_BOUNDS_CHECK(L_9, L_10); int32_t L_11 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_9, L_10))->___HashCode_0); int32_t L_12 = V_0; if ((!(((uint32_t)L_11) == ((uint32_t)L_12)))) { goto IL_0089; } } { Object_t* L_13 = (Object_t*)(__this->___hcp_12); ObjectU5BU5D_t207* L_14 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); int32_t L_15 = V_1; NullCheck(L_14); IL2CPP_ARRAY_BOUNDS_CHECK(L_14, L_15); int32_t L_16 = L_15; Object_t * L_17 = ___key; NullCheck((Object_t*)L_13); bool L_18 = (bool)InterfaceFuncInvoker2< bool, Object_t *, Object_t * >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Object>::Equals(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_13, (Object_t *)(*(Object_t **)(Object_t **)SZArrayLdElema(L_14, L_16)), (Object_t *)L_17); if (!L_18) { goto IL_0089; } } { ObjectU5BU5D_t207* L_19 = (ObjectU5BU5D_t207*)(__this->___valueSlots_7); int32_t L_20 = V_1; NullCheck(L_19); IL2CPP_ARRAY_BOUNDS_CHECK(L_19, L_20); int32_t L_21 = L_20; return (*(Object_t **)(Object_t **)SZArrayLdElema(L_19, L_21)); } IL_0089: { LinkU5BU5D_t1466* L_22 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_23 = V_1; NullCheck(L_22); IL2CPP_ARRAY_BOUNDS_CHECK(L_22, L_23); int32_t L_24 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_22, L_23))->___Next_1); V_1 = (int32_t)L_24; } IL_009b: { int32_t L_25 = V_1; if ((!(((uint32_t)L_25) == ((uint32_t)(-1))))) { goto IL_0048; } } { KeyNotFoundException_t872 * L_26 = (KeyNotFoundException_t872 *)il2cpp_codegen_object_new (KeyNotFoundException_t872_il2cpp_TypeInfo_var); KeyNotFoundException__ctor_m4734(L_26, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_26); } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::set_Item(TKey,TValue) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern "C" void Dictionary_2_set_Item_m8839_gshared (Dictionary_2_t1499 * __this, Object_t * ___key, Object_t * ___value, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); 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; { Object_t * L_0 = ___key; if (L_0) { goto IL_0016; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0016: { Object_t* L_2 = (Object_t*)(__this->___hcp_12); Object_t * L_3 = ___key; NullCheck((Object_t*)L_2); int32_t L_4 = (int32_t)InterfaceFuncInvoker1< int32_t, Object_t * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_2, (Object_t *)L_3); V_0 = (int32_t)((int32_t)((int32_t)L_4|(int32_t)((int32_t)-2147483648))); int32_t L_5 = V_0; Int32U5BU5D_t501* L_6 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_6); V_1 = (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_6)->max_length))))); Int32U5BU5D_t501* L_7 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_8 = V_1; NullCheck(L_7); IL2CPP_ARRAY_BOUNDS_CHECK(L_7, L_8); int32_t L_9 = L_8; V_2 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_7, L_9))-(int32_t)1)); V_3 = (int32_t)(-1); int32_t L_10 = V_2; if ((((int32_t)L_10) == ((int32_t)(-1)))) { goto IL_00a2; } } IL_004e: { LinkU5BU5D_t1466* L_11 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_12 = V_2; NullCheck(L_11); IL2CPP_ARRAY_BOUNDS_CHECK(L_11, L_12); int32_t L_13 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_11, L_12))->___HashCode_0); int32_t L_14 = V_0; if ((!(((uint32_t)L_13) == ((uint32_t)L_14)))) { goto IL_0087; } } { Object_t* L_15 = (Object_t*)(__this->___hcp_12); ObjectU5BU5D_t207* L_16 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); int32_t L_17 = V_2; NullCheck(L_16); IL2CPP_ARRAY_BOUNDS_CHECK(L_16, L_17); int32_t L_18 = L_17; Object_t * L_19 = ___key; NullCheck((Object_t*)L_15); bool L_20 = (bool)InterfaceFuncInvoker2< bool, Object_t *, Object_t * >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Object>::Equals(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_15, (Object_t *)(*(Object_t **)(Object_t **)SZArrayLdElema(L_16, L_18)), (Object_t *)L_19); if (!L_20) { goto IL_0087; } } { goto IL_00a2; } IL_0087: { int32_t L_21 = V_2; V_3 = (int32_t)L_21; LinkU5BU5D_t1466* L_22 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_23 = V_2; NullCheck(L_22); IL2CPP_ARRAY_BOUNDS_CHECK(L_22, L_23); int32_t L_24 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_22, L_23))->___Next_1); V_2 = (int32_t)L_24; int32_t L_25 = V_2; if ((!(((uint32_t)L_25) == ((uint32_t)(-1))))) { goto IL_004e; } } IL_00a2: { int32_t L_26 = V_2; if ((!(((uint32_t)L_26) == ((uint32_t)(-1))))) { goto IL_0166; } } { int32_t L_27 = (int32_t)(__this->___count_10); int32_t L_28 = (int32_t)((int32_t)((int32_t)L_27+(int32_t)1)); V_4 = (int32_t)L_28; __this->___count_10 = L_28; int32_t L_29 = V_4; int32_t L_30 = (int32_t)(__this->___threshold_11); if ((((int32_t)L_29) <= ((int32_t)L_30))) { goto IL_00de; } } { NullCheck((Dictionary_2_t1499 *)__this); (( void (*) (Dictionary_2_t1499 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 36)->method)((Dictionary_2_t1499 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 36)); int32_t L_31 = V_0; Int32U5BU5D_t501* L_32 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_32); V_1 = (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_31&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_32)->max_length))))); } IL_00de: { int32_t L_33 = (int32_t)(__this->___emptySlot_9); V_2 = (int32_t)L_33; int32_t L_34 = V_2; if ((!(((uint32_t)L_34) == ((uint32_t)(-1))))) { goto IL_0105; } } { int32_t L_35 = (int32_t)(__this->___touchedSlots_8); int32_t L_36 = (int32_t)L_35; V_4 = (int32_t)L_36; __this->___touchedSlots_8 = ((int32_t)((int32_t)L_36+(int32_t)1)); int32_t L_37 = V_4; V_2 = (int32_t)L_37; goto IL_011c; } IL_0105: { LinkU5BU5D_t1466* L_38 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_39 = V_2; NullCheck(L_38); IL2CPP_ARRAY_BOUNDS_CHECK(L_38, L_39); int32_t L_40 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_38, L_39))->___Next_1); __this->___emptySlot_9 = L_40; } IL_011c: { LinkU5BU5D_t1466* L_41 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_42 = V_2; NullCheck(L_41); IL2CPP_ARRAY_BOUNDS_CHECK(L_41, L_42); Int32U5BU5D_t501* L_43 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_44 = V_1; NullCheck(L_43); IL2CPP_ARRAY_BOUNDS_CHECK(L_43, L_44); int32_t L_45 = L_44; ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_41, L_42))->___Next_1 = ((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_43, L_45))-(int32_t)1)); Int32U5BU5D_t501* L_46 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_47 = V_1; int32_t L_48 = V_2; NullCheck(L_46); IL2CPP_ARRAY_BOUNDS_CHECK(L_46, L_47); *((int32_t*)(int32_t*)SZArrayLdElema(L_46, L_47)) = (int32_t)((int32_t)((int32_t)L_48+(int32_t)1)); LinkU5BU5D_t1466* L_49 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_50 = V_2; NullCheck(L_49); IL2CPP_ARRAY_BOUNDS_CHECK(L_49, L_50); int32_t L_51 = V_0; ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_49, L_50))->___HashCode_0 = L_51; ObjectU5BU5D_t207* L_52 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); int32_t L_53 = V_2; Object_t * L_54 = ___key; NullCheck(L_52); IL2CPP_ARRAY_BOUNDS_CHECK(L_52, L_53); *((Object_t **)(Object_t **)SZArrayLdElema(L_52, L_53)) = (Object_t *)L_54; goto IL_01b5; } IL_0166: { int32_t L_55 = V_3; if ((((int32_t)L_55) == ((int32_t)(-1)))) { goto IL_01b5; } } { LinkU5BU5D_t1466* L_56 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_57 = V_3; NullCheck(L_56); IL2CPP_ARRAY_BOUNDS_CHECK(L_56, L_57); LinkU5BU5D_t1466* L_58 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_59 = V_2; NullCheck(L_58); IL2CPP_ARRAY_BOUNDS_CHECK(L_58, L_59); int32_t L_60 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_58, L_59))->___Next_1); ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_56, L_57))->___Next_1 = L_60; LinkU5BU5D_t1466* L_61 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_62 = V_2; NullCheck(L_61); IL2CPP_ARRAY_BOUNDS_CHECK(L_61, L_62); Int32U5BU5D_t501* L_63 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_64 = V_1; NullCheck(L_63); IL2CPP_ARRAY_BOUNDS_CHECK(L_63, L_64); int32_t L_65 = L_64; ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_61, L_62))->___Next_1 = ((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_63, L_65))-(int32_t)1)); Int32U5BU5D_t501* L_66 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_67 = V_1; int32_t L_68 = V_2; NullCheck(L_66); IL2CPP_ARRAY_BOUNDS_CHECK(L_66, L_67); *((int32_t*)(int32_t*)SZArrayLdElema(L_66, L_67)) = (int32_t)((int32_t)((int32_t)L_68+(int32_t)1)); } IL_01b5: { ObjectU5BU5D_t207* L_69 = (ObjectU5BU5D_t207*)(__this->___valueSlots_7); int32_t L_70 = V_2; Object_t * L_71 = ___value; NullCheck(L_69); IL2CPP_ARRAY_BOUNDS_CHECK(L_69, L_70); *((Object_t **)(Object_t **)SZArrayLdElema(L_69, L_70)) = (Object_t *)L_71; int32_t L_72 = (int32_t)(__this->___generation_14); __this->___generation_14 = ((int32_t)((int32_t)L_72+(int32_t)1)); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::Init(System.Int32,System.Collections.Generic.IEqualityComparer`1<TKey>) extern TypeInfo* ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral1221; extern "C" void Dictionary_2_Init_m8841_gshared (Dictionary_2_t1499 * __this, int32_t ___capacity, Object_t* ___hcp, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(147); _stringLiteral1221 = il2cpp_codegen_string_literal_from_index(1221); s_Il2CppMethodIntialized = true; } Object_t* V_0 = {0}; Dictionary_2_t1499 * G_B4_0 = {0}; Dictionary_2_t1499 * G_B3_0 = {0}; Object_t* G_B5_0 = {0}; Dictionary_2_t1499 * G_B5_1 = {0}; { int32_t L_0 = ___capacity; if ((((int32_t)L_0) >= ((int32_t)0))) { goto IL_0012; } } { ArgumentOutOfRangeException_t350 * L_1 = (ArgumentOutOfRangeException_t350 *)il2cpp_codegen_object_new (ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var); ArgumentOutOfRangeException__ctor_m2260(L_1, (String_t*)_stringLiteral1221, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0012: { Object_t* L_2 = ___hcp; G_B3_0 = ((Dictionary_2_t1499 *)(__this)); if (!L_2) { G_B4_0 = ((Dictionary_2_t1499 *)(__this)); goto IL_0021; } } { Object_t* L_3 = ___hcp; V_0 = (Object_t*)L_3; Object_t* L_4 = V_0; G_B5_0 = L_4; G_B5_1 = ((Dictionary_2_t1499 *)(G_B3_0)); goto IL_0026; } IL_0021: { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 38)); EqualityComparer_1_t1458 * L_5 = (( EqualityComparer_1_t1458 * (*) (Object_t * /* static, unused */, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 37)->method)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 37)); G_B5_0 = ((Object_t*)(L_5)); G_B5_1 = ((Dictionary_2_t1499 *)(G_B4_0)); } IL_0026: { NullCheck(G_B5_1); G_B5_1->___hcp_12 = G_B5_0; int32_t L_6 = ___capacity; if (L_6) { goto IL_0035; } } { ___capacity = (int32_t)((int32_t)10); } IL_0035: { int32_t L_7 = ___capacity; ___capacity = (int32_t)((int32_t)((int32_t)(((int32_t)((float)((float)(((float)L_7))/(float)(0.9f)))))+(int32_t)1)); int32_t L_8 = ___capacity; NullCheck((Dictionary_2_t1499 *)__this); (( void (*) (Dictionary_2_t1499 *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 39)->method)((Dictionary_2_t1499 *)__this, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 39)); __this->___generation_14 = 0; return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::InitArrays(System.Int32) extern TypeInfo* Int32U5BU5D_t501_il2cpp_TypeInfo_var; extern TypeInfo* LinkU5BU5D_t1466_il2cpp_TypeInfo_var; extern "C" void Dictionary_2_InitArrays_m8843_gshared (Dictionary_2_t1499 * __this, int32_t ___size, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { Int32U5BU5D_t501_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(348); LinkU5BU5D_t1466_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(2140); s_Il2CppMethodIntialized = true; } { int32_t L_0 = ___size; __this->___table_4 = ((Int32U5BU5D_t501*)SZArrayNew(Int32U5BU5D_t501_il2cpp_TypeInfo_var, L_0)); int32_t L_1 = ___size; __this->___linkSlots_5 = ((LinkU5BU5D_t1466*)SZArrayNew(LinkU5BU5D_t1466_il2cpp_TypeInfo_var, L_1)); __this->___emptySlot_9 = (-1); int32_t L_2 = ___size; __this->___keySlots_6 = ((ObjectU5BU5D_t207*)SZArrayNew(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 40), L_2)); int32_t L_3 = ___size; __this->___valueSlots_7 = ((ObjectU5BU5D_t207*)SZArrayNew(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 41), L_3)); __this->___touchedSlots_8 = 0; Int32U5BU5D_t501* L_4 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_4); __this->___threshold_11 = (((int32_t)((float)((float)(((float)(((int32_t)(((Array_t *)L_4)->max_length)))))*(float)(0.9f))))); int32_t L_5 = (int32_t)(__this->___threshold_11); if (L_5) { goto IL_0074; } } { Int32U5BU5D_t501* L_6 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_6); if ((((int32_t)(((int32_t)(((Array_t *)L_6)->max_length)))) <= ((int32_t)0))) { goto IL_0074; } } { __this->___threshold_11 = 1; } IL_0074: { return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::CopyToCheck(System.Array,System.Int32) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern TypeInfo* ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var; extern TypeInfo* ArgumentException_t320_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral173; extern Il2CppCodeGenString* _stringLiteral264; extern Il2CppCodeGenString* _stringLiteral2675; extern Il2CppCodeGenString* _stringLiteral2676; extern "C" void Dictionary_2_CopyToCheck_m8845_gshared (Dictionary_2_t1499 * __this, Array_t * ___array, int32_t ___index, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(147); ArgumentException_t320_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(3); _stringLiteral173 = il2cpp_codegen_string_literal_from_index(173); _stringLiteral264 = il2cpp_codegen_string_literal_from_index(264); _stringLiteral2675 = il2cpp_codegen_string_literal_from_index(2675); _stringLiteral2676 = il2cpp_codegen_string_literal_from_index(2676); s_Il2CppMethodIntialized = true; } { Array_t * L_0 = ___array; if (L_0) { goto IL_0011; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral173, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0011: { int32_t L_2 = ___index; if ((((int32_t)L_2) >= ((int32_t)0))) { goto IL_0023; } } { ArgumentOutOfRangeException_t350 * L_3 = (ArgumentOutOfRangeException_t350 *)il2cpp_codegen_object_new (ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var); ArgumentOutOfRangeException__ctor_m2260(L_3, (String_t*)_stringLiteral264, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_3); } IL_0023: { int32_t L_4 = ___index; Array_t * L_5 = ___array; NullCheck((Array_t *)L_5); int32_t L_6 = Array_get_Length_m2256((Array_t *)L_5, /*hidden argument*/NULL); if ((((int32_t)L_4) <= ((int32_t)L_6))) { goto IL_003a; } } { ArgumentException_t320 * L_7 = (ArgumentException_t320 *)il2cpp_codegen_object_new (ArgumentException_t320_il2cpp_TypeInfo_var); ArgumentException__ctor_m1183(L_7, (String_t*)_stringLiteral2675, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_7); } IL_003a: { Array_t * L_8 = ___array; NullCheck((Array_t *)L_8); int32_t L_9 = Array_get_Length_m2256((Array_t *)L_8, /*hidden argument*/NULL); int32_t L_10 = ___index; NullCheck((Dictionary_2_t1499 *)__this); int32_t L_11 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(9 /* System.Int32 System.Collections.Generic.Dictionary`2<System.Object,System.Object>::get_Count() */, (Dictionary_2_t1499 *)__this); if ((((int32_t)((int32_t)((int32_t)L_9-(int32_t)L_10))) >= ((int32_t)L_11))) { goto IL_0058; } } { ArgumentException_t320 * L_12 = (ArgumentException_t320 *)il2cpp_codegen_object_new (ArgumentException_t320_il2cpp_TypeInfo_var); ArgumentException__ctor_m1183(L_12, (String_t*)_stringLiteral2676, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_12); } IL_0058: { return; } } // System.Collections.Generic.KeyValuePair`2<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Object,System.Object>::make_pair(TKey,TValue) extern "C" KeyValuePair_2_t1500 Dictionary_2_make_pair_m8847_gshared (Object_t * __this /* static, unused */, Object_t * ___key, Object_t * ___value, const MethodInfo* method) { { Object_t * L_0 = ___key; Object_t * L_1 = ___value; KeyValuePair_2_t1500 L_2 = {0}; (( void (*) (KeyValuePair_2_t1500 *, Object_t *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 44)->method)(&L_2, (Object_t *)L_0, (Object_t *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 44)); return L_2; } } // TKey System.Collections.Generic.Dictionary`2<System.Object,System.Object>::pick_key(TKey,TValue) extern "C" Object_t * Dictionary_2_pick_key_m8849_gshared (Object_t * __this /* static, unused */, Object_t * ___key, Object_t * ___value, const MethodInfo* method) { { Object_t * L_0 = ___key; return L_0; } } // TValue System.Collections.Generic.Dictionary`2<System.Object,System.Object>::pick_value(TKey,TValue) extern "C" Object_t * Dictionary_2_pick_value_m8851_gshared (Object_t * __this /* static, unused */, Object_t * ___key, Object_t * ___value, const MethodInfo* method) { { Object_t * L_0 = ___value; return L_0; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32) extern "C" void Dictionary_2_CopyTo_m8853_gshared (Dictionary_2_t1499 * __this, KeyValuePair_2U5BU5D_t1632* ___array, int32_t ___index, const MethodInfo* method) { { KeyValuePair_2U5BU5D_t1632* L_0 = ___array; int32_t L_1 = ___index; NullCheck((Dictionary_2_t1499 *)__this); (( void (*) (Dictionary_2_t1499 *, Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 21)->method)((Dictionary_2_t1499 *)__this, (Array_t *)(Array_t *)L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 21)); KeyValuePair_2U5BU5D_t1632* L_2 = ___array; int32_t L_3 = ___index; IntPtr_t L_4 = { (void*)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 27) }; Transform_1_t1508 * L_5 = (Transform_1_t1508 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 28)); (( void (*) (Transform_1_t1508 *, Object_t *, IntPtr_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 29)->method)(L_5, (Object_t *)NULL, (IntPtr_t)L_4, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 29)); NullCheck((Dictionary_2_t1499 *)__this); (( void (*) (Dictionary_2_t1499 *, KeyValuePair_2U5BU5D_t1632*, int32_t, Transform_1_t1508 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 45)->method)((Dictionary_2_t1499 *)__this, (KeyValuePair_2U5BU5D_t1632*)L_2, (int32_t)L_3, (Transform_1_t1508 *)L_5, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 45)); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::Resize() extern TypeInfo* Hashtable_t392_il2cpp_TypeInfo_var; extern TypeInfo* Int32U5BU5D_t501_il2cpp_TypeInfo_var; extern TypeInfo* LinkU5BU5D_t1466_il2cpp_TypeInfo_var; extern "C" void Dictionary_2_Resize_m8855_gshared (Dictionary_2_t1499 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { Hashtable_t392_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(233); Int32U5BU5D_t501_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(348); LinkU5BU5D_t1466_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(2140); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; Int32U5BU5D_t501* V_1 = {0}; LinkU5BU5D_t1466* V_2 = {0}; int32_t V_3 = 0; int32_t V_4 = 0; int32_t V_5 = 0; int32_t V_6 = 0; ObjectU5BU5D_t207* V_7 = {0}; ObjectU5BU5D_t207* V_8 = {0}; int32_t V_9 = 0; { Int32U5BU5D_t501* L_0 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_0); IL2CPP_RUNTIME_CLASS_INIT(Hashtable_t392_il2cpp_TypeInfo_var); int32_t L_1 = Hashtable_ToPrime_m4957(NULL /*static, unused*/, (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)(((int32_t)(((Array_t *)L_0)->max_length)))<<(int32_t)1))|(int32_t)1)), /*hidden argument*/NULL); V_0 = (int32_t)L_1; int32_t L_2 = V_0; V_1 = (Int32U5BU5D_t501*)((Int32U5BU5D_t501*)SZArrayNew(Int32U5BU5D_t501_il2cpp_TypeInfo_var, L_2)); int32_t L_3 = V_0; V_2 = (LinkU5BU5D_t1466*)((LinkU5BU5D_t1466*)SZArrayNew(LinkU5BU5D_t1466_il2cpp_TypeInfo_var, L_3)); V_3 = (int32_t)0; goto IL_00b1; } IL_0027: { Int32U5BU5D_t501* L_4 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_5 = V_3; NullCheck(L_4); IL2CPP_ARRAY_BOUNDS_CHECK(L_4, L_5); int32_t L_6 = L_5; V_4 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_4, L_6))-(int32_t)1)); goto IL_00a5; } IL_0038: { LinkU5BU5D_t1466* L_7 = V_2; int32_t L_8 = V_4; NullCheck(L_7); IL2CPP_ARRAY_BOUNDS_CHECK(L_7, L_8); Object_t* L_9 = (Object_t*)(__this->___hcp_12); ObjectU5BU5D_t207* L_10 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); int32_t L_11 = V_4; NullCheck(L_10); IL2CPP_ARRAY_BOUNDS_CHECK(L_10, L_11); int32_t L_12 = L_11; NullCheck((Object_t*)L_9); int32_t L_13 = (int32_t)InterfaceFuncInvoker1< int32_t, Object_t * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_9, (Object_t *)(*(Object_t **)(Object_t **)SZArrayLdElema(L_10, L_12))); int32_t L_14 = (int32_t)((int32_t)((int32_t)L_13|(int32_t)((int32_t)-2147483648))); V_9 = (int32_t)L_14; ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_7, L_8))->___HashCode_0 = L_14; int32_t L_15 = V_9; V_5 = (int32_t)L_15; int32_t L_16 = V_5; int32_t L_17 = V_0; V_6 = (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_16&(int32_t)((int32_t)2147483647)))%(int32_t)L_17)); LinkU5BU5D_t1466* L_18 = V_2; int32_t L_19 = V_4; NullCheck(L_18); IL2CPP_ARRAY_BOUNDS_CHECK(L_18, L_19); Int32U5BU5D_t501* L_20 = V_1; int32_t L_21 = V_6; NullCheck(L_20); IL2CPP_ARRAY_BOUNDS_CHECK(L_20, L_21); int32_t L_22 = L_21; ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_18, L_19))->___Next_1 = ((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_20, L_22))-(int32_t)1)); Int32U5BU5D_t501* L_23 = V_1; int32_t L_24 = V_6; int32_t L_25 = V_4; NullCheck(L_23); IL2CPP_ARRAY_BOUNDS_CHECK(L_23, L_24); *((int32_t*)(int32_t*)SZArrayLdElema(L_23, L_24)) = (int32_t)((int32_t)((int32_t)L_25+(int32_t)1)); LinkU5BU5D_t1466* L_26 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_27 = V_4; NullCheck(L_26); IL2CPP_ARRAY_BOUNDS_CHECK(L_26, L_27); int32_t L_28 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_26, L_27))->___Next_1); V_4 = (int32_t)L_28; } IL_00a5: { int32_t L_29 = V_4; if ((!(((uint32_t)L_29) == ((uint32_t)(-1))))) { goto IL_0038; } } { int32_t L_30 = V_3; V_3 = (int32_t)((int32_t)((int32_t)L_30+(int32_t)1)); } IL_00b1: { int32_t L_31 = V_3; Int32U5BU5D_t501* L_32 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_32); if ((((int32_t)L_31) < ((int32_t)(((int32_t)(((Array_t *)L_32)->max_length)))))) { goto IL_0027; } } { Int32U5BU5D_t501* L_33 = V_1; __this->___table_4 = L_33; LinkU5BU5D_t1466* L_34 = V_2; __this->___linkSlots_5 = L_34; int32_t L_35 = V_0; V_7 = (ObjectU5BU5D_t207*)((ObjectU5BU5D_t207*)SZArrayNew(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 40), L_35)); int32_t L_36 = V_0; V_8 = (ObjectU5BU5D_t207*)((ObjectU5BU5D_t207*)SZArrayNew(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 41), L_36)); ObjectU5BU5D_t207* L_37 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); ObjectU5BU5D_t207* L_38 = V_7; int32_t L_39 = (int32_t)(__this->___touchedSlots_8); Array_Copy_m4087(NULL /*static, unused*/, (Array_t *)(Array_t *)L_37, (int32_t)0, (Array_t *)(Array_t *)L_38, (int32_t)0, (int32_t)L_39, /*hidden argument*/NULL); ObjectU5BU5D_t207* L_40 = (ObjectU5BU5D_t207*)(__this->___valueSlots_7); ObjectU5BU5D_t207* L_41 = V_8; int32_t L_42 = (int32_t)(__this->___touchedSlots_8); Array_Copy_m4087(NULL /*static, unused*/, (Array_t *)(Array_t *)L_40, (int32_t)0, (Array_t *)(Array_t *)L_41, (int32_t)0, (int32_t)L_42, /*hidden argument*/NULL); ObjectU5BU5D_t207* L_43 = V_7; __this->___keySlots_6 = L_43; ObjectU5BU5D_t207* L_44 = V_8; __this->___valueSlots_7 = L_44; int32_t L_45 = V_0; __this->___threshold_11 = (((int32_t)((float)((float)(((float)L_45))*(float)(0.9f))))); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::Add(TKey,TValue) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern TypeInfo* ArgumentException_t320_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern Il2CppCodeGenString* _stringLiteral2677; extern "C" void Dictionary_2_Add_m8857_gshared (Dictionary_2_t1499 * __this, Object_t * ___key, Object_t * ___value, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); ArgumentException_t320_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(3); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); _stringLiteral2677 = il2cpp_codegen_string_literal_from_index(2677); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { Object_t * L_0 = ___key; if (L_0) { goto IL_0016; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0016: { Object_t* L_2 = (Object_t*)(__this->___hcp_12); Object_t * L_3 = ___key; NullCheck((Object_t*)L_2); int32_t L_4 = (int32_t)InterfaceFuncInvoker1< int32_t, Object_t * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_2, (Object_t *)L_3); V_0 = (int32_t)((int32_t)((int32_t)L_4|(int32_t)((int32_t)-2147483648))); int32_t L_5 = V_0; Int32U5BU5D_t501* L_6 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_6); V_1 = (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_6)->max_length))))); Int32U5BU5D_t501* L_7 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_8 = V_1; NullCheck(L_7); IL2CPP_ARRAY_BOUNDS_CHECK(L_7, L_8); int32_t L_9 = L_8; V_2 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_7, L_9))-(int32_t)1)); goto IL_009b; } IL_004a: { LinkU5BU5D_t1466* L_10 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_11 = V_2; NullCheck(L_10); IL2CPP_ARRAY_BOUNDS_CHECK(L_10, L_11); int32_t L_12 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_10, L_11))->___HashCode_0); int32_t L_13 = V_0; if ((!(((uint32_t)L_12) == ((uint32_t)L_13)))) { goto IL_0089; } } { Object_t* L_14 = (Object_t*)(__this->___hcp_12); ObjectU5BU5D_t207* L_15 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); int32_t L_16 = V_2; NullCheck(L_15); IL2CPP_ARRAY_BOUNDS_CHECK(L_15, L_16); int32_t L_17 = L_16; Object_t * L_18 = ___key; NullCheck((Object_t*)L_14); bool L_19 = (bool)InterfaceFuncInvoker2< bool, Object_t *, Object_t * >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Object>::Equals(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_14, (Object_t *)(*(Object_t **)(Object_t **)SZArrayLdElema(L_15, L_17)), (Object_t *)L_18); if (!L_19) { goto IL_0089; } } { ArgumentException_t320 * L_20 = (ArgumentException_t320 *)il2cpp_codegen_object_new (ArgumentException_t320_il2cpp_TypeInfo_var); ArgumentException__ctor_m1183(L_20, (String_t*)_stringLiteral2677, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_20); } IL_0089: { LinkU5BU5D_t1466* L_21 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_22 = V_2; NullCheck(L_21); IL2CPP_ARRAY_BOUNDS_CHECK(L_21, L_22); int32_t L_23 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_21, L_22))->___Next_1); V_2 = (int32_t)L_23; } IL_009b: { int32_t L_24 = V_2; if ((!(((uint32_t)L_24) == ((uint32_t)(-1))))) { goto IL_004a; } } { int32_t L_25 = (int32_t)(__this->___count_10); int32_t L_26 = (int32_t)((int32_t)((int32_t)L_25+(int32_t)1)); V_3 = (int32_t)L_26; __this->___count_10 = L_26; int32_t L_27 = V_3; int32_t L_28 = (int32_t)(__this->___threshold_11); if ((((int32_t)L_27) <= ((int32_t)L_28))) { goto IL_00d5; } } { NullCheck((Dictionary_2_t1499 *)__this); (( void (*) (Dictionary_2_t1499 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 36)->method)((Dictionary_2_t1499 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 36)); int32_t L_29 = V_0; Int32U5BU5D_t501* L_30 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_30); V_1 = (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_29&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_30)->max_length))))); } IL_00d5: { int32_t L_31 = (int32_t)(__this->___emptySlot_9); V_2 = (int32_t)L_31; int32_t L_32 = V_2; if ((!(((uint32_t)L_32) == ((uint32_t)(-1))))) { goto IL_00fa; } } { int32_t L_33 = (int32_t)(__this->___touchedSlots_8); int32_t L_34 = (int32_t)L_33; V_3 = (int32_t)L_34; __this->___touchedSlots_8 = ((int32_t)((int32_t)L_34+(int32_t)1)); int32_t L_35 = V_3; V_2 = (int32_t)L_35; goto IL_0111; } IL_00fa: { LinkU5BU5D_t1466* L_36 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_37 = V_2; NullCheck(L_36); IL2CPP_ARRAY_BOUNDS_CHECK(L_36, L_37); int32_t L_38 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_36, L_37))->___Next_1); __this->___emptySlot_9 = L_38; } IL_0111: { LinkU5BU5D_t1466* L_39 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_40 = V_2; NullCheck(L_39); IL2CPP_ARRAY_BOUNDS_CHECK(L_39, L_40); int32_t L_41 = V_0; ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_39, L_40))->___HashCode_0 = L_41; LinkU5BU5D_t1466* L_42 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_43 = V_2; NullCheck(L_42); IL2CPP_ARRAY_BOUNDS_CHECK(L_42, L_43); Int32U5BU5D_t501* L_44 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_45 = V_1; NullCheck(L_44); IL2CPP_ARRAY_BOUNDS_CHECK(L_44, L_45); int32_t L_46 = L_45; ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_42, L_43))->___Next_1 = ((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_44, L_46))-(int32_t)1)); Int32U5BU5D_t501* L_47 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_48 = V_1; int32_t L_49 = V_2; NullCheck(L_47); IL2CPP_ARRAY_BOUNDS_CHECK(L_47, L_48); *((int32_t*)(int32_t*)SZArrayLdElema(L_47, L_48)) = (int32_t)((int32_t)((int32_t)L_49+(int32_t)1)); ObjectU5BU5D_t207* L_50 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); int32_t L_51 = V_2; Object_t * L_52 = ___key; NullCheck(L_50); IL2CPP_ARRAY_BOUNDS_CHECK(L_50, L_51); *((Object_t **)(Object_t **)SZArrayLdElema(L_50, L_51)) = (Object_t *)L_52; ObjectU5BU5D_t207* L_53 = (ObjectU5BU5D_t207*)(__this->___valueSlots_7); int32_t L_54 = V_2; Object_t * L_55 = ___value; NullCheck(L_53); IL2CPP_ARRAY_BOUNDS_CHECK(L_53, L_54); *((Object_t **)(Object_t **)SZArrayLdElema(L_53, L_54)) = (Object_t *)L_55; int32_t L_56 = (int32_t)(__this->___generation_14); __this->___generation_14 = ((int32_t)((int32_t)L_56+(int32_t)1)); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::Clear() extern "C" void Dictionary_2_Clear_m8859_gshared (Dictionary_2_t1499 * __this, const MethodInfo* method) { { __this->___count_10 = 0; Int32U5BU5D_t501* L_0 = (Int32U5BU5D_t501*)(__this->___table_4); Int32U5BU5D_t501* L_1 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_1); Array_Clear_m2479(NULL /*static, unused*/, (Array_t *)(Array_t *)L_0, (int32_t)0, (int32_t)(((int32_t)(((Array_t *)L_1)->max_length))), /*hidden argument*/NULL); ObjectU5BU5D_t207* L_2 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); ObjectU5BU5D_t207* L_3 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); NullCheck(L_3); Array_Clear_m2479(NULL /*static, unused*/, (Array_t *)(Array_t *)L_2, (int32_t)0, (int32_t)(((int32_t)(((Array_t *)L_3)->max_length))), /*hidden argument*/NULL); ObjectU5BU5D_t207* L_4 = (ObjectU5BU5D_t207*)(__this->___valueSlots_7); ObjectU5BU5D_t207* L_5 = (ObjectU5BU5D_t207*)(__this->___valueSlots_7); NullCheck(L_5); Array_Clear_m2479(NULL /*static, unused*/, (Array_t *)(Array_t *)L_4, (int32_t)0, (int32_t)(((int32_t)(((Array_t *)L_5)->max_length))), /*hidden argument*/NULL); LinkU5BU5D_t1466* L_6 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); LinkU5BU5D_t1466* L_7 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); NullCheck(L_7); Array_Clear_m2479(NULL /*static, unused*/, (Array_t *)(Array_t *)L_6, (int32_t)0, (int32_t)(((int32_t)(((Array_t *)L_7)->max_length))), /*hidden argument*/NULL); __this->___emptySlot_9 = (-1); __this->___touchedSlots_8 = 0; int32_t L_8 = (int32_t)(__this->___generation_14); __this->___generation_14 = ((int32_t)((int32_t)L_8+(int32_t)1)); return; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Object>::ContainsKey(TKey) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern "C" bool Dictionary_2_ContainsKey_m8861_gshared (Dictionary_2_t1499 * __this, Object_t * ___key, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; int32_t V_1 = 0; { Object_t * L_0 = ___key; if (L_0) { goto IL_0016; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0016: { Object_t* L_2 = (Object_t*)(__this->___hcp_12); Object_t * L_3 = ___key; NullCheck((Object_t*)L_2); int32_t L_4 = (int32_t)InterfaceFuncInvoker1< int32_t, Object_t * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_2, (Object_t *)L_3); V_0 = (int32_t)((int32_t)((int32_t)L_4|(int32_t)((int32_t)-2147483648))); Int32U5BU5D_t501* L_5 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_6 = V_0; Int32U5BU5D_t501* L_7 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_7); NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, ((int32_t)((int32_t)((int32_t)((int32_t)L_6&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_7)->max_length)))))); int32_t L_8 = ((int32_t)((int32_t)((int32_t)((int32_t)L_6&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_7)->max_length))))); V_1 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_5, L_8))-(int32_t)1)); goto IL_0090; } IL_0048: { LinkU5BU5D_t1466* L_9 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_10 = V_1; NullCheck(L_9); IL2CPP_ARRAY_BOUNDS_CHECK(L_9, L_10); int32_t L_11 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_9, L_10))->___HashCode_0); int32_t L_12 = V_0; if ((!(((uint32_t)L_11) == ((uint32_t)L_12)))) { goto IL_007e; } } { Object_t* L_13 = (Object_t*)(__this->___hcp_12); ObjectU5BU5D_t207* L_14 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); int32_t L_15 = V_1; NullCheck(L_14); IL2CPP_ARRAY_BOUNDS_CHECK(L_14, L_15); int32_t L_16 = L_15; Object_t * L_17 = ___key; NullCheck((Object_t*)L_13); bool L_18 = (bool)InterfaceFuncInvoker2< bool, Object_t *, Object_t * >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Object>::Equals(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_13, (Object_t *)(*(Object_t **)(Object_t **)SZArrayLdElema(L_14, L_16)), (Object_t *)L_17); if (!L_18) { goto IL_007e; } } { return 1; } IL_007e: { LinkU5BU5D_t1466* L_19 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_20 = V_1; NullCheck(L_19); IL2CPP_ARRAY_BOUNDS_CHECK(L_19, L_20); int32_t L_21 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_19, L_20))->___Next_1); V_1 = (int32_t)L_21; } IL_0090: { int32_t L_22 = V_1; if ((!(((uint32_t)L_22) == ((uint32_t)(-1))))) { goto IL_0048; } } { return 0; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Object>::ContainsValue(TValue) extern "C" bool Dictionary_2_ContainsValue_m8863_gshared (Dictionary_2_t1499 * __this, Object_t * ___value, const MethodInfo* method) { Object_t* V_0 = {0}; int32_t V_1 = 0; int32_t V_2 = 0; { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 47)); EqualityComparer_1_t1458 * L_0 = (( EqualityComparer_1_t1458 * (*) (Object_t * /* static, unused */, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 46)->method)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 46)); V_0 = (Object_t*)L_0; V_1 = (int32_t)0; goto IL_0054; } IL_000d: { Int32U5BU5D_t501* L_1 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_2 = V_1; NullCheck(L_1); IL2CPP_ARRAY_BOUNDS_CHECK(L_1, L_2); int32_t L_3 = L_2; V_2 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_1, L_3))-(int32_t)1)); goto IL_0049; } IL_001d: { Object_t* L_4 = V_0; ObjectU5BU5D_t207* L_5 = (ObjectU5BU5D_t207*)(__this->___valueSlots_7); int32_t L_6 = V_2; NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, L_6); int32_t L_7 = L_6; Object_t * L_8 = ___value; NullCheck((Object_t*)L_4); bool L_9 = (bool)InterfaceFuncInvoker2< bool, Object_t *, Object_t * >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Object>::Equals(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 48), (Object_t*)L_4, (Object_t *)(*(Object_t **)(Object_t **)SZArrayLdElema(L_5, L_7)), (Object_t *)L_8); if (!L_9) { goto IL_0037; } } { return 1; } IL_0037: { LinkU5BU5D_t1466* L_10 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_11 = V_2; NullCheck(L_10); IL2CPP_ARRAY_BOUNDS_CHECK(L_10, L_11); int32_t L_12 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_10, L_11))->___Next_1); V_2 = (int32_t)L_12; } IL_0049: { int32_t L_13 = V_2; if ((!(((uint32_t)L_13) == ((uint32_t)(-1))))) { goto IL_001d; } } { int32_t L_14 = V_1; V_1 = (int32_t)((int32_t)((int32_t)L_14+(int32_t)1)); } IL_0054: { int32_t L_15 = V_1; Int32U5BU5D_t501* L_16 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_16); if ((((int32_t)L_15) < ((int32_t)(((int32_t)(((Array_t *)L_16)->max_length)))))) { goto IL_000d; } } { return 0; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral273; extern Il2CppCodeGenString* _stringLiteral275; extern Il2CppCodeGenString* _stringLiteral277; extern Il2CppCodeGenString* _stringLiteral1255; extern Il2CppCodeGenString* _stringLiteral2678; extern "C" void Dictionary_2_GetObjectData_m8865_gshared (Dictionary_2_t1499 * __this, SerializationInfo_t317 * ___info, StreamingContext_t318 ___context, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); _stringLiteral273 = il2cpp_codegen_string_literal_from_index(273); _stringLiteral275 = il2cpp_codegen_string_literal_from_index(275); _stringLiteral277 = il2cpp_codegen_string_literal_from_index(277); _stringLiteral1255 = il2cpp_codegen_string_literal_from_index(1255); _stringLiteral2678 = il2cpp_codegen_string_literal_from_index(2678); s_Il2CppMethodIntialized = true; } KeyValuePair_2U5BU5D_t1632* V_0 = {0}; { SerializationInfo_t317 * L_0 = ___info; if (L_0) { goto IL_0011; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral273, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0011: { SerializationInfo_t317 * L_2 = ___info; int32_t L_3 = (int32_t)(__this->___generation_14); NullCheck((SerializationInfo_t317 *)L_2); SerializationInfo_AddValue_m2266((SerializationInfo_t317 *)L_2, (String_t*)_stringLiteral275, (int32_t)L_3, /*hidden argument*/NULL); SerializationInfo_t317 * L_4 = ___info; Object_t* L_5 = (Object_t*)(__this->___hcp_12); NullCheck((SerializationInfo_t317 *)L_4); SerializationInfo_AddValue_m2277((SerializationInfo_t317 *)L_4, (String_t*)_stringLiteral277, (Object_t *)L_5, /*hidden argument*/NULL); V_0 = (KeyValuePair_2U5BU5D_t1632*)NULL; int32_t L_6 = (int32_t)(__this->___count_10); if ((((int32_t)L_6) <= ((int32_t)0))) { goto IL_0055; } } { int32_t L_7 = (int32_t)(__this->___count_10); V_0 = (KeyValuePair_2U5BU5D_t1632*)((KeyValuePair_2U5BU5D_t1632*)SZArrayNew(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 49), L_7)); KeyValuePair_2U5BU5D_t1632* L_8 = V_0; NullCheck((Dictionary_2_t1499 *)__this); (( void (*) (Dictionary_2_t1499 *, KeyValuePair_2U5BU5D_t1632*, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 19)->method)((Dictionary_2_t1499 *)__this, (KeyValuePair_2U5BU5D_t1632*)L_8, (int32_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 19)); } IL_0055: { SerializationInfo_t317 * L_9 = ___info; Int32U5BU5D_t501* L_10 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_10); NullCheck((SerializationInfo_t317 *)L_9); SerializationInfo_AddValue_m2266((SerializationInfo_t317 *)L_9, (String_t*)_stringLiteral1255, (int32_t)(((int32_t)(((Array_t *)L_10)->max_length))), /*hidden argument*/NULL); SerializationInfo_t317 * L_11 = ___info; KeyValuePair_2U5BU5D_t1632* L_12 = V_0; NullCheck((SerializationInfo_t317 *)L_11); SerializationInfo_AddValue_m2277((SerializationInfo_t317 *)L_11, (String_t*)_stringLiteral2678, (Object_t *)(Object_t *)L_12, /*hidden argument*/NULL); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::OnDeserialization(System.Object) extern TypeInfo* Type_t_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral275; extern Il2CppCodeGenString* _stringLiteral277; extern Il2CppCodeGenString* _stringLiteral1255; extern Il2CppCodeGenString* _stringLiteral2678; extern "C" void Dictionary_2_OnDeserialization_m8867_gshared (Dictionary_2_t1499 * __this, Object_t * ___sender, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { Type_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(160); _stringLiteral275 = il2cpp_codegen_string_literal_from_index(275); _stringLiteral277 = il2cpp_codegen_string_literal_from_index(277); _stringLiteral1255 = il2cpp_codegen_string_literal_from_index(1255); _stringLiteral2678 = il2cpp_codegen_string_literal_from_index(2678); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; KeyValuePair_2U5BU5D_t1632* V_1 = {0}; int32_t V_2 = 0; { SerializationInfo_t317 * L_0 = (SerializationInfo_t317 *)(__this->___serialization_info_13); if (L_0) { goto IL_000c; } } { return; } IL_000c: { SerializationInfo_t317 * L_1 = (SerializationInfo_t317 *)(__this->___serialization_info_13); NullCheck((SerializationInfo_t317 *)L_1); int32_t L_2 = SerializationInfo_GetInt32_m2276((SerializationInfo_t317 *)L_1, (String_t*)_stringLiteral275, /*hidden argument*/NULL); __this->___generation_14 = L_2; SerializationInfo_t317 * L_3 = (SerializationInfo_t317 *)(__this->___serialization_info_13); IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_4 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 50)), /*hidden argument*/NULL); NullCheck((SerializationInfo_t317 *)L_3); Object_t * L_5 = SerializationInfo_GetValue_m2267((SerializationInfo_t317 *)L_3, (String_t*)_stringLiteral277, (Type_t *)L_4, /*hidden argument*/NULL); __this->___hcp_12 = ((Object_t*)Castclass(L_5, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35))); SerializationInfo_t317 * L_6 = (SerializationInfo_t317 *)(__this->___serialization_info_13); NullCheck((SerializationInfo_t317 *)L_6); int32_t L_7 = SerializationInfo_GetInt32_m2276((SerializationInfo_t317 *)L_6, (String_t*)_stringLiteral1255, /*hidden argument*/NULL); V_0 = (int32_t)L_7; SerializationInfo_t317 * L_8 = (SerializationInfo_t317 *)(__this->___serialization_info_13); Type_t * L_9 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 51)), /*hidden argument*/NULL); NullCheck((SerializationInfo_t317 *)L_8); Object_t * L_10 = SerializationInfo_GetValue_m2267((SerializationInfo_t317 *)L_8, (String_t*)_stringLiteral2678, (Type_t *)L_9, /*hidden argument*/NULL); V_1 = (KeyValuePair_2U5BU5D_t1632*)((KeyValuePair_2U5BU5D_t1632*)Castclass(L_10, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 20))); int32_t L_11 = V_0; if ((((int32_t)L_11) >= ((int32_t)((int32_t)10)))) { goto IL_0083; } } { V_0 = (int32_t)((int32_t)10); } IL_0083: { int32_t L_12 = V_0; NullCheck((Dictionary_2_t1499 *)__this); (( void (*) (Dictionary_2_t1499 *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 39)->method)((Dictionary_2_t1499 *)__this, (int32_t)L_12, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 39)); __this->___count_10 = 0; KeyValuePair_2U5BU5D_t1632* L_13 = V_1; if (!L_13) { goto IL_00c9; } } { V_2 = (int32_t)0; goto IL_00c0; } IL_009e: { KeyValuePair_2U5BU5D_t1632* L_14 = V_1; int32_t L_15 = V_2; NullCheck(L_14); IL2CPP_ARRAY_BOUNDS_CHECK(L_14, L_15); Object_t * L_16 = (( Object_t * (*) (KeyValuePair_2_t1500 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((KeyValuePair_2_t1500 *)((KeyValuePair_2_t1500 *)(KeyValuePair_2_t1500 *)SZArrayLdElema(L_14, L_15)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); KeyValuePair_2U5BU5D_t1632* L_17 = V_1; int32_t L_18 = V_2; NullCheck(L_17); IL2CPP_ARRAY_BOUNDS_CHECK(L_17, L_18); Object_t * L_19 = (( Object_t * (*) (KeyValuePair_2_t1500 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)->method)((KeyValuePair_2_t1500 *)((KeyValuePair_2_t1500 *)(KeyValuePair_2_t1500 *)SZArrayLdElema(L_17, L_18)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); NullCheck((Dictionary_2_t1499 *)__this); VirtActionInvoker2< Object_t *, Object_t * >::Invoke(17 /* System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::Add(TKey,TValue) */, (Dictionary_2_t1499 *)__this, (Object_t *)L_16, (Object_t *)L_19); int32_t L_20 = V_2; V_2 = (int32_t)((int32_t)((int32_t)L_20+(int32_t)1)); } IL_00c0: { int32_t L_21 = V_2; KeyValuePair_2U5BU5D_t1632* L_22 = V_1; NullCheck(L_22); if ((((int32_t)L_21) < ((int32_t)(((int32_t)(((Array_t *)L_22)->max_length)))))) { goto IL_009e; } } IL_00c9: { int32_t L_23 = (int32_t)(__this->___generation_14); __this->___generation_14 = ((int32_t)((int32_t)L_23+(int32_t)1)); __this->___serialization_info_13 = (SerializationInfo_t317 *)NULL; return; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Object>::Remove(TKey) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern TypeInfo* Object_t_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern "C" bool Dictionary_2_Remove_m8869_gshared (Dictionary_2_t1499 * __this, Object_t * ___key, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); Object_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(0); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; Object_t * V_4 = {0}; Object_t * V_5 = {0}; { Object_t * L_0 = ___key; if (L_0) { goto IL_0016; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0016: { Object_t* L_2 = (Object_t*)(__this->___hcp_12); Object_t * L_3 = ___key; NullCheck((Object_t*)L_2); int32_t L_4 = (int32_t)InterfaceFuncInvoker1< int32_t, Object_t * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_2, (Object_t *)L_3); V_0 = (int32_t)((int32_t)((int32_t)L_4|(int32_t)((int32_t)-2147483648))); int32_t L_5 = V_0; Int32U5BU5D_t501* L_6 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_6); V_1 = (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_6)->max_length))))); Int32U5BU5D_t501* L_7 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_8 = V_1; NullCheck(L_7); IL2CPP_ARRAY_BOUNDS_CHECK(L_7, L_8); int32_t L_9 = L_8; V_2 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_7, L_9))-(int32_t)1)); int32_t L_10 = V_2; if ((!(((uint32_t)L_10) == ((uint32_t)(-1))))) { goto IL_004e; } } { return 0; } IL_004e: { V_3 = (int32_t)(-1); } IL_0050: { LinkU5BU5D_t1466* L_11 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_12 = V_2; NullCheck(L_11); IL2CPP_ARRAY_BOUNDS_CHECK(L_11, L_12); int32_t L_13 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_11, L_12))->___HashCode_0); int32_t L_14 = V_0; if ((!(((uint32_t)L_13) == ((uint32_t)L_14)))) { goto IL_0089; } } { Object_t* L_15 = (Object_t*)(__this->___hcp_12); ObjectU5BU5D_t207* L_16 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); int32_t L_17 = V_2; NullCheck(L_16); IL2CPP_ARRAY_BOUNDS_CHECK(L_16, L_17); int32_t L_18 = L_17; Object_t * L_19 = ___key; NullCheck((Object_t*)L_15); bool L_20 = (bool)InterfaceFuncInvoker2< bool, Object_t *, Object_t * >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Object>::Equals(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_15, (Object_t *)(*(Object_t **)(Object_t **)SZArrayLdElema(L_16, L_18)), (Object_t *)L_19); if (!L_20) { goto IL_0089; } } { goto IL_00a4; } IL_0089: { int32_t L_21 = V_2; V_3 = (int32_t)L_21; LinkU5BU5D_t1466* L_22 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_23 = V_2; NullCheck(L_22); IL2CPP_ARRAY_BOUNDS_CHECK(L_22, L_23); int32_t L_24 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_22, L_23))->___Next_1); V_2 = (int32_t)L_24; int32_t L_25 = V_2; if ((!(((uint32_t)L_25) == ((uint32_t)(-1))))) { goto IL_0050; } } IL_00a4: { int32_t L_26 = V_2; if ((!(((uint32_t)L_26) == ((uint32_t)(-1))))) { goto IL_00ad; } } { return 0; } IL_00ad: { int32_t L_27 = (int32_t)(__this->___count_10); __this->___count_10 = ((int32_t)((int32_t)L_27-(int32_t)1)); int32_t L_28 = V_3; if ((!(((uint32_t)L_28) == ((uint32_t)(-1))))) { goto IL_00e2; } } { Int32U5BU5D_t501* L_29 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_30 = V_1; LinkU5BU5D_t1466* L_31 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_32 = V_2; NullCheck(L_31); IL2CPP_ARRAY_BOUNDS_CHECK(L_31, L_32); int32_t L_33 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_31, L_32))->___Next_1); NullCheck(L_29); IL2CPP_ARRAY_BOUNDS_CHECK(L_29, L_30); *((int32_t*)(int32_t*)SZArrayLdElema(L_29, L_30)) = (int32_t)((int32_t)((int32_t)L_33+(int32_t)1)); goto IL_0104; } IL_00e2: { LinkU5BU5D_t1466* L_34 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_35 = V_3; NullCheck(L_34); IL2CPP_ARRAY_BOUNDS_CHECK(L_34, L_35); LinkU5BU5D_t1466* L_36 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_37 = V_2; NullCheck(L_36); IL2CPP_ARRAY_BOUNDS_CHECK(L_36, L_37); int32_t L_38 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_36, L_37))->___Next_1); ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_34, L_35))->___Next_1 = L_38; } IL_0104: { LinkU5BU5D_t1466* L_39 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_40 = V_2; NullCheck(L_39); IL2CPP_ARRAY_BOUNDS_CHECK(L_39, L_40); int32_t L_41 = (int32_t)(__this->___emptySlot_9); ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_39, L_40))->___Next_1 = L_41; int32_t L_42 = V_2; __this->___emptySlot_9 = L_42; LinkU5BU5D_t1466* L_43 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_44 = V_2; NullCheck(L_43); IL2CPP_ARRAY_BOUNDS_CHECK(L_43, L_44); ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_43, L_44))->___HashCode_0 = 0; ObjectU5BU5D_t207* L_45 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); int32_t L_46 = V_2; Initobj (Object_t_il2cpp_TypeInfo_var, (&V_4)); Object_t * L_47 = V_4; NullCheck(L_45); IL2CPP_ARRAY_BOUNDS_CHECK(L_45, L_46); *((Object_t **)(Object_t **)SZArrayLdElema(L_45, L_46)) = (Object_t *)L_47; ObjectU5BU5D_t207* L_48 = (ObjectU5BU5D_t207*)(__this->___valueSlots_7); int32_t L_49 = V_2; Initobj (Object_t_il2cpp_TypeInfo_var, (&V_5)); Object_t * L_50 = V_5; NullCheck(L_48); IL2CPP_ARRAY_BOUNDS_CHECK(L_48, L_49); *((Object_t **)(Object_t **)SZArrayLdElema(L_48, L_49)) = (Object_t *)L_50; int32_t L_51 = (int32_t)(__this->___generation_14); __this->___generation_14 = ((int32_t)((int32_t)L_51+(int32_t)1)); return 1; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Object>::TryGetValue(TKey,TValue&) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern TypeInfo* Object_t_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern "C" bool Dictionary_2_TryGetValue_m8871_gshared (Dictionary_2_t1499 * __this, Object_t * ___key, Object_t ** ___value, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); Object_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(0); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; int32_t V_1 = 0; Object_t * V_2 = {0}; { Object_t * L_0 = ___key; if (L_0) { goto IL_0016; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0016: { Object_t* L_2 = (Object_t*)(__this->___hcp_12); Object_t * L_3 = ___key; NullCheck((Object_t*)L_2); int32_t L_4 = (int32_t)InterfaceFuncInvoker1< int32_t, Object_t * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_2, (Object_t *)L_3); V_0 = (int32_t)((int32_t)((int32_t)L_4|(int32_t)((int32_t)-2147483648))); Int32U5BU5D_t501* L_5 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_6 = V_0; Int32U5BU5D_t501* L_7 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_7); NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, ((int32_t)((int32_t)((int32_t)((int32_t)L_6&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_7)->max_length)))))); int32_t L_8 = ((int32_t)((int32_t)((int32_t)((int32_t)L_6&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_7)->max_length))))); V_1 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_5, L_8))-(int32_t)1)); goto IL_00a2; } IL_0048: { LinkU5BU5D_t1466* L_9 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_10 = V_1; NullCheck(L_9); IL2CPP_ARRAY_BOUNDS_CHECK(L_9, L_10); int32_t L_11 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_9, L_10))->___HashCode_0); int32_t L_12 = V_0; if ((!(((uint32_t)L_11) == ((uint32_t)L_12)))) { goto IL_0090; } } { Object_t* L_13 = (Object_t*)(__this->___hcp_12); ObjectU5BU5D_t207* L_14 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); int32_t L_15 = V_1; NullCheck(L_14); IL2CPP_ARRAY_BOUNDS_CHECK(L_14, L_15); int32_t L_16 = L_15; Object_t * L_17 = ___key; NullCheck((Object_t*)L_13); bool L_18 = (bool)InterfaceFuncInvoker2< bool, Object_t *, Object_t * >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Object>::Equals(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_13, (Object_t *)(*(Object_t **)(Object_t **)SZArrayLdElema(L_14, L_16)), (Object_t *)L_17); if (!L_18) { goto IL_0090; } } { Object_t ** L_19 = ___value; ObjectU5BU5D_t207* L_20 = (ObjectU5BU5D_t207*)(__this->___valueSlots_7); int32_t L_21 = V_1; NullCheck(L_20); IL2CPP_ARRAY_BOUNDS_CHECK(L_20, L_21); int32_t L_22 = L_21; *L_19 = (*(Object_t **)(Object_t **)SZArrayLdElema(L_20, L_22)); return 1; } IL_0090: { LinkU5BU5D_t1466* L_23 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_24 = V_1; NullCheck(L_23); IL2CPP_ARRAY_BOUNDS_CHECK(L_23, L_24); int32_t L_25 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_23, L_24))->___Next_1); V_1 = (int32_t)L_25; } IL_00a2: { int32_t L_26 = V_1; if ((!(((uint32_t)L_26) == ((uint32_t)(-1))))) { goto IL_0048; } } { Object_t ** L_27 = ___value; Initobj (Object_t_il2cpp_TypeInfo_var, (&V_2)); Object_t * L_28 = V_2; *L_27 = L_28; return 0; } } // System.Collections.Generic.Dictionary`2/KeyCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Object,System.Object>::get_Keys() extern "C" KeyCollection_t1502 * Dictionary_2_get_Keys_m8873_gshared (Dictionary_2_t1499 * __this, const MethodInfo* method) { { KeyCollection_t1502 * L_0 = (KeyCollection_t1502 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 52)); (( void (*) (KeyCollection_t1502 *, Dictionary_2_t1499 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 53)->method)(L_0, (Dictionary_2_t1499 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 53)); return L_0; } } // System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Object,System.Object>::get_Values() extern "C" ValueCollection_t1506 * Dictionary_2_get_Values_m8874_gshared (Dictionary_2_t1499 * __this, const MethodInfo* method) { { ValueCollection_t1506 * L_0 = (ValueCollection_t1506 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 54)); (( void (*) (ValueCollection_t1506 *, Dictionary_2_t1499 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 55)->method)(L_0, (Dictionary_2_t1499 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 55)); return L_0; } } // TKey System.Collections.Generic.Dictionary`2<System.Object,System.Object>::ToTKey(System.Object) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern TypeInfo* Type_t_il2cpp_TypeInfo_var; extern TypeInfo* String_t_il2cpp_TypeInfo_var; extern TypeInfo* ArgumentException_t320_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern Il2CppCodeGenString* _stringLiteral2679; extern "C" Object_t * Dictionary_2_ToTKey_m8876_gshared (Dictionary_2_t1499 * __this, Object_t * ___key, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); Type_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(160); String_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(23); ArgumentException_t320_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(3); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); _stringLiteral2679 = il2cpp_codegen_string_literal_from_index(2679); s_Il2CppMethodIntialized = true; } { Object_t * L_0 = ___key; if (L_0) { goto IL_0011; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0011: { Object_t * L_2 = ___key; if (((Object_t *)IsInst(L_2, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)))) { goto IL_0040; } } { IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_3 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 56)), /*hidden argument*/NULL); NullCheck((Type_t *)L_3); String_t* L_4 = (String_t*)VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Type::ToString() */, (Type_t *)L_3); IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var); String_t* L_5 = String_Concat_m1205(NULL /*static, unused*/, (String_t*)_stringLiteral2679, (String_t*)L_4, /*hidden argument*/NULL); ArgumentException_t320 * L_6 = (ArgumentException_t320 *)il2cpp_codegen_object_new (ArgumentException_t320_il2cpp_TypeInfo_var); ArgumentException__ctor_m2258(L_6, (String_t*)L_5, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_6); } IL_0040: { Object_t * L_7 = ___key; return ((Object_t *)Castclass(L_7, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10))); } } // TValue System.Collections.Generic.Dictionary`2<System.Object,System.Object>::ToTValue(System.Object) extern TypeInfo* Type_t_il2cpp_TypeInfo_var; extern TypeInfo* Object_t_il2cpp_TypeInfo_var; extern TypeInfo* String_t_il2cpp_TypeInfo_var; extern TypeInfo* ArgumentException_t320_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2679; extern Il2CppCodeGenString* _stringLiteral462; extern "C" Object_t * Dictionary_2_ToTValue_m8878_gshared (Dictionary_2_t1499 * __this, Object_t * ___value, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { Type_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(160); Object_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(0); String_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(23); ArgumentException_t320_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(3); _stringLiteral2679 = il2cpp_codegen_string_literal_from_index(2679); _stringLiteral462 = il2cpp_codegen_string_literal_from_index(462); s_Il2CppMethodIntialized = true; } Object_t * V_0 = {0}; { Object_t * L_0 = ___value; if (L_0) { goto IL_0024; } } { IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_1 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 57)), /*hidden argument*/NULL); NullCheck((Type_t *)L_1); bool L_2 = (bool)VirtFuncInvoker0< bool >::Invoke(33 /* System.Boolean System.Type::get_IsValueType() */, (Type_t *)L_1); if (L_2) { goto IL_0024; } } { Initobj (Object_t_il2cpp_TypeInfo_var, (&V_0)); Object_t * L_3 = V_0; return L_3; } IL_0024: { Object_t * L_4 = ___value; if (((Object_t *)IsInst(L_4, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 14)))) { goto IL_0053; } } { IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_5 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 57)), /*hidden argument*/NULL); NullCheck((Type_t *)L_5); String_t* L_6 = (String_t*)VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Type::ToString() */, (Type_t *)L_5); IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var); String_t* L_7 = String_Concat_m1205(NULL /*static, unused*/, (String_t*)_stringLiteral2679, (String_t*)L_6, /*hidden argument*/NULL); ArgumentException_t320 * L_8 = (ArgumentException_t320 *)il2cpp_codegen_object_new (ArgumentException_t320_il2cpp_TypeInfo_var); ArgumentException__ctor_m2258(L_8, (String_t*)L_7, (String_t*)_stringLiteral462, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_8); } IL_0053: { Object_t * L_9 = ___value; return ((Object_t *)Castclass(L_9, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 14))); } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Object>::ContainsKeyValuePair(System.Collections.Generic.KeyValuePair`2<TKey,TValue>) extern "C" bool Dictionary_2_ContainsKeyValuePair_m8880_gshared (Dictionary_2_t1499 * __this, KeyValuePair_2_t1500 ___pair, const MethodInfo* method) { Object_t * V_0 = {0}; { Object_t * L_0 = (( Object_t * (*) (KeyValuePair_2_t1500 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((KeyValuePair_2_t1500 *)(&___pair), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); NullCheck((Dictionary_2_t1499 *)__this); bool L_1 = (bool)VirtFuncInvoker2< bool, Object_t *, Object_t ** >::Invoke(18 /* System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Object>::TryGetValue(TKey,TValue&) */, (Dictionary_2_t1499 *)__this, (Object_t *)L_0, (Object_t **)(&V_0)); if (L_1) { goto IL_0016; } } { return 0; } IL_0016: { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 47)); EqualityComparer_1_t1458 * L_2 = (( EqualityComparer_1_t1458 * (*) (Object_t * /* static, unused */, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 46)->method)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 46)); Object_t * L_3 = (( Object_t * (*) (KeyValuePair_2_t1500 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)->method)((KeyValuePair_2_t1500 *)(&___pair), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); Object_t * L_4 = V_0; NullCheck((EqualityComparer_1_t1458 *)L_2); bool L_5 = (bool)VirtFuncInvoker2< bool, Object_t *, Object_t * >::Invoke(9 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Object>::Equals(T,T) */, (EqualityComparer_1_t1458 *)L_2, (Object_t *)L_3, (Object_t *)L_4); return L_5; } } // System.Collections.Generic.Dictionary`2/Enumerator<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Object,System.Object>::GetEnumerator() extern "C" Enumerator_t1504 Dictionary_2_GetEnumerator_m8882_gshared (Dictionary_2_t1499 * __this, const MethodInfo* method) { { Enumerator_t1504 L_0 = {0}; (( void (*) (Enumerator_t1504 *, Dictionary_2_t1499 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 32)->method)(&L_0, (Dictionary_2_t1499 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 32)); return L_0; } } // System.Collections.DictionaryEntry System.Collections.Generic.Dictionary`2<System.Object,System.Object>::<CopyTo>m__0(TKey,TValue) extern "C" DictionaryEntry_t567 Dictionary_2_U3CCopyToU3Em__0_m8884_gshared (Object_t * __this /* static, unused */, Object_t * ___key, Object_t * ___value, const MethodInfo* method) { { Object_t * L_0 = ___key; Object_t * L_1 = ___value; DictionaryEntry_t567 L_2 = {0}; DictionaryEntry__ctor_m2254(&L_2, (Object_t *)L_0, (Object_t *)L_1, /*hidden argument*/NULL); return L_2; } } #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif // System.Array/InternalEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>> #include "mscorlib_System_Array_InternalEnumerator_1_gen_19.h" #ifndef _MSC_VER #else #endif // System.Array/InternalEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>> #include "mscorlib_System_Array_InternalEnumerator_1_gen_19MethodDeclarations.h" struct Array_t; // Declaration !!0 System.Array::InternalArray__get_Item<System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>>(System.Int32) // !!0 System.Array::InternalArray__get_Item<System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>>(System.Int32) extern "C" KeyValuePair_2_t1500 Array_InternalArray__get_Item_TisKeyValuePair_2_t1500_m12196_gshared (Array_t * __this, int32_t p0, const MethodInfo* method); #define Array_InternalArray__get_Item_TisKeyValuePair_2_t1500_m12196(__this, p0, method) (( KeyValuePair_2_t1500 (*) (Array_t *, int32_t, const MethodInfo*))Array_InternalArray__get_Item_TisKeyValuePair_2_t1500_m12196_gshared)(__this, p0, method) // System.Void System.Array/InternalEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>>::.ctor(System.Array) extern "C" void InternalEnumerator_1__ctor_m8885_gshared (InternalEnumerator_1_t1501 * __this, Array_t * ___array, const MethodInfo* method) { { Array_t * L_0 = ___array; __this->___array_0 = L_0; __this->___idx_1 = ((int32_t)-2); return; } } // System.Object System.Array/InternalEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>>::System.Collections.IEnumerator.get_Current() extern "C" Object_t * InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m8886_gshared (InternalEnumerator_1_t1501 * __this, const MethodInfo* method) { { KeyValuePair_2_t1500 L_0 = (( KeyValuePair_2_t1500 (*) (InternalEnumerator_1_t1501 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((InternalEnumerator_1_t1501 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); KeyValuePair_2_t1500 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1), &L_1); return L_2; } } // System.Void System.Array/InternalEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>>::Dispose() extern "C" void InternalEnumerator_1_Dispose_m8887_gshared (InternalEnumerator_1_t1501 * __this, const MethodInfo* method) { { __this->___idx_1 = ((int32_t)-2); return; } } // System.Boolean System.Array/InternalEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>>::MoveNext() extern "C" bool InternalEnumerator_1_MoveNext_m8888_gshared (InternalEnumerator_1_t1501 * __this, const MethodInfo* method) { int32_t V_0 = 0; int32_t G_B5_0 = 0; { int32_t L_0 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_0) == ((uint32_t)((int32_t)-2))))) { goto IL_001e; } } { Array_t * L_1 = (Array_t *)(__this->___array_0); NullCheck((Array_t *)L_1); int32_t L_2 = Array_get_Length_m2256((Array_t *)L_1, /*hidden argument*/NULL); __this->___idx_1 = L_2; } IL_001e: { int32_t L_3 = (int32_t)(__this->___idx_1); if ((((int32_t)L_3) == ((int32_t)(-1)))) { goto IL_0043; } } { int32_t L_4 = (int32_t)(__this->___idx_1); int32_t L_5 = (int32_t)((int32_t)((int32_t)L_4-(int32_t)1)); V_0 = (int32_t)L_5; __this->___idx_1 = L_5; int32_t L_6 = V_0; G_B5_0 = ((((int32_t)((((int32_t)L_6) == ((int32_t)(-1)))? 1 : 0)) == ((int32_t)0))? 1 : 0); goto IL_0044; } IL_0043: { G_B5_0 = 0; } IL_0044: { return G_B5_0; } } // T System.Array/InternalEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>>::get_Current() extern TypeInfo* InvalidOperationException_t580_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2671; extern Il2CppCodeGenString* _stringLiteral2672; extern "C" KeyValuePair_2_t1500 InternalEnumerator_1_get_Current_m8889_gshared (InternalEnumerator_1_t1501 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { InvalidOperationException_t580_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(236); _stringLiteral2671 = il2cpp_codegen_string_literal_from_index(2671); _stringLiteral2672 = il2cpp_codegen_string_literal_from_index(2672); s_Il2CppMethodIntialized = true; } { int32_t L_0 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_0) == ((uint32_t)((int32_t)-2))))) { goto IL_0018; } } { InvalidOperationException_t580 * L_1 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_1, (String_t*)_stringLiteral2671, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0018: { int32_t L_2 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_2) == ((uint32_t)(-1))))) { goto IL_002f; } } { InvalidOperationException_t580 * L_3 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_3, (String_t*)_stringLiteral2672, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_3); } IL_002f: { Array_t * L_4 = (Array_t *)(__this->___array_0); Array_t * L_5 = (Array_t *)(__this->___array_0); NullCheck((Array_t *)L_5); int32_t L_6 = Array_get_Length_m2256((Array_t *)L_5, /*hidden argument*/NULL); int32_t L_7 = (int32_t)(__this->___idx_1); NullCheck((Array_t *)L_4); KeyValuePair_2_t1500 L_8 = (( KeyValuePair_2_t1500 (*) (Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((Array_t *)L_4, (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_6-(int32_t)1))-(int32_t)L_7)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); return L_8; } } #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>::.ctor(TKey,TValue) extern "C" void KeyValuePair_2__ctor_m8890_gshared (KeyValuePair_2_t1500 * __this, Object_t * ___key, Object_t * ___value, const MethodInfo* method) { { Object_t * L_0 = ___key; (( void (*) (KeyValuePair_2_t1500 *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((KeyValuePair_2_t1500 *)__this, (Object_t *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); Object_t * L_1 = ___value; (( void (*) (KeyValuePair_2_t1500 *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((KeyValuePair_2_t1500 *)__this, (Object_t *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); return; } } // TKey System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>::get_Key() extern "C" Object_t * KeyValuePair_2_get_Key_m8891_gshared (KeyValuePair_2_t1500 * __this, const MethodInfo* method) { { Object_t * L_0 = (Object_t *)(__this->___key_0); return L_0; } } // System.Void System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>::set_Key(TKey) extern "C" void KeyValuePair_2_set_Key_m8892_gshared (KeyValuePair_2_t1500 * __this, Object_t * ___value, const MethodInfo* method) { { Object_t * L_0 = ___value; __this->___key_0 = L_0; return; } } // TValue System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>::get_Value() extern "C" Object_t * KeyValuePair_2_get_Value_m8893_gshared (KeyValuePair_2_t1500 * __this, const MethodInfo* method) { { Object_t * L_0 = (Object_t *)(__this->___value_1); return L_0; } } // System.Void System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>::set_Value(TValue) extern "C" void KeyValuePair_2_set_Value_m8894_gshared (KeyValuePair_2_t1500 * __this, Object_t * ___value, const MethodInfo* method) { { Object_t * L_0 = ___value; __this->___value_1 = L_0; return; } } // System.String System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>::ToString() extern TypeInfo* StringU5BU5D_t204_il2cpp_TypeInfo_var; extern TypeInfo* String_t_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral188; extern Il2CppCodeGenString* _stringLiteral252; extern Il2CppCodeGenString* _stringLiteral189; extern "C" String_t* KeyValuePair_2_ToString_m8895_gshared (KeyValuePair_2_t1500 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { StringU5BU5D_t204_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(84); String_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(23); _stringLiteral188 = il2cpp_codegen_string_literal_from_index(188); _stringLiteral252 = il2cpp_codegen_string_literal_from_index(252); _stringLiteral189 = il2cpp_codegen_string_literal_from_index(189); s_Il2CppMethodIntialized = true; } Object_t * V_0 = {0}; Object_t * V_1 = {0}; int32_t G_B2_0 = 0; StringU5BU5D_t204* G_B2_1 = {0}; StringU5BU5D_t204* G_B2_2 = {0}; int32_t G_B1_0 = 0; StringU5BU5D_t204* G_B1_1 = {0}; StringU5BU5D_t204* G_B1_2 = {0}; String_t* G_B3_0 = {0}; int32_t G_B3_1 = 0; StringU5BU5D_t204* G_B3_2 = {0}; StringU5BU5D_t204* G_B3_3 = {0}; int32_t G_B5_0 = 0; StringU5BU5D_t204* G_B5_1 = {0}; StringU5BU5D_t204* G_B5_2 = {0}; int32_t G_B4_0 = 0; StringU5BU5D_t204* G_B4_1 = {0}; StringU5BU5D_t204* G_B4_2 = {0}; String_t* G_B6_0 = {0}; int32_t G_B6_1 = 0; StringU5BU5D_t204* G_B6_2 = {0}; StringU5BU5D_t204* G_B6_3 = {0}; { StringU5BU5D_t204* L_0 = (StringU5BU5D_t204*)((StringU5BU5D_t204*)SZArrayNew(StringU5BU5D_t204_il2cpp_TypeInfo_var, 5)); NullCheck(L_0); IL2CPP_ARRAY_BOUNDS_CHECK(L_0, 0); ArrayElementTypeCheck (L_0, _stringLiteral188); *((String_t**)(String_t**)SZArrayLdElema(L_0, 0)) = (String_t*)_stringLiteral188; StringU5BU5D_t204* L_1 = (StringU5BU5D_t204*)L_0; Object_t * L_2 = (( Object_t * (*) (KeyValuePair_2_t1500 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((KeyValuePair_2_t1500 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); G_B1_0 = 1; G_B1_1 = L_1; G_B1_2 = L_1; if (!L_2) { G_B2_0 = 1; G_B2_1 = L_1; G_B2_2 = L_1; goto IL_0039; } } { Object_t * L_3 = (( Object_t * (*) (KeyValuePair_2_t1500 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((KeyValuePair_2_t1500 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); V_0 = (Object_t *)L_3; NullCheck((Object_t *)(*(&V_0))); String_t* L_4 = (String_t*)VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, (Object_t *)(*(&V_0))); G_B3_0 = L_4; G_B3_1 = G_B1_0; G_B3_2 = G_B1_1; G_B3_3 = G_B1_2; goto IL_003e; } IL_0039: { IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var); String_t* L_5 = ((String_t_StaticFields*)String_t_il2cpp_TypeInfo_var->static_fields)->___Empty_2; G_B3_0 = L_5; G_B3_1 = G_B2_0; G_B3_2 = G_B2_1; G_B3_3 = G_B2_2; } IL_003e: { NullCheck(G_B3_2); IL2CPP_ARRAY_BOUNDS_CHECK(G_B3_2, G_B3_1); ArrayElementTypeCheck (G_B3_2, G_B3_0); *((String_t**)(String_t**)SZArrayLdElema(G_B3_2, G_B3_1)) = (String_t*)G_B3_0; StringU5BU5D_t204* L_6 = (StringU5BU5D_t204*)G_B3_3; NullCheck(L_6); IL2CPP_ARRAY_BOUNDS_CHECK(L_6, 2); ArrayElementTypeCheck (L_6, _stringLiteral252); *((String_t**)(String_t**)SZArrayLdElema(L_6, 2)) = (String_t*)_stringLiteral252; StringU5BU5D_t204* L_7 = (StringU5BU5D_t204*)L_6; Object_t * L_8 = (( Object_t * (*) (KeyValuePair_2_t1500 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((KeyValuePair_2_t1500 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); G_B4_0 = 3; G_B4_1 = L_7; G_B4_2 = L_7; if (!L_8) { G_B5_0 = 3; G_B5_1 = L_7; G_B5_2 = L_7; goto IL_0072; } } { Object_t * L_9 = (( Object_t * (*) (KeyValuePair_2_t1500 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((KeyValuePair_2_t1500 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); V_1 = (Object_t *)L_9; NullCheck((Object_t *)(*(&V_1))); String_t* L_10 = (String_t*)VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, (Object_t *)(*(&V_1))); G_B6_0 = L_10; G_B6_1 = G_B4_0; G_B6_2 = G_B4_1; G_B6_3 = G_B4_2; goto IL_0077; } IL_0072: { IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var); String_t* L_11 = ((String_t_StaticFields*)String_t_il2cpp_TypeInfo_var->static_fields)->___Empty_2; G_B6_0 = L_11; G_B6_1 = G_B5_0; G_B6_2 = G_B5_1; G_B6_3 = G_B5_2; } IL_0077: { NullCheck(G_B6_2); IL2CPP_ARRAY_BOUNDS_CHECK(G_B6_2, G_B6_1); ArrayElementTypeCheck (G_B6_2, G_B6_0); *((String_t**)(String_t**)SZArrayLdElema(G_B6_2, G_B6_1)) = (String_t*)G_B6_0; StringU5BU5D_t204* L_12 = (StringU5BU5D_t204*)G_B6_3; NullCheck(L_12); IL2CPP_ARRAY_BOUNDS_CHECK(L_12, 4); ArrayElementTypeCheck (L_12, _stringLiteral189); *((String_t**)(String_t**)SZArrayLdElema(L_12, 4)) = (String_t*)_stringLiteral189; IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var); String_t* L_13 = String_Concat_m1245(NULL /*static, unused*/, (StringU5BU5D_t204*)L_12, /*hidden argument*/NULL); return L_13; } } #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif // System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<System.Object,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_KeyCollecti_4.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Object,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1_4.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Object,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1_4MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<System.Object,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_KeyCollecti_4MethodDeclarations.h" struct Dictionary_2_t1499; struct Array_t; struct Transform_1_t1505; // Declaration System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::Do_ICollectionCopyTo<System.Object>(System.Array,System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::Do_ICollectionCopyTo<System.Object>(System.Array,System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) extern "C" void Dictionary_2_Do_ICollectionCopyTo_TisObject_t_m12207_gshared (Dictionary_2_t1499 * __this, Array_t * p0, int32_t p1, Transform_1_t1505 * p2, const MethodInfo* method); #define Dictionary_2_Do_ICollectionCopyTo_TisObject_t_m12207(__this, p0, p1, p2, method) (( void (*) (Dictionary_2_t1499 *, Array_t *, int32_t, Transform_1_t1505 *, const MethodInfo*))Dictionary_2_Do_ICollectionCopyTo_TisObject_t_m12207_gshared)(__this, p0, p1, p2, method) struct Dictionary_2_t1499; struct ObjectU5BU5D_t207; struct Transform_1_t1505; // Declaration System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::Do_CopyTo<System.Object,System.Object>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Object>::Do_CopyTo<System.Object,System.Object>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) extern "C" void Dictionary_2_Do_CopyTo_TisObject_t_TisObject_t_m12206_gshared (Dictionary_2_t1499 * __this, ObjectU5BU5D_t207* p0, int32_t p1, Transform_1_t1505 * p2, const MethodInfo* method); #define Dictionary_2_Do_CopyTo_TisObject_t_TisObject_t_m12206(__this, p0, p1, p2, method) (( void (*) (Dictionary_2_t1499 *, ObjectU5BU5D_t207*, int32_t, Transform_1_t1505 *, const MethodInfo*))Dictionary_2_Do_CopyTo_TisObject_t_TisObject_t_m12206_gshared)(__this, p0, p1, p2, method) // System.Void System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral1250; extern "C" void KeyCollection__ctor_m8896_gshared (KeyCollection_t1502 * __this, Dictionary_2_t1499 * ___dictionary, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); _stringLiteral1250 = il2cpp_codegen_string_literal_from_index(1250); s_Il2CppMethodIntialized = true; } { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); Dictionary_2_t1499 * L_0 = ___dictionary; if (L_0) { goto IL_0017; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral1250, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0017: { Dictionary_2_t1499 * L_2 = ___dictionary; __this->___dictionary_0 = L_2; return; } } // System.Void System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Object>::System.Collections.Generic.ICollection<TKey>.Add(TKey) extern TypeInfo* NotSupportedException_t582_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2680; extern "C" void KeyCollection_System_Collections_Generic_ICollectionU3CTKeyU3E_Add_m8897_gshared (KeyCollection_t1502 * __this, Object_t * ___item, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NotSupportedException_t582_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(248); _stringLiteral2680 = il2cpp_codegen_string_literal_from_index(2680); s_Il2CppMethodIntialized = true; } { NotSupportedException_t582 * L_0 = (NotSupportedException_t582 *)il2cpp_codegen_object_new (NotSupportedException_t582_il2cpp_TypeInfo_var); NotSupportedException__ctor_m2270(L_0, (String_t*)_stringLiteral2680, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_0); } } // System.Void System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Object>::System.Collections.Generic.ICollection<TKey>.Clear() extern TypeInfo* NotSupportedException_t582_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2680; extern "C" void KeyCollection_System_Collections_Generic_ICollectionU3CTKeyU3E_Clear_m8898_gshared (KeyCollection_t1502 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NotSupportedException_t582_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(248); _stringLiteral2680 = il2cpp_codegen_string_literal_from_index(2680); s_Il2CppMethodIntialized = true; } { NotSupportedException_t582 * L_0 = (NotSupportedException_t582 *)il2cpp_codegen_object_new (NotSupportedException_t582_il2cpp_TypeInfo_var); NotSupportedException__ctor_m2270(L_0, (String_t*)_stringLiteral2680, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_0); } } // System.Boolean System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Object>::System.Collections.Generic.ICollection<TKey>.Contains(TKey) extern "C" bool KeyCollection_System_Collections_Generic_ICollectionU3CTKeyU3E_Contains_m8899_gshared (KeyCollection_t1502 * __this, Object_t * ___item, const MethodInfo* method) { { Dictionary_2_t1499 * L_0 = (Dictionary_2_t1499 *)(__this->___dictionary_0); Object_t * L_1 = ___item; NullCheck((Dictionary_2_t1499 *)L_0); bool L_2 = (bool)VirtFuncInvoker1< bool, Object_t * >::Invoke(30 /* System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Object>::ContainsKey(TKey) */, (Dictionary_2_t1499 *)L_0, (Object_t *)L_1); return L_2; } } // System.Boolean System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Object>::System.Collections.Generic.ICollection<TKey>.Remove(TKey) extern TypeInfo* NotSupportedException_t582_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2680; extern "C" bool KeyCollection_System_Collections_Generic_ICollectionU3CTKeyU3E_Remove_m8900_gshared (KeyCollection_t1502 * __this, Object_t * ___item, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NotSupportedException_t582_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(248); _stringLiteral2680 = il2cpp_codegen_string_literal_from_index(2680); s_Il2CppMethodIntialized = true; } { NotSupportedException_t582 * L_0 = (NotSupportedException_t582 *)il2cpp_codegen_object_new (NotSupportedException_t582_il2cpp_TypeInfo_var); NotSupportedException__ctor_m2270(L_0, (String_t*)_stringLiteral2680, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_0); } } // System.Collections.Generic.IEnumerator`1<TKey> System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Object>::System.Collections.Generic.IEnumerable<TKey>.GetEnumerator() extern "C" Object_t* KeyCollection_System_Collections_Generic_IEnumerableU3CTKeyU3E_GetEnumerator_m8901_gshared (KeyCollection_t1502 * __this, const MethodInfo* method) { { NullCheck((KeyCollection_t1502 *)__this); Enumerator_t1503 L_0 = (( Enumerator_t1503 (*) (KeyCollection_t1502 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((KeyCollection_t1502 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); Enumerator_t1503 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), &L_1); return (Object_t*)L_2; } } // System.Void System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Object>::System.Collections.ICollection.CopyTo(System.Array,System.Int32) extern "C" void KeyCollection_System_Collections_ICollection_CopyTo_m8902_gshared (KeyCollection_t1502 * __this, Array_t * ___array, int32_t ___index, const MethodInfo* method) { ObjectU5BU5D_t207* V_0 = {0}; { Array_t * L_0 = ___array; V_0 = (ObjectU5BU5D_t207*)((ObjectU5BU5D_t207*)IsInst(L_0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3))); ObjectU5BU5D_t207* L_1 = V_0; if (!L_1) { goto IL_0016; } } { ObjectU5BU5D_t207* L_2 = V_0; int32_t L_3 = ___index; NullCheck((KeyCollection_t1502 *)__this); (( void (*) (KeyCollection_t1502 *, ObjectU5BU5D_t207*, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((KeyCollection_t1502 *)__this, (ObjectU5BU5D_t207*)L_2, (int32_t)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); return; } IL_0016: { Dictionary_2_t1499 * L_4 = (Dictionary_2_t1499 *)(__this->___dictionary_0); Array_t * L_5 = ___array; int32_t L_6 = ___index; NullCheck((Dictionary_2_t1499 *)L_4); (( void (*) (Dictionary_2_t1499 *, Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((Dictionary_2_t1499 *)L_4, (Array_t *)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); Dictionary_2_t1499 * L_7 = (Dictionary_2_t1499 *)(__this->___dictionary_0); Array_t * L_8 = ___array; int32_t L_9 = ___index; IntPtr_t L_10 = { (void*)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6) }; Transform_1_t1505 * L_11 = (Transform_1_t1505 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); (( void (*) (Transform_1_t1505 *, Object_t *, IntPtr_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)(L_11, (Object_t *)NULL, (IntPtr_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); NullCheck((Dictionary_2_t1499 *)L_7); (( void (*) (Dictionary_2_t1499 *, Array_t *, int32_t, Transform_1_t1505 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)->method)((Dictionary_2_t1499 *)L_7, (Array_t *)L_8, (int32_t)L_9, (Transform_1_t1505 *)L_11, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)); return; } } // System.Collections.IEnumerator System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Object>::System.Collections.IEnumerable.GetEnumerator() extern "C" Object_t * KeyCollection_System_Collections_IEnumerable_GetEnumerator_m8903_gshared (KeyCollection_t1502 * __this, const MethodInfo* method) { { NullCheck((KeyCollection_t1502 *)__this); Enumerator_t1503 L_0 = (( Enumerator_t1503 (*) (KeyCollection_t1502 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((KeyCollection_t1502 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); Enumerator_t1503 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), &L_1); return (Object_t *)L_2; } } // System.Boolean System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Object>::System.Collections.Generic.ICollection<TKey>.get_IsReadOnly() extern "C" bool KeyCollection_System_Collections_Generic_ICollectionU3CTKeyU3E_get_IsReadOnly_m8904_gshared (KeyCollection_t1502 * __this, const MethodInfo* method) { { return 1; } } // System.Object System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Object>::System.Collections.ICollection.get_SyncRoot() extern TypeInfo* ICollection_t576_il2cpp_TypeInfo_var; extern "C" Object_t * KeyCollection_System_Collections_ICollection_get_SyncRoot_m8905_gshared (KeyCollection_t1502 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ICollection_t576_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(234); s_Il2CppMethodIntialized = true; } { Dictionary_2_t1499 * L_0 = (Dictionary_2_t1499 *)(__this->___dictionary_0); NullCheck((Object_t *)L_0); Object_t * L_1 = (Object_t *)InterfaceFuncInvoker0< Object_t * >::Invoke(1 /* System.Object System.Collections.ICollection::get_SyncRoot() */, ICollection_t576_il2cpp_TypeInfo_var, (Object_t *)L_0); return L_1; } } // System.Void System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Object>::CopyTo(TKey[],System.Int32) extern "C" void KeyCollection_CopyTo_m8906_gshared (KeyCollection_t1502 * __this, ObjectU5BU5D_t207* ___array, int32_t ___index, const MethodInfo* method) { { Dictionary_2_t1499 * L_0 = (Dictionary_2_t1499 *)(__this->___dictionary_0); ObjectU5BU5D_t207* L_1 = ___array; int32_t L_2 = ___index; NullCheck((Dictionary_2_t1499 *)L_0); (( void (*) (Dictionary_2_t1499 *, Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((Dictionary_2_t1499 *)L_0, (Array_t *)(Array_t *)L_1, (int32_t)L_2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); Dictionary_2_t1499 * L_3 = (Dictionary_2_t1499 *)(__this->___dictionary_0); ObjectU5BU5D_t207* L_4 = ___array; int32_t L_5 = ___index; IntPtr_t L_6 = { (void*)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6) }; Transform_1_t1505 * L_7 = (Transform_1_t1505 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); (( void (*) (Transform_1_t1505 *, Object_t *, IntPtr_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)(L_7, (Object_t *)NULL, (IntPtr_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); NullCheck((Dictionary_2_t1499 *)L_3); (( void (*) (Dictionary_2_t1499 *, ObjectU5BU5D_t207*, int32_t, Transform_1_t1505 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)->method)((Dictionary_2_t1499 *)L_3, (ObjectU5BU5D_t207*)L_4, (int32_t)L_5, (Transform_1_t1505 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)); return; } } // System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<TKey,TValue> System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Object>::GetEnumerator() extern "C" Enumerator_t1503 KeyCollection_GetEnumerator_m8907_gshared (KeyCollection_t1502 * __this, const MethodInfo* method) { { Dictionary_2_t1499 * L_0 = (Dictionary_2_t1499 *)(__this->___dictionary_0); Enumerator_t1503 L_1 = {0}; (( void (*) (Enumerator_t1503 *, Dictionary_2_t1499 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 11)->method)(&L_1, (Dictionary_2_t1499 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 11)); return L_1; } } // System.Int32 System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Object>::get_Count() extern "C" int32_t KeyCollection_get_Count_m8908_gshared (KeyCollection_t1502 * __this, const MethodInfo* method) { { Dictionary_2_t1499 * L_0 = (Dictionary_2_t1499 *)(__this->___dictionary_0); NullCheck((Dictionary_2_t1499 *)L_0); int32_t L_1 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(9 /* System.Int32 System.Collections.Generic.Dictionary`2<System.Object,System.Object>::get_Count() */, (Dictionary_2_t1499 *)L_0); return L_1; } } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<System.Object,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>) extern "C" void Enumerator__ctor_m8909_gshared (Enumerator_t1503 * __this, Dictionary_2_t1499 * ___host, const MethodInfo* method) { { Dictionary_2_t1499 * L_0 = ___host; NullCheck((Dictionary_2_t1499 *)L_0); Enumerator_t1504 L_1 = (( Enumerator_t1504 (*) (Dictionary_2_t1499 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1499 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); __this->___host_enumerator_0 = L_1; return; } } // System.Object System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<System.Object,System.Object>::System.Collections.IEnumerator.get_Current() extern "C" Object_t * Enumerator_System_Collections_IEnumerator_get_Current_m8910_gshared (Enumerator_t1503 * __this, const MethodInfo* method) { { Enumerator_t1504 * L_0 = (Enumerator_t1504 *)&(__this->___host_enumerator_0); Object_t * L_1 = (( Object_t * (*) (Enumerator_t1504 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((Enumerator_t1504 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); return L_1; } } // System.Void System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<System.Object,System.Object>::Dispose() extern "C" void Enumerator_Dispose_m8911_gshared (Enumerator_t1503 * __this, const MethodInfo* method) { { Enumerator_t1504 * L_0 = (Enumerator_t1504 *)&(__this->___host_enumerator_0); (( void (*) (Enumerator_t1504 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)->method)((Enumerator_t1504 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)); return; } } // System.Boolean System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<System.Object,System.Object>::MoveNext() extern "C" bool Enumerator_MoveNext_m8912_gshared (Enumerator_t1503 * __this, const MethodInfo* method) { { Enumerator_t1504 * L_0 = (Enumerator_t1504 *)&(__this->___host_enumerator_0); bool L_1 = (( bool (*) (Enumerator_t1504 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((Enumerator_t1504 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); return L_1; } } // TKey System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<System.Object,System.Object>::get_Current() extern "C" Object_t * Enumerator_get_Current_m8913_gshared (Enumerator_t1503 * __this, const MethodInfo* method) { { Enumerator_t1504 * L_0 = (Enumerator_t1504 *)&(__this->___host_enumerator_0); KeyValuePair_2_t1500 * L_1 = (KeyValuePair_2_t1500 *)&(L_0->___current_3); Object_t * L_2 = (( Object_t * (*) (KeyValuePair_2_t1500 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((KeyValuePair_2_t1500 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); return L_2; } } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>) extern "C" void Enumerator__ctor_m8914_gshared (Enumerator_t1504 * __this, Dictionary_2_t1499 * ___dictionary, const MethodInfo* method) { { Dictionary_2_t1499 * L_0 = ___dictionary; __this->___dictionary_0 = L_0; Dictionary_2_t1499 * L_1 = ___dictionary; NullCheck(L_1); int32_t L_2 = (int32_t)(L_1->___generation_14); __this->___stamp_2 = L_2; return; } } // System.Object System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Object>::System.Collections.IEnumerator.get_Current() extern "C" Object_t * Enumerator_System_Collections_IEnumerator_get_Current_m8915_gshared (Enumerator_t1504 * __this, const MethodInfo* method) { { (( void (*) (Enumerator_t1504 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Enumerator_t1504 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); KeyValuePair_2_t1500 L_0 = (KeyValuePair_2_t1500 )(__this->___current_3); KeyValuePair_2_t1500 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1), &L_1); return L_2; } } // System.Collections.DictionaryEntry System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Object>::System.Collections.IDictionaryEnumerator.get_Entry() extern "C" DictionaryEntry_t567 Enumerator_System_Collections_IDictionaryEnumerator_get_Entry_m8916_gshared (Enumerator_t1504 * __this, const MethodInfo* method) { { (( void (*) (Enumerator_t1504 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Enumerator_t1504 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); KeyValuePair_2_t1500 * L_0 = (KeyValuePair_2_t1500 *)&(__this->___current_3); Object_t * L_1 = (( Object_t * (*) (KeyValuePair_2_t1500 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((KeyValuePair_2_t1500 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); KeyValuePair_2_t1500 * L_2 = (KeyValuePair_2_t1500 *)&(__this->___current_3); Object_t * L_3 = (( Object_t * (*) (KeyValuePair_2_t1500 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((KeyValuePair_2_t1500 *)L_2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); DictionaryEntry_t567 L_4 = {0}; DictionaryEntry__ctor_m2254(&L_4, (Object_t *)L_1, (Object_t *)L_3, /*hidden argument*/NULL); return L_4; } } // System.Object System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Object>::System.Collections.IDictionaryEnumerator.get_Key() extern "C" Object_t * Enumerator_System_Collections_IDictionaryEnumerator_get_Key_m8917_gshared (Enumerator_t1504 * __this, const MethodInfo* method) { { Object_t * L_0 = (( Object_t * (*) (Enumerator_t1504 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)->method)((Enumerator_t1504 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); return L_0; } } // System.Object System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Object>::System.Collections.IDictionaryEnumerator.get_Value() extern "C" Object_t * Enumerator_System_Collections_IDictionaryEnumerator_get_Value_m8918_gshared (Enumerator_t1504 * __this, const MethodInfo* method) { { Object_t * L_0 = (( Object_t * (*) (Enumerator_t1504 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)->method)((Enumerator_t1504 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); return L_0; } } // System.Boolean System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Object>::MoveNext() extern "C" bool Enumerator_MoveNext_m8919_gshared (Enumerator_t1504 * __this, const MethodInfo* method) { int32_t V_0 = 0; int32_t V_1 = 0; { (( void (*) (Enumerator_t1504 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)((Enumerator_t1504 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); int32_t L_0 = (int32_t)(__this->___next_1); if ((((int32_t)L_0) >= ((int32_t)0))) { goto IL_0014; } } { return 0; } IL_0014: { goto IL_007b; } IL_0019: { int32_t L_1 = (int32_t)(__this->___next_1); int32_t L_2 = (int32_t)L_1; V_1 = (int32_t)L_2; __this->___next_1 = ((int32_t)((int32_t)L_2+(int32_t)1)); int32_t L_3 = V_1; V_0 = (int32_t)L_3; Dictionary_2_t1499 * L_4 = (Dictionary_2_t1499 *)(__this->___dictionary_0); NullCheck(L_4); LinkU5BU5D_t1466* L_5 = (LinkU5BU5D_t1466*)(L_4->___linkSlots_5); int32_t L_6 = V_0; NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, L_6); int32_t L_7 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_5, L_6))->___HashCode_0); if (!((int32_t)((int32_t)L_7&(int32_t)((int32_t)-2147483648)))) { goto IL_007b; } } { Dictionary_2_t1499 * L_8 = (Dictionary_2_t1499 *)(__this->___dictionary_0); NullCheck(L_8); ObjectU5BU5D_t207* L_9 = (ObjectU5BU5D_t207*)(L_8->___keySlots_6); int32_t L_10 = V_0; NullCheck(L_9); IL2CPP_ARRAY_BOUNDS_CHECK(L_9, L_10); int32_t L_11 = L_10; Dictionary_2_t1499 * L_12 = (Dictionary_2_t1499 *)(__this->___dictionary_0); NullCheck(L_12); ObjectU5BU5D_t207* L_13 = (ObjectU5BU5D_t207*)(L_12->___valueSlots_7); int32_t L_14 = V_0; NullCheck(L_13); IL2CPP_ARRAY_BOUNDS_CHECK(L_13, L_14); int32_t L_15 = L_14; KeyValuePair_2_t1500 L_16 = {0}; (( void (*) (KeyValuePair_2_t1500 *, Object_t *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)->method)(&L_16, (Object_t *)(*(Object_t **)(Object_t **)SZArrayLdElema(L_9, L_11)), (Object_t *)(*(Object_t **)(Object_t **)SZArrayLdElema(L_13, L_15)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)); __this->___current_3 = L_16; return 1; } IL_007b: { int32_t L_17 = (int32_t)(__this->___next_1); Dictionary_2_t1499 * L_18 = (Dictionary_2_t1499 *)(__this->___dictionary_0); NullCheck(L_18); int32_t L_19 = (int32_t)(L_18->___touchedSlots_8); if ((((int32_t)L_17) < ((int32_t)L_19))) { goto IL_0019; } } { __this->___next_1 = (-1); return 0; } } // System.Collections.Generic.KeyValuePair`2<TKey,TValue> System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Object>::get_Current() extern "C" KeyValuePair_2_t1500 Enumerator_get_Current_m8920_gshared (Enumerator_t1504 * __this, const MethodInfo* method) { { KeyValuePair_2_t1500 L_0 = (KeyValuePair_2_t1500 )(__this->___current_3); return L_0; } } // TKey System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Object>::get_CurrentKey() extern "C" Object_t * Enumerator_get_CurrentKey_m8921_gshared (Enumerator_t1504 * __this, const MethodInfo* method) { { (( void (*) (Enumerator_t1504 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Enumerator_t1504 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); KeyValuePair_2_t1500 * L_0 = (KeyValuePair_2_t1500 *)&(__this->___current_3); Object_t * L_1 = (( Object_t * (*) (KeyValuePair_2_t1500 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((KeyValuePair_2_t1500 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); return L_1; } } // TValue System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Object>::get_CurrentValue() extern "C" Object_t * Enumerator_get_CurrentValue_m8922_gshared (Enumerator_t1504 * __this, const MethodInfo* method) { { (( void (*) (Enumerator_t1504 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Enumerator_t1504 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); KeyValuePair_2_t1500 * L_0 = (KeyValuePair_2_t1500 *)&(__this->___current_3); Object_t * L_1 = (( Object_t * (*) (KeyValuePair_2_t1500 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((KeyValuePair_2_t1500 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); return L_1; } } // System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Object>::VerifyState() extern TypeInfo* ObjectDisposedException_t625_il2cpp_TypeInfo_var; extern TypeInfo* InvalidOperationException_t580_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2681; extern "C" void Enumerator_VerifyState_m8923_gshared (Enumerator_t1504 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ObjectDisposedException_t625_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(396); InvalidOperationException_t580_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(236); _stringLiteral2681 = il2cpp_codegen_string_literal_from_index(2681); s_Il2CppMethodIntialized = true; } { Dictionary_2_t1499 * L_0 = (Dictionary_2_t1499 *)(__this->___dictionary_0); if (L_0) { goto IL_0012; } } { ObjectDisposedException_t625 * L_1 = (ObjectDisposedException_t625 *)il2cpp_codegen_object_new (ObjectDisposedException_t625_il2cpp_TypeInfo_var); ObjectDisposedException__ctor_m2480(L_1, (String_t*)NULL, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0012: { Dictionary_2_t1499 * L_2 = (Dictionary_2_t1499 *)(__this->___dictionary_0); NullCheck(L_2); int32_t L_3 = (int32_t)(L_2->___generation_14); int32_t L_4 = (int32_t)(__this->___stamp_2); if ((((int32_t)L_3) == ((int32_t)L_4))) { goto IL_0033; } } { InvalidOperationException_t580 * L_5 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_5, (String_t*)_stringLiteral2681, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_5); } IL_0033: { return; } } // System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Object>::VerifyCurrent() extern TypeInfo* InvalidOperationException_t580_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2682; extern "C" void Enumerator_VerifyCurrent_m8924_gshared (Enumerator_t1504 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { InvalidOperationException_t580_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(236); _stringLiteral2682 = il2cpp_codegen_string_literal_from_index(2682); s_Il2CppMethodIntialized = true; } { (( void (*) (Enumerator_t1504 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)((Enumerator_t1504 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); int32_t L_0 = (int32_t)(__this->___next_1); if ((((int32_t)L_0) > ((int32_t)0))) { goto IL_001d; } } { InvalidOperationException_t580 * L_1 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_1, (String_t*)_stringLiteral2682, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_001d: { return; } } // System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Object>::Dispose() extern "C" void Enumerator_Dispose_m8925_gshared (Enumerator_t1504 * __this, const MethodInfo* method) { { __this->___dictionary_0 = (Dictionary_2_t1499 *)NULL; return; } } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Object,System.Object>::.ctor(System.Object,System.IntPtr) extern "C" void Transform_1__ctor_m8926_gshared (Transform_1_t1505 * __this, Object_t * ___object, IntPtr_t ___method, const MethodInfo* method) { __this->___method_ptr_0 = (methodPointerType)((MethodInfo*)___method.___m_value_0)->method; __this->___method_3 = ___method; __this->___m_target_2 = ___object; } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Object,System.Object>::Invoke(TKey,TValue) extern "C" Object_t * Transform_1_Invoke_m8927_gshared (Transform_1_t1505 * __this, Object_t * ___key, Object_t * ___value, const MethodInfo* method) { if(__this->___prev_9 != NULL) { Transform_1_Invoke_m8927((Transform_1_t1505 *)__this->___prev_9,___key, ___value, method); } il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->___method_3.___m_value_0)); bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->___method_3.___m_value_0)); if (__this->___m_target_2 != NULL && ___methodIsStatic) { typedef Object_t * (*FunctionPointerType) (Object_t *, Object_t * __this, Object_t * ___key, Object_t * ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(NULL,__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } else if (__this->___m_target_2 != NULL || ___methodIsStatic) { typedef Object_t * (*FunctionPointerType) (Object_t * __this, Object_t * ___key, Object_t * ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } else { typedef Object_t * (*FunctionPointerType) (Object_t * __this, Object_t * ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } } // System.IAsyncResult System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Object,System.Object>::BeginInvoke(TKey,TValue,System.AsyncCallback,System.Object) extern "C" Object_t * Transform_1_BeginInvoke_m8928_gshared (Transform_1_t1505 * __this, Object_t * ___key, Object_t * ___value, AsyncCallback_t54 * ___callback, Object_t * ___object, const MethodInfo* method) { void *__d_args[3] = {0}; __d_args[0] = ___key; __d_args[1] = ___value; return (Object_t *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)___callback, (Il2CppObject*)___object); } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Object,System.Object>::EndInvoke(System.IAsyncResult) extern "C" Object_t * Transform_1_EndInvoke_m8929_gshared (Transform_1_t1505 * __this, Object_t * ___result, const MethodInfo* method) { Il2CppObject *__result = il2cpp_delegate_end_invoke((Il2CppAsyncResult*) ___result, 0); return (Object_t *)__result; } #ifndef _MSC_VER #else #endif // System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<System.Object,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_ValueCollec_6.h" // System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<System.Object,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_ValueCollec_6MethodDeclarations.h" // System.Void System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral1250; extern "C" void ValueCollection__ctor_m8930_gshared (ValueCollection_t1506 * __this, Dictionary_2_t1499 * ___dictionary, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); _stringLiteral1250 = il2cpp_codegen_string_literal_from_index(1250); s_Il2CppMethodIntialized = true; } { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); Dictionary_2_t1499 * L_0 = ___dictionary; if (L_0) { goto IL_0017; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral1250, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0017: { Dictionary_2_t1499 * L_2 = ___dictionary; __this->___dictionary_0 = L_2; return; } } // System.Void System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Object>::System.Collections.Generic.ICollection<TValue>.Add(TValue) extern TypeInfo* NotSupportedException_t582_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2680; extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Add_m8931_gshared (ValueCollection_t1506 * __this, Object_t * ___item, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NotSupportedException_t582_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(248); _stringLiteral2680 = il2cpp_codegen_string_literal_from_index(2680); s_Il2CppMethodIntialized = true; } { NotSupportedException_t582 * L_0 = (NotSupportedException_t582 *)il2cpp_codegen_object_new (NotSupportedException_t582_il2cpp_TypeInfo_var); NotSupportedException__ctor_m2270(L_0, (String_t*)_stringLiteral2680, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_0); } } // System.Void System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Object>::System.Collections.Generic.ICollection<TValue>.Clear() extern TypeInfo* NotSupportedException_t582_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2680; extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Clear_m8932_gshared (ValueCollection_t1506 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NotSupportedException_t582_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(248); _stringLiteral2680 = il2cpp_codegen_string_literal_from_index(2680); s_Il2CppMethodIntialized = true; } { NotSupportedException_t582 * L_0 = (NotSupportedException_t582 *)il2cpp_codegen_object_new (NotSupportedException_t582_il2cpp_TypeInfo_var); NotSupportedException__ctor_m2270(L_0, (String_t*)_stringLiteral2680, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_0); } } // System.Boolean System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Object>::System.Collections.Generic.ICollection<TValue>.Contains(TValue) extern "C" bool ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Contains_m8933_gshared (ValueCollection_t1506 * __this, Object_t * ___item, const MethodInfo* method) { { Dictionary_2_t1499 * L_0 = (Dictionary_2_t1499 *)(__this->___dictionary_0); Object_t * L_1 = ___item; NullCheck((Dictionary_2_t1499 *)L_0); bool L_2 = (( bool (*) (Dictionary_2_t1499 *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1499 *)L_0, (Object_t *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); return L_2; } } // System.Boolean System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Object>::System.Collections.Generic.ICollection<TValue>.Remove(TValue) extern TypeInfo* NotSupportedException_t582_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2680; extern "C" bool ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Remove_m8934_gshared (ValueCollection_t1506 * __this, Object_t * ___item, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NotSupportedException_t582_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(248); _stringLiteral2680 = il2cpp_codegen_string_literal_from_index(2680); s_Il2CppMethodIntialized = true; } { NotSupportedException_t582 * L_0 = (NotSupportedException_t582 *)il2cpp_codegen_object_new (NotSupportedException_t582_il2cpp_TypeInfo_var); NotSupportedException__ctor_m2270(L_0, (String_t*)_stringLiteral2680, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_0); } } // System.Collections.Generic.IEnumerator`1<TValue> System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Object>::System.Collections.Generic.IEnumerable<TValue>.GetEnumerator() extern "C" Object_t* ValueCollection_System_Collections_Generic_IEnumerableU3CTValueU3E_GetEnumerator_m8935_gshared (ValueCollection_t1506 * __this, const MethodInfo* method) { { NullCheck((ValueCollection_t1506 *)__this); Enumerator_t1507 L_0 = (( Enumerator_t1507 (*) (ValueCollection_t1506 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((ValueCollection_t1506 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); Enumerator_t1507 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), &L_1); return (Object_t*)L_2; } } // System.Void System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Object>::System.Collections.ICollection.CopyTo(System.Array,System.Int32) extern "C" void ValueCollection_System_Collections_ICollection_CopyTo_m8936_gshared (ValueCollection_t1506 * __this, Array_t * ___array, int32_t ___index, const MethodInfo* method) { ObjectU5BU5D_t207* V_0 = {0}; { Array_t * L_0 = ___array; V_0 = (ObjectU5BU5D_t207*)((ObjectU5BU5D_t207*)IsInst(L_0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3))); ObjectU5BU5D_t207* L_1 = V_0; if (!L_1) { goto IL_0016; } } { ObjectU5BU5D_t207* L_2 = V_0; int32_t L_3 = ___index; NullCheck((ValueCollection_t1506 *)__this); (( void (*) (ValueCollection_t1506 *, ObjectU5BU5D_t207*, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((ValueCollection_t1506 *)__this, (ObjectU5BU5D_t207*)L_2, (int32_t)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); return; } IL_0016: { Dictionary_2_t1499 * L_4 = (Dictionary_2_t1499 *)(__this->___dictionary_0); Array_t * L_5 = ___array; int32_t L_6 = ___index; NullCheck((Dictionary_2_t1499 *)L_4); (( void (*) (Dictionary_2_t1499 *, Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((Dictionary_2_t1499 *)L_4, (Array_t *)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); Dictionary_2_t1499 * L_7 = (Dictionary_2_t1499 *)(__this->___dictionary_0); Array_t * L_8 = ___array; int32_t L_9 = ___index; IntPtr_t L_10 = { (void*)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6) }; Transform_1_t1505 * L_11 = (Transform_1_t1505 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); (( void (*) (Transform_1_t1505 *, Object_t *, IntPtr_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)(L_11, (Object_t *)NULL, (IntPtr_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); NullCheck((Dictionary_2_t1499 *)L_7); (( void (*) (Dictionary_2_t1499 *, Array_t *, int32_t, Transform_1_t1505 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)->method)((Dictionary_2_t1499 *)L_7, (Array_t *)L_8, (int32_t)L_9, (Transform_1_t1505 *)L_11, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)); return; } } // System.Collections.IEnumerator System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Object>::System.Collections.IEnumerable.GetEnumerator() extern "C" Object_t * ValueCollection_System_Collections_IEnumerable_GetEnumerator_m8937_gshared (ValueCollection_t1506 * __this, const MethodInfo* method) { { NullCheck((ValueCollection_t1506 *)__this); Enumerator_t1507 L_0 = (( Enumerator_t1507 (*) (ValueCollection_t1506 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((ValueCollection_t1506 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); Enumerator_t1507 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), &L_1); return (Object_t *)L_2; } } // System.Boolean System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Object>::System.Collections.Generic.ICollection<TValue>.get_IsReadOnly() extern "C" bool ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_get_IsReadOnly_m8938_gshared (ValueCollection_t1506 * __this, const MethodInfo* method) { { return 1; } } // System.Object System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Object>::System.Collections.ICollection.get_SyncRoot() extern TypeInfo* ICollection_t576_il2cpp_TypeInfo_var; extern "C" Object_t * ValueCollection_System_Collections_ICollection_get_SyncRoot_m8939_gshared (ValueCollection_t1506 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ICollection_t576_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(234); s_Il2CppMethodIntialized = true; } { Dictionary_2_t1499 * L_0 = (Dictionary_2_t1499 *)(__this->___dictionary_0); NullCheck((Object_t *)L_0); Object_t * L_1 = (Object_t *)InterfaceFuncInvoker0< Object_t * >::Invoke(1 /* System.Object System.Collections.ICollection::get_SyncRoot() */, ICollection_t576_il2cpp_TypeInfo_var, (Object_t *)L_0); return L_1; } } // System.Void System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Object>::CopyTo(TValue[],System.Int32) extern "C" void ValueCollection_CopyTo_m8940_gshared (ValueCollection_t1506 * __this, ObjectU5BU5D_t207* ___array, int32_t ___index, const MethodInfo* method) { { Dictionary_2_t1499 * L_0 = (Dictionary_2_t1499 *)(__this->___dictionary_0); ObjectU5BU5D_t207* L_1 = ___array; int32_t L_2 = ___index; NullCheck((Dictionary_2_t1499 *)L_0); (( void (*) (Dictionary_2_t1499 *, Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((Dictionary_2_t1499 *)L_0, (Array_t *)(Array_t *)L_1, (int32_t)L_2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); Dictionary_2_t1499 * L_3 = (Dictionary_2_t1499 *)(__this->___dictionary_0); ObjectU5BU5D_t207* L_4 = ___array; int32_t L_5 = ___index; IntPtr_t L_6 = { (void*)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6) }; Transform_1_t1505 * L_7 = (Transform_1_t1505 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); (( void (*) (Transform_1_t1505 *, Object_t *, IntPtr_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)(L_7, (Object_t *)NULL, (IntPtr_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); NullCheck((Dictionary_2_t1499 *)L_3); (( void (*) (Dictionary_2_t1499 *, ObjectU5BU5D_t207*, int32_t, Transform_1_t1505 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)->method)((Dictionary_2_t1499 *)L_3, (ObjectU5BU5D_t207*)L_4, (int32_t)L_5, (Transform_1_t1505 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)); return; } } // System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Object>::GetEnumerator() extern "C" Enumerator_t1507 ValueCollection_GetEnumerator_m8941_gshared (ValueCollection_t1506 * __this, const MethodInfo* method) { { Dictionary_2_t1499 * L_0 = (Dictionary_2_t1499 *)(__this->___dictionary_0); Enumerator_t1507 L_1 = {0}; (( void (*) (Enumerator_t1507 *, Dictionary_2_t1499 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 11)->method)(&L_1, (Dictionary_2_t1499 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 11)); return L_1; } } // System.Int32 System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Object>::get_Count() extern "C" int32_t ValueCollection_get_Count_m8942_gshared (ValueCollection_t1506 * __this, const MethodInfo* method) { { Dictionary_2_t1499 * L_0 = (Dictionary_2_t1499 *)(__this->___dictionary_0); NullCheck((Dictionary_2_t1499 *)L_0); int32_t L_1 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(9 /* System.Int32 System.Collections.Generic.Dictionary`2<System.Object,System.Object>::get_Count() */, (Dictionary_2_t1499 *)L_0); return L_1; } } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<System.Object,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>) extern "C" void Enumerator__ctor_m8943_gshared (Enumerator_t1507 * __this, Dictionary_2_t1499 * ___host, const MethodInfo* method) { { Dictionary_2_t1499 * L_0 = ___host; NullCheck((Dictionary_2_t1499 *)L_0); Enumerator_t1504 L_1 = (( Enumerator_t1504 (*) (Dictionary_2_t1499 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1499 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); __this->___host_enumerator_0 = L_1; return; } } // System.Object System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<System.Object,System.Object>::System.Collections.IEnumerator.get_Current() extern "C" Object_t * Enumerator_System_Collections_IEnumerator_get_Current_m8944_gshared (Enumerator_t1507 * __this, const MethodInfo* method) { { Enumerator_t1504 * L_0 = (Enumerator_t1504 *)&(__this->___host_enumerator_0); Object_t * L_1 = (( Object_t * (*) (Enumerator_t1504 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((Enumerator_t1504 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); return L_1; } } // System.Void System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<System.Object,System.Object>::Dispose() extern "C" void Enumerator_Dispose_m8945_gshared (Enumerator_t1507 * __this, const MethodInfo* method) { { Enumerator_t1504 * L_0 = (Enumerator_t1504 *)&(__this->___host_enumerator_0); (( void (*) (Enumerator_t1504 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)->method)((Enumerator_t1504 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)); return; } } // System.Boolean System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<System.Object,System.Object>::MoveNext() extern "C" bool Enumerator_MoveNext_m8946_gshared (Enumerator_t1507 * __this, const MethodInfo* method) { { Enumerator_t1504 * L_0 = (Enumerator_t1504 *)&(__this->___host_enumerator_0); bool L_1 = (( bool (*) (Enumerator_t1504 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((Enumerator_t1504 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); return L_1; } } // TValue System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<System.Object,System.Object>::get_Current() extern "C" Object_t * Enumerator_get_Current_m8947_gshared (Enumerator_t1507 * __this, const MethodInfo* method) { { Enumerator_t1504 * L_0 = (Enumerator_t1504 *)&(__this->___host_enumerator_0); KeyValuePair_2_t1500 * L_1 = (KeyValuePair_2_t1500 *)&(L_0->___current_3); Object_t * L_2 = (( Object_t * (*) (KeyValuePair_2_t1500 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((KeyValuePair_2_t1500 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); return L_2; } } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Object,System.Collections.DictionaryEntry>::.ctor(System.Object,System.IntPtr) extern "C" void Transform_1__ctor_m8948_gshared (Transform_1_t1498 * __this, Object_t * ___object, IntPtr_t ___method, const MethodInfo* method) { __this->___method_ptr_0 = (methodPointerType)((MethodInfo*)___method.___m_value_0)->method; __this->___method_3 = ___method; __this->___m_target_2 = ___object; } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Object,System.Collections.DictionaryEntry>::Invoke(TKey,TValue) extern "C" DictionaryEntry_t567 Transform_1_Invoke_m8949_gshared (Transform_1_t1498 * __this, Object_t * ___key, Object_t * ___value, const MethodInfo* method) { if(__this->___prev_9 != NULL) { Transform_1_Invoke_m8949((Transform_1_t1498 *)__this->___prev_9,___key, ___value, method); } il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->___method_3.___m_value_0)); bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->___method_3.___m_value_0)); if (__this->___m_target_2 != NULL && ___methodIsStatic) { typedef DictionaryEntry_t567 (*FunctionPointerType) (Object_t *, Object_t * __this, Object_t * ___key, Object_t * ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(NULL,__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } else if (__this->___m_target_2 != NULL || ___methodIsStatic) { typedef DictionaryEntry_t567 (*FunctionPointerType) (Object_t * __this, Object_t * ___key, Object_t * ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } else { typedef DictionaryEntry_t567 (*FunctionPointerType) (Object_t * __this, Object_t * ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } } // System.IAsyncResult System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Object,System.Collections.DictionaryEntry>::BeginInvoke(TKey,TValue,System.AsyncCallback,System.Object) extern "C" Object_t * Transform_1_BeginInvoke_m8950_gshared (Transform_1_t1498 * __this, Object_t * ___key, Object_t * ___value, AsyncCallback_t54 * ___callback, Object_t * ___object, const MethodInfo* method) { void *__d_args[3] = {0}; __d_args[0] = ___key; __d_args[1] = ___value; return (Object_t *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)___callback, (Il2CppObject*)___object); } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Object,System.Collections.DictionaryEntry>::EndInvoke(System.IAsyncResult) extern "C" DictionaryEntry_t567 Transform_1_EndInvoke_m8951_gshared (Transform_1_t1498 * __this, Object_t * ___result, const MethodInfo* method) { Il2CppObject *__result = il2cpp_delegate_end_invoke((Il2CppAsyncResult*) ___result, 0); return *(DictionaryEntry_t567 *)UnBox ((Il2CppCodeGenObject*)__result); } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Object,System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>>::.ctor(System.Object,System.IntPtr) extern "C" void Transform_1__ctor_m8952_gshared (Transform_1_t1508 * __this, Object_t * ___object, IntPtr_t ___method, const MethodInfo* method) { __this->___method_ptr_0 = (methodPointerType)((MethodInfo*)___method.___m_value_0)->method; __this->___method_3 = ___method; __this->___m_target_2 = ___object; } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Object,System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>>::Invoke(TKey,TValue) extern "C" KeyValuePair_2_t1500 Transform_1_Invoke_m8953_gshared (Transform_1_t1508 * __this, Object_t * ___key, Object_t * ___value, const MethodInfo* method) { if(__this->___prev_9 != NULL) { Transform_1_Invoke_m8953((Transform_1_t1508 *)__this->___prev_9,___key, ___value, method); } il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->___method_3.___m_value_0)); bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->___method_3.___m_value_0)); if (__this->___m_target_2 != NULL && ___methodIsStatic) { typedef KeyValuePair_2_t1500 (*FunctionPointerType) (Object_t *, Object_t * __this, Object_t * ___key, Object_t * ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(NULL,__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } else if (__this->___m_target_2 != NULL || ___methodIsStatic) { typedef KeyValuePair_2_t1500 (*FunctionPointerType) (Object_t * __this, Object_t * ___key, Object_t * ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } else { typedef KeyValuePair_2_t1500 (*FunctionPointerType) (Object_t * __this, Object_t * ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } } // System.IAsyncResult System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Object,System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>>::BeginInvoke(TKey,TValue,System.AsyncCallback,System.Object) extern "C" Object_t * Transform_1_BeginInvoke_m8954_gshared (Transform_1_t1508 * __this, Object_t * ___key, Object_t * ___value, AsyncCallback_t54 * ___callback, Object_t * ___object, const MethodInfo* method) { void *__d_args[3] = {0}; __d_args[0] = ___key; __d_args[1] = ___value; return (Object_t *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)___callback, (Il2CppObject*)___object); } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Object,System.Collections.Generic.KeyValuePair`2<System.Object,System.Object>>::EndInvoke(System.IAsyncResult) extern "C" KeyValuePair_2_t1500 Transform_1_EndInvoke_m8955_gshared (Transform_1_t1508 * __this, Object_t * ___result, const MethodInfo* method) { Il2CppObject *__result = il2cpp_delegate_end_invoke((Il2CppAsyncResult*) ___result, 0); return *(KeyValuePair_2_t1500 *)UnBox ((Il2CppCodeGenObject*)__result); } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Object,System.Object>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>) extern "C" void ShimEnumerator__ctor_m8956_gshared (ShimEnumerator_t1509 * __this, Dictionary_2_t1499 * ___host, const MethodInfo* method) { { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); Dictionary_2_t1499 * L_0 = ___host; NullCheck((Dictionary_2_t1499 *)L_0); Enumerator_t1504 L_1 = (( Enumerator_t1504 (*) (Dictionary_2_t1499 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1499 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); __this->___host_enumerator_0 = L_1; return; } } // System.Boolean System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Object,System.Object>::MoveNext() extern "C" bool ShimEnumerator_MoveNext_m8957_gshared (ShimEnumerator_t1509 * __this, const MethodInfo* method) { { Enumerator_t1504 * L_0 = (Enumerator_t1504 *)&(__this->___host_enumerator_0); bool L_1 = (( bool (*) (Enumerator_t1504 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((Enumerator_t1504 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); return L_1; } } // System.Collections.DictionaryEntry System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Object,System.Object>::get_Entry() extern TypeInfo* IDictionaryEnumerator_t566_il2cpp_TypeInfo_var; extern "C" DictionaryEntry_t567 ShimEnumerator_get_Entry_m8958_gshared (ShimEnumerator_t1509 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { IDictionaryEnumerator_t566_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(274); s_Il2CppMethodIntialized = true; } { Enumerator_t1504 L_0 = (Enumerator_t1504 )(__this->___host_enumerator_0); Enumerator_t1504 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), &L_1); NullCheck((Object_t *)L_2); DictionaryEntry_t567 L_3 = (DictionaryEntry_t567 )InterfaceFuncInvoker0< DictionaryEntry_t567 >::Invoke(0 /* System.Collections.DictionaryEntry System.Collections.IDictionaryEnumerator::get_Entry() */, IDictionaryEnumerator_t566_il2cpp_TypeInfo_var, (Object_t *)L_2); return L_3; } } // System.Object System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Object,System.Object>::get_Key() extern "C" Object_t * ShimEnumerator_get_Key_m8959_gshared (ShimEnumerator_t1509 * __this, const MethodInfo* method) { KeyValuePair_2_t1500 V_0 = {0}; { Enumerator_t1504 * L_0 = (Enumerator_t1504 *)&(__this->___host_enumerator_0); KeyValuePair_2_t1500 L_1 = (( KeyValuePair_2_t1500 (*) (Enumerator_t1504 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)->method)((Enumerator_t1504 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)); V_0 = (KeyValuePair_2_t1500 )L_1; Object_t * L_2 = (( Object_t * (*) (KeyValuePair_2_t1500 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((KeyValuePair_2_t1500 *)(&V_0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); return L_2; } } // System.Object System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Object,System.Object>::get_Value() extern "C" Object_t * ShimEnumerator_get_Value_m8960_gshared (ShimEnumerator_t1509 * __this, const MethodInfo* method) { KeyValuePair_2_t1500 V_0 = {0}; { Enumerator_t1504 * L_0 = (Enumerator_t1504 *)&(__this->___host_enumerator_0); KeyValuePair_2_t1500 L_1 = (( KeyValuePair_2_t1500 (*) (Enumerator_t1504 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)->method)((Enumerator_t1504 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)); V_0 = (KeyValuePair_2_t1500 )L_1; Object_t * L_2 = (( Object_t * (*) (KeyValuePair_2_t1500 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)->method)((KeyValuePair_2_t1500 *)(&V_0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); return L_2; } } // System.Object System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Object,System.Object>::get_Current() extern TypeInfo* DictionaryEntry_t567_il2cpp_TypeInfo_var; extern "C" Object_t * ShimEnumerator_get_Current_m8961_gshared (ShimEnumerator_t1509 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { DictionaryEntry_t567_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(237); s_Il2CppMethodIntialized = true; } { NullCheck((ShimEnumerator_t1509 *)__this); DictionaryEntry_t567 L_0 = (DictionaryEntry_t567 )VirtFuncInvoker0< DictionaryEntry_t567 >::Invoke(6 /* System.Collections.DictionaryEntry System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Object,System.Object>::get_Entry() */, (ShimEnumerator_t1509 *)__this); DictionaryEntry_t567 L_1 = L_0; Object_t * L_2 = Box(DictionaryEntry_t567_il2cpp_TypeInfo_var, &L_1); return L_2; } } // System.Collections.Generic.Dictionary`2<System.Object,System.Int32> #include "mscorlib_System_Collections_Generic_Dictionary_2_gen_11.h" #ifndef _MSC_VER #else #endif // System.Collections.Generic.Dictionary`2<System.Object,System.Int32> #include "mscorlib_System_Collections_Generic_Dictionary_2_gen_11MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Int32> #include "mscorlib_System_Collections_Generic_Dictionary_2_KeyCollecti_6.h" // System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Int32> #include "mscorlib_System_Collections_Generic_Dictionary_2_ValueCollec_7.h" // System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32> #include "mscorlib_System_Collections_Generic_KeyValuePair_2_gen_7.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Collections.DictionaryEntry> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1_10.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1_11.h" // System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Int32> #include "mscorlib_System_Collections_Generic_Dictionary_2_Enumerator__5.h" // System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Object,System.Int32> #include "mscorlib_System_Collections_Generic_Dictionary_2_ShimEnumera_1.h" // System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Int32> #include "mscorlib_System_Collections_Generic_Dictionary_2_KeyCollecti_6MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Int32> #include "mscorlib_System_Collections_Generic_Dictionary_2_ValueCollec_7MethodDeclarations.h" // System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32> #include "mscorlib_System_Collections_Generic_KeyValuePair_2_gen_7MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Collections.DictionaryEntry> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1_10MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1_11MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Int32> #include "mscorlib_System_Collections_Generic_Dictionary_2_Enumerator__5MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Object,System.Int32> #include "mscorlib_System_Collections_Generic_Dictionary_2_ShimEnumera_1MethodDeclarations.h" struct Dictionary_2_t1515; struct DictionaryEntryU5BU5D_t1958; struct Transform_1_t1514; // Declaration System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Do_CopyTo<System.Collections.DictionaryEntry,System.Collections.DictionaryEntry>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Do_CopyTo<System.Collections.DictionaryEntry,System.Collections.DictionaryEntry>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) extern "C" void Dictionary_2_Do_CopyTo_TisDictionaryEntry_t567_TisDictionaryEntry_t567_m12228_gshared (Dictionary_2_t1515 * __this, DictionaryEntryU5BU5D_t1958* p0, int32_t p1, Transform_1_t1514 * p2, const MethodInfo* method); #define Dictionary_2_Do_CopyTo_TisDictionaryEntry_t567_TisDictionaryEntry_t567_m12228(__this, p0, p1, p2, method) (( void (*) (Dictionary_2_t1515 *, DictionaryEntryU5BU5D_t1958*, int32_t, Transform_1_t1514 *, const MethodInfo*))Dictionary_2_Do_CopyTo_TisDictionaryEntry_t567_TisDictionaryEntry_t567_m12228_gshared)(__this, p0, p1, p2, method) struct Dictionary_2_t1515; struct Array_t; struct Transform_1_t1525; // Declaration System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Do_ICollectionCopyTo<System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>>(System.Array,System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Do_ICollectionCopyTo<System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>>(System.Array,System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) extern "C" void Dictionary_2_Do_ICollectionCopyTo_TisKeyValuePair_2_t1516_m12230_gshared (Dictionary_2_t1515 * __this, Array_t * p0, int32_t p1, Transform_1_t1525 * p2, const MethodInfo* method); #define Dictionary_2_Do_ICollectionCopyTo_TisKeyValuePair_2_t1516_m12230(__this, p0, p1, p2, method) (( void (*) (Dictionary_2_t1515 *, Array_t *, int32_t, Transform_1_t1525 *, const MethodInfo*))Dictionary_2_Do_ICollectionCopyTo_TisKeyValuePair_2_t1516_m12230_gshared)(__this, p0, p1, p2, method) struct Dictionary_2_t1515; struct KeyValuePair_2U5BU5D_t1841; struct Transform_1_t1525; // Declaration System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Do_CopyTo<System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>,System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Do_CopyTo<System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>,System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) extern "C" void Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t1516_TisKeyValuePair_2_t1516_m12231_gshared (Dictionary_2_t1515 * __this, KeyValuePair_2U5BU5D_t1841* p0, int32_t p1, Transform_1_t1525 * p2, const MethodInfo* method); #define Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t1516_TisKeyValuePair_2_t1516_m12231(__this, p0, p1, p2, method) (( void (*) (Dictionary_2_t1515 *, KeyValuePair_2U5BU5D_t1841*, int32_t, Transform_1_t1525 *, const MethodInfo*))Dictionary_2_Do_CopyTo_TisKeyValuePair_2_t1516_TisKeyValuePair_2_t1516_m12231_gshared)(__this, p0, p1, p2, method) // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::.ctor() extern "C" void Dictionary_2__ctor_m9015_gshared (Dictionary_2_t1515 * __this, const MethodInfo* method) { { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); NullCheck((Dictionary_2_t1515 *)__this); (( void (*) (Dictionary_2_t1515 *, int32_t, Object_t*, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1515 *)__this, (int32_t)((int32_t)10), (Object_t*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::.ctor(System.Collections.Generic.IEqualityComparer`1<TKey>) extern "C" void Dictionary_2__ctor_m9017_gshared (Dictionary_2_t1515 * __this, Object_t* ___comparer, const MethodInfo* method) { { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); Object_t* L_0 = ___comparer; NullCheck((Dictionary_2_t1515 *)__this); (( void (*) (Dictionary_2_t1515 *, int32_t, Object_t*, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1515 *)__this, (int32_t)((int32_t)10), (Object_t*)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>) extern "C" void Dictionary_2__ctor_m9019_gshared (Dictionary_2_t1515 * __this, Object_t* ___dictionary, const MethodInfo* method) { { Object_t* L_0 = ___dictionary; NullCheck((Dictionary_2_t1515 *)__this); (( void (*) (Dictionary_2_t1515 *, Object_t*, Object_t*, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((Dictionary_2_t1515 *)__this, (Object_t*)L_0, (Object_t*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::.ctor(System.Int32) extern "C" void Dictionary_2__ctor_m9020_gshared (Dictionary_2_t1515 * __this, int32_t ___capacity, const MethodInfo* method) { { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); int32_t L_0 = ___capacity; NullCheck((Dictionary_2_t1515 *)__this); (( void (*) (Dictionary_2_t1515 *, int32_t, Object_t*, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1515 *)__this, (int32_t)L_0, (Object_t*)NULL, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::.ctor(System.Collections.Generic.IDictionary`2<TKey,TValue>,System.Collections.Generic.IEqualityComparer`1<TKey>) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern TypeInfo* IEnumerator_t286_il2cpp_TypeInfo_var; extern TypeInfo* IDisposable_t326_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral1250; extern "C" void Dictionary_2__ctor_m9022_gshared (Dictionary_2_t1515 * __this, Object_t* ___dictionary, Object_t* ___comparer, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); IEnumerator_t286_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(142); IDisposable_t326_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(27); _stringLiteral1250 = il2cpp_codegen_string_literal_from_index(1250); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; KeyValuePair_2_t1516 V_1 = {0}; Object_t* V_2 = {0}; Exception_t74 * __last_unhandled_exception = 0; NO_UNUSED_WARNING (__last_unhandled_exception); Exception_t74 * __exception_local = 0; NO_UNUSED_WARNING (__exception_local); int32_t __leave_target = 0; NO_UNUSED_WARNING (__leave_target); { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); Object_t* L_0 = ___dictionary; if (L_0) { goto IL_0017; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral1250, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0017: { Object_t* L_2 = ___dictionary; NullCheck((Object_t*)L_2); int32_t L_3 = (int32_t)InterfaceFuncInvoker0< int32_t >::Invoke(0 /* System.Int32 System.Collections.Generic.ICollection`1<System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>>::get_Count() */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), (Object_t*)L_2); V_0 = (int32_t)L_3; int32_t L_4 = V_0; Object_t* L_5 = ___comparer; NullCheck((Dictionary_2_t1515 *)__this); (( void (*) (Dictionary_2_t1515 *, int32_t, Object_t*, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1515 *)__this, (int32_t)L_4, (Object_t*)L_5, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); Object_t* L_6 = ___dictionary; NullCheck((Object_t*)L_6); Object_t* L_7 = (Object_t*)InterfaceFuncInvoker0< Object_t* >::Invoke(0 /* System.Collections.Generic.IEnumerator`1<T> System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>>::GetEnumerator() */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3), (Object_t*)L_6); V_2 = (Object_t*)L_7; } IL_002d: try { // begin try (depth: 1) { goto IL_004d; } IL_0032: { Object_t* L_8 = V_2; NullCheck((Object_t*)L_8); KeyValuePair_2_t1516 L_9 = (KeyValuePair_2_t1516 )InterfaceFuncInvoker0< KeyValuePair_2_t1516 >::Invoke(0 /* T System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>>::get_Current() */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4), (Object_t*)L_8); V_1 = (KeyValuePair_2_t1516 )L_9; Object_t * L_10 = (( Object_t * (*) (KeyValuePair_2_t1516 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((KeyValuePair_2_t1516 *)(&V_1), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); int32_t L_11 = (( int32_t (*) (KeyValuePair_2_t1516 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)->method)((KeyValuePair_2_t1516 *)(&V_1), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); NullCheck((Dictionary_2_t1515 *)__this); VirtActionInvoker2< Object_t *, int32_t >::Invoke(17 /* System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Add(TKey,TValue) */, (Dictionary_2_t1515 *)__this, (Object_t *)L_10, (int32_t)L_11); } IL_004d: { Object_t* L_12 = V_2; NullCheck((Object_t *)L_12); bool L_13 = (bool)InterfaceFuncInvoker0< bool >::Invoke(1 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t286_il2cpp_TypeInfo_var, (Object_t *)L_12); if (L_13) { goto IL_0032; } } IL_0058: { IL2CPP_LEAVE(0x68, FINALLY_005d); } } // end try (depth: 1) catch(Il2CppExceptionWrapper& e) { __last_unhandled_exception = (Exception_t74 *)e.ex; goto FINALLY_005d; } FINALLY_005d: { // begin finally (depth: 1) { Object_t* L_14 = V_2; if (L_14) { goto IL_0061; } } IL_0060: { IL2CPP_END_FINALLY(93) } IL_0061: { Object_t* L_15 = V_2; NullCheck((Object_t *)L_15); InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t326_il2cpp_TypeInfo_var, (Object_t *)L_15); IL2CPP_END_FINALLY(93) } } // end finally (depth: 1) IL2CPP_CLEANUP(93) { IL2CPP_JUMP_TBL(0x68, IL_0068) IL2CPP_RETHROW_IF_UNHANDLED(Exception_t74 *) } IL_0068: { return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) extern "C" void Dictionary_2__ctor_m9024_gshared (Dictionary_2_t1515 * __this, SerializationInfo_t317 * ___info, StreamingContext_t318 ___context, const MethodInfo* method) { { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); SerializationInfo_t317 * L_0 = ___info; __this->___serialization_info_13 = L_0; return; } } // System.Collections.Generic.ICollection`1<TKey> System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Keys() extern "C" Object_t* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Keys_m9026_gshared (Dictionary_2_t1515 * __this, const MethodInfo* method) { { NullCheck((Dictionary_2_t1515 *)__this); KeyCollection_t1518 * L_0 = (( KeyCollection_t1518 * (*) (Dictionary_2_t1515 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)((Dictionary_2_t1515 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); return L_0; } } // System.Collections.Generic.ICollection`1<TValue> System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::System.Collections.Generic.IDictionary<TKey,TValue>.get_Values() extern "C" Object_t* Dictionary_2_System_Collections_Generic_IDictionaryU3CTKeyU2CTValueU3E_get_Values_m9028_gshared (Dictionary_2_t1515 * __this, const MethodInfo* method) { { NullCheck((Dictionary_2_t1515 *)__this); ValueCollection_t1522 * L_0 = (( ValueCollection_t1522 * (*) (Dictionary_2_t1515 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)->method)((Dictionary_2_t1515 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)); return L_0; } } // System.Object System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::System.Collections.IDictionary.get_Item(System.Object) extern "C" Object_t * Dictionary_2_System_Collections_IDictionary_get_Item_m9030_gshared (Dictionary_2_t1515 * __this, Object_t * ___key, const MethodInfo* method) { { Object_t * L_0 = ___key; if (!((Object_t *)IsInst(L_0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)))) { goto IL_002f; } } { Object_t * L_1 = ___key; NullCheck((Dictionary_2_t1515 *)__this); bool L_2 = (bool)VirtFuncInvoker1< bool, Object_t * >::Invoke(30 /* System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::ContainsKey(TKey) */, (Dictionary_2_t1515 *)__this, (Object_t *)((Object_t *)Castclass(L_1, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)))); if (!L_2) { goto IL_002f; } } { Object_t * L_3 = ___key; NullCheck((Dictionary_2_t1515 *)__this); Object_t * L_4 = (( Object_t * (*) (Dictionary_2_t1515 *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 12)->method)((Dictionary_2_t1515 *)__this, (Object_t *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 12)); NullCheck((Dictionary_2_t1515 *)__this); int32_t L_5 = (int32_t)VirtFuncInvoker1< int32_t, Object_t * >::Invoke(19 /* TValue System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::get_Item(TKey) */, (Dictionary_2_t1515 *)__this, (Object_t *)L_4); int32_t L_6 = L_5; Object_t * L_7 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 14), &L_6); return L_7; } IL_002f: { return NULL; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::System.Collections.IDictionary.set_Item(System.Object,System.Object) extern "C" void Dictionary_2_System_Collections_IDictionary_set_Item_m9032_gshared (Dictionary_2_t1515 * __this, Object_t * ___key, Object_t * ___value, const MethodInfo* method) { { Object_t * L_0 = ___key; NullCheck((Dictionary_2_t1515 *)__this); Object_t * L_1 = (( Object_t * (*) (Dictionary_2_t1515 *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 12)->method)((Dictionary_2_t1515 *)__this, (Object_t *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 12)); Object_t * L_2 = ___value; NullCheck((Dictionary_2_t1515 *)__this); int32_t L_3 = (( int32_t (*) (Dictionary_2_t1515 *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 15)->method)((Dictionary_2_t1515 *)__this, (Object_t *)L_2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 15)); NullCheck((Dictionary_2_t1515 *)__this); VirtActionInvoker2< Object_t *, int32_t >::Invoke(20 /* System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::set_Item(TKey,TValue) */, (Dictionary_2_t1515 *)__this, (Object_t *)L_1, (int32_t)L_3); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::System.Collections.IDictionary.Add(System.Object,System.Object) extern "C" void Dictionary_2_System_Collections_IDictionary_Add_m9034_gshared (Dictionary_2_t1515 * __this, Object_t * ___key, Object_t * ___value, const MethodInfo* method) { { Object_t * L_0 = ___key; NullCheck((Dictionary_2_t1515 *)__this); Object_t * L_1 = (( Object_t * (*) (Dictionary_2_t1515 *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 12)->method)((Dictionary_2_t1515 *)__this, (Object_t *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 12)); Object_t * L_2 = ___value; NullCheck((Dictionary_2_t1515 *)__this); int32_t L_3 = (( int32_t (*) (Dictionary_2_t1515 *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 15)->method)((Dictionary_2_t1515 *)__this, (Object_t *)L_2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 15)); NullCheck((Dictionary_2_t1515 *)__this); VirtActionInvoker2< Object_t *, int32_t >::Invoke(17 /* System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Add(TKey,TValue) */, (Dictionary_2_t1515 *)__this, (Object_t *)L_1, (int32_t)L_3); return; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::System.Collections.IDictionary.Contains(System.Object) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern "C" bool Dictionary_2_System_Collections_IDictionary_Contains_m9036_gshared (Dictionary_2_t1515 * __this, Object_t * ___key, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); s_Il2CppMethodIntialized = true; } { Object_t * L_0 = ___key; if (L_0) { goto IL_0011; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0011: { Object_t * L_2 = ___key; if (!((Object_t *)IsInst(L_2, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)))) { goto IL_0029; } } { Object_t * L_3 = ___key; NullCheck((Dictionary_2_t1515 *)__this); bool L_4 = (bool)VirtFuncInvoker1< bool, Object_t * >::Invoke(30 /* System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::ContainsKey(TKey) */, (Dictionary_2_t1515 *)__this, (Object_t *)((Object_t *)Castclass(L_3, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)))); return L_4; } IL_0029: { return 0; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::System.Collections.IDictionary.Remove(System.Object) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern "C" void Dictionary_2_System_Collections_IDictionary_Remove_m9038_gshared (Dictionary_2_t1515 * __this, Object_t * ___key, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); s_Il2CppMethodIntialized = true; } { Object_t * L_0 = ___key; if (L_0) { goto IL_0011; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0011: { Object_t * L_2 = ___key; if (!((Object_t *)IsInst(L_2, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)))) { goto IL_0029; } } { Object_t * L_3 = ___key; NullCheck((Dictionary_2_t1515 *)__this); VirtFuncInvoker1< bool, Object_t * >::Invoke(33 /* System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Remove(TKey) */, (Dictionary_2_t1515 *)__this, (Object_t *)((Object_t *)Castclass(L_3, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)))); } IL_0029: { return; } } // System.Object System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::System.Collections.ICollection.get_SyncRoot() extern "C" Object_t * Dictionary_2_System_Collections_ICollection_get_SyncRoot_m9040_gshared (Dictionary_2_t1515 * __this, const MethodInfo* method) { { return __this; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.get_IsReadOnly() extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_get_IsReadOnly_m9042_gshared (Dictionary_2_t1515 * __this, const MethodInfo* method) { { return 0; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Add(System.Collections.Generic.KeyValuePair`2<TKey,TValue>) extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Add_m9044_gshared (Dictionary_2_t1515 * __this, KeyValuePair_2_t1516 ___keyValuePair, const MethodInfo* method) { { Object_t * L_0 = (( Object_t * (*) (KeyValuePair_2_t1516 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((KeyValuePair_2_t1516 *)(&___keyValuePair), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); int32_t L_1 = (( int32_t (*) (KeyValuePair_2_t1516 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)->method)((KeyValuePair_2_t1516 *)(&___keyValuePair), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); NullCheck((Dictionary_2_t1515 *)__this); VirtActionInvoker2< Object_t *, int32_t >::Invoke(17 /* System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Add(TKey,TValue) */, (Dictionary_2_t1515 *)__this, (Object_t *)L_0, (int32_t)L_1); return; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains(System.Collections.Generic.KeyValuePair`2<TKey,TValue>) extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Contains_m9046_gshared (Dictionary_2_t1515 * __this, KeyValuePair_2_t1516 ___keyValuePair, const MethodInfo* method) { { KeyValuePair_2_t1516 L_0 = ___keyValuePair; NullCheck((Dictionary_2_t1515 *)__this); bool L_1 = (( bool (*) (Dictionary_2_t1515 *, KeyValuePair_2_t1516 , const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 18)->method)((Dictionary_2_t1515 *)__this, (KeyValuePair_2_t1516 )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 18)); return L_1; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32) extern "C" void Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_CopyTo_m9048_gshared (Dictionary_2_t1515 * __this, KeyValuePair_2U5BU5D_t1841* ___array, int32_t ___index, const MethodInfo* method) { { KeyValuePair_2U5BU5D_t1841* L_0 = ___array; int32_t L_1 = ___index; NullCheck((Dictionary_2_t1515 *)__this); (( void (*) (Dictionary_2_t1515 *, KeyValuePair_2U5BU5D_t1841*, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 19)->method)((Dictionary_2_t1515 *)__this, (KeyValuePair_2U5BU5D_t1841*)L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 19)); return; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove(System.Collections.Generic.KeyValuePair`2<TKey,TValue>) extern "C" bool Dictionary_2_System_Collections_Generic_ICollectionU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_Remove_m9050_gshared (Dictionary_2_t1515 * __this, KeyValuePair_2_t1516 ___keyValuePair, const MethodInfo* method) { { KeyValuePair_2_t1516 L_0 = ___keyValuePair; NullCheck((Dictionary_2_t1515 *)__this); bool L_1 = (( bool (*) (Dictionary_2_t1515 *, KeyValuePair_2_t1516 , const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 18)->method)((Dictionary_2_t1515 *)__this, (KeyValuePair_2_t1516 )L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 18)); if (L_1) { goto IL_000e; } } { return 0; } IL_000e: { Object_t * L_2 = (( Object_t * (*) (KeyValuePair_2_t1516 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((KeyValuePair_2_t1516 *)(&___keyValuePair), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); NullCheck((Dictionary_2_t1515 *)__this); bool L_3 = (bool)VirtFuncInvoker1< bool, Object_t * >::Invoke(33 /* System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Remove(TKey) */, (Dictionary_2_t1515 *)__this, (Object_t *)L_2); return L_3; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::System.Collections.ICollection.CopyTo(System.Array,System.Int32) extern TypeInfo* DictionaryEntryU5BU5D_t1958_il2cpp_TypeInfo_var; extern "C" void Dictionary_2_System_Collections_ICollection_CopyTo_m9052_gshared (Dictionary_2_t1515 * __this, Array_t * ___array, int32_t ___index, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { DictionaryEntryU5BU5D_t1958_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(2138); s_Il2CppMethodIntialized = true; } KeyValuePair_2U5BU5D_t1841* V_0 = {0}; DictionaryEntryU5BU5D_t1958* V_1 = {0}; int32_t G_B5_0 = 0; DictionaryEntryU5BU5D_t1958* G_B5_1 = {0}; Dictionary_2_t1515 * G_B5_2 = {0}; int32_t G_B4_0 = 0; DictionaryEntryU5BU5D_t1958* G_B4_1 = {0}; Dictionary_2_t1515 * G_B4_2 = {0}; { Array_t * L_0 = ___array; V_0 = (KeyValuePair_2U5BU5D_t1841*)((KeyValuePair_2U5BU5D_t1841*)IsInst(L_0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 20))); KeyValuePair_2U5BU5D_t1841* L_1 = V_0; if (!L_1) { goto IL_0016; } } { KeyValuePair_2U5BU5D_t1841* L_2 = V_0; int32_t L_3 = ___index; NullCheck((Dictionary_2_t1515 *)__this); (( void (*) (Dictionary_2_t1515 *, KeyValuePair_2U5BU5D_t1841*, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 19)->method)((Dictionary_2_t1515 *)__this, (KeyValuePair_2U5BU5D_t1841*)L_2, (int32_t)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 19)); return; } IL_0016: { Array_t * L_4 = ___array; int32_t L_5 = ___index; NullCheck((Dictionary_2_t1515 *)__this); (( void (*) (Dictionary_2_t1515 *, Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 21)->method)((Dictionary_2_t1515 *)__this, (Array_t *)L_4, (int32_t)L_5, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 21)); Array_t * L_6 = ___array; V_1 = (DictionaryEntryU5BU5D_t1958*)((DictionaryEntryU5BU5D_t1958*)IsInst(L_6, DictionaryEntryU5BU5D_t1958_il2cpp_TypeInfo_var)); DictionaryEntryU5BU5D_t1958* L_7 = V_1; if (!L_7) { goto IL_0051; } } { DictionaryEntryU5BU5D_t1958* L_8 = V_1; int32_t L_9 = ___index; Transform_1_t1514 * L_10 = ((Dictionary_2_t1515_StaticFields*)IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 22)->static_fields)->___U3CU3Ef__amU24cacheB_15; G_B4_0 = L_9; G_B4_1 = L_8; G_B4_2 = ((Dictionary_2_t1515 *)(__this)); if (L_10) { G_B5_0 = L_9; G_B5_1 = L_8; G_B5_2 = ((Dictionary_2_t1515 *)(__this)); goto IL_0046; } } { IntPtr_t L_11 = { (void*)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 23) }; Transform_1_t1514 * L_12 = (Transform_1_t1514 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 24)); (( void (*) (Transform_1_t1514 *, Object_t *, IntPtr_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 25)->method)(L_12, (Object_t *)NULL, (IntPtr_t)L_11, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 25)); ((Dictionary_2_t1515_StaticFields*)IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 22)->static_fields)->___U3CU3Ef__amU24cacheB_15 = L_12; G_B5_0 = G_B4_0; G_B5_1 = G_B4_1; G_B5_2 = ((Dictionary_2_t1515 *)(G_B4_2)); } IL_0046: { Transform_1_t1514 * L_13 = ((Dictionary_2_t1515_StaticFields*)IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 22)->static_fields)->___U3CU3Ef__amU24cacheB_15; NullCheck((Dictionary_2_t1515 *)G_B5_2); (( void (*) (Dictionary_2_t1515 *, DictionaryEntryU5BU5D_t1958*, int32_t, Transform_1_t1514 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 26)->method)((Dictionary_2_t1515 *)G_B5_2, (DictionaryEntryU5BU5D_t1958*)G_B5_1, (int32_t)G_B5_0, (Transform_1_t1514 *)L_13, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 26)); return; } IL_0051: { Array_t * L_14 = ___array; int32_t L_15 = ___index; IntPtr_t L_16 = { (void*)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 27) }; Transform_1_t1525 * L_17 = (Transform_1_t1525 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 28)); (( void (*) (Transform_1_t1525 *, Object_t *, IntPtr_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 29)->method)(L_17, (Object_t *)NULL, (IntPtr_t)L_16, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 29)); NullCheck((Dictionary_2_t1515 *)__this); (( void (*) (Dictionary_2_t1515 *, Array_t *, int32_t, Transform_1_t1525 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 30)->method)((Dictionary_2_t1515 *)__this, (Array_t *)L_14, (int32_t)L_15, (Transform_1_t1525 *)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 30)); return; } } // System.Collections.IEnumerator System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::System.Collections.IEnumerable.GetEnumerator() extern "C" Object_t * Dictionary_2_System_Collections_IEnumerable_GetEnumerator_m9054_gshared (Dictionary_2_t1515 * __this, const MethodInfo* method) { { Enumerator_t1520 L_0 = {0}; (( void (*) (Enumerator_t1520 *, Dictionary_2_t1515 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 32)->method)(&L_0, (Dictionary_2_t1515 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 32)); Enumerator_t1520 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 31), &L_1); return (Object_t *)L_2; } } // System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<TKey,TValue>> System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>.GetEnumerator() extern "C" Object_t* Dictionary_2_System_Collections_Generic_IEnumerableU3CSystem_Collections_Generic_KeyValuePairU3CTKeyU2CTValueU3EU3E_GetEnumerator_m9056_gshared (Dictionary_2_t1515 * __this, const MethodInfo* method) { { Enumerator_t1520 L_0 = {0}; (( void (*) (Enumerator_t1520 *, Dictionary_2_t1515 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 32)->method)(&L_0, (Dictionary_2_t1515 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 32)); Enumerator_t1520 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 31), &L_1); return (Object_t*)L_2; } } // System.Collections.IDictionaryEnumerator System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::System.Collections.IDictionary.GetEnumerator() extern "C" Object_t * Dictionary_2_System_Collections_IDictionary_GetEnumerator_m9058_gshared (Dictionary_2_t1515 * __this, const MethodInfo* method) { { ShimEnumerator_t1526 * L_0 = (ShimEnumerator_t1526 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 33)); (( void (*) (ShimEnumerator_t1526 *, Dictionary_2_t1515 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 34)->method)(L_0, (Dictionary_2_t1515 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 34)); return L_0; } } // System.Int32 System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::get_Count() extern "C" int32_t Dictionary_2_get_Count_m9060_gshared (Dictionary_2_t1515 * __this, const MethodInfo* method) { { int32_t L_0 = (int32_t)(__this->___count_10); return L_0; } } // TValue System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::get_Item(TKey) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern TypeInfo* KeyNotFoundException_t872_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern "C" int32_t Dictionary_2_get_Item_m9062_gshared (Dictionary_2_t1515 * __this, Object_t * ___key, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); KeyNotFoundException_t872_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(2139); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; int32_t V_1 = 0; { Object_t * L_0 = ___key; if (L_0) { goto IL_0016; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0016: { Object_t* L_2 = (Object_t*)(__this->___hcp_12); Object_t * L_3 = ___key; NullCheck((Object_t*)L_2); int32_t L_4 = (int32_t)InterfaceFuncInvoker1< int32_t, Object_t * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_2, (Object_t *)L_3); V_0 = (int32_t)((int32_t)((int32_t)L_4|(int32_t)((int32_t)-2147483648))); Int32U5BU5D_t501* L_5 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_6 = V_0; Int32U5BU5D_t501* L_7 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_7); NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, ((int32_t)((int32_t)((int32_t)((int32_t)L_6&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_7)->max_length)))))); int32_t L_8 = ((int32_t)((int32_t)((int32_t)((int32_t)L_6&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_7)->max_length))))); V_1 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_5, L_8))-(int32_t)1)); goto IL_009b; } IL_0048: { LinkU5BU5D_t1466* L_9 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_10 = V_1; NullCheck(L_9); IL2CPP_ARRAY_BOUNDS_CHECK(L_9, L_10); int32_t L_11 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_9, L_10))->___HashCode_0); int32_t L_12 = V_0; if ((!(((uint32_t)L_11) == ((uint32_t)L_12)))) { goto IL_0089; } } { Object_t* L_13 = (Object_t*)(__this->___hcp_12); ObjectU5BU5D_t207* L_14 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); int32_t L_15 = V_1; NullCheck(L_14); IL2CPP_ARRAY_BOUNDS_CHECK(L_14, L_15); int32_t L_16 = L_15; Object_t * L_17 = ___key; NullCheck((Object_t*)L_13); bool L_18 = (bool)InterfaceFuncInvoker2< bool, Object_t *, Object_t * >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Object>::Equals(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_13, (Object_t *)(*(Object_t **)(Object_t **)SZArrayLdElema(L_14, L_16)), (Object_t *)L_17); if (!L_18) { goto IL_0089; } } { Int32U5BU5D_t501* L_19 = (Int32U5BU5D_t501*)(__this->___valueSlots_7); int32_t L_20 = V_1; NullCheck(L_19); IL2CPP_ARRAY_BOUNDS_CHECK(L_19, L_20); int32_t L_21 = L_20; return (*(int32_t*)(int32_t*)SZArrayLdElema(L_19, L_21)); } IL_0089: { LinkU5BU5D_t1466* L_22 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_23 = V_1; NullCheck(L_22); IL2CPP_ARRAY_BOUNDS_CHECK(L_22, L_23); int32_t L_24 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_22, L_23))->___Next_1); V_1 = (int32_t)L_24; } IL_009b: { int32_t L_25 = V_1; if ((!(((uint32_t)L_25) == ((uint32_t)(-1))))) { goto IL_0048; } } { KeyNotFoundException_t872 * L_26 = (KeyNotFoundException_t872 *)il2cpp_codegen_object_new (KeyNotFoundException_t872_il2cpp_TypeInfo_var); KeyNotFoundException__ctor_m4734(L_26, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_26); } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::set_Item(TKey,TValue) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern "C" void Dictionary_2_set_Item_m9064_gshared (Dictionary_2_t1515 * __this, Object_t * ___key, int32_t ___value, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); 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; { Object_t * L_0 = ___key; if (L_0) { goto IL_0016; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0016: { Object_t* L_2 = (Object_t*)(__this->___hcp_12); Object_t * L_3 = ___key; NullCheck((Object_t*)L_2); int32_t L_4 = (int32_t)InterfaceFuncInvoker1< int32_t, Object_t * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_2, (Object_t *)L_3); V_0 = (int32_t)((int32_t)((int32_t)L_4|(int32_t)((int32_t)-2147483648))); int32_t L_5 = V_0; Int32U5BU5D_t501* L_6 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_6); V_1 = (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_6)->max_length))))); Int32U5BU5D_t501* L_7 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_8 = V_1; NullCheck(L_7); IL2CPP_ARRAY_BOUNDS_CHECK(L_7, L_8); int32_t L_9 = L_8; V_2 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_7, L_9))-(int32_t)1)); V_3 = (int32_t)(-1); int32_t L_10 = V_2; if ((((int32_t)L_10) == ((int32_t)(-1)))) { goto IL_00a2; } } IL_004e: { LinkU5BU5D_t1466* L_11 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_12 = V_2; NullCheck(L_11); IL2CPP_ARRAY_BOUNDS_CHECK(L_11, L_12); int32_t L_13 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_11, L_12))->___HashCode_0); int32_t L_14 = V_0; if ((!(((uint32_t)L_13) == ((uint32_t)L_14)))) { goto IL_0087; } } { Object_t* L_15 = (Object_t*)(__this->___hcp_12); ObjectU5BU5D_t207* L_16 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); int32_t L_17 = V_2; NullCheck(L_16); IL2CPP_ARRAY_BOUNDS_CHECK(L_16, L_17); int32_t L_18 = L_17; Object_t * L_19 = ___key; NullCheck((Object_t*)L_15); bool L_20 = (bool)InterfaceFuncInvoker2< bool, Object_t *, Object_t * >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Object>::Equals(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_15, (Object_t *)(*(Object_t **)(Object_t **)SZArrayLdElema(L_16, L_18)), (Object_t *)L_19); if (!L_20) { goto IL_0087; } } { goto IL_00a2; } IL_0087: { int32_t L_21 = V_2; V_3 = (int32_t)L_21; LinkU5BU5D_t1466* L_22 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_23 = V_2; NullCheck(L_22); IL2CPP_ARRAY_BOUNDS_CHECK(L_22, L_23); int32_t L_24 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_22, L_23))->___Next_1); V_2 = (int32_t)L_24; int32_t L_25 = V_2; if ((!(((uint32_t)L_25) == ((uint32_t)(-1))))) { goto IL_004e; } } IL_00a2: { int32_t L_26 = V_2; if ((!(((uint32_t)L_26) == ((uint32_t)(-1))))) { goto IL_0166; } } { int32_t L_27 = (int32_t)(__this->___count_10); int32_t L_28 = (int32_t)((int32_t)((int32_t)L_27+(int32_t)1)); V_4 = (int32_t)L_28; __this->___count_10 = L_28; int32_t L_29 = V_4; int32_t L_30 = (int32_t)(__this->___threshold_11); if ((((int32_t)L_29) <= ((int32_t)L_30))) { goto IL_00de; } } { NullCheck((Dictionary_2_t1515 *)__this); (( void (*) (Dictionary_2_t1515 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 36)->method)((Dictionary_2_t1515 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 36)); int32_t L_31 = V_0; Int32U5BU5D_t501* L_32 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_32); V_1 = (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_31&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_32)->max_length))))); } IL_00de: { int32_t L_33 = (int32_t)(__this->___emptySlot_9); V_2 = (int32_t)L_33; int32_t L_34 = V_2; if ((!(((uint32_t)L_34) == ((uint32_t)(-1))))) { goto IL_0105; } } { int32_t L_35 = (int32_t)(__this->___touchedSlots_8); int32_t L_36 = (int32_t)L_35; V_4 = (int32_t)L_36; __this->___touchedSlots_8 = ((int32_t)((int32_t)L_36+(int32_t)1)); int32_t L_37 = V_4; V_2 = (int32_t)L_37; goto IL_011c; } IL_0105: { LinkU5BU5D_t1466* L_38 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_39 = V_2; NullCheck(L_38); IL2CPP_ARRAY_BOUNDS_CHECK(L_38, L_39); int32_t L_40 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_38, L_39))->___Next_1); __this->___emptySlot_9 = L_40; } IL_011c: { LinkU5BU5D_t1466* L_41 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_42 = V_2; NullCheck(L_41); IL2CPP_ARRAY_BOUNDS_CHECK(L_41, L_42); Int32U5BU5D_t501* L_43 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_44 = V_1; NullCheck(L_43); IL2CPP_ARRAY_BOUNDS_CHECK(L_43, L_44); int32_t L_45 = L_44; ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_41, L_42))->___Next_1 = ((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_43, L_45))-(int32_t)1)); Int32U5BU5D_t501* L_46 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_47 = V_1; int32_t L_48 = V_2; NullCheck(L_46); IL2CPP_ARRAY_BOUNDS_CHECK(L_46, L_47); *((int32_t*)(int32_t*)SZArrayLdElema(L_46, L_47)) = (int32_t)((int32_t)((int32_t)L_48+(int32_t)1)); LinkU5BU5D_t1466* L_49 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_50 = V_2; NullCheck(L_49); IL2CPP_ARRAY_BOUNDS_CHECK(L_49, L_50); int32_t L_51 = V_0; ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_49, L_50))->___HashCode_0 = L_51; ObjectU5BU5D_t207* L_52 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); int32_t L_53 = V_2; Object_t * L_54 = ___key; NullCheck(L_52); IL2CPP_ARRAY_BOUNDS_CHECK(L_52, L_53); *((Object_t **)(Object_t **)SZArrayLdElema(L_52, L_53)) = (Object_t *)L_54; goto IL_01b5; } IL_0166: { int32_t L_55 = V_3; if ((((int32_t)L_55) == ((int32_t)(-1)))) { goto IL_01b5; } } { LinkU5BU5D_t1466* L_56 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_57 = V_3; NullCheck(L_56); IL2CPP_ARRAY_BOUNDS_CHECK(L_56, L_57); LinkU5BU5D_t1466* L_58 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_59 = V_2; NullCheck(L_58); IL2CPP_ARRAY_BOUNDS_CHECK(L_58, L_59); int32_t L_60 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_58, L_59))->___Next_1); ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_56, L_57))->___Next_1 = L_60; LinkU5BU5D_t1466* L_61 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_62 = V_2; NullCheck(L_61); IL2CPP_ARRAY_BOUNDS_CHECK(L_61, L_62); Int32U5BU5D_t501* L_63 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_64 = V_1; NullCheck(L_63); IL2CPP_ARRAY_BOUNDS_CHECK(L_63, L_64); int32_t L_65 = L_64; ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_61, L_62))->___Next_1 = ((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_63, L_65))-(int32_t)1)); Int32U5BU5D_t501* L_66 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_67 = V_1; int32_t L_68 = V_2; NullCheck(L_66); IL2CPP_ARRAY_BOUNDS_CHECK(L_66, L_67); *((int32_t*)(int32_t*)SZArrayLdElema(L_66, L_67)) = (int32_t)((int32_t)((int32_t)L_68+(int32_t)1)); } IL_01b5: { Int32U5BU5D_t501* L_69 = (Int32U5BU5D_t501*)(__this->___valueSlots_7); int32_t L_70 = V_2; int32_t L_71 = ___value; NullCheck(L_69); IL2CPP_ARRAY_BOUNDS_CHECK(L_69, L_70); *((int32_t*)(int32_t*)SZArrayLdElema(L_69, L_70)) = (int32_t)L_71; int32_t L_72 = (int32_t)(__this->___generation_14); __this->___generation_14 = ((int32_t)((int32_t)L_72+(int32_t)1)); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Init(System.Int32,System.Collections.Generic.IEqualityComparer`1<TKey>) extern TypeInfo* ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral1221; extern "C" void Dictionary_2_Init_m9066_gshared (Dictionary_2_t1515 * __this, int32_t ___capacity, Object_t* ___hcp, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(147); _stringLiteral1221 = il2cpp_codegen_string_literal_from_index(1221); s_Il2CppMethodIntialized = true; } Object_t* V_0 = {0}; Dictionary_2_t1515 * G_B4_0 = {0}; Dictionary_2_t1515 * G_B3_0 = {0}; Object_t* G_B5_0 = {0}; Dictionary_2_t1515 * G_B5_1 = {0}; { int32_t L_0 = ___capacity; if ((((int32_t)L_0) >= ((int32_t)0))) { goto IL_0012; } } { ArgumentOutOfRangeException_t350 * L_1 = (ArgumentOutOfRangeException_t350 *)il2cpp_codegen_object_new (ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var); ArgumentOutOfRangeException__ctor_m2260(L_1, (String_t*)_stringLiteral1221, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0012: { Object_t* L_2 = ___hcp; G_B3_0 = ((Dictionary_2_t1515 *)(__this)); if (!L_2) { G_B4_0 = ((Dictionary_2_t1515 *)(__this)); goto IL_0021; } } { Object_t* L_3 = ___hcp; V_0 = (Object_t*)L_3; Object_t* L_4 = V_0; G_B5_0 = L_4; G_B5_1 = ((Dictionary_2_t1515 *)(G_B3_0)); goto IL_0026; } IL_0021: { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 38)); EqualityComparer_1_t1458 * L_5 = (( EqualityComparer_1_t1458 * (*) (Object_t * /* static, unused */, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 37)->method)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 37)); G_B5_0 = ((Object_t*)(L_5)); G_B5_1 = ((Dictionary_2_t1515 *)(G_B4_0)); } IL_0026: { NullCheck(G_B5_1); G_B5_1->___hcp_12 = G_B5_0; int32_t L_6 = ___capacity; if (L_6) { goto IL_0035; } } { ___capacity = (int32_t)((int32_t)10); } IL_0035: { int32_t L_7 = ___capacity; ___capacity = (int32_t)((int32_t)((int32_t)(((int32_t)((float)((float)(((float)L_7))/(float)(0.9f)))))+(int32_t)1)); int32_t L_8 = ___capacity; NullCheck((Dictionary_2_t1515 *)__this); (( void (*) (Dictionary_2_t1515 *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 39)->method)((Dictionary_2_t1515 *)__this, (int32_t)L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 39)); __this->___generation_14 = 0; return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::InitArrays(System.Int32) extern TypeInfo* Int32U5BU5D_t501_il2cpp_TypeInfo_var; extern TypeInfo* LinkU5BU5D_t1466_il2cpp_TypeInfo_var; extern "C" void Dictionary_2_InitArrays_m9068_gshared (Dictionary_2_t1515 * __this, int32_t ___size, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { Int32U5BU5D_t501_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(348); LinkU5BU5D_t1466_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(2140); s_Il2CppMethodIntialized = true; } { int32_t L_0 = ___size; __this->___table_4 = ((Int32U5BU5D_t501*)SZArrayNew(Int32U5BU5D_t501_il2cpp_TypeInfo_var, L_0)); int32_t L_1 = ___size; __this->___linkSlots_5 = ((LinkU5BU5D_t1466*)SZArrayNew(LinkU5BU5D_t1466_il2cpp_TypeInfo_var, L_1)); __this->___emptySlot_9 = (-1); int32_t L_2 = ___size; __this->___keySlots_6 = ((ObjectU5BU5D_t207*)SZArrayNew(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 40), L_2)); int32_t L_3 = ___size; __this->___valueSlots_7 = ((Int32U5BU5D_t501*)SZArrayNew(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 41), L_3)); __this->___touchedSlots_8 = 0; Int32U5BU5D_t501* L_4 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_4); __this->___threshold_11 = (((int32_t)((float)((float)(((float)(((int32_t)(((Array_t *)L_4)->max_length)))))*(float)(0.9f))))); int32_t L_5 = (int32_t)(__this->___threshold_11); if (L_5) { goto IL_0074; } } { Int32U5BU5D_t501* L_6 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_6); if ((((int32_t)(((int32_t)(((Array_t *)L_6)->max_length)))) <= ((int32_t)0))) { goto IL_0074; } } { __this->___threshold_11 = 1; } IL_0074: { return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::CopyToCheck(System.Array,System.Int32) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern TypeInfo* ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var; extern TypeInfo* ArgumentException_t320_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral173; extern Il2CppCodeGenString* _stringLiteral264; extern Il2CppCodeGenString* _stringLiteral2675; extern Il2CppCodeGenString* _stringLiteral2676; extern "C" void Dictionary_2_CopyToCheck_m9070_gshared (Dictionary_2_t1515 * __this, Array_t * ___array, int32_t ___index, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(147); ArgumentException_t320_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(3); _stringLiteral173 = il2cpp_codegen_string_literal_from_index(173); _stringLiteral264 = il2cpp_codegen_string_literal_from_index(264); _stringLiteral2675 = il2cpp_codegen_string_literal_from_index(2675); _stringLiteral2676 = il2cpp_codegen_string_literal_from_index(2676); s_Il2CppMethodIntialized = true; } { Array_t * L_0 = ___array; if (L_0) { goto IL_0011; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral173, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0011: { int32_t L_2 = ___index; if ((((int32_t)L_2) >= ((int32_t)0))) { goto IL_0023; } } { ArgumentOutOfRangeException_t350 * L_3 = (ArgumentOutOfRangeException_t350 *)il2cpp_codegen_object_new (ArgumentOutOfRangeException_t350_il2cpp_TypeInfo_var); ArgumentOutOfRangeException__ctor_m2260(L_3, (String_t*)_stringLiteral264, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_3); } IL_0023: { int32_t L_4 = ___index; Array_t * L_5 = ___array; NullCheck((Array_t *)L_5); int32_t L_6 = Array_get_Length_m2256((Array_t *)L_5, /*hidden argument*/NULL); if ((((int32_t)L_4) <= ((int32_t)L_6))) { goto IL_003a; } } { ArgumentException_t320 * L_7 = (ArgumentException_t320 *)il2cpp_codegen_object_new (ArgumentException_t320_il2cpp_TypeInfo_var); ArgumentException__ctor_m1183(L_7, (String_t*)_stringLiteral2675, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_7); } IL_003a: { Array_t * L_8 = ___array; NullCheck((Array_t *)L_8); int32_t L_9 = Array_get_Length_m2256((Array_t *)L_8, /*hidden argument*/NULL); int32_t L_10 = ___index; NullCheck((Dictionary_2_t1515 *)__this); int32_t L_11 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(9 /* System.Int32 System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::get_Count() */, (Dictionary_2_t1515 *)__this); if ((((int32_t)((int32_t)((int32_t)L_9-(int32_t)L_10))) >= ((int32_t)L_11))) { goto IL_0058; } } { ArgumentException_t320 * L_12 = (ArgumentException_t320 *)il2cpp_codegen_object_new (ArgumentException_t320_il2cpp_TypeInfo_var); ArgumentException__ctor_m1183(L_12, (String_t*)_stringLiteral2676, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_12); } IL_0058: { return; } } // System.Collections.Generic.KeyValuePair`2<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::make_pair(TKey,TValue) extern "C" KeyValuePair_2_t1516 Dictionary_2_make_pair_m9072_gshared (Object_t * __this /* static, unused */, Object_t * ___key, int32_t ___value, const MethodInfo* method) { { Object_t * L_0 = ___key; int32_t L_1 = ___value; KeyValuePair_2_t1516 L_2 = {0}; (( void (*) (KeyValuePair_2_t1516 *, Object_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 44)->method)(&L_2, (Object_t *)L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 44)); return L_2; } } // TKey System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::pick_key(TKey,TValue) extern "C" Object_t * Dictionary_2_pick_key_m9074_gshared (Object_t * __this /* static, unused */, Object_t * ___key, int32_t ___value, const MethodInfo* method) { { Object_t * L_0 = ___key; return L_0; } } // TValue System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::pick_value(TKey,TValue) extern "C" int32_t Dictionary_2_pick_value_m9076_gshared (Object_t * __this /* static, unused */, Object_t * ___key, int32_t ___value, const MethodInfo* method) { { int32_t L_0 = ___value; return L_0; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[],System.Int32) extern "C" void Dictionary_2_CopyTo_m9078_gshared (Dictionary_2_t1515 * __this, KeyValuePair_2U5BU5D_t1841* ___array, int32_t ___index, const MethodInfo* method) { { KeyValuePair_2U5BU5D_t1841* L_0 = ___array; int32_t L_1 = ___index; NullCheck((Dictionary_2_t1515 *)__this); (( void (*) (Dictionary_2_t1515 *, Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 21)->method)((Dictionary_2_t1515 *)__this, (Array_t *)(Array_t *)L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 21)); KeyValuePair_2U5BU5D_t1841* L_2 = ___array; int32_t L_3 = ___index; IntPtr_t L_4 = { (void*)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 27) }; Transform_1_t1525 * L_5 = (Transform_1_t1525 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 28)); (( void (*) (Transform_1_t1525 *, Object_t *, IntPtr_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 29)->method)(L_5, (Object_t *)NULL, (IntPtr_t)L_4, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 29)); NullCheck((Dictionary_2_t1515 *)__this); (( void (*) (Dictionary_2_t1515 *, KeyValuePair_2U5BU5D_t1841*, int32_t, Transform_1_t1525 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 45)->method)((Dictionary_2_t1515 *)__this, (KeyValuePair_2U5BU5D_t1841*)L_2, (int32_t)L_3, (Transform_1_t1525 *)L_5, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 45)); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Resize() extern TypeInfo* Hashtable_t392_il2cpp_TypeInfo_var; extern TypeInfo* Int32U5BU5D_t501_il2cpp_TypeInfo_var; extern TypeInfo* LinkU5BU5D_t1466_il2cpp_TypeInfo_var; extern "C" void Dictionary_2_Resize_m9080_gshared (Dictionary_2_t1515 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { Hashtable_t392_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(233); Int32U5BU5D_t501_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(348); LinkU5BU5D_t1466_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(2140); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; Int32U5BU5D_t501* V_1 = {0}; LinkU5BU5D_t1466* V_2 = {0}; int32_t V_3 = 0; int32_t V_4 = 0; int32_t V_5 = 0; int32_t V_6 = 0; ObjectU5BU5D_t207* V_7 = {0}; Int32U5BU5D_t501* V_8 = {0}; int32_t V_9 = 0; { Int32U5BU5D_t501* L_0 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_0); IL2CPP_RUNTIME_CLASS_INIT(Hashtable_t392_il2cpp_TypeInfo_var); int32_t L_1 = Hashtable_ToPrime_m4957(NULL /*static, unused*/, (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)(((int32_t)(((Array_t *)L_0)->max_length)))<<(int32_t)1))|(int32_t)1)), /*hidden argument*/NULL); V_0 = (int32_t)L_1; int32_t L_2 = V_0; V_1 = (Int32U5BU5D_t501*)((Int32U5BU5D_t501*)SZArrayNew(Int32U5BU5D_t501_il2cpp_TypeInfo_var, L_2)); int32_t L_3 = V_0; V_2 = (LinkU5BU5D_t1466*)((LinkU5BU5D_t1466*)SZArrayNew(LinkU5BU5D_t1466_il2cpp_TypeInfo_var, L_3)); V_3 = (int32_t)0; goto IL_00b1; } IL_0027: { Int32U5BU5D_t501* L_4 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_5 = V_3; NullCheck(L_4); IL2CPP_ARRAY_BOUNDS_CHECK(L_4, L_5); int32_t L_6 = L_5; V_4 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_4, L_6))-(int32_t)1)); goto IL_00a5; } IL_0038: { LinkU5BU5D_t1466* L_7 = V_2; int32_t L_8 = V_4; NullCheck(L_7); IL2CPP_ARRAY_BOUNDS_CHECK(L_7, L_8); Object_t* L_9 = (Object_t*)(__this->___hcp_12); ObjectU5BU5D_t207* L_10 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); int32_t L_11 = V_4; NullCheck(L_10); IL2CPP_ARRAY_BOUNDS_CHECK(L_10, L_11); int32_t L_12 = L_11; NullCheck((Object_t*)L_9); int32_t L_13 = (int32_t)InterfaceFuncInvoker1< int32_t, Object_t * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_9, (Object_t *)(*(Object_t **)(Object_t **)SZArrayLdElema(L_10, L_12))); int32_t L_14 = (int32_t)((int32_t)((int32_t)L_13|(int32_t)((int32_t)-2147483648))); V_9 = (int32_t)L_14; ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_7, L_8))->___HashCode_0 = L_14; int32_t L_15 = V_9; V_5 = (int32_t)L_15; int32_t L_16 = V_5; int32_t L_17 = V_0; V_6 = (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_16&(int32_t)((int32_t)2147483647)))%(int32_t)L_17)); LinkU5BU5D_t1466* L_18 = V_2; int32_t L_19 = V_4; NullCheck(L_18); IL2CPP_ARRAY_BOUNDS_CHECK(L_18, L_19); Int32U5BU5D_t501* L_20 = V_1; int32_t L_21 = V_6; NullCheck(L_20); IL2CPP_ARRAY_BOUNDS_CHECK(L_20, L_21); int32_t L_22 = L_21; ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_18, L_19))->___Next_1 = ((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_20, L_22))-(int32_t)1)); Int32U5BU5D_t501* L_23 = V_1; int32_t L_24 = V_6; int32_t L_25 = V_4; NullCheck(L_23); IL2CPP_ARRAY_BOUNDS_CHECK(L_23, L_24); *((int32_t*)(int32_t*)SZArrayLdElema(L_23, L_24)) = (int32_t)((int32_t)((int32_t)L_25+(int32_t)1)); LinkU5BU5D_t1466* L_26 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_27 = V_4; NullCheck(L_26); IL2CPP_ARRAY_BOUNDS_CHECK(L_26, L_27); int32_t L_28 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_26, L_27))->___Next_1); V_4 = (int32_t)L_28; } IL_00a5: { int32_t L_29 = V_4; if ((!(((uint32_t)L_29) == ((uint32_t)(-1))))) { goto IL_0038; } } { int32_t L_30 = V_3; V_3 = (int32_t)((int32_t)((int32_t)L_30+(int32_t)1)); } IL_00b1: { int32_t L_31 = V_3; Int32U5BU5D_t501* L_32 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_32); if ((((int32_t)L_31) < ((int32_t)(((int32_t)(((Array_t *)L_32)->max_length)))))) { goto IL_0027; } } { Int32U5BU5D_t501* L_33 = V_1; __this->___table_4 = L_33; LinkU5BU5D_t1466* L_34 = V_2; __this->___linkSlots_5 = L_34; int32_t L_35 = V_0; V_7 = (ObjectU5BU5D_t207*)((ObjectU5BU5D_t207*)SZArrayNew(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 40), L_35)); int32_t L_36 = V_0; V_8 = (Int32U5BU5D_t501*)((Int32U5BU5D_t501*)SZArrayNew(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 41), L_36)); ObjectU5BU5D_t207* L_37 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); ObjectU5BU5D_t207* L_38 = V_7; int32_t L_39 = (int32_t)(__this->___touchedSlots_8); Array_Copy_m4087(NULL /*static, unused*/, (Array_t *)(Array_t *)L_37, (int32_t)0, (Array_t *)(Array_t *)L_38, (int32_t)0, (int32_t)L_39, /*hidden argument*/NULL); Int32U5BU5D_t501* L_40 = (Int32U5BU5D_t501*)(__this->___valueSlots_7); Int32U5BU5D_t501* L_41 = V_8; int32_t L_42 = (int32_t)(__this->___touchedSlots_8); Array_Copy_m4087(NULL /*static, unused*/, (Array_t *)(Array_t *)L_40, (int32_t)0, (Array_t *)(Array_t *)L_41, (int32_t)0, (int32_t)L_42, /*hidden argument*/NULL); ObjectU5BU5D_t207* L_43 = V_7; __this->___keySlots_6 = L_43; Int32U5BU5D_t501* L_44 = V_8; __this->___valueSlots_7 = L_44; int32_t L_45 = V_0; __this->___threshold_11 = (((int32_t)((float)((float)(((float)L_45))*(float)(0.9f))))); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Add(TKey,TValue) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern TypeInfo* ArgumentException_t320_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern Il2CppCodeGenString* _stringLiteral2677; extern "C" void Dictionary_2_Add_m9082_gshared (Dictionary_2_t1515 * __this, Object_t * ___key, int32_t ___value, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); ArgumentException_t320_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(3); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); _stringLiteral2677 = il2cpp_codegen_string_literal_from_index(2677); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; { Object_t * L_0 = ___key; if (L_0) { goto IL_0016; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0016: { Object_t* L_2 = (Object_t*)(__this->___hcp_12); Object_t * L_3 = ___key; NullCheck((Object_t*)L_2); int32_t L_4 = (int32_t)InterfaceFuncInvoker1< int32_t, Object_t * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_2, (Object_t *)L_3); V_0 = (int32_t)((int32_t)((int32_t)L_4|(int32_t)((int32_t)-2147483648))); int32_t L_5 = V_0; Int32U5BU5D_t501* L_6 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_6); V_1 = (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_6)->max_length))))); Int32U5BU5D_t501* L_7 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_8 = V_1; NullCheck(L_7); IL2CPP_ARRAY_BOUNDS_CHECK(L_7, L_8); int32_t L_9 = L_8; V_2 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_7, L_9))-(int32_t)1)); goto IL_009b; } IL_004a: { LinkU5BU5D_t1466* L_10 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_11 = V_2; NullCheck(L_10); IL2CPP_ARRAY_BOUNDS_CHECK(L_10, L_11); int32_t L_12 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_10, L_11))->___HashCode_0); int32_t L_13 = V_0; if ((!(((uint32_t)L_12) == ((uint32_t)L_13)))) { goto IL_0089; } } { Object_t* L_14 = (Object_t*)(__this->___hcp_12); ObjectU5BU5D_t207* L_15 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); int32_t L_16 = V_2; NullCheck(L_15); IL2CPP_ARRAY_BOUNDS_CHECK(L_15, L_16); int32_t L_17 = L_16; Object_t * L_18 = ___key; NullCheck((Object_t*)L_14); bool L_19 = (bool)InterfaceFuncInvoker2< bool, Object_t *, Object_t * >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Object>::Equals(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_14, (Object_t *)(*(Object_t **)(Object_t **)SZArrayLdElema(L_15, L_17)), (Object_t *)L_18); if (!L_19) { goto IL_0089; } } { ArgumentException_t320 * L_20 = (ArgumentException_t320 *)il2cpp_codegen_object_new (ArgumentException_t320_il2cpp_TypeInfo_var); ArgumentException__ctor_m1183(L_20, (String_t*)_stringLiteral2677, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_20); } IL_0089: { LinkU5BU5D_t1466* L_21 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_22 = V_2; NullCheck(L_21); IL2CPP_ARRAY_BOUNDS_CHECK(L_21, L_22); int32_t L_23 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_21, L_22))->___Next_1); V_2 = (int32_t)L_23; } IL_009b: { int32_t L_24 = V_2; if ((!(((uint32_t)L_24) == ((uint32_t)(-1))))) { goto IL_004a; } } { int32_t L_25 = (int32_t)(__this->___count_10); int32_t L_26 = (int32_t)((int32_t)((int32_t)L_25+(int32_t)1)); V_3 = (int32_t)L_26; __this->___count_10 = L_26; int32_t L_27 = V_3; int32_t L_28 = (int32_t)(__this->___threshold_11); if ((((int32_t)L_27) <= ((int32_t)L_28))) { goto IL_00d5; } } { NullCheck((Dictionary_2_t1515 *)__this); (( void (*) (Dictionary_2_t1515 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 36)->method)((Dictionary_2_t1515 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 36)); int32_t L_29 = V_0; Int32U5BU5D_t501* L_30 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_30); V_1 = (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_29&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_30)->max_length))))); } IL_00d5: { int32_t L_31 = (int32_t)(__this->___emptySlot_9); V_2 = (int32_t)L_31; int32_t L_32 = V_2; if ((!(((uint32_t)L_32) == ((uint32_t)(-1))))) { goto IL_00fa; } } { int32_t L_33 = (int32_t)(__this->___touchedSlots_8); int32_t L_34 = (int32_t)L_33; V_3 = (int32_t)L_34; __this->___touchedSlots_8 = ((int32_t)((int32_t)L_34+(int32_t)1)); int32_t L_35 = V_3; V_2 = (int32_t)L_35; goto IL_0111; } IL_00fa: { LinkU5BU5D_t1466* L_36 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_37 = V_2; NullCheck(L_36); IL2CPP_ARRAY_BOUNDS_CHECK(L_36, L_37); int32_t L_38 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_36, L_37))->___Next_1); __this->___emptySlot_9 = L_38; } IL_0111: { LinkU5BU5D_t1466* L_39 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_40 = V_2; NullCheck(L_39); IL2CPP_ARRAY_BOUNDS_CHECK(L_39, L_40); int32_t L_41 = V_0; ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_39, L_40))->___HashCode_0 = L_41; LinkU5BU5D_t1466* L_42 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_43 = V_2; NullCheck(L_42); IL2CPP_ARRAY_BOUNDS_CHECK(L_42, L_43); Int32U5BU5D_t501* L_44 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_45 = V_1; NullCheck(L_44); IL2CPP_ARRAY_BOUNDS_CHECK(L_44, L_45); int32_t L_46 = L_45; ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_42, L_43))->___Next_1 = ((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_44, L_46))-(int32_t)1)); Int32U5BU5D_t501* L_47 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_48 = V_1; int32_t L_49 = V_2; NullCheck(L_47); IL2CPP_ARRAY_BOUNDS_CHECK(L_47, L_48); *((int32_t*)(int32_t*)SZArrayLdElema(L_47, L_48)) = (int32_t)((int32_t)((int32_t)L_49+(int32_t)1)); ObjectU5BU5D_t207* L_50 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); int32_t L_51 = V_2; Object_t * L_52 = ___key; NullCheck(L_50); IL2CPP_ARRAY_BOUNDS_CHECK(L_50, L_51); *((Object_t **)(Object_t **)SZArrayLdElema(L_50, L_51)) = (Object_t *)L_52; Int32U5BU5D_t501* L_53 = (Int32U5BU5D_t501*)(__this->___valueSlots_7); int32_t L_54 = V_2; int32_t L_55 = ___value; NullCheck(L_53); IL2CPP_ARRAY_BOUNDS_CHECK(L_53, L_54); *((int32_t*)(int32_t*)SZArrayLdElema(L_53, L_54)) = (int32_t)L_55; int32_t L_56 = (int32_t)(__this->___generation_14); __this->___generation_14 = ((int32_t)((int32_t)L_56+(int32_t)1)); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Clear() extern "C" void Dictionary_2_Clear_m9084_gshared (Dictionary_2_t1515 * __this, const MethodInfo* method) { { __this->___count_10 = 0; Int32U5BU5D_t501* L_0 = (Int32U5BU5D_t501*)(__this->___table_4); Int32U5BU5D_t501* L_1 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_1); Array_Clear_m2479(NULL /*static, unused*/, (Array_t *)(Array_t *)L_0, (int32_t)0, (int32_t)(((int32_t)(((Array_t *)L_1)->max_length))), /*hidden argument*/NULL); ObjectU5BU5D_t207* L_2 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); ObjectU5BU5D_t207* L_3 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); NullCheck(L_3); Array_Clear_m2479(NULL /*static, unused*/, (Array_t *)(Array_t *)L_2, (int32_t)0, (int32_t)(((int32_t)(((Array_t *)L_3)->max_length))), /*hidden argument*/NULL); Int32U5BU5D_t501* L_4 = (Int32U5BU5D_t501*)(__this->___valueSlots_7); Int32U5BU5D_t501* L_5 = (Int32U5BU5D_t501*)(__this->___valueSlots_7); NullCheck(L_5); Array_Clear_m2479(NULL /*static, unused*/, (Array_t *)(Array_t *)L_4, (int32_t)0, (int32_t)(((int32_t)(((Array_t *)L_5)->max_length))), /*hidden argument*/NULL); LinkU5BU5D_t1466* L_6 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); LinkU5BU5D_t1466* L_7 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); NullCheck(L_7); Array_Clear_m2479(NULL /*static, unused*/, (Array_t *)(Array_t *)L_6, (int32_t)0, (int32_t)(((int32_t)(((Array_t *)L_7)->max_length))), /*hidden argument*/NULL); __this->___emptySlot_9 = (-1); __this->___touchedSlots_8 = 0; int32_t L_8 = (int32_t)(__this->___generation_14); __this->___generation_14 = ((int32_t)((int32_t)L_8+(int32_t)1)); return; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::ContainsKey(TKey) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern "C" bool Dictionary_2_ContainsKey_m9086_gshared (Dictionary_2_t1515 * __this, Object_t * ___key, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; int32_t V_1 = 0; { Object_t * L_0 = ___key; if (L_0) { goto IL_0016; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0016: { Object_t* L_2 = (Object_t*)(__this->___hcp_12); Object_t * L_3 = ___key; NullCheck((Object_t*)L_2); int32_t L_4 = (int32_t)InterfaceFuncInvoker1< int32_t, Object_t * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_2, (Object_t *)L_3); V_0 = (int32_t)((int32_t)((int32_t)L_4|(int32_t)((int32_t)-2147483648))); Int32U5BU5D_t501* L_5 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_6 = V_0; Int32U5BU5D_t501* L_7 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_7); NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, ((int32_t)((int32_t)((int32_t)((int32_t)L_6&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_7)->max_length)))))); int32_t L_8 = ((int32_t)((int32_t)((int32_t)((int32_t)L_6&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_7)->max_length))))); V_1 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_5, L_8))-(int32_t)1)); goto IL_0090; } IL_0048: { LinkU5BU5D_t1466* L_9 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_10 = V_1; NullCheck(L_9); IL2CPP_ARRAY_BOUNDS_CHECK(L_9, L_10); int32_t L_11 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_9, L_10))->___HashCode_0); int32_t L_12 = V_0; if ((!(((uint32_t)L_11) == ((uint32_t)L_12)))) { goto IL_007e; } } { Object_t* L_13 = (Object_t*)(__this->___hcp_12); ObjectU5BU5D_t207* L_14 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); int32_t L_15 = V_1; NullCheck(L_14); IL2CPP_ARRAY_BOUNDS_CHECK(L_14, L_15); int32_t L_16 = L_15; Object_t * L_17 = ___key; NullCheck((Object_t*)L_13); bool L_18 = (bool)InterfaceFuncInvoker2< bool, Object_t *, Object_t * >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Object>::Equals(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_13, (Object_t *)(*(Object_t **)(Object_t **)SZArrayLdElema(L_14, L_16)), (Object_t *)L_17); if (!L_18) { goto IL_007e; } } { return 1; } IL_007e: { LinkU5BU5D_t1466* L_19 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_20 = V_1; NullCheck(L_19); IL2CPP_ARRAY_BOUNDS_CHECK(L_19, L_20); int32_t L_21 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_19, L_20))->___Next_1); V_1 = (int32_t)L_21; } IL_0090: { int32_t L_22 = V_1; if ((!(((uint32_t)L_22) == ((uint32_t)(-1))))) { goto IL_0048; } } { return 0; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::ContainsValue(TValue) extern "C" bool Dictionary_2_ContainsValue_m9088_gshared (Dictionary_2_t1515 * __this, int32_t ___value, const MethodInfo* method) { Object_t* V_0 = {0}; int32_t V_1 = 0; int32_t V_2 = 0; { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 47)); EqualityComparer_1_t1486 * L_0 = (( EqualityComparer_1_t1486 * (*) (Object_t * /* static, unused */, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 46)->method)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 46)); V_0 = (Object_t*)L_0; V_1 = (int32_t)0; goto IL_0054; } IL_000d: { Int32U5BU5D_t501* L_1 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_2 = V_1; NullCheck(L_1); IL2CPP_ARRAY_BOUNDS_CHECK(L_1, L_2); int32_t L_3 = L_2; V_2 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_1, L_3))-(int32_t)1)); goto IL_0049; } IL_001d: { Object_t* L_4 = V_0; Int32U5BU5D_t501* L_5 = (Int32U5BU5D_t501*)(__this->___valueSlots_7); int32_t L_6 = V_2; NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, L_6); int32_t L_7 = L_6; int32_t L_8 = ___value; NullCheck((Object_t*)L_4); bool L_9 = (bool)InterfaceFuncInvoker2< bool, int32_t, int32_t >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Int32>::Equals(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 48), (Object_t*)L_4, (int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_5, L_7)), (int32_t)L_8); if (!L_9) { goto IL_0037; } } { return 1; } IL_0037: { LinkU5BU5D_t1466* L_10 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_11 = V_2; NullCheck(L_10); IL2CPP_ARRAY_BOUNDS_CHECK(L_10, L_11); int32_t L_12 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_10, L_11))->___Next_1); V_2 = (int32_t)L_12; } IL_0049: { int32_t L_13 = V_2; if ((!(((uint32_t)L_13) == ((uint32_t)(-1))))) { goto IL_001d; } } { int32_t L_14 = V_1; V_1 = (int32_t)((int32_t)((int32_t)L_14+(int32_t)1)); } IL_0054: { int32_t L_15 = V_1; Int32U5BU5D_t501* L_16 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_16); if ((((int32_t)L_15) < ((int32_t)(((int32_t)(((Array_t *)L_16)->max_length)))))) { goto IL_000d; } } { return 0; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral273; extern Il2CppCodeGenString* _stringLiteral275; extern Il2CppCodeGenString* _stringLiteral277; extern Il2CppCodeGenString* _stringLiteral1255; extern Il2CppCodeGenString* _stringLiteral2678; extern "C" void Dictionary_2_GetObjectData_m9090_gshared (Dictionary_2_t1515 * __this, SerializationInfo_t317 * ___info, StreamingContext_t318 ___context, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); _stringLiteral273 = il2cpp_codegen_string_literal_from_index(273); _stringLiteral275 = il2cpp_codegen_string_literal_from_index(275); _stringLiteral277 = il2cpp_codegen_string_literal_from_index(277); _stringLiteral1255 = il2cpp_codegen_string_literal_from_index(1255); _stringLiteral2678 = il2cpp_codegen_string_literal_from_index(2678); s_Il2CppMethodIntialized = true; } KeyValuePair_2U5BU5D_t1841* V_0 = {0}; { SerializationInfo_t317 * L_0 = ___info; if (L_0) { goto IL_0011; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral273, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0011: { SerializationInfo_t317 * L_2 = ___info; int32_t L_3 = (int32_t)(__this->___generation_14); NullCheck((SerializationInfo_t317 *)L_2); SerializationInfo_AddValue_m2266((SerializationInfo_t317 *)L_2, (String_t*)_stringLiteral275, (int32_t)L_3, /*hidden argument*/NULL); SerializationInfo_t317 * L_4 = ___info; Object_t* L_5 = (Object_t*)(__this->___hcp_12); NullCheck((SerializationInfo_t317 *)L_4); SerializationInfo_AddValue_m2277((SerializationInfo_t317 *)L_4, (String_t*)_stringLiteral277, (Object_t *)L_5, /*hidden argument*/NULL); V_0 = (KeyValuePair_2U5BU5D_t1841*)NULL; int32_t L_6 = (int32_t)(__this->___count_10); if ((((int32_t)L_6) <= ((int32_t)0))) { goto IL_0055; } } { int32_t L_7 = (int32_t)(__this->___count_10); V_0 = (KeyValuePair_2U5BU5D_t1841*)((KeyValuePair_2U5BU5D_t1841*)SZArrayNew(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 49), L_7)); KeyValuePair_2U5BU5D_t1841* L_8 = V_0; NullCheck((Dictionary_2_t1515 *)__this); (( void (*) (Dictionary_2_t1515 *, KeyValuePair_2U5BU5D_t1841*, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 19)->method)((Dictionary_2_t1515 *)__this, (KeyValuePair_2U5BU5D_t1841*)L_8, (int32_t)0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 19)); } IL_0055: { SerializationInfo_t317 * L_9 = ___info; Int32U5BU5D_t501* L_10 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_10); NullCheck((SerializationInfo_t317 *)L_9); SerializationInfo_AddValue_m2266((SerializationInfo_t317 *)L_9, (String_t*)_stringLiteral1255, (int32_t)(((int32_t)(((Array_t *)L_10)->max_length))), /*hidden argument*/NULL); SerializationInfo_t317 * L_11 = ___info; KeyValuePair_2U5BU5D_t1841* L_12 = V_0; NullCheck((SerializationInfo_t317 *)L_11); SerializationInfo_AddValue_m2277((SerializationInfo_t317 *)L_11, (String_t*)_stringLiteral2678, (Object_t *)(Object_t *)L_12, /*hidden argument*/NULL); return; } } // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::OnDeserialization(System.Object) extern TypeInfo* Type_t_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral275; extern Il2CppCodeGenString* _stringLiteral277; extern Il2CppCodeGenString* _stringLiteral1255; extern Il2CppCodeGenString* _stringLiteral2678; extern "C" void Dictionary_2_OnDeserialization_m9092_gshared (Dictionary_2_t1515 * __this, Object_t * ___sender, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { Type_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(160); _stringLiteral275 = il2cpp_codegen_string_literal_from_index(275); _stringLiteral277 = il2cpp_codegen_string_literal_from_index(277); _stringLiteral1255 = il2cpp_codegen_string_literal_from_index(1255); _stringLiteral2678 = il2cpp_codegen_string_literal_from_index(2678); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; KeyValuePair_2U5BU5D_t1841* V_1 = {0}; int32_t V_2 = 0; { SerializationInfo_t317 * L_0 = (SerializationInfo_t317 *)(__this->___serialization_info_13); if (L_0) { goto IL_000c; } } { return; } IL_000c: { SerializationInfo_t317 * L_1 = (SerializationInfo_t317 *)(__this->___serialization_info_13); NullCheck((SerializationInfo_t317 *)L_1); int32_t L_2 = SerializationInfo_GetInt32_m2276((SerializationInfo_t317 *)L_1, (String_t*)_stringLiteral275, /*hidden argument*/NULL); __this->___generation_14 = L_2; SerializationInfo_t317 * L_3 = (SerializationInfo_t317 *)(__this->___serialization_info_13); IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_4 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 50)), /*hidden argument*/NULL); NullCheck((SerializationInfo_t317 *)L_3); Object_t * L_5 = SerializationInfo_GetValue_m2267((SerializationInfo_t317 *)L_3, (String_t*)_stringLiteral277, (Type_t *)L_4, /*hidden argument*/NULL); __this->___hcp_12 = ((Object_t*)Castclass(L_5, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35))); SerializationInfo_t317 * L_6 = (SerializationInfo_t317 *)(__this->___serialization_info_13); NullCheck((SerializationInfo_t317 *)L_6); int32_t L_7 = SerializationInfo_GetInt32_m2276((SerializationInfo_t317 *)L_6, (String_t*)_stringLiteral1255, /*hidden argument*/NULL); V_0 = (int32_t)L_7; SerializationInfo_t317 * L_8 = (SerializationInfo_t317 *)(__this->___serialization_info_13); Type_t * L_9 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 51)), /*hidden argument*/NULL); NullCheck((SerializationInfo_t317 *)L_8); Object_t * L_10 = SerializationInfo_GetValue_m2267((SerializationInfo_t317 *)L_8, (String_t*)_stringLiteral2678, (Type_t *)L_9, /*hidden argument*/NULL); V_1 = (KeyValuePair_2U5BU5D_t1841*)((KeyValuePair_2U5BU5D_t1841*)Castclass(L_10, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 20))); int32_t L_11 = V_0; if ((((int32_t)L_11) >= ((int32_t)((int32_t)10)))) { goto IL_0083; } } { V_0 = (int32_t)((int32_t)10); } IL_0083: { int32_t L_12 = V_0; NullCheck((Dictionary_2_t1515 *)__this); (( void (*) (Dictionary_2_t1515 *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 39)->method)((Dictionary_2_t1515 *)__this, (int32_t)L_12, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 39)); __this->___count_10 = 0; KeyValuePair_2U5BU5D_t1841* L_13 = V_1; if (!L_13) { goto IL_00c9; } } { V_2 = (int32_t)0; goto IL_00c0; } IL_009e: { KeyValuePair_2U5BU5D_t1841* L_14 = V_1; int32_t L_15 = V_2; NullCheck(L_14); IL2CPP_ARRAY_BOUNDS_CHECK(L_14, L_15); Object_t * L_16 = (( Object_t * (*) (KeyValuePair_2_t1516 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((KeyValuePair_2_t1516 *)((KeyValuePair_2_t1516 *)(KeyValuePair_2_t1516 *)SZArrayLdElema(L_14, L_15)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); KeyValuePair_2U5BU5D_t1841* L_17 = V_1; int32_t L_18 = V_2; NullCheck(L_17); IL2CPP_ARRAY_BOUNDS_CHECK(L_17, L_18); int32_t L_19 = (( int32_t (*) (KeyValuePair_2_t1516 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)->method)((KeyValuePair_2_t1516 *)((KeyValuePair_2_t1516 *)(KeyValuePair_2_t1516 *)SZArrayLdElema(L_17, L_18)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); NullCheck((Dictionary_2_t1515 *)__this); VirtActionInvoker2< Object_t *, int32_t >::Invoke(17 /* System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Add(TKey,TValue) */, (Dictionary_2_t1515 *)__this, (Object_t *)L_16, (int32_t)L_19); int32_t L_20 = V_2; V_2 = (int32_t)((int32_t)((int32_t)L_20+(int32_t)1)); } IL_00c0: { int32_t L_21 = V_2; KeyValuePair_2U5BU5D_t1841* L_22 = V_1; NullCheck(L_22); if ((((int32_t)L_21) < ((int32_t)(((int32_t)(((Array_t *)L_22)->max_length)))))) { goto IL_009e; } } IL_00c9: { int32_t L_23 = (int32_t)(__this->___generation_14); __this->___generation_14 = ((int32_t)((int32_t)L_23+(int32_t)1)); __this->___serialization_info_13 = (SerializationInfo_t317 *)NULL; return; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Remove(TKey) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern TypeInfo* Object_t_il2cpp_TypeInfo_var; extern TypeInfo* Int32_t327_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern "C" bool Dictionary_2_Remove_m9094_gshared (Dictionary_2_t1515 * __this, Object_t * ___key, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); Object_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(0); Int32_t327_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(35); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; int32_t V_3 = 0; Object_t * V_4 = {0}; int32_t V_5 = 0; { Object_t * L_0 = ___key; if (L_0) { goto IL_0016; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0016: { Object_t* L_2 = (Object_t*)(__this->___hcp_12); Object_t * L_3 = ___key; NullCheck((Object_t*)L_2); int32_t L_4 = (int32_t)InterfaceFuncInvoker1< int32_t, Object_t * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_2, (Object_t *)L_3); V_0 = (int32_t)((int32_t)((int32_t)L_4|(int32_t)((int32_t)-2147483648))); int32_t L_5 = V_0; Int32U5BU5D_t501* L_6 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_6); V_1 = (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_5&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_6)->max_length))))); Int32U5BU5D_t501* L_7 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_8 = V_1; NullCheck(L_7); IL2CPP_ARRAY_BOUNDS_CHECK(L_7, L_8); int32_t L_9 = L_8; V_2 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_7, L_9))-(int32_t)1)); int32_t L_10 = V_2; if ((!(((uint32_t)L_10) == ((uint32_t)(-1))))) { goto IL_004e; } } { return 0; } IL_004e: { V_3 = (int32_t)(-1); } IL_0050: { LinkU5BU5D_t1466* L_11 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_12 = V_2; NullCheck(L_11); IL2CPP_ARRAY_BOUNDS_CHECK(L_11, L_12); int32_t L_13 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_11, L_12))->___HashCode_0); int32_t L_14 = V_0; if ((!(((uint32_t)L_13) == ((uint32_t)L_14)))) { goto IL_0089; } } { Object_t* L_15 = (Object_t*)(__this->___hcp_12); ObjectU5BU5D_t207* L_16 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); int32_t L_17 = V_2; NullCheck(L_16); IL2CPP_ARRAY_BOUNDS_CHECK(L_16, L_17); int32_t L_18 = L_17; Object_t * L_19 = ___key; NullCheck((Object_t*)L_15); bool L_20 = (bool)InterfaceFuncInvoker2< bool, Object_t *, Object_t * >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Object>::Equals(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_15, (Object_t *)(*(Object_t **)(Object_t **)SZArrayLdElema(L_16, L_18)), (Object_t *)L_19); if (!L_20) { goto IL_0089; } } { goto IL_00a4; } IL_0089: { int32_t L_21 = V_2; V_3 = (int32_t)L_21; LinkU5BU5D_t1466* L_22 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_23 = V_2; NullCheck(L_22); IL2CPP_ARRAY_BOUNDS_CHECK(L_22, L_23); int32_t L_24 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_22, L_23))->___Next_1); V_2 = (int32_t)L_24; int32_t L_25 = V_2; if ((!(((uint32_t)L_25) == ((uint32_t)(-1))))) { goto IL_0050; } } IL_00a4: { int32_t L_26 = V_2; if ((!(((uint32_t)L_26) == ((uint32_t)(-1))))) { goto IL_00ad; } } { return 0; } IL_00ad: { int32_t L_27 = (int32_t)(__this->___count_10); __this->___count_10 = ((int32_t)((int32_t)L_27-(int32_t)1)); int32_t L_28 = V_3; if ((!(((uint32_t)L_28) == ((uint32_t)(-1))))) { goto IL_00e2; } } { Int32U5BU5D_t501* L_29 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_30 = V_1; LinkU5BU5D_t1466* L_31 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_32 = V_2; NullCheck(L_31); IL2CPP_ARRAY_BOUNDS_CHECK(L_31, L_32); int32_t L_33 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_31, L_32))->___Next_1); NullCheck(L_29); IL2CPP_ARRAY_BOUNDS_CHECK(L_29, L_30); *((int32_t*)(int32_t*)SZArrayLdElema(L_29, L_30)) = (int32_t)((int32_t)((int32_t)L_33+(int32_t)1)); goto IL_0104; } IL_00e2: { LinkU5BU5D_t1466* L_34 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_35 = V_3; NullCheck(L_34); IL2CPP_ARRAY_BOUNDS_CHECK(L_34, L_35); LinkU5BU5D_t1466* L_36 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_37 = V_2; NullCheck(L_36); IL2CPP_ARRAY_BOUNDS_CHECK(L_36, L_37); int32_t L_38 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_36, L_37))->___Next_1); ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_34, L_35))->___Next_1 = L_38; } IL_0104: { LinkU5BU5D_t1466* L_39 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_40 = V_2; NullCheck(L_39); IL2CPP_ARRAY_BOUNDS_CHECK(L_39, L_40); int32_t L_41 = (int32_t)(__this->___emptySlot_9); ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_39, L_40))->___Next_1 = L_41; int32_t L_42 = V_2; __this->___emptySlot_9 = L_42; LinkU5BU5D_t1466* L_43 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_44 = V_2; NullCheck(L_43); IL2CPP_ARRAY_BOUNDS_CHECK(L_43, L_44); ((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_43, L_44))->___HashCode_0 = 0; ObjectU5BU5D_t207* L_45 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); int32_t L_46 = V_2; Initobj (Object_t_il2cpp_TypeInfo_var, (&V_4)); Object_t * L_47 = V_4; NullCheck(L_45); IL2CPP_ARRAY_BOUNDS_CHECK(L_45, L_46); *((Object_t **)(Object_t **)SZArrayLdElema(L_45, L_46)) = (Object_t *)L_47; Int32U5BU5D_t501* L_48 = (Int32U5BU5D_t501*)(__this->___valueSlots_7); int32_t L_49 = V_2; Initobj (Int32_t327_il2cpp_TypeInfo_var, (&V_5)); int32_t L_50 = V_5; NullCheck(L_48); IL2CPP_ARRAY_BOUNDS_CHECK(L_48, L_49); *((int32_t*)(int32_t*)SZArrayLdElema(L_48, L_49)) = (int32_t)L_50; int32_t L_51 = (int32_t)(__this->___generation_14); __this->___generation_14 = ((int32_t)((int32_t)L_51+(int32_t)1)); return 1; } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::TryGetValue(TKey,TValue&) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern TypeInfo* Int32_t327_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern "C" bool Dictionary_2_TryGetValue_m9096_gshared (Dictionary_2_t1515 * __this, Object_t * ___key, int32_t* ___value, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); Int32_t327_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(35); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; int32_t V_1 = 0; int32_t V_2 = 0; { Object_t * L_0 = ___key; if (L_0) { goto IL_0016; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0016: { Object_t* L_2 = (Object_t*)(__this->___hcp_12); Object_t * L_3 = ___key; NullCheck((Object_t*)L_2); int32_t L_4 = (int32_t)InterfaceFuncInvoker1< int32_t, Object_t * >::Invoke(1 /* System.Int32 System.Collections.Generic.IEqualityComparer`1<System.Object>::GetHashCode(T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_2, (Object_t *)L_3); V_0 = (int32_t)((int32_t)((int32_t)L_4|(int32_t)((int32_t)-2147483648))); Int32U5BU5D_t501* L_5 = (Int32U5BU5D_t501*)(__this->___table_4); int32_t L_6 = V_0; Int32U5BU5D_t501* L_7 = (Int32U5BU5D_t501*)(__this->___table_4); NullCheck(L_7); NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, ((int32_t)((int32_t)((int32_t)((int32_t)L_6&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_7)->max_length)))))); int32_t L_8 = ((int32_t)((int32_t)((int32_t)((int32_t)L_6&(int32_t)((int32_t)2147483647)))%(int32_t)(((int32_t)(((Array_t *)L_7)->max_length))))); V_1 = (int32_t)((int32_t)((int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_5, L_8))-(int32_t)1)); goto IL_00a2; } IL_0048: { LinkU5BU5D_t1466* L_9 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_10 = V_1; NullCheck(L_9); IL2CPP_ARRAY_BOUNDS_CHECK(L_9, L_10); int32_t L_11 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_9, L_10))->___HashCode_0); int32_t L_12 = V_0; if ((!(((uint32_t)L_11) == ((uint32_t)L_12)))) { goto IL_0090; } } { Object_t* L_13 = (Object_t*)(__this->___hcp_12); ObjectU5BU5D_t207* L_14 = (ObjectU5BU5D_t207*)(__this->___keySlots_6); int32_t L_15 = V_1; NullCheck(L_14); IL2CPP_ARRAY_BOUNDS_CHECK(L_14, L_15); int32_t L_16 = L_15; Object_t * L_17 = ___key; NullCheck((Object_t*)L_13); bool L_18 = (bool)InterfaceFuncInvoker2< bool, Object_t *, Object_t * >::Invoke(0 /* System.Boolean System.Collections.Generic.IEqualityComparer`1<System.Object>::Equals(T,T) */, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 35), (Object_t*)L_13, (Object_t *)(*(Object_t **)(Object_t **)SZArrayLdElema(L_14, L_16)), (Object_t *)L_17); if (!L_18) { goto IL_0090; } } { int32_t* L_19 = ___value; Int32U5BU5D_t501* L_20 = (Int32U5BU5D_t501*)(__this->___valueSlots_7); int32_t L_21 = V_1; NullCheck(L_20); IL2CPP_ARRAY_BOUNDS_CHECK(L_20, L_21); int32_t L_22 = L_21; *L_19 = (*(int32_t*)(int32_t*)SZArrayLdElema(L_20, L_22)); return 1; } IL_0090: { LinkU5BU5D_t1466* L_23 = (LinkU5BU5D_t1466*)(__this->___linkSlots_5); int32_t L_24 = V_1; NullCheck(L_23); IL2CPP_ARRAY_BOUNDS_CHECK(L_23, L_24); int32_t L_25 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_23, L_24))->___Next_1); V_1 = (int32_t)L_25; } IL_00a2: { int32_t L_26 = V_1; if ((!(((uint32_t)L_26) == ((uint32_t)(-1))))) { goto IL_0048; } } { int32_t* L_27 = ___value; Initobj (Int32_t327_il2cpp_TypeInfo_var, (&V_2)); int32_t L_28 = V_2; *L_27 = L_28; return 0; } } // System.Collections.Generic.Dictionary`2/KeyCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::get_Keys() extern "C" KeyCollection_t1518 * Dictionary_2_get_Keys_m9098_gshared (Dictionary_2_t1515 * __this, const MethodInfo* method) { { KeyCollection_t1518 * L_0 = (KeyCollection_t1518 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 52)); (( void (*) (KeyCollection_t1518 *, Dictionary_2_t1515 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 53)->method)(L_0, (Dictionary_2_t1515 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 53)); return L_0; } } // System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::get_Values() extern "C" ValueCollection_t1522 * Dictionary_2_get_Values_m9100_gshared (Dictionary_2_t1515 * __this, const MethodInfo* method) { { ValueCollection_t1522 * L_0 = (ValueCollection_t1522 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 54)); (( void (*) (ValueCollection_t1522 *, Dictionary_2_t1515 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 55)->method)(L_0, (Dictionary_2_t1515 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 55)); return L_0; } } // TKey System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::ToTKey(System.Object) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern TypeInfo* Type_t_il2cpp_TypeInfo_var; extern TypeInfo* String_t_il2cpp_TypeInfo_var; extern TypeInfo* ArgumentException_t320_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral261; extern Il2CppCodeGenString* _stringLiteral2679; extern "C" Object_t * Dictionary_2_ToTKey_m9102_gshared (Dictionary_2_t1515 * __this, Object_t * ___key, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); Type_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(160); String_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(23); ArgumentException_t320_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(3); _stringLiteral261 = il2cpp_codegen_string_literal_from_index(261); _stringLiteral2679 = il2cpp_codegen_string_literal_from_index(2679); s_Il2CppMethodIntialized = true; } { Object_t * L_0 = ___key; if (L_0) { goto IL_0011; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0011: { Object_t * L_2 = ___key; if (((Object_t *)IsInst(L_2, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)))) { goto IL_0040; } } { IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_3 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 56)), /*hidden argument*/NULL); NullCheck((Type_t *)L_3); String_t* L_4 = (String_t*)VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Type::ToString() */, (Type_t *)L_3); IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var); String_t* L_5 = String_Concat_m1205(NULL /*static, unused*/, (String_t*)_stringLiteral2679, (String_t*)L_4, /*hidden argument*/NULL); ArgumentException_t320 * L_6 = (ArgumentException_t320 *)il2cpp_codegen_object_new (ArgumentException_t320_il2cpp_TypeInfo_var); ArgumentException__ctor_m2258(L_6, (String_t*)L_5, (String_t*)_stringLiteral261, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_6); } IL_0040: { Object_t * L_7 = ___key; return ((Object_t *)Castclass(L_7, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10))); } } // TValue System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::ToTValue(System.Object) extern TypeInfo* Type_t_il2cpp_TypeInfo_var; extern TypeInfo* Int32_t327_il2cpp_TypeInfo_var; extern TypeInfo* String_t_il2cpp_TypeInfo_var; extern TypeInfo* ArgumentException_t320_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2679; extern Il2CppCodeGenString* _stringLiteral462; extern "C" int32_t Dictionary_2_ToTValue_m9104_gshared (Dictionary_2_t1515 * __this, Object_t * ___value, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { Type_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(160); Int32_t327_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(35); String_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(23); ArgumentException_t320_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(3); _stringLiteral2679 = il2cpp_codegen_string_literal_from_index(2679); _stringLiteral462 = il2cpp_codegen_string_literal_from_index(462); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; { Object_t * L_0 = ___value; if (L_0) { goto IL_0024; } } { IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_1 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 57)), /*hidden argument*/NULL); NullCheck((Type_t *)L_1); bool L_2 = (bool)VirtFuncInvoker0< bool >::Invoke(33 /* System.Boolean System.Type::get_IsValueType() */, (Type_t *)L_1); if (L_2) { goto IL_0024; } } { Initobj (Int32_t327_il2cpp_TypeInfo_var, (&V_0)); int32_t L_3 = V_0; return L_3; } IL_0024: { Object_t * L_4 = ___value; if (((Object_t *)IsInst(L_4, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 14)))) { goto IL_0053; } } { IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var); Type_t * L_5 = Type_GetTypeFromHandle_m1315(NULL /*static, unused*/, (RuntimeTypeHandle_t774 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 57)), /*hidden argument*/NULL); NullCheck((Type_t *)L_5); String_t* L_6 = (String_t*)VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Type::ToString() */, (Type_t *)L_5); IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var); String_t* L_7 = String_Concat_m1205(NULL /*static, unused*/, (String_t*)_stringLiteral2679, (String_t*)L_6, /*hidden argument*/NULL); ArgumentException_t320 * L_8 = (ArgumentException_t320 *)il2cpp_codegen_object_new (ArgumentException_t320_il2cpp_TypeInfo_var); ArgumentException__ctor_m2258(L_8, (String_t*)L_7, (String_t*)_stringLiteral462, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_8); } IL_0053: { Object_t * L_9 = ___value; return ((*(int32_t*)((int32_t*)UnBox (L_9, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 14))))); } } // System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::ContainsKeyValuePair(System.Collections.Generic.KeyValuePair`2<TKey,TValue>) extern "C" bool Dictionary_2_ContainsKeyValuePair_m9106_gshared (Dictionary_2_t1515 * __this, KeyValuePair_2_t1516 ___pair, const MethodInfo* method) { int32_t V_0 = 0; { Object_t * L_0 = (( Object_t * (*) (KeyValuePair_2_t1516 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((KeyValuePair_2_t1516 *)(&___pair), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); NullCheck((Dictionary_2_t1515 *)__this); bool L_1 = (bool)VirtFuncInvoker2< bool, Object_t *, int32_t* >::Invoke(18 /* System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::TryGetValue(TKey,TValue&) */, (Dictionary_2_t1515 *)__this, (Object_t *)L_0, (int32_t*)(&V_0)); if (L_1) { goto IL_0016; } } { return 0; } IL_0016: { IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 47)); EqualityComparer_1_t1486 * L_2 = (( EqualityComparer_1_t1486 * (*) (Object_t * /* static, unused */, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 46)->method)(NULL /*static, unused*/, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 46)); int32_t L_3 = (( int32_t (*) (KeyValuePair_2_t1516 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)->method)((KeyValuePair_2_t1516 *)(&___pair), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); int32_t L_4 = V_0; NullCheck((EqualityComparer_1_t1486 *)L_2); bool L_5 = (bool)VirtFuncInvoker2< bool, int32_t, int32_t >::Invoke(9 /* System.Boolean System.Collections.Generic.EqualityComparer`1<System.Int32>::Equals(T,T) */, (EqualityComparer_1_t1486 *)L_2, (int32_t)L_3, (int32_t)L_4); return L_5; } } // System.Collections.Generic.Dictionary`2/Enumerator<TKey,TValue> System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::GetEnumerator() extern "C" Enumerator_t1520 Dictionary_2_GetEnumerator_m9108_gshared (Dictionary_2_t1515 * __this, const MethodInfo* method) { { Enumerator_t1520 L_0 = {0}; (( void (*) (Enumerator_t1520 *, Dictionary_2_t1515 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 32)->method)(&L_0, (Dictionary_2_t1515 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 32)); return L_0; } } // System.Collections.DictionaryEntry System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::<CopyTo>m__0(TKey,TValue) extern "C" DictionaryEntry_t567 Dictionary_2_U3CCopyToU3Em__0_m9110_gshared (Object_t * __this /* static, unused */, Object_t * ___key, int32_t ___value, const MethodInfo* method) { { Object_t * L_0 = ___key; int32_t L_1 = ___value; int32_t L_2 = L_1; Object_t * L_3 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 14), &L_2); DictionaryEntry_t567 L_4 = {0}; DictionaryEntry__ctor_m2254(&L_4, (Object_t *)L_0, (Object_t *)L_3, /*hidden argument*/NULL); return L_4; } } #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif // System.Array/InternalEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>> #include "mscorlib_System_Array_InternalEnumerator_1_gen_20.h" #ifndef _MSC_VER #else #endif // System.Array/InternalEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>> #include "mscorlib_System_Array_InternalEnumerator_1_gen_20MethodDeclarations.h" struct Array_t; // Declaration !!0 System.Array::InternalArray__get_Item<System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>>(System.Int32) // !!0 System.Array::InternalArray__get_Item<System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>>(System.Int32) extern "C" KeyValuePair_2_t1516 Array_InternalArray__get_Item_TisKeyValuePair_2_t1516_m12213_gshared (Array_t * __this, int32_t p0, const MethodInfo* method); #define Array_InternalArray__get_Item_TisKeyValuePair_2_t1516_m12213(__this, p0, method) (( KeyValuePair_2_t1516 (*) (Array_t *, int32_t, const MethodInfo*))Array_InternalArray__get_Item_TisKeyValuePair_2_t1516_m12213_gshared)(__this, p0, method) // System.Void System.Array/InternalEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>>::.ctor(System.Array) extern "C" void InternalEnumerator_1__ctor_m9111_gshared (InternalEnumerator_1_t1517 * __this, Array_t * ___array, const MethodInfo* method) { { Array_t * L_0 = ___array; __this->___array_0 = L_0; __this->___idx_1 = ((int32_t)-2); return; } } // System.Object System.Array/InternalEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>>::System.Collections.IEnumerator.get_Current() extern "C" Object_t * InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m9112_gshared (InternalEnumerator_1_t1517 * __this, const MethodInfo* method) { { KeyValuePair_2_t1516 L_0 = (( KeyValuePair_2_t1516 (*) (InternalEnumerator_1_t1517 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((InternalEnumerator_1_t1517 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); KeyValuePair_2_t1516 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1), &L_1); return L_2; } } // System.Void System.Array/InternalEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>>::Dispose() extern "C" void InternalEnumerator_1_Dispose_m9113_gshared (InternalEnumerator_1_t1517 * __this, const MethodInfo* method) { { __this->___idx_1 = ((int32_t)-2); return; } } // System.Boolean System.Array/InternalEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>>::MoveNext() extern "C" bool InternalEnumerator_1_MoveNext_m9114_gshared (InternalEnumerator_1_t1517 * __this, const MethodInfo* method) { int32_t V_0 = 0; int32_t G_B5_0 = 0; { int32_t L_0 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_0) == ((uint32_t)((int32_t)-2))))) { goto IL_001e; } } { Array_t * L_1 = (Array_t *)(__this->___array_0); NullCheck((Array_t *)L_1); int32_t L_2 = Array_get_Length_m2256((Array_t *)L_1, /*hidden argument*/NULL); __this->___idx_1 = L_2; } IL_001e: { int32_t L_3 = (int32_t)(__this->___idx_1); if ((((int32_t)L_3) == ((int32_t)(-1)))) { goto IL_0043; } } { int32_t L_4 = (int32_t)(__this->___idx_1); int32_t L_5 = (int32_t)((int32_t)((int32_t)L_4-(int32_t)1)); V_0 = (int32_t)L_5; __this->___idx_1 = L_5; int32_t L_6 = V_0; G_B5_0 = ((((int32_t)((((int32_t)L_6) == ((int32_t)(-1)))? 1 : 0)) == ((int32_t)0))? 1 : 0); goto IL_0044; } IL_0043: { G_B5_0 = 0; } IL_0044: { return G_B5_0; } } // T System.Array/InternalEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>>::get_Current() extern TypeInfo* InvalidOperationException_t580_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2671; extern Il2CppCodeGenString* _stringLiteral2672; extern "C" KeyValuePair_2_t1516 InternalEnumerator_1_get_Current_m9115_gshared (InternalEnumerator_1_t1517 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { InvalidOperationException_t580_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(236); _stringLiteral2671 = il2cpp_codegen_string_literal_from_index(2671); _stringLiteral2672 = il2cpp_codegen_string_literal_from_index(2672); s_Il2CppMethodIntialized = true; } { int32_t L_0 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_0) == ((uint32_t)((int32_t)-2))))) { goto IL_0018; } } { InvalidOperationException_t580 * L_1 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_1, (String_t*)_stringLiteral2671, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0018: { int32_t L_2 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_2) == ((uint32_t)(-1))))) { goto IL_002f; } } { InvalidOperationException_t580 * L_3 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_3, (String_t*)_stringLiteral2672, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_3); } IL_002f: { Array_t * L_4 = (Array_t *)(__this->___array_0); Array_t * L_5 = (Array_t *)(__this->___array_0); NullCheck((Array_t *)L_5); int32_t L_6 = Array_get_Length_m2256((Array_t *)L_5, /*hidden argument*/NULL); int32_t L_7 = (int32_t)(__this->___idx_1); NullCheck((Array_t *)L_4); KeyValuePair_2_t1516 L_8 = (( KeyValuePair_2_t1516 (*) (Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((Array_t *)L_4, (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_6-(int32_t)1))-(int32_t)L_7)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); return L_8; } } #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>::.ctor(TKey,TValue) extern "C" void KeyValuePair_2__ctor_m9116_gshared (KeyValuePair_2_t1516 * __this, Object_t * ___key, int32_t ___value, const MethodInfo* method) { { Object_t * L_0 = ___key; (( void (*) (KeyValuePair_2_t1516 *, Object_t *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((KeyValuePair_2_t1516 *)__this, (Object_t *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); int32_t L_1 = ___value; (( void (*) (KeyValuePair_2_t1516 *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((KeyValuePair_2_t1516 *)__this, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); return; } } // TKey System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>::get_Key() extern "C" Object_t * KeyValuePair_2_get_Key_m9117_gshared (KeyValuePair_2_t1516 * __this, const MethodInfo* method) { { Object_t * L_0 = (Object_t *)(__this->___key_0); return L_0; } } // System.Void System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>::set_Key(TKey) extern "C" void KeyValuePair_2_set_Key_m9118_gshared (KeyValuePair_2_t1516 * __this, Object_t * ___value, const MethodInfo* method) { { Object_t * L_0 = ___value; __this->___key_0 = L_0; return; } } // TValue System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>::get_Value() extern "C" int32_t KeyValuePair_2_get_Value_m9119_gshared (KeyValuePair_2_t1516 * __this, const MethodInfo* method) { { int32_t L_0 = (int32_t)(__this->___value_1); return L_0; } } // System.Void System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>::set_Value(TValue) extern "C" void KeyValuePair_2_set_Value_m9120_gshared (KeyValuePair_2_t1516 * __this, int32_t ___value, const MethodInfo* method) { { int32_t L_0 = ___value; __this->___value_1 = L_0; return; } } // System.String System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>::ToString() extern TypeInfo* StringU5BU5D_t204_il2cpp_TypeInfo_var; extern TypeInfo* String_t_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral188; extern Il2CppCodeGenString* _stringLiteral252; extern Il2CppCodeGenString* _stringLiteral189; extern "C" String_t* KeyValuePair_2_ToString_m9121_gshared (KeyValuePair_2_t1516 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { StringU5BU5D_t204_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(84); String_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(23); _stringLiteral188 = il2cpp_codegen_string_literal_from_index(188); _stringLiteral252 = il2cpp_codegen_string_literal_from_index(252); _stringLiteral189 = il2cpp_codegen_string_literal_from_index(189); s_Il2CppMethodIntialized = true; } Object_t * V_0 = {0}; int32_t V_1 = 0; int32_t G_B2_0 = 0; StringU5BU5D_t204* G_B2_1 = {0}; StringU5BU5D_t204* G_B2_2 = {0}; int32_t G_B1_0 = 0; StringU5BU5D_t204* G_B1_1 = {0}; StringU5BU5D_t204* G_B1_2 = {0}; String_t* G_B3_0 = {0}; int32_t G_B3_1 = 0; StringU5BU5D_t204* G_B3_2 = {0}; StringU5BU5D_t204* G_B3_3 = {0}; int32_t G_B5_0 = 0; StringU5BU5D_t204* G_B5_1 = {0}; StringU5BU5D_t204* G_B5_2 = {0}; int32_t G_B4_0 = 0; StringU5BU5D_t204* G_B4_1 = {0}; StringU5BU5D_t204* G_B4_2 = {0}; String_t* G_B6_0 = {0}; int32_t G_B6_1 = 0; StringU5BU5D_t204* G_B6_2 = {0}; StringU5BU5D_t204* G_B6_3 = {0}; { StringU5BU5D_t204* L_0 = (StringU5BU5D_t204*)((StringU5BU5D_t204*)SZArrayNew(StringU5BU5D_t204_il2cpp_TypeInfo_var, 5)); NullCheck(L_0); IL2CPP_ARRAY_BOUNDS_CHECK(L_0, 0); ArrayElementTypeCheck (L_0, _stringLiteral188); *((String_t**)(String_t**)SZArrayLdElema(L_0, 0)) = (String_t*)_stringLiteral188; StringU5BU5D_t204* L_1 = (StringU5BU5D_t204*)L_0; Object_t * L_2 = (( Object_t * (*) (KeyValuePair_2_t1516 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((KeyValuePair_2_t1516 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); G_B1_0 = 1; G_B1_1 = L_1; G_B1_2 = L_1; if (!L_2) { G_B2_0 = 1; G_B2_1 = L_1; G_B2_2 = L_1; goto IL_0039; } } { Object_t * L_3 = (( Object_t * (*) (KeyValuePair_2_t1516 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((KeyValuePair_2_t1516 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); V_0 = (Object_t *)L_3; NullCheck((Object_t *)(*(&V_0))); String_t* L_4 = (String_t*)VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, (Object_t *)(*(&V_0))); G_B3_0 = L_4; G_B3_1 = G_B1_0; G_B3_2 = G_B1_1; G_B3_3 = G_B1_2; goto IL_003e; } IL_0039: { IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var); String_t* L_5 = ((String_t_StaticFields*)String_t_il2cpp_TypeInfo_var->static_fields)->___Empty_2; G_B3_0 = L_5; G_B3_1 = G_B2_0; G_B3_2 = G_B2_1; G_B3_3 = G_B2_2; } IL_003e: { NullCheck(G_B3_2); IL2CPP_ARRAY_BOUNDS_CHECK(G_B3_2, G_B3_1); ArrayElementTypeCheck (G_B3_2, G_B3_0); *((String_t**)(String_t**)SZArrayLdElema(G_B3_2, G_B3_1)) = (String_t*)G_B3_0; StringU5BU5D_t204* L_6 = (StringU5BU5D_t204*)G_B3_3; NullCheck(L_6); IL2CPP_ARRAY_BOUNDS_CHECK(L_6, 2); ArrayElementTypeCheck (L_6, _stringLiteral252); *((String_t**)(String_t**)SZArrayLdElema(L_6, 2)) = (String_t*)_stringLiteral252; StringU5BU5D_t204* L_7 = (StringU5BU5D_t204*)L_6; int32_t L_8 = (( int32_t (*) (KeyValuePair_2_t1516 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((KeyValuePair_2_t1516 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); } { int32_t L_9 = (( int32_t (*) (KeyValuePair_2_t1516 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((KeyValuePair_2_t1516 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); V_1 = (int32_t)L_9; NullCheck((int32_t*)(&V_1)); String_t* L_10 = Int32_ToString_m1243((int32_t*)(&V_1), NULL); G_B6_0 = L_10; G_B6_1 = G_B4_0; G_B6_2 = G_B4_1; G_B6_3 = G_B4_2; goto IL_0077; } IL_0072: { IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var); String_t* L_11 = ((String_t_StaticFields*)String_t_il2cpp_TypeInfo_var->static_fields)->___Empty_2; G_B6_0 = L_11; G_B6_1 = G_B5_0; G_B6_2 = G_B5_1; G_B6_3 = G_B5_2; } IL_0077: { NullCheck(G_B6_2); IL2CPP_ARRAY_BOUNDS_CHECK(G_B6_2, G_B6_1); ArrayElementTypeCheck (G_B6_2, G_B6_0); *((String_t**)(String_t**)SZArrayLdElema(G_B6_2, G_B6_1)) = (String_t*)G_B6_0; StringU5BU5D_t204* L_12 = (StringU5BU5D_t204*)G_B6_3; NullCheck(L_12); IL2CPP_ARRAY_BOUNDS_CHECK(L_12, 4); ArrayElementTypeCheck (L_12, _stringLiteral189); *((String_t**)(String_t**)SZArrayLdElema(L_12, 4)) = (String_t*)_stringLiteral189; IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var); String_t* L_13 = String_Concat_m1245(NULL /*static, unused*/, (StringU5BU5D_t204*)L_12, /*hidden argument*/NULL); return L_13; } } #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif // System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<System.Object,System.Int32> #include "mscorlib_System_Collections_Generic_Dictionary_2_KeyCollecti_7.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1_8.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Object> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1_8MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<System.Object,System.Int32> #include "mscorlib_System_Collections_Generic_Dictionary_2_KeyCollecti_7MethodDeclarations.h" struct Dictionary_2_t1515; struct Array_t; struct Transform_1_t1521; // Declaration System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Do_ICollectionCopyTo<System.Object>(System.Array,System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Do_ICollectionCopyTo<System.Object>(System.Array,System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) extern "C" void Dictionary_2_Do_ICollectionCopyTo_TisObject_t_m12224_gshared (Dictionary_2_t1515 * __this, Array_t * p0, int32_t p1, Transform_1_t1521 * p2, const MethodInfo* method); #define Dictionary_2_Do_ICollectionCopyTo_TisObject_t_m12224(__this, p0, p1, p2, method) (( void (*) (Dictionary_2_t1515 *, Array_t *, int32_t, Transform_1_t1521 *, const MethodInfo*))Dictionary_2_Do_ICollectionCopyTo_TisObject_t_m12224_gshared)(__this, p0, p1, p2, method) struct Dictionary_2_t1515; struct ObjectU5BU5D_t207; struct Transform_1_t1521; // Declaration System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Do_CopyTo<System.Object,System.Object>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Do_CopyTo<System.Object,System.Object>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) extern "C" void Dictionary_2_Do_CopyTo_TisObject_t_TisObject_t_m12223_gshared (Dictionary_2_t1515 * __this, ObjectU5BU5D_t207* p0, int32_t p1, Transform_1_t1521 * p2, const MethodInfo* method); #define Dictionary_2_Do_CopyTo_TisObject_t_TisObject_t_m12223(__this, p0, p1, p2, method) (( void (*) (Dictionary_2_t1515 *, ObjectU5BU5D_t207*, int32_t, Transform_1_t1521 *, const MethodInfo*))Dictionary_2_Do_CopyTo_TisObject_t_TisObject_t_m12223_gshared)(__this, p0, p1, p2, method) // System.Void System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Int32>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral1250; extern "C" void KeyCollection__ctor_m9122_gshared (KeyCollection_t1518 * __this, Dictionary_2_t1515 * ___dictionary, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); _stringLiteral1250 = il2cpp_codegen_string_literal_from_index(1250); s_Il2CppMethodIntialized = true; } { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); Dictionary_2_t1515 * L_0 = ___dictionary; if (L_0) { goto IL_0017; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral1250, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0017: { Dictionary_2_t1515 * L_2 = ___dictionary; __this->___dictionary_0 = L_2; return; } } // System.Void System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Int32>::System.Collections.Generic.ICollection<TKey>.Add(TKey) extern TypeInfo* NotSupportedException_t582_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2680; extern "C" void KeyCollection_System_Collections_Generic_ICollectionU3CTKeyU3E_Add_m9123_gshared (KeyCollection_t1518 * __this, Object_t * ___item, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NotSupportedException_t582_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(248); _stringLiteral2680 = il2cpp_codegen_string_literal_from_index(2680); s_Il2CppMethodIntialized = true; } { NotSupportedException_t582 * L_0 = (NotSupportedException_t582 *)il2cpp_codegen_object_new (NotSupportedException_t582_il2cpp_TypeInfo_var); NotSupportedException__ctor_m2270(L_0, (String_t*)_stringLiteral2680, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_0); } } // System.Void System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Int32>::System.Collections.Generic.ICollection<TKey>.Clear() extern TypeInfo* NotSupportedException_t582_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2680; extern "C" void KeyCollection_System_Collections_Generic_ICollectionU3CTKeyU3E_Clear_m9124_gshared (KeyCollection_t1518 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NotSupportedException_t582_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(248); _stringLiteral2680 = il2cpp_codegen_string_literal_from_index(2680); s_Il2CppMethodIntialized = true; } { NotSupportedException_t582 * L_0 = (NotSupportedException_t582 *)il2cpp_codegen_object_new (NotSupportedException_t582_il2cpp_TypeInfo_var); NotSupportedException__ctor_m2270(L_0, (String_t*)_stringLiteral2680, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_0); } } // System.Boolean System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Int32>::System.Collections.Generic.ICollection<TKey>.Contains(TKey) extern "C" bool KeyCollection_System_Collections_Generic_ICollectionU3CTKeyU3E_Contains_m9125_gshared (KeyCollection_t1518 * __this, Object_t * ___item, const MethodInfo* method) { { Dictionary_2_t1515 * L_0 = (Dictionary_2_t1515 *)(__this->___dictionary_0); Object_t * L_1 = ___item; NullCheck((Dictionary_2_t1515 *)L_0); bool L_2 = (bool)VirtFuncInvoker1< bool, Object_t * >::Invoke(30 /* System.Boolean System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::ContainsKey(TKey) */, (Dictionary_2_t1515 *)L_0, (Object_t *)L_1); return L_2; } } // System.Boolean System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Int32>::System.Collections.Generic.ICollection<TKey>.Remove(TKey) extern TypeInfo* NotSupportedException_t582_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2680; extern "C" bool KeyCollection_System_Collections_Generic_ICollectionU3CTKeyU3E_Remove_m9126_gshared (KeyCollection_t1518 * __this, Object_t * ___item, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NotSupportedException_t582_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(248); _stringLiteral2680 = il2cpp_codegen_string_literal_from_index(2680); s_Il2CppMethodIntialized = true; } { NotSupportedException_t582 * L_0 = (NotSupportedException_t582 *)il2cpp_codegen_object_new (NotSupportedException_t582_il2cpp_TypeInfo_var); NotSupportedException__ctor_m2270(L_0, (String_t*)_stringLiteral2680, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_0); } } // System.Collections.Generic.IEnumerator`1<TKey> System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Int32>::System.Collections.Generic.IEnumerable<TKey>.GetEnumerator() extern "C" Object_t* KeyCollection_System_Collections_Generic_IEnumerableU3CTKeyU3E_GetEnumerator_m9127_gshared (KeyCollection_t1518 * __this, const MethodInfo* method) { { NullCheck((KeyCollection_t1518 *)__this); Enumerator_t1519 L_0 = (( Enumerator_t1519 (*) (KeyCollection_t1518 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((KeyCollection_t1518 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); Enumerator_t1519 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), &L_1); return (Object_t*)L_2; } } // System.Void System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Int32>::System.Collections.ICollection.CopyTo(System.Array,System.Int32) extern "C" void KeyCollection_System_Collections_ICollection_CopyTo_m9128_gshared (KeyCollection_t1518 * __this, Array_t * ___array, int32_t ___index, const MethodInfo* method) { ObjectU5BU5D_t207* V_0 = {0}; { Array_t * L_0 = ___array; V_0 = (ObjectU5BU5D_t207*)((ObjectU5BU5D_t207*)IsInst(L_0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3))); ObjectU5BU5D_t207* L_1 = V_0; if (!L_1) { goto IL_0016; } } { ObjectU5BU5D_t207* L_2 = V_0; int32_t L_3 = ___index; NullCheck((KeyCollection_t1518 *)__this); (( void (*) (KeyCollection_t1518 *, ObjectU5BU5D_t207*, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((KeyCollection_t1518 *)__this, (ObjectU5BU5D_t207*)L_2, (int32_t)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); return; } IL_0016: { Dictionary_2_t1515 * L_4 = (Dictionary_2_t1515 *)(__this->___dictionary_0); Array_t * L_5 = ___array; int32_t L_6 = ___index; NullCheck((Dictionary_2_t1515 *)L_4); (( void (*) (Dictionary_2_t1515 *, Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((Dictionary_2_t1515 *)L_4, (Array_t *)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); Dictionary_2_t1515 * L_7 = (Dictionary_2_t1515 *)(__this->___dictionary_0); Array_t * L_8 = ___array; int32_t L_9 = ___index; IntPtr_t L_10 = { (void*)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6) }; Transform_1_t1521 * L_11 = (Transform_1_t1521 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); (( void (*) (Transform_1_t1521 *, Object_t *, IntPtr_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)(L_11, (Object_t *)NULL, (IntPtr_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); NullCheck((Dictionary_2_t1515 *)L_7); (( void (*) (Dictionary_2_t1515 *, Array_t *, int32_t, Transform_1_t1521 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)->method)((Dictionary_2_t1515 *)L_7, (Array_t *)L_8, (int32_t)L_9, (Transform_1_t1521 *)L_11, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)); return; } } // System.Collections.IEnumerator System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Int32>::System.Collections.IEnumerable.GetEnumerator() extern "C" Object_t * KeyCollection_System_Collections_IEnumerable_GetEnumerator_m9129_gshared (KeyCollection_t1518 * __this, const MethodInfo* method) { { NullCheck((KeyCollection_t1518 *)__this); Enumerator_t1519 L_0 = (( Enumerator_t1519 (*) (KeyCollection_t1518 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((KeyCollection_t1518 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); Enumerator_t1519 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), &L_1); return (Object_t *)L_2; } } // System.Boolean System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Int32>::System.Collections.Generic.ICollection<TKey>.get_IsReadOnly() extern "C" bool KeyCollection_System_Collections_Generic_ICollectionU3CTKeyU3E_get_IsReadOnly_m9130_gshared (KeyCollection_t1518 * __this, const MethodInfo* method) { { return 1; } } // System.Object System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Int32>::System.Collections.ICollection.get_SyncRoot() extern TypeInfo* ICollection_t576_il2cpp_TypeInfo_var; extern "C" Object_t * KeyCollection_System_Collections_ICollection_get_SyncRoot_m9131_gshared (KeyCollection_t1518 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ICollection_t576_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(234); s_Il2CppMethodIntialized = true; } { Dictionary_2_t1515 * L_0 = (Dictionary_2_t1515 *)(__this->___dictionary_0); NullCheck((Object_t *)L_0); Object_t * L_1 = (Object_t *)InterfaceFuncInvoker0< Object_t * >::Invoke(1 /* System.Object System.Collections.ICollection::get_SyncRoot() */, ICollection_t576_il2cpp_TypeInfo_var, (Object_t *)L_0); return L_1; } } // System.Void System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Int32>::CopyTo(TKey[],System.Int32) extern "C" void KeyCollection_CopyTo_m9132_gshared (KeyCollection_t1518 * __this, ObjectU5BU5D_t207* ___array, int32_t ___index, const MethodInfo* method) { { Dictionary_2_t1515 * L_0 = (Dictionary_2_t1515 *)(__this->___dictionary_0); ObjectU5BU5D_t207* L_1 = ___array; int32_t L_2 = ___index; NullCheck((Dictionary_2_t1515 *)L_0); (( void (*) (Dictionary_2_t1515 *, Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((Dictionary_2_t1515 *)L_0, (Array_t *)(Array_t *)L_1, (int32_t)L_2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); Dictionary_2_t1515 * L_3 = (Dictionary_2_t1515 *)(__this->___dictionary_0); ObjectU5BU5D_t207* L_4 = ___array; int32_t L_5 = ___index; IntPtr_t L_6 = { (void*)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6) }; Transform_1_t1521 * L_7 = (Transform_1_t1521 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); (( void (*) (Transform_1_t1521 *, Object_t *, IntPtr_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)(L_7, (Object_t *)NULL, (IntPtr_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); NullCheck((Dictionary_2_t1515 *)L_3); (( void (*) (Dictionary_2_t1515 *, ObjectU5BU5D_t207*, int32_t, Transform_1_t1521 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)->method)((Dictionary_2_t1515 *)L_3, (ObjectU5BU5D_t207*)L_4, (int32_t)L_5, (Transform_1_t1521 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)); return; } } // System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<TKey,TValue> System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Int32>::GetEnumerator() extern "C" Enumerator_t1519 KeyCollection_GetEnumerator_m9133_gshared (KeyCollection_t1518 * __this, const MethodInfo* method) { { Dictionary_2_t1515 * L_0 = (Dictionary_2_t1515 *)(__this->___dictionary_0); Enumerator_t1519 L_1 = {0}; (( void (*) (Enumerator_t1519 *, Dictionary_2_t1515 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 11)->method)(&L_1, (Dictionary_2_t1515 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 11)); return L_1; } } // System.Int32 System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Int32>::get_Count() extern "C" int32_t KeyCollection_get_Count_m9134_gshared (KeyCollection_t1518 * __this, const MethodInfo* method) { { Dictionary_2_t1515 * L_0 = (Dictionary_2_t1515 *)(__this->___dictionary_0); NullCheck((Dictionary_2_t1515 *)L_0); int32_t L_1 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(9 /* System.Int32 System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::get_Count() */, (Dictionary_2_t1515 *)L_0); return L_1; } } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<System.Object,System.Int32>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>) extern "C" void Enumerator__ctor_m9135_gshared (Enumerator_t1519 * __this, Dictionary_2_t1515 * ___host, const MethodInfo* method) { { Dictionary_2_t1515 * L_0 = ___host; NullCheck((Dictionary_2_t1515 *)L_0); Enumerator_t1520 L_1 = (( Enumerator_t1520 (*) (Dictionary_2_t1515 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1515 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); __this->___host_enumerator_0 = L_1; return; } } // System.Object System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<System.Object,System.Int32>::System.Collections.IEnumerator.get_Current() extern "C" Object_t * Enumerator_System_Collections_IEnumerator_get_Current_m9136_gshared (Enumerator_t1519 * __this, const MethodInfo* method) { { Enumerator_t1520 * L_0 = (Enumerator_t1520 *)&(__this->___host_enumerator_0); Object_t * L_1 = (( Object_t * (*) (Enumerator_t1520 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((Enumerator_t1520 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); return L_1; } } // System.Void System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<System.Object,System.Int32>::Dispose() extern "C" void Enumerator_Dispose_m9137_gshared (Enumerator_t1519 * __this, const MethodInfo* method) { { Enumerator_t1520 * L_0 = (Enumerator_t1520 *)&(__this->___host_enumerator_0); (( void (*) (Enumerator_t1520 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)->method)((Enumerator_t1520 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)); return; } } // System.Boolean System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<System.Object,System.Int32>::MoveNext() extern "C" bool Enumerator_MoveNext_m9138_gshared (Enumerator_t1519 * __this, const MethodInfo* method) { { Enumerator_t1520 * L_0 = (Enumerator_t1520 *)&(__this->___host_enumerator_0); bool L_1 = (( bool (*) (Enumerator_t1520 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((Enumerator_t1520 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); return L_1; } } // TKey System.Collections.Generic.Dictionary`2/KeyCollection/Enumerator<System.Object,System.Int32>::get_Current() extern "C" Object_t * Enumerator_get_Current_m9139_gshared (Enumerator_t1519 * __this, const MethodInfo* method) { { Enumerator_t1520 * L_0 = (Enumerator_t1520 *)&(__this->___host_enumerator_0); KeyValuePair_2_t1516 * L_1 = (KeyValuePair_2_t1516 *)&(L_0->___current_3); Object_t * L_2 = (( Object_t * (*) (KeyValuePair_2_t1516 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((KeyValuePair_2_t1516 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); return L_2; } } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Int32>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>) extern "C" void Enumerator__ctor_m9140_gshared (Enumerator_t1520 * __this, Dictionary_2_t1515 * ___dictionary, const MethodInfo* method) { { Dictionary_2_t1515 * L_0 = ___dictionary; __this->___dictionary_0 = L_0; Dictionary_2_t1515 * L_1 = ___dictionary; NullCheck(L_1); int32_t L_2 = (int32_t)(L_1->___generation_14); __this->___stamp_2 = L_2; return; } } // System.Object System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Int32>::System.Collections.IEnumerator.get_Current() extern "C" Object_t * Enumerator_System_Collections_IEnumerator_get_Current_m9141_gshared (Enumerator_t1520 * __this, const MethodInfo* method) { { (( void (*) (Enumerator_t1520 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Enumerator_t1520 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); KeyValuePair_2_t1516 L_0 = (KeyValuePair_2_t1516 )(__this->___current_3); KeyValuePair_2_t1516 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1), &L_1); return L_2; } } // System.Collections.DictionaryEntry System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Int32>::System.Collections.IDictionaryEnumerator.get_Entry() extern "C" DictionaryEntry_t567 Enumerator_System_Collections_IDictionaryEnumerator_get_Entry_m9142_gshared (Enumerator_t1520 * __this, const MethodInfo* method) { { (( void (*) (Enumerator_t1520 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Enumerator_t1520 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); KeyValuePair_2_t1516 * L_0 = (KeyValuePair_2_t1516 *)&(__this->___current_3); Object_t * L_1 = (( Object_t * (*) (KeyValuePair_2_t1516 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((KeyValuePair_2_t1516 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); KeyValuePair_2_t1516 * L_2 = (KeyValuePair_2_t1516 *)&(__this->___current_3); int32_t L_3 = (( int32_t (*) (KeyValuePair_2_t1516 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((KeyValuePair_2_t1516 *)L_2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); int32_t L_4 = L_3; Object_t * L_5 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5), &L_4); DictionaryEntry_t567 L_6 = {0}; DictionaryEntry__ctor_m2254(&L_6, (Object_t *)L_1, (Object_t *)L_5, /*hidden argument*/NULL); return L_6; } } // System.Object System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Int32>::System.Collections.IDictionaryEnumerator.get_Key() extern "C" Object_t * Enumerator_System_Collections_IDictionaryEnumerator_get_Key_m9143_gshared (Enumerator_t1520 * __this, const MethodInfo* method) { { Object_t * L_0 = (( Object_t * (*) (Enumerator_t1520 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)->method)((Enumerator_t1520 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); return L_0; } } // System.Object System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Int32>::System.Collections.IDictionaryEnumerator.get_Value() extern "C" Object_t * Enumerator_System_Collections_IDictionaryEnumerator_get_Value_m9144_gshared (Enumerator_t1520 * __this, const MethodInfo* method) { { int32_t L_0 = (( int32_t (*) (Enumerator_t1520 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)->method)((Enumerator_t1520 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); int32_t L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5), &L_1); return L_2; } } // System.Boolean System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Int32>::MoveNext() extern "C" bool Enumerator_MoveNext_m9145_gshared (Enumerator_t1520 * __this, const MethodInfo* method) { int32_t V_0 = 0; int32_t V_1 = 0; { (( void (*) (Enumerator_t1520 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)((Enumerator_t1520 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); int32_t L_0 = (int32_t)(__this->___next_1); if ((((int32_t)L_0) >= ((int32_t)0))) { goto IL_0014; } } { return 0; } IL_0014: { goto IL_007b; } IL_0019: { int32_t L_1 = (int32_t)(__this->___next_1); int32_t L_2 = (int32_t)L_1; V_1 = (int32_t)L_2; __this->___next_1 = ((int32_t)((int32_t)L_2+(int32_t)1)); int32_t L_3 = V_1; V_0 = (int32_t)L_3; Dictionary_2_t1515 * L_4 = (Dictionary_2_t1515 *)(__this->___dictionary_0); NullCheck(L_4); LinkU5BU5D_t1466* L_5 = (LinkU5BU5D_t1466*)(L_4->___linkSlots_5); int32_t L_6 = V_0; NullCheck(L_5); IL2CPP_ARRAY_BOUNDS_CHECK(L_5, L_6); int32_t L_7 = (int32_t)(((Link_t871 *)(Link_t871 *)SZArrayLdElema(L_5, L_6))->___HashCode_0); if (!((int32_t)((int32_t)L_7&(int32_t)((int32_t)-2147483648)))) { goto IL_007b; } } { Dictionary_2_t1515 * L_8 = (Dictionary_2_t1515 *)(__this->___dictionary_0); NullCheck(L_8); ObjectU5BU5D_t207* L_9 = (ObjectU5BU5D_t207*)(L_8->___keySlots_6); int32_t L_10 = V_0; NullCheck(L_9); IL2CPP_ARRAY_BOUNDS_CHECK(L_9, L_10); int32_t L_11 = L_10; Dictionary_2_t1515 * L_12 = (Dictionary_2_t1515 *)(__this->___dictionary_0); NullCheck(L_12); Int32U5BU5D_t501* L_13 = (Int32U5BU5D_t501*)(L_12->___valueSlots_7); int32_t L_14 = V_0; NullCheck(L_13); IL2CPP_ARRAY_BOUNDS_CHECK(L_13, L_14); int32_t L_15 = L_14; KeyValuePair_2_t1516 L_16 = {0}; (( void (*) (KeyValuePair_2_t1516 *, Object_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)->method)(&L_16, (Object_t *)(*(Object_t **)(Object_t **)SZArrayLdElema(L_9, L_11)), (int32_t)(*(int32_t*)(int32_t*)SZArrayLdElema(L_13, L_15)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)); __this->___current_3 = L_16; return 1; } IL_007b: { int32_t L_17 = (int32_t)(__this->___next_1); Dictionary_2_t1515 * L_18 = (Dictionary_2_t1515 *)(__this->___dictionary_0); NullCheck(L_18); int32_t L_19 = (int32_t)(L_18->___touchedSlots_8); if ((((int32_t)L_17) < ((int32_t)L_19))) { goto IL_0019; } } { __this->___next_1 = (-1); return 0; } } // System.Collections.Generic.KeyValuePair`2<TKey,TValue> System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Int32>::get_Current() extern "C" KeyValuePair_2_t1516 Enumerator_get_Current_m9146_gshared (Enumerator_t1520 * __this, const MethodInfo* method) { { KeyValuePair_2_t1516 L_0 = (KeyValuePair_2_t1516 )(__this->___current_3); return L_0; } } // TKey System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Int32>::get_CurrentKey() extern "C" Object_t * Enumerator_get_CurrentKey_m9147_gshared (Enumerator_t1520 * __this, const MethodInfo* method) { { (( void (*) (Enumerator_t1520 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Enumerator_t1520 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); KeyValuePair_2_t1516 * L_0 = (KeyValuePair_2_t1516 *)&(__this->___current_3); Object_t * L_1 = (( Object_t * (*) (KeyValuePair_2_t1516 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((KeyValuePair_2_t1516 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); return L_1; } } // TValue System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Int32>::get_CurrentValue() extern "C" int32_t Enumerator_get_CurrentValue_m9148_gshared (Enumerator_t1520 * __this, const MethodInfo* method) { { (( void (*) (Enumerator_t1520 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Enumerator_t1520 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); KeyValuePair_2_t1516 * L_0 = (KeyValuePair_2_t1516 *)&(__this->___current_3); int32_t L_1 = (( int32_t (*) (KeyValuePair_2_t1516 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((KeyValuePair_2_t1516 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); return L_1; } } // System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Int32>::VerifyState() extern TypeInfo* ObjectDisposedException_t625_il2cpp_TypeInfo_var; extern TypeInfo* InvalidOperationException_t580_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2681; extern "C" void Enumerator_VerifyState_m9149_gshared (Enumerator_t1520 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ObjectDisposedException_t625_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(396); InvalidOperationException_t580_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(236); _stringLiteral2681 = il2cpp_codegen_string_literal_from_index(2681); s_Il2CppMethodIntialized = true; } { Dictionary_2_t1515 * L_0 = (Dictionary_2_t1515 *)(__this->___dictionary_0); if (L_0) { goto IL_0012; } } { ObjectDisposedException_t625 * L_1 = (ObjectDisposedException_t625 *)il2cpp_codegen_object_new (ObjectDisposedException_t625_il2cpp_TypeInfo_var); ObjectDisposedException__ctor_m2480(L_1, (String_t*)NULL, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0012: { Dictionary_2_t1515 * L_2 = (Dictionary_2_t1515 *)(__this->___dictionary_0); NullCheck(L_2); int32_t L_3 = (int32_t)(L_2->___generation_14); int32_t L_4 = (int32_t)(__this->___stamp_2); if ((((int32_t)L_3) == ((int32_t)L_4))) { goto IL_0033; } } { InvalidOperationException_t580 * L_5 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_5, (String_t*)_stringLiteral2681, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_5); } IL_0033: { return; } } // System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Int32>::VerifyCurrent() extern TypeInfo* InvalidOperationException_t580_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2682; extern "C" void Enumerator_VerifyCurrent_m9150_gshared (Enumerator_t1520 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { InvalidOperationException_t580_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(236); _stringLiteral2682 = il2cpp_codegen_string_literal_from_index(2682); s_Il2CppMethodIntialized = true; } { (( void (*) (Enumerator_t1520 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)((Enumerator_t1520 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); int32_t L_0 = (int32_t)(__this->___next_1); if ((((int32_t)L_0) > ((int32_t)0))) { goto IL_001d; } } { InvalidOperationException_t580 * L_1 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_1, (String_t*)_stringLiteral2682, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_001d: { return; } } // System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Object,System.Int32>::Dispose() extern "C" void Enumerator_Dispose_m9151_gshared (Enumerator_t1520 * __this, const MethodInfo* method) { { __this->___dictionary_0 = (Dictionary_2_t1515 *)NULL; return; } } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Object>::.ctor(System.Object,System.IntPtr) extern "C" void Transform_1__ctor_m9152_gshared (Transform_1_t1521 * __this, Object_t * ___object, IntPtr_t ___method, const MethodInfo* method) { __this->___method_ptr_0 = (methodPointerType)((MethodInfo*)___method.___m_value_0)->method; __this->___method_3 = ___method; __this->___m_target_2 = ___object; } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Object>::Invoke(TKey,TValue) extern "C" Object_t * Transform_1_Invoke_m9153_gshared (Transform_1_t1521 * __this, Object_t * ___key, int32_t ___value, const MethodInfo* method) { if(__this->___prev_9 != NULL) { Transform_1_Invoke_m9153((Transform_1_t1521 *)__this->___prev_9,___key, ___value, method); } il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->___method_3.___m_value_0)); bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->___method_3.___m_value_0)); if (__this->___m_target_2 != NULL && ___methodIsStatic) { typedef Object_t * (*FunctionPointerType) (Object_t *, Object_t * __this, Object_t * ___key, int32_t ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(NULL,__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } else if (__this->___m_target_2 != NULL || ___methodIsStatic) { typedef Object_t * (*FunctionPointerType) (Object_t * __this, Object_t * ___key, int32_t ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } else { typedef Object_t * (*FunctionPointerType) (Object_t * __this, int32_t ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } } // System.IAsyncResult System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Object>::BeginInvoke(TKey,TValue,System.AsyncCallback,System.Object) extern TypeInfo* Int32_t327_il2cpp_TypeInfo_var; extern "C" Object_t * Transform_1_BeginInvoke_m9154_gshared (Transform_1_t1521 * __this, Object_t * ___key, int32_t ___value, AsyncCallback_t54 * ___callback, Object_t * ___object, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { Int32_t327_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(35); s_Il2CppMethodIntialized = true; } void *__d_args[3] = {0}; __d_args[0] = ___key; __d_args[1] = Box(Int32_t327_il2cpp_TypeInfo_var, &___value); return (Object_t *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)___callback, (Il2CppObject*)___object); } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Object>::EndInvoke(System.IAsyncResult) extern "C" Object_t * Transform_1_EndInvoke_m9155_gshared (Transform_1_t1521 * __this, Object_t * ___result, const MethodInfo* method) { Il2CppObject *__result = il2cpp_delegate_end_invoke((Il2CppAsyncResult*) ___result, 0); return (Object_t *)__result; } #ifndef _MSC_VER #else #endif // System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<System.Object,System.Int32> #include "mscorlib_System_Collections_Generic_Dictionary_2_ValueCollec_8.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Int32> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1_9.h" // System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Int32> #include "mscorlib_System_Collections_Generic_Dictionary_2_Transform_1_9MethodDeclarations.h" // System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<System.Object,System.Int32> #include "mscorlib_System_Collections_Generic_Dictionary_2_ValueCollec_8MethodDeclarations.h" struct Dictionary_2_t1515; struct Array_t; struct Transform_1_t1524; // Declaration System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Do_ICollectionCopyTo<System.Int32>(System.Array,System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Do_ICollectionCopyTo<System.Int32>(System.Array,System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) extern "C" void Dictionary_2_Do_ICollectionCopyTo_TisInt32_t327_m12226_gshared (Dictionary_2_t1515 * __this, Array_t * p0, int32_t p1, Transform_1_t1524 * p2, const MethodInfo* method); #define Dictionary_2_Do_ICollectionCopyTo_TisInt32_t327_m12226(__this, p0, p1, p2, method) (( void (*) (Dictionary_2_t1515 *, Array_t *, int32_t, Transform_1_t1524 *, const MethodInfo*))Dictionary_2_Do_ICollectionCopyTo_TisInt32_t327_m12226_gshared)(__this, p0, p1, p2, method) struct Dictionary_2_t1515; struct Int32U5BU5D_t501; struct Transform_1_t1524; // Declaration System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Do_CopyTo<System.Int32,System.Int32>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) // System.Void System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::Do_CopyTo<System.Int32,System.Int32>(!!1[],System.Int32,System.Collections.Generic.Dictionary`2/Transform`1<TKey,TValue,!!0>) extern "C" void Dictionary_2_Do_CopyTo_TisInt32_t327_TisInt32_t327_m12227_gshared (Dictionary_2_t1515 * __this, Int32U5BU5D_t501* p0, int32_t p1, Transform_1_t1524 * p2, const MethodInfo* method); #define Dictionary_2_Do_CopyTo_TisInt32_t327_TisInt32_t327_m12227(__this, p0, p1, p2, method) (( void (*) (Dictionary_2_t1515 *, Int32U5BU5D_t501*, int32_t, Transform_1_t1524 *, const MethodInfo*))Dictionary_2_Do_CopyTo_TisInt32_t327_TisInt32_t327_m12227_gshared)(__this, p0, p1, p2, method) // System.Void System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Int32>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>) extern TypeInfo* ArgumentNullException_t348_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral1250; extern "C" void ValueCollection__ctor_m9156_gshared (ValueCollection_t1522 * __this, Dictionary_2_t1515 * ___dictionary, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ArgumentNullException_t348_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(139); _stringLiteral1250 = il2cpp_codegen_string_literal_from_index(1250); s_Il2CppMethodIntialized = true; } { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); Dictionary_2_t1515 * L_0 = ___dictionary; if (L_0) { goto IL_0017; } } { ArgumentNullException_t348 * L_1 = (ArgumentNullException_t348 *)il2cpp_codegen_object_new (ArgumentNullException_t348_il2cpp_TypeInfo_var); ArgumentNullException__ctor_m1287(L_1, (String_t*)_stringLiteral1250, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0017: { Dictionary_2_t1515 * L_2 = ___dictionary; __this->___dictionary_0 = L_2; return; } } // System.Void System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Int32>::System.Collections.Generic.ICollection<TValue>.Add(TValue) extern TypeInfo* NotSupportedException_t582_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2680; extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Add_m9157_gshared (ValueCollection_t1522 * __this, int32_t ___item, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NotSupportedException_t582_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(248); _stringLiteral2680 = il2cpp_codegen_string_literal_from_index(2680); s_Il2CppMethodIntialized = true; } { NotSupportedException_t582 * L_0 = (NotSupportedException_t582 *)il2cpp_codegen_object_new (NotSupportedException_t582_il2cpp_TypeInfo_var); NotSupportedException__ctor_m2270(L_0, (String_t*)_stringLiteral2680, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_0); } } // System.Void System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Int32>::System.Collections.Generic.ICollection<TValue>.Clear() extern TypeInfo* NotSupportedException_t582_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2680; extern "C" void ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Clear_m9158_gshared (ValueCollection_t1522 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NotSupportedException_t582_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(248); _stringLiteral2680 = il2cpp_codegen_string_literal_from_index(2680); s_Il2CppMethodIntialized = true; } { NotSupportedException_t582 * L_0 = (NotSupportedException_t582 *)il2cpp_codegen_object_new (NotSupportedException_t582_il2cpp_TypeInfo_var); NotSupportedException__ctor_m2270(L_0, (String_t*)_stringLiteral2680, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_0); } } // System.Boolean System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Int32>::System.Collections.Generic.ICollection<TValue>.Contains(TValue) extern "C" bool ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Contains_m9159_gshared (ValueCollection_t1522 * __this, int32_t ___item, const MethodInfo* method) { { Dictionary_2_t1515 * L_0 = (Dictionary_2_t1515 *)(__this->___dictionary_0); int32_t L_1 = ___item; NullCheck((Dictionary_2_t1515 *)L_0); bool L_2 = (( bool (*) (Dictionary_2_t1515 *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1515 *)L_0, (int32_t)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); return L_2; } } // System.Boolean System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Int32>::System.Collections.Generic.ICollection<TValue>.Remove(TValue) extern TypeInfo* NotSupportedException_t582_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2680; extern "C" bool ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_Remove_m9160_gshared (ValueCollection_t1522 * __this, int32_t ___item, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { NotSupportedException_t582_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(248); _stringLiteral2680 = il2cpp_codegen_string_literal_from_index(2680); s_Il2CppMethodIntialized = true; } { NotSupportedException_t582 * L_0 = (NotSupportedException_t582 *)il2cpp_codegen_object_new (NotSupportedException_t582_il2cpp_TypeInfo_var); NotSupportedException__ctor_m2270(L_0, (String_t*)_stringLiteral2680, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_0); } } // System.Collections.Generic.IEnumerator`1<TValue> System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Int32>::System.Collections.Generic.IEnumerable<TValue>.GetEnumerator() extern "C" Object_t* ValueCollection_System_Collections_Generic_IEnumerableU3CTValueU3E_GetEnumerator_m9161_gshared (ValueCollection_t1522 * __this, const MethodInfo* method) { { NullCheck((ValueCollection_t1522 *)__this); Enumerator_t1523 L_0 = (( Enumerator_t1523 (*) (ValueCollection_t1522 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((ValueCollection_t1522 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); Enumerator_t1523 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), &L_1); return (Object_t*)L_2; } } // System.Void System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Int32>::System.Collections.ICollection.CopyTo(System.Array,System.Int32) extern "C" void ValueCollection_System_Collections_ICollection_CopyTo_m9162_gshared (ValueCollection_t1522 * __this, Array_t * ___array, int32_t ___index, const MethodInfo* method) { Int32U5BU5D_t501* V_0 = {0}; { Array_t * L_0 = ___array; V_0 = (Int32U5BU5D_t501*)((Int32U5BU5D_t501*)IsInst(L_0, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3))); Int32U5BU5D_t501* L_1 = V_0; if (!L_1) { goto IL_0016; } } { Int32U5BU5D_t501* L_2 = V_0; int32_t L_3 = ___index; NullCheck((ValueCollection_t1522 *)__this); (( void (*) (ValueCollection_t1522 *, Int32U5BU5D_t501*, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((ValueCollection_t1522 *)__this, (Int32U5BU5D_t501*)L_2, (int32_t)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); return; } IL_0016: { Dictionary_2_t1515 * L_4 = (Dictionary_2_t1515 *)(__this->___dictionary_0); Array_t * L_5 = ___array; int32_t L_6 = ___index; NullCheck((Dictionary_2_t1515 *)L_4); (( void (*) (Dictionary_2_t1515 *, Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((Dictionary_2_t1515 *)L_4, (Array_t *)L_5, (int32_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); Dictionary_2_t1515 * L_7 = (Dictionary_2_t1515 *)(__this->___dictionary_0); Array_t * L_8 = ___array; int32_t L_9 = ___index; IntPtr_t L_10 = { (void*)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6) }; Transform_1_t1524 * L_11 = (Transform_1_t1524 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); (( void (*) (Transform_1_t1524 *, Object_t *, IntPtr_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)(L_11, (Object_t *)NULL, (IntPtr_t)L_10, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); NullCheck((Dictionary_2_t1515 *)L_7); (( void (*) (Dictionary_2_t1515 *, Array_t *, int32_t, Transform_1_t1524 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)->method)((Dictionary_2_t1515 *)L_7, (Array_t *)L_8, (int32_t)L_9, (Transform_1_t1524 *)L_11, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 9)); return; } } // System.Collections.IEnumerator System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Int32>::System.Collections.IEnumerable.GetEnumerator() extern "C" Object_t * ValueCollection_System_Collections_IEnumerable_GetEnumerator_m9163_gshared (ValueCollection_t1522 * __this, const MethodInfo* method) { { NullCheck((ValueCollection_t1522 *)__this); Enumerator_t1523 L_0 = (( Enumerator_t1523 (*) (ValueCollection_t1522 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((ValueCollection_t1522 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); Enumerator_t1523 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), &L_1); return (Object_t *)L_2; } } // System.Boolean System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Int32>::System.Collections.Generic.ICollection<TValue>.get_IsReadOnly() extern "C" bool ValueCollection_System_Collections_Generic_ICollectionU3CTValueU3E_get_IsReadOnly_m9164_gshared (ValueCollection_t1522 * __this, const MethodInfo* method) { { return 1; } } // System.Object System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Int32>::System.Collections.ICollection.get_SyncRoot() extern TypeInfo* ICollection_t576_il2cpp_TypeInfo_var; extern "C" Object_t * ValueCollection_System_Collections_ICollection_get_SyncRoot_m9165_gshared (ValueCollection_t1522 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { ICollection_t576_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(234); s_Il2CppMethodIntialized = true; } { Dictionary_2_t1515 * L_0 = (Dictionary_2_t1515 *)(__this->___dictionary_0); NullCheck((Object_t *)L_0); Object_t * L_1 = (Object_t *)InterfaceFuncInvoker0< Object_t * >::Invoke(1 /* System.Object System.Collections.ICollection::get_SyncRoot() */, ICollection_t576_il2cpp_TypeInfo_var, (Object_t *)L_0); return L_1; } } // System.Void System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Int32>::CopyTo(TValue[],System.Int32) extern "C" void ValueCollection_CopyTo_m9166_gshared (ValueCollection_t1522 * __this, Int32U5BU5D_t501* ___array, int32_t ___index, const MethodInfo* method) { { Dictionary_2_t1515 * L_0 = (Dictionary_2_t1515 *)(__this->___dictionary_0); Int32U5BU5D_t501* L_1 = ___array; int32_t L_2 = ___index; NullCheck((Dictionary_2_t1515 *)L_0); (( void (*) (Dictionary_2_t1515 *, Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((Dictionary_2_t1515 *)L_0, (Array_t *)(Array_t *)L_1, (int32_t)L_2, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); Dictionary_2_t1515 * L_3 = (Dictionary_2_t1515 *)(__this->___dictionary_0); Int32U5BU5D_t501* L_4 = ___array; int32_t L_5 = ___index; IntPtr_t L_6 = { (void*)IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6) }; Transform_1_t1524 * L_7 = (Transform_1_t1524 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7)); (( void (*) (Transform_1_t1524 *, Object_t *, IntPtr_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)->method)(L_7, (Object_t *)NULL, (IntPtr_t)L_6, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 8)); NullCheck((Dictionary_2_t1515 *)L_3); (( void (*) (Dictionary_2_t1515 *, Int32U5BU5D_t501*, int32_t, Transform_1_t1524 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)->method)((Dictionary_2_t1515 *)L_3, (Int32U5BU5D_t501*)L_4, (int32_t)L_5, (Transform_1_t1524 *)L_7, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 10)); return; } } // System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Int32>::GetEnumerator() extern "C" Enumerator_t1523 ValueCollection_GetEnumerator_m9167_gshared (ValueCollection_t1522 * __this, const MethodInfo* method) { { Dictionary_2_t1515 * L_0 = (Dictionary_2_t1515 *)(__this->___dictionary_0); Enumerator_t1523 L_1 = {0}; (( void (*) (Enumerator_t1523 *, Dictionary_2_t1515 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 11)->method)(&L_1, (Dictionary_2_t1515 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 11)); return L_1; } } // System.Int32 System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Int32>::get_Count() extern "C" int32_t ValueCollection_get_Count_m9168_gshared (ValueCollection_t1522 * __this, const MethodInfo* method) { { Dictionary_2_t1515 * L_0 = (Dictionary_2_t1515 *)(__this->___dictionary_0); NullCheck((Dictionary_2_t1515 *)L_0); int32_t L_1 = (int32_t)VirtFuncInvoker0< int32_t >::Invoke(9 /* System.Int32 System.Collections.Generic.Dictionary`2<System.Object,System.Int32>::get_Count() */, (Dictionary_2_t1515 *)L_0); return L_1; } } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<System.Object,System.Int32>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>) extern "C" void Enumerator__ctor_m9169_gshared (Enumerator_t1523 * __this, Dictionary_2_t1515 * ___host, const MethodInfo* method) { { Dictionary_2_t1515 * L_0 = ___host; NullCheck((Dictionary_2_t1515 *)L_0); Enumerator_t1520 L_1 = (( Enumerator_t1520 (*) (Dictionary_2_t1515 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1515 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); __this->___host_enumerator_0 = L_1; return; } } // System.Object System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<System.Object,System.Int32>::System.Collections.IEnumerator.get_Current() extern "C" Object_t * Enumerator_System_Collections_IEnumerator_get_Current_m9170_gshared (Enumerator_t1523 * __this, const MethodInfo* method) { { Enumerator_t1520 * L_0 = (Enumerator_t1520 *)&(__this->___host_enumerator_0); int32_t L_1 = (( int32_t (*) (Enumerator_t1520 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((Enumerator_t1520 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); int32_t L_2 = L_1; Object_t * L_3 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), &L_2); return L_3; } } // System.Void System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<System.Object,System.Int32>::Dispose() extern "C" void Enumerator_Dispose_m9171_gshared (Enumerator_t1523 * __this, const MethodInfo* method) { { Enumerator_t1520 * L_0 = (Enumerator_t1520 *)&(__this->___host_enumerator_0); (( void (*) (Enumerator_t1520 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)->method)((Enumerator_t1520 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)); return; } } // System.Boolean System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<System.Object,System.Int32>::MoveNext() extern "C" bool Enumerator_MoveNext_m9172_gshared (Enumerator_t1523 * __this, const MethodInfo* method) { { Enumerator_t1520 * L_0 = (Enumerator_t1520 *)&(__this->___host_enumerator_0); bool L_1 = (( bool (*) (Enumerator_t1520 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((Enumerator_t1520 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); return L_1; } } // TValue System.Collections.Generic.Dictionary`2/ValueCollection/Enumerator<System.Object,System.Int32>::get_Current() extern "C" int32_t Enumerator_get_Current_m9173_gshared (Enumerator_t1523 * __this, const MethodInfo* method) { { Enumerator_t1520 * L_0 = (Enumerator_t1520 *)&(__this->___host_enumerator_0); KeyValuePair_2_t1516 * L_1 = (KeyValuePair_2_t1516 *)&(L_0->___current_3); int32_t L_2 = (( int32_t (*) (KeyValuePair_2_t1516 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)((KeyValuePair_2_t1516 *)L_1, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)); return L_2; } } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Int32>::.ctor(System.Object,System.IntPtr) extern "C" void Transform_1__ctor_m9174_gshared (Transform_1_t1524 * __this, Object_t * ___object, IntPtr_t ___method, const MethodInfo* method) { __this->___method_ptr_0 = (methodPointerType)((MethodInfo*)___method.___m_value_0)->method; __this->___method_3 = ___method; __this->___m_target_2 = ___object; } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Int32>::Invoke(TKey,TValue) extern "C" int32_t Transform_1_Invoke_m9175_gshared (Transform_1_t1524 * __this, Object_t * ___key, int32_t ___value, const MethodInfo* method) { if(__this->___prev_9 != NULL) { Transform_1_Invoke_m9175((Transform_1_t1524 *)__this->___prev_9,___key, ___value, method); } il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->___method_3.___m_value_0)); bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->___method_3.___m_value_0)); if (__this->___m_target_2 != NULL && ___methodIsStatic) { typedef int32_t (*FunctionPointerType) (Object_t *, Object_t * __this, Object_t * ___key, int32_t ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(NULL,__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } else if (__this->___m_target_2 != NULL || ___methodIsStatic) { typedef int32_t (*FunctionPointerType) (Object_t * __this, Object_t * ___key, int32_t ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } else { typedef int32_t (*FunctionPointerType) (Object_t * __this, int32_t ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } } // System.IAsyncResult System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Int32>::BeginInvoke(TKey,TValue,System.AsyncCallback,System.Object) extern TypeInfo* Int32_t327_il2cpp_TypeInfo_var; extern "C" Object_t * Transform_1_BeginInvoke_m9176_gshared (Transform_1_t1524 * __this, Object_t * ___key, int32_t ___value, AsyncCallback_t54 * ___callback, Object_t * ___object, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { Int32_t327_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(35); s_Il2CppMethodIntialized = true; } void *__d_args[3] = {0}; __d_args[0] = ___key; __d_args[1] = Box(Int32_t327_il2cpp_TypeInfo_var, &___value); return (Object_t *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)___callback, (Il2CppObject*)___object); } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Int32>::EndInvoke(System.IAsyncResult) extern "C" int32_t Transform_1_EndInvoke_m9177_gshared (Transform_1_t1524 * __this, Object_t * ___result, const MethodInfo* method) { Il2CppObject *__result = il2cpp_delegate_end_invoke((Il2CppAsyncResult*) ___result, 0); return *(int32_t*)UnBox ((Il2CppCodeGenObject*)__result); } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Collections.DictionaryEntry>::.ctor(System.Object,System.IntPtr) extern "C" void Transform_1__ctor_m9178_gshared (Transform_1_t1514 * __this, Object_t * ___object, IntPtr_t ___method, const MethodInfo* method) { __this->___method_ptr_0 = (methodPointerType)((MethodInfo*)___method.___m_value_0)->method; __this->___method_3 = ___method; __this->___m_target_2 = ___object; } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Collections.DictionaryEntry>::Invoke(TKey,TValue) extern "C" DictionaryEntry_t567 Transform_1_Invoke_m9179_gshared (Transform_1_t1514 * __this, Object_t * ___key, int32_t ___value, const MethodInfo* method) { if(__this->___prev_9 != NULL) { Transform_1_Invoke_m9179((Transform_1_t1514 *)__this->___prev_9,___key, ___value, method); } il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->___method_3.___m_value_0)); bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->___method_3.___m_value_0)); if (__this->___m_target_2 != NULL && ___methodIsStatic) { typedef DictionaryEntry_t567 (*FunctionPointerType) (Object_t *, Object_t * __this, Object_t * ___key, int32_t ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(NULL,__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } else if (__this->___m_target_2 != NULL || ___methodIsStatic) { typedef DictionaryEntry_t567 (*FunctionPointerType) (Object_t * __this, Object_t * ___key, int32_t ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } else { typedef DictionaryEntry_t567 (*FunctionPointerType) (Object_t * __this, int32_t ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } } // System.IAsyncResult System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Collections.DictionaryEntry>::BeginInvoke(TKey,TValue,System.AsyncCallback,System.Object) extern TypeInfo* Int32_t327_il2cpp_TypeInfo_var; extern "C" Object_t * Transform_1_BeginInvoke_m9180_gshared (Transform_1_t1514 * __this, Object_t * ___key, int32_t ___value, AsyncCallback_t54 * ___callback, Object_t * ___object, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { Int32_t327_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(35); s_Il2CppMethodIntialized = true; } void *__d_args[3] = {0}; __d_args[0] = ___key; __d_args[1] = Box(Int32_t327_il2cpp_TypeInfo_var, &___value); return (Object_t *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)___callback, (Il2CppObject*)___object); } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Collections.DictionaryEntry>::EndInvoke(System.IAsyncResult) extern "C" DictionaryEntry_t567 Transform_1_EndInvoke_m9181_gshared (Transform_1_t1514 * __this, Object_t * ___result, const MethodInfo* method) { Il2CppObject *__result = il2cpp_delegate_end_invoke((Il2CppAsyncResult*) ___result, 0); return *(DictionaryEntry_t567 *)UnBox ((Il2CppCodeGenObject*)__result); } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>>::.ctor(System.Object,System.IntPtr) extern "C" void Transform_1__ctor_m9182_gshared (Transform_1_t1525 * __this, Object_t * ___object, IntPtr_t ___method, const MethodInfo* method) { __this->___method_ptr_0 = (methodPointerType)((MethodInfo*)___method.___m_value_0)->method; __this->___method_3 = ___method; __this->___m_target_2 = ___object; } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>>::Invoke(TKey,TValue) extern "C" KeyValuePair_2_t1516 Transform_1_Invoke_m9183_gshared (Transform_1_t1525 * __this, Object_t * ___key, int32_t ___value, const MethodInfo* method) { if(__this->___prev_9 != NULL) { Transform_1_Invoke_m9183((Transform_1_t1525 *)__this->___prev_9,___key, ___value, method); } il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->___method_3.___m_value_0)); bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->___method_3.___m_value_0)); if (__this->___m_target_2 != NULL && ___methodIsStatic) { typedef KeyValuePair_2_t1516 (*FunctionPointerType) (Object_t *, Object_t * __this, Object_t * ___key, int32_t ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(NULL,__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } else if (__this->___m_target_2 != NULL || ___methodIsStatic) { typedef KeyValuePair_2_t1516 (*FunctionPointerType) (Object_t * __this, Object_t * ___key, int32_t ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(__this->___m_target_2,___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } else { typedef KeyValuePair_2_t1516 (*FunctionPointerType) (Object_t * __this, int32_t ___value, const MethodInfo* method); return ((FunctionPointerType)__this->___method_ptr_0)(___key, ___value,(MethodInfo*)(__this->___method_3.___m_value_0)); } } // System.IAsyncResult System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>>::BeginInvoke(TKey,TValue,System.AsyncCallback,System.Object) extern TypeInfo* Int32_t327_il2cpp_TypeInfo_var; extern "C" Object_t * Transform_1_BeginInvoke_m9184_gshared (Transform_1_t1525 * __this, Object_t * ___key, int32_t ___value, AsyncCallback_t54 * ___callback, Object_t * ___object, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { Int32_t327_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(35); s_Il2CppMethodIntialized = true; } void *__d_args[3] = {0}; __d_args[0] = ___key; __d_args[1] = Box(Int32_t327_il2cpp_TypeInfo_var, &___value); return (Object_t *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)___callback, (Il2CppObject*)___object); } // TRet System.Collections.Generic.Dictionary`2/Transform`1<System.Object,System.Int32,System.Collections.Generic.KeyValuePair`2<System.Object,System.Int32>>::EndInvoke(System.IAsyncResult) extern "C" KeyValuePair_2_t1516 Transform_1_EndInvoke_m9185_gshared (Transform_1_t1525 * __this, Object_t * ___result, const MethodInfo* method) { Il2CppObject *__result = il2cpp_delegate_end_invoke((Il2CppAsyncResult*) ___result, 0); return *(KeyValuePair_2_t1516 *)UnBox ((Il2CppCodeGenObject*)__result); } #ifndef _MSC_VER #else #endif // System.Void System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Object,System.Int32>::.ctor(System.Collections.Generic.Dictionary`2<TKey,TValue>) extern "C" void ShimEnumerator__ctor_m9186_gshared (ShimEnumerator_t1526 * __this, Dictionary_2_t1515 * ___host, const MethodInfo* method) { { NullCheck((Object_t *)__this); Object__ctor_m1185((Object_t *)__this, /*hidden argument*/NULL); Dictionary_2_t1515 * L_0 = ___host; NullCheck((Dictionary_2_t1515 *)L_0); Enumerator_t1520 L_1 = (( Enumerator_t1520 (*) (Dictionary_2_t1515 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((Dictionary_2_t1515 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); __this->___host_enumerator_0 = L_1; return; } } // System.Boolean System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Object,System.Int32>::MoveNext() extern "C" bool ShimEnumerator_MoveNext_m9187_gshared (ShimEnumerator_t1526 * __this, const MethodInfo* method) { { Enumerator_t1520 * L_0 = (Enumerator_t1520 *)&(__this->___host_enumerator_0); bool L_1 = (( bool (*) (Enumerator_t1520 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)->method)((Enumerator_t1520 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)); return L_1; } } // System.Collections.DictionaryEntry System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Object,System.Int32>::get_Entry() extern TypeInfo* IDictionaryEnumerator_t566_il2cpp_TypeInfo_var; extern "C" DictionaryEntry_t567 ShimEnumerator_get_Entry_m9188_gshared (ShimEnumerator_t1526 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { IDictionaryEnumerator_t566_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(274); s_Il2CppMethodIntialized = true; } { Enumerator_t1520 L_0 = (Enumerator_t1520 )(__this->___host_enumerator_0); Enumerator_t1520 L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2), &L_1); NullCheck((Object_t *)L_2); DictionaryEntry_t567 L_3 = (DictionaryEntry_t567 )InterfaceFuncInvoker0< DictionaryEntry_t567 >::Invoke(0 /* System.Collections.DictionaryEntry System.Collections.IDictionaryEnumerator::get_Entry() */, IDictionaryEnumerator_t566_il2cpp_TypeInfo_var, (Object_t *)L_2); return L_3; } } // System.Object System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Object,System.Int32>::get_Key() extern "C" Object_t * ShimEnumerator_get_Key_m9189_gshared (ShimEnumerator_t1526 * __this, const MethodInfo* method) { KeyValuePair_2_t1516 V_0 = {0}; { Enumerator_t1520 * L_0 = (Enumerator_t1520 *)&(__this->___host_enumerator_0); KeyValuePair_2_t1516 L_1 = (( KeyValuePair_2_t1516 (*) (Enumerator_t1520 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)->method)((Enumerator_t1520 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)); V_0 = (KeyValuePair_2_t1516 )L_1; Object_t * L_2 = (( Object_t * (*) (KeyValuePair_2_t1516 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)->method)((KeyValuePair_2_t1516 *)(&V_0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4)); return L_2; } } // System.Object System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Object,System.Int32>::get_Value() extern "C" Object_t * ShimEnumerator_get_Value_m9190_gshared (ShimEnumerator_t1526 * __this, const MethodInfo* method) { KeyValuePair_2_t1516 V_0 = {0}; { Enumerator_t1520 * L_0 = (Enumerator_t1520 *)&(__this->___host_enumerator_0); KeyValuePair_2_t1516 L_1 = (( KeyValuePair_2_t1516 (*) (Enumerator_t1520 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)->method)((Enumerator_t1520 *)L_0, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)); V_0 = (KeyValuePair_2_t1516 )L_1; int32_t L_2 = (( int32_t (*) (KeyValuePair_2_t1516 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)->method)((KeyValuePair_2_t1516 *)(&V_0), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 6)); int32_t L_3 = L_2; Object_t * L_4 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 7), &L_3); return L_4; } } // System.Object System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Object,System.Int32>::get_Current() extern TypeInfo* DictionaryEntry_t567_il2cpp_TypeInfo_var; extern "C" Object_t * ShimEnumerator_get_Current_m9191_gshared (ShimEnumerator_t1526 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { DictionaryEntry_t567_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(237); s_Il2CppMethodIntialized = true; } { NullCheck((ShimEnumerator_t1526 *)__this); DictionaryEntry_t567 L_0 = (DictionaryEntry_t567 )VirtFuncInvoker0< DictionaryEntry_t567 >::Invoke(6 /* System.Collections.DictionaryEntry System.Collections.Generic.Dictionary`2/ShimEnumerator<System.Object,System.Int32>::get_Entry() */, (ShimEnumerator_t1526 *)__this); DictionaryEntry_t567 L_1 = L_0; Object_t * L_2 = Box(DictionaryEntry_t567_il2cpp_TypeInfo_var, &L_1); return L_2; } } #ifndef _MSC_VER #else #endif // System.Byte #include "mscorlib_System_Byte.h" // System.Array/InternalEnumerator`1<System.Byte> #include "mscorlib_System_Array_InternalEnumerator_1_gen_21.h" #ifndef _MSC_VER #else #endif // System.Array/InternalEnumerator`1<System.Byte> #include "mscorlib_System_Array_InternalEnumerator_1_gen_21MethodDeclarations.h" struct Array_t; // Declaration !!0 System.Array::InternalArray__get_Item<System.Byte>(System.Int32) // !!0 System.Array::InternalArray__get_Item<System.Byte>(System.Int32) extern "C" uint8_t Array_InternalArray__get_Item_TisByte_t333_m12233_gshared (Array_t * __this, int32_t p0, const MethodInfo* method); #define Array_InternalArray__get_Item_TisByte_t333_m12233(__this, p0, method) (( uint8_t (*) (Array_t *, int32_t, const MethodInfo*))Array_InternalArray__get_Item_TisByte_t333_m12233_gshared)(__this, p0, method) // System.Void System.Array/InternalEnumerator`1<System.Byte>::.ctor(System.Array) extern "C" void InternalEnumerator_1__ctor_m9331_gshared (InternalEnumerator_1_t1534 * __this, Array_t * ___array, const MethodInfo* method) { { Array_t * L_0 = ___array; __this->___array_0 = L_0; __this->___idx_1 = ((int32_t)-2); return; } } // System.Object System.Array/InternalEnumerator`1<System.Byte>::System.Collections.IEnumerator.get_Current() extern "C" Object_t * InternalEnumerator_1_System_Collections_IEnumerator_get_Current_m9332_gshared (InternalEnumerator_1_t1534 * __this, const MethodInfo* method) { { uint8_t L_0 = (( uint8_t (*) (InternalEnumerator_1_t1534 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)->method)((InternalEnumerator_1_t1534 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)); uint8_t L_1 = L_0; Object_t * L_2 = Box(IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1), &L_1); return L_2; } } // System.Void System.Array/InternalEnumerator`1<System.Byte>::Dispose() extern "C" void InternalEnumerator_1_Dispose_m9333_gshared (InternalEnumerator_1_t1534 * __this, const MethodInfo* method) { { __this->___idx_1 = ((int32_t)-2); return; } } // System.Boolean System.Array/InternalEnumerator`1<System.Byte>::MoveNext() extern "C" bool InternalEnumerator_1_MoveNext_m9334_gshared (InternalEnumerator_1_t1534 * __this, const MethodInfo* method) { int32_t V_0 = 0; int32_t G_B5_0 = 0; { int32_t L_0 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_0) == ((uint32_t)((int32_t)-2))))) { goto IL_001e; } } { Array_t * L_1 = (Array_t *)(__this->___array_0); NullCheck((Array_t *)L_1); int32_t L_2 = Array_get_Length_m2256((Array_t *)L_1, /*hidden argument*/NULL); __this->___idx_1 = L_2; } IL_001e: { int32_t L_3 = (int32_t)(__this->___idx_1); if ((((int32_t)L_3) == ((int32_t)(-1)))) { goto IL_0043; } } { int32_t L_4 = (int32_t)(__this->___idx_1); int32_t L_5 = (int32_t)((int32_t)((int32_t)L_4-(int32_t)1)); V_0 = (int32_t)L_5; __this->___idx_1 = L_5; int32_t L_6 = V_0; G_B5_0 = ((((int32_t)((((int32_t)L_6) == ((int32_t)(-1)))? 1 : 0)) == ((int32_t)0))? 1 : 0); goto IL_0044; } IL_0043: { G_B5_0 = 0; } IL_0044: { return G_B5_0; } } // T System.Array/InternalEnumerator`1<System.Byte>::get_Current() extern TypeInfo* InvalidOperationException_t580_il2cpp_TypeInfo_var; extern Il2CppCodeGenString* _stringLiteral2671; extern Il2CppCodeGenString* _stringLiteral2672; extern "C" uint8_t InternalEnumerator_1_get_Current_m9335_gshared (InternalEnumerator_1_t1534 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { InvalidOperationException_t580_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(236); _stringLiteral2671 = il2cpp_codegen_string_literal_from_index(2671); _stringLiteral2672 = il2cpp_codegen_string_literal_from_index(2672); s_Il2CppMethodIntialized = true; } { int32_t L_0 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_0) == ((uint32_t)((int32_t)-2))))) { goto IL_0018; } } { InvalidOperationException_t580 * L_1 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_1, (String_t*)_stringLiteral2671, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_1); } IL_0018: { int32_t L_2 = (int32_t)(__this->___idx_1); if ((!(((uint32_t)L_2) == ((uint32_t)(-1))))) { goto IL_002f; } } { InvalidOperationException_t580 * L_3 = (InvalidOperationException_t580 *)il2cpp_codegen_object_new (InvalidOperationException_t580_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m2253(L_3, (String_t*)_stringLiteral2672, /*hidden argument*/NULL); il2cpp_codegen_raise_exception(L_3); } IL_002f: { Array_t * L_4 = (Array_t *)(__this->___array_0); Array_t * L_5 = (Array_t *)(__this->___array_0); NullCheck((Array_t *)L_5); int32_t L_6 = Array_get_Length_m2256((Array_t *)L_5, /*hidden argument*/NULL); int32_t L_7 = (int32_t)(__this->___idx_1); NullCheck((Array_t *)L_4); uint8_t L_8 = (( uint8_t (*) (Array_t *, int32_t, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)->method)((Array_t *)L_4, (int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_6-(int32_t)1))-(int32_t)L_7)), /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)); return L_8; } } #ifndef _MSC_VER #else #endif #ifndef _MSC_VER #else #endif #ifdef __clang__ #pragma clang diagnostic pop #endif
// Copyright (c) 1991-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef _gp_Elips_HeaderFile #define _gp_Elips_HeaderFile #include <gp.hxx> #include <gp_Ax1.hxx> #include <gp_Ax2.hxx> #include <gp_Pnt.hxx> #include <Standard_ConstructionError.hxx> //! Describes an ellipse in 3D space. //! An ellipse is defined by its major and minor radii and //! positioned in space with a coordinate system (a gp_Ax2 object) as follows: //! - the origin of the coordinate system is the center of the ellipse, //! - its "X Direction" defines the major axis of the ellipse, and //! - its "Y Direction" defines the minor axis of the ellipse. //! Together, the origin, "X Direction" and "Y Direction" of //! this coordinate system define the plane of the ellipse. //! This coordinate system is the "local coordinate system" //! of the ellipse. In this coordinate system, the equation of //! the ellipse is: //! @code //! X*X / (MajorRadius**2) + Y*Y / (MinorRadius**2) = 1.0 //! @endcode //! The "main Direction" of the local coordinate system gives //! the normal vector to the plane of the ellipse. This vector //! gives an implicit orientation to the ellipse (definition of the //! trigonometric sense). We refer to the "main Axis" of the //! local coordinate system as the "Axis" of the ellipse. //! See Also //! gce_MakeElips which provides functions for more //! complex ellipse constructions //! Geom_Ellipse which provides additional functions for //! constructing ellipses and works, in particular, with the //! parametric equations of ellipses class gp_Elips { public: DEFINE_STANDARD_ALLOC //! Creates an indefinite ellipse. gp_Elips() : majorRadius (RealLast()), minorRadius (RealSmall()) {} //! The major radius of the ellipse is on the "XAxis" and the //! minor radius is on the "YAxis" of the ellipse. The "XAxis" //! is defined with the "XDirection" of theA2 and the "YAxis" is //! defined with the "YDirection" of theA2. //! Warnings : //! It is not forbidden to create an ellipse with theMajorRadius = //! theMinorRadius. //! Raises ConstructionError if theMajorRadius < theMinorRadius or theMinorRadius < 0. gp_Elips (const gp_Ax2& theA2, const Standard_Real theMajorRadius, const Standard_Real theMinorRadius) : pos (theA2), majorRadius (theMajorRadius), minorRadius (theMinorRadius) { Standard_ConstructionError_Raise_if (theMinorRadius < 0.0 || theMajorRadius < theMinorRadius, "gp_Elips() - invalid construction parameters"); } //! Changes the axis normal to the plane of the ellipse. //! It modifies the definition of this plane. //! The "XAxis" and the "YAxis" are recomputed. //! The local coordinate system is redefined so that: //! - its origin and "main Direction" become those of the //! axis theA1 (the "X Direction" and "Y Direction" are then //! recomputed in the same way as for any gp_Ax2), or //! Raises ConstructionError if the direction of theA1 //! is parallel to the direction of the "XAxis" of the ellipse. void SetAxis (const gp_Ax1& theA1) { pos.SetAxis (theA1); } //! Modifies this ellipse, by redefining its local coordinate //! so that its origin becomes theP. void SetLocation (const gp_Pnt& theP) { pos.SetLocation (theP); } //! The major radius of the ellipse is on the "XAxis" (major axis) //! of the ellipse. //! Raises ConstructionError if theMajorRadius < MinorRadius. void SetMajorRadius (const Standard_Real theMajorRadius) { Standard_ConstructionError_Raise_if (theMajorRadius < minorRadius, "gp_Elips::SetMajorRadius() - major radius should be greater or equal to minor radius"); majorRadius = theMajorRadius; } //! The minor radius of the ellipse is on the "YAxis" (minor axis) //! of the ellipse. //! Raises ConstructionError if theMinorRadius > MajorRadius or MinorRadius < 0. void SetMinorRadius (const Standard_Real theMinorRadius) { Standard_ConstructionError_Raise_if (theMinorRadius < 0.0 || majorRadius < theMinorRadius, "gp_Elips::SetMinorRadius() - minor radius should be a positive number lesser or equal to major radius"); minorRadius = theMinorRadius; } //! Modifies this ellipse, by redefining its local coordinate //! so that it becomes theA2. void SetPosition (const gp_Ax2& theA2) { pos = theA2; } //! Computes the area of the Ellipse. Standard_Real Area() const { return M_PI * majorRadius * minorRadius; } //! Computes the axis normal to the plane of the ellipse. const gp_Ax1& Axis() const { return pos.Axis(); } //! Computes the first or second directrix of this ellipse. //! These are the lines, in the plane of the ellipse, normal to //! the major axis, at a distance equal to //! MajorRadius/e from the center of the ellipse, where //! e is the eccentricity of the ellipse. //! The first directrix (Directrix1) is on the positive side of //! the major axis. The second directrix (Directrix2) is on //! the negative side. //! The directrix is returned as an axis (gp_Ax1 object), the //! origin of which is situated on the "X Axis" of the local //! coordinate system of this ellipse. //! Exceptions //! Standard_ConstructionError if the eccentricity is null //! (the ellipse has degenerated into a circle). gp_Ax1 Directrix1() const; //! This line is obtained by the symmetrical transformation //! of "Directrix1" with respect to the "YAxis" of the ellipse. //! Exceptions //! Standard_ConstructionError if the eccentricity is null //! (the ellipse has degenerated into a circle). gp_Ax1 Directrix2() const; //! Returns the eccentricity of the ellipse between 0.0 and 1.0 //! If f is the distance between the center of the ellipse and //! the Focus1 then the eccentricity e = f / MajorRadius. //! Raises ConstructionError if MajorRadius = 0.0 Standard_Real Eccentricity() const; //! Computes the focal distance. It is the distance between the //! two focus focus1 and focus2 of the ellipse. Standard_Real Focal() const { return 2.0 * sqrt (majorRadius * majorRadius - minorRadius * minorRadius); } //! Returns the first focus of the ellipse. This focus is on the //! positive side of the "XAxis" of the ellipse. gp_Pnt Focus1() const; //! Returns the second focus of the ellipse. This focus is on the //! negative side of the "XAxis" of the ellipse. gp_Pnt Focus2() const; //! Returns the center of the ellipse. It is the "Location" //! point of the coordinate system of the ellipse. const gp_Pnt& Location() const { return pos.Location(); } //! Returns the major radius of the ellipse. Standard_Real MajorRadius() const { return majorRadius; } //! Returns the minor radius of the ellipse. Standard_Real MinorRadius() const { return minorRadius; } //! Returns p = (1 - e * e) * MajorRadius where e is the eccentricity //! of the ellipse. //! Returns 0 if MajorRadius = 0 Standard_Real Parameter() const; //! Returns the coordinate system of the ellipse. const gp_Ax2& Position() const { return pos; } //! Returns the "XAxis" of the ellipse whose origin //! is the center of this ellipse. It is the major axis of the //! ellipse. gp_Ax1 XAxis() const { return gp_Ax1 (pos.Location(), pos.XDirection()); } //! Returns the "YAxis" of the ellipse whose unit vector is the "X Direction" or the "Y Direction" //! of the local coordinate system of this ellipse. //! This is the minor axis of the ellipse. gp_Ax1 YAxis() const { return gp_Ax1 (pos.Location(), pos.YDirection()); } Standard_EXPORT void Mirror (const gp_Pnt& theP); //! Performs the symmetrical transformation of an ellipse with //! respect to the point theP which is the center of the symmetry. Standard_NODISCARD Standard_EXPORT gp_Elips Mirrored (const gp_Pnt& theP) const; Standard_EXPORT void Mirror (const gp_Ax1& theA1); //! Performs the symmetrical transformation of an ellipse with //! respect to an axis placement which is the axis of the symmetry. Standard_NODISCARD Standard_EXPORT gp_Elips Mirrored (const gp_Ax1& theA1) const; Standard_EXPORT void Mirror (const gp_Ax2& theA2); //! Performs the symmetrical transformation of an ellipse with //! respect to a plane. The axis placement theA2 locates the plane //! of the symmetry (Location, XDirection, YDirection). Standard_NODISCARD Standard_EXPORT gp_Elips Mirrored (const gp_Ax2& theA2) const; void Rotate (const gp_Ax1& theA1, const Standard_Real theAng) { pos.Rotate (theA1, theAng); } //! Rotates an ellipse. theA1 is the axis of the rotation. //! theAng is the angular value of the rotation in radians. Standard_NODISCARD gp_Elips Rotated (const gp_Ax1& theA1, const Standard_Real theAng) const { gp_Elips anE = *this; anE.pos.Rotate (theA1, theAng); return anE; } void Scale (const gp_Pnt& theP, const Standard_Real theS); //! Scales an ellipse. theS is the scaling value. Standard_NODISCARD gp_Elips Scaled (const gp_Pnt& theP, const Standard_Real theS) const; void Transform (const gp_Trsf& theT); //! Transforms an ellipse with the transformation theT from class Trsf. Standard_NODISCARD gp_Elips Transformed (const gp_Trsf& theT) const; void Translate (const gp_Vec& theV) { pos.Translate (theV); } //! Translates an ellipse in the direction of the vector theV. //! The magnitude of the translation is the vector's magnitude. Standard_NODISCARD gp_Elips Translated (const gp_Vec& theV) const { gp_Elips anE = *this; anE.pos.Translate (theV); return anE; } void Translate (const gp_Pnt& theP1, const gp_Pnt& theP2) { pos.Translate (theP1, theP2); } //! Translates an ellipse from the point theP1 to the point theP2. Standard_NODISCARD gp_Elips Translated (const gp_Pnt& theP1, const gp_Pnt& theP2) const { gp_Elips anE = *this; anE.pos.Translate (theP1, theP2); return anE; } private: gp_Ax2 pos; Standard_Real majorRadius; Standard_Real minorRadius; }; // ======================================================================= // function : Directrix1 // purpose : // ======================================================================= inline gp_Ax1 gp_Elips::Directrix1() const { Standard_Real anE = Eccentricity(); Standard_ConstructionError_Raise_if (anE <= gp::Resolution(), "gp_Elips::Directrix1() - zero eccentricity"); gp_XYZ anOrig = pos.XDirection().XYZ(); anOrig.Multiply (majorRadius / anE); anOrig.Add (pos.Location().XYZ()); return gp_Ax1 (gp_Pnt (anOrig), pos.YDirection()); } // ======================================================================= // function : Directrix2 // purpose : // ======================================================================= inline gp_Ax1 gp_Elips::Directrix2() const { Standard_Real anE = Eccentricity(); Standard_ConstructionError_Raise_if (anE <= gp::Resolution(), "gp_Elips::Directrix2() - zero eccentricity"); gp_XYZ anOrig = pos.XDirection().XYZ(); anOrig.Multiply (-majorRadius / anE); anOrig.Add (pos.Location().XYZ()); return gp_Ax1 (gp_Pnt (anOrig), pos.YDirection()); } // ======================================================================= // function : Eccentricity // purpose : // ======================================================================= inline Standard_Real gp_Elips::Eccentricity() const { if (majorRadius == 0.0) { return 0.0; } else { return sqrt (majorRadius * majorRadius - minorRadius * minorRadius) / majorRadius; } } // ======================================================================= // function : Focus1 // purpose : // ======================================================================= inline gp_Pnt gp_Elips::Focus1() const { Standard_Real aC = sqrt (majorRadius * majorRadius - minorRadius * minorRadius); const gp_Pnt& aPP = pos.Location(); const gp_Dir& aDD = pos.XDirection(); return gp_Pnt (aPP.X() + aC * aDD.X(), aPP.Y() + aC * aDD.Y(), aPP.Z() + aC * aDD.Z()); } // ======================================================================= // function : Focus2 // purpose : // ======================================================================= inline gp_Pnt gp_Elips::Focus2() const { Standard_Real aC = sqrt (majorRadius * majorRadius - minorRadius * minorRadius); const gp_Pnt& aPP = pos.Location(); const gp_Dir& aDD = pos.XDirection(); return gp_Pnt (aPP.X() - aC * aDD.X(), aPP.Y() - aC * aDD.Y(), aPP.Z() - aC * aDD.Z()); } // ======================================================================= // function : Parameter // purpose : // ======================================================================= inline Standard_Real gp_Elips::Parameter() const { if (majorRadius == 0.0) { return 0.0; } else { return (minorRadius * minorRadius) / majorRadius; } } // ======================================================================= // function : Scale // purpose : // ======================================================================= inline void gp_Elips::Scale (const gp_Pnt& theP, const Standard_Real theS) // Modified by skv - Fri Apr 8 10:28:10 2005 OCC8559 Begin // { pos.Scale(P, S); } { majorRadius *= theS; if (majorRadius < 0) { majorRadius = -majorRadius; } minorRadius *= theS; if (minorRadius < 0) { minorRadius = -minorRadius; } pos.Scale (theP, theS); } // Modified by skv - Fri Apr 8 10:28:10 2005 OCC8559 End // ======================================================================= // function : Scaled // purpose : // ======================================================================= inline gp_Elips gp_Elips::Scaled (const gp_Pnt& theP, const Standard_Real theS) const { gp_Elips anE = *this; anE.majorRadius *= theS; if (anE.majorRadius < 0) { anE.majorRadius = -anE.majorRadius; } anE.minorRadius *= theS; if (anE.minorRadius < 0) { anE.minorRadius = -anE.minorRadius; } anE.pos.Scale (theP, theS); return anE; } // ======================================================================= // function : Transform // purpose : // ======================================================================= inline void gp_Elips::Transform (const gp_Trsf& theT) { majorRadius *= theT.ScaleFactor(); if (majorRadius < 0) { majorRadius = -majorRadius; } minorRadius *= theT.ScaleFactor(); if (minorRadius < 0) { minorRadius = -minorRadius; } pos.Transform (theT); } // ======================================================================= // function : Transformed // purpose : // ======================================================================= inline gp_Elips gp_Elips::Transformed (const gp_Trsf& theT) const { gp_Elips anE = *this; anE.majorRadius *= theT.ScaleFactor(); if (anE.majorRadius < 0) { anE.majorRadius = -anE.majorRadius; } anE.minorRadius *= theT.ScaleFactor(); if (anE.minorRadius < 0) { anE.minorRadius = -anE.minorRadius; } anE.pos.Transform (theT); return anE; } #endif // _gp_Elips_HeaderFile
#ifndef __CTRL_BROWSERRO_H #define __CTRL_BROWSERRO_H #include "CtrlBrowser.h" namespace wh { //--------------------------------------------------------------------------- class CtrlTableObjBrowser_RO final : public CtrlWindowBase<IViewTableBrowser, ModelBrowser> { sig::scoped_connection connModel_BeforeRefreshCls; sig::scoped_connection connModel_AfterRefreshCls; sig::scoped_connection connModel_ObjOperation; sig::scoped_connection connViewCmd_UpdatedQty; public: CtrlTableObjBrowser_RO(const std::shared_ptr<IViewTableBrowser>& view , const std::shared_ptr<ModelBrowser>& model) : CtrlWindowBase(view, model) { namespace ph = std::placeholders; connModel_BeforeRefreshCls = mModel->sigBeforeRefreshCls .connect(std::bind(&T_View::SetBeforeRefreshCls , mView.get(), ph::_1, ph::_2, ph::_3, ph::_4, ph::_5)); connModel_AfterRefreshCls = mModel->sigAfterRefreshCls .connect(std::bind(&T_View::SetAfterRefreshCls , mView.get(), ph::_1, ph::_2, ph::_3, ph::_4, ph::_5)); connModel_ObjOperation = mModel->sigObjOperation .connect(std::bind(&T_View::SetObjOperation , mView.get(), ph::_1, ph::_2)); connViewCmd_UpdatedQty = mView->sigSetQty .connect(std::bind(&CtrlTableObjBrowser_RO::SetQty, this, ph::_1, ph::_2)); } void SetObjects(const std::set<ObjectKey>& obj) { mModel->DoSetObjects(obj); } bool SetQty(const ObjectKey& key, const wxString& str_val) { return mModel->DoSetQty(key, str_val); } }; //--------------------------------------------------------------------------- }//namespace wh{ #endif // __****_H
/* -*- Mode: c++; indent-tabs-mode: nil; c-file-style: "gnu" -*- * * Copyright (C) 1995-2002 Opera Software ASA. All rights reserved. * * This file is part of the Opera web browser. It may not be distributed * under any circumstances. */ #include "core/pch.h" #ifdef XSLT_SUPPORT #include "modules/xslt/src/xslt_variable.h" #include "modules/xslt/src/xslt_parser.h" #include "modules/xslt/src/xslt_stylesheet.h" #include "modules/xslt/src/xslt_template.h" #include "modules/xslt/src/xslt_simple.h" #include "modules/xslt/src/xslt_template.h" #include "modules/xslt/src/xslt_engine.h" #include "modules/xpath/xpath.h" #include "modules/util/str.h" #include "modules/util/tempbuf.h" XSLT_Variable::XSLT_Variable () : has_name (FALSE), program (0) { } XSLT_Variable::~XSLT_Variable () { OP_DELETE (program); } /* virtual */ BOOL XSLT_Variable::EndElementL (XSLT_StylesheetParserImpl *parser) { if (parser) if (!has_name) SignalErrorL (parser, "missing required name argument"); else if (GetType () == XSLTE_PARAM) { XSLT_TemplateContent *content = (XSLT_TemplateContent *) GetParent (); while (content && content->GetType () != XSLTE_TEMPLATE) content = (XSLT_TemplateContent *) content->GetParent (); if (content) static_cast<XSLT_Template *>(content)->AddParamL (name, this); } XSLT_Element *parent = GetParent (); if (parent->GetType () == XSLTE_STYLESHEET) if (parser) parser->GetStylesheet ()->AddVariable (this); else return TRUE; return FALSE; } /* virtual */ void XSLT_Variable::AddAttributeL (XSLT_StylesheetParserImpl *parser, XSLT_AttributeType type, const XMLCompleteNameN &completename, const uni_char *value, unsigned value_length) { switch (type) { case XSLTA_NAME: parser->SetQNameAttributeL (value, value_length, FALSE, 0, &name); has_name = TRUE; break; case XSLTA_SELECT: parser->SetStringL (select, completename, value, value_length); break; default: XSLT_TemplateContent::AddAttributeL (parser, type, completename, value, value_length); } } /* virtual */ void XSLT_Variable::CompileL (XSLT_Compiler *compiler) { unsigned after_variable_setting = 0; // Silence compiler if (GetType () == XSLTE_PARAM) { XSLT_ADD_INSTRUCTION_WITH_ARGUMENT (XSLT_Instruction::IC_TEST_AND_SET_IF_PARAM_IS_PRESET, reinterpret_cast<UINTPTR> (this)); after_variable_setting = XSLT_ADD_JUMP_INSTRUCTION (XSLT_Instruction::IC_JUMP_IF_TRUE); } // Compile a program that will create a variable value and bind that to a variable if (select.IsSpecified () || children_count == 0) // Value is in the select attribute if (select.IsSpecified ()) { XSLT_ADD_INSTRUCTION_WITH_ARGUMENT (XSLT_Instruction::IC_EVALUATE_TO_VARIABLE_VALUE, compiler->AddExpressionL (select, GetXPathExtensions (), GetNamespaceDeclaration ())); XSLT_ADD_INSTRUCTION_WITH_ARGUMENT (GetType () == XSLTE_WITH_PARAM ? XSLT_Instruction::IC_SET_WITH_PARAM_FROM_EVALUATE : XSLT_Instruction::IC_SET_VARIABLE_FROM_EVALUATE, reinterpret_cast<UINTPTR> (this)); } else { // This is quite inefficient XSLT_ADD_INSTRUCTION_WITH_ARGUMENT (XSLT_Instruction::IC_SET_STRING, compiler->AddStringL (UNI_L(""))); XSLT_ADD_INSTRUCTION_WITH_ARGUMENT (GetType() == XSLTE_WITH_PARAM ? XSLT_Instruction::IC_SET_WITH_PARAM_FROM_STRING : XSLT_Instruction::IC_SET_VARIABLE_FROM_STRING, reinterpret_cast<UINTPTR> (this)); } else { /* Variable value in element's children. If the children are simple we could collect them compile time and make this into a cheaper operation. */ XSLT_ADD_INSTRUCTION (XSLT_Instruction::IC_START_COLLECT_RESULTTREEFRAGMENT); XSLT_TemplateContent::CompileL (compiler); XSLT_ADD_INSTRUCTION (XSLT_Instruction::IC_END_COLLECT_RESULTTREEFRAGMENT); XSLT_ADD_INSTRUCTION_WITH_ARGUMENT (GetType() == XSLTE_WITH_PARAM ? XSLT_Instruction::IC_SET_WITH_PARAM_FROM_COLLECTED : XSLT_Instruction::IC_SET_VARIABLE_FROM_COLLECTED, reinterpret_cast<UINTPTR> (this)); } if (GetType () == XSLTE_PARAM) compiler->SetJumpDestination (after_variable_setting); } XSLT_Program * XSLT_Variable::CompileProgramL (XSLT_StylesheetImpl *stylesheet, XSLT_MessageHandler *messagehandler) { if (!program) { XSLT_Compiler compiler (stylesheet, messagehandler); ANCHOR (XSLT_Compiler, compiler); CompileL (&compiler); program = OP_NEW_L (XSLT_Program, (XSLT_Program::TYPE_TOP_LEVEL_VARIABLE)); compiler.FinishL (program); #ifdef XSLT_ERRORS program->variable = this; #endif // XSLT_ERRORS } return program; } XSLT_VariableReference::XSLT_VariableReference (XSLT_Variable* variable_elm) : variable_elm(variable_elm), is_blocking (variable_elm->GetParent ()->GetType () == XSLTE_STYLESHEET) { } /* virtual */ unsigned XSLT_VariableReference::GetValueType () { /* FIXME: It would be great if we could say for sure here. */ return XPathVariable::TYPE_ANY; } /* virtual */ unsigned XSLT_VariableReference::GetFlags () { #ifdef XSLT_DEBUG_MODE return FLAG_BLOCKING; #else // XSLT_DEBUG_MODE return is_blocking ? FLAG_BLOCKING : 0; #endif // XSLT_DEBUG_MODE } /* virtual */ XPathVariable::Result XSLT_VariableReference::GetValue (XPathValue &value, XPathExtensions::Context *extensions_context, State *&state) { #ifdef XSLT_DEBUG_MODE if (!state) { /* For debugging: pause once every time a variable is read. */ state = OP_NEW (State, ()); return RESULT_BLOCKED; } #endif // XSLT_DEBUG_MODE XSLT_VariableValue *variable_value = XSLT_Engine::GetVariableValue (extensions_context, variable_elm); OP_STATUS status; if (variable_value) { if (variable_value->NeedsCalculation ()) if (OpStatus::IsMemoryError (XSLT_Engine::CalculateVariableValue (extensions_context, variable_elm, variable_value))) return RESULT_OOM; else return RESULT_BLOCKED; else if (variable_value->IsBeingCalculated ()) { #ifdef XSLT_ERRORS if (OpStatus::IsMemoryError (XSLT_Engine::ReportCircularVariables (extensions_context, variable_elm->GetName ()))) return RESULT_OOM; #endif // XSLT_ERRORS return RESULT_FAILED; } else status = variable_value->SetXPathValue (value); } else return RESULT_FAILED; if (OpStatus::IsError (status)) return OpStatus::IsMemoryError (status) ? RESULT_OOM : RESULT_FAILED; return RESULT_FINISHED; } /* static */ XSLT_VariableValue * XSLT_VariableValue::MakeL () { XSLT_VariableValue *value = OP_NEW_L (XSLT_VariableValue, ()); value->type = NEEDS_CALCULATION; return value; } /* static */ XSLT_VariableValue * XSLT_VariableValue::MakeL (const uni_char *string) { XSLT_VariableValue *value = OP_NEW_L (XSLT_VariableValue, ()); value->type = STRING; if (OpStatus::IsError (value->string.Set (string))) { OP_DELETE (value); LEAVE(OpStatus::ERR_NO_MEMORY); } return value; } /* static */ XSLT_VariableValue * XSLT_VariableValue::MakeL (XSLT_NodeList *nodelist) { XSLT_VariableValue *value = OP_NEW (XSLT_VariableValue, ()); if (!value) { OP_DELETE (nodelist); LEAVE (OpStatus::ERR_NO_MEMORY); } value->type = NODESET; value->data.nodelist = nodelist; return value; } /* static */ XSLT_VariableValue * XSLT_VariableValue::MakeL (double number_value) { XSLT_VariableValue *value = OP_NEW_L (XSLT_VariableValue, ()); value->type = NUMBER; value->data.number = number_value; return value; } /* static */ XSLT_VariableValue * XSLT_VariableValue::MakeL (BOOL bool_value) { XSLT_VariableValue *value = OP_NEW_L (XSLT_VariableValue, ()); value->type = BOOLEAN; value->data.boolean = !!bool_value; return value; } /* static */ XSLT_VariableValue * XSLT_VariableValue::MakeL (XSLT_Tree *tree_value) { XSLT_VariableValue *value = OP_NEW_L (XSLT_VariableValue, ()); value->type = TREE; value->data.tree = tree_value; return value; } XSLT_VariableValue::~XSLT_VariableValue () { if (type == TREE) OP_DELETE (data.tree); else if (type == NODESET) OP_DELETE (data.nodelist); } OP_STATUS XSLT_VariableValue::SetXPathValue (XPathValue &xpath_value) { OP_ASSERT (type != NEEDS_CALCULATION && type != IS_BEING_CALCULATED); if (type == STRING) return xpath_value.SetString (string.CStr ()); else if (type == NUMBER) xpath_value.SetNumber(data.number); else if (type == BOOLEAN) xpath_value.SetBoolean(data.boolean); else { RETURN_IF_ERROR (xpath_value.SetNodeSet (TRUE, FALSE)); XPathNode* node; if (type == TREE) { RETURN_IF_ERROR (XPathNode::Make (node, data.tree, data.tree->GetRoot ())); XPathValue::AddNodeStatus addnode_status; return xpath_value.AddNode (node, addnode_status); } else { XPathValue::AddNodeStatus addnode_status = XPathValue::ADDNODE_CONTINUE; for (unsigned index = 0; index < data.nodelist->GetCount() && addnode_status != XPathValue::ADDNODE_STOP; ++index) { RETURN_IF_ERROR (XPathNode::MakeCopy (node, data.nodelist->Get (index))); RETURN_IF_ERROR (xpath_value.AddNode (node, addnode_status)); } } } return OpStatus::OK; } #endif // XSLT_SUPPORT
#pragma once #include "../../Toolbox/Toolbox.h" #include "VectorToolbox.h" #include <string> #include <iostream> namespace ae { class Vector3; /// \ingroup math /// <summary> /// Represent a position in 2D space. Floating point precision. /// </summary> /// <seealso cref="Vector3" /> class AERO_CORE_EXPORT Vector2 { public: /// <summary> /// Default constructor. /// Fill the vector with zeros. /// </summary> /// \par Example : /// \snippet UnitTestVector2/Constructors.cpp DefaultConstructor example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Constructors.cpp DefaultConstructor expected output Vector2(); /// <summary> /// Constructor with values. /// </summary> /// <param name="_x">The x coordinate.</param> /// <param name="_y">The y coordinate.</param> /// \par Example : /// \snippet UnitTestVector2/Constructors.cpp ConstructorValues example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Constructors.cpp ConstructorValues expected output Vector2( float _x, float _y ); /// <summary> /// Copy constructor. /// </summary> /// <param name="_V2">The second vector to do a copy from.</param> /// \par Example : /// \snippet UnitTestVector2/Constructors.cpp ConstructorCopy example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Constructors.cpp ConstructorCopy expected output Vector2( const Vector2& _V2 ); /// <summary> /// Constructor. Create a vector between two coordinates. ( B - A ). /// </summary> /// <param name="_A">Point A.</param> /// <param name="_B">Point B.</param> /// \par Example : /// \snippet UnitTestVector2/Constructors.cpp ConstructorTwoPoints example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Constructors.cpp ConstructorTwoPoints expected output Vector2( const Vector2& _A, const Vector2& _B ); /// <summary> /// Constructor with 3D vector. Copy X and Y from the 3D vector. /// </summary> /// <param name="_Vec3D">The 3D vector to take X and Y from.</param> /// \par Example : /// \snippet UnitTestVector2/Constructors.cpp Constructor3DVector example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Constructors.cpp Constructor3DVector expected output Vector2( const Vector3& _Vec3D ); /// <summary> /// Copy X and Y from a 3D vector. /// </summary> /// <param name="_Vec3D">The 3D vector to take X and Y from.</param> /// \par Example : /// \snippet UnitTestVector2/Operators.cpp Equal3DOperator example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Operators.cpp Equal3DOperator expected output Vector2& operator=( const Vector3& _Vec3D ); /// <summary> /// Acces a component of the vector.<para/> /// <paramref name="_Index"/> must be 0, 1 or 2. /// </summary> /// <param name="_Index">The component of the vector..</param> float& operator[]( Uint32 _Index ); /// <summary> /// Acces a component of the vector.<para/> /// <paramref name="_Index"/> must be 0, 1 or 2. /// </summary> /// <param name="_Index">The component of the vector..</param> const float& operator[]( Uint32 _Index ) const; /// <summary> /// Multiplication assignment operator with a vector (element wise). /// </summary> /// <param name="_v2">The vector to multiply the calling vector with.</param> /// <returns>The calling vector after the multiplication.</returns> /// \par Example : /// \snippet UnitTestVector2/Operators.cpp MulEqOperator example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Operators.cpp MulEqOperator expected output inline Vector2& operator*=( const Vector2& _v2 ); /// <summary> /// Multiplication assignment operator with a value. /// </summary> /// <param name="_Value">The value to multiply the vector coordinates with.</param> /// <returns>The calling vector after the multiplication.</returns> /// \par Example : /// \snippet UnitTestVector2/Operators.cpp MulEqValueOperator example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Operators.cpp MulEqValueOperator expected output inline Vector2& operator*=( const float _Value ); /// <summary> /// Division assignment operator with a vector (element wise). /// </summary> /// <param name="_v2">The second vector to divide the calling vector with.</param> /// <returns>The calling vector after the division.</returns> /// \par Example : /// \snippet UnitTestVector2/Operators.cpp DivEqOperator example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Operators.cpp DivEqOperator expected output inline Vector2& operator/=( const Vector2& _v2 ); /// <summary> /// Division assignment operator with a value. /// </summary> /// <param name="_Value">The value to divide the vector coordinates with.</param> /// <returns>The calling vector after the division.</returns> /// \par Example : /// \snippet UnitTestVector2/Operators.cpp DivEqValueOperator example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Operators.cpp DivEqValueOperator expected output inline Vector2& operator/=( const float _Value ); /// <summary> /// Subtraction assignment operator with a vector. /// </summary> /// <param name="_v2">The second vector to subtract the calling vector with.</param> /// <returns>The calling vector after the subtraction.</returns> /// \par Example : /// \snippet UnitTestVector2/Operators.cpp SubEqOperator example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Operators.cpp SubEqOperator expected output inline Vector2& operator-=( const Vector2& _v2 ); /// <summary> ///Subtraction assignment operator with a value. /// </summary> /// <param name="_Value">The value to subtract the vector coordinates with.</param> /// <returns>The calling vector after the subtraction.</returns> /// \par Example : /// \snippet UnitTestVector2/Operators.cpp SubEqValueOperator example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Operators.cpp SubEqValueOperator expected output inline Vector2& operator-=( const float _Value ); /// <summary> /// Addition assignment operator with a vector. /// </summary> /// <param name="_v2">The second vector to add the calling vector with.</param> /// <returns>The calling vector after the addition.</returns> /// \par Example : /// \snippet UnitTestVector2/Operators.cpp AddEqOperator example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Operators.cpp AddEqOperator expected output inline Vector2& operator+=( const Vector2& _v2 ); /// <summary> /// Addition assignment operator with a value. /// </summary> /// <param name="_Value">The value to add the vector coordinates with.</param> /// <returns>The calling vector after the addition.</returns> /// \par Example : /// \snippet UnitTestVector2/Operators.cpp AddEqValueOperator example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Operators.cpp AddEqValueOperator expected output inline Vector2& operator+=( const float _Value ); /// <summary> /// Negation operator. /// Multiply each coordinates with -1. /// </summary> /// <returns>A copy negated of the calling vector.</returns> /// \par Example : /// \snippet UnitTestVector2/Operators.cpp NegativeOperator example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Operators.cpp NegativeOperator expected output inline Vector2 operator-() const; /// <summary> /// Calculate the length of vector (Euclidean, L2). /// </summary> /// <returns>Length of the vector.</returns> /// \par Example : /// \snippet UnitTestVector2/Functionalities.cpp Length example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Functionalities.cpp Length expected output float Length() const; /// <summary> /// Calculate the length of vector using a specific algorithm. /// </summary> /// <param name="_Algorithm">Algorithm to use to process the length of the vector.</param> /// <param name="_P">P value for VectorLength::Norm_p</param> /// <returns>Length of the vector using the given algorithm.</returns> /// \par Example : /// \snippet UnitTestVector2/Functionalities.cpp LengthAlgos example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Functionalities.cpp LengthAlgos expected output float Length( VectorLength _Algorithm, float _P = 2.0f ) const; /// <summary> /// Calculate the squared length of the vector (Squared euclidean, squared L2). /// </summary> /// <returns>Squared length of the vector.</returns> /// \par Example : /// \snippet UnitTestVector2/Functionalities.cpp LengthSqr example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Functionalities.cpp LengthSqr expected output float LengthSqr() const; /// <summary> /// Rotate the vector. /// </summary> /// <param name="_Angle">The angle to apply in radians.</param> /// <returns>The calling vector rotated.</returns> /// \par Example : /// \snippet UnitTestVector2/Functionalities.cpp Rotate example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Functionalities.cpp Rotate expected output Vector2& Rotate( const float _Angle ); /// <summary> /// Translate the vector. /// </summary> /// <param name="_Offset">The offset to apply.</param> /// <returns>The calling vector translated.</returns> /// \par Example : /// \snippet UnitTestVector2/Functionalities.cpp Translate example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Functionalities.cpp Translate expected output Vector2& Translate( const Vector2& _Offset ); /// <summary> /// Scale the vector. /// </summary> /// <param name="_Scale">The scale factors to apply in each axis.</param> /// <returns>The calling vector scaled.</returns> /// \par Example : /// \snippet UnitTestVector2/Functionalities.cpp Scale example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Functionalities.cpp Scale expected output Vector2& Scale( const Vector2& _Scale ); /// <summary> /// Calculate a dot product between the calling vector and <paramref name="_v2"/> /// </summary> /// <param name="_v2">Second vector to do the dot product with.</param> /// <returns>Result of the dot product between the calling vector and <paramref name="_v2"/></returns> /// \par Example : /// \snippet UnitTestVector2/Functionalities.cpp Dot example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Functionalities.cpp Dot expected output float Dot( const Vector2& _v2 ) const; /// <summary> /// Calculate a cross product between the calling vector and <paramref name="_v2"/> /// http://mathworld.wolfram.com/CrossProduct.html (8)(9) /// </summary> /// <param name="_v2">Second vector to do the cross product with.</param> /// <returns>Result of the cross product between the calling vector and <paramref name="_v2"/></returns> /// \par Example : /// \snippet UnitTestVector2/Functionalities.cpp Cross example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Functionalities.cpp Cross expected output float Cross( const Vector2& _v2 ) const; /// <summary> /// Calculate the signed angle between the vector and the axis X in radians. /// The angle is clockwise. /// </summary> /// <param name="_AngleRange">The angle range.</param> /// <returns> /// Angle between the calling vector and the axis X in radians. /// </returns> /// \par Example : /// \snippet UnitTestVector2/Functionalities.cpp AngleX example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Functionalities.cpp AngleX expected output float Angle( const VectorAngleRange _AngleRange = VectorAngleRange::Unsigned_0_2PI ) const; /// <summary> /// Calculate the angle in radians between the calling vector and <paramref name="_v2"/>. /// The angle is clockwise. /// </summary> /// <param name="_v2">Second vector to process the angle with the calling vector.</param> /// <param name="_AngleRange">The angle range.</param> /// <returns> /// Angle between the calling vector and <paramref name="_v2" /> in radians. /// </returns> /// \par Example : /// \snippet UnitTestVector2/Functionalities.cpp AngleVector example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Functionalities.cpp AngleVector expected output float Angle( const Vector2& _v2, const VectorAngleRange _AngleRange = VectorAngleRange::Signed_0_PI ) const; /// <summary> /// Make a unit vector from calling vector. /// The Vector will have the same direction of the calling vector /// But its length will be equal to 1.0f. /// </summary> /// <returns>A unit copy of the calling vector.</returns> /// \par Example : /// \snippet UnitTestVector2/Functionalities.cpp GetNormalized example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Functionalities.cpp GetNormalized expected output Vector2 GetNormalized() const; /// <summary> /// Make a unit the calling vector. /// The Vector will have the same direction /// But its length will be equal to 1.0f. /// </summary> /// <returns>The calling vector normalized.</returns> /// \par Example : /// \snippet UnitTestVector2/Functionalities.cpp Normalize example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Functionalities.cpp Normalize expected output Vector2& Normalize(); /// <summary> /// Query if the vector is unit. /// </summary> /// <returns>True if unit, False if not.</returns> /// \par Example : /// \snippet UnitTestVector2/Functionalities.cpp IsUnit example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Functionalities.cpp IsUnit expected output Bool IsUnit() const; /// <summary> /// Query if the vector is unit by epsilon. /// </summary> /// <returns>True if unit by epsilon, False if not.</returns> /// \par Example : /// \snippet UnitTestVector2/Functionalities.cpp IsUnitByEpsilon example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Functionalities.cpp IsUnitByEpsilon expected output Bool IsUnitByEpsilon() const; /// <summary> /// Query if the vector is null ( both coordinates equal to 0 ). /// </summary> /// <returns>True if null, False otherwise.</returns> /// \par Example : /// \snippet UnitTestVector2/Functionalities.cpp IsNull example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Functionalities.cpp IsNull expected output Bool IsNull() const; /// <summary> /// Query if the vector is null by epsilon ( both coordinates null by epsilon ). /// </summary> /// <returns>True if null by epsilon, False otherwise.</returns> /// \par Example : /// \snippet UnitTestVector2/Functionalities.cpp IsNullByEpsilon example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Functionalities.cpp IsNullByEpsilon expected output Bool IsNullByEpsilon() const; /// <summary> /// Set all two coordinates with the given parameters. /// </summary> /// <param name="_X">New value for the x coordinate.</param> /// <param name="_Y">New value for the y coordinate.</param> /// <returns>Calling vector with the new coordinates values.</returns> Vector2& Set( float _X, float _Y ); public: /// <summary>The x coordinate of the vector.</summary> float X; /// <summary>The y coordinate of the vector.</summary> float Y; /// <summary> /// The zero vector. /// X = 0.0f and Y = 0.0f. /// </summary> static const Vector2 Zero; /// <summary> /// The one vector. /// X = 1.0f and Y = 1.0f. /// </summary> static const Vector2 One; /// <summary> /// The X axis vector. /// X = 1.0f and Y = 0.0f. /// </summary> static const Vector2 AxeX; /// <summary> /// The Y axis vector. /// X = 0.0f and Y = 1.0f. /// </summary> static const Vector2 AxeY; }; /// <summary> /// Multiplication operator with two vectors (element wise). /// </summary> /// <param name="_v1">The first vector.</param> /// <param name="_v2">The second vector to multiply <paramref name = "_v1"/> with.</param> /// <returns>The result of the multiplication as a new vector.</returns> /// \par Example : /// \snippet UnitTestVector2/Operators.cpp MulOperator example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Operators.cpp MulOperator expected output AERO_CORE_EXPORT inline Vector2 operator*( const Vector2& _v1, const Vector2& _v2 ); /// <summary> /// Multiplication operator with a vector and a value. /// </summary> /// <param name="_v1">The vector to multiply with the value.</param> /// <param name="_Value">The value to multiply <paramref name = "_v1"/> with.</param> /// <returns>The result of the multiplication as a new vector.</returns> /// \par Example : /// \snippet UnitTestVector2/Operators.cpp MulValueOperator example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Operators.cpp MulValueOperator expected output AERO_CORE_EXPORT inline Vector2 operator*( const Vector2& _Vector, const float _Value ); /// <summary> /// Division operator with two vectors (element wise). /// </summary> /// <param name="_v1">The first vector.</param> /// <param name="_v2">The second vector to divide <paramref name = "_v1"/> with.</param> /// <returns>The result of the division as a new vector.</returns> /// \par Example : /// \snippet UnitTestVector2/Operators.cpp DivOperator example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Operators.cpp DivOperator expected output AERO_CORE_EXPORT inline Vector2 operator/( const Vector2& _v1, const Vector2& _v2 ); /// <summary> /// Division operator with a vector and a value. /// </summary> /// <param name="_v1">The vector to divide with the value.</param> /// <param name="_Value">The value to divide <paramref name = "_v1"/> with.</param> /// <returns>The result of the division as a new vector.</returns> /// \par Example : /// \snippet UnitTestVector2/Operators.cpp DivValueOperator example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Operators.cpp DivValueOperator expected output AERO_CORE_EXPORT inline Vector2 operator/( const Vector2& _Vector, const float _Value ); /// <summary> /// Subtraction operator with two vectors. /// </summary> /// <param name="_v1">The first vector.</param> /// <param name="_v2">The second vector to subtract <paramref name = "_v1"/> with.</param> /// <returns>The result of the subtraction as a new vector.</returns> /// \par Example : /// \snippet UnitTestVector2/Operators.cpp SubOperator example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Operators.cpp SubOperator expected output AERO_CORE_EXPORT inline Vector2 operator-( const Vector2& _v1, const Vector2& _v2 ); /// <summary> /// Subtraction operator with a vector and a value. /// </summary> /// <param name="_v1">The vector to subtrct with the value.</param> /// <param name="_Value">The value to subtract <paramref name = "_v1"/> with.</param> /// <returns>The result of the subtraction as a new vector.</returns> /// \par Example : /// \snippet UnitTestVector2/Operators.cpp SubValueOperator example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Operators.cpp SubValueOperator expected output AERO_CORE_EXPORT inline Vector2 operator-( const Vector2& _Vector, const float _Value ); /// <summary> /// Addition operator with two vectors. /// </summary> /// <param name="_v1">The first vector.</param> /// <param name="_v2">The second vector to add <paramref name = "_v1"/> with.</param> /// <returns>The result of the addition as a new vector.</returns> /// \par Example : /// \snippet UnitTestVector2/Operators.cpp AddOperator example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Operators.cpp AddOperator expected output AERO_CORE_EXPORT inline Vector2 operator+( const Vector2& _v1, const Vector2& _v2 ); /// <summary> /// Addition operator with a vector and a value. /// </summary> /// <param name="_v1">The vector to add with the value.</param> /// <param name="_Value">The value to add <paramref name = "_v1"/> with.</param> /// <returns>The result of the addition as a new vector.</returns> /// \par Example : /// \snippet UnitTestVector2/Operators.cpp AddValueOperator example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Operators.cpp AddValueOperator expected output AERO_CORE_EXPORT inline Vector2 operator+( const Vector2& _Vector, const float _Value ); /// <summary> /// Equality operator with two vectors. /// </summary> /// <param name="_v1">The first vector to compare.</param> /// <param name="_v2">The second vector to compare.</param> /// <returns>True if both x coordinates are the same and if both y coordinates are the same.</returns> /// \par Example : /// \snippet UnitTestVector2/Operators.cpp EqualOperator example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Operators.cpp EqualOperator expected output AERO_CORE_EXPORT inline Bool operator==( const Vector2& _v1, const Vector2& _v2 ); /// <summary> /// Inequality operator with two vectors. /// </summary> /// <param name="_v1">The first vector to compare.</param> /// <param name="_v2">The second vector to compare.</param> /// <returns>True if both x coordinates are NOT the same OR if both y coordinates are NOT the same.</returns> /// \par Example : /// \snippet UnitTestVector2/Operators.cpp DiffOperator example /// \par Expected Output : /// \snippetdoc UnitTestVector2/Operators.cpp DiffOperator expected output AERO_CORE_EXPORT inline Bool operator!=( const Vector2& _v1, const Vector2& _v2 ); /// <summary> /// Convert a vector 2D to a string. /// </summary> /// <param name="_Color">Vector 2D to convert.</param> /// <returns>Vector 2D as a C++ string. ( Format : X = ... Y = ... ).</returns> AERO_CORE_EXPORT inline std::string ToString( const ae::Vector2& _Vector ); } // ae /// <summary> /// Convert a vector 2D to a string and push it in the out stream. /// </summary> /// <param name="_Color">Vector 2D to convert and push to the out stream.</param> /// <returns>Out stream.</returns> AERO_CORE_EXPORT std::ostream& operator<<( std::ostream& os, const ae::Vector2& _Vector );
#include "Neuron.h" /**@brief The class Network to emulate a group of active * neurons connected to form a network * * This can run a simulation for a certain number of neurons and a * certain interval of time. */ #ifndef NETWORK_H #define NETWORK_H class Network { private: ///-------------Attributes---------------------------------------------- int step_start_ = 0 ; ///< Starting time of the external activity int step_stop_ = 0 ; ///< Stopping time of the external activity int current_step_ = 0 ; ///< The current time of the simulation double I = 0.0 ; ///< A variable needed to store the current double Iext = 0.0; ///< The external current double h = 0.1; ///< The interval of time in each step int nb_steps_ = 10000 ; ///< The number of steps of the simulation const unsigned int nb_neurons_ = 12500 ; ///< The number of neurons const int nb_connections_ = nb_neurons_/10 ; ///< The number of connections between every neurons const double lambda_ = 2 ; ///< The variable used in teh poisson distribution std::vector <Neuron> Neurons_ ; ///< A vector representing all the neurons std::vector <std::vector<int> > Targets_ ; ///< A matrix representing the connections between the neurons public : Network() ; ///< Basic constructor void InitializeExtActivity() ; ///< Initialize the current and time interval void Run() ; ///< Runs the simulation }; #endif
#ifndef _IMAGE_HPP_ #define _IMAGE_HPP_ #include <cstdint> #include <cstdio> #include "stb_image.h" #include "stb_image_write.h" enum ImageType { PNG, JPG, BMP, TGA }; struct Color { int r, g, b; }; class Image { private: size_t size = 0; int width, height, channels; public: uint8_t* data = NULL; Image(const char* filename); Image(int width, int height, int channels); Image(const Image& img); ~Image(); bool read(const char* filename); bool write(const char* filename); ImageType getFileType(const char* filename); int getWidth()const; int getHeight()const; int getChannels()const; Color getColor(int x, int y)const; void setColor(int x, int y, Color c); }; #endif
#include "bluedialog.h" BlueDialog::BlueDialog(QWidget *parent) : ColorDialog(parent) { } QColor BlueDialog::getColor() { return Qt::blue; }
// Copyright (c) 2021 Hartmut Kaiser // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <pika/execution.hpp> #include <pika/init.hpp> #include <pika/testing.hpp> /////////////////////////////////////////////////////////////////////////////// void static_checks() { static_assert(pika::is_execution_policy<std::execution::sequenced_policy>::value, "pika::is_execution_policy<std::execution::sequenced_policy>::value"); static_assert(pika::is_execution_policy<std::execution::parallel_policy>::value, "pika::is_execution_policy<std::execution::parallel_policy>::value"); static_assert(pika::is_execution_policy<std::execution::parallel_unsequenced_policy>::value, "pika::is_execution_policy<std::execution::parallel_unsequenced_policy>::value"); static_assert(pika::is_sequenced_execution_policy<std::execution::sequenced_policy>::value, "pika::is_sequenced_execution_policy<std::execution::sequenced_policy>::value"); static_assert(!pika::is_sequenced_execution_policy<std::execution::parallel_policy>::value, "!pika::is_sequenced_execution_policy<std::execution::parallel_policy>::value"); static_assert( !pika::is_sequenced_execution_policy<std::execution::parallel_unsequenced_policy>::value, "!pika::is_sequenced_execution_policy<std::execution::parallel_unsequenced_policy>::value"); static_assert(!pika::is_parallel_execution_policy<std::execution::sequenced_policy>::value, "!pika::is_sequenced_execution_policy<std::execution::sequenced_policy>::value"); static_assert(pika::is_parallel_execution_policy<std::execution::parallel_policy>::value, "pika::is_parallel_execution_policy<std::execution::parallel_policy>::value"); static_assert( pika::is_parallel_execution_policy<std::execution::parallel_unsequenced_policy>::value, "pika::is_parallel_execution_policy<std::execution::parallel_unsequenced_policy>::value"); #if defined(PIKA_HAVE_CXX20_STD_EXECUTION_POLICIES) static_assert(pika::is_execution_policy<std::execution::unsequenced_policy>::value, "pika::is_execution_policy<std::execution::unsequenced_policy>::value"); static_assert(pika::is_sequenced_execution_policy<std::execution::unsequenced_policy>::value, "pika::is_sequenced_execution_policy<std::execution::unsequenced_policy>::value"); static_assert(!pika::is_parallel_execution_policy<std::execution::unsequenced_policy>::value, "!pika::is_parallel_execution_policy<std::execution::unsequenced_policy>::value"); #endif } /////////////////////////////////////////////////////////////////////////////// int pika_main() { static_checks(); return pika::finalize(); } int main(int argc, char* argv[]) { // Initialize and run pika PIKA_TEST_EQ_MSG(pika::init(pika_main, argc, argv), 0, "pika main exited with non-zero status"); return 0; }
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <folly/container/heap_vector_types.h> #include <folly/small_vector.h> namespace quic { #if !FOLLY_MOBILE || _WIN32 template <class T, std::size_t N, class... Policy> using SmallVec = folly::small_vector<T, N, Policy...>; #else template <class T, std::size_t N, class... Policy> using SmallVec = std::vector<T>; #endif template <class T, size_t N> using InlineMapVec = folly::small_vector<T, N>; template < typename Key, typename Value, size_t N, class Container = InlineMapVec<std::pair<Key, Value>, N>, typename = std::enable_if_t<std::is_integral<Key>::value>> using InlineMap = folly::heap_vector_map< Key, Value, std::less<Key>, typename Container::allocator_type, void, Container>; } // namespace quic
#include <bits/stdc++.h> using namespace std; int main(){ int x; vector<int> odd; vector<int> even; freopen("DAYCL.inp", "r", stdin); freopen("DAYCL.out", "w", stdout); cin >> x; while(x/10 != 0){ int a = x%10; if (a%2 == 0) even.push_back(a); else odd.push_back(a); x /= 10; } if(x%10 == 0) even.push_back(x); else odd.push_back(x); sort(odd.begin(), odd.end()); sort(even.begin(), even.end(), greater<int>()); for(int i : odd) cout << i; for (int i : even) cout << i; return 0; }
#include "JumpFlooding.h" #include <API/Code/Graphics/Shader/ShaderParameter/ShaderParameterInt.h> #include <API/Code/Graphics/Shader/ShaderParameter/ShaderParameterFloat.h> #include <API/Code/Graphics/Shader/ShaderParameter/ShaderParameterTexture.h> #include <API/Code/Maths/Functions/MathsFunctions.h> #include <API/Code/Aero/Aero.h> #include <API/Code/UI/Dependencies/IncludeImGui.h> JumpFlooding::JumpFlooding( Uint32 _TextureSize, ae::Texture& _PenetrationTexture ) : m_InitShader( "../../../Data/Projects/Snow/FloodingVertex.glsl", "../../../Data/Projects/Snow/FloodingInitFragment.glsl" ), m_FloodingShader( "../../../Data/Projects/Snow/FloodingVertex.glsl", "../../../Data/Projects/Snow/FloodingFragment.glsl" ), m_FloodingTextureParameter( nullptr ), m_PingPongFBO{ new ae::Framebuffer( _TextureSize, _TextureSize, ae::FramebufferAttachement( ae::FramebufferAttachement::Type::Color_0, ae::TexturePixelFormat::RGBA_I32 ) ), new ae::Framebuffer( _TextureSize, _TextureSize, ae::FramebufferAttachement( ae::FramebufferAttachement::Type::Color_0, ae::TexturePixelFormat::RGBA_I32 ) ) }, m_FullscreenSprite( *m_PingPongFBO[0] ), m_MaxFloodingRange( _TextureSize ), m_TextureSize( _TextureSize ), m_CurrentPingPongIndex( 0 ) { m_PingPongFBO[0]->GetAttachementTexture()->SetWrapMode( ae::TextureWrapMode::ClampToEdge ); m_PingPongFBO[0]->GetAttachementTexture()->SetName( "Flooding Ping Texture" ); m_PingPongFBO[1]->GetAttachementTexture()->SetWrapMode( ae::TextureWrapMode::ClampToEdge ); m_PingPongFBO[1]->GetAttachementTexture()->SetName( "Flooding Pong Texture" ); m_InitShader.SetName( "Flooding Initialization Shader" ); m_InitMaterial.SetName( "Flooding Initialization Material" ); m_InitMaterial.SetShader( m_InitShader ); m_InitMaterial.AddTextureParameterToMaterial( "Penetration Map", "PenetrationMap", &_PenetrationTexture ); m_InitMaterial.SetNeedLights( False ); m_InitMaterial.SetNeedCamera( False ); m_FloodingShader.SetName( "Flooding Shader" ); m_FloodingMaterial.SetName( "Flooding Material" ); m_FloodingMaterial.SetShader( m_FloodingShader ); m_FloodingTextureParameter = m_FloodingMaterial.AddTextureParameterToMaterial( "PreviousPingPongTexture", "PreviousPingPongTexture", nullptr ); m_FloodingRangeParameter = m_FloodingMaterial.AddIntParameterToMaterial( "Range", "Range", 0 ); m_FloodingTimeParameter = m_FloodingMaterial.AddFloatParameterToMaterial( "Time", "Time", 0 ); m_FloodingMaterial.SetNeedLights( False ); m_FloodingMaterial.SetNeedCamera( False ); m_FullscreenSprite.SetName( "Flooding Quad" ); } JumpFlooding::~JumpFlooding() { delete m_PingPongFBO[0]; delete m_PingPongFBO[1]; } void JumpFlooding::Run() { // Initialize pinp-pong with penetraion values. m_FullscreenSprite.SetMaterial( m_InitMaterial ); ae::Framebuffer* InitFBO = m_PingPongFBO[m_CurrentPingPongIndex]; InitFBO->Bind(); InitFBO->Clear(); InitFBO->Draw( m_FullscreenSprite ); InitFBO->Unbind(); const Uint32 StepCount = ae::Math::Log2( ae::Math::Min( m_TextureSize, m_MaxFloodingRange ) ); // Do log2(n) ping pong, n being the size of the texture. m_FullscreenSprite.SetMaterial( m_FloodingMaterial ); Uint32 DivFactor = 2; for( Uint32 s = 0; s < StepCount; s++ ) { m_CurrentPingPongIndex ^= 1; Uint32 StepRange = m_TextureSize / DivFactor; Uint32 UniformTexture = m_CurrentPingPongIndex ^ 1; m_FloodingRangeParameter->SetValue( StepRange ); m_FloodingTextureParameter->SetValue( m_PingPongFBO[UniformTexture]->GetAttachementTexture() ); m_FloodingTimeParameter->SetValue( Aero.GetLifeTime() ); ae::Framebuffer* TargetFBO = m_PingPongFBO[m_CurrentPingPongIndex]; TargetFBO->Bind(); TargetFBO->Draw( m_FullscreenSprite ); TargetFBO->Unbind(); DivFactor *= 2; } } ae::Texture& JumpFlooding::GetDistanceTexture() { return *m_PingPongFBO[m_CurrentPingPongIndex]->GetAttachementTexture(); } void JumpFlooding::Resize( Uint32 _TextureSize ) { m_PingPongFBO[0]->Resize( _TextureSize, _TextureSize ); m_PingPongFBO[0]->Bind(); m_PingPongFBO[0]->Clear(); m_PingPongFBO[0]->Unbind(); m_PingPongFBO[1]->Resize( _TextureSize, _TextureSize ); m_PingPongFBO[1]->Bind(); m_PingPongFBO[1]->Clear(); m_PingPongFBO[1]->Unbind(); if( m_MaxFloodingRange == m_TextureSize ) m_MaxFloodingRange = _TextureSize; m_TextureSize = _TextureSize; } void JumpFlooding::ToEditor() { ImGui::Text( "Flooding" ); if( ImGui::BeginCombo( "Max Flooding Range", std::to_string( m_MaxFloodingRange ).c_str() ) ) { Uint32 Sizes[9] = { 16, 32, 64, 128, 256, 512, 1024, 2048, 4096 }; for( Uint32 s = 0u; s < 9u; s++ ) { Bool IsSelected = Sizes[s] == m_MaxFloodingRange; if( ImGui::Selectable( std::to_string( Sizes[s] ).c_str(), &IsSelected ) ) { if( IsSelected ) { m_MaxFloodingRange = Sizes[s]; ImGui::SetItemDefaultFocus(); } } } ImGui::EndCombo(); } ImGui::Separator(); }
//model.hpp //Abstract base class for models. //Created by Lewis Hosie //21-11-11 //In case you're wondering why this has subclasses and why rendering happens here, //it's because different model formats may well have different internals. Some may have //indices, some not; some may not have tangents and others might require them. This is //especially relevant for bones. #include "ragdoll.hpp" #ifndef E_MODEL #define E_MODEL class renderer; class model{ public: virtual const ragdoll& getragdoll() const = 0; virtual void draw(const ragdollinstance& shape, renderer& therenderer) const = 0; }; #endif
// // RWLock_Android.cpp // // $Id: //poco/1.4/Foundation/src/RWLock_Android.cpp#1 $ // // Library: Foundation // Package: Threading // Module: RWLock // // Copyright (c) 2004-2011, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #include "_/RWLock_Android.h" #if ___OS == ___OS_Android namespace _ { RWLockImpl::RWLockImpl() { pthread_mutexattr_t attr; pthread_mutexattr_init(&attr); if (pthread_mutex_init(&_mutex, &attr)) { pthread_mutexattr_destroy(&attr); throw SystemException("cannot create mutex"); } pthread_mutexattr_destroy(&attr);} RWLockImpl::~RWLockImpl() { pthread_mutex_destroy(&_mutex); } } // namespace _ #endif //< #if ___OS == ___OS_Android
/*! * \file Scene.h * \brief Define the scene * \author Pierre-Jean Besnard & Louis Billaut * \version 1.0 */ #include "Shape.h" /*! \class Scene * \brief Allows to create a scene, add object to it and calculate intersection with them */ class Scene { public: /*! * \brief Constructor * Constructor of the scene class */ Scene() {}; /*! * \brief Calculate the intersection of a ray with objects of the scene * Calculate the P intersection point, N the normal intersection and id the id of the intersected object * * \param d : the ray within the sphere intersect * \param P : the intersection point wich will be calculated * \param N : the normal wich will be calculated * \param id : the id of the object wich will be intersected * \param min : the minimal value of intensity * * \return true if the light intersect the sphere, false either */ bool intersection(const Ray& d, Vector& P, Vector& N, int& id, double& min) const{ bool is_inter = false; min = 1E99; for(int i = 0; i < shapes.size(); i++){ double t; Vector lP, lN; bool got_inter = shapes[i] -> intersection(d, lP, lN, t); if (got_inter){ is_inter = true; if (min > t){ min = t; P = lP; N = lN; id = i; } } } return is_inter; } /*! * \brief Add sphere object to the scene * * \param s : the sphere wich will be added to the scene */ void addSphere(const Sphere* s) { shapes.push_back(s); } /*! * \brief Add triangle object to the scene * * \param s : the triangle wich will be added to the scene */ void addTriangle(const Triangle* s) { shapes.push_back(s); } /*! * \brief Add cylinder object to the scene * * \param s : the cylinder wich will be added to the scene */ void addCylinder(const Cylinder* s) { shapes.push_back(s); } /*! * \brief Add rectangle object to the scene * * \param s : the rectangle wich will be added to the scene */ void addRectangle(const Rectangle* s) { shapes.push_back(s); } std::vector<const Shape*> shapes; /*!< objects of the scene*/ Sphere* light;/*!< light of the scene represented by a sphere*/ double light_intensity; /*!< light intensity of the scene*/ };
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE MyTest #include <boost/test/unit_test.hpp> #include "wignerSymbols.h" #include <complex> #include <cmath> #include <cfloat> #include <map> #include <ctime> #include <iostream> #include "Log.hpp" #include "Powerspectrum_Fisher.hpp" #include "Model.hpp" #include "Analysis.hpp" #include "Fisher.hpp" #include "iniReader.hpp" #include "Bispectrum.hpp" #include "Bispectrum_NLG.hpp" #include "LISW.hpp" #include "ODEs.hpp" #include "ODE_Solver.hpp" #include "Zygelman.hpp" #include "Bispectrum_Fisher.hpp" #include "Integrator.hpp" #include "interpolation.h" #include "levinBase.h" #include "levinIteration.h" #include "levinFunctions.h" #include "dcosmology.h" #include <omp.h> #include "WignerPythonInterface.hpp" #include <boost/math/special_functions/fpclassify.hpp> using namespace std; log_level_t GLOBAL_VERBOSITY_LEVEL = LOG_BASIC; /** * RUN: ./test --log_level=test_suite --run_test=check_TESTCASE * for more detail from the framework. */ /** * This test case checks whether all the parameters from * the params.ini file are read in correctly. * A test file: "UnitTestData/test_params_check_parser.ini" * is used here, the parameter values are just set equal * to the position they are within the file for simplicity. */ struct integral_params{ int a = 1; }; double F(double chi0, void* pp) { return chi0; } BOOST_AUTO_TEST_CASE(check_parser) { /** SETUP **/ // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_check_parser.ini"; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); vector<string> keys = parser.giveParamKeys(); string matrixPath = parser.giveMatrixPath(); string fisherPath = parser.giveFisherPath(); GLOBAL_VERBOSITY_LEVEL = LOG_VERBOSE; GLOBAL_VERBOSITY_LEVEL = parser.giveVerbosity(); ModelAnalysis model_case = parser.giveModelAndAnalysis()[0]; ModelAnalysis analyse_case = parser.giveModelAndAnalysis()[1]; vector<string> parameter_keys = {"interp_Cls", "lmax_Fisher_Bispectrum", "gaps_bispectrum",\ "lambda_LISW","Bias_included", "Bispectrum_numin", "nu_stepsize",\ "Bispectrum_numax","ombh2","omch2","omnuh2","omk","hubble","A_s",\ "n_s","sigma8","tau_reio","T_CMB","w_DE","100*theta_s","k_pivot","YHe",\ "z_pk","omega_lambda","zmin","zmax","zsteps","zmax_interp","gamma",\ "beta","alpha",\ "RLy","Santos_const_abg","Santos_interval_size","fstar","fesc",\ "nion","fx","flya","popflag","xrayflag","lyaxrayflag","IM_zlow",\ "IM_zhigh","zbin_size","rsd","limber","noise","Ae","df","Tsys",\ "fcover","lmax_noise","tau_noise","foreground","kmin","kmax","k_stepsize",\ "Pk_steps","lmin","lmax","lstepsize","n_threads","n_points_per_thread",\ "n_threads_bispectrum", "nested","sub_threads"}; // Now test IniReaderAnalysis string iniFilename2 = "UnitTestData/analysis_check_parser.ini"; // Initialize inireader. IniReaderAnalysis parser2(iniFilename2); bool EllipseRequired = parser2.giveEllipsesRequired(); bool ShowMatrix = parser2.giveShowMatrix(); bool ShowInverse = parser2.giveShowInverse(); bool UsePriors = parser2.giveUsePriors(); map<string,double> Priors = parser2.givePriors(); bool UsePseudoInv = parser2.giveUsePseudoInv(); bool UseInterpolation = parser2.giveUseInterpolation(); Mode AnalysisMode = parser2.giveAnalysisMode(); /** CHECKS **/ BOOST_CHECK(GLOBAL_VERBOSITY_LEVEL == LOG_NOTHING); BOOST_CHECK(matrixPath == "output/unit_TEST/Cl_matrices"); BOOST_CHECK(fisherPath == "output/unit_TEST/Fisher"); BOOST_CHECK(model_case == camb_IM); BOOST_CHECK(analyse_case == intensitymapping); BOOST_REQUIRE(keys.size() == 2); BOOST_CHECK(keys[0] == "ombh2"); BOOST_CHECK(keys[1] == "omch2"); BOOST_REQUIRE(parameter_keys.size() == params.size()); // check the value of all parameters, as given in the .ini file BOOST_CHECK(params["interp_Cls"] == 1); BOOST_CHECK(params["lmax_Fisher_Bispectrum"] == 2); BOOST_CHECK(params["gaps_bispectrum"] == 3); BOOST_CHECK(params["lambda_LISW"] == 4); BOOST_CHECK(params["Bias_included"] == 5); BOOST_CHECK(params["Bispectrum_numin"] == 6); BOOST_CHECK(params["Bispectrum_numax"] == 7); BOOST_CHECK(params["ombh2"] == 8); BOOST_CHECK(params["omch2"] == 9); BOOST_CHECK(params["omnuh2"] == 10); BOOST_CHECK(params["omk"] == 11); BOOST_CHECK(params["hubble"] == 12); BOOST_CHECK(params["A_s"] == 13); BOOST_CHECK(params["n_s"] == 14); BOOST_CHECK(params["sigma8"] == 15); BOOST_CHECK(params["tau_reio"] == 16); BOOST_CHECK(params["T_CMB"] == 17); BOOST_CHECK(params["w_DE"] == 18); BOOST_CHECK(params["100*theta_s"] == 19); BOOST_CHECK(params["k_pivot"] == 20); BOOST_CHECK(params["YHe"] == 21); BOOST_CHECK(params["z_pk"] == 22); BOOST_CHECK(params["omega_lambda"] == 23); BOOST_CHECK(params["zmin"] == 24); BOOST_CHECK(params["zmax"] == 25); BOOST_CHECK(params["zsteps"] == 26); BOOST_CHECK(params["zmax_interp"] == 27); BOOST_CHECK(params["gamma"] == 28); BOOST_CHECK(params["beta"] == 29); BOOST_CHECK(params["alpha"] == 30); BOOST_CHECK(params["RLy"] == 31); BOOST_CHECK(params["Santos_const_abg"] == 32); BOOST_CHECK(params["Santos_interval_size"] == 33); BOOST_CHECK(params["fstar"] == 34); BOOST_CHECK(params["fesc"] == 35); BOOST_CHECK(params["nion"] == 36); BOOST_CHECK(params["fx"] == 37); BOOST_CHECK(params["flya"] == 38); BOOST_CHECK(params["popflag"] == 39); BOOST_CHECK(params["xrayflag"] == 40); BOOST_CHECK(params["lyaxrayflag"] == 41); BOOST_CHECK(params["IM_zlow"] == 42); BOOST_CHECK(params["IM_zhigh"] == 43); BOOST_CHECK(params["zbin_size"] == 44); BOOST_CHECK(params["rsd"] == 45); BOOST_CHECK(params["limber"] == 46); BOOST_CHECK(params["noise"] == 47); BOOST_CHECK(params["Ae"] == 48); BOOST_CHECK(params["df"] == 49); BOOST_CHECK(params["Tsys"] == 50); BOOST_CHECK(params["fcover"] == 51); BOOST_CHECK(params["lmax_noise"] == 52); BOOST_CHECK(params["tau_noise"] == 53); BOOST_CHECK(params["foreground"] == 54); BOOST_CHECK(params["kmin"] == 55); BOOST_CHECK(params["kmax"] == 56); BOOST_CHECK(params["k_stepsize"] == 57); BOOST_CHECK(params["Pk_steps"] == 58); BOOST_CHECK(params["lmin"] == 59); BOOST_CHECK(params["lmax"] == 60); BOOST_CHECK(params["lstepsize"] == 61); BOOST_CHECK(params["n_threads"] == 62); BOOST_CHECK(params["n_points_per_thread"] == 63); BOOST_CHECK(params["n_threads_bispectrum"] == 64); BOOST_CHECK(params["nested"] == 65); BOOST_CHECK(params["sub_threads"] == 66); BOOST_CHECK(params["nu_stepsize"] == 67); // Analysis Parser BOOST_CHECK(EllipseRequired); BOOST_CHECK(ShowMatrix); BOOST_CHECK(ShowInverse); BOOST_CHECK(UsePriors); BOOST_CHECK(UsePseudoInv); BOOST_CHECK(UseInterpolation); BOOST_CHECK(AnalysisMode == bispectrum); BOOST_CHECK(Priors["ombh2"] == 1); BOOST_CHECK(Priors["n_s"] == 3); } /** * This test case checks whether the integration methods * implemented in Integrator.hpp are working as expected. * This is important as the code is using integration methods * extensively. */ BOOST_AUTO_TEST_CASE(check_integrator) { /** SETUP **/ auto test_f1 = [&](double x){ return exp(-x); }; double I1 = integrate(test_f1,0.0, 1000.0, 100000, simpson()); double I2 = integrate_simps(test_f1,0.0,1000.0, 10000); double I3 = qromb(test_f1, 0.0, 1000, 1e-10); //this one has a very narrow range where it actually works... double I4 = qgaus(test_f1, 0.0, 20); auto test_f2 = [&](double x){ return cos(x)*cos(x); }; double I5 = integrate(test_f2,0.0, 100.0, 10000, simpson()); double I6 = integrate_simps(test_f2,0.0,100.0, 1000); double I7 = qromb(test_f2, 0.0, 100, 1e-10); //this one does not work, gaussian quadrature only works for very smooth functions. //double I8 = qgaus(test_f2, 0.0, 100.0); double ans2 = 50.0 + sin(200)/4.0; /** CHECKS **/ // True answer = 1. BOOST_CHECK(I1 > 0.999999 && I1 < 1.000001); BOOST_CHECK(I2 > 0.999999 && I2 < 1.000001); BOOST_CHECK(I3 > 0.999999 && I3 < 1.000001); BOOST_CHECK(I4 > 0.999999 && I4 < 1.000001); // True answer = 50 + sin(200)/4 = 49.782. BOOST_CHECK(I5 > ans2 - 0.0001 && I5 < ans2 + 0.0001); BOOST_CHECK(I6 > ans2 - 0.0001 && I6 < ans2 + 0.0001); BOOST_CHECK(I7 > ans2 - 0.0001 && I7 < ans2 + 0.0001); //BOOST_CHECK(I8 > ans2 - 0.001 && I8 < ans2 + 0.001); } /** In this test a couple of things related to the integration of Bessel * functions are tested. The main aim is to show the performance of Levin * integration, as performed by Alessio's code, compared to the simpson * method I have been using. So, first we test the use of our spherical * bessel implementation over that of their hyperspherical implementation. * Goal here is to use ours as theirs is using interpolation which we don't want. * The reason being that it seems to use a lot of memory for large l ranges. * Then, we want to compare some simple examples of integration, with very * simple kernals. If this succeeds I want to test whether using the power spectrum * as kernel function still works fine, and if so, compute alpha and theta. */ BOOST_AUTO_TEST_CASE(check_bessel_integration) { /** Setup **/ // Parameters for Alessio's bessel implementation int K=0; // sets curvature for Hyperspherical bessel implementation double beta=1.; double min = 0.01; double max = 1.e5; double sampling = 80; double phi_min_abs = 1.e-10; ErrorMsg error_message; int nk = 20; double kmin = 5.e-3; double kmax = 1.0; // Let's make a list of 500 l modes spherical bessel functions. int nl = 1500; int* l; l = new int[nl]; for (int i = 0; i < nl; ++i) { l[i] = i; } // Structure which stores interpolated spherical bessel functions HyperInterpStruct HIS; hyperspherical_HIS_create(K,beta,nl,l, min, max, sampling,\ l[nl-1]+1, phi_min_abs, &HIS, error_message); // Let's make a list of l_modes that will be used during the testing. vector<int> l_list = {1,4,46,322,450,600, 800, 1000, 1328}; cout << "Testing the value of the bessel function as a function of l." << endl; cout << "Checking l = 1 to l = 498, for k = 2 and x = 1 to x = 20001 in steps of 0.2" << endl; cout << "We compare the value between the CLASS hyperspherical implementation and the CAMB implementation." << endl; for (int i = 1; i < 499; i++) { // Here I check whether I get the same numerical result using both // ways of computing the bessel function. int l_index = i; // Setting some constants for the bessel functions and integration double k = 2; // Instantiation of all the necessary classes. BesselSingleCamb bess2(k, l_index); BesselSingle bessel(k, &HIS, l_index); // Looping over some x values for (int j = 0; j < 100; j++) { double x = 1 + j * 0.6; double res1 = bessel.w(1,x); double res2 = bess2.w(1,x); if (res1 != 0){ bool t1 = abs(res1) < abs(res2)+10*abs(res2/100.0); bool t2 = abs(res1) > abs(res2)-10*abs(res2/100.0); /*if (not t1 or not t2) { cout << l_index << " " << x << endl; cout << res1 << " =? " << res2 << endl; }*/ } //double res3 = bessel.w(2,x); //double res4 = bess2.w(2,x); //BOOST_CHECK(res3 == res4); } } cout << "Tests done" << endl; // Setting some constants for the bessel functions and integration double k = 2; double epsilon = 1.e-12; double tol = 1.e-6; int l_index = 58; // I stole most of this code from covariance.cpp // Instantiation of all the necessary classes. BesselSingleCamb bess2(k, l_index); BesselSingle bessel(k, &HIS, l_index); LevinBase LB(2,&bessel); LevinBase LB2(2, &bess2); // Alessio's code LevinIteration iterate(&LB,tol,epsilon); // Using the hacked version that uses the more straight forward // CAMB implementation of the Bessel function. LevinIteration iterate2(&LB2,tol,epsilon); cout << bessel.w(2,2345)<< " =? " << bess2.w(2,2345) << endl; //cout << HIS.l[0]<< endl; int n_col = 8; int n_sub = 16; double A = 100; double B = 2000.0; integral_params ip; vector<double> dummy; double result, result2; // I would like to simply integrate two bessel functions with a simple kernel of say F = x. // This computes: integrate( x j_58(k*x) , x, 100, 200) for k = 2 iterate(&F, &ip, A, B, n_col, result, dummy, n_sub); iterate2(&F, &ip, A, B, n_col, result2, dummy, n_sub); cout << result << " =? " << result2 << endl; // Now I want to compare that to the brute force method I've been using. string iniFilename = "UnitTestData/test_params_check_cosmobasis.ini"; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); CosmoBasis Basis(params); auto test_f2 = [&](double x){ double j = Basis.sph_bessel_camb(l_index, k* x); return j * x; }; double I = integrate(test_f2, A, B, 1000, simpson()); double I2 = integrate(test_f2, A, B, 10000, simpson()); double I3 = integrate(test_f2, A, B, 100000, simpson()); cout << I << " " << I2 << " " << I3 << endl; cout << "We produce the relative error for all integrals of x j_l(2x) varying l from 1 to 1500." << endl; cout << "We also vary the number of collocation points used for all l values." << endl; vector<vector<double>> output; for (int l = 1; l < 100; l++) { vector<double> row; // Here I check whether I get the same numerical result using both // ways of computing the bessel function. int l_index = l; //cout << "l = " << l_index << endl; // Setting some constants for the bessel functions and integration double k = 2; // Instantiation of all the necessary classes. //BesselSingleCamb bess2(k, l_index); //BesselSingle bessel(k, &HIS, l_index); BesselProduct bessel(2.0, 2.3, &HIS, l_index); LevinBase LB(2,&bessel); //LevinBase LB2(2, &bess2); // Alessio's code LevinIteration iterate(&LB,tol,epsilon); // Using the hacked version that uses the more straight forward // CAMB implementation of the Bessel function. //LevinIteration iterate2(&LB2,tol,epsilon); for (int n = 2; n < 33; n++) { int n_col = n; int n_sub = 2*n; double A = 10; double B = 2000.0; integral_params ip; vector<double> dummy; double res1, res2; // I would like to simply integrate two bessel functions with a simple kernel of say F = x. // This computes: integrate( x j_l(k*x) , x, 10, 2000) for k = 2 iterate(&F, &ip, A, B, n_col, res1, dummy, n_sub); //iterate2(&F, &ip, A, B, n_col, res2, dummy, n_sub); //BOOST_CHECK(abs(res1) <= abs(res2 + 0.1 * res2)); //BOOST_CHECK(abs(res1) >= abs(res2 - 0.1 * res2)); //cout << "using HIS =? using camb jl, both with levin" << endl; //cout << res1 << " =? " << res2 << endl; auto test_f2 = [&](double x){ double j1 = Basis.sph_bessel_camb(l_index, 2.0* x); double j2 = Basis.sph_bessel_camb(l_index, 2.3*x); return j1 * j2 * x; }; auto test_f3 = [&](double x){ double j = bessel.w(1, x); return j * x; }; //double I = integrate(test_f2, A, B, 1000, simpson()); //double I2 = integrate(test_f2, A, B, 10000, simpson()); //double I3 = integrate(test_f2, A, B, 100000, simpson()); //double I4 = integrate(test_f2, A, B, 100000, simpson()); //double I5 = integrate(test_f2, A, B, 100000, simpson()); //cout << I << " " << I2 << " " << I3 <<" " << I4 << " " << I5<< endl; double I = integrate(test_f2, A, B, 10000, simpson()); //double aI2 = integrate(test_f3, A, B, 10000, simpson()); //double aI3 = integrate(test_f3, A, B, 100000, simpson()); //double aI4 = integrate(test_f3, A, B, 100000, simpson()); //double aI5 = integrate(test_f3, A, B, 100000, simpson()); double r = (res1 - I) / I; row.push_back(r); //cout << aI << " " << aI2 << " " << aI3 <<" " << aI4 << " " << aI5 << endl; } output.push_back(row); } ofstream outfile("integration_comp_p.dat"); for (int i = 0; i < output.size(); i++) { for (int j = 0; j < output[0].size(); j++) { outfile << output[i][j] << " "; } outfile << endl; } int lind = 39; cout << "Now Checking l = " << lind << " which has some problems" << endl; BesselSingle bessel22(k, &HIS, lind); auto test_f3 = [&](double x){ double j = bessel22.w(1, x); return j * x; }; double t1 = clock(); I = integrate(test_f3, 12.0, 2000.0, 10000, simpson()); double t2 = clock(); double t = (t2-t1)/double(CLOCKS_PER_SEC)*1000; LevinBase LB22(2,&bessel22); // Alessio's code LevinIteration iterate22(&LB22,tol,epsilon); for (int i = 2; i < 65; i++) { integral_params ip; double res; double start = clock(); iterate22(&F, &ip, 12, 2000, i, res, dummy, 2*i); double end = clock(); double time = (end - start)/double(CLOCKS_PER_SEC)*1000; cout << i << " " << res << " " << I << " " << time << " " << t << endl; } /** SETUP **/ /** CHECKS **/ } /** * This test is supposed to test the behaviour and speed of the integrals and * sub integrals used in the computation of the non-linear Bispectrum */ BOOST_AUTO_TEST_CASE(check_bispectrum_integrals) { /** SETUP **/ // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_check_bispectrum_integrals.ini"; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); vector<string> keys = parser.giveParamKeys(); string matrixPath = parser.giveMatrixPath(); string fisherPath = parser.giveFisherPath(); int Pk_index = 0; int Tb_index = 0; int q_index = 0; CosmoBasis Basis(params); Model_Intensity_Mapping* model = NULL; model = new Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); IntensityMapping* analysis = NULL; analysis = new IntensityMapping(model, keys.size()); TEST_Bispectrum* NLG = NULL; NLG = new TEST_Bispectrum(analysis); /* Bispectrum_LISW* LISW = NULL; LISW = new Bispectrum_LISW(analysis, keys.size()); Bispectrum_Effects effects = ALL_eff; TEST_Bispectrum_Fisher fish(analysis, LISW, NLG, keys, fisherPath); */ /** CHECKS **/ /* double nu_min = 650; //nu_max = 790, so between z = 0.8 and z = 1.2 double nu_stepsize = 10; int n_points_per_thread = 2; int n_threads = 1; double k = 0.2; double delta_z = 0.1; double z_centre = 1.0; // Let's compute alpha in 3 different ways, // once using my framework, // once using the same code as in the framework but with a huge number of points // and once using Alessio's integrator. // case 1: double start = clock(); double alpha_res1 = NLG->test_alpha(100, k, z_centre, delta_z, Pk_index, Tb_index, q_index); double end = clock(); double time = (end - start)/double(CLOCKS_PER_SEC); cout << "Case 1: conventional alpha computation, using 100 integration steps." << endl; cout << "case 1: alpha = " << alpha_res1 << ", time = " << time << endl; // case 2: start = clock(); double alpha_res2 = NLG->custom_alpha2(100, k, z_centre, delta_z, Pk_index, Tb_index, q_index, 10000); end = clock(); time = (end - start)/double(CLOCKS_PER_SEC); cout << "Case 2: Alpha computation, using 10000 integration steps." << endl; cout << "case 2: alpha = " << alpha_res2 << ", time = " << time << endl; // case 3: // Parameters for Alessio's bessel implementation int K=0; // sets curvature for Hyperspherical bessel implementation double beta=1.; double min = 0.01; double max = 1.e5; double sampling = 80; double phi_min_abs = 1.e-10; ErrorMsg error_message; double epsilon = 1.e-12; double tol = 1.e-15; int l_index = 58; int nk = 20; double kmin = 5.e-3; double kmax = 1.0; // Let's make a list of 150 l modes spherical bessel functions. int nl = 150; int* l; l = new int[nl]; for (int i = 0; i < nl; ++i) { l[i] = i; } // Structure which stores interpolated spherical bessel functions HyperInterpStruct HIS; hyperspherical_HIS_create(K,beta,nl,l, min, max, sampling,\ l[nl-1]+1, phi_min_abs, &HIS, error_message); BesselSingle bessel(k, &HIS, l_index); LevinBase LB(2,&bessel); // Alessio's code LevinIteration iterate(&LB,tol,epsilon); //cout << HIS.l[0]<< endl; int n_col = 12; int n_sub = 24; double A = NLG->analysis->model->r_interp(z_centre - delta_z); double B = NLG->analysis->model->r_interp(z_centre + delta_z); //cout << "A = " << A << " B = " << B << endl; //A = 4000; //B = 5000; integral_params ip; vector<double> dummy; double result; // I would like to simply integrate two bessel functions with a simple kernel of say F = x. //the integration bounds should be between r(A) and r(B) start = clock(); iterate(NLG, &ip, A, B, n_col, result, dummy, n_sub); end = clock(); time = (end - start)/double(CLOCKS_PER_SEC); cout << "Case 3: Alpha computation, using Levin integration. Most likely bad, so ignore." << endl; cout << "case 3: alpha = "<<result << ", time = " << time << endl; //iterate(&F, &ip, A, B, n_col, result, dummy, n_sub); //cout << result << endl; //result = NLG->custom_alpha2(100, k, z_centre, delta_z, Pk_index, Tb_index, q_index, 10000); //cout << result << endl; start = clock(); result = NLG->custom_alpha3(100, k, z_centre, delta_z, Pk_index, Tb_index, q_index, true); end = clock(); time = (end - start)/double(CLOCKS_PER_SEC); cout << "Case 4: Alpha computation, using n_steps determined automatically." << endl; cout << "case 4: alpha = "<< result << ", time = " << time << endl; cout << "Now writing x*j_100(0.2 * x) to file alpha.dat" << endl; ofstream file("alpha.dat"); int nmax = 10000; A = 0.0001; B = 1.2; double delta_x = (B-A)/(double)nmax; for (int i = 0; i < nmax; i++) { double x = A + i * delta_x; double res = NLG->custom_alpha3(100, x, 1.4, 0.1, Pk_index, Tb_index, q_index, false); double appro = NLG->alpha_approx(100, x, 1.4, 0.1); //double res = x * Basis.sph_bessel_camb(100, k* x); file << x << " " <<res << " " << appro << endl; } file.close(); cout << "-----------------------------------" << endl; int ll = 300; cout << "Now computing Thetas for l = " << ll << endl; result = NLG->theta_calc_1(ll, ll, 1.0, 0, z_centre, delta_z); cout << "Theta using automatic number of steps = " << result << endl; result = NLG->theta_calc_2(ll, ll, 1.0, 0, z_centre, delta_z); cout << "Theta using 1000 (l < 200) or 100 (l > 200) integration steps = " <<result << endl; result = NLG->theta_calc_3(ll, ll, 1.0, 0, z_centre, delta_z, 5000); cout << "Theta using 5000 integration steps = " << result << endl; //NLG->build_z_of_r(); cout << "testing z_of_r. Result should be 8213:" << endl; //cout << NLG->z_of_r(8123) << endl; cout << "Result = " << NLG->analysis->model->r_interp(NLG->z_of_r(8123))<< endl; cout << "-----------------------------------" << endl; /* cout << " Now checking how quickly theta varies as a function of z" << endl; double z = 0.8; double sum = 0; start = clock(); result = NLG->theta_calc_1(ll, ll, z, 0, z, delta_z); sum += result; end = clock(); time = (end - start)/double(CLOCKS_PER_SEC); cout << " At z = " << z << ", theta = " << result << ", time = " << time << endl; z = 0.85; result = NLG->theta_calc_1(ll, ll, z, 0, z, delta_z); sum += result; cout << " At z = " << z << ", theta = " << result << endl; z = 0.9; result = NLG->theta_calc_1(ll, ll, z, 0, z, delta_z); sum += result; cout << " At z = " << z << ", theta = " << result << endl; z = 0.95; result = NLG->theta_calc_1(ll, ll, z, 0, z, delta_z); sum += result; cout << " At z = " << z << ", theta = " << result << endl; z = 1.0; result = NLG->theta_calc_1(ll, ll, z, 0, z, delta_z); sum += result; cout << " At z = " << z << ", theta = " << result << endl; z = 1.05; result = NLG->theta_calc_1(ll, ll, z, 0, z, delta_z); sum += result; cout << " At z = " << z << ", theta = " << result << endl; z = 1.1; result = NLG->theta_calc_1(ll, ll, z, 0, z, delta_z); sum += result; cout << " At z = " << z << ", theta = " << result << endl; z = 1.15; result = NLG->theta_calc_1(ll, ll, z, 0, z, delta_z); sum += result; cout << " At z = " << z << ", theta = " << result << endl; z = 1.2; result = NLG->theta_calc_1(ll, ll, z, 0, z, delta_z); sum += result; cout << " At z = " << z << ", theta = " << result << endl; cout << "Average result = " << sum / 9.0 << endl; cout << " Now writing theta(z) at l = " << ll << " to file theta_l.dat." << endl; cout << " The 3rd column applies the limber approximation and just shows how bad that is. " << endl; stringstream name; name << "theta_" << ll << "_4.dat"; ofstream ff(name.str()); // determine freq boxes vector<double> freq_bins; for (int i = 0; i < 18; i++) { freq_bins.push_back(0.8 + i * 0.1); } start = clock(); for (int i = 0; i < 160; i++) { z = 0.8 + i * 0.01; double zc = 0; for (int j = 0; j < 17; j++) { if ((z >= freq_bins[j]) and (z < freq_bins[j+1])) zc = freq_bins[j]; } //cout << i << endl; result = NLG->theta_calc_1(ll, ll, z, 0, z, 0.1, false); double r = NLG->theta_calc_4(ll, ll, z, 0, z, 0.1, 1000); ff << z << " " << result << " " << r << endl; } ff.close(); end = clock(); time = (end - start)/double(CLOCKS_PER_SEC); cout << "Doing 160 evaluations took " << time << " seconds, ie " << time/160.0 << "s per eval" << endl; cout << "-----------------------------------" << endl; */ int ll = 100; double nu_centre = 800; double nu_width = 10; int nsteps = 200; ofstream ff("theta_100_new_V1.dat"); double z_centre = 1420.4/nu_centre - 1; double delta_z = z_centre - (1420.4/(nu_centre+nu_width) - 1); double stepsize = 8 * delta_z / 80.0; double t = NLG->theta_calc_5(ll, ll, z_centre, 0, nu_centre, nu_width, nsteps, 0, 0, 0); double sigma = nu_width / 2.0; double start = clock(); for (int i = 0; i < 80; i++) { double z = z_centre - 4*delta_z + i * stepsize; double res = 1;//NLG->theta_calc_5(ll, ll, z, 0, nu_centre, nu_width, nsteps, 0, 0, 0); double res2 = NLG->theta_calc_6(ll, ll, z, 0, nu_centre, nu_width, nsteps, 0, 0, 0); double nu = 1420.4/(1.0+z); double w = 1;//t * exp(-0.5*pow((nu - nu_centre)/sigma,2));//NLG->theta_calc_5 NLG->Wnu_z(z, nu_centre, nu_width); ff << z << " " << res << " " << res2 << endl; } double end = clock(); double time = (end - start)/double(CLOCKS_PER_SEC); cout << time << endl; /*auto integrand = [&](double zp) { double r = analysis->model->q_interp(zp,q_index); double jl = analysis->model->sph_bessel_camb(l,k*r); // 1000 factor is necessary to convert km into m. double hub = analysis->model->H_interp(zp,q_index)*1000.0; double D = D_Growth_interp(zp, q_index); return (analysis->model->c / hub) * jl * D * f1(zp,Tb_index) * Wnu(r, z_centre, delta_z); }; double zmin = z_centre - delta_z; double zmax = z_centre + delta_z; double I = integrate(integrand, zmin, zmax, 100, simpson()); */ } /** * This test case checks whether the basic cosmology functions * implemented in the CosmoBasis class are working as expected. * Functions s.a. luminosity distance or the age of the universe. * As a comparison I have taken the values quoted by Ned Wright's * online cosmology calculator, for equivalent parametrisations * of the cosmological parameters. */ BOOST_AUTO_TEST_CASE(check_cosmobasis) { /** SETUP **/ string iniFilename = "UnitTestData/test_params_check_cosmobasis.ini"; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); CosmoBasis Basis(params); // age of the universe in Gyrs // the factor of 977... converts from s*Mpc/km to Gyrs. double age = Basis.age_of_universe(0) * 977.792988; double ltt = Basis.light_travel_time(3) * 977.792988; double radial_dist = Basis.comoving_radial_dist(3); double vol = Basis.comoving_volume(3) * 1E-9; double ang_dist = Basis.angular_diam_dist(3); double lum = Basis.luminosity_dist(3); /** CHECKS **/ // Most of these checks compare to Ned Wrights calculator with H0 = 69.6, // OmegaM = 0.308908, flat, at redshift z = 3. BOOST_REQUIRE(Basis.Omega_M(0) < 0.3095 && Basis.Omega_M(0) > 0.3085); BOOST_REQUIRE(Basis.Omega_V(0) < 0.6915 && Basis.Omega_V(0) > 0.6905); BOOST_CHECK(age < 13.4295 && age > 13.4285); BOOST_CHECK(ltt < 11.3385 && ltt > 11.3375); BOOST_CHECK(radial_dist < 6335.75 && radial_dist > 6335.65); BOOST_CHECK(vol < 1065.325 && vol > 1065.315); BOOST_CHECK(ang_dist < 1583.95 && ang_dist > 1583.85); BOOST_CHECK(lum < 25343.5 && lum > 25342.5); } /** * This test case should check whether the power spectrum computed * by CAMB actually corresponds to the right power spectrum. * Here I compare the locally obtained P(k,z) to a power spectrum * obtained from a freshly installed copy of CAMB for the same * cosmological parameters. * I compare a P(k) at z = 0, and a P(k) at z = 5. */ BOOST_AUTO_TEST_CASE(check_CAMB_CALLER) { /** SETUP **/ // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_check_cambcaller.ini"; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); int Pk_index = 0; int Tb_index = 0; int q_index = 0; Model_Intensity_Mapping* model = NULL; model = new Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); CAMB_CALLER CAMB; CAMB.call(params); vector<double> vk = CAMB.get_k_values(); vector<vector<double>> Pz = CAMB.get_Pz_values(); ifstream pk0file; ifstream pk5file; double k, Pk; vector<double> k0_vals, Pk0_vals, k5_vals, Pk5_vals; pk0file.open("UnitTestData/PK_z0_check_cambcaller.dat"); pk5file.open("UnitTestData/PK_z5_check_cambcaller.dat"); while (pk0file >> k >> Pk) { k0_vals.push_back(k); Pk0_vals.push_back(Pk); } while (pk5file >> k >> Pk) { k5_vals.push_back(k); Pk5_vals.push_back(Pk); } // don't quite know what appropriate test cases are here. // Maybe I could have a fiducial Pz result here that I could compare each value in the // Pz container with. This should best be computed by some other source, not my local CAMB // copy, eg. iCosmo. // Currently this is using the output from a controlled copy of CAMB, I whink this test should be fine. // It checks whether these values agree to 1 part in 1000. /** CHECKS **/ //TODO: Write checks BOOST_CHECK(Pk0_vals[0] < model->Pkz_interp(k0_vals[0], 0, Pk_index) +\ model->Pkz_interp(k0_vals[0], 0, Pk_index)/1000.0); BOOST_CHECK(Pk0_vals[0] > model->Pkz_interp(k0_vals[0], 0, Pk_index) -\ model->Pkz_interp(k0_vals[0], 0, Pk_index)/1000.0); BOOST_CHECK(Pk0_vals[10] < model->Pkz_interp(k0_vals[10], 0, Pk_index) +\ model->Pkz_interp(k0_vals[10], 0, Pk_index)/1000.0); BOOST_CHECK(Pk0_vals[10] > model->Pkz_interp(k0_vals[10], 0, Pk_index) -\ model->Pkz_interp(k0_vals[10], 0, Pk_index)/1000.0); BOOST_CHECK(Pk0_vals[20] < model->Pkz_interp(k0_vals[20], 0, Pk_index) +\ model->Pkz_interp(k0_vals[20], 0, Pk_index)/1000.0); BOOST_CHECK(Pk0_vals[20] > model->Pkz_interp(k0_vals[20], 0, Pk_index) -\ model->Pkz_interp(k0_vals[20], 0, Pk_index)/1000.0); BOOST_CHECK(Pk0_vals[30] < model->Pkz_interp(k0_vals[30], 0, Pk_index) +\ model->Pkz_interp(k0_vals[30], 0, Pk_index)/1000.0); BOOST_CHECK(Pk0_vals[30] > model->Pkz_interp(k0_vals[30], 0, Pk_index) -\ model->Pkz_interp(k0_vals[30], 0, Pk_index)/1000.0); BOOST_CHECK(Pk0_vals[40] < model->Pkz_interp(k0_vals[40], 0, Pk_index) +\ model->Pkz_interp(k0_vals[40], 0, Pk_index)/1000.0); BOOST_CHECK(Pk0_vals[40] > model->Pkz_interp(k0_vals[40], 0, Pk_index) -\ model->Pkz_interp(k0_vals[40], 0, Pk_index)/1000.0); BOOST_CHECK(Pk5_vals[0] < model->Pkz_interp(k5_vals[0], 5, Pk_index) +\ model->Pkz_interp(k5_vals[0], 5, Pk_index)/1000.0); BOOST_CHECK(Pk5_vals[0] > model->Pkz_interp(k5_vals[0], 5, Pk_index) -\ model->Pkz_interp(k5_vals[0], 5, Pk_index)/1000.0); BOOST_CHECK(Pk5_vals[10] < model->Pkz_interp(k5_vals[10], 5, Pk_index) +\ model->Pkz_interp(k5_vals[10], 5, Pk_index)/1000.0); BOOST_CHECK(Pk5_vals[10] > model->Pkz_interp(k5_vals[10], 5, Pk_index) -\ model->Pkz_interp(k5_vals[10], 5, Pk_index)/1000.0); BOOST_CHECK(Pk5_vals[20] < model->Pkz_interp(k5_vals[20], 5, Pk_index) +\ model->Pkz_interp(k5_vals[20], 5, Pk_index)/1000.0); BOOST_CHECK(Pk5_vals[20] > model->Pkz_interp(k5_vals[20], 5, Pk_index) -\ model->Pkz_interp(k5_vals[20], 5, Pk_index)/1000.0); BOOST_CHECK(Pk5_vals[30] < model->Pkz_interp(k5_vals[30], 5, Pk_index) +\ model->Pkz_interp(k5_vals[30], 5, Pk_index)/1000.0); BOOST_CHECK(Pk5_vals[30] > model->Pkz_interp(k5_vals[30], 5, Pk_index) -\ model->Pkz_interp(k5_vals[30], 5, Pk_index)/1000.0); BOOST_CHECK(Pk5_vals[40] < model->Pkz_interp(k5_vals[40], 5, Pk_index) +\ model->Pkz_interp(k5_vals[40], 5, Pk_index)/1000.0); BOOST_CHECK(Pk5_vals[40] > model->Pkz_interp(k5_vals[40], 5, Pk_index) -\ model->Pkz_interp(k5_vals[40], 5, Pk_index)/1000.0); delete model; } BOOST_AUTO_TEST_CASE(check_Fisher_Bispectrum) { /** SETUP **/ // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_check_Fisher_Bispectrum.ini"; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); vector<string> keys = parser.giveParamKeys(); string matrixPath = parser.giveMatrixPath(); string fisherPath = parser.giveFisherPath(); int Pk_index = 0; int Tb_index = 0; int q_index = 0; TEST_Model_Intensity_Mapping* model = NULL; model = new TEST_Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); TEST_IntensityMapping* analysis = NULL; analysis = new TEST_IntensityMapping(model, keys.size()); Bispectrum* NLG = NULL; NLG = new Bispectrum(analysis); Bispectrum_LISW* LISW = NULL; LISW = new Bispectrum_LISW(analysis, keys.size()); Bispectrum_Effects effects = ALL_eff; TEST_Bispectrum_Fisher fish(analysis, LISW, NLG, keys, fisherPath); /** CHECKS **/ double nu_min = 650; //nu_max = 790, so between z = 0.8 and z = 1.2 double nu_stepsize = 10; int n_points_per_thread = 2; int n_threads = 1; bool limber = true; fish.compute_F_matrix(nu_min, nu_stepsize, n_points_per_thread, n_threads, effects, limber); stringstream filename1, filename2, filename3; filename1 << fisherPath << "/Fl_ombh2_ombh2.dat"; filename2 << fisherPath << "/Fl_ombh2_omch2.dat"; filename3 << fisherPath << "/Fl_omch2_omch2.dat"; double val1, val2, val3, temp; ifstream f1(filename1.str()); ifstream f2(filename2.str()); ifstream f3(filename3.str()); f1 >> temp >> val1; f2 >> temp >> val2; f3 >> temp >> val3; double ombh1, ombh2, omch1, omch2; ombh1 = sqrt(val1/4.0); omch1 = sqrt(sqrt(1.0/val3)); ombh2 = omch1*omch1*val2/2.0; omch2 = sqrt(2.0*ombh1/val2); double ombh2_ref, omch2_ref; ombh2_ref = 0.022; omch2_ref = 0.127; /** CHECKS **/ // The right values are recovered to within 1% of the true value. // CURRENTLY NOT WORKING cout << ombh1 << " " << ombh2 << endl; BOOST_CHECK(ombh1 > ombh2_ref - 0.01 * ombh2_ref); BOOST_CHECK(ombh1 < ombh2_ref + 0.01 * ombh2_ref); BOOST_CHECK(ombh2 > ombh2_ref - 0.01 * ombh2_ref); BOOST_CHECK(ombh2 < ombh2_ref + 0.01 * ombh2_ref); BOOST_CHECK(omch1 > omch2_ref - 0.01 * omch2_ref); BOOST_CHECK(omch1 < omch2_ref + 0.01 * omch2_ref); BOOST_CHECK(omch2 > omch2_ref - 0.01 * omch2_ref); BOOST_CHECK(omch2 < omch2_ref + 0.01 * omch2_ref); } /** * This check checks the Ql and Cl functions used in the LISW bispectrum calculation. * There are 2 different ways this class interpolates these functions, it is checked * that both give the same result. * */ BOOST_AUTO_TEST_CASE(check_LISW) { /** SETUP **/ // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_check_LISW.ini"; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); vector<string> keys = parser.giveParamKeys(); string matrixPath = parser.giveMatrixPath(); string fisherPath = parser.giveFisherPath(); int Pk_index = 0; int Tb_index = 0; int q_index = 0; TEST_Model_Intensity_Mapping* model = NULL; model = new TEST_Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); TEST_IntensityMapping* analysis = NULL; analysis = new TEST_IntensityMapping(model, keys.size()); Bispectrum_LISW* LISW = NULL; LISW = new Bispectrum_LISW(analysis, keys.size()); Bispectrum_LISW* LISW_small = NULL; LISW_small = new Bispectrum_LISW(analysis); TEST_LISW_SN* SN = NULL; SN = new TEST_LISW_SN(analysis, keys.size()); TEST_LISW_SN* SN_small = NULL; SN_small = new TEST_LISW_SN(analysis); double z = 0.9; int l1 = 10; int l2 = 50; int l3 = 100; int l4 = 200; int l5 = 500; /** CHECKS **/ // Check that both Ql interpolators return the same values. double ql1 = LISW_small->Ql(l1,z); double ql3 = LISW_small->Ql(l2,z); double ql5 = LISW_small->Ql(l3,z); double ql7 = LISW_small->Ql(l4,z); double ql9 = LISW_small->Ql(l5,z); double ql2 = LISW->Ql(l1,z,0,0,0); double ql4 = LISW->Ql(l2,z,0,0,0); double ql6 = LISW->Ql(l3,z,0,0,0); double ql8 = LISW->Ql(l4,z,0,0,0); double ql10 = LISW->Ql(l5,z,0,0,0); BOOST_CHECK(abs(ql1) <= abs(ql2 + ql2*0.01)); BOOST_CHECK(abs(ql1) >= abs(ql2 - ql2*0.01)); BOOST_CHECK(abs(ql3) <= abs(ql4 + ql4*0.01)); BOOST_CHECK(abs(ql3) >= abs(ql4 - ql4*0.01)); BOOST_CHECK(abs(ql5) <= abs(ql6 + ql6*0.01)); BOOST_CHECK(abs(ql5) >= abs(ql6 - ql6*0.01)); BOOST_CHECK(abs(ql7) <= abs(ql8 + ql8*0.01)); BOOST_CHECK(abs(ql7) >= abs(ql8 - ql8*0.01)); BOOST_CHECK(abs(ql9) <= abs(ql10 + ql10*0.01)); BOOST_CHECK(abs(ql9) >= abs(ql10 - ql10*0.01)); // Check that both Ql interpolators return the same values. double nu = 1420.0/(1.0+z); double cl1 = LISW_small->Cl(l1,nu,nu); double cl3 = LISW_small->Cl(l2,nu,nu); double cl5 = LISW_small->Cl(l3,nu,nu); double cl7 = LISW_small->Cl(l4,nu,nu); double cl9 = LISW_small->Cl(l5,nu,nu); double cl2 = LISW->Cl(l1,nu,nu,0,0,0); double c2up = cl2 + cl2*0.01; double c2d = cl2 - cl2*0.01; double cl4 = LISW->Cl(l2,nu,nu,0,0,0); double c4up = cl4 + cl4*0.01; double c4d = cl4 - cl4*0.01; double cl6 = LISW->Cl(l3,nu,nu,0,0,0); double c6up = cl6 + cl6*0.01; double c6d = cl6 - cl6*0.01; double cl8 = LISW->Cl(l4,nu,nu,0,0,0); double c8up = cl8 + cl8*0.01; double c8d = cl8 - cl8*0.01; double cl10 = LISW->Cl(l5,nu,nu,0,0,0); double c10up = cl10 + cl10*0.01; double c10d = cl10 - cl10*0.01; BOOST_CHECK(abs(cl1) <= abs(c2up)); BOOST_CHECK(abs(cl1) >= abs(c2d)); BOOST_CHECK(abs(cl3) <= abs(c4up)); BOOST_CHECK(abs(cl3) >= abs(c4d)); BOOST_CHECK(abs(cl5) <= abs(c6up)); BOOST_CHECK(abs(cl5) >= abs(c6d)); BOOST_CHECK(abs(cl7) <= abs(c8up)); BOOST_CHECK(abs(cl7) >= abs(c8d)); BOOST_CHECK(abs(cl9) <= abs(c10up)); BOOST_CHECK(abs(cl9) >= abs(c10d)); // Check that both Blll methods are the same for the fiducial model, to within 1%. double b1 = LISW_small->calc_Blll(l1,l1,l1,z,z,z); double b2 = LISW->calc_angular_Blll_all_config(l1,l1,l1,z,z,z,0,0,0); double b3 = LISW_small->calc_Blll(l2,l2,l2,z,z,z); double b4 = LISW->calc_angular_Blll_all_config(l2,l2,l2,z,z,z,0,0,0); double b5 = LISW_small->calc_Blll(l3,l3,l3,z,z,z); double b6 = LISW->calc_angular_Blll_all_config(l3,l3,l3,z,z,z,0,0,0); double b7 = LISW_small->calc_Blll(l4,l4,l4,z,z,z); double b8 = LISW->calc_angular_Blll_all_config(l4,l4,l4,z,z,z,0,0,0); double b9 = LISW_small->calc_Blll(l5,l5,l5,z,z,z); double b10 = LISW->calc_angular_Blll_all_config(l5,l5,l5,z,z,z,0,0,0); double b11 = LISW->calc_angular_Blll_all_config_new_parallelism(l1,l1,l1,z,z,z,0,0,0); double b12 = LISW->calc_angular_Blll_all_config_new_parallelism(l2,l2,l2,z,z,z,0,0,0); double b13 = LISW->calc_angular_Blll_all_config_new_parallelism(l3,l3,l3,z,z,z,0,0,0); double b14 = LISW->calc_angular_Blll_all_config_new_parallelism(l4,l4,l4,z,z,z,0,0,0); double b15 = LISW->calc_angular_Blll_all_config_new_parallelism(l5,l5,l5,z,z,z,0,0,0); BOOST_CHECK(abs(b1) <= abs(b2 + b2*0.01)); BOOST_CHECK(abs(b1) >= abs(b2 - b2*0.01)); BOOST_CHECK(abs(b3) <= abs(b4 + b4*0.01)); BOOST_CHECK(abs(b3) >= abs(b4 - b4*0.01)); BOOST_CHECK(abs(b5) <= abs(b6 + b6*0.01)); BOOST_CHECK(abs(b5) >= abs(b6 - b6*0.01)); BOOST_CHECK(abs(b7) <= abs(b8 + b8*0.01)); BOOST_CHECK(abs(b7) >= abs(b8 - b8*0.01)); BOOST_CHECK(abs(b9) <= abs(b10 + b10*0.01)); BOOST_CHECK(abs(b9) >= abs(b10 - b10*0.01)); BOOST_CHECK(abs(b1) <= abs(b11 + b11*0.01)); BOOST_CHECK(abs(b1) >= abs(b11 - b11*0.01)); BOOST_CHECK(abs(b3) <= abs(b12 + b12*0.01)); BOOST_CHECK(abs(b3) >= abs(b12 - b12*0.01)); BOOST_CHECK(abs(b5) <= abs(b13 + b13*0.01)); BOOST_CHECK(abs(b5) >= abs(b13 - b13*0.01)); BOOST_CHECK(abs(b7) <= abs(b14 + b14*0.01)); BOOST_CHECK(abs(b7) >= abs(b14 - b14*0.01)); BOOST_CHECK(abs(b9) <= abs(b15 + b15*0.01)); BOOST_CHECK(abs(b9) >= abs(b15 - b15*0.01)); ofstream file1("plots/data/test_lensing_kernel_z1.dat"); ofstream file2("plots/data/test_grav_potential_deriv_z1_l100.dat"); double z_fixed = 1; for (int i = 0; i < 10000; i++) { double z = i * 0.01; file1 << z << " " << SN->TEST_lensing_kernel(z,z_fixed) << endl; } int l = 10; for (int i = 0; i < 10000; i++) { double z = i * 0.01; file2 << z << " " << SN->TEST_grav_pot(l,z,z_fixed) << endl; } delete model; delete analysis; delete LISW; delete LISW_small; } /* * This check also checks how good the limber approximation is in the context of Cls * including the window function. */ BOOST_AUTO_TEST_CASE(check_Cl_limber) { /** SETUP **/ // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_check_LISW.ini"; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); vector<string> keys = parser.giveParamKeys(); string matrixPath = parser.giveMatrixPath(); string fisherPath = parser.giveFisherPath(); int Pk_index = 0; int Tb_index = 0; int q_index = 0; Model_Intensity_Mapping* model = new Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); IntensityMapping* analysis = new IntensityMapping(model, keys.size()); //Bispectrum_LISW* LISW = new Bispectrum_LISW(analysis, keys.size()); /** CHECKS **/ int l = 1200; double z = 1; double nu = 1420.4/(1+z); double nu_width = 10; double cl = analysis->Cl_limber_Window(l, nu, nu_width, 0, 0, 0); double cl2 = analysis->calc_Cl(l,nu,nu,0, 0, 0); cout << cl << " " << cl2 << endl; cout << "Cls for nu = " << nu << " computed" << endl; ofstream file("test_cl_limber.dat"); for (int i = 1; i < 100; i++) { int l = exp(i*0.1); if (l < 10000) { double cl1 = analysis->calc_Cl(l,nu,nu,0, 0, 0); double cl2 = analysis->Cl_limber_Window(l, nu, nu_width, 0, 0, 0); file << l << " " << l*(l+1)*cl1/(2.0*M_PI)<< " " << l*(l+1)*cl2/(2.0*M_PI)<< endl; cout << l << " " << l*(l+1)*cl1/(2.0*M_PI) << " " << l*(l+1)*cl2/(2.0*M_PI)<< endl; } } } BOOST_AUTO_TEST_CASE(check_Cl_limber_fct_h) { /** SETUP **/ // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_check_LISW.ini"; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); vector<string> keys = parser.giveParamKeys(); string matrixPath = parser.giveMatrixPath(); string fisherPath = parser.giveFisherPath(); int Pk_index = 0; int Tb_index = 0; int q_index = 0; int l = 1200; double z = 1; double nu = 1420.4/(1+z); double nu_width = 10; double A = 0.5*params["hubble"]; params["hubble"] = A; cout << params["hubble"] << endl; Model_Intensity_Mapping* model = new Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); IntensityMapping* analysis = new IntensityMapping(model, keys.size()); //Bispectrum_LISW* LISW = new Bispectrum_LISW(analysis, keys.size()); /** CHECKS **/ double n = analysis->Cl_noise(600, 700, 700, true); cout << "N = " << n << endl; double cl = analysis->Cl_limber_Window(l, nu, nu_width, 0, 0, 0); double cl2 = analysis->calc_Cl(l,nu,nu,0, 0, 0); cout << cl << " " << cl2 << endl; params["hubble"] = 1.2*A; cout << params["hubble"] << endl; model = new Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); analysis = new IntensityMapping(model, keys.size()); cl = analysis->Cl_limber_Window(l, nu, nu_width, 0, 0, 0); cl2 = analysis->calc_Cl(l,nu,nu,0, 0, 0); cout << cl << " " << cl2 << endl; params["hubble"] = 2.4*A; cout << params["hubble"] << endl; model = new Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); analysis = new IntensityMapping(model, keys.size()); cl = analysis->Cl_limber_Window(l, nu, nu_width, 0, 0, 0); cl2 = analysis->calc_Cl(l,nu,nu,0, 0, 0); cout << cl << " " << cl2 << endl; } BOOST_AUTO_TEST_CASE(check_Cl_contributions) { /** SETUP **/ // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_check_LISW.ini"; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); vector<string> keys = parser.giveParamKeys(); string matrixPath = parser.giveMatrixPath(); string fisherPath = parser.giveFisherPath(); int Pk_index = 0; int Tb_index = 0; int q_index = 0; int l = 1200; double z = 1; double nu = 1420.4/(1+z); double nu_width = 10; double A = 0.5*params["hubble"]; params["hubble"] = A; cout << params["hubble"] << endl; Model_Intensity_Mapping* model = new Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); IntensityMapping* analysis = new IntensityMapping(model, keys.size()); Powerspectrum_Fisher fish(analysis, keys, fisherPath); /** CHECKS **/ fish.Cl(100, 700); fish.Cl(200, 700); fish.Cl(300, 700); fish.Cl(400, 700); fish.Cl(500, 700); fish.Cl(600, 700); fish.Cl(700, 700); fish.Cl(800, 700); cout << " " << endl; fish.Cl(100, 500); fish.Cl(200, 500); fish.Cl(300, 500); fish.Cl(400, 500); fish.Cl(500, 500); fish.Cl(600, 500); fish.Cl(700, 500); fish.Cl(800, 500); } BOOST_AUTO_TEST_CASE(check_Cl_limber_sum) { /** SETUP **/ // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_check_Olivari.ini"; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); vector<string> keys = parser.giveParamKeys(); string matrixPath = parser.giveMatrixPath(); string fisherPath = parser.giveFisherPath(); int Pk_index = 0; int Tb_index = 0; int q_index = 0; int lmax = 383; double nu_min = 960; double nu_width = 7.5; Model_Intensity_Mapping* model = new Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); IntensityMapping* analysis = new IntensityMapping(model, keys.size()); //Bispectrum_LISW* LISW = new Bispectrum_LISW(analysis, keys.size()); /** CHECKS **/ double sum = 0; for (int l = 0; l <= lmax; l++) { for (int i = 0; i < 41; i++) { double nu = nu_min + i * nu_width; double cl = analysis->Cl_limber_Window_Olivari(l, nu, nu_width, 0, 0, 0); sum += cl; } } cout << sum << endl; } //trying to reconstruct their figure.3 BOOST_AUTO_TEST_CASE(check_olivari) { /** SETUP **/ // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_check_Olivari.ini"; string base = "plots/data/test_"; string suffix = ".dat"; string name; stringstream outfilename; name = "olivari"; outfilename << base << name << suffix; ofstream file(outfilename.str()); outfilename.str(""); IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); vector<string> keys = parser.giveParamKeys(); string matrixPath = parser.giveMatrixPath(); string fisherPath = parser.giveFisherPath(); int Pk_index = 0; int Tb_index = 0; int q_index = 0; int lmax = 360; Model_Intensity_Mapping* model = new Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); IntensityMapping* analysis = new IntensityMapping(model, keys.size()); //Bispectrum_LISW* LISW = new Bispectrum_LISW(analysis, keys.size()); /** CHECKS **/ double sum = 0; double nu_width = 7.5; for (int l = 0; l <= lmax; l++) { double nu1 = 1420.0/1.13; double nu2 = 1420.0/1.29; double nu3 = 1420.0/1.48; double cl1 = l*(l+1)*analysis->Cl_limber_Window_Olivari(l, nu1, nu_width, 0, 0, 0)/(2.0*3.1415); double cl2 = l*(l+1)*analysis->Cl_limber_Window_Olivari(l, nu2, nu_width, 0, 0, 0)/(2.0*3.1415); double cl3 = l*(l+1)*analysis->Cl_limber_Window_Olivari(l, nu3, nu_width, 0, 0, 0)/(2.0*3.1415); file << l << " " << cl1 << " " << cl2 << " " << cl3 << endl; } cout << "Done -- Now run - python plotOlivari.py " << endl; } /** * This check should check various functionalities of the Bispectrum class. */ BOOST_AUTO_TEST_CASE(check_NLG) { // check whether calc_angular_B and calc_angular_B_nointerp give the same result. /** SETUP **/ // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_check_NLG.ini"; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); vector<string> keys = parser.giveParamKeys(); string matrixPath = parser.giveMatrixPath(); string fisherPath = parser.giveFisherPath(); int Pk_index = 0; int Tb_index = 0; int q_index = 0; Model_Intensity_Mapping* model = NULL; model = new Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); IntensityMapping* analysis = NULL; analysis = new IntensityMapping(model, keys.size()); Bispectrum* NLG = NULL; NLG = new Bispectrum(analysis); // In order to check whether the two bispectrum calculations are equivalent, // the THETAs need to be precomputed for the method used by the fisher analysis. // lmax = 15. This means each core interpolates 2 lmodes. int lmax_CLASS = params["lmax_Fisher_Bispectrum"]; // having in mind that I want to be comparing stuff at z = 1. double zmax = 1.1; double zmin = 0.9; double delta_z = 0.1; vector<vector<Theta>> global_vec; #pragma omp parallel { vector<Theta> local_vec; #pragma omp for for (int li = 0; li <= lmax_CLASS; li++) { //#pragma omp critical //{ // cout << " -> Thetas for li = lj = " << li << " are being interpolated." << endl; //} // Doing it for li = lj, as we compute only the first term of the bispectrum for now. // Also, for the same reason, we only need the q = 0 term. int q = 0; Theta interp_loc; // different to the interpolation called in the fisher analysis part of the code, // here it is sufficient to interpolate the fiducial model only, as we are not // varying any parameters here, and really just want to prove that the direct // calculation gives the same result as this interpolated method. interp_loc = NLG->make_Theta_interp(li, li, q, 0, 0, 0, zmax, zmin, delta_z, false, 200, 1000,100); local_vec.push_back(interp_loc); } #pragma omp critical { global_vec.push_back(local_vec); } } NLG->update_THETAS(global_vec); /** CHECKS **/ int l1 = 14; int l2 = 14; int l3 = 14; int m1 = 0; int m2 = 0; int m3 = 0; double z = 1.0; double a = NLG->calc_angular_B(l1, l2, l3, m1, m2, m3, z, 0, 0, 0); double b = NLG->calc_angular_B_noInterp(l1, l2, l3, m1, m2, m3, z); double r1 = abs(a-b)/abs(b); //cout << "l = " << l1 << ", Interp = " << a << ", noInterp = " << b << ", difference = " << r1 << endl; l1 = 30; l2 = 30; l3 = 30; a = NLG->calc_angular_B(l1, l2, l3, m1, m2, m3, z, 0, 0, 0); b = NLG->calc_angular_B_noInterp(l1, l2, l3, m1, m2, m3, z); double r2 = abs(a-b)/abs(b); //cout << "l = " << l1 << ", Interp = " << a << ", noInterp = " << b << ", difference = " << r2 << endl; l1 = 60; l2 = 60; l3 = 60; a = NLG->calc_angular_B(l1, l2, l3, m1, m2, m3, z, 0, 0, 0); b = NLG->calc_angular_B_noInterp(l1, l2, l3, m1, m2, m3, z); double r3 = abs(a-b)/abs(b); //cout << "l = " << l1 << ", Interp = " << a << ", noInterp = " << b << ", difference = " << r3 << endl; l1 = 100; l2 = 100; l3 = 100; a = NLG->calc_angular_B(l1, l2, l3, m1, m2, m3, z, 0, 0, 0); b = NLG->calc_angular_B_noInterp(l1, l2, l3, m1, m2, m3, z); double r4 = abs(a-b)/abs(b); //cout << "l = " << l1 << ", Interp = " << a << ", noInterp = " << b << ", difference = " << r4 << endl; l1 = 180; l2 = 180; l3 = 180; a = NLG->calc_angular_B(l1, l2, l3, m1, m2, m3, z, 0, 0, 0); b = NLG->calc_angular_B_noInterp(l1, l2, l3, m1, m2, m3, z); double r5 = abs(a-b)/abs(b); //cout << "l = " << l1 << ", Interp = " << a << ", noInterp = " << b << ", difference = " << r5 << endl; l1 = 240; l2 = 240; l3 = 240; a = NLG->calc_angular_B(l1, l2, l3, m1, m2, m3, z, 0, 0, 0); b = NLG->calc_angular_B_noInterp(l1, l2, l3, m1, m2, m3, z); double r6 = abs(a-b)/abs(b); //cout << "l = " << l1 << ", Interp = " << a << ", noInterp = " << b << ", difference = " << r6 << endl; // let's check whether we are within 5% of each other. // the first one is only within 10% as it experiences more fluctuation somehow. BOOST_CHECK(r1 <= 0.10); BOOST_CHECK(r2 <= 0.05); BOOST_CHECK(r3 <= 0.05); BOOST_CHECK(r4 <= 0.05); BOOST_CHECK(r5 <= 0.05); BOOST_CHECK(r6 <= 0.05); } /** * This check makes sure that the 2 ways that the SN for the LISW effect is being computed * are equivalent. * A given triangle is computed and compared. */ BOOST_AUTO_TEST_CASE(check_SN) { /** SETUP **/ // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_check_SN.ini"; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); vector<string> keys = parser.giveParamKeys(); string matrixPath = parser.giveMatrixPath(); string fisherPath = parser.giveFisherPath(); int Pk_index = 0; int Tb_index = 0; int q_index = 0; Model_Intensity_Mapping* model = NULL; model = new Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); IntensityMapping* analysis = NULL; analysis = new IntensityMapping(model, keys.size()); TEST_LISW_SN* SN = NULL; SN = new TEST_LISW_SN(analysis, keys.size()); TEST_LISW_SN* SN_small = NULL; SN_small = new TEST_LISW_SN(analysis); /** CHECKS **/ // These first checks are to determine whether both ways of computing the triangles are equivalent. double z = 1.0; int lmax = 8; vector<vector<double>> triangle_new = SN->TEST_build_triangle_new(lmax, z, "TEST.tmp", 1); vector<vector<double>> triangle = SN_small->TEST_build_triangle(lmax, z, "TEST.tmp", 1); BOOST_CHECK(triangle.size() == triangle_new.size()); BOOST_CHECK(triangle[0].size() == triangle_new[0].size()); for (unsigned int i = 0; i < triangle.size(); i++) { for (unsigned int j = 0; j < triangle[0].size(); j++) { double up = triangle_new[i][j] + 0.01 * triangle_new[i][j]; double down = triangle_new[i][j] - 0.01 * triangle_new[i][j]; BOOST_CHECK(triangle[i][j] <= up); BOOST_CHECK(triangle[i][j] >= down); } } z = 1.3; lmax = 82; triangle_new = SN->TEST_build_triangle_new(lmax, z, "TEST.tmp", 1); triangle = SN_small->TEST_build_triangle(lmax, z, "TEST.tmp", 1); BOOST_CHECK(triangle.size() == triangle_new.size()); BOOST_CHECK(triangle[0].size() == triangle_new[0].size()); for (unsigned int i = 0; i < triangle.size(); i++) { for (unsigned int j = 0; j < triangle[0].size(); j++) { double up = triangle_new[i][j] + 0.01 * triangle_new[i][j]; double down = triangle_new[i][j] - 0.01 * triangle_new[i][j]; BOOST_CHECK(triangle[i][j] <= up); BOOST_CHECK(triangle[i][j] >= down); } } z = 1.0; lmax = 61; triangle_new = SN->TEST_build_triangle_new(lmax, z, "TEST.tmp", 1); triangle = SN_small->TEST_build_triangle(lmax, z, "TEST.tmp", 1); BOOST_CHECK(triangle.size() == triangle_new.size()); BOOST_CHECK(triangle[0].size() == triangle_new[0].size()); for (unsigned int i = 0; i < triangle.size(); i++) { for (unsigned int j = 0; j < triangle[0].size(); j++) { double up = triangle_new[i][j] + 0.01 * triangle_new[i][j]; double down = triangle_new[i][j] - 0.01 * triangle_new[i][j]; BOOST_CHECK(triangle[i][j] <= up); BOOST_CHECK(triangle[i][j] >= down); } } delete SN; delete SN_small; } /** * This is not really a test per say, but it gives a static way to produce all the data to be plotted * in the paper. * Any additional plots done should be added here. Commenting code out should only be done to working * code that is not desired to computed every time. */ BOOST_AUTO_TEST_CASE(make_paper_plots) { /** SETUP **/ // this switch determines which plots are done // 0: all // 1: LISW Bispectrum only // 2: Bispectrum Noise // 3: NLG Bispectrum // 4: Cls // 5: Qls // 6: Cl Noise // 7: NLG Bispectrum triangle // 8: LISW Bispectrum triangle // 9: Full Bispectrum triangle // 10: Signal to Noise calculation // 11: LISW/NLG triangle // 12: LISW/Delta Cl^3 triangle // 13: NLG/Delta Cl^3 triangle // 14: NLG Bispectrum triangle, this uses the full expression but the limber approximation is applied // 15: dTb vs z // 16: NLG Bispectrum 2d plot // 17: LISW Bispectrum 2d plot // 18: NLG Bispectrum new 2d plot // 19: LISW Bispectrum new 2d plot int switch1 = 7; /** * Simple non-computational intensive plots should be implemented here. */ // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_make_paper_plots.ini"; // sets up a base for the output filenames. string base = "plots/data/test_"; string suffix = ".dat"; string name; stringstream outfilename; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); vector<string> keys = parser.giveParamKeys(); string matrixPath = parser.giveMatrixPath(); string fisherPath = parser.giveFisherPath(); int Pk_index = 0; int Tb_index = 0; int q_index = 0; Model_Intensity_Mapping* model = new Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); IntensityMapping* analysis = new IntensityMapping(model, keys.size()); Bispectrum_LISW* LISW = new Bispectrum_LISW(analysis, keys.size()); Bispectrum* NLG = new Bispectrum(analysis); double z = 1.0; /** plotting LISW Bispectrum **/ /** Squeezed triangle configuration **/ if (switch1 == 0 or switch1 == 1) { cout << " == Plotting LISW Bispectrum == " << endl; name = "LISW_bispectrum"; outfilename << base << name << suffix; ofstream file1(outfilename.str()); outfilename.str(""); for (int i = 1; i < 100; i++) { int l = exp(i*0.1); if (l < 10000) { // All odd modes are 0. if (l % 2 == 1) l++; double b_lisw = LISW->calc_angular_Blll_all_config(l,l,2, z, z, z, 0, 0, 0); file1 << l << " " << b_lisw*b_lisw << endl; } } } /** plotting Bispectrum Noise **/ if (switch1 == 0 or switch1 == 2) { cout << " == Plotting Bispectrum Noise == " << endl; name = "Bispectrum_noise"; outfilename << base << name << suffix; ofstream file6(outfilename.str()); outfilename.str(""); z = 1.0; double nu1 = 1420.0/(1.0+z); // DELTA = 6 for l1 = l2 = l3, if ls are the same, then Delta = 3, 1 otherwise. double DELTA = 6.0; bool beam_incl = true; for (int i = 1; i < 100; i++) { int l = exp(i*0.1); if (l < 2000) { // All odd modes are 0. //if (l % 2 == 1) // l++; double Cl = analysis->Cl(l,nu1,nu1,0,0,0); Cl += LISW->Cl_noise(l,nu1,nu1,beam_incl); double res = Cl * Cl * Cl * DELTA; file6 << l << " " << res << endl; } } } /** plotting NLG Bispectrum **/ if (switch1 == 0 or switch1 == 3) { // Uncomment this section if the NLG bispectrum should be computed too. // Careful, this takes quite long. name = "NLG_bispectrum"; outfilename << base << name << suffix; ofstream file2(outfilename.str()); outfilename.str(""); cout << "Careful: NLG may take a while as we take a high k\ resolution to get a good measure of theta." << endl; vector<int> ls; z = 1.0; double nu_centre = 1420.4/(1.0+z); double nu_width = 10.0; for (int i = 1; i < 100; i++) { int l = exp(i*0.1); if (l % 2 == 1) l++; bool calc = true; for (int j = 0; j < ls.size(); j++) { if (ls[j] == l) calc = false; } if (calc) ls.push_back(l); if (l < 10000 && calc) { double nlg = NLG->calc_Blll_limber(l, l, l, nu_centre, nu_width, 0, 0, 0); //double nlg = NLG->calc_angular_B_noInterp(l,l,l,0,0,0,z); cout << l << " " << nlg << endl; file2 << l << " " << abs(nlg) << endl; } } } /** plotting Cls **/ if (switch1 == 0 or switch1 == 4) { name = "Cls_z08"; outfilename << base << name << suffix; ofstream file3_1(outfilename.str()); outfilename.str(""); name = "Cls_z1"; outfilename << base << name << suffix; ofstream file3_2(outfilename.str()); outfilename.str(""); name = "Cls_z15"; outfilename << base << name << suffix; ofstream file3_3(outfilename.str()); outfilename.str(""); name = "Cls_z2"; outfilename << base << name << suffix; ofstream file3_4(outfilename.str()); outfilename.str(""); name = "Cls_z25"; outfilename << base << name << suffix; ofstream file3_5(outfilename.str()); outfilename.str(""); name = "Cls_z08_delta"; outfilename << base << name << suffix; ofstream file3_6(outfilename.str()); outfilename.str(""); name = "Cls_z1_delta"; outfilename << base << name << suffix; ofstream file3_7(outfilename.str()); outfilename.str(""); name = "Cls_z15_delta"; outfilename << base << name << suffix; ofstream file3_8(outfilename.str()); outfilename.str(""); name = "Cls_z2_delta"; outfilename << base << name << suffix; ofstream file3_9(outfilename.str()); outfilename.str(""); name = "Cls_z25_delta"; outfilename << base << name << suffix; ofstream file3_10(outfilename.str()); outfilename.str(""); z = 0.8; double nu = 1420.0/(1.0+z); cout << "Cls for nu = " << nu << " computed" << endl; for (int i = 1; i < 100; i++) { int l = exp(i*0.1); if (l < 10000) { double cl; //cl = analysis->Cl(l, nu, nu, 0, 0, 0)*1000000; cl = analysis->Cl_limber_Window(l, nu, 10, 0,0,0)*1000000; double res = l*(l+1)*cl/(2.0*M_PI); file3_1 << l << " " << res << endl; } } z = 1.0; nu = 1420.0/(1.0+z); cout << "Cls for nu = " << nu << " computed" << endl; for (int i = 1; i < 100; i++) { int l = exp(i*0.1); if (l < 10000) { double cl; //cl = analysis->Cl(l, nu, nu, 0, 0, 0)*1000000; cl = analysis->Cl_limber_Window(l, nu, 10, 0,0,0)*1000000; double res = l*(l+1)*cl/(2.0*M_PI); file3_2 << l << " " << res << endl; } } z = 1.5; nu = 1420.0/(1.0+z); cout << "Cls for nu = " << nu << " computed" << endl; for (int i = 1; i < 100; i++) { int l = exp(i*0.1); if (l < 10000) { double cl; //cl = analysis->Cl(l, nu, nu, 0, 0, 0)*1000000; cl = analysis->Cl_limber_Window(l, nu, 10, 0,0,0)*1000000; double res = l*(l+1)*cl/(2.0*M_PI); file3_3 << l << " " << res << endl; } } z = 2.0; nu = 1420.0/(1.0+z); cout << "Cls for nu = " << nu << " computed" << endl; for (int i = 1; i < 100; i++) { int l = exp(i*0.1); if (l < 10000) { double cl; //cl = analysis->Cl(l, nu, nu, 0, 0, 0)*1000000; cl = analysis->Cl_limber_Window(l, nu, 10, 0,0,0)*1000000; double res = l*(l+1)*cl/(2.0*M_PI); file3_4 << l << " " << res << endl; } } z = 2.5; nu = 1420.0/(1.0+z); cout << "Cls for nu = " << nu << " computed" << endl; for (int i = 1; i < 100; i++) { int l = exp(i*0.1); if (l < 10000) { double cl; //cl = analysis->Cl(l, nu, nu, 0, 0, 0)*1000000; cl = analysis->Cl_limber_Window(l, nu, 10, 0,0,0)*1000000; double res = l*(l+1)*cl/(2.0*M_PI); file3_5 << l << " " << res << endl; } } z = 0.8; nu = 1420.0/(1.0+z); cout << "Cls for nu = " << nu << " computed" << endl; for (int i = 1; i < 100; i++) { int l = exp(i*0.1); if (l < 10000) { double cl; cl = analysis->Cl(l, nu, nu+20, 0, 0, 0)*1000000; double res = l*(l+1)*cl/(2.0*M_PI); file3_6 << l << " " << res << endl; } } z = 1.0; nu = 1420.0/(1.0+z); cout << "Cls for nu = " << nu << " computed" << endl; for (int i = 1; i < 100; i++) { int l = exp(i*0.1); if (l < 10000) { double cl; cl = analysis->Cl(l, nu, nu+20, 0, 0, 0)*1000000; double res = l*(l+1)*cl/(2.0*M_PI); file3_7 << l << " " << res << endl; } } z = 1.5; nu = 1420.0/(1.0+z); cout << "Cls for nu = " << nu << " computed" << endl; for (int i = 1; i < 100; i++) { int l = exp(i*0.1); if (l < 10000) { double cl; cl = analysis->Cl(l, nu, nu+20, 0, 0, 0)*1000000; double res = l*(l+1)*cl/(2.0*M_PI); file3_8 << l << " " << res << endl; } } z = 2.0; nu = 1420.0/(1.0+z); cout << "Cls for nu = " << nu << " computed" << endl; for (int i = 1; i < 100; i++) { int l = exp(i*0.1); if (l < 10000) { double cl; cl = analysis->Cl(l, nu, nu+20, 0, 0, 0)*1000000; double res = l*(l+1)*cl/(2.0*M_PI); file3_9 << l << " " << res << endl; } } z = 2.5; nu = 1420.0/(1.0+z); cout << "Cls for nu = " << nu << " computed" << endl; for (int i = 1; i < 100; i++) { int l = exp(i*0.1); if (l < 10000) { double cl; cl = analysis->Cl(l, nu, nu+20, 0, 0, 0)*1000000; double res = l*(l+1)*cl/(2.0*M_PI); file3_10 << l << " " << res << endl; } } } /** plotting Qls **/ if (switch1 == 0 or switch1 == 5) { name = "Qls"; outfilename << base << name << suffix; ofstream file4(outfilename.str()); cout << outfilename.str() << endl; outfilename.str(""); z = 1.0; for (int i = 1; i < 100; i++) { int l = exp(i*0.1); if (l < 10000) { double ql = LISW->Ql(l, z, 0, 0, 0); file4 << l << " " << l*(l+1)*ql/(2.0*M_PI) << endl; cout << l << " " << l*(l+1)*ql/(2.0*M_PI) << endl; } } } /** plotting Cl_Noise **/ if (switch1 == 0 or switch1 == 6) { cout << " == Plotting Cl_Noise == " << endl; name = "Cl_Noise"; outfilename << base << name << suffix; ofstream file5(outfilename.str()); outfilename.str(""); z = 1; double nu = 1420.0/(1.0+z); bool beam_incl = true; cout << "Cls noise for nu = " << nu << " computed" << endl; for (int i = 1; i < 100; i++) { int l = exp(i*0.1); if (l < 10000) { // * 10^6 so that we get results in microK^2 double cl = analysis->Cl_noise(l, nu, nu, beam_incl); double res = l*(l+1)*cl* 1000000/(2.0*M_PI); file5 << l << " " << res << endl; } } // MEERKAT double Tsys = 29000; double fcover = 1; int l = 600; double nu1 = 700; double D = 13.5; int lmax = 2.0 * model->pi * D * nu1 * 1000000.0 / model->c; // in seconds double t0 = 36000000; double res = pow(2.0*model->pi,3) * Tsys*Tsys/(fcover*fcover *\ 10000000 * lmax * lmax *t0); double n = 8.0 * log(2.0); double sigma = PI/(lmax*sqrt(n)); //double sigma = PI/(1500*sqrt(n)); double beam = exp(sigma*sigma*l*l); double noiseM = beam * res; // CHIME Tsys = 50000; D = 20; lmax = 2.0 * model->pi * D * nu1 * 1000000.0 / model->c; res = pow(2.0*model->pi,3) * Tsys*Tsys/(fcover*fcover *\ 10000000 * lmax * lmax *t0); sigma = PI/(lmax*sqrt(n)); //double sigma = PI/(1500*sqrt(n)); beam = exp(sigma*sigma*l*l); double noiseC = beam * res; cout << noiseM << " " << noiseC << endl; } /** triangular plots for NLG Bispectrum **/ if (switch1 == 0 or switch1 == 7) { name = "NLG_triangle_new_l1200_nu900"; outfilename << base << name << suffix; ofstream file(outfilename.str()); outfilename.str(""); int lmax = 1200; int l1 = lmax; int lmin1 = l1/2; z = 1; double nu_centre = 900; //double nu_centre = 1420.0/(1.0+z); double nu_width = 10; for (int l2 = lmin1; l2 <= l1; l2++) { vector<double> row; for (int l3 = 0; l3 <= l1; l3++) { double B = 0; if (l3 >= (l1-l2) and l3 <= l2) { if (l1 == l2 and l3 == 0) { B = 0; } else { B = NLG->calc_angular_B_limber(l1, l2, l3, 0, 0, 0, nu_centre, nu_width, 0, 0, 0); } } else { B = 0; } file << B << " "; } file << endl; } file.close(); } /** triangular plots for LISW Bispectrum **/ if (switch1 == 0 or switch1 == 8) { name = "LISW_triangle_new_l1200"; outfilename << base << name << suffix; ofstream file(outfilename.str()); outfilename.str(""); int lmax = 1200; int l1 = lmax; int lmin1 = l1/2; z = 1; double nu_centre = 1420.0/(1.0+z); double nu_width = 10; for (int l2 = lmin1; l2 <= l1; l2++) { vector<double> row; for (int l3 = 0; l3 <= l1; l3++) { double B = 0; if (l3 >= (l1-l2) and l3 <= l2) { if (l1 == l2 and l3 == 0) { B = 0; } else { B = LISW->calc_angular_Blll_all_config_new_parallelism(l1,l2,l3,z,z,z,0,0,0); } } else { B = 0; } file << B << " "; } file << endl; } file.close(); } /** triangular plots for Full Bispectrum **/ if (switch1 == 0 or switch1 == 9) { name = "Bispectrum_full_triangle_l1200"; outfilename << base << name << suffix; ofstream file(outfilename.str()); outfilename.str(""); int lmax = 1200; int l1 = lmax; int lmin1 = l1/2; z = 1; double nu_centre = 1420.0/(1.0+z); double nu_width = 10; for (int l2 = lmin1; l2 <= l1; l2++) { vector<double> row; for (int l3 = 0; l3 <= l1; l3++) { double B = 0; if (l3 >= (l1-l2) and l3 <= l2) { if (l1 == l2 and l3 == 0) { B = 0; } else { B = LISW->calc_angular_Blll_all_config_new_parallelism(l1, l2, l3, z, z, z, 0, 0, 0); B += NLG->calc_angular_B_limber(l1, l2, l3, 0, 0, 0, nu_centre, nu_width, 0, 0, 0); } } else { B = 0; } file << B << " "; } file << endl; } file.close(); } /** Signal to Noise calculation **/ if (switch1 == 0 or switch1 == 10) { LISW_SN* SN = new LISW_SN(analysis, keys.size()); SN->detection_SN_new(2, 10000, 100, 1, "SN_min-2_max-10000_delta-100_z-1.dat"); } /** triangular plots for LISW / NLG ratio **/ if (switch1 == 0 or switch1 == 11) { name = "LISW_NLG_ratio_triangle_l1200"; outfilename << base << name << suffix; ofstream file(outfilename.str()); outfilename.str(""); int lmax = 1200; int l1 = lmax; int lmin1 = l1/2; z = 1; double nu_centre = 1420.0/(1.0+z); double nu_width = 10; for (int l2 = lmin1; l2 <= l1; l2++) { vector<double> row; for (int l3 = 0; l3 <= l1; l3++) { double B = 0; if (l3 >= (l1-l2) and l3 <= l2) { if (l1 == l2 and l3 == 0) { B = 0; } else { double B1 = LISW->calc_angular_Blll_all_config_new_parallelism(l1,l2,l3,z,z,z,0,0,0); double B2 = NLG->calc_angular_B_limber(l1, l2, l3, 0, 0, 0, nu_centre, nu_width, 0, 0, 0); if (B2 == 0) B = 0; else B = B1/B2; } } else { B = 0; } file << B << " "; } file << endl; } file.close(); } /** triangular plots for LISW over Noise ratio **/ if (switch1 == 0 or switch1 == 12) { name = "LISW_Noise_ratio_triangle_l1200"; outfilename << base << name << suffix; ofstream file(outfilename.str()); outfilename.str(""); int lmax = 1200; int l1 = lmax; int lmin1 = l1/2; z = 1; double nu_centre = 1420.0/(1.0+z); double nu_width = 10; bool beam_incl = true; for (int l2 = lmin1; l2 <= l1; l2++) { vector<double> row; for (int l3 = 0; l3 <= l1; l3++) { double B = 0; if (l3 >= (l1-l2) and l3 <= l2) { if (l1 == l2 and l3 == 0) { B = 0; } else { // Noise now included double Cl1 = analysis->Cl(l1,nu_centre,nu_centre,0,0,0); double Cl2 = analysis->Cl(l2,nu_centre,nu_centre,0,0,0); double Cl3 = analysis->Cl(l3,nu_centre,nu_centre,0,0,0); double noise1 = analysis->Cl_noise(l1, nu_centre, nu_centre, beam_incl); double noise2 = analysis->Cl_noise(l2, nu_centre, nu_centre, beam_incl); double noise3 = analysis->Cl_noise(l3, nu_centre, nu_centre, beam_incl); Cl1 += noise1; Cl2 += noise2; Cl3 += noise3; double delta_lll = 0; if (l1 == l2 and l1 == l3) { delta_lll = 6.0; } else if (l1 == l2 or l2 == l3) { delta_lll = 2.0; } else { delta_lll = 1.0; } double frac = 1.0/sqrt(delta_lll * Cl1 * Cl2 * Cl3); double B1 = LISW->calc_angular_Blll_all_config_new_parallelism(l1,l2,l3,z,z,z,0,0,0); B = frac * B1; } } else { B = 0; } file << B << " "; } file << endl; } file.close(); } /** triangular plots for NLG over Noise ratio **/ if (switch1 == 0 or switch1 == 13) { name = "NLG_Noise_ratio_triangle_l1200"; outfilename << base << name << suffix; ofstream file(outfilename.str()); outfilename.str(""); int lmax = 1200; int l1 = lmax; int lmin1 = l1/2; z = 1; double nu_centre = 1420.0/(1.0+z); double nu_width = 10; bool beam_incl = true; for (int l2 = lmin1; l2 <= l1; l2++) { vector<double> row; for (int l3 = 0; l3 <= l1; l3++) { double B = 0; if (l3 >= (l1-l2) and l3 <= l2) { if (l1 == l2 and l3 == 0) { B = 0; } else { // Noise now included double Cl1 = analysis->Cl(l1,nu_centre,nu_centre,0,0,0); double Cl2 = analysis->Cl(l2,nu_centre,nu_centre,0,0,0); double Cl3 = analysis->Cl(l3,nu_centre,nu_centre,0,0,0); double noise1 = analysis->Cl_noise(l1, nu_centre, nu_centre, beam_incl); double noise2 = analysis->Cl_noise(l2, nu_centre, nu_centre, beam_incl); double noise3 = analysis->Cl_noise(l3, nu_centre, nu_centre, beam_incl); Cl1 += noise1; Cl2 += noise2; Cl3 += noise3; double delta_lll = 0; if (l1 == l2 and l1 == l3) { delta_lll = 6.0; } else if (l1 == l2 or l2 == l3) { delta_lll = 2.0; } else { delta_lll = 1.0; } double frac = 1.0/sqrt(delta_lll * Cl1 * Cl2 * Cl3); double B1 = NLG->calc_angular_B_limber(l1, l2, l3, 0, 0, 0, nu_centre, nu_width, 0, 0, 0); B = frac * B1; } } else { B = 0; } file << B << " "; } file << endl; } file.close(); } /** triangular plots for NLG Bispectrum **/ /** this uses the full expression but the limber approximation is applied **/ if (switch1 == 0 or switch1 == 14) { name = "NLG_triangle_full_new_l1200"; outfilename << base << name << suffix; ofstream file(outfilename.str()); outfilename.str(""); int lmax = 1200; int l1 = lmax; int lmin1 = l1/2; z = 1; double nu_centre = 1420.0/(1.0+z); double nu_width = 10; for (int l2 = lmin1; l2 <= l1; l2++) { vector<double> row; for (int l3 = 0; l3 <= l1; l3++) { double B = 0; if (l3 >= (l1-l2) and l3 <= l2) { if (l1 == l2 and l3 == 0) { B = 0; } else { B = NLG->calc_angular_B_limber(l1, l2, l3, 0, 0, 0, nu_centre, nu_width, 0, 0, 0); } } else { B = 0; } file << B << " "; } file << endl; } file.close(); } /** This computes the brightness temperature model used **/ if (switch1 == 0 or switch1 == 15) { name = "dTb_full"; outfilename << base << name << suffix; ofstream file(outfilename.str()); outfilename.str(""); for (int i = 0; i <= 100; i++) { z = i * 0.05; double t21 = model->T21_interp(z, 0); file << z << " " << t21 << endl; } file.close(); } /** This computes the NLG bispectrum for a fixed l1 and l2, as a function of opening angle. **/ if (switch1 == 0 or switch1 == 16) { name = "Bispectrum_NLG_l1-1200_l2-1200"; outfilename << base << name << suffix; ofstream file(outfilename.str()); outfilename.str(""); int l1 = 1200; int l2 = 1200; z = 1; double nu_centre = 1420.0/(1.0+z); double nu_width = 10; int nsteps = 1000; for (int i = 0; i <= nsteps; i++) { double cosTh = 1 - i * 0.002; double l3 = sqrt(l1*l1+l2*l2 - 2*l1*l2*cosTh); int l3i = l3; // I think I should add one if l3i is odd. if (l3i % 2 == 1) l3i++; double B = NLG->calc_angular_B_limber(l1, l2, l3i, 0, 0, 0, nu_centre, nu_width, 0, 0, 0); cout << cosTh << " " << abs(B) << endl; file << cosTh << " " << abs(B) << endl; } } /** This computes the LISW bispectrum for a fixed l1 and l2, as a function of opening angle. **/ if (switch1 == 0 or switch1 == 17) { name = "Bispectrum_LISW_l1-600_l2-1200"; outfilename << base << name << suffix; ofstream file(outfilename.str()); outfilename.str(""); int l1 = 600; int l2 = 1200; z = 1; double nu_centre = 1420.0/(1.0+z); double nu_width = 10; int nsteps = 1000; for (int i = 0; i <= nsteps; i++) { double cosTh = 1 - i * 0.002; double l3 = sqrt(l1*l1+l2*l2 - 2*l1*l2*cosTh); int l3i = l3; // I think I should add one if l3i is odd. if (l3i % 2 == 1) l3i++; double B = LISW->calc_angular_Blll_all_config_new_parallelism(l1,l2,l3i,z,z,z,0,0,0); cout << cosTh << " " << abs(B) << endl; file << cosTh << " " << abs(B) << endl; } } /** This computes the NLG bispectrum as in a new 2D plot. **/ if (switch1 == 0 or switch1 == 18) { name = "Bispectrum_NLG_new_2D_l1200"; outfilename << base << name << suffix; ofstream file(outfilename.str()); outfilename.str(""); int l1 = 1200; z = 1; double nu_centre = 1420.0/(1.0+z); double nu_width = 10; int nsteps = 200; double res; for (int i = 0; i <= nsteps; i++) { double I = (double)i/(double)nsteps * sqrt(3)*0.5*l1; for (int j = 0; j <= nsteps; j++) { double J = (double)j/(double)nsteps * 0.5*l1 + 0.5*l1; double l2 = sqrt(I*I + J*J); double l3 = sqrt(l1*l1 + I*I + J*J - 2*l1*J); if ((l2 > l1) || (l3 > l2)) { res = 0; } else { int L2 = l2; int L3 = l3; if (L2 % 2 == 1) L2++; if (L3 % 2 == 1) L3++; res = NLG->calc_angular_B_limber(l1, L2, L3, 0, 0, 0, nu_centre, nu_width, 0, 0, 0); } file << abs(res) << " "; } file << endl; } } /** This computes the LISW bispectrum as in a new 2D plot. **/ if (switch1 == 0 or switch1 == 19) { name = "Bispectrum_LISW_new_2D_l1200"; outfilename << base << name << suffix; ofstream file(outfilename.str()); outfilename.str(""); int l1 = 1200; z = 1; double nu_centre = 1420.0/(1.0+z); double nu_width = 10; int nsteps = 400; double res; for (int i = 0; i <= nsteps; i++) { double I = (double)i/(double)nsteps * sqrt(3)*0.5*l1; for (int j = 0; j <= nsteps; j++) { double J = (double)j/(double)nsteps * 0.5*l1 + 0.5*l1; double l2 = sqrt(I*I + J*J); double l3 = sqrt(l1*l1 + I*I + J*J - 2*l1*J); if ((l2 > l1) || (l3 > l2)) { res = 0; } else { int L2 = l2; int L3 = l3; if (L2 % 2 == 1) L2++; if (L3 % 2 == 1) L3++; res = LISW->calc_angular_Blll_all_config_new_parallelism(l1,L2,L3,z,z,z,0,0,0); } file << res << " "; } file << endl; } } } BOOST_AUTO_TEST_CASE(check_Fl) { /** SETUP **/ /** * Simple non-computational intensive plots should be implemented here. */ // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_check_Fl.ini"; // sets up a base for the output filenames. string base = "plots/data/test_"; string suffix = ".dat"; string name; stringstream outfilename; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); vector<string> keys = parser.giveParamKeys(); string matrixPath = parser.giveMatrixPath(); string fisherPath = parser.giveFisherPath(); int Pk_index = 0; int Tb_index = 0; int q_index = 0; bool limber = true; Model_Intensity_Mapping* model = new Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); IntensityMapping* analysis = new IntensityMapping(model, keys.size()); Bispectrum_LISW* LISW = new Bispectrum_LISW(analysis, keys.size()); Bispectrum* NLG = new Bispectrum(analysis); Bispectrum_Effects effects = ALL_eff; Bispectrum_Fisher* fish = new Bispectrum_Fisher(analysis, LISW, NLG, keys, fisherPath); int nu_steps = 1; int n_threads = 1; double nu_stepsize = 10; double nu_min = 400; /************************************************************/ fish->nu_steps_CLASS = nu_steps; fish->nu_min_CLASS = nu_min; fish->nu_stepsize_CLASS = nu_stepsize; // Exhaust all the possible models and interpolate them, so that the // code is thread safe later on. log<LOG_BASIC>(" -> Interpolating all possible models."); for (unsigned int i = 0; i < fish->model_param_keys.size(); i++) { int Pk = 0; int Tb = 0; int q = 0; string param_key = fish->model_param_keys[i]; log<LOG_BASIC>("%1%") % param_key; map<string,double> working_params = fish->fiducial_params; double h = fish->var_params[param_key]; double x = working_params[param_key]; working_params[param_key] = x + h; analysis->model->update(working_params, &Pk, &Tb, &q); log<LOG_BASIC>("model updated for Pk_i = %1%, Tb = %2%, q = %3%.") % Pk % Tb % q; } log<LOG_BASIC>(" -> Interpolating all possible growth functions."); cout << analysis->model->q_size() << endl; for (int i = 0; i < analysis->model->q_size(); i++) { NLG->update_D_Growth(i); } log<LOG_BASIC>(" -----> done. "); // now compute F_ab's (symmetric hence = F_ba's) cout << fish->model_param_keys.size() << endl; for (unsigned int i = 0; i < fish->model_param_keys.size(); i++) { for (unsigned int j = i; j < fish->model_param_keys.size(); j++) { string param_key1 = fish->model_param_keys[i]; string param_key2 = fish->model_param_keys[j]; log<LOG_BASIC>("----> STARTING with %1% and %2%.") % param_key1.c_str() % param_key2.c_str(); int Pk_index = 0; int Tb_index = 0; int q_index = 0; /* if (param_key1 == param_key2) { initializer(param_key1, &Pk_index, &Tb_index, &q_index); } else { initializer(param_key1, &Pk_index, &Tb_index, &q_index); initializer(param_key2, &Pk_index, &Tb_index, &q_index); } */ double sum = 0; // This matrix contains the results. mat output(nu_steps, 2); // IMPORTANT! l has to start at 1 since Nl_bar has j_(l-1) in it! // The following line parallelizes the code // use #pragma omp parallel num_threads(4) private(Pk_index, Tb_index, q_index) // to define how many threads should be used. log<LOG_VERBOSE>("Entering Parallel regime"); //#pragma omp parallel num_threads(n_threads) private(Pk_index, Tb_index, q_index) //{ // Pk_index = 0; // Tb_index = 0; // q_index = 0; // #pragma omp for reduction (+:sum) for (int k = 1; k <= nu_steps; ++k) { // note: k has nothing to do with scale here, just an index! int m = 0; if (k == nu_steps) m = nu_steps; else m = ((k-1)*n_threads) % (nu_steps - 1) + 1; int nu = nu_min + m * nu_stepsize; stringstream ss; ss << "Computation of F_nu starts for nu = " << nu << "\n"; log<LOG_VERBOSE>("%1%") % ss.str().c_str(); ofstream Fl_file; stringstream filename; filename << "Fl_nu" << nu << "_" << param_key1 << "_" << param_key2 << ".dat"; cout << "file which is written to: " << filename.str() << endl; Fl_file.open(filename.str()); Fl_file.close(); /*************** Compute Fnu *************/ //double fnu = fish->compute_Fnu(nu, param_key1, param_key2,\ // &Pk_index, &Tb_index, &q_index, effects); double res = 0; int Pk_index2 = Pk_index; int Tb_index2 = Tb_index; int q_index2 = q_index; int n_threads = analysis->model->give_fiducial_params("n_threads_bispectrum"); int gaps = analysis->model->give_fiducial_params("gaps_bispectrum"); int stepsize = gaps + 1; int lmodes = ceil((fish->lmax_CLASS-2.0)/(double)stepsize); int imax = ceil((double)lmodes/(double)n_threads) * n_threads; //cout << "nthreads = " << n_threads << endl; //cout << "lmodes = " << lmodes << endl; //cout << "imax = " << imax << endl; int modmax = (imax-1)*stepsize;//lmax_CLASS-3;// ceil((lmax_CLASS-2)/n_threads) * n_threads - 1; double sum = 0; // This will only be used if omp_nested is set to 1 in the constructor above. //int n_threads_2 = analysis->model->give_fiducial_params("sub_threads"); /** READ THIS!!! -> for NLG * ------------ * * Similarly to before, in order to be thread safe, I need to make sure that * each THETA interpolator has been precomputed safely before I let multiple threads * access the vector. So that they will never be in a situation where they want to * create a new element, thus making sure that 2 threads don't try and make the same * vector element, or push something to the vector at the exact same time. * */ if (effects == NLG_eff || effects == ALL_eff) { if (!fish->interpolation_done) { // Update all possible THETA interpolators. /** I am currently thinking that this should be doable on multiple cores. * This means that I separate the lranges that each core needs to update and add * their updated interpolator structures to local vectors. */ // PROTOCODE: // // vector<vector<THETA>> global_vec; // # pragma omp parallel // { // vector<THETA> local_vec; // # pragma omp for // for each li lj q pk tb and q index: // THETA interpolator = update(); // local_vec.push_back(interpolator); // // # pragma omp critical // global_vec.push_back(local_vec) // } // // vector<THETA> transfer; // set transfer = global_vec; // ie. collapse it down. // set bispectrum.THETA_interps = transfer; // done! log<LOG_BASIC>("Precomputing all theta interpolators."); double zmax = (1420.4/fish->nu_min_CLASS) - 1.0; double zmin = (1420.4/(fish->nu_min_CLASS + fish->nu_steps_CLASS * fish->nu_stepsize_CLASS) - 1.0); double delta_z = (zmax - ((1420.4/(fish->nu_min_CLASS+fish->nu_stepsize_CLASS)) - 1.0)); // need to be careful that this is not repeated when doing a different parameter pair. vector<vector<Theta>> global_vec; cout << "pkz size = " << analysis->model->Pkz_size() << endl; cout << "tb size = " << analysis->model->Tb_size() << endl; cout << "q size = " << analysis->model->q_size() << endl; int lmodes_interp = fish->lmax_CLASS + 1; int imax_interp = ceil((double)lmodes_interp/(double)n_threads) * n_threads; int modmax_interp = imax_interp - 1; #pragma omp parallel num_threads(n_threads) { vector<Theta> local_vec; bool calc = false; #pragma omp for for (int i = 0; i < imax_interp; i++) { int l = (n_threads*i) % (modmax_interp); if (i != 0 && n_threads*i % (modmax_interp) == 0) l = modmax_interp; if (l <= fish->lmax_CLASS) { calc = true; //#pragma omp critical //{ // log<LOG_BASIC>(" -> Thetas for li = lj = %1% are being interpolated.") % li; //} // Doing it for li = lj, as we compute only the first term of the bispectrum for now. // Also, for the same reason, we only need the q = 0 term. int q = 0; for (int Pk_i = 0; Pk_i < analysis->model->Pkz_size(); Pk_i++) { for (int Tb_i = 0; Tb_i < analysis->model->Tb_size(); Tb_i++) { for (int q_i = 0; q_i < analysis->model->q_size(); q_i++) { Theta interp_loc; //try //{ interp_loc = NLG->make_Theta_interp(l, l, q,\ Pk_i, Tb_i, q_i, zmax, zmin, delta_z, true, 100, 1000, 100); //} //catch(alglib::ap_error e) //{ // log<LOG_ERROR>("---- Error: %1%") % e.msg.c_str(); //} local_vec.push_back(interp_loc); } } } #pragma omp critical { log<LOG_BASIC>(" -> Thetas for li = lj = %1% are being interpolated. thread = %2%.")%\ l % omp_get_thread_num(); } } } #pragma omp critical { if (calc) global_vec.push_back(local_vec); } } NLG->update_THETAS(global_vec); log<LOG_BASIC>(" --> thetas are interpolated."); fish->interpolation_done = true; } else { log<LOG_BASIC>("Interpolation of thetas has been done before. Nothing to be done."); } } /** READ THIS !!! * ------------- * * Important, in order to be thread safe, I am computing the l1=2 case on a single core. * This insures that all Pkz, Tb and q interpolation vectors have been exhaustively * filled, such that later on, when I have multiple threads calling model->update(params) * they will never have to create a new vector element. It could be that multiple threads * would try and create the same model interpolator, which is BAD!. **/ int lmin1 = 1; log<LOG_BASIC>("Starting computation with lmax = %1%.") % 2; for (int l2 = lmin1; l2 <= 2; l2++) { for (int l3 = 0; l3 <= 2; l3++) { double F = 0; if (l3 >= (2-l2) and l3 <= l2) { if (2 == l2 and l3 == 0) { F = 0; } else { F = fish->Fisher_element(2,l2,l3,nu,param_key1,param_key2,\ &Pk_index2, &Tb_index2, &q_index2, effects, limber); } } else { //enter 0 F = 0; } res += (2.0 * 2 + 1.0) * (2.0 * l2 + 1.0) * (2.0 * l3 + 1.0) * abs(F); } } log<LOG_VERBOSE>("Entering Parallel regime"); #pragma omp parallel num_threads(n_threads) private(Pk_index2, Tb_index2, q_index2) { int npoint = 0; // ! Imporant: each private variable needs to be initialized within the OMP block!!! Pk_index2 = 0; Tb_index2 = 0; q_index2 = 0; //cout << "modmax = " << modmax << endl; //cout << modmax << endl; #pragma omp for reduction (+:sum) for (int i = 1; i <= imax; i++) { npoint++; int l1 = 3 + (n_threads*stepsize*(i-1) % (modmax)); if (i != 1 && n_threads*stepsize*(i-1) % (modmax) == 0) l1 = modmax + 3; /* if (l1 > lmax_CLASS) l1 = modmax;*/ int lmin = l1/2; //cout << i << " -- " << l1 << endl; double fl = 0; if (l1 <= fish->lmax_CLASS) { //#pragma omp critical //{ // log<LOG_BASIC>("Starting computation with lmax = %1%.") % l1; //} //#pragma omp parallel num_threads(n_threads_2) private(Pk_index2, Tb_index2, q_index2) //{ // Pk_index2 = 0; // Tb_index2 = 0; // q_index2 = 0; // //#pragma omp for reduction (+:sum) for (int l2 = lmin; l2 <= l1; l2++) { for (int l3 = 0; l3 <= l1; l3++) { double F = 0; if (l3 >= (l1-l2) and l3 <= l2) { if (l1 == l2 and l3 == 0) { F = 0; } else { F = fish->Fisher_element(l1,l2,l3,nu,param_key1,param_key2,\ &Pk_index2, &Tb_index2, &q_index2, effects, limber); //cout << l1 << " " << l2 << " " << l3 << endl; } } else { //enter 0 F = 0; } sum += (2.0 * l1 + 1.0) * (2.0 * l2 + 1.0) * (2.0 * l3 + 1.0) * stepsize * F; fl += (2.0 * l1 + 1.0) * (2.0 * l2 + 1.0) * (2.0 * l3 + 1.0) *\ stepsize * abs(F); } } //} } else { sum+=0; } #pragma omp critical { //log<LOG_BASIC>("Computation with lmax = %1% is done. Thread #%2% took T = %3%s.") %\ // l1 % omp_get_thread_num(); //log<LOG_BASIC>(" --- this is the %1%th point computed by thread #%2%.") % npoint %\ // omp_get_thread_num(); // write fl to file. Fl_file.open(filename.str(),ios_base::app); Fl_file << l1 << " " << fl << endl; Fl_file.close(); } } } /*******************************************/ } log<LOG_BASIC>("Calculations done for %1% and %2%.") %\ param_key1.c_str() % param_key2.c_str(); } } } BOOST_AUTO_TEST_CASE(check_Theta) { // check whether calc_angular_B and calc_angular_B_nointerp give the same result. /** SETUP **/ // sets up a base for the output filenames. string base = "plots/data/test_"; string suffix = ".dat"; string name; stringstream outfilename; // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_check_NLG.ini"; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); vector<string> keys = parser.giveParamKeys(); string matrixPath = parser.giveMatrixPath(); string fisherPath = parser.giveFisherPath(); int Pk_index = 0; int Tb_index = 0; int q_index = 0; Model_Intensity_Mapping* model = NULL; model = new Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); IntensityMapping* analysis = NULL; analysis = new IntensityMapping(model, keys.size()); Bispectrum* NLG = NULL; NLG = new Bispectrum(analysis); TEST_Bispectrum* NLG_test = NULL; NLG_test = new TEST_Bispectrum(analysis); double z = 1; double nu_centre = 1420.4/(1.0 + z); double nu_width = 10.0; double delta_z = 0.5; name = "theta_limber"; outfilename << base << name << suffix; ofstream file(outfilename.str()); outfilename.str(""); vector<int> ls; for (int i = 1; i < 100; i++) { int l = exp(i*0.1); if (l % 2 == 1) l++; bool calc = true; for (int j = 0; j < ls.size(); j++) { if (ls[j] == l) calc = false; } if (calc) ls.push_back(l); if (l < 10000 && calc) { double th = NLG->theta_approx(l, z, 0, nu_centre, nu_width, 0, 0, 0); double th_2 = NLG_test->theta_calc_5(l, l, z, 0, nu_centre, nu_width, 100, 0,0,0); //double th_3 = NLG_test->theta_calc_4(l, l, z, 0, 1, delta_z, 500); double th_4 = NLG_test->theta_calc_2(l, l, z, 0, 1, delta_z); //double nlg = NLG->calc_Blll_limber(l, l, l, nu_centre, nu_width, 0, 0, 0); //double nlg = NLG->calc_angular_B_noInterp(l,l,l,0,0,0,z); cout << l << " " << th << " " << th_2 << " " << th_4 << endl; file << l << " " << th << " " << th_2 << " " << th_4 << endl; } } } BOOST_AUTO_TEST_CASE(check_mode_count) { /* for (int i = 1; i<7; i++) { int lmax = i*10; int l1 = lmax; int lmin1 = l1/2; long double count = 0; for (int l2 = lmin1; l2 <= l1; l2++) { vector<double> row; for (int l3 = 0; l3 <= l1; l3++) { double B = 0; if (l3 >= (l1-l2) and l3 <= l2) { if (l1 == l2 and l3 == 0) { B = 0; } else { //count+=(2.*l1+1.) * (2.*l2+1.) * (2.*l3+1.); for (int m1 = -lmax; m1 <= lmax; m1++) { for (int m2 = -l2; m2 <= l2; m2++) { for (int m3 = -l3; m3 <= l3; m3++) { double W = WignerSymbols::wigner3j(lmax,l2,l3,m1,m2,m3); if (W != 0) count++; } } } } } else { B = 0; } } } cout << lmax << " " << count << endl; } */ cout << "#### Now the full thing ###" << endl; cout << "1: This way we go through all lmax^3 combinations and evaluate those that validate the triangular condition" << endl; cout << "2: This way we order l1 >= l2 >= l3 and assume that the function we evaluate is symmetric in ls." << endl; ofstream file("data2.dat"); long double total = 0; for (int i = 1; i<50; i++) { int lmax = i*10; long double count = 0; for (int l1 = 0; l1 <= lmax; l1++) { for (int l2 = 0; l2 <= lmax; l2++) { for (int l3 = 0; l3 <= lmax; l3++) { total++; int A = abs(l1-l2); int B = l1 + l2; if (l3 >= A and l3 <= B) count++; } } } cout << "1: " << lmax << " " << count << " " << total<< endl; file << lmax << " " << count << endl; // count = 0; total = 0; double val = 0; for (int l1 = 0; l1 <= lmax; l1++) { for (int l2 = l1/2; l2 <= l1; l2++) { for (int l3 = (l1-l2); l3 <= l2; l3++) { total++; if (l1 == l2 and l1 == l3) count++; else if (l1 == l2 or l1 == l3 or l2 == l3) { int A = abs(l1-l2); int B = l1 + l2; count+=3; } else { int A = abs(l1-l2); int B = l1 + l2; count+=6; } } } } cout << "2: " << lmax << " " << count << " " << total << endl; } } // Here we try and understand whether Ql is wrong BOOST_AUTO_TEST_CASE(check_Ql) { // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_make_paper_plots.ini"; // sets up a base for the output filenames. string base = "plots/data/test_"; string suffix = ".dat"; string name; stringstream outfilename; name = "P_phi"; outfilename << base << name << suffix; ofstream file(outfilename.str()); outfilename.str(""); IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); vector<string> keys = parser.giveParamKeys(); string matrixPath = parser.giveMatrixPath(); string fisherPath = parser.giveFisherPath(); int Pk_index = 0; int Tb_index = 0; int q_index = 0; Model_Intensity_Mapping* model = new Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); IntensityMapping* analysis = new IntensityMapping(model, keys.size()); Bispectrum_LISW* LISW = new Bispectrum_LISW(analysis, keys.size()); //Bispectrum* NLG = new Bispectrum(analysis); double z = 1.0; double k = 0.1; double res = LISW->calc_P_phi(k,z,0,0,0); cout << res << endl; auto integrand = [&](double k) { double res = LISW->calc_P_phi(k,z,0,0,0); return res; }; //double zmin = z_centre - delta_z; //double zmax = z_centre + delta_z; double kmin = 0.01; double kmax = 10000.0; double I = integrate(integrand, kmin, kmax, 1000000, simpson()); cout << I << endl; for (int i = 1; i < 100; i++) { double k = exp(i*0.1); if (k < 100000) { double p = LISW->calc_P_phi(k,z,0,0,0); //double nlg = NLG->calc_angular_B_noInterp(l,l,l,0,0,0,z); cout << k << " " << p << endl; file << k << " " << p << endl; } } } // This BOOST_AUTO_TEST_CASE(check_derivative) { /** SETUP **/ /** * Simple non-computational intensive plots should be implemented here. */ // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_check_derivative.ini"; // sets up a base for the output filenames. string base = "plots/data/test_"; string suffix = ".dat"; string name = "derivative_"; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); vector<string> keys = parser.giveParamKeys(); string matrixPath = parser.giveMatrixPath(); string fisherPath = parser.giveFisherPath(); int Pk_index = 0; int Tb_index = 0; int q_index = 0; bool limber = true; Model_Intensity_Mapping* model = new Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); IntensityMapping* analysis = new IntensityMapping(model, keys.size()); Bispectrum_LISW* LISW = new Bispectrum_LISW(analysis, keys.size()); Bispectrum* NLG = new Bispectrum(analysis); Bispectrum_Effects effects = ALL_eff; Bispectrum_Fisher* fish = new Bispectrum_Fisher(analysis, LISW, NLG, keys, fisherPath); int l1 = 10; int l2 = 10; int l3 = 10; double nu = 450; string param_key = "A_s"; /* Here I do 1 very small FM run, so that all the models are interpolated.*/ double nu_min = 400; double nu_stepsize = 10; int n_points_per_thread = 1; int n_threads = 1; vector<string> param_names; param_names.push_back("ombh2"); param_names.push_back("omch2"); param_names.push_back("omega_lambda"); param_names.push_back("n_s"); param_names.push_back("A_s"); param_names.push_back("hubble"); ////////////////////////////// for (int j = 0; j < 7; j++) { param_key = param_names[j]; cout << param_key << endl; stringstream outfilename; outfilename << base << name << param_key << "_5pd" << suffix; ofstream file(outfilename.str()); for (int i = 1; i < 20; i++) { double deriv = 500 * i; double mu = fish->calc_mu_direct(l1, l2, l3, nu, nu_stepsize, deriv, param_key,\ &Pk_index, &Tb_index, &q_index, effects, limber); file << deriv << " " << mu << endl; } } } // The test case checks the scaling relation for the bispectrum in terms // of A_s, so checks mu = As^2 / Asf^2 muf BOOST_AUTO_TEST_CASE(check_scaling) { /** SETUP **/ /** * Simple non-computational intensive plots should be implemented here. */ // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_check_derivative.ini"; // sets up a base for the output filenames. string base = "plots/data/test_"; string suffix = ".dat"; string name = "derivative_"; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); vector<string> keys = parser.giveParamKeys(); string matrixPath = parser.giveMatrixPath(); string fisherPath = parser.giveFisherPath(); double z = 1; int l1 = 10; int l2 = 10; int l3 = 10; double nu = 1420.0/(1.0+z); int Pk_index = 0; int Tb_index = 0; int q_index = 0; bool limber = true; Model_Intensity_Mapping* model = new Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); IntensityMapping* analysis = new IntensityMapping(model, keys.size()); Bispectrum_LISW* LISW = new Bispectrum_LISW(analysis, keys.size()); Bispectrum* NLG = new Bispectrum(analysis); Bispectrum_Effects effects = ALL_eff; Bispectrum_Fisher* fish = new Bispectrum_Fisher(analysis, LISW, NLG, keys, fisherPath); map<string,double> working_params = params; string param_key = "A_s"; double x = working_params[param_key]; double mu_fiducial_l = LISW->calc_angular_Blll_all_config(l1,l2,l3,z,z,z, Pk_index, Tb_index, q_index); double mu_fiducial_nlg = NLG->calc_Blll_limber(l1,l2,l3,nu,10,Pk_index,Tb_index,q_index); working_params[param_key] = 2.*x ; LISW->update_params(working_params, &Pk_index, &Tb_index, &q_index); cout << Pk_index << " " << Tb_index << " " << q_index << endl; NLG->update_params(working_params, &Pk_index, &Tb_index, &q_index); cout << Pk_index << " " << Tb_index << " " << q_index << endl; double mu2_l = LISW->calc_angular_Blll_all_config(l1,l2,l3,z,z,z, Pk_index, Tb_index, q_index); double mu2_nlg = NLG->calc_Blll_limber(l1,l2,l3,nu,10,Pk_index,Tb_index,q_index); working_params[param_key] = 3.*x ; LISW->update_params(working_params, &Pk_index, &Tb_index, &q_index); cout << Pk_index << " " << Tb_index << " " << q_index << endl; NLG->update_params(working_params, &Pk_index, &Tb_index, &q_index); cout << Pk_index << " " << Tb_index << " " << q_index << endl; double mu3_l = LISW->calc_angular_Blll_all_config(l1,l2,l3,z,z,z, Pk_index, Tb_index, q_index); double mu3_nlg = NLG->calc_Blll_limber(l1,l2,l3,nu,10,Pk_index,Tb_index,q_index); working_params[param_key] = 4.*x ; LISW->update_params(working_params, &Pk_index, &Tb_index, &q_index); cout << Pk_index << " " << Tb_index << " " << q_index << endl; NLG->update_params(working_params, &Pk_index, &Tb_index, &q_index); cout << Pk_index << " " << Tb_index << " " << q_index << endl; double mu4_l = LISW->calc_angular_Blll_all_config(l1,l2,l3,z,z,z, Pk_index, Tb_index, q_index); double mu4_nlg = NLG->calc_Blll_limber(l1,l2,l3,nu,10,Pk_index,Tb_index,q_index); cout << mu2_nlg/mu_fiducial_nlg << " " << mu3_nlg /mu_fiducial_nlg << " " << mu4_nlg/mu_fiducial_nlg << endl; cout << mu2_l/mu_fiducial_l << " " << mu3_l /mu_fiducial_l << " " << mu4_l/mu_fiducial_l << endl; } // This test checks the computation of the halomass function dn/dM BOOST_AUTO_TEST_CASE(check_halo) { /*s8 = params["sigma8"]; h = params["hubble"] / 100.0; omb = params["ombh2"] / (h*h); double T_CMB = params["T_CMB"]; double O_cdm = params["omch2"] / pow(h,2); double O_nu = params["omnuh2"] / pow(h,2); double O_gamma = pow(pi,2) * pow(T_CMB/11605.0,4) / (15.0*8.098*pow(10,-11)*pow(h,2)); double O_nu_rel = O_gamma * 3.0 * 7.0/8.0 * pow(4.0/11.0, 4.0/3.0); double O_R = O_gamma + O_nu_rel; double O_k = params["omk"]; double O_tot = 1.0 - O_k; // This warameter is currently not used. double w = params["w_DE"]; om0 = omb + O_cdm + O_nu; lam0 = O_tot - om0 - O_R; n = params["n_s"]; omNu = O_nu; */ double M_max = 15; double M_min = 8; double omLambda = 0.684; double hub = 0.67; double omM = 0.127/(hub*hub); double omb = 0.022 / (hub*hub); double n_s = 0.962; double s8 = 0.7269; //double s8 = 0.834; double omnu = 0.00064 / (hub*hub); Cosmology cosmo(omM,omLambda,omb,hub,s8,n_s,omnu); double c = cosmo.dndlM(1,pow(10,10)); cout << c << endl; ofstream file("haloMassFunction10.dat"); ofstream file2("halobias10.dat"); double z = 10; for (int i = 0; i<150; i++) { double eM = 4+i*0.1; file << eM << " " << cosmo.dndlM(z,pow(10,eM)) << endl; file2 << eM << " " << cosmo.biasPS(z,pow(10,eM)) << endl; } auto integrand = [&](double M) { double A = 1; double M_HI = A * pow(M, 0.6); double dndm = cosmo.dndlM(1,M)/M; return M_HI * dndm; }; cout << "Integrating" << endl; // requires at least 500000 to do a decent job. double I1 = integrate(integrand, 1e8, 1e14, 1000, simpson()); cout << I1 << endl; auto integrand2 = [&](double X) { double A = 1; double M_HI = A * exp(0.6*X); double dndm = cosmo.dndlM(1,exp(X)); return M_HI * dndm; }; cout << "Integrating 2" << endl; double I2 = integrate(integrand2, M_min * log(10), M_max * log(10), 50, simpson()); cout << I2 << endl; // Computing A - normalization for the M_HI function // A = \rho_c,0 * (1+z*)^3 * \Omega_HI(z*) b_HI(z*) / I // at z* = 0.8, and I = \int dM dn/dM(M,z*) M^(0.6) b(z*,M), // and \Omega_HI(z*) b_HI(z*) = 0.62 * 10^-3 (Switzer 2013) auto integrand3 = [&](double X) { double M_HI = exp(0.6*X); double dndm = cosmo.dndlMSheth(0.8,exp(X)); //double b = cosmo.biasPS(0.8,exp(X)); double b = biasmST(exp(X),0.8, &cosmo); return M_HI * dndm * b; }; cout << "Integrating 3" << endl; M_min = 1e10 * pow(1+0.8,-1.5); M_max = pow(200,3)/pow(30,3)*1e10 * pow(1+0.8, -1.5); double I3 = integrate(integrand3, log(M_min), log(M_max), 50, simpson()); cout << I3 << endl; double rho_c = cosmo.rhoCritZ(0); cout << rho_c << endl; double OmTimesb = 0.62 * 1e-3; double A = rho_c * OmTimesb / I3; cout << " Then A = " << A << endl; // I can now compute Omega_HI(z) ofstream file3("OmegaHIvsZ.dat"); for (int i = 0; i < 50; i++) { double z = i* 0.1; M_min = 1e10 * pow(1+z,-1.5); M_max = pow(200,3)/pow(30,3)*1e10 * pow(1+z, -1.5); auto integ = [&](double X) { double M_HI = A * exp(0.6*X); double dndm = cosmo.dndlMSheth(z,exp(X)); return M_HI * dndm; }; double rhoHI = integrate(integ, log(M_min), log(M_max), 50, simpson()); auto integ2 = [&](double X) { double M_HI = exp(0.6*X); double dndm = nmST(exp(X),z,&cosmo); return M_HI * dndm; }; double II = integrate(integ2, log(M_min), log(M_max), 50, simpson()); double zz = pow(1+z,-3); file3 << z << " " << rhoHI / cosmo.rhoCritZ(0) << " " <<\ OmTimesb*II/I3 << " " << ((-0.000062667) * (z-3) * (z-3) + 0.00105)<< endl; } } BOOST_AUTO_TEST_CASE(check_sigma8) { // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_check_sigma8.ini"; // sets up a base for the output filenames. string base = "plots/data/test_"; string suffix = ".dat"; string name; stringstream outfilename; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); vector<string> keys = parser.giveParamKeys(); string matrixPath = parser.giveMatrixPath(); string fisherPath = parser.giveFisherPath(); int Pk_index = 0; int Tb_index = 0; int q_index = 0; Model_Intensity_Mapping* model = new Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); IntensityMapping* analysis = new IntensityMapping(model, keys.size()); Bispectrum_LISW* LISW = new Bispectrum_LISW(analysis, keys.size()); Bispectrum* NLG = new Bispectrum(analysis); } BOOST_AUTO_TEST_CASE(check_limber_NLG) { // Setup // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_check_sigma8.ini"; // sets up a base for the output filenames. string base = "plots/data/theta_tests_plus/test_"; string suffix = ".dat"; string name; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); vector<string> keys = parser.giveParamKeys(); string matrixPath = parser.giveMatrixPath(); string fisherPath = parser.giveFisherPath(); int Pk_index = 0; int Tb_index = 0; int q_index = 0; Model_Intensity_Mapping* model = new Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); IntensityMapping* analysis = new IntensityMapping(model, keys.size()); Bispectrum_LISW* LISW = new Bispectrum_LISW(analysis, keys.size()); Bispectrum* NLG = new Bispectrum(analysis); TEST_Bispectrum* NLG_test = NULL; NLG_test = new TEST_Bispectrum(analysis); int l = 100; int lp = l; //double z = 1; //double nu_centre = 1420.4/(1+z); #pragma omp parallel num_threads(20) { double a = 1; #pragma omp for for (int i = 0; i < 40; ++i) { stringstream outfilename, outfilename2; double nu_centre = 400 + i*10; int nu = nu_centre; cout << nu << endl; double z = 1420.4/nu_centre -1; double nu_width = 10; double delta_z = 0.5; name = "theta_limber_B1_lp2_gl_nu"; outfilename << base << name << nu << suffix; //name = "beta_limberB"; //outfilename2 << base << name << suffix; ofstream file(outfilename.str()); //ofstream file2(outfilename2.str()); //outfilename.str(""); vector<int> ls; for (int i = 15; i < 100; i++) { int l = exp(i*0.2); if (l % 2 == 1) l++; bool calc = true; for (int j = 0; j < ls.size(); j++) { if (ls[j] == l) calc = false; } if (calc) ls.push_back(l); if (l < 10000 && calc) { int ldiff = -2; int q = 0; double b = NLG->theta_approx_lm2(l, z, 0,0,0); double fl = NLG->gl(l,ldiff,z,1000);// * b; double fl_pre = NLG->interpolate_gl_for_theta_lm2(nu, l); double betaB = NLG->Beta_integral(l, l-ldiff, q, z, 1000); cout << l << " " << fl << " " << fl_pre << " " << b << " " << fl*b << " " <<\ fl_pre*b << " " << betaB << " " << abs(fl*b-betaB)/abs(betaB) << " " <<\ abs(fl_pre*b-betaB)/abs(betaB) << endl; file << l << " " << fl << " " << fl_pre << " " << b << " " << fl*b << " " <<\ fl_pre*b << " " << betaB << " " << abs(fl*b-betaB)/abs(betaB) << " " <<\ abs(fl_pre*b-betaB)/abs(betaB) << endl; } } } } } BOOST_AUTO_TEST_CASE(check_wigner) { WignerPythonInterface WPI; for (int l = 0; l < 3; l++) { int l1 = 2 + l * 1; int lmin1 = l1/2; if (lmin1 == 1) lmin1 = 2; for (int l2 = lmin1; l2 <= l1; l2++) { for (int l3 = l1-l2; l3 <= l2; l3++) { for (int l6 = l1 - 2; l6 <= l1 + 2; l6++) { for (int l7 = l2 - 2; l7 <= l2 + 2; l7++) { double W6J = WignerSymbols::wigner6j(l1, l2, l3, l7, l6, 2); //if (my_isnan(W6J)) // W6J = WPI.W6J(l1,l2,l3,l7,l6,2); cout << W6J << " " << l1 << " " << l2 << " " << l3 << " " << l7 << " " << l6 << endl; } } } } } cout << WignerSymbols::wigner6j_f(31, 31, 31, 32, 33, 2) << " " << WPI.W6J(31,31,31,32,33,2) << endl; } BOOST_AUTO_TEST_CASE(make_GL_files) { // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_make_paper_plots.ini"; // sets up a base for the output filenames. string base = "plots/data/test_"; string suffix = ".dat"; string name; stringstream outfilename; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); vector<string> keys = parser.giveParamKeys(); string matrixPath = parser.giveMatrixPath(); string fisherPath = parser.giveFisherPath(); int Pk_index = 0; int Tb_index = 0; int q_index = 0; Model_Intensity_Mapping* model = new Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); IntensityMapping* analysis = new IntensityMapping(model, keys.size()); //Bispectrum_LISW* LISW = new Bispectrum_LISW(analysis, keys.size()); Bispectrum* NLG = new Bispectrum(analysis); NLG->write_gl_for_theta_lm2(300, 10, 10); } BOOST_AUTO_TEST_CASE(check_mudata) { // ini file to which the output will be compared. string iniFilename = "UnitTestData/test_params_make_paper_plots.ini"; // sets up a base for the output filenames. string base = "plots/data/test_"; string suffix = ".dat"; string name; stringstream outfilename; IniReader parser(iniFilename); map<string,double> params = parser.giveRunParams(); vector<string> keys = parser.giveParamKeys(); string matrixPath = parser.giveMatrixPath(); string fisherPath = parser.giveFisherPath(); int Pk_index = 0; int Tb_index = 0; int q_index = 0; vector<mu_data> data_vector; Model_Intensity_Mapping* model = new Model_Intensity_Mapping(params, &Pk_index, &Tb_index, &q_index); IntensityMapping* analysis = new IntensityMapping(model, keys.size()); Bispectrum_LISW* LISW = new Bispectrum_LISW(analysis, keys.size()); Bispectrum* NLG = new Bispectrum(analysis); Bispectrum_Fisher fish(analysis, LISW, NLG, keys, fisherPath); fish.calc_mu(4, 3, 1, 410, "lambda_LISW", &Pk_index, &Tb_index, &q_index, ALL_eff, true, data_vector); fish.calc_mu(4, 3, 2, 410, "lambda_LISW", &Pk_index, &Tb_index, &q_index, ALL_eff, true, data_vector); fish.calc_mu(4, 3, 3, 410, "lambda_LISW", &Pk_index, &Tb_index, &q_index, ALL_eff, true, data_vector); fish.calc_mu(4, 2, 1, 410, "lambda_LISW", &Pk_index, &Tb_index, &q_index, ALL_eff, true, data_vector); fish.calc_mu(4, 2, 2, 410, "lambda_LISW", &Pk_index, &Tb_index, &q_index, ALL_eff, true, data_vector); stringstream filename; filename << "MU_CALCULATED/testing" << "/mu_nu" << "410" << ".dat"; ofstream file(filename.str()); for (int i = 0; i < data_vector.size(); i++) { cout << data_vector[i].l1 << " " << data_vector[i].l2 << " " << data_vector[i].l3 << " " << data_vector[i].mu << endl; file << data_vector[i].l1 << " " << data_vector[i].l2 << " " << data_vector[i].l3 << " " << data_vector[i].mu << endl; } vector<mu_data> data_vector2; /*fish.read_mu_data_from_file(data_vector2, 410, "testing"); for (int i = 0; i < data_vector2.size(); i++) { cout << i << " " << data_vector2[i].l1 << " " << data_vector2[i].l2 << " " << data_vector2[i].l3 << " " << data_vector2[i].mu << endl; }*/ cout << "------------ " << endl; fish.read_mu_data_from_file(data_vector2, 410, "lambda_LISW"); cout << data_vector2.size() << endl; cout << fish.calc_mu_read(2, 2, 2, 410, "lambda_LISW", data_vector2) << endl; cout << fish.calc_mu_read(83, 42, 41, 410, "lambda_LISW", data_vector2) << endl; cout << fish.calc_mu_read(164, 82, 82, 410, "lambda_LISW", data_vector2) << endl; cout << fish.calc_mu_read(245, 123, 122, 410, "lambda_LISW", data_vector2) << endl; cout << fish.calc_mu_read(326, 163, 163, 410, "lambda_LISW", data_vector2) << endl; cout << fish.calc_mu_read(407, 204, 203, 410, "lambda_LISW", data_vector2) << endl; cout << fish.calc_mu_read(488, 244, 244, 410, "lambda_LISW", data_vector2) << endl; cout << fish.calc_mu_read(569, 285, 284, 410, "lambda_LISW", data_vector2) << endl; cout << fish.calc_mu_read(650, 325, 325, 410, "lambda_LISW", data_vector2) << endl; cout << fish.calc_mu_read(731, 366, 365, 410, "lambda_LISW", data_vector2) << endl; cout << fish.calc_mu_read(812, 406, 406, 410, "lambda_LISW", data_vector2) << endl; cout << fish.calc_mu_read(893, 447, 446, 410, "lambda_LISW", data_vector2) << endl; cout << fish.calc_mu_read(974, 487, 487, 410, "lambda_LISW", data_vector2) << endl; cout << fish.calc_mu_read(1055, 528, 527, 410, "lambda_LISW", data_vector2) << endl; cout << fish.calc_mu_read(1136, 568, 568, 410, "lambda_LISW", data_vector2) << endl; cout << fish.calc_mu_read(1217, 609, 608, 410, "lambda_LISW", data_vector2) << endl; cout << fish.calc_mu_read(1298, 649, 649, 410, "lambda_LISW", data_vector2) << endl; cout << fish.calc_mu_read(1379, 690, 689, 410, "lambda_LISW", data_vector2) << endl; cout << fish.calc_mu_read(1460, 730, 730, 410, "lambda_LISW", data_vector2) << endl; cout << fish.calc_mu_read(1541, 771, 770, 410, "lambda_LISW", data_vector2) << endl; cout << fish.calc_mu_read(1541, 1521, 1320, 410, "lambda_LISW", data_vector2) << endl; } // EOF
#ifndef F3LIB_TYPES_VECTOR3_H_ #define F3LIB_TYPES_VECTOR3_H_ namespace f3 { namespace types { struct Vector3 { float x; float y; float z; explicit Vector3(); explicit Vector3(float x, float y, float z); Vector3 operator+(const Vector3& rhs); Vector3 operator*(float rhs) const; }; } // namespace types } // namespace f3 #endif //F3LIB_TYPES_VECTOR3_H_
/** @file * @brief * База для оперирования данными по выборам в России. * @details * Эта база данных была создана для эффективного оперирования табличными * числами, полученными с официального сайта центризбиркома. * * @author Головко Александр */ //######################## - LIBRARIES - ####################################### #include <stdio.h> #include <stdlib.h> #include <math.h> #include <fstream> #include <iostream> #include <string.h> #include "Exception/Exception.h" using namespace std; //##################### - MACROS DEFINITIONS - ################################# //##################### - TYPE DEFINITIONS - ################################### struct person { char name [100]; char surname [100]; char fname [100]; }; struct LEC { int N_LEC_; char TEC_ [250]; int N_voters_at_LEC_; int N_voting_ballots_; int N_people_voted_in_advance_; int N_people_voted_in_; int N_people_voted_out_; int N_canceled_ballots_; int N_ballots_found_out_; int N_ballots_found_in_; int N_invalid_ballots_; int N_valid_ballots_; int N_absentee_ballots_; int N_people_took_absentee_ballots_; int N_people_voted_with_absentee_ballots_; int N_canceled_absentee_ballots_; int N_people_took_absentee_ballots_from_TEC_; int N_absentee_ballots_lost_; int N_voting_ballots_lost_; int N_voting_ballots_unaccounted_; int candidates_ [25]; LEC (); LEC (int N_LEC, char* TEC, int N_voters_at_LEC); LEC (int N_LEC, char* TEC, int N_voters_at_LEC, int N_voting_ballots, int N_people_voted_in_advance, int N_people_voted_in, int N_people_voted_out, int N_canceled_ballots, int N_ballots_found_out, int N_ballots_found_in, int N_invalid_ballots, int N_valid_ballots, int N_absentee_ballots, int N_people_took_absentee_ballots, int N_people_voted_with_absentee_ballots, int N_canseled_absentee_ballots, int N_people_took_absentee_ballots_from_TEC, int N_absentee_ballots_lost, int N_voting_ballots_lost, int N_voting_ballots_unaccounted, int* candidates); LEC (const LEC& lec); void operator = (const LEC& lec); friend ostream& operator << (ostream& stream, LEC& lec); }; //#################### - VARIABLE DEFINITIONS - ################################ int ElectionType = 0; int BaseSize = 0; LEC* Base = NULL; FILE* Datafile = NULL; int NumberCandidates = 0; person* candidate; char date [100] = "\0"; char city [100] = "\0"; int POut = 0; int bind_control = 0; //#################### - FUNCTIONS DEFINITIONS - ############################### LEC scan_LEC (); void help (); void bind (); void unbind (); void result (); void analyze (); //############################################################################## //============================================================================== //############################################################################## int main (int argc, char** argv) try { char com [50] = "help\0"; for (;;) { if (strcmp(com, "quit") == 0) break; else if (strcmp(com, "help") == 0) help(); else if (strcmp(com, "bind") == 0) bind(); else if (strcmp(com, "unbind") == 0) unbind(); else if (strcmp(com, "result") == 0) result(); else if (strcmp(com, "analyze") ==0) analyze(); else printf(" Нет такой команды. Введите 'help' для помощи.\n"); printf(">> "); cin>>com; } if (bind_control > 0) { fclose(Datafile); delete[] Base; delete[] candidate; } return 0; } catch (Exc& E) { printf("\n >> ERROR: %s\n\n", E.error); } catch (int point) { printf("\n >> FATAL ERROR. Point #%i.\n\n", point); } //############################################################################## //============================================================================== //############################################################################## //############################################################################## ostream& operator << (ostream& stream, LEC& lec) { if (POut == 1) stream<<"УИК №"; stream<<lec.N_LEC_<<", "; if (POut == 1) stream<<"ТИК "; stream<<lec.TEC_; if (POut == 1) stream<<";"<<endl; else stream<<", "; stream<<lec.N_voters_at_LEC_<<", "; stream<<lec.N_voting_ballots_<<", "; if (ElectionType != 1) { stream<<lec.N_people_voted_in_advance_<<", "; } stream<<lec.N_people_voted_in_<<", "; stream<<lec.N_people_voted_out_<<", "; stream<<lec.N_canceled_ballots_<<", "; stream<<lec.N_ballots_found_out_<<", "; stream<<lec.N_ballots_found_in_<<", "; stream<<lec.N_invalid_ballots_<<", "; stream<<lec.N_valid_ballots_<<", "; if (ElectionType != 2) { stream<<lec.N_absentee_ballots_<<", "; stream<<lec.N_people_took_absentee_ballots_<<", "; stream<<lec.N_people_voted_with_absentee_ballots_<<", "; stream<<lec.N_canceled_absentee_ballots_<<", "; stream<<lec.N_people_took_absentee_ballots_from_TEC_<<", "; stream<<lec.N_absentee_ballots_lost_<<", "; } stream<<lec.N_voting_ballots_lost_<<", "; stream<<lec.N_voting_ballots_unaccounted_<<", "; for (int i = 0; i < NumberCandidates; i++) { stream<<lec.candidates_[i]; if (i < (NumberCandidates - 1)) stream<<", "; else stream<<";"; } return stream; } //############################################################################## void help () { printf("\n Комманды управления:\n"); printf(" bind - Связать систему с файлом базы данных.\n"); printf(" unbind - Сбросить файл базы данных.\n"); printf(" quit - Выйти из программы.\n"); printf(" help - Печать этого сообщения.\n"); printf(" analyze - Проанализировать данные по участкам.\n"); printf(" result - Печать результатов выборов по базе.\n\n"); } void result () { if (bind_control == 0) { printf("Программа не связана ни с одним файлом.\n"); } else { int TV = 0; int* V = new int[NumberCandidates]; int IV = 0; int LV = 0; for(int i = 0; i < NumberCandidates; i++) V[i] = 0; for(int i = 0; i < BaseSize; i++) { TV += Base[i].N_people_voted_in_ + Base[i].N_people_voted_out_ + Base[i].N_people_voted_in_advance_; for(int j = 0; j < NumberCandidates; j++) V[j] += Base[i].candidates_[j]; IV += Base[i].N_invalid_ballots_; LV += Base[i].N_people_voted_in_ + Base[i].N_people_voted_out_ - Base[i].N_ballots_found_in_ - Base[i].N_ballots_found_out_; } printf("\n Результаты голосования:\n"); for (int i = 0; i < NumberCandidates; i++) { printf(" %s %s %s: %6.2f%%\n", candidate[i].surname, candidate[i].name, candidate[i].fname, (float)V[i]/TV*100); } printf(" Недействительные бюллетени: %.2f%%\n", (float)IV/TV*100); printf(" Утерянные бюллетени: %.2f%%\n\n", (float)LV/TV*100); delete[] V; } } void analyze () { if (bind_control == 0) { printf("Программа не связана ни с одним файлом.\n"); } else { printf(" Анализ результатов (автогенерация)\n"); printf(" Выборы "); if (ElectionType == 1) printf("Президента Российской Федерации.\n"); else if (ElectionType == 2) printf("Главы города %s.\n", city); printf (" %s.\n\n", date); printf("Участки со 100%% явкой:\n"); for (int i = 0; i < BaseSize; i++) { int TV = Base[i].N_people_voted_in_ + Base[i].N_people_voted_out_ + Base[i].N_people_voted_in_advance_; if (Base[i].N_people_voted_in_ + Base[i].N_people_voted_out_ + Base[i].N_people_voted_in_advance_ - Base[i].N_voters_at_LEC_ == 0) { printf(" - ТИК %s, участок №%i:\n Избирателей на участке %i, проголосовало %i;\n", Base[i].TEC_, Base[i].N_LEC_, Base[i].N_voters_at_LEC_, Base[i].N_voters_at_LEC_); printf(" Из них %i(%.2f%%) проголосовали на участке, %i(%.2f%%) проголосовали на дому.\n", Base[i].N_people_voted_in_, (float)Base[i].N_people_voted_in_/TV*100, Base[i].N_people_voted_out_, (float)Base[i].N_people_voted_out_/TV*100); } } printf("\n"); } }
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "openvino/runtime/remote_context.hpp" #include "ie_remote_blob.hpp" #include "ie_remote_context.hpp" #define REMOTE_CONTEXT_STATEMENT(...) \ if (_impl == nullptr) \ IE_THROW(NotAllocated) << "RemoteContext was not initialized."; \ try { \ __VA_ARGS__; \ } catch (...) { \ ::InferenceEngine::details::Rethrow(); \ } namespace ov { namespace runtime { RemoteContext::RemoteContext(const std::shared_ptr<void>& so, const ie::RemoteContext::Ptr& impl) : _so(so), _impl(impl) { if (_impl == nullptr) IE_THROW() << "RemoteContext was not initialized."; } std::string RemoteContext::get_device_name() const { REMOTE_CONTEXT_STATEMENT(return _impl->getDeviceName()); } std::shared_ptr<ie::RemoteBlob> RemoteContext::create_blob(const ie::TensorDesc& tensorDesc, const ie::ParamMap& params) { REMOTE_CONTEXT_STATEMENT(return _impl->CreateBlob(tensorDesc, params)); } ie::ParamMap RemoteContext::get_params() const { REMOTE_CONTEXT_STATEMENT(return _impl->getParams()); } } // namespace runtime } // namespace ov
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- ** ** Copyright (C) 2000-2008 Opera Software AS. All rights reserved. ** ** This file is part of the Opera web browser. It may not be distributed ** under any circumstances. ** ** Yngve Pettersen ** */ #include "core/pch.h" #ifdef _ENABLE_AUTHENTICATE #include "modules/auth/auth_elm.h" // AuthElm base class AuthElm::AuthElm(unsigned short a_port, URLType a_type, BOOL authenticate_once) : id(++g_auth_id_counter), port(a_port), urltype(a_type), m_authenticate_once(authenticate_once) { } AuthElm::~AuthElm() { if(InList()) Out(); } unsigned long AuthElm::IsAlias() { return 0; } AuthElm *AuthElm::AliasOf() { return this; } /* OP_STATUS AuthElm::GetAuthString(OpStringS8 &ret_str, URL_Rep * url, #if !defined(_EXTERNAL_SSL_SUPPORT_) || defined(_USE_HTTPS_PROXY) BOOL secure, #endif HTTP_Method http_method, HTTP_request_st* request, #ifdef HTTP_DIGEST_AUTH HTTP_Request_digest_data &auth_digest, HTTP_Request_digest_data &proxy_digest, #endif Upload_Base* upload_data, OpStringC8 &data) { return GetAuthString(ret_str,url); } */ #ifdef HTTP_DIGEST_AUTH void AuthElm::RemoveAlias(AuthElm *) { } OP_STATUS AuthElm::AddAlias(AuthElm *) { return OpStatus::ERR; } #endif #endif
#ifndef ASYNCEMULATIONDECODER_H #define ASYNCEMULATIONDECODER_H #include "image.h" #include "modules/util/simset.h" class AsyncEmulationDecoder : public ImageDecoder, public Link { public: AsyncEmulationDecoder(); ~AsyncEmulationDecoder(); OP_STATUS DecodeData(BYTE* data, INT32 numBytes, BOOL more, int& resendBytes, BOOL load_all = FALSE); void SetImageDecoderListener(ImageDecoderListener* imageDecoderListener); void SetDecoder(ImageDecoder* decoder); void Decode(); private: ImageDecoder* image_decoder; ImageDecoderListener* listener; char* buf; int buf_len; }; #endif // !ASYNCEMULATIONDECODER_H
#ifdef DEBUG #define _GLIBCXX_DEBUG #endif #include <iostream> #include <algorithm> #include <cstdio> #include <cstdlib> #include <ctime> #include <memory.h> #include <cmath> #include <string> #include <cstring> #include <queue> #include <vector> #include <set> #include <deque> #include <map> #include <functional> #include <numeric> #include <sstream> #include <complex> typedef long double LD; typedef long long LL; typedef unsigned long long ULL; typedef unsigned int uint; #define PI 3.1415926535897932384626433832795 #define sqr(x) ((x)*(x)) using namespace std; int n, q, l, w; struct Tp { int type, x, y1, y2, i; Tp() {} Tp(int type, int x, int y1, int y2, int i) : type(type), x(x), y1(y1), y2(y2), i(i) {} bool operator<(const Tp& t) const { return type > t.type || (type == t.type && x < t.x); } } Q[444444]; int qn; LL ans[222222]; int main() { freopen(".in", "r", stdin); freopen(".out", "w", stdout); scanf("%d%d%d%d", &n, &q, &l, &w); for (int i = 0; i < n; ++i) { int x1, y1, x2, y2; scanf("%d%d%d%d", &x1, &y1, &x2, &y2); Q[qn++] = Tp(+2, x1, y1, y2, i); Q[qn++] = Tp(-2, x2, y1, y2, i); } for (int i = 0; i < q; ++i) { int x1, y1; scanf("%d%d", &x1, &y1); Q[qn++] = Tp(-1, x1, y1, y1 + w - 1, i); Q[qn++] = Tp(+1, x1 + l - 1, y1, y1 + w - 1, i); } tree_init(1, 0, 1000000); sort(Q, Q + qn); for (int i = 0; i < qn; ++i) { if (Q[i].type == +2) { tree_set(1, Q[i].y1, Q[i].y2, Q[i].x1); } else if (Q[i].type == -2) { tree_set(1, Q[i].y1, Q[i].y2, -1); } else if (Q[i].type == -1) { ans[Q[i].i] -= } } for (int i = 0; i < q; ++i) printf("%I64d\n", ans[i]); return 0; }
#include "IdleDecision.h" void IdleDecision::makeDecision(Agent* agent, float deltaTime) { vector2 agentSpeed = agent->GetVelocity(); //get speed //start to slow the agent down float slowAmount = 1.001f; if (agentSpeed.x != 0) { agentSpeed.x /= slowAmount; } if (agentSpeed.y != 0) { agentSpeed.y /= slowAmount; } agent->SetVelocity(agentSpeed); };
#include "EditFormulationForm.h" #include "ui_EditFormulationForm.h" EditFormulationForm::EditFormulationForm(const QString &formulation, QWidget *parent) : QWidget(parent), ui(new Ui::EditFormulationForm) { ui->setupUi(this); ui->formualation->setText(formulation); ui->formualation->setFocus(); connect(ui->buttonBox, &QDialogButtonBox::accepted, this, &EditFormulationForm::onEditingFinished); connect(ui->buttonBox, &QDialogButtonBox::rejected, this, &EditFormulationForm::deleteLater); connect(ui->formualation, &QLineEdit::editingFinished, this, &EditFormulationForm::onEditingFinished); } EditFormulationForm::~EditFormulationForm() { delete ui; } void EditFormulationForm::onEditingFinished() { emit editingFinished(ui->formualation->text()); deleteLater(); }
// // This file contains the C++ code from Program 10.3 of // "Data Structures and Algorithms // with Object-Oriented Design Patterns in C++" // by Bruno R. Preiss. // // Copyright (c) 1998 by Bruno R. Preiss, P.Eng. All rights reserved. // // http://www.pads.uwaterloo.ca/Bruno.Preiss/books/opus4/programs/pgm10_03.cpp // #include <BST.h> #include <NullObject.h> #include <stdexcept> BST& BST::Left () const { return dynamic_cast<BST&> (BinaryTree::Left ()); } BST& BST::Right () const { return dynamic_cast<BST&> (BinaryTree::Right ()); } Object& BST::Find (Object const& object) const { if (IsEmpty ()) return NullObject::Instance (); int const diff = object.Compare (*key); if (diff == 0) return *key; else if (diff < 0) return Left ().Find (object); else return Right ().Find (object); } Object& BST::FindMin () const { if (IsEmpty ()) return NullObject::Instance (); else if (Left ().IsEmpty ()) return *key; else return Left ().FindMin(); } Object& BST::FindMax () const { if (IsEmpty ()) return NullObject::Instance (); else if (Right ().IsEmpty ()) return *key; else return Right ().FindMax(); } void BST::Insert (Object& object) { if (IsEmpty ()) AttachKey (object); else { int const diff = object.Compare (*key); if (diff == 0) throw std::invalid_argument ("duplicate key"); if (diff < 0) Left ().Insert (object); else Right ().Insert (object); } Balance (); } void BST::AttachKey (Object& object) { if (!IsEmpty ()) throw std::domain_error ("invalid operation"); key = &object; left = new BST (); right = new BST (); } void BST::Balance () {} void BST::Withdraw (Object& object) { if (IsEmpty ()) throw std::invalid_argument ("object not found"); #ifdef DPRINT std::cerr << "with draw " << object <<" @ "<< *key<< std::endl; #endif int const diff = object.Compare (*key); if (diff == 0) { if (!Left ().IsEmpty ()) { Object& max = Left ().FindMax (); key = &max; Left ().Withdraw (max); } else if (!Right ().IsEmpty ()) { Object& min = Right ().FindMin (); key = &min; Right ().Withdraw (min); } else DetachKey (); } else if (diff < 0) Left ().Withdraw (object); else Right ().Withdraw (object); Balance (); } Object& BST::DetachKey () { if (!IsLeaf ()) throw std::domain_error ("invalid operation"); Object& result = *key; delete left; delete right; key = 0; left = 0; right = 0; return result; } bool BST::IsMember(const Object& o) const { Object& fo = Find(o); return &fo == &o; }
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=// // Подсчет количества цифр в целом числе без цикла // Counting the number of digits in a whole number without a loop // V 1.0 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=// #include <iostream> #include <cmath> // Библиотека простых математических операций int main() { using namespace std; auto n = 789598; int digitalCount = floor(log10(n)) + 1; cout << "Size num: " << digitalCount << endl; return 0; } // Output: /* Size num: 6 0 */ // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=// // END FILE // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=//
#include <bits/stdc++.h> using namespace std; #ifdef ILIKEGENTOO void E(){}template<class A,class...B>void E(A $,B..._){cerr<<' '<<$;E(_...);} # define E($...) E(#$,'=',$,'\n') #else # define E($...) #endif #define Sz(x) (int((x).size())) #define All(x) begin(x),end(x) typedef double flt; typedef long long int64; typedef pair<int, int> pii; const int inf = 0x3f3f3f3f; int main() { ios_base::sync_with_stdio(false); return 0; }
#include <iostream> using namespace std; int fMax(int [],int); int main() { int a[30],n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } cout<<fMax(a,n); return 0; } int fMax(int arr[],int size){ int middle,tmp1,tmp2; if(size==1)return arr[0]; else if(size==2)return (arr[1]>arr[0]) ? arr[1]:arr[0]; else { middle=size/2; tmp1=fMax(arr,middle+1); tmp2=fMax(arr+middle+1,size-middle-1); return (tmp1>tmp2) ? tmp1:tmp2; } }
#include "NV_PoliMan.h" #include "RadialFunctions.h" #define M_PI 3.1415926535897932 NV_PoliMan::NV_PoliMan() { } NV_PoliMan::~NV_PoliMan() { } fe::ComplexMoments NV_PoliMan::Decompose(cv::Mat blob) { fe::ComplexMoments decomposition; size_t basis_mat_count = 0; for (size_t i = 0; i < this->polynomials.size(); ++i) { for (size_t j = 0; j < this->polynomials[i].size(); ++j) { ++basis_mat_count; } } decomposition.re = cv::Mat::zeros(cv::Size(1, basis_mat_count), CV_64FC1); decomposition.im = cv::Mat::zeros(cv::Size(1, basis_mat_count), CV_64FC1); cv::Mat other; blob.convertTo(other, CV_64FC1, 2.0 / 255.0, -1.0); size_t basis_idx = 0; for (size_t i = 0; i < this->polynomials.size(); ++i) { for (size_t j = 0; j < this->polynomials[i].size(); ++j) { double base_norm_re = this->polynomials[i][j].first.dot(this->polynomials[i][j].first); double base_norm_im = this->polynomials[i][j].second.dot(this->polynomials[i][j].second); if (abs(base_norm_re) > std::numeric_limits<double>::epsilon()) { decomposition.re.at<double>(basis_idx) = other.dot(this->polynomials[i][j].first) / base_norm_re; } if (abs(base_norm_im) > std::numeric_limits<double>::epsilon()) { decomposition.im.at<double>(basis_idx) = other.dot(this->polynomials[i][j].second) / base_norm_im; } ++basis_idx; } } return decomposition; } cv::Mat NV_PoliMan::Recovery(fe::ComplexMoments& decomposition) { cv::Mat recovery = cv::Mat(this->polynomials[0][0].first.rows, this->polynomials[0][0].first.cols, CV_64FC1); recovery.setTo(cv::Scalar(0)); size_t basis_idx = 0; for (size_t i = 0; i < this->polynomials.size(); ++i) { for (size_t j = 0; j < this->polynomials[i].size(); ++j) { recovery += this->polynomials[i][j].first * decomposition.re.at<double>(basis_idx) + this->polynomials[i][j].second * decomposition.im.at<double>(basis_idx); ++basis_idx; } } return recovery; } void NV_PoliMan::InitBasis(int n_max, int diameter) { double delta = 2. / diameter; this->polynomials.resize(n_max + 1); for (size_t n = 0; n <= n_max; ++n) { this->polynomials[n].resize(n_max + 1); for (size_t i = 0; i <= n_max; ++i) { this->polynomials[n][i] = std::make_pair(cv::Mat(diameter, diameter, CV_64FC1), cv::Mat(diameter, diameter, CV_64FC1)); this->polynomials[n][i].first.setTo(cv::Scalar(0)); this->polynomials[n][i].second.setTo(cv::Scalar(0)); } for (size_t r = 0; r < diameter / 2; ++r) { double radial = rf::RadialFunctions::Walsh(r * delta, n, n_max); size_t rot_count = (size_t)(2 * M_PI * r * delta * diameter) * 2; for (size_t th = 0; th < rot_count; ++th) { double theta = 2 * th * M_PI / rot_count; for (size_t i = 0; i <= n_max; ++i) { double sine = std::sin(theta * i) * radial; double cosine = std::cos(theta * i) * radial; double& color_re = this->polynomials[n][i].first.at<double>(r * std::cos(theta) + diameter / 2, r * std::sin(theta) + diameter / 2); color_re = cosine; double& color_im = this->polynomials[n][i].second.at<double>(r * std::cos(theta) + diameter / 2, r * std::sin(theta) + diameter / 2); color_im = sine; } } } } } std::string NV_PoliMan::GetType() { return "NV PoliMan chek"; }
#pragma once #include <ionir/passes/pass.h> namespace ionir { struct ConstructValidationPass : Pass { IONSHARED_PASS_ID; explicit ConstructValidationPass( ionshared::Ptr<ionshared::PassContext> context ); void visit(ionshared::Ptr<Construct> node) override; }; }
#include <algorithm> #include <fstream> #include <iostream> #include <vector> #include "Comparator.h" using namespace std; int main() { ofstream out("Number.out"); if (out.fail()) return 0; ifstream in("Number.txt"); if (in.fail()) { out << "File Number.txt can not be found." << endl; out.close(); return 0; } if (in.peek() == EOF) { out << "File is empty!" << endl; out.close(); in.close(); return 0; } vector<int> v; int number; while (in >> number) v.push_back(number); sort(v.begin(), v.end(), Comparator()); for (int i = 0; i < static_cast<int>(v.size()); ++i) { out << v[i] << " "; } }
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- ** ** Copyright (C) 1995-2011 Opera Software ASA. All rights reserved. ** ** This file is part of the Opera web browser. It may not be distributed ** under any circumstances. ** */ #ifndef _JS_OPERA_ #define _JS_OPERA_ #include "modules/ecmascript/ecmascript.h" #include "modules/dom/src/domobj.h" #include "modules/util/simset.h" #include "modules/ecmascript_utils/esprofiler.h" #ifdef _DEBUG # include "modules/ecmascript_utils/esasyncif.h" #endif // _DEBUG #ifdef _DEBUG class JS_Opera_hardToCall : public DOM_Object { public: virtual int Construct(ES_Value* argv, int argc, ES_Value* return_value, ES_Runtime *origining_runtime); virtual int Call(ES_Object* this_object, ES_Value* argv, int argc, ES_Value* return_value, ES_Runtime* origining_runtime); }; class JS_Opera_delay : public DOM_Object { public: virtual int Call(ES_Object* this_object, ES_Value* argv, int argc, ES_Value* return_value, ES_Runtime* origining_runtime); }; class JS_Opera_asyncEval : public DOM_Object { public: virtual int Call(ES_Object* this_object, ES_Value* argv, int argc, ES_Value* return_value, ES_Runtime* origining_runtime); }; class JS_Opera_asyncCallMethod : public DOM_Object { public: virtual int Call(ES_Object* this_object, ES_Value* argv, int argc, ES_Value* return_value, ES_Runtime* origining_runtime); }; #ifdef ESUTILS_ASYNC_SLOT_SUPPORT class JS_Opera_asyncGetSlot: public DOM_Object { public: virtual int Call(ES_Object* this_object, ES_Value* argv, int argc, ES_Value* return_value, ES_Runtime* origining_runtime); }; class JS_Opera_asyncSetSlot : public DOM_Object { public: virtual int Call(ES_Object* this_object, ES_Value* argv, int argc, ES_Value* return_value, ES_Runtime* origining_runtime); }; #endif // ESUTILS_ASYNC_SLOT_SUPPORT class JS_Opera_cancelThisThread : public DOM_Object { public: virtual int Call(ES_Object* this_object, ES_Value* argv, int argc, ES_Value* return_value, ES_Runtime* origining_runtime); }; class JS_Opera; class JS_Opera_AsyncCallback : public ES_AsyncCallback { public: void SetOperaObject(JS_Opera *opera_object) { opera = opera_object; } OP_STATUS HandleCallback(ES_AsyncOperation operation, ES_AsyncStatus status, const ES_Value &result); private: JS_Opera *opera; }; #endif #ifdef OPERASPEEDDIAL_URL class OperaSpeedDialCallback; #endif // OPERASPEEDDIAL_URL #ifdef OPERABOOKMARKS_URL class OperaBookmarksListener; #endif // OPERABOOKMARKS_URL class JS_Opera : public DOM_Object { public: /** Add custom function to javascript environment. This method makes it possible to extend the javascript environment with custom functions. These custom functions may for instance perform tasks specific to a platform or a manufacturer's device. (Note, a "callback" is what JS calls a "host function". lth / 2001-05-28) js_callback callback The callback that will be called when the corresponding javascript function is called. const uni_char* name Name of the custom function. After AddCallback has been called, the function will be available in opera.{name}. const char* cast_arguments The arguments that this function will accept. The length of the string indicates the number of arguments, and the characters indicate the type of the arguments will be cast to, following the EcmaScript standard. n = number s = string b = boolean {everything else} = do not typecast the argument ie. "s-n" means that the function takes three arguments, of the types string, no typecasting, number. There are no provisions for removing callbacks. The presence of custom functions can easily be tested with the following construct if (opera && opera.{function name}) // function is present When this function call is exported, the js_callback prototype needs to be exported, along with the lang/ecmascript/es_value.h header file. */ virtual ES_GetState GetName(OpAtom property_name, ES_Value* value, ES_Runtime* origining_runtime); virtual ES_GetState GetName(const uni_char* property_name, int property_code, ES_Value* value, ES_Runtime* origining_runtime); virtual ES_PutState PutName(OpAtom property_name, ES_Value* value, ES_Runtime* origining_runtime); virtual BOOL IsA(int type) { return type == DOM_TYPE_OPERA || DOM_Object::IsA(type); } void InitializeL(); JS_Opera() : DOM_Object() #ifdef _DEBUG , saved_value_name(-1.0) , saved_value_index(-1.0) #endif // _DEBUG #ifdef OPERABOOKMARKS_URL , bookmark_listener(NULL) #endif // OPERABOOKMARKS_URL #ifdef OPERASPEEDDIAL_URL , speeddial_listener(NULL) #endif // OPERASPEEDDIAL_URL #ifdef ABOUT_OPERA_DEBUG , debugConnectionCallback(NULL) #endif //ABOUT_OPERA_DEBUG { } #ifdef _DEBUG // For testing JS_Opera_AsyncCallback asyncCallback; double saved_value_name; double saved_value_index; virtual ES_GetState GetNameRestart(const uni_char* property_name, int property_code, ES_Value* value, ES_Runtime* origining_runtime, ES_Object* restart_object); virtual ES_GetState GetIndex(int property_index, ES_Value* value, ES_Runtime *origining_runtime); virtual ES_GetState GetIndexRestart(int property_index, ES_Value* value, ES_Runtime *origining_runtime, ES_Object* restart_object); virtual ES_PutState PutIndex(int property_index, ES_Value* value, ES_Runtime *origining_runtime); virtual ES_PutState PutIndexRestart(int property_index, ES_Value* value, ES_Runtime *origining_runtime, ES_Object* restart_object); virtual ES_PutState PutName(const uni_char* property_name, int property_code, ES_Value* value, ES_Runtime* origining_runtime); virtual ES_PutState PutNameRestart(const uni_char* property_name, int property_code, ES_Value* value, ES_Runtime* origining_runtime, ES_Object* restart_object ); #endif virtual ~JS_Opera(); virtual void GCTrace(); DOM_DECLARE_FUNCTION(buildNumber); DOM_DECLARE_FUNCTION(version); DOM_DECLARE_FUNCTION(collect); #ifdef OPERA_CONSOLE DOM_DECLARE_FUNCTION(postError); #endif // OPERA_CONSOLE #ifdef USER_JAVASCRIPT DOM_DECLARE_FUNCTION(defineMagicFunction); DOM_DECLARE_FUNCTION(defineMagicVariable); #endif // USER_JAVASCRIPT #ifdef DOM_PREFERENCES_ACCESS DOM_DECLARE_FUNCTION_WITH_DATA(accessPreference); DOM_DECLARE_FUNCTION(commitPreferences); #endif // DOM_PREFERENCES_ACCESS #ifdef DOM_LOCALE_SUPPORT DOM_DECLARE_FUNCTION(getLocaleString); #endif // DOM_LOCALE_SUPPORT #ifdef CPUUSAGETRACKING DOM_DECLARE_FUNCTION(getCPUUsage); DOM_DECLARE_FUNCTION(getCPUUsageSamples); DOM_DECLARE_FUNCTION(activateCPUUser); #endif // CPUUSAGETRACKING #ifdef DOM_TO_PLATFORM_MESSAGES DOM_DECLARE_FUNCTION(sendPlatformMessage); #endif // DOM_TO_PLATFORM_MESSAGES #if defined(PREFS_WRITE) && defined(PREFS_HOSTOVERRIDE) DOM_DECLARE_FUNCTION(setOverridePreference); #endif // defined(PREFS_WRITE) && defined(PREFS_HOSTOVERRIDE) #ifdef _DEBUG #ifdef XMLUTILS_XMLSERIALIZER_SUPPORT DOM_DECLARE_FUNCTION(serializeToXML); #endif // XMLUTILS_XMLSERIALIZER_SUPPORT #endif // _DEBUG #ifdef DOM_XSLT_SUPPORT #ifndef XSLT_MORPH_2 DOM_DECLARE_FUNCTION(pushXSLTransform); DOM_DECLARE_FUNCTION(popXSLTransform); #endif // XSLT_MORPH_2 #endif // DOM_XSLT_SUPPORT #ifdef DOM_INVOKE_ACTION_SUPPORT DOM_DECLARE_FUNCTION(invokeAction); #endif // DOM_INVOKE_ACTION_SUPPORT #ifdef DOM_BENCHMARKXML_SUPPORT DOM_DECLARE_FUNCTION(benchmarkXML); #endif // DOM_BENCHMARKXML_SUPPORT #ifdef OPERABOOKMARKS_URL DOM_DECLARE_FUNCTION(setBookmarkListener); DOM_DECLARE_FUNCTION(addBookmark); DOM_DECLARE_FUNCTION(addBookmarkFolder); DOM_DECLARE_FUNCTION(deleteBookmark); DOM_DECLARE_FUNCTION(moveBookmark); DOM_DECLARE_FUNCTION(loadBookmarks); DOM_DECLARE_FUNCTION(saveBookmarks); DOM_DECLARE_FUNCTION(bookmarksSaveFormValues); DOM_DECLARE_FUNCTION(bookmarksGetFormUrlValue); DOM_DECLARE_FUNCTION(bookmarksGetFormTitleValue); DOM_DECLARE_FUNCTION(bookmarksGetFormDescriptionValue); DOM_DECLARE_FUNCTION(bookmarksGetFormShortnameValue); DOM_DECLARE_FUNCTION(bookmarksGetFormParentTitleValue); OperaBookmarksListener *bookmark_listener; #endif // OPERABOOKMARKS_URL #ifdef OPERASPEEDDIAL_URL DOM_DECLARE_FUNCTION(setSpeedDial); DOM_DECLARE_FUNCTION(connectSpeedDial); DOM_DECLARE_FUNCTION(reloadSpeedDial); DOM_DECLARE_FUNCTION(setSpeedDialReloadInterval); DOM_DECLARE_FUNCTION(swapSpeedDials); OperaSpeedDialCallback* speeddial_listener; #endif // OPERASPEEDDIAL_URL #ifdef JS_SCOPE_CLIENT DOM_DECLARE_FUNCTION(scopeEnableService); DOM_DECLARE_FUNCTION(scopeAddClient); DOM_DECLARE_FUNCTION(scopeTransmit); # ifdef SCOPE_MESSAGE_TRANSCODING DOM_DECLARE_FUNCTION(scopeSetTranscodingFormat); # endif // SCOPE_MESSAGE_TRANSCODING # ifdef SELFTEST DOM_DECLARE_FUNCTION(scopeExpose); DOM_DECLARE_FUNCTION(scopeUnexpose); # endif // SELFTEST #endif // JS_SCOPE_CLIENT DOM_DECLARE_FUNCTION_WITH_DATA(accessOverrideHistoryNavigationMode); #ifdef ABOUT_OPERA_DEBUG DOM_DECLARE_FUNCTION(connect); DOM_DECLARE_FUNCTION(disconnect); DOM_DECLARE_FUNCTION(isConnected); DOM_DECLARE_FUNCTION(setConnectStatusCallback); #if defined UPNP_SUPPORT && defined UPNP_SERVICE_DISCOVERY DOM_DECLARE_FUNCTION(setDevicelistChangedCallback); #endif //UPNP_SUPPORT && defined UPNP_SERVICE_DISCOVERY OperaDebugProxy* debugConnectionCallback; #endif // ABOUT_OPERA_DEBUG #ifdef ESUTILS_PROFILER_SUPPORT DOM_DECLARE_FUNCTION(createProfiler); #endif // ESUTILS_PROFILER_SUPPORT #ifdef DATABASE_STORAGE_SUPPORT DOM_DECLARE_FUNCTION(deleteDatabase); #endif // DATABASE_STORAGE_SUPPORT #ifdef DATABASE_ABOUT_WEBSTORAGE_URL DOM_DECLARE_FUNCTION_WITH_DATA(clearWebStorage); #endif // DATABASE_ABOUT_WEBSTORAGE_URL #ifdef _PLUGIN_SUPPORT_ DOM_DECLARE_FUNCTION(togglePlugin); #endif // _PLUGIN_SUPPORT_ #ifdef DOM_LOAD_TV_APP DOM_DECLARE_FUNCTION(loadTVApp); #endif //DOM_LOAD_TV_APP #if defined SELFTEST && defined DAPI_ORIENTATION_MANAGER_SUPPORT DOM_DECLARE_FUNCTION(requestCompassCalibration); #endif // defined SELFTEST && defined DAPI_ORIENTATION_MANAGER_SUPPORT #ifdef SPECULATIVE_PARSER DOM_DECLARE_FUNCTION(getSpeculativeParserUrls); #endif // SPECULATIVE_PARSER #if defined(SELFTEST) && defined(USE_DUMMY_OP_CAMERA_IMPL) DOM_DECLARE_FUNCTION_WITH_DATA(attachDetachDummyCamera); #endif // SELFTEST && USE_DUMMY_OP_CAMERA_IMPL }; #endif /* _JS_OPERA_ */
#pragma once #include <memory> namespace breakout { class GameWindow; class GameEngine { public: GameEngine(); ~GameEngine(); void Init(); void Start(); private: std::shared_ptr<GameWindow> m_window; float m_msPerFrame = 16.f; }; }
#pragma once #include "utils.h" #include "data.h" namespace communication { NTSTATUS hooked_device_control(PDEVICE_OBJECT pDevice, PIRP Irp); NTSTATUS restore_original_device_control(PDRIVER_DISPATCH original_dispatch_param); NTSTATUS is_ctl_valid(ULONG ctl_code); }
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, install, // copy or use the software. // // // Intel License Agreement // For Open Source Computer Vision Library // // Copyright (C) 2000, Intel Corporation, all rights reserved. // Third party copyrights are property of their respective owners. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // * Redistribution's of source code must retain the above copyright notice, // this list of conditions and the following disclaimer. // // * Redistribution's in binary form must reproduce the above copyright notice, // this list of conditions and the following disclaimer in the documentation // and/or other materials provided with the distribution. // // * The name of Intel Corporation may not be used to endorse or promote products // derived from this software without specific prior written permission. // // This software is provided by the copyright holders and contributors "as is" and // any express or implied warranties, including, but not limited to, the implied // warranties of merchantability and fitness for a particular purpose are disclaimed. // In no event shall the Intel Corporation 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. // //M*/ #include "test_precomp.hpp" using namespace std; using namespace cv; using cv::ml::TrainData; using cv::ml::EM; using cv::ml::KNearest; static void defaultDistribs( Mat& means, vector<Mat>& covs, int type=CV_32FC1 ) { CV_TRACE_FUNCTION(); float mp0[] = {0.0f, 0.0f}, cp0[] = {0.67f, 0.0f, 0.0f, 0.67f}; float mp1[] = {5.0f, 0.0f}, cp1[] = {1.0f, 0.0f, 0.0f, 1.0f}; float mp2[] = {1.0f, 5.0f}, cp2[] = {1.0f, 0.0f, 0.0f, 1.0f}; means.create(3, 2, type); Mat m0( 1, 2, CV_32FC1, mp0 ), c0( 2, 2, CV_32FC1, cp0 ); Mat m1( 1, 2, CV_32FC1, mp1 ), c1( 2, 2, CV_32FC1, cp1 ); Mat m2( 1, 2, CV_32FC1, mp2 ), c2( 2, 2, CV_32FC1, cp2 ); means.resize(3), covs.resize(3); Mat mr0 = means.row(0); m0.convertTo(mr0, type); c0.convertTo(covs[0], type); Mat mr1 = means.row(1); m1.convertTo(mr1, type); c1.convertTo(covs[1], type); Mat mr2 = means.row(2); m2.convertTo(mr2, type); c2.convertTo(covs[2], type); } // generate points sets by normal distributions static void generateData( Mat& data, Mat& labels, const vector<int>& sizes, const Mat& _means, const vector<Mat>& covs, int dataType, int labelType ) { CV_TRACE_FUNCTION(); vector<int>::const_iterator sit = sizes.begin(); int total = 0; for( ; sit != sizes.end(); ++sit ) total += *sit; CV_Assert( _means.rows == (int)sizes.size() && covs.size() == sizes.size() ); CV_Assert( !data.empty() && data.rows == total ); CV_Assert( data.type() == dataType ); labels.create( data.rows, 1, labelType ); randn( data, Scalar::all(-1.0), Scalar::all(1.0) ); vector<Mat> means(sizes.size()); for(int i = 0; i < _means.rows; i++) means[i] = _means.row(i); vector<Mat>::const_iterator mit = means.begin(), cit = covs.begin(); int bi, ei = 0; sit = sizes.begin(); for( int p = 0, l = 0; sit != sizes.end(); ++sit, ++mit, ++cit, l++ ) { bi = ei; ei = bi + *sit; assert( mit->rows == 1 && mit->cols == data.cols ); assert( cit->rows == data.cols && cit->cols == data.cols ); for( int i = bi; i < ei; i++, p++ ) { Mat r = data.row(i); r = r * (*cit) + *mit; if( labelType == CV_32FC1 ) labels.at<float>(p, 0) = (float)l; else if( labelType == CV_32SC1 ) labels.at<int>(p, 0) = l; else { CV_DbgAssert(0); } } } } static int maxIdx( const vector<int>& count ) { int idx = -1; int maxVal = -1; vector<int>::const_iterator it = count.begin(); for( int i = 0; it != count.end(); ++it, i++ ) { if( *it > maxVal) { maxVal = *it; idx = i; } } assert( idx >= 0); return idx; } static bool getLabelsMap( const Mat& labels, const vector<int>& sizes, vector<int>& labelsMap, bool checkClusterUniq=true ) { size_t total = 0, nclusters = sizes.size(); for(size_t i = 0; i < sizes.size(); i++) total += sizes[i]; assert( !labels.empty() ); assert( labels.total() == total && (labels.cols == 1 || labels.rows == 1)); assert( labels.type() == CV_32SC1 || labels.type() == CV_32FC1 ); bool isFlt = labels.type() == CV_32FC1; labelsMap.resize(nclusters); vector<bool> buzy(nclusters, false); int startIndex = 0; for( size_t clusterIndex = 0; clusterIndex < sizes.size(); clusterIndex++ ) { vector<int> count( nclusters, 0 ); for( int i = startIndex; i < startIndex + sizes[clusterIndex]; i++) { int lbl = isFlt ? (int)labels.at<float>(i) : labels.at<int>(i); CV_Assert(lbl < (int)nclusters); count[lbl]++; CV_Assert(count[lbl] < (int)total); } startIndex += sizes[clusterIndex]; int cls = maxIdx( count ); CV_Assert( !checkClusterUniq || !buzy[cls] ); labelsMap[clusterIndex] = cls; buzy[cls] = true; } if(checkClusterUniq) { for(size_t i = 0; i < buzy.size(); i++) if(!buzy[i]) return false; } return true; } static bool calcErr( const Mat& labels, const Mat& origLabels, const vector<int>& sizes, float& err, bool labelsEquivalent = true, bool checkClusterUniq=true ) { err = 0; CV_Assert( !labels.empty() && !origLabels.empty() ); CV_Assert( labels.rows == 1 || labels.cols == 1 ); CV_Assert( origLabels.rows == 1 || origLabels.cols == 1 ); CV_Assert( labels.total() == origLabels.total() ); CV_Assert( labels.type() == CV_32SC1 || labels.type() == CV_32FC1 ); CV_Assert( origLabels.type() == labels.type() ); vector<int> labelsMap; bool isFlt = labels.type() == CV_32FC1; if( !labelsEquivalent ) { if( !getLabelsMap( labels, sizes, labelsMap, checkClusterUniq ) ) return false; for( int i = 0; i < labels.rows; i++ ) if( isFlt ) err += labels.at<float>(i) != labelsMap[(int)origLabels.at<float>(i)] ? 1.f : 0.f; else err += labels.at<int>(i) != labelsMap[origLabels.at<int>(i)] ? 1.f : 0.f; } else { for( int i = 0; i < labels.rows; i++ ) if( isFlt ) err += labels.at<float>(i) != origLabels.at<float>(i) ? 1.f : 0.f; else err += labels.at<int>(i) != origLabels.at<int>(i) ? 1.f : 0.f; } err /= (float)labels.rows; return true; } //-------------------------------------------------------------------------------------------- class CV_KMeansTest : public cvtest::BaseTest { public: CV_KMeansTest() {} protected: virtual void run( int start_from ); }; void CV_KMeansTest::run( int /*start_from*/ ) { CV_TRACE_FUNCTION(); const int iters = 100; int sizesArr[] = { 5000, 7000, 8000 }; int pointsCount = sizesArr[0]+ sizesArr[1] + sizesArr[2]; Mat data( pointsCount, 2, CV_32FC1 ), labels; vector<int> sizes( sizesArr, sizesArr + sizeof(sizesArr) / sizeof(sizesArr[0]) ); Mat means; vector<Mat> covs; defaultDistribs( means, covs ); generateData( data, labels, sizes, means, covs, CV_32FC1, CV_32SC1 ); int code = cvtest::TS::OK; float err; Mat bestLabels; // 1. flag==KMEANS_PP_CENTERS kmeans( data, 3, bestLabels, TermCriteria( TermCriteria::COUNT, iters, 0.0), 0, KMEANS_PP_CENTERS, noArray() ); if( !calcErr( bestLabels, labels, sizes, err , false ) ) { ts->printf( cvtest::TS::LOG, "Bad output labels if flag==KMEANS_PP_CENTERS.\n" ); code = cvtest::TS::FAIL_INVALID_OUTPUT; } else if( err > 0.01f ) { ts->printf( cvtest::TS::LOG, "Bad accuracy (%f) if flag==KMEANS_PP_CENTERS.\n", err ); code = cvtest::TS::FAIL_BAD_ACCURACY; } // 2. flag==KMEANS_RANDOM_CENTERS kmeans( data, 3, bestLabels, TermCriteria( TermCriteria::COUNT, iters, 0.0), 0, KMEANS_RANDOM_CENTERS, noArray() ); if( !calcErr( bestLabels, labels, sizes, err, false ) ) { ts->printf( cvtest::TS::LOG, "Bad output labels if flag==KMEANS_RANDOM_CENTERS.\n" ); code = cvtest::TS::FAIL_INVALID_OUTPUT; } else if( err > 0.01f ) { ts->printf( cvtest::TS::LOG, "Bad accuracy (%f) if flag==KMEANS_RANDOM_CENTERS.\n", err ); code = cvtest::TS::FAIL_BAD_ACCURACY; } // 3. flag==KMEANS_USE_INITIAL_LABELS labels.copyTo( bestLabels ); RNG rng; for( int i = 0; i < 0.5f * pointsCount; i++ ) bestLabels.at<int>( rng.next() % pointsCount, 0 ) = rng.next() % 3; kmeans( data, 3, bestLabels, TermCriteria( TermCriteria::COUNT, iters, 0.0), 0, KMEANS_USE_INITIAL_LABELS, noArray() ); if( !calcErr( bestLabels, labels, sizes, err, false ) ) { ts->printf( cvtest::TS::LOG, "Bad output labels if flag==KMEANS_USE_INITIAL_LABELS.\n" ); code = cvtest::TS::FAIL_INVALID_OUTPUT; } else if( err > 0.01f ) { ts->printf( cvtest::TS::LOG, "Bad accuracy (%f) if flag==KMEANS_USE_INITIAL_LABELS.\n", err ); code = cvtest::TS::FAIL_BAD_ACCURACY; } ts->set_failed_test_info( code ); } //-------------------------------------------------------------------------------------------- class CV_KNearestTest : public cvtest::BaseTest { public: CV_KNearestTest() {} protected: virtual void run( int start_from ); }; void CV_KNearestTest::run( int /*start_from*/ ) { int sizesArr[] = { 500, 700, 800 }; int pointsCount = sizesArr[0]+ sizesArr[1] + sizesArr[2]; // train data Mat trainData( pointsCount, 2, CV_32FC1 ), trainLabels; vector<int> sizes( sizesArr, sizesArr + sizeof(sizesArr) / sizeof(sizesArr[0]) ); Mat means; vector<Mat> covs; defaultDistribs( means, covs ); generateData( trainData, trainLabels, sizes, means, covs, CV_32FC1, CV_32FC1 ); // test data Mat testData( pointsCount, 2, CV_32FC1 ), testLabels, bestLabels; generateData( testData, testLabels, sizes, means, covs, CV_32FC1, CV_32FC1 ); int code = cvtest::TS::OK; // KNearest default implementation Ptr<KNearest> knearest = KNearest::create(); knearest->train(trainData, ml::ROW_SAMPLE, trainLabels); knearest->findNearest(testData, 4, bestLabels); float err; if( !calcErr( bestLabels, testLabels, sizes, err, true ) ) { ts->printf( cvtest::TS::LOG, "Bad output labels.\n" ); code = cvtest::TS::FAIL_INVALID_OUTPUT; } else if( err > 0.01f ) { ts->printf( cvtest::TS::LOG, "Bad accuracy (%f) on test data.\n", err ); code = cvtest::TS::FAIL_BAD_ACCURACY; } // KNearest KDTree implementation Ptr<KNearest> knearestKdt = KNearest::create(); knearestKdt->setAlgorithmType(KNearest::KDTREE); knearestKdt->train(trainData, ml::ROW_SAMPLE, trainLabels); knearestKdt->findNearest(testData, 4, bestLabels); if( !calcErr( bestLabels, testLabels, sizes, err, true ) ) { ts->printf( cvtest::TS::LOG, "Bad output labels.\n" ); code = cvtest::TS::FAIL_INVALID_OUTPUT; } else if( err > 0.01f ) { ts->printf( cvtest::TS::LOG, "Bad accuracy (%f) on test data.\n", err ); code = cvtest::TS::FAIL_BAD_ACCURACY; } ts->set_failed_test_info( code ); } class EM_Params { public: EM_Params(int _nclusters=10, int _covMatType=EM::COV_MAT_DIAGONAL, int _startStep=EM::START_AUTO_STEP, const cv::TermCriteria& _termCrit=cv::TermCriteria(cv::TermCriteria::COUNT+cv::TermCriteria::EPS, 100, FLT_EPSILON), const cv::Mat* _probs=0, const cv::Mat* _weights=0, const cv::Mat* _means=0, const std::vector<cv::Mat>* _covs=0) : nclusters(_nclusters), covMatType(_covMatType), startStep(_startStep), probs(_probs), weights(_weights), means(_means), covs(_covs), termCrit(_termCrit) {} int nclusters; int covMatType; int startStep; // all 4 following matrices should have type CV_32FC1 const cv::Mat* probs; const cv::Mat* weights; const cv::Mat* means; const std::vector<cv::Mat>* covs; cv::TermCriteria termCrit; }; //-------------------------------------------------------------------------------------------- class CV_EMTest : public cvtest::BaseTest { public: CV_EMTest() {} protected: virtual void run( int start_from ); int runCase( int caseIndex, const EM_Params& params, const cv::Mat& trainData, const cv::Mat& trainLabels, const cv::Mat& testData, const cv::Mat& testLabels, const vector<int>& sizes); }; int CV_EMTest::runCase( int caseIndex, const EM_Params& params, const cv::Mat& trainData, const cv::Mat& trainLabels, const cv::Mat& testData, const cv::Mat& testLabels, const vector<int>& sizes ) { int code = cvtest::TS::OK; cv::Mat labels; float err; Ptr<EM> em = EM::create(); em->setClustersNumber(params.nclusters); em->setCovarianceMatrixType(params.covMatType); em->setTermCriteria(params.termCrit); if( params.startStep == EM::START_AUTO_STEP ) em->trainEM( trainData, noArray(), labels, noArray() ); else if( params.startStep == EM::START_E_STEP ) em->trainE( trainData, *params.means, *params.covs, *params.weights, noArray(), labels, noArray() ); else if( params.startStep == EM::START_M_STEP ) em->trainM( trainData, *params.probs, noArray(), labels, noArray() ); // check train error if( !calcErr( labels, trainLabels, sizes, err , false, false ) ) { ts->printf( cvtest::TS::LOG, "Case index %i : Bad output labels.\n", caseIndex ); code = cvtest::TS::FAIL_INVALID_OUTPUT; } else if( err > 0.008f ) { ts->printf( cvtest::TS::LOG, "Case index %i : Bad accuracy (%f) on train data.\n", caseIndex, err ); code = cvtest::TS::FAIL_BAD_ACCURACY; } // check test error labels.create( testData.rows, 1, CV_32SC1 ); for( int i = 0; i < testData.rows; i++ ) { Mat sample = testData.row(i); Mat probs; labels.at<int>(i) = static_cast<int>(em->predict2( sample, probs )[1]); } if( !calcErr( labels, testLabels, sizes, err, false, false ) ) { ts->printf( cvtest::TS::LOG, "Case index %i : Bad output labels.\n", caseIndex ); code = cvtest::TS::FAIL_INVALID_OUTPUT; } else if( err > 0.008f ) { ts->printf( cvtest::TS::LOG, "Case index %i : Bad accuracy (%f) on test data.\n", caseIndex, err ); code = cvtest::TS::FAIL_BAD_ACCURACY; } return code; } void CV_EMTest::run( int /*start_from*/ ) { int sizesArr[] = { 500, 700, 800 }; int pointsCount = sizesArr[0]+ sizesArr[1] + sizesArr[2]; // Points distribution Mat means; vector<Mat> covs; defaultDistribs( means, covs, CV_64FC1 ); // train data Mat trainData( pointsCount, 2, CV_64FC1 ), trainLabels; vector<int> sizes( sizesArr, sizesArr + sizeof(sizesArr) / sizeof(sizesArr[0]) ); generateData( trainData, trainLabels, sizes, means, covs, CV_64FC1, CV_32SC1 ); // test data Mat testData( pointsCount, 2, CV_64FC1 ), testLabels; generateData( testData, testLabels, sizes, means, covs, CV_64FC1, CV_32SC1 ); EM_Params params; params.nclusters = 3; Mat probs(trainData.rows, params.nclusters, CV_64FC1, cv::Scalar(1)); params.probs = &probs; Mat weights(1, params.nclusters, CV_64FC1, cv::Scalar(1)); params.weights = &weights; params.means = &means; params.covs = &covs; int code = cvtest::TS::OK; int caseIndex = 0; { params.startStep = EM::START_AUTO_STEP; params.covMatType = EM::COV_MAT_GENERIC; int currCode = runCase(caseIndex++, params, trainData, trainLabels, testData, testLabels, sizes); code = currCode == cvtest::TS::OK ? code : currCode; } { params.startStep = EM::START_AUTO_STEP; params.covMatType = EM::COV_MAT_DIAGONAL; int currCode = runCase(caseIndex++, params, trainData, trainLabels, testData, testLabels, sizes); code = currCode == cvtest::TS::OK ? code : currCode; } { params.startStep = EM::START_AUTO_STEP; params.covMatType = EM::COV_MAT_SPHERICAL; int currCode = runCase(caseIndex++, params, trainData, trainLabels, testData, testLabels, sizes); code = currCode == cvtest::TS::OK ? code : currCode; } { params.startStep = EM::START_M_STEP; params.covMatType = EM::COV_MAT_GENERIC; int currCode = runCase(caseIndex++, params, trainData, trainLabels, testData, testLabels, sizes); code = currCode == cvtest::TS::OK ? code : currCode; } { params.startStep = EM::START_M_STEP; params.covMatType = EM::COV_MAT_DIAGONAL; int currCode = runCase(caseIndex++, params, trainData, trainLabels, testData, testLabels, sizes); code = currCode == cvtest::TS::OK ? code : currCode; } { params.startStep = EM::START_M_STEP; params.covMatType = EM::COV_MAT_SPHERICAL; int currCode = runCase(caseIndex++, params, trainData, trainLabels, testData, testLabels, sizes); code = currCode == cvtest::TS::OK ? code : currCode; } { params.startStep = EM::START_E_STEP; params.covMatType = EM::COV_MAT_GENERIC; int currCode = runCase(caseIndex++, params, trainData, trainLabels, testData, testLabels, sizes); code = currCode == cvtest::TS::OK ? code : currCode; } { params.startStep = EM::START_E_STEP; params.covMatType = EM::COV_MAT_DIAGONAL; int currCode = runCase(caseIndex++, params, trainData, trainLabels, testData, testLabels, sizes); code = currCode == cvtest::TS::OK ? code : currCode; } { params.startStep = EM::START_E_STEP; params.covMatType = EM::COV_MAT_SPHERICAL; int currCode = runCase(caseIndex++, params, trainData, trainLabels, testData, testLabels, sizes); code = currCode == cvtest::TS::OK ? code : currCode; } ts->set_failed_test_info( code ); } class CV_EMTest_SaveLoad : public cvtest::BaseTest { public: CV_EMTest_SaveLoad() {} protected: virtual void run( int /*start_from*/ ) { int code = cvtest::TS::OK; const int nclusters = 2; Mat samples = Mat(3,1,CV_64FC1); samples.at<double>(0,0) = 1; samples.at<double>(1,0) = 2; samples.at<double>(2,0) = 3; Mat labels; Ptr<EM> em = EM::create(); em->setClustersNumber(nclusters); em->trainEM(samples, noArray(), labels, noArray()); Mat firstResult(samples.rows, 1, CV_32SC1); for( int i = 0; i < samples.rows; i++) firstResult.at<int>(i) = static_cast<int>(em->predict2(samples.row(i), noArray())[1]); // Write out string filename = cv::tempfile(".xml"); { FileStorage fs = FileStorage(filename, FileStorage::WRITE); try { fs << "em" << "{"; em->write(fs); fs << "}"; } catch(...) { ts->printf( cvtest::TS::LOG, "Crash in write method.\n" ); ts->set_failed_test_info( cvtest::TS::FAIL_EXCEPTION ); } } em.release(); // Read in try { em = Algorithm::load<EM>(filename); } catch(...) { ts->printf( cvtest::TS::LOG, "Crash in read method.\n" ); ts->set_failed_test_info( cvtest::TS::FAIL_EXCEPTION ); } remove( filename.c_str() ); int errCaseCount = 0; for( int i = 0; i < samples.rows; i++) errCaseCount = std::abs(em->predict2(samples.row(i), noArray())[1] - firstResult.at<int>(i)) < FLT_EPSILON ? 0 : 1; if( errCaseCount > 0 ) { ts->printf( cvtest::TS::LOG, "Different prediction results before writeing and after reading (errCaseCount=%d).\n", errCaseCount ); code = cvtest::TS::FAIL_BAD_ACCURACY; } ts->set_failed_test_info( code ); } }; class CV_EMTest_Classification : public cvtest::BaseTest { public: CV_EMTest_Classification() {} protected: virtual void run(int) { // This test classifies spam by the following way: // 1. estimates distributions of "spam" / "not spam" // 2. predict classID using Bayes classifier for estimated distributions. string dataFilename = string(ts->get_data_path()) + "spambase.data"; Ptr<TrainData> data = TrainData::loadFromCSV(dataFilename, 0); if( data.empty() ) { ts->printf(cvtest::TS::LOG, "File with spambase dataset cann't be read.\n"); ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); return; } Mat samples = data->getSamples(); CV_Assert(samples.cols == 57); Mat responses = data->getResponses(); vector<int> trainSamplesMask(samples.rows, 0); int trainSamplesCount = (int)(0.5f * samples.rows); for(int i = 0; i < trainSamplesCount; i++) trainSamplesMask[i] = 1; RNG rng(0); for(size_t i = 0; i < trainSamplesMask.size(); i++) { int i1 = rng(static_cast<unsigned>(trainSamplesMask.size())); int i2 = rng(static_cast<unsigned>(trainSamplesMask.size())); std::swap(trainSamplesMask[i1], trainSamplesMask[i2]); } Mat samples0, samples1; for(int i = 0; i < samples.rows; i++) { if(trainSamplesMask[i]) { Mat sample = samples.row(i); int resp = (int)responses.at<float>(i); if(resp == 0) samples0.push_back(sample); else samples1.push_back(sample); } } Ptr<EM> model0 = EM::create(); model0->setClustersNumber(3); model0->trainEM(samples0, noArray(), noArray(), noArray()); Ptr<EM> model1 = EM::create(); model1->setClustersNumber(3); model1->trainEM(samples1, noArray(), noArray(), noArray()); Mat trainConfusionMat(2, 2, CV_32SC1, Scalar(0)), testConfusionMat(2, 2, CV_32SC1, Scalar(0)); const double lambda = 1.; for(int i = 0; i < samples.rows; i++) { Mat sample = samples.row(i); double sampleLogLikelihoods0 = model0->predict2(sample, noArray())[0]; double sampleLogLikelihoods1 = model1->predict2(sample, noArray())[0]; int classID = sampleLogLikelihoods0 >= lambda * sampleLogLikelihoods1 ? 0 : 1; if(trainSamplesMask[i]) trainConfusionMat.at<int>((int)responses.at<float>(i), classID)++; else testConfusionMat.at<int>((int)responses.at<float>(i), classID)++; } // std::cout << trainConfusionMat << std::endl; // std::cout << testConfusionMat << std::endl; double trainError = (double)(trainConfusionMat.at<int>(1,0) + trainConfusionMat.at<int>(0,1)) / trainSamplesCount; double testError = (double)(testConfusionMat.at<int>(1,0) + testConfusionMat.at<int>(0,1)) / (samples.rows - trainSamplesCount); const double maxTrainError = 0.23; const double maxTestError = 0.26; int code = cvtest::TS::OK; if(trainError > maxTrainError) { ts->printf(cvtest::TS::LOG, "Too large train classification error (calc = %f, valid=%f).\n", trainError, maxTrainError); code = cvtest::TS::FAIL_INVALID_TEST_DATA; } if(testError > maxTestError) { ts->printf(cvtest::TS::LOG, "Too large test classification error (calc = %f, valid=%f).\n", testError, maxTestError); code = cvtest::TS::FAIL_INVALID_TEST_DATA; } ts->set_failed_test_info(code); } }; TEST(ML_KMeans, accuracy) { CV_KMeansTest test; test.safe_run(); } TEST(ML_KNearest, accuracy) { CV_KNearestTest test; test.safe_run(); } TEST(ML_EM, accuracy) { CV_EMTest test; test.safe_run(); } TEST(ML_EM, save_load) { CV_EMTest_SaveLoad test; test.safe_run(); } TEST(ML_EM, classification) { CV_EMTest_Classification test; test.safe_run(); }
#include "UniversalTorque.h" #include "Object.h" #include "Define.h" #include <iostream> UniversalTorque::UniversalTorque(Object* obj) : Force::Force(Vector(0, 0, 0)) { this->object = obj; } UniversalTorque::UniversalTorque(const UniversalTorque& uniTorque) : Force::Force(dynamic_cast<const Force&>(uniTorque)) { this->object = uniTorque.object; } UniversalTorque::~UniversalTorque(void) { this->object = NULL; } void UniversalTorque::exec(void) { if (object->getOmega().getMagnitude() < OMEGA_MAX) object->applyTorque(*this); } bool UniversalTorque::isDone(void) { return false; } Vector UniversalTorque::getForcePoint(void) { return this->object->getGravityCenter(); } void UniversalTorque::changeObject(Object* obj) { this->object = obj; }
// hello world #include <iostream> #include <string> using namespace std; int main(int argc, char* argv[]) { string _name; cout << "What's your name? "; cin >> _name; cout << "Hello " << _name << "!" << endl; return 0; }
#include "myQtObjects.hpp" MySpinBox::MySpinBox(QWidget* parent) : QSpinBox(parent) { setFocusPolicy(Qt::StrongFocus); } void MySpinBox::wheelEvent(QWheelEvent *event) { if (!hasFocus()) { event->ignore(); } else { QSpinBox::wheelEvent(event); } } MyDoubleSpinBox::MyDoubleSpinBox(QWidget* parent) : QDoubleSpinBox(parent) { setFocusPolicy(Qt::StrongFocus); } void MyDoubleSpinBox::wheelEvent(QWheelEvent *event) { if (!hasFocus()) { event->ignore(); } else { QDoubleSpinBox::wheelEvent(event); } } MyComboBox::MyComboBox(QWidget* parent) : QComboBox(parent) { setFocusPolicy(Qt::StrongFocus); } void MyComboBox::wheelEvent(QWheelEvent *event) { if (!hasFocus()) { event->ignore(); } else { QComboBox::wheelEvent(event); } }
#include <bits/stdc++.h> using namespace std; int main() { int c, a, b, t, d, pos1, pos2; double t1, t2; cin>>c>>a>>b>>t>>d; c*=100; d*=100; d = c-d; t*=60; pos1 = (d+(a*t))%c; pos2 = (d+(b*t))%c; if(pos1==0 && pos2==0) printf("Ana\n"); else if(pos1==0 && pos2) printf("Ana\n"); else if(pos2==0 && pos1) printf("Bia\n"); else { t1 = (c-pos1)/((double)a); t2 = (c-pos2)/((double)b); if(t1<=t2) printf("Ana\n"); else if(t2<t1) printf("Bia\n"); } return 0; }
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- ** ** Copyright (C) 1995-2009 Opera Software AS. All rights reserved. ** ** This file is part of the Opera web browser. It may not be distributed ** under any circumstances. */ #ifdef SCOPE_URL_PLAYER #ifndef WINDOW_COMMANDER_URL_PLAYER_LISTENER_H #define WINDOW_COMMANDER_URL_PLAYER_LISTENER_H class OpWindowCommander; /** * Urlplayer needs to know if WindowCommander is deleted. * * Remember to delete this when urlPlayer is deleted. * We made a separate interface for this SO that it would * be simple to remove later. * * When a window is closed, the windows windowCommander is * deleted. UrlPlayer (which will die) manages its windows * by calling these windowCommanders directly, and when one * is deleted by closed window, urlplayer really needs to know. * Feks: BUG: CORE-14606 */ class WindowCommanderUrlPlayerListener{ public: virtual void OnDeleteWindowCommander(OpWindowCommander* wc) = 0; }; #endif #endif
#include <iostream> #define max 100 #include<stdlib.h> #include<conio.h> using namespace std; void arrgiam(int a[],int n); void arrTang(int a[],int n); void input(int a[],int n) { for(int i=0; i<n; i++) { cout<<"\n Nhap Vi Tri a["<<i<<"] :\t"; cin>>a[i]; } } void Export(int a[],int n) { for(int i=0; i<n; i++) { cout<<"\t"<<a[i]; } } ///Tim Nguyen To Ne int NguyenTo(int x) { if(x<2) { return 0; } for(int i=2; i<x; i++) { if(x%i==0) { return 0; } } return 1; } void NguyenToMang(int a[],int n,int b[],int c[],int Tang=0,int dem=0) { for(int i=0; i<n; i++) { if(NguyenTo(a[i])==1) { b[dem++]=a[i]; } else { c[Tang++]=a[i]; } } // cout<<"\n MANG A \n"; //o day se khong cho no xuat ra mang a bang cach reset lai n->ko delete dc ...vi ko phai con tro! // n=0; // Export(a,n); if(dem==n) { cout<<"\n MANG Nguyen To \n"; for(int i=0; i<dem; i++) { cout<<"\t"<<b[i]; } } else { cout<<"\n Mang Con Lai sau khi Da cHuyen So nguyen To Qua \n"; for(int i=0; i<Tang; i++) { cout<<"\t"<<c[i]; } cout<<"\n MANG Nguyen To \n"; for(int i=0; i<dem; i++) { cout<<"\t"<<b[i]; } } } ///Tách mảng a thành 2 mảng b (chứa các số nguyên dương) và c ///(chứa các số còn lại) void Tach(int a[],int b[],int c[],int n) { int dem=0; int Tang=0; for(int i=0; i<n; i++) { if(a[i]>=0) { b[dem++]=a[i]; } else { c[Tang++]=a[i]; } } n=0;//de mang a ko the xuat ra<=>xoa mang a cout<<"\n Mang toan Nguyen Duong\n"; for(int i=0; i<dem; i++) { cout<<"\t"<<b[i]; } cout<<"\n Mang Cac so Am\n"; for(int i=0; i<Tang; i++) { cout<<"\t"<<c[i]; } } //Tim Kiem int Timkiem(int a[],int n,int &x) { cout<<"\n NHap x an Tim:\t"; cin>>x; for(int i =0; i<n; i++) { if(x==a[i]) { cout<<"\n x Tai Vi tri a["<<i<<"]"; return 1; } } return 0; } //GOP mang void Gopmang (int a[],int b[],int c[],int &A,int &B,int dem=0) { do { cout<<"\n*******************************"; cout<<"\n Nhap N pHAN Tu:\t"; cin>>A; if(A<1) { cout<<"\n Kiem tra lai!"; } else { input(a,A); } } while(A<1); do { cout<<"\n*******************************"; cout<<"\n Nhap N pHAN Tu:\t"; cin>>B; if(B<1) { cout<<"\n Kiem tra lai!"; } else { input(b,B); } } while(B<1); for(int i=0; i<A; i++) { c[dem++]=a[i]; } for(int i=0; i<B; i++) { c[dem++]=b[i]; } A=0;//Luc nay 2 mang kia ko con !vi gan =0 B=0; cout<<"\n Gop Mang A-B:\t"; Export(c,dem); // Export(a,A); //Export(b,B); } //Them Phan Tu Tai vi Tri A[i] void Add(int a[],int &n,int vitrithem,int SoThem) { for(int i=n; i>vitrithem; i--) { a[i]=a[i-1]; } n++; a[vitrithem]=SoThem; //cout<<"\n Mang sau Khi Them Tai vi Tri a["<<vitrithem<<"]"; //Export(a,n); } //Xoa vi tri a[i] void Dele(int a[],int &n,int vitrixoa) { for(int i=vitrixoa; i<n; i++) { a[i]=a[i+1]; } n--; //cout<<"\n Mang sau khi xoa vi tri a["<<vitrixoa<<"]\n"; //Export(a,n); } // Sắp xếp mảng sao cho các số dương đứng đầu mảng giảm dần, //kế đến là các số âm tăng dần, cuối cùng là các số 0. void SortALL(int a[],int n,int b[],int dem=0) { arrgiam(a,n); arrTang(a,n); Export(a,n); /* Cach---2 for(int i=0; i<n; i++) { if(a[i]>0) { b[dem++]=a[i]; } } arrgiam(b,dem); for(int i=0; i<n; i++) { if(a[i]<0) { b[dem++]=a[i]; } } arrTang(b,dem); for(int i=0; i<n; i++) { if(a[i]==0) { b[dem++]=a[i]; } } Export(b,dem); */ } //sap xep tat ca so giam dan void arrgiamall(int a[],int n) { // 2 1 3 4 5 for(int i=0; i<n-1; i++) { for(int j=i+1; j<n; j++) { if(a[i]<a[j]) { int temp=a[i]; a[i]=a[j]; a[j]=temp; } } } } //Sửa các số nguyên tố có trong mảng thành số 0 void ResetNgTo(int a[],int n) { for(int i=0; i<n; i++) { if(NguyenTo(a[i])==1) { a[i]=0; } } Export(a,n); } // Chèn số 0 đằng sau các số nguyên tố trong mảng void Insert_0(int a[],int n) { for(int i=0; i<n; i++) { if(NguyenTo(a[i])==1) { Add(a,n,i+1,0); i++;//de cho no khong set lai cai so da them! } } Export(a,n); } //Xóa tất cả số nguyên tố có trong mảng void Dele_NgTO(int a[],int &n) { for(int i=0; i<n; i++) { if(NguyenTo(a[i])==1) { Dele(a,n,i); i--; } } } int main() { min: system("color 4"); int a[max],b[max],c[max]; int n; system("color 3"); do { cout<<"\n NHap N phan Tu:\t"; cin>>n; if(n<1) { cout<<"\n Kiem Tra N!"; } } while(n<1); input(a,n); cout<<"\n **Mang vua nhap **\n"; Export(a,n); // Tim-X int x=0; if(Timkiem(a,n,x)!=1) { cout<<"\n Khong Thay x !"; } //Mang-Giam-Dan cout<<"\n Mang giam dan \n"; arrgiamall(a,n); Export(a,n); //Xoa-vitri-a[i] int vitrixoa=0; do { cout<<"\n Nhap vao vi tri can xoa:\t"; cin>>vitrixoa; if(vitrixoa<0||vitrixoa>n) { cout<<"\n Vi tri xoa khong hop le!"; } } while(vitrixoa<0||vitrixoa>n); Dele(a,n,vitrixoa); cout<<"\n Mang-sau-khi-xoa vi tri a["<<vitrixoa<<"]\n"; Export(a,n); //Them-Phan-TU-sau vi-tri -a[i] int vitrithem,sothem; do { cout<<"\n Nhap vao vi tri Them:\t"; cin>>vitrithem; if(vitrithem<0||vitrithem>n) { cout<<"\n Vi Tri Khog Hop LE!"; } } while(vitrithem<0||vitrithem>n); cout<<"\n Nhap vao so Them:\t"; cin>>sothem; Add(a,n,vitrithem,sothem); cout<<"\n **MANG-SAU-KHI -THEM- vi TRi a["<<vitrithem<<"]**\n"; Export(a,n); //Mang-sau-khi-sap-xep-DUONG_GIAM_AM-TANG_0CUOI cout<<"\n** Mang sau khi sap xep Duong_Giam,Am_tang,va 0 **\n"; SortALL(a,n,b); cout<<"\n** MANG SAU KHI DA THEM 0 SAU NGUYEN TO**\n"; Insert_0(a,n); //Mang-sau-khi-Tach-am-duong Tach(a,b,c,n); //RESET-SO-NGUYEN-TO cout<<"\n** RESET Nguyen To == 0 tu Mang - b**\n"; ResetNgTo(a,n); //dele nguyen To Dele_NgTO(a,n); cout<<"\n Mang sau khi xoa cac so nguyen to\n"; Export(a,n); //Gop-mang int A,B; A=B=0; Gopmang(a,b,c,A,B); //mang-nguyen-TO NguyenToMang(c,n,b,a); cout<<"\n Ban Muon tiep tuc Keydown 1"; char T=getch(); if(T=='1') { system("cls"); goto min; } return 0; } // Sắp xếp mảng giảm dần void arrgiam(int a[],int n) { // 2 1 3 4 5 for(int i=0; i<n-1; i++) { for(int j=i+1; j<n; j++) { if(a[i]<a[j]) { int temp=a[i]; a[i]=a[j]; a[j]=temp; } } } } //Tang void arrTang(int a[],int n) { // 2 1 3 4 5 for(int i=0; i<n-1; i++) { for(int j=i+1; j<n; j++) { if(a[i]>a[j]&&(a[i]<=0&&a[j]<=0)) { int temp=a[i]; a[i]=a[j]; a[j]=temp; } } } }
// Frame Manager Functions // // Copyright (C) 2008 // Center for Perceptual Systems // University of Texas at Austin // // jsp Fri Jul 18 17:18:40 CDT 2008 #ifndef FRAME_MANAGER_H #define FRAME_MANAGER_H #include "camera_manager.h" #include "connection_manager.h" #include <QImage> #include <QObject> #include <QTimer> #include <cassert> namespace flying_dragon { class FrameManager : public QObject { Q_OBJECT signals: void NewIcon (const QImage *icon); public: FrameManager (CameraManager *camera_manager) : camera_manager_ (camera_manager) , icon_ (QImage (32, 32, QImage::Format_RGB32)) { assert (camera_manager_); } void Start (int msec = 1000) { connect (&timer_, SIGNAL(timeout()), this, SLOT(GetFrame())); timer_.start (msec); } private slots: void GetFrame () { camera_manager_->GetFrame (); QImage frame = QImage ( camera_manager_->ARGBFrame (), static_cast<int> (camera_manager_->FrameWidth ()), static_cast<int> (camera_manager_->FrameHeight ()), QImage::Format_RGB32); icon_ = frame.scaled (32, 32); emit NewIcon (&icon_); } private: CameraManager *camera_manager_; QTimer timer_; QImage icon_; }; } // namespace flying_dragon #endif // FRAME_MANAGER_H
#include "level.h" #include "bitmaps.h" #include "levels.h" void Level::init(uint8_t level) { for (uint8_t row = 0; row < 8; row++) { rock[row] = levelsData[level].rock[row]; soil[row] = levelsData[level].soil[row]; food[row] = levelsData[level].food[row]; poop[row] = levelsData[level].poop[row]; } worm.reset(levelsData[level].head); worm.addPiece(levelsData[level].body); worm.addPiece(levelsData[level].tail); goal = levelsData[level].goal; tutorial = levelsData[level].tutorial; currentLevel = level; } void Level::onInput(Direction dir) { if ((!is.moving) && (!is.falling)) { Cell newHead = worm.getHead(); switch (dir) { case Direction::up: if (newHead.x == 0) { return; }; newHead.x--; break; case Direction::down: if (newHead.x == 7) { return; }; newHead.x++; break; case Direction::left: if (newHead.y == 0) { return; }; newHead.y--; break; case Direction::right: if (newHead.y == 15) { return; }; newHead.y++; break; } updateWorm(newHead); } } void Level::updateWorm(Cell newHead) { if (newHead.intersects(rock)) { return; } bool enlarge = false; bool shrink = false; if (newHead.intersects(food)) { newHead.resetTilemap(food); enlarge = true; } if (newHead.intersects(poop)) { newHead.resetTilemap(poop); shrink = true; } worm.moveTo(newHead, enlarge, shrink); if (newHead.intersects(soil)) { newHead.resetTilemap(soil); } } void Level::update() { uint16_t solids[8]; for (uint8_t row = 0; row < 8; row++) { solids[row] = rock[row] | soil[row] | food[row] | poop[row]; } if (worm.fall(solids)) { updateWorm(worm.getHead()); } if (worm.getHead().intersects(goal)) { currentLevel++; if (currentLevel >= levelsCount) currentLevel = 0; init(currentLevel); } uint16_t stable[8]; for (uint8_t row = 0; row < 8; row++) { stable[row] = rock[row]; } uint16_t oldStable = 0; uint16_t newStable = 1; while (newStable != oldStable) { oldStable = newStable; newStable = 0; for (uint8_t row = 0; row < 8; row++) { for (uint8_t col = 0; col < 16; col++) { if (soil[row] & (1 << (15 - col))) { if ((row < 7 && (stable[row + 1] & (1 << (15 - col)))) || (row > 0 && (stable[row - 1] & (1 << (15 - col)))) || (col < 15 && (stable[row] & (1 << (15 - col + 1)))) || (col > 0 && (stable[row] & (1 << (15 - col - 1)))) || (row == 7 || row == 0 || col == 15 || col == 0) /* Borders are safe. */ ) { stable[row] |= (1 << (15 - col)); newStable++; } } } } } for (uint8_t row = 6; row != 0; row--) { for (uint8_t col = 0; col < 16; col++) { if ((soil[row] & (1 << (15 - col))) && !(stable[row] & (1 << (15 - col)))) { soil[row] &= ~(1 << (15 - col)); soil[row + 1] |= (1 << (15 - col)); } } } if (worm.intersects(soil)) { init(currentLevel); } } void Level::render() { tinyfont.setCursor(2, 2); tinyfont.print(tutorial); for (uint8_t row = 0; row < 8; row++) { for (uint8_t col = 0; col < 16; col++) { if (rock[row] & (1 << (15 - col))) { arduboy.drawBitmap(col * 8, row * 8, bmp_rock, 8, 8); } if (soil[row] & (1 << (15 - col))) { arduboy.drawBitmap(col * 8, row * 8, bmp_soil, 8, 8); } if (food[row] & (1 << (15 - col))) { arduboy.drawBitmap(col * 8, row * 8, bmp_food, 8, 8); } if (poop[row] & (1 << (15 - col))) { arduboy.drawBitmap(col * 8, row * 8, bmp_poop, 8, 8); } } } worm.render(); arduboy.drawLine(0, 0, 127, 0); arduboy.drawLine(127, 0, 127, 63); arduboy.drawLine(127, 63, 0, 63); arduboy.drawLine(0, 63, 0, 0); arduboy.drawBitmap(goal.y * 8, goal.x * 8, bmp_goal, 8, 8); }
// Copyright (c) 2014-2015 Agustin Berge // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #pragma once #include <pika/config.hpp> #include <pika/datastructures/member_pack.hpp> #include <pika/functional/traits/get_function_address.hpp> #include <pika/functional/traits/get_function_annotation.hpp> #include <pika/type_support/decay.hpp> #include <pika/type_support/pack.hpp> #include <cstddef> #include <type_traits> #include <utility> namespace pika::detail { template <typename F, typename... Ts> struct is_deferred_invocable : std::is_invocable<detail::decay_unwrap_t<F>, detail::decay_unwrap_t<Ts>...> { }; template <typename F, typename... Ts> inline constexpr bool is_deferred_invocable_v = is_deferred_invocable<F, Ts...>::value; } // namespace pika::detail namespace pika::util::detail { template <typename F, typename... Ts> struct invoke_deferred_result : std::invoke_result<::pika::detail::decay_unwrap_t<F>, ::pika::detail::decay_unwrap_t<Ts>...> { }; template <typename F, typename... Ts> using invoke_deferred_result_t = typename invoke_deferred_result<F, Ts...>::type; /////////////////////////////////////////////////////////////////////// template <typename F, typename Is, typename... Ts> class deferred; template <typename F, std::size_t... Is, typename... Ts> class deferred<F, index_pack<Is...>, Ts...> { public: template <typename F_, typename... Ts_, typename = std::enable_if_t<std::is_constructible_v<F, F_&&>>> explicit constexpr PIKA_HOST_DEVICE deferred(F_&& f, Ts_&&... vs) : _f(PIKA_FORWARD(F_, f)) , _args(std::piecewise_construct, PIKA_FORWARD(Ts_, vs)...) { } #if !defined(__NVCC__) && !defined(__CUDACC__) deferred(deferred&&) = default; #else constexpr PIKA_HOST_DEVICE deferred(deferred&& other) : _f(PIKA_MOVE(other._f)) , _args(PIKA_MOVE(other._args)) { } #endif deferred(deferred const&) = delete; deferred& operator=(deferred const&) = delete; PIKA_NVCC_PRAGMA_HD_WARNING_DISABLE PIKA_HOST_DEVICE PIKA_FORCEINLINE std::invoke_result_t<F, Ts...> operator()() { return PIKA_INVOKE(PIKA_MOVE(_f), PIKA_MOVE(_args).template get<Is>()...); } constexpr std::size_t get_function_address() const { return pika::detail::get_function_address<F>::call(_f); } constexpr char const* get_function_annotation() const { #if defined(PIKA_HAVE_THREAD_DESCRIPTION) return pika::detail::get_function_annotation<F>::call(_f); #else return nullptr; #endif } #if PIKA_HAVE_ITTNOTIFY != 0 && !defined(PIKA_HAVE_APEX) util::itt::string_handle get_function_annotation_itt() const { # if defined(PIKA_HAVE_THREAD_DESCRIPTION) return pika::detail::get_function_annotation_itt<F>::call(_f); # else static util::itt::string_handle sh("deferred"); return sh; # endif } #endif private: F _f; util::detail::member_pack_for<Ts...> _args; }; template <typename F, typename... Ts> deferred<std::decay_t<F>, util::detail::make_index_pack_t<sizeof...(Ts)>, ::pika::detail::decay_unwrap_t<Ts>...> deferred_call(F&& f, Ts&&... vs) { static_assert(pika::detail::is_deferred_invocable_v<F, Ts...>, "F shall be Callable with decay_t<Ts> arguments"); using result_type = deferred<std::decay_t<F>, util::detail::make_index_pack_t<sizeof...(Ts)>, ::pika::detail::decay_unwrap_t<Ts>...>; return result_type(PIKA_FORWARD(F, f), PIKA_FORWARD(Ts, vs)...); } // nullary functions do not need to be bound again template <typename F> inline std::decay_t<F> deferred_call(F&& f) { static_assert( pika::detail::is_deferred_invocable_v<F>, "F shall be Callable with no arguments"); return PIKA_FORWARD(F, f); } } // namespace pika::util::detail #if defined(PIKA_HAVE_THREAD_DESCRIPTION) /////////////////////////////////////////////////////////////////////////////// namespace pika::detail { /////////////////////////////////////////////////////////////////////////// template <typename F, typename... Ts> struct get_function_address<util::detail::deferred<F, Ts...>> { static constexpr std::size_t call(util::detail::deferred<F, Ts...> const& f) noexcept { return f.get_function_address(); } }; /////////////////////////////////////////////////////////////////////////// template <typename F, typename... Ts> struct get_function_annotation<util::detail::deferred<F, Ts...>> { static constexpr char const* call(util::detail::deferred<F, Ts...> const& f) noexcept { return f.get_function_annotation(); } }; # if PIKA_HAVE_ITTNOTIFY != 0 && !defined(PIKA_HAVE_APEX) template <typename F, typename... Ts> struct get_function_annotation_itt<util::detail::deferred<F, Ts...>> { static util::itt::string_handle call(util::detail::deferred<F, Ts...> const& f) noexcept { return f.get_function_annotation_itt(); } }; # endif } // namespace pika::detail #endif
#pragma once #include <NetworkModel/NetworkModel/IOCP/IOCP.hpp> class IOCP : public NETWORKMODEL::IOCP::CIOCP { public: explicit IOCP(); virtual ~IOCP() override; protected: virtual void Destroy() override; private: NETWORKMODEL::DETAIL::PACKETPROCESSORLIST m_ProcessorList; };
/* * NetCommander.cpp * * Created on: 2 Mar 2011 * Author: two */ #include "NetCommander.h" NetCommander::NetCommander(int port) { // TODO Auto-generated constructor stub m_nPort = port; } int NetCommander::bindSocket(){ /* * Will bind to port and return and errors! muha ha ha ha ha. */ m_ServAddr.sin_family = AF_INET; m_ServAddr.sin_addr.s_addr = htonl(INADDR_ANY); m_ServAddr.sin_port = htons(m_nPort); m_fdSocket = socket(AF_INET, SOCK_STREAM, 0); return bind( m_fdSocket, (struct sockaddr *) &m_ServAddr, sizeof(m_ServAddr) ); } void NetCommander::Setup() { //Setup } void NetCommander::Execute() { /* * This will listen and conenct to the first connection. */ struct sockaddr_in cliAddr; int clientSocket; char* buffer; int buffersize = 1024; int msgSize; buffer = (char*)malloc(buffersize); if ( listen(m_fdSocket, 1) < 0 ) { //printf("ECHOSERV: Error calling listen()\n"); return; } if ( (clientSocket = accept(m_fdSocket, NULL, NULL) ) < 0 ) { //printf("ECHOSERV: Error calling accept()\n"); return; } //std::cout << "Connection From: " << nltoh() << std::endl; while(1){ // msgSize = recv(clientSocket, buffer, buffersize, 0); //Process command std::cout << "msg Size: " << msgSize << std::endl; std::cout << buffer << std::endl; send(clientSocket, buffer, msgSize, 0); //Readline(clientSocket, buffer, buffersize); //Writeline(clientSocket, buffer, strlen(buffer)); } } NetCommander::~NetCommander() { // TODO Auto-generated destructor stub }
#include <iostream> #include <string> #include <time.h> #include "Graph.h" using namespace std; int main() { int option; Graph graph; cout << "Travelling Salesman Problem - MENU"; srand(time(NULL)); do { cout << endl; cout << "==== MENU GLOWNE ===" << endl; cout << "1. Brute Force" << endl; cout << "2. Branch and bound" << endl; cout << "3. Dynamic programming" << endl; cout << "4. Read from file" << endl; cout << "5. Read from user" << endl; cout << "6. Display" << endl; cout << "7. SA" << endl; cout << "8. TS" << endl; cout << "9. Genetic algorithm" << endl; cout << "10. Population algorithm" << endl; cout << "0. Exit" << endl; cout << "Choose option: "; cin >> option; cout << endl; string file_name; switch (option) { case 0: return 0; case 1: graph.brute_force(); break; case 2: break; case 3: graph.dynamic_programming(); break; case 4: //graph.clean(); cout << "Pass file name" << endl; cin >> file_name; graph.read_from_file(file_name); break; case 5: graph.clean(); graph.read_from_user(); break; case 6: graph.print(); break; case 7: graph.sa(); break; case 8: graph.ts(); break; case 9: graph.ga(); break; case 10: graph.pa(); } } while (option != 0); return 0; }
//---------------------------------------------------------------- // VehicleMonster.h // // Copyright 2002-2004 Raven Software //---------------------------------------------------------------- #ifndef __GAME_VEHICLEMONSTER_H__ #define __GAME_VEHICLEMONSTER_H__ #ifndef __GAME_VEHICLE_H__ #include "Vehicle.h" #endif class rvVehicleAI; class rvVehicleMonster : public rvVehicle { friend class rvVehicleAI; public: CLASS_PROTOTYPE( rvVehicleMonster ); rvVehicleMonster ( void ); ~rvVehicleMonster ( void ); void Spawn ( void ); void Think ( void ); void Save ( idSaveGame *savefile ) const; void Restore ( idRestoreGame *savefile ); bool SkipImpulse ( idEntity* ent, int id ); protected: void SetClipModel ( idPhysics & physicsObj ); const idVec3 & GetTargetOrigin ( void ); idVec3 GetVectorToTarget ( void ); const idVec3 & GetEnemyOrigin ( void ); idVec3 GetVectorToEnemy ( void ); void LookAtEntity ( idEntity *ent, float duration ); idEntityPtr<rvVehicleAI> driver; }; #endif // __GAME_VEHICLEMONSTER_H__
// Copyright (c) 2019 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef _Graphic3d_TextureSetBits_HeaderFile #define _Graphic3d_TextureSetBits_HeaderFile #include <Graphic3d_TextureUnit.hxx> //! Standard texture units combination bits. enum Graphic3d_TextureSetBits { Graphic3d_TextureSetBits_NONE = 0, Graphic3d_TextureSetBits_BaseColor = (unsigned int )(1 << int(Graphic3d_TextureUnit_BaseColor)), Graphic3d_TextureSetBits_Emissive = (unsigned int )(1 << int(Graphic3d_TextureUnit_Emissive)), Graphic3d_TextureSetBits_Occlusion = (unsigned int )(1 << int(Graphic3d_TextureUnit_Occlusion)), Graphic3d_TextureSetBits_Normal = (unsigned int )(1 << int(Graphic3d_TextureUnit_Normal)), Graphic3d_TextureSetBits_MetallicRoughness = (unsigned int )(1 << int(Graphic3d_TextureUnit_MetallicRoughness)), }; #endif // _Graphic3d_TextureSetBits_HeaderFile
#include "rightzpiece.h" namespace { std::vector<TetrisCoordinate> buildCoordinates( const TetrisCoordinate& centerCoordinate, int orientation) { switch (orientation) { case 0: return { centerCoordinate, centerCoordinate.plusColumns(1), centerCoordinate.plusRows(1), centerCoordinate.plusRowsAndColumns(1, -1) }; default: return { centerCoordinate, centerCoordinate.plusRows(-1), centerCoordinate.plusColumns(1), centerCoordinate.plusRowsAndColumns(1, 1) }; } } } RightZPiece::RightZPiece( const TetrisCoordinate& centerCoordinate, int orientation) : AbstractTetrisPiece( centerCoordinate, orientation, buildCoordinates(centerCoordinate, orientation)) { } TetrisConstants::TetrisCellColor RightZPiece::color() const { return TetrisConstants::CELL_BLUE; } int RightZPiece::numOrientations() const { return 2; }
namespace myipr { struct node { int const node_id; category_code const category; virtual void accept(Visitor&) const = 0; protected: node(category_code); }; struct expr : node { virtual Type const& type() const = 0; protected: expr(category_code c) : node{c} {} }; struct stmt : expr { virtual Unit_location const& unit_location() const = 0; virtual Source_location const& source_location() const = 0; virtual Sequence<Annotation> const& annotation() const = 0; protected: stmt(category_code c) : expr{c} {} }; struct decl : stmt { enum Specifier {}; virtual Specifier specifiers() const = 0; virtual Linkage const& lang_linkage() const = 0; virtual Name const& name() const = 0; virtual Region const& home_region() const = 0; virtual Region const& lexical_region() const = 0; virtual bool has_initializer() const = 0; virtual expr const& initializer() const = 0; protected: decl(category_code c) : stmt {c} {} }; template<Category_code Cat, typename T = expr> struct Category : T { protected: Category() : T{Cat} {} }; struct var : Category<var_cat, decl> {}; namespace impl { template<typename T> struct node : T { using interface = T; void accept(ipr::Visitor &v) const override { v.visit(*this); }; }; } }
/* * This is a C++ class: CbaseBall * ÃèÊöÇòµÄ»ù±ŸÌØÐÔ * */ #include <iostream> #include "CsampleSpace.hpp" #include <assert.h> using namespace std; int main() { cout << "This is Main process for Oridinary ball Deamo!" <<endl; /* Cgame game(COLOR_BALL); if(!game.create_ball()) cout<<"erro"<<endl; for(int i=0 ;i<game.redBallNum;i++) cout << "ID =" << (game.redBall+i)->ballID << endl; */ CsamplePace spp; char *path = "/home/jun/colorball.data"; spp.get_data_from_txt(path); for ( list <Cgame>::iterator Iter = spp.sampleSpace.begin( ); Iter != spp.sampleSpace.end( ); Iter++ ) cout << " " << Iter->gameID; cout << endl; cout<< "==== end ======"<<endl; return 0; }
// Robert Fus // CSCI 6626 - Object-Orientated Principles & Practices // Program 3: Board // File: Board.hpp // 9/21/2019 #ifndef P2_SQUARE_BOARD_HPP #define P2_SQUARE_BOARD_HPP #include "tools.hpp" #include "Square.hpp" #include "StreamErrors.hpp" #include "GameErrors.hpp" #include "Cluster.hpp" #include "CanView.hpp" #include "Frame.hpp" class Frame; class Board : public CanView { public: Board(int n, ifstream& strm, int nType); ~Board(); Square& sub(int j, int k); ostream& print(ostream& out); ostream& printCluster(ostream&); void makeClusters(); State getSquare(int n) const; void restoreState(Frame* frame); void mark(); private: void getPuzzle(int n, ifstream& strm); ifstream& data; short int left = '-'; void createRow(short j); void createColumn(short k); char getMarkChar(int j, int k) const; string getPossibilityString(int j, int k) const; protected: int N; Square* brd; vector<Cluster*> clusters; }; class TradBoard : public Board { public: TradBoard(int n, ifstream& strm, int nType); ~TradBoard() = default; }; class DiagBoard : public TradBoard { public: DiagBoard(int n, ifstream& strm); ~DiagBoard()= default; private: void DiagBoardOne(); void DiagBoardTwo(); void DiagBoardClust(); }; class SixyBoard : public Board { public: SixyBoard(int n, ifstream& strm); ~SixyBoard() = default; private: void HSixyBoard(); void VSixyBoard(); }; inline ostream& operator<< (ostream& out, Board& b) { return b.print(out); } #endif //P2_SQUARE_BOARD_HPP
/* Unity Capture Copyright (c) 2018 Bernhard Schelling Based on UnityCam https://github.com/mrayy/UnityCam Copyright (c) 2016 MHD Yamen Saraiji This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ #include "shared.inl" #include <chrono> #include <string> #include "IUnityGraphics.h" enum { RET_SUCCESS = 0, RET_WARNING_FRAMESKIP = 1, RET_WARNING_CAPTUREINACTIVE = 2, RET_ERROR_UNSUPPORTEDGRAPHICSDEVICE = 100, RET_ERROR_PARAMETER = 101, RET_ERROR_TOOLARGERESOLUTION = 102, RET_ERROR_TEXTUREFORMAT = 103, RET_ERROR_READTEXTURE = 104, }; #include <d3d11.h> static int g_GraphicsDeviceType = -1; static ID3D11Device* g_D3D11GraphicsDevice = 0; struct UnityCaptureInstance { SharedImageMemory* Sender; int Width, Height; DXGI_FORMAT Format; bool UseDoubleBuffering, AlternativeBuffer; ID3D11Texture2D* Textures[2]; }; extern "C" __declspec(dllexport) UnityCaptureInstance* CaptureCreateInstance(int CapNum) { UnityCaptureInstance* c = new UnityCaptureInstance(); memset(c, 0, sizeof(UnityCaptureInstance)); c->Sender = new SharedImageMemory(CapNum); return c; } extern "C" __declspec(dllexport) void CaptureDeleteInstance(UnityCaptureInstance* c) { if (!c) return; delete c->Sender; if (c->Textures[0]) c->Textures[0]->Release(); if (c->Textures[1]) c->Textures[1]->Release(); delete c; } extern "C" __declspec(dllexport) int CaptureSendTexture(UnityCaptureInstance* c, void* TextureNativePtr, int Timeout, bool UseDoubleBuffering, SharedImageMemory::EResizeMode ResizeMode, SharedImageMemory::EMirrorMode MirrorMode, bool IsLinearColorSpace) { if (!c || !TextureNativePtr) return RET_ERROR_PARAMETER; if (g_GraphicsDeviceType != kUnityGfxRendererD3D11) return RET_ERROR_UNSUPPORTEDGRAPHICSDEVICE; if (!c->Sender->SendIsReady()) return RET_WARNING_CAPTUREINACTIVE; //Get the active D3D11 context ID3D11DeviceContext* ctx = NULL; g_D3D11GraphicsDevice->GetImmediateContext(&ctx); if (!ctx) return RET_ERROR_UNSUPPORTEDGRAPHICSDEVICE; //Read the size and format info from the render texture ID3D11Texture2D* d3dtex = (ID3D11Texture2D*)TextureNativePtr; D3D11_TEXTURE2D_DESC desc = {0}; d3dtex->GetDesc(&desc); if (!desc.Width || !desc.Height) return RET_ERROR_READTEXTURE; if (c->Width != desc.Width || c->Height != desc.Height || c->Format != desc.Format || c->UseDoubleBuffering != UseDoubleBuffering) { //Allocate a Texture2D resource which holds the texture with CPU memory access D3D11_TEXTURE2D_DESC textureDesc; ZeroMemory(&textureDesc, sizeof(textureDesc)); textureDesc.Width = desc.Width; textureDesc.Height = desc.Height; textureDesc.MipLevels = desc.MipLevels; textureDesc.ArraySize = 1; textureDesc.Format = desc.Format; textureDesc.SampleDesc.Count = 1; textureDesc.SampleDesc.Quality = 0; textureDesc.Usage = D3D11_USAGE_STAGING; textureDesc.CPUAccessFlags = D3D11_CPU_ACCESS_READ; textureDesc.MiscFlags = 0; if (c->Textures[0]) c->Textures[0]->Release(); g_D3D11GraphicsDevice->CreateTexture2D(&textureDesc, NULL, &c->Textures[0]); if (c->Textures[1]) c->Textures[1]->Release(); if (UseDoubleBuffering) g_D3D11GraphicsDevice->CreateTexture2D(&textureDesc, NULL, &c->Textures[1]); else c->Textures[1] = NULL; c->Width = desc.Width; c->Height = desc.Height; c->Format = desc.Format; c->UseDoubleBuffering = UseDoubleBuffering; } //Handle double buffer if (c->UseDoubleBuffering) c->AlternativeBuffer ^= 1; ID3D11Texture2D* WriteTexture = c->Textures[c->UseDoubleBuffering && c->AlternativeBuffer ? 1 : 0]; ID3D11Texture2D* ReadTexture = c->Textures[c->UseDoubleBuffering && !c->AlternativeBuffer ? 1 : 0]; //Check texture format SharedImageMemory::EFormat Format; if (desc.Format == DXGI_FORMAT_R8G8B8A8_UNORM || desc.Format == DXGI_FORMAT_R8G8B8A8_UNORM_SRGB || desc.Format == DXGI_FORMAT_R8G8B8A8_UINT || desc.Format == DXGI_FORMAT_R8G8B8A8_TYPELESS) Format = SharedImageMemory::FORMAT_UINT8; else if (desc.Format == DXGI_FORMAT_R16G16B16A16_FLOAT || desc.Format == DXGI_FORMAT_R16G16B16A16_TYPELESS) Format = (IsLinearColorSpace ? SharedImageMemory::FORMAT_FP16_LINEAR : SharedImageMemory::FORMAT_FP16_GAMMA); else return RET_ERROR_TEXTUREFORMAT; //Copy render texture to texture with CPU access and map the image data to RAM ctx->CopyResource(WriteTexture, d3dtex); D3D11_MAPPED_SUBRESOURCE mapResource; if (FAILED(ctx->Map(ReadTexture, 0, D3D11_MAP_READ, 0, &mapResource))) return RET_ERROR_READTEXTURE; //Push the captured data to the direct show filter SharedImageMemory::ESendResult res = c->Sender->Send(desc.Width, desc.Height, mapResource.RowPitch / (Format == SharedImageMemory::FORMAT_UINT8 ? 4 : 8), mapResource.RowPitch * desc.Height, Format, ResizeMode, MirrorMode, Timeout, (const unsigned char*)mapResource.pData); ctx->Unmap(ReadTexture, 0); switch (res) { case SharedImageMemory::SENDRES_TOOLARGE: return RET_ERROR_TOOLARGERESOLUTION; case SharedImageMemory::SENDRES_WARN_FRAMESKIP: return RET_WARNING_FRAMESKIP; } return RET_SUCCESS; } // If exported by a plugin, this function will be called when graphics device is created, destroyed, and before and after it is reset (ie, resolution changed). extern "C" void UNITY_INTERFACE_EXPORT UnitySetGraphicsDevice(void* device, int deviceType, int eventType) { if (eventType == kUnityGfxDeviceEventInitialize || eventType == kUnityGfxDeviceEventAfterReset) { g_GraphicsDeviceType = deviceType; if (deviceType == kUnityGfxRendererD3D11) g_D3D11GraphicsDevice = (ID3D11Device*)device; } else g_GraphicsDeviceType = -1; }
// Siva Sankar Kannan - 267605 - siva.kannan@student.tut.fi #ifndef USERCOMMANDS_H #define USERCOMMANDS_H #include <iostream> #include <string> #include <map> #include <vector> #include "fileread.h" using namespace std; // Functions with no arguments. /*----------------------------------------------------------------------------------------*/ void quit(const map <string, map <string, vector <product>>>& read_map); // exits the program. void chains(const map <string, map <string, vector <product>>>& read_map); // print chain store names in alphabetical order. //void all(); // print the whole database in a presentable manner //void list(); // prints the list of available commands. // Functions with one argument. /*----------------------------------------------------------------------------------------*/ void stores(const map <string, map <string, vector <product>>>& read_map, const string& chain); // prints out the stores of that market chain //void syntax(const string& command); // prints the syntax for the command. bool check_command(const string& command); // checks if the command exists. void cheapest(const map <string, map <string, vector <product>>>& read_map, const string& product_name); // print out the cheapest product price // and the places it is available at that price //void help(const string& command); // shows an example of the command along with // the command syntax. // Function with double arguments. /*----------------------------------------------------------------------------------------*/ void selection(const map <string, map <string, vector <product>>>& read_map, const string& chain, const string& store); // display the products available // in the selected store in // alphabetical order #endif // UI_H
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4; c-file-style:"stroustrup" -*- ** ** Copyright (C) 1995-2011 Opera Software ASA. All rights reserved. ** ** This file is part of the Opera web browser. It may not be distributed ** under any circumstances. */ #ifndef VEGA_MDF_FONT_H #define VEGA_MDF_FONT_H #ifdef MDEFONT_MODULE #if defined(VEGA_SUPPORT) && defined(VEGA_OPPAINTER_SUPPORT) && defined(VEGA_MDEFONT_SUPPORT) #include "modules/libvega/src/oppainter/vegaopfont.h" #include "modules/mdefont/mdefont.h" struct MDE_FONT; class VEGAMDEFont : public VEGAFont { friend class VEGAMDFOpFontManager; public: ~VEGAMDEFont(); static OP_STATUS Create(VEGAMDEFont** font, int font_nr, int size, BOOL bold, BOOL italic); // Functions to be implemented by the font engine virtual UINT32 Ascent(); virtual UINT32 Descent(); virtual UINT32 InternalLeading(); virtual UINT32 Height(); virtual UINT32 Overhang(); virtual UINT32 MaxAdvance(); virtual UINT32 ExtraPadding(); virtual int getBlurRadius(){return m_blurRadius;} #ifdef SVG_SUPPORT virtual OP_STATUS GetOutline(const uni_char* in_str, UINT32 in_len, UINT32& io_str_pos, UINT32 in_last_str_pos, BOOL in_writing_direction_horizontal, SVGNumber& out_advance, SVGPath** out_glyph); #endif // SVG_SUPPORT #ifdef OPFONT_FONT_DATA virtual OP_STATUS GetFontData(UINT8*& font_data, UINT32& data_size); virtual OP_STATUS ReleaseFontData(UINT8* font_data); #endif // OPFONT_FONT_DATA OP_STATUS ProcessString(ProcessedString* processed_string, const uni_char* str, const size_t len, INT32 extra_char_spacing, short word_width, bool use_glyph_indices); const uni_char* getFontName(); virtual BOOL isBold(); virtual BOOL isItalic(); #ifdef VEGA_SUBPIXEL_FONT_BLENDING virtual bool UseSubpixelRendering(); #endif // VEGA_SUBPIXEL_FONT_BLENDING protected: virtual OP_STATUS loadGlyph(VEGAGlyph& glyph, UINT8* data, unsigned int stride, BOOL isIndex = FALSE); virtual void unloadGlyph(VEGAGlyph& glyph); virtual void getGlyphBuffer(VEGAGlyph& glyph, const UINT8*& buffer, unsigned int& stride); private: OP_STATUS blurGlyph(UINT8* src, UINT8* dst, unsigned int srcstride, unsigned int dststride, unsigned int srcw, unsigned int srch); VEGAMDEFont(MDE_FONT* mdefont, INT32 blurRadius); MDE_FONT* m_mdefont; INT32 m_blurRadius; VEGA_FIX* m_blurKernel; VEGA_FIX* m_blurTemp; unsigned int m_blurTempSize; }; # ifdef MDF_FONT_ADVANCE_CACHE inline OP_STATUS VEGAMDEFont::ProcessString(ProcessedString* processed_string, const uni_char* str, const size_t len, INT32 extra_char_spacing, short word_width, bool use_glyph_indices) { OP_ASSERT(processed_string); return MDF_ProcessString(m_mdefont, *processed_string, str, len, extra_char_spacing, word_width, use_glyph_indices ? MDF_PROCESS_FLAG_USE_GLYPH_INDICES : MDF_PROCESS_FLAG_NONE); } # endif // MDF_FONT_ADVANCE_CACHE class VEGAMDFOpFontManager : public VEGAOpFontManager { public: VEGAMDFOpFontManager(); OP_STATUS Construct(); virtual UINT32 CountFonts(); virtual OP_STATUS GetFontInfo(UINT32 fontnr, OpFontInfo* fontinfo); virtual OP_STATUS GetLocalFont(OpWebFontRef& localfont, const uni_char* facename); virtual BOOL SupportsFormat(int format); virtual OP_STATUS AddWebFont(OpWebFontRef& webfont, const uni_char* full_path_of_file); virtual OP_STATUS RemoveWebFont(OpWebFontRef webfont); virtual OP_STATUS GetWebFontInfo(OpWebFontRef webfont, OpFontInfo* fontinfo); virtual VEGAFont* GetVegaFont(OpWebFontRef webfont, UINT32 size, INT32 blur_radius); virtual VEGAFont* GetVegaFont(OpWebFontRef webfont, UINT8 weight, BOOL italic, UINT32 size, INT32 blur_radius); virtual OpFontInfo::FontType GetWebFontType(OpWebFontRef webfont); #ifdef _GLYPHTESTING_SUPPORT_ virtual void UpdateGlyphMask(OpFontInfo *fontinfo); #endif // _GLYPHTESTING_SUPPORT_ virtual OP_STATUS BeginEnumeration(); virtual OP_STATUS EndEnumeration(); #ifdef PERSCRIPT_GENERIC_FONT OP_STATUS SetGenericFonts(const DefaultFonts& fonts, WritingSystem::Script script); virtual const uni_char* GetGenericFontName(GenericFont generic_font, WritingSystem::Script script); #endif // PERSCRIPT_GENERIC_FONT virtual void BeforeStyleInit(class StyleManager* styl_man) {} virtual VEGAFont* GetVegaFont(const uni_char* face, UINT32 size, UINT8 weight, BOOL italic, BOOL must_have_getoutline, INT32 blur_radius); private: #ifdef PERSCRIPT_GENERIC_FONT OP_STATUS InitGenericFont(const DefaultFonts& fonts); #endif VEGAFont* GetVegaFontInt(MDE_FONT* mdefont, UINT32 size, INT32 blur_radius); OP_STATUS GetFontInfoInternal(const MDF_FONTINFO& mdf_info, OpFontInfo* fontinfo); private: #ifdef PERSCRIPT_GENERIC_FONT OpAutoVector<OpString> m_serif_fonts; OpAutoVector<OpString> m_sansserif_fonts; OpAutoVector<OpString> m_cursive_fonts; OpAutoVector<OpString> m_fantasy_fonts; OpAutoVector<OpString> m_monospace_fonts; #endif }; #endif // VEGA_SUPPORT && VEGA_OPPAINTER_SUPPORT && VEGA_MDEFONT_SUPPORT #endif // MDEFONT_MODULE #endif // VEGA_MDF_FONT_H
#pragma once #include "libpytorch.h" th::Tensor thfdcoefs; // calculate the fractdif coeficients to be used next // $$ \omega_{k} = -\omega_{k-1}\frac{d-k+1}{k} $$ // output is allocated inside to a pytorch tensor // on current device void setfracdiffcoefs(float d, int size) { th::NoGradGuard guard; // same as with torch.no_grad(): block auto w = new float[size]; w[0] = 1.; for (int k = 1; k < size; k++) w[k] = -w[k - 1] / k * (d - k + 1); std::reverse(w, w + size); thfdcoefs = th::from_blob(w, { 1, 1, size }, dtype32_option); // to GPU or not thfdcoefs.to(deviceifGPU); } // apply fracdif filter on signal array // FracDifCoefs must be supplied // output is allocated inside int fracdiffapply(float signal[], int size, float output[]) { th::NoGradGuard guard; // same as with torch.no_grad(): block th::Tensor thdata = th::from_blob(signal, { 1, 1, size }, dtype32_option).clone(); // to GPU or not thdata.to(deviceifGPU); th::Tensor thresult = th::conv1d(thdata, thfdcoefs).reshape({ -1 }); // back to CPU thresult = thresult.to(deviceCPU); // double array output auto ptr_data = thresult.data_ptr<float>(); int outsize = thresult.size(0); memcpy(output, ptr_data, sizeof(float) * outsize); return outsize; }
#include "GnMeshPCH.h" #include "GnMeshEBM.h" #include "GnMeshHeader.h" #include "GnSMTextureAniCtrl.h" #include "GnSMPostionAniCtrl.h" #include "GnMeshData.h" #include "GnMesh.h" #include "GnScreenMesh.h" #include "Gn2DMeshObject.h" #include "Gn2DNode.h" #include "Gn2DTextureAniCtlr.h" void GnMeshEBM::StartupEBM() { //GnRegisterStream(Gn2DActor); GnRegisterStream(GnSequence); GnRegisterStream(Gn2DSequence); GnRegisterStream(GnSMTextureAniCtrl); GnRegisterStream(GnMeshData); GnRegisterStream(GnMesh); GnRegisterStream(GnScreenMesh); GnRegisterStream(Gn2DMeshObject); GnRegisterStream(Gn2DNode); GnRegisterStream(Gn2DAVData); GnRegisterStream(Gn2DTextureAni); GnRegisterStream(Gn2DTextureAniCtlr); GnSceneManager::_StartupEBM(); } void GnMeshEBM::ShutdownEBM() { GnSceneManager::_ShutdownEBM(); //GnUnregisterStream(Gn2DActor); GnUnregisterStream(GnSequence); GnUnregisterStream(Gn2DSequence); GnUnregisterStream(GnSMTextureAniCtrl); GnUnregisterStream(GnMeshData); GnUnregisterStream(GnMesh); GnUnregisterStream(GnScreenMesh); GnUnregisterStream(Gn2DMeshObject); GnUnregisterStream(Gn2DNode); GnUnregisterStream(Gn2DAVData); GnUnregisterStream(Gn2DTextureAni); GnUnregisterStream(Gn2DTextureAniCtlr); }
#ifndef SPECEX_SPOT__H #define SPECEX_SPOT__H #include <vector> #include <string> #include <memory> namespace specex { class Spot { public : double wavelength; int fiber; // fiber id, for which the psf is smoothly changing with xy (but need to account for jumps) int fiber_bundle; // id of a list of fibers for which the psf is smoothly changing with xy double xc; // coordinate of center of spot in CCD double yc; // coordinate of center of spot in CCD double flux; double initial_xc; // double initial_yc; // double initial_flux; // double eflux; // double chi2; int status; Spot() { wavelength=0; fiber=0; fiber_bundle=0; xc=0; yc=0; flux=0; chi2=1e20; status=0; //1 for successful fit initial_xc=0; initial_yc=0; initial_flux=0; } void write_list_header(std::ostream& os) const; void write_list_entry(std::ostream& os) const; private : }; typedef std::shared_ptr < specex::Spot > Spot_p; typedef std::weak_ptr < specex::Spot > Spot_wp; } #endif