hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
109
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
int64
1
48.5k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
9dc718db7c954e7c425e24963ed9b7d28279db8d
102,450
cpp
C++
ssrounding.cpp
xmuriqui/muriqui
ff1492c70e297077c9450ef9175e5a80c6627140
[ "MIT" ]
5
2021-12-04T04:42:32.000Z
2022-01-21T13:23:47.000Z
ssrounding.cpp
xmuriqui/muriqui
ff1492c70e297077c9450ef9175e5a80c6627140
[ "MIT" ]
null
null
null
ssrounding.cpp
xmuriqui/muriqui
ff1492c70e297077c9450ef9175e5a80c6627140
[ "MIT" ]
null
null
null
/* * This file implements the structured stochastic rounding heurist. An experimental feasibility heuristic from our heads * * 02, September, 2020 * * Author: Wendel Melo */ #include <cassert> #include <cstdlib> #include <cmath> #include <ctime> #include <iostream> #include <new> #include "MRQ_algClasses.hpp" #include "MRQ_solvers.hpp" #include "MRQ_tools.hpp" #include "MRQ_ssrounding.hpp" #include "MRQ_rens.hpp" using namespace muriqui; using namespace optsolvers; using namespace minlpproblem; #define MRQ_TRY_FIX_FLOW_CONSTRAINTS_AT_1 0 int MRQ_SSRCore::fixFirstVarsAt0( const int nVarsToFix, const int sizea, const int *acols, double *lx, double *ux ) { int nfixed = 0; if( nVarsToFix > 0 ) { for(int j = 0; j < sizea; j++) { const int ind = acols[j]; if( lx[ind] != ux[ind] ) { #if MRQ_DEBUG_MODE assert( lx[ind] == 0.0 ); assert( ux[ind] == 1.0 ); #endif ux[ind] = 0.0; nfixed++; if( nfixed >= nVarsToFix ) break; } } } return nfixed; } int MRQ_SSRCore::fixFirstVarsAt1( const int nVarsToFix, const int sizea, const int *acols, double *lx, double *ux, const bool updateVarBoundsByKnapsackConstrs, const MRQ_MINLPProb *prob, const double *uc, const MIP_BinSumConstrsIndsByClass *binSumConstrInds, const int *reverseIntVars ) { int nfixed = 0; if( nVarsToFix > 0 ) { for(int j = 0; j < sizea; j++) { const int ind = acols[j]; if( lx[ind] != ux[ind] ) { #if MRQ_DEBUG_MODE assert( lx[ind] == 0.0 ); assert( ux[ind] == 1.0 ); #endif //lx[ind] = 1.0; fixVarAt1(ind, lx, ux, updateVarBoundsByKnapsackConstrs, prob, uc, binSumConstrInds, reverseIntVars); nfixed++; if( nfixed >= nVarsToFix ) break; } } } return nfixed; } //Returns number of variables fixed int MRQ_SSRCore::fixRandomVarsAt0(MRQ_Random &random, const int nVarsToFix, const int sizea, const int *acols, double *lx, double *ux, const int *reverseIntVars) { return fixRandomVarsAt01(random, nVarsToFix, sizea, acols, lx, ux, true, false, nullptr, nullptr, nullptr, reverseIntVars); } //Returns number of variables fixed int MRQ_SSRCore::fixRandomVarsAt1(MRQ_Random &random, const int nVarsToFix, const int sizea, const int *acols, double *lx, double *ux, const bool updateVarBoundsByKnapsackConstrs, const MRQ_MINLPProb *prob, const double *uc, const MIP_BinSumConstrsIndsByClass *binSumConstrInds, const int *reverseIntVars ) { return fixRandomVarsAt01(random, nVarsToFix, sizea, acols, lx, ux, false, updateVarBoundsByKnapsackConstrs, prob, uc, binSumConstrInds, reverseIntVars ); } /*if fixAt0 == true,variables will be fixed on 0. Otherwise, variables will be fixed on 1. * Returns number of variables fixed */ int MRQ_SSRCore::fixRandomVarsAt01(MRQ_Random &random, const int nVarsToFix, const int sizea, const int *acols, double *lx, double *ux, const bool fixAt0, const bool updateVarBoundsByKnapsackConstrs, const MRQ_MINLPProb *prob, const double *uc, const MIP_BinSumConstrsIndsByClass *binSumConstrInds, const int *reverseIntVars ) { const int maxRandonsFails = 1000 + nVarsToFix; int nRandomFails = 0; int nFixed = 0; while( nFixed < nVarsToFix ) { const int randValue = random.randInt(0, sizea-1); const int col = acols[ randValue ]; if( lx[col] != ux[col] ) { //we assume binary vars in this constraints #if MRQ_DEBUG_MODE //assert( avalues[randValue] == 1.0 ); assert( lx[col] == 0.0 && ux[col] == 1.0 ); #endif if( fixAt0 ) ux[col] = 0.0; else fixVarAt1(col, lx, ux, updateVarBoundsByKnapsackConstrs, prob, uc, binSumConstrInds, reverseIntVars); nFixed++; } else { nRandomFails++; if( nRandomFails >= maxRandonsFails ) { //so, we give up the random indices, and set by order if( fixAt0 ) nFixed += fixFirstVarsAt0(nVarsToFix-nFixed, sizea, acols, lx, ux); else nFixed += fixFirstVarsAt1(nVarsToFix-nFixed, sizea, acols, lx, ux, updateVarBoundsByKnapsackConstrs, prob, uc, binSumConstrInds, reverseIntVars); #if MRQ_DEBUG_MODE assert( nFixed <= nVarsToFix ); #endif break; } } } return nFixed; } int MRQ_SSRCore:: fixAllNonFixedVarsByStochRounding(const int n, const int nI, const int *intVars, const double *startSol_, const double minimumProbToRound, const int print_level, MRQ_Random &random, int *auxInds, int &nVarsFixed, double *lx, double *ux, MRQ_Preprocessor *preprocessor, const minlpproblem::MIP_ConstraintsByColumnsStorager *ccstorager, MRQ_BoundsUpdaterSolver *boundsUpdaterSolver, double *currlc, double *curruc, const int contRelaxStrategy, optsolvers::OPT_LPSolver *nlpSolver) { nVarsFixed = 0; const int *myIntVars; const bool preproc_quad = true; bool solveContRelax = contRelaxStrategy != MRQ_SSR_CRSSR_NO_CONTINUOUS_RELAXATION; bool solverBoundsInitialized = false; int retCode; if( preprocessor ) { //if we preprocess, maybe is a good idea to run integer variables in a random order MRQ_copyArray(nI, intVars, auxInds); MRQ_shuffleArray(nI, auxInds, random); myIntVars = auxInds; } else { myIntVars = intVars; } for(int i = 0; i < nI; i++) { int ind = myIntVars[i]; //std::cout << "i: " << i << " ind: " << ind << "\n"; if(lx[ind] != ux[ind]) { double startSolInd = startSol_[ind]; if( boundsUpdaterSolver ) { bool infeas; int r = boundsUpdaterSolver->calculateNewVarBounds(n, 1, &ind, lx, ux, true, infeas ); MRQ_IFERRORRETURN(r, MRQ_NLP_SOLVER_ERROR); /*printf("lx[%d]: %0.2f ux[%d]: %0.2f\n", ind, lx[ind], ind, ux[ind]); MRQ_getchar(); */ if(infeas) { if(print_level > 5) std::cout << MRQ_PREPRINT "Bounds updater sover detected infeasbility in stochastic rounding \n"; return MRQ_HEURISTIC_FAIL; } if( lx[ind] == ux[ind] ) continue; } if( solveContRelax ) { //if( !solverBoundsInitialized ) { //int r = nlpSolver->setnVariablesBounds(n, lx, ux); for(int j = 0; j < nI; j++) { const int jind = intVars[j]; int r = nlpSolver->setVariableBounds( jind, lx[jind], ux[jind] ); #if MRQ_DEBUG_MODE MRQ_IFERRORGOTOLABEL(r, retCode, MRQ_NLP_SOLVER_ERROR, termination); #endif } solverBoundsInitialized = true; } nlpSolver->solve(false, true, false, false); /* std::cout << "i: " << i << " nI: " << nI << " Resolvi relaxação continua para arredondamento. feas: " << nlpSolver->feasSol << " obj: " << nlpSolver->objValue << " minimumProbToRound: " << minimumProbToRound << "\n" ; for(int j = 0; j < nI; j++) std::cout << "x_" << intVars[j] << ": " << nlpSolver->sol[ intVars[j] ] << "\t"; */ if( nlpSolver->retCode == OPT_INFEASIBLE_PROBLEM ) { //MRQ_getchar(); retCode = MRQ_HEURISTIC_FAIL; goto termination; } if( nlpSolver->feasSol ) { const double *sol = nlpSolver->sol; const double integerTol = 1e-4; const bool intSol = MRQ_isIntegerSol( nI, intVars, sol, integerTol); if( intSol ) { //we found a feasible solution for(int j = 0; j < nI; j++) { const int jind = intVars[j]; ux[jind] = lx[jind] = round( sol[jind] ); } retCode = 0; goto termination; } startSolInd = sol[ind]; } else { // threating the general integer case: we guarantee some value having 0.5 of integer gap. startSolInd = (lx[ind] + ux[ind])/2.0 ; startSolInd = ((int) startSolInd) + 0.5; } if( contRelaxStrategy == MRQ_SSR_CRSSR_ONLY_BEFORE_STARTING ) { solveContRelax = false; if( nlpSolver->feasSol ) startSol_ = nlpSolver->sol ; } } double prob = startSolInd - floor(startSolInd); //we must let a minimum probability to value be rounded to up and to down if( prob < minimumProbToRound ) prob = minimumProbToRound; else if( prob > 1 - minimumProbToRound ) prob = 1 - minimumProbToRound; if( random.random() < prob ) lx[ind] = ux[ind] = ceil( startSolInd ); else lx[ind] = ux[ind] = floor( startSolInd ); //std::cout<< "\ni: " << i <<" var: " << ind << " prob: " << prob << " fixed: " << lx[ind] << "\n"; if( solveContRelax ) { int r = nlpSolver->setVariableBounds( ind, lx[ind], ux[ind] ); MRQ_IFERRORGOTOLABEL(r, retCode, MRQ_NLP_SOLVER_ERROR, termination); } nVarsFixed++; //this count can be wrong because preprocessor can fix vars also if( preprocessor ) { bool updtVarBounds, updtConstrBounds; int r; //r = preprocessor->preprocess(false, false, INFINITY, lx, ux, updtVarBounds, updtConstrBounds); r = preprocessor->preprocess(1, &ind, *ccstorager, preproc_quad, false, INFINITY, lx, ux, updtVarBounds, updtConstrBounds, currlc, curruc, currlc, curruc ); //MRQ_getchar(); if(r == MIP_INFEASIBILITY) { //we got a failure //we try to round to the other side: if( ux[ind] == ceil( startSolInd ) ) lx[ind] = ux[ind] = floor( startSolInd ); else lx[ind] = ux[ind] = ceil( startSolInd ); r = preprocessor->preprocess(1, &ind, *ccstorager, preproc_quad, false, INFINITY, lx, ux, updtVarBounds, updtConstrBounds, currlc, curruc, currlc, curruc ); if( r == MIP_INFEASIBILITY ) { if(print_level > 5) std::cout << MRQ_PREPRINT "Preprocessor detected infeasbility in stochastic rounding \n"; retCode = MRQ_HEURISTIC_FAIL; goto termination; } } } } } retCode = 0; termination: return retCode; } void MRQ_SSRCore::fixAllNonFixedAt0(const int sizea, const int *acols, double *lx, double *ux) { for(int j = 0; j < sizea; j++) { const int ind = acols[j]; if( lx[ind] != ux[ind] ) { #if MRQ_DEBUG_MODE assert( lx[ind] == 0.0 ); assert( ux[ind] == 1.0 ); #endif ux[ind] = 0.0; } } } //new version where we let some variables free in <= constraints int MRQ_SSRCore::class0_3_4Handle(const int sizea, const int *acols, const double *avalues, const double lc, const double uc, MRQ_Random &random, int *auxInds, double *lx, double *ux, const bool updateVarBoundsByKnapsackConstrs, const MRQ_MINLPProb *prob, const double *ubc, const minlpproblem::MIP_BinSumConstrsIndsByClass *binSumConstrInds, const int *reverseIntVars, MRQ_Preprocessor *preprocessor, const minlpproblem::MIP_ConstraintsByColumnsStorager *ccstorager ) { int *nonFixed = auxInds; int nToFixAt1, nToFixAt0 = 0, nNonFixed = 0; double rhs = uc < MIP_INFINITY ? uc : lc; #if MRQ_DEBUG_MODE assert(sizea > 0); #endif for(int j = 0; j < sizea; j++) { const int col = acols[j]; const double coef = avalues[j]; if( lx[col] == ux[col] ) { if( ux[col] != 0.0 ) rhs -= ux[col] * coef; } else { nonFixed[nNonFixed] = col; nNonFixed++; } } #if MRQ_DEBUG_MODE assert( MRQ_isIntegerDouble(rhs) ); #endif if( rhs < 0.0 && lc <= -MIP_INFINITY ) return MRQ_BAD_PARAMETER_VALUES; //we cannot satisfy this constraint if(lc == uc) { nToFixAt1 = rhs; if(nToFixAt1 == 0) nToFixAt0 = nNonFixed; //if we have nToFixAt1 > 0, we will fix the remanider variables to 0 after fix variables to 1. } else if(lc <= -MIP_INFINITY) { // we have a less than contsraint ... <= b. //nToFix = random.randInt(0, nToFix); #if MRQ_DEBUG_MODE assert(rhs >= 0.0); #endif //now, we let rhs variables free to be set by other constraints. We must fix all remainder variables to 0. So, we do not fix variables to 1, but we allow until rhs variables can be fix in the future letting those variable free. nToFixAt1 = 0; nToFixAt0 = MRQ_max<int>( nNonFixed - rhs, 0 ); } else { #if MRQ_DEBUG_MODE assert( uc >= MIP_INFINITY ); #endif // we have a greater than constraint ... >= b. // here, we do not fix variables to 0 nToFixAt1 = MRQ_max<int>(rhs, 0); } if(nToFixAt1 > 0) { if( nToFixAt1 > nNonFixed ) { //we cannot satisfy this constraint return MRQ_BAD_PARAMETER_VALUES; } else if( nToFixAt1 == nNonFixed ) { int r = fixFirstVarsAt1(nToFixAt1, sizea, acols, lx, ux, updateVarBoundsByKnapsackConstrs, prob, ubc, binSumConstrInds, reverseIntVars); if(r < nToFixAt1) return MRQ_BAD_PARAMETER_VALUES; } else { int r = fixRandomVarsAt1(random, nToFixAt1, nNonFixed, nonFixed, lx, ux, updateVarBoundsByKnapsackConstrs, prob, ubc, binSumConstrInds, reverseIntVars); if(r < nToFixAt1) return MRQ_BAD_PARAMETER_VALUES; //fixing the remainder variables to 0, but we do noc fix class 4, because if constraint is >= b, it is already satisfied. if( uc < MIP_INFINITY ) fixAllNonFixedAt0(sizea, acols, lx, ux); } } else { if( nToFixAt0 > 0 ) { if( nToFixAt0 == nNonFixed ) { fixFirstVarsAt0( nToFixAt0, sizea, acols, lx, ux); //I think we do not have to test returned value here. } else { //we assume nToFixAt0 < nNonFixed fixRandomVarsAt0(random, nToFixAt0, sizea, acols, lx, ux, reverseIntVars); } } } return 0; } //new version where we let some variables free in <= constraints int MRQ_SSRCore::class1_2_5_6Handle( const int sizea, const int *acols, const double *avalues, const double lc, const double uc, MRQ_Random &random, int *auxInds1, int *auxInds2, double *lx, double *ux, const bool updateVarBoundsByKnapsackConstrs, const MRQ_MINLPProb *prob, const double *ubc, const minlpproblem::MIP_BinSumConstrsIndsByClass *binSumConstrInds, const int *reverseIntVars, MRQ_Preprocessor *preprocessor, const minlpproblem::MIP_ConstraintsByColumnsStorager *ccstorager ) { int *pCoefInds = auxInds1, *negCoefInds = auxInds2; int nPCoefInds = 0, nNegCoefInds = 0; int nFixPCoefs, nFixNegCoefs; int nVarsFixed1 = 0, nVarsNegCoef = 0, nVarsPosCoef = 0; double rhs = uc; for(int j = 0; j < sizea; j++) { const int ind = acols[j]; const double val = avalues[j]; if( lx[ind] == ux[ind] ) { if( lx[ind] != 0.0 ) { rhs -= lx[ind] * val ; nVarsFixed1++; } } else { if( val == 1.0 ) { pCoefInds[ nPCoefInds ] = ind; nPCoefInds++; } else if( val == -1.0 ) { negCoefInds[ nNegCoefInds ] = ind; nNegCoefInds++; } #if MRQ_DEBUG_MODE else assert(false); //coeficient should be 1 or -1 #endif } #if MRQ_TRY_FIX_FLOW_CONSTRAINTS_AT_1 if( val > 0.0 ) nVarsPosCoef++; else if ( val < 0.0 ) nVarsNegCoef++; #endif } /*std::cout << "nPCoefInds: " << nPCoefInds << " nNegCoefInds: " << nNegCoefInds << " rhs: " << rhs << "\n"; for(unsigned int w = 0; w < MRQ_max(nPCoefInds, nNegCoefInds) ; w++) { if(w < nPCoefInds) std::cout << "\tpCoefInds["<<w<<"]:" << pCoefInds[w]; if(w < nNegCoefInds) std::cout << "\t\tnegCoefInds["<<w<<"]:" << negCoefInds[w]; std::cout << "\n"; }*/ #if MRQ_DEBUG_MODE assert(MRQ_isIntegerDouble(rhs)); #endif if( rhs == 0.0) { int maxFix = MRQ_min( nNegCoefInds, nPCoefInds ); nFixNegCoefs = random.randInt(0, maxFix); #if MRQ_TRY_FIX_FLOW_CONSTRAINTS_AT_1 if( nVarsPosCoef > 1 && nVarsNegCoef > 1 ) { /*we assume we have a flow constraint: x_{p_1} + x_{p_2} + x_{p_3} + ... + x_{p_k} - x_{n_1} - x_{n_2} - x_{n_3} - ... - x_{n_q} {=, <=} b */ if( nVarsFixed1 > 0 ) { /*since rhs is zero and nVarsFixed1 > 0, we assume constraints is already satisfied */ nFixNegCoefs = 0; } else { if(maxFix > 0) nFixNegCoefs = 1; //since we do not have variables fixed at 1, and that is a flow constraint, we try enforce the flow as 1, since the most pat of flux constraints is just to pass 1 by the flow. } } #endif if( lc == uc ) {//classes 1 and 5 //if( maxFix > 0) nFixNegCoefs = 1; //TODO: THIS IS A TEST REMOVE THAT nFixPCoefs = nFixNegCoefs; } else // we have a less than contsraint ... <= b. So, we can have more variables with coefficient -1 fixed at 1. We define a number possible lower to fix in nFixPCoefs { #if MRQ_DEBUG_MODE assert(lc <= -MIP_INFINITY); #endif //now, we let nFixNegCoefs free to be fixed by other contsraints... nFixPCoefs = nFixNegCoefs; //nFixPCoefs = random.randInt(0, nFixNegCoefs); } } else if( rhs > 0.0 ) { //we have more variables having coeficient -1 fixed at 1. So, we need to fix rhs more variables having coefficient 1 at 1 in equalities constraints. int maxFix = MRQ_min( nNegCoefInds, nPCoefInds - (int) rhs ); if( maxFix < 0 ) { //rhs is positive and we cannot fix any variable here. If constraint is <=, it is ok, constraint is guaranteed be satisfied. if( lc <= -MIP_INFINITY ) return 0; else { #if MRQ_DEBUG_MODE assert( lc == uc ); #endif return MRQ_BAD_PARAMETER_VALUES; //equality constraint. In this case, we cannot satisfy this constraint with current set of variables fiexd } } nFixNegCoefs = random.randInt(0, maxFix); #if MRQ_TRY_FIX_FLOW_CONSTRAINTS_AT_1 if( rhs == 1.0 ) { if(nVarsPosCoef > 1 && nVarsNegCoef > 1) { /*we assume we have a flow constraint: x_{p_1} + x_{p_2} + x_{p_3} + ... + x_{p_k} - x_{n_1} - x_{n_2} - x_{n_3} - ... - x_{n_q} {=, <=} b */ //we do not let more variables having negative coefs being fixed at 1, since the most part of flow constraints has 1 as flow nFixNegCoefs = 0; } } #endif if( lc == uc ) { nFixPCoefs = nFixNegCoefs + rhs; } else { // we have a less than contsraint ... <= b. So, we can have more variables with coefficient -1 fixed at 1. We define a number possible lower to fix in nFixPCoefs #if MRQ_DEBUG_MODE assert(lc <= -MIP_INFINITY); #endif //nFixPCoefs = random.randInt(0, nFixNegCoefs + rhs); //now, we let nFixNegCoefs free to be fixed by other contsraints... nFixPCoefs = nFixNegCoefs + rhs; } } else //rhs < 0 { //we have more variables having coeficient 1 fixed at 1. So, we need to fix rhs more variables having coefficient -1 at 1. int maxFix = MRQ_min( nNegCoefInds + (int) rhs, nPCoefInds ); //remember: here, rhs is negative, so we have to sum instead of subtrate, since -rhs has the number of variables having positive coefs above the numver of variables having negative coefs. if( maxFix < 0 ) return MRQ_BAD_PARAMETER_VALUES; //we cannot satisfy this constraint with currentset of variables fiexd nFixPCoefs = random.randInt(0, maxFix); #if MRQ_TRY_FIX_FLOW_CONSTRAINTS_AT_1 if( rhs == -1.0 ) { if(nVarsPosCoef > 1 && nVarsNegCoef > 1) { /*we assume we have a flow constraint: x_{p_1} + x_{p_2} + x_{p_3} + ... + x_{p_k} - x_{n_1} - x_{n_2} - x_{n_3} - ... - x_{n_q} {=, <=} b */ //we do not let more variables having positive coefs being fixed at 1, since the most part of flow constraints has 1 as flow nFixPCoefs = 0; } } #endif if( lc == uc ) { nFixNegCoefs = nFixPCoefs - rhs; //here, rhs is negative, so we have to sum instead of subtrate } else { // we have a less than contsraint ... <= b. So, we can have more variables with coefficient 1 fixed at 1. We define a number possible lower to fix in nFixPCoefs #if MRQ_DEBUG_MODE assert(lc <= -MIP_INFINITY); assert(nFixPCoefs + rhs <= nNegCoefInds); #endif //nFixNegCoefs = random.randInt(nFixPCoefs - rhs, nNegCoefInds); //remember: here, rhs is negative //now, we let nFixNegCoefs free to be fixed by other constraints... nFixNegCoefs = nFixPCoefs - rhs; //remember: here, rhs is negative } } #if MRQ_DEBUG_MODE assert( nFixPCoefs >= 0 ); assert( nFixNegCoefs >= 0 ); #endif if( nFixPCoefs == nPCoefInds ) { if( lc == uc ) //equality constraints { int r = fixFirstVarsAt1(nFixPCoefs, nPCoefInds, pCoefInds, lx, ux, updateVarBoundsByKnapsackConstrs, prob, ubc, binSumConstrInds, reverseIntVars); if( r < nFixPCoefs) return MRQ_BAD_PARAMETER_VALUES; } else { //at less than constraints ( <= ), we dot not fix variables having positive coefficients at 1 #if MRQ_DEBUG_MODE assert( lc <= -MIP_INFINITY ); #endif } } else { #if MRQ_DEBUG_MODE assert( nFixPCoefs < nPCoefInds ); #endif if( lc == uc ) { int r = fixRandomVarsAt1(random, nFixPCoefs, nPCoefInds, pCoefInds, lx, ux, updateVarBoundsByKnapsackConstrs, prob, ubc, binSumConstrInds, reverseIntVars); if( r < nFixPCoefs ) return MRQ_BAD_PARAMETER_VALUES; fixAllNonFixedAt0(nPCoefInds, pCoefInds, lx, ux); } else { //at less than constraints ( <= ), we dot not fix variables having positive coefficients at 1. We only fix remainder variable to 0 and let nFixPCoefs variables free to be fixed by other constraints. #if MRQ_DEBUG_MODE assert( lc <= -MIP_INFINITY ); #endif int nFixTo0 = nPCoefInds - nFixPCoefs; //remainder coefficients to be fixed on zero. So, at most, nFixPCoefs variables could be fixed at 1 in the future int r = fixRandomVarsAt0( random, nFixTo0, nPCoefInds, pCoefInds, lx, ux, reverseIntVars ); if( r != nFixTo0 ) return MRQ_UNDEFINED_ERROR; } } if( nFixNegCoefs == nNegCoefInds ) { int r = fixFirstVarsAt1(nFixNegCoefs, nNegCoefInds, negCoefInds, lx, ux, updateVarBoundsByKnapsackConstrs, prob, ubc, binSumConstrInds, reverseIntVars); if( r < nFixNegCoefs ) return MRQ_BAD_PARAMETER_VALUES; } else { #if MRQ_DEBUG_MODE assert( nFixNegCoefs < nNegCoefInds ); #endif int r = fixRandomVarsAt1(random, nFixNegCoefs, nNegCoefInds, negCoefInds, lx, ux, updateVarBoundsByKnapsackConstrs, prob, ubc, binSumConstrInds, reverseIntVars); if( r < nFixNegCoefs ) return MRQ_BAD_PARAMETER_VALUES; //now, for <= constraints, we do not fix variables having negative coefficient to 0. We let them free to possibly be fixed by other constraints' handlres if(lc == uc) fixAllNonFixedAt0(nNegCoefInds, negCoefInds, lx, ux); } return 0; } int MRQ_SSRCore::class8Handle(const int sizea, const int *acols, const double *avalues, const double lc, const double uc, MRQ_Random &random, int *auxInds, double *lx, double *ux, const bool updateVarBoundsByKnapsackConstrs, const MRQ_MINLPProb *prob, const double *ubc, const minlpproblem::MIP_BinSumConstrsIndsByClass *binSumConstrInds, const int *reverseIntVars) { /*int *nonFixed = auxInds; int nNonFixed = 0; */ int nRandomFails = 0; const int maxRandonsFails = 1000; double rhs = uc < MIP_INFINITY ? uc : lc; #if MRQ_DEBUG_MODE assert(sizea > 0); #endif for(int j = 0; j < sizea; j++) { const int col = acols[j]; if( lx[col] == ux[col] ) { const double coef = avalues[j]; if( ux[col] != 0.0 ) rhs -= coef * ux[col]; } /*else { nonFixed[nNonFixed] = col; nNonFixed++; }*/ } #if MRQ_DEBUG_MODE assert( MRQ_isIntegerDouble(rhs) ); #endif /*std::cout << "nNonFixed: " << nNonFixed << " rhs: " << rhs << "\n"; for( int w = 0; w < nNonFixed; w++ ) std::cout << "nonFixed["<<w<<"]: " << nonFixed[w] << "\n"; */ while(rhs > 0.0) { const int rind = random.randInt(0, sizea-1); //we must pick indices in the costraint array because we wiill need get the coeficient also const int rcol = acols[rind]; if( lx[rcol] != ux[rcol] ) { #if MRQ_DEBUG_MODE assert(lx[rcol] == 0.0 && ux[rcol] == 1.0); #endif fixVarAt1(rcol, lx, ux, updateVarBoundsByKnapsackConstrs, prob, ubc, binSumConstrInds, reverseIntVars); rhs -= avalues[rind]; //we are fixing at 1 } else { nRandomFails++; if( nRandomFails >= maxRandonsFails ) { //so, we give up the random indices, and set by order for(int j = 0; j < sizea; j++) { const int col = acols[j]; if( lx[col] != ux[col] ) { const double coef = avalues[j]; rhs -= coef; if( rhs <= 0.0) break; } } break; } } } if( rhs <= 0.0 ) return 0; else return MRQ_BAD_PARAMETER_VALUES; //we could not satisfy this constraint } int MRQ_SSRCore::strucStochRounding(const MRQ_MINLPProb &prob, const double *startSol, const double *lx, const double *ux, const double *lc, const double *uc, const int nI, const int *intVars, const int *reverseIntVars, const bool randomOrderToThreatClasses, const bool randomOrderInsideClasses, const double minimumProbToRound, const int print_level, const minlpproblem::MIP_BinSumConstrsIndsByClass &binSumConstrInds, MRQ_Random &random, int *auxInds1, int *auxInds2, unsigned int *auxConstrInds, double *auxConstrs1, double *auxConstrs2, double *outlx, double *outux, int &nVarsFixedByStochRounding, MRQ_SSR_VARIABLES_ADDITIONAL_FIXING_STRATEGY in_vars_additional_fixing_strategy, MRQ_SSR_PREPROCESSING_STRATEGY preprocStrategy, MRQ_Preprocessor *preprocessor, const minlpproblem::MIP_ConstraintsByColumnsStorager *ccstorager, const bool preprocessAfterVarRounding, const int contRelaxStrategy, optsolvers::OPT_LPSolver &nlpSolver, MRQ_BoundsUpdaterSolver *boundsUpdaterSolver) { const int m = prob.m; const int n = prob.n; int r, retCode; int *myAuxInds1 = nullptr, *myAuxInds2 = nullptr; double *myAuxConstrs1 = nullptr, *myAuxConstrs2; double *auxlc, *auxuc; //we use auxlc and auxuc to get results from preprocessor and store the redundant constraints... const int nConstrClassOrder = 8; //Test that: THE BALANCE FLOW CONSTRAINTS SHOULD BE THE LAST! int constrClassOrder[nConstrClassOrder] = {0, 3, 4, 8, 1, 2, 5, 6}; //order to threat classes constraints const MIP_SparseMatrix &A = prob.A; const bool updtByKnapacks = true; const bool preproc_quad = true; nVarsFixedByStochRounding = 0; if(lc == NULL) lc = prob.lc; if(uc == NULL) uc = prob.uc; if(!auxInds1) { MRQ_malloc(myAuxInds1, n); MRQ_IFMEMERRORGOTOLABEL(!myAuxInds1, retCode, termination); auxInds1 = myAuxInds1; } if(!auxInds2) { MRQ_malloc(myAuxInds2, n); MRQ_IFMEMERRORGOTOLABEL(!myAuxInds2, retCode, termination); auxInds2 = myAuxInds2; } if(!auxConstrs1) { MRQ_malloc(myAuxConstrs1, 2*m); MRQ_IFMEMERRORGOTOLABEL(!myAuxConstrs1, retCode, termination); myAuxConstrs2 = &myAuxConstrs1[m]; auxConstrs1 = myAuxConstrs1; auxConstrs2 = myAuxConstrs2; } auxlc = auxConstrs1; auxuc = auxConstrs2; MRQ_copyArray(m, lc, auxlc); MRQ_copyArray(m, uc, auxuc); MRQ_copyArray(n, lx, outlx); MRQ_copyArray(n, ux, outux); if(randomOrderToThreatClasses) { MRQ_shuffleArray(nConstrClassOrder, constrClassOrder, random ); } for(int j = 0; j < nConstrClassOrder; j++ ) { const int classNumber = constrClassOrder[j]; //treating constraints class 0 const unsigned int nClassc = binSumConstrInds.nClasses[ classNumber ]; const unsigned *classcInds = binSumConstrInds.classes[ classNumber ]; if(randomOrderInsideClasses && nClassc > 1) { //we put indices in a random order MRQ_copyArray( nClassc, classcInds, auxConstrInds ); MRQ_shuffleArray(nClassc, auxConstrInds, random); classcInds = auxConstrInds; } for(unsigned int k = 0; k < nClassc; k++) { auto cind = classcInds[k]; if( lc[cind] <= -MIP_INFINITY && uc[cind] >= MIP_INFINITY ) continue; //this constraint is disabled const int* acols = A[cind]; const double* avalues = A(cind); const unsigned int nel = A.getNumberOfElementsAtRow(cind); r = classXHandle(classNumber, nel, acols, avalues, lc[cind], uc[cind], random, auxInds1, auxInds2, outlx, outux, updtByKnapacks, &prob, uc, &binSumConstrInds, reverseIntVars, preprocessor, ccstorager); /*std::cout << "j: " << j << " k: " << k << " class: " << classNumber << " constraint: " << cind; std::cout << " return: " << r << "\n"; for(unsigned int i = 0; i < n; i++) { std::cout << "outlx["<<i<<"]: " << outlx[i] << " outux["<<i<<"]: " << outux[i] << " \t"; if( i%2 == 1 ) std::cout << "\n"; } //MRQ_getchar(); */ if(r != 0) { //we got a failure if(print_level > 10) { std::cout << MRQ_PREPRINT "Failure to satisfy constraint " << cind << "\n"; } retCode = MRQ_HEURISTIC_FAIL; goto termination; } auxlc[cind] = -MIP_INFINITY; //we do not need preprocess more this constraint auxuc[cind] = MIP_INFINITY; //we do not need preprocess more this constraint if(preprocStrategy == MRQ_SSRPS_AFTER_EACH_CONSTRAINT) { /*std::cout << "########################################\nAntes de preprocessar\n"; for(unsigned int i = 0; i < n; i++) { std::cout << "outlx["<<i<<"]: " << outlx[i] << " outux["<<i<<"]: " << outux[i] << " \t"; if( i%2 == 1 ) std::cout << "\n"; } */ #if 1 if(in_vars_additional_fixing_strategy == MRQ_SSR_VAFS_PREPROCESSING ) { bool updtVarBounds, updtConstrBounds; int r; r = preprocessor->preprocess(nel, acols, *ccstorager, preproc_quad, false, INFINITY, outlx, outux, updtVarBounds, updtConstrBounds, auxlc, auxuc, auxlc, auxuc); if(r == MIP_INFEASIBILITY) { //we got a failure if(print_level > 10) std::cout << MRQ_PREPRINT "Preprocessor detect infeasbility after constraint " << cind << " in SSR heuristic\n"; //MRQ_getchar(); retCode = MRQ_HEURISTIC_FAIL; goto termination; } /*if(updtVarBounds) { std::cout << MRQ_PREPRINT "Bounds updated by ssr preprocssing after handling constraint " << cind << "\n"; for(unsigned int i = 0; i < n; i++) { std::cout << "outlx["<<i<<"]: " << outlx[i] << " outux["<<i<<"]: " << outux[i] << " \t"; if( i%2 == 1 ) std::cout << "\n"; } MRQ_getchar(); }*/ } #endif #if 0 else if( in_vars_additional_fixing_strategy == MRQ_SSRVAFS_LINEAR_AUXILIAR_PROBLEM || in_vars_additional_fixing_strategy == MRQ_SSRVAFS_AUXILIAR_PROBLEM ) { bool infeas; r = boundsUpdaterSolver->calculateNewVarBounds(n, nI, intVars, outlx, outux, true, infeas ); MRQ_IFERRORGOTOLABEL(r, retCode, MRQ_NLP_SOLVER_ERROR, termination); if( infeas ) { //we got a failure if(print_level > 5) std::cout << MRQ_PREPRINT "Bounds updater detected infeasbility after constraint class " << classNumber << "\n"; retCode = MRQ_HEURISTIC_FAIL; goto termination; } } #endif /*std::cout << "########################################\nApós preprocessar\n"; for(unsigned int i = 0; i < n; i++) { std::cout << "outlx["<<i<<"]: " << outlx[i] << " outux["<<i<<"]: " << outux[i] << " \t"; if( i%2 == 1 ) std::cout << "\n"; } MRQ_getchar();*/ } } if(nClassc > 0 && preprocStrategy == MRQ_SSRPS_AFTER_EACH_CONSTRAINT_CLASS ) { if( in_vars_additional_fixing_strategy == MRQ_SSR_VAFS_PREPROCESSING ) { bool updtVarBounds, updtConstrBounds; int r; //r = preprocessor->preprocess(false, false, INFINITY, outlx, outux, updtVarBounds, updtConstrBounds); r = preprocessor->preprocess(0, nullptr, *ccstorager, preproc_quad, false, INFINITY, outlx, outux, updtVarBounds, updtConstrBounds, auxlc, auxuc, auxlc, auxuc); //here, we preprocess for all variables if(r == MIP_INFEASIBILITY) { //we got a failure if(print_level > 5) std::cout << MRQ_PREPRINT "Preprocessor detected infeasbility after constraint class " << classNumber << "\n"; retCode = MRQ_HEURISTIC_FAIL; goto termination; } } #if 0 else if( in_vars_additional_fixing_strategy == MRQ_SSRVAFS_LINEAR_AUXILIAR_PROBLEM || in_vars_additional_fixing_strategy == MRQ_SSRVAFS_AUXILIAR_PROBLEM ) { bool infeas; r = boundsUpdaterSolver->calculateNewVarBounds(n, nI, intVars, outlx, outux, true, infeas ); MRQ_IFERRORGOTOLABEL(r, retCode, MRQ_NLP_SOLVER_ERROR, termination); if( infeas ) { //we got a failure if(print_level > 5) std::cout << MRQ_PREPRINT "Bounds updater detected infeasbility after constraint class " << classNumber << "\n"; retCode = MRQ_HEURISTIC_FAIL; goto termination; } } #endif } } { r = fixAllNonFixedVarsByStochRounding(n, nI, intVars, startSol, minimumProbToRound, print_level, random, auxInds1, nVarsFixedByStochRounding, outlx, outux, preprocessAfterVarRounding ? preprocessor : nullptr, ccstorager, boundsUpdaterSolver, auxlc, auxuc, contRelaxStrategy, &nlpSolver); /*std::cout << "after stochastic rounding: \n"; for(unsigned int i = 0; i < n; i++) { std::cout << "outlx["<<i<<"]: " << outlx[i] << " outux["<<i<<"]: " << outux[i] << "\n"; } MRQ_getchar(); */ if( r != 0 ) { if( r != MRQ_HEURISTIC_FAIL ) { MRQ_PRINTERRORNUMBER(r); } retCode = r; goto termination; } } retCode = 0; termination: if(myAuxConstrs1) free(myAuxConstrs1); if(myAuxInds1) free(myAuxInds1); if(myAuxInds2) free(myAuxInds2); return retCode; } /* this function returns number of variable fixed in the variable nVarsFixed. This function tries fix variables in the array candidateVars aplying preprocessing after each fixing. If after fixing some variable, preprocessing fix any additional variables, this function abort the fixing returning the number of variabless fixed in the array candidateVars */ static inline int MRQ_tryFixRandomVariablesWithPreprocessWithouAditionalBoundsFixing(int nCandidateVars, int *candidateVars, int nVarsToFix, double valueToFix, double *lx, double *ux, MRQ_Random &random, MRQ_Preprocessor *preprocessor, const minlpproblem::MIP_ConstraintsByColumnsStorager *ccstorager, int &nVarsFixed, bool &additionalVarFixed) { bool updtVarBounds = false; bool updtConstrBounds; int r, randInd, col; nVarsFixed = 0; additionalVarFixed = false; while( nVarsFixed < nVarsToFix && !updtVarBounds ) { long unsigned int ntries = 0; do { if( ntries > 100lu*nCandidateVars ) { int w; //we tried a lot get a random variable to fix... so, we run in the order for(w = 0; w < nCandidateVars; w++) { col = candidateVars[w]; if( lx[col] != ux[col] ) break; } if( w == nCandidateVars ) { std::cout << "nCandidateVars: " << nCandidateVars << "\n"; for(w = 0; w < nCandidateVars; w++) std::cout << "var: " << candidateVars[w] << " lx: " << lx[candidateVars[w]] << " ux: " << ux[candidateVars[w]] << "\n" ; //if we reah this pointsomethig is wrong. we do not have variables to fix. Some counting is wrong, or maybe preprocessing is not flaging a variable bound changing assert(false); } } randInd = random.randInt(0, nCandidateVars-1); col = candidateVars[randInd]; ntries++; }while( lx[col] == ux[col] ); #if MRQ_DEBUG_MODE assert( lx[col] != ux[col] ); #endif lx[col] = ux[col] = valueToFix; nVarsFixed++; r = preprocessor->preprocess(1, &col, *ccstorager, true, false, INFINITY, lx, ux, updtVarBounds, updtConstrBounds); if(r != 0) { if(r !=MIP_INFEASIBILITY ) { MRQ_PRINTERRORNUMBER(r); } else { //we try fix variable in the other side if( lx[col] == 0.0 ) lx[col] = ux[col] = 1.0; else if( lx[col] == 1.0 ) lx[col] = ux[col] = 0.0; additionalVarFixed = true; return 0; } return MRQ_HEURISTIC_FAIL; } additionalVarFixed = additionalVarFixed || updtVarBounds; } return 0; } /* CLASS 0: x_{p_1} + x_{p_2} + x_{p_3} + ... + x_{p_k} = b * CLASS 3: x_{p_1} + x_{p_2} + x_{p_3} + ... + x_{p_k} <= b * CLASS 4: x_{p_1} + x_{p_2} + x_{p_3} + ... + x_{p_k} >= b * * Here, all variables have coefficient +1 in the constraints */ int MRQ_SSRCore2::class0_3_4Handle(const int sizea, const int *acols, const double *avalues, const double lc, const double uc, MRQ_Random &random, int *auxInds, double *lx, double *ux, const bool updateVarBoundsByKnapsackConstrs, const MRQ_MINLPProb *prob, const double *ubc, const minlpproblem::MIP_BinSumConstrsIndsByClass *binSumConstrInds, const int *reverseIntVars, MRQ_Preprocessor *preprocessor, const minlpproblem::MIP_ConstraintsByColumnsStorager *ccstorager ) { int *nonFixed = auxInds; #if MRQ_DEBUG_MODE assert(sizea > 0); #endif int nToFixAt1, nToFixAt0, nNonFixed; int nfixed0, nfixed1; do { double rhs = uc < MIP_INFINITY ? uc : lc; nToFixAt0 = 0; nToFixAt1 = 0; nNonFixed = 0; nfixed0 = 0; nfixed1 = 0; for(int j = 0; j < sizea; j++) { const int col = acols[j]; const double coef = avalues[j]; if( lx[col] == ux[col] ) { if( ux[col] != 0.0 ) rhs -= ux[col] * coef; } else { nonFixed[nNonFixed] = col; nNonFixed++; } } #if MRQ_DEBUG_MODE assert( MRQ_isIntegerDouble(rhs) ); #endif if( rhs < 0.0 && lc <= -MIP_INFINITY ) return MRQ_BAD_PARAMETER_VALUES; //we cannot satisfy this constraint if(lc == uc) { nToFixAt1 = rhs; if(nToFixAt1 == 0) nToFixAt0 = nNonFixed; //if we have nToFixAt1 > 0, we will fix the remanider variables to 0 after fix variables to 1. } else if(lc <= -MIP_INFINITY) { // we have a less than contsraint ... <= b. //nToFix = random.randInt(0, nToFix); #if MRQ_DEBUG_MODE assert(rhs >= 0.0); #endif //now, we let rhs variables free to be set by other constraints. We must fix all remainder variables to 0. So, we do not fix variables to 1, but we allow until rhs variables can be fix in the future letting those variable free. nToFixAt1 = 0; nToFixAt0 = MRQ_max<int>( nNonFixed - rhs, 0 ); } else { #if MRQ_DEBUG_MODE assert( uc >= MIP_INFINITY ); #endif // we have a greater than constraint ... >= b. // here, we do not fix variables to 0 nToFixAt1 = MRQ_max<int>(rhs, 0); } if(nToFixAt1 > 0) { if( nToFixAt1 > nNonFixed ) { //we cannot satisfy this constraint return MRQ_BAD_PARAMETER_VALUES; } /*else if( nToFixAt1 == nNonFixed ) { int r = fixFirstVarsAt1(nToFixAt1, sizea, acols, lx, ux, updateVarBoundsByKnapsackConstrs, prob, ubc, binSumConstrInds, reverseIntVars); if(r < nToFixAt1) return MRQ_BAD_PARAMETER_VALUES; } else */ { bool additionalVarFixed; //fixing variables to 1 int r = MRQ_tryFixRandomVariablesWithPreprocessWithouAditionalBoundsFixing(nNonFixed, nonFixed, nToFixAt1, 1.0, lx, ux, random, preprocessor, ccstorager, nfixed1, additionalVarFixed ); if( r != 0 ) { if(r != MRQ_HEURISTIC_FAIL) MRQ_PRINTERRORNUMBER(r); return r; } if( nfixed1 < nToFixAt1 || additionalVarFixed ) { continue; } else if( nfixed1 == nToFixAt1 && uc < MIP_INFINITY ) { //we have to fix all remainder nonfixed vars to zero. bool updtVarBounds, updtConstrBounds; fixAllNonFixedAt0(nNonFixed, nonFixed, lx, ux); //fixing the remainder variables to 0, but we do noc fix class 4, because if constraint is >= b, it is already satisfied. int r = preprocessor->preprocess(nNonFixed, nonFixed, *ccstorager, true, false, INFINITY, lx, ux, updtVarBounds, updtConstrBounds); if( r != 0 ) { if( r != MIP_INFEASIBILITY ) { MRQ_PRINTERRORNUMBER(r); return MRQ_UNDEFINED_ERROR; } return MRQ_HEURISTIC_FAIL; } } /*int r = fixRandomVarsAt1(random, nToFixAt1, nNonFixed, nonFixed, lx, ux, updateVarBoundsByKnapsackConstrs, prob, ubc, binSumConstrInds, reverseIntVars); if(r < nToFixAt1) return MRQ_BAD_PARAMETER_VALUES; //fixing the remainder variables to 0, but we do noc fix class 4, because if constraint is >= b, it is already satisfied. if( uc < MIP_INFINITY ) fixAllNonFixedAt0(sizea, acols, lx, ux);*/ } } //else { if( nToFixAt0 > 0 ) { /*if( nToFixAt0 == nNonFixed ) { fixFirstVarsAt0( nToFixAt0, sizea, acols, lx, ux); //I think we do not have to test returned value here. } else */ { bool additionalVarFixed; //fixing variables to 0 int r = MRQ_tryFixRandomVariablesWithPreprocessWithouAditionalBoundsFixing( nNonFixed, nonFixed, nToFixAt0, 0.0, lx, ux, random, preprocessor, ccstorager, nfixed0, additionalVarFixed ); if( r != 0 ) { if(r != MRQ_HEURISTIC_FAIL) MRQ_PRINTERRORNUMBER(r); return r; } if( nfixed0 < nToFixAt0 || additionalVarFixed) continue; //fixRandomVarsAt0(random, nToFixAt0, sizea, acols, lx, ux, reverseIntVars); } } } } while (nfixed0 < nToFixAt0 && nfixed1 < nToFixAt1 ); return 0; } /* * CLASS 1: x_{p_1} + x_{p_2} + ... + x_{p_k} - x_{n_1} = b * CLASS 2: x_{p_1} + x_{p_2} + ... + x_{p_k} - x_{n_1} <= b * CLASS 5: x_{p_1} + x_{p_2} + ... + x_{p_k} - x_{n_1} - x_{n_2} - ... - x_{n_q} = b * CLASS 6: x_{p_1} + x_{p_2} + ... + x_{p_k} - x_{n_1} - x_{n_2} - ... - x_{n_q} <= b */ int MRQ_SSRCore2::class1_2_5_6Handle( const int sizea, const int *acols, const double *avalues, const double lc, const double uc, MRQ_Random &random, int *auxInds1, int *auxInds2, double *lx, double *ux, const bool updateVarBoundsByKnapsackConstrs, const MRQ_MINLPProb *prob, const double *ubc, const minlpproblem::MIP_BinSumConstrsIndsByClass *binSumConstrInds, const int *reverseIntVars, MRQ_Preprocessor *preprocessor, const minlpproblem::MIP_ConstraintsByColumnsStorager *ccstorager ) { int *pCoefInds = auxInds1, *negCoefInds = auxInds2; int nPCoefInds, nNegCoefInds; int nFixPCoefs, nFixNegCoefs; int nVarsFixed1, nVarsNegCoef, nVarsPosCoef; int nPCoefFixed, nNegCoefFixed; double rhs; do { nPCoefInds = 0; nNegCoefInds = 0; nVarsFixed1 = 0; nVarsNegCoef = 0; nVarsPosCoef = 0; nPCoefFixed = 0; nNegCoefFixed = 0; rhs = uc; for(int j = 0; j < sizea; j++) { const int ind = acols[j]; const double val = avalues[j]; if( lx[ind] == ux[ind] ) { if( lx[ind] != 0.0 ) { rhs -= lx[ind] * val ; nVarsFixed1++; } } else { if( val == 1.0 ) { pCoefInds[ nPCoefInds ] = ind; nPCoefInds++; } else if( val == -1.0 ) { negCoefInds[ nNegCoefInds ] = ind; nNegCoefInds++; } #if MRQ_DEBUG_MODE else assert(false); //coeficient should be 1 or -1 #endif } #if MRQ_TRY_FIX_FLOW_CONSTRAINTS_AT_1 if( val > 0.0 ) nVarsPosCoef++; else if ( val < 0.0 ) nVarsNegCoef++; #endif } /*std::cout << "nPCoefInds: " << nPCoefInds << " nNegCoefInds: " << nNegCoefInds << " rhs: " << rhs << "\n"; for(unsigned int w = 0; w < MRQ_max(nPCoefInds, nNegCoefInds) ; w++) { if(w < nPCoefInds) std::cout << "\tpCoefInds["<<w<<"]:" << pCoefInds[w]; if(w < nNegCoefInds) std::cout << "\t\tnegCoefInds["<<w<<"]:" << negCoefInds[w]; std::cout << "\n"; }*/ #if MRQ_DEBUG_MODE assert(MRQ_isIntegerDouble(rhs)); #endif if( rhs == 0.0) { int maxFix = MRQ_min( nNegCoefInds, nPCoefInds ); nFixNegCoefs = random.randInt(0, maxFix); #if MRQ_TRY_FIX_FLOW_CONSTRAINTS_AT_1 if( nVarsPosCoef > 1 && nVarsNegCoef > 1 ) { /*we assume we have a flow constraint: x_{p_1} + x_{p_2} + x_{p_3} + ... + x_{p_k} - x_{n_1} - x_{n_2} - x_{n_3} - ... - x_{n_q} {=, <=} b */ if( nVarsFixed1 > 0 ) { /*since rhs is zero and nVarsFixed1 > 0, we assume constraints is already satisfied */ nFixNegCoefs = 0; } else { if(maxFix > 0) nFixNegCoefs = 1; //since we do not have variables fixed at 1, and that is a flow constraint, we try enforce the flow as 1, since the most pat of flux constraints is just to pass 1 by the flow. } } #endif if( lc == uc ) {//classes 1 and 5 //if( maxFix > 0) nFixNegCoefs = 1; //TODO: THIS IS A TEST REMOVE THAT nFixPCoefs = nFixNegCoefs; } else // we have a less than contsraint ... <= b. So, we can have more variables with coefficient -1 fixed at 1. We define a number possible lower to fix in nFixPCoefs { #if MRQ_DEBUG_MODE assert(lc <= -MIP_INFINITY); #endif //now, we let nFixNegCoefs free to be fixed by other contsraints... nFixPCoefs = nFixNegCoefs; //nFixPCoefs = random.randInt(0, nFixNegCoefs); } } else if( rhs > 0.0 ) { //we have more variables having coeficient -1 fixed at 1. So, we need to fix rhs more variables having coefficient 1 at 1 in equalities constraints. int maxFix = MRQ_min( nNegCoefInds, nPCoefInds - (int) rhs ); if( maxFix < 0 ) { //rhs is positive and we cannot fix any variable here. If constraint is <=, it is ok, constraint is guaranteed be satisfied. if( lc <= -MIP_INFINITY ) return 0; else { #if MRQ_DEBUG_MODE assert( lc == uc ); #endif return MRQ_BAD_PARAMETER_VALUES; //equality constraint. In this case, we cannot satisfy this constraint with current set of variables fiexd } } nFixNegCoefs = random.randInt(0, maxFix); #if MRQ_TRY_FIX_FLOW_CONSTRAINTS_AT_1 if( rhs == 1.0 ) { if(nVarsPosCoef > 1 && nVarsNegCoef > 1) { /*we assume we have a flow constraint: x_{p_1} + x_{p_2} + x_{p_3} + ... + x_{p_k} - x_{n_1} - x_{n_2} - x_{n_3} - ... - x_{n_q} {=, <=} b */ //we do not let more variables having negative coefs being fixed at 1, since the most part of flow constraints has 1 as flow nFixNegCoefs = 0; } } #endif if( lc == uc ) { nFixPCoefs = nFixNegCoefs + rhs; } else { // we have a less than contsraint ... <= b. So, we can have more variables with coefficient -1 fixed at 1. We define a number possible lower to fix in nFixPCoefs #if MRQ_DEBUG_MODE assert(lc <= -MIP_INFINITY); #endif //nFixPCoefs = random.randInt(0, nFixNegCoefs + rhs); //now, we let nFixNegCoefs free to be fixed by other contsraints... nFixPCoefs = nFixNegCoefs + rhs; } } else //rhs < 0 { //we have more variables having coeficient 1 fixed at 1. So, we need to fix rhs more variables having coefficient -1 at 1. int maxFix = MRQ_min( nNegCoefInds + (int) rhs, nPCoefInds ); //remember: here, rhs is negative, so we have to sum instead of subtrate, since -rhs has the number of variables having positive coefs above the numver of variables having negative coefs. if( maxFix < 0 ) return MRQ_BAD_PARAMETER_VALUES; //we cannot satisfy this constraint with currentset of variables fiexd nFixPCoefs = random.randInt(0, maxFix); #if MRQ_TRY_FIX_FLOW_CONSTRAINTS_AT_1 if( rhs == -1.0 ) { if(nVarsPosCoef > 1 && nVarsNegCoef > 1) { /*we assume we have a flow constraint: x_{p_1} + x_{p_2} + x_{p_3} + ... + x_{p_k} - x_{n_1} - x_{n_2} - x_{n_3} - ... - x_{n_q} {=, <=} b */ //we do not let more variables having positive coefs being fixed at 1, since the most part of flow constraints has 1 as flow nFixPCoefs = 0; } } #endif if( lc == uc ) { nFixNegCoefs = nFixPCoefs - rhs; //here, rhs is negative, so we have to sum instead of subtrate } else { // we have a less than constraint ... <= b. So, we can have more variables with coefficient 1 fixed at 1. We define a number possible lower to fix in nFixPCoefs #if MRQ_DEBUG_MODE assert(lc <= -MIP_INFINITY); assert(nFixPCoefs + rhs <= nNegCoefInds); #endif //nFixNegCoefs = random.randInt(nFixPCoefs - rhs, nNegCoefInds); //remember: here, rhs is negative //now, we let nFixNegCoefs free to be fixed by other constraints... nFixNegCoefs = nFixPCoefs - rhs; //remember: here, rhs is negative } } #if MRQ_DEBUG_MODE assert( nFixPCoefs >= 0 ); assert( nFixNegCoefs >= 0 ); #endif /*if( nFixPCoefs == nPCoefInds ) { if( lc == uc ) //equality constraints { int r = fixFirstVarsAt1(nFixPCoefs, nPCoefInds, pCoefInds, lx, ux, updateVarBoundsByKnapsackConstrs, prob, ubc, binSumConstrInds, reverseIntVars); if( r < nFixPCoefs) return MRQ_BAD_PARAMETER_VALUES; } else { //at less than constraints ( <= ), we dot not fix variables having positive coefficients at 1 #if MRQ_DEBUG_MODE assert( lc <= -MIP_INFINITY ); #endif } } else */ { if( lc == uc ) { bool additionalVarFixed; bool updtVarBounds, updtConstrBounds; //fixing variables at 1 int r = MRQ_tryFixRandomVariablesWithPreprocessWithouAditionalBoundsFixing(nPCoefInds, pCoefInds, nFixPCoefs, 1.0, lx, ux, random, preprocessor, ccstorager, nPCoefFixed, additionalVarFixed ); if( r != 0 ) { if(r != MRQ_HEURISTIC_FAIL) MRQ_PRINTERRORNUMBER(r); return r; } if( nPCoefFixed < nFixPCoefs || additionalVarFixed ) continue; /*int r = fixRandomVarsAt1(random, nFixPCoefs, nPCoefInds, pCoefInds, lx, ux, updateVarBoundsByKnapsackConstrs, prob, ubc, binSumConstrInds, reverseIntVars); if( r < nFixPCoefs ) return MRQ_BAD_PARAMETER_VALUES; */ fixAllNonFixedAt0(nPCoefInds, pCoefInds, lx, ux); r = preprocessor->preprocess( nPCoefInds, pCoefInds, *ccstorager, true, false, INFINITY, lx, ux, updtVarBounds, updtConstrBounds ); if( r != 0 ) { if( r != MIP_INFEASIBILITY ) { MRQ_PRINTERRORNUMBER(r); return MRQ_UNDEFINED_ERROR; } return MRQ_HEURISTIC_FAIL; } if(updtVarBounds) continue; } else { //at less than constraints ( <= ), we dot not fix variables having positive coefficients at 1. We only fix remainder variable to 0 and let nFixPCoefs variables free to be fixed by other constraints. #if MRQ_DEBUG_MODE assert( lc <= -MIP_INFINITY ); #endif bool additionalVarFixed; int nfixed; int nFixTo0 = nPCoefInds - nFixPCoefs; //remainder coefficients to be fixed on zero. So, at most, nFixPCoefs variables could be fixed at 1 in the future //fixing variables at 0 int r = MRQ_tryFixRandomVariablesWithPreprocessWithouAditionalBoundsFixing( nPCoefInds, pCoefInds, nFixTo0, 0.0, lx, ux, random, preprocessor, ccstorager, nfixed, additionalVarFixed); if( r != 0 ) { if(r != MRQ_HEURISTIC_FAIL) MRQ_PRINTERRORNUMBER(r); return r; } if( nfixed < nFixTo0 || additionalVarFixed) continue; //if we reach here, we consider we fix variables to 1 to let the do while loop ends... nPCoefFixed = nFixPCoefs; /*int r = fixRandomVarsAt0( random, nFixTo0, nPCoefInds, pCoefInds, lx, ux, reverseIntVars ); if( r != nFixTo0 ) return MRQ_UNDEFINED_ERROR;*/ } } /*if( nFixNegCoefs == nNegCoefInds ) { int r = fixFirstVarsAt1(nFixNegCoefs, nNegCoefInds, negCoefInds, lx, ux, updateVarBoundsByKnapsackConstrs, prob, ubc, binSumConstrInds, reverseIntVars); if( r < nFixNegCoefs ) return MRQ_BAD_PARAMETER_VALUES; } else */ { //fixing vars to 1 bool additionalVarFixed; int r = MRQ_tryFixRandomVariablesWithPreprocessWithouAditionalBoundsFixing( nNegCoefInds, negCoefInds, nFixNegCoefs, 1.0, lx, ux, random, preprocessor, ccstorager, nNegCoefFixed, additionalVarFixed ); if( r != 0 ) { if(r != MRQ_HEURISTIC_FAIL) MRQ_PRINTERRORNUMBER(r); return r; } if( nNegCoefFixed < nFixNegCoefs || additionalVarFixed ) continue; /*int r = fixRandomVarsAt1(random, nFixNegCoefs, nNegCoefInds, negCoefInds, lx, ux, updateVarBoundsByKnapsackConstrs, prob, ubc, binSumConstrInds, reverseIntVars); if( r < nFixNegCoefs ) return MRQ_BAD_PARAMETER_VALUES;*/ //now, for <= constraints, we do not fix variables having negative coefficient to 0. We let them free to possibly be fixed by other constraints' handlres if(lc == uc) { bool updtVarBounds, updtConstrBounds; fixAllNonFixedAt0(nNegCoefInds, negCoefInds, lx, ux); r = preprocessor->preprocess( nNegCoefInds, negCoefInds, *ccstorager, true, false, INFINITY, lx, ux, updtVarBounds, updtConstrBounds ); if( r != 0 ) { if( r != MIP_INFEASIBILITY ) { MRQ_PRINTERRORNUMBER(r); return MRQ_UNDEFINED_ERROR; } return MRQ_HEURISTIC_FAIL; } } } }while( nPCoefFixed < nFixPCoefs || nNegCoefFixed < nFixNegCoefs ); return 0; } MRQ_SSRoundingExecutor::MRQ_SSRoundingExecutor() { resetParameters(); resetOutput(); auxConstrInds = nullptr; auxVarInds1 = nullptr; auxVarInds2 = nullptr; auxVarValues1 = nullptr; roundedLx = nullptr; roundedUx = nullptr; auxConstrs1 = nullptr; auxConstrs2 = nullptr; boundsUpdaterSolver = nullptr; subProb = nullptr; } MRQ_SSRoundingExecutor::~MRQ_SSRoundingExecutor() { deallocate(); } void MRQ_SSRoundingExecutor::resetOutput() { //out_alg = nullptr; out_vars_fixed_by_stoch_rounding = false; out_number_of_main_iterations = 0; out_number_of_improvments = 0; out_local_search_alg_code = MRQ_UNDEFINED_ALG; out_cpu_time_at_nlp_integer_fixed_sol = NAN; out_obj_at_nlp_integer_fixed_sol = NAN; } void MRQ_SSRoundingExecutor::resetParameters() { //in_preprocess_after_handling_constraints = false; in_preprocess_after_variable_rounding = true; in_random_order_to_threat_classes = false; in_random_order_to_threat_constraints_in_each_class = true; in_solve_minlp_as_local_search = true; in_stop_local_search_solving_on_first_improvment_solution = false; in_max_number_of_main_iterations = 1000; in_max_number_of_improvments = 10; in_print_level = 4; in_milp_solver = MRQ_getDefaultMILPSolverCode(); in_nlp_solver = MRQ_getDefaultNLPSolverCode(); in_neighborhood_strategy = MRQ_SNS_LOCAL_BRANCHING_NEIGHBORHOOD; in_preprocessing_point_strategy = MRQ_SSRPS_AFTER_EACH_CONSTRAINT; in_additional_vars_fixing_strategy = MRQ_SSR_VAFS_PREPROCESSING; in_rounding_var_bounds_updt_strategy = MRQ_SSR_VBUS_NO_UPDATING; in_cont_relax_strategy_to_stoch_rounding = MRQ_SSR_CRSSR_ONLY_BEFORE_STARTING; in_absolute_feasibility_tol = 1e-3; in_relative_feasibility_tol = 1e-6; in_integer_tol = 1e-3; in_integer_neighborhood_factor = 0.3; in_continuous_neighborhood_factor = 0.1; in_relative_convergence_tol_to_local_search = 0.2; in_max_cpu_time = INFINITY; in_max_time = INFINITY; in_min_probability_to_round = 0.5; in_local_search_algorithm = MRQ_UNDEFINED_ALG; in_milp_solver_params = nullptr; in_nlp_solver_params = nullptr; in_alg_params = nullptr; in_alg = nullptr; } int MRQ_SSRoundingExecutor::allocateAuxMemory(const unsigned int n, const unsigned int m, const unsigned int sizeAuxConstrIndex) { MRQ_malloc(auxConstrInds, sizeAuxConstrIndex); MRQ_malloc(auxVarInds1, n); MRQ_malloc(auxVarInds2, n); MRQ_malloc(auxVarValues1, n); MRQ_malloc(roundedLx, n); MRQ_malloc(roundedUx, n); MRQ_malloc(auxConstrs1, m); MRQ_malloc(auxConstrs2, m); MRQ_IFMEMERRORRETURN( !auxConstrInds || !auxVarInds1 || !auxVarInds2 || !auxVarValues1 || !roundedLx || !roundedUx || !auxConstrs1 || !auxConstrs2 ); return 0; } void MRQ_SSRoundingExecutor::deallocate() { MRQ_secFree(auxConstrInds); MRQ_secFree(auxVarInds1); MRQ_secFree(auxVarInds2); MRQ_secFree(auxVarValues1); MRQ_secFree(roundedLx); MRQ_secFree(roundedUx); MRQ_secFree(auxConstrs1); MRQ_secFree(auxConstrs2); MRQ_secDelete(subProb); MRQ_secDelete(boundsUpdaterSolver); } int MRQ_SSRoundingExecutor::run(const MRQ_MINLPProb &prob, const minlpproblem::MIP_BinSumConstrsIndsByClass &binSumConstrInds, const minlpproblem::MIP_ConstraintsByColumnsStorager *ccstorager, MRQ_Random &random, optsolvers::OPT_LPSolver &nlpSolver, unsigned int thnumber, unsigned int nThreads, double insideSolverMaxTime, const double *lc, const double *uc, double *lx, double *ux, const int nI, const int *intVars, const int *reverseIntVars, const int nC, const int *contVars, const double *relaxSol, int &algReturnCode, double &outObj, double *outSol) { const double timeStart = MRQ_getTime(); const clock_t clockStart = clock(); const int n = prob.n; const int m = prob.m; int r, myRetCode = MRQ_UNDEFINED_ERROR; int nVarsFixedByStochRounding; unsigned int j; MRQ_SSRCore2 core; MRQ_Algorithm *pAlg, *myAlg = nullptr; MRQ_Preprocessor *preprocessor = nullptr; algReturnCode = MRQ_UNDEFINED_ERROR; outObj = INFINITY; resetOutput(); if( in_additional_vars_fixing_strategy == MRQ_SSR_VAFS_PREPROCESSING ) { if(in_preprocessing_point_strategy != MRQ_SSRPS_NO_PREPROCESSING) { preprocessor = new (std::nothrow) MRQ_Preprocessor(&prob); MRQ_IFMEMERRORGOTOLABEL(!preprocessor, myRetCode, termination); r = preprocessor->allocateMemory(n, m); MRQ_IFMEMERRORGOTOLABEL(r, myRetCode, termination); } } if( in_rounding_var_bounds_updt_strategy == MRQ_SSR_VBUS_LINEAR_AUXILIAR_PROBLEM || in_rounding_var_bounds_updt_strategy == MRQ_SSR_VBUS_AUXILIAR_PROBLEM ) { if( !boundsUpdaterSolver ) { const bool setLinearProblem = in_rounding_var_bounds_updt_strategy == MRQ_SSR_VBUS_LINEAR_AUXILIAR_PROBLEM; const int solverCode = in_rounding_var_bounds_updt_strategy == MRQ_SSR_VBUS_LINEAR_AUXILIAR_PROBLEM || prob.getProblemType() == MIP_PT_MILP ? (int) in_milp_solver : (int) in_nlp_solver ; boundsUpdaterSolver = new (std::nothrow) MRQ_BoundsUpdaterSolver(); MRQ_IFMEMERRORGOTOLABEL( !boundsUpdaterSolver, myRetCode, termination ); //NOTE: by now, we are not recieving solver parameter to set r = boundsUpdaterSolver->buildProblem( solverCode, prob, setLinearProblem, false, NAN, thnumber, 1, NULL, NULL, NULL, false ); MRQ_IFMEMERRORGOTOLABEL(r, myRetCode, termination); } } if(!auxVarInds1) { unsigned int maxSizeMClasses = 0; for(unsigned int k = 0; k < binSumConstrInds.nBinSumConstrClasses; k++) { if( binSumConstrInds.nClasses[k] > maxSizeMClasses ) maxSizeMClasses = binSumConstrInds.nClasses[k]; } r = allocateAuxMemory(n, m, maxSizeMClasses); MRQ_IFERRORGOTOLABEL(r, myRetCode, r, termination); } for(out_number_of_main_iterations = 1; out_number_of_main_iterations <= in_max_number_of_main_iterations; out_number_of_main_iterations++) { //printf("iter: %u\n", out_number_of_main_iterations); int ret = core.strucStochRounding(prob, relaxSol, lx, ux, lc, uc, nI, intVars, reverseIntVars, in_random_order_to_threat_classes, in_random_order_to_threat_constraints_in_each_class, in_min_probability_to_round, in_print_level, binSumConstrInds, random, auxVarInds1, auxVarInds2, auxConstrInds, auxConstrs1, auxConstrs2, roundedLx, roundedUx, nVarsFixedByStochRounding, in_additional_vars_fixing_strategy, in_preprocessing_point_strategy, preprocessor, ccstorager, in_preprocess_after_variable_rounding, in_cont_relax_strategy_to_stoch_rounding, nlpSolver, boundsUpdaterSolver ); if( in_max_cpu_time < INFINITY ) { const double cpuTime = MRQ_calcCPUTtime(clockStart, clock()); if( cpuTime >= in_max_cpu_time) { myRetCode = MRQ_HEURISTIC_FAIL; break; } } if( in_max_time < INFINITY ) { const double wallTime = MRQ_getTime() - timeStart; if( wallTime >= in_max_time ) { myRetCode = MRQ_HEURISTIC_FAIL; //we return heuristic fail because here we do not have feasible solution break; } } if( ret == MRQ_HEURISTIC_FAIL ) //if we get heuristic failure, we just try again in another iteration. continue; MRQ_IFERRORGOTOLABEL(ret, myRetCode, MRQ_HEURISTIC_FAIL, termination); out_vars_fixed_by_stoch_rounding = nVarsFixedByStochRounding > 0; if( nC == 0) { bool feasSol = false; prob.isFeasibleToConstraints(thnumber, roundedLx, true, nullptr, in_absolute_feasibility_tol, in_relative_feasibility_tol, feasSol); if( feasSol ) { r = prob.objEval(thnumber, prob.hasNLConstraints(), roundedLx, outObj); MRQ_IFERRORGOTOLABEL(r, myRetCode, MRQ_CALLBACK_FUNCTION_ERROR, termination); out_obj_at_nlp_integer_fixed_sol = outObj; MRQ_copyArray(n, (const double *) roundedLx, outSol); out_cpu_time_at_nlp_integer_fixed_sol = MRQ_calcCPUTtime(clockStart); break; } } else { //MRQ_getchar(); r = MRQ_fixIntVarsOnSolByList(nI, intVars, roundedLx, nlpSolver); MRQ_IFERRORGOTOLABEL(r, myRetCode, r, termination); //do not store contsraints value and dual solution because we can use ssr inside a branch-and-bound procedure, and so, we would have to backup the values from continuous relaxation nlpSolver.solve(false, true, false, false); r = MRQ_unfixIntegerVarsByList(nI, intVars, lx, ux, nlpSolver); //std::cout << "nlp local search - ret: " << nlpSolver.retCode << " obj: " << nlpSolver.objValue << "\n"; /*for(unsigned int w = 0; w < n; w++) std::cout << "\tsol["<<w<<"]: " << nlpSolver.sol[w] << "\n"; */ //MRQ_getchar(); if( nlpSolver.feasSol ) { MRQ_copyArray( n, nlpSolver.sol, outSol ); outObj = nlpSolver.objValue; out_obj_at_nlp_integer_fixed_sol = nlpSolver.objValue; out_cpu_time_at_nlp_integer_fixed_sol = MRQ_calcCPUTtime(clockStart); break; } } } if( !std::isinf(outObj) && in_solve_minlp_as_local_search ) { const int neighConstrIndex = prob.m; double *auxValues = auxVarValues1; double *nlx = roundedLx, *nux = roundedUx; if(in_neighborhood_strategy == MRQ_SNS_ORIGINAL) { MRQ_PRINTERRORMSG( MRQ_STRPARINTVALUE(MRQ_SNS_ORIGINAL) " cannot be used like neighborhood strategy in SSR. Changing to " MRQ_STRPARINTVALUE(MRQ_SNS_LOCAL_BRANCHING_NEIGHBORHOOD) "!"); in_neighborhood_strategy = MRQ_SNS_LOCAL_BRANCHING_NEIGHBORHOOD; } if(!subProb) { const int nnewConstraints = (in_neighborhood_strategy == MRQ_SNS_EUCLIDEAN_NEIGHBORHOOD && nI < n) ? 2 : 1; //to set the continuous euclidean neighborhood, we must have at least one continuous var subProb = new (std::nothrow) MRQ_MINLPProb; MRQ_IFMEMERRORGOTOLABEL(!subProb, myRetCode, termination); r = subProb->copyProblemFrom(prob); MRQ_IFERRORGOTOLABEL(r, myRetCode, MRQ_MEMORY_ERROR, termination); r = subProb->addConstraints(nnewConstraints); MRQ_IFERRORGOTOLABEL(r, myRetCode, MRQ_MEMORY_ERROR, termination); } if(in_alg) { pAlg = in_alg; } else { if(in_local_search_algorithm == MRQ_SSR_HEUR_ALG) in_local_search_algorithm = MRQ_UNDEFINED_ALG; //we would have a infinite recursion... myAlg = MRQ_newAlgorithm(in_local_search_algorithm, subProb->getNumberOfNLEqualityConstraints() ); MRQ_IFMEMERRORGOTOLABEL(!myAlg, myRetCode, termination); if(in_alg_params) myAlg->setParameters(*in_alg_params); pAlg = myAlg; } out_local_search_alg_code = pAlg->out_algorithm; pAlg->in_number_of_threads = nThreads; pAlg->in_print_level = in_print_level - 2; pAlg->in_milp_solver = in_milp_solver; pAlg->in_nlp_solver = in_nlp_solver; if(in_print_level > 2) printf( MRQ_PREPRINT "best objective: %0.10lf\n", outObj); pAlg->in_relative_convergence_tol = in_relative_convergence_tol_to_local_search; for(j = 0; j < in_max_number_of_improvments; j++) { r = MRQ_setSubproblemNeighborhood(lx, ux, outSol, nI, intVars, nC, contVars, in_neighborhood_strategy, in_integer_neighborhood_factor, in_continuous_neighborhood_factor, in_integer_tol, neighConstrIndex, auxVarInds1, auxValues, subProb, nlx, nux); MRQ_IFERRORGOTOLABEL(r, myRetCode, r, termination); if( !std::isinf(in_max_cpu_time) ) pAlg->in_max_cpu_time = in_max_cpu_time - MRQ_calcCPUTtime(clockStart); if( !std::isinf(in_max_time) ) pAlg->in_max_time = in_max_time - (MRQ_getTime() - timeStart); pAlg->in_upper_bound = outObj; if( pAlg->isLinearApproximationAlgorithm() ) { MRQ_LinearApproxAlgorithm *pLA = (MRQ_LinearApproxAlgorithm*) pAlg; pLA->deletePointsToLinearisation(); r = pLA->addPointsToLinearisation(1, n, &outSol); MRQ_IFERRORGOTOLABEL(r, myRetCode, r, termination); } else { r = pAlg->setInitialSolution(n, outSol); MRQ_IFERRORGOTOLABEL(r, myRetCode, r, termination); } if( in_stop_local_search_solving_on_first_improvment_solution ) { //here, we imposing a solution at least 10% better to stop on first improvment pAlg->in_lower_bound = outObj - 0.1*MRQ_abs(outObj) - 0.1; } /*std::cout << "in_integer_neighborhood_factor: " << in_integer_neighborhood_factor << " n diff: " << (int) ceil(in_integer_neighborhood_factor*n) << "\n"; for(int w = 0; w < n; w++) std:: cout << "sol["<<w<<"]: " << outSol[w] << "\n"; subProb->print();*/ MRQ_insideRun(pAlg, *subProb, in_milp_solver_params, in_nlp_solver_params, thnumber, insideSolverMaxTime, nlx, nux); if(in_print_level > 2) printf( MRQ_PREPRINT "Local search subproblem %d - return code: %d best objective: %0.10lf\n", j+1, pAlg->out_return_code, pAlg->out_best_obj); if(pAlg->out_feasible_solution && pAlg->out_best_obj < outObj) { outObj = pAlg->out_best_obj; MRQ_copyArray(n, pAlg->out_best_sol, outSol ); out_number_of_improvments++; } else { break; } if( !std::isinf(in_max_cpu_time) ) { if( MRQ_calcCPUTtime(clockStart) >= in_max_cpu_time ) { //algReturnCode = MRQ_MAX_TIME_STOP; //this will be overwritten, but ok... break; } } if( !std::isinf(in_max_time) ) { if( MRQ_getTime() - timeStart >= in_max_time ) break; } } } termination: if( std::isinf(outObj) ) algReturnCode = MRQ_HEURISTIC_FAIL; else algReturnCode = MRQ_HEURISTIC_SUCCESS; if(myAlg) delete myAlg; if(preprocessor) delete preprocessor; return myRetCode; } MRQ_StructuredStochasticRounding:: MRQ_StructuredStochasticRounding() { resetParameters(); resetOutput(); out_algorithm = MRQ_SSR_HEUR_ALG; } MRQ_StructuredStochasticRounding:: ~MRQ_StructuredStochasticRounding() { } int MRQ_StructuredStochasticRounding:: checkAlgorithmRequirements( MRQ_MINLPProb &prob, const double *lx, const double *ux) { if( !MRQ_isBinarieProblemAtRegion(prob, lx, ux) ) { if( in_print_level > 4 ) MRQ_PRINTERRORMSG("We are sorry, but Sturctured Stochastic Rounding only can be applyed to Binary Problems."); return MRQ_ALG_NOT_APPLICABLE; } return 0; } void MRQ_StructuredStochasticRounding:: printParameters( std::ostream &out) const { char strValue[100]; MRQ_Heuristic::printParameters(out); out << "\n" //MRQ_STRFFATT(in_preprocess_after_handling_constraints) << "\n" MRQ_STRFFATT(in_preprocess_after_variable_rounding) << "\n" MRQ_STRFFATT(in_random_order_to_threat_classes) << "\n" MRQ_STRFFATT(in_random_order_to_threat_constraints_in_each_class) << "\n" MRQ_STRFFATT(in_solve_continuous_relaxation) << "\n" MRQ_STRFFATT(in_solve_minlp_as_local_search) << "\n" MRQ_STRFFATT(in_stop_local_search_solving_on_first_improvment_solution) << "\n" MRQ_STRFFATT(in_max_number_of_improvments) << "\n" MRQ_STRFFATT(in_integer_neighborhood_factor) << "\n" MRQ_STRFFATT(in_continuous_neighborhood_factor) << "\n" MRQ_STRFFATT(in_relative_convergence_tol_to_local_search) << "\n" MRQ_STRFFATT(in_min_probability_to_round) << "\n" ; MRQ_enumToStr(in_neighborhood_strategy, strValue); out << MRQ_STRPARINTVALUE(in_neighborhood_strategy) " " << strValue << "\n"; MRQ_enumToStr(in_preprocessing_point_strategy, strValue); out << MRQ_STRPARINTVALUE(in_preprocessing_point_strategy) " " << strValue << "\n"; MRQ_enumToStr(in_additional_vars_fixing_strategy, strValue); out << MRQ_STRPARINTVALUE(in_additional_vars_fixing_strategy) " " << strValue << "\n"; MRQ_enumToStr(in_rounding_var_bounds_updt_strategy, strValue); out << MRQ_STRPARINTVALUE(in_rounding_var_bounds_updt_strategy) " " << strValue << "\n"; MRQ_enumToStr(in_cont_relax_strategy_to_stoch_rounding, strValue); out << MRQ_STRPARINTVALUE(in_cont_relax_strategy_to_stoch_rounding) " " << strValue << "\n"; MRQ_enumToStr(in_local_search_algorithm, strValue); out << MRQ_STRPARINTVALUE(in_local_search_algorithm) " " << strValue << "\n"; } void MRQ_StructuredStochasticRounding:: resetParameters() { MRQ_Heuristic::resetParameters(); //in_preprocess_after_handling_constraints = false; in_preprocess_after_variable_rounding = true; in_random_order_to_threat_classes = false; in_random_order_to_threat_constraints_in_each_class = true; in_solve_continuous_relaxation = true; in_solve_minlp_as_local_search = true; in_stop_local_search_solving_on_first_improvment_solution = false; in_max_iterations = 1000; in_max_number_of_improvments = 10; in_print_level = 4; in_milp_solver = MRQ_getDefaultMILPSolverCode(); in_nlp_solver = MRQ_getDefaultNLPSolverCode(); in_neighborhood_strategy = MRQ_SNS_LOCAL_BRANCHING_NEIGHBORHOOD; in_preprocessing_point_strategy = MRQ_SSRPS_AFTER_EACH_CONSTRAINT; in_additional_vars_fixing_strategy = MRQ_SSR_VAFS_PREPROCESSING; in_rounding_var_bounds_updt_strategy = MRQ_SSR_VBUS_NO_UPDATING; in_cont_relax_strategy_to_stoch_rounding = MRQ_SSR_CRSSR_ONLY_BEFORE_STARTING; in_integer_tol = 1e-3; in_integer_neighborhood_factor = 0.3; in_continuous_neighborhood_factor = 0.1; in_relative_convergence_tol_to_local_search = 0.2; in_min_probability_to_round = 0.1; in_max_cpu_time = INFINITY; in_max_time = INFINITY; in_local_search_algorithm = MRQ_UNDEFINED_ALG; in_alg_params = nullptr; in_alg = nullptr; } void MRQ_StructuredStochasticRounding:: resetOutput() { out_vars_fixed_by_stoch_rounding = false; out_cpu_time_at_nlp_integer_fixed_sol = NAN; out_obj_at_nlp_integer_fixed_sol = NAN; out_obj_at_first_sol = NAN; out_local_search_alg_code = MRQ_UNDEFINED_ALG; MRQ_Heuristic::resetOutput(); } int MRQ_StructuredStochasticRounding:: setIntegerParameter( const char *name, const long int value) { int ret = MRQ_Heuristic::setIntegerParameter(name, value); if( ret == 0 ) return 0; ret = 0; if( MRQ_setAtt<bool>( MRQ_STRATT(in_preprocess_after_variable_rounding), name, value ) == 0 ); else if( MRQ_setAtt<bool>( MRQ_STRATT(in_random_order_to_threat_classes), name, value ) == 0 ); else if( MRQ_setAtt<bool>( MRQ_STRATT(in_random_order_to_threat_constraints_in_each_class), name, value ) == 0 ); else if( MRQ_setAtt<bool>( MRQ_STRATT(in_solve_continuous_relaxation), name, value ) == 0 ); else if( MRQ_setAtt<bool>( MRQ_STRATT(in_solve_minlp_as_local_search), name, value ) == 0 ); else if( MRQ_setAtt<bool>( MRQ_STRATT(in_stop_local_search_solving_on_first_improvment_solution), name, value ) == 0 ); else if( MRQ_setAtt<unsigned int>( MRQ_STRATT(in_max_number_of_improvments), name, value) == 0 ); else ret = MRQ_NAME_ERROR; return ret; } int MRQ_StructuredStochasticRounding:: setDoubleParameter( const char *name, const double value) { int ret = MRQ_Algorithm::setDoubleParameter(name, value); if( ret == 0 ) return 0; ret = 0; if( MRQ_setAtt( MRQ_STRATT(in_integer_neighborhood_factor), name, value ) == 0 ); else if( MRQ_setAtt( MRQ_STRATT(in_continuous_neighborhood_factor), name, value ) == 0 ); else if( MRQ_setAtt( MRQ_STRATT(in_relative_convergence_tol_to_local_search), name, value ) == 0 ); else if( MRQ_setAtt( MRQ_STRATT(in_min_probability_to_round), name, value ) == 0 ); else ret = MRQ_NAME_ERROR; return ret; } int MRQ_StructuredStochasticRounding:: setStringParameter( const char *name, const char *value) { int r; int ret = MRQ_Algorithm::setStringParameter(name, value); if( ret == 0 ) return 0; ret = 0; if( (r = MRQ_setStrAtt( MRQ_STRATT(in_neighborhood_strategy), name, value ) ) >= 0 ) ret = r == 0 ? 0 : MRQ_VALUE_ERROR; else if( (r = MRQ_setStrAtt( MRQ_STRATT(in_preprocessing_point_strategy), name, value ) ) >= 0 ) ret = r == 0 ? 0 : MRQ_VALUE_ERROR; else if( (r = MRQ_setStrAtt( MRQ_STRATT(in_additional_vars_fixing_strategy), name, value ) ) >= 0 ) ret = r == 0 ? 0 : MRQ_VALUE_ERROR; else if( (r = MRQ_setStrAtt( MRQ_STRATT(in_rounding_var_bounds_updt_strategy), name, value ) ) >= 0 ) ret = r == 0 ? 0 : MRQ_VALUE_ERROR; else if( (r = MRQ_setStrAtt( MRQ_STRATT(in_cont_relax_strategy_to_stoch_rounding), name, value ) ) >= 0 ) ret = r == 0 ? 0 : MRQ_VALUE_ERROR; else if( (r = MRQ_setStrAtt( MRQ_STRATT(in_local_search_algorithm), name, value ) ) >= 0 ) ret = r == 0 ? 0 : MRQ_VALUE_ERROR; else ret = MRQ_NAME_ERROR; return ret; } int MRQ_StructuredStochasticRounding:: run(MRQ_MINLPProb &prob, MRQ_GeneralSolverParams* milpSolverParams, MRQ_GeneralSolverParams* nlpSolverParams ) { return run(prob, milpSolverParams, nlpSolverParams, nullptr); } int MRQ_StructuredStochasticRounding:: run(MRQ_MINLPProb &prob, MRQ_GeneralSolverParams* milpSolverParams, MRQ_GeneralSolverParams* nlpSolverParams, MRQ_GeneralSolverParams* algParams) { const double timeStart = MRQ_getTime(); const clock_t clockStart = clock(); const int n = prob.n; //const int m = prob.m; int nI, nC; double outObj; double *plc = NULL, *puc = NULL; // do not free puc, because we take advantage the malloc of plc. We just put NULL because we should sinalize if there is new bounds or no to other procedures like MRQ_BinSumConstrs::calculateIndices when we do not preprocess... int *intVars = NULL, *reverseIntVars = NULL; int *contVars; double *constrValues = NULL; double *initSol = NULL; int r, algRetCod; unsigned int nthreads; //double NLPCpuTime, NLPClockTime; MIP_BinSumConstrsIndsByClass binSumConstrs; MRQ_SSRoundingExecutor ssrExecutor; MRQ_Random random; double *lx = run_by_inside ? nlx : prob.lx; double *ux = run_by_inside ? nux : prob.ux; OPT_LPSolver *nlp = NULL; MRQ_Preprocessor *preprocessor = NULL; minlpproblem::MIP_ConstraintsByColumnsStorager ccstorager; nthreads = in_number_of_threads <= 0 ? MRQ_getNumCores() : in_number_of_threads; if( in_preprocess_lin_constr || in_preprocess_quad_constrs || in_preprocess_obj_function ) { preprocessor = new (std::nothrow) MRQ_Preprocessor(&prob); MRQ_IFMEMERRORGOTOLABEL(!preprocessor, out_return_code, termination); } { auto ret = algorithmInitialization( nthreads, true, milpSolverParams, nlpSolverParams, prob, lx, ux, preprocessor, NULL, &plc, &puc ); if( ret != MRQ_SUCCESS) { if( in_print_level > 0 ) { if( ret == MRQ_ALG_NOT_APPLICABLE && (out_algorithm == MRQ_IGMA1_ALG || out_algorithm == MRQ_IGMA2_ALG) ) MRQ_PRINTERRORMSG("Error: Integrality Gap Minimization Algorithm only hands binary problems"); else MRQ_PRINTERRORNUMBER(ret); } out_return_code = ret; goto termination; } } if(in_print_level > 1) { std::cout << "\n"; MRQ_PRINTMSG("Starting Structured Stochastic Rounding Heuristic\n\n"); printSubSolvers(true, true, false); } MRQ_malloc(intVars, n); MRQ_malloc(reverseIntVars, n); MRQ_malloc(initSol, n); if( prob.getProblemType() == minlpproblem::MIP_PT_MILP ) { //we try use a linear solver here nlp = OPT_newLPSolver(in_milp_solver); } if(!nlp) nlp = OPT_newNLPSolver(in_nlp_solver); //we got a failure to instantiate a linear solver. So, we try instantiate a NLP solver. MRQ_IFMEMERRORGOTOLABEL(!intVars || !reverseIntVars || !initSol || !nlp, out_return_code, termination ); nI = prob.getIntegerIndices(intVars); contVars = &intVars[nI]; nC = prob.getContinuousIndices(contVars); #if MRQ_DEBUG_MODE assert(n == nI + nC); #endif prob.getReverseIntegerIndices(reverseIntVars); r = MRQ_setNLPRelaxProb( prob, lx, ux, plc, puc, nlp, true, true, true, false, thnumber, in_set_special_nlp_solver_params, nlpSolverParams, in_number_of_threads, in_max_cpu_time, in_max_time, 0, 0 ); MRQ_IFERRORGOTOLABEL(r, out_return_code, (MRQ_RETURN_CODE) r, termination); if( in_solve_continuous_relaxation ) { if(in_print_level > 2) std::cout << MRQ_PREPRINT "Solving NLP relaxation\n"; nlp->solve( false ); if(in_print_level > 4) { std::cout << MRQ_PREPRINT "Continuous relaxation. ret: " << nlp->retCode << " feasSol: " << nlp->feasSol << "\n"; if( nlp->feasSol ) { for(int i = 0; i < n; i++) std::cout << "x[" << i << "]: " << nlp->sol[i] << "\n"; } } if( nlp->retCode == OPT_OPTIMAL_SOLUTION || nlp->feasSol ) { const double minGap = 0.1; if( nlp->retCode == OPT_OPTIMAL_SOLUTION ) { out_obj_opt_at_continuous_relax = nlp->objValue; zl = MRQ_max(zl, nlp->objValue); if( zl > zu ) { if(in_print_level > 0) MRQ_PRINTMSG("Solution of NLP relaxation is greater than upper_bound "); out_return_code = MRQ_INFEASIBLE_PROBLEM; goto termination; } } if( MRQ_isIntegerSol(nI,intVars, nlp->sol, in_integer_tol) ) { out_cpu_time_to_first_feas_sol = MRQ_calcCPUTtime( clockStart ); out_clock_time_to_first_feas_sol = MRQ_getTime() - timeStart; out_obj_at_first_sol = nlp->objValue; if( in_print_level > 1 ) MRQ_PRINTMSG("An integer optimal solution was gotten as NLP relaxation solution\n"); tryUpdateBestSolution( thnumber, n, nlp->sol, nlp->objValue, 0, clockStart, timeStart, in_store_history_solutions ); if( nlp->retCode == OPT_OPTIMAL_SOLUTION ) { out_return_code = MRQ_OPTIMAL_SOLUTION; } else { out_return_code = MRQ_HEURISTIC_SUCCESS; } goto termination; /*std::cout << "UNCOMENT THE GOTO ABOVE!\n"; MRQ_getchar();*/ } MRQ_copyArray(n, nlp->sol, initSol); for(int i = 0; i < nI; i++) { const auto ind = intVars[i]; if( MRQ_gap(initSol[ind]) < minGap ) { if(initSol[ind] - lx[ind] < minGap) { initSol[ind] += minGap; } else { #if MRQ_DEBUG_MODE assert( ux[ind] - initSol[ind] < minGap ); #endif initSol[ind] -= minGap; } } } } else if( nlp->retCode == OPT_INFEASIBLE_PROBLEM ) { if( in_print_level > 1 ) MRQ_PRINTMSG("Infeasible NLP relaxation\n"); out_return_code = MRQ_INFEASIBLE_PROBLEM; goto termination; } } else { if( in_use_initial_solution && xInit ) { MRQ_copyArray(n, xInit, initSol); } else { //we just put 0.5 as a gap to get the rounding probability //note, we do not set initial values for continue variables (we do not need this) for(int k = 0; k < nI; k++) { const int i = intVars[k]; initSol[i] = lx[i] == ux[i] ? lx[i] : lx[i] + 0.5; } } } random.setSeed( &in_seed_to_random_numbers ); r = binSumConstrs.calculateIndices(prob, lx, ux, plc, puc, reverseIntVars, true, true, true); MRQ_IFERRORGOTOLABEL(r, out_return_code, MRQ_UNDEFINED_ERROR, termination ); r = ccstorager.storageConstraintsByColumns(prob, in_preprocess_quad_constrs); MRQ_IFERRORGOTOLABEL(r, out_return_code, MRQ_UNDEFINED_ERROR, termination ); //ssrExecutor.in_preprocess_after_handling_constraints = in_preprocess_after_handling_constraints; ssrExecutor.in_preprocess_after_variable_rounding = in_preprocess_after_variable_rounding; ssrExecutor.in_random_order_to_threat_classes = in_random_order_to_threat_classes; ssrExecutor.in_random_order_to_threat_constraints_in_each_class = in_random_order_to_threat_constraints_in_each_class; ssrExecutor.in_solve_minlp_as_local_search = in_solve_minlp_as_local_search; ssrExecutor.in_stop_local_search_solving_on_first_improvment_solution = in_stop_local_search_solving_on_first_improvment_solution; ssrExecutor.in_max_number_of_main_iterations = in_max_iterations; ssrExecutor.in_max_number_of_improvments = in_max_number_of_improvments; ssrExecutor.in_print_level = in_print_level; ssrExecutor.in_nlp_solver = in_nlp_solver; ssrExecutor.in_milp_solver = in_milp_solver; ssrExecutor.in_neighborhood_strategy = in_neighborhood_strategy; ssrExecutor.in_preprocessing_point_strategy = in_preprocessing_point_strategy; ssrExecutor.in_additional_vars_fixing_strategy = in_additional_vars_fixing_strategy; ssrExecutor.in_rounding_var_bounds_updt_strategy = in_rounding_var_bounds_updt_strategy; ssrExecutor.in_cont_relax_strategy_to_stoch_rounding = in_cont_relax_strategy_to_stoch_rounding; ssrExecutor.in_absolute_feasibility_tol = in_absolute_feasibility_tol; ssrExecutor.in_relative_feasibility_tol = in_relative_feasibility_tol; ssrExecutor.in_integer_tol = in_integer_tol; ssrExecutor.in_integer_neighborhood_factor = in_integer_neighborhood_factor; ssrExecutor.in_continuous_neighborhood_factor = in_continuous_neighborhood_factor; ssrExecutor.in_relative_convergence_tol_to_local_search = in_relative_convergence_tol_to_local_search; ssrExecutor.in_max_cpu_time = in_max_cpu_time; ssrExecutor.in_max_time = in_max_time; ssrExecutor.in_min_probability_to_round = in_min_probability_to_round; ssrExecutor.in_local_search_algorithm = in_local_search_algorithm; ssrExecutor.in_milp_solver_params = milpSolverParams; ssrExecutor.in_nlp_solver_params = nlpSolverParams; ssrExecutor.in_alg_params = algParams; ssrExecutor.in_alg = in_alg; r = ssrExecutor.run(prob, binSumConstrs, &ccstorager, random, *nlp, thnumber, nthreads, INFINITY, plc, puc, lx, ux, nI, intVars, reverseIntVars, nC, contVars, initSol , algRetCod, outObj, out_best_sol ); if( !std::isinf(outObj) ) { #if MRQ_DEBUG_MODE assert(algRetCod == MRQ_HEURISTIC_SUCCESS); #endif out_best_obj = outObj; out_return_code = MRQ_HEURISTIC_SUCCESS; out_obj_at_nlp_integer_fixed_sol = ssrExecutor.out_obj_at_nlp_integer_fixed_sol; out_obj_at_first_sol = out_obj_at_nlp_integer_fixed_sol; out_cpu_time_at_nlp_integer_fixed_sol = ssrExecutor.out_cpu_time_at_nlp_integer_fixed_sol; out_cpu_time_to_first_feas_sol = out_cpu_time_at_nlp_integer_fixed_sol; } else { #if MRQ_DEBUG_MODE assert(algRetCod == MRQ_HEURISTIC_FAIL); #endif out_return_code = MRQ_HEURISTIC_FAIL; } out_vars_fixed_by_stoch_rounding = ssrExecutor.out_vars_fixed_by_stoch_rounding; out_local_search_alg_code = ssrExecutor.out_local_search_alg_code; out_number_of_iterations = ssrExecutor.out_number_of_main_iterations; termination: if(plc) free(plc); if(intVars) free(intVars); if(reverseIntVars) free(reverseIntVars); if(initSol) free(initSol); if(constrValues) free(constrValues); if(nlp) delete nlp; if(preprocessor) delete preprocessor; algorithmFinalization(nthreads, prob, lx, ux); out_number_of_threads = nthreads; out_cpu_time = ( (double) (clock() - clockStart) )/CLOCKS_PER_SEC; out_clock_time = MRQ_getTime() - timeStart; if(in_print_level > 1) std::cout << MRQ_PREPRINT "cpu time: " << out_cpu_time << "\n"; return out_return_code; }
36.394316
980
0.552025
xmuriqui
9dd509d3b1d33d66d013245fae5c7fb30442a6ed
14,191
cpp
C++
Common/network/src/worker_thread.cpp
deeptexas-ai/test
f06b798d18f2d53c9206df41406d02647004ce84
[ "MIT" ]
4
2021-10-20T09:18:06.000Z
2022-03-27T05:08:26.000Z
Common/network/src/worker_thread.cpp
deeptexas-ai/test
f06b798d18f2d53c9206df41406d02647004ce84
[ "MIT" ]
1
2021-11-05T03:28:41.000Z
2021-11-06T07:48:05.000Z
Common/network/src/worker_thread.cpp
deeptexas-ai/test
f06b798d18f2d53c9206df41406d02647004ce84
[ "MIT" ]
1
2021-12-13T16:04:22.000Z
2021-12-13T16:04:22.000Z
#include "worker_thread.h" #include "socket_manager.h" namespace network { CWorkerThread::CWorkerThread() { m_nNotifyReadFd = INVALID_SOCKET; m_nNotifySendFd = INVALID_SOCKET; m_base = NULL; } CWorkerThread::~CWorkerThread() { if(INVALID_SOCKET != m_nNotifyReadFd) { close(m_nNotifyReadFd); m_nNotifyReadFd = INVALID_SOCKET; } if(INVALID_SOCKET != m_nNotifySendFd) { close(m_nNotifySendFd); m_nNotifySendFd = INVALID_SOCKET; } if(NULL != m_base) { event_del(&m_oNotifyEvent); event_base_free(m_base); m_base = NULL; } } bool CWorkerThread::Init() { int fds[2]; if (pipe(fds)) { fprintf(stderr, "Worker thread init| Can't create notify pipe\n"); LOG(LT_ERROR, "Worker thread init| Can't create notify pipe"); exit(1); } m_nNotifyReadFd = fds[0]; m_nNotifySendFd = fds[1]; m_base = event_base_new(); if(NULL == m_base) { LOG(LT_ERROR, "Worker thread init| new base failed"); exit(2); } event_set(&m_oNotifyEvent, m_nNotifyReadFd, EV_READ | EV_PERSIST, NotifyCallback, (void*)this); event_base_set(m_base, &m_oNotifyEvent); if (-1 == event_add(&m_oNotifyEvent, 0)) { fprintf(stderr, "Worker thread init| Can't monitor libevent notify pipe\n"); LOG(LT_ERROR, "Worker thread init| Can't monitor libevent notify pipe"); exit(3); } pthread_t tid = 0; if(0 != pthread_create( &tid, NULL, &CWorkerThread::Run, (void*)this)) { LOG(LT_ERROR, "Worker thread init| create failed"); return false; } return true; } void* CWorkerThread::Run(void *arg) { pthread_detach( pthread_self() ); LOG(LT_INFO, "Worker thread run ...| pid=%llu", pthread_self()); CWorkerThread *pThis = (CWorkerThread *)arg; pThis->m_nThreadID = pthread_self(); event_base_dispatch(pThis->m_base); LOG(LT_INFO, "Worker thread Exit ...| pid=%llu", pthread_self()); _exit(0); return NULL; } bool CWorkerThread::PushNotifyFd(const CNotifyFd &oNotify) { { Lock lock(&m_oLock); m_lstNotifyFd.push_back(oNotify); } char buf[2] = {'c', '0'}; if (1 != write(m_nNotifySendFd, buf, 1)) { LOG(LT_ERROR, "Worker thread| push notify fd failed| thread_id=%llu| type=%d| fd=%d| local_addr=%s:%d| remote_addr=%s:%d", m_nThreadID, oNotify.m_nType, oNotify.m_nFd, oNotify.m_szLocalAddr, oNotify.m_nLocalPort, oNotify.m_szRemoteAddr, oNotify.m_nRemotePort ); _exit(0); } return true; } void CWorkerThread::NotifyCallback(evutil_socket_t fd, short events, void *arg) { char buf[2]; CWorkerThread *pThis = (CWorkerThread *)arg; CNotifyFd oNotify; //fd就是m_nNotifyReadFd if (1 != read(fd, buf, 1)) { LOG(LT_ERROR, "Worker notify callback| read pipe failed| thread_id=%llu| msg=%s", pThis->m_nThreadID, strerror(errno)); _exit(0); } //从队列取出通知消息 { Lock lock(&pThis->m_oLock); if(pThis->m_lstNotifyFd.empty()) { LOG(LT_ERROR, "Worker notify callback| queue is empty| thread_id=%llu", pThis->m_nThreadID); return; } oNotify = pThis->m_lstNotifyFd.front(); pThis->m_lstNotifyFd.pop_front(); } switch (oNotify.m_nType) { case NOTIFY_TYPE_ACCEPT: pThis->DoAccept(oNotify); break; case NOTIFY_TYPE_CONNECT: pThis->DoConnect(oNotify); break; case NOTIFY_TYPE_LISTEN: pThis->DoListen(oNotify); break; case NOTIFY_TYPE_CLOSE: pThis->DoClose(oNotify); break; default: LOG(LT_ERROR, "Worker notify callback| unknow type| thread_id=%llu| type=%d| fd=%d| local_addr=%s:%d| remote_addr=%s:%d", pThis->m_nThreadID, oNotify.m_nType, oNotify.m_nFd, oNotify.m_szLocalAddr, oNotify.m_nLocalPort, oNotify.m_szRemoteAddr, oNotify.m_nRemotePort); break; } } //Connect的通知处理 void CWorkerThread::DoAccept(const CNotifyFd &oNotify) { TcpSocket *pSocket = CSocketManager::Instance()->GetTcpSocket(oNotify.m_nFd); if(NULL == pSocket) { LOG(LT_ERROR, "Worker thread| do accept notify get socket failed| thread_id=%llu| type=%d| fd=%d| local_addr=%s:%d| remote_addr=%s:%d", m_nThreadID, oNotify.m_nType, oNotify.m_nFd, oNotify.m_szLocalAddr, oNotify.m_nLocalPort, oNotify.m_szRemoteAddr, oNotify.m_nRemotePort ); close(oNotify.m_nFd); return; } if(Socket::SOCK_STATE_INIT != pSocket->GetState()) { LOG(LT_WARN, "Worker thread| do accept socket not release| fd=%d| state=%d| unique_id=0x%x| addr_msg=%s", oNotify.m_nFd, pSocket->GetState(), pSocket->GetUniqueID(), pSocket->GetAddrMsg().c_str() ); pSocket->Release(false); } //设置参数 SERVERKEY sk(CSocketManager::Instance()->GetLocalServerID()); pSocket->SetUniqueID(CSocketManager::Instance()->GetSequence()); pSocket->SetTransID(sk.nType, sk.nInstID); pSocket->SetIsAcceptFd(true); pSocket->SetSocketHandler(NULL, oNotify.m_bBinaryMode); std::string sMsg; bool bSuccess = false; if(!pSocket->Create(oNotify.m_nFd)) { sMsg = "create failed"; } else if (!pSocket->SetKeepAlive(true)) // 保持连接 { sMsg = "keep alive failed"; } else if (!pSocket->SetNoDelay(true)) { sMsg = "no delay failed"; } else if (!pSocket->SetNonBlock()) { sMsg = "not block failed"; } else if (!pSocket->SetLinger()) { sMsg = "linger failed"; } else if (!pSocket->SetReuse(true)) { sMsg = "reuse failed"; } else { pSocket->SetLocalAddr(oNotify.m_szLocalAddr, oNotify.m_nLocalPort); pSocket->SetRemoteAddr(oNotify.m_szRemoteAddr, oNotify.m_nRemotePort); pSocket->SetState(Socket::SOCK_STATE::SOCK_STATE_NORMAL); if(!pSocket->RegisterEvent(m_base)) { sMsg = "register failed"; } else { bSuccess = true; } } //注册事件 if(bSuccess) { LOG(LT_INFO_TRANS, pSocket->NextTransID().c_str(), "Worker thread| do accept notify succ| thread_id=%llu| type=%d| fd=%d| unique_id=0x%x| local_addr=%s:%d| remote_addr=%s:%d| binary_mode=%d", m_nThreadID, oNotify.m_nType, oNotify.m_nFd, pSocket->GetUniqueID(), oNotify.m_szLocalAddr, oNotify.m_nLocalPort, oNotify.m_szRemoteAddr, oNotify.m_nRemotePort, oNotify.m_bBinaryMode ); } else { LOG(LT_ERROR, "Worker thread| do accept failed| thread_id=%llu| type=%d| fd=%d| local_addr=%s:%d| remote_addr=%s:%d| msg=%s", m_nThreadID, oNotify.m_nType, oNotify.m_nFd, oNotify.m_szLocalAddr, oNotify.m_nLocalPort, oNotify.m_szRemoteAddr, oNotify.m_nRemotePort, sMsg.c_str() ); pSocket->Release(true); } } //Connect的通知处理 void CWorkerThread::DoConnect(const CNotifyFd &oNotify) { TcpSocket *pSocket = CSocketManager::Instance()->GetTcpSocket(oNotify.m_nFd); if(NULL == pSocket) { LOG(LT_ERROR, "Worker thread| do connect notify get socket failed| thread_id=%llu| type=%d| fd=%d| local_addr=%s:%d| remote_addr=%s:%d", m_nThreadID, oNotify.m_nType, oNotify.m_nFd, oNotify.m_szLocalAddr, oNotify.m_nLocalPort, oNotify.m_szRemoteAddr, oNotify.m_nRemotePort ); close(oNotify.m_nFd); return; } if(Socket::SOCK_STATE_INIT != pSocket->GetState()) { LOG(LT_WARN, "Worker thread| do connect socket not release| fd=%d| state=%d| unique_id=0x%x| addr_msg=%s", oNotify.m_nFd, pSocket->GetState(), pSocket->GetUniqueID(), pSocket->GetAddrMsg().c_str() ); pSocket->Release(false); } //设置参数 SERVERKEY sk(CSocketManager::Instance()->GetLocalServerID()); pSocket->SetUniqueID(CSocketManager::Instance()->GetSequence()); pSocket->SetTransID(sk.nType, sk.nInstID); pSocket->SetIsAcceptFd(false); pSocket->SetSocketHandler(oNotify.m_pHandler, oNotify.m_bBinaryMode); std::string sMsg; bool bSuccess = false; if(!pSocket->Create(oNotify.m_nFd)) { sMsg = "create failed"; } else if (!pSocket->SetKeepAlive(true)) // 保持连接 { sMsg = "keep alive failed"; } else if (!pSocket->SetNoDelay(true)) { sMsg = "no delay failed"; } else if (!pSocket->SetNonBlock()) { sMsg = "not block failed"; } else if (!pSocket->SetLinger()) { sMsg = "linger failed"; } else if (!pSocket->SetReuse(true)) { sMsg = "reuse failed"; } else if (pSocket->Connect(oNotify.m_szRemoteAddr, oNotify.m_nRemotePort) < 0) { sMsg = "connect failed"; } else if(!pSocket->RegisterEvent(m_base)) { sMsg = "register failed"; } else { bSuccess = true; } //注册事件 if(bSuccess) { LOG(LT_INFO_TRANS, pSocket->NextTransID().c_str(), "Worker thread| do connect notify succ| thread_id=%llu| type=%d| fd=%d| unique_id=0x%x| local_addr=%s:%d| remote_addr=%s:%d| binary_mode=%d", m_nThreadID, oNotify.m_nType, oNotify.m_nFd, pSocket->GetUniqueID(), oNotify.m_szLocalAddr, oNotify.m_nLocalPort, oNotify.m_szRemoteAddr, oNotify.m_nRemotePort, oNotify.m_bBinaryMode ); } else { LOG(LT_ERROR, "Worker thread| do connect failed| thread_id=%llu| type=%d| fd=%d| local_addr=%s:%d| remote_addr=%s:%d| state=%d| msg=%s", m_nThreadID, oNotify.m_nType, oNotify.m_nFd, oNotify.m_szLocalAddr, oNotify.m_nLocalPort, oNotify.m_szRemoteAddr, oNotify.m_nRemotePort, pSocket->GetState(), sMsg.c_str() ); pSocket->Release(true); if(NULL == oNotify.m_pHandler) { oNotify.m_pHandler->OnConnect(oNotify.m_nFd, false, 0, oNotify.m_bBinaryMode); } } } //Listen的通知处理 void CWorkerThread::DoListen(const CNotifyFd &oNotify) { TcpSocket *pSocket = CSocketManager::Instance()->GetTcpSocket(oNotify.m_nFd); if(NULL == pSocket) { LOG(LT_ERROR, "Worker thread| do listen notify get socket failed| thread_id=%llu| type=%d| fd=%d| local_addr=%s:%d| remote_addr=%s:%d", m_nThreadID, oNotify.m_nType, oNotify.m_nFd, oNotify.m_szLocalAddr, oNotify.m_nLocalPort, oNotify.m_szRemoteAddr, oNotify.m_nRemotePort ); close(oNotify.m_nFd); _exit(0); } pSocket->SetLocalAddr(oNotify.m_szLocalAddr, oNotify.m_nLocalPort); //注册listen事件 if(!pSocket->RegisterListen(m_base)) { LOG(LT_ERROR, "Worker thread| do listen notify register failed| thread_id=%llu| type=%d| fd=%d| local_addr=%s:%d| remote_addr=%s:%d", m_nThreadID, oNotify.m_nType, oNotify.m_nFd, oNotify.m_szLocalAddr, oNotify.m_nLocalPort, oNotify.m_szRemoteAddr, oNotify.m_nRemotePort ); pSocket->Release(true); _exit(0); } LOG(LT_INFO, "Worker thread| do listen notify succ| thread_id=%llu| type=%d| fd=%d| local_addr=%s:%d| remote_addr=%s:%d", m_nThreadID, oNotify.m_nType, oNotify.m_nFd, oNotify.m_szLocalAddr, oNotify.m_nLocalPort, oNotify.m_szRemoteAddr, oNotify.m_nRemotePort ); } void CWorkerThread::DoClose(const CNotifyFd &oNotify) { TcpSocket *pSocket = CSocketManager::Instance()->GetTcpSocket(oNotify.m_nFd); if(NULL == pSocket) { LOG(LT_ERROR, "Worker thread| do connect notify get socket failed| thread_id=%llu| type=%d| fd=%d| local_addr=%s:%d| remote_addr=%s:%d", m_nThreadID, oNotify.m_nType, oNotify.m_nFd, oNotify.m_szLocalAddr, oNotify.m_nLocalPort, oNotify.m_szRemoteAddr, oNotify.m_nRemotePort ); close(oNotify.m_nFd); return; } LOG(LT_INFO_TRANS, pSocket->NextTransID().c_str(), "Worker thread| do close notify succ| thread_id=%llu| type=%d| fd=%d| unique_id=0x%x| local_addr=%s:%d| remote_addr=%s:%d| binary_mode=%d", m_nThreadID, oNotify.m_nType, oNotify.m_nFd, pSocket->GetUniqueID(), oNotify.m_szLocalAddr, oNotify.m_nLocalPort, oNotify.m_szRemoteAddr, oNotify.m_nRemotePort, oNotify.m_bBinaryMode ); pSocket->ActiveClose(); } }
35.389027
198
0.549503
deeptexas-ai
9dd9cbda5f437b167f3828e590502a2766fe4e92
639
cpp
C++
source/Ch18/drill/chapter18.2.cpp
TangoPango2008/UDProg-Introduction
3d98eb5c6fd9896e5c8bbd939bcf7061370b9a5c
[ "CC0-1.0" ]
null
null
null
source/Ch18/drill/chapter18.2.cpp
TangoPango2008/UDProg-Introduction
3d98eb5c6fd9896e5c8bbd939bcf7061370b9a5c
[ "CC0-1.0" ]
null
null
null
source/Ch18/drill/chapter18.2.cpp
TangoPango2008/UDProg-Introduction
3d98eb5c6fd9896e5c8bbd939bcf7061370b9a5c
[ "CC0-1.0" ]
null
null
null
#include "../std_lib_facilities.h" vector<int> gv{1,2,4,8,16,31,64,128,256,512}; /*void initialize(vector<int> vr){ for(int i = 0; i < vr.size(); i ++) vr[i] = pow(2,i); }*/ void f(vector<int>& vr){ vector<int> lv(10); for(int i = 0; i < lv.size(); i ++) lv[i] = vr[i]; for(int i = 0; i < lv.size(); i ++) cout << lv[i] << ' ' ; cout << '\n'; vector<int> lv2(vr.size()); lv2 = vr; for(int i = 0; i < lv2.size(); i ++) cout << lv2[i] << ' ' ; cout << '\n'; } int main(){ f(gv); vector<int> vv(10); int factorial = 1; for(int i = 1; i < vv.size()+1; i++){ factorial *= i; vv[i-1] = factorial; } f(vv); }
16.384615
45
0.494523
TangoPango2008
9ddf8608c4c60af12c876f221d5734553df3a7ed
394
cpp
C++
source/Highscore.cpp
JROB774/block-fever
9977ac6725e1adf5f86706e04da725e3df8a9c69
[ "MIT" ]
1
2022-01-14T01:10:02.000Z
2022-01-14T01:10:02.000Z
source/Highscore.cpp
JROB774/block-fever
9977ac6725e1adf5f86706e04da725e3df8a9c69
[ "MIT" ]
null
null
null
source/Highscore.cpp
JROB774/block-fever
9977ac6725e1adf5f86706e04da725e3df8a9c69
[ "MIT" ]
null
null
null
int Highscore::highscore; void Highscore::setScore (const int arg_highscore) { highscore = arg_highscore; } int Highscore::getScore (void) { return highscore; } bool Highscore::addScore (const int arg_score) { bool newBest = (arg_score > highscore); if (newBest) { highscore = arg_score; } return newBest; } void Highscore::reset (void) { highscore = 0; }
13.133333
52
0.667513
JROB774
9de029d03df9d6015c2060a20fd98321b2cadb2e
299
cpp
C++
vlr-util/util.AutoCleanupBase.cpp
nick42/vlr-util
937f53dd4d3e15b23d615b085f5bf4a8e6b9cd91
[ "Artistic-2.0" ]
null
null
null
vlr-util/util.AutoCleanupBase.cpp
nick42/vlr-util
937f53dd4d3e15b23d615b085f5bf4a8e6b9cd91
[ "Artistic-2.0" ]
null
null
null
vlr-util/util.AutoCleanupBase.cpp
nick42/vlr-util
937f53dd4d3e15b23d615b085f5bf4a8e6b9cd91
[ "Artistic-2.0" ]
null
null
null
#include "pch.h" #include "util.AutoCleanupBase.h" NAMESPACE_BEGIN( vlr ) NAMESPACE_BEGIN( util ) HRESULT CAutoCleanupBase::OnDestroy_DoCleanup() { m_bDoCleanupCalled = true; if (!m_bDoCleanup) { return S_FALSE; } return DoCleanup(); } NAMESPACE_END //( util ) NAMESPACE_END //( vlr )
13
47
0.715719
nick42
9de5202d1d5bde83729ab91a78fad9f1ca7d1902
13,578
cpp
C++
libs/hwdrivers/src/aria/src/ArSocket_LIN.cpp
yhexie/mrpt
0bece2883aa51ad3dc88cb8bb84df571034ed261
[ "OLDAP-2.3" ]
null
null
null
libs/hwdrivers/src/aria/src/ArSocket_LIN.cpp
yhexie/mrpt
0bece2883aa51ad3dc88cb8bb84df571034ed261
[ "OLDAP-2.3" ]
null
null
null
libs/hwdrivers/src/aria/src/ArSocket_LIN.cpp
yhexie/mrpt
0bece2883aa51ad3dc88cb8bb84df571034ed261
[ "OLDAP-2.3" ]
1
2021-08-16T11:50:47.000Z
2021-08-16T11:50:47.000Z
/* +---------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | http://www.mrpt.org/ | | | | Copyright (c) 2005-2017, Individual contributors, see AUTHORS file | | See: http://www.mrpt.org/Authors - All rights reserved. | | Released under BSD License. See details in http://www.mrpt.org/License | +---------------------------------------------------------------------------+ */ #include "ArExport.h" #include "ariaOSDef.h" #include "ArSocket.h" #include "ArLog.h" #include <errno.h> #include <stdio.h> #include <netdb.h> #include <arpa/inet.h> #include "ArFunctor.h" #include <sys/socket.h> #include <netinet/ip.h> #include <netinet/tcp.h> /// We're always initialized in Linux bool ArSocket::ourInitialized=true; /** In Windows, the networking subsystem needs to be initialized and shutdown individyaly by each program. So when a program starts they will need to call the static function ArSocket::init() and call ArSocket::shutdown() when it exits. For programs that use Aria::init() and Aria::uninit() calling the ArSocket::init() and ArSocket::shutdown() is unnecessary. The Aria initialization functions take care of this. These functions do nothing in Linux. */ bool ArSocket::init() { return(true); } /** In Windows, the networking subsystem needs to be initialized and shutdown individyaly by each program. So when a program starts they will need to call the static function ArSocket::init() and call ArSocket::shutdown() when it exits. For programs that use Aria::init() and Aria::uninit() calling the ArSocket::init() and ArSocket::shutdown() is unnecessary. The Aria initialization functions take care of this. These functions do nothing in Linux. */ void ArSocket::shutdown() { } ArSocket::ArSocket() : myType(Unknown), myError(NoErr), myErrorStr(), myDoClose(true), myFD(-1), myNonBlocking(false), mySin() { internalInit(); } /** Constructs the socket and connects it to the given host. @param host hostname of the server to connect to @param port port number of the server to connect to @param type protocol type to use */ ArSocket::ArSocket(const char *host, int port, Type type) : myType(type), myError(NoErr), myErrorStr(), myDoClose(true), myFD(-1), myNonBlocking(false), mySin() { internalInit(); connect(host, port, type); } /** Constructs the socket and opens it as a server port. @param port port number to bind the socket to @param doClose automaticaly close the port if the socket is destructed @param type protocol type to use */ ArSocket::ArSocket(int port, bool doClose, Type type) : myType(type), myError(NoErr), myErrorStr(), myDoClose(doClose), myFD(-1), myNonBlocking(false), mySin() { internalInit(); open(port, type); } ArSocket::~ArSocket() { close(); } bool ArSocket::hostAddr(const char *host, struct in_addr &addr) { struct hostent *hp; if (!(hp=gethostbyname(host))) { perror("gethostbyname"); memset(&addr, 0, sizeof(in_addr)); return(false); } else { bcopy(hp->h_addr, &addr, hp->h_length); return(true); } } bool ArSocket::addrHost(struct in_addr &addr, char *host) { struct hostent *hp; hp=gethostbyaddr((char*)&addr.s_addr, sizeof(addr.s_addr), AF_INET); if (hp) strcpy(host, hp->h_name); else strcpy(host, inet_ntoa(addr)); return(true); } std::string ArSocket::getHostName() { char localhost[100]; // maxHostNameLen()]; if (gethostname(localhost, sizeof(localhost)) == 1) return(""); else return(localhost); } bool ArSocket::connect(const char *host, int port, Type type) { char localhost[100]; // maxHostNameLen()]; if (!host) { if (gethostname(localhost, sizeof(localhost)) == 1) { myError=ConBadHost; myErrorStr="Failure to locate host '"; myErrorStr+=localhost; myErrorStr+="'"; perror("gethostname"); return(false); } host=localhost; } bzero(&mySin, sizeof(mySin)); // MPL taking out this next code line from the if since it makes // everything we can't resolve try to connect to localhost // && !hostAddr("localhost", mySin.sin_addr)) if (!hostAddr(host, mySin.sin_addr)) return(false); setIPString(); mySin.sin_family=AF_INET; mySin.sin_port=hostToNetOrder(port); if ((type == TCP) && ((myFD=socket(AF_INET, SOCK_STREAM, 0)) < 0)) { myError=NetFail; myErrorStr="Failure to make TCP socket"; perror("socket"); return(false); } else if ((type == UDP) && ((myFD=socket(AF_INET, SOCK_DGRAM, 0)) < 0)) { myError=NetFail; myErrorStr="Failure to make UDP socket"; perror("socket"); return(false); } myType=type; if (::connect(myFD, (struct sockaddr *)&mySin, sizeof(struct sockaddr_in)) < 0) { myErrorStr="Failure to connect socket"; switch (errno) { case ECONNREFUSED: myError=ConRefused; myErrorStr+="; Connection refused"; break; case ENETUNREACH: myError=ConNoRoute; myErrorStr+="; No route to host"; break; default: myError=NetFail; break; } //perror("connect"); ::close(myFD); myFD = -1; return(false); } return(true); } bool ArSocket::open(int port, Type type, const char *openOnIP) { int ret; char localhost[100]; // maxHostNameLen()]; if ((type == TCP) && ((myFD=socket(AF_INET, SOCK_STREAM, 0)) < 0)) { myErrorStr="Failure to make TCP socket"; perror("socket"); return(false); } else if ((type == UDP) && ((myFD=socket(AF_INET, SOCK_DGRAM, 0)) < 0)) { myErrorStr="Failure to make UDP socket"; perror("socket"); return(false); } myType=type; /* MPL removed this since with what I Took out down below months ago if (gethostname(localhost, sizeof(localhost)) == 1) { myErrorStr="Failure to locate localhost"; perror("gethostname"); return(false); } */ bzero(&mySin, sizeof(mySin)); /* MPL took this out since it was just overriding it with the INADDR_ANY anyways and it could cause slowdowns if a machine wasn't configured so lookups are quick if (!hostAddr(localhost, mySin.sin_addr) && !hostAddr("localhost", mySin.sin_addr)) return(false); */ if (openOnIP != NULL) { if (!hostAddr(openOnIP, mySin.sin_addr)) { ArLog::log(ArLog::Normal, "Couldn't find ip of %s to open on", openOnIP); return(false); } else { //printf("Opening on %s\n", openOnIP); } } else { mySin.sin_addr.s_addr=htonl(INADDR_ANY); } setIPString(); mySin.sin_family=AF_INET; mySin.sin_port=hostToNetOrder(port); if ((ret=bind(myFD, (struct sockaddr *)&mySin, sizeof(mySin))) < 0) { myErrorStr="Failure to bind socket to port "; sprintf(localhost, "%d", port); myErrorStr+=localhost; perror("socket"); return(false); } if ((type == TCP) && (listen(myFD, 5) < 0)) { myErrorStr="Failure to listen on socket"; perror("listen"); return(false); } return(true); } bool ArSocket::create(Type type) { if ((type == TCP) && ((myFD=socket(AF_INET, SOCK_STREAM, 0)) < 0)) { myErrorStr="Failure to make TCP socket"; perror("socket"); return(false); } else if ((type == UDP) && ((myFD=socket(AF_INET, SOCK_DGRAM, 0)) < 0)) { myErrorStr="Failure to make UDP socket"; perror("socket"); return(false); } myType=type; if (getSockName()) return(true); else return(false); } bool ArSocket::findValidPort(int startPort, const char *openOnIP) { // char localhost[100]; // maxHostNameLen()]; /* if (gethostname(localhost, sizeof(localhost)) == 1) { myErrorStr="Failure to locate localhost"; perror("gethostname"); return(false); } */ for (int i=0; i+startPort < 65000; ++i) { bzero(&mySin, sizeof(mySin)); /* if (!hostAddr(localhost, mySin.sin_addr) && !hostAddr("localhost", mySin.sin_addr)) return(false); */ setIPString(); if (openOnIP != NULL) { if (!hostAddr(openOnIP, mySin.sin_addr)) { ArLog::log(ArLog::Normal, "Couldn't find ip of %s to open udp on", openOnIP); return(false); } else { //printf("Opening on %s\n", openOnIP); } } else { mySin.sin_addr.s_addr=htonl(INADDR_ANY); } mySin.sin_family=AF_INET; mySin.sin_port=hostToNetOrder(startPort+i); if (bind(myFD, (struct sockaddr *)&mySin, sizeof(mySin)) == 0) break; } return(true); } bool ArSocket::connectTo(const char *host, int port) { char localhost[100]; // maxHostNameLen()]; if (myFD < 0) return(false); if (!host) { if (gethostname(localhost, sizeof(localhost)) == 1) { myErrorStr="Failure to locate host '"; myErrorStr+=localhost; myErrorStr+="'"; perror("gethostname"); return(false); } host=localhost; } bzero(&mySin, sizeof(mySin)); if (!hostAddr(host, mySin.sin_addr)) return(false); setIPString(); mySin.sin_family=AF_INET; mySin.sin_port=hostToNetOrder(port); return(connectTo(&mySin)); } bool ArSocket::connectTo(struct sockaddr_in *sin) { if (::connect(myFD, (struct sockaddr *)sin, sizeof(struct sockaddr_in)) < 0) { myErrorStr="Failure to connect socket"; perror("connect"); return(0); } return(1); } bool ArSocket::close() { if (myFD != -1) ArLog::log(ArLog::Verbose, "Closing socket"); if (myCloseFunctor != NULL) myCloseFunctor->invoke(); if (myDoClose && ::close(myFD)) { myFD=-1; return(false); } else { myFD=-1; return(true); } } bool ArSocket::setLinger(int time) { struct linger lin; if (time) { lin.l_onoff=1; lin.l_linger=time; } else { lin.l_onoff=0; lin.l_linger=time; } if (setsockopt(myFD, SOL_SOCKET, SO_LINGER, &lin, sizeof(lin)) != 0) { myErrorStr="Failure to setsockopt LINGER"; perror("setsockopt"); return(false); } else return(true); } bool ArSocket::setBroadcast() { if (setsockopt(myFD, SOL_SOCKET, SO_BROADCAST, NULL, 0) != 0) { myErrorStr="Failure to setsockopt BROADCAST"; perror("setsockopt"); return(false); } else return(true); } bool ArSocket::setReuseAddress() { int opt=1; if (setsockopt(myFD, SOL_SOCKET, SO_REUSEADDR, (char*)&opt, sizeof(opt)) != 0) { myErrorStr="Failure to setsockopt REUSEADDR"; perror("setsockopt"); return(false); } else return(true); } bool ArSocket::setNonBlock() { if (fcntl(myFD, F_SETFL, O_NONBLOCK) != 0) { myErrorStr="Failure to fcntl O_NONBLOCK"; perror("fcntl"); return(false); } else { myNonBlocking = true; return(true); } } /** Copy socket structures. Copy from one Socket to another will still have the first socket close the file descripter when it is destructed. */ bool ArSocket::copy(int fd, bool doclose) { socklen_t len; myFD=fd; myDoClose=doclose; myType=Unknown; len=sizeof(struct sockaddr_in); if (getsockname(myFD, (struct sockaddr*)&mySin, &len)) { myErrorStr="Failed to getsockname on fd "; perror("setsockopt"); return(false); } else return(true); } /** @return true if there are no errors, false if there are errors... not that if you're in non-blocking mode and there is no socket to connect that is NOT an error, you'll want to check the getFD on the sock you pass in to see if it is actually a valid socket. **/ bool ArSocket::accept(ArSocket *sock) { socklen_t len; unsigned char *bytes; len=sizeof(struct sockaddr_in); sock->myFD=::accept(myFD, (struct sockaddr*)&(sock->mySin), &len); sock->myType=myType; bytes = (unsigned char *)sock->inAddr(); sprintf(sock->myIPString, "%d.%d.%d.%d", bytes[0], bytes[1], bytes[2], bytes[3]); if ((sock->myFD < 0 && !myNonBlocking) || (sock->myFD < 0 && errno != EWOULDBLOCK && myNonBlocking)) { myErrorStr="Failed to accept on socket"; perror("accept"); return(false); } return(true); } void ArSocket::inToA(struct in_addr *addr, char *buff) { strcpy(buff, inet_ntoa(*addr)); } bool ArSocket::getSockName() { socklen_t size; if (myFD < 0) { myErrorStr="Trying to get socket name on an unopened socket"; printf("%s",myErrorStr.c_str()); return(false); } size=sizeof(mySin); if (getsockname(myFD, (struct sockaddr *)&mySin, &size) != 0) { myErrorStr="Error getting socket name"; perror(myErrorStr.c_str()); return(false); } return(true); } unsigned int ArSocket::hostToNetOrder(int i) { return(htons(i)); } unsigned int ArSocket::netToHostOrder(int i) { return(ntohs(i)); } /** If this socket is a TCP socket, then set the TCP_NODELAY flag, * to disable the use of the Nagle algorithm (which waits until enough * data is ready to send to fill a TCP frame, rather then sending the * packet immediately). * @param flag true to turn on NoDelay, false to turn it off. * @return true of the flag was successfully set, false if there was an * error or this socket is not a TCP socket. */ bool ArSocket::setNoDelay(bool flag) { if(myType != TCP) return false; int f = flag?1:0; int r = setsockopt(myFD, IPPROTO_TCP, TCP_NODELAY, (char*)&f, sizeof(f)); return (r != -1); }
22.442975
83
0.625423
yhexie
9de941dbce1feace4f6f6f220917ac3b755808d0
752
cpp
C++
src/gameLoopDriver.cpp
jacobrs/risk-game
29ed2a58a9d5cf2fd28881876e1fabe4ed0e8ee5
[ "MIT" ]
null
null
null
src/gameLoopDriver.cpp
jacobrs/risk-game
29ed2a58a9d5cf2fd28881876e1fabe4ed0e8ee5
[ "MIT" ]
null
null
null
src/gameLoopDriver.cpp
jacobrs/risk-game
29ed2a58a9d5cf2fd28881876e1fabe4ed0e8ee5
[ "MIT" ]
null
null
null
#include <iostream> #include "./headers/Game.h" #include "./headers/GameMap.h" #include "./headers/MapLoader.h" using namespace std; int main(int args, char** argv){ // Initialize a new game with a valid map MapLoader* loader = new MapLoader("./src/map/World.map"); loader->importMap(); GameMap* map = loader->exportToGameMap(); // verify that the map was loaded in properly printf("Checking integrity of game map\n\n"); map->isValidMap(); vector<Player*> initPlayers; initPlayers.push_back(new Player(0, "Tester1", "red")); initPlayers.push_back(new Player(1, "Tester2", "blue")); printf("Starting main game loop\n"); Game *game = new Game(map, 2, initPlayers); game->startGame(); delete loader; delete game; }
25.931034
59
0.68484
jacobrs
9df3872b428bbb1a548e4547d54e1a4ea7b3d499
1,581
cpp
C++
details/pbkdf2.cpp
VlinderSoftware/securitylayer
0daef0efe08af2649b164affcbdd30845a7806cd
[ "Apache-2.0" ]
1
2020-07-16T01:34:06.000Z
2020-07-16T01:34:06.000Z
details/pbkdf2.cpp
blytkerchan/securitylayer
0daef0efe08af2649b164affcbdd30845a7806cd
[ "Apache-2.0" ]
1
2020-07-23T02:55:31.000Z
2020-07-23T02:55:31.000Z
details/pbkdf2.cpp
blytkerchan/securitylayer
0daef0efe08af2649b164affcbdd30845a7806cd
[ "Apache-2.0" ]
1
2020-07-03T00:06:20.000Z
2020-07-03T00:06:20.000Z
/* Copyright 2020 Ronald Landheer-Cieslak * * 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 "pbkdf2.hpp" #include <openssl/evp.h> #include <stdexcept> #include "../exceptions/contract.hpp" using namespace std; namespace DNP3SAv6 { namespace Details { PBKDF2::PBKDF2(std::string const &password, std::vector< unsigned char > const &salt, unsigned int iteration_count/* = 1000*/) { EVP_MD const *md(EVP_sha256()); if (!md) throw bad_alloc(); vector< unsigned char > key(32); if (!PKCS5_PBKDF2_HMAC(password.c_str(), password.size(), salt.empty() ? nullptr : &salt[0], salt.size(), iteration_count, md, key.size(), &key[0])) { throw runtime_error("failed to derive key"); } else { /* no-op */ } key_.insert(key_.end(), key.begin(), key.end()); } PBKDF2::~PBKDF2() { } vector< unsigned char > PBKDF2::operator()(size_t n) { pre_condition(n <= key_.size()); auto end(key_.begin()); advance(end, n); vector< unsigned char > retval(key_.begin(), end); key_.erase(key_.begin(), end); return retval; } }}
32.9375
152
0.683112
VlinderSoftware
9df43eb3a77ee94dfb0d61a5da7fcf9890aa3f42
4,933
cpp
C++
src/brokerlib/message/handler/src/ServiceRegistryRegisterRequestHandler.cpp
chrissmith-mcafee/opendxl-broker
a3f985fc19699ab8fcff726bbd1974290eb6e044
[ "Apache-2.0", "MIT" ]
13
2017-10-15T14:32:34.000Z
2022-02-17T08:25:26.000Z
src/brokerlib/message/handler/src/ServiceRegistryRegisterRequestHandler.cpp
vkrish-mcafee/opendxl-broker
39c5d06c233dbe01146f0db781eccfd67bbaafbf
[ "Apache-2.0", "MIT" ]
14
2017-10-17T18:23:50.000Z
2021-12-10T22:05:25.000Z
src/brokerlib/message/handler/src/ServiceRegistryRegisterRequestHandler.cpp
vkrish-mcafee/opendxl-broker
39c5d06c233dbe01146f0db781eccfd67bbaafbf
[ "Apache-2.0", "MIT" ]
26
2017-10-27T00:27:29.000Z
2021-09-02T16:57:55.000Z
/****************************************************************************** * Copyright (c) 2018 McAfee, LLC - All Rights Reserved. *****************************************************************************/ #include "include/BrokerSettings.h" #include "include/SimpleLog.h" #include "json/include/JsonService.h" #include "message/include/DxlEvent.h" #include "message/include/DxlMessageService.h" #include "message/include/DxlMessageConstants.h" #include "message/include/dxl_error_message.h" #include "message/handler/include/ServiceRegistryRegisterRequestHandler.h" #include "message/payload/include/ServiceRegistryRegisterEventPayload.h" #include "serviceregistry/include/ServiceRegistry.h" #include "DxlFlags.h" #include "metrics/include/TenantMetricsService.h" using namespace std; using namespace dxl::broker::json; using namespace dxl::broker::message::handler; using namespace dxl::broker::message::payload; using namespace dxl::broker::core; using namespace dxl::broker::service; using namespace dxl::broker::metrics; /** {@inheritDoc} */ bool ServiceRegistryRegisterRequestHandler::onStoreMessage( CoreMessageContext* context, struct cert_hashes* certHashes ) const { if( SL_LOG.isDebugEnabled() ) { SL_START << "ServiceRegistryRegisterRequestHandler::onStoreMessage" << SL_DEBUG_END; } // Get the DXL request DxlRequest* request = context->getDxlRequest(); // Get the payload ServiceRegistryRegisterEventPayload registerPayload; JsonService::getInstance().fromJson( request->getPayloadStr(), registerPayload ); // Update the payload with information from the local broker, current connection registerPayload.setBrokerGuid( BrokerSettings::getGuid() ); registerPayload.setClientGuid( ( ( context->getContextFlags() & DXL_FLAG_LOCAL ) ? BrokerSettings::getGuid() : context->getCanonicalSourceId() ) ); registerPayload.setClientInstanceGuid( ( ( context->getContextFlags() & DXL_FLAG_LOCAL ) ? BrokerSettings::getInstanceGuid() : context->getSourceId() ) ); bool isManaged = (context->getContextFlags() & DXL_FLAG_MANAGED) != 0; registerPayload.setManagedClient( isManaged ); if( !isManaged ) { unordered_set<std::string> certs; struct cert_hashes *current, *tmp; HASH_ITER( hh, certHashes, current, tmp ) { certs.insert( current->cert_sha1 ); } registerPayload.setCertificates( certs ); } if( BrokerSettings::isMultiTenantModeEnabled() ) { const std::string& clientTenantGuid = request->getSourceTenantGuid(); const unordered_set<std::string>* destTenantGuids = request->getDestinationTenantGuids(); unordered_set<std::string> targetTenantGuids; // If the client is not OPs if( !context->isSourceOps() ) { // Service registration from a regular client only available for its tenants targetTenantGuids.insert( clientTenantGuid ); } // If the client is OPs and the destination tenants are not NULL, the destinations are allowed else if( destTenantGuids != NULL ) { targetTenantGuids = *destTenantGuids; } // Set the service tenant GUID to that of the client that registered the service. registerPayload.setClientTenantGuid( clientTenantGuid ); // Set the target tenant GUIDs for this service. registerPayload.setTargetTenantGuids( targetTenantGuids ); } // Create the registration shared_ptr<ServiceRegistration> reg( new ServiceRegistration( registerPayload.getServiceRegistration() ) ); reg->setBrokerService( context->getContextFlags() & DXL_FLAG_LOCAL ); DxlMessageService& messageService = DxlMessageService::getInstance(); shared_ptr<DxlResponse> response; // Check if the service limit has been exceeded in multi-tenant if( !BrokerSettings::isMultiTenantModeEnabled() || context->isSourceOps() || TenantMetricsService::getInstance().isServiceRegistrationAllowed( reg->getClientTenantGuid().c_str() ) ) { // Register the service ServiceRegistry::getInstance().registerService( reg ); // Send a response to the invoking client response = messageService.createResponse( request ); } else { // Send an error response to the invoking client as its tenant limit is exceeded int isFabricError; response = messageService.createErrorResponse( request, FABRICSERVICELIMITEXCEEDED, getMessage( FABRICSERVICELIMITEXCEEDED, &isFabricError ) ); } messageService.sendMessage( request->getReplyToTopic(), *response ); // Do not propagate the request, we send an event to the other brokers return false; }
40.105691
120
0.668964
chrissmith-mcafee
9df61e9e192f873c21543dd272661bfb11d3dd01
6,890
cpp
C++
CSGOSimple/features/skins.cpp
lukizel/baluware
5d76d5616537d9812ee38bbb41b3abf596cb8830
[ "Unlicense" ]
null
null
null
CSGOSimple/features/skins.cpp
lukizel/baluware
5d76d5616537d9812ee38bbb41b3abf596cb8830
[ "Unlicense" ]
null
null
null
CSGOSimple/features/skins.cpp
lukizel/baluware
5d76d5616537d9812ee38bbb41b3abf596cb8830
[ "Unlicense" ]
1
2020-12-04T20:36:19.000Z
2020-12-04T20:36:19.000Z
#include "skins.hpp" static auto erase_override_if_exists_by_index( const int definition_index ) -> void { if( k_weapon_info.count( definition_index ) ) { auto& icon_override_map = g_Options.skins.m_icon_overrides; const auto& original_item = k_weapon_info.at( definition_index ); if( original_item.icon && icon_override_map.count( original_item.icon ) ) icon_override_map.erase( icon_override_map.at( original_item.icon ) ); // Remove the leftover override } } static auto apply_config_on_attributable_item( C_BaseAttributableItem* item, const item_setting* config, const unsigned xuid_low ) -> void { if( !config->enabled ) { return; } item->m_Item( ).m_iItemIDHigh( ) = -1; item->m_Item( ).m_iAccountID( ) = xuid_low; //if( config->custom_name[0] ) // strcpy_s( item->m_Item( ).m_iCustomName( ), config->custom_name ); if( config->paint_kit_index ) item->m_nFallbackPaintKit( ) = config->paint_kit_index; if( config->seed ) item->m_nFallbackSeed( ) = config->seed; if( config->stat_trak ) { item->m_nFallbackStatTrak( ) = config->stat_trak; item->m_Item( ).m_iEntityQuality( ) = 9; } else { item->m_Item( ).m_iEntityQuality( ) = is_knife( config->definition_index ) ? 3 : 0; } item->m_flFallbackWear( ) = config->wear; auto& definition_index = item->m_Item( ).m_iItemDefinitionIndex( ); auto& icon_override_map = g_Options.skins.m_icon_overrides; if( config->definition_override_index && config->definition_override_index != definition_index && k_weapon_info.count( config->definition_override_index ) ) { const auto old_definition_index = definition_index; definition_index = config->definition_override_index; const auto& replacement_item = k_weapon_info.at( config->definition_override_index ); item->m_nModelIndex( ) = g_MdlInfo->GetModelIndex( replacement_item.model ); item->SetModelIndex( g_MdlInfo->GetModelIndex( replacement_item.model ) ); item->GetClientNetworkable( )->PreDataUpdate( 0 ); if( old_definition_index && k_weapon_info.count( old_definition_index ) ) { const auto& original_item = k_weapon_info.at( old_definition_index ); if( original_item.icon && replacement_item.icon ) { icon_override_map[original_item.icon] = replacement_item.icon; } } } else { erase_override_if_exists_by_index( definition_index ); } } static auto get_wearable_create_fn( ) -> CreateClientClassFn { auto clazz = g_CHLClient->GetAllClasses( ); // Please, if you gonna paste it into a cheat use classids here. I use names because they // won't change in the foreseeable future and i dont need high speed, but chances are // you already have classids, so use them instead, they are faster. while( strcmp( clazz->m_pNetworkName, "CEconWearable" ) ) clazz = clazz->m_pNext; return clazz->m_pCreateFn; } void Skins::OnFrameStageNotify( bool frame_end ) { const auto local_index = g_EngineClient->GetLocalPlayer( ); const auto local = static_cast< C_BasePlayer* >( g_EntityList->GetClientEntity( local_index ) ); if( !local ) return; player_info_t player_info; if( !g_EngineClient->GetPlayerInfo( local_index, &player_info ) ) return; if( frame_end ) { const auto wearables = local->m_hMyWearables( ); const auto glove_config = &g_Options.skins.m_items[GLOVE_T_SIDE]; static auto glove_handle = CBaseHandle( 0 ); auto glove = reinterpret_cast< C_BaseAttributableItem* >( g_EntityList->GetClientEntityFromHandle( wearables[0] ) ); if( !glove ) { const auto our_glove = reinterpret_cast< C_BaseAttributableItem* >( g_EntityList->GetClientEntityFromHandle( glove_handle ) ); if( our_glove ) // Our glove still exists { wearables[0] = glove_handle; glove = our_glove; } } if( !local->IsAlive( ) ) { if( glove ) { glove->GetClientNetworkable( )->SetDestroyedOnRecreateEntities( ); glove->GetClientNetworkable( )->Release( ); } return; } if( glove_config && glove_config->definition_override_index ) { if( !glove ) { static auto create_wearable_fn = get_wearable_create_fn( ); const auto entry = g_EntityList->GetHighestEntityIndex( ) + 1; const auto serial = rand( ) % 0x1000; //glove = static_cast<C_BaseAttributableItem*>(create_wearable_fn(entry, serial)); create_wearable_fn( entry, serial ); glove = reinterpret_cast< C_BaseAttributableItem* >( g_EntityList->GetClientEntity( entry ) ); assert( glove ); { static auto set_abs_origin_addr = Utils::PatternScan( GetModuleHandle( L"client.dll" ), "55 8B EC 83 E4 F8 51 53 56 57 8B F1" ); const auto set_abs_origin_fn = reinterpret_cast< void( __thiscall* )( void*, const std::array<float, 3>& ) >( set_abs_origin_addr ); static constexpr std::array<float, 3> new_pos = { 10000.f, 10000.f, 10000.f }; set_abs_origin_fn( glove, new_pos ); } const auto wearable_handle = reinterpret_cast< CBaseHandle* >( &wearables[0] ); *wearable_handle = entry | serial << 16; glove_handle = wearables[0]; } // Thanks, Beakers glove->SetGloveModelIndex( -1 ); apply_config_on_attributable_item( glove, glove_config, player_info.xuid_low ); } } else { auto weapons = local->m_hMyWeapons( ); for( int i = 0; weapons[i].IsValid( ); i++ ) { C_BaseAttributableItem *weapon = ( C_BaseAttributableItem* )g_EntityList->GetClientEntityFromHandle( weapons[i] ); if( !weapon ) continue; auto& definition_index = weapon->m_Item( ).m_iItemDefinitionIndex( ); const auto active_conf = &g_Options.skins.m_items[is_knife( definition_index ) ? WEAPON_KNIFE : definition_index]; apply_config_on_attributable_item( weapon, active_conf, player_info.xuid_low ); } const auto view_model_handle = local->m_hViewModel( ); if( !view_model_handle.IsValid( ) ) return; const auto view_model = static_cast< C_BaseViewModel* >( g_EntityList->GetClientEntityFromHandle( view_model_handle ) ); if( !view_model ) return; const auto view_model_weapon_handle = view_model->m_hWeapon( ); if( !view_model_weapon_handle.IsValid( ) ) return; const auto view_model_weapon = static_cast< C_BaseCombatWeapon* >( g_EntityList->GetClientEntityFromHandle( view_model_weapon_handle ) ); if( !view_model_weapon ) return; if( k_weapon_info.count( view_model_weapon->m_Item( ).m_iItemDefinitionIndex( ) ) ) { const auto override_model = k_weapon_info.at( view_model_weapon->m_Item( ).m_iItemDefinitionIndex( ) ).model; auto override_model_index = g_MdlInfo->GetModelIndex( override_model ); view_model->m_nModelIndex( ) = override_model_index; auto world_model_handle = view_model_weapon->m_hWeaponWorldModel( ); if( !world_model_handle.IsValid( ) ) return; const auto world_model = static_cast< C_BaseWeaponWorldModel* >( g_EntityList->GetClientEntityFromHandle( world_model_handle ) ); if( !world_model ) return; world_model->m_nModelIndex( ) = override_model_index + 1; } } }
43.333333
159
0.730914
lukizel
9df94a3925d8d6c6bf4f6423dd18cbcdac719f3c
2,427
cpp
C++
AIO/tennis robot/tennis.cpp
eddiegz/Personal-C
f7869826216e5c665f8f646502141f0dc680e545
[ "MIT" ]
3
2021-05-15T08:18:09.000Z
2021-05-17T04:41:57.000Z
AIO/tennis robot/tennis.cpp
eddiegz/Personal-C
f7869826216e5c665f8f646502141f0dc680e545
[ "MIT" ]
null
null
null
AIO/tennis robot/tennis.cpp
eddiegz/Personal-C
f7869826216e5c665f8f646502141f0dc680e545
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; using ll=long long; using pii=pair<int,int>; #define ff first #define ss second //#define DEBUG const int MAXN=1e5+5; bool done[MAXN]; priority_queue<pii,vector<pii>,greater<pii>> order; ll ans=0;ll ind=1; ll b,n; void solve(); int main(){ ios::sync_with_stdio(false); cin.tie(nullptr);cout.tie(nullptr); #ifndef DEBUG freopen("tennisin.txt","r",stdin); freopen("tennisout.txt","w",stdout); #endif int t=1; while(t--){ solve(); } } void solve(){ cin>>b>>n; for(int i=1;i<=b;++i){ int a;cin>>a; order.push({a,i}); } ll length=b,available=b,initial=0; while(1){ if(n<=0)break; auto ch=order.top().ff,ind=order.top().ss; vector<int> to_go; to_go.push_back(ind); ll level=1; order.pop(); while(true){ if(!order.empty()&&order.top().ff==ch){ to_go.push_back(order.top().ss); order.pop(); level++; } else{ break; } } length-=level; if((ch-initial)*available<n){ n-=(ch-initial)*available; available-=level; initial=ch; for(int ele:to_go){ done[ele]=true; } } else{ ll time=n/available; if(time>0){ if(n%available>0){ n-=time*available; for(int i=1;i<=b;++i){ if(!done[i]){ n--; } if(n==0){ ans=i; break; } } } else{ for(int i=b;i>=1;--i){ if(!done[i]){ ans=i; n=0; break; } } } } else{ for(int i=1;i<=b;++i){ if(!done[i]){ n--; } if(n==0){ ans=i; break; } } } } } cout<<ans<<endl; }
23.563107
51
0.347342
eddiegz
9dfcfe0cde70b39c4f35a71c91688fa83f9c78f1
797
hpp
C++
include/Pomdog/Input/GamepadButtons.hpp
bis83/pomdog
133a9262958d539ae6d93664e6cb2207b5b6c7ff
[ "MIT" ]
null
null
null
include/Pomdog/Input/GamepadButtons.hpp
bis83/pomdog
133a9262958d539ae6d93664e6cb2207b5b6c7ff
[ "MIT" ]
null
null
null
include/Pomdog/Input/GamepadButtons.hpp
bis83/pomdog
133a9262958d539ae6d93664e6cb2207b5b6c7ff
[ "MIT" ]
null
null
null
// Copyright (c) 2013-2015 mogemimi. // Distributed under the MIT license. See LICENSE.md file for details. #ifndef POMDOG_GAMEPADBUTTONS_7EF60FA0_HPP #define POMDOG_GAMEPADBUTTONS_7EF60FA0_HPP #include "ButtonState.hpp" #include <cstdint> namespace Pomdog { class GamepadButtons { public: ButtonState A = ButtonState::Released; ButtonState B = ButtonState::Released; ButtonState X = ButtonState::Released; ButtonState Y = ButtonState::Released; ButtonState LeftShoulder = ButtonState::Released; ButtonState RightShoulder = ButtonState::Released; ButtonState Start = ButtonState::Released; ButtonState LeftStick = ButtonState::Released; ButtonState RightStick = ButtonState::Released; }; } // namespace Pomdog #endif // POMDOG_GAMEPADBUTTONS_7EF60FA0_HPP
28.464286
70
0.769134
bis83
9dfe4bbf5abf8a747614274f7bed7a27280f9299
1,863
hpp
C++
ModSource/breakingpoint_ui/LoadingScreenBase.hpp
nrailuj/breakingpointmod
e102e106b849ca78deb3cb299f3ae18c91c3bfe9
[ "Naumen", "Condor-1.1", "MS-PL" ]
70
2017-06-23T21:25:05.000Z
2022-03-27T02:39:33.000Z
ModSource/breakingpoint_ui/LoadingScreenBase.hpp
nrailuj/breakingpointmod
e102e106b849ca78deb3cb299f3ae18c91c3bfe9
[ "Naumen", "Condor-1.1", "MS-PL" ]
84
2017-08-26T22:06:28.000Z
2021-09-09T15:32:56.000Z
ModSource/breakingpoint_ui/LoadingScreenBase.hpp
nrailuj/breakingpointmod
e102e106b849ca78deb3cb299f3ae18c91c3bfe9
[ "Naumen", "Condor-1.1", "MS-PL" ]
71
2017-06-24T01:10:42.000Z
2022-03-18T23:02:00.000Z
/* Breaking Point Mod for Arma 3 Released under Arma Public Share Like Licence (APL-SA) https://www.bistudio.com/community/licenses/arma-public-license-share-alike Alderon Games Pty Ltd */ idd = 101; onLoad = "[""onLoad"",_this,""RscDisplayLoading""] call compile preprocessfilelinenumbers ""breakingpoint_ui\scripts\Loading\RscDisplayLoading.sqf"""; onUnload = "[""onUnload"",_this,""RscDisplayLoading""] call compile preprocessfilelinenumbers ""breakingpoint_ui\scripts\Loading\RscDisplayLoading.sqf"""; class controlsBackground { delete CA_Vignette; delete Noise; class Black : RscText { colorBackground[] = {0, 0, 0, 1}; x = "safezoneXAbs"; y = "safezoneY"; w = "safezoneWAbs"; h = "safezoneH"; }; class Map : RscPicture { idc = 999; text = "\breakingpoint_ui\loading\main_title_01.jpg"; colorText[] = {1, 1, 1, 1}; x = "safezoneX"; y = "safezoneY"; w = "safezoneW"; h = "safezoneH"; }; }; class controls { delete Title; delete Name; delete Briefing; delete Progress; delete Progress2; delete Date; // delete MapBackTop; delete MapName; delete MapAuthor; delete MapBackBottom; delete MapDescription; delete Mission; delete ProgressMap; delete ProgressMission; delete Disclaimer; class LoadingStart : RscControlsGroup { idc = 2310; x = "0 * safezoneW + safezoneX"; y = "0 * safezoneH + safezoneY"; w = "1 * safezoneW"; h = "1 * safezoneH"; class controls { class Black : RscText { colorBackground[] = {0, 0, 0, 1}; x = "safezoneXAbs"; y = "safezoneY"; w = "safezoneWAbs"; h = "safezoneH"; }; delete Noise; class Logo : RscPicture { idc = 1200; text = "\breakingpoint_ui\loading\main_title_01.jpg"; colorText[] = {1, 1, 1, 1}; x = "0 * safezoneW"; y = "0 * safezoneH"; w = "1 * safezoneW"; h = "1 * safezoneH"; }; }; }; };
22.445783
154
0.656468
nrailuj
3b044568e4bab00c1c92c7ab908b910c6b3f9536
4,786
cpp
C++
src/bind/file/explorer_util.cpp
e-ntro-py/win-vind
1ec805420732c82a46e2c79720db728ded792814
[ "MIT" ]
null
null
null
src/bind/file/explorer_util.cpp
e-ntro-py/win-vind
1ec805420732c82a46e2c79720db728ded792814
[ "MIT" ]
null
null
null
src/bind/file/explorer_util.cpp
e-ntro-py/win-vind
1ec805420732c82a46e2c79720db728ded792814
[ "MIT" ]
null
null
null
#include "explorer_util.hpp" #include <filesystem> #include <memory> #include <exdisp.h> #include <shlobj.h> #include "core/errlogger.hpp" #include "util/def.hpp" #include "util/smartcom.hpp" #include "util/string.hpp" #include "util/winwrap.hpp" namespace vind { namespace bind { //This is based on https://devblogs.microsoft.com/oldnewthing/?p=38393 . std::filesystem::path get_current_explorer_path() { auto hwnd = util::get_foreground_window() ; if(util::is_failed(CoInitialize(NULL))) { throw RUNTIME_EXCEPT("initialization failed") ; } auto co_uninit = [] (char* ptr) { if(ptr) { delete ptr ; ptr = nullptr ; } CoUninitialize() ; } ; std::unique_ptr<char, decltype(co_uninit)> smart_uninit{new char(), co_uninit} ; //we can get explorer handle from IShellWindows. util::SmartCom<IShellWindows> psw{} ; if(util::is_failed(CoCreateInstance( CLSID_ShellWindows, NULL, CLSCTX_ALL, IID_IShellWindows, reinterpret_cast<void**>(&psw) ))) { throw RUNTIME_EXCEPT("cannot create IShellWindows.") ; } long win_num = 0 ; if(util::is_failed(psw->get_Count(&win_num))) { throw RUNTIME_EXCEPT("No explorer is opened.") ; } for(long i = 0 ; i < win_num ; i ++) { VARIANT v ; v.vt = VT_I4 ; V_I4(&v) = i ; //IDispatch is an interface to object, method or property util::SmartCom<IDispatch> pdisp{} ; if(util::is_failed(psw->Item(v, &pdisp))) { continue ; } //Is this shell foreground window?? util::SmartCom<IWebBrowserApp> pwba{} ; if(util::is_failed(pdisp->QueryInterface(IID_IWebBrowserApp, reinterpret_cast<void**>(&pwba)))) { continue ; } HWND shell_hwnd = NULL ; if(util::is_failed(pwba->get_HWND(reinterpret_cast<LONG_PTR*>(&shell_hwnd)))) { continue ; } if(shell_hwnd != hwnd) { continue ; //it is not foreground window } //access to shell window util::SmartCom<IServiceProvider> psp{} ; if(util::is_failed(pwba->QueryInterface(IID_IServiceProvider, reinterpret_cast<void**>(&psp)))) { throw RUNTIME_EXCEPT("cannot access a top service provider.") ; } //access to shell browser util::SmartCom<IShellBrowser> psb{} ; if(util::is_failed(psp->QueryService(SID_STopLevelBrowser, IID_IShellBrowser, reinterpret_cast<void**>(&psb)))) { throw RUNTIME_EXCEPT("cannot access a shell browser.") ; } //access to shell view util::SmartCom<IShellView> psv{} ; if(util::is_failed(psb->QueryActiveShellView(&psv))) { throw RUNTIME_EXCEPT("cannot access a shell view.") ; } //get IFolerView Interface util::SmartCom<IFolderView> pfv{} ; if(util::is_failed(psv->QueryInterface(IID_IFolderView, reinterpret_cast<void**>(&pfv)))) { throw RUNTIME_EXCEPT("cannot access a foler view.") ; } //get IPersistantFolder2 in order to use GetCurFolder method util::SmartCom<IPersistFolder2> ppf2{} ; if(util::is_failed(pfv->GetFolder(IID_IPersistFolder2, reinterpret_cast<void**>(&ppf2)))) { throw RUNTIME_EXCEPT("cannot access a persist folder 2.") ; } ITEMIDLIST* raw_pidl = nullptr ; if(util::is_failed(ppf2->GetCurFolder(&raw_pidl))) { throw RUNTIME_EXCEPT("cannot get current folder.") ; } auto idl_deleter = [](ITEMIDLIST* ptr) {CoTaskMemFree(ptr) ;} ; std::unique_ptr<ITEMIDLIST, decltype(idl_deleter)> pidl(raw_pidl, idl_deleter) ; //convert to path WCHAR path[MAX_PATH] = {0} ; if(!SHGetPathFromIDListW(pidl.get(), path)) { throw RUNTIME_EXCEPT("cannot convert an item ID to a file system path.") ; } return std::filesystem::path(path) ; } return std::filesystem::path() ; } } }
37.390625
129
0.516924
e-ntro-py
3b0764534c0184331705ea13e0cbacbefdc3ba0e
989
hpp
C++
include/gui/Button.hpp
Kihau/GoGame
db6b2dfcf373b3cc07d76d6551d83e0e9a73d6c5
[ "MIT" ]
null
null
null
include/gui/Button.hpp
Kihau/GoGame
db6b2dfcf373b3cc07d76d6551d83e0e9a73d6c5
[ "MIT" ]
null
null
null
include/gui/Button.hpp
Kihau/GoGame
db6b2dfcf373b3cc07d76d6551d83e0e9a73d6c5
[ "MIT" ]
null
null
null
#ifndef BUTTON_H #define BUTTON_H #include "gui/GuiComponent.hpp" // TODO: To implement either of the systems // 1. Add c#-like callback event system (and use lamba expression to add callbacks) // 2. Create fields for all button events, return their reault via callback methods (if callback method return true - execute some code) // 3. Create sfml like event handling method (button.pollEvents()) class Button : public GuiComponent { private: sf::Text caption; sf::RectangleShape base; bool clicked = false; public: Button(); Button(sf::Font font, const sf::Vector2f& size = sf::Vector2f(0.0f, 0.0f)); ~Button(); void draw(sf::RenderTarget& target, const sf::RenderStates& states) const; void update(sf::Vector2f); void update(); bool clickCallback(); void setText(std::string); void setBackground(sf::Color); void setOutlineThickness(f32); void setOutlineColor(sf::Color); void setPosition(const sf::Vector2f&); }; #endif
29.969697
136
0.703741
Kihau
3b0edc5dbfb4cbcfc3e15b030794300154e55356
337
cpp
C++
Olamundo/for/main.cpp
tosantos1/LIP
7dbc045afa02729f4e2f2f1d3b29baebf5be72ad
[ "MIT" ]
null
null
null
Olamundo/for/main.cpp
tosantos1/LIP
7dbc045afa02729f4e2f2f1d3b29baebf5be72ad
[ "MIT" ]
null
null
null
Olamundo/for/main.cpp
tosantos1/LIP
7dbc045afa02729f4e2f2f1d3b29baebf5be72ad
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int main() { int x, n, resultado = 1; cout << "Informe a base: "; cin >> x; cout << "Informe o expoente: "; cin >> n; for(int cont = 0;cont < n ; cont ++){ resultado = resultado * x; } cout << "Resultado: " << resultado << endl; return 0; }
12.481481
47
0.504451
tosantos1
3b16176f55073f6c49713121e4807033f10f1bd4
969
cpp
C++
Contests/Codeforces/CF1011/C.cpp
SYCstudio/OI
6e9bfc17dbd4b43467af9b19aa2aed41e28972fa
[ "MIT" ]
4
2017-10-31T14:25:18.000Z
2018-06-10T16:10:17.000Z
Contests/Codeforces/CF1011/C.cpp
SYCstudio/OI
6e9bfc17dbd4b43467af9b19aa2aed41e28972fa
[ "MIT" ]
null
null
null
Contests/Codeforces/CF1011/C.cpp
SYCstudio/OI
6e9bfc17dbd4b43467af9b19aa2aed41e28972fa
[ "MIT" ]
null
null
null
#include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<algorithm> using namespace std; #define ll long long #define ld long double #define mem(Arr,x) memset(Arr,x,sizeof(Arr)) const int maxN=1010; const ld eps=1e-6; const int inf=2147483647; int n,m; int A[maxN],B[maxN]; bool Check(ld fuel); int main() { scanf("%d%d",&n,&m); for (int i=1;i<=n;i++) scanf("%d",&A[i]); for (int i=1;i<=n;i++) scanf("%d",&B[i]); ld L=0,R=2e9,Ans=-1; do{ ld mid=(L+R)/(ld)2.0; if (Check(mid)) Ans=mid,R=mid-eps; else L=mid+eps; } while (L+eps<R); if ((Ans==-1)||(Ans>1e9+1)) printf("-1\n"); else printf("%.10LF\n",Ans); return 0; } bool Check(ld fuel){ //printf("%.10LF\n",fuel); fuel=fuel-(fuel+m)/(ld)A[1]; if (fuel<0) return 0; for (int i=2;i<=n;i++){ fuel=fuel-(fuel+m)/(ld)B[i]; if (fuel<0) return 0; fuel=fuel-(fuel+m)/(ld)A[i]; if (fuel<0) return 0; } fuel=fuel-(fuel+m)/(ld)B[1]; if (fuel<0) return 0; return 1; }
17.944444
44
0.597523
SYCstudio
3b1832611024fb775e8dbaf17e7a8171b5ac5884
9,162
cc
C++
cpp/src/arrow/ipc/file.cc
DonaldFoss/ApacheArrow
4226adfbc6b3dff10b3fe7a6691b30bcc94140bd
[ "Apache-2.0" ]
1
2020-04-23T01:11:36.000Z
2020-04-23T01:11:36.000Z
cpp/src/arrow/ipc/file.cc
DonaldFoss/ApacheArrow
4226adfbc6b3dff10b3fe7a6691b30bcc94140bd
[ "Apache-2.0" ]
1
2021-12-09T23:06:13.000Z
2021-12-09T23:06:14.000Z
cpp/src/arrow/ipc/file.cc
DonaldFoss/ApacheArrow
4226adfbc6b3dff10b3fe7a6691b30bcc94140bd
[ "Apache-2.0" ]
null
null
null
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you 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 "arrow/ipc/file.h" #include <cstdint> #include <cstring> #include <sstream> #include <vector> #include "arrow/buffer.h" #include "arrow/io/interfaces.h" #include "arrow/io/memory.h" #include "arrow/ipc/adapter.h" #include "arrow/ipc/metadata-internal.h" #include "arrow/ipc/metadata.h" #include "arrow/ipc/util.h" #include "arrow/status.h" #include "arrow/util/logging.h" namespace arrow { namespace ipc { static constexpr const char* kArrowMagicBytes = "ARROW1"; // ---------------------------------------------------------------------- // File footer static flatbuffers::Offset<flatbuffers::Vector<const flatbuf::Block*>> FileBlocksToFlatbuffer(FBB& fbb, const std::vector<FileBlock>& blocks) { std::vector<flatbuf::Block> fb_blocks; for (const FileBlock& block : blocks) { fb_blocks.emplace_back(block.offset, block.metadata_length, block.body_length); } return fbb.CreateVectorOfStructs(fb_blocks); } Status WriteFileFooter(const Schema& schema, const std::vector<FileBlock>& dictionaries, const std::vector<FileBlock>& record_batches, io::OutputStream* out) { FBB fbb; flatbuffers::Offset<flatbuf::Schema> fb_schema; RETURN_NOT_OK(SchemaToFlatbuffer(fbb, schema, &fb_schema)); auto fb_dictionaries = FileBlocksToFlatbuffer(fbb, dictionaries); auto fb_record_batches = FileBlocksToFlatbuffer(fbb, record_batches); auto footer = flatbuf::CreateFooter( fbb, kMetadataVersion, fb_schema, fb_dictionaries, fb_record_batches); fbb.Finish(footer); int32_t size = fbb.GetSize(); return out->Write(fbb.GetBufferPointer(), size); } static inline FileBlock FileBlockFromFlatbuffer(const flatbuf::Block* block) { return FileBlock(block->offset(), block->metaDataLength(), block->bodyLength()); } class FileFooter::FileFooterImpl { public: FileFooterImpl(const std::shared_ptr<Buffer>& buffer, const flatbuf::Footer* footer) : buffer_(buffer), footer_(footer) {} int num_dictionaries() const { return footer_->dictionaries()->size(); } int num_record_batches() const { return footer_->recordBatches()->size(); } MetadataVersion::type version() const { switch (footer_->version()) { case flatbuf::MetadataVersion_V1: return MetadataVersion::V1; case flatbuf::MetadataVersion_V2: return MetadataVersion::V2; // Add cases as other versions become available default: return MetadataVersion::V2; } } FileBlock record_batch(int i) const { return FileBlockFromFlatbuffer(footer_->recordBatches()->Get(i)); } FileBlock dictionary(int i) const { return FileBlockFromFlatbuffer(footer_->dictionaries()->Get(i)); } Status GetSchema(std::shared_ptr<Schema>* out) const { auto schema_msg = std::make_shared<SchemaMetadata>(nullptr, footer_->schema()); return schema_msg->GetSchema(out); } private: // Retain reference to memory std::shared_ptr<Buffer> buffer_; const flatbuf::Footer* footer_; }; FileFooter::FileFooter() {} FileFooter::~FileFooter() {} Status FileFooter::Open( const std::shared_ptr<Buffer>& buffer, std::unique_ptr<FileFooter>* out) { const flatbuf::Footer* footer = flatbuf::GetFooter(buffer->data()); *out = std::unique_ptr<FileFooter>(new FileFooter()); // TODO(wesm): Verify the footer (*out)->impl_.reset(new FileFooterImpl(buffer, footer)); return Status::OK(); } int FileFooter::num_dictionaries() const { return impl_->num_dictionaries(); } int FileFooter::num_record_batches() const { return impl_->num_record_batches(); } MetadataVersion::type FileFooter::version() const { return impl_->version(); } FileBlock FileFooter::record_batch(int i) const { return impl_->record_batch(i); } FileBlock FileFooter::dictionary(int i) const { return impl_->dictionary(i); } Status FileFooter::GetSchema(std::shared_ptr<Schema>* out) const { return impl_->GetSchema(out); } // ---------------------------------------------------------------------- // File writer implementation FileWriter::FileWriter(io::OutputStream* sink, const std::shared_ptr<Schema>& schema) : StreamWriter(sink, schema) {} Status FileWriter::Open(io::OutputStream* sink, const std::shared_ptr<Schema>& schema, std::shared_ptr<FileWriter>* out) { *out = std::shared_ptr<FileWriter>(new FileWriter(sink, schema)); // ctor is private RETURN_NOT_OK((*out)->UpdatePosition()); return Status::OK(); } Status FileWriter::Start() { RETURN_NOT_OK(WriteAligned( reinterpret_cast<const uint8_t*>(kArrowMagicBytes), strlen(kArrowMagicBytes))); started_ = true; return Status::OK(); } Status FileWriter::WriteRecordBatch(const RecordBatch& batch) { // Push an empty FileBlock // Append metadata, to be written in the footer later record_batches_.emplace_back(0, 0, 0); return StreamWriter::WriteRecordBatch( batch, &record_batches_[record_batches_.size() - 1]); } Status FileWriter::Close() { // Write metadata int64_t initial_position = position_; RETURN_NOT_OK(WriteFileFooter(*schema_, dictionaries_, record_batches_, sink_)); RETURN_NOT_OK(UpdatePosition()); // Write footer length int32_t footer_length = position_ - initial_position; if (footer_length <= 0) { return Status::Invalid("Invalid file footer"); } RETURN_NOT_OK(Write(reinterpret_cast<const uint8_t*>(&footer_length), sizeof(int32_t))); // Write magic bytes to end file return Write( reinterpret_cast<const uint8_t*>(kArrowMagicBytes), strlen(kArrowMagicBytes)); } // ---------------------------------------------------------------------- // Reader implementation FileReader::FileReader( const std::shared_ptr<io::ReadableFileInterface>& file, int64_t footer_offset) : file_(file), footer_offset_(footer_offset) {} FileReader::~FileReader() {} Status FileReader::Open(const std::shared_ptr<io::ReadableFileInterface>& file, std::shared_ptr<FileReader>* reader) { int64_t footer_offset; RETURN_NOT_OK(file->GetSize(&footer_offset)); return Open(file, footer_offset, reader); } Status FileReader::Open(const std::shared_ptr<io::ReadableFileInterface>& file, int64_t footer_offset, std::shared_ptr<FileReader>* reader) { *reader = std::shared_ptr<FileReader>(new FileReader(file, footer_offset)); return (*reader)->ReadFooter(); } Status FileReader::ReadFooter() { int magic_size = static_cast<int>(strlen(kArrowMagicBytes)); if (footer_offset_ <= magic_size * 2 + 4) { std::stringstream ss; ss << "File is too small: " << footer_offset_; return Status::Invalid(ss.str()); } std::shared_ptr<Buffer> buffer; int file_end_size = magic_size + sizeof(int32_t); RETURN_NOT_OK(file_->ReadAt(footer_offset_ - file_end_size, file_end_size, &buffer)); if (memcmp(buffer->data() + sizeof(int32_t), kArrowMagicBytes, magic_size)) { return Status::Invalid("Not an Arrow file"); } int32_t footer_length = *reinterpret_cast<const int32_t*>(buffer->data()); if (footer_length <= 0 || footer_length + magic_size * 2 + 4 > footer_offset_) { return Status::Invalid("File is smaller than indicated metadata size"); } // Now read the footer RETURN_NOT_OK(file_->ReadAt( footer_offset_ - footer_length - file_end_size, footer_length, &buffer)); RETURN_NOT_OK(FileFooter::Open(buffer, &footer_)); // Get the schema return footer_->GetSchema(&schema_); } std::shared_ptr<Schema> FileReader::schema() const { return schema_; } int FileReader::num_dictionaries() const { return footer_->num_dictionaries(); } int FileReader::num_record_batches() const { return footer_->num_record_batches(); } MetadataVersion::type FileReader::version() const { return footer_->version(); } Status FileReader::GetRecordBatch(int i, std::shared_ptr<RecordBatch>* batch) { DCHECK_GE(i, 0); DCHECK_LT(i, num_record_batches()); FileBlock block = footer_->record_batch(i); std::shared_ptr<RecordBatchMetadata> metadata; RETURN_NOT_OK(ReadRecordBatchMetadata( block.offset, block.metadata_length, file_.get(), &metadata)); // TODO(wesm): ARROW-388 -- the buffer frame of reference is 0 (see // ARROW-384). std::shared_ptr<Buffer> buffer_block; RETURN_NOT_OK(file_->Read(block.body_length, &buffer_block)); io::BufferReader reader(buffer_block); return ReadRecordBatch(metadata, schema_, &reader, batch); } } // namespace ipc } // namespace arrow
31.163265
90
0.712726
DonaldFoss
3b1a2072dde5c79af4b33b31479b7aed692d8418
473
cpp
C++
Unrest-iOS/Line.cpp
arvindrajayadav/unrest
d89f20e95fbcdef37a47ab1454b2479522a0e43f
[ "MIT" ]
11
2020-08-04T08:37:46.000Z
2022-03-31T22:35:15.000Z
CRAB/Line.cpp
arvindrajayadav/unrest
d89f20e95fbcdef37a47ab1454b2479522a0e43f
[ "MIT" ]
1
2020-12-16T16:51:52.000Z
2020-12-18T06:35:38.000Z
Unrest-iOS/Line.cpp
arvindrajayadav/unrest
d89f20e95fbcdef37a47ab1454b2479522a0e43f
[ "MIT" ]
7
2020-08-04T09:34:20.000Z
2021-09-11T03:00:16.000Z
#include "stdafx.h" #include "Line.h" //------------------------------------------------------------------------ // Purpose: Draw a line from start to end //------------------------------------------------------------------------ void DrawLine(const int &x1, const int &y1, const int &x2, const int &y2, const Uint8 &r, const Uint8 &g, const Uint8 &b, const Uint8 &a) { SDL_SetRenderDrawColor(gRenderer, r, g, b, a); SDL_RenderDrawLine(gRenderer, x1, y1, x2, y2); }
39.416667
74
0.469345
arvindrajayadav
3b1ac9dda4777a3a580d8f60463a3e14f5405b78
7,881
cc
C++
src/xqp/interact.cc
DouglasRMiles/QuProlog
798d86f87fb4372b8918ef582ef2f0fc0181af2d
[ "Apache-2.0" ]
5
2019-11-20T02:05:31.000Z
2022-01-06T18:59:16.000Z
src/xqp/interact.cc
logicmoo/QuProlog
798d86f87fb4372b8918ef582ef2f0fc0181af2d
[ "Apache-2.0" ]
null
null
null
src/xqp/interact.cc
logicmoo/QuProlog
798d86f87fb4372b8918ef582ef2f0fc0181af2d
[ "Apache-2.0" ]
2
2022-01-08T13:52:24.000Z
2022-03-07T17:41:37.000Z
/*************************************************************************** interact.cc - QP interaction widget ------------------- begin : April 2004 copyright : (C) 2004 by Peter Robinson email : [email protected] ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ // $Id: interact.cc,v 1.3 2004/05/25 04:31:33 qp Exp $ #include <signal.h> #include <unistd.h> #include <string> #include <iostream> #include "interact.h" #include "term.h" #include "xqpqueries.h" #include <qmessagebox.h> #include <qfiledialog.h> #include <qfile.h> #include <qtextstream.h> #include <QKeyEvent> using namespace std; Interact::Interact( QWidget *box ) : QTextEdit(box) { parent = box; setFont( QFont( "Lucidatypewriter", 12, QFont::Normal ) ); indent = 0; readonly = false; connect(this, SIGNAL(send_cmd(QString)), box, SLOT(send_cmd_to_qp(QString))); in_history = false; hist_pos = 0; } void Interact::insert_at_end(QString s) { insertPlainText(s); QTextCursor cursor(textCursor()); cursor.movePosition(QTextCursor::End); setTextCursor(cursor); setTextColor(Qt::blue); in_query = (s.contains(QRegExp("'| \\?- $"))); //if (in_query) indent = cursor.position(); } void Interact::processF5(QString s) { QTextCursor cursor(textCursor()); cursor.movePosition(QTextCursor::End); cursor.insertText(s); setTextCursor(cursor); } void Interact::processReturn() { QTextCursor cursor(textCursor()); cursor.setPosition(indent); cursor.movePosition(QTextCursor::End, QTextCursor::KeepAnchor); in_history = false; QString cmd = cursor.selectedText(); cmd.replace(QChar::ParagraphSeparator, QString("\n")); if (!in_query || end_of_term(cmd, 0)) { cmd.append("\n"); send_cmd(cmd); cmd.truncate(cmd.length()-1); if (in_query) { addHistoryItem(new QString(cmd)); hist_pos = 0; } in_query = false; } } Interact::~Interact() { } void Interact::mouseReleaseEvent(QMouseEvent* e) { QTextCursor cursor(textCursor()); int p = cursor.position(); if (p < indent) { if (e->button() != Qt::MidButton) QTextEdit::mouseReleaseEvent(e); cursor.movePosition(QTextCursor::End); setTextCursor(cursor); readonly = true; } else { QTextEdit::mouseReleaseEvent(e); readonly = false; } } void Interact::mousePressEvent(QMouseEvent* e) { if (e->button() == Qt::MidButton) { QMouseEvent lbe(QEvent::MouseButtonPress, e->pos(), Qt::LeftButton, Qt::LeftButton, Qt::NoModifier); QTextEdit::mousePressEvent(&lbe); QTextEdit::mouseReleaseEvent(&lbe); } QTextEdit::mousePressEvent(e); } void Interact::cut() { if (readonly) QTextEdit::copy(); else QTextEdit::cut(); } void Interact::paste() { if (!readonly) QTextEdit::paste(); } void Interact::keyPressEvent(QKeyEvent *k) { int key_pressed = k->key(); if (key_pressed == Qt::Key_Control) { QTextEdit::keyPressEvent(k); return; } if (k->modifiers() == Qt::ControlModifier) { in_history = false; if (key_pressed == 'D') { emit ctrl_D_sig(); return; } if (key_pressed == 'C') { QTextEdit::keyPressEvent(k); return; } } if (readonly) { in_history = false; QTextCursor cursor(textCursor()); cursor.movePosition(QTextCursor::End); setTextCursor(cursor); } if (key_pressed == Qt::Key_Return) { processReturn(); } if ((key_pressed == Qt::Key_Backspace) || (key_pressed == Qt::Key_Left)) { int p; in_history = false; QTextCursor cursor(textCursor()); p = cursor.position(); if (p <= indent) { return; } } if (key_pressed == Qt::Key_Up) { QString* item; if (!in_history) { item = firstHistoryItem(); } else { item = nextHistoryItem(); } in_history = true; if (item != NULL) { QTextCursor cursor(textCursor()); cursor.setPosition(indent); cursor.movePosition(QTextCursor::End, QTextCursor::KeepAnchor); cursor.removeSelectedText(); setTextColor(Qt::blue); insertPlainText(*item); } return; } if (key_pressed == Qt::Key_Down) { QString* item = previousHistoryItem(); QTextCursor cursor(textCursor()); cursor.setPosition(indent); cursor.movePosition(QTextCursor::End, QTextCursor::KeepAnchor); cursor.removeSelectedText(); setTextColor(Qt::blue); if ( item != NULL) { insertPlainText(*item); } else { in_history = false; insertPlainText(""); } return; } if (key_pressed == Qt::Key_Home) { in_history = false; if (k->modifiers() == Qt::ControlModifier) { QTextCursor cursor(textCursor()); cursor.setPosition(indent); setTextCursor(cursor); return; } else { int p; QTextCursor cursor(textCursor()); cursor.movePosition(QTextCursor::StartOfBlock); p = cursor.position(); if (p > indent) { setTextCursor(cursor); } return; } } if (key_pressed == Qt::Key_PageUp) { in_history = false; QTextCursor cursor(textCursor()); cursor.setPosition(indent); setTextCursor(cursor); return; } in_history = false; QTextEdit::keyPressEvent(k); } void Interact::addHistoryItem(QString* s) { history.prepend(s); } QString* Interact::firstHistoryItem(void) { if (history.size() == 0) return NULL; return history.first(); } QString* Interact::nextHistoryItem(void) { if (history.size() <= hist_pos+1) return NULL; return history[++hist_pos]; } QString* Interact::previousHistoryItem(void) { if (hist_pos == 0) return NULL; return history[--hist_pos]; } void Interact::openQueryFile() { QString fileName = QFileDialog::getOpenFileName(this, QString::null, QString::null, "*"); if (fileName != QString::null) { QFile f(fileName); if (f.open(QIODevice::ReadOnly)) { QTextStream t(&f); XQPQueries* xqp_queries = new XQPQueries(parent, fileName, t.readAll()); xqp_queries->setFont(font()); connect(xqp_queries, SIGNAL(process_text(QString)), this, SLOT(processF5(QString))); connect(xqp_queries, SIGNAL(process_return()), this, SLOT(processReturn())); f.close(); } } } void Interact::saveHistory() { QString fileName = QFileDialog::getSaveFileName(this, QString::null, QString::null, "*"); if (fileName != QString::null) { QFile f(fileName); if (f.open(QIODevice::WriteOnly)) { QString* item = firstHistoryItem(); QTextStream out(&f); while (item != NULL) { out << *item << "\n"; item = nextHistoryItem(); } f.close(); } } } void Interact::saveSession() { QString fileName = QFileDialog::getSaveFileName(this, QString::null, QString::null, "*"); if (fileName != QString::null) { QFile f(fileName); if (f.open(QIODevice::WriteOnly)) { QString s = toPlainText(); QTextStream out(&f); out << s; f.close(); } } }
23.455357
91
0.572643
DouglasRMiles
3b238c796f289e927cbc5cd078f6372d39ea3cc8
1,294
hh
C++
include/netpoll.hh
henglinli/runtime
2ec1981113f35dee1ea793dad2fab197152d5e08
[ "BSD-3-Clause" ]
1
2016-08-24T16:57:21.000Z
2016-08-24T16:57:21.000Z
include/netpoll.hh
henglinli/runtime
2ec1981113f35dee1ea793dad2fab197152d5e08
[ "BSD-3-Clause" ]
null
null
null
include/netpoll.hh
henglinli/runtime
2ec1981113f35dee1ea793dad2fab197152d5e08
[ "BSD-3-Clause" ]
null
null
null
// -*-coding:utf-8-unix;-*- // #pragma once // #include "macros.hh" // namespace NAMESPACE { // template<typename Impl> class NetPoll { public: // NetPoll() = default; ~NetPoll() = default; // auto Init() -> int { return static_cast<Impl*>(this)->init(); } // auto Open(int fd, void *ptr) -> int { return static_cast<Impl*>(this)->open(fd, ptr); } // auto Close(int fd) -> int { return static_cast<Impl*>(this)->close(fd); } // auto Poll(bool block) -> int { return static_cast<Impl*>(this)->poll(block); } // private: friend class NetPoller; // DISALLOW_COPY_AND_ASSIGN(NetPoll); }; // class NetPoller final { public: NetPoller() = default; ~NetPoller() = default; // template<typename Impl> static auto Init(NetPoll<Impl>& poll) -> int { return poll.Init(); } // template<typename Impl> static auto Open(NetPoll<Impl>& poll, int fd, void *ptr) -> int { return poll.Open(fd, ptr); } // template<typename Impl> static auto Close(NetPoll<Impl>& poll, int fd) -> int { return poll.Close(fd); } // template<typename Impl> static auto Poll(NetPoll<Impl>& poll, bool block) -> int { return poll.Poll(block); } // private: DISALLOW_COPY_AND_ASSIGN(NetPoller); }; } // namespace NAMESPACE
19.313433
67
0.618238
henglinli
3b2420953d8544cfa292505e8536ffda0ffe47e1
1,085
cc
C++
example/udp_example.cc
jiejieTop/doralib
bf587aab93860a84e6d3cedf1dad206a44834f2e
[ "Apache-2.0" ]
4
2020-11-04T04:44:08.000Z
2021-12-16T08:38:05.000Z
example/udp_example.cc
jiejieTop/doralib
bf587aab93860a84e6d3cedf1dad206a44834f2e
[ "Apache-2.0" ]
1
2020-11-04T14:29:43.000Z
2020-11-05T04:51:33.000Z
example/udp_example.cc
jiejieTop/doralib
bf587aab93860a84e6d3cedf1dad206a44834f2e
[ "Apache-2.0" ]
2
2020-11-25T17:27:33.000Z
2021-02-24T09:31:00.000Z
/* * @Author: jiejie * @GitHub: https://github.com/jiejieTop * @Date: 2020-10-27 18:34:01 * @LastEditors: jiejie * @LastEditTime: 2020-11-15 11:46:20 * @Description: the code belongs to jiejie, please keep the author information and source code according to the license. */ #include "dora_socket.h" #include "dora_log.h" #define DGRAM_DATA "this is a udp test ..." int main(void) { char recv_buf[1024]; int len = 0; memset(recv_buf, 0, sizeof(recv_buf)); DORA_LOG_INFO("========================= udp ========================="); auto udp1 = new doralib::sock("127.0.0.4", "8001"); auto udp2 = new doralib::sock("127.0.0.4", "8002"); udp1->sock_bind("8002"); udp2->sock_bind("8001"); udp1->sock_write(DGRAM_DATA, strlen(DGRAM_DATA), "127.0.0.4", "8002"); len = udp1->sock_read(recv_buf, sizeof(recv_buf), NULL, NULL, 1000); DORA_LOG_INFO("len is {} : {}", len, recv_buf); udp1->sock_close(); udp2->sock_close(); DORA_LOG_INFO("========================= success ========================="); return 0; }
25.232558
121
0.576037
jiejieTop
3b2541469df1539733a74e9a7850caedac2e44a1
6,500
cpp
C++
ClockWork_Engine/GameObject.cpp
xsiro/NewClockWork_Engine
8da27311b179c6812e52d62cacbdd8ba7b538d9a
[ "MIT" ]
null
null
null
ClockWork_Engine/GameObject.cpp
xsiro/NewClockWork_Engine
8da27311b179c6812e52d62cacbdd8ba7b538d9a
[ "MIT" ]
null
null
null
ClockWork_Engine/GameObject.cpp
xsiro/NewClockWork_Engine
8da27311b179c6812e52d62cacbdd8ba7b538d9a
[ "MIT" ]
null
null
null
#include "GameObject.h" #include "ModuleComponent.h" #include "ModuleTransform.h" #include "ModuleMesh.h" #include "ModuleMaterial.h" #include "imgui.h" #include "Application.h" #include "Cam.h" #include "JSON.h" #include "MathGeoLib/include/MathGeoLib.h" #include <vector> GameObject::GameObject() : enabled(true), name("Game Object"), _parent(nullptr), to_delete(false), transform(nullptr), _visible(false) { transform = (ModuleTransform*)AddComponent(TRANSFORM); UUID = LCG().Int(); } GameObject::GameObject(GnMesh* mesh) : GameObject() { SetName(mesh->name); AddComponent((ModuleComponent*)mesh); } GameObject::~GameObject() { _parent = nullptr; for (size_t i = 0; i < components.size(); i++) { delete components[i]; components[i] = nullptr; } transform = nullptr; components.clear(); children.clear(); name.clear(); UUID = 0; } void GameObject::Update() { if (enabled) { for (size_t i = 0; i < components.size(); i++) { //Update Components if (components[i]->IsEnabled()) { if (components[i]->GetType() == ComponentType::MESH) { GnMesh* mesh = (GnMesh*)components[i]; GenerateAABB(mesh); if (App->renderer3D->IsInsideCameraView(_AABB)) mesh->Update(); } else { components[i]->Update(); } } } //Update Children for (size_t i = 0; i < children.size(); i++) { children[i]->Update(); } } } void GameObject::OnEditor() { ImGui::Checkbox("Enabled", &enabled); ImGui::SameLine(); static char buf[64] = "Name"; strcpy(buf, name.c_str()); if (ImGui::InputText("", &buf[0], IM_ARRAYSIZE(buf))) {} for (size_t i = 0; i < components.size(); i++) { components[i]->OnEditor(); } if (ImGui::CollapsingHeader("Debugging Information")) { if (_parent != nullptr) ImGui::Text("Parent: %s", _parent->GetName()); else ImGui::Text("No parent"); ImGui::Text("UUID: %d", UUID); } } void GameObject::Save(GnJSONArray& save_array) { JSON save_object; save_object.AddInt("UUID", UUID); if (_parent != nullptr) save_object.AddInt("Parent UUID", _parent->UUID); else save_object.AddInt("Parent UUID", 0); save_object.AddString("Name", name.c_str()); GnJSONArray componentsSave = save_object.AddArray("Components"); for (size_t i = 0; i < components.size(); i++) { components[i]->Save(componentsSave); } save_array.AddObject(save_object); for (size_t i = 0; i < children.size(); i++) { children[i]->Save(save_array); } } uint GameObject::Load(JSON* object) { UUID = object->GetInt("UUID"); name = object->GetString("Name", "No Name"); uint parentUUID = object->GetInt("Parent UUID"); GnJSONArray componentsArray = object->GetArray("Components"); for (size_t i = 0; i < componentsArray.Size(); i++) { JSON componentObject = componentsArray.GetObjectAt(i); ModuleComponent* component = AddComponent((ComponentType)componentObject.GetInt("Type")); component->Load(componentObject); } return parentUUID; } ModuleComponent* GameObject::GetComponent(ComponentType component) { for (size_t i = 0; i < components.size(); i++) { if (components[i]->GetType() == component) { return components[i]; } } return nullptr; } std::vector<ModuleComponent*> GameObject::GetComponents() { return components; } ModuleComponent* GameObject::AddComponent(ComponentType type) { ModuleComponent* ModuleComponent = nullptr; switch (type) { case TRANSFORM: if (transform != nullptr) { RemoveComponent(transform); } transform = new ModuleTransform(); ModuleComponent = transform; break; case MESH: ModuleComponent = new GnMesh(); break; case MATERIAL: ModuleComponent = new ModuleMaterial(this); break; case CAMERA: ModuleComponent = new Camera(this); break; case LIGHT: ModuleComponent = new Light(this); break; default: break; } ModuleComponent->SetGameObject(this); components.push_back(ModuleComponent); return ModuleComponent; } void GameObject::AddComponent(ModuleComponent* component) { components.push_back(component); component->SetGameObject(this); } bool GameObject::RemoveComponent(ModuleComponent* component) { bool ret = false; for (size_t i = 0; i < components.size(); i++) { if (components[i] == component) { delete components[i]; components.erase(components.begin() + i); component = nullptr; ret = true; } } return ret; } const char* GameObject::GetName() { return name.c_str(); } void GameObject::SetName(const char* g_name) { name = g_name; } void GameObject::SetTransform(ModuleTransform g_transform) { //localTransform->Set(g_transform.GetLocalTransform()); //localTransform->UpdateLocalTransform(); memcpy(transform, &g_transform, sizeof(g_transform)); } ModuleTransform* GameObject::GetTransform() { return transform; } AABB GameObject::GetAABB() { return _AABB; } bool GameObject::IsVisible() { return _visible; } void GameObject::AddChild(GameObject* child) { if (child != nullptr) children.push_back(child); child->SetParent(this); } int GameObject::GetChildrenAmount() { return children.size(); } GameObject* GameObject::GetChildAt(int index) { return children[index]; } GameObject* GameObject::GetParent() { return _parent; } void GameObject::SetParent(GameObject* g_parent) { _parent = g_parent; } void GameObject::Reparent(GameObject* newParent) { if (newParent != nullptr) { _parent->RemoveChild(this); _parent = newParent; newParent->AddChild(this); transform->ChangeParentTransform(newParent->GetTransform()->GetGlobalTransform()); } } bool GameObject::RemoveChild(GameObject* gameObject) { bool ret = false; for (size_t i = 0; i < children.size(); i++) { if (children[i] == gameObject) { children.erase(children.begin() + i); ret = true; } } return ret; } void GameObject::DeleteChildren() { for (size_t i = 0; i < children.size(); i++) { children[i]->DeleteChildren(); children[i] = nullptr; } this->~GameObject(); } void GameObject::UpdateChildrenTransforms() { transform->UpdateGlobalTransform(); for (size_t i = 0; i < children.size(); i++) { children[i]->GetTransform()->UpdateGlobalTransform(transform->GetGlobalTransform()); children[i]->UpdateChildrenTransforms(); } } void GameObject::GenerateAABB(GnMesh* mesh) { _OBB = mesh->GetAABB(); _OBB.Transform(transform->GetGlobalTransform()); _AABB.SetNegativeInfinity(); _AABB.Enclose(_OBB); float3 cornerPoints[8]; _AABB.GetCornerPoints(cornerPoints); App->renderer3D->DrawAABB(cornerPoints); }
19.061584
134
0.687692
xsiro
3b255d7d62fc90118f6999020039bb50710658ab
31,837
cpp
C++
libgambatte/src/memory.cpp
Gorialis/BizHawk
096277122553d38d87fa11c0cfe4d45e2682b939
[ "MIT" ]
null
null
null
libgambatte/src/memory.cpp
Gorialis/BizHawk
096277122553d38d87fa11c0cfe4d45e2682b939
[ "MIT" ]
null
null
null
libgambatte/src/memory.cpp
Gorialis/BizHawk
096277122553d38d87fa11c0cfe4d45e2682b939
[ "MIT" ]
null
null
null
// // Copyright (C) 2007 by sinamas <sinamas at users.sourceforge.net> // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Free Software Foundation. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License version 2 for more details. // // You should have received a copy of the GNU General Public License // version 2 along with this program; if not, write to the // Free Software Foundation, Inc., // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. // #include "memory.h" #include "gambatte.h" #include "savestate.h" #include "sound.h" #include "video.h" #include <algorithm> #include <cstring> using namespace gambatte; namespace { int const oam_size = 4 * lcd_num_oam_entries; void decCycles(unsigned long& counter, unsigned long dec) { if (counter != disabled_time) counter -= dec; } int serialCntFrom(unsigned long cyclesUntilDone, bool cgbFast) { return cgbFast ? (cyclesUntilDone + 0xF) >> 4 : (cyclesUntilDone + 0x1FF) >> 9; } } // unnamed namespace. Memory::Memory(Interrupter const& interrupter) : readCallback_(0) , writeCallback_(0) , execCallback_(0) , cdCallback_(0) , linkCallback_(0) , bios_(0) , getInput_(0) , divLastUpdate_(0) , lastOamDmaUpdate_(disabled_time) , lcd_(ioamhram_, 0, VideoInterruptRequester(intreq_)) , interrupter_(interrupter) , dmaSource_(0) , dmaDestination_(0) , oamDmaPos_(-2u & 0xFF) , oamDmaStartPos_(0) , serialCnt_(0) , blanklcd_(false) , LINKCABLE_(false) , linkClockTrigger_(false) , haltHdmaState_(hdma_low) { intreq_.setEventTime<intevent_blit>(1l * lcd_vres * lcd_cycles_per_line); intreq_.setEventTime<intevent_end>(0); } Memory::~Memory() { delete []bios_; } void Memory::setStatePtrs(SaveState &state) { state.mem.ioamhram.set(ioamhram_, sizeof ioamhram_); cart_.setStatePtrs(state); lcd_.setStatePtrs(state); psg_.setStatePtrs(state); } void Memory::loadState(SaveState const &state) { biosMode_ = state.mem.biosMode; stopped_ = state.mem.stopped; psg_.loadState(state); lcd_.loadState(state, state.mem.oamDmaPos < oam_size ? cart_.rdisabledRam() : ioamhram_); tima_.loadState(state, TimaInterruptRequester(intreq_)); cart_.loadState(state); intreq_.loadState(state); intreq_.setEventTime<intevent_serial>(state.mem.nextSerialtime > state.cpu.cycleCounter ? state.mem.nextSerialtime : state.cpu.cycleCounter); intreq_.setEventTime<intevent_unhalt>(state.mem.unhaltTime); lastOamDmaUpdate_ = state.mem.lastOamDmaUpdate; dmaSource_ = state.mem.dmaSource; dmaDestination_ = state.mem.dmaDestination; oamDmaPos_ = state.mem.oamDmaPos; oamDmaStartPos_ = 0; haltHdmaState_ = static_cast<HdmaState>(std::min(1u * state.mem.haltHdmaState, 1u * hdma_requested)); serialCnt_ = intreq_.eventTime(intevent_serial) != disabled_time ? serialCntFrom(intreq_.eventTime(intevent_serial) - state.cpu.cycleCounter, ioamhram_[0x102] & isCgb() * 2) : 8; cart_.setVrambank(ioamhram_[0x14F] & isCgb()); cart_.setOamDmaSrc(oam_dma_src_off); cart_.setWrambank(isCgb() && (ioamhram_[0x170] & 0x07) ? ioamhram_[0x170] & 0x07 : 1); if (lastOamDmaUpdate_ != disabled_time) { if (lastOamDmaUpdate_ > state.cpu.cycleCounter) { oamDmaStartPos_ = (oamDmaPos_ + (lastOamDmaUpdate_ - state.cpu.cycleCounter) / 4) & 0xFF; lastOamDmaUpdate_ = state.cpu.cycleCounter; } oamDmaInitSetup(); unsigned oamEventPos = oamDmaPos_ < oam_size ? oam_size : oamDmaStartPos_; intreq_.setEventTime<intevent_oam>( lastOamDmaUpdate_ + ((oamEventPos - oamDmaPos_) & 0xFF) * 4); } intreq_.setEventTime<intevent_blit>(ioamhram_[0x140] & lcdc_en ? lcd_.nextMode1IrqTime() : state.cpu.cycleCounter); blanklcd_ = false; if (!isCgb()) std::fill_n(cart_.vramdata() + vrambank_size(), vrambank_size(), 0); } void Memory::setEndtime(unsigned long cc, unsigned long inc) { if (intreq_.eventTime(intevent_blit) <= cc) { intreq_.setEventTime<intevent_blit>(intreq_.eventTime(intevent_blit) + (lcd_cycles_per_frame << isDoubleSpeed())); } intreq_.setEventTime<intevent_end>(cc + (inc << isDoubleSpeed())); } void Memory::updateSerial(unsigned long const cc) { if (!LINKCABLE_) { if (intreq_.eventTime(intevent_serial) != disabled_time) { if (intreq_.eventTime(intevent_serial) <= cc) { ioamhram_[0x101] = (((ioamhram_[0x101] + 1) << serialCnt_) - 1) & 0xFF; ioamhram_[0x102] &= 0x7F; intreq_.flagIrq(8, intreq_.eventTime(intevent_serial)); intreq_.setEventTime<intevent_serial>(disabled_time); } else { int const targetCnt = serialCntFrom(intreq_.eventTime(intevent_serial) - cc, ioamhram_[0x102] & isCgb() * 2); ioamhram_[0x101] = (((ioamhram_[0x101] + 1) << (serialCnt_ - targetCnt)) - 1) & 0xFF; serialCnt_ = targetCnt; } } } else { if (intreq_.eventTime(intevent_serial) != disabled_time) { if (intreq_.eventTime(intevent_serial) <= cc) { linkClockTrigger_ = true; intreq_.setEventTime<intevent_serial>(disabled_time); if (linkCallback_) linkCallback_(); } } } } void Memory::updateTimaIrq(unsigned long cc) { while (intreq_.eventTime(intevent_tima) <= cc) tima_.doIrqEvent(TimaInterruptRequester(intreq_)); } void Memory::updateIrqs(unsigned long cc) { updateSerial(cc); updateTimaIrq(cc); lcd_.update(cc); } unsigned long Memory::event(unsigned long cc) { if (lastOamDmaUpdate_ != disabled_time) updateOamDma(cc); switch (intreq_.minEventId()) { case intevent_unhalt: if ((lcd_.hdmaIsEnabled() && lcd_.isHdmaPeriod(cc) && haltHdmaState_ == hdma_low) || haltHdmaState_ == hdma_requested) { flagHdmaReq(intreq_); } intreq_.unhalt(); intreq_.setEventTime<intevent_unhalt>(disabled_time); stopped_ = false; break; case intevent_end: intreq_.setEventTime<intevent_end>(disabled_time - 1); while (cc >= intreq_.minEventTime() && intreq_.eventTime(intevent_end) != disabled_time) { cc = event(cc); } intreq_.setEventTime<intevent_end>(disabled_time); break; case intevent_blit: { bool const lcden = ioamhram_[0x140] & lcdc_en; unsigned long blitTime = intreq_.eventTime(intevent_blit); if (lcden | blanklcd_) { lcd_.updateScreen(blanklcd_, cc); intreq_.setEventTime<intevent_blit>(disabled_time); intreq_.setEventTime<intevent_end>(disabled_time); while (cc >= intreq_.minEventTime()) cc = event(cc); } else blitTime += lcd_cycles_per_frame << isDoubleSpeed(); blanklcd_ = lcden ^ 1; intreq_.setEventTime<intevent_blit>(blitTime); } break; case intevent_serial: updateSerial(cc); break; case intevent_oam: if (lastOamDmaUpdate_ != disabled_time) { unsigned const oamEventPos = oamDmaPos_ < oam_size ? oam_size : oamDmaStartPos_; intreq_.setEventTime<intevent_oam>( lastOamDmaUpdate_ + ((oamEventPos - oamDmaPos_) & 0xFF) * 4); } else intreq_.setEventTime<intevent_oam>(disabled_time); break; case intevent_dma: interrupter_.prefetch(cc, *this); cc = dma(cc); if (haltHdmaState_ == hdma_requested) { haltHdmaState_ = hdma_low; intreq_.setMinIntTime(cc); cc -= 4; } break; case intevent_tima: tima_.doIrqEvent(TimaInterruptRequester(intreq_)); break; case intevent_video: lcd_.update(cc); break; case intevent_interrupts: if (stopped_) { intreq_.setEventTime<intevent_interrupts>(disabled_time); break; } if (halted()) { cc += 4 * (isCgb() || cc - intreq_.eventTime(intevent_interrupts) < 2); if (cc > lastOamDmaUpdate_) updateOamDma(cc); if ((lcd_.hdmaIsEnabled() && lcd_.isHdmaPeriod(cc) && haltHdmaState_ == hdma_low) || haltHdmaState_ == hdma_requested) { flagHdmaReq(intreq_); } intreq_.unhalt(); intreq_.setEventTime<intevent_unhalt>(disabled_time); } if (ime()) { di(); cc = interrupter_.interrupt(cc, *this); } break; } return cc; } unsigned long Memory::dma(unsigned long cc) { bool const doubleSpeed = isDoubleSpeed(); unsigned dmaSrc = dmaSource_; unsigned dmaDest = dmaDestination_; unsigned dmaLength = ((ioamhram_[0x155] & 0x7F) + 1) * 0x10; unsigned length = hdmaReqFlagged(intreq_) ? 0x10 : dmaLength; if (1ul * dmaDest + length >= 0x10000) { length = 0x10000 - dmaDest; ioamhram_[0x155] |= 0x80; } dmaLength -= length; if (!(ioamhram_[0x140] & lcdc_en)) dmaLength = 0; unsigned long lOamDmaUpdate = lastOamDmaUpdate_; lastOamDmaUpdate_ = disabled_time; while (length--) { unsigned const src = dmaSrc++ & 0xFFFF; unsigned const data = (src & -vrambank_size()) == mm_vram_begin || src >= mm_oam_begin ? 0xFF : read(src, cc); cc += 2 + 2 * doubleSpeed; if (cc - 3 > lOamDmaUpdate && !halted()) { oamDmaPos_ = (oamDmaPos_ + 1) & 0xFF; lOamDmaUpdate += 4; if (oamDmaPos_ == oamDmaStartPos_) startOamDma(lOamDmaUpdate); if (oamDmaPos_ < oam_size) { ioamhram_[src & 0xFF] = data; } else if (oamDmaPos_ == oam_size) { endOamDma(lOamDmaUpdate); if (oamDmaStartPos_ == 0) lOamDmaUpdate = disabled_time; } } nontrivial_write(mm_vram_begin | dmaDest++ % vrambank_size(), data, cc); } lastOamDmaUpdate_ = lOamDmaUpdate; ackDmaReq(intreq_); cc += 4; dmaSource_ = dmaSrc; dmaDestination_ = dmaDest; ioamhram_[0x155] = halted() ? ioamhram_[0x155] | 0x80 : ((dmaLength / 0x10 - 1) & 0xFF) | (ioamhram_[0x155] & 0x80); if ((ioamhram_[0x155] & 0x80) && lcd_.hdmaIsEnabled()) { if (lastOamDmaUpdate_ != disabled_time) updateOamDma(cc); lcd_.disableHdma(cc); } return cc; } void Memory::freeze(unsigned long cc) { // permanently halt CPU. // simply halt and clear IE to avoid unhalt from occuring, // which avoids additional state to represent a "frozen" state. nontrivial_ff_write(0xFF, 0, cc); ackDmaReq(intreq_); intreq_.halt(); } bool Memory::halt(unsigned long cc) { if (lastOamDmaUpdate_ != disabled_time) updateOamDma(cc); haltHdmaState_ = lcd_.hdmaIsEnabled() && lcd_.isHdmaPeriod(cc) ? hdma_high : hdma_low; bool const hdmaReq = hdmaReqFlagged(intreq_); if (hdmaReq) haltHdmaState_ = hdma_requested; if (lastOamDmaUpdate_ != disabled_time) updateOamDma(cc + 4); ackDmaReq(intreq_); intreq_.halt(); return hdmaReq; } unsigned Memory::pendingIrqs(unsigned long cc) { if (lastOamDmaUpdate_ != disabled_time) updateOamDma(cc); updateIrqs(cc); return intreq_.pendingIrqs(); } void Memory::ackIrq(unsigned bit, unsigned long cc) { if (lastOamDmaUpdate_ != disabled_time) updateOamDma(cc); // TODO: adjust/extend IRQ assertion time rather than use the odd cc offsets? // NOTE: a minimum offset of 2 is required for the LCD due to implementation assumptions w.r.t. cc headroom. updateSerial(cc + 3 + isCgb()); updateTimaIrq(cc + 2 + isCgb()); lcd_.update(cc + 2); intreq_.ackIrq(bit); } unsigned long Memory::stop(unsigned long cc, bool &skip) { // FIXME: this is incomplete. intreq_.setEventTime<intevent_unhalt>(cc + 0x20000 + 4); // speed change. if (ioamhram_[0x14D] & isCgb()) { tima_.speedChange(TimaInterruptRequester(intreq_)); // DIV reset. nontrivial_ff_write(0x04, 0, cc); haltHdmaState_ = lcd_.hdmaIsEnabled() && lcd_.isHdmaPeriod(cc) ? hdma_high : hdma_low; skip = hdmaReqFlagged(intreq_); if (skip && isDoubleSpeed()) haltHdmaState_ = hdma_requested; unsigned long const cc_ = cc + 8 * !isDoubleSpeed(); if (cc_ >= cc + 4) { if (lastOamDmaUpdate_ != disabled_time) updateOamDma(cc + 4); if (!skip || isDoubleSpeed()) ackDmaReq(intreq_); intreq_.halt(); } psg_.speedChange(cc_, isDoubleSpeed()); lcd_.speedChange(cc_); cart_.speedChange(cc_); ioamhram_[0x14D] ^= 0x81; // TODO: perhaps make this a bit nicer? intreq_.setEventTime<intevent_blit>(ioamhram_[0x140] & lcdc_en ? lcd_.nextMode1IrqTime() : cc + (lcd_cycles_per_frame << isDoubleSpeed())); if (intreq_.eventTime(intevent_end) > cc_) { intreq_.setEventTime<intevent_end>(cc_ + (isDoubleSpeed() ? (intreq_.eventTime(intevent_end) - cc_) * 2 : (intreq_.eventTime(intevent_end) - cc_) / 2)); } if (cc_ < cc + 4) { if (lastOamDmaUpdate_ != disabled_time) updateOamDma(cc + 4); if (!skip || !isDoubleSpeed()) ackDmaReq(intreq_); intreq_.halt(); } // ensure that no updates with a previous cc occur. cc += 8; } else { // FIXME: test and implement stop correctly. skip = halt(cc); cc += 4; stopped_ = true; intreq_.setEventTime<intevent_unhalt>(disabled_time); } return cc; } void Memory::decEventCycles(IntEventId eventId, unsigned long dec) { if (intreq_.eventTime(eventId) != disabled_time) intreq_.setEventTime(eventId, intreq_.eventTime(eventId) - dec); } unsigned long Memory::resetCounters(unsigned long cc) { if (lastOamDmaUpdate_ != disabled_time) updateOamDma(cc); updateIrqs(cc); unsigned long const dec = cc < 0x20000 ? 0 : (cc & -0x10000l) - 0x10000; decCycles(divLastUpdate_, dec); decCycles(lastOamDmaUpdate_, dec); decEventCycles(intevent_serial, dec); decEventCycles(intevent_oam, dec); decEventCycles(intevent_blit, dec); decEventCycles(intevent_end, dec); decEventCycles(intevent_unhalt, dec); unsigned long const oldCC = cc; cc -= dec; intreq_.resetCc(oldCC, cc); cart_.resetCc(oldCC, cc); tima_.resetCc(oldCC, cc, TimaInterruptRequester(intreq_)); lcd_.resetCc(oldCC, cc); psg_.resetCounter(cc, oldCC, isDoubleSpeed()); return cc; } void Memory::updateInput() { unsigned state = 0xF; if ((ioamhram_[0x100] & 0x30) != 0x30 && getInput_) { unsigned input = (*getInput_)(); unsigned dpad_state = ~input >> 4; unsigned button_state = ~input; if (!(ioamhram_[0x100] & 0x10)) state &= dpad_state; if (!(ioamhram_[0x100] & 0x20)) state &= button_state; if (state != 0xF && (ioamhram_[0x100] & 0xF) == 0xF) intreq_.flagIrq(0x10); } ioamhram_[0x100] = (ioamhram_[0x100] & -0x10u) | state; } void Memory::updateOamDma(unsigned long const cc) { unsigned char const *const oamDmaSrc = oamDmaSrcPtr(); unsigned cycles = (cc - lastOamDmaUpdate_) >> 2; if (halted()) { lastOamDmaUpdate_ += 4 * cycles; } else while (cycles--) { oamDmaPos_ = (oamDmaPos_ + 1) & 0xFF; lastOamDmaUpdate_ += 4; if (oamDmaPos_ == oamDmaStartPos_) startOamDma(lastOamDmaUpdate_); if (oamDmaPos_ < oam_size) { ioamhram_[oamDmaPos_] = ((oamDmaSrc) ? oamDmaSrc[oamDmaPos_] : cart_.rtcRead()); } else if (oamDmaPos_ == oam_size) { endOamDma(lastOamDmaUpdate_); if (oamDmaStartPos_ == 0) { lastOamDmaUpdate_ = disabled_time; break; } } } } void Memory::oamDmaInitSetup() { if (ioamhram_[0x146] < mm_sram_begin / 0x100) { cart_.setOamDmaSrc(ioamhram_[0x146] < mm_vram_begin / 0x100 ? oam_dma_src_rom : oam_dma_src_vram); } else if (ioamhram_[0x146] < 0x100 - isCgb() * 0x20) { cart_.setOamDmaSrc(ioamhram_[0x146] < mm_wram_begin / 0x100 ? oam_dma_src_sram : oam_dma_src_wram); } else cart_.setOamDmaSrc(oam_dma_src_invalid); } unsigned char const* Memory::oamDmaSrcPtr() const { switch (cart_.oamDmaSrc()) { case oam_dma_src_rom: return cart_.romdata(ioamhram_[0x146] >> 6) + ioamhram_[0x146] * 0x100l; case oam_dma_src_sram: return cart_.rsrambankptr() ? cart_.rsrambankptr() + ioamhram_[0x146] * 0x100l : 0; case oam_dma_src_vram: return cart_.vrambankptr() + ioamhram_[0x146] * 0x100l; case oam_dma_src_wram: return cart_.wramdata(ioamhram_[0x146] >> 4 & 1) + (ioamhram_[0x146] * 0x100l & 0xFFF); case oam_dma_src_invalid: case oam_dma_src_off: break; } return cart_.rdisabledRam(); } void Memory::startOamDma(unsigned long cc) { oamDmaPos_ = 0; oamDmaStartPos_ = 0; lcd_.oamChange(cart_.rdisabledRam(), cc); } void Memory::endOamDma(unsigned long cc) { if (oamDmaStartPos_ == 0) { oamDmaPos_ = -2u & 0xFF; cart_.setOamDmaSrc(oam_dma_src_off); } lcd_.oamChange(ioamhram_, cc); } unsigned Memory::nontrivial_ff_read(unsigned const p, unsigned long const cc) { if (lastOamDmaUpdate_ != disabled_time) updateOamDma(cc); switch (p) { case 0x00: updateInput(); break; case 0x01: case 0x02: updateSerial(cc); break; case 0x04: return (cc - tima_.divLastUpdate()) >> 8 & 0xFF; case 0x05: ioamhram_[0x105] = tima_.tima(cc); break; case 0x0F: updateIrqs(cc); ioamhram_[0x10F] = intreq_.ifreg(); break; case 0x26: if (ioamhram_[0x126] & 0x80) { psg_.generateSamples(cc, isDoubleSpeed()); ioamhram_[0x126] = 0xF0 | psg_.getStatus(); } else ioamhram_[0x126] = 0x70; break; case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: case 0x3A: case 0x3B: case 0x3C: case 0x3D: case 0x3E: case 0x3F: psg_.generateSamples(cc, isDoubleSpeed()); return psg_.waveRamRead(p & 0xF); case 0x41: return ioamhram_[0x141] | lcd_.getStat(ioamhram_[0x145], cc); case 0x44: return lcd_.getLyReg(cc); case 0x69: return lcd_.cgbBgColorRead(ioamhram_[0x168] & 0x3F, cc); case 0x6B: return lcd_.cgbSpColorRead(ioamhram_[0x16A] & 0x3F, cc); default: break; } return ioamhram_[p + 0x100]; } unsigned Memory::nontrivial_read(unsigned const p, unsigned long const cc) { if (p < mm_hram_begin) { if (lastOamDmaUpdate_ != disabled_time) { updateOamDma(cc); if (cart_.isInOamDmaConflictArea(p) && oamDmaPos_ < oam_size) { int const r = isCgb() && cart_.oamDmaSrc() != oam_dma_src_wram && p >= mm_wram_begin ? cart_.wramdata(ioamhram_[0x146] >> 4 & 1)[p & 0xFFF] : ioamhram_[oamDmaPos_]; if (isCgb() && cart_.oamDmaSrc() == oam_dma_src_vram) ioamhram_[oamDmaPos_] = 0; return r; } } if (p < mm_wram_begin) { if (p < mm_vram_begin) return cart_.romdata(p >> 14)[p]; if (p < mm_sram_begin) { if (!lcd_.vramReadable(cc)) return 0xFF; return cart_.vrambankptr()[p]; } if (cart_.rsrambankptr()) return cart_.rsrambankptr()[p]; return cart_.rtcRead(); } if (p < mm_oam_begin) return cart_.wramdata(p >> 12 & 1)[p & 0xFFF]; long const ffp = static_cast<long>(p) - mm_io_begin; if (ffp >= 0) return nontrivial_ff_read(ffp, cc); if (!lcd_.oamReadable(cc) || oamDmaPos_ < oam_size) return 0xFF; } return ioamhram_[p - mm_oam_begin]; } unsigned Memory::nontrivial_peek(unsigned const p) { if (p < 0xC000) { if (p < 0x8000) return cart_.romdata(p >> 14)[p]; if (p < 0xA000) { return cart_.vrambankptr()[p]; } if (cart_.rsrambankptr()) return cart_.rsrambankptr()[p]; return cart_.rtcRead(); // verified side-effect free } if (p < 0xFE00) return cart_.wramdata(p >> 12 & 1)[p & 0xFFF]; if (p >= 0xFF00 && p < 0xFF80) return nontrivial_ff_peek(p); return ioamhram_[p - 0xFE00]; } unsigned Memory::nontrivial_ff_peek(unsigned const p) { // some regs may be somewhat wrong with this return ioamhram_[p - 0xFE00]; } void Memory::nontrivial_ff_write(unsigned const p, unsigned data, unsigned long const cc) { if (lastOamDmaUpdate_ != disabled_time) updateOamDma(cc); switch (p & 0xFF) { case 0x00: if ((data ^ ioamhram_[0x100]) & 0x30) { ioamhram_[0x100] = (ioamhram_[0x100] & ~0x30u) | (data & 0x30); updateInput(); } return; case 0x01: updateSerial(cc); break; case 0x02: updateSerial(cc); serialCnt_ = 8; if ((data & 0x81) == 0x81) { intreq_.setEventTime<intevent_serial>(data & isCgb() * 2 ? cc - (cc - tima_.divLastUpdate()) % 8 + 0x10 * serialCnt_ : cc - (cc - tima_.divLastUpdate()) % 0x100 + 0x200 * serialCnt_); } else intreq_.setEventTime<intevent_serial>(disabled_time); data |= 0x7E - isCgb() * 2; break; case 0x04: if (intreq_.eventTime(intevent_serial) != disabled_time && intreq_.eventTime(intevent_serial) > cc) { unsigned long const t = intreq_.eventTime(intevent_serial); unsigned long const n = ioamhram_[0x102] & isCgb() * 2 ? t + (cc - t) % 8 - 2 * ((cc - t) & 4) : t + (cc - t) % 0x100 - 2 * ((cc - t) & 0x80); intreq_.setEventTime<intevent_serial>(std::max(cc, n)); } psg_.generateSamples(cc, isDoubleSpeed()); psg_.divReset(isDoubleSpeed()); tima_.divReset(cc, TimaInterruptRequester(intreq_)); return; case 0x05: tima_.setTima(data, cc, TimaInterruptRequester(intreq_)); break; case 0x06: tima_.setTma(data, cc, TimaInterruptRequester(intreq_)); break; case 0x07: data |= 0xF8; tima_.setTac(data, cc, TimaInterruptRequester(intreq_), agbMode_); break; case 0x0F: updateIrqs(cc + 1 + isDoubleSpeed()); intreq_.setIfreg(0xE0 | data); return; case 0x10: if (!psg_.isEnabled()) return; psg_.generateSamples(cc, isDoubleSpeed()); psg_.setNr10(data); data |= 0x80; break; case 0x11: if (!psg_.isEnabled()) { if (isCgb()) return; data &= 0x3F; } psg_.generateSamples(cc, isDoubleSpeed()); psg_.setNr11(data); data |= 0x3F; break; case 0x12: if (!psg_.isEnabled()) return; psg_.generateSamples(cc, isDoubleSpeed()); psg_.setNr12(data); break; case 0x13: if (!psg_.isEnabled()) return; psg_.generateSamples(cc, isDoubleSpeed()); psg_.setNr13(data); return; case 0x14: if (!psg_.isEnabled()) return; psg_.generateSamples(cc, isDoubleSpeed()); psg_.setNr14(data, isDoubleSpeed()); data |= 0xBF; break; case 0x16: if (!psg_.isEnabled()) { if (isCgb()) return; data &= 0x3F; } psg_.generateSamples(cc, isDoubleSpeed()); psg_.setNr21(data); data |= 0x3F; break; case 0x17: if (!psg_.isEnabled()) return; psg_.generateSamples(cc, isDoubleSpeed()); psg_.setNr22(data); break; case 0x18: if (!psg_.isEnabled()) return; psg_.generateSamples(cc, isDoubleSpeed()); psg_.setNr23(data); return; case 0x19: if (!psg_.isEnabled()) return; psg_.generateSamples(cc, isDoubleSpeed()); psg_.setNr24(data, isDoubleSpeed()); data |= 0xBF; break; case 0x1A: if (!psg_.isEnabled()) return; psg_.generateSamples(cc, isDoubleSpeed()); psg_.setNr30(data); data |= 0x7F; break; case 0x1B: if (!psg_.isEnabled() && isCgb()) return; psg_.generateSamples(cc, isDoubleSpeed()); psg_.setNr31(data); return; case 0x1C: if (!psg_.isEnabled()) return; psg_.generateSamples(cc, isDoubleSpeed()); psg_.setNr32(data); data |= 0x9F; break; case 0x1D: if (!psg_.isEnabled()) return; psg_.generateSamples(cc, isDoubleSpeed()); psg_.setNr33(data); return; case 0x1E: if (!psg_.isEnabled()) return; psg_.generateSamples(cc, isDoubleSpeed()); psg_.setNr34(data); data |= 0xBF; break; case 0x20: if (!psg_.isEnabled() && isCgb()) return; psg_.generateSamples(cc, isDoubleSpeed()); psg_.setNr41(data); return; case 0x21: if (!psg_.isEnabled()) return; psg_.generateSamples(cc, isDoubleSpeed()); psg_.setNr42(data); break; case 0x22: if (!psg_.isEnabled()) return; psg_.generateSamples(cc, isDoubleSpeed()); psg_.setNr43(data); break; case 0x23: if (!psg_.isEnabled()) return; psg_.generateSamples(cc, isDoubleSpeed()); psg_.setNr44(data); data |= 0xBF; break; case 0x24: if (!psg_.isEnabled()) return; psg_.generateSamples(cc, isDoubleSpeed()); psg_.setSoVolume(data); break; case 0x25: if (!psg_.isEnabled()) return; psg_.generateSamples(cc, isDoubleSpeed()); psg_.mapSo(data); break; case 0x26: if ((ioamhram_[0x126] ^ data) & 0x80) { psg_.generateSamples(cc, isDoubleSpeed()); if (!(data & 0x80)) { for (unsigned i = 0x10; i < 0x26; ++i) ff_write(i, 0, cc); psg_.setEnabled(false); } else { psg_.reset(isDoubleSpeed()); psg_.setEnabled(true); } } data = (data & 0x80) | (ioamhram_[0x126] & 0x7F); break; case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: case 0x3A: case 0x3B: case 0x3C: case 0x3D: case 0x3E: case 0x3F: psg_.generateSamples(cc, isDoubleSpeed()); psg_.waveRamWrite(p & 0xF, data); break; case 0x40: if (ioamhram_[0x140] != data) { if ((ioamhram_[0x140] ^ data) & lcdc_en) { unsigned const stat = data & lcdc_en ? ioamhram_[0x141] : lcd_.getStat(ioamhram_[0x145], cc); bool const hdmaEnabled = lcd_.hdmaIsEnabled(); lcd_.lcdcChange(data, cc); ioamhram_[0x144] = 0; ioamhram_[0x141] &= 0xF8; if (data & lcdc_en) { if (ioamhram_[0x141] & lcdstat_lycirqen && ioamhram_[0x145] == 0 && !(stat & lcdstat_lycflag)) intreq_.flagIrq(2); intreq_.setEventTime<intevent_blit>(blanklcd_ ? lcd_.nextMode1IrqTime() : lcd_.nextMode1IrqTime() + (lcd_cycles_per_frame << isDoubleSpeed())); } else { ioamhram_[0x141] |= stat & lcdstat_lycflag; intreq_.setEventTime<intevent_blit>( cc + (lcd_cycles_per_line * 4 << isDoubleSpeed())); if (hdmaEnabled) flagHdmaReq(intreq_); } } else lcd_.lcdcChange(data, cc); ioamhram_[0x140] = data; } return; case 0x41: lcd_.lcdstatChange(data, cc); if (!(ioamhram_[0x140] & lcdc_en) && (ioamhram_[0x141] & lcdstat_lycflag) && (~ioamhram_[0x141] & lcdstat_lycirqen & (isCgb() ? data : -1))) { intreq_.flagIrq(2); } data = (ioamhram_[0x141] & 0x87) | (data & 0x78); break; case 0x42: lcd_.scyChange(data, cc); break; case 0x43: lcd_.scxChange(data, cc); break; case 0x45: lcd_.lycRegChange(data, cc); break; case 0x46: lastOamDmaUpdate_ = cc; oamDmaStartPos_ = (oamDmaPos_ + 2) & 0xFF; intreq_.setEventTime<intevent_oam>(std::min(intreq_.eventTime(intevent_oam), cc + 8)); ioamhram_[0x146] = data; oamDmaInitSetup(); return; case 0x47: if (!isCgb() || isCgbDmg()) lcd_.dmgBgPaletteChange(data, cc); break; case 0x48: if (!isCgb() || isCgbDmg()) lcd_.dmgSpPalette1Change(data, cc); break; case 0x49: if (!isCgb() || isCgbDmg()) lcd_.dmgSpPalette2Change(data, cc); break; case 0x4A: lcd_.wyChange(data, cc); break; case 0x4B: lcd_.wxChange(data, cc); break; case 0x4C: if (!biosMode_) return; break; case 0x4D: if (isCgb() && !isCgbDmg()) ioamhram_[0x14D] = (ioamhram_[0x14D] & ~1u) | (data & 1); return; case 0x4F: if (isCgb() && !isCgbDmg()) { cart_.setVrambank(data & 1); ioamhram_[0x14F] = 0xFE | data; } return; case 0x50: if (!biosMode_) return; if (isCgb() && (ioamhram_[0x14C] & 0x04)) { lcd_.copyCgbPalettesToDmg(); lcd_.setCgbDmg(true); } biosMode_ = false; return; case 0x51: dmaSource_ = data << 8 | (dmaSource_ & 0xFF); return; case 0x52: dmaSource_ = (dmaSource_ & 0xFF00) | (data & 0xF0); return; case 0x53: dmaDestination_ = data << 8 | (dmaDestination_ & 0xFF); return; case 0x54: dmaDestination_ = (dmaDestination_ & 0xFF00) | (data & 0xF0); return; case 0x55: if (isCgb()) { ioamhram_[0x155] = data & 0x7F; if (lcd_.hdmaIsEnabled()) { if (!(data & 0x80)) { ioamhram_[0x155] |= 0x80; lcd_.disableHdma(cc); } } else { if (data & 0x80) { if (ioamhram_[0x140] & lcdc_en) { lcd_.enableHdma(cc); } else flagHdmaReq(intreq_); } else flagGdmaReq(intreq_); } } return; case 0x56: if (isCgb()) ioamhram_[0x156] = data | 0x3E; return; case 0x68: if (isCgb()) ioamhram_[0x168] = data | 0x40; return; case 0x69: if (isCgb()) { unsigned index = ioamhram_[0x168] & 0x3F; lcd_.cgbBgColorChange(index, data, cc); ioamhram_[0x168] = (ioamhram_[0x168] & ~0x3Fu) | ((index + (ioamhram_[0x168] >> 7)) & 0x3F); } return; case 0x6A: if (isCgb()) ioamhram_[0x16A] = data | 0x40; return; case 0x6B: if (isCgb()) { unsigned index = ioamhram_[0x16A] & 0x3F; lcd_.cgbSpColorChange(index, data, cc); ioamhram_[0x16A] = (ioamhram_[0x16A] & ~0x3Fu) | ((index + (ioamhram_[0x16A] >> 7)) & 0x3F); } return; case 0x6C: if (isCgb()) ioamhram_[0x16C] = data | 0xFE; return; case 0x70: if (isCgb() && !isCgbDmg()) { cart_.setWrambank(data & 0x07 ? data & 0x07 : 1); ioamhram_[0x170] = data | 0xF8; } return; case 0x72: case 0x73: case 0x74: if (isCgb()) break; return; case 0x75: if (isCgb()) ioamhram_[0x175] = data | 0x8F; return; case 0xFF: intreq_.setIereg(data); break; default: return; } ioamhram_[p + 0x100] = data; } void Memory::nontrivial_write(unsigned const p, unsigned const data, unsigned long const cc) { if (lastOamDmaUpdate_ != disabled_time) { updateOamDma(cc); if (cart_.isInOamDmaConflictArea(p) && oamDmaPos_ < oam_size) { if (isCgb()) { if (p < mm_wram_begin) ioamhram_[oamDmaPos_] = cart_.oamDmaSrc() != oam_dma_src_vram ? data : 0; else if (cart_.oamDmaSrc() != oam_dma_src_wram) cart_.wramdata(ioamhram_[0x146] >> 4 & 1)[p & 0xFFF] = data; } else { ioamhram_[oamDmaPos_] = cart_.oamDmaSrc() == oam_dma_src_wram ? ioamhram_[oamDmaPos_] & data : data; } return; } } if (p < mm_oam_begin) { if (p < mm_sram_begin) { if (p < mm_vram_begin) { cart_.mbcWrite(p, data, cc); } else if (lcd_.vramWritable(cc)) { lcd_.vramChange(cc); cart_.vrambankptr()[p] = data; } } else if (p < mm_wram_begin) { if (cart_.wsrambankptr()) cart_.wsrambankptr()[p] = data; else cart_.rtcWrite(data, cc); } else cart_.wramdata(p >> 12 & 1)[p & 0xFFF] = data; } else if (p - mm_hram_begin >= 0x7Fu) { long const ffp = static_cast<long>(p) - mm_io_begin; if (ffp < 0) { if (lcd_.oamWritable(cc) && oamDmaPos_ >= oam_size && (p < mm_oam_begin + oam_size || isCgb())) { lcd_.oamChange(cc); ioamhram_[p - mm_oam_begin] = data; } } else nontrivial_ff_write(ffp, data, cc); } else ioamhram_[p - mm_oam_begin] = data; } LoadRes Memory::loadROM(char const *romfiledata, unsigned romfilelength, unsigned const flags) { bool const forceDmg = flags & GB::LoadFlag::FORCE_DMG; bool const multicartCompat = flags & GB::LoadFlag::MULTICART_COMPAT; if (LoadRes const fail = cart_.loadROM(romfiledata, romfilelength, forceDmg, multicartCompat)) return fail; psg_.init(cart_.isCgb()); lcd_.reset(ioamhram_, cart_.vramdata(), cart_.isCgb()); agbMode_ = flags & GB::LoadFlag::GBA_CGB; return LOADRES_OK; } std::size_t Memory::fillSoundBuffer(unsigned long cc) { psg_.generateSamples(cc, isDoubleSpeed()); return psg_.fillBuffer(); } void Memory::setCgbPalette(unsigned *lut) { lcd_.setCgbPalette(lut); } bool Memory::getMemoryArea(int which, unsigned char **data, int *length) { if (!data || !length) return false; switch (which) { case 4: // oam *data = &ioamhram_[0]; *length = 160; return true; case 5: // hram *data = &ioamhram_[384]; *length = 128; return true; case 6: // bgpal *data = (unsigned char *)lcd_.bgPalette(); *length = 32; return true; case 7: // sppal *data = (unsigned char *)lcd_.spPalette(); *length = 32; return true; default: // pass to cartridge return cart_.getMemoryArea(which, data, length); } } int Memory::linkStatus(int which) { switch (which) { case 256: // ClockSignaled return linkClockTrigger_; case 257: // AckClockSignal linkClockTrigger_ = false; return 0; case 258: // GetOut return ioamhram_[0x101] & 0xff; case 259: // connect link cable LINKCABLE_ = true; return 0; default: // ShiftIn if (ioamhram_[0x102] & 0x80) // was enabled { ioamhram_[0x101] = which; ioamhram_[0x102] &= 0x7F; intreq_.flagIrq(8); } return 0; } return -1; } SYNCFUNC(Memory) { SSS(cart_); NSS(ioamhram_); NSS(divLastUpdate_); NSS(lastOamDmaUpdate_); SSS(intreq_); SSS(tima_); SSS(lcd_); SSS(psg_); NSS(dmaSource_); NSS(dmaDestination_); NSS(oamDmaPos_); NSS(serialCnt_); NSS(blanklcd_); NSS(biosMode_); NSS(stopped_); NSS(LINKCABLE_); NSS(linkClockTrigger_); }
24.17388
109
0.675001
Gorialis
3b2abbdc675cc379208cf0ac240f906852675bfe
1,713
cpp
C++
third_party/libigl/include/igl/orient_halfedges.cpp
chefmramos85/monster-mash
239a41f6f178ca83c4be638331e32f23606b0381
[ "Apache-2.0" ]
1,125
2021-02-01T09:51:56.000Z
2022-03-31T01:50:40.000Z
third_party/libigl/include/igl/orient_halfedges.cpp
ryan-cranfill/monster-mash
c1b906d996885f8a4011bdf7558e62e968e1e914
[ "Apache-2.0" ]
19
2021-02-01T12:36:30.000Z
2022-03-19T14:02:50.000Z
third_party/libigl/include/igl/orient_halfedges.cpp
ryan-cranfill/monster-mash
c1b906d996885f8a4011bdf7558e62e968e1e914
[ "Apache-2.0" ]
148
2021-02-13T10:54:31.000Z
2022-03-28T11:55:20.000Z
// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2020 Oded Stein <[email protected]> // // This Source Code Form is subject to the terms of the Mozilla Public License // v. 2.0. If a copy of the MPL was not distributed with this file, You can // obtain one at http://mozilla.org/MPL/2.0/. #include "orient_halfedges.h" #include "oriented_facets.h" #include "unique_simplices.h" template <typename DerivedF, typename DerivedE, typename DerivedOE> IGL_INLINE void igl::orient_halfedges( const Eigen::MatrixBase<DerivedF>& F, Eigen::PlainObjectBase<DerivedE>& E, Eigen::PlainObjectBase<DerivedOE>& oE) { assert(F.cols()==3 && "This only works for triangle meshes."); using Int = typename DerivedF::Scalar; const Eigen::Index m = F.rows(); DerivedE allE, EE; oriented_facets(F, allE); Eigen::Matrix<Int, Eigen::Dynamic, 1> IA, IC; unique_simplices(allE, EE, IA, IC); E.resize(m, 3); oE.resize(m, 3); for(Eigen::Index f=0; f<m; ++f) { for(int e=0; e<3; ++e) { const Int ind = f + m*e; E(f,e) = IC(ind); assert((EE(E(f,e),0)==allE(ind,0) || EE(E(f,e),0)==allE(ind,1)) && "Something is wrong in the edge matrix."); oE(f,e) = EE(E(f,e),0)==allE(ind,0) ? 1 : -1; } } } #ifdef IGL_STATIC_LIBRARY // Explicit template instantiation template void igl::orient_halfedges<Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1> >(Eigen::MatrixBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> >&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> >&); #endif
34.959184
350
0.638646
chefmramos85
3b2d2515bc65e7317ef6348de67ea288b25eade0
1,082
cpp
C++
sandbox/ardupilot/libraries/AP_HAL_AVR_SITL/utility/print_vprintf.cpp
prabhu-dev/LineDetectorLengthFix
2450bae17eb8bfbf0e3b942d765c5c4954715bde
[ "MIT" ]
null
null
null
sandbox/ardupilot/libraries/AP_HAL_AVR_SITL/utility/print_vprintf.cpp
prabhu-dev/LineDetectorLengthFix
2450bae17eb8bfbf0e3b942d765c5c4954715bde
[ "MIT" ]
null
null
null
sandbox/ardupilot/libraries/AP_HAL_AVR_SITL/utility/print_vprintf.cpp
prabhu-dev/LineDetectorLengthFix
2450bae17eb8bfbf0e3b942d765c5c4954715bde
[ "MIT" ]
null
null
null
// -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- /* * vprintf for SITL * * This firmware is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. */ #include <AP_HAL.h> #if CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL #include <AP_Progmem.h> #include <stdarg.h> #include <string.h> #include "print_vprintf.h" #include <stdio.h> #include <stdlib.h> void print_vprintf(AP_HAL::Print *s, unsigned char in_progmem, const char *fmt, va_list ap) { char *str = NULL; int i; char *fmt2 = strdup(fmt); for (i=0; fmt2[i]; i++) { // cope with %S if (fmt2[i] == '%' && fmt2[i+1] == 'S') { fmt2[i+1] = 's'; } } (void)vasprintf(&str, fmt2, ap); for (i=0; str[i]; i++) { s->write(str[i]); } free(str); free(fmt2); } #endif
27.05
91
0.554529
prabhu-dev
3b2e518527a3f0b45f97e73a0bea9f5f94ce10d0
944
cpp
C++
Chapter01/unique_ptr_3/unique_ptr_3.cpp
Vaibhav-Kashyap/-Learning-CPP-Functional-Programming-packt
3c7ef5fcfb161870b644595c69fdb3a3522d8411
[ "MIT" ]
41
2017-08-25T07:13:57.000Z
2022-01-06T12:28:33.000Z
Chapter01/unique_ptr_3/unique_ptr_3.cpp
Vaibhav-Kashyap/-Learning-CPP-Functional-Programming-packt
3c7ef5fcfb161870b644595c69fdb3a3522d8411
[ "MIT" ]
null
null
null
Chapter01/unique_ptr_3/unique_ptr_3.cpp
Vaibhav-Kashyap/-Learning-CPP-Functional-Programming-packt
3c7ef5fcfb161870b644595c69fdb3a3522d8411
[ "MIT" ]
26
2017-08-10T21:12:25.000Z
2021-11-17T07:25:04.000Z
/* unique_ptr_3.cpp */ #include <memory> #include <iostream> using namespace std; struct BodyMass { int Id; float Weight; BodyMass(int id, float weight) : Id(id), Weight(weight) { cout << "BodyMass is constructed!" << endl; cout << "Id = " << Id << endl; cout << "Weight = " << Weight << endl; } ~BodyMass() { cout << "BodyMass is destructed!" << endl; } }; unique_ptr<BodyMass> GetBodyMass() { return make_unique<BodyMass>(1, 165.3f); } unique_ptr<BodyMass> UpdateBodyMass( unique_ptr<BodyMass> bodyMass) { bodyMass->Weight += 1.0f; return bodyMass; } auto main() -> int { cout << "[unique_ptr_3.cpp]" << endl; auto myWeight = GetBodyMass(); cout << "Current weight = " << myWeight->Weight << endl; myWeight = UpdateBodyMass(move(myWeight)); cout << "Updated weight = " << myWeight->Weight << endl; return 0; }
17.811321
60
0.576271
Vaibhav-Kashyap
3b2ee455cae2e0886c62e163dada2132d3255fc6
11,549
cc
C++
src/Publisher_TEST.cc
amtj/ign-transport
3b386bf46efd2fc0b847aa7fd3911b1d9d27546c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/Publisher_TEST.cc
amtj/ign-transport
3b386bf46efd2fc0b847aa7fd3911b1d9d27546c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/Publisher_TEST.cc
amtj/ign-transport
3b386bf46efd2fc0b847aa7fd3911b1d9d27546c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
/* * Copyright (C) 2015 Open Source Robotics Foundation * * 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 <string> #include "ignition/transport/AdvertiseOptions.hh" #include "ignition/transport/Publisher.hh" #include "gtest/gtest.h" using namespace ignition; using namespace transport; // Global constants. static const std::string Topic = "/topic"; static const std::string Addr = "tcp://myAddress"; static const std::string PUuid = "processUUID"; static const std::string NUuid = "nodeUUID"; static const Scope_t Scope = Scope_t::ALL; static const std::string Ctrl = "controlAddress"; static const std::string SocketId = "socketId"; static const std::string MsgTypeName = "MessageType"; static const std::string ReqTypeName = "RequestType"; static const std::string RepTypeName = "ResponseType"; static const std::string NewTopic = "/newTopic"; static const std::string NewAddr = "tcp://anotherAddress"; static const std::string NewPUuid = "processUUID2"; static const std::string NewNUuid = "nodeUUID2"; static const Scope_t NewScope = Scope_t::HOST; static const std::string NewCtrl = "controlAddress2"; static const std::string NewSocketId = "socketId2"; static const std::string NewMsgTypeName = "MessageType2"; static const std::string NewReqTypeName = "RequestType2"; static const std::string NewRepTypeName = "ResponseType2"; ////////////////////////////////////////////////// /// \brief Check the Publisher accessors. TEST(PublisherTest, Publisher) { Publisher publisher(Topic, Addr, PUuid, NUuid, Scope); EXPECT_EQ(publisher.Topic(), Topic); EXPECT_EQ(publisher.Addr(), Addr); EXPECT_EQ(publisher.PUuid(), PUuid); EXPECT_EQ(publisher.NUuid(), NUuid); EXPECT_EQ(publisher.Scope(), Scope); size_t msgLength = sizeof(uint16_t) + publisher.Topic().size() + sizeof(uint16_t) + publisher.Addr().size() + sizeof(uint16_t) + publisher.PUuid().size() + sizeof(uint16_t) + publisher.NUuid().size() + sizeof(uint8_t); EXPECT_EQ(publisher.MsgLength(), msgLength); Publisher pub2(publisher); EXPECT_TRUE(publisher == pub2); EXPECT_FALSE(publisher != pub2); msgLength = sizeof(uint16_t) + pub2.Topic().size() + sizeof(uint16_t) + pub2.Addr().size() + sizeof(uint16_t) + pub2.PUuid().size() + sizeof(uint16_t) + pub2.NUuid().size() + sizeof(uint8_t); EXPECT_EQ(pub2.MsgLength(), msgLength); // Modify the publisher's member variables. publisher.SetTopic(NewTopic); publisher.SetAddr(NewAddr); publisher.SetPUuid(NewPUuid); publisher.SetNUuid(NewNUuid); publisher.SetScope(NewScope); EXPECT_EQ(publisher.Topic(), NewTopic); EXPECT_EQ(publisher.Addr(), NewAddr); EXPECT_EQ(publisher.PUuid(), NewPUuid); EXPECT_EQ(publisher.NUuid(), NewNUuid); EXPECT_EQ(publisher.Scope(), NewScope); msgLength = sizeof(uint16_t) + publisher.Topic().size() + sizeof(uint16_t) + publisher.Addr().size() + sizeof(uint16_t) + publisher.PUuid().size() + sizeof(uint16_t) + publisher.NUuid().size() + sizeof(uint8_t); EXPECT_EQ(publisher.MsgLength(), msgLength); } ////////////////////////////////////////////////// /// \brief Check the Publisher Pack()/Unpack(). TEST(PublisherTest, PublisherIO) { // Try to pack an empty publisher. Publisher emptyPublisher; std::vector<char> buffer(emptyPublisher.MsgLength()); EXPECT_EQ(emptyPublisher.Pack(&buffer[0]), 0u); // Pack a Publisher. Publisher publisher(Topic, Addr, PUuid, NUuid, Scope); buffer.resize(publisher.MsgLength()); size_t bytes = publisher.Pack(&buffer[0]); EXPECT_EQ(bytes, publisher.MsgLength()); // Unpack the Publisher. Publisher otherPublisher; otherPublisher.Unpack(&buffer[0]); // Check that after Pack() and Unpack() the Publisher remains the same. EXPECT_EQ(publisher.Topic(), otherPublisher.Topic()); EXPECT_EQ(publisher.Addr(), otherPublisher.Addr()); EXPECT_EQ(publisher.PUuid(), otherPublisher.PUuid()); EXPECT_EQ(publisher.NUuid(), otherPublisher.NUuid()); EXPECT_EQ(publisher.Scope(), otherPublisher.Scope()); // Try to pack a header passing a NULL buffer. EXPECT_EQ(otherPublisher.Pack(nullptr), 0u); // Try to unpack a header passing a NULL buffer. EXPECT_EQ(otherPublisher.Unpack(nullptr), 0u); } ////////////////////////////////////////////////// /// \brief Check the MessagePublisher accessors. TEST(PublisherTest, MessagePublisher) { MessagePublisher publisher(Topic, Addr, Ctrl, PUuid, NUuid, Scope, MsgTypeName); EXPECT_EQ(publisher.Topic(), Topic); EXPECT_EQ(publisher.Addr(), Addr); EXPECT_EQ(publisher.Ctrl(), Ctrl); EXPECT_EQ(publisher.PUuid(), PUuid); EXPECT_EQ(publisher.NUuid(), NUuid); EXPECT_EQ(publisher.Scope(), Scope); EXPECT_EQ(publisher.MsgTypeName(), MsgTypeName); size_t msgLength = publisher.Publisher::MsgLength() + sizeof(uint16_t) + publisher.Ctrl().size() + sizeof(uint16_t) + publisher.MsgTypeName().size(); EXPECT_EQ(publisher.MsgLength(), msgLength); MessagePublisher pub2(publisher); EXPECT_TRUE(publisher == pub2); EXPECT_FALSE(publisher != pub2); msgLength = pub2.Publisher::MsgLength() + sizeof(uint16_t) + pub2.Ctrl().size() + sizeof(uint16_t) + pub2.MsgTypeName().size(); EXPECT_EQ(pub2.MsgLength(), msgLength); // Modify the publisher's member variables. publisher.SetTopic(NewTopic); publisher.SetAddr(NewAddr); publisher.SetCtrl(NewCtrl); publisher.SetPUuid(NewPUuid); publisher.SetNUuid(NewNUuid); publisher.SetScope(NewScope); publisher.SetMsgTypeName(NewMsgTypeName); EXPECT_EQ(publisher.Topic(), NewTopic); EXPECT_EQ(publisher.Addr(), NewAddr); EXPECT_EQ(publisher.Ctrl(), NewCtrl); EXPECT_EQ(publisher.PUuid(), NewPUuid); EXPECT_EQ(publisher.NUuid(), NewNUuid); EXPECT_EQ(publisher.Scope(), NewScope); EXPECT_EQ(publisher.MsgTypeName(), NewMsgTypeName); msgLength = publisher.Publisher::MsgLength() + sizeof(uint16_t) + publisher.Ctrl().size() + sizeof(uint16_t) + publisher.MsgTypeName().size(); EXPECT_EQ(publisher.MsgLength(), msgLength); } ////////////////////////////////////////////////// /// \brief Check the MessagePublisher Pack()/Unpack(). TEST(PublisherTest, MessagePublisherIO) { // Try to pack an empty publisher. MessagePublisher emptyPublisher; std::vector<char> buffer(emptyPublisher.MsgLength()); EXPECT_EQ(emptyPublisher.Pack(&buffer[0]), 0u); // Pack a Publisher. MessagePublisher publisher(Topic, Addr, Ctrl, PUuid, NUuid, Scope, MsgTypeName); buffer.resize(publisher.MsgLength()); size_t bytes = publisher.Pack(&buffer[0]); EXPECT_EQ(bytes, publisher.MsgLength()); // Unpack the Publisher. MessagePublisher otherPublisher; otherPublisher.Unpack(&buffer[0]); // Check that after Pack() and Unpack() the Publisher remains the same. EXPECT_EQ(publisher.Topic(), otherPublisher.Topic()); EXPECT_EQ(publisher.Addr(), otherPublisher.Addr()); EXPECT_EQ(publisher.Ctrl(), otherPublisher.Ctrl()); EXPECT_EQ(publisher.PUuid(), otherPublisher.PUuid()); EXPECT_EQ(publisher.NUuid(), otherPublisher.NUuid()); EXPECT_EQ(publisher.Scope(), otherPublisher.Scope()); EXPECT_EQ(publisher.MsgTypeName(), otherPublisher.MsgTypeName()); // Try to pack a header passing a NULL buffer. EXPECT_EQ(otherPublisher.Pack(nullptr), 0u); // Try to unpack a header passing a NULL buffer. EXPECT_EQ(otherPublisher.Unpack(nullptr), 0u); } ////////////////////////////////////////////////// /// \brief Check the ServicePublisher accessors. TEST(PublisherTest, ServicePublisher) { ServicePublisher publisher(Topic, Addr, SocketId, PUuid, NUuid, Scope, ReqTypeName, RepTypeName); EXPECT_EQ(publisher.Topic(), Topic); EXPECT_EQ(publisher.Addr(), Addr); EXPECT_EQ(publisher.SocketId(), SocketId); EXPECT_EQ(publisher.PUuid(), PUuid); EXPECT_EQ(publisher.NUuid(), NUuid); EXPECT_EQ(publisher.Scope(), Scope); EXPECT_EQ(publisher.ReqTypeName(), ReqTypeName); EXPECT_EQ(publisher.RepTypeName(), RepTypeName); size_t msgLength = publisher.Publisher::MsgLength() + sizeof(uint16_t) + publisher.SocketId().size() + sizeof(uint16_t) + publisher.ReqTypeName().size() + sizeof(uint16_t) + publisher.RepTypeName().size(); EXPECT_EQ(publisher.MsgLength(), msgLength); ServicePublisher pub2(publisher); EXPECT_TRUE(publisher == pub2); EXPECT_FALSE(publisher != pub2); msgLength = pub2.Publisher::MsgLength() + sizeof(uint16_t) + pub2.SocketId().size() + sizeof(uint16_t) + pub2.ReqTypeName().size() + sizeof(uint16_t) + pub2.RepTypeName().size(); EXPECT_EQ(pub2.MsgLength(), msgLength); // Modify the publisher's member variables. publisher.SetTopic(NewTopic); publisher.SetAddr(NewAddr); publisher.SetSocketId(NewSocketId); publisher.SetPUuid(NewPUuid); publisher.SetNUuid(NewNUuid); publisher.SetScope(NewScope); publisher.SetReqTypeName(NewReqTypeName); publisher.SetRepTypeName(NewRepTypeName); EXPECT_EQ(publisher.Topic(), NewTopic); EXPECT_EQ(publisher.Addr(), NewAddr); EXPECT_EQ(publisher.SocketId(), NewSocketId); EXPECT_EQ(publisher.PUuid(), NewPUuid); EXPECT_EQ(publisher.NUuid(), NewNUuid); EXPECT_EQ(publisher.Scope(), NewScope); EXPECT_EQ(publisher.ReqTypeName(), NewReqTypeName); EXPECT_EQ(publisher.RepTypeName(), NewRepTypeName); msgLength = publisher.Publisher::MsgLength() + sizeof(uint16_t) + publisher.SocketId().size() + sizeof(uint16_t) + publisher.ReqTypeName().size() + sizeof(uint16_t) + publisher.RepTypeName().size(); EXPECT_EQ(publisher.MsgLength(), msgLength); } ////////////////////////////////////////////////// /// \brief Check the ServicePublisher Pack()/Unpack(). TEST(PublisherTest, ServicePublisherIO) { // Try to pack an empty publisher. ServicePublisher emptyPublisher; std::vector<char> buffer(emptyPublisher.MsgLength()); EXPECT_EQ(emptyPublisher.Pack(&buffer[0]), 0u); // Pack a Publisher. ServicePublisher publisher(Topic, Addr, SocketId, PUuid, NUuid, Scope, ReqTypeName, RepTypeName); buffer.resize(publisher.MsgLength()); size_t bytes = publisher.Pack(&buffer[0]); EXPECT_EQ(bytes, publisher.MsgLength()); // Unpack the Publisher. ServicePublisher otherPublisher; otherPublisher.Unpack(&buffer[0]); // Check that after Pack() and Unpack() the Publisher remains the same. EXPECT_EQ(publisher.Topic(), otherPublisher.Topic()); EXPECT_EQ(publisher.Addr(), otherPublisher.Addr()); EXPECT_EQ(publisher.SocketId(), otherPublisher.SocketId()); EXPECT_EQ(publisher.PUuid(), otherPublisher.PUuid()); EXPECT_EQ(publisher.NUuid(), otherPublisher.NUuid()); EXPECT_EQ(publisher.Scope(), otherPublisher.Scope()); EXPECT_EQ(publisher.ReqTypeName(), otherPublisher.ReqTypeName()); EXPECT_EQ(publisher.RepTypeName(), otherPublisher.RepTypeName()); // Try to pack a header passing a NULL buffer. EXPECT_EQ(otherPublisher.Pack(nullptr), 0u); // Try to unpack a header passing a NULL buffer. EXPECT_EQ(otherPublisher.Unpack(nullptr), 0u); }
37.618893
75
0.707334
amtj
3b320c221eb4a7ead447225e0a7a17c50466a9ce
8,123
cpp
C++
wbsTools/MatchStations/MatchStationView.cpp
RNCan/WeatherBasedSimulationFramework
19df207d11b1dddf414d78e52bece77f31d45df8
[ "MIT" ]
6
2017-05-26T21:19:41.000Z
2021-09-03T14:17:29.000Z
wbsTools/MatchStations/MatchStationView.cpp
RNCan/WeatherBasedSimulationFramework
19df207d11b1dddf414d78e52bece77f31d45df8
[ "MIT" ]
5
2016-02-18T12:39:58.000Z
2016-03-13T12:57:45.000Z
wbsTools/MatchStations/MatchStationView.cpp
RNCan/WeatherBasedSimulationFramework
19df207d11b1dddf414d78e52bece77f31d45df8
[ "MIT" ]
1
2019-06-16T02:49:20.000Z
2019-06-16T02:49:20.000Z
// BioSIMView.cpp : implementation of the CDPTView class // #include "stdafx.h" #include "MatchStationDoc.h" #include "MatchStationView.h" #include "resource.h" #include "CommonRes.h" //#include "StudiesDefinitionsDlg.h" #include "MainFrm.h" #ifdef _DEBUG #define new DEBUG_NEW #endif using namespace UtilWin; using namespace CFL; using namespace std; // CDPTView IMPLEMENT_DYNCREATE(CDPTView, CView) const int IDC_STATISTIC_ID = 1001; const int IDC_VALIDITY_ID = 1002; const int IDC_GRID_ID = 1003; BEGIN_MESSAGE_MAP(CDPTView, CView) ON_WM_CREATE() ON_WM_SIZE() ON_WM_WINDOWPOSCHANGED() ON_CBN_SELCHANGE(IDC_STATISTIC_ID, OnStatisticChange ) ON_COMMAND_RANGE(ID_STUDIES_LIST, ID_MODE_EDIT, &CDPTView::OnCommandUI) ON_UPDATE_COMMAND_UI_RANGE(ID_STUDIES_LIST, ID_MODE_EDIT, &CDPTView::OnUpdateUI) ON_COMMAND(ID_EDIT_COPY, OnCopy) ON_COMMAND(ID_EDIT_PASTE, OnPaste) END_MESSAGE_MAP() // CDPTView construction/destruction CDPTView::CDPTView() { // m_bMustBeUpdated=false; //m_bEnable=false; } CDPTView::~CDPTView() { } BOOL CDPTView::PreCreateWindow(CREATESTRUCT& cs) { // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs return CView::PreCreateWindow(cs); } // CDPTView drawing void CDPTView::OnDraw(CDC* pDC) { //CBioSIMDoc* pDoc = GetDocument(); //ASSERT_VALID(pDoc); //if (!pDoc) //return; } //void CDPTView::OnRButtonUp(UINT nFlags, CPoint point) //{ // ClientToScreen(&point); // OnContextMenu(this, point); //} //void CDPTView::OnContextMenu(CWnd* pWnd, CPoint point) //{ //theApp.GetContextMenuManager()->ShowPopupMenu(IDR_POPUP_EDIT, point.x, point.y, this, TRUE); //} // CDPTView diagnostics // CDPTView message handlers //CBCGPGridCtrl* CDPTView::CreateGrid () CUGCtrl* CDPTView::CreateGrid () { return (CUGCtrl*) new CResultCtrl(); } int CDPTView::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CView::OnCreate(lpCreateStruct) == -1) return -1; //m_font.CreateStockObject(DEFAULT_GUI_FONT); //m_statisticCtrl.Create(WS_GROUP|WS_CHILD|WS_VISIBLE|WS_TABSTOP|WS_BORDER|CBS_DROPDOWNLIST , CRect(0,0,0,0), this, IDC_STATISTIC_ID ); //m_statisticCtrl.SetCurSel(MEAN); // //m_wndToolBar.Create(this, AFX_DEFAULT_TOOLBAR_STYLE|CBRS_SIZE_DYNAMIC, IDR_RESULT_TOOLBAR); //m_wndToolBar.LoadToolBar(IDR_RESULT_TOOLBAR, 0, 0, TRUE /* Is locked */); //m_wndToolBar.SetPaneStyle(m_wndToolBar.GetPaneStyle() | CBRS_TOOLTIPS | CBRS_FLYBY); //m_wndToolBar.SetPaneStyle(m_wndToolBar.GetPaneStyle() & ~(CBRS_GRIPPER | CBRS_SIZE_DYNAMIC | CBRS_BORDER_TOP | CBRS_BORDER_BOTTOM | CBRS_BORDER_LEFT | CBRS_BORDER_RIGHT)); //m_wndToolBar.SetOwner(this); //m_wndToolBar.SetRouteCommandsViaFrame(FALSE); // // CMatchStationDoc* pDoc = GetDocument(); m_grid.CreateGrid( WS_CHILD|WS_VISIBLE, CRect(0,0,0,0), this, IDC_GRID_ID ); AdjustLayout(); return 0; } void CDPTView::OnSize(UINT nType, int cx, int cy) { CView::OnSize(nType, cx, cy); AdjustLayout(); } void CDPTView::AdjustLayout() { if (GetSafeHwnd() == NULL || !IsWindow(GetSafeHwnd())) { return; } CRect rectClient; GetClientRect(rectClient); //int cxTlb = m_wndToolBar.CalcFixedLayout(FALSE, TRUE).cx+10; //int cyTlb = m_wndToolBar.CalcFixedLayout(FALSE, TRUE).cy; //m_wndToolBar.SetWindowPos(NULL, rectClient.left, rectClient.top, rectClient.Width(), cyTlb, SWP_NOACTIVATE | SWP_NOZORDER); //m_statisticCtrl.SetWindowPos(NULL, rectClient.Width()-200, rectClient.top+2, 200, cyTlb, SWP_NOACTIVATE | SWP_NOZORDER); //m_grid.SetWindowPos(NULL, rectClient.left, rectClient.top + cyTlb, rectClient.Width(), rectClient.Height() -(cyTlb), SWP_NOACTIVATE | SWP_NOZORDER); m_grid.SetWindowPos(NULL, rectClient.left, rectClient.top, rectClient.Width(), rectClient.Height(), SWP_NOACTIVATE | SWP_NOZORDER); } void CDPTView::OnStatisticChange() { //m_grid.SetStatType( m_statisticCtrl.GetCurSel() ); } void CDPTView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint) { //CMatchStationDoc* pDoc = (CMatchStationDoc*)GetDocument(); //CMainFrame* pMainFrm = (CMainFrame*)AfxGetMainWnd(); //if (lHint == CMatchStationDoc::INIT) //{ //pMainFrm->SetDocument(pDoc); //} m_grid.OnUpdate(pSender, lHint, pHint); //pMainFrm->OnUpdate(pSender, lHint, pHint); } //void CDPTView::UpdateResult() //{ //} void CDPTView::OnWindowPosChanged(WINDOWPOS* lpwndpos) { CView::OnWindowPosChanged(lpwndpos); if( lpwndpos->flags & SWP_SHOWWINDOW ) { //if( m_bMustBeUpdated ) //{ // //UpdateResult(); // //m_bMustBeUpdated=false; //} } } #ifdef _DEBUG void CDPTView::AssertValid() const { CView::AssertValid(); } void CDPTView::Dump(CDumpContext& dc) const { CView::Dump(dc); } CMatchStationDoc* CDPTView::GetDocument() const // non-debug version is inline { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMatchStationDoc))); return (CMatchStationDoc*)m_pDocument; } #endif //_DEBUG void CDPTView::OnCommandUI(UINT nID) { //CMatchStationDoc* pDocument = pDocument = GetDocument(); ASSERT(pDocument); //CWeatherDatabasePtr& pProject = pDocument->m_pProject; ASSERT(pProject); // //if (nID == ID_STUDIES_LIST) //{ // CStudiesDefinitionsDlg dlg(AfxGetMainWnd()); // dlg.m_studiesDefinitions = pProject->m_studiesDefinitions; // dlg.m_properties = pProject->m_properties; // if (dlg.DoModal() == IDOK) // { // if (pProject->m_studiesDefinitions != dlg.m_studiesDefinitions) // { // pProject->m_studiesDefinitions = dlg.m_studiesDefinitions; // // for (CStudiesDefinitions::iterator it = pProject->m_studiesDefinitions.begin(); it != pProject->m_studiesDefinitions.end(); it++) // { // CStudyData& data = pProject->m_studiesData[it->first]; // CStudyDefinition& study = it->second; // if (data.size_y() != study.GetNbVials() || data.size_x() != study.m_fields.size()) // { // data.resize(study.GetNbVials(), study.m_fields.size()); // } // ASSERT(data.size_y() == study.GetNbVials() && data.size_x() == study.m_fields.size()); // } // if (pProject->m_studiesDefinitions.find(pProject->m_properties.m_studyName) == pProject->m_studiesDefinitions.end()) // { // //current study have chnaged name // pProject->m_properties.m_studyName.clear(); // } // // //remove old data // // pDocument->UpdateAllViews(NULL, CMatchStationDoc::DEFINITION_CHANGE, NULL); // } // // } //} ////else if (nID == ID_SHOW_ALL || nID == ID_SHOW_EMPTY || nID == ID_SHOW_NON_EMPTY) ////{ //// //pDocument->m_showType = nID - ID_SHOW_ALL; ////} //else if (nID == ID_READ_ONLY || nID == ID_MODE_EDIT) //{ // pProject->m_properties.m_bEditable = nID == ID_MODE_EDIT; // GetDocument()->UpdateAllViews(NULL, CMatchStationDoc::PROPERTIES_CHANGE, NULL); //} } void CDPTView::OnUpdateUI(CCmdUI *pCmdUI) { //bool bEnable = false; //CMatchStationDoc* pDocument = pDocument = GetDocument(); ASSERT(pDocument); //CWeatherDatabasePtr pProject = pDocument->m_pProject; //if (pProject) //{ // const CDPTProjectProperties& properties = pProject->m_properties; // switch (pCmdUI->m_nID) // { // case ID_STUDIES_LIST: break; // //case ID_SHOW_ALL: pCmdUI->SetRadio(); break; // //case ID_SHOW_EMPTY: pCmdUI->SetRadio(); break; // //case ID_SHOW_NON_EMPTY: pCmdUI->SetRadio(); break; // case ID_READ_ONLY: pCmdUI->SetRadio(!properties.m_bEditable); break; // case ID_MODE_EDIT: pCmdUI->SetRadio(properties.m_bEditable); break; // default: ASSERT(FALSE); // } // // bEnable = true; //} // //pCmdUI->Enable(bEnable); } void CDPTView::OnInitialUpdate() { CMatchStationDoc* pDoc = (CMatchStationDoc*)GetDocument(); pDoc->UpdateAllViews(NULL, 0, NULL); //CMainFrame* pMainFrm = (CMainFrame*)AfxGetMainWnd(); //pMainFrm->OnUpdate(NULL, 0, NULL); } void CDPTView::OnCopy() { m_grid.CopySelected(); } void CDPTView::OnPaste() { m_grid.Paste(); }
26.118971
175
0.688416
RNCan
3b328a615d674927e3346252a3a0993be5362697
240
inl
C++
include/AKLib/Math/Math.inl
xXAKShredder8Xx/AKLib
b85d116203f6670e1f7a80c9d5396d4dc1a71f2c
[ "Apache-2.0", "MIT" ]
null
null
null
include/AKLib/Math/Math.inl
xXAKShredder8Xx/AKLib
b85d116203f6670e1f7a80c9d5396d4dc1a71f2c
[ "Apache-2.0", "MIT" ]
null
null
null
include/AKLib/Math/Math.inl
xXAKShredder8Xx/AKLib
b85d116203f6670e1f7a80c9d5396d4dc1a71f2c
[ "Apache-2.0", "MIT" ]
null
null
null
NSB(AKLib) NSB(Math) template <typename T> AKL_INLINE T Interpolate(T goal, T current, T dt) { T diff = goal - current; if (diff > dt) return current + dt; else if (diff < -dt) return current - dt; return goal; } NSE() NSE()
11.428571
50
0.633333
xXAKShredder8Xx
3b379f14f51d5b4d3c2e1c6c6f7111629aa4f1a6
374
cpp
C++
TitaniumRose/src/TitaniumRose/ImGui/ImGuiLayer.cpp
Zinadore/Hazel-D3D12
084cf9a473b6c66a2890f107667f687d6c7ed0a0
[ "Apache-2.0" ]
null
null
null
TitaniumRose/src/TitaniumRose/ImGui/ImGuiLayer.cpp
Zinadore/Hazel-D3D12
084cf9a473b6c66a2890f107667f687d6c7ed0a0
[ "Apache-2.0" ]
null
null
null
TitaniumRose/src/TitaniumRose/ImGui/ImGuiLayer.cpp
Zinadore/Hazel-D3D12
084cf9a473b6c66a2890f107667f687d6c7ed0a0
[ "Apache-2.0" ]
null
null
null
#include "trpch.h" #include "TitaniumRose/Core/Application.h" #include "TitaniumRose/ImGui/ImGuiLayer.h" #include "Platform/D3D12/ImGui/D3D12ImGuiLayer.h" #include "Platform/D3D12/D3D12Renderer.h" namespace Roses { ImGuiLayer::ImGuiLayer() : Layer("ImGuiLayer") { } ImGuiLayer* ImGuiLayer::Initialize() { return new D3D12ImGuiLayer(D3D12Renderer::Context); } }
19.684211
53
0.751337
Zinadore
3b37e0b30f21af95462d0a795b0951952a41f91a
905
cpp
C++
widgets/demos/ex-pixmap-puzzle/main.cpp
sfaure-witekio/qt-training-material
d166e4ed9cc5f5faab85b0337c5844c4cdcb206e
[ "BSD-3-Clause" ]
16
2017-01-11T17:28:03.000Z
2021-09-27T16:12:01.000Z
widgets/demos/ex-pixmap-puzzle/main.cpp
sfaure-witekio/qt-training-material
d166e4ed9cc5f5faab85b0337c5844c4cdcb206e
[ "BSD-3-Clause" ]
null
null
null
widgets/demos/ex-pixmap-puzzle/main.cpp
sfaure-witekio/qt-training-material
d166e4ed9cc5f5faab85b0337c5844c4cdcb206e
[ "BSD-3-Clause" ]
4
2017-03-17T02:44:32.000Z
2021-01-22T07:57:34.000Z
/************************************************************************* * * Copyright (c) 2016 The Qt Company * All rights reserved. * * See the LICENSE.txt file shipped along with this file for the license. * *************************************************************************/ #include <QApplication> #include <QPushButton> #include <QHBoxLayout> #include "puzzle.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); Puzzle *puzzle = new Puzzle; QPushButton *next = new QPushButton("Next"); QObject::connect(next, &QPushButton::clicked, puzzle, &Puzzle::showNext); QHBoxLayout *hlay = new QHBoxLayout; // hlay->addStretch(1); hlay->addWidget(next); QVBoxLayout *vlay = new QVBoxLayout; vlay->addLayout(hlay); vlay->addWidget(puzzle); QWidget widget; widget.setLayout(vlay); widget.show(); return app.exec(); }
24.459459
77
0.558011
sfaure-witekio
3b4322c6f705b67ed97afeb8531cfa7f6b73476f
1,499
cpp
C++
YorozuyaGSLib/source/CNationCodeStrTable.cpp
lemkova/Yorozuya
f445d800078d9aba5de28f122cedfa03f26a38e4
[ "MIT" ]
29
2017-07-01T23:08:31.000Z
2022-02-19T10:22:45.000Z
YorozuyaGSLib/source/CNationCodeStrTable.cpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
90
2017-10-18T21:24:51.000Z
2019-06-06T02:30:33.000Z
YorozuyaGSLib/source/CNationCodeStrTable.cpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
44
2017-12-19T08:02:59.000Z
2022-02-24T23:15:01.000Z
#include <CNationCodeStrTable.hpp> START_ATF_NAMESPACE CNationCodeStrTable::CNationCodeStrTable() { using org_ptr = void (WINAPIV*)(struct CNationCodeStrTable*); (org_ptr(0x140204ad0L))(this); }; void CNationCodeStrTable::ctor_CNationCodeStrTable() { using org_ptr = void (WINAPIV*)(struct CNationCodeStrTable*); (org_ptr(0x140204ad0L))(this); }; int CNationCodeStrTable::GetCode(char* szCodeStr) { using org_ptr = int (WINAPIV*)(struct CNationCodeStrTable*, char*); return (org_ptr(0x14020aca0L))(this, szCodeStr); }; char* CNationCodeStrTable::GetStr(int iType) { using org_ptr = char* (WINAPIV*)(struct CNationCodeStrTable*, int); return (org_ptr(0x14020adb0L))(this, iType); }; bool CNationCodeStrTable::Init() { using org_ptr = bool (WINAPIV*)(struct CNationCodeStrTable*); return (org_ptr(0x14020ac40L))(this); }; int CNationCodeStrTable::RegistCode() { using org_ptr = int (WINAPIV*)(struct CNationCodeStrTable*); return (org_ptr(0x14020ae30L))(this); }; CNationCodeStrTable::~CNationCodeStrTable() { using org_ptr = void (WINAPIV*)(struct CNationCodeStrTable*); (org_ptr(0x140204b20L))(this); }; void CNationCodeStrTable::dtor_CNationCodeStrTable() { using org_ptr = void (WINAPIV*)(struct CNationCodeStrTable*); (org_ptr(0x140204b20L))(this); }; END_ATF_NAMESPACE
32.586957
75
0.656438
lemkova
3b45bf22611ddbfab35ceb9a29144266fef5de08
3,240
cpp
C++
Plugins/UPIDController/Source/UPIDController/Private/PIDController.cpp
yukilikespie/RobCoG_FleX-4.16
a6d1e8c0abb8ac1e36c5967cb886de8c154b2948
[ "BSD-3-Clause" ]
null
null
null
Plugins/UPIDController/Source/UPIDController/Private/PIDController.cpp
yukilikespie/RobCoG_FleX-4.16
a6d1e8c0abb8ac1e36c5967cb886de8c154b2948
[ "BSD-3-Clause" ]
null
null
null
Plugins/UPIDController/Source/UPIDController/Private/PIDController.cpp
yukilikespie/RobCoG_FleX-4.16
a6d1e8c0abb8ac1e36c5967cb886de8c154b2948
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2017, Institute for Artificial Intelligence - University of Bremen // Author: Andrei Haidu (http://haidu.eu) #include "PIDController.h" // Default constructor PIDController::PIDController() { } // Constructor PIDController::PIDController(float ProportionalVal, float IntegralVal, float DerivativeVal, float OutMaxVal, float OutMinVal) : P(ProportionalVal), I(IntegralVal), D(DerivativeVal), OutMax(OutMaxVal), OutMin(OutMinVal) { IErr = 0.f; PrevErr = 0.f; } // Destructor PIDController::~PIDController() { } // Set all PID values void PIDController::SetValues(float ProportionalVal, float IntegralVal, float DerivativeVal, float OutMaxVal, float OutMinVal) { P = ProportionalVal; I = IntegralVal; D = DerivativeVal; OutMax = OutMaxVal; OutMin = OutMinVal; PIDController::Reset(); }; // Update the PID loop float PIDController::Update(const float Error, const float DeltaTime) { if (DeltaTime == 0.0f || FMath::IsNaN(Error)) { return 0.0f; } // Calculate proportional output const float POut = P * Error; // Calculate integral error / output IErr += DeltaTime * Error; const float IOut = I * IErr; // Calculate the derivative error / output const float DErr = (Error - PrevErr) / DeltaTime; const float DOut = D * DErr; // Set previous error PrevErr = Error; // Calculate the output const float Out = POut + IOut + DOut; // Clamp output to max/min values if (OutMax > 0.f || OutMin < 0.f) { if (Out > OutMax) return OutMax; else if (Out < OutMin) return OutMin; } return Out; }; // Update only P float PIDController::UpdateAsP(const float Error, const float DeltaTime) { if (DeltaTime == 0.0f || FMath::IsNaN(Error)) { return 0.0f; } // Calculate proportional output const float Out = P * Error; // Clamp output to max/min values if (OutMax > 0.f || OutMin < 0.f) { if (Out > OutMax) return OutMax; else if (Out < OutMin) return OutMin; } return Out; }; // Update only PD float PIDController::UpdateAsPD(const float Error, const float DeltaTime) { if (DeltaTime == 0.0f || FMath::IsNaN(Error)) { return 0.0f; } // Calculate proportional output const float POut = P * Error; // Calculate the derivative error / output const float DErr = (Error - PrevErr) / DeltaTime; const float DOut = D * DErr; // Set previous error PrevErr = Error; // Calculate the output const float Out = POut + DOut; // Clamp output to max/min values if (OutMax > 0.f || OutMin < 0.f) { if (Out > OutMax) return OutMax; else if (Out < OutMin) return OutMin; } return Out; }; // Update only PI float PIDController::UpdateAsPI(const float Error, const float DeltaTime) { if (DeltaTime == 0.0f || FMath::IsNaN(Error)) { return 0.0f; } // Calculate proportional output const float POut = P * Error; // Calculate integral error / output IErr += DeltaTime * Error; const float IOut = I * IErr; // Calculate the output const float Out = POut + IOut; // Clamp output to max/min values if (OutMax > 0.f || OutMin < 0.f) { if (Out > OutMax) return OutMax; else if (Out < OutMin) return OutMin; } return Out; }; // Reset error values of the PID void PIDController::Reset() { PrevErr = 0.0f; IErr = 0.0f; };
19.171598
92
0.678395
yukilikespie
8dc733651fdb8c8b76d1b8b6948c7f664ef06090
2,493
cpp
C++
timus/task1003_b.cpp
greendwin/puzzles
5df1175f178d0c3e1ffa765160057d90e9da37cd
[ "MIT" ]
null
null
null
timus/task1003_b.cpp
greendwin/puzzles
5df1175f178d0c3e1ffa765160057d90e9da37cd
[ "MIT" ]
null
null
null
timus/task1003_b.cpp
greendwin/puzzles
5df1175f178d0c3e1ffa765160057d90e9da37cd
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include <vector> #include <list> #include <map> #include <queue> #include <algorithm> #include <iterator> #include <cassert> #pragma warning(disable : 4018) #ifdef ONLINE_JUDGE typedef long long INT64; typedef unsigned long long UINT64; #else typedef __int64 INT64; typedef unsigned __int64 UINT64; #endif using namespace std; struct PART { int first; int last; int odd; bool operator < (const PART & p) const { return first < p.first || first == p.first && last < p.last; } }; enum { STATE_UNKNOWN, STATE_ODD, STATE_EVEN, }; bool check(vector<PART> & parts) { sort(parts.begin(), parts.end()); map<int, int> states; typedef map<int, int>::iterator state_iterator; for (int k = 0; k < parts.size(); ++k) { const PART & cur = parts[k]; state_iterator iter = states.find(cur.first - 1); if (iter != states.end()) { int odd = iter->second ^ cur.odd; iter = states.find(cur.last); if (iter == states.end()) { states.insert(make_pair(cur.last, odd)); } else if (iter->second != odd) { return false; } continue; } if (k > 0 && parts[k - 1].first == cur.first || k + 1 < parts.size() && parts[k + 1].first == cur.first) { states.insert(make_pair(cur.first - 1, 0)); --k; } } return true; } int main(void) { bool stop = false; PART p; string res; vector<PART> parts; parts.reserve(5000); vector<PART> tmp; tmp.reserve(5000); for (;;) { parts.clear(); int bitsCount = 0; cin >> bitsCount; if (bitsCount == -1) { break; } int count = 0; cin >> count; for (int k = 0; k < count; ++k) { cin >> p.first >> p.last >> res; p.odd = (res == "odd"); parts.push_back(p); } int lo = 1; int hi = count; tmp.clear(); copy(parts.begin(), parts.end(), back_inserter(tmp)); if (check(tmp)) { cout << count << endl; continue; } while (hi - lo > 1) { int mid = (hi + lo) / 2; tmp.clear(); copy(parts.begin(), parts.begin() + mid, back_inserter(tmp)); if (check(tmp)) { lo = mid; } else { hi = mid; } } cout << lo << endl; } return 0; }
18.744361
112
0.503811
greendwin
8dc88f5b26149aaab6708a59350ed317f96aeabb
5,657
cpp
C++
src/TestXE/XETInput/WindowState.cpp
devxkh/FrankE
72faca02759b54aaec842831f3c7a051e7cf5335
[ "MIT" ]
11
2017-01-17T15:02:25.000Z
2020-11-27T16:54:42.000Z
src/TestXE/XETInput/WindowState.cpp
devxkh/FrankE
72faca02759b54aaec842831f3c7a051e7cf5335
[ "MIT" ]
9
2016-10-23T20:15:38.000Z
2018-02-06T11:23:17.000Z
src/TestXE/XETInput/WindowState.cpp
devxkh/FrankE
72faca02759b54aaec842831f3c7a051e7cf5335
[ "MIT" ]
2
2019-08-29T10:23:51.000Z
2020-04-03T06:08:34.000Z
#include "WindowState.hpp" #include <memory> #include <iostream> void WindowState::createFrameListener(void) { } WindowState::WindowState(XE::XEngine& engine, bool replace) : XE::XEState(engine, replace) { XE::LogManager::getSingleton().logMessage("InitState - Initialization"); //SetResource(); //-------------------------------------------------------- //------------------ Controller ------------------------------- //-------------------------------------------------------- //one controller is always needed //std::unique_ptr<XE::Controller> controller = std::unique_ptr<XE::Controller>(new XE::Controller(0, &engine)); //creates camera //engine.getCtrlMgr().addController(std::move(controller)); //mStateData->mUIStateManager.addUIState(mStateData->mUIStateManager.build <UI::UIInitGame>(UI::UISI_InitGame, controller, true)); //Select Char //XE::CharEntity mChara(1, controller->getStateData()->mScene); //controller->getStateData()->mScene->addGameEntity(mChara); //controller->setCharEntity(mChara); //controller->getView().mCamera->setStyle(CA_CHARACTER); //### controller->getActionMap()[InputCmd::NavEnter] = XE::Action(XE::Keyboard::Return, XE::Action::PressOnce); //### controller->getCallBackSystem().connect(InputCmd::CamRotate, std::bind(&Controller::updateCameraGoal, this)); //lNameOfResourceGroup = "Init"; //{ // XE::Entity* test = mStateData->mScene->getSceneMgr()->createEntity("test", "Geoset_0_1_tex_1.mesh", lNameOfResourceGroup); // XE::SceneNode* lNode = mStateData->mScene->getSceneMgr()->getRootSceneNode()->createChildSceneNode(); // // // lNode->attachObject(test); // lNode->scale(0.5, 0.5, 0.5); // lNode->rotate(XE::Quaternion(XE::Degree(90), Ogre::Vector3::UNIT_X)); // // create a floor mesh resource // XE::MeshManager::getSingleton().createPlane("floor", lNameOfResourceGroup, // XE::Plane(Ogre::Vector3::UNIT_Y, -1), 250, 250, 25, 25, true, 1, 15, 15, Ogre::Vector3::UNIT_Z); // // create a floor entity, give it a material, and place it at the origin // XE::Entity* floor = mStateData->mScene->getSceneMgr()->createEntity("Floor", "floor", lNameOfResourceGroup); // floor->setMaterialName("Examples/Rockwall", lNameOfResourceGroup); // floor->setCastShadows(false); // mStateData->mScene->getSceneMgr()->getRootSceneNode()->attachObject(floor); //} // controller->getView().mCamera->setPivotPosition(XE::Vector3f(0, 1, 0)); //fixed camera XE::LogManager::getSingleton().logMessage("InitState - Initialized"); } WindowState::~WindowState() { } void WindowState::SetResource(){ XE::ConfigFile cf; cf.load("E:/Projekte/Src Game/_Engine/XEngine/build/VS2010/XEngine/XEALL/Debug/resources.cfg", "\t:=", true); XE::ConfigFile::SectionIterator seci = cf.getSectionIterator(); Ogre::String secName, typeName, archName; Ogre::String sec, type, arch; // go through all specified resource groups while (seci.hasMoreElements()) { sec = seci.peekNextKey(); XE::ConfigFile::SettingsMultiMap* settings = seci.getNext(); XE::ConfigFile::SettingsMultiMap::iterator i; // go through all resource paths for (i = settings->begin(); i != settings->end(); i++) { type = i->first; arch = i->second; //#if XE_PLATFORM == XE_PLATFORM_APPLE || XE_PLATFORM == XE_PLATFORM_APPLE_IOS // // OS X does not set the working directory relative to the app, // // In order to make things portable on OS X we need to provide // // the loading with it's own bundle path location // if (!Ogre::StringUtil::startsWith(arch, "/", false)) // only adjust relative dirs // arch = Ogre::String(Ogre::macBundlePath() + "/" + arch); //#endif XE::ResourceGroupManager::getSingleton().addResourceLocation(arch, type, sec); } } lNameOfResourceGroup = "General"; { XE::ResourceGroupManager& lRgMgr = XE::ResourceGroupManager::getSingleton(); lRgMgr.initialiseResourceGroup(lNameOfResourceGroup); lRgMgr.loadResourceGroup(lNameOfResourceGroup); // Create XE_NEW factory //XE::AL::SoundFactory* mOgreOggSoundFactory = XE_NEW_T(XE::AL::SoundFactory, MEMCATEGORY_GENERAL)(); //mStateData->mRoot->addMovableObjectFactory(mOgreOggSoundFactory, true); //XE::AL::SoundManager* mOgreOggSoundManager = XE_NEW_T(XE::AL::SoundManager, MEMCATEGORY_GENERAL)(); //if (XE::AL::SoundManager::getSingletonPtr()->init("",100,100,mStateData->mScene->getSceneMgr())) //{ // // Create a streamed sound, no looping, no prebuffering // if (XE::AL::SoundManager::getSingletonPtr()->createSound("Sound1", "electricspark.ogg", false, false, false,mStateData->mScene->getSceneMgr()) ) // { // // } //} //geladene Materialien abfragen /*XE::ResourceManager::ResourceMapIterator materialIterator = XE::MaterialManager::getSingleton().getResourceIterator(); while (materialIterator.hasMoreElements()) { std::cout << "MaterialLoaded:" << (static_cast<XE::MaterialPtr>(materialIterator.peekNextValue()))->getName() << std::endl; materialIterator.moveNext(); } */ } //do this after long loading Times! //KH m_engine->getRoot()->clearEventTimes(); } void WindowState::update(float deltaTime) { //window.setMouseCursorVisible(false); // Hide cursor if (!m_breaked) { // if(mStateData->mUIStateMgr->running()) // mStateData->mUIStateMgr->update();//update UI States // XE::WindowEventUtilities::messagePump(); //dont use it or .net wrapper crash! } } void WindowState::cleanup() { // Let's cleanup! { //mStateData->mUIManager.destroyScreen("WorldState"); XE::ResourceGroupManager& lRgMgr = XE::ResourceGroupManager::getSingleton(); lRgMgr.destroyResourceGroup(lNameOfResourceGroup); } }
35.136646
149
0.688704
devxkh
8dca289b3ce427d887e1719af626f72e11d5a62d
522
cpp
C++
src/render/src/sge_render/backend/dx11/Render_DX11_Common.cpp
SimpleTalkCpp/SimpleGameEngine
755c989995d07768bdc77175404fdcb2eb69c2e6
[ "MIT" ]
null
null
null
src/render/src/sge_render/backend/dx11/Render_DX11_Common.cpp
SimpleTalkCpp/SimpleGameEngine
755c989995d07768bdc77175404fdcb2eb69c2e6
[ "MIT" ]
null
null
null
src/render/src/sge_render/backend/dx11/Render_DX11_Common.cpp
SimpleTalkCpp/SimpleGameEngine
755c989995d07768bdc77175404fdcb2eb69c2e6
[ "MIT" ]
null
null
null
#include "Render_DX11_Common.h" namespace sge { VertexSemanticType DX11Util::parseDxSemanticName(StrView s) { VertexSemanticType v; if (s == "SV_POSITION") { return VertexSemanticType::POSITION; } if (!enumTryParse(v, s)) { throw SGE_ERROR("unknown VertexLayout_SemanticType {}", s); } return v; } const char* DX11Util::getDxSemanticName(VertexSemanticType v) { const char* s = enumStr(v); if (!s) { throw SGE_ERROR("unknown VertexLayout_SemanticType {}", v); } return s; } }
20.076923
64
0.678161
SimpleTalkCpp
8dd093bfb7016552fb0124648615203ed8bf11e9
1,948
cpp
C++
source/tests/cpp_tests/destructors_errors_test.cpp
Panzerschrek/U-00DC-Sprache
eb677a66d178985433a62eb6b8a50ce2cdb14b1a
[ "BSD-3-Clause" ]
45
2016-06-21T22:28:43.000Z
2022-03-26T12:21:46.000Z
source/tests/cpp_tests/destructors_errors_test.cpp
Panzerschrek/U-00DC-Sprache
eb677a66d178985433a62eb6b8a50ce2cdb14b1a
[ "BSD-3-Clause" ]
6
2020-07-12T18:00:10.000Z
2021-11-30T11:20:14.000Z
source/tests/cpp_tests/destructors_errors_test.cpp
Panzerschrek/U-00DC-Sprache
eb677a66d178985433a62eb6b8a50ce2cdb14b1a
[ "BSD-3-Clause" ]
5
2019-09-03T17:20:34.000Z
2022-01-30T15:10:21.000Z
#include "tests.hpp" namespace U { U_TEST( FunctionBodyDuplication_ForDestructors_Test0 ) { static const char c_program_text[]= R"( class S { fn destructor(){} fn destructor(){} } )"; const ErrorTestBuildResult build_result= BuildProgramWithErrors( c_program_text ); U_TEST_ASSERT( !build_result.errors.empty() ); const CodeBuilderError& error= build_result.errors.front(); U_TEST_ASSERT( error.code == CodeBuilderErrorCode::FunctionBodyDuplication ); U_TEST_ASSERT( error.src_loc.GetLine() == 5u ); } U_TEST( DestructorOutsideClassTest0 ) { static const char c_program_text[]= R"( fn destructor(); )"; const ErrorTestBuildResult build_result= BuildProgramWithErrors( c_program_text ); U_TEST_ASSERT( !build_result.errors.empty() ); const CodeBuilderError& error= build_result.errors.front(); U_TEST_ASSERT( error.code == CodeBuilderErrorCode::ConstructorOrDestructorOutsideClass ); U_TEST_ASSERT( error.src_loc.GetLine() == 2u ); } U_TEST( DestructorMustReturnVoidTest0 ) { static const char c_program_text[]= R"( class S { fn destructor() : i32 { return 0; } } )"; const ErrorTestBuildResult build_result= BuildProgramWithErrors( c_program_text ); U_TEST_ASSERT( !build_result.errors.empty() ); const CodeBuilderError& error= build_result.errors.front(); U_TEST_ASSERT( error.code == CodeBuilderErrorCode::ConstructorAndDestructorMustReturnVoid ); U_TEST_ASSERT( error.src_loc.GetLine() == 4u ); } U_TEST( ExplicitArgumentsInDestructorTest1 ) { static const char c_program_text[]= R"( class S { fn destructor( i32 a ) {} } )"; const ErrorTestBuildResult build_result= BuildProgramWithErrors( c_program_text ); U_TEST_ASSERT( !build_result.errors.empty() ); const CodeBuilderError& error= build_result.errors.front(); U_TEST_ASSERT( error.code == CodeBuilderErrorCode::ExplicitArgumentsInDestructor ); U_TEST_ASSERT( error.src_loc.GetLine() == 4u ); } } // namespace U
25.298701
93
0.752567
Panzerschrek
8dd193192e7f4983194d254cd907dc06a61b57fc
375
cpp
C++
belts/yellow/week_3/sum_reverse_sort/sum_reverse_sort.cpp
vlasenckov/cpp_garbage_collector
6c10dad0f780c608336ef107e9a3b6a2d4bf3909
[ "MIT" ]
null
null
null
belts/yellow/week_3/sum_reverse_sort/sum_reverse_sort.cpp
vlasenckov/cpp_garbage_collector
6c10dad0f780c608336ef107e9a3b6a2d4bf3909
[ "MIT" ]
null
null
null
belts/yellow/week_3/sum_reverse_sort/sum_reverse_sort.cpp
vlasenckov/cpp_garbage_collector
6c10dad0f780c608336ef107e9a3b6a2d4bf3909
[ "MIT" ]
null
null
null
#include "sum_reverse_sort.h" #include <algorithm> int Sum(int x, int y) { return x + y; } std::string Reverse(std::string s) { int size = s.size(), temp; for (int i = 0; i < size/2; i++) { temp = s[i]; s[i] = s[size-1-i]; s[size-1-i] = temp; } return s; }; void Sort(std::vector<int> &v) { std::sort(v.begin(), v.end()); }
17.045455
38
0.506667
vlasenckov
8dd53f5cea3bfb2dd5bdd4e104227a105c762b90
3,185
cpp
C++
src/rendering/engine/engine/resource_factory.cpp
Bargor/tempest
94837c6dcfef036827076446101e59afb7792f5d
[ "Apache-2.0", "MIT" ]
null
null
null
src/rendering/engine/engine/resource_factory.cpp
Bargor/tempest
94837c6dcfef036827076446101e59afb7792f5d
[ "Apache-2.0", "MIT" ]
1
2019-12-02T20:17:52.000Z
2019-12-02T20:17:52.000Z
src/rendering/engine/engine/resource_factory.cpp
Bargor/tempest
94837c6dcfef036827076446101e59afb7792f5d
[ "Apache-2.0", "MIT" ]
null
null
null
// This file is part of Tempest-engine project // Author: Karol Kontny #include "resource_factory.h" #include "engine/device.h" namespace tst { namespace engine { resource_factory::resource_factory(device& device, application::data_loader& dataLoader) : api::resource_factory(device.create_resource_factory(dataLoader)) { } resource_factory::~resource_factory() { } resources::index_buffer resource_factory::create_index_buffer(std::vector<std::uint16_t>&& indices) { return resources::index_buffer(create_buffer_creation_info(), std::move(indices)); } resources::index_buffer resource_factory::create_index_buffer(std::vector<std::uint32_t>&& indices) { return resources::index_buffer(create_buffer_creation_info(), std::move(indices)); } std::size_t resource_factory::create_pipeline(const std::string& techniqueName, std::string_view pipelineName, const std::string& shadersName, const resources::vertex_buffer& vertexBuffer) { return super::create_pipeline(techniqueName, pipelineName, shadersName, vertexBuffer.to_super()); } void resource_factory::create_technique(std::string name) { super::create_technique(std::move(name)); } resources::vertex_buffer resource_factory::create_vertex_buffer(const engine::vertex_format& format, std::vector<vertex>&& vertices) { return resources::vertex_buffer(create_buffer_creation_info(), format, std::move(vertices)); } resources::texture resource_factory::create_texture(const std::string& textureName) { return resources::texture(create_texture_creation_info(textureName)); } api::buffer::creation_info resource_factory::create_buffer_creation_info() const noexcept { return super::create_buffer_creation_info(); } api::uniform_buffer::creation_info resource_factory::create_uniform_creation_info(const std::string& shaderName, bind_point bindPoint) const noexcept { return super::create_uniform_creation_info(shaderName, bindPoint); } api::texture::creation_info resource_factory::create_texture_creation_info(const std::string& textureName) const { return super::create_texture_creation_info(textureName); } api::material::creation_info resource_factory::create_material_creation_info(const std::string& shaderName, const std::vector<std::string>& textureNames, std::uint32_t staticStorageSize, std::uint32_t dynamicStorageSize) const { return super::create_material_creation_info(shaderName, textureNames, staticStorageSize, dynamicStorageSize); } } // namespace engine } // namespace tst
47.537313
126
0.626688
Bargor
8dd833372205c02c079c9cf4db195727d59d5110
3,024
cpp
C++
src/DTC/parallelStorageFreqDTC.cpp
Seideman-Group/chiML
9ace5dccdbc6c173e8383f6a31ff421b4fefffdf
[ "MIT" ]
1
2019-04-27T05:25:27.000Z
2019-04-27T05:25:27.000Z
src/DTC/parallelStorageFreqDTC.cpp
Seideman-Group/chiML
9ace5dccdbc6c173e8383f6a31ff421b4fefffdf
[ "MIT" ]
null
null
null
src/DTC/parallelStorageFreqDTC.cpp
Seideman-Group/chiML
9ace5dccdbc6c173e8383f6a31ff421b4fefffdf
[ "MIT" ]
2
2019-04-03T10:08:21.000Z
2019-09-30T22:40:28.000Z
/** @file DTC/parallelStorageFreqDTC.cpp * @brief A class that collects the FDTD field information across all processes to one process to Fourier transform and place it in a Grid for outputting * * Collects FDTD filed information from all processes, Fourier transforms it and transfers * it into one place to be outputted by a detector * * @author Thomas A. Purcell (tpurcell90) * @bug No known bugs. */ #include <DTC/parallelStorageFreqDTC.hpp> parallelStorageFreqDTCReal::parallelStorageFreqDTCReal(int dtcNum, real_pgrid_ptr grid, DIRECTION propDir, std::array<int,3> loc, std::array<int,3> sz, std::vector<double> freqList) : parallelStorageFreqDTC(dtcNum, grid, propDir, loc, sz, freqList) {} parallelStorageFreqDTCReal::parallelStorageFreqDTCReal(int dtcNum, std::pair< real_pgrid_ptr, std::array<int,3> > gridOff, DIRECTION propDir, std::array<int,3> loc, std::array<int,3> sz, std::vector<double> freqList) : parallelStorageFreqDTC(dtcNum, gridOff, propDir, loc, sz, freqList) {} void parallelStorageFreqDTCReal::fieldIn(cplx* fftFact) { if(!fieldInFreq_) return; for(int ii = 0; ii < fieldInFreq_->fInGridInds_.size(); ii+=2) { dger_(nfreq_, fieldInFreq_->sz_[0], 1.0, reinterpret_cast<double*>(fftFact) , 2, &grid_->point(fieldInFreq_->fInGridInds_[ii]), fieldInFreq_->stride_, &fInReal_[ fieldInFreq_->fInGridInds_[ii+1] ], nfreq_); dger_(nfreq_, fieldInFreq_->sz_[0], 1.0, reinterpret_cast<double*>(fftFact)+1, 2, &grid_->point(fieldInFreq_->fInGridInds_[ii]), fieldInFreq_->stride_, &fInCplx_[ fieldInFreq_->fInGridInds_[ii+1] ], nfreq_); } } parallelStorageFreqDTCCplx::parallelStorageFreqDTCCplx(int dtcNum, cplx_pgrid_ptr grid, DIRECTION propDir, std::array<int,3> loc, std::array<int,3> sz, std::vector<double> freqList) : parallelStorageFreqDTC(dtcNum, grid, propDir, loc, sz, freqList) {} parallelStorageFreqDTCCplx::parallelStorageFreqDTCCplx(int dtcNum, std::pair< cplx_pgrid_ptr, std::array<int,3> > gridOff, DIRECTION propDir, std::array<int,3> loc, std::array<int,3> sz, std::vector<double> freqList) : parallelStorageFreqDTC(dtcNum, gridOff, propDir, loc, sz, freqList) {} void parallelStorageFreqDTCCplx::fieldIn(cplx* fftFact) { if(!fieldInFreq_) return; // Take an outer product of the prefactor vector and the field vectors to get the discrete Fourier Transform at all points for(int ii = 0; ii < fieldInFreq_->fInGridInds_.size(); ii+=2) zgerc_(nfreq_, fieldInFreq_->sz_[0], 1.0, fftFact, 1, &grid_->point(fieldInFreq_->fInGridInds_[ii]), fieldInFreq_->stride_, &outGrid_->point(fieldInFreq_->fInGridInds_[ii+1]), nfreq_); } void parallelStorageFreqDTCReal::toOutGrid() { if(outGrid_) { dcopy_(outGrid_->size(), fInReal_.data(), 1, reinterpret_cast<double*>( outGrid_->data() ) , 2); dcopy_(outGrid_->size(), fInCplx_.data(), 1, reinterpret_cast<double*>( outGrid_->data() )+1, 2); } return; } void parallelStorageFreqDTCCplx::toOutGrid() { return; }
48.774194
218
0.72619
Seideman-Group
8dd8cb72589c86c64dfb5d0a7a1367447f695af2
2,433
cpp
C++
sample/TestLibWin32/ParticleBufferObject.cpp
CYBORUS/SDL2TK
22ea239b57f9a6409ec8fea70c5497554df8069f
[ "Unlicense" ]
1
2015-06-06T12:19:14.000Z
2015-06-06T12:19:14.000Z
sample/TestLibWin32/ParticleBufferObject.cpp
CYBORUS/SDL2TK
22ea239b57f9a6409ec8fea70c5497554df8069f
[ "Unlicense" ]
null
null
null
sample/TestLibWin32/ParticleBufferObject.cpp
CYBORUS/SDL2TK
22ea239b57f9a6409ec8fea70c5497554df8069f
[ "Unlicense" ]
null
null
null
#include "ParticleBufferObject.hpp" #include "ParticleBuilder.hpp" #include "ParticleProgram.hpp" #include <iostream> static constexpr GLvoid* Offset(size_t offset) { return (GLfloat*)0 + offset; } ParticleBufferObject::ParticleBufferObject() : _buffer(0) , _count(0) { } ParticleBufferObject::ParticleBufferObject(const ParticleBuilder& builder) : _buffer(0) { std::size_t size = builder._array.size(); _count = size / 12; std::cerr << "particle count -- " << _count << '\n'; if (_count > 0) { glGenBuffers(1, &_buffer); glBindBuffer(GL_ARRAY_BUFFER, _buffer); glBufferData( GL_ARRAY_BUFFER, size * sizeof(GLfloat), builder._array.data(), GL_STATIC_DRAW); } } ParticleBufferObject::ParticleBufferObject(ParticleBufferObject&& other) : _buffer(other._buffer) , _count(other._count) { other._buffer = 0; other._count = 0; } ParticleBufferObject::~ParticleBufferObject() { glDeleteBuffers(1, &_buffer); } ParticleBufferObject& ParticleBufferObject::operator=( ParticleBufferObject&& other) { if (this != &other) { glDeleteBuffers(1, &_buffer); _buffer = other._buffer; _count = other._count; other._buffer = 0; other._count = 0; } return *this; } void ParticleBufferObject::Draw(const ParticleProgram& program) const { const GLsizei stride = sizeof(GLfloat) * 12; glBindBuffer(GL_ARRAY_BUFFER, _buffer); glVertexAttribPointer(program._vertexAttribute, 4, GL_FLOAT, GL_FALSE, stride, Offset(0)); glEnableVertexAttribArray(program._vertexAttribute); glVertexAttribPointer(program._colorAttribute, 4, GL_FLOAT, GL_FALSE, stride, Offset(4)); glEnableVertexAttribArray(program._colorAttribute); glVertexAttribPointer(program._velocityAttribute, 3, GL_FLOAT, GL_FALSE, stride, Offset(8)); glEnableVertexAttribArray(program._velocityAttribute); glVertexAttribPointer(program._startAttribute, 1, GL_FLOAT, GL_FALSE, stride, Offset(11)); glEnableVertexAttribArray(program._startAttribute); glDrawArrays(GL_POINTS, 0, _count); glDisableVertexAttribArray(program._startAttribute); glDisableVertexAttribArray(program._velocityAttribute); glDisableVertexAttribArray(program._colorAttribute); glDisableVertexAttribArray(program._vertexAttribute); }
26.16129
76
0.697904
CYBORUS
8de06bf141bd7a9ac0cff678fcc40221307028d4
289
cpp
C++
191.cpp
nitin-maharana/LeetCode
d5e99fa313df3fda65bf385f46f8a62b6d061306
[ "MIT" ]
4
2016-02-28T17:09:14.000Z
2017-04-15T15:56:08.000Z
191.cpp
nitin-maharana/LeetCode
d5e99fa313df3fda65bf385f46f8a62b6d061306
[ "MIT" ]
null
null
null
191.cpp
nitin-maharana/LeetCode
d5e99fa313df3fda65bf385f46f8a62b6d061306
[ "MIT" ]
null
null
null
/* * Written by Nitin Kumar Maharana * [email protected] */ class Solution { public: int hammingWeight(uint32_t n) { int count = 0; while(n) { count++; n = n & (n-1); } return count; } };
14.45
35
0.439446
nitin-maharana
8de327d1313d53d56138416aec6145c5e6f94dfb
702
cpp
C++
NoExceptAuto/NoExceptAuto.cpp
jbcoe/CppSandbox
574dc31bbd3640a8cf1b7642c4a449bee687cce5
[ "MIT" ]
7
2015-01-18T13:30:09.000Z
2021-08-21T19:50:26.000Z
NoExceptAuto/NoExceptAuto.cpp
jbcoe/CppSandbox
574dc31bbd3640a8cf1b7642c4a449bee687cce5
[ "MIT" ]
1
2016-03-13T21:26:37.000Z
2016-03-13T21:26:37.000Z
NoExceptAuto/NoExceptAuto.cpp
jbcoe/CppSandbox
574dc31bbd3640a8cf1b7642c4a449bee687cce5
[ "MIT" ]
1
2016-02-16T04:56:25.000Z
2016-02-16T04:56:25.000Z
#include <iostream> int f() { return 1; } int noexcept_f() noexcept { return 1; } auto g() { return noexcept_f(); } auto conditional_noexcept_g() noexcept(noexcept(noexcept_f())) { return noexcept_f(); } int main(int argc, char* argv[]) { std::cout << std::boolalpha << "f is noexcept: " << noexcept(f()) << std::endl; std::cout << std::boolalpha << "noexcept_f is noexcept: " << noexcept(noexcept_f()) << std::endl; std::cout << std::boolalpha << "g is noexcept: " << noexcept(g()) << std::endl; std::cout << std::boolalpha << "conditional_noexcept_g is noexcept: " << noexcept(conditional_noexcept_g()) << std::endl; }
20.057143
71
0.582621
jbcoe
8de3df29716d3e64c625ae2493b60263efab1b73
261,446
hpp
C++
flite/lang/us_rms/us_rms_cg_f0_trees.hpp
Barath-Kannan/flite
236f91a9a1e60fd25f1deed6d48022567cd7100f
[ "Apache-2.0" ]
7
2017-12-10T23:02:22.000Z
2021-08-05T21:12:11.000Z
flite/lang/us_rms/us_rms_cg_f0_trees.hpp
Barath-Kannan/flite
236f91a9a1e60fd25f1deed6d48022567cd7100f
[ "Apache-2.0" ]
null
null
null
flite/lang/us_rms/us_rms_cg_f0_trees.hpp
Barath-Kannan/flite
236f91a9a1e60fd25f1deed6d48022567cd7100f
[ "Apache-2.0" ]
3
2018-10-28T03:47:09.000Z
2020-06-04T08:54:23.000Z
#pragma once #include "flite/utils/val_const.hpp" DEF_STATIC_CONST_VAL_FLOAT(val_0000, 0.556047); DEF_STATIC_CONST_VAL_FLOAT(val_0001, 110.412003); #define CTNODE_cmu_us_rms_f0_zh_204_NO_0000 2 DEF_STATIC_CONST_VAL_FLOAT(val_0002, 97.185600); DEF_STATIC_CONST_VAL_FLOAT(val_0003, 100.119003); DEF_STATIC_CONST_VAL_FLOAT(val_0004, 100.661003); DEF_STATIC_CONST_VAL_FLOAT(val_0005, 0.495560); DEF_STATIC_CONST_VAL_FLOAT(val_0006, 0.128000); DEF_STATIC_CONST_VAL_FLOAT(val_0007, 112.811996); #define CTNODE_cmu_us_rms_f0_oy_131_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0008, 51.500000); DEF_STATIC_CONST_VAL_FLOAT(val_0009, 100.893997); #define CTNODE_cmu_us_rms_f0_oy_131_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_0010, 106.808998); #define CTNODE_cmu_us_rms_f0_oy_131_NO_0000 6 DEF_STATIC_CONST_VAL_FLOAT(val_0011, 0.766811); DEF_STATIC_CONST_VAL_STRING(val_0012, "content"); DEF_STATIC_CONST_VAL_FLOAT(val_0013, 102.051003); #define CTNODE_cmu_us_rms_f0_oy_131_NO_0007 9 DEF_STATIC_CONST_VAL_FLOAT(val_0014, 94.275597); #define CTNODE_cmu_us_rms_f0_oy_131_NO_0006 10 DEF_STATIC_CONST_VAL_FLOAT(val_0015, 89.268501); DEF_STATIC_CONST_VAL_FLOAT(val_0016, 0.793674); DEF_STATIC_CONST_VAL_STRING(val_0017, "-"); DEF_STATIC_CONST_VAL_FLOAT(val_0018, 96.056000); #define CTNODE_cmu_us_rms_f0_oy_132_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0019, 106.685997); #define CTNODE_cmu_us_rms_f0_oy_132_NO_0000 4 DEF_STATIC_CONST_VAL_FLOAT(val_0020, 84.912498); DEF_STATIC_CONST_VAL_FLOAT(val_0021, 35.200001); DEF_STATIC_CONST_VAL_FLOAT(val_0022, 104.902000); #define CTNODE_cmu_us_rms_f0_oy_133_NO_0000 2 DEF_STATIC_CONST_VAL_STRING(val_0023, "b"); DEF_STATIC_CONST_VAL_FLOAT(val_0024, 82.202599); #define CTNODE_cmu_us_rms_f0_oy_133_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_0025, 89.678001); #define CTNODE_cmu_us_rms_f0_oy_133_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_0026, 102.782997); DEF_STATIC_CONST_VAL_FLOAT(val_0027, 0.190115); DEF_STATIC_CONST_VAL_FLOAT(val_0028, 123.052002); #define CTNODE_cmu_us_rms_f0_ch_41_NO_0000 2 DEF_STATIC_CONST_VAL_FLOAT(val_0029, 111.883003); #define CTNODE_cmu_us_rms_f0_ch_41_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_0030, 26.500000); DEF_STATIC_CONST_VAL_FLOAT(val_0031, 0.486837); DEF_STATIC_CONST_VAL_FLOAT(val_0032, 109.185997); #define CTNODE_cmu_us_rms_f0_ch_41_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_0033, 0.056000); DEF_STATIC_CONST_VAL_FLOAT(val_0034, 100.605003); #define CTNODE_cmu_us_rms_f0_ch_41_NO_0007 9 DEF_STATIC_CONST_VAL_FLOAT(val_0035, 93.922302); #define CTNODE_cmu_us_rms_f0_ch_41_NO_0004 10 DEF_STATIC_CONST_VAL_FLOAT(val_0036, 89.520302); DEF_STATIC_CONST_VAL_FLOAT(val_0037, 0.201523); DEF_STATIC_CONST_VAL_FLOAT(val_0038, 13.000000); DEF_STATIC_CONST_VAL_FLOAT(val_0039, 135.069000); #define CTNODE_cmu_us_rms_f0_ch_42_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0040, 123.934998); #define CTNODE_cmu_us_rms_f0_ch_42_NO_0000 4 DEF_STATIC_CONST_VAL_STRING(val_0041, "0"); DEF_STATIC_CONST_VAL_STRING(val_0042, "a"); DEF_STATIC_CONST_VAL_FLOAT(val_0043, 103.030998); #define CTNODE_cmu_us_rms_f0_ch_42_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_0044, 122.855003); #define CTNODE_cmu_us_rms_f0_ch_42_NO_0007 9 DEF_STATIC_CONST_VAL_FLOAT(val_0045, 0.742564); DEF_STATIC_CONST_VAL_FLOAT(val_0046, 0.601250); DEF_STATIC_CONST_VAL_FLOAT(val_0047, 110.195000); #define CTNODE_cmu_us_rms_f0_ch_42_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_0048, 118.990997); #define CTNODE_cmu_us_rms_f0_ch_42_NO_0009 13 DEF_STATIC_CONST_VAL_FLOAT(val_0049, 102.987000); #define CTNODE_cmu_us_rms_f0_ch_42_NO_0004 14 DEF_STATIC_CONST_VAL_FLOAT(val_0050, 94.425301); DEF_STATIC_CONST_VAL_FLOAT(val_0051, 1.200000); DEF_STATIC_CONST_VAL_FLOAT(val_0052, 126.111000); #define CTNODE_cmu_us_rms_f0_ch_43_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0053, 113.815002); #define CTNODE_cmu_us_rms_f0_ch_43_NO_0000 4 DEF_STATIC_CONST_VAL_FLOAT(val_0054, 105.318001); DEF_STATIC_CONST_VAL_STRING(val_0055, "f"); DEF_STATIC_CONST_VAL_FLOAT(val_0056, 0.297878); DEF_STATIC_CONST_VAL_FLOAT(val_0057, 116.084999); #define CTNODE_cmu_us_rms_f0_aw_21_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0058, 102.650002); #define CTNODE_cmu_us_rms_f0_aw_21_NO_0000 4 DEF_STATIC_CONST_VAL_FLOAT(val_0059, 0.110000); DEF_STATIC_CONST_VAL_FLOAT(val_0060, 91.957100); #define CTNODE_cmu_us_rms_f0_aw_21_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_0061, 14.000000); DEF_STATIC_CONST_VAL_FLOAT(val_0062, 85.733200); #define CTNODE_cmu_us_rms_f0_aw_21_NO_0007 9 DEF_STATIC_CONST_VAL_FLOAT(val_0063, 87.349800); #define CTNODE_cmu_us_rms_f0_aw_21_NO_0004 10 DEF_STATIC_CONST_VAL_FLOAT(val_0064, 0.181057); DEF_STATIC_CONST_VAL_FLOAT(val_0065, 101.349998); #define CTNODE_cmu_us_rms_f0_aw_21_NO_0011 13 DEF_STATIC_CONST_VAL_STRING(val_0066, "in"); DEF_STATIC_CONST_VAL_FLOAT(val_0067, 83.487999); #define CTNODE_cmu_us_rms_f0_aw_21_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_0068, 91.102997); #define CTNODE_cmu_us_rms_f0_aw_21_NO_0010 16 DEF_STATIC_CONST_VAL_FLOAT(val_0069, 107.222000); #define CTNODE_cmu_us_rms_f0_aw_21_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_0070, 104.516998); #define CTNODE_cmu_us_rms_f0_aw_21_NO_0016 20 DEF_STATIC_CONST_VAL_FLOAT(val_0071, 0.124000); DEF_STATIC_CONST_VAL_FLOAT(val_0072, 95.762299); #define CTNODE_cmu_us_rms_f0_aw_21_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_0073, 90.788399); #define CTNODE_cmu_us_rms_f0_aw_21_NO_0021 25 DEF_STATIC_CONST_VAL_FLOAT(val_0074, 99.149597); #define CTNODE_cmu_us_rms_f0_aw_21_NO_0020 26 DEF_STATIC_CONST_VAL_FLOAT(val_0075, 106.454002); DEF_STATIC_CONST_VAL_FLOAT(val_0076, 1.194000); DEF_STATIC_CONST_VAL_FLOAT(val_0077, 0.052000); DEF_STATIC_CONST_VAL_FLOAT(val_0078, 106.306000); #define CTNODE_cmu_us_rms_f0_aw_22_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_0079, 15.400000); DEF_STATIC_CONST_VAL_FLOAT(val_0080, 109.782997); #define CTNODE_cmu_us_rms_f0_aw_22_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_0081, 116.206001); #define CTNODE_cmu_us_rms_f0_aw_22_NO_0001 7 DEF_STATIC_CONST_VAL_FLOAT(val_0082, 0.707500); DEF_STATIC_CONST_VAL_FLOAT(val_0083, 103.750999); #define CTNODE_cmu_us_rms_f0_aw_22_NO_0007 9 DEF_STATIC_CONST_VAL_FLOAT(val_0084, 98.533897); #define CTNODE_cmu_us_rms_f0_aw_22_NO_0000 10 DEF_STATIC_CONST_VAL_STRING(val_0085, "3"); DEF_STATIC_CONST_VAL_FLOAT(val_0086, 81.110298); #define CTNODE_cmu_us_rms_f0_aw_22_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_0087, 1.619500); DEF_STATIC_CONST_VAL_FLOAT(val_0088, 7.200000); DEF_STATIC_CONST_VAL_FLOAT(val_0089, 96.322701); #define CTNODE_cmu_us_rms_f0_aw_22_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_0090, 100.746002); #define CTNODE_cmu_us_rms_f0_aw_22_NO_0012 16 DEF_STATIC_CONST_VAL_FLOAT(val_0091, 91.610603); #define CTNODE_cmu_us_rms_f0_aw_22_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_0092, 97.831497); #define CTNODE_cmu_us_rms_f0_aw_22_NO_0016 20 DEF_STATIC_CONST_VAL_FLOAT(val_0093, 0.091000); DEF_STATIC_CONST_VAL_FLOAT(val_0094, 88.987198); #define CTNODE_cmu_us_rms_f0_aw_22_NO_0020 22 DEF_STATIC_CONST_VAL_FLOAT(val_0095, 12.900000); DEF_STATIC_CONST_VAL_FLOAT(val_0096, 93.922699); #define CTNODE_cmu_us_rms_f0_aw_22_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_0097, 92.086197); DEF_STATIC_CONST_VAL_STRING(val_0098, "n"); DEF_STATIC_CONST_VAL_FLOAT(val_0099, 90.851501); #define CTNODE_cmu_us_rms_f0_aw_23_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_0100, 82.106598); #define CTNODE_cmu_us_rms_f0_aw_23_NO_0001 5 DEF_STATIC_CONST_VAL_FLOAT(val_0101, 0.083000); DEF_STATIC_CONST_VAL_STRING(val_0102, "s"); DEF_STATIC_CONST_VAL_FLOAT(val_0103, 106.176003); #define CTNODE_cmu_us_rms_f0_aw_23_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_0104, 0.057500); DEF_STATIC_CONST_VAL_FLOAT(val_0105, 99.655197); #define CTNODE_cmu_us_rms_f0_aw_23_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_0106, 93.230400); #define CTNODE_cmu_us_rms_f0_aw_23_NO_0005 11 DEF_STATIC_CONST_VAL_FLOAT(val_0107, 0.340656); DEF_STATIC_CONST_VAL_FLOAT(val_0108, 0.053500); DEF_STATIC_CONST_VAL_FLOAT(val_0109, 94.941200); #define CTNODE_cmu_us_rms_f0_aw_23_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_0110, 107.067001); #define CTNODE_cmu_us_rms_f0_aw_23_NO_0011 15 DEF_STATIC_CONST_VAL_STRING(val_0111, "2"); DEF_STATIC_CONST_VAL_FLOAT(val_0112, 92.366096); #define CTNODE_cmu_us_rms_f0_aw_23_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_0113, 81.174797); #define CTNODE_cmu_us_rms_f0_aw_23_NO_0000 18 DEF_STATIC_CONST_VAL_FLOAT(val_0114, 0.629253); DEF_STATIC_CONST_VAL_FLOAT(val_0115, 81.871803); #define CTNODE_cmu_us_rms_f0_aw_23_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_0116, 75.684998); DEF_STATIC_CONST_VAL_FLOAT(val_0117, 0.062000); DEF_STATIC_CONST_VAL_FLOAT(val_0118, 79.334198); #define CTNODE_cmu_us_rms_f0_ow_126_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0119, 90.116501); #define CTNODE_cmu_us_rms_f0_ow_126_NO_0000 4 DEF_STATIC_CONST_VAL_FLOAT(val_0120, 3.600000); DEF_STATIC_CONST_VAL_FLOAT(val_0121, 120.265999); #define CTNODE_cmu_us_rms_f0_ow_126_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_0122, 0.387074); DEF_STATIC_CONST_VAL_FLOAT(val_0123, 103.396004); #define CTNODE_cmu_us_rms_f0_ow_126_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_0124, 113.748001); #define CTNODE_cmu_us_rms_f0_ow_126_NO_0007 11 DEF_STATIC_CONST_VAL_FLOAT(val_0125, 102.021004); #define CTNODE_cmu_us_rms_f0_ow_126_NO_0004 12 DEF_STATIC_CONST_VAL_STRING(val_0126, "final"); DEF_STATIC_CONST_VAL_FLOAT(val_0127, 0.053000); DEF_STATIC_CONST_VAL_FLOAT(val_0128, 99.763702); #define CTNODE_cmu_us_rms_f0_ow_126_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_0129, 87.343803); #define CTNODE_cmu_us_rms_f0_ow_126_NO_0012 16 DEF_STATIC_CONST_VAL_STRING(val_0130, "pau_161"); DEF_STATIC_CONST_VAL_FLOAT(val_0131, 93.563202); #define CTNODE_cmu_us_rms_f0_ow_126_NO_0016 18 DEF_STATIC_CONST_VAL_FLOAT(val_0132, 12.000000); DEF_STATIC_CONST_VAL_FLOAT(val_0133, 107.767998); #define CTNODE_cmu_us_rms_f0_ow_126_NO_0018 20 DEF_STATIC_CONST_VAL_STRING(val_0134, "initial"); DEF_STATIC_CONST_VAL_FLOAT(val_0135, 0.185711); DEF_STATIC_CONST_VAL_FLOAT(val_0136, 113.249001); #define CTNODE_cmu_us_rms_f0_ow_126_NO_0021 23 DEF_STATIC_CONST_VAL_FLOAT(val_0137, 100.709999); #define CTNODE_cmu_us_rms_f0_ow_126_NO_0020 24 DEF_STATIC_CONST_VAL_FLOAT(val_0138, 0.068000); DEF_STATIC_CONST_VAL_FLOAT(val_0139, 6.600000); DEF_STATIC_CONST_VAL_FLOAT(val_0140, 101.274002); #define CTNODE_cmu_us_rms_f0_ow_126_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_0141, 105.323997); #define CTNODE_cmu_us_rms_f0_ow_126_NO_0026 30 DEF_STATIC_CONST_VAL_FLOAT(val_0142, 106.478996); #define CTNODE_cmu_us_rms_f0_ow_126_NO_0025 31 DEF_STATIC_CONST_VAL_FLOAT(val_0143, 99.647102); #define CTNODE_cmu_us_rms_f0_ow_126_NO_0024 32 DEF_STATIC_CONST_VAL_FLOAT(val_0144, 0.281055); DEF_STATIC_CONST_VAL_FLOAT(val_0145, 103.306000); #define CTNODE_cmu_us_rms_f0_ow_126_NO_0032 34 DEF_STATIC_CONST_VAL_FLOAT(val_0146, 0.100000); DEF_STATIC_CONST_VAL_FLOAT(val_0147, 97.450897); #define CTNODE_cmu_us_rms_f0_ow_126_NO_0034 36 DEF_STATIC_CONST_VAL_FLOAT(val_0148, 92.747704); DEF_STATIC_CONST_VAL_FLOAT(val_0149, 1.091000); DEF_STATIC_CONST_VAL_FLOAT(val_0150, 91.225899); #define CTNODE_cmu_us_rms_f0_ow_127_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_0151, 108.320000); #define CTNODE_cmu_us_rms_f0_ow_127_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_0152, 99.957497); #define CTNODE_cmu_us_rms_f0_ow_127_NO_0001 7 DEF_STATIC_CONST_VAL_STRING(val_0153, "coda"); DEF_STATIC_CONST_VAL_FLOAT(val_0154, 112.358002); #define CTNODE_cmu_us_rms_f0_ow_127_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_0155, 101.995003); #define CTNODE_cmu_us_rms_f0_ow_127_NO_0007 11 DEF_STATIC_CONST_VAL_FLOAT(val_0156, 0.092500); DEF_STATIC_CONST_VAL_FLOAT(val_0157, 119.670998); #define CTNODE_cmu_us_rms_f0_ow_127_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_0158, 114.464996); #define CTNODE_cmu_us_rms_f0_ow_127_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_0159, 107.113998); #define CTNODE_cmu_us_rms_f0_ow_127_NO_0000 16 DEF_STATIC_CONST_VAL_FLOAT(val_0160, 19.600000); DEF_STATIC_CONST_VAL_FLOAT(val_0161, 1.875000); DEF_STATIC_CONST_VAL_FLOAT(val_0162, 100.263000); #define CTNODE_cmu_us_rms_f0_ow_127_NO_0019 21 DEF_STATIC_CONST_VAL_FLOAT(val_0163, 106.605003); #define CTNODE_cmu_us_rms_f0_ow_127_NO_0018 22 DEF_STATIC_CONST_VAL_FLOAT(val_0164, 0.391447); DEF_STATIC_CONST_VAL_FLOAT(val_0165, 94.037903); #define CTNODE_cmu_us_rms_f0_ow_127_NO_0023 25 DEF_STATIC_CONST_VAL_FLOAT(val_0166, 90.817703); #define CTNODE_cmu_us_rms_f0_ow_127_NO_0022 26 DEF_STATIC_CONST_VAL_FLOAT(val_0167, 95.300499); #define CTNODE_cmu_us_rms_f0_ow_127_NO_0026 28 DEF_STATIC_CONST_VAL_FLOAT(val_0168, 100.113998); #define CTNODE_cmu_us_rms_f0_ow_127_NO_0017 29 DEF_STATIC_CONST_VAL_FLOAT(val_0169, 0.115000); DEF_STATIC_CONST_VAL_FLOAT(val_0170, 2.249000); DEF_STATIC_CONST_VAL_FLOAT(val_0171, 99.092300); #define CTNODE_cmu_us_rms_f0_ow_127_NO_0030 32 DEF_STATIC_CONST_VAL_FLOAT(val_0172, 90.178703); #define CTNODE_cmu_us_rms_f0_ow_127_NO_0029 33 DEF_STATIC_CONST_VAL_FLOAT(val_0173, 0.164500); DEF_STATIC_CONST_VAL_FLOAT(val_0174, 90.829498); #define CTNODE_cmu_us_rms_f0_ow_127_NO_0033 35 DEF_STATIC_CONST_VAL_FLOAT(val_0175, 82.671898); #define CTNODE_cmu_us_rms_f0_ow_127_NO_0016 36 DEF_STATIC_CONST_VAL_FLOAT(val_0176, 80.801903); #define CTNODE_cmu_us_rms_f0_ow_127_NO_0036 38 DEF_STATIC_CONST_VAL_FLOAT(val_0177, 88.541298); DEF_STATIC_CONST_VAL_FLOAT(val_0178, 78.571899); #define CTNODE_cmu_us_rms_f0_ow_128_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0179, 86.015198); #define CTNODE_cmu_us_rms_f0_ow_128_NO_0000 4 DEF_STATIC_CONST_VAL_FLOAT(val_0180, 112.628998); #define CTNODE_cmu_us_rms_f0_ow_128_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_0181, 39.599998); DEF_STATIC_CONST_VAL_FLOAT(val_0182, 91.845703); #define CTNODE_cmu_us_rms_f0_ow_128_NO_0007 9 DEF_STATIC_CONST_VAL_STRING(val_0183, "l"); DEF_STATIC_CONST_VAL_FLOAT(val_0184, 112.364998); #define CTNODE_cmu_us_rms_f0_ow_128_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_0185, 109.672997); #define CTNODE_cmu_us_rms_f0_ow_128_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_0186, 0.490626); DEF_STATIC_CONST_VAL_FLOAT(val_0187, 108.889999); #define CTNODE_cmu_us_rms_f0_ow_128_NO_0014 16 DEF_STATIC_CONST_VAL_FLOAT(val_0188, 98.365402); #define CTNODE_cmu_us_rms_f0_ow_128_NO_0013 17 DEF_STATIC_CONST_VAL_FLOAT(val_0189, 0.022500); DEF_STATIC_CONST_VAL_FLOAT(val_0190, 101.191002); #define CTNODE_cmu_us_rms_f0_ow_128_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_0191, 93.643600); #define CTNODE_cmu_us_rms_f0_ow_128_NO_0006 20 DEF_STATIC_CONST_VAL_FLOAT(val_0192, 84.819099); DEF_STATIC_CONST_VAL_FLOAT(val_0193, 0.038000); DEF_STATIC_CONST_VAL_FLOAT(val_0194, 112.082001); #define CTNODE_cmu_us_rms_f0_b_36_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0195, 0.462985); DEF_STATIC_CONST_VAL_FLOAT(val_0196, 16.000000); DEF_STATIC_CONST_VAL_FLOAT(val_0197, 97.938499); #define CTNODE_cmu_us_rms_f0_b_36_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_0198, 92.744202); #define CTNODE_cmu_us_rms_f0_b_36_NO_0004 8 DEF_STATIC_CONST_VAL_FLOAT(val_0199, 107.223999); #define CTNODE_cmu_us_rms_f0_b_36_NO_0003 9 DEF_STATIC_CONST_VAL_FLOAT(val_0200, 94.200996); #define CTNODE_cmu_us_rms_f0_b_36_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_0201, 87.863297); #define CTNODE_cmu_us_rms_f0_b_36_NO_0000 12 DEF_STATIC_CONST_VAL_FLOAT(val_0202, 82.108597); #define CTNODE_cmu_us_rms_f0_b_36_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_0203, 79.447098); #define CTNODE_cmu_us_rms_f0_b_36_NO_0012 16 DEF_STATIC_CONST_VAL_STRING(val_0204, "ax_28"); DEF_STATIC_CONST_VAL_FLOAT(val_0205, 90.434502); #define CTNODE_cmu_us_rms_f0_b_36_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_0206, 0.489271); DEF_STATIC_CONST_VAL_FLOAT(val_0207, 88.211800); #define CTNODE_cmu_us_rms_f0_b_36_NO_0019 21 DEF_STATIC_CONST_VAL_FLOAT(val_0208, 82.175903); #define CTNODE_cmu_us_rms_f0_b_36_NO_0016 22 DEF_STATIC_CONST_VAL_FLOAT(val_0209, 0.115872); DEF_STATIC_CONST_VAL_FLOAT(val_0210, 99.746300); #define CTNODE_cmu_us_rms_f0_b_36_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_0211, 0.411363); DEF_STATIC_CONST_VAL_STRING(val_0212, "1"); DEF_STATIC_CONST_VAL_FLOAT(val_0213, 94.720398); #define CTNODE_cmu_us_rms_f0_b_36_NO_0026 28 DEF_STATIC_CONST_VAL_FLOAT(val_0214, 98.545898); #define CTNODE_cmu_us_rms_f0_b_36_NO_0025 29 DEF_STATIC_CONST_VAL_FLOAT(val_0215, 90.020500); #define CTNODE_cmu_us_rms_f0_b_36_NO_0024 30 DEF_STATIC_CONST_VAL_FLOAT(val_0216, 91.610703); #define CTNODE_cmu_us_rms_f0_b_36_NO_0031 33 DEF_STATIC_CONST_VAL_FLOAT(val_0217, 86.251900); #define CTNODE_cmu_us_rms_f0_b_36_NO_0030 34 DEF_STATIC_CONST_VAL_FLOAT(val_0218, 82.448502); DEF_STATIC_CONST_VAL_FLOAT(val_0219, 105.348000); #define CTNODE_cmu_us_rms_f0_b_37_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0220, 0.532570); DEF_STATIC_CONST_VAL_FLOAT(val_0221, 105.745003); #define CTNODE_cmu_us_rms_f0_b_37_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_0222, 111.995003); #define CTNODE_cmu_us_rms_f0_b_37_NO_0003 7 DEF_STATIC_CONST_VAL_FLOAT(val_0223, 0.415637); DEF_STATIC_CONST_VAL_FLOAT(val_0224, 126.660004); #define CTNODE_cmu_us_rms_f0_b_37_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_0225, 111.691002); #define CTNODE_cmu_us_rms_f0_b_37_NO_0007 11 DEF_STATIC_CONST_VAL_FLOAT(val_0226, 110.616997); #define CTNODE_cmu_us_rms_f0_b_37_NO_0000 12 DEF_STATIC_CONST_VAL_FLOAT(val_0227, 2.700000); DEF_STATIC_CONST_VAL_FLOAT(val_0228, 2.284000); DEF_STATIC_CONST_VAL_FLOAT(val_0229, 96.357903); #define CTNODE_cmu_us_rms_f0_b_37_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_0230, 88.632500); #define CTNODE_cmu_us_rms_f0_b_37_NO_0012 16 DEF_STATIC_CONST_VAL_FLOAT(val_0231, 2.362500); DEF_STATIC_CONST_VAL_FLOAT(val_0232, 103.565002); #define CTNODE_cmu_us_rms_f0_b_37_NO_0016 18 DEF_STATIC_CONST_VAL_FLOAT(val_0233, 96.094002); DEF_STATIC_CONST_VAL_FLOAT(val_0234, 17.400000); DEF_STATIC_CONST_VAL_FLOAT(val_0235, 0.027500); DEF_STATIC_CONST_VAL_FLOAT(val_0236, 111.337997); #define CTNODE_cmu_us_rms_f0_b_38_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_0237, 116.870003); #define CTNODE_cmu_us_rms_f0_b_38_NO_0001 5 DEF_STATIC_CONST_VAL_FLOAT(val_0238, 103.301003); #define CTNODE_cmu_us_rms_f0_b_38_NO_0000 6 DEF_STATIC_CONST_VAL_FLOAT(val_0239, 0.018500); DEF_STATIC_CONST_VAL_FLOAT(val_0240, 98.172203); #define CTNODE_cmu_us_rms_f0_b_38_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_0241, 94.497803); #define CTNODE_cmu_us_rms_f0_b_38_NO_0007 11 DEF_STATIC_CONST_VAL_FLOAT(val_0242, 87.666199); #define CTNODE_cmu_us_rms_f0_b_38_NO_0006 12 DEF_STATIC_CONST_VAL_FLOAT(val_0243, 105.417999); DEF_STATIC_CONST_VAL_FLOAT(val_0244, 85.469101); #define CTNODE_cmu_us_rms_f0_g_76_NO_0000 2 DEF_STATIC_CONST_VAL_FLOAT(val_0245, 89.214203); #define CTNODE_cmu_us_rms_f0_g_76_NO_0002 4 DEF_STATIC_CONST_VAL_STRING(val_0246, "+"); DEF_STATIC_CONST_VAL_FLOAT(val_0247, 88.426399); #define CTNODE_cmu_us_rms_f0_g_76_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_0248, 95.366402); #define CTNODE_cmu_us_rms_f0_g_76_NO_0004 8 DEF_STATIC_CONST_VAL_FLOAT(val_0249, 0.512908); DEF_STATIC_CONST_VAL_FLOAT(val_0250, 103.683998); #define CTNODE_cmu_us_rms_f0_g_76_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_0251, 90.327301); DEF_STATIC_CONST_VAL_STRING(val_0252, "pau"); DEF_STATIC_CONST_VAL_FLOAT(val_0253, 119.968002); #define CTNODE_cmu_us_rms_f0_g_77_NO_0000 2 DEF_STATIC_CONST_VAL_FLOAT(val_0254, 103.091003); #define CTNODE_cmu_us_rms_f0_g_77_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_0255, 2.345000); DEF_STATIC_CONST_VAL_FLOAT(val_0256, 90.024300); #define CTNODE_cmu_us_rms_f0_g_77_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_0257, 97.058098); #define CTNODE_cmu_us_rms_f0_g_77_NO_0004 8 DEF_STATIC_CONST_VAL_FLOAT(val_0258, 86.722900); DEF_STATIC_CONST_VAL_FLOAT(val_0259, 11.000000); DEF_STATIC_CONST_VAL_FLOAT(val_0260, 118.584000); #define CTNODE_cmu_us_rms_f0_g_78_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0261, 111.521004); #define CTNODE_cmu_us_rms_f0_g_78_NO_0000 4 DEF_STATIC_CONST_VAL_FLOAT(val_0262, 0.018000); DEF_STATIC_CONST_VAL_FLOAT(val_0263, 0.233708); DEF_STATIC_CONST_VAL_FLOAT(val_0264, 102.003998); #define CTNODE_cmu_us_rms_f0_g_78_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_0265, 0.400000); DEF_STATIC_CONST_VAL_FLOAT(val_0266, 90.612396); #define CTNODE_cmu_us_rms_f0_g_78_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_0267, 95.824097); #define CTNODE_cmu_us_rms_f0_g_78_NO_0005 11 DEF_STATIC_CONST_VAL_FLOAT(val_0268, 101.393997); #define CTNODE_cmu_us_rms_f0_g_78_NO_0004 12 DEF_STATIC_CONST_VAL_FLOAT(val_0269, 110.636002); #define CTNODE_cmu_us_rms_f0_g_78_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_0270, 100.689003); DEF_STATIC_CONST_VAL_FLOAT(val_0271, 0.047000); DEF_STATIC_CONST_VAL_FLOAT(val_0272, 0.360444); DEF_STATIC_CONST_VAL_FLOAT(val_0273, 112.453003); #define CTNODE_cmu_us_rms_f0_ng_121_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0274, 93.301804); #define CTNODE_cmu_us_rms_f0_ng_121_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_0275, 101.432999); #define CTNODE_cmu_us_rms_f0_ng_121_NO_0000 6 DEF_STATIC_CONST_VAL_FLOAT(val_0276, 0.069000); DEF_STATIC_CONST_VAL_FLOAT(val_0277, 96.741096); #define CTNODE_cmu_us_rms_f0_ng_121_NO_0007 9 DEF_STATIC_CONST_VAL_FLOAT(val_0278, 26.000000); DEF_STATIC_CONST_VAL_FLOAT(val_0279, 92.096901); #define CTNODE_cmu_us_rms_f0_ng_121_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_0280, 85.361397); #define CTNODE_cmu_us_rms_f0_ng_121_NO_0006 12 DEF_STATIC_CONST_VAL_FLOAT(val_0281, 79.210403); DEF_STATIC_CONST_VAL_FLOAT(val_0282, 0.837000); DEF_STATIC_CONST_VAL_FLOAT(val_0283, 0.500000); DEF_STATIC_CONST_VAL_FLOAT(val_0284, 110.042000); #define CTNODE_cmu_us_rms_f0_ng_122_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0285, 107.598999); #define CTNODE_cmu_us_rms_f0_ng_122_NO_0000 4 DEF_STATIC_CONST_VAL_FLOAT(val_0286, 2.703000); DEF_STATIC_CONST_VAL_FLOAT(val_0287, 69.457100); #define CTNODE_cmu_us_rms_f0_ng_122_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_0288, 79.233597); #define CTNODE_cmu_us_rms_f0_ng_122_NO_0004 8 DEF_STATIC_CONST_VAL_FLOAT(val_0289, 0.075000); DEF_STATIC_CONST_VAL_FLOAT(val_0290, 0.422361); DEF_STATIC_CONST_VAL_FLOAT(val_0291, 97.480003); #define CTNODE_cmu_us_rms_f0_ng_122_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_0292, 0.024000); DEF_STATIC_CONST_VAL_FLOAT(val_0293, 0.732303); DEF_STATIC_CONST_VAL_FLOAT(val_0294, 93.354301); #define CTNODE_cmu_us_rms_f0_ng_122_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_0295, 88.117599); #define CTNODE_cmu_us_rms_f0_ng_122_NO_0012 16 DEF_STATIC_CONST_VAL_FLOAT(val_0296, 85.993896); #define CTNODE_cmu_us_rms_f0_ng_122_NO_0009 17 DEF_STATIC_CONST_VAL_FLOAT(val_0297, 0.013500); DEF_STATIC_CONST_VAL_FLOAT(val_0298, 104.508003); #define CTNODE_cmu_us_rms_f0_ng_122_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_0299, 100.998001); #define CTNODE_cmu_us_rms_f0_ng_122_NO_0017 21 DEF_STATIC_CONST_VAL_FLOAT(val_0300, 94.007301); #define CTNODE_cmu_us_rms_f0_ng_122_NO_0008 22 DEF_STATIC_CONST_VAL_FLOAT(val_0301, 24.500000); DEF_STATIC_CONST_VAL_FLOAT(val_0302, 84.278099); #define CTNODE_cmu_us_rms_f0_ng_122_NO_0024 26 DEF_STATIC_CONST_VAL_FLOAT(val_0303, 80.863701); #define CTNODE_cmu_us_rms_f0_ng_122_NO_0023 27 DEF_STATIC_CONST_VAL_FLOAT(val_0304, 88.878799); #define CTNODE_cmu_us_rms_f0_ng_122_NO_0022 28 DEF_STATIC_CONST_VAL_FLOAT(val_0305, 11.600000); DEF_STATIC_CONST_VAL_FLOAT(val_0306, 94.306801); #define CTNODE_cmu_us_rms_f0_ng_122_NO_0028 30 DEF_STATIC_CONST_VAL_FLOAT(val_0307, 87.638603); DEF_STATIC_CONST_VAL_FLOAT(val_0308, 0.061000); DEF_STATIC_CONST_VAL_FLOAT(val_0309, 103.919998); #define CTNODE_cmu_us_rms_f0_ng_123_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0310, 0.021500); DEF_STATIC_CONST_VAL_FLOAT(val_0311, 93.502998); #define CTNODE_cmu_us_rms_f0_ng_123_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_0312, 87.065804); #define CTNODE_cmu_us_rms_f0_ng_123_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_0313, 83.382202); #define CTNODE_cmu_us_rms_f0_ng_123_NO_0000 8 DEF_STATIC_CONST_VAL_FLOAT(val_0314, 0.726168); DEF_STATIC_CONST_VAL_FLOAT(val_0315, 87.667801); #define CTNODE_cmu_us_rms_f0_ng_123_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_0316, 81.154800); #define CTNODE_cmu_us_rms_f0_ng_123_NO_0008 12 DEF_STATIC_CONST_VAL_FLOAT(val_0317, 78.613800); DEF_STATIC_CONST_VAL_FLOAT(val_0318, 0.398913); DEF_STATIC_CONST_VAL_FLOAT(val_0319, 125.345001); #define CTNODE_cmu_us_rms_f0_uw_179_NO_0001 3 DEF_STATIC_CONST_VAL_STRING(val_0320, "y_196"); DEF_STATIC_CONST_VAL_FLOAT(val_0321, 103.985001); #define CTNODE_cmu_us_rms_f0_uw_179_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_0322, 112.973999); #define CTNODE_cmu_us_rms_f0_uw_179_NO_0000 6 DEF_STATIC_CONST_VAL_FLOAT(val_0323, 89.602898); #define CTNODE_cmu_us_rms_f0_uw_179_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_0324, 95.579697); #define CTNODE_cmu_us_rms_f0_uw_179_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_0325, 115.186996); #define CTNODE_cmu_us_rms_f0_uw_179_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_0326, 103.429001); #define CTNODE_cmu_us_rms_f0_uw_179_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_0327, 103.216003); DEF_STATIC_CONST_VAL_FLOAT(val_0328, 0.201403); DEF_STATIC_CONST_VAL_STRING(val_0329, "p"); DEF_STATIC_CONST_VAL_FLOAT(val_0330, 110.976997); #define CTNODE_cmu_us_rms_f0_uw_180_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0331, 125.470001); #define CTNODE_cmu_us_rms_f0_uw_180_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_0332, 132.214005); #define CTNODE_cmu_us_rms_f0_uw_180_NO_0000 6 DEF_STATIC_CONST_VAL_FLOAT(val_0333, 0.504772); DEF_STATIC_CONST_VAL_FLOAT(val_0334, 114.580002); #define CTNODE_cmu_us_rms_f0_uw_180_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_0335, 107.309998); #define CTNODE_cmu_us_rms_f0_uw_180_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_0336, 102.028999); #define CTNODE_cmu_us_rms_f0_uw_180_NO_0007 13 DEF_STATIC_CONST_VAL_FLOAT(val_0337, 107.686996); #define CTNODE_cmu_us_rms_f0_uw_180_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_0338, 94.069504); #define CTNODE_cmu_us_rms_f0_uw_180_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_0339, 98.024803); #define CTNODE_cmu_us_rms_f0_uw_180_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_0340, 104.556000); #define CTNODE_cmu_us_rms_f0_uw_180_NO_0006 20 DEF_STATIC_CONST_VAL_FLOAT(val_0341, 86.103798); #define CTNODE_cmu_us_rms_f0_uw_180_NO_0020 22 DEF_STATIC_CONST_VAL_FLOAT(val_0342, 96.714401); DEF_STATIC_CONST_VAL_FLOAT(val_0343, 0.205044); DEF_STATIC_CONST_VAL_FLOAT(val_0344, 118.056000); #define CTNODE_cmu_us_rms_f0_uw_181_NO_0000 2 DEF_STATIC_CONST_VAL_STRING(val_0345, "pau_141"); DEF_STATIC_CONST_VAL_STRING(val_0346, "y"); DEF_STATIC_CONST_VAL_FLOAT(val_0347, 82.100304); #define CTNODE_cmu_us_rms_f0_uw_181_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_0348, 75.252701); #define CTNODE_cmu_us_rms_f0_uw_181_NO_0002 6 DEF_STATIC_CONST_VAL_FLOAT(val_0349, 0.812665); DEF_STATIC_CONST_VAL_FLOAT(val_0350, 89.559700); #define CTNODE_cmu_us_rms_f0_uw_181_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_0351, 95.095596); #define CTNODE_cmu_us_rms_f0_uw_181_NO_0007 11 DEF_STATIC_CONST_VAL_FLOAT(val_0352, 106.833000); #define CTNODE_cmu_us_rms_f0_uw_181_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_0353, 95.875198); #define CTNODE_cmu_us_rms_f0_uw_181_NO_0012 16 DEF_STATIC_CONST_VAL_FLOAT(val_0354, 112.982002); #define CTNODE_cmu_us_rms_f0_uw_181_NO_0011 17 DEF_STATIC_CONST_VAL_FLOAT(val_0355, 93.802902); #define CTNODE_cmu_us_rms_f0_uw_181_NO_0006 18 DEF_STATIC_CONST_VAL_FLOAT(val_0356, 89.791801); DEF_STATIC_CONST_VAL_FLOAT(val_0357, 0.372903); DEF_STATIC_CONST_VAL_FLOAT(val_0358, 130.764999); #define CTNODE_cmu_us_rms_f0_sh_156_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0359, 111.002998); #define CTNODE_cmu_us_rms_f0_sh_156_NO_0000 4 DEF_STATIC_CONST_VAL_FLOAT(val_0360, 0.496583); DEF_STATIC_CONST_VAL_FLOAT(val_0361, 105.417000); #define CTNODE_cmu_us_rms_f0_sh_156_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_0362, 95.190498); DEF_STATIC_CONST_VAL_FLOAT(val_0363, 0.136000); DEF_STATIC_CONST_VAL_FLOAT(val_0364, 145.809006); #define CTNODE_cmu_us_rms_f0_sh_157_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_0365, 137.531006); #define CTNODE_cmu_us_rms_f0_sh_157_NO_0001 5 DEF_STATIC_CONST_VAL_FLOAT(val_0366, 0.505351); DEF_STATIC_CONST_VAL_FLOAT(val_0367, 129.531006); #define CTNODE_cmu_us_rms_f0_sh_157_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_0368, 111.544998); #define CTNODE_cmu_us_rms_f0_sh_157_NO_0005 9 DEF_STATIC_CONST_VAL_FLOAT(val_0369, 130.802994); #define CTNODE_cmu_us_rms_f0_sh_157_NO_0000 10 DEF_STATIC_CONST_VAL_FLOAT(val_0370, 11.800000); DEF_STATIC_CONST_VAL_FLOAT(val_0371, 0.409401); DEF_STATIC_CONST_VAL_FLOAT(val_0372, 0.183377); DEF_STATIC_CONST_VAL_FLOAT(val_0373, 118.457001); #define CTNODE_cmu_us_rms_f0_sh_157_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_0374, 112.843002); #define CTNODE_cmu_us_rms_f0_sh_157_NO_0014 16 DEF_STATIC_CONST_VAL_FLOAT(val_0375, 100.348999); #define CTNODE_cmu_us_rms_f0_sh_157_NO_0011 17 DEF_STATIC_CONST_VAL_FLOAT(val_0376, 7.000000); DEF_STATIC_CONST_VAL_FLOAT(val_0377, 91.441704); #define CTNODE_cmu_us_rms_f0_sh_157_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_0378, 96.801399); #define CTNODE_cmu_us_rms_f0_sh_157_NO_0017 21 DEF_STATIC_CONST_VAL_FLOAT(val_0379, 0.020000); DEF_STATIC_CONST_VAL_FLOAT(val_0380, 101.512001); #define CTNODE_cmu_us_rms_f0_sh_157_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_0381, 108.133003); #define CTNODE_cmu_us_rms_f0_sh_157_NO_0021 25 DEF_STATIC_CONST_VAL_FLOAT(val_0382, 98.277702); #define CTNODE_cmu_us_rms_f0_sh_157_NO_0010 26 DEF_STATIC_CONST_VAL_FLOAT(val_0383, 0.624947); DEF_STATIC_CONST_VAL_FLOAT(val_0384, 119.844002); #define CTNODE_cmu_us_rms_f0_sh_157_NO_0028 30 DEF_STATIC_CONST_VAL_FLOAT(val_0385, 108.080002); #define CTNODE_cmu_us_rms_f0_sh_157_NO_0027 31 DEF_STATIC_CONST_VAL_FLOAT(val_0386, 20.600000); DEF_STATIC_CONST_VAL_FLOAT(val_0387, 0.352171); DEF_STATIC_CONST_VAL_FLOAT(val_0388, 124.288002); #define CTNODE_cmu_us_rms_f0_sh_157_NO_0032 34 DEF_STATIC_CONST_VAL_FLOAT(val_0389, 114.953003); #define CTNODE_cmu_us_rms_f0_sh_157_NO_0031 35 DEF_STATIC_CONST_VAL_FLOAT(val_0390, 132.572998); #define CTNODE_cmu_us_rms_f0_sh_157_NO_0026 36 DEF_STATIC_CONST_VAL_FLOAT(val_0391, 99.801003); #define CTNODE_cmu_us_rms_f0_sh_157_NO_0036 38 DEF_STATIC_CONST_VAL_FLOAT(val_0392, 103.441002); #define CTNODE_cmu_us_rms_f0_sh_157_NO_0039 41 DEF_STATIC_CONST_VAL_FLOAT(val_0393, 111.809998); #define CTNODE_cmu_us_rms_f0_sh_157_NO_0038 42 DEF_STATIC_CONST_VAL_FLOAT(val_0394, 118.605003); DEF_STATIC_CONST_VAL_FLOAT(val_0395, 0.062000); DEF_STATIC_CONST_VAL_FLOAT(val_0396, 0.424309); DEF_STATIC_CONST_VAL_FLOAT(val_0397, 120.375000); #define CTNODE_cmu_us_rms_f0_sh_158_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0398, 99.450104); #define CTNODE_cmu_us_rms_f0_sh_158_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_0399, 112.852997); #define CTNODE_cmu_us_rms_f0_sh_158_NO_0000 6 DEF_STATIC_CONST_VAL_FLOAT(val_0400, 112.115997); #define CTNODE_cmu_us_rms_f0_sh_158_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_0401, 26.900000); DEF_STATIC_CONST_VAL_FLOAT(val_0402, 124.806000); #define CTNODE_cmu_us_rms_f0_sh_158_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_0403, 133.751999); DEF_STATIC_CONST_VAL_FLOAT(val_0404, 0.775756); DEF_STATIC_CONST_VAL_FLOAT(val_0405, 107.029999); #define CTNODE_cmu_us_rms_f0_uh_174_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0406, 123.116997); #define CTNODE_cmu_us_rms_f0_uh_174_NO_0000 4 DEF_STATIC_CONST_VAL_FLOAT(val_0407, 93.253998); DEF_STATIC_CONST_VAL_FLOAT(val_0408, 0.210787); DEF_STATIC_CONST_VAL_FLOAT(val_0409, 119.434998); #define CTNODE_cmu_us_rms_f0_uh_175_NO_0000 2 DEF_STATIC_CONST_VAL_FLOAT(val_0410, 9.200000); DEF_STATIC_CONST_VAL_FLOAT(val_0411, 106.973999); #define CTNODE_cmu_us_rms_f0_uh_175_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_0412, 96.044998); DEF_STATIC_CONST_VAL_FLOAT(val_0413, 0.225207); DEF_STATIC_CONST_VAL_FLOAT(val_0414, 119.119003); #define CTNODE_cmu_us_rms_f0_uh_176_NO_0000 2 DEF_STATIC_CONST_VAL_FLOAT(val_0415, 95.050697); #define CTNODE_cmu_us_rms_f0_uh_176_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_0416, 109.110001); DEF_STATIC_CONST_VAL_FLOAT(val_0417, 0.047000); DEF_STATIC_CONST_VAL_FLOAT(val_0418, 0.268421); DEF_STATIC_CONST_VAL_FLOAT(val_0419, 129.727997); #define CTNODE_cmu_us_rms_f0_hh_81_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_0420, 128.529999); #define CTNODE_cmu_us_rms_f0_hh_81_NO_0002 6 DEF_STATIC_CONST_VAL_FLOAT(val_0421, 123.850998); #define CTNODE_cmu_us_rms_f0_hh_81_NO_0001 7 DEF_STATIC_CONST_VAL_FLOAT(val_0422, 135.570007); #define CTNODE_cmu_us_rms_f0_hh_81_NO_0000 8 DEF_STATIC_CONST_VAL_STRING(val_0423, "pau_142"); DEF_STATIC_CONST_VAL_FLOAT(val_0424, 109.113998); #define CTNODE_cmu_us_rms_f0_hh_81_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_0425, 8.800000); DEF_STATIC_CONST_VAL_FLOAT(val_0426, 0.303952); DEF_STATIC_CONST_VAL_FLOAT(val_0427, 5.600000); DEF_STATIC_CONST_VAL_FLOAT(val_0428, 107.030998); #define CTNODE_cmu_us_rms_f0_hh_81_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_0429, 102.801003); #define CTNODE_cmu_us_rms_f0_hh_81_NO_0011 15 DEF_STATIC_CONST_VAL_FLOAT(val_0430, 98.216202); #define CTNODE_cmu_us_rms_f0_hh_81_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_0431, 92.405602); #define CTNODE_cmu_us_rms_f0_hh_81_NO_0010 18 DEF_STATIC_CONST_VAL_FLOAT(val_0432, 0.482399); DEF_STATIC_CONST_VAL_FLOAT(val_0433, 96.009499); #define CTNODE_cmu_us_rms_f0_hh_81_NO_0019 21 DEF_STATIC_CONST_VAL_FLOAT(val_0434, 88.744904); #define CTNODE_cmu_us_rms_f0_hh_81_NO_0018 22 DEF_STATIC_CONST_VAL_FLOAT(val_0435, 0.067500); DEF_STATIC_CONST_VAL_FLOAT(val_0436, 81.314796); #define CTNODE_cmu_us_rms_f0_hh_81_NO_0023 25 DEF_STATIC_CONST_VAL_FLOAT(val_0437, 85.297798); #define CTNODE_cmu_us_rms_f0_hh_81_NO_0022 26 DEF_STATIC_CONST_VAL_FLOAT(val_0438, 90.661598); DEF_STATIC_CONST_VAL_FLOAT(val_0439, 0.012000); DEF_STATIC_CONST_VAL_FLOAT(val_0440, 131.423996); #define CTNODE_cmu_us_rms_f0_hh_82_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_0441, 135.602997); #define CTNODE_cmu_us_rms_f0_hh_82_NO_0002 6 DEF_STATIC_CONST_VAL_FLOAT(val_0442, 139.953003); #define CTNODE_cmu_us_rms_f0_hh_82_NO_0001 7 DEF_STATIC_CONST_VAL_FLOAT(val_0443, 118.932999); #define CTNODE_cmu_us_rms_f0_hh_82_NO_0000 8 DEF_STATIC_CONST_VAL_FLOAT(val_0444, 11.200000); DEF_STATIC_CONST_VAL_FLOAT(val_0445, 0.069000); DEF_STATIC_CONST_VAL_FLOAT(val_0446, 97.236099); #define CTNODE_cmu_us_rms_f0_hh_82_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_0447, 107.133003); #define CTNODE_cmu_us_rms_f0_hh_82_NO_0009 13 DEF_STATIC_CONST_VAL_FLOAT(val_0448, 114.774002); #define CTNODE_cmu_us_rms_f0_hh_82_NO_0008 14 DEF_STATIC_CONST_VAL_FLOAT(val_0449, 15.500000); DEF_STATIC_CONST_VAL_FLOAT(val_0450, 3.800000); DEF_STATIC_CONST_VAL_FLOAT(val_0451, 0.484999); DEF_STATIC_CONST_VAL_FLOAT(val_0452, 102.042999); #define CTNODE_cmu_us_rms_f0_hh_82_NO_0016 18 DEF_STATIC_CONST_VAL_FLOAT(val_0453, 92.933403); #define CTNODE_cmu_us_rms_f0_hh_82_NO_0015 19 DEF_STATIC_CONST_VAL_FLOAT(val_0454, 83.014297); #define CTNODE_cmu_us_rms_f0_hh_82_NO_0020 22 DEF_STATIC_CONST_VAL_FLOAT(val_0455, 0.072500); DEF_STATIC_CONST_VAL_FLOAT(val_0456, 89.728897); #define CTNODE_cmu_us_rms_f0_hh_82_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_0457, 99.911797); #define CTNODE_cmu_us_rms_f0_hh_82_NO_0019 25 DEF_STATIC_CONST_VAL_FLOAT(val_0458, 88.652298); #define CTNODE_cmu_us_rms_f0_hh_82_NO_0025 27 DEF_STATIC_CONST_VAL_FLOAT(val_0459, 0.474889); DEF_STATIC_CONST_VAL_FLOAT(val_0460, 80.567001); #define CTNODE_cmu_us_rms_f0_hh_82_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_0461, 77.612198); #define CTNODE_cmu_us_rms_f0_hh_82_NO_0014 30 DEF_STATIC_CONST_VAL_FLOAT(val_0462, 106.289001); DEF_STATIC_CONST_VAL_FLOAT(val_0463, 132.485001); #define CTNODE_cmu_us_rms_f0_hh_83_NO_0000 2 DEF_STATIC_CONST_VAL_FLOAT(val_0464, 15.600000); DEF_STATIC_CONST_VAL_FLOAT(val_0465, 2.200000); DEF_STATIC_CONST_VAL_FLOAT(val_0466, 0.219471); DEF_STATIC_CONST_VAL_FLOAT(val_0467, 108.734001); #define CTNODE_cmu_us_rms_f0_hh_83_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_0468, 0.734588); DEF_STATIC_CONST_VAL_FLOAT(val_0469, 102.223000); #define CTNODE_cmu_us_rms_f0_hh_83_NO_0007 9 DEF_STATIC_CONST_VAL_FLOAT(val_0470, 96.788803); #define CTNODE_cmu_us_rms_f0_hh_83_NO_0006 10 DEF_STATIC_CONST_VAL_FLOAT(val_0471, 92.873596); #define CTNODE_cmu_us_rms_f0_hh_83_NO_0003 11 DEF_STATIC_CONST_VAL_FLOAT(val_0472, 0.582813); DEF_STATIC_CONST_VAL_FLOAT(val_0473, 93.184097); #define CTNODE_cmu_us_rms_f0_hh_83_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_0474, 85.354897); #define CTNODE_cmu_us_rms_f0_hh_83_NO_0002 14 DEF_STATIC_CONST_VAL_FLOAT(val_0475, 109.477997); DEF_STATIC_CONST_VAL_FLOAT(val_0476, 0.276786); DEF_STATIC_CONST_VAL_FLOAT(val_0477, 0.194007); DEF_STATIC_CONST_VAL_FLOAT(val_0478, 0.116729); DEF_STATIC_CONST_VAL_FLOAT(val_0479, 102.825996); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_0480, 111.200996); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0002 6 DEF_STATIC_CONST_VAL_FLOAT(val_0481, 98.200104); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0001 7 DEF_STATIC_CONST_VAL_FLOAT(val_0482, 105.433998); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0007 9 DEF_STATIC_CONST_VAL_FLOAT(val_0483, 109.961998); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_0484, 122.007004); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0000 12 DEF_STATIC_CONST_VAL_STRING(val_0485, "k_103"); DEF_STATIC_CONST_VAL_FLOAT(val_0486, 110.486000); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_0487, 0.099000); DEF_STATIC_CONST_VAL_FLOAT(val_0488, 0.104000); DEF_STATIC_CONST_VAL_FLOAT(val_0489, 0.611920); DEF_STATIC_CONST_VAL_FLOAT(val_0490, 0.073000); DEF_STATIC_CONST_VAL_FLOAT(val_0491, 0.057000); DEF_STATIC_CONST_VAL_FLOAT(val_0492, 0.040000); DEF_STATIC_CONST_VAL_FLOAT(val_0493, 97.190399); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0021 23 DEF_STATIC_CONST_VAL_FLOAT(val_0494, 102.070000); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0020 24 DEF_STATIC_CONST_VAL_FLOAT(val_0495, 93.288803); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0019 25 DEF_STATIC_CONST_VAL_FLOAT(val_0496, 103.982002); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0018 26 DEF_STATIC_CONST_VAL_FLOAT(val_0497, 93.398697); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0017 27 DEF_STATIC_CONST_VAL_FLOAT(val_0498, 89.217201); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0028 30 DEF_STATIC_CONST_VAL_FLOAT(val_0499, 95.474197); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0027 31 DEF_STATIC_CONST_VAL_FLOAT(val_0500, 86.761002); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0016 32 DEF_STATIC_CONST_VAL_FLOAT(val_0501, 0.124500); DEF_STATIC_CONST_VAL_FLOAT(val_0502, 0.255556); DEF_STATIC_CONST_VAL_FLOAT(val_0503, 79.302101); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0033 35 DEF_STATIC_CONST_VAL_FLOAT(val_0504, 89.852699); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0032 36 DEF_STATIC_CONST_VAL_FLOAT(val_0505, 93.564697); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0015 37 DEF_STATIC_CONST_VAL_FLOAT(val_0506, 0.609322); DEF_STATIC_CONST_VAL_FLOAT(val_0507, 96.348900); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0038 40 DEF_STATIC_CONST_VAL_FLOAT(val_0508, 90.770103); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0037 41 DEF_STATIC_CONST_VAL_STRING(val_0509, "hh_83"); DEF_STATIC_CONST_VAL_FLOAT(val_0510, 0.605562); DEF_STATIC_CONST_VAL_FLOAT(val_0511, 104.855003); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0042 44 DEF_STATIC_CONST_VAL_FLOAT(val_0512, 98.660301); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0041 45 DEF_STATIC_CONST_VAL_FLOAT(val_0513, 111.644997); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0014 46 DEF_STATIC_CONST_VAL_FLOAT(val_0514, 0.083721); DEF_STATIC_CONST_VAL_FLOAT(val_0515, 101.450996); #define CTNODE_cmu_us_rms_f0_ae_6_NO_0046 48 DEF_STATIC_CONST_VAL_FLOAT(val_0516, 108.280998); DEF_STATIC_CONST_VAL_FLOAT(val_0517, 0.431552); DEF_STATIC_CONST_VAL_FLOAT(val_0518, 1.125000); DEF_STATIC_CONST_VAL_STRING(val_0519, "cc"); DEF_STATIC_CONST_VAL_FLOAT(val_0520, 0.020000); DEF_STATIC_CONST_VAL_FLOAT(val_0521, 0.191000); DEF_STATIC_CONST_VAL_FLOAT(val_0522, 0.300000); DEF_STATIC_CONST_VAL_FLOAT(val_0523, 101.721001); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_0524, 0.172500); DEF_STATIC_CONST_VAL_FLOAT(val_0525, 98.432297); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_0526, 100.254997); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0005 11 DEF_STATIC_CONST_VAL_FLOAT(val_0527, 103.016998); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0004 12 DEF_STATIC_CONST_VAL_FLOAT(val_0528, 96.755302); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0003 13 DEF_STATIC_CONST_VAL_FLOAT(val_0529, 10.600000); DEF_STATIC_CONST_VAL_FLOAT(val_0530, 101.667999); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_0531, 104.772003); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0002 16 DEF_STATIC_CONST_VAL_FLOAT(val_0532, 0.395161); DEF_STATIC_CONST_VAL_FLOAT(val_0533, 94.851799); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0016 18 DEF_STATIC_CONST_VAL_FLOAT(val_0534, 90.110901); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0001 19 DEF_STATIC_CONST_VAL_FLOAT(val_0535, 0.656000); DEF_STATIC_CONST_VAL_FLOAT(val_0536, 16.299999); DEF_STATIC_CONST_VAL_FLOAT(val_0537, 107.419998); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0021 23 DEF_STATIC_CONST_VAL_FLOAT(val_0538, 102.870003); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0020 24 DEF_STATIC_CONST_VAL_FLOAT(val_0539, 102.072998); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0024 26 DEF_STATIC_CONST_VAL_FLOAT(val_0540, 95.931000); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0019 27 DEF_STATIC_CONST_VAL_FLOAT(val_0541, 0.442500); DEF_STATIC_CONST_VAL_FLOAT(val_0542, 0.500769); DEF_STATIC_CONST_VAL_FLOAT(val_0543, 115.102997); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0029 31 DEF_STATIC_CONST_VAL_FLOAT(val_0544, 107.081001); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0028 32 DEF_STATIC_CONST_VAL_FLOAT(val_0545, 0.396000); DEF_STATIC_CONST_VAL_FLOAT(val_0546, 106.959999); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0032 34 DEF_STATIC_CONST_VAL_FLOAT(val_0547, 98.571701); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0027 35 DEF_STATIC_CONST_VAL_FLOAT(val_0548, 0.308101); DEF_STATIC_CONST_VAL_FLOAT(val_0549, 117.459999); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0035 37 DEF_STATIC_CONST_VAL_FLOAT(val_0550, 110.862999); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0000 38 DEF_STATIC_CONST_VAL_FLOAT(val_0551, 0.793576); DEF_STATIC_CONST_VAL_FLOAT(val_0552, 101.289001); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0041 43 DEF_STATIC_CONST_VAL_FLOAT(val_0553, 107.319000); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0040 44 DEF_STATIC_CONST_VAL_FLOAT(val_0554, 98.249298); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0039 45 DEF_STATIC_CONST_VAL_FLOAT(val_0555, 95.975800); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0045 47 DEF_STATIC_CONST_VAL_FLOAT(val_0556, 89.795700); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0038 48 DEF_STATIC_CONST_VAL_FLOAT(val_0557, 9.400000); DEF_STATIC_CONST_VAL_FLOAT(val_0558, 0.637107); DEF_STATIC_CONST_VAL_FLOAT(val_0559, 99.381401); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0050 52 DEF_STATIC_CONST_VAL_FLOAT(val_0560, 0.536574); DEF_STATIC_CONST_VAL_FLOAT(val_0561, 94.842003); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0053 55 DEF_STATIC_CONST_VAL_FLOAT(val_0562, 94.392502); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0052 56 DEF_STATIC_CONST_VAL_FLOAT(val_0563, 5.400000); DEF_STATIC_CONST_VAL_FLOAT(val_0564, 92.384003); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0056 58 DEF_STATIC_CONST_VAL_FLOAT(val_0565, 90.986000); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0049 59 DEF_STATIC_CONST_VAL_FLOAT(val_0566, 0.400124); DEF_STATIC_CONST_VAL_FLOAT(val_0567, 95.181999); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0060 62 DEF_STATIC_CONST_VAL_FLOAT(val_0568, 2.600000); DEF_STATIC_CONST_VAL_FLOAT(val_0569, 92.765900); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0062 64 DEF_STATIC_CONST_VAL_FLOAT(val_0570, 88.808296); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0059 65 DEF_STATIC_CONST_VAL_FLOAT(val_0571, 9.300000); DEF_STATIC_CONST_VAL_FLOAT(val_0572, 87.453102); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0065 67 DEF_STATIC_CONST_VAL_FLOAT(val_0573, 91.014801); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0048 68 DEF_STATIC_CONST_VAL_FLOAT(val_0574, 0.851287); DEF_STATIC_CONST_VAL_FLOAT(val_0575, 0.641399); DEF_STATIC_CONST_VAL_FLOAT(val_0576, 89.119003); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0070 72 DEF_STATIC_CONST_VAL_FLOAT(val_0577, 92.095100); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0069 73 DEF_STATIC_CONST_VAL_FLOAT(val_0578, 87.561501); #define CTNODE_cmu_us_rms_f0_ae_7_NO_0068 74 DEF_STATIC_CONST_VAL_FLOAT(val_0579, 82.413498); DEF_STATIC_CONST_VAL_FLOAT(val_0580, 0.277460); DEF_STATIC_CONST_VAL_FLOAT(val_0581, 36.799999); DEF_STATIC_CONST_VAL_FLOAT(val_0582, 103.794998); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_0583, 109.689003); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0003 7 DEF_STATIC_CONST_VAL_FLOAT(val_0584, 114.557999); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0007 9 DEF_STATIC_CONST_VAL_FLOAT(val_0585, 124.429001); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0002 10 DEF_STATIC_CONST_VAL_STRING(val_0586, "t_164"); DEF_STATIC_CONST_VAL_FLOAT(val_0587, 107.116997); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_0588, 116.412003); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0010 14 DEF_STATIC_CONST_VAL_FLOAT(val_0589, 95.283401); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0014 16 DEF_STATIC_CONST_VAL_FLOAT(val_0590, 0.173000); DEF_STATIC_CONST_VAL_FLOAT(val_0591, 0.054500); DEF_STATIC_CONST_VAL_FLOAT(val_0592, 100.955002); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_0593, 0.195446); DEF_STATIC_CONST_VAL_STRING(val_0594, "hh"); DEF_STATIC_CONST_VAL_FLOAT(val_0595, 114.688004); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0020 22 DEF_STATIC_CONST_VAL_FLOAT(val_0596, 107.393997); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0019 23 DEF_STATIC_CONST_VAL_FLOAT(val_0597, 104.065002); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0016 24 DEF_STATIC_CONST_VAL_FLOAT(val_0598, 95.623001); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0001 25 DEF_STATIC_CONST_VAL_FLOAT(val_0599, 91.653603); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0000 26 DEF_STATIC_CONST_VAL_FLOAT(val_0600, 79.746002); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0028 30 DEF_STATIC_CONST_VAL_FLOAT(val_0601, 74.637001); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0027 31 DEF_STATIC_CONST_VAL_FLOAT(val_0602, 32.000000); DEF_STATIC_CONST_VAL_FLOAT(val_0603, 83.435402); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0031 33 DEF_STATIC_CONST_VAL_FLOAT(val_0604, 78.430099); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0026 34 DEF_STATIC_CONST_VAL_FLOAT(val_0605, 0.487121); DEF_STATIC_CONST_VAL_FLOAT(val_0606, 0.180000); DEF_STATIC_CONST_VAL_FLOAT(val_0607, 110.738998); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0037 39 DEF_STATIC_CONST_VAL_FLOAT(val_0608, 103.209999); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0036 40 DEF_STATIC_CONST_VAL_FLOAT(val_0609, 94.013100); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0035 41 #define CTNODE_cmu_us_rms_f0_ae_8_NO_0042 44 DEF_STATIC_CONST_VAL_FLOAT(val_0610, 99.615402); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0041 45 DEF_STATIC_CONST_VAL_FLOAT(val_0611, 93.799599); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0046 48 DEF_STATIC_CONST_VAL_FLOAT(val_0612, 100.942001); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0045 49 DEF_STATIC_CONST_VAL_FLOAT(val_0613, 87.715500); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0049 51 DEF_STATIC_CONST_VAL_FLOAT(val_0614, 92.078796); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0051 53 DEF_STATIC_CONST_VAL_FLOAT(val_0615, 92.845802); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0034 54 DEF_STATIC_CONST_VAL_STRING(val_0616, "l_106"); DEF_STATIC_CONST_VAL_FLOAT(val_0617, 94.892502); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0056 58 DEF_STATIC_CONST_VAL_FLOAT(val_0618, 0.700000); DEF_STATIC_CONST_VAL_FLOAT(val_0619, 0.847909); DEF_STATIC_CONST_VAL_FLOAT(val_0620, 91.833504); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0059 61 DEF_STATIC_CONST_VAL_FLOAT(val_0621, 89.761703); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0058 62 DEF_STATIC_CONST_VAL_FLOAT(val_0622, 87.312103); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0055 63 DEF_STATIC_CONST_VAL_FLOAT(val_0623, 91.540298); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0063 65 DEF_STATIC_CONST_VAL_FLOAT(val_0624, 94.652397); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0065 67 DEF_STATIC_CONST_VAL_STRING(val_0625, "det"); DEF_STATIC_CONST_VAL_FLOAT(val_0626, 98.457298); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0067 69 DEF_STATIC_CONST_VAL_FLOAT(val_0627, 107.497002); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0054 70 DEF_STATIC_CONST_VAL_FLOAT(val_0628, 0.075500); DEF_STATIC_CONST_VAL_FLOAT(val_0629, 0.584893); DEF_STATIC_CONST_VAL_FLOAT(val_0630, 96.016502); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0073 75 DEF_STATIC_CONST_VAL_FLOAT(val_0631, 0.026000); DEF_STATIC_CONST_VAL_FLOAT(val_0632, 93.358002); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0075 77 DEF_STATIC_CONST_VAL_FLOAT(val_0633, 87.880501); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0072 78 DEF_STATIC_CONST_VAL_FLOAT(val_0634, 0.702291); DEF_STATIC_CONST_VAL_FLOAT(val_0635, 90.609497); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0079 81 DEF_STATIC_CONST_VAL_FLOAT(val_0636, 87.384804); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0078 82 DEF_STATIC_CONST_VAL_FLOAT(val_0637, 29.000000); DEF_STATIC_CONST_VAL_FLOAT(val_0638, 88.623299); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0083 85 DEF_STATIC_CONST_VAL_FLOAT(val_0639, 83.879501); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0085 87 DEF_STATIC_CONST_VAL_FLOAT(val_0640, 86.521103); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0082 88 DEF_STATIC_CONST_VAL_FLOAT(val_0641, 82.678200); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0071 89 DEF_STATIC_CONST_VAL_FLOAT(val_0642, 97.159500); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0089 91 DEF_STATIC_CONST_VAL_FLOAT(val_0643, 88.318901); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0091 93 DEF_STATIC_CONST_VAL_FLOAT(val_0644, 93.438301); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0070 94 DEF_STATIC_CONST_VAL_FLOAT(val_0645, 31.400000); DEF_STATIC_CONST_VAL_FLOAT(val_0646, 84.503502); #define CTNODE_cmu_us_rms_f0_ae_8_NO_0094 96 DEF_STATIC_CONST_VAL_FLOAT(val_0647, 81.751099); DEF_STATIC_CONST_VAL_FLOAT(val_0648, 0.074000); DEF_STATIC_CONST_VAL_STRING(val_0649, "pau_143"); DEF_STATIC_CONST_VAL_FLOAT(val_0650, 127.857002); #define CTNODE_cmu_us_rms_f0_y_194_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_0651, 120.811996); #define CTNODE_cmu_us_rms_f0_y_194_NO_0001 5 DEF_STATIC_CONST_VAL_FLOAT(val_0652, 0.019500); DEF_STATIC_CONST_VAL_FLOAT(val_0653, 118.030998); #define CTNODE_cmu_us_rms_f0_y_194_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_0654, 101.132004); #define CTNODE_cmu_us_rms_f0_y_194_NO_0000 8 DEF_STATIC_CONST_VAL_FLOAT(val_0655, 0.605382); DEF_STATIC_CONST_VAL_FLOAT(val_0656, 106.610001); #define CTNODE_cmu_us_rms_f0_y_194_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_0657, 102.002998); #define CTNODE_cmu_us_rms_f0_y_194_NO_0008 12 DEF_STATIC_CONST_VAL_FLOAT(val_0658, 93.614601); DEF_STATIC_CONST_VAL_FLOAT(val_0659, 0.392890); DEF_STATIC_CONST_VAL_FLOAT(val_0660, 0.030000); DEF_STATIC_CONST_VAL_FLOAT(val_0661, 114.864998); #define CTNODE_cmu_us_rms_f0_y_195_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0662, 108.343002); #define CTNODE_cmu_us_rms_f0_y_195_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_0663, 0.203530); DEF_STATIC_CONST_VAL_FLOAT(val_0664, 103.026001); #define CTNODE_cmu_us_rms_f0_y_195_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_0665, 96.296303); #define CTNODE_cmu_us_rms_f0_y_195_NO_0000 8 DEF_STATIC_CONST_VAL_STRING(val_0666, "m"); DEF_STATIC_CONST_VAL_FLOAT(val_0667, 96.265800); #define CTNODE_cmu_us_rms_f0_y_195_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_0668, 0.475000); DEF_STATIC_CONST_VAL_FLOAT(val_0669, 89.907402); #define CTNODE_cmu_us_rms_f0_y_195_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_0670, 92.733299); #define CTNODE_cmu_us_rms_f0_y_195_NO_0008 14 DEF_STATIC_CONST_VAL_FLOAT(val_0671, 100.889999); DEF_STATIC_CONST_VAL_FLOAT(val_0672, 0.299808); DEF_STATIC_CONST_VAL_FLOAT(val_0673, 117.194000); #define CTNODE_cmu_us_rms_f0_y_196_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0674, 107.042999); #define CTNODE_cmu_us_rms_f0_y_196_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_0675, 112.348999); #define CTNODE_cmu_us_rms_f0_y_196_NO_0003 7 DEF_STATIC_CONST_VAL_FLOAT(val_0676, 5.700000); DEF_STATIC_CONST_VAL_FLOAT(val_0677, 102.370003); #define CTNODE_cmu_us_rms_f0_y_196_NO_0007 9 DEF_STATIC_CONST_VAL_FLOAT(val_0678, 106.694000); #define CTNODE_cmu_us_rms_f0_y_196_NO_0000 10 DEF_STATIC_CONST_VAL_FLOAT(val_0679, 88.133797); #define CTNODE_cmu_us_rms_f0_y_196_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_0680, 107.627998); #define CTNODE_cmu_us_rms_f0_y_196_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_0681, 92.219803); #define CTNODE_cmu_us_rms_f0_y_196_NO_0014 16 DEF_STATIC_CONST_VAL_FLOAT(val_0682, 5.800000); DEF_STATIC_CONST_VAL_FLOAT(val_0683, 95.959602); #define CTNODE_cmu_us_rms_f0_y_196_NO_0016 18 DEF_STATIC_CONST_VAL_FLOAT(val_0684, 101.088997); DEF_STATIC_CONST_VAL_FLOAT(val_0685, 3.000000); DEF_STATIC_CONST_VAL_FLOAT(val_0686, 95.297600); #define CTNODE_cmu_us_rms_f0_k_101_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_0687, 90.884201); #define CTNODE_cmu_us_rms_f0_k_101_NO_0002 6 DEF_STATIC_CONST_VAL_FLOAT(val_0688, 0.406105); DEF_STATIC_CONST_VAL_FLOAT(val_0689, 106.578003); #define CTNODE_cmu_us_rms_f0_k_101_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_0690, 99.418900); #define CTNODE_cmu_us_rms_f0_k_101_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_0691, 90.987198); #define CTNODE_cmu_us_rms_f0_k_101_NO_0001 11 DEF_STATIC_CONST_VAL_FLOAT(val_0692, 87.522400); #define CTNODE_cmu_us_rms_f0_k_101_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_0693, 95.696297); #define CTNODE_cmu_us_rms_f0_k_101_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_0694, 88.658997); #define CTNODE_cmu_us_rms_f0_k_101_NO_0000 16 DEF_STATIC_CONST_VAL_FLOAT(val_0695, 101.248001); #define CTNODE_cmu_us_rms_f0_k_101_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_0696, 94.523804); #define CTNODE_cmu_us_rms_f0_k_101_NO_0016 20 DEF_STATIC_CONST_VAL_FLOAT(val_0697, 0.525524); DEF_STATIC_CONST_VAL_FLOAT(val_0698, 0.029000); DEF_STATIC_CONST_VAL_FLOAT(val_0699, 114.802002); #define CTNODE_cmu_us_rms_f0_k_101_NO_0021 23 DEF_STATIC_CONST_VAL_FLOAT(val_0700, 106.587997); #define CTNODE_cmu_us_rms_f0_k_101_NO_0020 24 DEF_STATIC_CONST_VAL_FLOAT(val_0701, 99.891701); DEF_STATIC_CONST_VAL_FLOAT(val_0702, 0.898000); DEF_STATIC_CONST_VAL_FLOAT(val_0703, 123.628998); #define CTNODE_cmu_us_rms_f0_k_102_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0704, 117.765999); #define CTNODE_cmu_us_rms_f0_k_102_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_0705, 0.200000); DEF_STATIC_CONST_VAL_FLOAT(val_0706, 103.000000); #define CTNODE_cmu_us_rms_f0_k_102_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_0707, 115.028000); #define CTNODE_cmu_us_rms_f0_k_102_NO_0000 8 DEF_STATIC_CONST_VAL_FLOAT(val_0708, 0.057500); DEF_STATIC_CONST_VAL_FLOAT(val_0709, 92.229301); #define CTNODE_cmu_us_rms_f0_k_102_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_0710, 80.990997); #define CTNODE_cmu_us_rms_f0_k_102_NO_0008 12 DEF_STATIC_CONST_VAL_FLOAT(val_0711, 4.800000); DEF_STATIC_CONST_VAL_FLOAT(val_0712, 96.655296); #define CTNODE_cmu_us_rms_f0_k_102_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_0713, 90.232399); #define CTNODE_cmu_us_rms_f0_k_102_NO_0012 16 DEF_STATIC_CONST_VAL_FLOAT(val_0714, 1.086000); DEF_STATIC_CONST_VAL_FLOAT(val_0715, 1.500000); DEF_STATIC_CONST_VAL_FLOAT(val_0716, 107.436996); #define CTNODE_cmu_us_rms_f0_k_102_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_0717, 115.735001); #define CTNODE_cmu_us_rms_f0_k_102_NO_0016 20 DEF_STATIC_CONST_VAL_FLOAT(val_0718, 17.799999); DEF_STATIC_CONST_VAL_FLOAT(val_0719, 110.817001); #define CTNODE_cmu_us_rms_f0_k_102_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_0720, 0.589949); DEF_STATIC_CONST_VAL_FLOAT(val_0721, 106.305000); #define CTNODE_cmu_us_rms_f0_k_102_NO_0024 26 #define CTNODE_cmu_us_rms_f0_k_102_NO_0021 27 DEF_STATIC_CONST_VAL_FLOAT(val_0722, 101.952003); #define CTNODE_cmu_us_rms_f0_k_102_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_0723, 96.497597); #define CTNODE_cmu_us_rms_f0_k_102_NO_0020 30 DEF_STATIC_CONST_VAL_FLOAT(val_0724, 93.360603); #define CTNODE_cmu_us_rms_f0_k_102_NO_0030 32 DEF_STATIC_CONST_VAL_FLOAT(val_0725, 102.089996); DEF_STATIC_CONST_VAL_FLOAT(val_0726, 0.085000); DEF_STATIC_CONST_VAL_FLOAT(val_0727, 0.057500); DEF_STATIC_CONST_VAL_FLOAT(val_0728, 95.451797); #define CTNODE_cmu_us_rms_f0_k_103_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_0729, 83.811897); #define CTNODE_cmu_us_rms_f0_k_103_NO_0001 5 DEF_STATIC_CONST_VAL_FLOAT(val_0730, 77.749496); #define CTNODE_cmu_us_rms_f0_k_103_NO_0000 6 DEF_STATIC_CONST_VAL_STRING(val_0731, "r"); DEF_STATIC_CONST_VAL_FLOAT(val_0732, 128.432007); #define CTNODE_cmu_us_rms_f0_k_103_NO_0007 9 DEF_STATIC_CONST_VAL_FLOAT(val_0733, 10.500000); DEF_STATIC_CONST_VAL_FLOAT(val_0734, 113.134003); #define CTNODE_cmu_us_rms_f0_k_103_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_0735, 120.780998); #define CTNODE_cmu_us_rms_f0_k_103_NO_0011 15 DEF_STATIC_CONST_VAL_FLOAT(val_0736, 107.066002); #define CTNODE_cmu_us_rms_f0_k_103_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_0737, 113.389000); #define CTNODE_cmu_us_rms_f0_k_103_NO_0010 18 DEF_STATIC_CONST_VAL_FLOAT(val_0738, 121.263000); #define CTNODE_cmu_us_rms_f0_k_103_NO_0009 19 DEF_STATIC_CONST_VAL_FLOAT(val_0739, 127.971001); #define CTNODE_cmu_us_rms_f0_k_103_NO_0006 20 DEF_STATIC_CONST_VAL_FLOAT(val_0740, 0.432524); DEF_STATIC_CONST_VAL_FLOAT(val_0741, 119.785004); #define CTNODE_cmu_us_rms_f0_k_103_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_0742, 108.025002); #define CTNODE_cmu_us_rms_f0_k_103_NO_0021 25 DEF_STATIC_CONST_VAL_FLOAT(val_0743, 0.013000); DEF_STATIC_CONST_VAL_FLOAT(val_0744, 0.499130); DEF_STATIC_CONST_VAL_FLOAT(val_0745, 110.107002); #define CTNODE_cmu_us_rms_f0_k_103_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_0746, 102.477997); #define CTNODE_cmu_us_rms_f0_k_103_NO_0026 30 DEF_STATIC_CONST_VAL_FLOAT(val_0747, 0.089000); DEF_STATIC_CONST_VAL_FLOAT(val_0748, 0.045000); DEF_STATIC_CONST_VAL_FLOAT(val_0749, 92.101097); #define CTNODE_cmu_us_rms_f0_k_103_NO_0032 34 DEF_STATIC_CONST_VAL_FLOAT(val_0750, 97.271202); #define CTNODE_cmu_us_rms_f0_k_103_NO_0031 35 DEF_STATIC_CONST_VAL_FLOAT(val_0751, 99.958298); #define CTNODE_cmu_us_rms_f0_k_103_NO_0030 36 DEF_STATIC_CONST_VAL_FLOAT(val_0752, 103.822998); #define CTNODE_cmu_us_rms_f0_k_103_NO_0025 37 DEF_STATIC_CONST_VAL_FLOAT(val_0753, 3.900000); DEF_STATIC_CONST_VAL_FLOAT(val_0754, 99.153702); #define CTNODE_cmu_us_rms_f0_k_103_NO_0038 40 DEF_STATIC_CONST_VAL_FLOAT(val_0755, 103.305000); #define CTNODE_cmu_us_rms_f0_k_103_NO_0037 41 DEF_STATIC_CONST_VAL_FLOAT(val_0756, 103.080002); #define CTNODE_cmu_us_rms_f0_k_103_NO_0041 43 DEF_STATIC_CONST_VAL_FLOAT(val_0757, 0.065000); DEF_STATIC_CONST_VAL_FLOAT(val_0758, 115.810997); #define CTNODE_cmu_us_rms_f0_k_103_NO_0045 47 DEF_STATIC_CONST_VAL_FLOAT(val_0759, 107.304001); #define CTNODE_cmu_us_rms_f0_k_103_NO_0044 48 DEF_STATIC_CONST_VAL_FLOAT(val_0760, 102.536003); #define CTNODE_cmu_us_rms_f0_k_103_NO_0043 49 DEF_STATIC_CONST_VAL_FLOAT(val_0761, 108.431999); #define CTNODE_cmu_us_rms_f0_k_103_NO_0049 51 DEF_STATIC_CONST_VAL_FLOAT(val_0762, 115.609001); #define CTNODE_cmu_us_rms_f0_k_103_NO_0052 54 DEF_STATIC_CONST_VAL_FLOAT(val_0763, 120.245003); #define CTNODE_cmu_us_rms_f0_k_103_NO_0051 55 #define CTNODE_cmu_us_rms_f0_k_103_NO_0020 56 DEF_STATIC_CONST_VAL_FLOAT(val_0764, 25.200001); DEF_STATIC_CONST_VAL_FLOAT(val_0765, 0.511077); DEF_STATIC_CONST_VAL_FLOAT(val_0766, 0.282568); DEF_STATIC_CONST_VAL_FLOAT(val_0767, 118.796997); #define CTNODE_cmu_us_rms_f0_k_103_NO_0059 61 DEF_STATIC_CONST_VAL_FLOAT(val_0768, 115.014999); #define CTNODE_cmu_us_rms_f0_k_103_NO_0058 62 DEF_STATIC_CONST_VAL_FLOAT(val_0769, 104.620003); #define CTNODE_cmu_us_rms_f0_k_103_NO_0062 64 DEF_STATIC_CONST_VAL_FLOAT(val_0770, 111.181999); #define CTNODE_cmu_us_rms_f0_k_103_NO_0057 65 DEF_STATIC_CONST_VAL_FLOAT(val_0771, 117.385002); #define CTNODE_cmu_us_rms_f0_k_103_NO_0056 66 DEF_STATIC_CONST_VAL_FLOAT(val_0772, 120.990997); DEF_STATIC_CONST_VAL_FLOAT(val_0773, 0.101000); DEF_STATIC_CONST_VAL_FLOAT(val_0774, 116.246002); #define CTNODE_cmu_us_rms_f0_aa_1_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0775, 113.650002); #define CTNODE_cmu_us_rms_f0_aa_1_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_0776, 0.470676); DEF_STATIC_CONST_VAL_FLOAT(val_0777, 0.282605); DEF_STATIC_CONST_VAL_FLOAT(val_0778, 11.900000); DEF_STATIC_CONST_VAL_FLOAT(val_0779, 101.325996); #define CTNODE_cmu_us_rms_f0_aa_1_NO_0007 9 DEF_STATIC_CONST_VAL_FLOAT(val_0780, 104.447998); #define CTNODE_cmu_us_rms_f0_aa_1_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_0781, 108.029999); #define CTNODE_cmu_us_rms_f0_aa_1_NO_0006 12 DEF_STATIC_CONST_VAL_FLOAT(val_0782, 101.805000); #define CTNODE_cmu_us_rms_f0_aa_1_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_0783, 96.158203); #define CTNODE_cmu_us_rms_f0_aa_1_NO_0005 15 DEF_STATIC_CONST_VAL_FLOAT(val_0784, 100.714996); #define CTNODE_cmu_us_rms_f0_aa_1_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_0785, 83.362602); #define CTNODE_cmu_us_rms_f0_aa_1_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_0786, 91.930603); #define CTNODE_cmu_us_rms_f0_aa_1_NO_0020 22 DEF_STATIC_CONST_VAL_FLOAT(val_0787, 90.519402); #define CTNODE_cmu_us_rms_f0_aa_1_NO_0017 23 DEF_STATIC_CONST_VAL_FLOAT(val_0788, 95.092003); #define CTNODE_cmu_us_rms_f0_aa_1_NO_0000 24 DEF_STATIC_CONST_VAL_FLOAT(val_0789, 41.599998); DEF_STATIC_CONST_VAL_FLOAT(val_0790, 0.882684); DEF_STATIC_CONST_VAL_FLOAT(val_0791, 82.196098); #define CTNODE_cmu_us_rms_f0_aa_1_NO_0026 28 DEF_STATIC_CONST_VAL_FLOAT(val_0792, 90.899696); #define CTNODE_cmu_us_rms_f0_aa_1_NO_0025 29 DEF_STATIC_CONST_VAL_FLOAT(val_0793, 81.007797); #define CTNODE_cmu_us_rms_f0_aa_1_NO_0024 30 DEF_STATIC_CONST_VAL_FLOAT(val_0794, 97.040001); DEF_STATIC_CONST_VAL_FLOAT(val_0795, 1.692500); DEF_STATIC_CONST_VAL_FLOAT(val_0796, 1.052000); DEF_STATIC_CONST_VAL_FLOAT(val_0797, 0.236000); DEF_STATIC_CONST_VAL_FLOAT(val_0798, 12.300000); DEF_STATIC_CONST_VAL_FLOAT(val_0799, 116.385002); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_0800, 110.275002); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_0801, 116.450996); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0007 11 DEF_STATIC_CONST_VAL_FLOAT(val_0802, 14.200000); DEF_STATIC_CONST_VAL_FLOAT(val_0803, 109.017998); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_0804, 105.315002); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0004 14 DEF_STATIC_CONST_VAL_FLOAT(val_0805, 110.320999); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0014 16 DEF_STATIC_CONST_VAL_FLOAT(val_0806, 101.374001); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0016 18 #define CTNODE_cmu_us_rms_f0_aa_2_NO_0003 19 DEF_STATIC_CONST_VAL_STRING(val_0807, "w"); DEF_STATIC_CONST_VAL_FLOAT(val_0808, 101.666000); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0019 21 DEF_STATIC_CONST_VAL_FLOAT(val_0809, 99.480400); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0002 22 DEF_STATIC_CONST_VAL_FLOAT(val_0810, 95.235603); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0001 23 DEF_STATIC_CONST_VAL_FLOAT(val_0811, 0.547301); DEF_STATIC_CONST_VAL_FLOAT(val_0812, 1.494000); DEF_STATIC_CONST_VAL_FLOAT(val_0813, 0.122000); DEF_STATIC_CONST_VAL_FLOAT(val_0814, 11.400000); DEF_STATIC_CONST_VAL_FLOAT(val_0815, 103.914001); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_0816, 100.088997); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0026 30 DEF_STATIC_CONST_VAL_FLOAT(val_0817, 98.186600); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0025 31 DEF_STATIC_CONST_VAL_FLOAT(val_0818, 103.183998); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0031 33 DEF_STATIC_CONST_VAL_FLOAT(val_0819, 110.931000); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0024 34 DEF_STATIC_CONST_VAL_FLOAT(val_0820, 98.039497); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0023 35 DEF_STATIC_CONST_VAL_FLOAT(val_0821, 92.795601); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0000 36 DEF_STATIC_CONST_VAL_FLOAT(val_0822, 83.511803); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0036 38 DEF_STATIC_CONST_VAL_FLOAT(val_0823, 105.722000); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0040 42 DEF_STATIC_CONST_VAL_FLOAT(val_0824, 2.349000); DEF_STATIC_CONST_VAL_FLOAT(val_0825, 103.625000); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0042 44 DEF_STATIC_CONST_VAL_FLOAT(val_0826, 95.434502); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0039 45 DEF_STATIC_CONST_VAL_FLOAT(val_0827, 0.755917); DEF_STATIC_CONST_VAL_FLOAT(val_0828, 92.084900); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0046 48 DEF_STATIC_CONST_VAL_FLOAT(val_0829, 95.937897); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0048 50 DEF_STATIC_CONST_VAL_STRING(val_0830, "single"); DEF_STATIC_CONST_VAL_FLOAT(val_0831, 101.436996); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0050 52 DEF_STATIC_CONST_VAL_FLOAT(val_0832, 99.757004); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0045 53 DEF_STATIC_CONST_VAL_FLOAT(val_0833, 0.850856); DEF_STATIC_CONST_VAL_FLOAT(val_0834, 91.718399); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0053 55 DEF_STATIC_CONST_VAL_FLOAT(val_0835, 88.792297); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0038 56 DEF_STATIC_CONST_VAL_FLOAT(val_0836, 0.072500); DEF_STATIC_CONST_VAL_FLOAT(val_0837, 87.538803); #define CTNODE_cmu_us_rms_f0_aa_2_NO_0056 58 DEF_STATIC_CONST_VAL_FLOAT(val_0838, 91.383202); DEF_STATIC_CONST_VAL_FLOAT(val_0839, 0.503155); DEF_STATIC_CONST_VAL_FLOAT(val_0840, 100.988998); #define CTNODE_cmu_us_rms_f0_aa_3_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_0841, 0.322505); DEF_STATIC_CONST_VAL_FLOAT(val_0842, 115.266998); #define CTNODE_cmu_us_rms_f0_aa_3_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_0843, 106.834000); #define CTNODE_cmu_us_rms_f0_aa_3_NO_0001 7 DEF_STATIC_CONST_VAL_FLOAT(val_0844, 0.224159); DEF_STATIC_CONST_VAL_FLOAT(val_0845, 0.740000); DEF_STATIC_CONST_VAL_FLOAT(val_0846, 103.139999); #define CTNODE_cmu_us_rms_f0_aa_3_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_0847, 97.162903); #define CTNODE_cmu_us_rms_f0_aa_3_NO_0007 11 DEF_STATIC_CONST_VAL_FLOAT(val_0848, 0.830000); DEF_STATIC_CONST_VAL_FLOAT(val_0849, 91.933701); #define CTNODE_cmu_us_rms_f0_aa_3_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_0850, 87.785004); #define CTNODE_cmu_us_rms_f0_aa_3_NO_0000 14 DEF_STATIC_CONST_VAL_FLOAT(val_0851, 79.220802); #define CTNODE_cmu_us_rms_f0_aa_3_NO_0014 16 DEF_STATIC_CONST_VAL_FLOAT(val_0852, 101.323997); #define CTNODE_cmu_us_rms_f0_aa_3_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_0853, 92.688103); #define CTNODE_cmu_us_rms_f0_aa_3_NO_0017 21 DEF_STATIC_CONST_VAL_FLOAT(val_0854, 90.359001); #define CTNODE_cmu_us_rms_f0_aa_3_NO_0016 22 DEF_STATIC_CONST_VAL_FLOAT(val_0855, 0.621525); DEF_STATIC_CONST_VAL_FLOAT(val_0856, 86.150101); #define CTNODE_cmu_us_rms_f0_aa_3_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_0857, 88.376701); DEF_STATIC_CONST_VAL_FLOAT(val_0858, 0.331034); DEF_STATIC_CONST_VAL_FLOAT(val_0859, 86.043999); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_0860, 91.201401); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0002 6 DEF_STATIC_CONST_VAL_FLOAT(val_0861, 0.131579); DEF_STATIC_CONST_VAL_FLOAT(val_0862, 100.593002); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_0863, 91.597198); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0001 9 DEF_STATIC_CONST_VAL_FLOAT(val_0864, 81.461800); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0000 10 DEF_STATIC_CONST_VAL_FLOAT(val_0865, 0.029500); DEF_STATIC_CONST_VAL_FLOAT(val_0866, 0.011000); DEF_STATIC_CONST_VAL_FLOAT(val_0867, 87.847702); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_0868, 96.485703); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0011 15 DEF_STATIC_CONST_VAL_FLOAT(val_0869, 103.510002); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_0870, 96.708504); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0020 22 DEF_STATIC_CONST_VAL_FLOAT(val_0871, 0.427068); DEF_STATIC_CONST_VAL_FLOAT(val_0872, 96.597801); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_0873, 90.495300); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0019 25 DEF_STATIC_CONST_VAL_FLOAT(val_0874, 0.276139); DEF_STATIC_CONST_VAL_FLOAT(val_0875, 103.443001); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0025 27 DEF_STATIC_CONST_VAL_FLOAT(val_0876, 0.549413); DEF_STATIC_CONST_VAL_FLOAT(val_0877, 97.653099); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_0878, 92.969803); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0018 30 DEF_STATIC_CONST_VAL_FLOAT(val_0879, 92.375801); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0017 31 DEF_STATIC_CONST_VAL_FLOAT(val_0880, 101.408997); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0010 32 DEF_STATIC_CONST_VAL_FLOAT(val_0881, 0.409922); DEF_STATIC_CONST_VAL_FLOAT(val_0882, 0.123150); DEF_STATIC_CONST_VAL_FLOAT(val_0883, 97.905899); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0035 37 DEF_STATIC_CONST_VAL_FLOAT(val_0884, 101.025002); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0034 38 DEF_STATIC_CONST_VAL_FLOAT(val_0885, 104.736000); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0033 39 DEF_STATIC_CONST_VAL_FLOAT(val_0886, 93.261002); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0039 41 DEF_STATIC_CONST_VAL_FLOAT(val_0887, 87.660400); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0032 42 DEF_STATIC_CONST_VAL_FLOAT(val_0888, 0.236538); DEF_STATIC_CONST_VAL_FLOAT(val_0889, 0.296631); DEF_STATIC_CONST_VAL_FLOAT(val_0890, 119.300003); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0043 45 DEF_STATIC_CONST_VAL_FLOAT(val_0891, 109.353996); #define CTNODE_cmu_us_rms_f0_ay_31_NO_0042 46 DEF_STATIC_CONST_VAL_FLOAT(val_0892, 95.395798); DEF_STATIC_CONST_VAL_FLOAT(val_0893, 1.024000); DEF_STATIC_CONST_VAL_FLOAT(val_0894, 109.129997); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0895, 0.320629); DEF_STATIC_CONST_VAL_FLOAT(val_0896, 19.500000); DEF_STATIC_CONST_VAL_FLOAT(val_0897, 106.169998); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_0898, 0.443000); DEF_STATIC_CONST_VAL_FLOAT(val_0899, 108.661003); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_0900, 0.237500); DEF_STATIC_CONST_VAL_FLOAT(val_0901, 100.148003); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0011 13 DEF_STATIC_CONST_VAL_STRING(val_0902, "aux"); DEF_STATIC_CONST_VAL_FLOAT(val_0903, 99.493599); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_0904, 97.460197); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_0905, 98.101097); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0010 18 DEF_STATIC_CONST_VAL_FLOAT(val_0906, 103.051003); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0007 19 DEF_STATIC_CONST_VAL_FLOAT(val_0907, 0.102500); DEF_STATIC_CONST_VAL_FLOAT(val_0908, 92.934700); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0020 22 DEF_STATIC_CONST_VAL_FLOAT(val_0909, 97.359398); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0019 23 DEF_STATIC_CONST_VAL_FLOAT(val_0910, 100.135002); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0004 24 DEF_STATIC_CONST_VAL_FLOAT(val_0911, 107.237000); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0003 25 DEF_STATIC_CONST_VAL_FLOAT(val_0912, 94.484100); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0000 26 DEF_STATIC_CONST_VAL_FLOAT(val_0913, 2.950000); DEF_STATIC_CONST_VAL_FLOAT(val_0914, 82.054901); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0029 31 DEF_STATIC_CONST_VAL_FLOAT(val_0915, 87.931503); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0028 32 DEF_STATIC_CONST_VAL_FLOAT(val_0916, 78.199898); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0027 33 DEF_STATIC_CONST_VAL_FLOAT(val_0917, 95.376198); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0033 35 DEF_STATIC_CONST_VAL_FLOAT(val_0918, 85.895897); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0026 36 DEF_STATIC_CONST_VAL_FLOAT(val_0919, 96.724800); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0038 40 DEF_STATIC_CONST_VAL_FLOAT(val_0920, 104.121002); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0037 41 DEF_STATIC_CONST_VAL_FLOAT(val_0921, 93.956001); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0041 43 DEF_STATIC_CONST_VAL_FLOAT(val_0922, 97.402496); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0036 44 DEF_STATIC_CONST_VAL_FLOAT(val_0923, 19.200001); DEF_STATIC_CONST_VAL_FLOAT(val_0924, 2.044000); DEF_STATIC_CONST_VAL_FLOAT(val_0925, 89.453697); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0046 48 DEF_STATIC_CONST_VAL_FLOAT(val_0926, 0.053000); DEF_STATIC_CONST_VAL_FLOAT(val_0927, 91.880699); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0048 50 DEF_STATIC_CONST_VAL_FLOAT(val_0928, 19.400000); DEF_STATIC_CONST_VAL_FLOAT(val_0929, 98.365799); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0051 53 DEF_STATIC_CONST_VAL_FLOAT(val_0930, 95.057701); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0050 54 DEF_STATIC_CONST_VAL_FLOAT(val_0931, 92.459099); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0045 55 DEF_STATIC_CONST_VAL_FLOAT(val_0932, 92.510902); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0055 57 DEF_STATIC_CONST_VAL_FLOAT(val_0933, 86.809799); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0058 60 DEF_STATIC_CONST_VAL_FLOAT(val_0934, 84.117798); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0057 61 DEF_STATIC_CONST_VAL_FLOAT(val_0935, 90.674500); #define CTNODE_cmu_us_rms_f0_ay_32_NO_0044 62 DEF_STATIC_CONST_VAL_FLOAT(val_0936, 98.566498); DEF_STATIC_CONST_VAL_FLOAT(val_0937, 0.884979); DEF_STATIC_CONST_VAL_FLOAT(val_0938, 87.473801); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0939, 42.000000); DEF_STATIC_CONST_VAL_FLOAT(val_0940, 77.693802); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_0941, 83.034599); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0003 7 DEF_STATIC_CONST_VAL_FLOAT(val_0942, 74.275597); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0000 8 DEF_STATIC_CONST_VAL_FLOAT(val_0943, 101.332001); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_0944, 0.036000); DEF_STATIC_CONST_VAL_FLOAT(val_0945, 0.008000); DEF_STATIC_CONST_VAL_FLOAT(val_0946, 85.078201); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_0947, 0.506847); DEF_STATIC_CONST_VAL_FLOAT(val_0948, 91.712303); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_0949, 88.217499); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0012 18 DEF_STATIC_CONST_VAL_FLOAT(val_0950, 0.093000); DEF_STATIC_CONST_VAL_FLOAT(val_0951, 0.056000); DEF_STATIC_CONST_VAL_FLOAT(val_0952, 0.536570); DEF_STATIC_CONST_VAL_FLOAT(val_0953, 92.673401); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0020 22 DEF_STATIC_CONST_VAL_FLOAT(val_0954, 86.831398); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0019 23 DEF_STATIC_CONST_VAL_FLOAT(val_0955, 27.000000); DEF_STATIC_CONST_VAL_FLOAT(val_0956, 96.915100); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0023 25 DEF_STATIC_CONST_VAL_FLOAT(val_0957, 93.533096); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0018 26 DEF_STATIC_CONST_VAL_FLOAT(val_0958, 98.194504); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0009 27 DEF_STATIC_CONST_VAL_FLOAT(val_0959, 0.350255); DEF_STATIC_CONST_VAL_FLOAT(val_0960, 0.077000); DEF_STATIC_CONST_VAL_FLOAT(val_0961, 98.216103); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0031 33 DEF_STATIC_CONST_VAL_FLOAT(val_0962, 95.114700); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0030 34 DEF_STATIC_CONST_VAL_FLOAT(val_0963, 100.833000); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0029 35 DEF_STATIC_CONST_VAL_FLOAT(val_0964, 101.522003); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0028 36 DEF_STATIC_CONST_VAL_FLOAT(val_0965, 0.226637); DEF_STATIC_CONST_VAL_FLOAT(val_0966, 0.096907); DEF_STATIC_CONST_VAL_FLOAT(val_0967, 116.411003); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0037 39 DEF_STATIC_CONST_VAL_FLOAT(val_0968, 100.552002); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0039 41 DEF_STATIC_CONST_VAL_FLOAT(val_0969, 108.221001); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0041 43 DEF_STATIC_CONST_VAL_FLOAT(val_0970, 115.334999); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0036 44 DEF_STATIC_CONST_VAL_FLOAT(val_0971, 98.533699); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0027 45 DEF_STATIC_CONST_VAL_FLOAT(val_0972, 100.821999); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0045 47 DEF_STATIC_CONST_VAL_FLOAT(val_0973, 96.015999); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0047 49 DEF_STATIC_CONST_VAL_FLOAT(val_0974, 85.349503); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0049 51 DEF_STATIC_CONST_VAL_FLOAT(val_0975, 87.850403); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0051 53 DEF_STATIC_CONST_VAL_FLOAT(val_0976, 93.654198); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0008 54 DEF_STATIC_CONST_VAL_FLOAT(val_0977, 0.325840); DEF_STATIC_CONST_VAL_FLOAT(val_0978, 90.019699); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0055 57 DEF_STATIC_CONST_VAL_FLOAT(val_0979, 79.022003); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0057 59 DEF_STATIC_CONST_VAL_FLOAT(val_0980, 84.621902); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0054 60 DEF_STATIC_CONST_VAL_FLOAT(val_0981, 0.077000); DEF_STATIC_CONST_VAL_FLOAT(val_0982, 48.000000); DEF_STATIC_CONST_VAL_FLOAT(val_0983, 90.907303); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0061 63 DEF_STATIC_CONST_VAL_FLOAT(val_0984, 83.881897); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0060 64 DEF_STATIC_CONST_VAL_FLOAT(val_0985, 0.262170); DEF_STATIC_CONST_VAL_FLOAT(val_0986, 102.962997); #define CTNODE_cmu_us_rms_f0_ay_33_NO_0064 66 DEF_STATIC_CONST_VAL_FLOAT(val_0987, 93.810501); DEF_STATIC_CONST_VAL_FLOAT(val_0988, 127.137001); #define CTNODE_cmu_us_rms_f0_w_189_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0989, 131.205994); #define CTNODE_cmu_us_rms_f0_w_189_NO_0000 4 DEF_STATIC_CONST_VAL_FLOAT(val_0990, 15.200000); DEF_STATIC_CONST_VAL_FLOAT(val_0991, 118.231003); #define CTNODE_cmu_us_rms_f0_w_189_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_0992, 112.564003); #define CTNODE_cmu_us_rms_f0_w_189_NO_0005 9 DEF_STATIC_CONST_VAL_FLOAT(val_0993, 0.059000); DEF_STATIC_CONST_VAL_FLOAT(val_0994, 0.190040); DEF_STATIC_CONST_VAL_FLOAT(val_0995, 108.192001); #define CTNODE_cmu_us_rms_f0_w_189_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_0996, 102.713997); #define CTNODE_cmu_us_rms_f0_w_189_NO_0010 14 DEF_STATIC_CONST_VAL_FLOAT(val_0997, 105.376999); #define CTNODE_cmu_us_rms_f0_w_189_NO_0014 16 DEF_STATIC_CONST_VAL_FLOAT(val_0998, 86.720100); #define CTNODE_cmu_us_rms_f0_w_189_NO_0016 18 DEF_STATIC_CONST_VAL_FLOAT(val_0999, 0.063500); DEF_STATIC_CONST_VAL_FLOAT(val_1000, 106.158997); #define CTNODE_cmu_us_rms_f0_w_189_NO_0019 21 DEF_STATIC_CONST_VAL_FLOAT(val_1001, 99.174500); #define CTNODE_cmu_us_rms_f0_w_189_NO_0018 22 DEF_STATIC_CONST_VAL_FLOAT(val_1002, 0.486908); DEF_STATIC_CONST_VAL_FLOAT(val_1003, 95.507004); #define CTNODE_cmu_us_rms_f0_w_189_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_1004, 89.762299); #define CTNODE_cmu_us_rms_f0_w_189_NO_0009 25 DEF_STATIC_CONST_VAL_FLOAT(val_1005, 8.400000); DEF_STATIC_CONST_VAL_FLOAT(val_1006, 111.385002); #define CTNODE_cmu_us_rms_f0_w_189_NO_0026 28 DEF_STATIC_CONST_VAL_FLOAT(val_1007, 115.516998); #define CTNODE_cmu_us_rms_f0_w_189_NO_0025 29 DEF_STATIC_CONST_VAL_FLOAT(val_1008, 0.273529); DEF_STATIC_CONST_VAL_FLOAT(val_1009, 96.995499); #define CTNODE_cmu_us_rms_f0_w_189_NO_0029 31 DEF_STATIC_CONST_VAL_FLOAT(val_1010, 103.878998); #define CTNODE_cmu_us_rms_f0_w_189_NO_0004 32 DEF_STATIC_CONST_VAL_FLOAT(val_1011, 122.613998); DEF_STATIC_CONST_VAL_FLOAT(val_1012, 0.645500); DEF_STATIC_CONST_VAL_FLOAT(val_1013, 0.020208); DEF_STATIC_CONST_VAL_FLOAT(val_1014, 125.364998); #define CTNODE_cmu_us_rms_f0_w_190_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_1015, 115.486000); #define CTNODE_cmu_us_rms_f0_w_190_NO_0002 6 DEF_STATIC_CONST_VAL_FLOAT(val_1016, 114.192001); #define CTNODE_cmu_us_rms_f0_w_190_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_1017, 103.530998); #define CTNODE_cmu_us_rms_f0_w_190_NO_0001 9 DEF_STATIC_CONST_VAL_FLOAT(val_1018, 106.982002); #define CTNODE_cmu_us_rms_f0_w_190_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_1019, 97.229202); #define CTNODE_cmu_us_rms_f0_w_190_NO_0000 12 DEF_STATIC_CONST_VAL_FLOAT(val_1020, 107.014999); #define CTNODE_cmu_us_rms_f0_w_190_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_1021, 0.715686); DEF_STATIC_CONST_VAL_FLOAT(val_1022, 21.000000); DEF_STATIC_CONST_VAL_FLOAT(val_1023, 0.266334); DEF_STATIC_CONST_VAL_FLOAT(val_1024, 103.665001); #define CTNODE_cmu_us_rms_f0_w_190_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_1025, 0.600000); DEF_STATIC_CONST_VAL_FLOAT(val_1026, 7.800000); DEF_STATIC_CONST_VAL_FLOAT(val_1027, 95.087196); #define CTNODE_cmu_us_rms_f0_w_190_NO_0021 23 DEF_STATIC_CONST_VAL_FLOAT(val_1028, 0.015000); DEF_STATIC_CONST_VAL_FLOAT(val_1029, 95.964897); #define CTNODE_cmu_us_rms_f0_w_190_NO_0023 25 DEF_STATIC_CONST_VAL_FLOAT(val_1030, 1.778000); DEF_STATIC_CONST_VAL_FLOAT(val_1031, 97.534897); #define CTNODE_cmu_us_rms_f0_w_190_NO_0025 27 DEF_STATIC_CONST_VAL_FLOAT(val_1032, 105.610001); #define CTNODE_cmu_us_rms_f0_w_190_NO_0020 28 DEF_STATIC_CONST_VAL_FLOAT(val_1033, 0.445815); DEF_STATIC_CONST_VAL_FLOAT(val_1034, 96.803497); #define CTNODE_cmu_us_rms_f0_w_190_NO_0028 30 DEF_STATIC_CONST_VAL_FLOAT(val_1035, 92.950699); #define CTNODE_cmu_us_rms_f0_w_190_NO_0030 32 DEF_STATIC_CONST_VAL_FLOAT(val_1036, 94.360603); #define CTNODE_cmu_us_rms_f0_w_190_NO_0017 33 DEF_STATIC_CONST_VAL_FLOAT(val_1037, 106.661003); #define CTNODE_cmu_us_rms_f0_w_190_NO_0016 34 DEF_STATIC_CONST_VAL_FLOAT(val_1038, 0.066500); DEF_STATIC_CONST_VAL_FLOAT(val_1039, 95.827301); #define CTNODE_cmu_us_rms_f0_w_190_NO_0035 37 DEF_STATIC_CONST_VAL_FLOAT(val_1040, 16.600000); DEF_STATIC_CONST_VAL_FLOAT(val_1041, 0.084000); DEF_STATIC_CONST_VAL_FLOAT(val_1042, 90.294701); #define CTNODE_cmu_us_rms_f0_w_190_NO_0038 40 DEF_STATIC_CONST_VAL_FLOAT(val_1043, 87.801003); #define CTNODE_cmu_us_rms_f0_w_190_NO_0040 42 DEF_STATIC_CONST_VAL_FLOAT(val_1044, 85.880997); #define CTNODE_cmu_us_rms_f0_w_190_NO_0037 43 DEF_STATIC_CONST_VAL_FLOAT(val_1045, 91.572403); #define CTNODE_cmu_us_rms_f0_w_190_NO_0034 44 DEF_STATIC_CONST_VAL_FLOAT(val_1046, 0.023000); DEF_STATIC_CONST_VAL_FLOAT(val_1047, 100.278999); #define CTNODE_cmu_us_rms_f0_w_190_NO_0045 47 DEF_STATIC_CONST_VAL_FLOAT(val_1048, 94.407600); #define CTNODE_cmu_us_rms_f0_w_190_NO_0044 48 DEF_STATIC_CONST_VAL_FLOAT(val_1049, 92.622902); #define CTNODE_cmu_us_rms_f0_w_190_NO_0015 49 DEF_STATIC_CONST_VAL_FLOAT(val_1050, 83.267601); #define CTNODE_cmu_us_rms_f0_w_190_NO_0050 52 DEF_STATIC_CONST_VAL_FLOAT(val_1051, 87.486702); #define CTNODE_cmu_us_rms_f0_w_190_NO_0049 53 DEF_STATIC_CONST_VAL_FLOAT(val_1052, 95.866699); #define CTNODE_cmu_us_rms_f0_w_190_NO_0054 56 DEF_STATIC_CONST_VAL_FLOAT(val_1053, 91.156799); #define CTNODE_cmu_us_rms_f0_w_190_NO_0053 57 DEF_STATIC_CONST_VAL_FLOAT(val_1054, 85.601196); #define CTNODE_cmu_us_rms_f0_w_190_NO_0057 59 DEF_STATIC_CONST_VAL_FLOAT(val_1055, 93.716499); #define CTNODE_cmu_us_rms_f0_w_190_NO_0012 60 DEF_STATIC_CONST_VAL_FLOAT(val_1056, 119.586998); DEF_STATIC_CONST_VAL_FLOAT(val_1057, 0.297560); DEF_STATIC_CONST_VAL_FLOAT(val_1058, 112.538002); #define CTNODE_cmu_us_rms_f0_w_191_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_1059, 109.422997); #define CTNODE_cmu_us_rms_f0_w_191_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_1060, 0.041000); DEF_STATIC_CONST_VAL_FLOAT(val_1061, 109.789001); #define CTNODE_cmu_us_rms_f0_w_191_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_1062, 102.892998); #define CTNODE_cmu_us_rms_f0_w_191_NO_0005 9 DEF_STATIC_CONST_VAL_FLOAT(val_1063, 97.542999); #define CTNODE_cmu_us_rms_f0_w_191_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_1064, 104.365997); #define CTNODE_cmu_us_rms_f0_w_191_NO_0000 12 DEF_STATIC_CONST_VAL_FLOAT(val_1065, 0.705201); DEF_STATIC_CONST_VAL_FLOAT(val_1066, 0.420552); DEF_STATIC_CONST_VAL_FLOAT(val_1067, 94.514702); #define CTNODE_cmu_us_rms_f0_w_191_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_1068, 91.596100); #define CTNODE_cmu_us_rms_f0_w_191_NO_0014 18 DEF_STATIC_CONST_VAL_FLOAT(val_1069, 97.819504); #define CTNODE_cmu_us_rms_f0_w_191_NO_0019 21 DEF_STATIC_CONST_VAL_FLOAT(val_1070, 100.225998); #define CTNODE_cmu_us_rms_f0_w_191_NO_0018 22 DEF_STATIC_CONST_VAL_FLOAT(val_1071, 0.501046); DEF_STATIC_CONST_VAL_FLOAT(val_1072, 96.829399); #define CTNODE_cmu_us_rms_f0_w_191_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_1073, 92.887497); #define CTNODE_cmu_us_rms_f0_w_191_NO_0013 25 DEF_STATIC_CONST_VAL_FLOAT(val_1074, 88.411697); #define CTNODE_cmu_us_rms_f0_w_191_NO_0025 27 DEF_STATIC_CONST_VAL_FLOAT(val_1075, 91.954399); #define CTNODE_cmu_us_rms_f0_w_191_NO_0012 28 DEF_STATIC_CONST_VAL_FLOAT(val_1076, 109.793999); DEF_STATIC_CONST_VAL_FLOAT(val_1077, 0.907817); DEF_STATIC_CONST_VAL_FLOAT(val_1078, 0.014000); DEF_STATIC_CONST_VAL_FLOAT(val_1079, 88.440300); #define CTNODE_cmu_us_rms_f0_m_111_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_1080, 94.474800); #define CTNODE_cmu_us_rms_f0_m_111_NO_0002 6 DEF_STATIC_CONST_VAL_FLOAT(val_1081, 81.805801); #define CTNODE_cmu_us_rms_f0_m_111_NO_0001 7 DEF_STATIC_CONST_VAL_FLOAT(val_1082, 115.557999); #define CTNODE_cmu_us_rms_f0_m_111_NO_0007 9 DEF_STATIC_CONST_VAL_STRING(val_1083, "ey_68"); DEF_STATIC_CONST_VAL_FLOAT(val_1084, 109.827003); #define CTNODE_cmu_us_rms_f0_m_111_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_1085, 0.272754); DEF_STATIC_CONST_VAL_FLOAT(val_1086, 115.258003); #define CTNODE_cmu_us_rms_f0_m_111_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_1087, 100.164001); #define CTNODE_cmu_us_rms_f0_m_111_NO_0011 15 DEF_STATIC_CONST_VAL_FLOAT(val_1088, 105.207001); #define CTNODE_cmu_us_rms_f0_m_111_NO_0015 17 DEF_STATIC_CONST_VAL_STRING(val_1089, "d"); DEF_STATIC_CONST_VAL_FLOAT(val_1090, 0.522851); DEF_STATIC_CONST_VAL_FLOAT(val_1091, 92.787003); #define CTNODE_cmu_us_rms_f0_m_111_NO_0019 21 DEF_STATIC_CONST_VAL_FLOAT(val_1092, 86.762802); #define CTNODE_cmu_us_rms_f0_m_111_NO_0018 22 DEF_STATIC_CONST_VAL_FLOAT(val_1093, 99.847198); #define CTNODE_cmu_us_rms_f0_m_111_NO_0017 23 DEF_STATIC_CONST_VAL_FLOAT(val_1094, 0.228040); DEF_STATIC_CONST_VAL_FLOAT(val_1095, 103.609001); #define CTNODE_cmu_us_rms_f0_m_111_NO_0024 26 DEF_STATIC_CONST_VAL_FLOAT(val_1096, 110.607002); #define CTNODE_cmu_us_rms_f0_m_111_NO_0023 27 DEF_STATIC_CONST_VAL_FLOAT(val_1097, 90.183701); #define CTNODE_cmu_us_rms_f0_m_111_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_1098, 0.428645); DEF_STATIC_CONST_VAL_FLOAT(val_1099, 101.262001); #define CTNODE_cmu_us_rms_f0_m_111_NO_0030 32 DEF_STATIC_CONST_VAL_FLOAT(val_1100, 95.966103); #define CTNODE_cmu_us_rms_f0_m_111_NO_0029 33 DEF_STATIC_CONST_VAL_FLOAT(val_1101, 99.256599); #define CTNODE_cmu_us_rms_f0_m_111_NO_0033 35 DEF_STATIC_CONST_VAL_FLOAT(val_1102, 97.492302); #define CTNODE_cmu_us_rms_f0_m_111_NO_0035 37 DEF_STATIC_CONST_VAL_FLOAT(val_1103, 92.697701); #define CTNODE_cmu_us_rms_f0_m_111_NO_0038 40 DEF_STATIC_CONST_VAL_FLOAT(val_1104, 89.274498); #define CTNODE_cmu_us_rms_f0_m_111_NO_0037 41 DEF_STATIC_CONST_VAL_FLOAT(val_1105, 95.281601); #define CTNODE_cmu_us_rms_f0_m_111_NO_0000 42 DEF_STATIC_CONST_VAL_FLOAT(val_1106, 0.811030); DEF_STATIC_CONST_VAL_FLOAT(val_1107, 0.080000); DEF_STATIC_CONST_VAL_FLOAT(val_1108, 0.012000); DEF_STATIC_CONST_VAL_FLOAT(val_1109, 96.809700); #define CTNODE_cmu_us_rms_f0_m_111_NO_0045 47 DEF_STATIC_CONST_VAL_FLOAT(val_1110, 90.268402); #define CTNODE_cmu_us_rms_f0_m_111_NO_0044 48 DEF_STATIC_CONST_VAL_FLOAT(val_1111, 86.476700); #define CTNODE_cmu_us_rms_f0_m_111_NO_0043 49 DEF_STATIC_CONST_VAL_FLOAT(val_1112, 81.668999); #define CTNODE_cmu_us_rms_f0_m_111_NO_0042 50 DEF_STATIC_CONST_VAL_STRING(val_1113, "ih_88"); DEF_STATIC_CONST_VAL_FLOAT(val_1114, 82.470901); #define CTNODE_cmu_us_rms_f0_m_111_NO_0051 53 DEF_STATIC_CONST_VAL_FLOAT(val_1115, 86.642700); #define CTNODE_cmu_us_rms_f0_m_111_NO_0050 54 DEF_STATIC_CONST_VAL_FLOAT(val_1116, 18.400000); DEF_STATIC_CONST_VAL_FLOAT(val_1117, 81.864098); #define CTNODE_cmu_us_rms_f0_m_111_NO_0055 57 DEF_STATIC_CONST_VAL_FLOAT(val_1118, 77.823402); #define CTNODE_cmu_us_rms_f0_m_111_NO_0054 58 DEF_STATIC_CONST_VAL_FLOAT(val_1119, 74.160896); DEF_STATIC_CONST_VAL_FLOAT(val_1120, 1.176000); DEF_STATIC_CONST_VAL_FLOAT(val_1121, 91.695900); #define CTNODE_cmu_us_rms_f0_m_112_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_1122, 95.160599); #define CTNODE_cmu_us_rms_f0_m_112_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_1123, 110.763000); #define CTNODE_cmu_us_rms_f0_m_112_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_1124, 97.664703); #define CTNODE_cmu_us_rms_f0_m_112_NO_0007 9 DEF_STATIC_CONST_VAL_FLOAT(val_1125, 0.050000); DEF_STATIC_CONST_VAL_FLOAT(val_1126, 108.086998); #define CTNODE_cmu_us_rms_f0_m_112_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_1127, 103.714996); #define CTNODE_cmu_us_rms_f0_m_112_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_1128, 101.052002); #define CTNODE_cmu_us_rms_f0_m_112_NO_0000 14 DEF_STATIC_CONST_VAL_FLOAT(val_1129, 81.187202); #define CTNODE_cmu_us_rms_f0_m_112_NO_0016 18 DEF_STATIC_CONST_VAL_FLOAT(val_1130, 94.176804); #define CTNODE_cmu_us_rms_f0_m_112_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_1131, 89.018700); #define CTNODE_cmu_us_rms_f0_m_112_NO_0020 22 DEF_STATIC_CONST_VAL_FLOAT(val_1132, 85.211502); #define CTNODE_cmu_us_rms_f0_m_112_NO_0015 23 DEF_STATIC_CONST_VAL_FLOAT(val_1133, 2.276000); DEF_STATIC_CONST_VAL_FLOAT(val_1134, 91.048500); #define CTNODE_cmu_us_rms_f0_m_112_NO_0024 26 DEF_STATIC_CONST_VAL_FLOAT(val_1135, 86.780701); #define CTNODE_cmu_us_rms_f0_m_112_NO_0023 27 DEF_STATIC_CONST_VAL_FLOAT(val_1136, 99.032097); #define CTNODE_cmu_us_rms_f0_m_112_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_1137, 0.070000); DEF_STATIC_CONST_VAL_FLOAT(val_1138, 89.423698); #define CTNODE_cmu_us_rms_f0_m_112_NO_0031 33 DEF_STATIC_CONST_VAL_FLOAT(val_1139, 0.641381); DEF_STATIC_CONST_VAL_FLOAT(val_1140, 98.419098); #define CTNODE_cmu_us_rms_f0_m_112_NO_0033 35 DEF_STATIC_CONST_VAL_FLOAT(val_1141, 92.575699); #define CTNODE_cmu_us_rms_f0_m_112_NO_0030 36 DEF_STATIC_CONST_VAL_FLOAT(val_1142, 88.218002); #define CTNODE_cmu_us_rms_f0_m_112_NO_0029 37 DEF_STATIC_CONST_VAL_FLOAT(val_1143, 92.737999); #define CTNODE_cmu_us_rms_f0_m_112_NO_0037 39 DEF_STATIC_CONST_VAL_FLOAT(val_1144, 98.425003); #define CTNODE_cmu_us_rms_f0_m_112_NO_0014 40 DEF_STATIC_CONST_VAL_FLOAT(val_1145, 2.483500); DEF_STATIC_CONST_VAL_FLOAT(val_1146, 86.806396); #define CTNODE_cmu_us_rms_f0_m_112_NO_0040 42 DEF_STATIC_CONST_VAL_FLOAT(val_1147, 76.772301); DEF_STATIC_CONST_VAL_FLOAT(val_1148, 0.041000); DEF_STATIC_CONST_VAL_FLOAT(val_1149, 79.577400); #define CTNODE_cmu_us_rms_f0_m_113_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_1150, 94.085800); #define CTNODE_cmu_us_rms_f0_m_113_NO_0000 4 DEF_STATIC_CONST_VAL_FLOAT(val_1151, 103.725998); #define CTNODE_cmu_us_rms_f0_m_113_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_1152, 91.734200); #define CTNODE_cmu_us_rms_f0_m_113_NO_0007 9 DEF_STATIC_CONST_VAL_FLOAT(val_1153, 0.413689); DEF_STATIC_CONST_VAL_FLOAT(val_1154, 100.210999); #define CTNODE_cmu_us_rms_f0_m_113_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_1155, 92.349701); #define CTNODE_cmu_us_rms_f0_m_113_NO_0009 13 DEF_STATIC_CONST_VAL_FLOAT(val_1156, 0.039500); DEF_STATIC_CONST_VAL_FLOAT(val_1157, 102.569000); #define CTNODE_cmu_us_rms_f0_m_113_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_1158, 95.576103); #define CTNODE_cmu_us_rms_f0_m_113_NO_0004 16 DEF_STATIC_CONST_VAL_FLOAT(val_1159, 87.310799); DEF_STATIC_CONST_VAL_FLOAT(val_1160, 0.000000); DEF_STATIC_CONST_VAL_FLOAT(val_1161, 5.000000); DEF_STATIC_CONST_VAL_FLOAT(val_1162, 126.351997); #define CTNODE_cmu_us_rms_f0_ao_16_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_1163, 122.039001); #define CTNODE_cmu_us_rms_f0_ao_16_NO_0001 5 DEF_STATIC_CONST_VAL_FLOAT(val_1164, 110.948997); #define CTNODE_cmu_us_rms_f0_ao_16_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_1165, 99.466499); #define CTNODE_cmu_us_rms_f0_ao_16_NO_0000 8 DEF_STATIC_CONST_VAL_FLOAT(val_1166, 0.051500); DEF_STATIC_CONST_VAL_FLOAT(val_1167, 108.349998); #define CTNODE_cmu_us_rms_f0_ao_16_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_1168, 101.917000); #define CTNODE_cmu_us_rms_f0_ao_16_NO_0008 12 DEF_STATIC_CONST_VAL_FLOAT(val_1169, 0.193340); DEF_STATIC_CONST_VAL_FLOAT(val_1170, 102.757004); #define CTNODE_cmu_us_rms_f0_ao_16_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_1171, 84.949898); #define CTNODE_cmu_us_rms_f0_ao_16_NO_0014 16 DEF_STATIC_CONST_VAL_FLOAT(val_1172, 0.098000); DEF_STATIC_CONST_VAL_FLOAT(val_1173, 0.614537); DEF_STATIC_CONST_VAL_FLOAT(val_1174, 100.184998); #define CTNODE_cmu_us_rms_f0_ao_16_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_1175, 95.186897); #define CTNODE_cmu_us_rms_f0_ao_16_NO_0017 21 DEF_STATIC_CONST_VAL_FLOAT(val_1176, 90.503502); #define CTNODE_cmu_us_rms_f0_ao_16_NO_0016 22 DEF_STATIC_CONST_VAL_FLOAT(val_1177, 88.718803); DEF_STATIC_CONST_VAL_FLOAT(val_1178, 1.058000); DEF_STATIC_CONST_VAL_FLOAT(val_1179, 117.424004); #define CTNODE_cmu_us_rms_f0_ao_17_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_1180, 109.893997); #define CTNODE_cmu_us_rms_f0_ao_17_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_1181, 0.178951); DEF_STATIC_CONST_VAL_FLOAT(val_1182, 0.038122); DEF_STATIC_CONST_VAL_FLOAT(val_1183, 100.621002); #define CTNODE_cmu_us_rms_f0_ao_17_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_1184, 0.080342); DEF_STATIC_CONST_VAL_FLOAT(val_1185, 107.252998); #define CTNODE_cmu_us_rms_f0_ao_17_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_1186, 112.096001); #define CTNODE_cmu_us_rms_f0_ao_17_NO_0005 11 DEF_STATIC_CONST_VAL_FLOAT(val_1187, 103.309998); #define CTNODE_cmu_us_rms_f0_ao_17_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_1188, 98.188599); #define CTNODE_cmu_us_rms_f0_ao_17_NO_0000 14 DEF_STATIC_CONST_VAL_FLOAT(val_1189, 12.200000); DEF_STATIC_CONST_VAL_FLOAT(val_1190, 90.886398); #define CTNODE_cmu_us_rms_f0_ao_17_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_1191, 0.926659); DEF_STATIC_CONST_VAL_FLOAT(val_1192, 83.242500); #define CTNODE_cmu_us_rms_f0_ao_17_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_1193, 77.482803); #define CTNODE_cmu_us_rms_f0_ao_17_NO_0014 20 DEF_STATIC_CONST_VAL_FLOAT(val_1194, 111.218002); #define CTNODE_cmu_us_rms_f0_ao_17_NO_0021 23 DEF_STATIC_CONST_VAL_FLOAT(val_1195, 98.742401); #define CTNODE_cmu_us_rms_f0_ao_17_NO_0020 24 DEF_STATIC_CONST_VAL_FLOAT(val_1196, 0.237000); DEF_STATIC_CONST_VAL_FLOAT(val_1197, 0.582796); DEF_STATIC_CONST_VAL_FLOAT(val_1198, 0.143000); DEF_STATIC_CONST_VAL_FLOAT(val_1199, 95.047897); #define CTNODE_cmu_us_rms_f0_ao_17_NO_0028 30 DEF_STATIC_CONST_VAL_FLOAT(val_1200, 89.063698); #define CTNODE_cmu_us_rms_f0_ao_17_NO_0027 31 DEF_STATIC_CONST_VAL_FLOAT(val_1201, 99.438797); #define CTNODE_cmu_us_rms_f0_ao_17_NO_0026 32 DEF_STATIC_CONST_VAL_FLOAT(val_1202, 99.631897); #define CTNODE_cmu_us_rms_f0_ao_17_NO_0025 33 DEF_STATIC_CONST_VAL_FLOAT(val_1203, 0.761994); DEF_STATIC_CONST_VAL_FLOAT(val_1204, 0.022000); DEF_STATIC_CONST_VAL_FLOAT(val_1205, 90.853996); #define CTNODE_cmu_us_rms_f0_ao_17_NO_0035 37 DEF_STATIC_CONST_VAL_FLOAT(val_1206, 94.542603); #define CTNODE_cmu_us_rms_f0_ao_17_NO_0034 38 DEF_STATIC_CONST_VAL_FLOAT(val_1207, 95.607597); #define CTNODE_cmu_us_rms_f0_ao_17_NO_0033 39 DEF_STATIC_CONST_VAL_FLOAT(val_1208, 0.797965); DEF_STATIC_CONST_VAL_FLOAT(val_1209, 88.173500); #define CTNODE_cmu_us_rms_f0_ao_17_NO_0039 41 DEF_STATIC_CONST_VAL_FLOAT(val_1210, 93.130798); #define CTNODE_cmu_us_rms_f0_ao_17_NO_0024 42 DEF_STATIC_CONST_VAL_FLOAT(val_1211, 85.563301); DEF_STATIC_CONST_VAL_FLOAT(val_1212, 10.200000); DEF_STATIC_CONST_VAL_FLOAT(val_1213, 91.854401); #define CTNODE_cmu_us_rms_f0_ao_18_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_1214, 82.630096); #define CTNODE_cmu_us_rms_f0_ao_18_NO_0001 5 DEF_STATIC_CONST_VAL_FLOAT(val_1215, 96.796898); #define CTNODE_cmu_us_rms_f0_ao_18_NO_0000 6 DEF_STATIC_CONST_VAL_STRING(val_1216, "g_76"); DEF_STATIC_CONST_VAL_FLOAT(val_1217, 86.432503); #define CTNODE_cmu_us_rms_f0_ao_18_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_1218, 0.517241); DEF_STATIC_CONST_VAL_FLOAT(val_1219, 0.380908); DEF_STATIC_CONST_VAL_FLOAT(val_1220, 118.496002); #define CTNODE_cmu_us_rms_f0_ao_18_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_1221, 109.012001); #define CTNODE_cmu_us_rms_f0_ao_18_NO_0009 13 DEF_STATIC_CONST_VAL_FLOAT(val_1222, 32.500000); DEF_STATIC_CONST_VAL_FLOAT(val_1223, 17.000000); DEF_STATIC_CONST_VAL_FLOAT(val_1224, 103.124001); #define CTNODE_cmu_us_rms_f0_ao_18_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_1225, 97.763298); #define CTNODE_cmu_us_rms_f0_ao_18_NO_0014 18 DEF_STATIC_CONST_VAL_FLOAT(val_1226, 0.385638); DEF_STATIC_CONST_VAL_FLOAT(val_1227, 115.958000); #define CTNODE_cmu_us_rms_f0_ao_18_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_1228, 102.736000); #define CTNODE_cmu_us_rms_f0_ao_18_NO_0013 21 DEF_STATIC_CONST_VAL_FLOAT(val_1229, 96.759201); #define CTNODE_cmu_us_rms_f0_ao_18_NO_0008 22 DEF_STATIC_CONST_VAL_FLOAT(val_1230, 0.291047); DEF_STATIC_CONST_VAL_FLOAT(val_1231, 0.206375); DEF_STATIC_CONST_VAL_FLOAT(val_1232, 112.321999); #define CTNODE_cmu_us_rms_f0_ao_18_NO_0024 26 DEF_STATIC_CONST_VAL_FLOAT(val_1233, 110.609001); #define CTNODE_cmu_us_rms_f0_ao_18_NO_0023 27 DEF_STATIC_CONST_VAL_FLOAT(val_1234, 105.375000); #define CTNODE_cmu_us_rms_f0_ao_18_NO_0022 28 DEF_STATIC_CONST_VAL_FLOAT(val_1235, 0.422869); DEF_STATIC_CONST_VAL_FLOAT(val_1236, 102.234001); #define CTNODE_cmu_us_rms_f0_ao_18_NO_0029 31 DEF_STATIC_CONST_VAL_FLOAT(val_1237, 97.469002); #define CTNODE_cmu_us_rms_f0_ao_18_NO_0028 32 DEF_STATIC_CONST_VAL_FLOAT(val_1238, 89.821602); #define CTNODE_cmu_us_rms_f0_ao_18_NO_0033 35 DEF_STATIC_CONST_VAL_FLOAT(val_1239, 94.783897); #define CTNODE_cmu_us_rms_f0_ao_18_NO_0032 36 DEF_STATIC_CONST_VAL_FLOAT(val_1240, 0.632975); DEF_STATIC_CONST_VAL_FLOAT(val_1241, 0.526531); DEF_STATIC_CONST_VAL_FLOAT(val_1242, 97.258499); #define CTNODE_cmu_us_rms_f0_ao_18_NO_0037 39 DEF_STATIC_CONST_VAL_FLOAT(val_1243, 99.501801); #define CTNODE_cmu_us_rms_f0_ao_18_NO_0036 40 DEF_STATIC_CONST_VAL_FLOAT(val_1244, 94.027298); DEF_STATIC_CONST_VAL_FLOAT(val_1245, 119.614998); #define CTNODE_cmu_us_rms_f0_th_169_NO_0000 2 DEF_STATIC_CONST_VAL_FLOAT(val_1246, 109.475998); #define CTNODE_cmu_us_rms_f0_th_169_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_1247, 0.413033); DEF_STATIC_CONST_VAL_FLOAT(val_1248, 104.292000); #define CTNODE_cmu_us_rms_f0_th_169_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_1249, 83.330597); #define CTNODE_cmu_us_rms_f0_th_169_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_1250, 94.898697); DEF_STATIC_CONST_VAL_FLOAT(val_1251, 12.700000); DEF_STATIC_CONST_VAL_FLOAT(val_1252, 1.253000); DEF_STATIC_CONST_VAL_FLOAT(val_1253, 108.140999); #define CTNODE_cmu_us_rms_f0_th_170_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_1254, 97.500900); #define CTNODE_cmu_us_rms_f0_th_170_NO_0002 6 DEF_STATIC_CONST_VAL_FLOAT(val_1255, 0.376299); DEF_STATIC_CONST_VAL_FLOAT(val_1256, 122.607002); #define CTNODE_cmu_us_rms_f0_th_170_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_1257, 0.097500); DEF_STATIC_CONST_VAL_FLOAT(val_1258, 112.671997); #define CTNODE_cmu_us_rms_f0_th_170_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_1259, 104.147003); #define CTNODE_cmu_us_rms_f0_th_170_NO_0001 11 DEF_STATIC_CONST_VAL_FLOAT(val_1260, 1.107000); DEF_STATIC_CONST_VAL_FLOAT(val_1261, 121.119003); #define CTNODE_cmu_us_rms_f0_th_170_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_1262, 129.845001); #define CTNODE_cmu_us_rms_f0_th_170_NO_0011 15 DEF_STATIC_CONST_VAL_FLOAT(val_1263, 122.269997); #define CTNODE_cmu_us_rms_f0_th_170_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_1264, 0.712195); DEF_STATIC_CONST_VAL_FLOAT(val_1265, 109.192001); #define CTNODE_cmu_us_rms_f0_th_170_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_1266, 119.116997); #define CTNODE_cmu_us_rms_f0_th_170_NO_0000 20 DEF_STATIC_CONST_VAL_FLOAT(val_1267, 0.016000); DEF_STATIC_CONST_VAL_FLOAT(val_1268, 0.095000); DEF_STATIC_CONST_VAL_FLOAT(val_1269, 93.795303); #define CTNODE_cmu_us_rms_f0_th_170_NO_0021 23 DEF_STATIC_CONST_VAL_FLOAT(val_1270, 106.483002); #define CTNODE_cmu_us_rms_f0_th_170_NO_0020 24 DEF_STATIC_CONST_VAL_FLOAT(val_1271, 73.656502); DEF_STATIC_CONST_VAL_FLOAT(val_1272, 98.396797); #define CTNODE_cmu_us_rms_f0_th_171_NO_0000 2 DEF_STATIC_CONST_VAL_FLOAT(val_1273, 129.251007); #define CTNODE_cmu_us_rms_f0_th_171_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_1274, 116.261002); DEF_STATIC_CONST_VAL_FLOAT(val_1275, 0.291039); #define CTNODE_cmu_us_rms_f0_ah_11_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_1276, 113.445999); #define CTNODE_cmu_us_rms_f0_ah_11_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_1277, 110.329002); #define CTNODE_cmu_us_rms_f0_ah_11_NO_0003 7 DEF_STATIC_CONST_VAL_FLOAT(val_1278, 118.833000); #define CTNODE_cmu_us_rms_f0_ah_11_NO_0000 8 DEF_STATIC_CONST_VAL_FLOAT(val_1279, 111.857002); #define CTNODE_cmu_us_rms_f0_ah_11_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_1280, 104.633003); #define CTNODE_cmu_us_rms_f0_ah_11_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_1281, 0.832620); DEF_STATIC_CONST_VAL_FLOAT(val_1282, 0.508031); DEF_STATIC_CONST_VAL_FLOAT(val_1283, 102.167000); #define CTNODE_cmu_us_rms_f0_ah_11_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_1284, 96.330299); #define CTNODE_cmu_us_rms_f0_ah_11_NO_0014 18 DEF_STATIC_CONST_VAL_FLOAT(val_1285, 89.154999); #define CTNODE_cmu_us_rms_f0_ah_11_NO_0013 19 DEF_STATIC_CONST_VAL_FLOAT(val_1286, 94.026604); #define CTNODE_cmu_us_rms_f0_ah_11_NO_0019 21 DEF_STATIC_CONST_VAL_FLOAT(val_1287, 0.036500); DEF_STATIC_CONST_VAL_FLOAT(val_1288, 0.767361); DEF_STATIC_CONST_VAL_FLOAT(val_1289, 86.457497); #define CTNODE_cmu_us_rms_f0_ah_11_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_1290, 92.011803); #define CTNODE_cmu_us_rms_f0_ah_11_NO_0021 25 DEF_STATIC_CONST_VAL_FLOAT(val_1291, 94.265900); #define CTNODE_cmu_us_rms_f0_ah_11_NO_0012 26 DEF_STATIC_CONST_VAL_FLOAT(val_1292, 84.113098); DEF_STATIC_CONST_VAL_FLOAT(val_1293, 1.223000); DEF_STATIC_CONST_VAL_FLOAT(val_1294, 0.182312); DEF_STATIC_CONST_VAL_FLOAT(val_1295, 126.600998); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_1296, 112.870003); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0001 5 DEF_STATIC_CONST_VAL_FLOAT(val_1297, 0.186160); DEF_STATIC_CONST_VAL_FLOAT(val_1298, 107.463997); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_1299, 97.328796); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0005 9 DEF_STATIC_CONST_VAL_FLOAT(val_1300, 114.804001); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_1301, 0.234000); DEF_STATIC_CONST_VAL_FLOAT(val_1302, 9.600000); DEF_STATIC_CONST_VAL_FLOAT(val_1303, 106.711998); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_1304, 108.571999); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0011 15 DEF_STATIC_CONST_VAL_FLOAT(val_1305, 106.222000); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0016 18 DEF_STATIC_CONST_VAL_FLOAT(val_1306, 111.412003); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0015 19 DEF_STATIC_CONST_VAL_FLOAT(val_1307, 113.681999); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0000 20 DEF_STATIC_CONST_VAL_FLOAT(val_1308, 86.068703); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0020 22 DEF_STATIC_CONST_VAL_FLOAT(val_1309, 10.000000); DEF_STATIC_CONST_VAL_FLOAT(val_1310, 108.125999); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0023 25 DEF_STATIC_CONST_VAL_FLOAT(val_1311, 100.584999); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0022 26 DEF_STATIC_CONST_VAL_FLOAT(val_1312, 0.525978); DEF_STATIC_CONST_VAL_FLOAT(val_1313, 13.800000); DEF_STATIC_CONST_VAL_FLOAT(val_1314, 100.938004); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0028 30 DEF_STATIC_CONST_VAL_FLOAT(val_1315, 97.934998); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0027 31 DEF_STATIC_CONST_VAL_FLOAT(val_1316, 94.083397); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0026 32 DEF_STATIC_CONST_VAL_FLOAT(val_1317, 98.396896); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0032 34 DEF_STATIC_CONST_VAL_FLOAT(val_1318, 17.500000); DEF_STATIC_CONST_VAL_FLOAT(val_1319, 0.825710); DEF_STATIC_CONST_VAL_FLOAT(val_1320, 92.863503); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0037 39 DEF_STATIC_CONST_VAL_FLOAT(val_1321, 96.088097); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0036 40 DEF_STATIC_CONST_VAL_FLOAT(val_1322, 0.010500); DEF_STATIC_CONST_VAL_FLOAT(val_1323, 91.089600); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0040 42 DEF_STATIC_CONST_VAL_FLOAT(val_1324, 93.708099); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0035 43 DEF_STATIC_CONST_VAL_FLOAT(val_1325, 90.110802); #define CTNODE_cmu_us_rms_f0_ah_12_NO_0034 44 DEF_STATIC_CONST_VAL_FLOAT(val_1326, 89.339699); DEF_STATIC_CONST_VAL_FLOAT(val_1327, 0.211300); DEF_STATIC_CONST_VAL_FLOAT(val_1328, 108.082001); #define CTNODE_cmu_us_rms_f0_ah_13_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_1329, 114.138000); #define CTNODE_cmu_us_rms_f0_ah_13_NO_0000 4 DEF_STATIC_CONST_VAL_FLOAT(val_1330, 20.400000); DEF_STATIC_CONST_VAL_FLOAT(val_1331, 0.439599); DEF_STATIC_CONST_VAL_FLOAT(val_1332, 0.325276); DEF_STATIC_CONST_VAL_FLOAT(val_1333, 105.407997); #define CTNODE_cmu_us_rms_f0_ah_13_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_1334, 96.482803); #define CTNODE_cmu_us_rms_f0_ah_13_NO_0005 9 DEF_STATIC_CONST_VAL_FLOAT(val_1335, 0.799005); DEF_STATIC_CONST_VAL_FLOAT(val_1336, 93.285103); #define CTNODE_cmu_us_rms_f0_ah_13_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_1337, 89.775299); #define CTNODE_cmu_us_rms_f0_ah_13_NO_0010 14 DEF_STATIC_CONST_VAL_FLOAT(val_1338, 87.709801); #define CTNODE_cmu_us_rms_f0_ah_13_NO_0009 15 DEF_STATIC_CONST_VAL_FLOAT(val_1339, 98.505600); #define CTNODE_cmu_us_rms_f0_ah_13_NO_0004 16 DEF_STATIC_CONST_VAL_FLOAT(val_1340, 26.400000); DEF_STATIC_CONST_VAL_FLOAT(val_1341, 89.263702); #define CTNODE_cmu_us_rms_f0_ah_13_NO_0016 18 DEF_STATIC_CONST_VAL_FLOAT(val_1342, 82.799301); DEF_STATIC_CONST_VAL_FLOAT(val_1343, 0.291984); DEF_STATIC_CONST_VAL_FLOAT(val_1344, 0.175314); DEF_STATIC_CONST_VAL_FLOAT(val_1345, 105.264999); #define CTNODE_cmu_us_rms_f0_v_184_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_1346, 96.201698); #define CTNODE_cmu_us_rms_f0_v_184_NO_0000 4 DEF_STATIC_CONST_VAL_FLOAT(val_1347, 0.835253); DEF_STATIC_CONST_VAL_FLOAT(val_1348, 94.918503); #define CTNODE_cmu_us_rms_f0_v_184_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_1349, 89.164398); #define CTNODE_cmu_us_rms_f0_v_184_NO_0005 9 DEF_STATIC_CONST_VAL_FLOAT(val_1350, 0.453937); DEF_STATIC_CONST_VAL_FLOAT(val_1351, 90.730797); #define CTNODE_cmu_us_rms_f0_v_184_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_1352, 84.653099); #define CTNODE_cmu_us_rms_f0_v_184_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_1353, 86.755699); #define CTNODE_cmu_us_rms_f0_v_184_NO_0004 14 DEF_STATIC_CONST_VAL_FLOAT(val_1354, 81.907204); DEF_STATIC_CONST_VAL_FLOAT(val_1355, 1.269000); DEF_STATIC_CONST_VAL_FLOAT(val_1356, 102.441002); #define CTNODE_cmu_us_rms_f0_v_185_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_1357, 92.848000); #define CTNODE_cmu_us_rms_f0_v_185_NO_0000 4 DEF_STATIC_CONST_VAL_FLOAT(val_1358, 2.177000); DEF_STATIC_CONST_VAL_FLOAT(val_1359, 89.617401); #define CTNODE_cmu_us_rms_f0_v_185_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_1360, 86.611900); #define CTNODE_cmu_us_rms_f0_v_185_NO_0004 8 DEF_STATIC_CONST_VAL_FLOAT(val_1361, 87.053497); #define CTNODE_cmu_us_rms_f0_v_185_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_1362, 0.020500); DEF_STATIC_CONST_VAL_FLOAT(val_1363, 82.056000); #define CTNODE_cmu_us_rms_f0_v_185_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_1364, 85.585403); DEF_STATIC_CONST_VAL_FLOAT(val_1365, 6.200000); DEF_STATIC_CONST_VAL_FLOAT(val_1366, 0.306925); DEF_STATIC_CONST_VAL_FLOAT(val_1367, 93.270599); #define CTNODE_cmu_us_rms_f0_v_186_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_1368, 0.189630); DEF_STATIC_CONST_VAL_FLOAT(val_1369, 106.497002); #define CTNODE_cmu_us_rms_f0_v_186_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_1370, 99.949303); #define CTNODE_cmu_us_rms_f0_v_186_NO_0001 7 DEF_STATIC_CONST_VAL_FLOAT(val_1371, 0.778606); DEF_STATIC_CONST_VAL_FLOAT(val_1372, 93.834297); #define CTNODE_cmu_us_rms_f0_v_186_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_1373, 0.012000); DEF_STATIC_CONST_VAL_FLOAT(val_1374, 0.043000); DEF_STATIC_CONST_VAL_FLOAT(val_1375, 87.748901); #define CTNODE_cmu_us_rms_f0_v_186_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_1376, 92.632698); #define CTNODE_cmu_us_rms_f0_v_186_NO_0011 15 DEF_STATIC_CONST_VAL_FLOAT(val_1377, 86.184700); #define CTNODE_cmu_us_rms_f0_v_186_NO_0008 16 DEF_STATIC_CONST_VAL_FLOAT(val_1378, 98.098198); #define CTNODE_cmu_us_rms_f0_v_186_NO_0007 17 DEF_STATIC_CONST_VAL_FLOAT(val_1379, 82.237297); #define CTNODE_cmu_us_rms_f0_v_186_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_1380, 88.925201); #define CTNODE_cmu_us_rms_f0_v_186_NO_0000 20 DEF_STATIC_CONST_VAL_FLOAT(val_1381, 0.074500); DEF_STATIC_CONST_VAL_FLOAT(val_1382, 107.277000); #define CTNODE_cmu_us_rms_f0_v_186_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_1383, 99.543602); #define CTNODE_cmu_us_rms_f0_v_186_NO_0021 25 DEF_STATIC_CONST_VAL_FLOAT(val_1384, 114.850998); #define CTNODE_cmu_us_rms_f0_v_186_NO_0020 26 DEF_STATIC_CONST_VAL_FLOAT(val_1385, 0.709244); DEF_STATIC_CONST_VAL_FLOAT(val_1386, 0.436534); DEF_STATIC_CONST_VAL_FLOAT(val_1387, 102.989998); #define CTNODE_cmu_us_rms_f0_v_186_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_1388, 97.100098); #define CTNODE_cmu_us_rms_f0_v_186_NO_0026 30 DEF_STATIC_CONST_VAL_FLOAT(val_1389, 91.397697); DEF_STATIC_CONST_VAL_FLOAT(val_1390, 0.165651); DEF_STATIC_CONST_VAL_FLOAT(val_1391, 117.901001); #define CTNODE_cmu_us_rms_f0_dh_51_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_1392, 0.090000); DEF_STATIC_CONST_VAL_FLOAT(val_1393, 0.074000); DEF_STATIC_CONST_VAL_FLOAT(val_1394, 17.200001); DEF_STATIC_CONST_VAL_FLOAT(val_1395, 102.690002); #define CTNODE_cmu_us_rms_f0_dh_51_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_1396, 110.882004); #define CTNODE_cmu_us_rms_f0_dh_51_NO_0005 9 DEF_STATIC_CONST_VAL_FLOAT(val_1397, 93.961403); #define CTNODE_cmu_us_rms_f0_dh_51_NO_0004 10 DEF_STATIC_CONST_VAL_FLOAT(val_1398, 113.584000); #define CTNODE_cmu_us_rms_f0_dh_51_NO_0001 11 DEF_STATIC_CONST_VAL_FLOAT(val_1399, 0.065000); DEF_STATIC_CONST_VAL_FLOAT(val_1400, 114.952003); #define CTNODE_cmu_us_rms_f0_dh_51_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_1401, 133.820007); #define CTNODE_cmu_us_rms_f0_dh_51_NO_0000 14 DEF_STATIC_CONST_VAL_FLOAT(val_1402, 0.751860); DEF_STATIC_CONST_VAL_FLOAT(val_1403, 0.033000); DEF_STATIC_CONST_VAL_FLOAT(val_1404, 89.061996); #define CTNODE_cmu_us_rms_f0_dh_51_NO_0016 18 DEF_STATIC_CONST_VAL_FLOAT(val_1405, 93.668198); #define CTNODE_cmu_us_rms_f0_dh_51_NO_0015 19 DEF_STATIC_CONST_VAL_FLOAT(val_1406, 80.820099); #define CTNODE_cmu_us_rms_f0_dh_51_NO_0014 20 DEF_STATIC_CONST_VAL_FLOAT(val_1407, 0.479223); DEF_STATIC_CONST_VAL_FLOAT(val_1408, 0.062500); DEF_STATIC_CONST_VAL_FLOAT(val_1409, 103.296997); #define CTNODE_cmu_us_rms_f0_dh_51_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_1410, 94.967598); #define CTNODE_cmu_us_rms_f0_dh_51_NO_0021 25 DEF_STATIC_CONST_VAL_FLOAT(val_1411, 97.810699); #define CTNODE_cmu_us_rms_f0_dh_51_NO_0026 28 DEF_STATIC_CONST_VAL_FLOAT(val_1412, 112.378998); #define CTNODE_cmu_us_rms_f0_dh_51_NO_0025 29 DEF_STATIC_CONST_VAL_FLOAT(val_1413, 116.755997); #define CTNODE_cmu_us_rms_f0_dh_51_NO_0020 30 DEF_STATIC_CONST_VAL_FLOAT(val_1414, 0.043000); DEF_STATIC_CONST_VAL_FLOAT(val_1415, 85.337402); #define CTNODE_cmu_us_rms_f0_dh_51_NO_0031 33 DEF_STATIC_CONST_VAL_FLOAT(val_1416, 93.175598); #define CTNODE_cmu_us_rms_f0_dh_51_NO_0030 34 DEF_STATIC_CONST_VAL_FLOAT(val_1417, 0.088889); DEF_STATIC_CONST_VAL_FLOAT(val_1418, 94.733498); #define CTNODE_cmu_us_rms_f0_dh_51_NO_0034 36 DEF_STATIC_CONST_VAL_FLOAT(val_1419, 96.765900); #define CTNODE_cmu_us_rms_f0_dh_51_NO_0036 38 DEF_STATIC_CONST_VAL_FLOAT(val_1420, 98.437500); #define CTNODE_cmu_us_rms_f0_dh_51_NO_0038 40 DEF_STATIC_CONST_VAL_FLOAT(val_1421, 105.057999); DEF_STATIC_CONST_VAL_FLOAT(val_1422, 13.600000); DEF_STATIC_CONST_VAL_FLOAT(val_1423, 0.441673); DEF_STATIC_CONST_VAL_FLOAT(val_1424, 6.800000); DEF_STATIC_CONST_VAL_FLOAT(val_1425, 0.868000); DEF_STATIC_CONST_VAL_FLOAT(val_1426, 15.800000); DEF_STATIC_CONST_VAL_FLOAT(val_1427, 102.943001); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_1428, 100.139000); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0005 9 DEF_STATIC_CONST_VAL_FLOAT(val_1429, 106.278000); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0004 10 DEF_STATIC_CONST_VAL_FLOAT(val_1430, 111.222000); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0003 11 DEF_STATIC_CONST_VAL_FLOAT(val_1431, 0.499288); DEF_STATIC_CONST_VAL_FLOAT(val_1432, 93.442200); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_1433, 100.417000); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0002 14 DEF_STATIC_CONST_VAL_FLOAT(val_1434, 9.700000); DEF_STATIC_CONST_VAL_FLOAT(val_1435, 14.600000); DEF_STATIC_CONST_VAL_FLOAT(val_1436, 97.138802); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_1437, 98.937698); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0014 18 DEF_STATIC_CONST_VAL_FLOAT(val_1438, 0.711250); DEF_STATIC_CONST_VAL_FLOAT(val_1439, 93.558899); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0020 22 DEF_STATIC_CONST_VAL_FLOAT(val_1440, 94.800400); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0019 23 DEF_STATIC_CONST_VAL_FLOAT(val_1441, 14.800000); DEF_STATIC_CONST_VAL_FLOAT(val_1442, 93.356598); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0023 25 DEF_STATIC_CONST_VAL_FLOAT(val_1443, 92.087097); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0018 26 DEF_STATIC_CONST_VAL_FLOAT(val_1444, 96.496300); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0001 27 DEF_STATIC_CONST_VAL_FLOAT(val_1445, 0.688667); DEF_STATIC_CONST_VAL_FLOAT(val_1446, 0.650901); DEF_STATIC_CONST_VAL_FLOAT(val_1447, 94.886200); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0029 31 DEF_STATIC_CONST_VAL_FLOAT(val_1448, 90.490700); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0028 32 DEF_STATIC_CONST_VAL_FLOAT(val_1449, 92.360901); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0032 34 DEF_STATIC_CONST_VAL_FLOAT(val_1450, 0.027500); DEF_STATIC_CONST_VAL_FLOAT(val_1451, 87.017303); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0034 36 DEF_STATIC_CONST_VAL_FLOAT(val_1452, 89.401901); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0027 37 DEF_STATIC_CONST_VAL_FLOAT(val_1453, 0.042500); DEF_STATIC_CONST_VAL_FLOAT(val_1454, 97.092201); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0037 39 DEF_STATIC_CONST_VAL_FLOAT(val_1455, 91.285301); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0000 40 DEF_STATIC_CONST_VAL_FLOAT(val_1456, 105.231003); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0040 42 DEF_STATIC_CONST_VAL_FLOAT(val_1457, 18.000000); DEF_STATIC_CONST_VAL_FLOAT(val_1458, 109.568001); #define CTNODE_cmu_us_rms_f0_dh_52_NO_0042 44 DEF_STATIC_CONST_VAL_FLOAT(val_1459, 113.834000); DEF_STATIC_CONST_VAL_FLOAT(val_1460, 0.342857); DEF_STATIC_CONST_VAL_FLOAT(val_1461, 0.189047); DEF_STATIC_CONST_VAL_FLOAT(val_1462, 0.057134); DEF_STATIC_CONST_VAL_FLOAT(val_1463, 102.088997); #define CTNODE_cmu_us_rms_f0_dh_53_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_1464, 97.466904); #define CTNODE_cmu_us_rms_f0_dh_53_NO_0004 8 DEF_STATIC_CONST_VAL_FLOAT(val_1465, 105.249001); #define CTNODE_cmu_us_rms_f0_dh_53_NO_0003 9 DEF_STATIC_CONST_VAL_FLOAT(val_1466, 93.802002); #define CTNODE_cmu_us_rms_f0_dh_53_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_1467, 3.200000); DEF_STATIC_CONST_VAL_FLOAT(val_1468, 97.675301); #define CTNODE_cmu_us_rms_f0_dh_53_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_1469, 101.161003); #define CTNODE_cmu_us_rms_f0_dh_53_NO_0002 14 DEF_STATIC_CONST_VAL_FLOAT(val_1470, 94.663803); #define CTNODE_cmu_us_rms_f0_dh_53_NO_0001 15 DEF_STATIC_CONST_VAL_FLOAT(val_1471, 108.720001); #define CTNODE_cmu_us_rms_f0_dh_53_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_1472, 101.039001); #define CTNODE_cmu_us_rms_f0_dh_53_NO_0000 18 DEF_STATIC_CONST_VAL_FLOAT(val_1473, 0.039500); DEF_STATIC_CONST_VAL_FLOAT(val_1474, 99.319901); #define CTNODE_cmu_us_rms_f0_dh_53_NO_0019 21 DEF_STATIC_CONST_VAL_FLOAT(val_1475, 92.149399); #define CTNODE_cmu_us_rms_f0_dh_53_NO_0018 22 DEF_STATIC_CONST_VAL_FLOAT(val_1476, 0.057000); DEF_STATIC_CONST_VAL_FLOAT(val_1477, 9.000000); DEF_STATIC_CONST_VAL_FLOAT(val_1478, 88.274300); #define CTNODE_cmu_us_rms_f0_dh_53_NO_0024 26 DEF_STATIC_CONST_VAL_FLOAT(val_1479, 92.030998); #define CTNODE_cmu_us_rms_f0_dh_53_NO_0023 27 DEF_STATIC_CONST_VAL_FLOAT(val_1480, 0.025000); DEF_STATIC_CONST_VAL_FLOAT(val_1481, 97.561798); #define CTNODE_cmu_us_rms_f0_dh_53_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_1482, 92.169403); #define CTNODE_cmu_us_rms_f0_dh_53_NO_0022 30 DEF_STATIC_CONST_VAL_FLOAT(val_1483, 86.693604); DEF_STATIC_CONST_VAL_FLOAT(val_1484, 0.060000); DEF_STATIC_CONST_VAL_FLOAT(val_1485, 111.065002); #define CTNODE_cmu_us_rms_f0_d_46_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_1486, 93.455704); #define CTNODE_cmu_us_rms_f0_d_46_NO_0000 4 DEF_STATIC_CONST_VAL_FLOAT(val_1487, 0.042500); DEF_STATIC_CONST_VAL_FLOAT(val_1488, 0.910396); DEF_STATIC_CONST_VAL_FLOAT(val_1489, 85.416000); #define CTNODE_cmu_us_rms_f0_d_46_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_1490, 78.533401); #define CTNODE_cmu_us_rms_f0_d_46_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_1491, 75.952904); #define CTNODE_cmu_us_rms_f0_d_46_NO_0005 11 DEF_STATIC_CONST_VAL_FLOAT(val_1492, 90.890900); #define CTNODE_cmu_us_rms_f0_d_46_NO_0004 12 DEF_STATIC_CONST_VAL_FLOAT(val_1493, 0.483720); DEF_STATIC_CONST_VAL_FLOAT(val_1494, 86.677399); #define CTNODE_cmu_us_rms_f0_d_46_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_1495, 81.284103); #define CTNODE_cmu_us_rms_f0_d_46_NO_0012 16 DEF_STATIC_CONST_VAL_FLOAT(val_1496, 0.209252); DEF_STATIC_CONST_VAL_FLOAT(val_1497, 0.036500); DEF_STATIC_CONST_VAL_FLOAT(val_1498, 100.351997); #define CTNODE_cmu_us_rms_f0_d_46_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_1499, 91.029999); #define CTNODE_cmu_us_rms_f0_d_46_NO_0017 21 DEF_STATIC_CONST_VAL_FLOAT(val_1500, 0.644892); DEF_STATIC_CONST_VAL_FLOAT(val_1501, 12.800000); DEF_STATIC_CONST_VAL_FLOAT(val_1502, 0.026000); DEF_STATIC_CONST_VAL_FLOAT(val_1503, 93.172401); #define CTNODE_cmu_us_rms_f0_d_46_NO_0023 25 DEF_STATIC_CONST_VAL_FLOAT(val_1504, 86.340500); #define CTNODE_cmu_us_rms_f0_d_46_NO_0025 27 DEF_STATIC_CONST_VAL_FLOAT(val_1505, 89.704102); #define CTNODE_cmu_us_rms_f0_d_46_NO_0022 28 DEF_STATIC_CONST_VAL_FLOAT(val_1506, 85.622200); #define CTNODE_cmu_us_rms_f0_d_46_NO_0021 29 DEF_STATIC_CONST_VAL_FLOAT(val_1507, 81.613899); #define CTNODE_cmu_us_rms_f0_d_46_NO_0029 31 DEF_STATIC_CONST_VAL_FLOAT(val_1508, 86.574997); #define CTNODE_cmu_us_rms_f0_d_46_NO_0016 32 DEF_STATIC_CONST_VAL_STRING(val_1509, "n_118"); DEF_STATIC_CONST_VAL_FLOAT(val_1510, 0.030500); DEF_STATIC_CONST_VAL_FLOAT(val_1511, 91.804199); #define CTNODE_cmu_us_rms_f0_d_46_NO_0033 35 DEF_STATIC_CONST_VAL_FLOAT(val_1512, 84.724701); #define CTNODE_cmu_us_rms_f0_d_46_NO_0032 36 DEF_STATIC_CONST_VAL_STRING(val_1513, "l_108"); DEF_STATIC_CONST_VAL_FLOAT(val_1514, 91.076797); #define CTNODE_cmu_us_rms_f0_d_46_NO_0036 38 DEF_STATIC_CONST_VAL_FLOAT(val_1515, 94.421600); #define CTNODE_cmu_us_rms_f0_d_46_NO_0038 40 DEF_STATIC_CONST_VAL_FLOAT(val_1516, 97.931297); #define CTNODE_cmu_us_rms_f0_d_46_NO_0040 42 DEF_STATIC_CONST_VAL_FLOAT(val_1517, 107.492996); DEF_STATIC_CONST_VAL_FLOAT(val_1518, 1.243000); DEF_STATIC_CONST_VAL_FLOAT(val_1519, 107.156998); #define CTNODE_cmu_us_rms_f0_d_47_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_1520, 0.321653); DEF_STATIC_CONST_VAL_FLOAT(val_1521, 0.179936); DEF_STATIC_CONST_VAL_FLOAT(val_1522, 100.987000); #define CTNODE_cmu_us_rms_f0_d_47_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_1523, 95.829697); #define CTNODE_cmu_us_rms_f0_d_47_NO_0004 8 DEF_STATIC_CONST_VAL_FLOAT(val_1524, 92.974098); #define CTNODE_cmu_us_rms_f0_d_47_NO_0003 9 DEF_STATIC_CONST_VAL_FLOAT(val_1525, 90.404701); #define CTNODE_cmu_us_rms_f0_d_47_NO_0000 10 DEF_STATIC_CONST_VAL_FLOAT(val_1526, 103.146004); #define CTNODE_cmu_us_rms_f0_d_47_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_1527, 0.919556); DEF_STATIC_CONST_VAL_FLOAT(val_1528, 0.063500); DEF_STATIC_CONST_VAL_FLOAT(val_1529, 0.043500); DEF_STATIC_CONST_VAL_FLOAT(val_1530, 0.711444); DEF_STATIC_CONST_VAL_FLOAT(val_1531, 88.238899); #define CTNODE_cmu_us_rms_f0_d_47_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_1532, 90.991699); #define CTNODE_cmu_us_rms_f0_d_47_NO_0017 21 DEF_STATIC_CONST_VAL_FLOAT(val_1533, 83.263702); #define CTNODE_cmu_us_rms_f0_d_47_NO_0016 22 DEF_STATIC_CONST_VAL_FLOAT(val_1534, 0.023000); DEF_STATIC_CONST_VAL_FLOAT(val_1535, 90.068199); #define CTNODE_cmu_us_rms_f0_d_47_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_1536, 95.166603); #define CTNODE_cmu_us_rms_f0_d_47_NO_0015 25 DEF_STATIC_CONST_VAL_FLOAT(val_1537, 0.392584); DEF_STATIC_CONST_VAL_FLOAT(val_1538, 80.638000); #define CTNODE_cmu_us_rms_f0_d_47_NO_0025 27 DEF_STATIC_CONST_VAL_FLOAT(val_1539, 85.948303); #define CTNODE_cmu_us_rms_f0_d_47_NO_0014 28 DEF_STATIC_CONST_VAL_FLOAT(val_1540, 82.322502); #define CTNODE_cmu_us_rms_f0_d_47_NO_0013 29 DEF_STATIC_CONST_VAL_FLOAT(val_1541, 95.753601); #define CTNODE_cmu_us_rms_f0_d_47_NO_0012 30 DEF_STATIC_CONST_VAL_FLOAT(val_1542, 3.555000); DEF_STATIC_CONST_VAL_FLOAT(val_1543, 78.869499); #define CTNODE_cmu_us_rms_f0_d_47_NO_0031 33 DEF_STATIC_CONST_VAL_FLOAT(val_1544, 72.591797); #define CTNODE_cmu_us_rms_f0_d_47_NO_0030 34 DEF_STATIC_CONST_VAL_FLOAT(val_1545, 85.571503); DEF_STATIC_CONST_VAL_FLOAT(val_1546, 106.707001); #define CTNODE_cmu_us_rms_f0_d_48_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_1547, 0.905837); DEF_STATIC_CONST_VAL_FLOAT(val_1548, 4.200000); DEF_STATIC_CONST_VAL_FLOAT(val_1549, 81.454803); #define CTNODE_cmu_us_rms_f0_d_48_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_1550, 86.674400); #define CTNODE_cmu_us_rms_f0_d_48_NO_0004 8 DEF_STATIC_CONST_VAL_FLOAT(val_1551, 97.608597); #define CTNODE_cmu_us_rms_f0_d_48_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_1552, 82.057198); #define CTNODE_cmu_us_rms_f0_d_48_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_1553, 0.226987); DEF_STATIC_CONST_VAL_FLOAT(val_1554, 97.657997); #define CTNODE_cmu_us_rms_f0_d_48_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_1555, 84.164497); #define CTNODE_cmu_us_rms_f0_d_48_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_1556, 89.757797); #define CTNODE_cmu_us_rms_f0_d_48_NO_0014 18 DEF_STATIC_CONST_VAL_FLOAT(val_1557, 97.525101); #define CTNODE_cmu_us_rms_f0_d_48_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_1558, 89.814499); #define CTNODE_cmu_us_rms_f0_d_48_NO_0003 21 DEF_STATIC_CONST_VAL_FLOAT(val_1559, 79.385201); #define CTNODE_cmu_us_rms_f0_d_48_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_1560, 74.341499); #define CTNODE_cmu_us_rms_f0_d_48_NO_0021 25 DEF_STATIC_CONST_VAL_FLOAT(val_1561, 84.211998); #define CTNODE_cmu_us_rms_f0_d_48_NO_0000 26 DEF_STATIC_CONST_VAL_FLOAT(val_1562, 85.062599); #define CTNODE_cmu_us_rms_f0_d_48_NO_0026 28 DEF_STATIC_CONST_VAL_FLOAT(val_1563, 111.216003); #define CTNODE_cmu_us_rms_f0_d_48_NO_0028 30 DEF_STATIC_CONST_VAL_FLOAT(val_1564, 0.490348); DEF_STATIC_CONST_VAL_FLOAT(val_1565, 0.198561); DEF_STATIC_CONST_VAL_FLOAT(val_1566, 109.308998); #define CTNODE_cmu_us_rms_f0_d_48_NO_0033 35 DEF_STATIC_CONST_VAL_FLOAT(val_1567, 100.723000); #define CTNODE_cmu_us_rms_f0_d_48_NO_0032 36 DEF_STATIC_CONST_VAL_FLOAT(val_1568, 112.452003); #define CTNODE_cmu_us_rms_f0_d_48_NO_0031 37 DEF_STATIC_CONST_VAL_FLOAT(val_1569, 95.086197); #define CTNODE_cmu_us_rms_f0_d_48_NO_0038 40 DEF_STATIC_CONST_VAL_FLOAT(val_1570, 99.334396); #define CTNODE_cmu_us_rms_f0_d_48_NO_0037 41 DEF_STATIC_CONST_VAL_FLOAT(val_1571, 107.122002); #define CTNODE_cmu_us_rms_f0_d_48_NO_0041 43 DEF_STATIC_CONST_VAL_FLOAT(val_1572, 99.284103); #define CTNODE_cmu_us_rms_f0_d_48_NO_0030 44 DEF_STATIC_CONST_VAL_FLOAT(val_1573, 0.024500); DEF_STATIC_CONST_VAL_FLOAT(val_1574, 0.047500); DEF_STATIC_CONST_VAL_FLOAT(val_1575, 0.828093); DEF_STATIC_CONST_VAL_FLOAT(val_1576, 94.163101); #define CTNODE_cmu_us_rms_f0_d_48_NO_0047 49 DEF_STATIC_CONST_VAL_FLOAT(val_1577, 88.876503); #define CTNODE_cmu_us_rms_f0_d_48_NO_0046 50 DEF_STATIC_CONST_VAL_FLOAT(val_1578, 85.409698); #define CTNODE_cmu_us_rms_f0_d_48_NO_0045 51 DEF_STATIC_CONST_VAL_FLOAT(val_1579, 97.482903); #define CTNODE_cmu_us_rms_f0_d_48_NO_0044 52 DEF_STATIC_CONST_VAL_FLOAT(val_1580, 92.054703); #define CTNODE_cmu_us_rms_f0_d_48_NO_0052 54 DEF_STATIC_CONST_VAL_FLOAT(val_1581, 99.199501); DEF_STATIC_CONST_VAL_FLOAT(val_1582, 0.398911); DEF_STATIC_CONST_VAL_FLOAT(val_1583, 0.160169); DEF_STATIC_CONST_VAL_FLOAT(val_1584, 114.647003); #define CTNODE_cmu_us_rms_f0_n_116_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_1585, 102.497002); #define CTNODE_cmu_us_rms_f0_n_116_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_1586, 106.967003); #define CTNODE_cmu_us_rms_f0_n_116_NO_0005 9 DEF_STATIC_CONST_VAL_FLOAT(val_1587, 100.311996); #define CTNODE_cmu_us_rms_f0_n_116_NO_0002 10 DEF_STATIC_CONST_VAL_FLOAT(val_1588, 0.122573); DEF_STATIC_CONST_VAL_FLOAT(val_1589, 123.084999); #define CTNODE_cmu_us_rms_f0_n_116_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_1590, 116.425003); #define CTNODE_cmu_us_rms_f0_n_116_NO_0010 14 DEF_STATIC_CONST_VAL_FLOAT(val_1591, 112.278000); #define CTNODE_cmu_us_rms_f0_n_116_NO_0001 15 DEF_STATIC_CONST_VAL_FLOAT(val_1592, 94.602898); #define CTNODE_cmu_us_rms_f0_n_116_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_1593, 100.348000); #define CTNODE_cmu_us_rms_f0_n_116_NO_0017 21 DEF_STATIC_CONST_VAL_FLOAT(val_1594, 0.025000); DEF_STATIC_CONST_VAL_FLOAT(val_1595, 0.231938); DEF_STATIC_CONST_VAL_FLOAT(val_1596, 117.445000); #define CTNODE_cmu_us_rms_f0_n_116_NO_0023 25 DEF_STATIC_CONST_VAL_FLOAT(val_1597, 110.758003); #define CTNODE_cmu_us_rms_f0_n_116_NO_0022 26 DEF_STATIC_CONST_VAL_FLOAT(val_1598, 0.332167); DEF_STATIC_CONST_VAL_FLOAT(val_1599, 103.699997); #define CTNODE_cmu_us_rms_f0_n_116_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_1600, 109.226997); #define CTNODE_cmu_us_rms_f0_n_116_NO_0026 30 DEF_STATIC_CONST_VAL_FLOAT(val_1601, 102.575996); #define CTNODE_cmu_us_rms_f0_n_116_NO_0021 31 DEF_STATIC_CONST_VAL_FLOAT(val_1602, 99.723503); #define CTNODE_cmu_us_rms_f0_n_116_NO_0016 32 DEF_STATIC_CONST_VAL_STRING(val_1603, "ae_8"); DEF_STATIC_CONST_VAL_FLOAT(val_1604, 92.701500); #define CTNODE_cmu_us_rms_f0_n_116_NO_0032 34 DEF_STATIC_CONST_VAL_FLOAT(val_1605, 97.921501); #define CTNODE_cmu_us_rms_f0_n_116_NO_0015 35 DEF_STATIC_CONST_VAL_FLOAT(val_1606, 92.188797); #define CTNODE_cmu_us_rms_f0_n_116_NO_0000 36 DEF_STATIC_CONST_VAL_FLOAT(val_1607, 0.922117); DEF_STATIC_CONST_VAL_FLOAT(val_1608, 97.146797); #define CTNODE_cmu_us_rms_f0_n_116_NO_0040 42 DEF_STATIC_CONST_VAL_FLOAT(val_1609, 86.515800); #define CTNODE_cmu_us_rms_f0_n_116_NO_0042 44 DEF_STATIC_CONST_VAL_FLOAT(val_1610, 92.156097); #define CTNODE_cmu_us_rms_f0_n_116_NO_0039 45 DEF_STATIC_CONST_VAL_FLOAT(val_1611, 0.018000); DEF_STATIC_CONST_VAL_FLOAT(val_1612, 94.405800); #define CTNODE_cmu_us_rms_f0_n_116_NO_0045 47 DEF_STATIC_CONST_VAL_FLOAT(val_1613, 0.011500); DEF_STATIC_CONST_VAL_FLOAT(val_1614, 95.923599); #define CTNODE_cmu_us_rms_f0_n_116_NO_0050 52 DEF_STATIC_CONST_VAL_FLOAT(val_1615, 101.547997); #define CTNODE_cmu_us_rms_f0_n_116_NO_0049 53 DEF_STATIC_CONST_VAL_FLOAT(val_1616, 103.533997); #define CTNODE_cmu_us_rms_f0_n_116_NO_0048 54 DEF_STATIC_CONST_VAL_FLOAT(val_1617, 99.724899); #define CTNODE_cmu_us_rms_f0_n_116_NO_0054 56 DEF_STATIC_CONST_VAL_FLOAT(val_1618, 92.369499); #define CTNODE_cmu_us_rms_f0_n_116_NO_0047 57 DEF_STATIC_CONST_VAL_FLOAT(val_1619, 106.026001); #define CTNODE_cmu_us_rms_f0_n_116_NO_0057 59 DEF_STATIC_CONST_VAL_FLOAT(val_1620, 97.615898); #define CTNODE_cmu_us_rms_f0_n_116_NO_0059 61 DEF_STATIC_CONST_VAL_FLOAT(val_1621, 102.558998); #define CTNODE_cmu_us_rms_f0_n_116_NO_0038 62 DEF_STATIC_CONST_VAL_FLOAT(val_1622, 84.709198); #define CTNODE_cmu_us_rms_f0_n_116_NO_0037 63 DEF_STATIC_CONST_VAL_FLOAT(val_1623, 0.706481); DEF_STATIC_CONST_VAL_FLOAT(val_1624, 0.554751); DEF_STATIC_CONST_VAL_FLOAT(val_1625, 87.254601); #define CTNODE_cmu_us_rms_f0_n_116_NO_0065 67 DEF_STATIC_CONST_VAL_FLOAT(val_1626, 87.653702); #define CTNODE_cmu_us_rms_f0_n_116_NO_0064 68 DEF_STATIC_CONST_VAL_FLOAT(val_1627, 85.266098); #define CTNODE_cmu_us_rms_f0_n_116_NO_0063 69 DEF_STATIC_CONST_VAL_FLOAT(val_1628, 0.719369); DEF_STATIC_CONST_VAL_FLOAT(val_1629, 93.846298); #define CTNODE_cmu_us_rms_f0_n_116_NO_0069 71 DEF_STATIC_CONST_VAL_FLOAT(val_1630, 90.203300); #define CTNODE_cmu_us_rms_f0_n_116_NO_0036 72 DEF_STATIC_CONST_VAL_FLOAT(val_1631, 82.626404); #define CTNODE_cmu_us_rms_f0_n_116_NO_0072 74 DEF_STATIC_CONST_VAL_FLOAT(val_1632, 0.092000); DEF_STATIC_CONST_VAL_FLOAT(val_1633, 0.069000); DEF_STATIC_CONST_VAL_FLOAT(val_1634, 92.241203); #define CTNODE_cmu_us_rms_f0_n_116_NO_0075 77 DEF_STATIC_CONST_VAL_FLOAT(val_1635, 83.378601); #define CTNODE_cmu_us_rms_f0_n_116_NO_0074 78 DEF_STATIC_CONST_VAL_FLOAT(val_1636, 93.100899); DEF_STATIC_CONST_VAL_FLOAT(val_1637, 0.395921); DEF_STATIC_CONST_VAL_FLOAT(val_1638, 0.717000); DEF_STATIC_CONST_VAL_FLOAT(val_1639, 0.038000); DEF_STATIC_CONST_VAL_FLOAT(val_1640, 101.434998); #define CTNODE_cmu_us_rms_f0_n_117_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_1641, 112.568001); #define CTNODE_cmu_us_rms_f0_n_117_NO_0003 7 DEF_STATIC_CONST_VAL_FLOAT(val_1642, 94.556297); #define CTNODE_cmu_us_rms_f0_n_117_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_1643, 99.622597); #define CTNODE_cmu_us_rms_f0_n_117_NO_0007 11 DEF_STATIC_CONST_VAL_FLOAT(val_1644, 97.912903); #define CTNODE_cmu_us_rms_f0_n_117_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_1645, 0.491774); DEF_STATIC_CONST_VAL_FLOAT(val_1646, 106.283997); #define CTNODE_cmu_us_rms_f0_n_117_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_1647, 101.056000); #define CTNODE_cmu_us_rms_f0_n_117_NO_0002 16 DEF_STATIC_CONST_VAL_FLOAT(val_1648, 100.780998); #define CTNODE_cmu_us_rms_f0_n_117_NO_0016 18 DEF_STATIC_CONST_VAL_FLOAT(val_1649, 0.038000); DEF_STATIC_CONST_VAL_FLOAT(val_1650, 94.362396); #define CTNODE_cmu_us_rms_f0_n_117_NO_0019 21 DEF_STATIC_CONST_VAL_FLOAT(val_1651, 100.582001); #define CTNODE_cmu_us_rms_f0_n_117_NO_0018 22 DEF_STATIC_CONST_VAL_FLOAT(val_1652, 8.200000); DEF_STATIC_CONST_VAL_FLOAT(val_1653, 95.416100); #define CTNODE_cmu_us_rms_f0_n_117_NO_0023 25 DEF_STATIC_CONST_VAL_FLOAT(val_1654, 90.976898); #define CTNODE_cmu_us_rms_f0_n_117_NO_0022 26 DEF_STATIC_CONST_VAL_FLOAT(val_1655, 89.384102); #define CTNODE_cmu_us_rms_f0_n_117_NO_0001 27 DEF_STATIC_CONST_VAL_FLOAT(val_1656, 0.616257); DEF_STATIC_CONST_VAL_FLOAT(val_1657, 97.744499); #define CTNODE_cmu_us_rms_f0_n_117_NO_0028 30 DEF_STATIC_CONST_VAL_FLOAT(val_1658, 88.710701); #define CTNODE_cmu_us_rms_f0_n_117_NO_0030 32 DEF_STATIC_CONST_VAL_FLOAT(val_1659, 94.191200); #define CTNODE_cmu_us_rms_f0_n_117_NO_0027 33 DEF_STATIC_CONST_VAL_FLOAT(val_1660, 3.630000); DEF_STATIC_CONST_VAL_FLOAT(val_1661, 2.367500); DEF_STATIC_CONST_VAL_FLOAT(val_1662, 86.128403); #define CTNODE_cmu_us_rms_f0_n_117_NO_0035 37 DEF_STATIC_CONST_VAL_FLOAT(val_1663, 83.797997); #define CTNODE_cmu_us_rms_f0_n_117_NO_0034 38 DEF_STATIC_CONST_VAL_FLOAT(val_1664, 90.333504); #define CTNODE_cmu_us_rms_f0_n_117_NO_0040 42 DEF_STATIC_CONST_VAL_FLOAT(val_1665, 86.448799); #define CTNODE_cmu_us_rms_f0_n_117_NO_0039 43 DEF_STATIC_CONST_VAL_FLOAT(val_1666, 81.647301); #define CTNODE_cmu_us_rms_f0_n_117_NO_0038 44 DEF_STATIC_CONST_VAL_FLOAT(val_1667, 0.571179); DEF_STATIC_CONST_VAL_FLOAT(val_1668, 89.730103); #define CTNODE_cmu_us_rms_f0_n_117_NO_0046 48 DEF_STATIC_CONST_VAL_FLOAT(val_1669, 95.114197); #define CTNODE_cmu_us_rms_f0_n_117_NO_0045 49 DEF_STATIC_CONST_VAL_FLOAT(val_1670, 2.500000); DEF_STATIC_CONST_VAL_FLOAT(val_1671, 90.356499); #define CTNODE_cmu_us_rms_f0_n_117_NO_0050 52 DEF_STATIC_CONST_VAL_FLOAT(val_1672, 92.252502); #define CTNODE_cmu_us_rms_f0_n_117_NO_0049 53 DEF_STATIC_CONST_VAL_FLOAT(val_1673, 90.758400); #define CTNODE_cmu_us_rms_f0_n_117_NO_0053 55 DEF_STATIC_CONST_VAL_FLOAT(val_1674, 88.693298); #define CTNODE_cmu_us_rms_f0_n_117_NO_0055 57 DEF_STATIC_CONST_VAL_FLOAT(val_1675, 84.302200); #define CTNODE_cmu_us_rms_f0_n_117_NO_0044 58 DEF_STATIC_CONST_VAL_FLOAT(val_1676, 92.037003); #define CTNODE_cmu_us_rms_f0_n_117_NO_0059 61 DEF_STATIC_CONST_VAL_FLOAT(val_1677, 85.260803); #define CTNODE_cmu_us_rms_f0_n_117_NO_0058 62 DEF_STATIC_CONST_VAL_FLOAT(val_1678, 94.696198); #define CTNODE_cmu_us_rms_f0_n_117_NO_0063 65 DEF_STATIC_CONST_VAL_FLOAT(val_1679, 91.349297); #define CTNODE_cmu_us_rms_f0_n_117_NO_0062 66 DEF_STATIC_CONST_VAL_FLOAT(val_1680, 98.645302); #define CTNODE_cmu_us_rms_f0_n_117_NO_0033 67 DEF_STATIC_CONST_VAL_FLOAT(val_1681, 0.914189); DEF_STATIC_CONST_VAL_FLOAT(val_1682, 85.442802); #define CTNODE_cmu_us_rms_f0_n_117_NO_0067 69 DEF_STATIC_CONST_VAL_FLOAT(val_1683, 80.947800); #define CTNODE_cmu_us_rms_f0_n_117_NO_0000 70 DEF_STATIC_CONST_VAL_FLOAT(val_1684, 1.775500); DEF_STATIC_CONST_VAL_FLOAT(val_1685, 0.067000); DEF_STATIC_CONST_VAL_FLOAT(val_1686, 93.103699); #define CTNODE_cmu_us_rms_f0_n_117_NO_0071 73 DEF_STATIC_CONST_VAL_FLOAT(val_1687, 0.014000); DEF_STATIC_CONST_VAL_FLOAT(val_1688, 81.082001); #define CTNODE_cmu_us_rms_f0_n_117_NO_0073 75 DEF_STATIC_CONST_VAL_FLOAT(val_1689, 88.008400); #define CTNODE_cmu_us_rms_f0_n_117_NO_0075 77 DEF_STATIC_CONST_VAL_FLOAT(val_1690, 85.099899); #define CTNODE_cmu_us_rms_f0_n_117_NO_0070 78 DEF_STATIC_CONST_VAL_FLOAT(val_1691, 72.992104); #define CTNODE_cmu_us_rms_f0_n_117_NO_0078 80 DEF_STATIC_CONST_VAL_FLOAT(val_1692, 7.400000); DEF_STATIC_CONST_VAL_FLOAT(val_1693, 2.836000); DEF_STATIC_CONST_VAL_FLOAT(val_1694, 77.954201); #define CTNODE_cmu_us_rms_f0_n_117_NO_0082 84 DEF_STATIC_CONST_VAL_FLOAT(val_1695, 84.172600); #define CTNODE_cmu_us_rms_f0_n_117_NO_0081 85 DEF_STATIC_CONST_VAL_FLOAT(val_1696, 3.836000); DEF_STATIC_CONST_VAL_FLOAT(val_1697, 90.504997); #define CTNODE_cmu_us_rms_f0_n_117_NO_0086 88 DEF_STATIC_CONST_VAL_FLOAT(val_1698, 85.961899); #define CTNODE_cmu_us_rms_f0_n_117_NO_0085 89 DEF_STATIC_CONST_VAL_FLOAT(val_1699, 83.528397); #define CTNODE_cmu_us_rms_f0_n_117_NO_0080 90 DEF_STATIC_CONST_VAL_FLOAT(val_1700, 83.545097); #define CTNODE_cmu_us_rms_f0_n_117_NO_0090 92 DEF_STATIC_CONST_VAL_FLOAT(val_1701, 0.017000); DEF_STATIC_CONST_VAL_FLOAT(val_1702, 78.270699); #define CTNODE_cmu_us_rms_f0_n_117_NO_0094 96 DEF_STATIC_CONST_VAL_FLOAT(val_1703, 82.764603); #define CTNODE_cmu_us_rms_f0_n_117_NO_0093 97 DEF_STATIC_CONST_VAL_FLOAT(val_1704, 76.175301); #define CTNODE_cmu_us_rms_f0_n_117_NO_0092 98 DEF_STATIC_CONST_VAL_FLOAT(val_1705, 73.613403); DEF_STATIC_CONST_VAL_FLOAT(val_1706, 0.403789); DEF_STATIC_CONST_VAL_FLOAT(val_1707, 0.244790); DEF_STATIC_CONST_VAL_FLOAT(val_1708, 104.913002); #define CTNODE_cmu_us_rms_f0_n_118_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_1709, 99.057297); #define CTNODE_cmu_us_rms_f0_n_118_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_1710, 90.376801); #define CTNODE_cmu_us_rms_f0_n_118_NO_0002 8 DEF_STATIC_CONST_VAL_FLOAT(val_1711, 0.016000); DEF_STATIC_CONST_VAL_FLOAT(val_1712, 113.112000); #define CTNODE_cmu_us_rms_f0_n_118_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_1713, 101.841003); #define CTNODE_cmu_us_rms_f0_n_118_NO_0001 11 DEF_STATIC_CONST_VAL_FLOAT(val_1714, 93.899803); #define CTNODE_cmu_us_rms_f0_n_118_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_1715, 87.316200); #define CTNODE_cmu_us_rms_f0_n_118_NO_0014 16 DEF_STATIC_CONST_VAL_FLOAT(val_1716, 91.424400); #define CTNODE_cmu_us_rms_f0_n_118_NO_0011 17 DEF_STATIC_CONST_VAL_FLOAT(val_1717, 102.254997); #define CTNODE_cmu_us_rms_f0_n_118_NO_0000 18 DEF_STATIC_CONST_VAL_FLOAT(val_1718, 0.940383); DEF_STATIC_CONST_VAL_FLOAT(val_1719, 0.779165); DEF_STATIC_CONST_VAL_FLOAT(val_1720, 94.237396); #define CTNODE_cmu_us_rms_f0_n_118_NO_0021 23 DEF_STATIC_CONST_VAL_FLOAT(val_1721, 97.926804); #define CTNODE_cmu_us_rms_f0_n_118_NO_0020 24 DEF_STATIC_CONST_VAL_FLOAT(val_1722, 88.061501); #define CTNODE_cmu_us_rms_f0_n_118_NO_0019 25 DEF_STATIC_CONST_VAL_FLOAT(val_1723, 7.600000); DEF_STATIC_CONST_VAL_FLOAT(val_1724, 77.732101); #define CTNODE_cmu_us_rms_f0_n_118_NO_0026 28 DEF_STATIC_CONST_VAL_FLOAT(val_1725, 88.400002); #define CTNODE_cmu_us_rms_f0_n_118_NO_0029 31 DEF_STATIC_CONST_VAL_FLOAT(val_1726, 92.537697); #define CTNODE_cmu_us_rms_f0_n_118_NO_0028 32 DEF_STATIC_CONST_VAL_STRING(val_1727, "ax"); DEF_STATIC_CONST_VAL_FLOAT(val_1728, 0.726237); DEF_STATIC_CONST_VAL_FLOAT(val_1729, 85.017502); #define CTNODE_cmu_us_rms_f0_n_118_NO_0033 35 DEF_STATIC_CONST_VAL_FLOAT(val_1730, 80.515099); #define CTNODE_cmu_us_rms_f0_n_118_NO_0032 36 DEF_STATIC_CONST_VAL_FLOAT(val_1731, 92.597504); #define CTNODE_cmu_us_rms_f0_n_118_NO_0037 39 DEF_STATIC_CONST_VAL_FLOAT(val_1732, 86.965401); #define CTNODE_cmu_us_rms_f0_n_118_NO_0036 40 DEF_STATIC_CONST_VAL_FLOAT(val_1733, 0.663146); DEF_STATIC_CONST_VAL_FLOAT(val_1734, 84.424896); #define CTNODE_cmu_us_rms_f0_n_118_NO_0041 43 DEF_STATIC_CONST_VAL_FLOAT(val_1735, 82.241699); #define CTNODE_cmu_us_rms_f0_n_118_NO_0040 44 DEF_STATIC_CONST_VAL_FLOAT(val_1736, 86.905998); #define CTNODE_cmu_us_rms_f0_n_118_NO_0025 45 DEF_STATIC_CONST_VAL_FLOAT(val_1737, 94.324097); #define CTNODE_cmu_us_rms_f0_n_118_NO_0018 46 DEF_STATIC_CONST_VAL_FLOAT(val_1738, 0.059000); DEF_STATIC_CONST_VAL_FLOAT(val_1739, 0.976176); DEF_STATIC_CONST_VAL_FLOAT(val_1740, 78.452202); #define CTNODE_cmu_us_rms_f0_n_118_NO_0047 49 DEF_STATIC_CONST_VAL_FLOAT(val_1741, 74.984100); #define CTNODE_cmu_us_rms_f0_n_118_NO_0046 50 DEF_STATIC_CONST_VAL_FLOAT(val_1742, 81.316299); #define CTNODE_cmu_us_rms_f0_n_118_NO_0050 52 DEF_STATIC_CONST_VAL_FLOAT(val_1743, 87.994904); DEF_STATIC_CONST_VAL_FLOAT(val_1744, 0.480306); DEF_STATIC_CONST_VAL_FLOAT(val_1745, 98.030602); #define CTNODE_cmu_us_rms_f0_jh_96_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_1746, 93.850403); #define CTNODE_cmu_us_rms_f0_jh_96_NO_0001 5 DEF_STATIC_CONST_VAL_FLOAT(val_1747, 93.315804); #define CTNODE_cmu_us_rms_f0_jh_96_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_1748, 89.267197); #define CTNODE_cmu_us_rms_f0_jh_96_NO_0007 9 DEF_STATIC_CONST_VAL_FLOAT(val_1749, 85.468399); #define CTNODE_cmu_us_rms_f0_jh_96_NO_0000 10 DEF_STATIC_CONST_VAL_FLOAT(val_1750, 79.647102); DEF_STATIC_CONST_VAL_FLOAT(val_1751, 0.484907); DEF_STATIC_CONST_VAL_FLOAT(val_1752, 100.928001); #define CTNODE_cmu_us_rms_f0_jh_97_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_1753, 110.700996); #define CTNODE_cmu_us_rms_f0_jh_97_NO_0002 6 DEF_STATIC_CONST_VAL_FLOAT(val_1754, 2.400000); DEF_STATIC_CONST_VAL_FLOAT(val_1755, 94.704597); #define CTNODE_cmu_us_rms_f0_jh_97_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_1756, 100.297997); #define CTNODE_cmu_us_rms_f0_jh_97_NO_0001 9 DEF_STATIC_CONST_VAL_FLOAT(val_1757, 2.019000); DEF_STATIC_CONST_VAL_FLOAT(val_1758, 108.671997); #define CTNODE_cmu_us_rms_f0_jh_97_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_1759, 119.745003); #define CTNODE_cmu_us_rms_f0_jh_97_NO_0009 13 DEF_STATIC_CONST_VAL_FLOAT(val_1760, 106.174004); #define CTNODE_cmu_us_rms_f0_jh_97_NO_0000 14 DEF_STATIC_CONST_VAL_FLOAT(val_1761, 84.789803); DEF_STATIC_CONST_VAL_FLOAT(val_1762, 0.901423); DEF_STATIC_CONST_VAL_FLOAT(val_1763, 0.030000); DEF_STATIC_CONST_VAL_FLOAT(val_1764, 112.950996); #define CTNODE_cmu_us_rms_f0_jh_98_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_1765, 0.457663); DEF_STATIC_CONST_VAL_FLOAT(val_1766, 0.070000); DEF_STATIC_CONST_VAL_FLOAT(val_1767, 110.487000); #define CTNODE_cmu_us_rms_f0_jh_98_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_1768, 102.849998); #define CTNODE_cmu_us_rms_f0_jh_98_NO_0003 7 DEF_STATIC_CONST_VAL_FLOAT(val_1769, 95.809097); #define CTNODE_cmu_us_rms_f0_jh_98_NO_0007 9 DEF_STATIC_CONST_VAL_FLOAT(val_1770, 102.027000); #define CTNODE_cmu_us_rms_f0_jh_98_NO_0000 10 DEF_STATIC_CONST_VAL_FLOAT(val_1771, 81.902397); DEF_STATIC_CONST_VAL_FLOAT(val_1772, 111.226997); #define CTNODE_cmu_us_rms_f0_r_146_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_1773, 106.152000); #define CTNODE_cmu_us_rms_f0_r_146_NO_0001 5 DEF_STATIC_CONST_VAL_FLOAT(val_1774, 0.063500); DEF_STATIC_CONST_VAL_FLOAT(val_1775, 88.736504); #define CTNODE_cmu_us_rms_f0_r_146_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_1776, 0.328766); #define CTNODE_cmu_us_rms_f0_r_146_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_1777, 111.195999); #define CTNODE_cmu_us_rms_f0_r_146_NO_0009 13 DEF_STATIC_CONST_VAL_FLOAT(val_1778, 0.643002); DEF_STATIC_CONST_VAL_FLOAT(val_1779, 98.871498); #define CTNODE_cmu_us_rms_f0_r_146_NO_0014 16 DEF_STATIC_CONST_VAL_FLOAT(val_1780, 102.945999); #define CTNODE_cmu_us_rms_f0_r_146_NO_0013 17 DEF_STATIC_CONST_VAL_FLOAT(val_1781, 93.463600); #define CTNODE_cmu_us_rms_f0_r_146_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_1782, 0.043500); DEF_STATIC_CONST_VAL_FLOAT(val_1783, 96.019402); #define CTNODE_cmu_us_rms_f0_r_146_NO_0019 21 DEF_STATIC_CONST_VAL_FLOAT(val_1784, 100.154999); #define CTNODE_cmu_us_rms_f0_r_146_NO_0008 22 DEF_STATIC_CONST_VAL_FLOAT(val_1785, 0.025000); DEF_STATIC_CONST_VAL_FLOAT(val_1786, 90.970299); #define CTNODE_cmu_us_rms_f0_r_146_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_1787, 94.965797); #define CTNODE_cmu_us_rms_f0_r_146_NO_0005 25 DEF_STATIC_CONST_VAL_FLOAT(val_1788, 0.308548); DEF_STATIC_CONST_VAL_FLOAT(val_1789, 92.866302); #define CTNODE_cmu_us_rms_f0_r_146_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_1790, 96.886398); #define CTNODE_cmu_us_rms_f0_r_146_NO_0026 30 DEF_STATIC_CONST_VAL_FLOAT(val_1791, 105.985001); #define CTNODE_cmu_us_rms_f0_r_146_NO_0025 31 DEF_STATIC_CONST_VAL_FLOAT(val_1792, 0.751849); DEF_STATIC_CONST_VAL_FLOAT(val_1793, 0.105500); DEF_STATIC_CONST_VAL_FLOAT(val_1794, 91.572998); #define CTNODE_cmu_us_rms_f0_r_146_NO_0033 35 DEF_STATIC_CONST_VAL_FLOAT(val_1795, 103.286003); #define CTNODE_cmu_us_rms_f0_r_146_NO_0032 36 DEF_STATIC_CONST_VAL_FLOAT(val_1796, 89.805603); #define CTNODE_cmu_us_rms_f0_r_146_NO_0031 37 DEF_STATIC_CONST_VAL_FLOAT(val_1797, 94.604797); #define CTNODE_cmu_us_rms_f0_r_146_NO_0037 39 DEF_STATIC_CONST_VAL_FLOAT(val_1798, 83.519699); #define CTNODE_cmu_us_rms_f0_r_146_NO_0039 41 DEF_STATIC_CONST_VAL_FLOAT(val_1799, 0.635343); DEF_STATIC_CONST_VAL_FLOAT(val_1800, 93.649803); #define CTNODE_cmu_us_rms_f0_r_146_NO_0043 45 DEF_STATIC_CONST_VAL_FLOAT(val_1801, 91.982697); #define CTNODE_cmu_us_rms_f0_r_146_NO_0045 47 DEF_STATIC_CONST_VAL_FLOAT(val_1802, 86.714996); #define CTNODE_cmu_us_rms_f0_r_146_NO_0042 48 DEF_STATIC_CONST_VAL_FLOAT(val_1803, 96.986000); #define CTNODE_cmu_us_rms_f0_r_146_NO_0041 49 DEF_STATIC_CONST_VAL_FLOAT(val_1804, 0.794494); DEF_STATIC_CONST_VAL_FLOAT(val_1805, 88.741699); #define CTNODE_cmu_us_rms_f0_r_146_NO_0050 52 DEF_STATIC_CONST_VAL_FLOAT(val_1806, 84.869598); #define CTNODE_cmu_us_rms_f0_r_146_NO_0049 53 DEF_STATIC_CONST_VAL_FLOAT(val_1807, 88.051102); #define CTNODE_cmu_us_rms_f0_r_146_NO_0053 55 DEF_STATIC_CONST_VAL_FLOAT(val_1808, 90.219200); #define CTNODE_cmu_us_rms_f0_r_146_NO_0000 56 DEF_STATIC_CONST_VAL_FLOAT(val_1809, 0.568821); DEF_STATIC_CONST_VAL_STRING(val_1810, "g_78"); DEF_STATIC_CONST_VAL_FLOAT(val_1811, 105.275002); #define CTNODE_cmu_us_rms_f0_r_146_NO_0058 60 DEF_STATIC_CONST_VAL_FLOAT(val_1812, 100.059998); #define CTNODE_cmu_us_rms_f0_r_146_NO_0057 61 DEF_STATIC_CONST_VAL_FLOAT(val_1813, 0.176471); DEF_STATIC_CONST_VAL_FLOAT(val_1814, 98.096001); #define CTNODE_cmu_us_rms_f0_r_146_NO_0061 63 DEF_STATIC_CONST_VAL_FLOAT(val_1815, 90.107697); #define CTNODE_cmu_us_rms_f0_r_146_NO_0056 64 DEF_STATIC_CONST_VAL_FLOAT(val_1816, 0.275000); DEF_STATIC_CONST_VAL_FLOAT(val_1817, 127.059998); #define CTNODE_cmu_us_rms_f0_r_146_NO_0065 67 DEF_STATIC_CONST_VAL_FLOAT(val_1818, 0.466327); DEF_STATIC_CONST_VAL_FLOAT(val_1819, 123.504997); #define CTNODE_cmu_us_rms_f0_r_146_NO_0067 69 DEF_STATIC_CONST_VAL_FLOAT(val_1820, 111.230003); #define CTNODE_cmu_us_rms_f0_r_146_NO_0069 71 DEF_STATIC_CONST_VAL_FLOAT(val_1821, 116.568001); #define CTNODE_cmu_us_rms_f0_r_146_NO_0064 72 DEF_STATIC_CONST_VAL_FLOAT(val_1822, 0.062500); DEF_STATIC_CONST_VAL_FLOAT(val_1823, 112.834999); #define CTNODE_cmu_us_rms_f0_r_146_NO_0072 74 DEF_STATIC_CONST_VAL_FLOAT(val_1824, 98.093201); DEF_STATIC_CONST_VAL_FLOAT(val_1825, 0.704500); DEF_STATIC_CONST_VAL_FLOAT(val_1826, 121.446999); #define CTNODE_cmu_us_rms_f0_r_147_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_1827, 114.815002); #define CTNODE_cmu_us_rms_f0_r_147_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_1828, 0.456000); DEF_STATIC_CONST_VAL_FLOAT(val_1829, 105.793999); #define CTNODE_cmu_us_rms_f0_r_147_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_1830, 112.223000); #define CTNODE_cmu_us_rms_f0_r_147_NO_0005 9 DEF_STATIC_CONST_VAL_FLOAT(val_1831, 102.725998); #define CTNODE_cmu_us_rms_f0_r_147_NO_0000 10 DEF_STATIC_CONST_VAL_FLOAT(val_1832, 79.872498); #define CTNODE_cmu_us_rms_f0_r_147_NO_0012 14 DEF_STATIC_CONST_VAL_STRING(val_1833, "aa"); DEF_STATIC_CONST_VAL_FLOAT(val_1834, 80.884697); #define CTNODE_cmu_us_rms_f0_r_147_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_1835, 88.430496); #define CTNODE_cmu_us_rms_f0_r_147_NO_0014 18 DEF_STATIC_CONST_VAL_FLOAT(val_1836, 13.300000); DEF_STATIC_CONST_VAL_FLOAT(val_1837, 99.023003); #define CTNODE_cmu_us_rms_f0_r_147_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_1838, 89.223701); #define CTNODE_cmu_us_rms_f0_r_147_NO_0011 21 DEF_STATIC_CONST_VAL_FLOAT(val_1839, 99.241600); #define CTNODE_cmu_us_rms_f0_r_147_NO_0024 26 DEF_STATIC_CONST_VAL_FLOAT(val_1840, 94.009499); #define CTNODE_cmu_us_rms_f0_r_147_NO_0023 27 DEF_STATIC_CONST_VAL_FLOAT(val_1841, 101.903999); #define CTNODE_cmu_us_rms_f0_r_147_NO_0022 28 DEF_STATIC_CONST_VAL_FLOAT(val_1842, 0.105000); DEF_STATIC_CONST_VAL_FLOAT(val_1843, 92.563004); #define CTNODE_cmu_us_rms_f0_r_147_NO_0030 32 DEF_STATIC_CONST_VAL_FLOAT(val_1844, 87.288101); #define CTNODE_cmu_us_rms_f0_r_147_NO_0029 33 DEF_STATIC_CONST_VAL_FLOAT(val_1845, 96.328102); #define CTNODE_cmu_us_rms_f0_r_147_NO_0028 34 DEF_STATIC_CONST_VAL_FLOAT(val_1846, 85.235397); #define CTNODE_cmu_us_rms_f0_r_147_NO_0021 35 #define CTNODE_cmu_us_rms_f0_r_147_NO_0035 37 DEF_STATIC_CONST_VAL_FLOAT(val_1847, 1.542000); DEF_STATIC_CONST_VAL_FLOAT(val_1848, 105.794998); #define CTNODE_cmu_us_rms_f0_r_147_NO_0039 41 DEF_STATIC_CONST_VAL_FLOAT(val_1849, 100.781998); #define CTNODE_cmu_us_rms_f0_r_147_NO_0038 42 DEF_STATIC_CONST_VAL_FLOAT(val_1850, 98.051003); #define CTNODE_cmu_us_rms_f0_r_147_NO_0037 43 DEF_STATIC_CONST_VAL_FLOAT(val_1851, 97.345200); #define CTNODE_cmu_us_rms_f0_r_147_NO_0045 47 DEF_STATIC_CONST_VAL_FLOAT(val_1852, 93.768303); #define CTNODE_cmu_us_rms_f0_r_147_NO_0044 48 DEF_STATIC_CONST_VAL_FLOAT(val_1853, 87.305603); #define CTNODE_cmu_us_rms_f0_r_147_NO_0043 49 DEF_STATIC_CONST_VAL_FLOAT(val_1854, 100.130997); #define CTNODE_cmu_us_rms_f0_r_147_NO_0010 50 DEF_STATIC_CONST_VAL_FLOAT(val_1855, 0.458049); DEF_STATIC_CONST_VAL_FLOAT(val_1856, 102.397003); #define CTNODE_cmu_us_rms_f0_r_147_NO_0051 53 DEF_STATIC_CONST_VAL_FLOAT(val_1857, 0.749621); DEF_STATIC_CONST_VAL_FLOAT(val_1858, 96.100998); #define CTNODE_cmu_us_rms_f0_r_147_NO_0053 55 DEF_STATIC_CONST_VAL_FLOAT(val_1859, 92.047501); #define CTNODE_cmu_us_rms_f0_r_147_NO_0050 56 DEF_STATIC_CONST_VAL_FLOAT(val_1860, 0.547672); DEF_STATIC_CONST_VAL_FLOAT(val_1861, 0.417949); DEF_STATIC_CONST_VAL_FLOAT(val_1862, 120.387001); #define CTNODE_cmu_us_rms_f0_r_147_NO_0057 59 DEF_STATIC_CONST_VAL_FLOAT(val_1863, 111.828003); #define CTNODE_cmu_us_rms_f0_r_147_NO_0056 60 DEF_STATIC_CONST_VAL_FLOAT(val_1864, 0.399668); DEF_STATIC_CONST_VAL_FLOAT(val_1865, 112.032997); #define CTNODE_cmu_us_rms_f0_r_147_NO_0060 62 DEF_STATIC_CONST_VAL_FLOAT(val_1866, 103.730003); #define CTNODE_cmu_us_rms_f0_r_147_NO_0062 64 DEF_STATIC_CONST_VAL_FLOAT(val_1867, 97.780701); DEF_STATIC_CONST_VAL_FLOAT(val_1868, 84.413597); #define CTNODE_cmu_us_rms_f0_r_148_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_1869, 0.145000); DEF_STATIC_CONST_VAL_FLOAT(val_1870, 78.522202); #define CTNODE_cmu_us_rms_f0_r_148_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_1871, 72.517403); #define CTNODE_cmu_us_rms_f0_r_148_NO_0001 7 DEF_STATIC_CONST_VAL_FLOAT(val_1872, 19.000000); DEF_STATIC_CONST_VAL_FLOAT(val_1873, 93.178001); #define CTNODE_cmu_us_rms_f0_r_148_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_1874, 85.121696); #define CTNODE_cmu_us_rms_f0_r_148_NO_0009 13 DEF_STATIC_CONST_VAL_FLOAT(val_1875, 94.713303); #define CTNODE_cmu_us_rms_f0_r_148_NO_0008 14 DEF_STATIC_CONST_VAL_FLOAT(val_1876, 110.963997); #define CTNODE_cmu_us_rms_f0_r_148_NO_0014 16 DEF_STATIC_CONST_VAL_FLOAT(val_1877, 0.304107); DEF_STATIC_CONST_VAL_FLOAT(val_1878, 100.573997); #define CTNODE_cmu_us_rms_f0_r_148_NO_0016 18 DEF_STATIC_CONST_VAL_FLOAT(val_1879, 93.365898); #define CTNODE_cmu_us_rms_f0_r_148_NO_0007 19 DEF_STATIC_CONST_VAL_FLOAT(val_1880, 0.518440); DEF_STATIC_CONST_VAL_FLOAT(val_1881, 0.049000); DEF_STATIC_CONST_VAL_FLOAT(val_1882, 94.924896); #define CTNODE_cmu_us_rms_f0_r_148_NO_0020 22 DEF_STATIC_CONST_VAL_FLOAT(val_1883, 90.045601); #define CTNODE_cmu_us_rms_f0_r_148_NO_0019 23 DEF_STATIC_CONST_VAL_FLOAT(val_1884, 88.588699); #define CTNODE_cmu_us_rms_f0_r_148_NO_0023 25 DEF_STATIC_CONST_VAL_FLOAT(val_1885, 81.278702); #define CTNODE_cmu_us_rms_f0_r_148_NO_0000 26 DEF_STATIC_CONST_VAL_FLOAT(val_1886, 0.310997); DEF_STATIC_CONST_VAL_FLOAT(val_1887, 0.035000); DEF_STATIC_CONST_VAL_FLOAT(val_1888, 115.553001); #define CTNODE_cmu_us_rms_f0_r_148_NO_0028 30 DEF_STATIC_CONST_VAL_FLOAT(val_1889, 127.833000); #define CTNODE_cmu_us_rms_f0_r_148_NO_0027 31 DEF_STATIC_CONST_VAL_FLOAT(val_1890, 0.169188); DEF_STATIC_CONST_VAL_FLOAT(val_1891, 110.220001); #define CTNODE_cmu_us_rms_f0_r_148_NO_0031 33 DEF_STATIC_CONST_VAL_FLOAT(val_1892, 103.110001); #define CTNODE_cmu_us_rms_f0_r_148_NO_0026 34 DEF_STATIC_CONST_VAL_FLOAT(val_1893, 84.974098); #define CTNODE_cmu_us_rms_f0_r_148_NO_0035 37 DEF_STATIC_CONST_VAL_FLOAT(val_1894, 93.167198); #define CTNODE_cmu_us_rms_f0_r_148_NO_0034 38 DEF_STATIC_CONST_VAL_FLOAT(val_1895, 91.727898); #define CTNODE_cmu_us_rms_f0_r_148_NO_0039 41 DEF_STATIC_CONST_VAL_FLOAT(val_1896, 95.852997); #define CTNODE_cmu_us_rms_f0_r_148_NO_0038 42 DEF_STATIC_CONST_VAL_FLOAT(val_1897, 111.379997); #define CTNODE_cmu_us_rms_f0_r_148_NO_0042 44 DEF_STATIC_CONST_VAL_FLOAT(val_1898, 0.024000); DEF_STATIC_CONST_VAL_FLOAT(val_1899, 98.600197); #define CTNODE_cmu_us_rms_f0_r_148_NO_0045 47 DEF_STATIC_CONST_VAL_FLOAT(val_1900, 106.555000); #define CTNODE_cmu_us_rms_f0_r_148_NO_0044 48 DEF_STATIC_CONST_VAL_FLOAT(val_1901, 96.515503); DEF_STATIC_CONST_VAL_FLOAT(val_1902, 101.990997); #define CTNODE_cmu_us_rms_f0_ey_66_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_1903, 87.084503); #define CTNODE_cmu_us_rms_f0_ey_66_NO_0001 5 DEF_STATIC_CONST_VAL_FLOAT(val_1904, 0.907040); DEF_STATIC_CONST_VAL_FLOAT(val_1905, 0.870791); DEF_STATIC_CONST_VAL_FLOAT(val_1906, 91.703201); #define CTNODE_cmu_us_rms_f0_ey_66_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_1907, 88.377098); #define CTNODE_cmu_us_rms_f0_ey_66_NO_0005 9 DEF_STATIC_CONST_VAL_FLOAT(val_1908, 0.934209); DEF_STATIC_CONST_VAL_FLOAT(val_1909, 85.936203); #define CTNODE_cmu_us_rms_f0_ey_66_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_1910, 78.523697); #define CTNODE_cmu_us_rms_f0_ey_66_NO_0000 12 DEF_STATIC_CONST_VAL_FLOAT(val_1911, 0.185714); DEF_STATIC_CONST_VAL_FLOAT(val_1912, 121.727997); #define CTNODE_cmu_us_rms_f0_ey_66_NO_0014 16 #define CTNODE_cmu_us_rms_f0_ey_66_NO_0013 17 DEF_STATIC_CONST_VAL_FLOAT(val_1913, 0.443370); DEF_STATIC_CONST_VAL_FLOAT(val_1914, 113.775002); #define CTNODE_cmu_us_rms_f0_ey_66_NO_0017 19 #define CTNODE_cmu_us_rms_f0_ey_66_NO_0012 20 DEF_STATIC_CONST_VAL_FLOAT(val_1915, 0.185360); DEF_STATIC_CONST_VAL_FLOAT(val_1916, 100.877998); #define CTNODE_cmu_us_rms_f0_ey_66_NO_0021 23 #define CTNODE_cmu_us_rms_f0_ey_66_NO_0020 24 DEF_STATIC_CONST_VAL_FLOAT(val_1917, 14.400000); DEF_STATIC_CONST_VAL_FLOAT(val_1918, 0.594138); DEF_STATIC_CONST_VAL_FLOAT(val_1919, 93.572701); #define CTNODE_cmu_us_rms_f0_ey_66_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_1920, 0.349212); DEF_STATIC_CONST_VAL_FLOAT(val_1921, 102.129997); #define CTNODE_cmu_us_rms_f0_ey_66_NO_0029 31 DEF_STATIC_CONST_VAL_FLOAT(val_1922, 97.499100); #define CTNODE_cmu_us_rms_f0_ey_66_NO_0031 33 DEF_STATIC_CONST_VAL_FLOAT(val_1923, 95.490303); #define CTNODE_cmu_us_rms_f0_ey_66_NO_0026 34 DEF_STATIC_CONST_VAL_FLOAT(val_1924, 102.109001); #define CTNODE_cmu_us_rms_f0_ey_66_NO_0025 35 DEF_STATIC_CONST_VAL_FLOAT(val_1925, 95.523804); #define CTNODE_cmu_us_rms_f0_ey_66_NO_0035 37 DEF_STATIC_CONST_VAL_FLOAT(val_1926, 90.482201); #define CTNODE_cmu_us_rms_f0_ey_66_NO_0024 38 DEF_STATIC_CONST_VAL_FLOAT(val_1927, 88.614403); DEF_STATIC_CONST_VAL_STRING(val_1928, "dh"); DEF_STATIC_CONST_VAL_FLOAT(val_1929, 96.934196); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_1930, 108.623001); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0002 6 DEF_STATIC_CONST_VAL_FLOAT(val_1931, 0.139771); DEF_STATIC_CONST_VAL_FLOAT(val_1932, 114.976997); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_1933, 111.510002); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0007 11 DEF_STATIC_CONST_VAL_FLOAT(val_1934, 122.720001); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0006 12 DEF_STATIC_CONST_VAL_FLOAT(val_1935, 0.103000); DEF_STATIC_CONST_VAL_FLOAT(val_1936, 107.648003); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_1937, 98.747597); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0012 16 DEF_STATIC_CONST_VAL_FLOAT(val_1938, 0.756000); DEF_STATIC_CONST_VAL_FLOAT(val_1939, 113.817001); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0016 18 DEF_STATIC_CONST_VAL_FLOAT(val_1940, 107.792000); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0001 19 DEF_STATIC_CONST_VAL_FLOAT(val_1941, 90.286598); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0000 20 DEF_STATIC_CONST_VAL_FLOAT(val_1942, 0.881202); DEF_STATIC_CONST_VAL_FLOAT(val_1943, 94.011002); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_1944, 90.795197); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0021 25 DEF_STATIC_CONST_VAL_FLOAT(val_1945, 80.781898); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0025 27 DEF_STATIC_CONST_VAL_FLOAT(val_1946, 86.638802); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0020 28 DEF_STATIC_CONST_VAL_FLOAT(val_1947, 96.442299); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0029 31 DEF_STATIC_CONST_VAL_FLOAT(val_1948, 1.862000); DEF_STATIC_CONST_VAL_FLOAT(val_1949, 109.950996); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0031 33 DEF_STATIC_CONST_VAL_FLOAT(val_1950, 102.417000); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0028 34 DEF_STATIC_CONST_VAL_FLOAT(val_1951, 2.129000); DEF_STATIC_CONST_VAL_FLOAT(val_1952, 99.688400); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0036 38 DEF_STATIC_CONST_VAL_FLOAT(val_1953, 93.861702); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0035 39 DEF_STATIC_CONST_VAL_FLOAT(val_1954, 92.127296); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0040 42 DEF_STATIC_CONST_VAL_FLOAT(val_1955, 89.071297); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0039 43 DEF_STATIC_CONST_VAL_FLOAT(val_1956, 83.370697); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0034 44 DEF_STATIC_CONST_VAL_FLOAT(val_1957, 95.273102); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0044 46 DEF_STATIC_CONST_VAL_FLOAT(val_1958, 2.180000); DEF_STATIC_CONST_VAL_FLOAT(val_1959, 105.274002); #define CTNODE_cmu_us_rms_f0_ey_67_NO_0046 48 DEF_STATIC_CONST_VAL_FLOAT(val_1960, 98.192101); DEF_STATIC_CONST_VAL_FLOAT(val_1961, 72.609901); #define CTNODE_cmu_us_rms_f0_ey_68_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_1962, 0.080000); DEF_STATIC_CONST_VAL_FLOAT(val_1963, 86.546700); #define CTNODE_cmu_us_rms_f0_ey_68_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_1964, 78.838898); #define CTNODE_cmu_us_rms_f0_ey_68_NO_0000 6 DEF_STATIC_CONST_VAL_FLOAT(val_1965, 30.400000); DEF_STATIC_CONST_VAL_STRING(val_1966, "m_111"); DEF_STATIC_CONST_VAL_FLOAT(val_1967, 108.452003); #define CTNODE_cmu_us_rms_f0_ey_68_NO_0007 9 DEF_STATIC_CONST_VAL_FLOAT(val_1968, 105.220001); #define CTNODE_cmu_us_rms_f0_ey_68_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_1969, 0.318296); DEF_STATIC_CONST_VAL_FLOAT(val_1970, 0.180474); DEF_STATIC_CONST_VAL_FLOAT(val_1971, 110.917999); #define CTNODE_cmu_us_rms_f0_ey_68_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_1972, 101.192001); #define CTNODE_cmu_us_rms_f0_ey_68_NO_0011 15 DEF_STATIC_CONST_VAL_FLOAT(val_1973, 93.975098); #define CTNODE_cmu_us_rms_f0_ey_68_NO_0016 18 DEF_STATIC_CONST_VAL_FLOAT(val_1974, 0.589471); DEF_STATIC_CONST_VAL_FLOAT(val_1975, 104.106003); #define CTNODE_cmu_us_rms_f0_ey_68_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_1976, 96.557999); #define CTNODE_cmu_us_rms_f0_ey_68_NO_0015 21 DEF_STATIC_CONST_VAL_FLOAT(val_1977, 95.587402); #define CTNODE_cmu_us_rms_f0_ey_68_NO_0021 23 DEF_STATIC_CONST_VAL_FLOAT(val_1978, 90.589699); #define CTNODE_cmu_us_rms_f0_ey_68_NO_0023 25 DEF_STATIC_CONST_VAL_FLOAT(val_1979, 87.404800); #define CTNODE_cmu_us_rms_f0_ey_68_NO_0006 26 DEF_STATIC_CONST_VAL_FLOAT(val_1980, 0.412036); DEF_STATIC_CONST_VAL_FLOAT(val_1981, 85.859901); #define CTNODE_cmu_us_rms_f0_ey_68_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_1982, 95.150803); #define CTNODE_cmu_us_rms_f0_ey_68_NO_0029 31 DEF_STATIC_CONST_VAL_FLOAT(val_1983, 102.453003); #define CTNODE_cmu_us_rms_f0_ey_68_NO_0026 32 DEF_STATIC_CONST_VAL_FLOAT(val_1984, 0.141500); DEF_STATIC_CONST_VAL_FLOAT(val_1985, 85.774200); #define CTNODE_cmu_us_rms_f0_ey_68_NO_0033 35 DEF_STATIC_CONST_VAL_FLOAT(val_1986, 92.999199); #define CTNODE_cmu_us_rms_f0_ey_68_NO_0032 36 DEF_STATIC_CONST_VAL_FLOAT(val_1987, 81.458397); DEF_STATIC_CONST_VAL_FLOAT(val_1988, 135.276993); #define CTNODE_cmu_us_rms_f0_f_71_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_1989, 0.071000); DEF_STATIC_CONST_VAL_FLOAT(val_1990, 124.307999); #define CTNODE_cmu_us_rms_f0_f_71_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_1991, 113.232002); #define CTNODE_cmu_us_rms_f0_f_71_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_1992, 120.538002); #define CTNODE_cmu_us_rms_f0_f_71_NO_0003 9 DEF_STATIC_CONST_VAL_FLOAT(val_1993, 107.246002); #define CTNODE_cmu_us_rms_f0_f_71_NO_0000 10 DEF_STATIC_CONST_VAL_FLOAT(val_1994, 87.600502); #define CTNODE_cmu_us_rms_f0_f_71_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_1995, 96.789703); #define CTNODE_cmu_us_rms_f0_f_71_NO_0014 16 DEF_STATIC_CONST_VAL_FLOAT(val_1996, 101.317001); #define CTNODE_cmu_us_rms_f0_f_71_NO_0011 17 DEF_STATIC_CONST_VAL_FLOAT(val_1997, 74.284203); #define CTNODE_cmu_us_rms_f0_f_71_NO_0010 18 DEF_STATIC_CONST_VAL_FLOAT(val_1998, 113.279999); #define CTNODE_cmu_us_rms_f0_f_71_NO_0019 21 DEF_STATIC_CONST_VAL_FLOAT(val_1999, 0.469196); DEF_STATIC_CONST_VAL_FLOAT(val_2000, 108.207001); #define CTNODE_cmu_us_rms_f0_f_71_NO_0021 23 DEF_STATIC_CONST_VAL_FLOAT(val_2001, 100.900002); #define CTNODE_cmu_us_rms_f0_f_71_NO_0018 24 DEF_STATIC_CONST_VAL_FLOAT(val_2002, 88.426903); #define CTNODE_cmu_us_rms_f0_f_71_NO_0024 26 DEF_STATIC_CONST_VAL_FLOAT(val_2003, 22.400000); DEF_STATIC_CONST_VAL_FLOAT(val_2004, 100.755997); #define CTNODE_cmu_us_rms_f0_f_71_NO_0026 28 DEF_STATIC_CONST_VAL_FLOAT(val_2005, 93.697800); DEF_STATIC_CONST_VAL_FLOAT(val_2006, 0.499603); DEF_STATIC_CONST_VAL_FLOAT(val_2007, 123.431999); #define CTNODE_cmu_us_rms_f0_f_72_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_2008, 115.710999); #define CTNODE_cmu_us_rms_f0_f_72_NO_0002 6 DEF_STATIC_CONST_VAL_FLOAT(val_2009, 0.304762); DEF_STATIC_CONST_VAL_FLOAT(val_2010, 100.737000); #define CTNODE_cmu_us_rms_f0_f_72_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_2011, 111.556999); #define CTNODE_cmu_us_rms_f0_f_72_NO_0001 9 DEF_STATIC_CONST_VAL_FLOAT(val_2012, 96.618599); #define CTNODE_cmu_us_rms_f0_f_72_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_2013, 2.397500); DEF_STATIC_CONST_VAL_FLOAT(val_2014, 100.125000); #define CTNODE_cmu_us_rms_f0_f_72_NO_0014 16 DEF_STATIC_CONST_VAL_FLOAT(val_2015, 104.274002); #define CTNODE_cmu_us_rms_f0_f_72_NO_0013 17 DEF_STATIC_CONST_VAL_FLOAT(val_2016, 1.066000); DEF_STATIC_CONST_VAL_FLOAT(val_2017, 106.077003); #define CTNODE_cmu_us_rms_f0_f_72_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_2018, 105.389999); #define CTNODE_cmu_us_rms_f0_f_72_NO_0017 21 DEF_STATIC_CONST_VAL_FLOAT(val_2019, 112.277000); #define CTNODE_cmu_us_rms_f0_f_72_NO_0012 22 DEF_STATIC_CONST_VAL_FLOAT(val_2020, 0.305556); DEF_STATIC_CONST_VAL_FLOAT(val_2021, 98.532303); #define CTNODE_cmu_us_rms_f0_f_72_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_2022, 101.542999); #define CTNODE_cmu_us_rms_f0_f_72_NO_0009 25 DEF_STATIC_CONST_VAL_FLOAT(val_2023, 2.160000); DEF_STATIC_CONST_VAL_FLOAT(val_2024, 100.545998); #define CTNODE_cmu_us_rms_f0_f_72_NO_0026 28 DEF_STATIC_CONST_VAL_FLOAT(val_2025, 94.688499); #define CTNODE_cmu_us_rms_f0_f_72_NO_0025 29 DEF_STATIC_CONST_VAL_FLOAT(val_2026, 89.145302); #define CTNODE_cmu_us_rms_f0_f_72_NO_0029 31 DEF_STATIC_CONST_VAL_FLOAT(val_2027, 95.424301); #define CTNODE_cmu_us_rms_f0_f_72_NO_0000 32 DEF_STATIC_CONST_VAL_FLOAT(val_2028, 90.709602); #define CTNODE_cmu_us_rms_f0_f_72_NO_0033 35 DEF_STATIC_CONST_VAL_FLOAT(val_2029, 107.351997); #define CTNODE_cmu_us_rms_f0_f_72_NO_0035 37 DEF_STATIC_CONST_VAL_FLOAT(val_2030, 99.458504); #define CTNODE_cmu_us_rms_f0_f_72_NO_0032 38 DEF_STATIC_CONST_VAL_FLOAT(val_2031, 137.141998); #define CTNODE_cmu_us_rms_f0_f_72_NO_0039 41 DEF_STATIC_CONST_VAL_FLOAT(val_2032, 127.003998); #define CTNODE_cmu_us_rms_f0_f_72_NO_0038 42 DEF_STATIC_CONST_VAL_FLOAT(val_2033, 0.688571); DEF_STATIC_CONST_VAL_FLOAT(val_2034, 121.216003); #define CTNODE_cmu_us_rms_f0_f_72_NO_0044 46 DEF_STATIC_CONST_VAL_FLOAT(val_2035, 116.898003); #define CTNODE_cmu_us_rms_f0_f_72_NO_0043 47 DEF_STATIC_CONST_VAL_FLOAT(val_2036, 2.412500); DEF_STATIC_CONST_VAL_FLOAT(val_2037, 108.563004); #define CTNODE_cmu_us_rms_f0_f_72_NO_0049 51 DEF_STATIC_CONST_VAL_FLOAT(val_2038, 114.299004); #define CTNODE_cmu_us_rms_f0_f_72_NO_0048 52 DEF_STATIC_CONST_VAL_FLOAT(val_2039, 112.875000); #define CTNODE_cmu_us_rms_f0_f_72_NO_0052 54 DEF_STATIC_CONST_VAL_FLOAT(val_2040, 118.933998); #define CTNODE_cmu_us_rms_f0_f_72_NO_0047 55 DEF_STATIC_CONST_VAL_FLOAT(val_2041, 107.623001); #define CTNODE_cmu_us_rms_f0_f_72_NO_0042 56 DEF_STATIC_CONST_VAL_FLOAT(val_2042, 21.500000); DEF_STATIC_CONST_VAL_FLOAT(val_2043, 125.902000); #define CTNODE_cmu_us_rms_f0_f_72_NO_0057 59 DEF_STATIC_CONST_VAL_FLOAT(val_2044, 132.113007); #define CTNODE_cmu_us_rms_f0_f_72_NO_0056 60 DEF_STATIC_CONST_VAL_FLOAT(val_2045, 1.585000); DEF_STATIC_CONST_VAL_FLOAT(val_2046, 120.348999); #define CTNODE_cmu_us_rms_f0_f_72_NO_0061 63 DEF_STATIC_CONST_VAL_FLOAT(val_2047, 0.907500); DEF_STATIC_CONST_VAL_FLOAT(val_2048, 127.524002); #define CTNODE_cmu_us_rms_f0_f_72_NO_0063 65 DEF_STATIC_CONST_VAL_FLOAT(val_2049, 122.814003); #define CTNODE_cmu_us_rms_f0_f_72_NO_0060 66 DEF_STATIC_CONST_VAL_FLOAT(val_2050, 121.088997); #define CTNODE_cmu_us_rms_f0_f_72_NO_0066 68 DEF_STATIC_CONST_VAL_FLOAT(val_2051, 0.800000); DEF_STATIC_CONST_VAL_FLOAT(val_2052, 111.116997); #define CTNODE_cmu_us_rms_f0_f_72_NO_0068 70 DEF_STATIC_CONST_VAL_FLOAT(val_2053, 0.704311); DEF_STATIC_CONST_VAL_FLOAT(val_2054, 119.097000); #define CTNODE_cmu_us_rms_f0_f_72_NO_0070 72 DEF_STATIC_CONST_VAL_FLOAT(val_2055, 115.074997); DEF_STATIC_CONST_VAL_FLOAT(val_2056, 94.416603); #define CTNODE_cmu_us_rms_f0_f_73_NO_0000 2 DEF_STATIC_CONST_VAL_FLOAT(val_2057, 0.087500); DEF_STATIC_CONST_VAL_FLOAT(val_2058, 125.691002); #define CTNODE_cmu_us_rms_f0_f_73_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_2059, 118.500000); #define CTNODE_cmu_us_rms_f0_f_73_NO_0002 6 DEF_STATIC_CONST_VAL_FLOAT(val_2060, 124.389000); #define CTNODE_cmu_us_rms_f0_f_73_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_2061, 129.061996); DEF_STATIC_CONST_VAL_FLOAT(val_2062, 0.291852); DEF_STATIC_CONST_VAL_FLOAT(val_2063, 101.625000); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_2064, 111.624001); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0001 5 DEF_STATIC_CONST_VAL_FLOAT(val_2065, 0.075000); DEF_STATIC_CONST_VAL_FLOAT(val_2066, 94.205200); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_2067, 106.455002); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0005 9 DEF_STATIC_CONST_VAL_FLOAT(val_2068, 101.529999); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_2069, 0.043000); DEF_STATIC_CONST_VAL_FLOAT(val_2070, 0.563886); DEF_STATIC_CONST_VAL_FLOAT(val_2071, 99.253601); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_2072, 95.957001); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_2073, 90.637802); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0012 18 DEF_STATIC_CONST_VAL_FLOAT(val_2074, 85.715103); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_2075, 92.376701); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0011 21 DEF_STATIC_CONST_VAL_FLOAT(val_2076, 97.651497); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0000 22 DEF_STATIC_CONST_VAL_FLOAT(val_2077, 0.372344); DEF_STATIC_CONST_VAL_FLOAT(val_2078, 96.621300); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0024 26 DEF_STATIC_CONST_VAL_FLOAT(val_2079, 109.668999); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_2080, 102.646004); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0026 30 DEF_STATIC_CONST_VAL_FLOAT(val_2081, 110.113998); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0030 32 DEF_STATIC_CONST_VAL_FLOAT(val_2082, 117.498001); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0023 33 DEF_STATIC_CONST_VAL_FLOAT(val_2083, 0.854602); DEF_STATIC_CONST_VAL_FLOAT(val_2084, 109.176003); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0035 37 DEF_STATIC_CONST_VAL_FLOAT(val_2085, 101.702003); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0034 38 DEF_STATIC_CONST_VAL_FLOAT(val_2086, 100.598999); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0038 40 DEF_STATIC_CONST_VAL_FLOAT(val_2087, 97.929001); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0040 42 DEF_STATIC_CONST_VAL_FLOAT(val_2088, 0.016000); DEF_STATIC_CONST_VAL_FLOAT(val_2089, 90.538696); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0042 44 DEF_STATIC_CONST_VAL_FLOAT(val_2090, 87.182098); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0033 45 DEF_STATIC_CONST_VAL_FLOAT(val_2091, 88.111504); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0022 46 #define CTNODE_cmu_us_rms_f0_ih_86_NO_0046 48 DEF_STATIC_CONST_VAL_FLOAT(val_2092, 127.628998); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0048 50 DEF_STATIC_CONST_VAL_FLOAT(val_2093, 109.806999); #define CTNODE_cmu_us_rms_f0_ih_86_NO_0050 52 DEF_STATIC_CONST_VAL_FLOAT(val_2094, 118.495003); DEF_STATIC_CONST_VAL_FLOAT(val_2095, 1.276000); DEF_STATIC_CONST_VAL_FLOAT(val_2096, 119.014999); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_2097, 115.453003); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_2098, 1.060000); DEF_STATIC_CONST_VAL_FLOAT(val_2099, 104.991997); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_2100, 111.904999); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0007 11 DEF_STATIC_CONST_VAL_FLOAT(val_2101, 99.124802); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0004 12 DEF_STATIC_CONST_VAL_FLOAT(val_2102, 0.697500); DEF_STATIC_CONST_VAL_FLOAT(val_2103, 108.929001); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_2104, 103.033997); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_2105, 99.357101); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0012 18 DEF_STATIC_CONST_VAL_FLOAT(val_2106, 95.922798); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_2107, 100.571999); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0001 21 DEF_STATIC_CONST_VAL_FLOAT(val_2108, 113.685997); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_2109, 132.082001); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0021 25 DEF_STATIC_CONST_VAL_FLOAT(val_2110, 0.466500); DEF_STATIC_CONST_VAL_FLOAT(val_2111, 116.241997); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_2112, 109.304001); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0026 30 DEF_STATIC_CONST_VAL_FLOAT(val_2113, 120.919998); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0025 31 DEF_STATIC_CONST_VAL_FLOAT(val_2114, 103.637001); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0032 34 DEF_STATIC_CONST_VAL_FLOAT(val_2115, 110.685997); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0031 35 DEF_STATIC_CONST_VAL_FLOAT(val_2116, 0.010000); DEF_STATIC_CONST_VAL_FLOAT(val_2117, 112.487000); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0036 38 DEF_STATIC_CONST_VAL_FLOAT(val_2118, 114.611000); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0035 39 DEF_STATIC_CONST_VAL_FLOAT(val_2119, 112.967003); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0039 41 DEF_STATIC_CONST_VAL_FLOAT(val_2120, 108.445999); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0000 42 DEF_STATIC_CONST_VAL_FLOAT(val_2121, 87.585403); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0044 46 DEF_STATIC_CONST_VAL_FLOAT(val_2122, 83.635101); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0043 47 DEF_STATIC_CONST_VAL_FLOAT(val_2123, 93.623703); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0042 48 DEF_STATIC_CONST_VAL_FLOAT(val_2124, 119.764999); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0048 50 DEF_STATIC_CONST_VAL_STRING(val_2125, "t"); DEF_STATIC_CONST_VAL_FLOAT(val_2126, 92.421204); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0053 55 DEF_STATIC_CONST_VAL_FLOAT(val_2127, 95.248199); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0055 57 DEF_STATIC_CONST_VAL_FLOAT(val_2128, 102.853996); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0052 58 DEF_STATIC_CONST_VAL_FLOAT(val_2129, 2.058000); DEF_STATIC_CONST_VAL_FLOAT(val_2130, 94.844803); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0058 60 DEF_STATIC_CONST_VAL_FLOAT(val_2131, 0.761228); DEF_STATIC_CONST_VAL_FLOAT(val_2132, 92.755997); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0061 63 DEF_STATIC_CONST_VAL_FLOAT(val_2133, 88.872101); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0060 64 DEF_STATIC_CONST_VAL_FLOAT(val_2134, 85.300903); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0051 65 DEF_STATIC_CONST_VAL_FLOAT(val_2135, 99.451302); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0066 68 DEF_STATIC_CONST_VAL_FLOAT(val_2136, 114.542999); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0068 70 DEF_STATIC_CONST_VAL_FLOAT(val_2137, 106.245003); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0065 71 DEF_STATIC_CONST_VAL_FLOAT(val_2138, 87.931000); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0071 73 DEF_STATIC_CONST_VAL_FLOAT(val_2139, 91.239899); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0074 76 DEF_STATIC_CONST_VAL_FLOAT(val_2140, 100.727997); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0076 78 DEF_STATIC_CONST_VAL_FLOAT(val_2141, 0.413131); DEF_STATIC_CONST_VAL_FLOAT(val_2142, 99.161201); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0078 80 DEF_STATIC_CONST_VAL_FLOAT(val_2143, 2.380000); DEF_STATIC_CONST_VAL_FLOAT(val_2144, 95.053001); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0080 82 DEF_STATIC_CONST_VAL_FLOAT(val_2145, 91.875603); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0073 83 DEF_STATIC_CONST_VAL_FLOAT(val_2146, 103.157997); #define CTNODE_cmu_us_rms_f0_ih_87_NO_0050 84 DEF_STATIC_CONST_VAL_FLOAT(val_2147, 112.346001); DEF_STATIC_CONST_VAL_FLOAT(val_2148, 106.995003); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0001 3 #define CTNODE_cmu_us_rms_f0_ih_88_NO_0000 4 DEF_STATIC_CONST_VAL_FLOAT(val_2149, 84.561699); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_2150, 96.408699); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0005 9 DEF_STATIC_CONST_VAL_STRING(val_2151, "v"); DEF_STATIC_CONST_VAL_FLOAT(val_2152, 89.503502); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_2153, 76.906403); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_2154, 79.349800); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_2155, 84.681702); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0004 16 DEF_STATIC_CONST_VAL_FLOAT(val_2156, 0.409932); DEF_STATIC_CONST_VAL_FLOAT(val_2157, 102.820000); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0019 21 DEF_STATIC_CONST_VAL_FLOAT(val_2158, 93.110603); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0018 22 DEF_STATIC_CONST_VAL_FLOAT(val_2159, 89.554398); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_2160, 86.577499); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0017 25 DEF_STATIC_CONST_VAL_FLOAT(val_2161, 98.333397); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0025 27 DEF_STATIC_CONST_VAL_FLOAT(val_2162, 121.196999); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_2163, 0.384553); DEF_STATIC_CONST_VAL_FLOAT(val_2164, 112.217003); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0029 31 DEF_STATIC_CONST_VAL_FLOAT(val_2165, 102.199997); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0016 32 DEF_STATIC_CONST_VAL_FLOAT(val_2166, 0.322691); DEF_STATIC_CONST_VAL_FLOAT(val_2167, 5.900000); DEF_STATIC_CONST_VAL_FLOAT(val_2168, 111.417000); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0033 35 DEF_STATIC_CONST_VAL_FLOAT(val_2169, 102.478996); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0036 38 DEF_STATIC_CONST_VAL_FLOAT(val_2170, 92.711098); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0035 39 DEF_STATIC_CONST_VAL_FLOAT(val_2171, 97.670502); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0039 41 DEF_STATIC_CONST_VAL_FLOAT(val_2172, 108.855003); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0032 42 DEF_STATIC_CONST_VAL_FLOAT(val_2173, 99.868698); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0043 45 DEF_STATIC_CONST_VAL_FLOAT(val_2174, 86.155998); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0045 47 DEF_STATIC_CONST_VAL_FLOAT(val_2175, 0.505661); DEF_STATIC_CONST_VAL_FLOAT(val_2176, 0.019500); DEF_STATIC_CONST_VAL_FLOAT(val_2177, 8.000000); DEF_STATIC_CONST_VAL_FLOAT(val_2178, 98.208397); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0049 51 DEF_STATIC_CONST_VAL_FLOAT(val_2179, 95.443398); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0048 52 DEF_STATIC_CONST_VAL_FLOAT(val_2180, 94.229401); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0052 54 DEF_STATIC_CONST_VAL_FLOAT(val_2181, 91.611504); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0047 55 DEF_STATIC_CONST_VAL_FLOAT(val_2182, 96.211197); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0056 58 DEF_STATIC_CONST_VAL_FLOAT(val_2183, 90.898003); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0055 59 DEF_STATIC_CONST_VAL_FLOAT(val_2184, 90.036697); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0060 62 DEF_STATIC_CONST_VAL_FLOAT(val_2185, 87.041199); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0059 63 DEF_STATIC_CONST_VAL_FLOAT(val_2186, 95.702499); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0063 65 DEF_STATIC_CONST_VAL_FLOAT(val_2187, 91.359596); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0066 68 DEF_STATIC_CONST_VAL_FLOAT(val_2188, 86.504799); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0065 69 DEF_STATIC_CONST_VAL_FLOAT(val_2189, 93.080704); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0042 70 DEF_STATIC_CONST_VAL_FLOAT(val_2190, 87.700203); #define CTNODE_cmu_us_rms_f0_ih_88_NO_0070 72 DEF_STATIC_CONST_VAL_FLOAT(val_2191, 83.912697); DEF_STATIC_CONST_VAL_FLOAT(val_2192, 94.604103); #define CTNODE_cmu_us_rms_f0_p_136_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_2193, 86.633202); #define CTNODE_cmu_us_rms_f0_p_136_NO_0000 4 DEF_STATIC_CONST_VAL_FLOAT(val_2194, 0.591566); DEF_STATIC_CONST_VAL_FLOAT(val_2195, 98.849602); #define CTNODE_cmu_us_rms_f0_p_136_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_2196, 104.246002); #define CTNODE_cmu_us_rms_f0_p_136_NO_0005 9 DEF_STATIC_CONST_VAL_FLOAT(val_2197, 111.811996); #define CTNODE_cmu_us_rms_f0_p_136_NO_0004 10 DEF_STATIC_CONST_VAL_FLOAT(val_2198, 0.019000); DEF_STATIC_CONST_VAL_FLOAT(val_2199, 97.488602); #define CTNODE_cmu_us_rms_f0_p_136_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_2200, 88.698303); DEF_STATIC_CONST_VAL_FLOAT(val_2201, 0.655500); DEF_STATIC_CONST_VAL_FLOAT(val_2202, 124.567001); #define CTNODE_cmu_us_rms_f0_p_137_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_2203, 0.473000); DEF_STATIC_CONST_VAL_FLOAT(val_2204, 114.608002); #define CTNODE_cmu_us_rms_f0_p_137_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_2205, 106.989998); #define CTNODE_cmu_us_rms_f0_p_137_NO_0001 7 DEF_STATIC_CONST_VAL_FLOAT(val_2206, 82.871696); #define CTNODE_cmu_us_rms_f0_p_137_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_2207, 91.118401); #define CTNODE_cmu_us_rms_f0_p_137_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_2208, 101.112999); #define CTNODE_cmu_us_rms_f0_p_137_NO_0007 13 DEF_STATIC_CONST_VAL_FLOAT(val_2209, 107.677002); #define CTNODE_cmu_us_rms_f0_p_137_NO_0014 16 DEF_STATIC_CONST_VAL_FLOAT(val_2210, 105.834999); #define CTNODE_cmu_us_rms_f0_p_137_NO_0016 18 DEF_STATIC_CONST_VAL_FLOAT(val_2211, 98.493401); #define CTNODE_cmu_us_rms_f0_p_137_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_2212, 97.899498); #define CTNODE_cmu_us_rms_f0_p_137_NO_0020 22 DEF_STATIC_CONST_VAL_FLOAT(val_2213, 1.966000); DEF_STATIC_CONST_VAL_FLOAT(val_2214, 94.615196); #define CTNODE_cmu_us_rms_f0_p_137_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_2215, 84.630203); #define CTNODE_cmu_us_rms_f0_p_137_NO_0013 25 DEF_STATIC_CONST_VAL_FLOAT(val_2216, 0.640548); DEF_STATIC_CONST_VAL_FLOAT(val_2217, 116.589996); #define CTNODE_cmu_us_rms_f0_p_137_NO_0026 28 DEF_STATIC_CONST_VAL_FLOAT(val_2218, 106.050003); #define CTNODE_cmu_us_rms_f0_p_137_NO_0025 29 DEF_STATIC_CONST_VAL_FLOAT(val_2219, 103.857002); #define CTNODE_cmu_us_rms_f0_p_137_NO_0029 31 DEF_STATIC_CONST_VAL_FLOAT(val_2220, 93.030998); #define CTNODE_cmu_us_rms_f0_p_137_NO_0000 32 DEF_STATIC_CONST_VAL_FLOAT(val_2221, 0.582982); DEF_STATIC_CONST_VAL_FLOAT(val_2222, 128.848999); #define CTNODE_cmu_us_rms_f0_p_137_NO_0032 34 DEF_STATIC_CONST_VAL_FLOAT(val_2223, 121.233002); DEF_STATIC_CONST_VAL_FLOAT(val_2224, 128.328995); #define CTNODE_cmu_us_rms_f0_p_138_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_2225, 0.189246); DEF_STATIC_CONST_VAL_FLOAT(val_2226, 122.757004); #define CTNODE_cmu_us_rms_f0_p_138_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_2227, 122.943001); #define CTNODE_cmu_us_rms_f0_p_138_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_2228, 109.337997); #define CTNODE_cmu_us_rms_f0_p_138_NO_0007 9 DEF_STATIC_CONST_VAL_FLOAT(val_2229, 95.813797); #define CTNODE_cmu_us_rms_f0_p_138_NO_0000 10 DEF_STATIC_CONST_VAL_STRING(val_2230, "ae_6"); DEF_STATIC_CONST_VAL_FLOAT(val_2231, 87.325302); #define CTNODE_cmu_us_rms_f0_p_138_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_2232, 0.022000); DEF_STATIC_CONST_VAL_FLOAT(val_2233, 91.107803); #define CTNODE_cmu_us_rms_f0_p_138_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_2234, 111.671997); #define CTNODE_cmu_us_rms_f0_p_138_NO_0016 18 DEF_STATIC_CONST_VAL_FLOAT(val_2235, 103.460999); #define CTNODE_cmu_us_rms_f0_p_138_NO_0015 19 DEF_STATIC_CONST_VAL_FLOAT(val_2236, 104.967003); #define CTNODE_cmu_us_rms_f0_p_138_NO_0019 21 DEF_STATIC_CONST_VAL_FLOAT(val_2237, 6.300000); DEF_STATIC_CONST_VAL_FLOAT(val_2238, 99.372803); #define CTNODE_cmu_us_rms_f0_p_138_NO_0021 23 DEF_STATIC_CONST_VAL_FLOAT(val_2239, 91.006401); #define CTNODE_cmu_us_rms_f0_p_138_NO_0010 24 DEF_STATIC_CONST_VAL_FLOAT(val_2240, 100.004997); #define CTNODE_cmu_us_rms_f0_p_138_NO_0024 26 DEF_STATIC_CONST_VAL_FLOAT(val_2241, 0.617149); DEF_STATIC_CONST_VAL_FLOAT(val_2242, 101.153999); #define CTNODE_cmu_us_rms_f0_p_138_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_2243, 107.550003); #define CTNODE_cmu_us_rms_f0_p_138_NO_0030 32 DEF_STATIC_CONST_VAL_FLOAT(val_2244, 116.252998); #define CTNODE_cmu_us_rms_f0_p_138_NO_0029 33 DEF_STATIC_CONST_VAL_FLOAT(val_2245, 120.407997); #define CTNODE_cmu_us_rms_f0_p_138_NO_0026 34 DEF_STATIC_CONST_VAL_FLOAT(val_2246, 106.572998); #define CTNODE_cmu_us_rms_f0_p_138_NO_0034 36 DEF_STATIC_CONST_VAL_FLOAT(val_2247, 96.029800); DEF_STATIC_CONST_VAL_FLOAT(val_2248, 122.988998); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_2249, 133.858994); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0001 5 DEF_STATIC_CONST_VAL_FLOAT(val_2250, 95.548897); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_2251, 0.184615); DEF_STATIC_CONST_VAL_FLOAT(val_2252, 110.445999); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_2253, 126.875999); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_2254, 120.379997); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0007 13 DEF_STATIC_CONST_VAL_FLOAT(val_2255, 0.406553); DEF_STATIC_CONST_VAL_FLOAT(val_2256, 105.279999); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0014 16 DEF_STATIC_CONST_VAL_FLOAT(val_2257, 98.591003); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0013 17 DEF_STATIC_CONST_VAL_FLOAT(val_2258, 0.683333); DEF_STATIC_CONST_VAL_FLOAT(val_2259, 116.972000); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_2260, 109.766998); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0000 20 DEF_STATIC_CONST_VAL_FLOAT(val_2261, 97.940300); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_2262, 88.684998); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0024 26 DEF_STATIC_CONST_VAL_FLOAT(val_2263, 93.937103); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0021 27 DEF_STATIC_CONST_VAL_FLOAT(val_2264, 0.280000); DEF_STATIC_CONST_VAL_FLOAT(val_2265, 119.680000); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0028 30 DEF_STATIC_CONST_VAL_FLOAT(val_2266, 104.233002); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0027 31 DEF_STATIC_CONST_VAL_FLOAT(val_2267, 109.438004); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0033 35 DEF_STATIC_CONST_VAL_FLOAT(val_2268, 106.500999); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0032 36 DEF_STATIC_CONST_VAL_FLOAT(val_2269, 107.940002); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0037 39 DEF_STATIC_CONST_VAL_FLOAT(val_2270, 103.710999); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0036 40 DEF_STATIC_CONST_VAL_FLOAT(val_2271, 99.737396); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0041 43 DEF_STATIC_CONST_VAL_FLOAT(val_2272, 94.428001); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0043 45 DEF_STATIC_CONST_VAL_FLOAT(val_2273, 91.359901); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0040 46 DEF_STATIC_CONST_VAL_FLOAT(val_2274, 0.380311); DEF_STATIC_CONST_VAL_FLOAT(val_2275, 105.223000); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0048 50 DEF_STATIC_CONST_VAL_FLOAT(val_2276, 112.744003); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0047 51 DEF_STATIC_CONST_VAL_FLOAT(val_2277, 0.680593); DEF_STATIC_CONST_VAL_FLOAT(val_2278, 97.206100); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0052 54 DEF_STATIC_CONST_VAL_FLOAT(val_2279, 90.881203); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0051 55 DEF_STATIC_CONST_VAL_FLOAT(val_2280, 99.455704); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0046 56 DEF_STATIC_CONST_VAL_FLOAT(val_2281, 106.945999); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0031 57 DEF_STATIC_CONST_VAL_FLOAT(val_2282, 100.167000); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0057 59 DEF_STATIC_CONST_VAL_STRING(val_2283, "r_148"); DEF_STATIC_CONST_VAL_FLOAT(val_2284, 105.513000); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0059 61 DEF_STATIC_CONST_VAL_FLOAT(val_2285, 126.860001); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0020 62 DEF_STATIC_CONST_VAL_FLOAT(val_2286, 0.322921); DEF_STATIC_CONST_VAL_FLOAT(val_2287, 99.651199); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0062 64 DEF_STATIC_CONST_VAL_FLOAT(val_2288, 96.872398); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0064 66 DEF_STATIC_CONST_VAL_FLOAT(val_2289, 13.200000); DEF_STATIC_CONST_VAL_FLOAT(val_2290, 3.300000); DEF_STATIC_CONST_VAL_FLOAT(val_2291, 89.870003); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0068 70 DEF_STATIC_CONST_VAL_FLOAT(val_2292, 0.097500); DEF_STATIC_CONST_VAL_FLOAT(val_2293, 81.960701); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0070 72 DEF_STATIC_CONST_VAL_FLOAT(val_2294, 87.686897); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0067 73 DEF_STATIC_CONST_VAL_FLOAT(val_2295, 92.753700); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0066 74 DEF_STATIC_CONST_VAL_FLOAT(val_2296, 88.253601); #define CTNODE_cmu_us_rms_f0_iy_91_NO_0074 76 DEF_STATIC_CONST_VAL_FLOAT(val_2297, 97.915703); DEF_STATIC_CONST_VAL_FLOAT(val_2298, 0.734000); DEF_STATIC_CONST_VAL_FLOAT(val_2299, 26.600000); DEF_STATIC_CONST_VAL_FLOAT(val_2300, 122.533997); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_2301, 117.572998); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0003 7 DEF_STATIC_CONST_VAL_FLOAT(val_2302, 5.100000); DEF_STATIC_CONST_VAL_FLOAT(val_2303, 0.090163); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_2304, 102.513000); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0007 11 DEF_STATIC_CONST_VAL_FLOAT(val_2305, 119.961998); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_2306, 115.796997); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0011 15 DEF_STATIC_CONST_VAL_FLOAT(val_2307, 110.391998); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0002 16 #define CTNODE_cmu_us_rms_f0_iy_92_NO_0001 17 DEF_STATIC_CONST_VAL_FLOAT(val_2308, 0.556000); DEF_STATIC_CONST_VAL_STRING(val_2309, "g"); DEF_STATIC_CONST_VAL_FLOAT(val_2310, 136.658997); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_2311, 129.403000); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0020 22 DEF_STATIC_CONST_VAL_FLOAT(val_2312, 123.558998); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0017 23 DEF_STATIC_CONST_VAL_FLOAT(val_2313, 112.483002); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0000 24 DEF_STATIC_CONST_VAL_FLOAT(val_2314, 0.409667); DEF_STATIC_CONST_VAL_FLOAT(val_2315, 120.975998); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0028 30 DEF_STATIC_CONST_VAL_FLOAT(val_2316, 110.619003); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0027 31 DEF_STATIC_CONST_VAL_FLOAT(val_2317, 0.611866); DEF_STATIC_CONST_VAL_FLOAT(val_2318, 110.192001); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0031 33 DEF_STATIC_CONST_VAL_FLOAT(val_2319, 103.219002); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0026 34 DEF_STATIC_CONST_VAL_FLOAT(val_2320, 22.900000); DEF_STATIC_CONST_VAL_FLOAT(val_2321, 110.140999); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0035 37 DEF_STATIC_CONST_VAL_FLOAT(val_2322, 2.080500); DEF_STATIC_CONST_VAL_FLOAT(val_2323, 110.593002); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0038 40 DEF_STATIC_CONST_VAL_FLOAT(val_2324, 101.419998); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0037 41 DEF_STATIC_CONST_VAL_FLOAT(val_2325, 0.557715); DEF_STATIC_CONST_VAL_FLOAT(val_2326, 98.657402); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0042 44 DEF_STATIC_CONST_VAL_FLOAT(val_2327, 91.617500); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0041 45 DEF_STATIC_CONST_VAL_FLOAT(val_2328, 102.869003); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0034 46 DEF_STATIC_CONST_VAL_FLOAT(val_2329, 93.666100); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0046 48 DEF_STATIC_CONST_VAL_FLOAT(val_2330, 99.423500); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0025 49 DEF_STATIC_CONST_VAL_FLOAT(val_2331, 1.867000); DEF_STATIC_CONST_VAL_FLOAT(val_2332, 23.500000); DEF_STATIC_CONST_VAL_FLOAT(val_2333, 109.629997); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0051 53 DEF_STATIC_CONST_VAL_FLOAT(val_2334, 105.735001); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0053 55 DEF_STATIC_CONST_VAL_FLOAT(val_2335, 102.014000); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0055 57 DEF_STATIC_CONST_VAL_FLOAT(val_2336, 98.673203); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0057 59 DEF_STATIC_CONST_VAL_FLOAT(val_2337, 95.104797); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0050 60 DEF_STATIC_CONST_VAL_FLOAT(val_2338, 0.021000); DEF_STATIC_CONST_VAL_FLOAT(val_2339, 97.518402); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0060 62 DEF_STATIC_CONST_VAL_FLOAT(val_2340, 89.317596); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0049 63 DEF_STATIC_CONST_VAL_FLOAT(val_2341, 0.818319); DEF_STATIC_CONST_VAL_FLOAT(val_2342, 92.355301); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0064 66 DEF_STATIC_CONST_VAL_FLOAT(val_2343, 85.447197); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0063 67 DEF_STATIC_CONST_VAL_FLOAT(val_2344, 101.625999); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0067 69 DEF_STATIC_CONST_VAL_FLOAT(val_2345, 95.498802); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0070 72 DEF_STATIC_CONST_VAL_FLOAT(val_2346, 102.443001); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0069 73 DEF_STATIC_CONST_VAL_FLOAT(val_2347, 0.925065); DEF_STATIC_CONST_VAL_FLOAT(val_2348, 2.505500); DEF_STATIC_CONST_VAL_FLOAT(val_2349, 90.472198); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0074 76 DEF_STATIC_CONST_VAL_FLOAT(val_2350, 97.112000); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0073 77 DEF_STATIC_CONST_VAL_FLOAT(val_2351, 85.672302); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0024 78 DEF_STATIC_CONST_VAL_FLOAT(val_2352, 0.028000); DEF_STATIC_CONST_VAL_FLOAT(val_2353, 11.700000); DEF_STATIC_CONST_VAL_FLOAT(val_2354, 84.429298); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0080 82 DEF_STATIC_CONST_VAL_FLOAT(val_2355, 93.948196); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0079 83 DEF_STATIC_CONST_VAL_FLOAT(val_2356, 101.615997); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0078 84 DEF_STATIC_CONST_VAL_FLOAT(val_2357, 0.071000); DEF_STATIC_CONST_VAL_FLOAT(val_2358, 0.908896); DEF_STATIC_CONST_VAL_FLOAT(val_2359, 82.903099); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0086 88 DEF_STATIC_CONST_VAL_FLOAT(val_2360, 87.816597); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0085 89 DEF_STATIC_CONST_VAL_FLOAT(val_2361, 80.072502); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0084 90 DEF_STATIC_CONST_VAL_FLOAT(val_2362, 81.298500); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0091 93 DEF_STATIC_CONST_VAL_FLOAT(val_2363, 81.278297); #define CTNODE_cmu_us_rms_f0_iy_92_NO_0090 94 DEF_STATIC_CONST_VAL_FLOAT(val_2364, 76.339600); DEF_STATIC_CONST_VAL_FLOAT(val_2365, 0.077000); DEF_STATIC_CONST_VAL_FLOAT(val_2366, 22.200001); DEF_STATIC_CONST_VAL_FLOAT(val_2367, 80.100800); #define CTNODE_cmu_us_rms_f0_iy_93_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_2368, 83.985199); #define CTNODE_cmu_us_rms_f0_iy_93_NO_0002 6 DEF_STATIC_CONST_VAL_FLOAT(val_2369, 93.202103); #define CTNODE_cmu_us_rms_f0_iy_93_NO_0001 7 DEF_STATIC_CONST_VAL_FLOAT(val_2370, 0.975000); DEF_STATIC_CONST_VAL_FLOAT(val_2371, 71.097801); #define CTNODE_cmu_us_rms_f0_iy_93_NO_0007 9 DEF_STATIC_CONST_VAL_FLOAT(val_2372, 79.293999); #define CTNODE_cmu_us_rms_f0_iy_93_NO_0000 10 DEF_STATIC_CONST_VAL_FLOAT(val_2373, 105.363998); #define CTNODE_cmu_us_rms_f0_iy_93_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_2374, 116.875999); #define CTNODE_cmu_us_rms_f0_iy_93_NO_0010 14 DEF_STATIC_CONST_VAL_FLOAT(val_2375, 26.100000); DEF_STATIC_CONST_VAL_FLOAT(val_2376, 93.516502); #define CTNODE_cmu_us_rms_f0_iy_93_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_2377, 83.444702); #define CTNODE_cmu_us_rms_f0_iy_93_NO_0016 20 DEF_STATIC_CONST_VAL_FLOAT(val_2378, 98.737602); #define CTNODE_cmu_us_rms_f0_iy_93_NO_0023 25 DEF_STATIC_CONST_VAL_FLOAT(val_2379, 92.522202); #define CTNODE_cmu_us_rms_f0_iy_93_NO_0022 26 DEF_STATIC_CONST_VAL_FLOAT(val_2380, 88.885597); #define CTNODE_cmu_us_rms_f0_iy_93_NO_0021 27 DEF_STATIC_CONST_VAL_FLOAT(val_2381, 85.582603); #define CTNODE_cmu_us_rms_f0_iy_93_NO_0020 28 DEF_STATIC_CONST_VAL_FLOAT(val_2382, 98.547203); #define CTNODE_cmu_us_rms_f0_iy_93_NO_0015 29 DEF_STATIC_CONST_VAL_FLOAT(val_2383, 0.645187); DEF_STATIC_CONST_VAL_FLOAT(val_2384, 95.814697); #define CTNODE_cmu_us_rms_f0_iy_93_NO_0030 32 DEF_STATIC_CONST_VAL_FLOAT(val_2385, 85.612701); #define CTNODE_cmu_us_rms_f0_iy_93_NO_0029 33 DEF_STATIC_CONST_VAL_FLOAT(val_2386, 92.167000); #define CTNODE_cmu_us_rms_f0_iy_93_NO_0034 36 DEF_STATIC_CONST_VAL_FLOAT(val_2387, 102.818001); #define CTNODE_cmu_us_rms_f0_iy_93_NO_0033 37 DEF_STATIC_CONST_VAL_FLOAT(val_2388, 22.700001); DEF_STATIC_CONST_VAL_FLOAT(val_2389, 105.383003); #define CTNODE_cmu_us_rms_f0_iy_93_NO_0037 39 DEF_STATIC_CONST_VAL_FLOAT(val_2390, 98.787598); #define CTNODE_cmu_us_rms_f0_iy_93_NO_0014 40 DEF_STATIC_CONST_VAL_FLOAT(val_2391, 111.573997); DEF_STATIC_CONST_VAL_FLOAT(val_2392, 0.076000); DEF_STATIC_CONST_VAL_FLOAT(val_2393, 91.577301); #define CTNODE_cmu_us_rms_f0_l_106_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_2394, 80.707901); #define CTNODE_cmu_us_rms_f0_l_106_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_2395, 87.409302); #define CTNODE_cmu_us_rms_f0_l_106_NO_0002 8 DEF_STATIC_CONST_VAL_FLOAT(val_2396, 111.357002); #define CTNODE_cmu_us_rms_f0_l_106_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_2397, 0.061000); DEF_STATIC_CONST_VAL_FLOAT(val_2398, 0.480964); DEF_STATIC_CONST_VAL_FLOAT(val_2399, 113.731003); #define CTNODE_cmu_us_rms_f0_l_106_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_2400, 97.127998); #define CTNODE_cmu_us_rms_f0_l_106_NO_0011 15 DEF_STATIC_CONST_VAL_FLOAT(val_2401, 92.768600); #define CTNODE_cmu_us_rms_f0_l_106_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_2402, 94.105301); #define CTNODE_cmu_us_rms_f0_l_106_NO_0018 20 #define CTNODE_cmu_us_rms_f0_l_106_NO_0017 21 DEF_STATIC_CONST_VAL_FLOAT(val_2403, 0.364383); DEF_STATIC_CONST_VAL_FLOAT(val_2404, 108.477997); #define CTNODE_cmu_us_rms_f0_l_106_NO_0021 23 DEF_STATIC_CONST_VAL_FLOAT(val_2405, 93.125999); #define CTNODE_cmu_us_rms_f0_l_106_NO_0023 25 DEF_STATIC_CONST_VAL_FLOAT(val_2406, 97.730103); #define CTNODE_cmu_us_rms_f0_l_106_NO_0010 26 DEF_STATIC_CONST_VAL_FLOAT(val_2407, 0.607314); DEF_STATIC_CONST_VAL_FLOAT(val_2408, 93.135201); #define CTNODE_cmu_us_rms_f0_l_106_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_2409, 100.025002); #define CTNODE_cmu_us_rms_f0_l_106_NO_0026 30 DEF_STATIC_CONST_VAL_FLOAT(val_2410, 90.132896); #define CTNODE_cmu_us_rms_f0_l_106_NO_0001 31 DEF_STATIC_CONST_VAL_FLOAT(val_2411, 0.031500); DEF_STATIC_CONST_VAL_FLOAT(val_2412, 110.630997); #define CTNODE_cmu_us_rms_f0_l_106_NO_0032 34 DEF_STATIC_CONST_VAL_FLOAT(val_2413, 95.963600); #define CTNODE_cmu_us_rms_f0_l_106_NO_0031 35 DEF_STATIC_CONST_VAL_FLOAT(val_2414, 113.161003); #define CTNODE_cmu_us_rms_f0_l_106_NO_0035 37 DEF_STATIC_CONST_VAL_FLOAT(val_2415, 122.511002); #define CTNODE_cmu_us_rms_f0_l_106_NO_0000 38 DEF_STATIC_CONST_VAL_FLOAT(val_2416, 86.924202); #define CTNODE_cmu_us_rms_f0_l_106_NO_0039 41 DEF_STATIC_CONST_VAL_FLOAT(val_2417, 0.242000); DEF_STATIC_CONST_VAL_FLOAT(val_2418, 0.973708); DEF_STATIC_CONST_VAL_FLOAT(val_2419, 83.056702); #define CTNODE_cmu_us_rms_f0_l_106_NO_0044 46 DEF_STATIC_CONST_VAL_FLOAT(val_2420, 76.186699); #define CTNODE_cmu_us_rms_f0_l_106_NO_0043 47 DEF_STATIC_CONST_VAL_FLOAT(val_2421, 71.909599); #define CTNODE_cmu_us_rms_f0_l_106_NO_0042 48 DEF_STATIC_CONST_VAL_FLOAT(val_2422, 72.507698); #define CTNODE_cmu_us_rms_f0_l_106_NO_0041 49 DEF_STATIC_CONST_VAL_FLOAT(val_2423, 84.708801); #define CTNODE_cmu_us_rms_f0_l_106_NO_0038 50 DEF_STATIC_CONST_VAL_FLOAT(val_2424, 86.672401); #define CTNODE_cmu_us_rms_f0_l_106_NO_0054 56 DEF_STATIC_CONST_VAL_FLOAT(val_2425, 81.991096); #define CTNODE_cmu_us_rms_f0_l_106_NO_0053 57 DEF_STATIC_CONST_VAL_FLOAT(val_2426, 94.849297); #define CTNODE_cmu_us_rms_f0_l_106_NO_0052 58 DEF_STATIC_CONST_VAL_FLOAT(val_2427, 101.738998); #define CTNODE_cmu_us_rms_f0_l_106_NO_0051 59 DEF_STATIC_CONST_VAL_FLOAT(val_2428, 93.159599); #define CTNODE_cmu_us_rms_f0_l_106_NO_0059 61 DEF_STATIC_CONST_VAL_FLOAT(val_2429, 0.574010); DEF_STATIC_CONST_VAL_FLOAT(val_2430, 92.197701); #define CTNODE_cmu_us_rms_f0_l_106_NO_0062 64 DEF_STATIC_CONST_VAL_FLOAT(val_2431, 86.583397); #define CTNODE_cmu_us_rms_f0_l_106_NO_0061 65 DEF_STATIC_CONST_VAL_FLOAT(val_2432, 86.571800); #define CTNODE_cmu_us_rms_f0_l_106_NO_0065 67 DEF_STATIC_CONST_VAL_FLOAT(val_2433, 0.188235); DEF_STATIC_CONST_VAL_FLOAT(val_2434, 82.645599); #define CTNODE_cmu_us_rms_f0_l_106_NO_0067 69 DEF_STATIC_CONST_VAL_FLOAT(val_2435, 81.153503); #define CTNODE_cmu_us_rms_f0_l_106_NO_0069 71 DEF_STATIC_CONST_VAL_FLOAT(val_2436, 77.909302); #define CTNODE_cmu_us_rms_f0_l_106_NO_0050 72 DEF_STATIC_CONST_VAL_FLOAT(val_2437, 103.350998); #define CTNODE_cmu_us_rms_f0_l_106_NO_0072 74 DEF_STATIC_CONST_VAL_FLOAT(val_2438, 100.196999); #define CTNODE_cmu_us_rms_f0_l_106_NO_0074 76 DEF_STATIC_CONST_VAL_FLOAT(val_2439, 93.176598); #define CTNODE_cmu_us_rms_f0_l_106_NO_0076 78 DEF_STATIC_CONST_VAL_FLOAT(val_2440, 86.075897); DEF_STATIC_CONST_VAL_FLOAT(val_2441, 1.094000); DEF_STATIC_CONST_VAL_FLOAT(val_2442, 0.344000); DEF_STATIC_CONST_VAL_FLOAT(val_2443, 132.462997); #define CTNODE_cmu_us_rms_f0_l_107_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_2444, 0.117000); DEF_STATIC_CONST_VAL_FLOAT(val_2445, 105.574997); #define CTNODE_cmu_us_rms_f0_l_107_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_2446, 114.669998); #define CTNODE_cmu_us_rms_f0_l_107_NO_0001 7 DEF_STATIC_CONST_VAL_FLOAT(val_2447, 0.224278); DEF_STATIC_CONST_VAL_FLOAT(val_2448, 117.346001); #define CTNODE_cmu_us_rms_f0_l_107_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_2449, 97.114998); #define CTNODE_cmu_us_rms_f0_l_107_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_2450, 99.777397); #define CTNODE_cmu_us_rms_f0_l_107_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_2451, 112.764999); #define CTNODE_cmu_us_rms_f0_l_107_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_2452, 102.527000); #define CTNODE_cmu_us_rms_f0_l_107_NO_0008 18 DEF_STATIC_CONST_VAL_FLOAT(val_2453, 104.004997); #define CTNODE_cmu_us_rms_f0_l_107_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_2454, 93.729797); #define CTNODE_cmu_us_rms_f0_l_107_NO_0007 21 DEF_STATIC_CONST_VAL_FLOAT(val_2455, 117.679001); #define CTNODE_cmu_us_rms_f0_l_107_NO_0000 22 DEF_STATIC_CONST_VAL_FLOAT(val_2456, 74.584099); #define CTNODE_cmu_us_rms_f0_l_107_NO_0024 26 DEF_STATIC_CONST_VAL_FLOAT(val_2457, 0.076000); DEF_STATIC_CONST_VAL_FLOAT(val_2458, 81.623299); #define CTNODE_cmu_us_rms_f0_l_107_NO_0026 28 DEF_STATIC_CONST_VAL_FLOAT(val_2459, 86.014297); #define CTNODE_cmu_us_rms_f0_l_107_NO_0023 29 DEF_STATIC_CONST_VAL_STRING(val_2460, "ih"); DEF_STATIC_CONST_VAL_FLOAT(val_2461, 95.729500); #define CTNODE_cmu_us_rms_f0_l_107_NO_0030 32 DEF_STATIC_CONST_VAL_FLOAT(val_2462, 0.493611); DEF_STATIC_CONST_VAL_FLOAT(val_2463, 93.944801); #define CTNODE_cmu_us_rms_f0_l_107_NO_0034 36 DEF_STATIC_CONST_VAL_FLOAT(val_2464, 87.975502); #define CTNODE_cmu_us_rms_f0_l_107_NO_0033 37 DEF_STATIC_CONST_VAL_FLOAT(val_2465, 98.535896); #define CTNODE_cmu_us_rms_f0_l_107_NO_0032 38 DEF_STATIC_CONST_VAL_FLOAT(val_2466, 2.940000); DEF_STATIC_CONST_VAL_FLOAT(val_2467, 93.084801); #define CTNODE_cmu_us_rms_f0_l_107_NO_0039 41 DEF_STATIC_CONST_VAL_FLOAT(val_2468, 87.922096); #define CTNODE_cmu_us_rms_f0_l_107_NO_0038 42 DEF_STATIC_CONST_VAL_FLOAT(val_2469, 89.564301); #define CTNODE_cmu_us_rms_f0_l_107_NO_0042 44 DEF_STATIC_CONST_VAL_FLOAT(val_2470, 0.017500); DEF_STATIC_CONST_VAL_FLOAT(val_2471, 86.126404); #define CTNODE_cmu_us_rms_f0_l_107_NO_0044 46 DEF_STATIC_CONST_VAL_FLOAT(val_2472, 87.757896); #define CTNODE_cmu_us_rms_f0_l_107_NO_0029 47 DEF_STATIC_CONST_VAL_FLOAT(val_2473, 84.384697); #define CTNODE_cmu_us_rms_f0_l_107_NO_0022 48 DEF_STATIC_CONST_VAL_FLOAT(val_2474, 1.522500); DEF_STATIC_CONST_VAL_FLOAT(val_2475, 95.612198); #define CTNODE_cmu_us_rms_f0_l_107_NO_0049 51 DEF_STATIC_CONST_VAL_FLOAT(val_2476, 83.997498); #define CTNODE_cmu_us_rms_f0_l_107_NO_0051 53 DEF_STATIC_CONST_VAL_FLOAT(val_2477, 92.321999); #define CTNODE_cmu_us_rms_f0_l_107_NO_0053 55 DEF_STATIC_CONST_VAL_FLOAT(val_2478, 87.376602); #define CTNODE_cmu_us_rms_f0_l_107_NO_0048 56 DEF_STATIC_CONST_VAL_FLOAT(val_2479, 0.848074); DEF_STATIC_CONST_VAL_STRING(val_2480, "uw"); DEF_STATIC_CONST_VAL_FLOAT(val_2481, 108.815002); #define CTNODE_cmu_us_rms_f0_l_107_NO_0058 60 DEF_STATIC_CONST_VAL_STRING(val_2482, "ow"); DEF_STATIC_CONST_VAL_FLOAT(val_2483, 105.691002); #define CTNODE_cmu_us_rms_f0_l_107_NO_0060 62 DEF_STATIC_CONST_VAL_FLOAT(val_2484, 0.109000); DEF_STATIC_CONST_VAL_FLOAT(val_2485, 0.425388); DEF_STATIC_CONST_VAL_FLOAT(val_2486, 100.801003); #define CTNODE_cmu_us_rms_f0_l_107_NO_0063 65 DEF_STATIC_CONST_VAL_FLOAT(val_2487, 97.763000); #define CTNODE_cmu_us_rms_f0_l_107_NO_0065 67 DEF_STATIC_CONST_VAL_FLOAT(val_2488, 93.880600); #define CTNODE_cmu_us_rms_f0_l_107_NO_0062 68 DEF_STATIC_CONST_VAL_FLOAT(val_2489, 0.008500); DEF_STATIC_CONST_VAL_FLOAT(val_2490, 89.713997); #define CTNODE_cmu_us_rms_f0_l_107_NO_0068 70 DEF_STATIC_CONST_VAL_FLOAT(val_2491, 95.028801); #define CTNODE_cmu_us_rms_f0_l_107_NO_0057 71 DEF_STATIC_CONST_VAL_FLOAT(val_2492, 84.620598); #define CTNODE_cmu_us_rms_f0_l_107_NO_0056 72 DEF_STATIC_CONST_VAL_FLOAT(val_2493, 2.800000); DEF_STATIC_CONST_VAL_FLOAT(val_2494, 115.929001); #define CTNODE_cmu_us_rms_f0_l_107_NO_0072 74 DEF_STATIC_CONST_VAL_FLOAT(val_2495, 102.758003); DEF_STATIC_CONST_VAL_FLOAT(val_2496, 78.587097); #define CTNODE_cmu_us_rms_f0_l_108_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_2497, 85.088402); #define CTNODE_cmu_us_rms_f0_l_108_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_2498, 91.693901); #define CTNODE_cmu_us_rms_f0_l_108_NO_0003 7 DEF_STATIC_CONST_VAL_FLOAT(val_2499, 90.250900); #define CTNODE_cmu_us_rms_f0_l_108_NO_0007 9 DEF_STATIC_CONST_VAL_FLOAT(val_2500, 94.173698); #define CTNODE_cmu_us_rms_f0_l_108_NO_0000 10 DEF_STATIC_CONST_VAL_FLOAT(val_2501, 122.126999); #define CTNODE_cmu_us_rms_f0_l_108_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_2502, 0.087337); DEF_STATIC_CONST_VAL_FLOAT(val_2503, 112.073997); #define CTNODE_cmu_us_rms_f0_l_108_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_2504, 102.544998); #define CTNODE_cmu_us_rms_f0_l_108_NO_0010 16 DEF_STATIC_CONST_VAL_FLOAT(val_2505, 0.202761); DEF_STATIC_CONST_VAL_FLOAT(val_2506, 118.633003); #define CTNODE_cmu_us_rms_f0_l_108_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_2507, 107.212997); #define CTNODE_cmu_us_rms_f0_l_108_NO_0019 21 DEF_STATIC_CONST_VAL_FLOAT(val_2508, 0.538756); DEF_STATIC_CONST_VAL_FLOAT(val_2509, 102.561996); #define CTNODE_cmu_us_rms_f0_l_108_NO_0021 23 DEF_STATIC_CONST_VAL_FLOAT(val_2510, 94.202003); #define CTNODE_cmu_us_rms_f0_l_108_NO_0016 24 DEF_STATIC_CONST_VAL_FLOAT(val_2511, 0.033000); DEF_STATIC_CONST_VAL_FLOAT(val_2512, 0.297166); DEF_STATIC_CONST_VAL_FLOAT(val_2513, 110.069000); #define CTNODE_cmu_us_rms_f0_l_108_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_2514, 96.275703); #define CTNODE_cmu_us_rms_f0_l_108_NO_0029 31 DEF_STATIC_CONST_VAL_FLOAT(val_2515, 93.362099); #define CTNODE_cmu_us_rms_f0_l_108_NO_0026 32 DEF_STATIC_CONST_VAL_FLOAT(val_2516, 105.560997); #define CTNODE_cmu_us_rms_f0_l_108_NO_0032 34 DEF_STATIC_CONST_VAL_FLOAT(val_2517, 112.335999); #define CTNODE_cmu_us_rms_f0_l_108_NO_0025 35 DEF_STATIC_CONST_VAL_FLOAT(val_2518, 96.374199); #define CTNODE_cmu_us_rms_f0_l_108_NO_0036 38 DEF_STATIC_CONST_VAL_FLOAT(val_2519, 86.685898); #define CTNODE_cmu_us_rms_f0_l_108_NO_0035 39 DEF_STATIC_CONST_VAL_FLOAT(val_2520, 94.557999); #define CTNODE_cmu_us_rms_f0_l_108_NO_0039 41 DEF_STATIC_CONST_VAL_FLOAT(val_2521, 97.803299); #define CTNODE_cmu_us_rms_f0_l_108_NO_0041 43 DEF_STATIC_CONST_VAL_FLOAT(val_2522, 102.523003); #define CTNODE_cmu_us_rms_f0_l_108_NO_0024 44 DEF_STATIC_CONST_VAL_FLOAT(val_2523, 85.599098); #define CTNODE_cmu_us_rms_f0_l_108_NO_0044 46 DEF_STATIC_CONST_VAL_FLOAT(val_2524, 0.584304); DEF_STATIC_CONST_VAL_FLOAT(val_2525, 0.330802); DEF_STATIC_CONST_VAL_FLOAT(val_2526, 105.925003); #define CTNODE_cmu_us_rms_f0_l_108_NO_0047 49 DEF_STATIC_CONST_VAL_FLOAT(val_2527, 97.894096); #define CTNODE_cmu_us_rms_f0_l_108_NO_0046 50 DEF_STATIC_CONST_VAL_FLOAT(val_2528, 84.782799); DEF_STATIC_CONST_VAL_FLOAT(val_2529, 101.707001); #define CTNODE_cmu_us_rms_f0_z_199_NO_0000 2 DEF_STATIC_CONST_VAL_FLOAT(val_2530, 83.769600); #define CTNODE_cmu_us_rms_f0_z_199_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_2531, 96.685997); #define CTNODE_cmu_us_rms_f0_z_199_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_2532, 0.045500); DEF_STATIC_CONST_VAL_FLOAT(val_2533, 0.487175); DEF_STATIC_CONST_VAL_FLOAT(val_2534, 91.704002); #define CTNODE_cmu_us_rms_f0_z_199_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_2535, 86.549103); #define CTNODE_cmu_us_rms_f0_z_199_NO_0008 12 DEF_STATIC_CONST_VAL_STRING(val_2536, "pps"); DEF_STATIC_CONST_VAL_FLOAT(val_2537, 90.224098); #define CTNODE_cmu_us_rms_f0_z_199_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_2538, 94.468002); #define CTNODE_cmu_us_rms_f0_z_199_NO_0007 15 DEF_STATIC_CONST_VAL_FLOAT(val_2539, 89.640297); #define CTNODE_cmu_us_rms_f0_z_199_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_2540, 88.301300); #define CTNODE_cmu_us_rms_f0_z_199_NO_0016 20 DEF_STATIC_CONST_VAL_FLOAT(val_2541, 86.116302); #define CTNODE_cmu_us_rms_f0_z_199_NO_0015 21 DEF_STATIC_CONST_VAL_FLOAT(val_2542, 90.702003); #define CTNODE_cmu_us_rms_f0_z_199_NO_0006 22 DEF_STATIC_CONST_VAL_FLOAT(val_2543, 97.679199); #define CTNODE_cmu_us_rms_f0_z_199_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_2544, 89.755699); DEF_STATIC_CONST_VAL_FLOAT(val_2545, 3.197000); DEF_STATIC_CONST_VAL_FLOAT(val_2546, 0.138000); DEF_STATIC_CONST_VAL_FLOAT(val_2547, 79.677696); #define CTNODE_cmu_us_rms_f0_z_200_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_2548, 73.569298); #define CTNODE_cmu_us_rms_f0_z_200_NO_0002 6 DEF_STATIC_CONST_VAL_FLOAT(val_2549, 86.397400); #define CTNODE_cmu_us_rms_f0_z_200_NO_0001 7 DEF_STATIC_CONST_VAL_FLOAT(val_2550, 3.751000); DEF_STATIC_CONST_VAL_FLOAT(val_2551, 98.411301); #define CTNODE_cmu_us_rms_f0_z_200_NO_0007 9 DEF_STATIC_CONST_VAL_FLOAT(val_2552, 4.191000); DEF_STATIC_CONST_VAL_FLOAT(val_2553, 79.192101); #define CTNODE_cmu_us_rms_f0_z_200_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_2554, 89.115097); #define CTNODE_cmu_us_rms_f0_z_200_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_2555, 99.115196); #define CTNODE_cmu_us_rms_f0_z_200_NO_0000 14 DEF_STATIC_CONST_VAL_FLOAT(val_2556, 1.167000); DEF_STATIC_CONST_VAL_FLOAT(val_2557, 95.882797); #define CTNODE_cmu_us_rms_f0_z_200_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_2558, 101.796997); #define CTNODE_cmu_us_rms_f0_z_200_NO_0017 21 DEF_STATIC_CONST_VAL_FLOAT(val_2559, 110.780998); #define CTNODE_cmu_us_rms_f0_z_200_NO_0016 22 DEF_STATIC_CONST_VAL_FLOAT(val_2560, 92.261398); #define CTNODE_cmu_us_rms_f0_z_200_NO_0023 25 DEF_STATIC_CONST_VAL_FLOAT(val_2561, 95.359802); #define CTNODE_cmu_us_rms_f0_z_200_NO_0022 26 DEF_STATIC_CONST_VAL_FLOAT(val_2562, 94.915298); #define CTNODE_cmu_us_rms_f0_z_200_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_2563, 98.134399); #define CTNODE_cmu_us_rms_f0_z_200_NO_0026 30 DEF_STATIC_CONST_VAL_FLOAT(val_2564, 99.758003); #define CTNODE_cmu_us_rms_f0_z_200_NO_0015 31 DEF_STATIC_CONST_VAL_FLOAT(val_2565, 102.721001); #define CTNODE_cmu_us_rms_f0_z_200_NO_0031 33 DEF_STATIC_CONST_VAL_FLOAT(val_2566, 89.398903); #define CTNODE_cmu_us_rms_f0_z_200_NO_0035 37 DEF_STATIC_CONST_VAL_FLOAT(val_2567, 86.444298); #define CTNODE_cmu_us_rms_f0_z_200_NO_0034 38 DEF_STATIC_CONST_VAL_FLOAT(val_2568, 88.631599); #define CTNODE_cmu_us_rms_f0_z_200_NO_0038 40 DEF_STATIC_CONST_VAL_FLOAT(val_2569, 95.984001); #define CTNODE_cmu_us_rms_f0_z_200_NO_0040 42 DEF_STATIC_CONST_VAL_FLOAT(val_2570, 91.709999); #define CTNODE_cmu_us_rms_f0_z_200_NO_0033 43 DEF_STATIC_CONST_VAL_FLOAT(val_2571, 0.063000); DEF_STATIC_CONST_VAL_FLOAT(val_2572, 89.428596); #define CTNODE_cmu_us_rms_f0_z_200_NO_0044 46 DEF_STATIC_CONST_VAL_FLOAT(val_2573, 91.520401); #define CTNODE_cmu_us_rms_f0_z_200_NO_0046 48 DEF_STATIC_CONST_VAL_FLOAT(val_2574, 97.190102); #define CTNODE_cmu_us_rms_f0_z_200_NO_0043 49 DEF_STATIC_CONST_VAL_FLOAT(val_2575, 93.898102); #define CTNODE_cmu_us_rms_f0_z_200_NO_0050 52 DEF_STATIC_CONST_VAL_FLOAT(val_2576, 96.856003); #define CTNODE_cmu_us_rms_f0_z_200_NO_0049 53 DEF_STATIC_CONST_VAL_FLOAT(val_2577, 100.448997); #define CTNODE_cmu_us_rms_f0_z_200_NO_0014 54 DEF_STATIC_CONST_VAL_FLOAT(val_2578, 91.929497); #define CTNODE_cmu_us_rms_f0_z_200_NO_0055 57 DEF_STATIC_CONST_VAL_FLOAT(val_2579, 99.310204); #define CTNODE_cmu_us_rms_f0_z_200_NO_0059 61 DEF_STATIC_CONST_VAL_FLOAT(val_2580, 12.400000); DEF_STATIC_CONST_VAL_FLOAT(val_2581, 104.143997); #define CTNODE_cmu_us_rms_f0_z_200_NO_0061 63 DEF_STATIC_CONST_VAL_FLOAT(val_2582, 109.684998); #define CTNODE_cmu_us_rms_f0_z_200_NO_0058 64 DEF_STATIC_CONST_VAL_FLOAT(val_2583, 114.089996); #define CTNODE_cmu_us_rms_f0_z_200_NO_0057 65 DEF_STATIC_CONST_VAL_FLOAT(val_2584, 0.059000); DEF_STATIC_CONST_VAL_FLOAT(val_2585, 93.755997); #define CTNODE_cmu_us_rms_f0_z_200_NO_0065 67 DEF_STATIC_CONST_VAL_FLOAT(val_2586, 0.715915); DEF_STATIC_CONST_VAL_FLOAT(val_2587, 109.606003); #define CTNODE_cmu_us_rms_f0_z_200_NO_0069 71 DEF_STATIC_CONST_VAL_FLOAT(val_2588, 102.557999); #define CTNODE_cmu_us_rms_f0_z_200_NO_0068 72 DEF_STATIC_CONST_VAL_FLOAT(val_2589, 100.015999); #define CTNODE_cmu_us_rms_f0_z_200_NO_0067 73 DEF_STATIC_CONST_VAL_FLOAT(val_2590, 95.457497); #define CTNODE_cmu_us_rms_f0_z_200_NO_0074 76 DEF_STATIC_CONST_VAL_FLOAT(val_2591, 92.666100); #define CTNODE_cmu_us_rms_f0_z_200_NO_0073 77 DEF_STATIC_CONST_VAL_FLOAT(val_2592, 104.153000); #define CTNODE_cmu_us_rms_f0_z_200_NO_0054 78 DEF_STATIC_CONST_VAL_FLOAT(val_2593, 1.566500); DEF_STATIC_CONST_VAL_FLOAT(val_2594, 105.990997); #define CTNODE_cmu_us_rms_f0_z_200_NO_0080 82 DEF_STATIC_CONST_VAL_FLOAT(val_2595, 112.776001); #define CTNODE_cmu_us_rms_f0_z_200_NO_0079 83 DEF_STATIC_CONST_VAL_FLOAT(val_2596, 101.078003); #define CTNODE_cmu_us_rms_f0_z_200_NO_0083 85 DEF_STATIC_CONST_VAL_FLOAT(val_2597, 101.555000); #define CTNODE_cmu_us_rms_f0_z_200_NO_0078 86 DEF_STATIC_CONST_VAL_FLOAT(val_2598, 115.359001); DEF_STATIC_CONST_VAL_FLOAT(val_2599, 80.784599); #define CTNODE_cmu_us_rms_f0_z_201_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_2600, 87.984596); #define CTNODE_cmu_us_rms_f0_z_201_NO_0000 4 DEF_STATIC_CONST_VAL_FLOAT(val_2601, 87.801804); #define CTNODE_cmu_us_rms_f0_z_201_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_2602, 95.407997); #define CTNODE_cmu_us_rms_f0_z_201_NO_0005 9 DEF_STATIC_CONST_VAL_FLOAT(val_2603, 0.027000); DEF_STATIC_CONST_VAL_FLOAT(val_2604, 101.564003); #define CTNODE_cmu_us_rms_f0_z_201_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_2605, 94.616203); #define CTNODE_cmu_us_rms_f0_z_201_NO_0009 13 DEF_STATIC_CONST_VAL_FLOAT(val_2606, 0.481773); DEF_STATIC_CONST_VAL_FLOAT(val_2607, 110.137001); #define CTNODE_cmu_us_rms_f0_z_201_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_2608, 98.979599); #define CTNODE_cmu_us_rms_f0_z_201_NO_0004 16 DEF_STATIC_CONST_VAL_FLOAT(val_2609, 1.300000); DEF_STATIC_CONST_VAL_FLOAT(val_2610, 108.110001); #define CTNODE_cmu_us_rms_f0_z_201_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_2611, 117.617996); #define CTNODE_cmu_us_rms_f0_z_201_NO_0017 21 DEF_STATIC_CONST_VAL_FLOAT(val_2612, 98.768700); #define CTNODE_cmu_us_rms_f0_z_201_NO_0016 22 DEF_STATIC_CONST_VAL_FLOAT(val_2613, 118.751999); DEF_STATIC_CONST_VAL_FLOAT(val_2614, 92.269798); #define CTNODE_cmu_us_rms_f0_s_151_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_2615, 0.075500); DEF_STATIC_CONST_VAL_FLOAT(val_2616, 81.032303); #define CTNODE_cmu_us_rms_f0_s_151_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_2617, 74.671600); #define CTNODE_cmu_us_rms_f0_s_151_NO_0005 9 DEF_STATIC_CONST_VAL_FLOAT(val_2618, 92.022797); #define CTNODE_cmu_us_rms_f0_s_151_NO_0004 10 DEF_STATIC_CONST_VAL_FLOAT(val_2619, 78.546303); #define CTNODE_cmu_us_rms_f0_s_151_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_2620, 63.872601); #define CTNODE_cmu_us_rms_f0_s_151_NO_0001 13 DEF_STATIC_CONST_VAL_FLOAT(val_2621, 6.000000); DEF_STATIC_CONST_VAL_FLOAT(val_2622, 90.389503); #define CTNODE_cmu_us_rms_f0_s_151_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_2623, 94.507599); #define CTNODE_cmu_us_rms_f0_s_151_NO_0014 18 DEF_STATIC_CONST_VAL_FLOAT(val_2624, 98.102699); #define CTNODE_cmu_us_rms_f0_s_151_NO_0013 19 #define CTNODE_cmu_us_rms_f0_s_151_NO_0019 21 DEF_STATIC_CONST_VAL_FLOAT(val_2625, 111.620003); #define CTNODE_cmu_us_rms_f0_s_151_NO_0000 22 DEF_STATIC_CONST_VAL_FLOAT(val_2626, 0.077272); DEF_STATIC_CONST_VAL_FLOAT(val_2627, 136.380005); #define CTNODE_cmu_us_rms_f0_s_151_NO_0024 26 DEF_STATIC_CONST_VAL_FLOAT(val_2628, 140.091995); #define CTNODE_cmu_us_rms_f0_s_151_NO_0023 27 DEF_STATIC_CONST_VAL_FLOAT(val_2629, 124.011002); #define CTNODE_cmu_us_rms_f0_s_151_NO_0022 28 DEF_STATIC_CONST_VAL_FLOAT(val_2630, 0.376000); DEF_STATIC_CONST_VAL_FLOAT(val_2631, 121.877998); #define CTNODE_cmu_us_rms_f0_s_151_NO_0032 34 DEF_STATIC_CONST_VAL_FLOAT(val_2632, 107.303001); #define CTNODE_cmu_us_rms_f0_s_151_NO_0031 35 DEF_STATIC_CONST_VAL_FLOAT(val_2633, 24.200001); DEF_STATIC_CONST_VAL_FLOAT(val_2634, 112.019997); #define CTNODE_cmu_us_rms_f0_s_151_NO_0036 38 DEF_STATIC_CONST_VAL_FLOAT(val_2635, 106.206001); #define CTNODE_cmu_us_rms_f0_s_151_NO_0035 39 DEF_STATIC_CONST_VAL_FLOAT(val_2636, 99.585503); #define CTNODE_cmu_us_rms_f0_s_151_NO_0030 40 DEF_STATIC_CONST_VAL_FLOAT(val_2637, 99.403297); #define CTNODE_cmu_us_rms_f0_s_151_NO_0029 41 DEF_STATIC_CONST_VAL_FLOAT(val_2638, 115.485001); #define CTNODE_cmu_us_rms_f0_s_151_NO_0042 44 DEF_STATIC_CONST_VAL_FLOAT(val_2639, 104.885002); #define CTNODE_cmu_us_rms_f0_s_151_NO_0041 45 DEF_STATIC_CONST_VAL_FLOAT(val_2640, 0.187500); DEF_STATIC_CONST_VAL_FLOAT(val_2641, 0.374644); DEF_STATIC_CONST_VAL_FLOAT(val_2642, 95.003098); #define CTNODE_cmu_us_rms_f0_s_151_NO_0047 49 DEF_STATIC_CONST_VAL_FLOAT(val_2643, 86.620201); #define CTNODE_cmu_us_rms_f0_s_151_NO_0049 51 DEF_STATIC_CONST_VAL_FLOAT(val_2644, 89.653999); #define CTNODE_cmu_us_rms_f0_s_151_NO_0046 52 DEF_STATIC_CONST_VAL_FLOAT(val_2645, 25.500000); DEF_STATIC_CONST_VAL_FLOAT(val_2646, 0.302423); #define CTNODE_cmu_us_rms_f0_s_151_NO_0055 57 DEF_STATIC_CONST_VAL_FLOAT(val_2647, 96.989601); #define CTNODE_cmu_us_rms_f0_s_151_NO_0054 58 DEF_STATIC_CONST_VAL_FLOAT(val_2648, 109.072998); #define CTNODE_cmu_us_rms_f0_s_151_NO_0053 59 DEF_STATIC_CONST_VAL_FLOAT(val_2649, 0.051000); DEF_STATIC_CONST_VAL_FLOAT(val_2650, 97.855797); #define CTNODE_cmu_us_rms_f0_s_151_NO_0061 63 DEF_STATIC_CONST_VAL_FLOAT(val_2651, 102.542000); #define CTNODE_cmu_us_rms_f0_s_151_NO_0060 64 DEF_STATIC_CONST_VAL_FLOAT(val_2652, 97.072304); #define CTNODE_cmu_us_rms_f0_s_151_NO_0064 66 DEF_STATIC_CONST_VAL_FLOAT(val_2653, 93.355301); #define CTNODE_cmu_us_rms_f0_s_151_NO_0059 67 DEF_STATIC_CONST_VAL_FLOAT(val_2654, 92.505096); #define CTNODE_cmu_us_rms_f0_s_151_NO_0052 68 DEF_STATIC_CONST_VAL_FLOAT(val_2655, 97.453499); #define CTNODE_cmu_us_rms_f0_s_151_NO_0068 70 DEF_STATIC_CONST_VAL_FLOAT(val_2656, 28.100000); DEF_STATIC_CONST_VAL_FLOAT(val_2657, 95.463303); #define CTNODE_cmu_us_rms_f0_s_151_NO_0070 72 DEF_STATIC_CONST_VAL_FLOAT(val_2658, 90.387497); #define CTNODE_cmu_us_rms_f0_s_151_NO_0045 73 DEF_STATIC_CONST_VAL_FLOAT(val_2659, 0.417534); DEF_STATIC_CONST_VAL_FLOAT(val_2660, 107.335999); #define CTNODE_cmu_us_rms_f0_s_151_NO_0075 77 DEF_STATIC_CONST_VAL_FLOAT(val_2661, 99.259003); #define CTNODE_cmu_us_rms_f0_s_151_NO_0074 78 DEF_STATIC_CONST_VAL_FLOAT(val_2662, 93.488503); #define CTNODE_cmu_us_rms_f0_s_151_NO_0078 80 DEF_STATIC_CONST_VAL_FLOAT(val_2663, 99.386398); #define CTNODE_cmu_us_rms_f0_s_151_NO_0073 81 DEF_STATIC_CONST_VAL_FLOAT(val_2664, 100.432999); #define CTNODE_cmu_us_rms_f0_s_151_NO_0081 83 DEF_STATIC_CONST_VAL_FLOAT(val_2665, 0.450000); DEF_STATIC_CONST_VAL_FLOAT(val_2666, 101.820000); #define CTNODE_cmu_us_rms_f0_s_151_NO_0084 86 DEF_STATIC_CONST_VAL_FLOAT(val_2667, 106.896004); #define CTNODE_cmu_us_rms_f0_s_151_NO_0083 87 DEF_STATIC_CONST_VAL_FLOAT(val_2668, 109.443001); #define CTNODE_cmu_us_rms_f0_s_151_NO_0028 88 DEF_STATIC_CONST_VAL_FLOAT(val_2669, 0.603027); DEF_STATIC_CONST_VAL_FLOAT(val_2670, 120.478996); #define CTNODE_cmu_us_rms_f0_s_151_NO_0090 92 DEF_STATIC_CONST_VAL_FLOAT(val_2671, 0.511724); DEF_STATIC_CONST_VAL_FLOAT(val_2672, 110.761002); #define CTNODE_cmu_us_rms_f0_s_151_NO_0094 96 DEF_STATIC_CONST_VAL_FLOAT(val_2673, 108.499001); #define CTNODE_cmu_us_rms_f0_s_151_NO_0093 97 DEF_STATIC_CONST_VAL_FLOAT(val_2674, 113.072998); #define CTNODE_cmu_us_rms_f0_s_151_NO_0092 98 DEF_STATIC_CONST_VAL_FLOAT(val_2675, 113.667000); #define CTNODE_cmu_us_rms_f0_s_151_NO_0098 100 DEF_STATIC_CONST_VAL_FLOAT(val_2676, 117.425003); #define CTNODE_cmu_us_rms_f0_s_151_NO_0089 101 DEF_STATIC_CONST_VAL_FLOAT(val_2677, 0.739158); DEF_STATIC_CONST_VAL_FLOAT(val_2678, 124.575996); #define CTNODE_cmu_us_rms_f0_s_151_NO_0102 104 DEF_STATIC_CONST_VAL_FLOAT(val_2679, 0.401306); DEF_STATIC_CONST_VAL_FLOAT(val_2680, 122.400002); #define CTNODE_cmu_us_rms_f0_s_151_NO_0104 106 DEF_STATIC_CONST_VAL_FLOAT(val_2681, 117.731003); #define CTNODE_cmu_us_rms_f0_s_151_NO_0101 107 DEF_STATIC_CONST_VAL_FLOAT(val_2682, 21.100000); DEF_STATIC_CONST_VAL_FLOAT(val_2683, 125.200996); #define CTNODE_cmu_us_rms_f0_s_151_NO_0107 109 DEF_STATIC_CONST_VAL_FLOAT(val_2684, 130.835007); #define CTNODE_cmu_us_rms_f0_s_151_NO_0088 110 DEF_STATIC_CONST_VAL_FLOAT(val_2685, 0.475574); DEF_STATIC_CONST_VAL_FLOAT(val_2686, 0.251147); DEF_STATIC_CONST_VAL_FLOAT(val_2687, 109.581001); #define CTNODE_cmu_us_rms_f0_s_151_NO_0112 114 DEF_STATIC_CONST_VAL_FLOAT(val_2688, 98.148003); #define CTNODE_cmu_us_rms_f0_s_151_NO_0111 115 DEF_STATIC_CONST_VAL_FLOAT(val_2689, 110.623001); #define CTNODE_cmu_us_rms_f0_s_151_NO_0116 118 DEF_STATIC_CONST_VAL_FLOAT(val_2690, 116.019997); #define CTNODE_cmu_us_rms_f0_s_151_NO_0118 120 DEF_STATIC_CONST_VAL_FLOAT(val_2691, 121.875000); #define CTNODE_cmu_us_rms_f0_s_151_NO_0115 121 DEF_STATIC_CONST_VAL_FLOAT(val_2692, 107.458000); #define CTNODE_cmu_us_rms_f0_s_151_NO_0110 122 DEF_STATIC_CONST_VAL_FLOAT(val_2693, 104.203003); #define CTNODE_cmu_us_rms_f0_s_151_NO_0123 125 DEF_STATIC_CONST_VAL_FLOAT(val_2694, 92.493698); #define CTNODE_cmu_us_rms_f0_s_151_NO_0122 126 DEF_STATIC_CONST_VAL_FLOAT(val_2695, 99.546204); #define CTNODE_cmu_us_rms_f0_s_151_NO_0126 128 DEF_STATIC_CONST_VAL_FLOAT(val_2696, 104.794998); #define CTNODE_cmu_us_rms_f0_s_151_NO_0128 130 DEF_STATIC_CONST_VAL_FLOAT(val_2697, 112.599998); DEF_STATIC_CONST_VAL_FLOAT(val_2698, 15.100000); DEF_STATIC_CONST_VAL_FLOAT(val_2699, 0.633000); DEF_STATIC_CONST_VAL_FLOAT(val_2700, 126.194000); #define CTNODE_cmu_us_rms_f0_s_152_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_2701, 0.091000); DEF_STATIC_CONST_VAL_FLOAT(val_2702, 119.444000); #define CTNODE_cmu_us_rms_f0_s_152_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_2703, 106.690002); #define CTNODE_cmu_us_rms_f0_s_152_NO_0002 8 DEF_STATIC_CONST_VAL_FLOAT(val_2704, 111.209999); #define CTNODE_cmu_us_rms_f0_s_152_NO_0011 13 #define CTNODE_cmu_us_rms_f0_s_152_NO_0010 14 DEF_STATIC_CONST_VAL_FLOAT(val_2705, 100.386002); #define CTNODE_cmu_us_rms_f0_s_152_NO_0009 15 DEF_STATIC_CONST_VAL_FLOAT(val_2706, 11.500000); DEF_STATIC_CONST_VAL_FLOAT(val_2707, 117.106003); #define CTNODE_cmu_us_rms_f0_s_152_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_2708, 121.026001); #define CTNODE_cmu_us_rms_f0_s_152_NO_0016 20 DEF_STATIC_CONST_VAL_FLOAT(val_2709, 112.625000); #define CTNODE_cmu_us_rms_f0_s_152_NO_0015 21 DEF_STATIC_CONST_VAL_FLOAT(val_2710, 109.114998); #define CTNODE_cmu_us_rms_f0_s_152_NO_0008 22 DEF_STATIC_CONST_VAL_FLOAT(val_2711, 0.390789); DEF_STATIC_CONST_VAL_FLOAT(val_2712, 83.133102); #define CTNODE_cmu_us_rms_f0_s_152_NO_0024 26 DEF_STATIC_CONST_VAL_FLOAT(val_2713, 91.379700); #define CTNODE_cmu_us_rms_f0_s_152_NO_0023 27 DEF_STATIC_CONST_VAL_FLOAT(val_2714, 95.035103); #define CTNODE_cmu_us_rms_f0_s_152_NO_0028 30 DEF_STATIC_CONST_VAL_FLOAT(val_2715, 89.323997); #define CTNODE_cmu_us_rms_f0_s_152_NO_0027 31 DEF_STATIC_CONST_VAL_FLOAT(val_2716, 1.424000); #define CTNODE_cmu_us_rms_f0_s_152_NO_0032 34 DEF_STATIC_CONST_VAL_FLOAT(val_2717, 101.057999); #define CTNODE_cmu_us_rms_f0_s_152_NO_0031 35 DEF_STATIC_CONST_VAL_FLOAT(val_2718, 0.021000); DEF_STATIC_CONST_VAL_FLOAT(val_2719, 0.210069); DEF_STATIC_CONST_VAL_FLOAT(val_2720, 92.893402); #define CTNODE_cmu_us_rms_f0_s_152_NO_0036 38 DEF_STATIC_CONST_VAL_FLOAT(val_2721, 99.126900); #define CTNODE_cmu_us_rms_f0_s_152_NO_0035 39 DEF_STATIC_CONST_VAL_FLOAT(val_2722, 102.992996); #define CTNODE_cmu_us_rms_f0_s_152_NO_0022 40 DEF_STATIC_CONST_VAL_FLOAT(val_2723, 0.799232); DEF_STATIC_CONST_VAL_FLOAT(val_2724, 97.429604); #define CTNODE_cmu_us_rms_f0_s_152_NO_0042 44 DEF_STATIC_CONST_VAL_FLOAT(val_2725, 101.357002); #define CTNODE_cmu_us_rms_f0_s_152_NO_0044 46 DEF_STATIC_CONST_VAL_FLOAT(val_2726, 105.624001); #define CTNODE_cmu_us_rms_f0_s_152_NO_0046 48 #define CTNODE_cmu_us_rms_f0_s_152_NO_0041 49 DEF_STATIC_CONST_VAL_FLOAT(val_2727, 93.393700); #define CTNODE_cmu_us_rms_f0_s_152_NO_0040 50 DEF_STATIC_CONST_VAL_FLOAT(val_2728, 0.698163); #define CTNODE_cmu_us_rms_f0_s_152_NO_0051 53 DEF_STATIC_CONST_VAL_FLOAT(val_2729, 109.105003); #define CTNODE_cmu_us_rms_f0_s_152_NO_0050 54 DEF_STATIC_CONST_VAL_FLOAT(val_2730, 103.626999); #define CTNODE_cmu_us_rms_f0_s_152_NO_0001 55 DEF_STATIC_CONST_VAL_FLOAT(val_2731, 93.831200); #define CTNODE_cmu_us_rms_f0_s_152_NO_0056 58 DEF_STATIC_CONST_VAL_FLOAT(val_2732, 123.636002); #define CTNODE_cmu_us_rms_f0_s_152_NO_0058 60 DEF_STATIC_CONST_VAL_FLOAT(val_2733, 0.307741); DEF_STATIC_CONST_VAL_FLOAT(val_2734, 116.695000); #define CTNODE_cmu_us_rms_f0_s_152_NO_0060 62 DEF_STATIC_CONST_VAL_FLOAT(val_2735, 109.278000); #define CTNODE_cmu_us_rms_f0_s_152_NO_0062 64 DEF_STATIC_CONST_VAL_FLOAT(val_2736, 104.589996); #define CTNODE_cmu_us_rms_f0_s_152_NO_0055 65 DEF_STATIC_CONST_VAL_FLOAT(val_2737, 0.675500); DEF_STATIC_CONST_VAL_FLOAT(val_2738, 131.843002); #define CTNODE_cmu_us_rms_f0_s_152_NO_0067 69 DEF_STATIC_CONST_VAL_FLOAT(val_2739, 125.082001); #define CTNODE_cmu_us_rms_f0_s_152_NO_0066 70 DEF_STATIC_CONST_VAL_FLOAT(val_2740, 135.031006); #define CTNODE_cmu_us_rms_f0_s_152_NO_0065 71 DEF_STATIC_CONST_VAL_FLOAT(val_2741, 0.797841); DEF_STATIC_CONST_VAL_FLOAT(val_2742, 0.474956); DEF_STATIC_CONST_VAL_FLOAT(val_2743, 126.360001); #define CTNODE_cmu_us_rms_f0_s_152_NO_0074 76 DEF_STATIC_CONST_VAL_FLOAT(val_2744, 120.948997); #define CTNODE_cmu_us_rms_f0_s_152_NO_0073 77 DEF_STATIC_CONST_VAL_FLOAT(val_2745, 118.376999); #define CTNODE_cmu_us_rms_f0_s_152_NO_0078 80 DEF_STATIC_CONST_VAL_FLOAT(val_2746, 115.647003); #define CTNODE_cmu_us_rms_f0_s_152_NO_0077 81 DEF_STATIC_CONST_VAL_FLOAT(val_2747, 119.875999); #define CTNODE_cmu_us_rms_f0_s_152_NO_0081 83 DEF_STATIC_CONST_VAL_FLOAT(val_2748, 122.287003); #define CTNODE_cmu_us_rms_f0_s_152_NO_0072 84 DEF_STATIC_CONST_VAL_FLOAT(val_2749, 110.365997); #define CTNODE_cmu_us_rms_f0_s_152_NO_0071 85 DEF_STATIC_CONST_VAL_FLOAT(val_2750, 131.570999); #define CTNODE_cmu_us_rms_f0_s_152_NO_0085 87 DEF_STATIC_CONST_VAL_FLOAT(val_2751, 1.507000); DEF_STATIC_CONST_VAL_FLOAT(val_2752, 127.172997); #define CTNODE_cmu_us_rms_f0_s_152_NO_0087 89 DEF_STATIC_CONST_VAL_FLOAT(val_2753, 122.501999); #define CTNODE_cmu_us_rms_f0_s_152_NO_0000 90 DEF_STATIC_CONST_VAL_FLOAT(val_2754, 0.068000); #define CTNODE_cmu_us_rms_f0_s_152_NO_0092 94 DEF_STATIC_CONST_VAL_FLOAT(val_2755, 93.924301); #define CTNODE_cmu_us_rms_f0_s_152_NO_0091 95 DEF_STATIC_CONST_VAL_FLOAT(val_2756, 83.486702); #define CTNODE_cmu_us_rms_f0_s_152_NO_0095 97 DEF_STATIC_CONST_VAL_FLOAT(val_2757, 0.013000); DEF_STATIC_CONST_VAL_FLOAT(val_2758, 88.239601); #define CTNODE_cmu_us_rms_f0_s_152_NO_0097 99 DEF_STATIC_CONST_VAL_FLOAT(val_2759, 99.235703); #define CTNODE_cmu_us_rms_f0_s_152_NO_0090 100 DEF_STATIC_CONST_VAL_FLOAT(val_2760, 0.113000); DEF_STATIC_CONST_VAL_FLOAT(val_2761, 3.100000); DEF_STATIC_CONST_VAL_FLOAT(val_2762, 2.000000); DEF_STATIC_CONST_VAL_FLOAT(val_2763, 78.851303); #define CTNODE_cmu_us_rms_f0_s_152_NO_0103 105 DEF_STATIC_CONST_VAL_FLOAT(val_2764, 88.236298); #define CTNODE_cmu_us_rms_f0_s_152_NO_0102 106 DEF_STATIC_CONST_VAL_FLOAT(val_2765, 73.817802); #define CTNODE_cmu_us_rms_f0_s_152_NO_0101 107 DEF_STATIC_CONST_VAL_FLOAT(val_2766, 0.019000); DEF_STATIC_CONST_VAL_FLOAT(val_2767, 84.222900); #define CTNODE_cmu_us_rms_f0_s_152_NO_0107 109 DEF_STATIC_CONST_VAL_FLOAT(val_2768, 68.280197); #define CTNODE_cmu_us_rms_f0_s_152_NO_0100 110 DEF_STATIC_CONST_VAL_FLOAT(val_2769, 100.109001); DEF_STATIC_CONST_VAL_FLOAT(val_2770, 94.688904); #define CTNODE_cmu_us_rms_f0_s_153_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_2771, 0.997207); DEF_STATIC_CONST_VAL_FLOAT(val_2772, 78.677498); #define CTNODE_cmu_us_rms_f0_s_153_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_2773, 79.788803); #define CTNODE_cmu_us_rms_f0_s_153_NO_0000 6 DEF_STATIC_CONST_VAL_FLOAT(val_2774, 0.801075); DEF_STATIC_CONST_VAL_FLOAT(val_2775, 0.050000); DEF_STATIC_CONST_VAL_FLOAT(val_2776, 0.352383); DEF_STATIC_CONST_VAL_FLOAT(val_2777, 118.606003); #define CTNODE_cmu_us_rms_f0_s_153_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_2778, 105.344002); #define CTNODE_cmu_us_rms_f0_s_153_NO_0009 13 DEF_STATIC_CONST_VAL_FLOAT(val_2779, 126.458000); #define CTNODE_cmu_us_rms_f0_s_153_NO_0008 14 DEF_STATIC_CONST_VAL_FLOAT(val_2780, 102.813004); #define CTNODE_cmu_us_rms_f0_s_153_NO_0014 16 DEF_STATIC_CONST_VAL_FLOAT(val_2781, 110.309998); #define CTNODE_cmu_us_rms_f0_s_153_NO_0007 17 DEF_STATIC_CONST_VAL_FLOAT(val_2782, 89.778603); #define CTNODE_cmu_us_rms_f0_s_153_NO_0006 18 DEF_STATIC_CONST_VAL_FLOAT(val_2783, 110.850998); #define CTNODE_cmu_us_rms_f0_s_153_NO_0019 21 DEF_STATIC_CONST_VAL_FLOAT(val_2784, 114.746002); #define CTNODE_cmu_us_rms_f0_s_153_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_2785, 122.083000); #define CTNODE_cmu_us_rms_f0_s_153_NO_0021 25 DEF_STATIC_CONST_VAL_FLOAT(val_2786, 0.062500); DEF_STATIC_CONST_VAL_FLOAT(val_2787, 127.264999); #define CTNODE_cmu_us_rms_f0_s_153_NO_0026 28 DEF_STATIC_CONST_VAL_FLOAT(val_2788, 123.433998); #define CTNODE_cmu_us_rms_f0_s_153_NO_0025 29 DEF_STATIC_CONST_VAL_FLOAT(val_2789, 120.494003); #define CTNODE_cmu_us_rms_f0_s_153_NO_0018 30 DEF_STATIC_CONST_VAL_FLOAT(val_2790, 118.748001); #define CTNODE_cmu_us_rms_f0_s_153_NO_0030 32 DEF_STATIC_CONST_VAL_FLOAT(val_2791, 28.400000); DEF_STATIC_CONST_VAL_FLOAT(val_2792, 129.807999); #define CTNODE_cmu_us_rms_f0_s_153_NO_0033 35 DEF_STATIC_CONST_VAL_FLOAT(val_2793, 126.721001); #define CTNODE_cmu_us_rms_f0_s_153_NO_0032 36 DEF_STATIC_CONST_VAL_FLOAT(val_2794, 134.125000); DEF_STATIC_CONST_VAL_FLOAT(val_2795, 0.676451); DEF_STATIC_CONST_VAL_FLOAT(val_2796, 100.888000); #define CTNODE_cmu_us_rms_f0_eh_56_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_2797, 108.873001); #define CTNODE_cmu_us_rms_f0_eh_56_NO_0002 6 DEF_STATIC_CONST_VAL_FLOAT(val_2798, 0.283770); DEF_STATIC_CONST_VAL_FLOAT(val_2799, 125.139000); #define CTNODE_cmu_us_rms_f0_eh_56_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_2800, 0.190909); DEF_STATIC_CONST_VAL_FLOAT(val_2801, 120.663002); #define CTNODE_cmu_us_rms_f0_eh_56_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_2802, 107.348000); #define CTNODE_cmu_us_rms_f0_eh_56_NO_0001 11 DEF_STATIC_CONST_VAL_FLOAT(val_2803, 0.343879); DEF_STATIC_CONST_VAL_FLOAT(val_2804, 113.355003); #define CTNODE_cmu_us_rms_f0_eh_56_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_2805, 101.918999); #define CTNODE_cmu_us_rms_f0_eh_56_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_2806, 103.538002); #define CTNODE_cmu_us_rms_f0_eh_56_NO_0014 18 DEF_STATIC_CONST_VAL_FLOAT(val_2807, 0.177591); DEF_STATIC_CONST_VAL_FLOAT(val_2808, 110.315002); #define CTNODE_cmu_us_rms_f0_eh_56_NO_0019 21 DEF_STATIC_CONST_VAL_FLOAT(val_2809, 106.550003); #define CTNODE_cmu_us_rms_f0_eh_56_NO_0018 22 DEF_STATIC_CONST_VAL_FLOAT(val_2810, 102.335999); #define CTNODE_cmu_us_rms_f0_eh_56_NO_0011 23 DEF_STATIC_CONST_VAL_FLOAT(val_2811, 0.443675); DEF_STATIC_CONST_VAL_FLOAT(val_2812, 103.491997); #define CTNODE_cmu_us_rms_f0_eh_56_NO_0024 26 DEF_STATIC_CONST_VAL_FLOAT(val_2813, 98.220299); #define CTNODE_cmu_us_rms_f0_eh_56_NO_0023 27 DEF_STATIC_CONST_VAL_FLOAT(val_2814, 91.749199); #define CTNODE_cmu_us_rms_f0_eh_56_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_2815, 97.789497); #define CTNODE_cmu_us_rms_f0_eh_56_NO_0000 30 DEF_STATIC_CONST_VAL_FLOAT(val_2816, 0.879213); DEF_STATIC_CONST_VAL_FLOAT(val_2817, 104.980003); #define CTNODE_cmu_us_rms_f0_eh_56_NO_0032 34 DEF_STATIC_CONST_VAL_FLOAT(val_2818, 95.799004); #define CTNODE_cmu_us_rms_f0_eh_56_NO_0031 35 DEF_STATIC_CONST_VAL_FLOAT(val_2819, 95.801697); #define CTNODE_cmu_us_rms_f0_eh_56_NO_0035 37 DEF_STATIC_CONST_VAL_FLOAT(val_2820, 93.374901); #define CTNODE_cmu_us_rms_f0_eh_56_NO_0030 38 DEF_STATIC_CONST_VAL_FLOAT(val_2821, 8.100000); DEF_STATIC_CONST_VAL_FLOAT(val_2822, 88.321198); #define CTNODE_cmu_us_rms_f0_eh_56_NO_0039 41 DEF_STATIC_CONST_VAL_FLOAT(val_2823, 97.842300); #define CTNODE_cmu_us_rms_f0_eh_56_NO_0038 42 DEF_STATIC_CONST_VAL_FLOAT(val_2824, 83.574997); DEF_STATIC_CONST_VAL_FLOAT(val_2825, 0.682438); DEF_STATIC_CONST_VAL_FLOAT(val_2826, 0.341084); DEF_STATIC_CONST_VAL_FLOAT(val_2827, 0.013000); DEF_STATIC_CONST_VAL_FLOAT(val_2828, 118.966003); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_2829, 114.065002); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0003 7 DEF_STATIC_CONST_VAL_FLOAT(val_2830, 0.087500); DEF_STATIC_CONST_VAL_FLOAT(val_2831, 113.918999); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_2832, 108.974998); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_2833, 105.389000); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0007 13 #define CTNODE_cmu_us_rms_f0_eh_57_NO_0002 14 DEF_STATIC_CONST_VAL_FLOAT(val_2834, 0.157086); DEF_STATIC_CONST_VAL_FLOAT(val_2835, 113.974998); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0016 18 DEF_STATIC_CONST_VAL_FLOAT(val_2836, 110.005997); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0015 19 #define CTNODE_cmu_us_rms_f0_eh_57_NO_0014 20 DEF_STATIC_CONST_VAL_FLOAT(val_2837, 90.200798); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0020 22 DEF_STATIC_CONST_VAL_FLOAT(val_2838, 0.419438); DEF_STATIC_CONST_VAL_FLOAT(val_2839, 100.924004); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0023 25 #define CTNODE_cmu_us_rms_f0_eh_57_NO_0025 27 DEF_STATIC_CONST_VAL_FLOAT(val_2840, 107.538002); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0022 28 DEF_STATIC_CONST_VAL_FLOAT(val_2841, 95.487297); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0028 30 DEF_STATIC_CONST_VAL_FLOAT(val_2842, 100.369003); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0001 31 DEF_STATIC_CONST_VAL_FLOAT(val_2843, 98.735703); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0031 33 DEF_STATIC_CONST_VAL_FLOAT(val_2844, 21.600000); DEF_STATIC_CONST_VAL_FLOAT(val_2845, 94.541801); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0033 35 DEF_STATIC_CONST_VAL_FLOAT(val_2846, 87.884102); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0000 36 DEF_STATIC_CONST_VAL_FLOAT(val_2847, 89.296303); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0037 39 DEF_STATIC_CONST_VAL_FLOAT(val_2848, 0.028000); DEF_STATIC_CONST_VAL_FLOAT(val_2849, 83.643097); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0039 41 DEF_STATIC_CONST_VAL_FLOAT(val_2850, 79.025803); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0036 42 DEF_STATIC_CONST_VAL_FLOAT(val_2851, 3.059500); DEF_STATIC_CONST_VAL_FLOAT(val_2852, 95.549896); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0043 45 DEF_STATIC_CONST_VAL_FLOAT(val_2853, 104.966003); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0042 46 DEF_STATIC_CONST_VAL_FLOAT(val_2854, 0.868714); DEF_STATIC_CONST_VAL_FLOAT(val_2855, 91.692802); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0047 49 DEF_STATIC_CONST_VAL_FLOAT(val_2856, 95.304901); #define CTNODE_cmu_us_rms_f0_eh_57_NO_0046 50 DEF_STATIC_CONST_VAL_FLOAT(val_2857, 90.394203); DEF_STATIC_CONST_VAL_FLOAT(val_2858, 83.357399); #define CTNODE_cmu_us_rms_f0_eh_58_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_2859, 76.803398); #define CTNODE_cmu_us_rms_f0_eh_58_NO_0000 4 DEF_STATIC_CONST_VAL_FLOAT(val_2860, 0.201836); DEF_STATIC_CONST_VAL_FLOAT(val_2861, 104.125999); #define CTNODE_cmu_us_rms_f0_eh_58_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_2862, 113.820999); #define CTNODE_cmu_us_rms_f0_eh_58_NO_0004 8 DEF_STATIC_CONST_VAL_FLOAT(val_2863, 23.000000); DEF_STATIC_CONST_VAL_FLOAT(val_2864, 0.729007); DEF_STATIC_CONST_VAL_FLOAT(val_2865, 107.752998); #define CTNODE_cmu_us_rms_f0_eh_58_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_2866, 99.535896); #define CTNODE_cmu_us_rms_f0_eh_58_NO_0010 14 DEF_STATIC_CONST_VAL_FLOAT(val_2867, 0.413037); DEF_STATIC_CONST_VAL_FLOAT(val_2868, 94.769501); #define CTNODE_cmu_us_rms_f0_eh_58_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_2869, 90.712799); #define CTNODE_cmu_us_rms_f0_eh_58_NO_0014 18 DEF_STATIC_CONST_VAL_FLOAT(val_2870, 98.541100); #define CTNODE_cmu_us_rms_f0_eh_58_NO_0009 19 DEF_STATIC_CONST_VAL_FLOAT(val_2871, 88.740303); #define CTNODE_cmu_us_rms_f0_eh_58_NO_0019 21 #define CTNODE_cmu_us_rms_f0_eh_58_NO_0008 22 DEF_STATIC_CONST_VAL_FLOAT(val_2872, 87.739799); DEF_STATIC_CONST_VAL_FLOAT(val_2873, 91.815804); #define CTNODE_cmu_us_rms_f0_t_164_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_2874, 0.635069); DEF_STATIC_CONST_VAL_FLOAT(val_2875, 0.316686); DEF_STATIC_CONST_VAL_FLOAT(val_2876, 112.577003); #define CTNODE_cmu_us_rms_f0_t_164_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_2877, 106.286003); #define CTNODE_cmu_us_rms_f0_t_164_NO_0005 9 DEF_STATIC_CONST_VAL_FLOAT(val_2878, 110.392998); #define CTNODE_cmu_us_rms_f0_t_164_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_2879, 116.862999); #define CTNODE_cmu_us_rms_f0_t_164_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_2880, 123.532997); #define CTNODE_cmu_us_rms_f0_t_164_NO_0004 14 DEF_STATIC_CONST_VAL_FLOAT(val_2881, 0.825516); #define CTNODE_cmu_us_rms_f0_t_164_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_2882, 0.730617); DEF_STATIC_CONST_VAL_FLOAT(val_2883, 107.100998); #define CTNODE_cmu_us_rms_f0_t_164_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_2884, 111.541000); #define CTNODE_cmu_us_rms_f0_t_164_NO_0014 20 DEF_STATIC_CONST_VAL_FLOAT(val_2885, 99.403000); #define CTNODE_cmu_us_rms_f0_t_164_NO_0003 21 DEF_STATIC_CONST_VAL_FLOAT(val_2886, 125.830002); #define CTNODE_cmu_us_rms_f0_t_164_NO_0021 23 DEF_STATIC_CONST_VAL_FLOAT(val_2887, 118.328003); #define CTNODE_cmu_us_rms_f0_t_164_NO_0000 24 DEF_STATIC_CONST_VAL_FLOAT(val_2888, 0.029000); DEF_STATIC_CONST_VAL_FLOAT(val_2889, 83.290901); #define CTNODE_cmu_us_rms_f0_t_164_NO_0026 28 DEF_STATIC_CONST_VAL_FLOAT(val_2890, 86.006699); #define CTNODE_cmu_us_rms_f0_t_164_NO_0028 30 DEF_STATIC_CONST_VAL_FLOAT(val_2891, 94.573303); #define CTNODE_cmu_us_rms_f0_t_164_NO_0025 31 DEF_STATIC_CONST_VAL_FLOAT(val_2892, 74.893600); #define CTNODE_cmu_us_rms_f0_t_164_NO_0024 32 DEF_STATIC_CONST_VAL_FLOAT(val_2893, 115.112999); #define CTNODE_cmu_us_rms_f0_t_164_NO_0033 35 DEF_STATIC_CONST_VAL_FLOAT(val_2894, 104.921997); #define CTNODE_cmu_us_rms_f0_t_164_NO_0032 36 DEF_STATIC_CONST_VAL_FLOAT(val_2895, 0.085000); DEF_STATIC_CONST_VAL_FLOAT(val_2896, 102.091003); #define CTNODE_cmu_us_rms_f0_t_164_NO_0038 40 DEF_STATIC_CONST_VAL_FLOAT(val_2897, 101.595001); #define CTNODE_cmu_us_rms_f0_t_164_NO_0040 42 DEF_STATIC_CONST_VAL_FLOAT(val_2898, 0.012500); DEF_STATIC_CONST_VAL_FLOAT(val_2899, 97.185204); #define CTNODE_cmu_us_rms_f0_t_164_NO_0042 44 DEF_STATIC_CONST_VAL_FLOAT(val_2900, 0.320334); DEF_STATIC_CONST_VAL_FLOAT(val_2901, 97.676903); #define CTNODE_cmu_us_rms_f0_t_164_NO_0045 47 DEF_STATIC_CONST_VAL_FLOAT(val_2902, 91.266998); #define CTNODE_cmu_us_rms_f0_t_164_NO_0044 48 DEF_STATIC_CONST_VAL_FLOAT(val_2903, 0.381820); DEF_STATIC_CONST_VAL_FLOAT(val_2904, 85.200699); #define CTNODE_cmu_us_rms_f0_t_164_NO_0048 50 DEF_STATIC_CONST_VAL_FLOAT(val_2905, 85.556602); #define CTNODE_cmu_us_rms_f0_t_164_NO_0051 53 DEF_STATIC_CONST_VAL_FLOAT(val_2906, 91.412697); #define CTNODE_cmu_us_rms_f0_t_164_NO_0050 54 DEF_STATIC_CONST_VAL_FLOAT(val_2907, 0.601286); DEF_STATIC_CONST_VAL_FLOAT(val_2908, 96.719498); #define CTNODE_cmu_us_rms_f0_t_164_NO_0055 57 DEF_STATIC_CONST_VAL_FLOAT(val_2909, 90.660500); #define CTNODE_cmu_us_rms_f0_t_164_NO_0054 58 DEF_STATIC_CONST_VAL_FLOAT(val_2910, 92.439102); #define CTNODE_cmu_us_rms_f0_t_164_NO_0058 60 DEF_STATIC_CONST_VAL_FLOAT(val_2911, 85.435898); #define CTNODE_cmu_us_rms_f0_t_164_NO_0037 61 DEF_STATIC_CONST_VAL_FLOAT(val_2912, 0.310592); DEF_STATIC_CONST_VAL_FLOAT(val_2913, 114.101997); #define CTNODE_cmu_us_rms_f0_t_164_NO_0062 64 DEF_STATIC_CONST_VAL_FLOAT(val_2914, 103.933998); #define CTNODE_cmu_us_rms_f0_t_164_NO_0061 65 DEF_STATIC_CONST_VAL_FLOAT(val_2915, 0.665411); DEF_STATIC_CONST_VAL_FLOAT(val_2916, 97.864403); #define CTNODE_cmu_us_rms_f0_t_164_NO_0066 68 DEF_STATIC_CONST_VAL_FLOAT(val_2917, 93.129799); #define CTNODE_cmu_us_rms_f0_t_164_NO_0065 69 DEF_STATIC_CONST_VAL_FLOAT(val_2918, 0.609412); DEF_STATIC_CONST_VAL_FLOAT(val_2919, 101.956001); #define CTNODE_cmu_us_rms_f0_t_164_NO_0069 71 DEF_STATIC_CONST_VAL_FLOAT(val_2920, 98.379303); #define CTNODE_cmu_us_rms_f0_t_164_NO_0036 72 DEF_STATIC_CONST_VAL_FLOAT(val_2921, 100.224998); #define CTNODE_cmu_us_rms_f0_t_164_NO_0072 74 DEF_STATIC_CONST_VAL_FLOAT(val_2922, 111.764000); DEF_STATIC_CONST_VAL_FLOAT(val_2923, 0.795433); DEF_STATIC_CONST_VAL_FLOAT(val_2924, 0.399061); DEF_STATIC_CONST_VAL_FLOAT(val_2925, 114.130997); #define CTNODE_cmu_us_rms_f0_t_165_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_2926, 109.834999); #define CTNODE_cmu_us_rms_f0_t_165_NO_0005 9 DEF_STATIC_CONST_VAL_FLOAT(val_2927, 118.508003); #define CTNODE_cmu_us_rms_f0_t_165_NO_0004 10 DEF_STATIC_CONST_VAL_FLOAT(val_2928, 108.794998); #define CTNODE_cmu_us_rms_f0_t_165_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_2929, 115.327003); #define CTNODE_cmu_us_rms_f0_t_165_NO_0010 14 DEF_STATIC_CONST_VAL_FLOAT(val_2930, 105.255997); #define CTNODE_cmu_us_rms_f0_t_165_NO_0003 15 DEF_STATIC_CONST_VAL_FLOAT(val_2931, 107.157997); #define CTNODE_cmu_us_rms_f0_t_165_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_2932, 89.040001); #define CTNODE_cmu_us_rms_f0_t_165_NO_0002 18 DEF_STATIC_CONST_VAL_FLOAT(val_2933, 0.197078); DEF_STATIC_CONST_VAL_FLOAT(val_2934, 125.806999); #define CTNODE_cmu_us_rms_f0_t_165_NO_0019 21 DEF_STATIC_CONST_VAL_FLOAT(val_2935, 131.089005); #define CTNODE_cmu_us_rms_f0_t_165_NO_0018 22 DEF_STATIC_CONST_VAL_FLOAT(val_2936, 0.334421); DEF_STATIC_CONST_VAL_FLOAT(val_2937, 108.258003); #define CTNODE_cmu_us_rms_f0_t_165_NO_0023 25 DEF_STATIC_CONST_VAL_FLOAT(val_2938, 0.664263); DEF_STATIC_CONST_VAL_FLOAT(val_2939, 117.280998); #define CTNODE_cmu_us_rms_f0_t_165_NO_0025 27 DEF_STATIC_CONST_VAL_FLOAT(val_2940, 111.877998); #define CTNODE_cmu_us_rms_f0_t_165_NO_0022 28 DEF_STATIC_CONST_VAL_FLOAT(val_2941, 125.233002); #define CTNODE_cmu_us_rms_f0_t_165_NO_0001 29 DEF_STATIC_CONST_VAL_FLOAT(val_2942, 2.025000); DEF_STATIC_CONST_VAL_FLOAT(val_2943, 130.184998); #define CTNODE_cmu_us_rms_f0_t_165_NO_0029 31 DEF_STATIC_CONST_VAL_FLOAT(val_2944, 122.195999); #define CTNODE_cmu_us_rms_f0_t_165_NO_0000 32 DEF_STATIC_CONST_VAL_FLOAT(val_2945, 0.838000); DEF_STATIC_CONST_VAL_FLOAT(val_2946, 0.059000); DEF_STATIC_CONST_VAL_FLOAT(val_2947, 117.418999); #define CTNODE_cmu_us_rms_f0_t_165_NO_0035 37 DEF_STATIC_CONST_VAL_FLOAT(val_2948, 125.842003); #define CTNODE_cmu_us_rms_f0_t_165_NO_0034 38 DEF_STATIC_CONST_VAL_FLOAT(val_2949, 109.857002); #define CTNODE_cmu_us_rms_f0_t_165_NO_0033 39 DEF_STATIC_CONST_VAL_FLOAT(val_2950, 0.243934); DEF_STATIC_CONST_VAL_FLOAT(val_2951, 102.577003); #define CTNODE_cmu_us_rms_f0_t_165_NO_0040 42 DEF_STATIC_CONST_VAL_FLOAT(val_2952, 93.852501); #define CTNODE_cmu_us_rms_f0_t_165_NO_0039 43 DEF_STATIC_CONST_VAL_FLOAT(val_2953, 5.200000); DEF_STATIC_CONST_VAL_FLOAT(val_2954, 98.350502); #define CTNODE_cmu_us_rms_f0_t_165_NO_0045 47 DEF_STATIC_CONST_VAL_FLOAT(val_2955, 103.042999); #define CTNODE_cmu_us_rms_f0_t_165_NO_0044 48 DEF_STATIC_CONST_VAL_FLOAT(val_2956, 109.583000); #define CTNODE_cmu_us_rms_f0_t_165_NO_0048 50 DEF_STATIC_CONST_VAL_FLOAT(val_2957, 102.862999); #define CTNODE_cmu_us_rms_f0_t_165_NO_0043 51 DEF_STATIC_CONST_VAL_FLOAT(val_2958, 115.554001); #define CTNODE_cmu_us_rms_f0_t_165_NO_0032 52 DEF_STATIC_CONST_VAL_FLOAT(val_2959, 0.035000); DEF_STATIC_CONST_VAL_FLOAT(val_2960, 81.887001); #define CTNODE_cmu_us_rms_f0_t_165_NO_0053 55 DEF_STATIC_CONST_VAL_FLOAT(val_2961, 100.161003); #define CTNODE_cmu_us_rms_f0_t_165_NO_0055 57 DEF_STATIC_CONST_VAL_FLOAT(val_2962, 1.987000); DEF_STATIC_CONST_VAL_FLOAT(val_2963, 95.293098); #define CTNODE_cmu_us_rms_f0_t_165_NO_0058 60 DEF_STATIC_CONST_VAL_FLOAT(val_2964, 98.045403); #define CTNODE_cmu_us_rms_f0_t_165_NO_0057 61 DEF_STATIC_CONST_VAL_FLOAT(val_2965, 88.673302); #define CTNODE_cmu_us_rms_f0_t_165_NO_0061 63 DEF_STATIC_CONST_VAL_FLOAT(val_2966, 94.084702); #define CTNODE_cmu_us_rms_f0_t_165_NO_0052 64 DEF_STATIC_CONST_VAL_FLOAT(val_2967, 99.710503); #define CTNODE_cmu_us_rms_f0_t_165_NO_0066 68 DEF_STATIC_CONST_VAL_FLOAT(val_2968, 102.362999); #define CTNODE_cmu_us_rms_f0_t_165_NO_0068 70 DEF_STATIC_CONST_VAL_FLOAT(val_2969, 111.359001); #define CTNODE_cmu_us_rms_f0_t_165_NO_0065 71 DEF_STATIC_CONST_VAL_FLOAT(val_2970, 0.035000); DEF_STATIC_CONST_VAL_FLOAT(val_2971, 103.513000); #define CTNODE_cmu_us_rms_f0_t_165_NO_0074 76 DEF_STATIC_CONST_VAL_FLOAT(val_2972, 98.337700); #define CTNODE_cmu_us_rms_f0_t_165_NO_0073 77 DEF_STATIC_CONST_VAL_FLOAT(val_2973, 91.672600); #define CTNODE_cmu_us_rms_f0_t_165_NO_0077 79 DEF_STATIC_CONST_VAL_FLOAT(val_2974, 100.219002); #define CTNODE_cmu_us_rms_f0_t_165_NO_0072 80 DEF_STATIC_CONST_VAL_FLOAT(val_2975, 107.556999); #define CTNODE_cmu_us_rms_f0_t_165_NO_0080 82 #define CTNODE_cmu_us_rms_f0_t_165_NO_0071 83 DEF_STATIC_CONST_VAL_FLOAT(val_2976, 91.652901); #define CTNODE_cmu_us_rms_f0_t_165_NO_0064 84 DEF_STATIC_CONST_VAL_FLOAT(val_2977, 0.060500); DEF_STATIC_CONST_VAL_FLOAT(val_2978, 105.807999); #define CTNODE_cmu_us_rms_f0_t_165_NO_0084 86 DEF_STATIC_CONST_VAL_FLOAT(val_2979, 112.834000); DEF_STATIC_CONST_VAL_FLOAT(val_2980, 94.414200); #define CTNODE_cmu_us_rms_f0_t_166_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_2981, 0.020000); DEF_STATIC_CONST_VAL_FLOAT(val_2982, 72.304703); #define CTNODE_cmu_us_rms_f0_t_166_NO_0004 6 DEF_STATIC_CONST_VAL_FLOAT(val_2983, 78.151901); #define CTNODE_cmu_us_rms_f0_t_166_NO_0006 8 DEF_STATIC_CONST_VAL_FLOAT(val_2984, 84.305702); #define CTNODE_cmu_us_rms_f0_t_166_NO_0001 9 DEF_STATIC_CONST_VAL_FLOAT(val_2985, 109.924004); #define CTNODE_cmu_us_rms_f0_t_166_NO_0009 11 #define CTNODE_cmu_us_rms_f0_t_166_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_2986, 91.815903); #define CTNODE_cmu_us_rms_f0_t_166_NO_0016 18 DEF_STATIC_CONST_VAL_FLOAT(val_2987, 88.708000); #define CTNODE_cmu_us_rms_f0_t_166_NO_0015 19 DEF_STATIC_CONST_VAL_FLOAT(val_2988, 95.134697); #define CTNODE_cmu_us_rms_f0_t_166_NO_0014 20 DEF_STATIC_CONST_VAL_FLOAT(val_2989, 100.917999); #define CTNODE_cmu_us_rms_f0_t_166_NO_0013 21 DEF_STATIC_CONST_VAL_FLOAT(val_2990, 107.703003); #define CTNODE_cmu_us_rms_f0_t_166_NO_0000 22 DEF_STATIC_CONST_VAL_STRING(val_2991, "r_146"); DEF_STATIC_CONST_VAL_FLOAT(val_2992, 131.695007); #define CTNODE_cmu_us_rms_f0_t_166_NO_0024 26 DEF_STATIC_CONST_VAL_FLOAT(val_2993, 123.469002); #define CTNODE_cmu_us_rms_f0_t_166_NO_0023 27 DEF_STATIC_CONST_VAL_FLOAT(val_2994, 0.037500); DEF_STATIC_CONST_VAL_FLOAT(val_2995, 0.684204); DEF_STATIC_CONST_VAL_FLOAT(val_2996, 118.612999); #define CTNODE_cmu_us_rms_f0_t_166_NO_0029 31 DEF_STATIC_CONST_VAL_FLOAT(val_2997, 111.307999); #define CTNODE_cmu_us_rms_f0_t_166_NO_0028 32 DEF_STATIC_CONST_VAL_FLOAT(val_2998, 127.927002); #define CTNODE_cmu_us_rms_f0_t_166_NO_0032 34 DEF_STATIC_CONST_VAL_FLOAT(val_2999, 123.767998); #define CTNODE_cmu_us_rms_f0_t_166_NO_0027 35 DEF_STATIC_CONST_VAL_FLOAT(val_3000, 108.706001); #define CTNODE_cmu_us_rms_f0_t_166_NO_0022 36 DEF_STATIC_CONST_VAL_FLOAT(val_3001, 0.311952); DEF_STATIC_CONST_VAL_FLOAT(val_3002, 103.558998); #define CTNODE_cmu_us_rms_f0_t_166_NO_0038 40 DEF_STATIC_CONST_VAL_FLOAT(val_3003, 116.990997); #define CTNODE_cmu_us_rms_f0_t_166_NO_0037 41 DEF_STATIC_CONST_VAL_FLOAT(val_3004, 0.041000); DEF_STATIC_CONST_VAL_FLOAT(val_3005, 8.600000); DEF_STATIC_CONST_VAL_FLOAT(val_3006, 93.037102); #define CTNODE_cmu_us_rms_f0_t_166_NO_0042 44 DEF_STATIC_CONST_VAL_FLOAT(val_3007, 100.672997); #define CTNODE_cmu_us_rms_f0_t_166_NO_0041 45 DEF_STATIC_CONST_VAL_FLOAT(val_3008, 105.426003); #define CTNODE_cmu_us_rms_f0_t_166_NO_0036 46 DEF_STATIC_CONST_VAL_FLOAT(val_3009, 0.688772); DEF_STATIC_CONST_VAL_FLOAT(val_3010, 107.695999); #define CTNODE_cmu_us_rms_f0_t_166_NO_0049 51 DEF_STATIC_CONST_VAL_FLOAT(val_3011, 112.582001); #define CTNODE_cmu_us_rms_f0_t_166_NO_0048 52 DEF_STATIC_CONST_VAL_FLOAT(val_3012, 119.629997); #define CTNODE_cmu_us_rms_f0_t_166_NO_0047 53 DEF_STATIC_CONST_VAL_FLOAT(val_3013, 20.900000); DEF_STATIC_CONST_VAL_FLOAT(val_3014, 119.197998); #define CTNODE_cmu_us_rms_f0_t_166_NO_0053 55 DEF_STATIC_CONST_VAL_FLOAT(val_3015, 125.815002); #define CTNODE_cmu_us_rms_f0_t_166_NO_0046 56 DEF_STATIC_CONST_VAL_FLOAT(val_3016, 104.543999); #define CTNODE_cmu_us_rms_f0_t_166_NO_0056 58 DEF_STATIC_CONST_VAL_FLOAT(val_3017, 111.848999); DEF_STATIC_CONST_VAL_FLOAT(val_3018, 0.295762); DEF_STATIC_CONST_VAL_FLOAT(val_3019, 113.955002); #define CTNODE_cmu_us_rms_f0_er_61_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_3020, 103.943001); #define CTNODE_cmu_us_rms_f0_er_61_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_3021, 97.265800); #define CTNODE_cmu_us_rms_f0_er_61_NO_0002 8 DEF_STATIC_CONST_VAL_FLOAT(val_3022, 0.512957); DEF_STATIC_CONST_VAL_FLOAT(val_3023, 109.378998); #define CTNODE_cmu_us_rms_f0_er_61_NO_0010 12 DEF_STATIC_CONST_VAL_FLOAT(val_3024, 94.563599); #define CTNODE_cmu_us_rms_f0_er_61_NO_0009 13 DEF_STATIC_CONST_VAL_FLOAT(val_3025, 91.123100); #define CTNODE_cmu_us_rms_f0_er_61_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_3026, 93.562103); #define CTNODE_cmu_us_rms_f0_er_61_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_3027, 20.299999); DEF_STATIC_CONST_VAL_FLOAT(val_3028, 96.207100); #define CTNODE_cmu_us_rms_f0_er_61_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_3029, 100.036003); #define CTNODE_cmu_us_rms_f0_er_61_NO_0008 20 DEF_STATIC_CONST_VAL_FLOAT(val_3030, 86.689301); #define CTNODE_cmu_us_rms_f0_er_61_NO_0001 21 DEF_STATIC_CONST_VAL_FLOAT(val_3031, 0.886716); DEF_STATIC_CONST_VAL_FLOAT(val_3032, 89.115997); #define CTNODE_cmu_us_rms_f0_er_61_NO_0023 25 DEF_STATIC_CONST_VAL_FLOAT(val_3033, 83.282600); #define CTNODE_cmu_us_rms_f0_er_61_NO_0022 26 DEF_STATIC_CONST_VAL_STRING(val_3034, "v_186"); DEF_STATIC_CONST_VAL_FLOAT(val_3035, 97.633301); #define CTNODE_cmu_us_rms_f0_er_61_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_3036, 87.417099); #define CTNODE_cmu_us_rms_f0_er_61_NO_0029 31 DEF_STATIC_CONST_VAL_FLOAT(val_3037, 92.772697); #define CTNODE_cmu_us_rms_f0_er_61_NO_0031 33 DEF_STATIC_CONST_VAL_FLOAT(val_3038, 89.649597); #define CTNODE_cmu_us_rms_f0_er_61_NO_0026 34 DEF_STATIC_CONST_VAL_FLOAT(val_3039, 0.271913); #define CTNODE_cmu_us_rms_f0_er_61_NO_0035 37 DEF_STATIC_CONST_VAL_FLOAT(val_3040, 104.731003); #define CTNODE_cmu_us_rms_f0_er_61_NO_0034 38 DEF_STATIC_CONST_VAL_FLOAT(val_3041, 0.694485); DEF_STATIC_CONST_VAL_FLOAT(val_3042, 93.266296); #define CTNODE_cmu_us_rms_f0_er_61_NO_0039 41 DEF_STATIC_CONST_VAL_FLOAT(val_3043, 87.195602); #define CTNODE_cmu_us_rms_f0_er_61_NO_0038 42 DEF_STATIC_CONST_VAL_FLOAT(val_3044, 0.642857); DEF_STATIC_CONST_VAL_FLOAT(val_3045, 101.203003); #define CTNODE_cmu_us_rms_f0_er_61_NO_0042 44 DEF_STATIC_CONST_VAL_FLOAT(val_3046, 93.669800); #define CTNODE_cmu_us_rms_f0_er_61_NO_0021 45 DEF_STATIC_CONST_VAL_FLOAT(val_3047, 90.792999); #define CTNODE_cmu_us_rms_f0_er_61_NO_0045 47 DEF_STATIC_CONST_VAL_FLOAT(val_3048, 81.295502); #define CTNODE_cmu_us_rms_f0_er_61_NO_0000 48 DEF_STATIC_CONST_VAL_FLOAT(val_3049, 0.694630); DEF_STATIC_CONST_VAL_FLOAT(val_3050, 0.417135); DEF_STATIC_CONST_VAL_FLOAT(val_3051, 126.037003); #define CTNODE_cmu_us_rms_f0_er_61_NO_0050 52 DEF_STATIC_CONST_VAL_FLOAT(val_3052, 113.783997); #define CTNODE_cmu_us_rms_f0_er_61_NO_0052 54 DEF_STATIC_CONST_VAL_FLOAT(val_3053, 111.277000); #define CTNODE_cmu_us_rms_f0_er_61_NO_0049 55 DEF_STATIC_CONST_VAL_FLOAT(val_3054, 0.294402); DEF_STATIC_CONST_VAL_FLOAT(val_3055, 110.785004); #define CTNODE_cmu_us_rms_f0_er_61_NO_0055 57 DEF_STATIC_CONST_VAL_FLOAT(val_3056, 0.574186); DEF_STATIC_CONST_VAL_FLOAT(val_3057, 101.355003); #define CTNODE_cmu_us_rms_f0_er_61_NO_0057 59 DEF_STATIC_CONST_VAL_FLOAT(val_3058, 94.652802); #define CTNODE_cmu_us_rms_f0_er_61_NO_0048 60 DEF_STATIC_CONST_VAL_FLOAT(val_3059, 93.440300); #define CTNODE_cmu_us_rms_f0_er_61_NO_0061 63 DEF_STATIC_CONST_VAL_FLOAT(val_3060, 85.193100); #define CTNODE_cmu_us_rms_f0_er_61_NO_0060 64 DEF_STATIC_CONST_VAL_FLOAT(val_3061, 94.311996); #define CTNODE_cmu_us_rms_f0_er_61_NO_0064 66 DEF_STATIC_CONST_VAL_FLOAT(val_3062, 0.359184); DEF_STATIC_CONST_VAL_FLOAT(val_3063, 106.264999); #define CTNODE_cmu_us_rms_f0_er_61_NO_0066 68 DEF_STATIC_CONST_VAL_FLOAT(val_3064, 98.062103); DEF_STATIC_CONST_VAL_FLOAT(val_3065, 1.225000); DEF_STATIC_CONST_VAL_FLOAT(val_3066, 0.112701); DEF_STATIC_CONST_VAL_FLOAT(val_3067, 114.264999); #define CTNODE_cmu_us_rms_f0_er_62_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_3068, 105.779999); #define CTNODE_cmu_us_rms_f0_er_62_NO_0004 8 DEF_STATIC_CONST_VAL_FLOAT(val_3069, 99.108200); #define CTNODE_cmu_us_rms_f0_er_62_NO_0003 9 DEF_STATIC_CONST_VAL_FLOAT(val_3070, 100.831001); #define CTNODE_cmu_us_rms_f0_er_62_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_3071, 97.252296); #define CTNODE_cmu_us_rms_f0_er_62_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_3072, 88.388298); #define CTNODE_cmu_us_rms_f0_er_62_NO_0002 14 DEF_STATIC_CONST_VAL_FLOAT(val_3073, 124.637001); #define CTNODE_cmu_us_rms_f0_er_62_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_3074, 119.309998); #define CTNODE_cmu_us_rms_f0_er_62_NO_0014 18 DEF_STATIC_CONST_VAL_FLOAT(val_3075, 105.179001); #define CTNODE_cmu_us_rms_f0_er_62_NO_0018 20 DEF_STATIC_CONST_VAL_FLOAT(val_3076, 113.704002); #define CTNODE_cmu_us_rms_f0_er_62_NO_0001 21 DEF_STATIC_CONST_VAL_FLOAT(val_3077, 0.502520); DEF_STATIC_CONST_VAL_FLOAT(val_3078, 0.673919); DEF_STATIC_CONST_VAL_FLOAT(val_3079, 90.350502); #define CTNODE_cmu_us_rms_f0_er_62_NO_0024 26 DEF_STATIC_CONST_VAL_FLOAT(val_3080, 0.311765); DEF_STATIC_CONST_VAL_FLOAT(val_3081, 102.633003); #define CTNODE_cmu_us_rms_f0_er_62_NO_0026 28 DEF_STATIC_CONST_VAL_FLOAT(val_3082, 97.783600); #define CTNODE_cmu_us_rms_f0_er_62_NO_0023 29 DEF_STATIC_CONST_VAL_FLOAT(val_3083, 96.625900); #define CTNODE_cmu_us_rms_f0_er_62_NO_0029 31 DEF_STATIC_CONST_VAL_FLOAT(val_3084, 85.076797); #define CTNODE_cmu_us_rms_f0_er_62_NO_0022 32 DEF_STATIC_CONST_VAL_FLOAT(val_3085, 1.642500); DEF_STATIC_CONST_VAL_FLOAT(val_3086, 91.806099); #define CTNODE_cmu_us_rms_f0_er_62_NO_0032 34 DEF_STATIC_CONST_VAL_FLOAT(val_3087, 81.451500); #define CTNODE_cmu_us_rms_f0_er_62_NO_0034 36 DEF_STATIC_CONST_VAL_FLOAT(val_3088, 89.053200); #define CTNODE_cmu_us_rms_f0_er_62_NO_0037 39 DEF_STATIC_CONST_VAL_FLOAT(val_3089, 93.249199); #define CTNODE_cmu_us_rms_f0_er_62_NO_0036 40 DEF_STATIC_CONST_VAL_FLOAT(val_3090, 82.332497); #define CTNODE_cmu_us_rms_f0_er_62_NO_0040 42 DEF_STATIC_CONST_VAL_FLOAT(val_3091, 88.687698); #define CTNODE_cmu_us_rms_f0_er_62_NO_0021 43 DEF_STATIC_CONST_VAL_FLOAT(val_3092, 19.299999); DEF_STATIC_CONST_VAL_FLOAT(val_3093, 113.859001); #define CTNODE_cmu_us_rms_f0_er_62_NO_0045 47 DEF_STATIC_CONST_VAL_FLOAT(val_3094, 107.403999); #define CTNODE_cmu_us_rms_f0_er_62_NO_0047 49 DEF_STATIC_CONST_VAL_FLOAT(val_3095, 102.412003); #define CTNODE_cmu_us_rms_f0_er_62_NO_0044 50 DEF_STATIC_CONST_VAL_FLOAT(val_3096, 98.835098); #define CTNODE_cmu_us_rms_f0_er_62_NO_0043 51 DEF_STATIC_CONST_VAL_FLOAT(val_3097, 0.176000); DEF_STATIC_CONST_VAL_FLOAT(val_3098, 0.073000); DEF_STATIC_CONST_VAL_FLOAT(val_3099, 91.685997); #define CTNODE_cmu_us_rms_f0_er_62_NO_0052 54 DEF_STATIC_CONST_VAL_FLOAT(val_3100, 103.142998); #define CTNODE_cmu_us_rms_f0_er_62_NO_0051 55 DEF_STATIC_CONST_VAL_FLOAT(val_3101, 87.971802); #define CTNODE_cmu_us_rms_f0_er_62_NO_0000 56 DEF_STATIC_CONST_VAL_FLOAT(val_3102, 0.890000); DEF_STATIC_CONST_VAL_FLOAT(val_3103, 95.523598); #define CTNODE_cmu_us_rms_f0_er_62_NO_0057 59 DEF_STATIC_CONST_VAL_FLOAT(val_3104, 94.927597); #define CTNODE_cmu_us_rms_f0_er_62_NO_0060 62 DEF_STATIC_CONST_VAL_FLOAT(val_3105, 88.594101); #define CTNODE_cmu_us_rms_f0_er_62_NO_0062 64 DEF_STATIC_CONST_VAL_FLOAT(val_3106, 83.061600); #define CTNODE_cmu_us_rms_f0_er_62_NO_0059 65 DEF_STATIC_CONST_VAL_FLOAT(val_3107, 76.514503); #define CTNODE_cmu_us_rms_f0_er_62_NO_0065 67 DEF_STATIC_CONST_VAL_FLOAT(val_3108, 84.418098); #define CTNODE_cmu_us_rms_f0_er_62_NO_0056 68 DEF_STATIC_CONST_VAL_FLOAT(val_3109, 84.462402); #define CTNODE_cmu_us_rms_f0_er_62_NO_0068 70 DEF_STATIC_CONST_VAL_FLOAT(val_3110, 0.146000); DEF_STATIC_CONST_VAL_FLOAT(val_3111, 72.450104); #define CTNODE_cmu_us_rms_f0_er_62_NO_0070 72 DEF_STATIC_CONST_VAL_FLOAT(val_3112, 83.878899); DEF_STATIC_CONST_VAL_FLOAT(val_3113, 0.611320); DEF_STATIC_CONST_VAL_FLOAT(val_3114, 97.729897); #define CTNODE_cmu_us_rms_f0_er_63_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_3115, 88.583603); #define CTNODE_cmu_us_rms_f0_er_63_NO_0002 6 DEF_STATIC_CONST_VAL_FLOAT(val_3116, 23.299999); DEF_STATIC_CONST_VAL_FLOAT(val_3117, 0.039000); DEF_STATIC_CONST_VAL_FLOAT(val_3118, 85.820503); #define CTNODE_cmu_us_rms_f0_er_63_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_3119, 88.073799); #define CTNODE_cmu_us_rms_f0_er_63_NO_0007 11 DEF_STATIC_CONST_VAL_FLOAT(val_3120, 90.917999); #define CTNODE_cmu_us_rms_f0_er_63_NO_0006 12 DEF_STATIC_CONST_VAL_FLOAT(val_3121, 0.603812); DEF_STATIC_CONST_VAL_FLOAT(val_3122, 86.015404); #define CTNODE_cmu_us_rms_f0_er_63_NO_0012 14 DEF_STATIC_CONST_VAL_FLOAT(val_3123, 80.053497); #define CTNODE_cmu_us_rms_f0_er_63_NO_0001 15 DEF_STATIC_CONST_VAL_FLOAT(val_3124, 0.414789); DEF_STATIC_CONST_VAL_FLOAT(val_3125, 110.191002); #define CTNODE_cmu_us_rms_f0_er_63_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_3126, 30.799999); DEF_STATIC_CONST_VAL_FLOAT(val_3127, 95.805496); #define CTNODE_cmu_us_rms_f0_er_63_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_3128, 87.529198); #define CTNODE_cmu_us_rms_f0_er_63_NO_0000 20 DEF_STATIC_CONST_VAL_FLOAT(val_3129, 0.086000); DEF_STATIC_CONST_VAL_FLOAT(val_3130, 0.820565); DEF_STATIC_CONST_VAL_FLOAT(val_3131, 79.557297); #define CTNODE_cmu_us_rms_f0_er_63_NO_0022 24 DEF_STATIC_CONST_VAL_FLOAT(val_3132, 74.748398); #define CTNODE_cmu_us_rms_f0_er_63_NO_0021 25 DEF_STATIC_CONST_VAL_FLOAT(val_3133, 71.593597); #define CTNODE_cmu_us_rms_f0_er_63_NO_0020 26 DEF_STATIC_CONST_VAL_FLOAT(val_3134, 93.002899); DEF_STATIC_CONST_VAL_FLOAT(val_3135, 92.393204); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_3136, 100.609001); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0002 6 DEF_STATIC_CONST_VAL_FLOAT(val_3137, 117.442001); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0007 9 DEF_STATIC_CONST_VAL_STRING(val_3138, "to"); DEF_STATIC_CONST_VAL_FLOAT(val_3139, 112.122002); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0009 11 DEF_STATIC_CONST_VAL_FLOAT(val_3140, 110.116997); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_3141, 108.016998); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0013 15 DEF_STATIC_CONST_VAL_FLOAT(val_3142, 104.370003); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0006 16 DEF_STATIC_CONST_VAL_FLOAT(val_3143, 5.500000); DEF_STATIC_CONST_VAL_FLOAT(val_3144, 102.640999); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_3145, 105.992996); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0016 20 DEF_STATIC_CONST_VAL_FLOAT(val_3146, 0.842857); DEF_STATIC_CONST_VAL_FLOAT(val_3147, 99.863899); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0020 22 DEF_STATIC_CONST_VAL_FLOAT(val_3148, 96.582397); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0001 23 DEF_STATIC_CONST_VAL_STRING(val_3149, "z_201"); DEF_STATIC_CONST_VAL_FLOAT(val_3150, 106.051003); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0023 25 DEF_STATIC_CONST_VAL_FLOAT(val_3151, 98.858803); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0026 28 DEF_STATIC_CONST_VAL_FLOAT(val_3152, 103.747002); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0025 29 DEF_STATIC_CONST_VAL_FLOAT(val_3153, 92.928802); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0030 32 DEF_STATIC_CONST_VAL_FLOAT(val_3154, 93.915298); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0032 34 DEF_STATIC_CONST_VAL_FLOAT(val_3155, 0.599685); DEF_STATIC_CONST_VAL_FLOAT(val_3156, 0.331154); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0035 37 DEF_STATIC_CONST_VAL_FLOAT(val_3157, 98.809601); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0034 38 DEF_STATIC_CONST_VAL_FLOAT(val_3158, 90.932503); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0029 39 DEF_STATIC_CONST_VAL_FLOAT(val_3159, 0.499326); DEF_STATIC_CONST_VAL_FLOAT(val_3160, 0.229493); DEF_STATIC_CONST_VAL_FLOAT(val_3161, 100.038002); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0040 42 DEF_STATIC_CONST_VAL_FLOAT(val_3162, 95.340103); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0039 43 DEF_STATIC_CONST_VAL_FLOAT(val_3163, 0.724190); DEF_STATIC_CONST_VAL_FLOAT(val_3164, 90.796303); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0043 45 DEF_STATIC_CONST_VAL_FLOAT(val_3165, 86.082001); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0000 46 DEF_STATIC_CONST_VAL_FLOAT(val_3166, 103.342003); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0047 49 DEF_STATIC_CONST_VAL_FLOAT(val_3167, 84.563400); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0049 51 DEF_STATIC_CONST_VAL_FLOAT(val_3168, 92.239998); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0046 52 DEF_STATIC_CONST_VAL_FLOAT(val_3169, 14.900000); DEF_STATIC_CONST_VAL_FLOAT(val_3170, 85.790802); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0053 55 DEF_STATIC_CONST_VAL_FLOAT(val_3171, 91.098900); #define CTNODE_cmu_us_rms_f0_ax_26_NO_0052 56 DEF_STATIC_CONST_VAL_FLOAT(val_3172, 82.932899); DEF_STATIC_CONST_VAL_FLOAT(val_3173, 0.733500); DEF_STATIC_CONST_VAL_FLOAT(val_3174, 0.404000); DEF_STATIC_CONST_VAL_FLOAT(val_3175, 0.343000); DEF_STATIC_CONST_VAL_FLOAT(val_3176, 104.860001); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0002 4 DEF_STATIC_CONST_VAL_FLOAT(val_3177, 110.285004); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0001 5 DEF_STATIC_CONST_VAL_FLOAT(val_3178, 106.164001); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0005 7 DEF_STATIC_CONST_VAL_FLOAT(val_3179, 100.384003); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_3180, 104.206001); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0007 11 DEF_STATIC_CONST_VAL_FLOAT(val_3181, 97.820000); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0000 12 DEF_STATIC_CONST_VAL_FLOAT(val_3182, 91.414101); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0015 17 DEF_STATIC_CONST_VAL_FLOAT(val_3183, 108.902000); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0017 19 DEF_STATIC_CONST_VAL_FLOAT(val_3184, 97.670799); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0019 21 DEF_STATIC_CONST_VAL_FLOAT(val_3185, 102.235001); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0014 22 DEF_STATIC_CONST_VAL_FLOAT(val_3186, 1.602000); DEF_STATIC_CONST_VAL_FLOAT(val_3187, 99.187698); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0023 25 DEF_STATIC_CONST_VAL_FLOAT(val_3188, 95.093697); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0022 26 DEF_STATIC_CONST_VAL_FLOAT(val_3189, 88.407501); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0026 28 DEF_STATIC_CONST_VAL_FLOAT(val_3190, 93.920601); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0028 30 DEF_STATIC_CONST_VAL_FLOAT(val_3191, 90.167000); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0013 31 DEF_STATIC_CONST_VAL_FLOAT(val_3192, 90.612000); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0034 36 DEF_STATIC_CONST_VAL_FLOAT(val_3193, 0.668246); DEF_STATIC_CONST_VAL_FLOAT(val_3194, 87.535202); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0036 38 DEF_STATIC_CONST_VAL_FLOAT(val_3195, 84.661598); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0033 39 DEF_STATIC_CONST_VAL_FLOAT(val_3196, 93.196800); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0032 40 DEF_STATIC_CONST_VAL_FLOAT(val_3197, 84.366798); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0031 41 DEF_STATIC_CONST_VAL_FLOAT(val_3198, 0.633073); DEF_STATIC_CONST_VAL_FLOAT(val_3199, 98.877502); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0042 44 DEF_STATIC_CONST_VAL_FLOAT(val_3200, 3.400000); DEF_STATIC_CONST_VAL_FLOAT(val_3201, 95.436996); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0044 46 DEF_STATIC_CONST_VAL_FLOAT(val_3202, 90.328598); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0041 47 DEF_STATIC_CONST_VAL_FLOAT(val_3203, 2.813000); DEF_STATIC_CONST_VAL_FLOAT(val_3204, 91.584099); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0047 49 DEF_STATIC_CONST_VAL_FLOAT(val_3205, 85.611702); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0049 51 DEF_STATIC_CONST_VAL_FLOAT(val_3206, 90.260803); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0012 52 DEF_STATIC_CONST_VAL_FLOAT(val_3207, 4.300000); DEF_STATIC_CONST_VAL_FLOAT(val_3208, 84.495697); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0054 56 DEF_STATIC_CONST_VAL_FLOAT(val_3209, 92.619202); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0053 57 DEF_STATIC_CONST_VAL_FLOAT(val_3210, 87.391296); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0057 59 DEF_STATIC_CONST_VAL_FLOAT(val_3211, 82.215599); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0052 60 DEF_STATIC_CONST_VAL_FLOAT(val_3212, 87.246597); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0060 62 DEF_STATIC_CONST_VAL_FLOAT(val_3213, 81.886803); #define CTNODE_cmu_us_rms_f0_ax_27_NO_0062 64 DEF_STATIC_CONST_VAL_FLOAT(val_3214, 76.452499); DEF_STATIC_CONST_VAL_FLOAT(val_3215, 0.042000); DEF_STATIC_CONST_VAL_FLOAT(val_3216, 98.536499); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_3217, 107.777000); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0003 5 DEF_STATIC_CONST_VAL_FLOAT(val_3218, 103.865997); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0000 6 DEF_STATIC_CONST_VAL_FLOAT(val_3219, 0.622222); DEF_STATIC_CONST_VAL_FLOAT(val_3220, 0.241534); DEF_STATIC_CONST_VAL_FLOAT(val_3221, 107.210999); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0008 10 DEF_STATIC_CONST_VAL_FLOAT(val_3222, 1.400000); DEF_STATIC_CONST_VAL_FLOAT(val_3223, 99.978302); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0011 13 DEF_STATIC_CONST_VAL_FLOAT(val_3224, 95.122200); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0010 14 DEF_STATIC_CONST_VAL_FLOAT(val_3225, 0.523655); DEF_STATIC_CONST_VAL_FLOAT(val_3226, 95.084000); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0014 16 DEF_STATIC_CONST_VAL_FLOAT(val_3227, 87.554398); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0016 18 DEF_STATIC_CONST_VAL_FLOAT(val_3228, 91.083397); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0007 19 DEF_STATIC_CONST_VAL_FLOAT(val_3229, 0.426052); DEF_STATIC_CONST_VAL_FLOAT(val_3230, 101.764999); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0021 23 DEF_STATIC_CONST_VAL_FLOAT(val_3231, 94.051598); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0020 24 DEF_STATIC_CONST_VAL_FLOAT(val_3232, 95.691597); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0025 27 DEF_STATIC_CONST_VAL_FLOAT(val_3233, 0.586188); DEF_STATIC_CONST_VAL_FLOAT(val_3234, 95.059402); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0027 29 DEF_STATIC_CONST_VAL_FLOAT(val_3235, 88.979797); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0024 30 DEF_STATIC_CONST_VAL_FLOAT(val_3236, 0.612183); DEF_STATIC_CONST_VAL_FLOAT(val_3237, 92.604401); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0030 32 DEF_STATIC_CONST_VAL_FLOAT(val_3238, 87.821701); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0019 33 DEF_STATIC_CONST_VAL_FLOAT(val_3239, 0.056000); DEF_STATIC_CONST_VAL_FLOAT(val_3240, 85.595100); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0034 36 DEF_STATIC_CONST_VAL_FLOAT(val_3241, 82.076103); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0033 37 DEF_STATIC_CONST_VAL_FLOAT(val_3242, 0.242569); DEF_STATIC_CONST_VAL_FLOAT(val_3243, 95.935600); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0037 39 DEF_STATIC_CONST_VAL_FLOAT(val_3244, 0.850000); DEF_STATIC_CONST_VAL_FLOAT(val_3245, 92.031898); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0041 43 DEF_STATIC_CONST_VAL_FLOAT(val_3246, 88.864403); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0040 44 DEF_STATIC_CONST_VAL_FLOAT(val_3247, 0.533808); DEF_STATIC_CONST_VAL_FLOAT(val_3248, 89.059402); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0044 46 DEF_STATIC_CONST_VAL_FLOAT(val_3249, 84.070000); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0039 47 DEF_STATIC_CONST_VAL_FLOAT(val_3250, 84.228203); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0006 48 DEF_STATIC_CONST_VAL_FLOAT(val_3251, 87.274002); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0049 51 DEF_STATIC_CONST_VAL_FLOAT(val_3252, 83.078796); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0051 53 DEF_STATIC_CONST_VAL_FLOAT(val_3253, 79.658997); #define CTNODE_cmu_us_rms_f0_ax_28_NO_0048 54 DEF_STATIC_CONST_VAL_FLOAT(val_3254, 78.215797);
47.656945
49
0.878495
Barath-Kannan
8de6b8f2da582c498765deac51c0c290866ece8f
1,530
cpp
C++
g.cpp
llwwns/atcoder-past-3
a022382cacd5a726909ca844ce885d7ae598cf1c
[ "MIT" ]
null
null
null
g.cpp
llwwns/atcoder-past-3
a022382cacd5a726909ca844ce885d7ae598cf1c
[ "MIT" ]
null
null
null
g.cpp
llwwns/atcoder-past-3
a022382cacd5a726909ca844ce885d7ae598cf1c
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <queue> #include <tuple> using namespace std; int main() { int n, x, y; cin >> n >> x >> y; vector<vector<bool>> p(405, vector<bool>(405, false)); for (int i = 0; i < n; i++) { int px, py; cin >> px >> py; p[px + 202][py + 202] = true; } priority_queue<tuple<int, int, int, int>, std::vector<tuple<int, int, int, int>>, std::greater<tuple<int, int, int, int>> > q; auto h = [&](int i, int j) { int dx = x - i >= 0 ? x - i : i - x; int dy = y - j >= 0 ? y - j : j - y; return max(dx, dy); }; q.push(make_tuple(h(0, 0), 0, 0, 0)); auto check = [&](int nx, int ny, int b) { if (nx < -202 || nx > 202 || ny < -202 || ny > 202 || p[nx + 202][ny + 202]) { return false; } if (nx == x && ny == y) { return true; } q.push(make_tuple(h(nx, ny) + b + 1, b + 1, nx, ny)); p[nx + 202][ny + 202] = true; return false; }; while (!q.empty()) { int a, cx, cy, b; tie(a, b, cx, cy) = q.top(); q.pop(); if ( check(cx + 1, cy + 1, b) || check(cx, cy + 1,b) || check(cx - 1, cy + 1,b) || check(cx + 1, cy,b) || check(cx - 1, cy,b) || check(cx, cy - 1,b) ) { cout << b + 1 << endl; return 0; } } cout << -1 << endl; }
27.321429
86
0.388235
llwwns
8de8c619615594f648376d9bad5c87a6a4d7dc39
274
cpp
C++
src/pola/gui/View.cpp
lij0511/pandora
5988618f29d2f1ba418ef54a02e227903c1e7108
[ "Apache-2.0" ]
null
null
null
src/pola/gui/View.cpp
lij0511/pandora
5988618f29d2f1ba418ef54a02e227903c1e7108
[ "Apache-2.0" ]
null
null
null
src/pola/gui/View.cpp
lij0511/pandora
5988618f29d2f1ba418ef54a02e227903c1e7108
[ "Apache-2.0" ]
null
null
null
/* * View.cpp * * Created on: 2016年5月25日 * Author: lijing */ #include "pola/gui/View.h" namespace pola { namespace gui { View::View() { } View::~View() { } void View::onDraw(graphic::GraphicContext* graphic) { } } /* namespace gui */ } /* namespace pola */
11.416667
53
0.60219
lij0511
8df61ce703f6b4cc70ed365bb85048e83a4f4feb
3,152
hpp
C++
src/seed_tracker.hpp
skovaka/nanopore_aligner
0ebd606d941db0bb82f14c17b453f27269a38716
[ "MIT" ]
489
2018-11-02T14:04:10.000Z
2022-03-25T07:31:59.000Z
src/seed_tracker.hpp
skovaka/nanopore_aligner
0ebd606d941db0bb82f14c17b453f27269a38716
[ "MIT" ]
39
2019-11-11T00:49:51.000Z
2022-03-22T18:04:01.000Z
src/seed_tracker.hpp
skovaka/nanopore_aligner
0ebd606d941db0bb82f14c17b453f27269a38716
[ "MIT" ]
45
2018-11-08T20:41:21.000Z
2022-03-15T00:53:28.000Z
/* MIT License * * Copyright (c) 2018 Sam Kovaka <[email protected]> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef _INCL_READ_SEED_TRACKER #define _INCL_READ_SEED_TRACKER #include <set> #include <vector> #include <iostream> #include <algorithm> #include "util.hpp" #include "range.hpp" //typedef struct { // float min_mean_conf = 6.00; // float min_top_conf = 1.85; //} TrackerParams; class SeedCluster { //TODO: privatize public: u64 ref_st_; Range ref_en_; u32 evt_st_, evt_en_, total_len_; #ifdef DEBUG_SEEDS u32 id_; #endif SeedCluster(Range ref_st, u32 evt_st); //SeedCluster(const SeedCluster &r); SeedCluster(); u64 ref_start_base() const; u8 update(SeedCluster &new_seed); void print(std::ostream &out, bool newline, bool print_all) const; Range ref_range() const; bool is_valid(); friend bool operator< (const SeedCluster &q1, const SeedCluster &q2); friend std::ostream &operator<< (std::ostream &out, const SeedCluster &a); }; const SeedCluster NULL_ALN = SeedCluster(); bool operator< (const SeedCluster &q1, const SeedCluster &q2); std::ostream &operator<< (std::ostream &out, const SeedCluster &a); class SeedTracker { public: typedef struct { u32 min_map_len; float min_mean_conf; float min_top_conf; } Params; static const Params PRMS_DEF; Params PRMS; std::set<SeedCluster> seed_clusters_; std::multiset<u32> all_lens_; SeedCluster max_map_; float len_sum_; SeedTracker(); SeedTracker(Params params); //SeedCluster add_seed(SeedCluster sg); const SeedCluster &add_seed(u64 ref_en, u32 ref_len, u32 evt_st); SeedCluster get_final(); SeedCluster get_best(); float get_top_conf(); float get_mean_conf(); bool empty(); void reset(); std::vector<SeedCluster> get_alignments(u8 min_len); bool check_ratio(const SeedCluster &s, float ratio); bool check_map_conf(u32 seed_len, float mean_len, float second_len); void print(std::ostream &out, u16 max_out); }; #endif
27.893805
81
0.708439
skovaka
8df794657ea1e8fd0e2b6a33f6c7ce1c0ce1cd09
671
hh
C++
hefur/scrape-response.hh
sot-tech/hefur
6307015793ef4b24f0124c393c0e6f3a573a3590
[ "MIT" ]
126
2015-02-16T13:14:03.000Z
2022-03-27T14:46:19.000Z
hefur/scrape-response.hh
sot-tech/hefur
6307015793ef4b24f0124c393c0e6f3a573a3590
[ "MIT" ]
35
2015-03-31T20:20:34.000Z
2022-02-02T13:55:36.000Z
hefur/scrape-response.hh
sot-tech/hefur
6307015793ef4b24f0124c393c0e6f3a573a3590
[ "MIT" ]
31
2015-05-28T02:04:48.000Z
2022-02-02T13:48:03.000Z
#pragma once #include <string> #include <vector> #include <mimosa/ref-countable.hh> #include "info-hash.hh" #include "namespace-helper.hh" namespace hefur { /** * This class represents a scrape response. * It is used by both http(s) server and upd server. */ struct ScrapeResponse : public m::RefCountable<ScrapeResponse> { MIMOSA_DEF_PTR(ScrapeResponse); bool error_; std::string error_msg_; struct Item { InfoHash info_hash_; uint32_t nleechers_; uint32_t nseeders_; uint32_t ndownloaded_; }; uint32_t interval_; std::vector<Item> items_; }; } // namespace hefur
20.333333
67
0.643815
sot-tech
8dfaf13cc05e1dfeded6c3df3248b9cf8d9854cb
6,139
hpp
C++
Controllers/UART/stm32f1_UART.hpp
7bnx/Embedded
afb83151500b27066b571336c32aaddd9fa97fd7
[ "MIT" ]
null
null
null
Controllers/UART/stm32f1_UART.hpp
7bnx/Embedded
afb83151500b27066b571336c32aaddd9fa97fd7
[ "MIT" ]
null
null
null
Controllers/UART/stm32f1_UART.hpp
7bnx/Embedded
afb83151500b27066b571336c32aaddd9fa97fd7
[ "MIT" ]
null
null
null
//---------------------------------------------------------------------------------- // Author: Semyon Ivanov // e-mail: [email protected] // github: https://github.com/7bnx/Embedded // Description: Driver for UART. STM32F1-series // TODO: //---------------------------------------------------------------------------------- #ifndef _STM32F1_UART_HPP #define _STM32F1_UART_HPP #include "stm32f1_UART_Helper.hpp" /*! @brief Controller's peripherals devices */ namespace controller{ /*! @brief UART1 interface @tparam <txBufferSize> size of tx buffer @tparam <txBufferSize> size of rx buffer @tparam <comm> communication type - via DMA or ISR. Default TX and RX via DMA @tparam <mode> default mode is none parity, 8 data-bits, 1 stop-bit @tparam <remap> remap pins of UART */ template<size_t txBufferSize, size_t rxBufferSize, configuration::uart::communication comm = configuration::uart::communication::txDMA_rxDMA, configuration::uart::mode mode = configuration::uart::mode::E_8_1, configuration::uart::remap remap = configuration::uart::remap::None> class UART1 : public helper::uart::Helper<UART1<txBufferSize, rxBufferSize, comm, mode, remap>, 1, txBufferSize, rxBufferSize, comm, mode, remap>{ protected: using base = helper::uart::Helper<UART1<txBufferSize, rxBufferSize, comm, mode, remap>, 1, txBufferSize, rxBufferSize, comm, mode, remap>; static constexpr uint32_t remapValue = remap == configuration::uart::remap::None ? 0 : 0x211; static constexpr uint32_t dmaID = 1; static constexpr uint32_t channelDMATX = 4; static constexpr uint32_t channelDMARX = 5; static constexpr uint32_t baseAddress = 0x40013800; friend base; struct pins{ using TX = std::conditional_t<remap == configuration::uart::remap::None, Pin::PA_9, Pin::PB_6>; using RX = std::conditional_t<remap == configuration::uart::remap::None, Pin::PA_10, Pin::PB_7>; }; struct power{ static constexpr uint32_t UART1EN = 1 << 14, UARTEN = 0, DMAEN = 1; }; struct irq{ static constexpr uint32_t UART = 37, DMATX = 14, DMARX = 15; }; static_assert(remap != configuration::uart::remap::Full, "UART1 has no full remap"); }; /*! @brief UART2 interface @tparam <txBufferSize> size of tx buffer @tparam <txBufferSize> size of rx buffer @tparam <comm> communication type - via DMA or ISR. Default TX and RX via DMA @tparam <mode> default mode is none parity, 8 data-bits, 1 stop-bit @tparam <remap> remap pins of UART */ template<size_t txBufferSize, size_t rxBufferSize, configuration::uart::communication comm = configuration::uart::communication::txDMA_rxDMA, configuration::uart::mode mode = configuration::uart::mode::N_8_1, configuration::uart::remap remap = configuration::uart::remap::None> class UART2 : public helper::uart::Helper<UART2<txBufferSize, rxBufferSize, comm, mode, remap>, 2, txBufferSize, rxBufferSize, comm, mode, remap>{ protected: using base = helper::uart::Helper<UART2<txBufferSize, rxBufferSize, comm, mode, remap>, 2, txBufferSize, rxBufferSize, comm, mode, remap>; static constexpr uint32_t remapValue = remap == configuration::uart::remap::None ? 0 : 0x311; static constexpr uint32_t dmaID = 1; static constexpr uint32_t channelDMATX = 7; static constexpr uint32_t channelDMARX = 6; static constexpr uint32_t baseAddress = 0x40004400; struct pins{ using TX = std::conditional_t<remap == configuration::uart::remap::None, Pin::PA_2, Pin::PD_5>; using RX = std::conditional_t<remap == configuration::uart::remap::None, Pin::PA_3, Pin::PD_6>; }; struct power{ static constexpr uint32_t UART1EN = 0, UARTEN = 0x20000, DMAEN = 1; }; struct irq{ static constexpr uint32_t UART = 38, DMATX = 17, DMARX = 16; }; friend base; static_assert(remap != configuration::uart::remap::Full, "UART2 has no full remap"); }; /*! @brief UART3 interface @tparam <txBufferSize> size of tx buffer @tparam <txBufferSize> size of rx buffer @tparam <comm> communication type - via DMA or ISR. Default TX and RX via DMA @tparam <mode> default mode is none parity, 8 data-bits, 1 stop-bit @tparam <remap> remap pins of UART */ template<size_t txBufferSize, size_t rxBufferSize, configuration::uart::communication comm = configuration::uart::communication::txDMA_rxDMA, configuration::uart::mode mode = configuration::uart::mode::N_8_1, configuration::uart::remap remap = configuration::uart::remap::None> class UART3 : public helper::uart::Helper<UART3<txBufferSize, rxBufferSize, comm, mode, remap>, 3, txBufferSize, rxBufferSize, comm, mode, remap>{ protected: using base = helper::uart::Helper<UART3<txBufferSize, rxBufferSize, comm, mode, remap>, 3, txBufferSize, rxBufferSize, comm, mode, remap>; static constexpr uint32_t remapValue = remap == configuration::uart::remap::None ? 0 : remap == configuration::uart::remap::Partial ? 0x411 : 0x412; static constexpr uint32_t dmaID = 1; static constexpr uint32_t channelDMATX = 2; static constexpr uint32_t channelDMARX = 3; static constexpr uint32_t baseAddress = 0x40004800; struct pins{ using TX = std::conditional_t<remap == configuration::uart::remap::None, Pin::PB_10, std::conditional_t<remap == configuration::uart::remap::Partial, Pin::PC_10, Pin::PD_8>>; using RX = std::conditional_t<remap == configuration::uart::remap::None, Pin::PB_11, std::conditional_t<remap == configuration::uart::remap::Partial, Pin::PC_11, Pin::PD_9>>; }; struct power{ static constexpr uint32_t UART1EN = 0, UARTEN = 0x40000, DMAEN = 1; }; struct irq{ static constexpr uint32_t UART = 39, DMATX = 12, DMARX = 13; }; friend base; }; } // !namspace controller #endif //!_STM32F1_UART_HPP
34.488764
104
0.653364
7bnx
8dfb853f14d950344cfe17a994815eb3fb5015d6
1,997
cpp
C++
Engine/sdk/src/lwDirectoryBrowser.cpp
ruuuubi/corsairs-client
ddbcd293d6ef3f58ff02290c02382cbb7e0939a2
[ "Apache-2.0" ]
1
2021-06-14T09:34:08.000Z
2021-06-14T09:34:08.000Z
Engine/sdk/src/lwDirectoryBrowser.cpp
ruuuubi/corsairs-client
ddbcd293d6ef3f58ff02290c02382cbb7e0939a2
[ "Apache-2.0" ]
null
null
null
Engine/sdk/src/lwDirectoryBrowser.cpp
ruuuubi/corsairs-client
ddbcd293d6ef3f58ff02290c02382cbb7e0939a2
[ "Apache-2.0" ]
null
null
null
// #include "lwDirectoryBrowser.h" LW_BEGIN // lwDirectoryBrowser LW_STD_IMPLEMENTATION(lwDirectoryBrowser) lwDirectoryBrowser::lwDirectoryBrowser() : _proc(0), _param(0) { } LW_RESULT lwDirectoryBrowser::_Go(const char* file, DWORD flag) { LW_RESULT ret = LW_RET_OK; WIN32_FIND_DATA wfd; HANDLE handle = ::FindFirstFile(file, &wfd); if(handle == INVALID_HANDLE_VALUE) goto __ret; char file_path[260]; char file_spec[64]; strcpy(file_path, file); char* p = strrchr(file_path, '\\'); if(p == 0) goto __ret; strcpy(file_spec, &p[1]); p[1] = '\0'; do { if(wfd.cFileName[0] == '.') { if((wfd.cFileName[1] == '\0') || (wfd.cFileName[1] == '.' && wfd.cFileName[2] == '\0')) { continue; } } if((!(wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) && (flag & DIR_BROWSE_FILE)) { if(LW_FAILED((*_proc)(file_path, &wfd, _param))) { ret = LW_RET_OK_1; goto __ret; } } else if((wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) && (flag & DIR_BROWSE_DIRECTORY)) { if(LW_FAILED((*_proc)(file_path, &wfd, _param))) { ret = LW_RET_OK_1; goto __ret; } char sub_file[260]; sprintf(sub_file, "%s%s\\%s", file_path, wfd.cFileName, file_spec); if((ret = _Go(sub_file, flag)) == LW_RET_OK_1) goto __ret; } } while(::FindNextFile(handle, &wfd)); __ret: ::FindClose(handle); return ret; } LW_RESULT lwDirectoryBrowser::Browse(const char *file, DWORD flag) { LW_RESULT ret = LW_RET_FAILED; if(_proc == 0) goto __ret; //char* p = strrchr(file, '\\'); //if((p == 0) || (p[1] == '\0')) // goto __ret; ret = _Go(file, flag); __ret: return ret; } LW_END
20.377551
99
0.522784
ruuuubi
5c03011bc9dfc923634572952542be6a6434e68b
4,381
hh
C++
trex/utils/TREXversion.hh
miatauro/trex2-agent
d896f8335f3194237a8bba49949e86f5488feddb
[ "BSD-3-Clause" ]
null
null
null
trex/utils/TREXversion.hh
miatauro/trex2-agent
d896f8335f3194237a8bba49949e86f5488feddb
[ "BSD-3-Clause" ]
null
null
null
trex/utils/TREXversion.hh
miatauro/trex2-agent
d896f8335f3194237a8bba49949e86f5488feddb
[ "BSD-3-Clause" ]
null
null
null
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2011, MBARI. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials provided * with the distribution. * * Neither the name of the TREX Project nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef H_TREXversion # define H_TREXversion # include <string> namespace TREX { /** @brief Core libraries version information * * This simple class lows to access to information about the current TREX * version of TREX core libararies * * @ingroup utils * @author Frederic Py <[email protected]> */ class version { public: version() {} ~version() {} /** @brief version number * * Indicates the version number of this library. This version number follows * the same nomenclature as th boost versionning and is guaranteed to * increase as we have new versions. * * @return 100*(100*major()+minor())+release() * @sa major() * @sa minor() * @sa release() * @sa is_release_candidate() * @sa str() * * @note For backward compatibility reasons -- along with the fact * that sorting versions numbers encoded as int with RC is not trivial * -- this number @e do @e not include the rc number. RC number should * be tested aside knowing that 0.4.0-rc1 < 0.4.0-rc2 < ... < 0.4.0 */ static unsigned long number(); /** @brief Major version number * @return the major version number */ static unsigned short major_number(); /** @brief Minor version number * @return the minor version number */ static unsigned short minor_number(); /** @brief Patch version number * @return the patch version number */ static unsigned short release_number(); /** @brief Check if reelase candidate * * Checks if this version is a release cnadidate or not * @sa rc_number() */ static bool is_release_candidate(); /** @brief release cancdidate version * * @return The release candidate version number for this version or 0 * if this version is not an RC * @sa is_release_candidate() */ static unsigned rc_number(); /** @brief Human readable version * * Indicates the version number as a human readable string * the string is formatted the usual way : * @<major@>.@<minor@>.@<patch@>[-rc@<rc@>] * * @return The string value for this version * @sa major() * @sa minor() * @sa release() * @sa rc_number() * @sa number() */ static std::string str(); static std::string full_str(); static bool svn_info(); static std::string svn_root(); static std::string svn_revision(); static bool git_info(); static std::string git_branch(); static std::string git_revision(); }; // TREX::version } // TREX #endif // H_TREXversion
33.7
81
0.654645
miatauro
5c05bda0a11c0cbacefed0d2d310cb395808b744
6,900
hxx
C++
opencascade/IGESDraw_ConnectPoint.hxx
mgreminger/OCP
92eacb99497cd52b419c8a4a8ab0abab2330ed42
[ "Apache-2.0" ]
null
null
null
opencascade/IGESDraw_ConnectPoint.hxx
mgreminger/OCP
92eacb99497cd52b419c8a4a8ab0abab2330ed42
[ "Apache-2.0" ]
null
null
null
opencascade/IGESDraw_ConnectPoint.hxx
mgreminger/OCP
92eacb99497cd52b419c8a4a8ab0abab2330ed42
[ "Apache-2.0" ]
null
null
null
// Created on: 1993-01-11 // Created by: CKY / Contract Toubro-Larsen ( Niraj RANGWALA ) // Copyright (c) 1993-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 _IGESDraw_ConnectPoint_HeaderFile #define _IGESDraw_ConnectPoint_HeaderFile #include <Standard.hxx> #include <Standard_Type.hxx> #include <gp_XYZ.hxx> #include <Standard_Integer.hxx> #include <IGESData_IGESEntity.hxx> #include <Standard_Boolean.hxx> class TCollection_HAsciiString; class IGESGraph_TextDisplayTemplate; class gp_Pnt; class IGESDraw_ConnectPoint; DEFINE_STANDARD_HANDLE(IGESDraw_ConnectPoint, IGESData_IGESEntity) //! defines IGESConnectPoint, Type <132> Form Number <0> //! in package IGESDraw //! //! Connect Point Entity describes a point of connection for //! zero, one or more entities. Its referenced from Composite //! curve, or Network Subfigure Definition/Instance, or Flow //! Associative Instance, or it may stand alone. class IGESDraw_ConnectPoint : public IGESData_IGESEntity { public: Standard_EXPORT IGESDraw_ConnectPoint(); //! This method is used to set the fields of the class //! ConnectPoint //! - aPoint : A Coordinate point //! - aDisplaySymbol : Display symbol Geometry //! - aTypeFlag : Type of the connection //! - aFunctionFlag : Function flag for the connection //! - aFunctionIdentifier : Connection Point Function Identifier //! - anIdentifierTemplate : Connection Point Function Template //! - aFunctionName : Connection Point Function Name //! - aFunctionTemplate : Connection Point Function Template //! - aPointIdentifier : Unique Connect Point Identifier //! - aFunctionCode : Connect Point Function Code //! - aSwapFlag : Connect Point Swap Flag //! - anOwnerSubfigure : Pointer to the "Owner" Entity Standard_EXPORT void Init (const gp_XYZ& aPoint, const Handle(IGESData_IGESEntity)& aDisplaySymbol, const Standard_Integer aTypeFlag, const Standard_Integer aFunctionFlag, const Handle(TCollection_HAsciiString)& aFunctionIdentifier, const Handle(IGESGraph_TextDisplayTemplate)& anIdentifierTemplate, const Handle(TCollection_HAsciiString)& aFunctionName, const Handle(IGESGraph_TextDisplayTemplate)& aFunctionTemplate, const Standard_Integer aPointIdentifier, const Standard_Integer aFunctionCode, const Standard_Integer aSwapFlag, const Handle(IGESData_IGESEntity)& anOwnerSubfigure); //! returns the coordinate of the connection point Standard_EXPORT gp_Pnt Point() const; //! returns the Transformed coordinate of the connection point Standard_EXPORT gp_Pnt TransformedPoint() const; //! returns True if Display symbol is specified //! else returns False Standard_EXPORT Standard_Boolean HasDisplaySymbol() const; //! if display symbol specified returns display symbol geometric entity //! else returns NULL Handle Standard_EXPORT Handle(IGESData_IGESEntity) DisplaySymbol() const; //! return value specifies a particular type of connection : //! Type Flag = 0 : Not Specified(default) //! 1 : Nonspecific logical point of connection //! 2 : Nonspecific physical point of connection //! 101 : Logical component pin //! 102 : Logical part connector //! 103 : Logical offpage connector //! 104 : Logical global signal connector //! 201 : Physical PWA surface mount pin //! 202 : Physical PWA blind pin //! 203 : Physical PWA thru-pin //! 5001-9999 : Implementor defined. Standard_EXPORT Standard_Integer TypeFlag() const; //! returns Function Code that specifies a particular function for the //! ECO576 connection : //! e.g., Function Flag = 0 : Unspecified(default) //! = 1 : Electrical Signal //! = 2 : Fluid flow Signal Standard_EXPORT Standard_Integer FunctionFlag() const; //! return HAsciiString identifying Pin Number or Nozzle Label etc. Standard_EXPORT Handle(TCollection_HAsciiString) FunctionIdentifier() const; //! returns True if Text Display Template is specified for Identifier //! else returns False Standard_EXPORT Standard_Boolean HasIdentifierTemplate() const; //! if Text Display Template for the Function Identifier is defined, //! returns TestDisplayTemplate //! else returns NULL Handle Standard_EXPORT Handle(IGESGraph_TextDisplayTemplate) IdentifierTemplate() const; //! returns Connection Point Function Name Standard_EXPORT Handle(TCollection_HAsciiString) FunctionName() const; //! returns True if Text Display Template is specified for Function Name //! else returns False Standard_EXPORT Standard_Boolean HasFunctionTemplate() const; //! if Text Display Template for the Function Name is defined, //! returns TestDisplayTemplate //! else returns NULL Handle Standard_EXPORT Handle(IGESGraph_TextDisplayTemplate) FunctionTemplate() const; //! returns the Unique Connect Point Identifier Standard_EXPORT Standard_Integer PointIdentifier() const; //! returns the Connect Point Function Code Standard_EXPORT Standard_Integer FunctionCode() const; //! return value = 0 : Connect point may be swapped(default) //! = 1 : Connect point may not be swapped Standard_EXPORT Standard_Boolean SwapFlag() const; //! returns True if Network Subfigure Instance/Definition Entity //! is specified //! else returns False Standard_EXPORT Standard_Boolean HasOwnerSubfigure() const; //! returns "owner" Network Subfigure Instance Entity, //! or Network Subfigure Definition Entity, or NULL Handle. Standard_EXPORT Handle(IGESData_IGESEntity) OwnerSubfigure() const; DEFINE_STANDARD_RTTIEXT(IGESDraw_ConnectPoint,IGESData_IGESEntity) protected: private: gp_XYZ thePoint; Handle(IGESData_IGESEntity) theDisplaySymbol; Standard_Integer theTypeFlag; Standard_Integer theFunctionFlag; Handle(TCollection_HAsciiString) theFunctionIdentifier; Handle(IGESGraph_TextDisplayTemplate) theIdentifierTemplate; Handle(TCollection_HAsciiString) theFunctionName; Handle(IGESGraph_TextDisplayTemplate) theFunctionTemplate; Standard_Integer thePointIdentifier; Standard_Integer theFunctionCode; Standard_Boolean theSwapFlag; Handle(IGESData_IGESEntity) theOwnerSubfigure; }; #endif // _IGESDraw_ConnectPoint_HeaderFile
38.333333
587
0.764058
mgreminger
5c08ce28e508537c679695090e5706aa0ba58a56
1,950
hpp
C++
xxhr/session.hpp
jamesgrantham/xxhr
0d33abce7e87bb8b78141fcf6f918158a436660c
[ "MIT" ]
15
2017-03-13T08:19:27.000Z
2022-02-02T21:18:57.000Z
xxhr/session.hpp
jamesgrantham/xxhr
0d33abce7e87bb8b78141fcf6f918158a436660c
[ "MIT" ]
6
2018-06-29T12:00:12.000Z
2021-12-17T19:45:47.000Z
xxhr/session.hpp
jamesgrantham/xxhr
0d33abce7e87bb8b78141fcf6f918158a436660c
[ "MIT" ]
3
2018-09-28T00:37:29.000Z
2020-12-04T09:05:23.000Z
#ifndef XXHR_SESSION_H #define XXHR_SESSION_H #include <cstdint> #include <memory> #include "auth.hpp" #include "body.hpp" #include "cookies.hpp" #include "xxhrtypes.hpp" #include "digest.hpp" #include "max_redirects.hpp" #include "multipart.hpp" #include "parameters.hpp" #include "response.hpp" #include "timeout.hpp" #include "handler.hpp" namespace xxhr { class Session { public: Session(); ~Session(); void SetUrl(const Url& url); void SetParameters(const Parameters& parameters); void SetParameters(Parameters&& parameters); void SetHeader(const Header& header); void SetTimeout(const Timeout& timeout); void SetAuth(const Authentication& auth); void SetDigest(const Digest& auth); void SetMultipart(Multipart&& multipart); void SetMultipart(const Multipart& multipart); void SetRedirect(const bool& redirect); void SetMaxRedirects(const MaxRedirects& max_redirects); void SetCookies(const Cookies& cookies); void SetBody(Body&& body); void SetBody(const Body& body); // Used in templated functions void SetOption(const Url& url); void SetOption(const Parameters& parameters); void SetOption(Parameters&& parameters); void SetOption(const Header& header); void SetOption(const Timeout& timeout); void SetOption(const Authentication& auth); void SetOption(const Digest& auth); void SetOption(Multipart&& multipart); void SetOption(const Multipart& multipart); void SetOption(const bool& redirect); void SetOption(const MaxRedirects& max_redirects); void SetOption(const Cookies& cookies); void SetOption(Body&& body); void SetOption(const Body& body); template<class Handler> void SetOption(const on_response_<Handler>&& on_response); void DELETE_(); void GET(); void HEAD(); void OPTIONS(); void PATCH(); void POST(); void PUT(); class Impl; private: std::shared_ptr<Impl> pimpl_; }; } // namespace xxhr #include <xxhr/impl/session.hpp> #endif
25
60
0.73641
jamesgrantham
5c099ecdff969eb49657fa26055ec0e53a52cc6f
3,865
hpp
C++
src/parsers/parser_blat.hpp
danielnavarrogomez/Anaquin
563dbeb25aff15a55e4309432a967812cbfa0c98
[ "BSD-3-Clause" ]
null
null
null
src/parsers/parser_blat.hpp
danielnavarrogomez/Anaquin
563dbeb25aff15a55e4309432a967812cbfa0c98
[ "BSD-3-Clause" ]
null
null
null
src/parsers/parser_blat.hpp
danielnavarrogomez/Anaquin
563dbeb25aff15a55e4309432a967812cbfa0c98
[ "BSD-3-Clause" ]
null
null
null
#ifndef PARSER_BLAT_HPP #define PARSER_BLAT_HPP #include <functional> #include "data/data.hpp" #include "data/reader.hpp" #include "data/tokens.hpp" #include "parsers/parser.hpp" #include <boost/algorithm/string.hpp> #include <iostream> namespace Anaquin { struct ParserBlat { enum Field { PSL_Matches, PSL_MisMatches, PSL_RepMatches, PSL_NCount, PSL_QGap_Count, PSL_QGap_Bases, PSL_TGap_Count, PSL_TGap_Bases, PSL_Strand, PSL_QName, PSL_QSize, PSL_QStart, PSL_QEnd, PSL_TName, PSL_TSize, PSL_TStart, PSL_TEnd, PSL_Block_Count, PSL_Block_Sizes, PSL_Q_Starts, PSL_T_Starts }; struct Data { // Target sequence name std::string tName; // Query sequence name std::string qName; // Alignment start position in target Base tStart; // Alignment end position in target Base tEnd; // Target sequence size Base tSize; // Alignment start position in query Base qStart; // Alignment end position in query Base qEnd; // Query sequence size Base qSize; // Number of inserts in query Counts qGapCount; // Number of bases inserted into query Base qGap; // Number of inserts in target Counts tGapCount; // Number of bases inserted into target Base tGap; // Number of matching bases Base match; // Number of mismatching bases Base mismatch; }; template <typename F> static void parse(const Reader &r, F f) { protectParse("PSL format", [&]() { ParserProgress p; std::string line; std::vector<std::string> toks; Data l; while (r.nextLine(line)) { if (p.i++ <= 3) { continue; } Tokens::split(line, "\t", toks); if (toks.size() != 21) { throw std::runtime_error("Invalid line: " + line); } l.qName = toks[PSL_QName]; l.tName = toks[PSL_TName]; l.tStart = stoi(toks[PSL_TStart]); l.tEnd = stoi(toks[PSL_TEnd]); l.tSize = stoi(toks[PSL_TSize]); l.qStart = stoi(toks[PSL_QStart]); l.qEnd = stoi(toks[PSL_QEnd]); l.qSize = stoi(toks[PSL_QSize]); l.match = stoi(toks[PSL_Matches]); l.mismatch = stoi(toks[PSL_MisMatches]); l.qGap = stoi(toks[PSL_QGap_Bases]); l.tGap = stoi(toks[PSL_TGap_Bases]); l.qGapCount = stoi(toks[PSL_QGap_Count]); l.tGapCount = stoi(toks[PSL_TGap_Count]); f(l); } }); } }; } #endif
27.805755
74
0.398189
danielnavarrogomez
5c0ae9e77e1f600db070b10913a9ef27abb15c09
843
cpp
C++
runtime/src/aderite/scripting/InternalCalls.cpp
nfwGytautas/aderite
87a6a5c24a6dcaca80088cb7a4fca1f846a7f22c
[ "MIT" ]
null
null
null
runtime/src/aderite/scripting/InternalCalls.cpp
nfwGytautas/aderite
87a6a5c24a6dcaca80088cb7a4fca1f846a7f22c
[ "MIT" ]
null
null
null
runtime/src/aderite/scripting/InternalCalls.cpp
nfwGytautas/aderite
87a6a5c24a6dcaca80088cb7a4fca1f846a7f22c
[ "MIT" ]
null
null
null
#include "InternalCalls.hpp" #include "aderite/scripting/internals/ScriptAudio.hpp" #include "aderite/scripting/internals/ScriptComponents.hpp" #include "aderite/scripting/internals/ScriptDebug.hpp" #include "aderite/scripting/internals/ScriptEntity.hpp" #include "aderite/scripting/internals/ScriptInput.hpp" #include "aderite/scripting/internals/ScriptPhysics.hpp" #include "aderite/scripting/internals/ScriptSystemInternals.hpp" #include "aderite/utility/Log.hpp" namespace aderite { namespace scripting { void linkInternals() { LOG_TRACE("[Scripting] Linking internals"); logInternals(); componentInternals(); entityInternals(); inputInternals(); physicsInternals(); audioInternals(); systemInternals(); LOG_TRACE("[Scripting] Internals linked"); } } // namespace scripting } // namespace aderite
27.193548
64
0.766311
nfwGytautas
5c0f1d6b70455ebc9f373d60620e9c2911c86c1e
1,054
cc
C++
game/src/gui/app/layout_helper.cc
chunseoklee/mengde
7261e45dab9e02d4bf18b4542767f4b50a5616a0
[ "MIT" ]
1
2018-03-02T03:36:59.000Z
2018-03-02T03:36:59.000Z
game/src/gui/app/layout_helper.cc
chunseoklee/mengde
7261e45dab9e02d4bf18b4542767f4b50a5616a0
[ "MIT" ]
1
2018-04-17T01:43:02.000Z
2018-04-17T01:43:02.000Z
game/src/gui/app/layout_helper.cc
chunseoklee/mengde
7261e45dab9e02d4bf18b4542767f4b50a5616a0
[ "MIT" ]
null
null
null
#include "layout_helper.h" #include "gui/foundation/rect.h" #include "util/common.h" namespace mengde { namespace gui { namespace app { namespace layout { Vec2D CalcPositionNearUnit(Vec2D element_size, Vec2D frame_size, Vec2D camera_coords, Vec2D unit_cell) { const int kCellSize = 48; // FIXME hardcoded cell size Vec2D cands[] = {(unit_cell * kCellSize - Vec2D(element_size.x, 0)), (unit_cell * kCellSize - Vec2D(element_size.x - kCellSize, element_size.y)), (unit_cell * kCellSize + Vec2D(kCellSize, kCellSize - element_size.y)), (unit_cell * kCellSize + Vec2D(0, kCellSize))}; Rect frame({0, 0}, frame_size); for (auto e : cands) { Vec2D calc_lt = e - camera_coords; Vec2D calc_rb = calc_lt + element_size; if (frame.Contains(calc_lt) && frame.Contains(calc_rb)) { return calc_lt; } } UNREACHABLE("Cannot arrange with given criteria"); return {0, 0}; } } // namespace layout } // namespace app } // namespace gui } // namespace mengde
30.114286
104
0.6537
chunseoklee
5c164135be53b45a0b8dd74ce9176453fbcd18c7
639
cpp
C++
ch16/exer16_51.cpp
imshenzhuo/CppPrimer
87c74c0a36223e86571c2aedd9da428c06b04f4d
[ "CC0-1.0" ]
3
2019-09-21T13:03:57.000Z
2020-04-05T02:42:53.000Z
ch16/exer16_51.cpp
imshenzhuo/CppPrimer
87c74c0a36223e86571c2aedd9da428c06b04f4d
[ "CC0-1.0" ]
null
null
null
ch16/exer16_51.cpp
imshenzhuo/CppPrimer
87c74c0a36223e86571c2aedd9da428c06b04f4d
[ "CC0-1.0" ]
null
null
null
/************************************************************************* > File Name: exer16_51.cpp > Author: shenzhuo > Mail: [email protected] > Created Time: 2019年09月26日 星期四 09时40分28秒 ************************************************************************/ #include<iostream> #include<string> using namespace std; template <typename T, typename... Args> void foo(const T&t, const Args& ... rest) { cout << sizeof...(Args) << endl; cout << sizeof...(rest) << endl; } int main() { int i = 0; double d = 3.14; string s = "how now brown cow"; foo(i, s, 42, d); foo(s, 42, "hi"); foo(d, s); foo("hi"); }
23.666667
74
0.463224
imshenzhuo
5c21de73201313ec1b80293568b94fe22b358a62
612
hpp
C++
src/NetWidgets/ProgressBar.hpp
frc3512/DriverStationDisplay
c6b5eb263ec1d1701a3d48a915b7b106c982323d
[ "BSD-3-Clause" ]
null
null
null
src/NetWidgets/ProgressBar.hpp
frc3512/DriverStationDisplay
c6b5eb263ec1d1701a3d48a915b7b106c982323d
[ "BSD-3-Clause" ]
null
null
null
src/NetWidgets/ProgressBar.hpp
frc3512/DriverStationDisplay
c6b5eb263ec1d1701a3d48a915b7b106c982323d
[ "BSD-3-Clause" ]
1
2017-03-14T02:13:29.000Z
2017-03-14T02:13:29.000Z
// Copyright (c) 2012-2018 FRC Team 3512. All Rights Reserved. #pragma once #include <string> #include <QProgressBar> #include <QVBoxLayout> #include "NetWidget.hpp" #include "Text.hpp" /** * Provides an interface to a progress bar */ class ProgressBar : public QWidget, public NetWidget { Q_OBJECT public: explicit ProgressBar(bool netUpdate, QWidget* parent = nullptr); void setPercent(int percent); int getPercent(); void setString(const std::wstring& text); std::wstring getString(); void updateEntry() override; private: QProgressBar* m_bar; Text* m_text; };
18
68
0.697712
frc3512
5c21e6f13de9912235666e55e22abcf74401ac26
1,955
cpp
C++
gui/src/models/dialogs-list/dialoginfo.cpp
sqglobe/SecureDialogues
bde56c7a62fb72b1cdfba8cebc0a770157b5f751
[ "MIT" ]
3
2019-07-05T12:01:36.000Z
2021-03-19T22:48:48.000Z
gui/src/models/dialogs-list/dialoginfo.cpp
sqglobe/SecureDialogues
bde56c7a62fb72b1cdfba8cebc0a770157b5f751
[ "MIT" ]
41
2019-11-26T18:59:54.000Z
2020-05-01T10:52:47.000Z
gui/src/models/dialogs-list/dialoginfo.cpp
sqglobe/SecureDialogues
bde56c7a62fb72b1cdfba8cebc0a770157b5f751
[ "MIT" ]
3
2019-05-21T17:48:16.000Z
2021-03-19T22:48:49.000Z
#include "dialoginfo.h" #include "primitives/contact.h" std::string DialogInfo::name() const { return mName; } std::string DialogInfo::address() const { return mAddress; } std::string DialogInfo::moniker() const { return mMoniker; } std::string DialogInfo::dialogId() const { return mDialogId; } std::string DialogInfo::contactId() const { return mContactId; } Dialog::Status DialogInfo::status() const { return mStatus; } std::size_t DialogInfo::unreadMessages() const { return mUnreadMessages; } std::chrono::system_clock::time_point DialogInfo::lastUpdated() const { return mLastUpdated; } DialogInfo::DialogInfo(const Dialog& elem, const Contact& contact) : mName(contact.name()), mAddress(contact.adress()), mMoniker(contact.channelMoniker()), mDialogId(elem.getDialogId()), mContactId(contact.id()), mStatus(elem.getStatus()), mLastUpdated(std::chrono::system_clock::now()) {} DialogInfo& DialogInfo::operator=(const DialogInfo& info) { this->mAddress = info.mAddress; this->mDialogId = info.mDialogId; this->mMoniker = info.mMoniker; this->mName = info.mName; this->mStatus = info.mStatus; this->mUnreadMessages = info.mUnreadMessages; this->mContactId = info.mContactId; this->mLastUpdated = std::chrono::system_clock::now(); return *this; } DialogInfo& DialogInfo::operator=(const Dialog& info) { this->mStatus = info.getStatus(); this->mDialogId = info.getDialogId(); this->mContactId = info.getContactId(); this->mLastUpdated = std::chrono::system_clock::now(); return *this; } DialogInfo& DialogInfo::operator=(const Contact& info) { this->mAddress = info.adress(); this->mMoniker = info.channelMoniker(); this->mName = info.name(); this->mContactId = info.id(); return *this; } void DialogInfo::messagesReaded() { mUnreadMessages = 0; } void DialogInfo::addUnreadMessage() { mUnreadMessages++; this->mLastUpdated = std::chrono::system_clock::now(); }
24.746835
71
0.711509
sqglobe
5c298102243dec2849eb61a190ac353c5315f5e6
272
hpp
C++
include/output/Mixer.hpp
medium-endian/multipid
41ab0c810de04fc48923edf31e3c971826abbaf3
[ "MIT" ]
15
2018-06-25T23:06:57.000Z
2022-03-31T06:00:35.000Z
include/output/Mixer.hpp
medium-endian/multipid
41ab0c810de04fc48923edf31e3c971826abbaf3
[ "MIT" ]
3
2017-11-20T23:00:03.000Z
2018-01-19T16:22:39.000Z
include/output/Mixer.hpp
medium-endian/multipid
41ab0c810de04fc48923edf31e3c971826abbaf3
[ "MIT" ]
1
2020-08-24T13:24:39.000Z
2020-08-24T13:24:39.000Z
#ifndef MIXER_H #define MIXER_H class Mixer { public: float throttle_volume; float roll_volume; float pitch_volume; float yaw_volume; Mixer(float thr_vol, float roll_vol, float pitch_vol, float yaw_vol); }; #endif //MIXER_H
17
77
0.654412
medium-endian
5c29e44aff1e4903ec5714907aa7d61f8cf0283d
1,352
cpp
C++
Source/Fabric/Private/MoPubFunctions.cpp
getsetgames/Fabric
c57937511ecd700a28ba088e26e1a61d794c8a66
[ "MIT" ]
13
2015-06-17T14:39:37.000Z
2021-12-02T15:21:19.000Z
Source/Fabric/Private/MoPubFunctions.cpp
denfrost/Fabric
c57937511ecd700a28ba088e26e1a61d794c8a66
[ "MIT" ]
2
2015-06-17T12:13:17.000Z
2016-11-03T02:40:23.000Z
Source/Fabric/Private/MoPubFunctions.cpp
denfrost/Fabric
c57937511ecd700a28ba088e26e1a61d794c8a66
[ "MIT" ]
10
2015-06-17T14:43:56.000Z
2020-07-01T02:11:07.000Z
// // Created by Derek van Vliet on 2014-12-10. // Copyright (c) 2015 Get Set Games Inc. All rights reserved. // #include "MoPubFunctions.h" #include "FabricPrivatePCH.h" #if PLATFORM_IOS static NSMutableDictionary* AdCache = [NSMutableDictionary dictionary]; #endif bool UMoPubFunctions::MoPubHasInterstitial(FString AdUnitId) { #if PLATFORM_IOS MPInterstitialAdController* Interstitial = [AdCache objectForKey:AdUnitId.GetNSString()]; if (Interstitial && Interstitial.ready) { return true; } #endif return false; } void UMoPubFunctions::MoPubShowInterstitial(FString AdUnitId) { #if PLATFORM_IOS dispatch_async(dispatch_get_main_queue(), ^{ MPInterstitialAdController* Interstitial = [AdCache objectForKey:AdUnitId.GetNSString()]; if (Interstitial && Interstitial.ready) { IOSAppDelegate* AppDelegate = (IOSAppDelegate*)[[UIApplication sharedApplication] delegate]; [Interstitial showFromViewController:AppDelegate.IOSController]; } }); #endif } void UMoPubFunctions::MoPubCacheInterstitial(FString AdUnitId) { #if PLATFORM_IOS dispatch_async(dispatch_get_main_queue(), ^{ MPInterstitialAdController* Interstitial = [MPInterstitialAdController interstitialAdControllerForAdUnitId:AdUnitId.GetNSString()]; [Interstitial loadAd]; [AdCache setObject:Interstitial forKey:AdUnitId.GetNSString()]; }); #endif }
26
133
0.782544
getsetgames
5c2b656adc28b905c8d41693ec76a04dd3f6b74e
384
cpp
C++
Way_Too_Long_Words.cpp
amit9amarwanshi/The_Quiet_Revolution
7713787ef27c0c144e4c2d852d826ee1c4176a95
[ "MIT" ]
null
null
null
Way_Too_Long_Words.cpp
amit9amarwanshi/The_Quiet_Revolution
7713787ef27c0c144e4c2d852d826ee1c4176a95
[ "MIT" ]
null
null
null
Way_Too_Long_Words.cpp
amit9amarwanshi/The_Quiet_Revolution
7713787ef27c0c144e4c2d852d826ee1c4176a95
[ "MIT" ]
null
null
null
#include <iostream> #include<string> using namespace std; int main() { unsigned int n,x; cin>>n; if(n<101) { while(n--) { string s; cin>>s; x=s.length(); if(x<101) { if(x>10) { cout<<s[0]<<x-2<<s[x-1]; } else { cout<<s; } } cout<<"\n"; } } return 0; }
11.636364
35
0.372396
amit9amarwanshi
5c2e494f3b64838cca4aa1da5583aaf9eaab496b
2,543
cc
C++
src/count_bits_set.cc
OpenEye-Contrib/Flush
71fc76cdf3348006d13d53a26fd0a6e1bc55addd
[ "BSD-3-Clause" ]
5
2016-05-11T09:09:29.000Z
2022-03-30T11:06:19.000Z
src/count_bits_set.cc
OpenEye-Contrib/Flush
71fc76cdf3348006d13d53a26fd0a6e1bc55addd
[ "BSD-3-Clause" ]
null
null
null
src/count_bits_set.cc
OpenEye-Contrib/Flush
71fc76cdf3348006d13d53a26fd0a6e1bc55addd
[ "BSD-3-Clause" ]
2
2018-03-19T21:59:43.000Z
2019-01-31T03:10:50.000Z
// take a flush fp file and write out the number of bits set in each cpd. // takes 1 command line argument, the name of the fp file. #include <fstream> #include <iostream> #include <stdio.h> #include "ByteSwapper.H" #include "Fingerprint.H" using namespace std; #include "AbstractPoint.H" int AbstractPoint::next_seq_num = 0; // on a bigendian machine, spells Dave. static const int MAGIC_INT = 0x65766144; // as it appears on a littleendian machine static const int BUGGERED_MAGIC_INT = 0x44617665; // *************************************************************************** int main( int argc , char **argv ) { if( argc < 2 ) { cerr << " Error : need the name of a fingerprints file" << endl; exit( 1 ); } FILE *infile = fopen( argv[1] , "rb" ); if( !infile ) { cerr << "Failed to open " << argv[1] << " for reading" << endl; return false; } // take the integer off the top to get things set up correctly. // in a new fp file, the very first integer will be either MAGIC_INT // or BUGGERED_MAGIC_INT and indicates whether the machine reading and the // machine writing were both in the same bigendian/littleendian format. // if the first integer is neither of these, indicates that the file is in // the old format - we'll assume no byteswapping. bool byte_swapping; int i , num_chars; fread( &i , sizeof( int ) , 1 , infile ); if( i == MAGIC_INT ) { fread( &num_chars , sizeof( int ) , 1 , infile ); byte_swapping = false; } else if( i == BUGGERED_MAGIC_INT ) { fread( &num_chars , sizeof( int ) , 1 , infile ); dac_byte_swapper<int>( num_chars ); byte_swapping = true; } else { byte_swapping = false; num_chars = i; } fread( &i , sizeof( int ) , 1 , infile ); int max_mol_name_len = 0 , len; char *mol_name = 0; unsigned char *finger_chars = 0; while( 1 ) { if( !finger_chars ) finger_chars = new unsigned char[num_chars]; if( !fread( &len , sizeof( int ) , 1 , infile ) ) return false; if( byte_swapping ) dac_byte_swapper<int>( len ); if( len > max_mol_name_len ) { delete [] mol_name; mol_name = new char[len + 1]; max_mol_name_len = len + 1; } if( !fread( mol_name , sizeof( char ) , len + 1 , infile ) ) break; if( !fread( finger_chars , sizeof( unsigned char ) , num_chars , infile ) ) break; Fingerprint finger( mol_name , num_chars , finger_chars ); cout << mol_name << " " << finger.get_num_bits_set() << endl; } }
28.897727
78
0.613055
OpenEye-Contrib
5c32c4a33031552d792c472253b2bc82610af017
33,992
cpp
C++
src/RTL/Component/ModifierChain/IFXModifierChainState.cpp
alemuntoni/u3d
7907b907464a2db53dac03fdc137dcb46d447513
[ "Apache-2.0" ]
44
2016-05-06T00:47:11.000Z
2022-02-11T06:51:37.000Z
src/RTL/Component/ModifierChain/IFXModifierChainState.cpp
alemuntoni/u3d
7907b907464a2db53dac03fdc137dcb46d447513
[ "Apache-2.0" ]
3
2016-06-27T12:37:31.000Z
2021-03-24T12:39:48.000Z
src/RTL/Component/ModifierChain/IFXModifierChainState.cpp
alemuntoni/u3d
7907b907464a2db53dac03fdc137dcb46d447513
[ "Apache-2.0" ]
15
2016-02-28T11:08:30.000Z
2021-06-01T03:32:01.000Z
//*************************************************************************** // // Copyright (c) 1999 - 2006 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // //*************************************************************************** /* @file IFXModifierChainState.cpp The implementation file of the CIFXModifierChain component. */ #include "IFXModifierChainState.h" #include "IFXModifierChain.h" #include "IFXModifierChainInternal.h" #include "IFXModifierDataPacketInternal.h" #include "IFXModifier.h" #include "IFXCoreCIDs.h" #include <memory.h> IFXDataPacketState::IFXDataPacketState() { m_NumDataElements = 0; m_Enabled = FALSE; m_LockedDataElement = INVALID_DATAELEMENT_INDEX; m_pDids = NULL; m_pDataElements = NULL; m_pDataPacket = NULL; m_pModifier = NULL; } IFXDataPacketState::~IFXDataPacketState() { IFXDELETE_ARRAY(m_pDataElements); IFXRELEASE(m_pDataPacket); IFXRELEASE(m_pModifier); } IFXDataElementState::IFXDataElementState() { State = IFXDATAELEMENTSTATE_INVALID; AspectBit = 0; Pad = 0; pValue = NULL; bNeedRelease = FALSE; ChangeCount = 0; Generator = INVALID_DATAPACKET_INDEX; m_uInvCount = 0; m_uInvAllocated = 0; m_pInvSeq = 0; } IFXDataElementState::~IFXDataElementState() { if (bNeedRelease) ((IFXUnknown*)pValue)->Release(); IFXDELETE_ARRAY(m_pInvSeq); } IFXRESULT IFXDataElementState::AddInv(U32 in_ModIdx, U32 in_ElIdx) { // Check For Duplicate if( m_pInvSeq ) { U32 i; for( i = 0; i < m_uInvCount; ++i) { if(m_pInvSeq[i].uEIndex == in_ElIdx && m_pInvSeq[i].uMIndex == in_ModIdx) { return IFX_OK; } } } // Grow if Needed if( m_uInvCount == m_uInvAllocated ) { IFXDidInvElement* pTmpInvs = new IFXDidInvElement[m_uInvAllocated + IFXDIDINVSEQGROWSIZE]; if(!pTmpInvs) { return IFX_E_OUT_OF_MEMORY; } if(m_pInvSeq) { memcpy(pTmpInvs, m_pInvSeq, sizeof(IFXDidInvElement) * (m_uInvAllocated)); IFXDELETE_ARRAY(m_pInvSeq); } m_pInvSeq = pTmpInvs; m_uInvAllocated += IFXDIDINVSEQGROWSIZE; } m_pInvSeq[m_uInvCount].uEIndex = in_ElIdx; m_pInvSeq[m_uInvCount].uMIndex = in_ModIdx; ++m_uInvCount; return IFX_OK; } IFXIntraDependencies::IFXIntraDependencies() { Size = 0; AllocatedSize = 0; pDepElementsList = NULL; } IFXIntraDependencies::~IFXIntraDependencies() { IFXDELETE_ARRAY( pDepElementsList ); } IFXRESULT IFXIntraDependencies::AddDependentElement(U32 in_DepEl, U32 in_Attr) { // Check For Duplicate U32 i; for( i = 0; i < Size; ++i) { if(pDepElementsList[i].uEIndex == in_DepEl) { pDepElementsList[i].uDepAttr |= in_Attr; return IFX_OK; } } // Grow if Needed if( AllocatedSize == Size ) { sElementDependency* pTmpDepElementsList = new sElementDependency[AllocatedSize + IFXDIDDEPSEQGROWSIZE]; if(!pTmpDepElementsList) { return IFX_E_OUT_OF_MEMORY; } if(pDepElementsList) { memcpy(pTmpDepElementsList, pDepElementsList, sizeof(sElementDependency) * (Size)); IFXDELETE_ARRAY(pDepElementsList); } pDepElementsList = pTmpDepElementsList; AllocatedSize += IFXDIDDEPSEQGROWSIZE; } pDepElementsList[Size].uEIndex = in_DepEl; pDepElementsList[Size].uDepAttr = in_Attr; ++Size; return IFX_OK; } IFXRESULT IFXIntraDependencies::CopyFrom(IFXIntraDependencies* in_pSrc) { Size = in_pSrc->Size; AllocatedSize = in_pSrc->AllocatedSize; if(AllocatedSize) { IFXASSERT( NULL == pDepElementsList ); pDepElementsList = new sElementDependency[AllocatedSize]; if(!pDepElementsList) { return IFX_E_OUT_OF_MEMORY; } if(in_pSrc->pDepElementsList) { memcpy(pDepElementsList, in_pSrc->pDepElementsList, sizeof(sElementDependency) * (Size)); } } return IFX_OK; } void IFXIntraDependencies::CopyTo(IFXIntraDependencies* in_pSrc) { Size = in_pSrc->Size; AllocatedSize = in_pSrc->AllocatedSize; IFXASSERT( !pDepElementsList || ( in_pSrc->pDepElementsList != pDepElementsList ) ); IFXDELETE_ARRAY( pDepElementsList ); pDepElementsList = in_pSrc->pDepElementsList; in_pSrc->Size = 0; in_pSrc->AllocatedSize = 0; in_pSrc->pDepElementsList = NULL; } IFXModifierChainState::IFXModifierChainState() { m_bNeedTime = FALSE; m_NumModifiers = 0; m_NumDataElements = 0; m_NumAllocatedDataElements = 0; m_pDids = NULL; m_pDepSeq = NULL; m_pDidRegistry = NULL; m_pDataPacketState = NULL; m_pBaseDataPacket = NULL; m_pTime = NULL; m_pPreviousModifierChain= NULL; m_pModChain = NULL; m_pTransform = NULL; } IFXModifierChainState::~IFXModifierChainState() { Destruct(); } IFXRESULT IFXModifierChainState::Destruct() { IFXRELEASE(m_pBaseDataPacket); m_pDidRegistry = NULL; IFXDELETE_ARRAY(m_pDids); IFXDELETE_ARRAY(m_pDepSeq); IFXDELETE_ARRAY(m_pDataPacketState); // this cleans up the references and allocated data on each state. m_NumModifiers = 0; m_NumAllocatedDataElements = 0; m_bNeedTime = FALSE; m_NumDataElements = 0; IFXRELEASE(m_pPreviousModifierChain); m_pModChain = NULL; IFXDELETE(m_pTransform); return IFX_OK; } IFXRESULT IFXModifierChainState::Initialize(IFXModifierChainInternal* in_pModChain, IFXModifierChainInternal* in_pBaseChain, IFXModifierDataPacketInternal *in_pOverrideDP, U32 in_Size, IFXDidRegistry* in_pDidRegistry) { IFXRESULT result = IFX_OK; m_pModChain = in_pModChain; m_pPreviousModifierChain = in_pBaseChain; IFXADDREF(m_pPreviousModifierChain); if( m_pPreviousModifierChain && !in_pOverrideDP ) { IFXASSERT( !m_pBaseDataPacket ); IFXModifierDataPacket* pDp = NULL; m_pPreviousModifierChain->GetDataPacket(pDp); pDp->QueryInterface(IID_IFXModifierDataPacketInternal, (void**)&m_pBaseDataPacket); IFXRELEASE(pDp); } else if( in_pOverrideDP ) { m_pBaseDataPacket = in_pOverrideDP; m_pBaseDataPacket->AddRef(); } m_pDidRegistry = in_pDidRegistry; if( IFXSUCCESS(result) ) { m_NumModifiers = in_Size+1; // Allocate the DataPacket States IFXASSERT(!m_pDataPacketState); m_pDataPacketState = new IFXDataPacketState[m_NumModifiers]; if(!m_pDataPacketState) { result = IFX_E_OUT_OF_MEMORY; } } // Do Partial initialization of the states. if( IFXSUCCESS(result) ) { U32 i; for( i = 0; i < m_NumModifiers; ++i) { IFXModifierDataPacketInternal* pDataPacket = NULL; result = IFXCreateComponent( CID_IFXModifierDataPacket, IID_IFXModifierDataPacketInternal, (void**) &(pDataPacket) ); if(IFXSUCCESS(result)) { // set up the proxy data packet result = pDataPacket->SetModifierChain( in_pModChain, i - 1, m_pDataPacketState + i); } if(IFXSUCCESS(result)) { m_pDataPacketState[i].m_pDataPacket = pDataPacket; } else { IFXRELEASE(pDataPacket); } } } if(IFXFAILURE(result)) { Destruct(); } return result; } IFXRESULT IFXModifierChainState::SetModifier(U32 in_Idx, IFXModifier* in_pMod, BOOL in_bEnabled) { IFXRESULT result = IFX_OK; IFXASSERT(in_Idx < m_NumModifiers); if(IFXSUCCESS(result) && in_pMod) { m_pDataPacketState[in_Idx].m_pModifier = in_pMod; m_pDataPacketState[in_Idx].m_Enabled = in_bEnabled; if(in_pMod) in_pMod->AddRef(); } return result; } IFXRESULT IFXModifierChainState::GetModifier(U32 in_Idx, IFXModifier** out_ppMod) { IFXRESULT result = IFX_OK; IFXASSERT(in_Idx < m_NumModifiers); if(IFXSUCCESS(result)) { *out_ppMod = m_pDataPacketState[in_Idx].m_pModifier; (*out_ppMod)->AddRef(); } return result; } IFXRESULT IFXModifierChainState::GetModifierDataPacket(U32 in_Idx, IFXModifierDataPacket** out_ppModDP) { IFXRESULT result = IFX_OK; if(in_Idx > (m_NumModifiers - 1)) { result = IFX_E_INVALID_RANGE; } if(IFXSUCCESS(result)) { result = m_pDataPacketState[in_Idx].m_pDataPacket->QueryInterface( IID_IFXModifierDataPacket, (void**)out_ppModDP); } return result; } IFXRESULT IFXModifierChainState::SetActive() { IFXRESULT result = IFX_OK; IFXASSERT(m_pDataPacketState); IFXModifier* pMod = NULL; if(m_NumModifiers > 1) { pMod = m_pDataPacketState[1].m_pModifier; if(pMod) { if(m_pDataPacketState[1].m_Enabled ) { pMod->SetModifierChain( m_pModChain, 0 ); result = pMod->SetDataPacket( GetBaseDataPacketNR(), m_pDataPacketState[1].m_pDataPacket); } else { pMod->SetModifierChain( NULL, (U32)-1 ); pMod->SetDataPacket( NULL, NULL ); } } } U32 stage; for( stage=2; stage<m_NumModifiers && IFXSUCCESS(result); stage++ ) { pMod = m_pDataPacketState[stage].m_pModifier; if( pMod ) { if(m_pDataPacketState[stage].m_Enabled ) { pMod->SetModifierChain( m_pModChain, stage-1 ); result = pMod->SetDataPacket( m_pDataPacketState[stage-1].m_pDataPacket, // lod setdp failing m_pDataPacketState[stage].m_pDataPacket); } else { pMod->SetModifierChain( NULL, (U32)-1 ); pMod->SetDataPacket( NULL, NULL ); } } } return result; } IFXRESULT IFXModifierChainState::NotifyActive() { IFXRESULT result = IFX_OK; IFXASSERT(m_pDataPacketState); U32 stage; for ( stage=1; stage<m_NumModifiers && IFXSUCCESS(result) ; stage++ ) { if(m_pDataPacketState[stage].m_Enabled ) { m_pDataPacketState[stage].m_pModifier->Notify(IFXModifier::NEW_MODCHAIN_STATE, NULL); } } return result; } IFXRESULT IFXModifierChainState::Build(BOOL in_bReqValidation) { IFXRESULT result = IFX_OK; IFXASSERT(m_pDataPacketState); // 1. Set up the proxy data packet if(IFXSUCCESS(result)) { result = BuildProxyDataPacket(); } IFXASSERT(IFXSUCCESS(result)); // 2. Iterate the Modifiers and attempt to build them if(IFXSUCCESS(result)) { U32 i; for( i = 1; i < m_NumModifiers; ++i) { result = BuildModifierDataPacket(i, in_bReqValidation); IFXASSERT(IFXSUCCESS(result)); } } // 3. Add the invalidation sequence to make the last // data packet trigger forwarding invalidations to the // appended chains. if(IFXSUCCESS(result)) { result = AddAppendedChainInvSeq(); } return result; } IFXRESULT IFXModifierChainState::BuildProxyDataPacket() { IFXRESULT result = IFX_OK; // "external copy" // if we have an m_pBaseDataPacket (prepended mod chain) -- Add all the elements from that // else just add time; if( m_pBaseDataPacket ) { U32 NumDids = 0; IFXDataPacketState* pState = NULL; IFXDidEntry* pDids = NULL; IFXIntraDependencies* pDepSeq = NULL; // Copy All of the Dids Forward result = m_pBaseDataPacket->GetDataPacketState( &pState, &pDepSeq ); if(IFXSUCCESS(result)) { NumDids = pState->m_NumDataElements; pDids = pState->m_pDids; // cause dids array & outputs to be set to specific size... if(!GrowDids(NumDids)) { result = IFX_E_OUT_OF_MEMORY; } } // Iteration & set important state if(IFXSUCCESS(result)) { memcpy(m_pDids, pDids, sizeof(IFXDidEntry) * NumDids); m_NumDataElements = NumDids; m_pDataPacketState[0].m_NumDataElements = NumDids; m_pDataPacketState[0].m_Enabled = TRUE; // Copy Consumed State IFXDataElementState* pDEState = new IFXDataElementState[NumDids]; IFXASSERT( NULL == m_pDataPacketState[0].m_pDataElements ); m_pDataPacketState[0].m_pDataElements = pDEState; IFXDataElementState* pSrcDEState = pState->m_pDataElements; U32 i; for( i = 0; i < NumDids; ++i) { pDEState[i].State = IFXDATAELEMENTSTATE_INVALID; if (pDEState[i].bNeedRelease && pDEState[i].pValue) ((IFXUnknown*)pDEState[i].pValue)->Release(); pDEState[i].bNeedRelease = pSrcDEState[i].bNeedRelease; pDEState[i].pValue = pSrcDEState[i].pValue; if (pDEState[i].bNeedRelease) ((IFXUnknown*)pDEState[i].pValue)->AddRef(); pDEState[i].ChangeCount = pSrcDEState[i].ChangeCount; pDEState[i].Generator = PROXY_DATAPACKET_INDEX; // Copy the DepSeq m_pDepSeq[i].CopyFrom(pDepSeq+i); } } } else { // Hardcode 1st elements: 0 = simtime, 1 = xform IFXASSERT( 0 == TIME_ELEMENT_INDEX ); IFXASSERT( 1 == TRANSFORM_ELEMENT_INDEX ); if(INVALID_DATAELEMENT_INDEX == AppendDid(DID_IFXSimulationTime, 0)) { result = IFX_E_OUT_OF_MEMORY; } if(INVALID_DATAELEMENT_INDEX == AppendDid(DID_IFXTransform, 0)) { result = IFX_E_OUT_OF_MEMORY; } IFXDataElementState* pDEState = new IFXDataElementState[2]; IFXASSERT( NULL == m_pDataPacketState[0].m_pDataElements ); m_pDataPacketState[0].m_pDataElements = pDEState; pDEState[0].State = IFXDATAELEMENTSTATE_INVALID; pDEState[0].pValue = NULL; pDEState[0].bNeedRelease = FALSE; pDEState[0].ChangeCount = 0; pDEState[0].Generator = 0; IFXDELETE( m_pTransform ); m_pTransform = new IFXArray<IFXMatrix4x4>; IFXASSERT( NULL != m_pTransform ); m_pTransform->CreateNewElement(); m_pTransform->GetElement(0).MakeIdentity(); pDEState[1].State = IFXDATAELEMENTSTATE_VALID; pDEState[1].pValue = m_pTransform; pDEState[1].bNeedRelease = FALSE; pDEState[1].ChangeCount = 0; pDEState[1].Generator = 0; } return IFX_OK; } // Add Invalidation Sequence to the Appended Chain IFXRESULT IFXModifierChainState::AddAppendedChainInvSeq() { IFXRESULT result = IFX_OK; IFXDataElementState* pDEState = NULL; U32 NumDE = 0; if( IFXSUCCESS(result) ) { pDEState = m_pDataPacketState[m_NumModifiers-1].m_pDataElements; NumDE = m_pDataPacketState[m_NumModifiers-1].m_NumDataElements; } if( IFXSUCCESS(result) ) { // tell the generators of every data element that exists at the end of // the Data packet that they need to invalidate appended chains. U32 i; for( i = 0; i < NumDE; i++ ) { if( pDEState->State != IFXDATAELEMENTSTATE_CONSUMED ) { U32 GenIdx = (pDEState->Generator == PROXY_DATAPACKET_INDEX) ? 0 : pDEState->Generator; IFXASSERT(GenIdx < m_NumModifiers); m_pDataPacketState[GenIdx].m_pDataElements[i].AddInv( APPENDED_DATAPACKET_INDEX, i ); } pDEState++; } } return result; } IFXRESULT IFXModifierChainState::BuildModifierDataPacket(U32 in_ModIdx, BOOL in_bReqValidation) { IFXRESULT result = IFX_OK; IFXGUID** pOutputs = NULL; U32* upOutputUnchangedAttrs = NULL; U32 uOutputCount = 0; IFXGUID** pInputs = NULL; U32 uInputCount = 0; IFXGUID** pOutputDependencies = NULL; U32* upOutputDependencyAttrs = NULL; U32 uOutputDependencyCount = 0; U32 o = 0; //U32 uOutputIdx = (U32)INVALID_DATAPACKET_INDEX; IFXDataPacketState* pDPState = &(m_pDataPacketState[in_ModIdx]); IFXModifier* pMod = m_pDataPacketState[in_ModIdx].m_pModifier; // Temp data for the duration of this function U32* pOutputIndexes = NULL; if( !pMod ) { // if the modifier is NULL then we just populate the datapacket and escape. // this may be the case during loads. pDPState->m_NumDataElements = m_pDataPacketState[in_ModIdx-1].m_NumDataElements; result = BMDPPopulateDataElements(in_ModIdx); return result; } // 1. Get the output list from the Modifier if( IFXSUCCESS(result) ) { result = pMod->GetOutputs( pOutputs, uOutputCount, upOutputUnchangedAttrs ); } // 2. verify all of the inputs are satisfied if( IFXSUCCESS(result) ) { result = BMDPVerifyInputs( in_ModIdx, pMod, pOutputs, uOutputCount ); if( IFXFAILURE(result) ) { // if Req Validation -- pass on failure // else not req Validation Mark this as disabled // and move along. // the logic is as follows: in validation is not required, // no problem, if validation is required and a modifier // that was previously enabled becomes disabled, then // it is and error. However if a previously disabled // modifier becomes enabled then all is good. if( !in_bReqValidation || pDPState->m_Enabled == FALSE ) { pDPState->m_NumDataElements = m_pDataPacketState[in_ModIdx-1].m_NumDataElements; result = BMDPPopulateDataElements(in_ModIdx); // make sure we're set to disabled pDPState->m_Enabled = FALSE; return result; } return IFX_E_MODIFIERCHAIN_VALIDATION_FAILED; } else { pDPState->m_Enabled = TRUE; } } if( IFXSUCCESS(result) ) { pOutputIndexes = new U32[uOutputCount]; if( pOutputIndexes ) { memset( pOutputIndexes, 0, sizeof(U32) * uOutputCount ); } else { result = IFX_E_OUT_OF_MEMORY; } } // 3. Initialize the DataPacket // - Get all of the current Items in to the new Data Packet // - Add the Modifier's Output DataElements to the new DataPacket // pOutputs and uOutputCount retreived on previous call // - Has Side effect of building the output index array if( IFXSUCCESS(result) ) { pDPState->m_NumDataElements = m_pDataPacketState[in_ModIdx-1].m_NumDataElements; result = BMDPAddOutputs( in_ModIdx, pOutputs, uOutputCount, pOutputIndexes ); } /// @todo: for all intra dependent outputs, /// call XYXY() = BMDPCollapseDependencies Purge/Cleanse will never // 4. Allocate and Copy the DataElementStates if( IFXSUCCESS(result) ) { result = BMDPPopulateDataElements( in_ModIdx ); } // 4.5 Configure all of the Outputs if( IFXSUCCESS(result) ) { result = BMDPConfigureOutputs( in_ModIdx, uOutputCount, pOutputIndexes ); } // 5. Iterate over the Outputs to build up the inv sequence and the // dep seq. // 5.1 consume any consumed data elements o = uOutputCount; while( o-- && IFXSUCCESS(result) ) { if ((*(pOutputs[o]) == DTS_IFXRenderable) || (*(pOutputs[o]) == DTS_IFXBound)) { /// @todo: what we probably should do is iterate all out puts and do /// the call below for each renderable output. } else { // 5.1.1 now check to see if the generation of this data element // causes invalidation of a previously generated dependent data // element. if( IFXSUCCESS(result) ) { result = BMDPConsumeElements( in_ModIdx, pOutputIndexes[o], upOutputUnchangedAttrs ? upOutputUnchangedAttrs[o] : 0 ); } } } // 5.2 Build up all the validation/invalidation seqs o = uOutputCount; while( o-- && IFXSUCCESS(result) ) { // 5.2.1 Get the input dependencies and the output dependencies if( IFXSUCCESS(result) ) { result = pMod->GetDependencies( pOutputs[o], pInputs, uInputCount, pOutputDependencies, uOutputDependencyCount, upOutputDependencyAttrs ); } // 5.2.3 for each input dep of output o, add the input dependencies // to the list if( IFXSUCCESS(result) ) { result = BMDPScheduleInvalidations( in_ModIdx, pOutputIndexes[o], pOutputs[o], pInputs, uInputCount ); } // 5.2.4 foreach output dependency dep of output o, // add the input dependencies to the list if( IFXSUCCESS(result) ) { result = BMDPSetOutputDeps( in_ModIdx, pOutputIndexes[o], pOutputs[o], pOutputDependencies, uOutputDependencyCount, upOutputDependencyAttrs); } } // 6. for each element not generated by this modifier set it as a dependendent on // the last modifier that generated it. if( IFXSUCCESS(result) ) { result = BMDPScheduleDefaultInvalidations(in_ModIdx); } IFXDELETE_ARRAY(pOutputIndexes); return result; } IFXRESULT IFXModifierChainState::BMDPVerifyInputs(U32 in_ModIdx, IFXModifier* pMod, IFXDID** ppOutputs, U32 NumOutputs) { IFXRESULT result = IFX_OK; IFXGUID** pInputs = NULL; U32 uInputCount = 0; IFXGUID** pOutputDependencies = NULL; U32* upOutputDependencyAttrs = NULL; U32 uOutputDependencyCount = 0; U32 i; for( i = 0; i < NumOutputs && IFXSUCCESS(result); ++i) { result = pMod->GetDependencies( ppOutputs[i], pInputs, uInputCount, pOutputDependencies, uOutputDependencyCount, upOutputDependencyAttrs ); if( IFXSUCCESS(result) ) { U32 j; for( j = 0; j < uInputCount; ++j ) { U32 uDidIndex = GetDidIndex(*(pInputs[j]), in_ModIdx-1); if( INVALID_DATAPACKET_INDEX == uDidIndex ) { result = IFX_E_DATAPACKET_ELEMENT_NOT_FOUND; break; } // need to check if this is consumed else if( m_pDataPacketState[in_ModIdx-1].m_pDataElements[uDidIndex].State == IFXDATAELEMENTSTATE_CONSUMED ) { /// @todo: clean up these err codes - change to IFX_E_DATAPACKET... result = IFX_E_MODIFIER_DATAPACKET_ENTRY_CONSUMED; break; } } } } return result; } IFXRESULT IFXModifierChainState::BMDPAddOutputs( U32 in_ModIdx, IFXDID** in_ppOutputs, U32 in_uNumOutputs, U32* pOutputIndices ) { IFXRESULT result = IFX_OK; U32 o = in_uNumOutputs; while( o-- && IFXSUCCESS(result) ) { if ( (DTS_IFXRenderable == *(in_ppOutputs[o])) || (DTS_IFXBound == *(in_ppOutputs[o])) ) { pOutputIndices[o] = INVALID_DATAELEMENT_INDEX; } else { pOutputIndices[o] = GetDidIndex( *(in_ppOutputs[o]), in_ModIdx ); if( pOutputIndices[o] == INVALID_DATAELEMENT_INDEX ) { pOutputIndices[o] = AppendDid(*(in_ppOutputs[o]), in_ModIdx); if( INVALID_DATAELEMENT_INDEX == pOutputIndices[o] ) { result = IFX_E_OUT_OF_MEMORY; } } } } return result; } // Create a New Array of Data Element States for the DataPacket State of this modifier IFXRESULT IFXModifierChainState::BMDPPopulateDataElements(U32 in_ModIdx) { IFXDataPacketState* pDPState = &(m_pDataPacketState[in_ModIdx]); IFXDataElementState* pDE = new IFXDataElementState[pDPState->m_NumDataElements]; if( !pDE ) { return IFX_E_OUT_OF_MEMORY; } IFXDELETE_ARRAY( pDPState->m_pDataElements ); pDPState->m_pDataElements = pDE; U32 NumSrcDE = m_pDataPacketState[in_ModIdx-1].m_NumDataElements; IFXDataElementState* pSrcDE = m_pDataPacketState[in_ModIdx-1].m_pDataElements; U32 i; for( i = 0; i < NumSrcDE; i++ ) { pDE[i].Generator = pSrcDE[i].Generator; pDE[i].ChangeCount = pSrcDE[i].ChangeCount; pDE[i].State = pSrcDE[i].State; if (pDE[i].bNeedRelease && pDE[i].pValue) ((IFXUnknown*)pDE[i].pValue)->Release(); pDE[i].bNeedRelease = pSrcDE[i].bNeedRelease; pDE[i].pValue = pSrcDE[i].pValue; if (pDE[i].bNeedRelease) ((IFXUnknown*)pDE[i].pValue)->AddRef(); } return IFX_OK; } IFXRESULT IFXModifierChainState::BMDPConfigureOutputs( U32 in_ModIdx, U32 in_uNumOutputs, U32* pOutputIndices) { IFXRESULT result = IFX_OK; U32 o = in_uNumOutputs; IFXDataElementState* pDEStates = m_pDataPacketState[in_ModIdx].m_pDataElements; while( o-- && IFXSUCCESS(result) ) { // if not all renderables if( pOutputIndices[o] != INVALID_DATAELEMENT_INDEX) // this is a performance Hack See in BMDPAddOutputs // where only DID_RENDERABLE are set to this value { // Iterate over all of the outputs one more time and up date // the generating Modifier and validation state - additionally // mark any dataelements that are possibly consumed. pDEStates[pOutputIndices[o]].State = IFXDATAELEMENTSTATE_INVALID; pDEStates[pOutputIndices[o]].Generator = in_ModIdx; } else { // if all renderables U32 NumElements = m_pDataPacketState[in_ModIdx-1].m_NumDataElements; IFXDataElementState* pSrcDEStates = m_pDataPacketState[in_ModIdx-1].m_pDataElements; // iter all of the date elements and make the renderables outputs of this // modifier chain U32 i; for( i = 0; i < NumElements; ++i) { if(((m_pDids[i].Flags & IFX_DID_RENDERABLE) || ((m_pDids[i].Flags & IFX_DID_BOUND))) && pSrcDEStates[i].State != IFXDATAELEMENTSTATE_CONSUMED) { pDEStates[i].State = IFXDATAELEMENTSTATE_INVALID; pSrcDEStates[i].AddInv(in_ModIdx, i); pDEStates[i].Generator = in_ModIdx; } } } } return result; } IFXRESULT IFXModifierChainState::BMDPConsumeElements(U32 in_ModIdx, U32 in_OutputIdx, U32 in_UnChangedAttrs) { IFXRESULT result = IFX_OK; // walk thru dependencies that are defined for this element. if(IFXSUCCESS(result)) { U32 idx = 0; IFXDataElementState* pDEState = m_pDataPacketState[in_ModIdx].m_pDataElements; // transverse intra dependencies for this output (parallel array) IFXIntraDependencies* pOutElDeps = &(m_pDepSeq[in_OutputIdx]); // this is the list of "arrows" that contain element index & attributes sElementDependency* pElDepsList = pOutElDeps->pDepElementsList; U32 i; for( i = 0; i < pOutElDeps->Size; i++ ) { idx = pElDepsList[i].uEIndex; // test if any of the dependent sub attributes are being changed if( (pElDepsList[i].uDepAttr & in_UnChangedAttrs) != pElDepsList[i].uDepAttr ) { // the Generator is the last modifier to generate this element // essentially an optmization to short circuit intermediate // modifiers // UPD: in case of partial loading of a file - when node with its chain is // decoded prior its resource and node has some modifiers that request some // data which are contained in resource MC - output of such modifier can be // messed up and it can wrongly consume some elements of data packet. This causes failure // Of following modifiers. Example: Shading Modifier in Node MC and CLOD Modifier // following it. To prevent such behavior the second condition check // was added: pDEState[idx].Generator != PROXY_DATAPACKET_INDEX if( pDEState[idx].Generator != in_ModIdx && pDEState[idx].Generator != PROXY_DATAPACKET_INDEX ) { // we need to remove all dependencies of a previously generated output // of a currently generated output in TB written function XYXY(), and then this case should // always // this dependency has now been violated remove it pDEState[idx].State = IFXDATAELEMENTSTATE_CONSUMED; } // if not last elements, // remove this entry from the list. if( i != (pOutElDeps->Size - 1) ) { // copy last entry over current entry. pOutElDeps->pDepElementsList[i] = pElDepsList[pOutElDeps->Size-1]; // set i to repeat this iteration i--; } pOutElDeps->Size--; // decrement the number // of dependent elements } } } return result; } IFXRESULT IFXModifierChainState::BMDPScheduleInvalidations( U32 in_ModIdx, U32 uOutputIdx, IFXDID* pOutputDid, IFXDID** in_ppInputs, U32 uInputCount ) { IFXRESULT result = IFX_OK; U32 e = uInputCount, uTmpIndex; IFXDataPacketState* pPrevState = &(m_pDataPacketState[in_ModIdx-1]); IFXDataElementState* pPrevDE = pPrevState->m_pDataElements; while ( e-- && IFXSUCCESS(result) ) { if ( *(in_ppInputs[e]) == DTS_IFXRenderable ) { // When a DataTypeSpecifier(DTS) is an input, all dataElements of that type are implied inputs. IFXASSERT(!(*pOutputDid == *(in_ppInputs[e]))); U32 cnt = pPrevState->m_NumDataElements; while( cnt-- ) { if ( m_pDids[cnt].Flags & IFX_DID_RENDERABLE && pPrevDE[cnt].State != IFXDATAELEMENTSTATE_CONSUMED ) { // Add the Invalidation link to the input data element. IFXASSERT(pPrevDE[cnt].Generator != INVALID_DATAPACKET_INDEX); m_pDataPacketState[pPrevDE[cnt].Generator].m_pDataElements[cnt] .AddInv(in_ModIdx, uOutputIdx); } } } if ( *(in_ppInputs[e]) == DTS_IFXBound ) { // When a DataTypeSpecifier(DTS) is an input, all dataElements of that type are implied inputs. IFXASSERT(!(*pOutputDid == *(in_ppInputs[e]))); U32 cnt = pPrevState->m_NumDataElements; while( cnt-- ) { if( m_pDids[cnt].Flags & IFX_DID_BOUND && pPrevDE[cnt].State != IFXDATAELEMENTSTATE_CONSUMED ) { // Add the Invalidation link to the input data element. IFXASSERT(pPrevDE[cnt].Generator != INVALID_DATAPACKET_INDEX); m_pDataPacketState[pPrevDE[cnt].Generator].m_pDataElements[cnt] .AddInv(in_ModIdx, uOutputIdx); } } } else { uTmpIndex = GetDidIndex( *(in_ppInputs[e]), in_ModIdx-1 ); IFXDataElementState* pDEState = &(pPrevDE[uTmpIndex]); IFXASSERT(pDEState->Generator != INVALID_DATAPACKET_INDEX); // Add the Invalidation link to the input data element. U32 GenIdx = pDEState->Generator == PROXY_DATAPACKET_INDEX ? 0 : pDEState->Generator; IFXDataElementState* pGenDE = &(m_pDataPacketState[GenIdx].m_pDataElements[uTmpIndex]); pGenDE->AddInv(in_ModIdx, uOutputIdx); if( *(in_ppInputs[e]) == DID_IFXSimulationTime ) { m_bNeedTime = TRUE; } } } return result; } IFXRESULT IFXModifierChainState::BMDPSetOutputDeps( U32 in_ModIdx, U32 uOutputIdx, IFXDID* pOutputDid, IFXDID** ppOutputDependencies, U32 uNumOutputDeps, U32* upOutputDependencyAttrs) { IFXRESULT result = IFX_OK; U32 uTmpIndex = 0; U32 e = uNumOutputDeps; while( e-- && IFXSUCCESS(result) ) { // Output cannot be dependent on it's self IFXASSERT(!(*pOutputDid == *(ppOutputDependencies[e]))); if( *(ppOutputDependencies[e]) == DTS_IFXRenderable) { // When a DataTypeSpecifier(DTS) is provided, all dataElements of that type are implied output dependencies. IFXASSERT(!(*pOutputDid == *(ppOutputDependencies[e]))); U32 cnt = m_pDataPacketState[in_ModIdx].m_NumDataElements; IFXDataElementState* pDEState = m_pDataPacketState[in_ModIdx].m_pDataElements; while(cnt--) { if( m_pDids[cnt].Flags & IFX_DID_RENDERABLE && uOutputIdx != cnt) { // say that if the Output dependency is invalidated, or changed // the dependent output should have the same happen m_pDepSeq[cnt].AddDependentElement(uOutputIdx, upOutputDependencyAttrs?upOutputDependencyAttrs[e]:0xFFFFFFFF); // also add a default invalidation pDEState[cnt].AddInv(in_ModIdx, uOutputIdx); } } } if( *(ppOutputDependencies[e]) == DTS_IFXBound) { // When a DataTypeSpecifier(DTS) is provided, all dataElements of that type are implied output dependencies. IFXASSERT(!(*pOutputDid == *(ppOutputDependencies[e]))); U32 cnt = m_pDataPacketState[in_ModIdx].m_NumDataElements; IFXDataElementState* pDEState = m_pDataPacketState[in_ModIdx].m_pDataElements; while(cnt--) { if( m_pDids[cnt].Flags & IFX_DID_BOUND && uOutputIdx != cnt) { // say that if the Output dependency is invalidated, or changed // the dependent output should have the same happen m_pDepSeq[cnt].AddDependentElement(uOutputIdx, upOutputDependencyAttrs?upOutputDependencyAttrs[e]:0xFFFFFFFF); // also add a default invalidation pDEState[cnt].AddInv(in_ModIdx, uOutputIdx); } } } else { uTmpIndex = GetDidIndex(*(ppOutputDependencies[e]), in_ModIdx); IFXASSERT(uTmpIndex != INVALID_DATAELEMENT_INDEX); IFXDataElementState* pDEState = &(m_pDataPacketState[in_ModIdx].m_pDataElements[uTmpIndex]); if (IFXSUCCESS(result)) { // "reversing the order of the link: element x invalidates y, if y depends on x... // say that if the Output dependency is invalidated, or changed // the dependent output should have the same happen m_pDepSeq[uTmpIndex].AddDependentElement(uOutputIdx, upOutputDependencyAttrs?upOutputDependencyAttrs[e]:0xFFFFFFFF); // also add a default invalidation pDEState->AddInv(in_ModIdx, uOutputIdx); } } } return result; } IFXRESULT IFXModifierChainState::BMDPScheduleDefaultInvalidations(U32 in_ModIdx) { IFXRESULT result = IFX_OK; U32 DataElementCount = m_pDataPacketState[in_ModIdx].m_NumDataElements; IFXDataElementState* pDEState = m_pDataPacketState[in_ModIdx].m_pDataElements; U32 i; for( i = 0; i < DataElementCount; i++ ) { // add this item as an invalidation dep for the last generator of it U32 GenIdx = pDEState[i].Generator == PROXY_DATAPACKET_INDEX ? 0 : pDEState[i].Generator; IFXASSERT(GenIdx != INVALID_DATAPACKET_INDEX); if( GenIdx != in_ModIdx ) { m_pDataPacketState[GenIdx].m_pDataElements[i].AddInv( in_ModIdx, i ); } } return result; } U32 IFXModifierChainState::GetDidIndex(const IFXDID& in_Did, U32 in_ModIdx) { U32 NumDids = m_pDataPacketState[in_ModIdx].m_NumDataElements; U32 i; for( i = 0; i < NumDids; i++ ) { if( m_pDids[i].Did == in_Did ) { return i; } } return INVALID_DATAELEMENT_INDEX; } U32 IFXModifierChainState::AppendDid(const IFXDID& in_Did , U32 in_ModIdx) { if(m_NumDataElements == m_NumAllocatedDataElements) { if(!GrowDids(m_NumAllocatedDataElements+16)) { return INVALID_DATAELEMENT_INDEX; } } m_pDids[m_NumDataElements].Did = in_Did; m_pDids[m_NumDataElements].Flags = m_pDidRegistry->GetDidFlags(in_Did); m_NumDataElements++; m_pDataPacketState[in_ModIdx].m_NumDataElements++; return m_NumDataElements-1; } BOOL IFXModifierChainState::GrowDids(U32 in_Size) { IFXDidEntry* pNewDids = new IFXDidEntry[in_Size]; if(!pNewDids) { return FALSE; } IFXIntraDependencies* pDepSeq = new IFXIntraDependencies[in_Size]; if(!pDepSeq) { IFXDELETE_ARRAY(pNewDids); return FALSE; } if(m_pDids) { memcpy(pNewDids, m_pDids, sizeof(IFXDidEntry) * m_NumDataElements); delete[] m_pDids; } if(m_pDepSeq) { U32 i; for( i = 0; i < m_NumDataElements; ++i) { //m_pDepSeq[i].CopyTo(pDepSeq+i); pDepSeq[i].CopyTo(&m_pDepSeq[i]); } delete[] m_pDepSeq; } m_pDids = pNewDids; m_pDepSeq = pDepSeq; m_NumAllocatedDataElements = in_Size; U32 i; for( i = 0; i < m_NumModifiers; ++i) { m_pDataPacketState[i].m_pDids = m_pDids; } return TRUE; } void IFXModifierChainState::AttachToPrevChain() { if(m_pPreviousModifierChain) { m_pPreviousModifierChain->AddAppendedModifierChain(m_pModChain); } } void IFXModifierChainState::DetachFromPrevChain() { if(m_pPreviousModifierChain) { m_pPreviousModifierChain->RemoveAppendedModifierChain(m_pModChain); } }
25.829787
112
0.705695
alemuntoni
5c420197519741bd5d396af42b2a59c22254ac3b
3,228
cpp
C++
src/org/apache/poi/util/ShortField.cpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
src/org/apache/poi/util/ShortField.cpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
src/org/apache/poi/util/ShortField.cpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
// Generated from /POI/java/org/apache/poi/util/ShortField.java #include <org/apache/poi/util/ShortField.hpp> #include <java/lang/ArrayIndexOutOfBoundsException.hpp> #include <java/lang/String.hpp> #include <java/lang/StringBuilder.hpp> #include <org/apache/poi/util/LittleEndian.hpp> poi::util::ShortField::ShortField(const ::default_init_tag&) : super(*static_cast< ::default_init_tag* >(0)) { clinit(); } poi::util::ShortField::ShortField(int32_t offset) /* throws(ArrayIndexOutOfBoundsException) */ : ShortField(*static_cast< ::default_init_tag* >(0)) { ctor(offset); } poi::util::ShortField::ShortField(int32_t offset, int16_t value) /* throws(ArrayIndexOutOfBoundsException) */ : ShortField(*static_cast< ::default_init_tag* >(0)) { ctor(offset,value); } poi::util::ShortField::ShortField(int32_t offset, ::int8_tArray* data) /* throws(ArrayIndexOutOfBoundsException) */ : ShortField(*static_cast< ::default_init_tag* >(0)) { ctor(offset,data); } poi::util::ShortField::ShortField(int32_t offset, int16_t value, ::int8_tArray* data) /* throws(ArrayIndexOutOfBoundsException) */ : ShortField(*static_cast< ::default_init_tag* >(0)) { ctor(offset,value,data); } void poi::util::ShortField::ctor(int32_t offset) /* throws(ArrayIndexOutOfBoundsException) */ { super::ctor(); if(offset < 0) { throw new ::java::lang::ArrayIndexOutOfBoundsException(::java::lang::StringBuilder().append(u"Illegal offset: "_j)->append(offset)->toString()); } _offset = offset; } void poi::util::ShortField::ctor(int32_t offset, int16_t value) /* throws(ArrayIndexOutOfBoundsException) */ { ctor(offset); set(value); } void poi::util::ShortField::ctor(int32_t offset, ::int8_tArray* data) /* throws(ArrayIndexOutOfBoundsException) */ { ctor(offset); readFromBytes(data); } void poi::util::ShortField::ctor(int32_t offset, int16_t value, ::int8_tArray* data) /* throws(ArrayIndexOutOfBoundsException) */ { ctor(offset); set(value, data); } int16_t poi::util::ShortField::get() { return _value; } void poi::util::ShortField::set(int16_t value) { _value = value; } void poi::util::ShortField::set(int16_t value, ::int8_tArray* data) /* throws(ArrayIndexOutOfBoundsException) */ { _value = value; writeToBytes(data); } void poi::util::ShortField::readFromBytes(::int8_tArray* data) /* throws(ArrayIndexOutOfBoundsException) */ { _value = LittleEndian::getShort(data, _offset); } void poi::util::ShortField::readFromStream(::java::io::InputStream* stream) /* throws(IOException) */ { _value = LittleEndian::readShort(stream); } void poi::util::ShortField::writeToBytes(::int8_tArray* data) /* throws(ArrayIndexOutOfBoundsException) */ { LittleEndian::putShort(data, _offset, _value); } java::lang::String* poi::util::ShortField::toString() { return ::java::lang::String::valueOf(static_cast< int32_t >(_value)); } extern java::lang::Class *class_(const char16_t *c, int n); java::lang::Class* poi::util::ShortField::class_() { static ::java::lang::Class* c = ::class_(u"org.apache.poi.util.ShortField", 30); return c; } java::lang::Class* poi::util::ShortField::getClass0() { return class_(); }
28.069565
152
0.703841
pebble2015
5c42ca7bb0f4595b1a2817fda887cf080c6f291c
1,119
cpp
C++
beecrowd/C++/basico/1021.cpp
MateusdeNovaesSantos/Tecnologias
0a4d55f82942e33ed86202c58596f03d0dddbf6d
[ "MIT" ]
null
null
null
beecrowd/C++/basico/1021.cpp
MateusdeNovaesSantos/Tecnologias
0a4d55f82942e33ed86202c58596f03d0dddbf6d
[ "MIT" ]
null
null
null
beecrowd/C++/basico/1021.cpp
MateusdeNovaesSantos/Tecnologias
0a4d55f82942e33ed86202c58596f03d0dddbf6d
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int main(){ double N; long int NINT; cin >> N; N = N * 100; NINT = N; cout << "NOTAS:" << endl; cout << NINT / 10000 << " nota(s) de R$ 100.00" << endl; NINT %= 10000; cout << NINT / 5000 << " nota(s) de R$ 50.00" << endl; NINT %= 5000; cout << NINT / 2000 << " nota(s) de R$ 20.00" << endl; NINT %= 2000; cout << NINT / 1000 << " nota(s) de R$ 10.00" << endl; NINT %= 1000; cout << NINT / 500 << " nota(s) de R$ 5.00" << endl; NINT %= 500; cout << NINT / 200 << " nota(s) de R$ 2.00" << endl; NINT %= 200; cout << "MOEDAS:" << endl; cout << NINT / 100 << " moeda(s) de R$ 1.00" << endl; NINT %= 100; cout << NINT / 50 << " moeda(s) de R$ 0.50" << endl; NINT %= 50; cout << NINT / 25 << " moeda(s) de R$ 0.25" << endl; NINT %= 25; cout << NINT / 10 << " moeda(s) de R$ 0.10" << endl; NINT %= 10; cout << NINT / 5 << " moeda(s) de R$ 0.05" << endl; NINT %= 5; cout << NINT / 1 << " moeda(s) de R$ 0.01" << endl; return 0; }
16.701493
60
0.449508
MateusdeNovaesSantos
5c45b1f6fa955a76c9ba95c608399dc707462bd6
2,874
hpp
C++
lib/headers/Optimisation/LevenbergMarquardt.hpp
JackHunt/GaussianProcess
64820259608229ebc324904ec2f6213f205af804
[ "BSD-3-Clause" ]
null
null
null
lib/headers/Optimisation/LevenbergMarquardt.hpp
JackHunt/GaussianProcess
64820259608229ebc324904ec2f6213f205af804
[ "BSD-3-Clause" ]
null
null
null
lib/headers/Optimisation/LevenbergMarquardt.hpp
JackHunt/GaussianProcess
64820259608229ebc324904ec2f6213f205af804
[ "BSD-3-Clause" ]
null
null
null
/* BSD 3-Clause License Copyright (c) 2020, Jack Miles Hunt All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef GPLIB_LEVENBERG_MARQUARDT_HEADER #define GPLIB_LEVENBERG_MARQUARDT_HEADER #include "Optimiser.hpp" namespace GPLib::Optimisation { template<typename T> class LMParameters : public OptimiserParameters<T> { protected: T lambda; public: LMParameters(std::shared_ptr<GaussianProcess<T>> gp, const MappedMatrix<T>& X, const MappedVector<T>& Y, T lambda = 0.1, unsigned int maxIterations = 100, T minConvergenceNorm = 1e-3, unsigned int convergenceWindow = 5) : OptimiserParameters<T>(X, Y, maxIterations, minConvergenceNorm, convergenceWindow) { // Verify lambda. assert(lambda > 0); } T getLambda() const { return lambda; } void setLambda(T lambda) { assert(lambda > 0); this->lambda = lambda; } }; template<typename T> class LevenbergMarquardt : public Optimiser<T> { protected: T lambda; Matrix<T> gradK; public: LevenbergMarquardt(const LMParameters<T>& parameters); virtual ~LevenbergMarquardt(); virtual void operator()() override; }; } #endif
34.214286
78
0.68302
JackHunt
5c4e24a82ebe72dfde7af5dfcec8238079f3dc1c
964
cpp
C++
test/std/input.output/iostreams.base/ios/basic.ios.members/rdbuf_streambuf.pass.cpp
ontio/libcxx-mirror
4b4f32ea383deb28911f5618126c6ea6c110b5e4
[ "Apache-2.0" ]
null
null
null
test/std/input.output/iostreams.base/ios/basic.ios.members/rdbuf_streambuf.pass.cpp
ontio/libcxx-mirror
4b4f32ea383deb28911f5618126c6ea6c110b5e4
[ "Apache-2.0" ]
1
2019-04-21T16:53:33.000Z
2019-04-21T17:15:25.000Z
test/std/input.output/iostreams.base/ios/basic.ios.members/rdbuf_streambuf.pass.cpp
ontio/libcxx-mirror
4b4f32ea383deb28911f5618126c6ea6c110b5e4
[ "Apache-2.0" ]
1
2020-09-09T07:40:32.000Z
2020-09-09T07:40:32.000Z
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // <ios> // template <class charT, class traits> class basic_ios // basic_streambuf<charT,traits>* rdbuf(basic_streambuf<charT,traits>* sb); #include <ios> #include <streambuf> #include <cassert> int main(int, char**) { std::ios ios(0); assert(ios.rdbuf() == 0); assert(!ios.good()); std::streambuf* sb = (std::streambuf*)1; std::streambuf* sb2 = ios.rdbuf(sb); assert(sb2 == 0); assert(ios.rdbuf() == sb); assert(ios.good()); sb2 = ios.rdbuf(0); assert(sb2 == (std::streambuf*)1); assert(ios.rdbuf() == 0); assert(ios.bad()); return 0; }
26.777778
80
0.529046
ontio
5c52fdef8f92ca574f0357e0caa4b8a4e4624efb
363
hpp
C++
frontend/typing/normalisation.hpp
NicolaiLS/becarre
cf23e80041f856f50b9f96c087819780dfe1792c
[ "MIT" ]
null
null
null
frontend/typing/normalisation.hpp
NicolaiLS/becarre
cf23e80041f856f50b9f96c087819780dfe1792c
[ "MIT" ]
null
null
null
frontend/typing/normalisation.hpp
NicolaiLS/becarre
cf23e80041f856f50b9f96c087819780dfe1792c
[ "MIT" ]
null
null
null
#if !defined(BECARRE_FRONTEND_TYPING_NORMALISATION_HPP) #define BECARRE_FRONTEND_TYPING_NORMALISATION_HPP #include <optional> namespace becarre::frontend::typing { struct Type; namespace normalisation { void apply(Type &); } // namespace normalisation } // namespace becarre::frontend::typing #endif // !defined(BECARRE_FRONTEND_TYPING_NORMALISATION_HPP)
17.285714
61
0.804408
NicolaiLS
5c53076c74b580736f75fc95f36cf1da164c6427
8,160
cpp
C++
libadb/src/libadb/api/channel/channel-api.cpp
faserg1/adb
65507dc17589ac6ec00caf2ecd80f6dbc4026ad4
[ "MIT" ]
1
2022-03-10T15:14:13.000Z
2022-03-10T15:14:13.000Z
libadb/src/libadb/api/channel/channel-api.cpp
faserg1/adb
65507dc17589ac6ec00caf2ecd80f6dbc4026ad4
[ "MIT" ]
9
2022-03-07T21:00:08.000Z
2022-03-15T23:14:52.000Z
libadb/src/libadb/api/channel/channel-api.cpp
faserg1/adb
65507dc17589ac6ec00caf2ecd80f6dbc4026ad4
[ "MIT" ]
null
null
null
#include <libadb/api/channel/channel-api.hpp> #include <libadb/api/context/context.hpp> #include <nlohmann/json.hpp> #include <libadb/api/auth/token-bot.hpp> #include <libadb/api/utils/fill-reason.hpp> #include <libadb/api/utils/message-session.hpp> #include <libadb/api/utils/read-response.hpp> #include <fmt/core.h> #include <cpr/cpr.h> #include <algorithm> using namespace adb::api; using namespace adb::types; ChannelApi::ChannelApi(std::shared_ptr<Context> context) : context_(context), baseUrl_(context->getBaseUrl() + "/channels") { } std::optional<Channel> ChannelApi::getChannel(const adb::types::SFID &channelId) { auto url = fmt::format("{}/{}", baseUrl_, channelId.to_string()); auto session = cpr::Session(); session.SetUrl(url); auto header = cpr::Header{TokenBot::getBotAuthTokenHeader(context_)}; session.SetHeader(header); auto response = session.Get(); return readRequestResponseOpt<Channel>(response); } bool ChannelApi::deleteChannel(const adb::types::SFID &channelId, std::optional<std::string> reason) { auto url = fmt::format("{}/{}", baseUrl_, channelId.to_string()); auto session = cpr::Session(); session.SetUrl(url); auto header = cpr::Header{TokenBot::getBotAuthTokenHeader(context_)}; session.SetHeader(header); fillReason(header, reason); auto response = session.Delete(); return readCommandResponse(response); } std::vector<Message> ChannelApi::getMessages(adb::types::SFID channelId, std::optional<GetMessagesOpt> opt, std::optional<uint8_t> limit) { auto url = fmt::format("{}/{}/messages", baseUrl_, channelId.to_string()); auto session = cpr::Session(); session.SetUrl(url); auto params = cpr::Parameters{}; if (opt.has_value()) { auto optVal = opt.value(); std::string key; switch (optVal.type) { case GetMessagesOptType::After: key = "after"; break; case GetMessagesOptType::Around: key = "around"; break; case GetMessagesOptType::Before: key = "before"; break; } if (!key.empty()) params.Add(cpr::Parameter(key, optVal.messageId.to_string())); } if (limit.has_value()) { params.Add(cpr::Parameter("limit", std::to_string(limit.value()))); } session.SetParameters(params); session.SetHeader(cpr::Header{TokenBot::getBotAuthTokenHeader(context_)}); auto response = session.Get(); return readRequestResponse<std::vector<Message>>(response); } std::optional<Message> ChannelApi::getMessage(const adb::types::SFID &channelId, const adb::types::SFID &messageId) { auto url = fmt::format("{}/{}/messages/{}", baseUrl_, channelId.to_string(), messageId.to_string()); auto session = cpr::Session(); session.SetUrl(url); auto header = cpr::Header{TokenBot::getBotAuthTokenHeader(context_)}; session.SetHeader(header); auto response = session.Get(); return readRequestResponseOpt<Message>(response); } bool ChannelApi::createReaction(adb::types::SFID channelId, adb::types::SFID messageId, std::string emoji) { auto encodedEmoji = cpr::util::urlEncode(emoji); auto url = fmt::format("{}/{}/messages/{}/reactions/{}/@me", baseUrl_, channelId.to_string(), messageId.to_string(), encodedEmoji); auto response = cpr::Put( cpr::Url{url}, cpr::Header{TokenBot::getBotAuthTokenHeader(context_)}, cpr::Payload{} ); return readCommandResponse(response); } std::optional<Message> ChannelApi::createMessage(adb::types::SFID channelId, const CreateMessageParams &params) { auto url = fmt::format("{}/{}/messages", baseUrl_, channelId.to_string()); nlohmann::json j = params; auto data = j.dump(); auto session = cpr::Session(); session.SetUrl(url); fillSessionWithMessage(params, data, session, {TokenBot::getBotAuthTokenHeader(context_)}); auto response = session.Post(); return readRequestResponseOpt<Message>(response); } std::optional<Message> ChannelApi::editMessage(adb::types::SFID channelId, adb::types::SFID messageId, const EditMessageParams &params) { auto url = fmt::format("{}/{}/messages/{}", baseUrl_, channelId.to_string(), messageId.to_string()); nlohmann::json j = params; auto data = j.dump(); auto session = cpr::Session(); session.SetUrl(url); fillSessionWithMessage(params, data, session, {TokenBot::getBotAuthTokenHeader(context_)}); auto response = session.Patch(); return readRequestResponseOpt<Message>(response); } bool ChannelApi::deleteMessage(const adb::types::SFID &channelId, const adb::types::SFID &messageId, std::optional<std::string> reason) { auto url = fmt::format("{}/{}/messages/{}", baseUrl_, channelId.to_string(), messageId.to_string()); auto session = cpr::Session(); session.SetUrl(url); cpr::Header header{TokenBot::getBotAuthTokenHeader(context_)}; fillReason(header, reason); session.SetHeader(header); auto response = session.Delete(); return readCommandResponse(response); } bool ChannelApi::bulkDeleteMessages(SFID channelId, std::vector<SFID> messageIds, std::optional<std::string> reason) { auto url = fmt::format("{}/{}/messages/bulk-delete", baseUrl_, channelId.to_string()); auto session = cpr::Session(); session.SetUrl(url); auto contentType = std::pair{"content-type", "application/json"}; cpr::Header header{TokenBot::getBotAuthTokenHeader(context_), contentType}; fillReason(header, reason); session.SetHeader(header); nlohmann::json j { {"messages", messageIds} }; auto data = j.dump(); session.SetBody(data); auto response = session.Post(); return readCommandResponse(response); } std::optional<FollowedChannel> ChannelApi::followNewsChannel(adb::types::SFID channelId, adb::types::SFID webhookChannelId) { auto url = fmt::format("{}/{}/followers", baseUrl_, channelId.to_string()); auto session = cpr::Session(); session.SetUrl(url); auto contentType = std::pair{"content-type", "application/json"}; session.SetHeader({TokenBot::getBotAuthTokenHeader(context_), contentType}); nlohmann::json j { {"webhook_channel_id", webhookChannelId} }; auto data = j.dump(); session.SetBody(data); auto response = session.Post(); return readRequestResponseOpt<FollowedChannel>(response); } std::vector<Message> ChannelApi::getPinnedMessages(const adb::types::SFID &channelId) { auto url = fmt::format("{}/{}/pins", baseUrl_, channelId.to_string()); auto session = cpr::Session(); session.SetUrl(url); auto header = cpr::Header{TokenBot::getBotAuthTokenHeader(context_)}; session.SetHeader(header); auto response = session.Get(); return readRequestResponse<std::vector<Message>>(response); } bool ChannelApi::pinMessage(const adb::types::SFID &channelId, const adb::types::SFID &messageId, std::optional<std::string> reason) { auto url = fmt::format("{}/{}/pins/{}", baseUrl_, channelId.to_string(), messageId.to_string()); auto session = cpr::Session(); session.SetUrl(url); auto contentType = std::pair{"content-type", "application/json"}; auto header = cpr::Header{TokenBot::getBotAuthTokenHeader(context_), contentType}; fillReason(header, reason); session.SetHeader(header); // Empty body session.SetBody("{}"); auto response = session.Put(); return readCommandResponse(response); } bool ChannelApi::unpinMessage(const adb::types::SFID &channelId, const adb::types::SFID &messageId, std::optional<std::string> reason) { auto url = fmt::format("{}/{}/pins/{}", baseUrl_, channelId.to_string(), messageId.to_string()); auto session = cpr::Session(); session.SetUrl(url); auto header = cpr::Header{TokenBot::getBotAuthTokenHeader(context_)}; fillReason(header, reason); session.SetHeader(header); auto response = session.Delete(); return readCommandResponse(response); }
37.090909
137
0.673039
faserg1
5c5682b447ab378307987a121bfaabc74b405d8d
149
cpp
C++
source/lib/memory/unused_memory_fea0_feff.cpp
olduf/gb-emu
37a2195fa67a2656cc11541eb75b1f7a548057b2
[ "Unlicense" ]
null
null
null
source/lib/memory/unused_memory_fea0_feff.cpp
olduf/gb-emu
37a2195fa67a2656cc11541eb75b1f7a548057b2
[ "Unlicense" ]
null
null
null
source/lib/memory/unused_memory_fea0_feff.cpp
olduf/gb-emu
37a2195fa67a2656cc11541eb75b1f7a548057b2
[ "Unlicense" ]
null
null
null
#include "lib/memory/unused_memory_fea0_feff.hpp" namespace gb_lib { uint8_t UnusedMemoryFEA0_FEFF::getByte(uint16_t address) { return 0; } }
13.545455
56
0.765101
olduf
5c58eaae8401922d30075897bb5bc28bde474f7a
867
cpp
C++
src/deco.cpp
mrnoda/first-demo
d89b6f4fbe02073aab16365d9f57eae4a695e554
[ "MIT" ]
null
null
null
src/deco.cpp
mrnoda/first-demo
d89b6f4fbe02073aab16365d9f57eae4a695e554
[ "MIT" ]
2
2015-04-18T19:58:14.000Z
2015-04-18T19:59:00.000Z
src/deco.cpp
mrnoda/first-demo
d89b6f4fbe02073aab16365d9f57eae4a695e554
[ "MIT" ]
null
null
null
#include <stdexcept> #include "deco.h" #include "utility.h" namespace effects { Deco::Deco(sf::RenderWindow &window) : Effect(window), border_colour_(sf::Color(100, 20, 100)) { auto window_size = window.getSize(); auto thickness = window_size.y / 60.0f; sf::RectangleShape border(sf::Vector2f(window_size.x, thickness)); border.setFillColor(border_colour_); // Top border borders_.push_back(border); // Bottom border border.setPosition(0, window_size.y - thickness); borders_.push_back(border); } Deco::~Deco() {} void Deco::update(sf::Time elapsed) {} void Deco::draw() { window_.pushGLStates(); for (const auto &border : borders_) { window_.draw(border); } window_.popGLStates(); } }
21.146341
75
0.580161
mrnoda
5c59b70c8d06b7c1b020f24832aa684e9c943679
2,132
cpp
C++
udsc2/src/api/phoneme.cpp
utkucandogan/udsc2
ced007c0760ce0c3a4b2fbdd14672e38bd58d6d6
[ "Apache-2.0" ]
null
null
null
udsc2/src/api/phoneme.cpp
utkucandogan/udsc2
ced007c0760ce0c3a4b2fbdd14672e38bd58d6d6
[ "Apache-2.0" ]
null
null
null
udsc2/src/api/phoneme.cpp
utkucandogan/udsc2
ced007c0760ce0c3a4b2fbdd14672e38bd58d6d6
[ "Apache-2.0" ]
null
null
null
#include <udsc2/phoneme/phoneme.h> #include "phoneme.hpp" #include "util/bit.h" #include <limits> namespace udsc2::api { int phoneme_difference(const api::PhonemeProperties pLeft, const api::PhonemeProperties pRight, const api::PhonemeProperties ignore) { // These are tecnical 'Phonemes' such as start, end or whitespace. Only comparison that // we need is whether their types are same. if (pLeft.type < 8 || pRight.type < 8) { return pLeft.type == pRight.type ? 0 : std::numeric_limits<int>::max(); } // Custom comparison methods that is defined by extension writers. for (auto f : udsc2::Phoneme::comparators) { int i = f(pLeft, pRight, ignore); if (i != -1) return i; } // If types are not same directly get out. Note that this is not before the custom // comparators because extensions may need cross-type differences (such as vowel-semivowel // comparison). if (pLeft.type != pRight.type) { return std::numeric_limits<int>::max(); } int ret = 0; switch (pLeft.type) { case api::TYP_VOWEL: if (ignore.roundness == api::ROU_NONE && pLeft.roundness != pRight.roundness) { return std::numeric_limits<int>::max(); } if (ignore.height == api::HEI_NONE) { ret += std::abs(pLeft.height - pRight.height); } if (ignore.backness == api::BAC_NONE) { ret += std::abs(pLeft.backness - pRight.backness); } case api::TYP_CONSONANT: if (ignore.release == api::REL_NORMAL && pLeft.release != pRight.release) { if (pLeft.release == api::REL_NORMAL) { ret += 1; } else { return std::numeric_limits<int>::max(); } } if (ignore.voicing == api::VOI_NONE && pLeft.voicing != pRight.voicing) { ++ret; } ret += util::popcount(( pLeft.poa ^ pRight.poa ) & ~ignore.poa); ret += util::popcount(( pLeft.moa ^ pRight.moa ) & ~ignore.moa); return ret; } return std::numeric_limits<int>::max(); } }
30.898551
95
0.583959
utkucandogan
5c5b199d7a305e11547eae8647633d9fb5de9575
463
cpp
C++
query/scorer/BM25.cpp
Da-Huang/Search-Engine
5f1faed6c49adb7f3cc2199c33dbe6bc7094c932
[ "Apache-2.0" ]
1
2015-02-07T13:11:43.000Z
2015-02-07T13:11:43.000Z
query/scorer/BM25.cpp
Da-Huang/Search-Engine
5f1faed6c49adb7f3cc2199c33dbe6bc7094c932
[ "Apache-2.0" ]
1
2015-04-14T05:04:19.000Z
2015-04-14T05:04:19.000Z
query/scorer/BM25.cpp
Da-Huang/Search-Engine
5f1faed6c49adb7f3cc2199c33dbe6bc7094c932
[ "Apache-2.0" ]
null
null
null
#include <cmath> #include <BM25.h> double BM25::R(size_t tf, size_t dl, double avgdl) { const double K = k1 * (1 - b + b * dl / avgdl); return tf * (k1 + 1) / (tf + K); } double BM25::idf(size_t df, size_t DOC_NUM) { return log(1 + (DOC_NUM - df + double(0.5)) / (df + double(0.5)) ); return 0; } double BM25::score(size_t df, size_t DOC_NUM, size_t tf, size_t dl, double avgdl) { // return tf; return idf(df, DOC_NUM) * R(tf, dl, avgdl); }
18.52
52
0.598272
Da-Huang
5c635061262edc0077c26515342ef1dc851a84a7
1,107
cc
C++
src/Basevector.cc
Amjadhpc/w2rap-contigger
221f6cabedd19743046ee5dec18e6feb85130218
[ "MIT" ]
48
2016-04-26T16:52:59.000Z
2022-01-15T09:18:17.000Z
src/Basevector.cc
Amjadhpc/w2rap-contigger
221f6cabedd19743046ee5dec18e6feb85130218
[ "MIT" ]
45
2016-04-27T08:20:56.000Z
2022-02-14T07:47:11.000Z
src/Basevector.cc
Amjadhpc/w2rap-contigger
221f6cabedd19743046ee5dec18e6feb85130218
[ "MIT" ]
15
2016-05-11T14:35:25.000Z
2022-01-15T09:18:45.000Z
/////////////////////////////////////////////////////////////////////////////// // SOFTWARE COPYRIGHT NOTICE AGREEMENT // // This software and its documentation are copyright (2010) by the // // Broad Institute. All rights are reserved. This software is supplied // // without any warranty or guaranteed support whatsoever. The Broad // // Institute is not responsible for its use, misuse, or functionality. // /////////////////////////////////////////////////////////////////////////////// /* * \file Basevector.cc * \author tsharpe * \date Sep 23, 2009 * * \brief */ #include "Basevector.h" void ReverseComplement( vecbasevector& vbv ) { vecbvec::iterator end(vbv.end()); for ( vecbvec::iterator itr(vbv.begin()); itr != end; ++itr ) itr->ReverseComplement(); } #include "feudal/OuterVecDefs.h" template class OuterVec<BaseVec>; template class OuterVec<BaseVec,BaseVec::allocator_type>; template class OuterVec< OuterVec<BaseVec,BaseVec::allocator_type>, MempoolOwner<unsigned char> >;
36.9
79
0.558266
Amjadhpc
5c6eb51173b7bcba9c2dc0f5e1c0eecb427b4e23
669
cpp
C++
linear-list/array/rotate_image.cpp
zhangxin23/leetcode
4c8fc60e59448045a3e880caaedd0486164e68e7
[ "MIT" ]
1
2015-07-15T07:31:42.000Z
2015-07-15T07:31:42.000Z
linear-list/array/rotate_image.cpp
zhangxin23/leetcode
4c8fc60e59448045a3e880caaedd0486164e68e7
[ "MIT" ]
null
null
null
linear-list/array/rotate_image.cpp
zhangxin23/leetcode
4c8fc60e59448045a3e880caaedd0486164e68e7
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; /** * You are given an n × n 2D matrix representing an image. * Rotate the image by 90 degrees (clockwise). * Follow up: Could you do this in-place? * */ class Solution { public: void rotate(vector<vector<int> >& matrix) { int n = matrix.size(); //副对角线翻转 for(int i = 0; i < n; i++) { for(int j = 0; j < n - i; j++) swap(matrix[i][j], matrix[n - j - 1][n - i - 1]); } //中线翻转 for(int i = 0; i < n/2; i++) { for(int j = 0; j < n; j++) swap(matrix[i][j], matrix[n - i - 1][j]); } } };
22.3
65
0.472347
zhangxin23
5c7264079ac15c2c01c4c6c91a060c8fe48eae33
1,235
hpp
C++
includes/MIP_constants.hpp
xmuriqui/muriqui
ff1492c70e297077c9450ef9175e5a80c6627140
[ "MIT" ]
5
2021-12-04T04:42:32.000Z
2022-01-21T13:23:47.000Z
includes/MIP_constants.hpp
xmuriqui/muriqui
ff1492c70e297077c9450ef9175e5a80c6627140
[ "MIT" ]
null
null
null
includes/MIP_constants.hpp
xmuriqui/muriqui
ff1492c70e297077c9450ef9175e5a80c6627140
[ "MIT" ]
null
null
null
#ifndef MIP_CONSTANTS_HPP #define MIP_CONSTANTS_HPP #include "MIP_config.hpp" namespace minlpproblem { enum MIP_RETURN_CODE { MIP_SUCESS = 0, MIP_BAD_DEFINITIONS = -1, MIP_BAD_VALUE = -2, MIP_INDEX_FAULT = -3, MIP_MEMORY_ERROR = -4, MIP_REPETEAD_INDEXES = -5, MIP_UPPER_TRIANGLE_INDEX = -6, MIP_UNDEFINED_ERROR = -7, MIP_CALLBACK_FUNCTION_ERROR = -8, MIP_LIBRARY_NOT_AVAILABLE = -9, MIP_INFEASIBILITY = -10, MIP_NOT_APPLICABLE = -11, MIP_FAILURE = -12, MIP_RETURN_CODE_BEGIN = MIP_FAILURE, MIP_RETURN_CODE_END = MIP_SUCESS }; enum MIP_VARTYPE { MIP_VT_CONTINUOUS = 201, MIP_VT_INTEGER = 202, MIP_VT_CONTINGER = 203, //special kind of variable to internal use //MIP_VT_BINARY = 204 MIP_VARTYPE_BEGIN = 201, MIP_VARTYPE_END = 203 }; enum MIP_PROBLEMTYPE { MIP_PT_LP = 140, MIP_PT_MILP, MIP_PT_QP, MIP_PT_MIQP, MIP_PT_QCP, MIP_PT_MIQCP, MIP_PT_NLP, MIP_PT_MINLP }; } #endif
19.603175
74
0.556275
xmuriqui
f075d689497d0edced6ad946289a5a859d3fb327
9,364
cpp
C++
modules/ide_old/src/NewFilePage_1.cpp
DeepBlue14/rqt_ide
853964dc429d61c9afb6f1fe827f2e3e83f92713
[ "MIT" ]
null
null
null
modules/ide_old/src/NewFilePage_1.cpp
DeepBlue14/rqt_ide
853964dc429d61c9afb6f1fe827f2e3e83f92713
[ "MIT" ]
null
null
null
modules/ide_old/src/NewFilePage_1.cpp
DeepBlue14/rqt_ide
853964dc429d61c9afb6f1fe827f2e3e83f92713
[ "MIT" ]
null
null
null
#include "NewFilePage_1.h" NewFilePage_1::NewFilePage_1(QWidget* parent) : QWidget(parent) { titlePtr = new QLabel("<b>Select file type</b>"); langStrPtr = new QString("null"); fileTypeStrPtr = new QString("null"); langsStrLstPtr = new QVector<QListWidgetItem*>(); langsStrLstPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile2.png"/*"cFile.png"*/), "C") ); langsStrLstPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cppFile2.png"), "C++") ); langsStrLstPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "pyFile.jpg"), "Python") ); langsStrLstPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "javaFile.png"), "Java") ); langsStrLstPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "lispFile.jpg"), "Lisp") ); langsStrLstPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "shellFile.png"), "Shell Script") ); langsStrLstPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "file.png"), "Other") ); cFileOptLstWidPtrVecPtr = new QVector<QListWidgetItem*>(); cFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "Header file") ); cFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "Source file") ); cppFileOptLstWidPtrVecPtr = new QVector<QListWidgetItem*>(); cppFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "Header file") ); cppFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "Source file") ); pythonFileOptLstWidPtrVecPtr = new QVector<QListWidgetItem*>(); pythonFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "Header file") ); pythonFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "Dynamic Reconfiguration") ); javaFileOptLstWidPtrVecPtr = new QVector<QListWidgetItem*>(); javaFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "Class file") ); javaFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "Interface file") ); lispFileOptLstWidPtrVecPtr = new QVector<QListWidgetItem*>(); lispFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "Source file") ); shellFileOptLstWidPtrVecPtr = new QVector<QListWidgetItem*>(); shellFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "BASH file") ); shellFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "Bourne file") ); shellFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "C Shell file") ); shellFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "Korn file") ); shellFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "Z Shell file") ); otherFileOptLstWidPtrVecPtr = new QVector<QListWidgetItem*>(); otherFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "msg file") ); otherFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "srv file") ); otherFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "css file") ); otherFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "xml file") ); otherFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "json file") ); otherFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "yaml file") ); otherFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "sql file") ); otherFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "CMakeLists file") ); otherFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "package file") ); otherFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "Markdown file") ); otherFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "text file") ); otherFileOptLstWidPtrVecPtr->push_back(new QListWidgetItem(QIcon(RosEnv::imagesInstallLoc + "cFile.png"), "empty file") ); langsLwPtr = new QListWidget(); //langsLwPtr->addItems(*langsStrLstPtr); for(size_t i = 0; i < langsStrLstPtr->size(); i++) { langsLwPtr->addItem(langsStrLstPtr->at(i) ); } //langsLwPtr->item(0)->setSelected(true); connect(langsLwPtr, SIGNAL(itemSelectionChanged()), this, SLOT(handleSwapOptionsSlot())); fileTypeStrLstPtrVec = new QVector<QVector<QListWidgetItem*>*>(); fileTypeStrLstPtrVec->push_back(cFileOptLstWidPtrVecPtr); fileTypeStrLstPtrVec->push_back(cppFileOptLstWidPtrVecPtr); fileTypeStrLstPtrVec->push_back(pythonFileOptLstWidPtrVecPtr); fileTypeStrLstPtrVec->push_back(javaFileOptLstWidPtrVecPtr); fileTypeStrLstPtrVec->push_back(lispFileOptLstWidPtrVecPtr); fileTypeStrLstPtrVec->push_back(shellFileOptLstWidPtrVecPtr); fileTypeStrLstPtrVec->push_back(otherFileOptLstWidPtrVecPtr); fileTypeLwPtr = new QListWidget(); //fileTypeLwPtr->addItems(*(fileTypeStrLstPtrVec.at(0)) ); // default for(size_t i = 0; i < fileTypeStrLstPtrVec->at(0)->size(); i++) { fileTypeLwPtr->addItem(new QListWidgetItem(*fileTypeStrLstPtrVec->at(0)->at(i)) ); // default } outerLayoutPtr = new QGridLayout(); outerLayoutPtr->addWidget(titlePtr, 0, 0, 1, 2, Qt::AlignHCenter); outerLayoutPtr->addWidget(langsLwPtr, 1, 0); outerLayoutPtr->addWidget(fileTypeLwPtr, 1, 1); this->setLayout(outerLayoutPtr); } void NewFilePage_1::handleSwapOptionsSlot() { fileTypeLwPtr->clear(); // Remove old items (actually, it deletes them totally--not just form the UI) for(size_t i = 0; i < fileTypeStrLstPtrVec->at(langsLwPtr->currentRow())->size(); i++) { fileTypeLwPtr->addItem(new QListWidgetItem(*fileTypeStrLstPtrVec->at(langsLwPtr->currentRow())->at(i)) ); } } void NewFilePage_1::setLangStrPtr() { if(langsLwPtr->selectedItems().size() != 0) { langStrPtr = new QString(langsLwPtr->currentItem()->text() ); } else { cerr << "Invalid input at NewFilePage_1::setLangStrPtr()" << endl; } } QString* NewFilePage_1::getLangStrPtr() { return langStrPtr; } void NewFilePage_1::setFileTypeStrPtr() { if(fileTypeLwPtr->selectedItems().size() != 0) { fileTypeStrPtr = new QString(fileTypeLwPtr->currentItem()->text() ); } else { cerr << "Invalid input at NewFilePage_1::setFileTypeStrPtr()" << endl; } } QString* NewFilePage_1::getFileTypeStrPtr() { return fileTypeStrPtr; } void NewFilePage_1::triggerMutators() { setLangStrPtr(); setFileTypeStrPtr(); } QString* NewFilePage_1::toString() { QString* tmp = new QString("Language: "); tmp->append(getLangStrPtr() ); tmp->append("\nFile Type: "); tmp->append(getFileTypeStrPtr() ); return tmp; } NewFilePage_1::~NewFilePage_1() { ; }
48.020513
120
0.601773
DeepBlue14
f076c6fbd27720f0b643179527a8641a414e65d0
7,733
hpp
C++
src/truetouch.hpp
TrueTouch/truetouch-firmware
ae6f435613a557c111d4f4eed6d548280a7c5702
[ "MIT" ]
null
null
null
src/truetouch.hpp
TrueTouch/truetouch-firmware
ae6f435613a557c111d4f4eed6d548280a7c5702
[ "MIT" ]
null
null
null
src/truetouch.hpp
TrueTouch/truetouch-firmware
ae6f435613a557c111d4f4eed6d548280a7c5702
[ "MIT" ]
null
null
null
/** * truetouch.hpp - a simple protocol written on top of a BLE UART for controlling pins on * the TrueTouch device. * * Copyright (c) 2021 TrueTouch * Distributed under the MIT license (see LICENSE or https://opensource.org/licenses/MIT) */ #pragma once #include "nordic_ble.hpp" #include "boards_inc.h" #include <app_error.h> #include <app_timer.h> #include <cstdint> #include <climits> #include <cstddef> #include <cstring> #ifndef TRUETOUCH_PULSE_PARALLEL # warning "TRUETOUCH_PULSE_PARALLEL not defined - defaulting to false" #define TRUETOUCH_PULSE_PARALLEL false #endif class TrueTouch { public: //////////////////////////////////////////////////////////////////////////////////////////////////// // Public Types //////////////////////////////////////////////////////////////////////////////////////////////////// /** The type constituting a bitset. */ using Bitset = std::uint32_t; /** Types of commands. */ enum class Command : std::uint8_t { SOLENOID_WRITE = 0x01, /*!< Digital write to the given fingers' solenoids. */ SOLENOID_PULSE = 0x02, /*!< Pulse given fingers' solenoids for so many ms. */ ERM_SET = 0x03, /*!< Set PWM on given fingers' ERM motors. */ }; /** Fingers the TrueTouch device is connected to. */ enum class Finger : std::uint8_t { THUMB = 0, INDEX = 1, MIDDLE = 2, RING = 3, PINKY = 4, PALM = 5, }; /** Solenoid write options. */ enum class GpioOutput : std::uint8_t { OUT_LOW = 0, OUT_HIGH = 1 }; /** Solenoid write parameters. */ struct __attribute__((packed)) SolenoidWrite { Command command; Bitset finger_bitset; // n-th bit set configures n-th finger in the Finger enum GpioOutput output; }; /** Solenoid pulse parameters. */ struct __attribute__((packed)) SolenoidPulse { Command command; Bitset finger_bitset; // n-th bit set configures n-th finger in the Finger enum std::uint32_t duration_ms; // duration of pulse per gpio in ms }; /** ERM set parameters. */ struct __attribute__((packed)) ErmSet { Command command; Bitset finger_bitset; // n-th bit set configures n-th finger in the Finger enum std::uint8_t intensity; // 0-255 }; //////////////////////////////////////////////////////////////////////////////////////////////////// // Public Constants //////////////////////////////////////////////////////////////////////////////////////////////////// /** Size of the UART buffer. */ static constexpr std::size_t BUFFER_SIZE { 256 }; /** Max number of bits in a bitset. */ static constexpr std::size_t BITSET_BIT_COUNT { sizeof(Bitset) * CHAR_BIT }; /** Number of solenoids in the system. */ static constexpr std::size_t SOLENOID_COUNT { 5 }; /** Mask of possible solenoid bits in a bitset. */ static constexpr std::uint32_t SOLENOID_MASK { (1UL << SOLENOID_COUNT) - 1 }; /** Number of ERM motors in the system. */ static constexpr std::size_t ERM_COUNT { 6 }; /** Mask of possible ERM motor bits in a bitset. */ static constexpr std::uint32_t ERM_MASK { (1UL << ERM_COUNT) - 1 }; public: //////////////////////////////////////////////////////////////////////////////////////////////////// // Public Functions //////////////////////////////////////////////////////////////////////////////////////////////////// /** * Initializes hardware used for TrueTouch. BLE should be initialized before this is called. */ TrueTouch(); virtual ~TrueTouch(); /** Services any pending data read by this device. */ void service(); /** Util - returns the nRF pin corresponding to the given finger's solenoid. * Returns -1 for the palm. */ static int finger_to_solenoid_pin(Finger finger); static int finger_to_solenoid_pin(int finger) { APP_ERROR_CHECK_BOOL(finger < SOLENOID_COUNT); return finger_to_solenoid_pin(static_cast<Finger>(finger)); } /** Util - returns the nRF pin corresponding to the given finger's ERM motor. */ static int finger_to_erm_pin(Finger finger); static int finger_to_erm_pin(int finger) { APP_ERROR_CHECK_BOOL(finger < ERM_COUNT); return finger_to_erm_pin(static_cast<Finger>(finger)); } private: //////////////////////////////////////////////////////////////////////////////////////////////////// // Internal Constants //////////////////////////////////////////////////////////////////////////////////////////////////// /** The value used when there's no current pulse bit. */ static constexpr std::uint32_t NO_ACTIVE_BIT = static_cast<std::uint32_t>(-1); //////////////////////////////////////////////////////////////////////////////////////////////////// // Internal Data //////////////////////////////////////////////////////////////////////////////////////////////////// /** Buffer used to read data recieved from BLE UART. */ std::uint8_t _buffer[BUFFER_SIZE]; volatile std::size_t _buffer_cnt; /** An app timer control block and instance pointer. * NOTE: this is defined without the macro so that it can be per class instance. This could * introduce issues in later SDK versions, keep an eye on changes. */ app_timer_t _timer_cb = { .active = false, }; const app_timer_id_t _timer = &_timer_cb; /** Bitset of pins to be pulsed. */ Bitset _pulse_pin_bitset; /** Duration of each pulse in ms. */ std::uint32_t _pulse_dur_ms; /** Currently active bit being pulsed (used for sequential pulsing config). */ std::uint32_t _current_pulse_bit; //////////////////////////////////////////////////////////////////////////////////////////////////// // Internal Functions //////////////////////////////////////////////////////////////////////////////////////////////////// /** Functions to handle commands */ void handle_solenoid_write(); void handle_solenoid_pulse(); void handle_solenoid_pulse_sequential(); void handle_solenoid_pulse_parallel(); void handle_erm_set(); /* Sends an ACK for debugging/benchmarking purposes. Sends the given * message to the other side. */ #ifdef BENCHMARK_TIMING void ack(std::uint8_t *bytes, std::uint16_t len); #endif /** Copy bytes from the BLE UART byte buffer into the type T */ template <typename T> T parse_bytes() { if (_buffer_cnt < sizeof(T)) { /* Uh-oh... */ APP_ERROR_HANDLER(0); } else { /* Grab the structure from the byte buffer. */ T ret; std::memcpy(&ret, _buffer, sizeof(T)); /* Done with these bytes, "erase" them. */ std::size_t remaining = _buffer_cnt - sizeof(T); std::memmove(&_buffer[0], &_buffer[sizeof(T)], remaining); _buffer_cnt -= sizeof(T); return ret; } // subdue the return type warning (APP_ERROR_HANDLER will not return) return T{}; } /** Callback to handle incoming UART data. */ static void ble_uart_callback(void *context, const std::uint8_t *data, std::uint16_t length); /** Callback called when the timer expires. */ static void timer_timeout_callback(void *context); /** Delegate callbacks depending on configuration. */ void timer_timeout_callback_parallel(); void timer_timeout_callback_sequential(); };
36.305164
101
0.528126
TrueTouch
f0790e6b4e55e8359c355ec19eabd6c8196c18f0
641
hpp
C++
include/locic/Parser/TemplateParser.hpp
scross99/locic
a24bb380e17f8af69e7389acf8ce354c91a2abf3
[ "MIT" ]
80
2015-02-19T21:38:57.000Z
2016-05-25T06:53:12.000Z
include/locic/Parser/TemplateParser.hpp
scross99/locic
a24bb380e17f8af69e7389acf8ce354c91a2abf3
[ "MIT" ]
8
2015-02-20T09:47:20.000Z
2015-11-13T07:49:17.000Z
include/locic/Parser/TemplateParser.hpp
scross99/locic
a24bb380e17f8af69e7389acf8ce354c91a2abf3
[ "MIT" ]
6
2015-02-20T11:26:19.000Z
2016-04-13T14:30:39.000Z
#ifndef LOCIC_PARSER_TEMPLATEPARSER_HPP #define LOCIC_PARSER_TEMPLATEPARSER_HPP #include <locic/AST.hpp> #include <locic/Parser/TemplateBuilder.hpp> namespace locic { namespace Debug { class SourcePosition; } namespace Parser { class TemplateInfo; class TokenReader; class TemplateParser { public: TemplateParser(TokenReader& reader); ~TemplateParser(); TemplateInfo parseTemplate(); AST::Node<AST::TemplateVarList> parseTemplateVarList(); AST::Node<AST::TemplateVar> parseTemplateVar(); private: TokenReader& reader_; TemplateBuilder builder_; }; } } #endif
15.634146
58
0.706708
scross99
f07a3778e625992cd5ef4cf609abb57f28e9fbda
2,108
cc
C++
Trie/trie.cc
zhanMingming/DataStruct
7e0c665f02d49919e3df2f08f7a5945300ebd8f1
[ "MIT" ]
1
2019-11-23T15:41:58.000Z
2019-11-23T15:41:58.000Z
Trie/trie.cc
zhanMingming/DataStruct
7e0c665f02d49919e3df2f08f7a5945300ebd8f1
[ "MIT" ]
null
null
null
Trie/trie.cc
zhanMingming/DataStruct
7e0c665f02d49919e3df2f08f7a5945300ebd8f1
[ "MIT" ]
null
null
null
#include"trie.h" #include<cstring> #include<iostream> Trie::Trie() :root(NULL) {} Trie::Trie_node::Trie_node() { data=NULL; for(int index=0;index <Num_chars;++index) { num_char[index]=NULL; } } Trie::~Trie() { } int Trie::insert(const char *word,const char *number) { if(word==NULL||number==NULL) { std::cout << "insert error" << std::endl; return 0; } if(strlen(number) > 11) { std::cout << "the number is overlength" << std::endl; return 0; } if(root==NULL) { root=new Trie_node; } Trie_node *location=root; char char_code; while(location != NULL && *word !=0) { if(*word >='A'&& *word <='Z') { char_code=*word-'A'; }else if(*word>='a'&& *word<='z') { char_code=*word-'a'; }else { return 0; } if(location->num_char[char_code]==NULL) { location->num_char[char_code]=new Trie_node; } location=location->num_char[char_code]; ++word; } location->data=new char[strlen(number)]; strcpy(location->data,number); return 1; } int Trie::search(const char *word,char *number) { if(word == NULL) { return 0; } char char_code; Trie_node *location=root; while(location != NULL && *word !=0) { if(*word >='A' && *word <='Z') { char_code=*word-'A'; }else if(*word>='a'&& *word<='z') { char_code=*word-'a'; }else { return 0; } if(location->num_char[char_code]==NULL) { return 0; } location=location->num_char[char_code]; ++word; } if(location != NULL && location->data != NULL) { strcpy(number,location->data); return 1; }else { return 0; } }
15.275362
62
0.4426
zhanMingming
f07ab6bc91c3f089f5643326b052f12ad6bc2a34
1,109
cpp
C++
Training (Lopatin)/B.cpp
michaelarakel/local-trainings-and-upsolvings
7ec663fd80e6a9f7c9ffa37bd97b5197f1e4a73c
[ "Unlicense" ]
null
null
null
Training (Lopatin)/B.cpp
michaelarakel/local-trainings-and-upsolvings
7ec663fd80e6a9f7c9ffa37bd97b5197f1e4a73c
[ "Unlicense" ]
null
null
null
Training (Lopatin)/B.cpp
michaelarakel/local-trainings-and-upsolvings
7ec663fd80e6a9f7c9ffa37bd97b5197f1e4a73c
[ "Unlicense" ]
null
null
null
#include <iostream> #include <vector> #include <cstdio> using namespace std; vector <vector <int> > g; vector <char> used; vector <int> matching; bool augment_path(int v) { if (used[v]) return false; used[v] = true; for (int i = 0; i < g[v].size(); ++i) { int node = g[v][i]; if (matching[node] == -1 || augment_path(node)) { matching[node] = v; return true; } } return false; } int main() { //freopen("pairs.in", "r", stdin); //freopen("pairs.out", "w", stdout); int n, m; cin >> n >> m; g.resize(n); for (int i = 0; i < n; ++i) { int num; while (cin >> num) { if (num == 0) break; g[i].push_back(num - 1); } } used = vector <char>(n, false); matching = vector <int>(m, -1); int count = 0; for (int i = 0; i < n; ++i) { used.assign(n, false); augment_path(i); } for (int i = 0; i < m; ++i) if (matching[i] != -1) ++count; cout << count << endl; for (int i = 0; i < matching.size(); ++i) if (matching[i] != -1) cout << matching[i] + 1 << ' ' << i + 1 << endl; }
16.552239
52
0.493237
michaelarakel
f07ffc54071b476d8d723231960477f04b4172c9
173
cpp
C++
Serna_Esteban.assignment2.0/Blast.cpp
Este-iv/Space_nvaders
dc3fbe00047584a04b43b8228bbc484dcf6bee50
[ "MIT" ]
null
null
null
Serna_Esteban.assignment2.0/Blast.cpp
Este-iv/Space_nvaders
dc3fbe00047584a04b43b8228bbc484dcf6bee50
[ "MIT" ]
null
null
null
Serna_Esteban.assignment2.0/Blast.cpp
Este-iv/Space_nvaders
dc3fbe00047584a04b43b8228bbc484dcf6bee50
[ "MIT" ]
null
null
null
#include "Blast.h" #include "space.h" Blast::Blast(char s, int d, point p, point v){ source = s; damage = d; position = p; velocity = v; }
15.727273
46
0.514451
Este-iv
f086727a8eede7721dfbd3cbf0bde48e01ee9a24
18,983
cpp
C++
src/client/ClientTests.cpp
oakdoor/enterprisediodefiletransfer
64cf04f47fd48fa4723b022968babdd8d62702d3
[ "MIT" ]
1
2021-05-27T09:53:20.000Z
2021-05-27T09:53:20.000Z
src/client/ClientTests.cpp
oakdoor/enterprisediodefiletransfer
64cf04f47fd48fa4723b022968babdd8d62702d3
[ "MIT" ]
null
null
null
src/client/ClientTests.cpp
oakdoor/enterprisediodefiletransfer
64cf04f47fd48fa4723b022968babdd8d62702d3
[ "MIT" ]
1
2021-09-16T14:12:27.000Z
2021-09-16T14:12:27.000Z
// Copyright PA Knowledge Ltd 2021 // MIT License. For licence terms see LICENCE.md file. #include <cstdint> #include <vector> #include <string> #include <future> #include "test/catch.hpp" #include "test/EnterpriseDiodeTestHelpers.hpp" #include "enterprisediode/EnterpriseDiodeHeader.hpp" #include "Client.hpp" #include "Timer.hpp" #include "IngressBufferLevelInterface.hpp" #include "DataSendPeriodController.hpp" #include "PacketGeneratorInterface.hpp" using namespace std::chrono_literals; TEST_CASE("Client. Stream data is sent using the ED client") { auto udpClientSpy = std::make_shared<UdpClientSpy>(); Client edClient( udpClientSpy, std::make_shared<Timer>(0), 1, nullptr, createPacketGenerator(DiodeVariant::type::Basic, std::nullopt)); std::stringstream ss("B"); edClient.send(ss); REQUIRE(udpClientSpy->buffersSent.size() == 2); REQUIRE(udpClientSpy->buffersSent.at(0).at(EDHeader::FrameCountIndex) == 1); REQUIRE_FALSE(udpClientSpy->buffersSent.at(0).at(EDHeader::EOFFlagIndex)); REQUIRE(udpClientSpy->buffersSent.at(0).at(EDHeader::HeaderSizeInBytes) == 'B'); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::FrameCountIndex) == 2); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::EOFFlagIndex)); SECTION("Filename is set") { REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::HeaderSizeInBytes) == '{'); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::HeaderSizeInBytes + 1) == 'n'); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::HeaderSizeInBytes + 13) == 'r'); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::HeaderSizeInBytes + 20) == 'd'); } } TEST_CASE("Client. Filename can be set dynamically.") { auto udpClientSpy = std::make_shared<UdpClientSpy>(); Client edClient( udpClientSpy, std::make_shared<Timer>(0), 1, nullptr, createPacketGenerator(DiodeVariant::type::Basic, std::nullopt, "testFilename")); std::stringstream ss("B"); edClient.send(ss); REQUIRE(udpClientSpy->buffersSent.size() == 2); REQUIRE(udpClientSpy->buffersSent.at(0).at(EDHeader::FrameCountIndex) == 1); REQUIRE_FALSE(udpClientSpy->buffersSent.at(0).at(EDHeader::EOFFlagIndex)); REQUIRE(udpClientSpy->buffersSent.at(0).at(EDHeader::HeaderSizeInBytes) == 'B'); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::FrameCountIndex) == 2); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::EOFFlagIndex)); SECTION("Filename is set") { REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::HeaderSizeInBytes) == '{'); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::HeaderSizeInBytes + 1) == 'n'); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::HeaderSizeInBytes + 13) == 't'); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::HeaderSizeInBytes + 17) == 'F'); } } TEST_CASE("Client. File is sent with appropriate file name if partial file path is provided") { auto udpClientSpy = std::make_shared<UdpClientSpy>(); Client edClient( udpClientSpy, std::make_shared<Timer>(0), 1, nullptr, createPacketGenerator(DiodeVariant::type::Basic, std::nullopt, "example/testFilename")); std::stringstream ss("B"); edClient.send(ss); REQUIRE(udpClientSpy->buffersSent.size() == 2); REQUIRE(udpClientSpy->buffersSent.at(0).at(EDHeader::FrameCountIndex) == 1); REQUIRE_FALSE(udpClientSpy->buffersSent.at(0).at(EDHeader::EOFFlagIndex)); REQUIRE(udpClientSpy->buffersSent.at(0).at(EDHeader::HeaderSizeInBytes) == 'B'); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::FrameCountIndex) == 2); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::EOFFlagIndex)); SECTION("Filename is set") { REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::HeaderSizeInBytes) == '{'); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::HeaderSizeInBytes + 1) == 'n'); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::HeaderSizeInBytes + 13) == 't'); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::HeaderSizeInBytes + 17) == 'F'); } } TEST_CASE("Client. Stream data is sent using the ED client, where maxPayloadSize is larger than data") { auto udpClientSpy = std::make_shared<UdpClientSpy>(); Client edClient( udpClientSpy, std::make_shared<Timer>(0), 10, nullptr, createPacketGenerator(DiodeVariant::type::Basic, std::nullopt)); std::stringstream ss("BA"); edClient.send(ss); REQUIRE(udpClientSpy->buffersSent.size() == 2); REQUIRE(udpClientSpy->buffersSent.at(0).at(EDHeader::FrameCountIndex) == 1); REQUIRE_FALSE(udpClientSpy->buffersSent.at(0).at(EDHeader::EOFFlagIndex)); REQUIRE(udpClientSpy->buffersSent.at(0).at(EDHeader::HeaderSizeInBytes) == 'B'); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::FrameCountIndex) == 2); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::EOFFlagIndex)); } TEST_CASE("Client. Two packets are sent using ED client when packet length is 1 and data is length 2") { auto udpClientSpy = std::make_shared<UdpClientSpy>(); Client edClient( udpClientSpy, std::make_shared<Timer>(0), 1, nullptr, createPacketGenerator(DiodeVariant::type::Basic, std::nullopt)); std::stringstream ss("AB"); edClient.send(ss); REQUIRE(udpClientSpy->buffersSent.size() == 3); REQUIRE(udpClientSpy->buffersSent.at(0).at(EDHeader::FrameCountIndex) == 1); REQUIRE_FALSE(udpClientSpy->buffersSent.at(0).at(EDHeader::EOFFlagIndex)); REQUIRE(udpClientSpy->buffersSent.at(0).at(EDHeader::HeaderSizeInBytes) == 'A'); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::FrameCountIndex) == 2); REQUIRE_FALSE(udpClientSpy->buffersSent.at(1).at(EDHeader::EOFFlagIndex)); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::HeaderSizeInBytes) == 'B'); REQUIRE(udpClientSpy->buffersSent.at(2).at(EDHeader::FrameCountIndex) == 3); REQUIRE(udpClientSpy->buffersSent.at(2).at(EDHeader::EOFFlagIndex)); } TEST_CASE("Client. Empty frame is sent when there is no source data") { auto udpClientSpy = std::make_shared<UdpClientSpy>(); Client edClient( udpClientSpy, std::make_shared<Timer>(0), 1, nullptr, createPacketGenerator(DiodeVariant::type::Basic, std::nullopt)); std::stringstream ss(""); edClient.send(ss); REQUIRE(udpClientSpy->buffersSent.at(0).at(EDHeader::FrameCountIndex) == 1); REQUIRE(udpClientSpy->buffersSent.at(0).at(EDHeader::EOFFlagIndex)); } TEST_CASE("Client. Throws exception if given a non-existent stream") { auto udpClientSpy = std::make_shared<UdpClientSpy>(); Client edClient( udpClientSpy, std::make_shared<Timer>(0), 1, nullptr, createPacketGenerator(DiodeVariant::type::Basic, std::nullopt)); std::fstream stream("doesNotExist"); REQUIRE_THROWS_AS(edClient.send(stream), std::runtime_error); } TEST_CASE("Client. For a payload split into two packets, each packet is sent on a timer tick") { auto udpClientSpy = std::make_shared<UdpClientSpy>(); auto timerfake = std::make_shared<ManualTimer>(); Client edClient(udpClientSpy, timerfake, 1, nullptr, createPacketGenerator(DiodeVariant::type::Basic, std::nullopt)); std::stringstream payload("AB"); edClient.send(payload); REQUIRE(udpClientSpy->buffersSent.size() == 1); REQUIRE(udpClientSpy->buffersSent.at(0).at(EDHeader::FrameCountIndex) == 1); REQUIRE_FALSE(udpClientSpy->buffersSent.at(0).at(EDHeader::EOFFlagIndex)); REQUIRE(udpClientSpy->buffersSent.at(0).at(EDHeader::HeaderSizeInBytes) == 'A'); timerfake->tick(); REQUIRE(udpClientSpy->buffersSent.size() == 2); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::FrameCountIndex) == 2); REQUIRE_FALSE(udpClientSpy->buffersSent.at(1).at(EDHeader::EOFFlagIndex)); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::HeaderSizeInBytes) == 'B'); timerfake->tick(); REQUIRE(udpClientSpy->buffersSent.size() == 3); REQUIRE(udpClientSpy->buffersSent.at(2).at(EDHeader::FrameCountIndex) == 3); REQUIRE(udpClientSpy->buffersSent.at(2).at(EDHeader::EOFFlagIndex)); } TEST_CASE("Client. The same packet is sent multiple times when a value is specified in the client's constructor") { auto udpClientSpy = std::make_shared<UdpClientSpy>(); auto timerfake = std::make_shared<ManualTimer>(); SECTION("Payload size of one and maxPayloadSize of 1") { Client edClient(udpClientSpy, timerfake, 1, nullptr, createPacketGenerator(DiodeVariant::type::Basic, 2)); std::stringstream payload("A"); edClient.send(payload); for (size_t i : {0u, 1u}) { REQUIRE(udpClientSpy->buffersSent.size() == i + 1); REQUIRE(udpClientSpy->buffersSent.at(i).at(EDHeader::FrameCountIndex) == i + 1); REQUIRE_FALSE(udpClientSpy->buffersSent.at(i).at(EDHeader::EOFFlagIndex)); REQUIRE(udpClientSpy->buffersSent.at(i).at(EDHeader::HeaderSizeInBytes) == 'A'); timerfake->tick(); } REQUIRE(udpClientSpy->buffersSent.size() == 3); REQUIRE(udpClientSpy->buffersSent.at(2).at(EDHeader::FrameCountIndex) == 3); REQUIRE(udpClientSpy->buffersSent.at(2).at(EDHeader::EOFFlagIndex)); } SECTION("Payload size greater than one") { Client edClient(udpClientSpy, timerfake, 3, nullptr, createPacketGenerator(DiodeVariant::type::Basic, 2)); std::stringstream payload("ABC"); edClient.send(payload); for (size_t i : {0u, 1u}) { REQUIRE(udpClientSpy->buffersSent.size() == i + 1); REQUIRE(udpClientSpy->buffersSent.at(i).at(EDHeader::FrameCountIndex) == i + 1); REQUIRE_FALSE(udpClientSpy->buffersSent.at(i).at(EDHeader::EOFFlagIndex)); auto bufferString = std::string( std::next(udpClientSpy->buffersSent.at(i).cbegin(), EDHeader::HeaderSizeInBytes), std::next(udpClientSpy->buffersSent.at(i).cbegin(), EDHeader::HeaderSizeInBytes + 3)); REQUIRE(bufferString == "ABC"); timerfake->tick(); } REQUIRE(udpClientSpy->buffersSent.size() == 3); REQUIRE(udpClientSpy->buffersSent.at(2).at(EDHeader::FrameCountIndex) == 3); REQUIRE(udpClientSpy->buffersSent.at(2).at(EDHeader::EOFFlagIndex)); } SECTION("If the size data to be sent is less than maxPayloadSize, return size of data and " "don't pad payload with zeroes") { Client edClient(udpClientSpy, timerfake, 10, nullptr, createPacketGenerator(DiodeVariant::type::Basic, 2)); std::stringstream payload("ABC"); edClient.send(payload); for (size_t i : {0u, 1u}) { REQUIRE(udpClientSpy->buffersSent.size() == i + 1); REQUIRE(udpClientSpy->buffersSent.at(i).at(EDHeader::FrameCountIndex) == i + 1); REQUIRE_FALSE(udpClientSpy->buffersSent.at(i).at(EDHeader::EOFFlagIndex)); auto bufferString = std::string( std::next(udpClientSpy->buffersSent.at(i).cbegin(), EDHeader::HeaderSizeInBytes), std::next(udpClientSpy->buffersSent.at(i).cbegin(), EDHeader::HeaderSizeInBytes + 3)); REQUIRE(bufferString == "ABC"); REQUIRE(udpClientSpy->buffersSent.at(i).size() - EDHeader::HeaderSizeInBytes == 3); timerfake->tick(); } REQUIRE(udpClientSpy->buffersSent.size() == 3); REQUIRE(udpClientSpy->buffersSent.at(2).at(EDHeader::FrameCountIndex) == 3); REQUIRE(udpClientSpy->buffersSent.at(2).at(EDHeader::EOFFlagIndex)); } SECTION("If the size data to be sent is greater than maxPayloadSize, return only maxPayloadSize worth of data") { Client edClient(udpClientSpy, timerfake, 2, nullptr, createPacketGenerator(DiodeVariant::type::Basic, 2)); std::stringstream payload("ABC"); edClient.send(payload); for (size_t i : {0u, 1u}) { REQUIRE(udpClientSpy->buffersSent.size() == i + 1); REQUIRE(udpClientSpy->buffersSent.at(i).at(EDHeader::FrameCountIndex) == i + 1); REQUIRE_FALSE(udpClientSpy->buffersSent.at(i).at(EDHeader::EOFFlagIndex)); auto bufferString = std::string( std::next(udpClientSpy->buffersSent.at(i).cbegin(), EDHeader::HeaderSizeInBytes), std::next(udpClientSpy->buffersSent.at(i).cbegin(), EDHeader::HeaderSizeInBytes + 2)); REQUIRE(bufferString == "AB"); REQUIRE(udpClientSpy->buffersSent.at(i).size() - EDHeader::HeaderSizeInBytes == 2); timerfake->tick(); } REQUIRE(udpClientSpy->buffersSent.size() == 3); REQUIRE(udpClientSpy->buffersSent.at(2).at(EDHeader::FrameCountIndex) == 3); REQUIRE(udpClientSpy->buffersSent.at(2).at(EDHeader::EOFFlagIndex)); } } TEST_CASE("Client. For a payload split into two packets, each packet is sent after 1 second", "[integration]") { auto udpClientSpy = std::make_shared<UdpClientSpy>(); Client edClient( udpClientSpy, std::make_shared<Timer>(1000000), 1, nullptr, createPacketGenerator(DiodeVariant::type::Basic, std::nullopt)); std::stringstream payload("AB"); edClient.send(payload); BytesBuffer testBytes = BytesBuffer(EDHeader::HeaderSizeInBytes + 1); testBytes.at(EDHeader::HeaderSizeInBytes) = 'A'; testBytes.at(EDHeader::FrameCountIndex) = 1; BytesBuffer testBytesB = BytesBuffer(EDHeader::HeaderSizeInBytes + 1); testBytesB.at(EDHeader::HeaderSizeInBytes) = 'B'; testBytesB.at(EDHeader::FrameCountIndex) = 2; BytesBuffer testBytesEOF = BytesBuffer(EDHeader::HeaderSizeInBytes + 1); testBytesEOF.at(EDHeader::FrameCountIndex) = 3; testBytesEOF.at(EDHeader::EOFFlagIndex) = true; REQUIRE(udpClientSpy->buffersSent.at(0).at(EDHeader::HeaderSizeInBytes) == 'A'); REQUIRE(udpClientSpy->buffersSent.at(0).at(EDHeader::FrameCountIndex) == 1); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::HeaderSizeInBytes) == 'B'); REQUIRE(udpClientSpy->buffersSent.at(1).at(EDHeader::FrameCountIndex) == 2); REQUIRE(udpClientSpy->buffersSent.at(2).at(EDHeader::FrameCountIndex) == 3); REQUIRE(udpClientSpy->buffersSent.at(2).at(EDHeader::EOFFlagIndex)); REQUIRE(udpClientSpy->buffersSent.size() == 3); } TEST_CASE("Client. For a multi-packet payload, with 1500B packet size, packets are sent at 100 Mbps", "[integration]") { std::stringstream payload("ABABAB"); auto udpClientSpy = std::make_shared<UdpClientSpy>(); auto realTimer = std::make_shared<Timer>(calculateTimerPeriod(100, 1500)); Client edClient(udpClientSpy, realTimer, 1, nullptr, createPacketGenerator(DiodeVariant::type::Basic, std::nullopt)); edClient.send(payload); BytesBuffer testBytes = BytesBuffer(EDHeader::HeaderSizeInBytes + 1); testBytes.at(EDHeader::HeaderSizeInBytes) = 'A'; testBytes.at(EDHeader::FrameCountIndex) = 1; BytesBuffer testBytesB = BytesBuffer(EDHeader::HeaderSizeInBytes + 1); testBytesB.at(EDHeader::HeaderSizeInBytes) = 'B'; testBytesB.at(EDHeader::FrameCountIndex) = 6; BytesBuffer testBytesEOF = BytesBuffer(EDHeader::HeaderSizeInBytes + 1); testBytesEOF.at(EDHeader::FrameCountIndex) = 7; testBytesEOF.at(EDHeader::EOFFlagIndex) = true; REQUIRE(udpClientSpy->buffersSent.at(0).at(EDHeader::HeaderSizeInBytes) == 'A'); REQUIRE(udpClientSpy->buffersSent.at(0).at(EDHeader::FrameCountIndex) == 1); REQUIRE(udpClientSpy->buffersSent.at(5).at(EDHeader::HeaderSizeInBytes) == 'B'); REQUIRE(udpClientSpy->buffersSent.at(5).at(EDHeader::FrameCountIndex) == 6); REQUIRE(udpClientSpy->buffersSent.at(6).at(EDHeader::FrameCountIndex) == 7); REQUIRE(udpClientSpy->buffersSent.at(6).at(EDHeader::EOFFlagIndex)); REQUIRE(udpClientSpy->buffersSent.size() == 7); } TEST_CASE("Client. Packets are sent with a random session ID") { auto udpClientSpy = std::make_shared<UdpClientSpy>(); Client edClient( udpClientSpy, std::make_shared<Timer>(0), 1, nullptr, createPacketGenerator(DiodeVariant::type::Basic, std::nullopt)); std::stringstream ss("Hello"); edClient.send(ss); auto lastSessionID = *reinterpret_cast<std::uint32_t*>(&udpClientSpy->latestPacket.at(0)); std::stringstream nextInputStream("Diode"); edClient.send(nextInputStream); REQUIRE(lastSessionID != *reinterpret_cast<std::uint32_t*>(&udpClientSpy->latestPacket.at(0))); } TEST_CASE("Client. When the buffer level is too high, then the client data rate is decreased") { class IngressBufferLevelReporterStub : public IngressBufferLevelInterface { public: [[nodiscard]] std::uint32_t getLevel() const override { return 100; } }; class ManualTimerAndIntervalSpy: public ManualTimer { public: ManualTimerAndIntervalSpy() : capturedInterval{std::chrono::microseconds{10000}} {} [[nodiscard]] std::chrono::microseconds getTickInterval() const override { return capturedInterval.load(); } void setTickInterval(const std::chrono::microseconds& newInterval) override { capturedInterval = newInterval; } std::atomic<std::chrono::microseconds> capturedInterval; }; auto udpClientSpy = std::make_shared<UdpClientSpy>(); auto bufferLevelReporter = std::make_unique<IngressBufferLevelReporterStub>(); auto dataSendTimer = std::make_shared<ManualTimerAndIntervalSpy>(); auto bufferQueryTimer = MakeTestableUniquePtr<ManualTimer>(); const auto initialTickInterval = 1000ms; dataSendTimer->setTickInterval(initialTickInterval); auto client = Client { udpClientSpy, dataSendTimer, 1, std::make_unique<DataSendPeriodController>(10000us, 80.0, bufferQueryTimer.move(), std::move(bufferLevelReporter)), createPacketGenerator(DiodeVariant::type::Basic, std::nullopt)}; std::stringstream payload("AB"); client.send(payload); dataSendTimer->tick(); bufferQueryTimer->tick(); REQUIRE(dataSendTimer->getTickInterval().count() > initialTickInterval.count()); } TEST_CASE("Client. When the buffer level and data rate are below max, then the client data rate is increased") { class IngressBufferLevelReporterStub : public IngressBufferLevelInterface { public: [[nodiscard]] std::uint32_t getLevel() const override { return 70; } }; class ManualTimerAndIntervalSpy: public ManualTimer { public: ManualTimerAndIntervalSpy() : capturedInterval{std::chrono::microseconds{10000}} {} [[nodiscard]] std::chrono::microseconds getTickInterval() const override { return capturedInterval.load(); } void setTickInterval(const std::chrono::microseconds& newInterval) override { capturedInterval = newInterval; } std::atomic<std::chrono::microseconds> capturedInterval; }; auto udpClientSpy = std::make_shared<UdpClientSpy>(); auto bufferLevelReporter = std::make_unique<IngressBufferLevelReporterStub>(); auto timer = std::make_shared<ManualTimerAndIntervalSpy>(); auto bufferQueryTimer = MakeTestableUniquePtr<ManualTimer>(); const auto initialTickInterval = 20000us; auto client = Client { udpClientSpy, timer, 1, std::make_unique<DataSendPeriodController>(10000us, 80.0, bufferQueryTimer.move(), std::move(bufferLevelReporter)), createPacketGenerator(DiodeVariant::type::Basic, std::nullopt)}; timer->setTickInterval(initialTickInterval); std::stringstream payload("AB"); client.send(payload); timer->tick(); bufferQueryTimer->tick(); REQUIRE(timer->getTickInterval().count() < initialTickInterval.count()); }
40.561966
119
0.724069
oakdoor
f08e91e7cdace12b90ee16361d8e87c14dbe37a2
1,890
cpp
C++
puzzles/2020/day03/main.cpp
apathyboy/aoc2020cpp
0e02feca98a11ef530953c1d314f605edbbdea9c
[ "MIT" ]
null
null
null
puzzles/2020/day03/main.cpp
apathyboy/aoc2020cpp
0e02feca98a11ef530953c1d314f605edbbdea9c
[ "MIT" ]
null
null
null
puzzles/2020/day03/main.cpp
apathyboy/aoc2020cpp
0e02feca98a11ef530953c1d314f605edbbdea9c
[ "MIT" ]
null
null
null
#include <fmt/core.h> #include <range/v3/all.hpp> #include <fstream> #include <string> namespace rs = ranges; namespace rv = ranges::views; auto slope_type1_hits(const std::vector<std::string>& input, int slope) { auto hit_test = [slope](auto&& p) { auto&& [depth, line] = p; return (line[(depth * slope) % line.length()] == '#') ? 1 : 0; }; return rs::accumulate(rv::enumerate(input) | rv::transform(hit_test), 0); } auto slope_type2_hits(const std::vector<std::string>& input) { auto hit_test = [](auto&& p) { auto&& [depth, line] = p; return (depth % 2 == 0 && line[(depth / 2) % line.length()] == '#') ? 1 : 0; }; return rs::accumulate(rv::enumerate(input) | rv::transform(hit_test), 0); } int part1(const std::vector<std::string>& input) { return slope_type1_hits(input, 3); } int part2(const std::vector<std::string>& input) { return slope_type1_hits(input, 1) * slope_type1_hits(input, 3) * slope_type1_hits(input, 5) * slope_type1_hits(input, 7) * slope_type2_hits(input); } #ifndef UNIT_TESTING int main() { fmt::print("Advent of Code 2020 - Day 03\n"); std::ifstream ifs{"puzzle.in"}; auto input = rs::getlines(ifs) | rs::to<std::vector>; fmt::print("Part 1 Solution: {}\n", part1(input)); fmt::print("Part 2 Solution: {}\n", part2(input)); return 0; } #else #define CATCH_CONFIG_MAIN #include <catch2/catch.hpp> #include <sstream> TEST_CASE("Can solve day 3 problems") { std::stringstream ss; ss << R"(..##....... #...#...#.. .#....#..#. ..#.#...#.# .#...##..#. ..#.##..... .#.#.#....# .#........# #.##...#... #...##....# .#..#...#.#)"; auto input = rs::getlines(ss) | rs::to<std::vector>; SECTION("Can solve part 1 example") { REQUIRE(7 == part1(input)); } SECTION("Can solve part 2 example") { REQUIRE(336 == part2(input)); } } #endif
21.477273
95
0.575132
apathyboy
f091b649d9f9a2c42e5dee8b491dd451c5a55b4e
1,470
hpp
C++
include/HighPerMeshes/dsl/buffers/LocalBuffer.hpp
HighPerMeshes/highpermeshes-dsl
3019cadcc7c2504f3bf55be1d69da2ee66159c07
[ "MIT" ]
3
2020-04-24T11:10:34.000Z
2021-07-07T09:41:08.000Z
include/HighPerMeshes/dsl/buffers/LocalBuffer.hpp
HighPerMeshes/highpermeshes-dsl
3019cadcc7c2504f3bf55be1d69da2ee66159c07
[ "MIT" ]
1
2020-03-09T18:28:24.000Z
2020-03-09T18:28:24.000Z
include/HighPerMeshes/dsl/buffers/LocalBuffer.hpp
HighPerMeshes/highpermeshes-dsl
3019cadcc7c2504f3bf55be1d69da2ee66159c07
[ "MIT" ]
1
2020-04-22T12:49:46.000Z
2020-04-22T12:49:46.000Z
// Copyright (c) 2017-2020 // // Distributed under the MIT Software License // (See accompanying file LICENSE) #ifndef DSL_BUFFERS_LOCALBUFFER_HPP #define DSL_BUFFERS_LOCALBUFFER_HPP #include <cassert> #include <cstdint> #include <type_traits> #include <vector> #include <HighPerMeshes/dsl/data_access/AccessMode.hpp> namespace HPM::internal { // A type that signals an invalid local buffer entry: see 'GetLocalBuffer() in LocalView.hpp'. class InvalidLocalBuffer { }; template <typename GlobalBufferT, AccessMode Mode> class LocalBuffer { protected: using BlockT = typename GlobalBufferT::ValueT; using QualifiedBlockT = std::conditional_t<Mode == AccessMode::Read, const BlockT, BlockT>; GlobalBufferT* global_buffer; const std::size_t global_offset; public: LocalBuffer(GlobalBufferT* global_buffer, std::integral_constant<AccessMode, Mode>, size_t global_offset) : global_buffer(global_buffer), global_offset(global_offset) {} inline auto operator[](const int index) -> QualifiedBlockT& { assert(global_buffer != nullptr); return (*global_buffer)[global_offset + index]; } inline auto operator[](const int index) const -> const QualifiedBlockT& { assert(global_buffer != nullptr); return (*global_buffer)[global_offset + index]; } }; } // namespace HPM::internal #endif
27.735849
177
0.679592
HighPerMeshes
f09a77ed465b33ff038f3f716365b8d3ffc690c0
2,319
hpp
C++
src/runtime/c4g_glsl.hpp
slightech/c4gpu
82dda2014fd2ae5c745ebdc6a797bb5f87793816
[ "MIT" ]
7
2019-04-26T20:25:53.000Z
2022-02-08T06:48:35.000Z
src/runtime/c4g_glsl.hpp
c4gpu/c4gpu_runtime
82dda2014fd2ae5c745ebdc6a797bb5f87793816
[ "MIT" ]
null
null
null
src/runtime/c4g_glsl.hpp
c4gpu/c4gpu_runtime
82dda2014fd2ae5c745ebdc6a797bb5f87793816
[ "MIT" ]
3
2021-12-22T02:02:42.000Z
2022-02-08T06:48:38.000Z
/* ** C4GPU. ** ** For the latest info, see https://github.com/c4gpu/c4gpu_runtime/ ** ** Copyright (C) 2017 Wang Renxin. All rights reserved. */ #ifndef __C4G_GLSL_H__ #define __C4G_GLSL_H__ #include "c4g_runtime.h" #ifdef C4G_RUNTIME_OS_WIN # include <GL/glew.h> # include <GL/glut.h> #elif defined C4G_RUNTIME_OS_APPLE # if defined C4G_RUNTIME_OS_IOS || defined C4G_RUNTIME_OS_IOS_SIM # include <OpenGLES/ES3/gl.h> # else # include <OpenGL/gl3.h> # endif #elif defined C4G_RUNTIME_OS_LINUX # include <GL/glew.h> # include <GL/glut.h> # include <GL/gl.h> # include <GL/glu.h> # include <GL/glext.h> #endif /* C4G_RUNTIME_OS_WIN */ #include <functional> #include <vector> #ifndef GL_INVALID_INDEX # define GL_INVALID_INDEX -1 #endif /* GL_INVALID_INDEX */ namespace c4g { namespace gl { typedef std::vector<GLuint> GLuintArray; typedef std::function<void (struct C4GRT_Runtime*, C4GRT_PassId, const char* const)> ErrorHandler; typedef std::function<bool (const char* const)> SimpleErrorHandler; enum ShaderTypes { ST_NONE, ST_VERT, ST_FRAG }; class C4G_RUNTIME_IMPL Shader final { public: Shader(); Shader(ShaderTypes type); ~Shader(); bool readFile(const char* const file); bool readString(const char* const str); bool compile(const SimpleErrorHandler &&callback); GLuint object(void); private: ShaderTypes _type = ST_NONE; GLchar* _code = nullptr; GLuint _object = 0; }; class C4G_RUNTIME_IMPL Program final { public: Program(); ~Program(); bool link(Shader &&vert, Shader &&frag); bool link(Shader &&vert, Shader &&frag, const char* const varyings[], size_t vs); bool use(void); GLint attributeLocation(const char* const name); GLint uniformLocation(const char* const name); void uniform(int loc, float f0); void uniform(int loc, float f0, float f1); void uniform(int loc, float f0, float f1, float f2); void uniform(int loc, float f0, float f1, float f2, float f3); void uniform(int loc, int i0); void uniform(int loc, int i0, int i1); void uniform(int loc, int i0, int i1, int i2); void uniform(int loc, int i0, int i1, int i2, int i3); GLuint object(void); private: Shader _vert; Shader _frag; GLuint _prog = 0; }; } } #endif /* __C4G_GLSL_H__ */
21.672897
99
0.688228
slightech
f09e26bfae754f2005d371eb252ef42a8edd05ad
4,060
cc
C++
Analyses/src/SimParticlesWithHitsExample_module.cc
bonventre/Offline
77db9d6368f27ab9401c690c2c2a4257ade6c231
[ "Apache-2.0" ]
null
null
null
Analyses/src/SimParticlesWithHitsExample_module.cc
bonventre/Offline
77db9d6368f27ab9401c690c2c2a4257ade6c231
[ "Apache-2.0" ]
1
2019-11-22T14:45:51.000Z
2019-11-22T14:50:03.000Z
Analyses/src/SimParticlesWithHitsExample_module.cc
bonventre/Offline
77db9d6368f27ab9401c690c2c2a4257ade6c231
[ "Apache-2.0" ]
2
2019-10-14T17:46:58.000Z
2020-03-30T21:05:15.000Z
// // Plugin to show how to use the SimParticlesWithHits class. // // $Id: SimParticlesWithHitsExample_module.cc,v 1.6 2013/10/21 21:13:18 kutschke Exp $ // $Author: kutschke $ // $Date: 2013/10/21 21:13:18 $ // // Original author Rob Kutschke. // // C++ includes. #include <iostream> #include <string> // Framework includes. #include "art/Framework/Core/EDAnalyzer.h" #include "art/Framework/Core/ModuleMacros.h" #include "art/Framework/Principal/Event.h" #include "messagefacility/MessageLogger/MessageLogger.h" // Mu2e includes. #include "GeometryService/inc/GeomHandle.hh" #include "TrackerGeom/inc/Tracker.hh" #include "Mu2eUtilities/inc/SimParticlesWithHits.hh" using namespace std; namespace mu2e { class SimParticlesWithHitsExample : public art::EDAnalyzer { public: explicit SimParticlesWithHitsExample(fhicl::ParameterSet const& pset): art::EDAnalyzer(pset), _g4ModuleLabel(pset.get<std::string>("g4ModuleLabel")), _hitMakerModuleLabel(pset.get<std::string>("hitMakerModuleLabel")), _trackerStepPoints(pset.get<std::string>("trackerStepPoints")), _minEnergyDep(pset.get<double>("minEnergyDep")), _minHits(pset.get<unsigned>("minHits")){ } virtual ~SimParticlesWithHitsExample() { } void analyze( art::Event const& e ); private: // Label of the modules that created the data products. std::string _g4ModuleLabel; std::string _hitMakerModuleLabel; // Name of the tracker StepPoint collection std::string _trackerStepPoints; // Cuts used inside SimParticleWithHits: // - drop hits with too little energy deposited. // - drop SimParticles with too few hits. double _minEnergyDep; size_t _minHits; }; void SimParticlesWithHitsExample::analyze(art::Event const& evt ) { const Tracker& tracker = *GeomHandle<Tracker>(); // Construct an object that ties together all of the simulated particle and hit info. SimParticlesWithHits sims( evt, _g4ModuleLabel, _hitMakerModuleLabel, _trackerStepPoints, _minEnergyDep, _minHits ); typedef SimParticlesWithHits::map_type map_type; // int n(0); for ( map_type::const_iterator i=sims.begin(); i != sims.end(); ++i ){ // All information about this SimParticle SimParticleInfo const& simInfo = i->second; // Information about StrawHits that belong on this SimParticle. vector<StrawHitMCInfo> const& infos = simInfo.strawHitInfos(); cout << "SimParticle: " << " Event: " << evt.id().event() << " Track: " << i->first << " PdgId: " << simInfo.simParticle().pdgId() << " |p|: " << simInfo.simParticle().startMomentum().vect().mag() << " Hits: " << infos.size() << endl; // Loop over all StrawsHits to which this SimParticle contributed. for ( size_t j=0; j<infos.size(); ++j){ StrawHitMCInfo const& info = infos.at(j); StrawHit const& hit = info.hit(); Straw const& straw = tracker.getStraw(hit.strawId()); cout << " Straw Hit: " << info.index() << " " << hit.strawId().asUint16() << " " << hit.time() << " " << info.isShared() << " " << straw.getMidPoint().z() << " " << info.time() << " | StepPointMCs: "; // Loop over all StepPointMC's that contribute to this StrawHit. std::vector<StepPointMC const *> const& steps = info.steps(); for ( size_t k=0; k<steps.size(); ++k){ StepPointMC const& step = *(steps[k]); cout << " (" << step.time() << "," << step.momentum().mag() << "," << step.trackId() << ")"; } cout << endl; } } } // end of ::analyze. } using mu2e::SimParticlesWithHitsExample; DEFINE_ART_MODULE(SimParticlesWithHitsExample);
32.741935
103
0.598522
bonventre
f0a13569cb49e9429fd227682aece1f8a0ae1f26
1,223
cpp
C++
src/Model/CFrameModel.cpp
Sebajuste/Omeglond3D
28a3910b47490ec837a29e40e132369f957aedc7
[ "MIT" ]
1
2019-06-14T08:24:17.000Z
2019-06-14T08:24:17.000Z
src/Model/CFrameModel.cpp
Sebajuste/Omeglond3D
28a3910b47490ec837a29e40e132369f957aedc7
[ "MIT" ]
null
null
null
src/Model/CFrameModel.cpp
Sebajuste/Omeglond3D
28a3910b47490ec837a29e40e132369f957aedc7
[ "MIT" ]
null
null
null
#include "CFrameModel.hpp" namespace OMGL3D { namespace MODEL { CFrameModel::CFrameModel(const std::string & name) : IFrameModel(name) { } CFrameModel::~CFrameModel() { } void CFrameModel::SetRootMesh(CORE::IMesh * mesh) { } void CFrameModel::AddFrameInfo(const FrameInfo & frame) { _frames.push_back(frame); } unsigned int CFrameModel::GetMaxFrames() const { return _frames.size(); } void CFrameModel::Animate(unsigned int frame, unsigned int next_frame, float fPercent) { } void CFrameModel::Draw(const CORE::AlphaTest & alpha) const { _rootMesh.GetPtr()->Draw(alpha); } void CFrameModel::Draw(const CORE::BlendingMode & blending) const { _rootMesh.GetPtr()->Draw(blending); } void CFrameModel::Draw(const CORE::AlphaTest & alpha, const CORE::BlendingMode & blending) const { _rootMesh.GetPtr()->Draw(alpha, blending); } void CFrameModel::Draw()const { _rootMesh.GetPtr()->Draw(); } } }
22.648148
104
0.54211
Sebajuste
f0a654f13bad1f4110544661d84ced551a9a7581
3,165
cpp
C++
Scene.cpp
Excelsus4/Eat-emAll
5f701e764e9d7a27542ae9c88b20f26497090232
[ "MIT" ]
null
null
null
Scene.cpp
Excelsus4/Eat-emAll
5f701e764e9d7a27542ae9c88b20f26497090232
[ "MIT" ]
null
null
null
Scene.cpp
Excelsus4/Eat-emAll
5f701e764e9d7a27542ae9c88b20f26497090232
[ "MIT" ]
null
null
null
#pragma once #include "stdafx.h" #include "Device.h" #include "Vertex.h" #include "RectObject.h" #include "Random.h" Shader* shader; ID3D11Buffer* vertexBuffer; const int VNUM = 32; const int VSIZE = 6; Vertex vertices[VNUM*VSIZE]; RectObject player = RectObject(D3DXVECTOR3(50.0f, 50.0f, 0), 25.0f, D3DXVECTOR3(1, 1, 1), vertices); float speed = 0.25f; vector<RectObject*> foodVector; vector<RectObject*> foodPool; D3DXMATRIX W, V, P; void InitScene() { shader = new Shader(L"../_Shaders/005_WVP.fx"); random_device rd; Random::gen = new mt19937(rd()); player.SetVertex(); for (int idx = 1; idx < VNUM; idx++) { foodPool.push_back(new RectObject(&vertices[idx * VSIZE])); } //for (auto a : foodVector) { // a->SetVertex(); //} //Create Vertex Buffer { D3D11_BUFFER_DESC desc = { 0 }; desc.Usage = D3D11_USAGE_DEFAULT; desc.ByteWidth = sizeof(Vertex) * VNUM * VSIZE; desc.BindFlags = D3D11_BIND_VERTEX_BUFFER; D3D11_SUBRESOURCE_DATA data = { 0 }; data.pSysMem = vertices; HRESULT hr = Device->CreateBuffer(&desc, &data, &vertexBuffer); assert(SUCCEEDED(hr)); } } void DestroyScene() { for (auto p : foodPool) { delete p; } for (auto a : foodVector) { delete a; } vertexBuffer->Release(); delete Random::gen; delete shader; } void Update() { // WVP D3DXMatrixIdentity(&W); D3DXMatrixIdentity(&V); D3DXMatrixIdentity(&P); //View D3DXVECTOR3 eye(0, 0, -1); D3DXVECTOR3 at(0, 0, 0); D3DXVECTOR3 up(0, 1, 0); D3DXMatrixLookAtLH(&V, &eye, &at, &up); //Projection D3DXMatrixOrthoOffCenterLH(&P, 0, (float)Width, 0, (float)Height, -1, 1); shader->AsMatrix("World")->SetMatrix(W); shader->AsMatrix("View")->SetMatrix(V); shader->AsMatrix("Projection")->SetMatrix(P); // Character Movement if (Key->Press('A') == true) player.Translate(D3DXVECTOR3(-speed, 0, 0)); else if (Key->Press('D') == true) player.Translate(D3DXVECTOR3(+speed, 0, 0)); if (Key->Press('W') == true) player.Translate(D3DXVECTOR3(0, +speed, 0)); else if (Key->Press('S') == true) player.Translate(D3DXVECTOR3(0, -speed, 0)); //Check Collision auto it = foodVector.begin(); while (it != foodVector.end()) { if (player.CollisionCheck(**it)) { player.Consume(**it); (*it)->DisableVertex(); foodPool.push_back(*it); it = foodVector.erase(it); } else { ++it; } } for (auto a : foodVector) { } //always player.SetVertex(); DeviceContext->UpdateSubresource( vertexBuffer, 0, NULL, vertices, sizeof(Vertex) * VNUM * VSIZE, 0); } void Render() { D3DXCOLOR bgColor = D3DXCOLOR(0.1f, 0.1f, 0.1f, 1); DeviceContext->ClearRenderTargetView(RTV, (float*)bgColor); { //ImGUI if (ImGui::Button("Create")) { if (foodPool.size() > 0) { auto t = foodPool.begin(); foodVector.push_back(*t); (*t)->Randomize(); foodPool.erase(t); } } UINT stride = sizeof(Vertex); UINT offset = 0; DeviceContext->IASetVertexBuffers(0, 1, &vertexBuffer, &stride, &offset); DeviceContext->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST); //DeviceContext->Draw(VNUM * VSIZE, 0); shader->Draw(0, 0, VNUM*VSIZE); } ImGui::Render(); SwapChain->Present(0, 0); }
22.132867
100
0.660979
Excelsus4
f0ad1feed8b5215c4a58b3ee5082286b10100e98
14,149
cpp
C++
WRK-V1.2/clr/src/vm/securitytransparentassembly.cpp
intj-t/openvmsft
0d17fbce8607ab2b880be976c2e86d8cfc3e83bb
[ "Intel" ]
null
null
null
WRK-V1.2/clr/src/vm/securitytransparentassembly.cpp
intj-t/openvmsft
0d17fbce8607ab2b880be976c2e86d8cfc3e83bb
[ "Intel" ]
null
null
null
WRK-V1.2/clr/src/vm/securitytransparentassembly.cpp
intj-t/openvmsft
0d17fbce8607ab2b880be976c2e86d8cfc3e83bb
[ "Intel" ]
null
null
null
// ==++== // // // Copyright (c) 2006 Microsoft Corporation. All rights reserved. // // The use and distribution terms for this software are contained in the file // named license.txt, which can be found in the root of this distribution. // By using this software in any fashion, you are agreeing to be bound by the // terms of this license. // // You must not remove this notice, or any other, from this software. // // // ==--== //-------------------------------------------------------------------------- // securityTransparentAssembly.cpp // // Implementation for transparent code feature // //-------------------------------------------------------------------------- #include "common.h" #include "field.h" #include "securitydeclarative.h" #include "security.h" #include "securitydescriptor.h" #include "comreflectioncommon.h" #include "customattribute.h" #include "securitytransparentassembly.h" #include "securitymeta.h" // Check for Disable Transparency Enforcement BOOL IsTransparencyDisabled() { return (g_pConfig->TransparencyDisabled()); } BOOL SecurityTransparent::CheckNonPublicCriticalAccess(MethodDesc* pCurrentMD, MethodDesc* pOptionalTargetMethod, FieldDesc* pOptionalTargetField, MethodTable * pOptionalTargetType) { // Atmost one of these should be non-NULL _ASSERTE(1 >= ((pOptionalTargetMethod ? 1 : 0) + (pOptionalTargetField ? 1 : 0) + (pOptionalTargetType ? 1 : 0))); BOOL fIsCallerTransparent = FALSE; if (pCurrentMD != NULL) { fIsCallerTransparent = IsMethodTransparent(pCurrentMD); } // if caller is critical, so we are fine, no more checks needed if (!fIsCallerTransparent) return TRUE; // okay caller is transparent, additional checks needed BOOL fIsTargetCritical = FALSE; // check if target is critical BOOL fIsTargetSafe = FALSE; // check if target is marked safe if (pOptionalTargetMethod != NULL) { MethodSecurityDescriptor methSecurityDescriptor(pOptionalTargetMethod); fIsTargetCritical = methSecurityDescriptor.IsCritical(); fIsTargetSafe = methSecurityDescriptor.IsTreatAsSafe(); } else if (pOptionalTargetField != NULL) { FieldSecurityDescriptor fieldSecurityDescriptor(pOptionalTargetField); fIsTargetCritical = fieldSecurityDescriptor.IsCritical(); fIsTargetSafe = fieldSecurityDescriptor.IsTreatAsSafe(); } else if (pOptionalTargetType != NULL) { TypeSecurityDescriptor typeSecurityDescriptor(pOptionalTargetType->GetClass()); fIsTargetCritical = typeSecurityDescriptor.IsAllCritical(); // check for only all critical classes fIsTargetSafe = typeSecurityDescriptor.IsTreatAsSafe(); } // if target is not critical, we are fine, no more checks needed // if the target is critical and is marked as TreatAsSafe, we are fine, no more checks needed. if (!fIsTargetCritical || fIsTargetSafe) return TRUE; // otherwise we disallow access, no access to non public critical targets (that don't have TreatAsSafe attribute) from transparent callers return FALSE; } CorInfoCanSkipVerificationResult SecurityTransparent::JITCanSkipVerification(MethodDesc * pMD, BOOL fQuickCheckOnly) { BOOL hasSkipVerificationPermisson = false; if (fQuickCheckOnly) hasSkipVerificationPermisson = Security::CanSkipVerification(pMD->GetAssembly()->GetDomainAssembly(), FALSE); // fCommit == FALSE else hasSkipVerificationPermisson = Security::CanSkipVerification(pMD->GetAssembly()->GetDomainAssembly(), TRUE); CorInfoCanSkipVerificationResult canSkipVerif = hasSkipVerificationPermisson ? CORINFO_VERIFICATION_CAN_SKIP : CORINFO_VERIFICATION_CANNOT_SKIP; // also check to see if the method is marked transparent if (hasSkipVerificationPermisson) { // also check to see if the method is marked transparent if (SecurityTransparent::IsMethodTransparent(pMD)) { canSkipVerif = CORINFO_VERIFICATION_RUNTIME_CHECK; } } return canSkipVerif; } CorInfoCanSkipVerificationResult SecurityTransparent::JITCanSkipVerification(DomainAssembly * pAssembly, BOOL fQuickCheckOnly) { BOOL hasSkipVerificationPermisson = false; if (fQuickCheckOnly) { hasSkipVerificationPermisson = Security::CanSkipVerification(pAssembly, FALSE); // fCommit } else hasSkipVerificationPermisson = Security::CanSkipVerification(pAssembly); CorInfoCanSkipVerificationResult canSkipVerif = hasSkipVerificationPermisson ? CORINFO_VERIFICATION_CAN_SKIP : CORINFO_VERIFICATION_CANNOT_SKIP; if (hasSkipVerificationPermisson) { // also check to see if the assembly is marked transparent /*if (SecurityTransparent::IsAssemblyTransparent(pAssembly->GetAssembly())) { canSkipVerif = CORINFO_VERIFICATION_RUNTIME_CHECK; }*/ } return canSkipVerif; } CorInfoIsCallAllowedResult SecurityTransparent::RequiresTransparentAssemblyChecks(MethodDesc* pCallerMD, MethodDesc* pCalleeMD) { return RequiresTransparentCodeChecks(pCallerMD, pCalleeMD); } CorInfoIsCallAllowedResult SecurityTransparent::RequiresTransparentCodeChecks(MethodDesc* pCallerMD, MethodDesc* pCalleeMD) { CONTRACTL { THROWS; GC_TRIGGERS; PRECONDITION(CheckPointer(pCallerMD)); PRECONDITION(CheckPointer(pCalleeMD)); } CONTRACTL_END; // check if the caller assembly is transparent if (IsMethodTransparent(pCallerMD)) { if( pCalleeMD->RequiresLinktimeCheck() ) { return CORINFO_CALL_RUNTIME_CHECK; } else { return CORINFO_CALL_ALLOWED; } } return CORINFO_CALL_ALLOWED; } // Perform appropriate Transparency checks if the caller to the Load(byte[] ) without passing in an input Evidence is Transparent VOID SecurityTransparent::PerformTransparencyChecksForLoadByteArray(MethodDesc* pCallerMD, AssemblySecurityDescriptor* pLoadedSecDesc) { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM();); } CONTRACTL_END GCX_COOP(); // check to see if the method that does the Load(byte[] ) is transparent if (IsMethodTransparent(pCallerMD)) { Assembly* pLoadedAssembly = pLoadedSecDesc->GetAssembly(); // check to see if the byte[] being loaded is critical, i.e. not Transparent if (!ModuleSecurityDescriptor::IsMarkedTransparent(pLoadedAssembly)) { // if transparent code loads a byte[] that is critical, need to inject appropriate demands if (Security::IsFullyTrusted(pLoadedSecDesc)) // if the loaded code is full-trust { // do a full-demand for Full-Trust OBJECTREF permSet = NULL; GCPROTECT_BEGIN(permSet); Security::GetPermissionInstance(&permSet, SECURITY_FULL_TRUST); Security::DemandSet(SSWT_LATEBOUND_LINKDEMAND, permSet); GCPROTECT_END();// do a full-demand for Full-Trust } else { // otherwise inject a Demand for permissions being granted? struct _localGC { OBJECTREF granted; OBJECTREF denied; } localGC; ZeroMemory(&localGC, sizeof(localGC)); GCPROTECT_BEGIN(localGC); { localGC.granted = Security::GetGrantedPermissionSet(pLoadedSecDesc, &(localGC.denied)); Security::DemandSet(SSWT_LATEBOUND_LINKDEMAND, localGC.granted); } GCPROTECT_END(); } } } } static void ConvertLinkDemandToFullDemand(MethodDesc* pCallerMD, MethodDesc* pCalleeMD) { CONTRACTL { THROWS; GC_TRIGGERS; MODE_COOPERATIVE; } CONTRACTL_END; BOOL isEveryoneFullyTrusted = FALSE; BOOL isSecurityOn = Security::IsSecurityOn(); if (!isSecurityOn) { return; } isEveryoneFullyTrusted = Security::AllDomainsOnStackFullyTrusted(); if (isEveryoneFullyTrusted) { return; } if (!pCalleeMD->RequiresLinktimeCheck()) { return; } struct _gc { OBJECTREF refClassNonCasDemands; OBJECTREF refClassCasDemands; OBJECTREF refMethodNonCasDemands; OBJECTREF refMethodCasDemands; OBJECTREF refThrowable; } gc; ZeroMemory(&gc, sizeof(gc)); GCPROTECT_BEGIN(gc); BOOL fCallerIsAPTCA = pCallerMD->GetClass()->GetAssembly()->AllowUntrustedCaller(); // Fetch link demand sets from all the places in metadata where we might // find them (class and method). These might be split into CAS and non-CAS // sets as well. Security::RetrieveLinktimeDemands(pCalleeMD, &gc.refClassCasDemands, &gc.refClassNonCasDemands, &gc.refMethodCasDemands, &gc.refMethodNonCasDemands); // The following logic turns link demands on the target method into full // stack walks in order to close security holes in poorly written // reflection users. _ASSERTE(pCalleeMD); if (fCallerIsAPTCA && Security::IsUntrustedCallerCheckNeeded(pCalleeMD, pCallerMD->GetAssembly()) ) { // if caller is APTCA convert Non-APTCA full-trust LinkDemands to Full-Demands OBJECTREF permSet = NULL; GCPROTECT_BEGIN(permSet); Security::GetPermissionInstance(&permSet, SECURITY_FULL_TRUST); Security::DemandSet(SSWT_LATEBOUND_LINKDEMAND, permSet); GCPROTECT_END(); } // CAS Link Demands if (gc.refClassCasDemands != NULL) Security::DemandSet(SSWT_LATEBOUND_LINKDEMAND, gc.refClassCasDemands); if (gc.refMethodCasDemands != NULL) Security::DemandSet(SSWT_LATEBOUND_LINKDEMAND, gc.refMethodCasDemands); // Non-CAS demands are not applied against a grant // set, they're standalone. if (gc.refClassNonCasDemands != NULL) Security::CheckNonCasDemand(&gc.refClassNonCasDemands); if (gc.refMethodNonCasDemands != NULL) Security::CheckNonCasDemand(&gc.refMethodNonCasDemands); // We perform automatic linktime checks for UnmanagedCode in three cases: // o P/Invoke calls. // o Calls through an interface that have a suppress runtime check // attribute on them (these are almost certainly interop calls). // o Interop calls made through method impls. if (pCalleeMD->IsNDirect() || (pCalleeMD->IsInterface() && (pCalleeMD->GetMDImport()->GetCustomAttributeByName(pCalleeMD->GetMethodTable()->GetCl(), COR_SUPPRESS_UNMANAGED_CODE_CHECK_ATTRIBUTE_ANSI, NULL, NULL) == S_OK || pCalleeMD->GetMDImport()->GetCustomAttributeByName(pCalleeMD->GetMemberDef(), COR_SUPPRESS_UNMANAGED_CODE_CHECK_ATTRIBUTE_ANSI, NULL, NULL) == S_OK) ) || (pCalleeMD->IsComPlusCall() && !pCalleeMD->IsInterface()) ) { if (fCallerIsAPTCA) { // if the caller assembly is APTCA, then only inject this demand, for NON-APTCA we will allow supress unmanaged code // NOTE: the JIT would have already performed the LinkDemand for this anyways Security::SpecialDemand(SSWT_LATEBOUND_LINKDEMAND, SECURITY_UNMANAGED_CODE); } } GCPROTECT_END(); /* if (isSecurityOn && !fRet) { if (checkSkipVer) Security::SpecialDemand(SSWT_LATEBOUND_LINKDEMAND, SECURITY_SKIP_VER); } */ } VOID SecurityTransparent::EnforceTransparentAssemblyChecks(MethodDesc* pCallerMD, MethodDesc* pCalleeMD) { CONTRACTL { THROWS; GC_TRIGGERS; PRECONDITION(CheckPointer(pCallerMD)); PRECONDITION(CheckPointer(pCalleeMD)); INJECT_FAULT(COMPlusThrowOM();); } CONTRACTL_END; ConvertLinkDemandToFullDemand(pCallerMD, pCalleeMD); } BOOL SecurityTransparent::IsMethodTransparent(MethodDesc* pMD) { // if Transparency is disabled, then Ignore all Transparency aspects if (IsTransparencyDisabled()) return FALSE; MethodSecurityDescriptor methSecurityDescriptor(pMD); return !methSecurityDescriptor.IsCritical(); } BOOL SecurityTransparent::IsFieldTransparent(FieldDesc* pFD) { // if Transparency is disabled, then Ignore all Transparency aspects if (IsTransparencyDisabled()) return FALSE; FieldSecurityDescriptor fieldSecurityDescriptor(pFD); return !fieldSecurityDescriptor.IsCritical(); } BOOL SecurityTransparent::IsAssemblyTransparent(Assembly* pAssembly) { ModuleSecurityDescriptor* pModuleSecDesc = ModuleSecurityDescriptor::GetModuleSecurityDescriptor(pAssembly); return !pModuleSecDesc->IsCritical(); } BOOL SecurityTransparent::CheckAssemblyHasSecurityTransparentAttribute(Assembly* pAssembly) { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM();); } CONTRACTL_END BOOL fIsTransparent = FALSE; BOOL fIsCritical = FALSE; IMDInternalImport *mdImport = pAssembly->GetManifestImport(); GCX_COOP(); if (mdImport->GetCustomAttributeByName(pAssembly->GetManifestToken(), g_SecurityTransparentAttribute, NULL, NULL) == S_OK) { fIsTransparent = TRUE; if (mdImport->GetCustomAttributeByName(pAssembly->GetManifestToken(), g_SecurityCriticalAttribute, NULL, NULL) == S_OK) fIsCritical = TRUE; } // We cannot have both critical and transparent attributes on the assembly level. if (fIsTransparent && fIsCritical) COMPlusThrow(kInvalidOperationException, L"InvalidOperation_CriticalTransparentAreMutuallyExclusive"); return fIsTransparent; }
34.25908
148
0.670365
intj-t
f0ae554202b769de7508fba055dbfed89228d22d
979
cpp
C++
libminimsgbus/PubTable.cpp
jinyuttt/libminimsgbus
7e5265b3d48bebf7ced93ee27d73b7414b4b6f8b
[ "MIT" ]
null
null
null
libminimsgbus/PubTable.cpp
jinyuttt/libminimsgbus
7e5265b3d48bebf7ced93ee27d73b7414b4b6f8b
[ "MIT" ]
null
null
null
libminimsgbus/PubTable.cpp
jinyuttt/libminimsgbus
7e5265b3d48bebf7ced93ee27d73b7414b4b6f8b
[ "MIT" ]
null
null
null
#include "PubTable.h" namespace libminimsgbus { PubTable::PubTable() { } bool PubTable::add(string topic, string address) { auto v = topicPub.find(topic); if (v != topicPub.end()) { for (auto lst : v->second) { if (lst == address) { return false; } } v->second.push_back(address); } else { list<string> lst; lst.push_back(address); topicPub[topic] = lst; } return true; } list<string> PubTable::getAddress(string topic) { list<string> lst; auto v = topicPub.find(topic); if (v != topicPub.end()) { lst = v->second; } return lst; } map<string, list<string>> PubTable::getPairs() { map<string, list<string>> tmp(topicPub); return tmp; } }
18.12963
51
0.444331
jinyuttt
f0b16322c4cdb3ec8f95a8623130941f374af0aa
9,425
cpp
C++
ThreeDog/tdslider.cpp
602985142/TD-FrameWork
1870be856c01fd46d48c8f6db1ba10d97ad4127c
[ "MIT" ]
32
2017-03-02T11:12:21.000Z
2021-08-02T00:49:15.000Z
ThreeDog/tdslider.cpp
602985142/TD-FrameWork
1870be856c01fd46d48c8f6db1ba10d97ad4127c
[ "MIT" ]
1
2020-04-26T02:01:33.000Z
2020-04-26T09:14:13.000Z
ThreeDog/tdslider.cpp
602985142/TD-FrameWork
1870be856c01fd46d48c8f6db1ba10d97ad4127c
[ "MIT" ]
17
2017-03-09T06:10:32.000Z
2022-02-25T05:37:51.000Z
#if _MSC_BUILD #pragma execution_character_set("utf-8") #endif /************************************************************** * File Name : tdslider.cpp * Author : ThreeDog * Date : Tue Jan 03 15:59:31 2017 * Description : 自定义滑块窗体,参数传递底色,前景色和滑块颜色,采用绘图事件 * 在鼠标松开时触发操作,接口和QSlider尽量保持一致。 * **************************************************************/ #include "tdslider.h" #include <QDebug> TDSlider::TDSlider(TDWidget *parent,Qt::Orientation ot) :TDWidget(parent) { col_background = Qt::darkGray; col_front = Qt::lightGray; col_button = Qt::white; orientation = ot; minimum = 0; maximum = 100; slider_position = 0; slider_radius = 4; slider_width = 3; value = 0; ispress = false; } TDSlider::TDSlider(const QColor col_bak , const QColor col_fro , const QColor col_btn , TDWidget *parent , Qt::Orientation ot) :TDWidget(parent) { col_background = col_bak; col_front = col_fro; col_button = col_btn; orientation = ot; minimum = 0; maximum = 100; slider_position = 0; slider_radius = 4; slider_width = 3; value = 0; ispress = false; } //私有属性的外部接口 void TDSlider::setMinimum(const int min) { minimum = min; } void TDSlider::setMaximum(const int max) { maximum = max; } void TDSlider::setRange(const int min, const int max) { minimum = min; maximum = max; } void TDSlider::setOrientation(Qt::Orientation ot) { if(ot != orientation){ orientation = ot; //更换布局重绘 update(); } } void TDSlider::setSliderPosition(const int position) { //以像素为参数设置位置,注意如果是纵向,slider_position值得是从顶部到滑块的距离 if(Qt::Horizontal == orientation) slider_position = position; else if(Qt::Vertical == orientation){ slider_position = this->height()-position; } //重绘 update(); } void TDSlider::setValue(int v) { if(v < minimum) v = minimum; else if(v > maximum) v = maximum; this->value = v; //按照value的值在本窗体所占的比例改变位置 double val = value; double min = minimum; double max = maximum; //必须要用double,否则会整形除法会得出0 if(Qt::Horizontal == orientation){ double position = (val - min)/(max-min)*this->width(); slider_position = position; }else if(Qt::Vertical == orientation){ double position = (val - min)/(max-min)*this->height(); slider_position = this->height()-position; //垂直方向上用总高度减去position,得到距顶部的高度,才是需要的效果 } update(); } void TDSlider::setSliderWidth(const int width) { this->slider_width = width; update(); } void TDSlider::setSliderRadius(const int radius) { this->slider_radius = radius; update(); } void TDSlider::setBackgroundColor(const QColor &color) { this->col_background = color; } void TDSlider::setFrontColor(const QColor &color) { this->col_front = color; } void TDSlider::setButtonColor(const QColor &color) { this->col_button = color; } int TDSlider::getMinimum() const { return minimum; } int TDSlider::getMaximum() const { return maximum; } int TDSlider::getSliderPosition() const { if(Qt::Horizontal == orientation) return slider_position; else if(Qt::Vertical == orientation) return this->height() - slider_position; //注意如果是纵向的话,获取到的slider_position应该是从底部开始的 return -1; } int TDSlider::getValue() const { return this->value; } int TDSlider::getSliderWidth() const { return slider_width; } int TDSlider::getSliderRadius() const { return slider_radius; } TDSlider::~TDSlider() { } void TDSlider::paintEvent(QPaintEvent *) { //QRect四个参数 //left top width height!!!! QPainter p(this); //如果方向是水平方向 if(Qt::Horizontal == orientation){ //先更正滑块位置,如果位置小于半径,则设置为半径,如果位置大于宽度,设置为宽度-半径 if(slider_position < slider_radius/*/2+1*/) slider_position = slider_radius/*/2+2*/; if(slider_position > this->width()-slider_radius*5/4) slider_position = this->width()-slider_radius*5/4; QRect rect(0,slider_radius,this->width(),slider_width); //先绘制一个与窗体等长的背景色矩形 p.fillRect(rect,col_background); QRect rect2(0,slider_radius,slider_position,slider_width); //然后绘制一个从0到当前滑块位置的前景色矩形 p.fillRect(rect2,col_front); //圆心坐标 QPoint center(slider_position,slider_radius+slider_width/2); p.setBrush(col_button); p.setPen(col_button); //在的滑块的位置画一个半径为4的小圆,作为滑块 p.drawEllipse(center,slider_radius,slider_radius); }//如果方向是垂直方向 else if(Qt::Vertical == orientation){ //先更正滑块位置,如果位置大于高度,则设置为高度-5,如果位置小于3,设置为4 if(slider_position<slider_radius/*/2+1*/) slider_position = slider_radius/*/2+2*/; if(slider_position>this->height()-slider_radius*5/4) slider_position = this->height()-slider_radius*5/4; //注意此时的sliderposition位置是从上到下的距离 QRect rect(slider_radius,0,slider_width,this->height()); //注意竖着的矩形是从上往下画的,所以跟刚才反过来 //先用前景色画一个等高的矩形 p.fillRect(rect,col_front); QRect rect2(slider_radius,0,slider_width,slider_position); //再用背景色画一个从最高点到指定位置的矩形 p.fillRect(rect2,col_background); if(slider_position < slider_radius) slider_position = slider_radius; QPoint center(slider_radius+slider_width/2,slider_position); p.setBrush(col_button); p.setPen(col_button); //在滑块的位置画一个小圆作为滑块 p.drawEllipse(center,slider_radius,slider_radius); } } void TDSlider::mousePressEvent(QMouseEvent *e) { if(Qt::Horizontal == orientation){ //如果要是落在了范围之外,要把位置校准回来 if(e->x()>slider_radius && e->x()<this->width()-slider_radius*5/4) this->slider_position = e->pos().x(); else if(e->x() <= slider_radius) this->slider_position = slider_radius; else if(e->x() >= this->width()-slider_radius*5/4) this->slider_position = this->width()-slider_radius*5/4; update(); ispress = true; }else if(Qt::Vertical == orientation){ if(e->y() > slider_radius && e->y()<this->height()-slider_radius*5/4){ this->slider_position = e->pos().y(); }else if(e->y() < slider_radius){ this->slider_position = slider_radius; }else if(e->y() > this->height()-slider_radius*5/4){ this->slider_position = this->height()-slider_radius*5/4; } update(); ispress = true; } } void TDSlider::mouseReleaseEvent(QMouseEvent *e) { if(Qt::Horizontal == orientation){ if(e->x() > slider_radius && e->y()<this->width()-slider_radius*5/4) slider_position = e->pos().x(); //如果超出边界y就不再等于e.y() double x = e->pos().x(); if(e->x() < 0) x = 0; if(e->x() > this->width()) x = this->width(); double w = this->width(); //发送数值改变信号,通过相对位置计算得到数值大小 double value = x/w*(maximum-minimum)+minimum; emit valueChanged(value); emit positionChanged(x); }else if(Qt::Vertical == orientation){ if(e->y()>slider_radius && e->y()<this->height()-slider_radius*5/4) slider_position = e->pos().y(); //如果超出边界y就不再等于e.y() double y = e->y(); if(e->y()< 0) y = 0; else if(e->y()>this->height()) y = this->height(); double w = this->height(); //发送数值改变信号,通过相对位置计算得到数值大小 //而垂直方向的是从顶部到滑槽点的距离,所以value要减一下 double value = maximum - y/w*(maximum-minimum); //注意锁定范围 emit valueChanged(value); emit positionChanged(this->height()-y);//同样这里要用高度减一下 } update(); ispress = false; } void TDSlider::mouseMoveEvent(QMouseEvent *e) { if(Qt::Horizontal == orientation){ if(e->x()>slider_radius && e->x()<this->width()-slider_radius*5/4){ this->slider_position = e->pos().x(); }else if(e->x() <= slider_radius){ this->slider_position = slider_radius; }else if(e->x() >= this->width()-slider_radius*5/4){ this->slider_position = this->width()-slider_radius*5/4; } //以上校准滑块位置 //以下校准发送的数据 double x = e->pos().x(); if(x < 0) x = 0; if(x > this->width()) x = this->width(); double w = this->width(); double value = x/w*(maximum-minimum)+minimum; emit valueChanging(value); emit positionChanging(x); }else if(Qt::Vertical == orientation){ if(e->y()> slider_radius &&e->y()<this->height()-slider_radius*5/4){ this->slider_position = e->pos().y(); }else if(e->y() < slider_radius){ this->slider_position = slider_radius; }else if(e->y() > this->height()-slider_radius*5/4){ this->slider_position = this->height()-slider_radius*5/4; } //以上校准滑块位置 //以下校准发送的数据 double y = e->y(); if(e->y()< 0) y = 0; else if(e->y()>this->height()) y = this->height(); double w = this->height(); //发送数值改变信号,通过相对位置计算得到数值大小 //而垂直方向的是从顶部到滑槽点的距离,所以value要减一下 double value = maximum - y/w*(maximum-minimum); emit valueChanging(value); emit positionChanging(this->height() - y);//同样这里要用高度减一下 } update(); }
27.318841
78
0.588117
602985142
f0b2cef226b8716776d3bba24c7fd46eca6389cb
363
cpp
C++
Covid19QuizApp/studentgraderecord.cpp
AnkitKafle2020/HonorsProject
f02488e46ec06728c6edd4803781aeea87808867
[ "MIT" ]
null
null
null
Covid19QuizApp/studentgraderecord.cpp
AnkitKafle2020/HonorsProject
f02488e46ec06728c6edd4803781aeea87808867
[ "MIT" ]
null
null
null
Covid19QuizApp/studentgraderecord.cpp
AnkitKafle2020/HonorsProject
f02488e46ec06728c6edd4803781aeea87808867
[ "MIT" ]
null
null
null
#include "studentgraderecord.h" #include "ui_studentgraderecord.h" studentGradeRecord::studentGradeRecord(QWidget *parent) : QDialog(parent), ui(new Ui::studentGradeRecord) { ui->setupUi(this); } studentGradeRecord::~studentGradeRecord() { delete ui; } void studentGradeRecord::on_buttonBox_accepted() { this->close(); }
18.15
58
0.69146
AnkitKafle2020
f0c56e520757162ecc9caff4bfa7b063bbf65c3f
4,147
cpp
C++
book_samples/birds-eye/opencv-birdsEyeView.cpp
jwinarske/openvx_tutorial
3b57b1c043c5e28e03b6c7121bad87f4ce67ea8c
[ "MIT" ]
220
2016-03-20T00:48:58.000Z
2022-03-31T09:46:21.000Z
book_samples/birds-eye/opencv-birdsEyeView.cpp
jwinarske/openvx_tutorial
3b57b1c043c5e28e03b6c7121bad87f4ce67ea8c
[ "MIT" ]
28
2016-06-16T19:17:41.000Z
2021-09-16T16:19:18.000Z
book_samples/birds-eye/opencv-birdsEyeView.cpp
jwinarske/openvx_tutorial
3b57b1c043c5e28e03b6c7121bad87f4ce67ea8c
[ "MIT" ]
84
2016-03-24T01:13:07.000Z
2022-03-22T04:37:03.000Z
/* * Copyright (c) 2019 Victor Erukhimov * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and/or associated documentation files (the * "Materials"), to deal in the Materials without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Materials, and to * permit persons to whom the Materials are furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Materials. * * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ /*! * \file opencv-birdsEyeView.cpp * \example opencv-birdsEyeView * \brief This sample implements the bird's eye view algorithm from * the OpenVX sample birdsEyeView.c using OpenCV. * \author Victor Erukhimov <[email protected]> */ #include <math.h> #include <opencv2/opencv.hpp> using namespace cv; int main(int argc, char** argv) { if(argc != 3) { printf("opencv-birdsEyeView <input image> <output image>\n"); exit(0); } Mat input = imread(argv[1]); Mat temp; Mat K = (Mat_<float>(3,3) << 8.4026236186715255e+02, 0., 3.7724917600845038e+02, 0., 8.3752885759166338e+02, 4.6712164335800873e+02, 0., 0., 1.); K = K*4.0f; K.at<float>(2, 2) = 1.0f; std::cout << "K = " << K << std::endl; std::cout << "Kinv = " << K.inv() << std::endl; Point3f p0(482.0f*4, 332.0f*4, 1.0f); Point3f pu = Mat(K.inv()*Mat(p0)).at<Point3f>(0); float phi = acos(-1) + atan(1.0f/pu.y); std::cout << "p0 = (" << p0 << "), pu = (" << pu << "), phi = " << phi << std::endl; // calculate homography, rotation around x axis to make the camera look down Mat H1 = Mat::zeros(3, 3, CV_32F); H1.at<float>(0, 0) = 1.0f; H1.at<float>(1, 1) = cos(phi); H1.at<float>(1, 2) = sin(phi); H1.at<float>(2, 1) = -sin(phi); H1.at<float>(2, 2) = cos(phi); std::cout << "phi = " << phi << std::endl; std::cout << "H1 = " << H1 << std::endl; // now we need to adjust offset and scale to map input image to // visible coordinates in the output image. Mat H = K*H1*K.inv(); const Point3f p1(p0.x, p0.y*1.2, 1); const Point3f p2(p0.x, input.rows, 1); Point3f p1h = Mat(H*Mat(p1)).at<Point3f>(0, 0); p1h *= 1/p1h.z; Point3f p2h = Mat(H*Mat(p2)).at<Point3f>(0, 0); p2h *= 1/p2h.z; Mat scaleY = Mat::eye(3, 3, CV_32F); float scale = (p2h.y - p1h.y)/input.rows; scaleY.at<float>(0, 2) = input.cols*scale/2 - p0.x; scaleY.at<float>(1, 2) = -p1h.y; scaleY.at<float>(2, 2) = scale; std::cout << "scaleY = " << scaleY << std::endl << std::endl; std::cout << "H = " << H << std::endl << std::endl; std::cout << "K*H1 = " << K*H1 << std::endl << std::endl; H = scaleY*H; std::cout << "scaleY*H = " << H << std::endl << std::endl; Point3f corners[]= {Point3f(0, p0.y*1.15, 1), Point3f(input.cols, p0.y*1.15, 1), Point3f(input.cols, input.rows, 1), Point3f(0, input.rows, 1), p0, Point3f(p0.x, p0.y*1.1, 1)}; for(int i = 0; i < sizeof(corners)/sizeof(Point3f); i++) { Point3f ph1 = Mat(K.inv()*Mat(corners[i])).at<Point3f>(0, 0); Point3f ph2 = Mat(H*Mat(corners[i])).at<Point3f>(0, 0); std::cout << "point " << i << " maps to: " << std::endl << " uni: (" << ph1.x/ph1.z << " " << ph1.y/ph1.z << ")" << std::endl << " output: (" << ph2.x/ph2.z << " " << ph2.y/ph2.z << ")" << std::endl; } Mat output; warpPerspective(input, output, H, input.size(), INTER_LINEAR, BORDER_CONSTANT, Scalar(0, 0, 0)); imwrite(argv[2], output); return(0); }
35.444444
98
0.612732
jwinarske
f0d18f2ca2a4029e18003345fd3bd89a24db5f9f
1,610
cpp
C++
EZOJ/Contests/1533/A.cpp
sshockwave/Online-Judge-Solutions
9d0bc7fd68c3d1f661622929c1cb3752601881d3
[ "MIT" ]
6
2019-09-30T16:11:00.000Z
2021-11-01T11:42:33.000Z
EZOJ/Contests/1533/A.cpp
sshockwave/Online-Judge-Solutions
9d0bc7fd68c3d1f661622929c1cb3752601881d3
[ "MIT" ]
4
2017-11-21T08:17:42.000Z
2020-07-28T12:09:52.000Z
EZOJ/Contests/1533/A.cpp
sshockwave/Online-Judge-Solutions
9d0bc7fd68c3d1f661622929c1cb3752601881d3
[ "MIT" ]
4
2017-07-26T05:54:06.000Z
2020-09-30T13:35:38.000Z
#include <iostream> #include <cstdio> #include <cstring> #include <cassert> #include <cctype> #include <map> using namespace std; typedef long long lint; #define cout cerr #define ni (next_num<int>()) template<class T>inline T next_num(){ T i=0;char c; while(!isdigit(c=getchar())&&c!='-'); bool neg=c=='-'; neg?c=getchar():0; while(i=i*10-'0'+c,isdigit(c=getchar())); return neg?-i:i; } template<class T1,class T2>inline void apmax(T1 &a,const T2 &b){if(a<b)a=b;} template<class T1,class T2>inline void apmin(T1 &a,const T2 &b){if(b<a)a=b;} template<class T>inline void mset(T a[],int v,int n){memset(a,v,n*sizeof(T));} template<class T>inline void mcpy(T a[],T b[],int n){memcpy(a,b,n*sizeof(T));} const int N=100010,D=52,O=1e9+7; bool vis[D]; int basis; struct State{ int cnt[D]; inline friend bool operator < (const State &a,const State &b){ for(int i=0;i<D;i++){ if(!vis[i])continue; int ta=a.cnt[i]-a.cnt[basis]; int tb=b.cnt[i]-b.cnt[basis]; if(ta!=tb)return ta<tb; } return false; } }; char s[N]; int c[N]; int main(){ #ifndef ONLINE_JUDGE freopen("magic.in","r",stdin); freopen("magic.out","w",stdout); #endif const int n=ni; scanf("%s",s); mset(vis,0,D); for(int i=0;i<n;i++){ c[i]=s[i]>='A'&&s[i]<='Z'?(s[i]-'A'):(s[i]-'a'+D/2); vis[c[i]]=true; } basis=c[0]; typedef map<State,int>mp; mp m; State cur; mset(cur.cnt,0,D); ++m[cur]; for(int i=0;i<n;i++){ ++cur.cnt[c[i]]; ++m[cur]; } lint ans=0; for(mp::iterator it=m.begin(),ti=m.end();it!=ti;++it){ ans+=(lint)it->second*(it->second-1); } ans>>=1; ans%=O; printf("%lld\n",ans); return 0; }
22.676056
78
0.612422
sshockwave
f0d1b0143f4b0c30385f92e8e22f006dce6403c9
4,405
cpp
C++
src/net/host.cpp
suprafun/smalltowns
c722da7dd3a1d210d07f22a6c322117b540e63da
[ "BSD-3-Clause" ]
null
null
null
src/net/host.cpp
suprafun/smalltowns
c722da7dd3a1d210d07f22a6c322117b540e63da
[ "BSD-3-Clause" ]
null
null
null
src/net/host.cpp
suprafun/smalltowns
c722da7dd3a1d210d07f22a6c322117b540e63da
[ "BSD-3-Clause" ]
null
null
null
/********************************************* * * Author: David Athay * * License: New BSD License * * Copyright (c) 2009, CT Games * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * - Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * - Neither the name of CT Games nor the names of its contributors * may be used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * * * Date of file creation: 09-01-28 * * $Id$ * ********************************************/ #include "host.h" #include "packet.h" namespace ST { Host::Host(): mServer(NULL), mConnected(false) { // create a new client host for connecting to the server #ifdef ENET_VERSION mClient = enet_host_create(NULL, 1, 0, 57600 / 8, 14400 / 8); #else mClient = enet_host_create (NULL /* create a client host */, 1 /* only allow 1 outgoing connection */, 57600 / 8 /* 56K modem with 56 Kbps downstream bandwidth */, 14400 / 8 /* 56K modem with 14 Kbps upstream bandwidth */); #endif } Host::~Host() { enet_host_destroy(mClient); } void Host::connect(const std::string &hostname, unsigned int port) { // set the address of the server to connect to enet_address_set_host(&mAddress, hostname.c_str()); mAddress.port = port; // connect to the server #ifdef ENET_VERSION mServer = enet_host_connect(mClient, &mAddress, 0, 1); #else mServer = enet_host_connect (mClient, &mAddress, 1); #endif } void Host::process() { // check for data ENetEvent event; while (enet_host_service(mClient, &event, 0) > 0) { switch (event.type) { case ENET_EVENT_TYPE_CONNECT: { mConnected = true; } break; case ENET_EVENT_TYPE_RECEIVE: { Packet *packet = new Packet((char*)event.packet->data, event.packet->dataLength); mPackets.push_back(packet); enet_packet_destroy (event.packet); } break; case ENET_EVENT_TYPE_DISCONNECT: { mConnected = false; } break; } } } Packet* Host::getPacket() { if (mPackets.size() > 0) { Packet *p = mPackets.front(); mPackets.pop_front(); return p; } return NULL; } bool Host::isConnected() { return mConnected; } void Host::disconnect() { if (mServer) enet_peer_disconnect(mServer, 0); } void Host::sendPacket(Packet *packet) { if (packet && mServer) { ENetPacket *p = enet_packet_create(packet->getData(), packet->getSize(), ENET_PACKET_FLAG_RELIABLE); enet_peer_send(mServer, 0, p); enet_host_flush(mClient); } } }
31.241135
87
0.585244
suprafun
f0d81a94aabc5bc8a7cde7a0a09ce3ea042bd277
234
hpp
C++
src/gfx/Mesh.hpp
kochol/ari2
ca185191531acc1954cd4acfec2137e32fdb5c2d
[ "MIT" ]
81
2018-12-11T20:48:41.000Z
2022-03-18T22:24:11.000Z
src/gfx/Mesh.hpp
kochol/ari2
ca185191531acc1954cd4acfec2137e32fdb5c2d
[ "MIT" ]
7
2020-04-19T11:50:39.000Z
2021-11-12T16:08:53.000Z
src/gfx/Mesh.hpp
kochol/ari2
ca185191531acc1954cd4acfec2137e32fdb5c2d
[ "MIT" ]
4
2019-04-24T11:51:29.000Z
2021-03-10T05:26:33.000Z
#pragma once #include "SubMesh.hpp" namespace ari::gfx { ARI_HANDLE(MeshHandle) struct Mesh { core::Array<SubMeshHandle> SubMeshes; }; Mesh* GetMesh(const MeshHandle& mesh_handle); } // namespace ari::gfx
13.764706
47
0.662393
kochol
f0d8d3537216398725a220d921ed107a5a2274f0
584
cpp
C++
sbb/primeNumbers.cpp
cwboden/coding-practice
a80aea59d57bfdd55c15ef2fdf01f73aff168031
[ "MIT" ]
null
null
null
sbb/primeNumbers.cpp
cwboden/coding-practice
a80aea59d57bfdd55c15ef2fdf01f73aff168031
[ "MIT" ]
null
null
null
sbb/primeNumbers.cpp
cwboden/coding-practice
a80aea59d57bfdd55c15ef2fdf01f73aff168031
[ "MIT" ]
null
null
null
// Carson Boden / November 2016 // Prints out prime numbers between 1 and 100,000 int main() { // Range from 1 to 100,000 for (size_t i = 1; i <= 100000; ++i) { // Flag to confirm if number is prime bool isPrime = true; // Checks factors up to half of the number (Since 2 is the smallest divisor) for (size_t j = 2; j <= i / 2; ++j) { // If the number i is cleanly divisible if (i % j == 0) { isPrime = false; break; } // if } // for // Print the number if it's prime if (isPrime) { cout << i << endl; } // if } // for return 0; }
17.69697
78
0.568493
cwboden