file
stringlengths
18
26
data
stringlengths
2
1.05M
the_stack_data/1025845.c
/* This testcase is part of GDB, the GNU debugger. Copyright 2014-2015 Free Software Foundation, Inc. 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 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ #define _GNU_SOURCE #include <assert.h> #include <pthread.h> #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <string.h> pthread_t main_thread; pthread_attr_t detached_attr; pthread_attr_t joinable_attr; /* Number of threads we'll create of each variant (joinable/detached). */ int n_threads = 50; /* Mutex used to hold creating detached threads. */ pthread_mutex_t dthrds_create_mutex; /* Wrapper for pthread_create. */ void create_thread (pthread_attr_t *attr, void *(*start_routine) (void *), void *arg) { pthread_t child; int rc; while ((rc = pthread_create (&child, attr, start_routine, arg)) != 0) { fprintf (stderr, "unexpected error from pthread_create: %s (%d)\n", strerror (rc), rc); sleep (1); } } void break_fn (void) { } /* Data passed to joinable threads on creation. This is allocated on the heap and ownership transferred from parent to child. (We do this because it's not portable to cast pthread_t to pointer.) */ struct thread_arg { pthread_t parent; }; /* Entry point for joinable threads. These threads first join their parent before spawning a new child (and exiting). The parent's tid is passed as pthread_create argument, encapsulated in a struct thread_arg object. */ void * joinable_fn (void *arg) { struct thread_arg *p = arg; pthread_setname_np (pthread_self (), "joinable"); if (p->parent != main_thread) assert (pthread_join (p->parent, NULL) == 0); p->parent = pthread_self (); create_thread (&joinable_attr, joinable_fn, p); break_fn (); return NULL; } /* Entry point for detached threads. */ void * detached_fn (void *arg) { pthread_setname_np (pthread_self (), "detached"); /* This should throttle threads a bit in case we manage to spawn threads faster than they exit. */ pthread_mutex_lock (&dthrds_create_mutex); create_thread (&detached_attr, detached_fn, NULL); /* Note this is called before the mutex is unlocked otherwise in non-stop mode, when the breakpoint is hit we'd keep spawning more threads forever while the old threads stay alive (stopped in the breakpoint). */ break_fn (); pthread_mutex_unlock (&dthrds_create_mutex); return NULL; } int main (int argc, char *argv[]) { int i; if (argc > 1) n_threads = atoi (argv[1]); pthread_mutex_init (&dthrds_create_mutex, NULL); pthread_attr_init (&detached_attr); pthread_attr_setdetachstate (&detached_attr, PTHREAD_CREATE_DETACHED); pthread_attr_init (&joinable_attr); pthread_attr_setdetachstate (&joinable_attr, PTHREAD_CREATE_JOINABLE); main_thread = pthread_self (); /* Spawn the initial set of test threads. Some threads are joinable, others are detached. This exercises different code paths in the runtime. */ for (i = 0; i < n_threads; ++i) { struct thread_arg *p; p = malloc (sizeof *p); p->parent = main_thread; create_thread (&joinable_attr, joinable_fn, p); create_thread (&detached_attr, detached_fn, NULL); } /* Long enough for all the attach/detach sequences done by the .exp file. */ sleep (180); return 0; }
the_stack_data/75137413.c
// This file is part of CPAchecker, // a tool for configurable software verification: // https://cpachecker.sosy-lab.org // // SPDX-FileCopyrightText: 2007-2020 Dirk Beyer <https://www.sosy-lab.org> // // SPDX-License-Identifier: Apache-2.0 int main() { int a = 6; int b = 6; for(a = 0; a < 6; ++a) { for(b = 0; b < 6; ++b) { } } if(!(a == 6 && b == 6 )) { ERROR: goto ERROR; } return 1; }
the_stack_data/634520.c
/* f2c.h -- Standard Fortran to C header file */ /** barf [ba:rf] 2. "He suggested using FORTRAN, and everybody barfed." - From The Shogakukan DICTIONARY OF NEW ENGLISH (Second edition) */ #ifndef F2C_INCLUDE #define F2C_INCLUDE #include <math.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <complex.h> #ifdef complex #undef complex #endif #ifdef I #undef I #endif #if defined(_WIN64) typedef long long BLASLONG; typedef unsigned long long BLASULONG; #else typedef long BLASLONG; typedef unsigned long BLASULONG; #endif #ifdef LAPACK_ILP64 typedef BLASLONG blasint; #if defined(_WIN64) #define blasabs(x) llabs(x) #else #define blasabs(x) labs(x) #endif #else typedef int blasint; #define blasabs(x) abs(x) #endif typedef blasint integer; typedef unsigned int uinteger; typedef char *address; typedef short int shortint; typedef float real; typedef double doublereal; typedef struct { real r, i; } complex; typedef struct { doublereal r, i; } doublecomplex; static inline _Complex float Cf(complex *z) {return z->r + z->i*_Complex_I;} static inline _Complex double Cd(doublecomplex *z) {return z->r + z->i*_Complex_I;} static inline _Complex float * _pCf(complex *z) {return (_Complex float*)z;} static inline _Complex double * _pCd(doublecomplex *z) {return (_Complex double*)z;} #define pCf(z) (*_pCf(z)) #define pCd(z) (*_pCd(z)) typedef int logical; typedef short int shortlogical; typedef char logical1; typedef char integer1; #define TRUE_ (1) #define FALSE_ (0) /* Extern is for use with -E */ #ifndef Extern #define Extern extern #endif /* I/O stuff */ typedef int flag; typedef int ftnlen; typedef int ftnint; /*external read, write*/ typedef struct { flag cierr; ftnint ciunit; flag ciend; char *cifmt; ftnint cirec; } cilist; /*internal read, write*/ typedef struct { flag icierr; char *iciunit; flag iciend; char *icifmt; ftnint icirlen; ftnint icirnum; } icilist; /*open*/ typedef struct { flag oerr; ftnint ounit; char *ofnm; ftnlen ofnmlen; char *osta; char *oacc; char *ofm; ftnint orl; char *oblnk; } olist; /*close*/ typedef struct { flag cerr; ftnint cunit; char *csta; } cllist; /*rewind, backspace, endfile*/ typedef struct { flag aerr; ftnint aunit; } alist; /* inquire */ typedef struct { flag inerr; ftnint inunit; char *infile; ftnlen infilen; ftnint *inex; /*parameters in standard's order*/ ftnint *inopen; ftnint *innum; ftnint *innamed; char *inname; ftnlen innamlen; char *inacc; ftnlen inacclen; char *inseq; ftnlen inseqlen; char *indir; ftnlen indirlen; char *infmt; ftnlen infmtlen; char *inform; ftnint informlen; char *inunf; ftnlen inunflen; ftnint *inrecl; ftnint *innrec; char *inblank; ftnlen inblanklen; } inlist; #define VOID void union Multitype { /* for multiple entry points */ integer1 g; shortint h; integer i; /* longint j; */ real r; doublereal d; complex c; doublecomplex z; }; typedef union Multitype Multitype; struct Vardesc { /* for Namelist */ char *name; char *addr; ftnlen *dims; int type; }; typedef struct Vardesc Vardesc; struct Namelist { char *name; Vardesc **vars; int nvars; }; typedef struct Namelist Namelist; #define abs(x) ((x) >= 0 ? (x) : -(x)) #define dabs(x) (fabs(x)) #define f2cmin(a,b) ((a) <= (b) ? (a) : (b)) #define f2cmax(a,b) ((a) >= (b) ? (a) : (b)) #define dmin(a,b) (f2cmin(a,b)) #define dmax(a,b) (f2cmax(a,b)) #define bit_test(a,b) ((a) >> (b) & 1) #define bit_clear(a,b) ((a) & ~((uinteger)1 << (b))) #define bit_set(a,b) ((a) | ((uinteger)1 << (b))) #define abort_() { sig_die("Fortran abort routine called", 1); } #define c_abs(z) (cabsf(Cf(z))) #define c_cos(R,Z) { pCf(R)=ccos(Cf(Z)); } #define c_div(c, a, b) {pCf(c) = Cf(a)/Cf(b);} #define z_div(c, a, b) {pCd(c) = Cd(a)/Cd(b);} #define c_exp(R, Z) {pCf(R) = cexpf(Cf(Z));} #define c_log(R, Z) {pCf(R) = clogf(Cf(Z));} #define c_sin(R, Z) {pCf(R) = csinf(Cf(Z));} //#define c_sqrt(R, Z) {*(R) = csqrtf(Cf(Z));} #define c_sqrt(R, Z) {pCf(R) = csqrtf(Cf(Z));} #define d_abs(x) (fabs(*(x))) #define d_acos(x) (acos(*(x))) #define d_asin(x) (asin(*(x))) #define d_atan(x) (atan(*(x))) #define d_atn2(x, y) (atan2(*(x),*(y))) #define d_cnjg(R, Z) { pCd(R) = conj(Cd(Z)); } #define r_cnjg(R, Z) { pCf(R) = conj(Cf(Z)); } #define d_cos(x) (cos(*(x))) #define d_cosh(x) (cosh(*(x))) #define d_dim(__a, __b) ( *(__a) > *(__b) ? *(__a) - *(__b) : 0.0 ) #define d_exp(x) (exp(*(x))) #define d_imag(z) (cimag(Cd(z))) #define r_imag(z) (cimag(Cf(z))) #define d_int(__x) (*(__x)>0 ? floor(*(__x)) : -floor(- *(__x))) #define d_lg10(x) ( 0.43429448190325182765 * log(*(x)) ) #define d_log(x) (log(*(x))) #define d_mod(x, y) (fmod(*(x), *(y))) #define u_nint(__x) ((__x)>=0 ? floor((__x) + .5) : -floor(.5 - (__x))) #define d_nint(x) u_nint(*(x)) #define u_sign(__a,__b) ((__b) >= 0 ? ((__a) >= 0 ? (__a) : -(__a)) : -((__a) >= 0 ? (__a) : -(__a))) #define d_sign(a,b) u_sign(*(a),*(b)) #define d_sin(x) (sin(*(x))) #define d_sinh(x) (sinh(*(x))) #define d_sqrt(x) (sqrt(*(x))) #define d_tan(x) (tan(*(x))) #define d_tanh(x) (tanh(*(x))) #define i_abs(x) abs(*(x)) #define i_dnnt(x) ((integer)u_nint(*(x))) #define i_len(s, n) (n) #define i_nint(x) ((integer)u_nint(*(x))) #define i_sign(a,b) ((integer)u_sign((integer)*(a),(integer)*(b))) #define pow_dd(ap, bp) ( pow(*(ap), *(bp))) #define pow_si(B,E) spow_ui(*(B),*(E)) #define pow_di(B,E) dpow_ui(*(B),*(E)) #define pow_zi(p, a, b) {pCd(p) = zpow_ui(Cd(a), *(b));} #define pow_zz(R,A,B) {pCd(R) = cpow(Cd(A),*(B));} #define s_cat(lpp, rpp, rnp, np, llp) { ftnlen i, nc, ll; char *f__rp, *lp; ll = (llp); lp = (lpp); for(i=0; i < (int)*(np); ++i) { nc = ll; if((rnp)[i] < nc) nc = (rnp)[i]; ll -= nc; f__rp = (rpp)[i]; while(--nc >= 0) *lp++ = *(f__rp)++; } while(--ll >= 0) *lp++ = ' '; } #define s_cmp(a,b,c,d) ((integer)strncmp((a),(b),f2cmin((c),(d)))) #define s_copy(A,B,C,D) { int __i,__m; for (__i=0, __m=f2cmin((C),(D)); __i<__m && (B)[__i] != 0; ++__i) (A)[__i] = (B)[__i]; } #define sig_die(s, kill) { exit(1); } #define s_stop(s, n) {exit(0);} static char junk[] = "\n@(#)LIBF77 VERSION 19990503\n"; #define z_abs(z) (cabs(Cd(z))) #define z_exp(R, Z) {pCd(R) = cexp(Cd(Z));} #define z_sqrt(R, Z) {pCd(R) = csqrt(Cd(Z));} #define myexit_() break; #define mycycle() continue; #define myceiling(w) {ceil(w)} #define myhuge(w) {HUGE_VAL} #define mymaxloc_(w,s,e,n) {if (sizeof(*(w)) == sizeof(double)) dmaxloc_((w),*(s),*(e),n); else dmaxloc_((w),*(s),*(e),n);} /* procedure parameter types for -A and -C++ */ #define F2C_proc_par_types 1 #ifdef __cplusplus typedef logical (*L_fp)(...); #else typedef logical (*L_fp)(); #endif static float spow_ui(float x, integer n) { float pow=1.0; unsigned long int u; if(n != 0) { if(n < 0) n = -n, x = 1/x; for(u = n; ; ) { if(u & 01) pow *= x; if(u >>= 1) x *= x; else break; } } return pow; } static double dpow_ui(double x, integer n) { double pow=1.0; unsigned long int u; if(n != 0) { if(n < 0) n = -n, x = 1/x; for(u = n; ; ) { if(u & 01) pow *= x; if(u >>= 1) x *= x; else break; } } return pow; } static _Complex float cpow_ui(_Complex float x, integer n) { _Complex float pow=1.0; unsigned long int u; if(n != 0) { if(n < 0) n = -n, x = 1/x; for(u = n; ; ) { if(u & 01) pow *= x; if(u >>= 1) x *= x; else break; } } return pow; } static _Complex double zpow_ui(_Complex double x, integer n) { _Complex double pow=1.0; unsigned long int u; if(n != 0) { if(n < 0) n = -n, x = 1/x; for(u = n; ; ) { if(u & 01) pow *= x; if(u >>= 1) x *= x; else break; } } return pow; } static integer pow_ii(integer x, integer n) { integer pow; unsigned long int u; if (n <= 0) { if (n == 0 || x == 1) pow = 1; else if (x != -1) pow = x == 0 ? 1/x : 0; else n = -n; } if ((n > 0) || !(n == 0 || x == 1 || x != -1)) { u = n; for(pow = 1; ; ) { if(u & 01) pow *= x; if(u >>= 1) x *= x; else break; } } return pow; } static integer dmaxloc_(double *w, integer s, integer e, integer *n) { double m; integer i, mi; for(m=w[s-1], mi=s, i=s+1; i<=e; i++) if (w[i-1]>m) mi=i ,m=w[i-1]; return mi-s+1; } static integer smaxloc_(float *w, integer s, integer e, integer *n) { float m; integer i, mi; for(m=w[s-1], mi=s, i=s+1; i<=e; i++) if (w[i-1]>m) mi=i ,m=w[i-1]; return mi-s+1; } static inline void cdotc_(complex *z, integer *n_, complex *x, integer *incx_, complex *y, integer *incy_) { integer n = *n_, incx = *incx_, incy = *incy_, i; _Complex float zdotc = 0.0; if (incx == 1 && incy == 1) { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += conjf(Cf(&x[i])) * Cf(&y[i]); } } else { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += conjf(Cf(&x[i*incx])) * Cf(&y[i*incy]); } } pCf(z) = zdotc; } static inline void zdotc_(doublecomplex *z, integer *n_, doublecomplex *x, integer *incx_, doublecomplex *y, integer *incy_) { integer n = *n_, incx = *incx_, incy = *incy_, i; _Complex double zdotc = 0.0; if (incx == 1 && incy == 1) { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += conj(Cd(&x[i])) * Cd(&y[i]); } } else { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += conj(Cd(&x[i*incx])) * Cd(&y[i*incy]); } } pCd(z) = zdotc; } static inline void cdotu_(complex *z, integer *n_, complex *x, integer *incx_, complex *y, integer *incy_) { integer n = *n_, incx = *incx_, incy = *incy_, i; _Complex float zdotc = 0.0; if (incx == 1 && incy == 1) { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += Cf(&x[i]) * Cf(&y[i]); } } else { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += Cf(&x[i*incx]) * Cf(&y[i*incy]); } } pCf(z) = zdotc; } static inline void zdotu_(doublecomplex *z, integer *n_, doublecomplex *x, integer *incx_, doublecomplex *y, integer *incy_) { integer n = *n_, incx = *incx_, incy = *incy_, i; _Complex double zdotc = 0.0; if (incx == 1 && incy == 1) { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += Cd(&x[i]) * Cd(&y[i]); } } else { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += Cd(&x[i*incx]) * Cd(&y[i*incy]); } } pCd(z) = zdotc; } #endif /* -- translated by f2c (version 20000121). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ /* Table of constant values */ static complex c_b1 = {1.f,0.f}; static integer c__1 = 1; /* > \brief \b CLATZM */ /* =========== DOCUMENTATION =========== */ /* Online html documentation available at */ /* http://www.netlib.org/lapack/explore-html/ */ /* > \htmlonly */ /* > Download CLATZM + dependencies */ /* > <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/clatzm. f"> */ /* > [TGZ]</a> */ /* > <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/clatzm. f"> */ /* > [ZIP]</a> */ /* > <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/clatzm. f"> */ /* > [TXT]</a> */ /* > \endhtmlonly */ /* Definition: */ /* =========== */ /* SUBROUTINE CLATZM( SIDE, M, N, V, INCV, TAU, C1, C2, LDC, WORK ) */ /* CHARACTER SIDE */ /* INTEGER INCV, LDC, M, N */ /* COMPLEX TAU */ /* COMPLEX C1( LDC, * ), C2( LDC, * ), V( * ), WORK( * ) */ /* > \par Purpose: */ /* ============= */ /* > */ /* > \verbatim */ /* > */ /* > This routine is deprecated and has been replaced by routine CUNMRZ. */ /* > */ /* > CLATZM applies a Householder matrix generated by CTZRQF to a matrix. */ /* > */ /* > Let P = I - tau*u*u**H, u = ( 1 ), */ /* > ( v ) */ /* > where v is an (m-1) vector if SIDE = 'L', or a (n-1) vector if */ /* > SIDE = 'R'. */ /* > */ /* > If SIDE equals 'L', let */ /* > C = [ C1 ] 1 */ /* > [ C2 ] m-1 */ /* > n */ /* > Then C is overwritten by P*C. */ /* > */ /* > If SIDE equals 'R', let */ /* > C = [ C1, C2 ] m */ /* > 1 n-1 */ /* > Then C is overwritten by C*P. */ /* > \endverbatim */ /* Arguments: */ /* ========== */ /* > \param[in] SIDE */ /* > \verbatim */ /* > SIDE is CHARACTER*1 */ /* > = 'L': form P * C */ /* > = 'R': form C * P */ /* > \endverbatim */ /* > */ /* > \param[in] M */ /* > \verbatim */ /* > M is INTEGER */ /* > The number of rows of the matrix C. */ /* > \endverbatim */ /* > */ /* > \param[in] N */ /* > \verbatim */ /* > N is INTEGER */ /* > The number of columns of the matrix C. */ /* > \endverbatim */ /* > */ /* > \param[in] V */ /* > \verbatim */ /* > V is COMPLEX array, dimension */ /* > (1 + (M-1)*abs(INCV)) if SIDE = 'L' */ /* > (1 + (N-1)*abs(INCV)) if SIDE = 'R' */ /* > The vector v in the representation of P. V is not used */ /* > if TAU = 0. */ /* > \endverbatim */ /* > */ /* > \param[in] INCV */ /* > \verbatim */ /* > INCV is INTEGER */ /* > The increment between elements of v. INCV <> 0 */ /* > \endverbatim */ /* > */ /* > \param[in] TAU */ /* > \verbatim */ /* > TAU is COMPLEX */ /* > The value tau in the representation of P. */ /* > \endverbatim */ /* > */ /* > \param[in,out] C1 */ /* > \verbatim */ /* > C1 is COMPLEX array, dimension */ /* > (LDC,N) if SIDE = 'L' */ /* > (M,1) if SIDE = 'R' */ /* > On entry, the n-vector C1 if SIDE = 'L', or the m-vector C1 */ /* > if SIDE = 'R'. */ /* > */ /* > On exit, the first row of P*C if SIDE = 'L', or the first */ /* > column of C*P if SIDE = 'R'. */ /* > \endverbatim */ /* > */ /* > \param[in,out] C2 */ /* > \verbatim */ /* > C2 is COMPLEX array, dimension */ /* > (LDC, N) if SIDE = 'L' */ /* > (LDC, N-1) if SIDE = 'R' */ /* > On entry, the (m - 1) x n matrix C2 if SIDE = 'L', or the */ /* > m x (n - 1) matrix C2 if SIDE = 'R'. */ /* > */ /* > On exit, rows 2:m of P*C if SIDE = 'L', or columns 2:m of C*P */ /* > if SIDE = 'R'. */ /* > \endverbatim */ /* > */ /* > \param[in] LDC */ /* > \verbatim */ /* > LDC is INTEGER */ /* > The leading dimension of the arrays C1 and C2. */ /* > LDC >= f2cmax(1,M). */ /* > \endverbatim */ /* > */ /* > \param[out] WORK */ /* > \verbatim */ /* > WORK is COMPLEX array, dimension */ /* > (N) if SIDE = 'L' */ /* > (M) if SIDE = 'R' */ /* > \endverbatim */ /* Authors: */ /* ======== */ /* > \author Univ. of Tennessee */ /* > \author Univ. of California Berkeley */ /* > \author Univ. of Colorado Denver */ /* > \author NAG Ltd. */ /* > \date December 2016 */ /* > \ingroup complexOTHERcomputational */ /* ===================================================================== */ /* Subroutine */ int clatzm_(char *side, integer *m, integer *n, complex *v, integer *incv, complex *tau, complex *c1, complex *c2, integer *ldc, complex *work) { /* System generated locals */ integer c1_dim1, c1_offset, c2_dim1, c2_offset, i__1; complex q__1; /* Local variables */ extern /* Subroutine */ int cgerc_(integer *, integer *, complex *, complex *, integer *, complex *, integer *, complex *, integer *), cgemv_(char *, integer *, integer *, complex *, complex *, integer *, complex *, integer *, complex *, complex *, integer *); extern logical lsame_(char *, char *); extern /* Subroutine */ int cgeru_(integer *, integer *, complex *, complex *, integer *, complex *, integer *, complex *, integer *), ccopy_(integer *, complex *, integer *, complex *, integer *), caxpy_(integer *, complex *, complex *, integer *, complex *, integer *), clacgv_(integer *, complex *, integer *); /* -- LAPACK computational routine (version 3.7.0) -- */ /* -- LAPACK is a software package provided by Univ. of Tennessee, -- */ /* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..-- */ /* December 2016 */ /* ===================================================================== */ /* Parameter adjustments */ --v; c2_dim1 = *ldc; c2_offset = 1 + c2_dim1 * 1; c2 -= c2_offset; c1_dim1 = *ldc; c1_offset = 1 + c1_dim1 * 1; c1 -= c1_offset; --work; /* Function Body */ if (f2cmin(*m,*n) == 0 || tau->r == 0.f && tau->i == 0.f) { return 0; } if (lsame_(side, "L")) { /* w := ( C1 + v**H * C2 )**H */ ccopy_(n, &c1[c1_offset], ldc, &work[1], &c__1); clacgv_(n, &work[1], &c__1); i__1 = *m - 1; cgemv_("Conjugate transpose", &i__1, n, &c_b1, &c2[c2_offset], ldc, & v[1], incv, &c_b1, &work[1], &c__1); /* [ C1 ] := [ C1 ] - tau* [ 1 ] * w**H */ /* [ C2 ] [ C2 ] [ v ] */ clacgv_(n, &work[1], &c__1); q__1.r = -tau->r, q__1.i = -tau->i; caxpy_(n, &q__1, &work[1], &c__1, &c1[c1_offset], ldc); i__1 = *m - 1; q__1.r = -tau->r, q__1.i = -tau->i; cgeru_(&i__1, n, &q__1, &v[1], incv, &work[1], &c__1, &c2[c2_offset], ldc); } else if (lsame_(side, "R")) { /* w := C1 + C2 * v */ ccopy_(m, &c1[c1_offset], &c__1, &work[1], &c__1); i__1 = *n - 1; cgemv_("No transpose", m, &i__1, &c_b1, &c2[c2_offset], ldc, &v[1], incv, &c_b1, &work[1], &c__1); /* [ C1, C2 ] := [ C1, C2 ] - tau* w * [ 1 , v**H] */ q__1.r = -tau->r, q__1.i = -tau->i; caxpy_(m, &q__1, &work[1], &c__1, &c1[c1_offset], &c__1); i__1 = *n - 1; q__1.r = -tau->r, q__1.i = -tau->i; cgerc_(m, &i__1, &q__1, &work[1], &c__1, &v[1], incv, &c2[c2_offset], ldc); } return 0; /* End of CLATZM */ } /* clatzm_ */
the_stack_data/613266.c
// test.p.cpp : 定義主控台應用程式的進入點。 // #include <stdio.h> #include <stdlib.h> int input_and_check( char *ID ) { printf("請輸入身份證字號:"); scanf("%s", ID); int flag = 0;//false //第一個不是大寫字母 if( (ID[0] < 'A') || (ID[0] > 'Z') ) flag = 0; //後九碼有非數字 int i; for( i = 1 ; i < 10 ; i++ ) if( (ID[i] > '9') || (ID[i] < '0') ) flag = 0; //check_rule int name_value; switch( ID[0] - 65 ) { case 0: name_value = 10; break; case 1: name_value = 11; break; case 2: name_value = 12; break; case 3: name_value = 13; break; case 4: name_value = 14; break; case 5: name_value = 15; break; case 6: name_value = 16; break; case 7: name_value = 17; break; case 8: name_value = 34; break; case 9: name_value = 18; break; case 10: name_value = 19; break; case 11: name_value = 20; break; case 12: name_value = 21; break; case 13: name_value = 22; break; case 14: name_value = 35; break; case 15: name_value = 23; break; case 16: name_value = 24; break; case 17: name_value = 25; break; case 18: name_value = 26; break; case 19: name_value = 27; break; case 20: name_value = 28; break; case 21: name_value = 29; break; case 22: name_value = 32; break; case 23: name_value = 30; break; case 24: name_value = 31; break; case 25: name_value = 33; break; default : name_value = 0; break; } for( i = 1 ; i < 10 ; i++ ) ID[i] -= 48; int check_number; check_number = (name_value / 10) * 1 + (name_value % 10) * 9 + ID[1] * 8 + ID[2] * 7 + ID[3] * 6 + ID[4] * 5 + ID[5] * 4 + ID[6] * 3 + ID[7] * 2 + ID[8] * 1 + ID[9] * 1; if( (check_number % 10) != 0 ) flag = 0; else flag = 1; return flag; } void print( char *ID ) { if( ID[1] == 1 ) printf("性別:男性\n"); else printf("性別:女性\n"); switch( ID[0] - 65 ) { case 0: printf("出生地:臺北市\n"); break; case 1: printf("出生地:臺中市\n"); break; case 2: printf("出生地:基隆市\n"); break; case 3: printf("出生地:臺南市\n"); break; case 4: printf("出生地:高雄市\n"); break; case 5: printf("出生地:新北市\n"); break; case 6: printf("出生地:宜蘭縣\n"); break; case 7: printf("出生地:桃園縣\n"); break; case 8: printf("出生地:嘉義市\n"); break; case 9: printf("出生地:新竹縣\n"); break; case 10: printf("出生地:苗栗縣\n"); break; case 11: printf("出生地:臺中縣\n"); break; case 12: printf("出生地:南投縣\n"); break; case 13: printf("出生地:彰化縣\n"); break; case 14: printf("出生地:新竹市\n"); break; case 15: printf("出生地:雲林縣\n"); break; case 16: printf("出生地:嘉義縣\n"); break; case 17: printf("出生地:臺南縣\n"); break; case 18: printf("出生地:高雄縣\n"); break; case 19: printf("出生地:屏東縣\n"); break; case 20: printf("出生地:花蓮縣\n"); break; case 21: printf("出生地:臺東縣\n"); break; case 22: printf("出生地:金門縣\n"); break; case 23: printf("出生地:澎湖縣\n"); break; case 24: printf("出生地:陽明山管理局\n"); break; case 25: printf("出生地:連江縣\n"); break; default : printf("格式錯誤!\n"); break; } } int main() { char ID[11]; int temp; do{ temp = input_and_check( ID ); }while(temp != 1); print( ID ); return 0; }
the_stack_data/89201297.c
/* $Id: pipe.c,v 1.2 2015/02/26 12:51:24 korpe Exp korpe $ **/ #include <unistd.h> #include <stdio.h> #include <string.h> #include <stdlib.h> int main(int argc, char *argv[]){ int fd[2]; int pid; int i; if (pipe(fd) < 0) { printf ("could not create pipe\n"); exit (1); } pid = fork(); if (pid < 0) { printf ("could not create child\n"); exit (1); } if (pid == 0) { close (fd[1]); printf ("This is the child process.\n"); unsigned char recv_byte; while (read(fd[0], &recv_byte, 1) > 0) { printf ("%d ", recv_byte); } printf ("\n"); fflush (stdout); close(fd[0]); printf ("child terminating\n"); } else { close(fd[0]); // sent some number of bytes unsigned char sent_byte; for (i=0; i < 100; ++i) { sent_byte = (unsigned char) i; write (fd[1], &sent_byte, 1); } close(fd[1]); printf ("parent terminating\n"); exit (0); } return 0; }
the_stack_data/474772.c
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <limits.h> #define FILENAME_SIZE 40 typedef struct page_frame { int page; unsigned int referenced; } page_frame; const unsigned int first_bit_set = 1u << (8 * sizeof(unsigned int) - 1); // http://www.martinbroadhurst.com/trim-a-string-in-c.html void *rtrim(char *str, const char *seps) { int i; if (seps == NULL) { seps = "\t\n\v\f\r "; } i = strlen(str) - 1; while (i >= 0 && strchr(seps, str[i]) != NULL) { str[i] = '\0'; i--; } } int main() { char filename[FILENAME_SIZE] = ""; int page_frame_count; FILE *data; if (strcmp(filename, "") == 0) { puts("Enter the input file's filename: "); fgets(filename, FILENAME_SIZE, stdin); } rtrim(filename, NULL); // puts(filename); data = fopen(filename, "r"); if (!data){ puts("Error opening the file"); return -1; } puts("Enter the number of page frames"); scanf("%d", &page_frame_count); page_frame *pageFrame = calloc(page_frame_count, sizeof(page_frame)); for (int j = 0; j < page_frame_count; ++j) { pageFrame[j].page = -1; // indicating free page } int hits = 0, all = 0, newly_allocated = 0; int asked_page = 0; char c = getc(data); while (c != EOF) { if (c != ' ') { //read a number char by char asked_page *= 10; asked_page += (int) (c - '0'); } else { // a number read int replace_index = 0, hit = 0, new=0; unsigned int max_age = 0; for (int i = 0; i < page_frame_count; ++i) { if (pageFrame[i].page == -1) { // free page frame found max_age = UINT_MAX; replace_index = i; new = 1; } else { pageFrame[i].referenced >>= 1U; if (pageFrame[i].page == asked_page) { //required page found hit = 1; // set the first bit pageFrame[i].referenced |= first_bit_set; } else { // find a candidate to replace with if (pageFrame[i].referenced > max_age) { max_age = pageFrame[i].referenced; replace_index = i; } } } } if (!hit) { newly_allocated += new; pageFrame[replace_index].page = asked_page; pageFrame[replace_index].referenced = first_bit_set; } hits += hit; ++all; asked_page = 0; } c = getc(data); } fclose(data); printf("Hits %d, all %d, newly_allocated %d\n", hits, all, newly_allocated); printf("Hit/Miss ratio = %f, hit ratio = %f, miss ratio = %f\n", ((double)hits/ (double)(all - hits)), ((double)hits/ (double)(all)), (1 - (double)hits/ (double)(all))); return 0; }
the_stack_data/54824880.c
#include <stdlib.h> #include <stdio.h> struct Amicable { int amicable1; int amicable2; }; struct AmicableArrayContainer { struct Amicable **a; int cap; int last_stored_index; int created ; }; void errExit(const char* s) { perror(s); exit(EXIT_FAILURE); } int AddAmicable(struct AmicableArrayContainer *c,struct Amicable *p) { int i; if( (c->last_stored_index+1) == c->cap) { printf("last_stored_index=%d,cap=%d,%d\n",c->last_stored_index,c->cap,p->amicable1); errExit("Amicable array capacity exceded"); } c->last_stored_index++; i = c->last_stored_index; c->a[i]->amicable1 = p->amicable1; c->a[i]->amicable2 = p->amicable2; return i; } struct AmicableArrayContainer *CreateAmicableArrayContainer(int cap) { struct AmicableArrayContainer *c = malloc(sizeof(struct AmicableArrayContainer)); if( !c) errExit("malloc"); c->cap = cap; c->last_stored_index = -1; c->a = malloc(sizeof(struct Amicable *)*c->cap); if( !c->a) errExit("malloc"); for( int i=0;i < c->cap; i++) { c->a[i] = malloc(sizeof(struct Amicable)); if( ! c->a[i] ) errExit("malloc"); c->a[i]->amicable1 = c->a[i]->amicable2 = -1; } return c; } void FreeAmicableArrayContainer(struct AmicableArrayContainer *c ) { for( int i=0;i < c->cap; i++) free(c->a[i]); free(c->a); free(c); } int WasAmicableFound(struct AmicableArrayContainer *c,int num) { for(int i=0;i<c->last_stored_index;i++) if( (c->a[i]->amicable1==num) || (c->a[i]->amicable2==num) ) return 1; return 0; } void ResetAmicableNumbers(struct AmicableArrayContainer *c) { for(int i=0;i<c->cap;i++) c->a[i]->amicable1 = c->a[i]->amicable2 = -1; } void PrintAmicableNumbers(struct AmicableArrayContainer *c) { for(int i=0;i<c->cap;i++) printf("array[%d]=(%d,%d) are amicable\n",i,c->a[i]->amicable1,c->a[i]->amicable2); } int main() { int COUNT=10; struct AmicableArrayContainer *c = CreateAmicableArrayContainer(COUNT); struct Amicable a; for(int i=0;i<COUNT;i++) { a.amicable1=i; a.amicable2=i*i; AddAmicable(c,&a); } PrintAmicableNumbers(c); FreeAmicableArrayContainer(c); }
the_stack_data/30941.c
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ int foo (int a, int b) { return (!a & a) | (b & !b); } /* { dg-final { scan-tree-dump-times "return 0" 1 "optimized" } } */
the_stack_data/58303.c
/* PR middle-end/34134 */ /* { dg-require-effective-target alloca } */ extern void bar (void *, int); int foo (int i) { char *p = __builtin_stack_save (); void *q = __builtin_alloca (i); bar (q, i); __builtin_stack_restore (p); bar ("", 0); return 6; }
the_stack_data/125141153.c
/*** * This code is a part of EvoApproxLib library (ehw.fit.vutbr.cz/approxlib) distributed under The MIT License. * When used, please cite the following article(s): V. Mrazek, R. Hrbacek, Z. Vasicek and L. Sekanina, "EvoApprox8b: Library of approximate adders and multipliers for circuit design and benchmarking of approximation methods". Design, Automation & Test in Europe Conference & Exhibition (DATE), 2017, Lausanne, 2017, pp. 258-261. doi: 10.23919/DATE.2017.7926993 * This file contains a circuit from evoapprox8b dataset. Note that a new version of library was already published. ***/ #include <stdint.h> #include <stdlib.h> /// Approximate function mul8_325 /// Library = EvoApprox8b /// Circuit = mul8_325 /// Area (180) = 8307 /// Delay (180) = 3.430 /// Power (180) = 3925.90 /// Area (45) = 608 /// Delay (45) = 1.210 /// Power (45) = 338.60 /// Nodes = 138 /// HD = 268119 /// MAE = 95.66296 /// MSE = 18396.02344 /// MRE = 2.68 % /// WCE = 633 /// WCRE = 500 % /// EP = 96.6 % uint16_t mul8_325(uint8_t a, uint8_t b) { uint16_t c = 0; uint8_t n0 = (a >> 0) & 0x1; uint8_t n2 = (a >> 1) & 0x1; uint8_t n4 = (a >> 2) & 0x1; uint8_t n6 = (a >> 3) & 0x1; uint8_t n8 = (a >> 4) & 0x1; uint8_t n10 = (a >> 5) & 0x1; uint8_t n12 = (a >> 6) & 0x1; uint8_t n14 = (a >> 7) & 0x1; uint8_t n16 = (b >> 0) & 0x1; uint8_t n18 = (b >> 1) & 0x1; uint8_t n20 = (b >> 2) & 0x1; uint8_t n22 = (b >> 3) & 0x1; uint8_t n24 = (b >> 4) & 0x1; uint8_t n26 = (b >> 5) & 0x1; uint8_t n28 = (b >> 6) & 0x1; uint8_t n30 = (b >> 7) & 0x1; uint8_t n32; uint8_t n34; uint8_t n35; uint8_t n38; uint8_t n41; uint8_t n46; uint8_t n47; uint8_t n49; uint8_t n54; uint8_t n57; uint8_t n64; uint8_t n66; uint8_t n67; uint8_t n70; uint8_t n76; uint8_t n86; uint8_t n87; uint8_t n90; uint8_t n92; uint8_t n99; uint8_t n106; uint8_t n107; uint8_t n121; uint8_t n126; uint8_t n134; uint8_t n150; uint8_t n152; uint8_t n224; uint8_t n238; uint8_t n239; uint8_t n254; uint8_t n255; uint8_t n297; uint8_t n329; uint8_t n343; uint8_t n356; uint8_t n357; uint8_t n372; uint8_t n402; uint8_t n416; uint8_t n432; uint8_t n446; uint8_t n460; uint8_t n476; uint8_t n490; uint8_t n506; uint8_t n514; uint8_t n520; uint8_t n534; uint8_t n550; uint8_t n564; uint8_t n580; uint8_t n594; uint8_t n608; uint8_t n638; uint8_t n654; uint8_t n668; uint8_t n669; uint8_t n682; uint8_t n698; uint8_t n712; uint8_t n728; uint8_t n742; uint8_t n756; uint8_t n772; uint8_t n786; uint8_t n802; uint8_t n816; uint8_t n832; uint8_t n846; uint8_t n860; uint8_t n876; uint8_t n890; uint8_t n906; uint8_t n920; uint8_t n934; uint8_t n950; uint8_t n964; uint8_t n980; uint8_t n981; uint8_t n995; uint8_t n1008; uint8_t n1024; uint8_t n1025; uint8_t n1038; uint8_t n1055; uint8_t n1068; uint8_t n1069; uint8_t n1082; uint8_t n1098; uint8_t n1113; uint8_t n1129; uint8_t n1142; uint8_t n1143; uint8_t n1156; uint8_t n1157; uint8_t n1172; uint8_t n1173; uint8_t n1186; uint8_t n1187; uint8_t n1202; uint8_t n1203; uint8_t n1232; uint8_t n1233; uint8_t n1246; uint8_t n1261; uint8_t n1276; uint8_t n1277; uint8_t n1290; uint8_t n1306; uint8_t n1307; uint8_t n1320; uint8_t n1321; uint8_t n1334; uint8_t n1335; uint8_t n1350; uint8_t n1351; uint8_t n1365; uint8_t n1380; uint8_t n1381; uint8_t n1394; uint8_t n1395; uint8_t n1408; uint8_t n1409; uint8_t n1424; uint8_t n1425; uint8_t n1438; uint8_t n1439; uint8_t n1454; uint8_t n1455; uint8_t n1468; uint8_t n1482; uint8_t n1512; uint8_t n1513; uint8_t n1528; uint8_t n1529; uint8_t n1542; uint8_t n1543; uint8_t n1556; uint8_t n1557; uint8_t n1572; uint8_t n1573; uint8_t n1586; uint8_t n1587; uint8_t n1602; uint8_t n1603; uint8_t n1616; uint8_t n1632; uint8_t n1646; uint8_t n1660; uint8_t n1662; uint8_t n1676; uint8_t n1677; uint8_t n1690; uint8_t n1691; uint8_t n1706; uint8_t n1707; uint8_t n1720; uint8_t n1721; uint8_t n1734; uint8_t n1735; uint8_t n1750; uint8_t n1751; uint8_t n1764; uint8_t n1765; uint8_t n1780; uint8_t n1781; uint8_t n1794; uint8_t n1795; uint8_t n1808; uint8_t n1809; uint8_t n1824; uint8_t n1838; uint8_t n1854; uint8_t n1855; uint8_t n1868; uint8_t n1869; uint8_t n1882; uint8_t n1898; uint8_t n1899; uint8_t n1912; uint8_t n1913; uint8_t n1928; uint8_t n1929; uint8_t n1942; uint8_t n1943; uint8_t n1956; uint8_t n1957; uint8_t n1972; uint8_t n1973; uint8_t n1986; uint8_t n1987; uint8_t n2016; n32 = n18 & n12; n34 = ~(n30 & n0 & n26); n35 = ~(n30 & n0 & n26); n38 = ~((n22 & n24) | n35); n41 = n12 & n38; n46 = ~((n2 & n16) | n34); n47 = ~((n2 & n16) | n34); n49 = ~((n18 & n38) | n35); n54 = ~(n2 & n24 & n30); n57 = ~(n49 | n54); n64 = ~((n18 & n12) | n35); n66 = n41; n67 = n41; n70 = n18; n76 = n6 & n16; n86 = ~((n18 | n4) & n67); n87 = ~((n18 | n4) & n67); n90 = n2 & n64; n92 = ~(n57 ^ n66); n99 = (n87 & n8) | (~n87 & n18); n106 = n10 & n64; n107 = n10 & n64; n121 = n12 & n38; n126 = ~(n99 ^ n92); n134 = n14 & n16; n150 = n0 & n18; n152 = ~(n70 & n126); n224 = n121 & n18; n238 = n12 & n18; n239 = n12 & n18; n254 = n14 & n18; n255 = n14 & n18; n297 = n41; n329 = n8 & n20; n343 = n10 & n20; n356 = n12 & n20; n357 = n12 & n20; n372 = n14 & n20; n402 = ~(n107 & n86 & n2); n416 = ~(n297 & n22); n432 = n6 & n22; n446 = n8 & n22; n460 = n10 & n22; n476 = n12 & n22; n490 = n14 & n22; n506 = n0 & n24; n514 = ~(n239 | n152); n520 = n2; n534 = n4 & n24; n550 = n6 & n24; n564 = n8 & n24; n580 = n10 & n24; n594 = n12 & n24; n608 = n14 & n24; n638 = n2 & n26; n654 = n4 & n26; n668 = n6 & n26; n669 = n6 & n26; n682 = n8 & n26; n698 = n10 & n26; n712 = n12 & n26; n728 = n14 & n26; n742 = n0 & n28; n756 = n2 & n28; n772 = n4 & n28; n786 = n6 & n28; n802 = n8 & n28; n816 = n10 & n28; n832 = n12 & n28; n846 = n14 & n28; n860 = n0 & n30; n876 = n57 & n30; n890 = n4 & n30; n906 = n6 & n30; n920 = n8 & n30; n934 = n10 & n30; n950 = n12 & n30; n964 = n14 & n30; n980 = n46 ^ n150; n981 = n46 & n150; n995 = n669; n1008 = n76; n1024 = n90; n1025 = n90; n1038 = n106; n1055 = n121; n1068 = (n134 ^ n238) ^ n343; n1069 = (n134 & n238) | (n238 & n343) | (n134 & n343); n1082 = n254 & n356; n1098 = n254 ^ n356; n1113 = n402 & n506; n1129 = n416 & n520; n1142 = (n432 ^ n534) ^ n638; n1143 = (n432 & n534) | (n534 & n638) | (n432 & n638); n1156 = (n446 ^ n550) ^ n654; n1157 = (n446 & n550) | (n550 & n654) | (n446 & n654); n1172 = (n460 ^ n564) ^ n668; n1173 = (n460 & n564) | (n564 & n668) | (n460 & n668); n1186 = (n476 ^ n580) ^ n682; n1187 = (n476 & n580) | (n580 & n682) | (n476 & n682); n1202 = (n490 ^ n594) ^ n698; n1203 = (n490 & n594) | (n594 & n698) | (n490 & n698); n1232 = n608 ^ n712; n1233 = n608 & n712; n1246 = n357 ^ n981; n1261 = n1008 | n995; n1276 = n1024; n1277 = n1024; n1290 = n1038 | n1025; n1306 = (n329 ^ n534) ^ n1142; n1307 = (n329 & n534) | (n534 & n1142) | (n329 & n1142); n1320 = (n1068 ^ n1055) ^ n1156; n1321 = (n1068 & n1055) | (n1055 & n1156) | (n1068 & n1156); n1334 = (n1098 ^ n1069) ^ n1172; n1335 = (n1098 & n1069) | (n1069 & n1172) | (n1098 & n1172); n1350 = (n372 ^ n1082) ^ n1186; n1351 = (n372 & n1082) | (n1082 & n1186) | (n372 & n1186); n1365 = n1129 & n742; n1380 = (n1143 ^ n756) ^ n860; n1381 = (n1143 & n756) | (n756 & n860) | (n1143 & n860); n1394 = (n1157 ^ n772) ^ n876; n1395 = (n1157 & n772) | (n772 & n876) | (n1157 & n876); n1408 = (n1173 ^ n786) ^ n890; n1409 = (n1173 & n786) | (n786 & n890) | (n1173 & n890); n1424 = (n1187 ^ n802) ^ n906; n1425 = (n1187 & n802) | (n802 & n906) | (n1187 & n906); n1438 = (n1203 ^ n816) ^ n920; n1439 = (n1203 & n816) | (n816 & n920) | (n1203 & n920); n1454 = (n1233 ^ n832) ^ n934; n1455 = (n1233 & n832) | (n832 & n934) | (n1233 & n934); n1468 = n846 & n950; n1482 = n846 ^ n950; n1512 = n1276 ^ n1261; n1513 = n1276 & n1261; n1528 = (n1290 ^ n1277) ^ n1113; n1529 = (n1290 & n1277) | (n1277 & n1113) | (n1290 & n1113); n1542 = (n1306 ^ n514) ^ n255; n1543 = (n1306 & n514) | (n514 & n255) | (n1306 & n255); n1556 = (n1320 ^ n1307) ^ n1380; n1557 = (n1320 & n1307) | (n1307 & n1380) | (n1320 & n1380); n1572 = (n1334 ^ n1321) ^ n1394; n1573 = (n1334 & n1321) | (n1321 & n1394) | (n1334 & n1394); n1586 = (n1350 ^ n1335) ^ n1408; n1587 = (n1350 & n1335) | (n1335 & n1408) | (n1350 & n1408); n1602 = (n1202 ^ n1351) ^ n1424; n1603 = (n1202 & n1351) | (n1351 & n1424) | (n1202 & n1424); n1616 = n1232 & n1438; n1632 = n1232 ^ n1438; n1646 = n728 & n1454; n1660 = n728 ^ n1454; n1662 = ~(n47 & n520); n1676 = n1512 | n106; n1677 = n1512 | n106; n1690 = n1528 ^ n1513; n1691 = n1528 & n1513; n1706 = n1542 ^ n1529; n1707 = n1542 & n1529; n1720 = (n1556 ^ n1543) ^ n1365; n1721 = (n1556 & n1543) | (n1543 & n1365) | (n1556 & n1365); n1734 = (n1572 ^ n1557) ^ n1381; n1735 = (n1572 & n1557) | (n1557 & n1381) | (n1572 & n1381); n1750 = (n1586 ^ n1573) ^ n1395; n1751 = (n1586 & n1573) | (n1573 & n1395) | (n1586 & n1395); n1764 = (n1602 ^ n1587) ^ n1409; n1765 = (n1602 & n1587) | (n1587 & n1409) | (n1602 & n1409); n1780 = (n1632 ^ n1603) ^ n1425; n1781 = (n1632 & n1603) | (n1603 & n1425) | (n1632 & n1425); n1794 = (n1660 ^ n1616) ^ n1439; n1795 = (n1660 & n1616) | (n1616 & n1439) | (n1660 & n1439); n1808 = (n1482 ^ n1646) ^ n1455; n1809 = (n1482 & n1646) | (n1646 & n1455) | (n1482 & n1455); n1824 = n964 & n1468; n1838 = n964 ^ n1468; n1854 = n1690 ^ n1677; n1855 = n1690 & n1677; n1868 = (n1706 ^ n1691) ^ n1855; n1869 = (n1706 & n1691) | (n1691 & n1855) | (n1706 & n1855); n1882 = (n1869 & n1662) | (~n1869 & n1720); n1898 = (n1734 ^ n1721) ^ n1707; n1899 = (n1734 & n1721) | (n1721 & n1707) | (n1734 & n1707); n1912 = (n1750 ^ n1735) ^ n1899; n1913 = (n1750 & n1735) | (n1735 & n1899) | (n1750 & n1899); n1928 = (n1764 ^ n1751) ^ n1913; n1929 = (n1764 & n1751) | (n1751 & n1913) | (n1764 & n1913); n1942 = (n1780 ^ n1765) ^ n1929; n1943 = (n1780 & n1765) | (n1765 & n1929) | (n1780 & n1929); n1956 = (n1794 ^ n1781) ^ n1943; n1957 = (n1794 & n1781) | (n1781 & n1943) | (n1794 & n1943); n1972 = (n1808 ^ n1795) ^ n1957; n1973 = (n1808 & n1795) | (n1795 & n1957) | (n1808 & n1957); n1986 = (n1838 ^ n1809) ^ n1973; n1987 = (n1838 & n1809) | (n1809 & n1973) | (n1838 & n1973); n2016 = n1824 | n1987; c |= (n32 & 0x1) << 0; c |= (n980 & 0x1) << 1; c |= (n1246 & 0x1) << 2; c |= (n224 & 0x1) << 3; c |= (n1676 & 0x1) << 4; c |= (n1854 & 0x1) << 5; c |= (n1868 & 0x1) << 6; c |= (n1882 & 0x1) << 7; c |= (n1898 & 0x1) << 8; c |= (n1912 & 0x1) << 9; c |= (n1928 & 0x1) << 10; c |= (n1942 & 0x1) << 11; c |= (n1956 & 0x1) << 12; c |= (n1972 & 0x1) << 13; c |= (n1986 & 0x1) << 14; c |= (n2016 & 0x1) << 15; return c; }
the_stack_data/93886689.c
#include <stdio.h> #define ll long long ll pibo[70] = {1,1,2,4,}; int main() { for(int i = 4; i <= 69; i++) pibo[i] = pibo[i-1] + pibo[i-2] + pibo[i-3] + pibo[i-4]; int t; scanf("%d", &t); while(t--) { int i; scanf("%d", &i); printf("%lld\n", pibo[i]); } return 0; }
the_stack_data/211081719.c
#include <stdio.h> int main() { char str[] = "hello"; char *str2 = "world"; char str3[10]; // char str4[]={'h','e','l','l','o'}; // int len = sizeof(str4) / sizeof(char); printf("input the value\n"); //scanf("%s",str3); //scanf("%s",str); scanf("%s", str3); printf("str is %s\n", str); printf("str2 is %s\n", str2); printf("str3 is %s\n", str3); }
the_stack_data/220117.c
#include <stdio.h> #include <string.h> int numchar(const char *s, char ch); int main(void) { char *s = "hello nice to meet you"; printf("The characher `e` has %d times", numchar(s, 'e')); } int numchar(const char *s, char ch) { char *p; int count = 0; p = strchr(s, ch); while (p != NULL) { count++; p = strchr(p + 1, ch); } return count; }
the_stack_data/994557.c
/* * program_17_01.c - Adding Debug Statements with the Preprocessor */ #include <stdio.h> #define DEBUG int process (int i, int j, int k) { return i + j + k; } int main (void) { int i, j, k, nread; nread = scanf ("%d %d %d", &i, &j, &k); #ifdef DEBUG fprintf (stderr, "Number of integers read = %i\n", nread); fprintf (stderr, "i = %i, j = %i, k = %i\n",i ,j ,k); #endif printf ("%i\n", process (i, j, k)); return 0; }
the_stack_data/169330.c
/** * Write a program to define a structure time and read two times from user and perform addition. */ #include <stdio.h> struct Time { int hour; int minute; int second; }; int main() { struct Time t1, t2; int a, b, c, d, hour, min, sec; printf("Enter hour, minute, second for time 1:\n"); scanf("%d %d %d", &t1.hour, &t1.minute, &t1.second); printf("Enter hour, minute, second for time 2:\n"); scanf("%d %d %d", &t2.hour, &t2.minute, &t2.second); a = t1.hour + t2.hour; b = t1.minute + t2.minute; c = t1.second + t1.second; d = a * 3600 + b * 60 + c; hour = d / 3600; min = (d % 3600) / 60; sec = (d % 3600) % 60; printf("Sum of two time:\n"); printf("%d:%d:%d\n", hour, min, sec); return 0; }
the_stack_data/126703522.c
#include<stdio.h> #include<stdlib.h> int main(void) { int i,a[5]={32,16,35,65,52}; printf("a=%p\n",a); printf("&a=%p\n",&a); for(i=0;i<5;i++) { printf("&a[%d]=%p\n",i,&a[i]); } system("pause"); return 0; }
the_stack_data/61681.c
#include <stdlib.h> #include <string.h> #include <stdarg.h> // // Small but complying to standard 'sscanf' and 'vsscanf' implementation. // //#define TESTS #ifdef WIN32 #define strtoll _strtoi64 #define strtoull _strtoui64 #else unsigned long long strtoull(char const *nptr, char **endptr, int base); long long strtoll(char const *nptr, char **endptr, int base); #endif #ifndef __cplusplus typedef int bool; #define true 1 #define false 0 #endif #ifdef TESTS #define SSCANF test_scanf #define VSSCANF test_vsscanf #endif #ifndef SSCANF #define SSCANF sscanf #define VSSCANF vsscanf #endif int VSSCANF(char const*buf, char const*fmt, va_list ap); int SSCANF(char const*buf, char const *fmt, ...) { va_list ap; int r; va_start(ap, fmt); r = VSSCANF(buf, fmt, ap); va_end(ap); return r; } static void set_typed(va_list *ap, int dst_type, long long value) { switch (dst_type) { case 'i': *va_arg(*ap, int*) = (int) value; break; case 'c': *va_arg(*ap, char*) = (char) value; break; case 'h': *va_arg(*ap, short int*) = (short int) value; break; case 'l': *va_arg(*ap, long int*) = (long int) value; break; case 'L': *va_arg(*ap, long long*) = value; break; } } static void skip_ws(char **buf) { char *s = *buf; while (*s && *s <= ' ') s++; *buf = s; } #define SET_BIT(mask, i) mask[(i) >> 5] |= 1 << (i & 0x1f) #define IS_SET(mask, i) mask[(i) >> 5] & (1 << (i & 0x1f)) int VSSCANF(char const *buf_start, char const *fmt_, va_list ap) { char *buf = (char *) buf_start; char *fmt = (char *) fmt_; int count = -1; bool first_match = true; while (*fmt) { if (*fmt == '%') { bool skip_assign = *++fmt == '*'; long width; char dst_type; if (skip_assign) fmt++; width = strtol(fmt, &fmt, 10); dst_type = *fmt == 'L' ? ++fmt, 'L' : *fmt == 'h' ? (*++fmt == 'h' ? ++fmt, 'c' : 'h') : *fmt == 'l' ? (*++fmt == 'l' ? ++fmt, 'L' : 'l') : 'i'; switch (*fmt) { case 0: return count; case '%': skip_ws(&buf); if (*buf++ != '%') return count; break; case 'n': skip_ws(&buf); if (!skip_assign) set_typed(&ap, dst_type, buf - buf_start); break; case 'i': case 'd': case 'o': case 'x': case 'X': case 'p': case 'u': skip_ws(&buf); { int radix = *fmt == 'd' || *fmt == 'u' ? 10 : *fmt == 'o' ? 8 : *fmt == 'X' || *fmt == 'x' || *fmt == 'p' ? 16 : 0; char* end; char temp[65]; const char* src = width >= 1 && width <=64 ? strncpy(temp, buf, width), temp[width]=0, temp : buf; long long v = *fmt == 'd' || *fmt == 'i' ? strtoll(src, &end, radix) : (long long)strtoull(src, &end, radix); end = buf + (end - src); if (end == buf) return count; buf = end; if (!skip_assign) { count++; set_typed(&ap, dst_type, v); } } break; case 'f': case 'e': case 'g': case 'G': case 'a': #ifdef CONFIG_LIBC_FLOATINGPOINT skip_ws(&buf); { char* end; char temp[65]; char* src = width >= 1 && width <=64 ? strncpy(temp, buf, width), temp : buf; double v = strtod(src, &end); end = buf + (end - src); if (end == buf) return count; buf = end; if (!skip_assign) { count++; if (dst_type == 'l') *va_arg(ap, double*) = v; else *va_arg(ap, float*) = (float) v; } } break; #else return count; #endif case 'c': if (width < 2) { if (!*buf) return count; if (skip_assign) buf++; else { *va_arg(ap, char*) = *buf++; count++; } } else { int len = strlen(buf); if (len < width) return count; if (!skip_assign) { memcpy(va_arg(ap, char*), buf, width); count++; } buf += len; } break; case 's': skip_ws(&buf); { if (width == 0) width = 0x7fffffff; if (skip_assign) { while(*buf > ' ' && width-- > 0) buf++; } else { char *dst = va_arg(ap, char*); while(*buf > ' ' && width-- > 0) *dst++ = *buf++; *dst = 0; count++; } } break; case '[': { bool negate = *++fmt == '^'; unsigned int mask[256/32]; memset(mask, 0, sizeof(mask)); if (negate) fmt++; if (*fmt == ']') fmt++, SET_BIT(mask, ']'); while (*fmt && *fmt != ']') { char f = *fmt++; SET_BIT(mask, f); if (*fmt != '-') continue; if (!*++fmt) return count; if (*fmt == ']') { SET_BIT(mask, '-'); break; } { char t = *fmt++; do ++f, SET_BIT(mask, f); while (f < t); } } if (!*fmt) return count; if (negate) { int i = 0; for (; i < 256/32; i++) mask[i] = ~mask[i]; } if (width == 0) width = 0x7fffffff; if (skip_assign) { while(*buf && IS_SET(mask, *buf) && width-- > 0) buf++; } else { char *dst = va_arg(ap, char*); while(*buf && IS_SET(mask, *buf) && width-- > 0) *dst++ = *buf++; *dst = 0; count++; } } break; } fmt++; } else if (*fmt <= ' ') { while (*fmt && *fmt <= ' ') fmt++; skip_ws(&buf); } else if (*buf++ != *fmt++) break; if (first_match) first_match = false, ++count; } return count; }; #undef IS_SET #undef SET_BIT #ifdef TESTS #include <math.h> #ifndef EOF #define EOF -1 #endif void fail(const char* msg); #define STRINGIFY(v) _STRINGIFY(v) #define _STRINGIFY(v) #v #define ASSERT(C) if (!(C)) fail(STRINGIFY(C)); void sscanf_tests() { int r; int i, j; unsigned m, n; void *p; char s[256]; char c; union { long l; unsigned long ul; short s; unsigned short us; unsigned char uc; long long ll; unsigned long long ull; unsigned char b[8]; } u; #ifdef CONFIG_LIBC_FLOATINGPOINT float fl; union { float f; double d; unsigned char b[sizeof(double)]; } f; #endif i=0xcc; r=SSCANF("124", "%d", &i); ASSERT(r == 1 && i == 124); i=0xcc; r=SSCANF("-124", "%d", &i); ASSERT(r == 1 && i == -124); i=0xcc; r=SSCANF("+124", "%d", &i); ASSERT(r == 1 && i == 124); i=0xcc; r=SSCANF("+124", "%d", &i); ASSERT(r == 1 && i == 124); i=0xcc; r=SSCANF("0", "%d", &i); ASSERT(r == 1 && i == 0); i=0xcc; r=SSCANF("-0", "%d", &i); ASSERT(r == 1 && i == 0); i=0xcc; r=SSCANF("+0", "%d", &i); ASSERT(r == 1 && i == 0); i=0xcc; r=SSCANF("010", "%d", &i); ASSERT(r == 1 && i == 10); i=0xcc; r=SSCANF("-010", "%d", &i); ASSERT(r == 1 && i == -10); i=0xcc; r=SSCANF(" 1", "%d", &i); ASSERT(r == 1 && i == 1); n=0xcc; r=SSCANF("0", "%u", &n); ASSERT(r == 1 && n == 0); n=0xcc; r=SSCANF("010", "%u", &n); ASSERT(r == 1 && n == 10); n=0xcc; r=SSCANF("2147483640", "%u", &n); ASSERT(r == 1 && n == 2147483640); n=0xcc; r=SSCANF(" 1", "%u", &n); ASSERT(r == 1 && n == 1); n=0xcc; r=SSCANF("12345678", "%4u", &n); ASSERT(r == 1 && n == 1234); i=0xcc; r=SSCANF("42", "%i", &i); ASSERT(r == 1 && i == 42); i=0xcc; r=SSCANF("-42", "%i", &i); ASSERT(r == 1 && i == -42); i=0xcc; r=SSCANF("+42", "%i", &i); ASSERT(r == 1 && i == +42); i=0xcc; r=SSCANF("010", "%i", &i); ASSERT(r == 1 && i == 8); i=0xcc; r=SSCANF("+010", "%i", &i); ASSERT(r == 1 && i == +8); i=0xcc; r=SSCANF("-010", "%i", &i); ASSERT(r == 1 && i == -8); i=0xcc; r=SSCANF("0x1f", "%i", &i); ASSERT(r == 1 && i == 31); i=0xcc; r=SSCANF("+0x1f", "%i", &i); ASSERT(r == 1 && i == +31); i=0xcc; r=SSCANF("-0x1f", "%i", &i); ASSERT(r == 1 && i == -31); i=0xcc; r=SSCANF("0", "%i", &i); ASSERT(r == 1 && i == 0); i=0xcc; r=SSCANF("+0", "%i", &i); ASSERT(r == 1 && i == 0); i=0xcc; r=SSCANF("-0", "%i", &i); ASSERT(r == 1 && i == 0); i=0xcc; r=SSCANF(" 0", "%i", &i); ASSERT(r == 1 && i == 0); n=0xcc; r=SSCANF("%42", "%%%u", &n); ASSERT(r == 1 && n == 42); n=0xcc; r=SSCANF("0", "%o", &n); ASSERT(r == 1 && n == 0); n=0xcc; r=SSCANF("10", "%o", &n); ASSERT(r == 1 && n == 8); n=0xcc; r=SSCANF("17777777777", "%o", &n); ASSERT(r == 1 && n == 017777777777); n=0xcc; r=SSCANF("0", "%x", &n); ASSERT(r == 1 && n == 0); n=0xcc; r=SSCANF("1", "%X", &n); ASSERT(r == 1 && n == 1); n=0xcc; r=SSCANF("1f", "%x", &n); ASSERT(r == 1 && n == 31); n=0xcc; r=SSCANF("7fffffff", "%x", &n); ASSERT(r == 1 && n == 0x7fffffff); memset(s, 0xcc, sizeof(s)); r=SSCANF(" test 42", "%s", s); ASSERT(r == 1 && strcmp(s, "test") == 0); memset(s, 0xcc, sizeof(s)); r=SSCANF(" testtest", "%5s", s); ASSERT(r == 1 && strcmp(s, "testt") == 0); n=0xcc; r=SSCANF("12 42", "%*u%u", &n); ASSERT(r == 1 && n == 42); m=0xcc; i=0xcc; r=SSCANF(" 42", "%u%n", &m, &i); ASSERT(r == 1 && m == 42 && i == 3); m=0xcc; n=0x5a; r=SSCANF("12", "%u %n", &m, &n); ASSERT(r == 1 && m == 12 && n == 2); memset(s, 0, sizeof(s)); r=SSCANF(" 1234", "%c", s); ASSERT(r == 1 && *s == ' '); memset(s, 0, sizeof(s)); r=SSCANF(" 1234", "%3c", s); ASSERT(r == 1 && memcmp(s, " 12", 3) == 0); memset(s, 0, sizeof(s)); r=SSCANF(" 1234", " %2c", s); ASSERT(r == 1 && memcmp(s, "12", 2) == 0); p=(void*)0xCCCCCCCC; r=SSCANF(" 0x12345678", "%p", &p); ASSERT(r == 1 && p == (void*)0x12345678); memset(s, 0, sizeof(s)); i = n = c= j = m = 0; r=SSCANF("12 test 45 c 67 xx", "%i%s %u %c%d %*s%n", &i, s, &n, &c, &j, &m); ASSERT(r == 5 && i == 12 && !strcmp(s, "test") && n == 45 && c == 'c' && j == 67 && m == 18); memset(s, 0, sizeof(s)); r=SSCANF("12345", "%[321]", s); ASSERT(r == 1 && strcmp("123", s) == 0); memset(s, 0, sizeof(s)); r=SSCANF("12345", "%[1-3]", s); ASSERT(r == 1 && strcmp("123", s) == 0); memset(s, 0, sizeof(s)); r=SSCANF("56781234", "%[^1-4]", s); ASSERT(r == 1 && strcmp("5678", s) == 0); memset(s, 0, sizeof(s)); r=SSCANF("23-4", "%[-2-3]", s); ASSERT(r == 1 && strcmp("23-", s) == 0); memset(s, 0, sizeof(s)); r=SSCANF("23-4", "%[2-3-]", s); ASSERT(r == 1 && strcmp("23-", s) == 0); memset(s, 0, sizeof(s)); r=SSCANF("[]xx", "%[][]", s); ASSERT(r == 1 && strcmp("[]", s) == 0); memset(s, 0, sizeof(s)); r=SSCANF("xyz]x", "%[^]]", s); ASSERT(r == 1 && strcmp("xyz", s) == 0); memset(s, 0, sizeof(s)), n=0; r=SSCANF("12345", "%[1-3]4%u", s, &n); ASSERT(r == 2 && strcmp("123", s) == 0 && n == 5); memset(u.b, 0xaa, sizeof(u)); r=SSCANF("12345678", "%lx", &u.ul); ASSERT(r == 1 && u.ul == 0x12345678 && memchr(&u, 0xaa, sizeof(u))); memset(u.b, 0xaa, sizeof(u)); r=SSCANF("12345678", "%hx", &u.us); ASSERT(r == 1 && u.us == 0x5678 && memchr(&u.l, 0xaa, sizeof(u.l))); memset(u.b, 0xaa, sizeof(u)); r=SSCANF("12345678", "%hhx", &u.uc); ASSERT(r == 1 && u.uc == 0x78 && memchr(&u.s, 0xaa, sizeof(u.s))); memset(u.b, 0xaa, sizeof(u)); r=SSCANF("12345678", "%llx", &u.ull); ASSERT(r == 1 && u.ull == 0x12345678 && !memchr(&u.ll, 0xaa, sizeof(u.ll))); r=SSCANF("9223372036854775807", "%lld", &u.ll); ASSERT(r == 1 && u.ll == 9223372036854775807LL); r=SSCANF("18446744073709551615", "%llu", &u.ull); ASSERT(r == 1 && u.ull == 18446744073709551615ULL); r=SSCANF("-9223372036854775807", "%lld", &u.ll); ASSERT(r == 1 && u.ll == -9223372036854775807LL); #ifdef CONFIG_LIBC_FLOATINGPOINT memset(&f, 0xaa, sizeof(f)); r=SSCANF("-12.345", "%f", &f.f); ASSERT(r == 1 && fabsf(f.f + 12.345) < 0.000001 && memchr(&f, 0xaa, sizeof(f))); memset(&f, 0xaa, sizeof(f)); r=SSCANF("0.1234", "%le", &f.d); ASSERT(r == 1 && fabs(f.d - 0.1234) < 0.00000001 && !memchr(&f, 0xaa, sizeof(f))); memset(&f, 0xaa, sizeof(f)); r=SSCANF("5.24e3", "%f", &f.f); ASSERT(r == 1 && fabsf(f.f - 5240) < 0.001 && memchr(&f, 0xaa, sizeof(f))); memset(&f, 0xaa, sizeof(f)), n=0; r=SSCANF("123.4567.89", "%6f%f%n", &f.f, &fl, &n); ASSERT(r == 2 && fabsf(f.f - 123.45) < 0.001 && fabsf(fl - 67.89) < 0.001 && n == 11); #endif r=SSCANF("", "%u", &n); ASSERT(r == EOF); r=SSCANF("12", "%u%u", &m, &n); ASSERT(r == 1); r=SSCANF(" ", "%u", &n); ASSERT(r == EOF); r=SSCANF("a12", "ab%u", &n); ASSERT(r == 0); n=0; r=SSCANF("12345", "%-3u", &n); ASSERT(r == 1 && n == 12345); m=0xaa; n=0xee; r=SSCANF("6543", "%u,%n", &m, &n); ASSERT(r == 1); ASSERT(n == 0xee); m=0xaa; n=0xee; r=SSCANF(" 100.2 AAA, 11/12\n", " %*[^,], %d/%d", &m, &n); ASSERT(r == 2 && m == 11 && n == 12); m=0xaa; n=0xee; r=SSCANF(" 100.2 XXX, 11/12\n", " %*s%*s %*d/%d", &m); ASSERT(r == 1 && m == 12); } #endif //TEST
the_stack_data/211080491.c
/** * Title : Day-Time server * Name : Aditya Pratap Singh Rajput * Subject : Network Protocols And Programming using C * * */ //program for date time server #include<stdio.h> #include<stdlib.h> #include<sys/types.h> #include<sys/socket.h> #include<netinet/in.h> #include<unistd.h> #include<time.h> //port value and the max size for buffer #define PORT 9002 //the port users will be connecting to #define BACKLOG 10 //how many pending connections queue will hold int main(){ //*******************Time Setup*********************** time_t currentTime ; time(&currentTime); //**************************************************** int countClient = 0; int socket_descriptor = socket(AF_INET, SOCK_STREAM, 0); struct sockaddr_in serverAddress; serverAddress.sin_family = AF_INET; serverAddress.sin_addr.s_addr=INADDR_ANY; serverAddress.sin_port=htons(PORT); //binding address bind(socket_descriptor,(struct sockaddr*)&serverAddress,sizeof(serverAddress)); //listening to the queue listen(socket_descriptor,BACKLOG); printf("\nServer Started ..."); while(1){ countClient++; printf("\n"); int client_socket = accept(socket_descriptor, NULL, NULL); // char *string = asctime(timeinfo); printf("\nClient %d has requested for time at %s", countClient, ctime(&currentTime)); //sending time to the client side // ctime(&time_from_pc) send(client_socket,ctime(&currentTime), 30, 0); } return 0; }
the_stack_data/154830655.c
//@ ltl invariant negative: ( ( ([] (<> AP((id == 1)))) || (! ([] ( (! ( (! AP((pc0_l2 != 0))) && ( AP((pc0_l0 != 0)) && AP((pc0_l1 != 0))))) || (! ( (! AP((pc1_l2 != 0))) && ( AP((pc1_l0 != 0)) && AP((pc1_l1 != 0))))))))) || (! ([] (<> AP((1.0 <= _diverge_delta)))))); extern float __VERIFIER_nondet_float(void); extern int __VERIFIER_nondet_int(void); char __VERIFIER_nondet_bool(void) { return __VERIFIER_nondet_int() != 0; } float _diverge_delta, _x__diverge_delta; char pc29_l2, _x_pc29_l2; char pc29_l1, _x_pc29_l1; char pc29_evt1, _x_pc29_evt1; float pc29_x, _x_pc29_x; char pc28_l1, _x_pc28_l1; char pc28_l0, _x_pc28_l0; char pc28_evt1, _x_pc28_evt1; float pc28_x, _x_pc28_x; char pc27_l2, _x_pc27_l2; char pc27_l1, _x_pc27_l1; char pc27_l0, _x_pc27_l0; char pc27_evt1, _x_pc27_evt1; char pc4_l1, _x_pc4_l1; char pc4_evt1, _x_pc4_evt1; char pc3_evt1, _x_pc3_evt1; char a13_evt1, _x_a13_evt1; float pc3_x, _x_pc3_x; float pc11_x, _x_pc11_x; float pc17_x, _x_pc17_x; char a17_l, _x_a17_l; float pc10_x, _x_pc10_x; char pc1_l1, _x_pc1_l1; char a0_l, _x_a0_l; float pc13_x, _x_pc13_x; char pc1_l0, _x_pc1_l0; float pc1_x, _x_pc1_x; char pc0_l0, _x_pc0_l0; char pc26_l0, _x_pc26_l0; char a27_evt0, _x_a27_evt0; int id, _x_id; char pc26_evt1, _x_pc26_evt1; char a29_evt1, _x_a29_evt1; char pc18_l0, _x_pc18_l0; char a29_evt0, _x_a29_evt0; char a1_evt1, _x_a1_evt1; float pc19_x, _x_pc19_x; char a28_evt1, _x_a28_evt1; char a28_evt0, _x_a28_evt0; char a27_evt1, _x_a27_evt1; char c_move, _x_c_move; char a26_evt1, _x_a26_evt1; char pc8_l0, _x_pc8_l0; char a26_evt0, _x_a26_evt0; char a25_evt1, _x_a25_evt1; char pc4_l2, _x_pc4_l2; char pc17_evt0, _x_pc17_evt0; char pc23_l2, _x_pc23_l2; char a25_evt0, _x_a25_evt0; char pc23_l1, _x_pc23_l1; char a24_evt0, _x_a24_evt0; char pc6_evt1, _x_pc6_evt1; char pc6_l0, _x_pc6_l0; char a23_evt0, _x_a23_evt0; char pc24_l0, _x_pc24_l0; char a23_l, _x_a23_l; char pc2_l2, _x_pc2_l2; char pc15_evt0, _x_pc15_evt0; char pc21_l2, _x_pc21_l2; char a6_evt1, _x_a6_evt1; char pc3_l1, _x_pc3_l1; char a22_evt0, _x_a22_evt0; char a29_l, _x_a29_l; char pc15_l1, _x_pc15_l1; char a21_evt0, _x_a21_evt0; char a21_l, _x_a21_l; float pc0_x, _x_pc0_x; char pc11_evt0, _x_pc11_evt0; char pc17_l2, _x_pc17_l2; float pc26_x, _x_pc26_x; char a20_evt0, _x_a20_evt0; char pc5_evt0, _x_pc5_evt0; float pc20_x, _x_pc20_x; char a27_l, _x_a27_l; char pc10_l2, _x_pc10_l2; char pc23_evt0, _x_pc23_evt0; char pc0_l1, _x_pc0_l1; char a8_evt0, _x_a8_evt0; char pc26_l1, _x_pc26_l1; char a19_l, _x_a19_l; char a26_l, _x_a26_l; char pc5_l1, _x_pc5_l1; char a18_evt0, _x_a18_evt0; char a6_l, _x_a6_l; char a14_evt0, _x_a14_evt0; char pc3_evt0, _x_pc3_evt0; char pc5_evt1, _x_pc5_evt1; char a13_evt0, _x_a13_evt0; float pc18_x, _x_pc18_x; char a5_evt1, _x_a5_evt1; char pc10_evt0, _x_pc10_evt0; char pc29_evt0, _x_pc29_evt0; char pc16_l2, _x_pc16_l2; char a28_l, _x_a28_l; float pc25_x, _x_pc25_x; float pc4_x, _x_pc4_x; char a15_l, _x_a15_l; char a4_l, _x_a4_l; char pc25_l0, _x_pc25_l0; char a23_evt1, _x_a23_evt1; char pc24_l1, _x_pc24_l1; char a12_evt0, _x_a12_evt0; char a3_evt1, _x_a3_evt1; char a5_l, _x_a5_l; char a20_l, _x_a20_l; char pc7_evt1, _x_pc7_evt1; char a24_evt1, _x_a24_evt1; char pc1_evt0, _x_pc1_evt0; float pc16_x, _x_pc16_x; char a14_l, _x_a14_l; char pc4_evt0, _x_pc4_evt0; char a9_l, _x_a9_l; char a24_l, _x_a24_l; char pc8_l1, _x_pc8_l1; char a25_l, _x_a25_l; char pc14_evt1, _x_pc14_evt1; char pc4_l0, _x_pc4_l0; char a1_l, _x_a1_l; char pc15_l0, _x_pc15_l0; char a20_evt1, _x_a20_evt1; char pc14_l1, _x_pc14_l1; char a9_evt0, _x_a9_evt0; char pc14_l0, _x_pc14_l0; char c_initial, _x_c_initial; char a10_l, _x_a10_l; char pc3_l0, _x_pc3_l0; char a6_evt0, _x_a6_evt0; char pc29_l0, _x_pc29_l0; char pc0_l2, _x_pc0_l2; char pc7_l2, _x_pc7_l2; char pc20_evt0, _x_pc20_evt0; char pc26_l2, _x_pc26_l2; char pc7_l0, _x_pc7_l0; char a8_l, _x_a8_l; char pc17_evt1, _x_pc17_evt1; char a16_evt0, _x_a16_evt0; char pc13_evt0, _x_pc13_evt0; char pc19_l2, _x_pc19_l2; char a7_evt1, _x_a7_evt1; char a18_evt1, _x_a18_evt1; char a7_evt0, _x_a7_evt0; char pc24_evt1, _x_pc24_evt1; char a0_evt1, _x_a0_evt1; char pc7_l1, _x_pc7_l1; char a9_evt1, _x_a9_evt1; char pc11_l0, _x_pc11_l0; char pc1_evt1, _x_pc1_evt1; char pc28_l2, _x_pc28_l2; char a3_l, _x_a3_l; float pc12_x, _x_pc12_x; char a22_evt1, _x_a22_evt1; char a11_evt0, _x_a11_evt0; char pc2_evt1, _x_pc2_evt1; char a2_evt1, _x_a2_evt1; float pc15_x, _x_pc15_x; char a12_l, _x_a12_l; char pc18_l1, _x_pc18_l1; char pc2_l1, _x_pc2_l1; char a7_l, _x_a7_l; char a16_l, _x_a16_l; char a2_l, _x_a2_l; char a10_evt0, _x_a10_evt0; float pc8_x, _x_pc8_x; char a11_l, _x_a11_l; float pc2_x, _x_pc2_x; char pc23_evt1, _x_pc23_evt1; char pc2_l0, _x_pc2_l0; char a18_l, _x_a18_l; float delta, _x_delta; char a10_evt1, _x_a10_evt1; char a11_evt1, _x_a11_evt1; char a1_evt0, _x_a1_evt0; char pc15_evt1, _x_pc15_evt1; char a12_evt1, _x_a12_evt1; char pc21_l0, _x_pc21_l0; char pc2_evt0, _x_pc2_evt0; char a2_evt0, _x_a2_evt0; char a17_evt0, _x_a17_evt0; char pc6_l1, _x_pc6_l1; char a3_evt0, _x_a3_evt0; float pc5_x, _x_pc5_x; char a14_evt1, _x_a14_evt1; char a4_evt0, _x_a4_evt0; char pc25_evt1, _x_pc25_evt1; char a5_evt0, _x_a5_evt0; char pc0_evt1, _x_pc0_evt1; char pc16_l1, _x_pc16_l1; char a16_evt1, _x_a16_evt1; char pc13_evt1, _x_pc13_evt1; char a13_l, _x_a13_l; char pc5_l0, _x_pc5_l0; float pc14_x, _x_pc14_x; float pc6_x, _x_pc6_x; char pc6_evt0, _x_pc6_evt0; float pc21_x, _x_pc21_x; float pc7_x, _x_pc7_x; char pc7_evt0, _x_pc7_evt0; char pc26_evt0, _x_pc26_evt0; char pc13_l2, _x_pc13_l2; float pc22_x, _x_pc22_x; char pc8_evt0, _x_pc8_evt0; char pc27_evt0, _x_pc27_evt0; char pc14_l2, _x_pc14_l2; float pc23_x, _x_pc23_x; char pc8_evt1, _x_pc8_evt1; float pc9_x, _x_pc9_x; char a4_evt1, _x_a4_evt1; char pc9_evt0, _x_pc9_evt0; char pc28_evt0, _x_pc28_evt0; char pc15_l2, _x_pc15_l2; float pc24_x, _x_pc24_x; char pc9_evt1, _x_pc9_evt1; char pc9_l0, _x_pc9_l0; char pc9_l1, _x_pc9_l1; char pc10_evt1, _x_pc10_evt1; char a8_evt1, _x_a8_evt1; char pc10_l0, _x_pc10_l0; char pc10_l1, _x_pc10_l1; char pc11_evt1, _x_pc11_evt1; char pc11_l1, _x_pc11_l1; char a15_evt0, _x_a15_evt0; char pc12_evt0, _x_pc12_evt0; char pc18_l2, _x_pc18_l2; float pc27_x, _x_pc27_x; char a15_evt1, _x_a15_evt1; char pc12_evt1, _x_pc12_evt1; char pc12_l0, _x_pc12_l0; char pc12_l1, _x_pc12_l1; char a19_evt0, _x_a19_evt0; char pc13_l0, _x_pc13_l0; char a19_evt1, _x_a19_evt1; char pc13_l1, _x_pc13_l1; char pc1_l2, _x_pc1_l2; char a22_l, _x_a22_l; char pc14_evt0, _x_pc14_evt0; char pc20_l2, _x_pc20_l2; char pc3_l2, _x_pc3_l2; char pc16_evt0, _x_pc16_evt0; char pc22_l2, _x_pc22_l2; char pc16_evt1, _x_pc16_evt1; char pc0_evt0, _x_pc0_evt0; char pc16_l0, _x_pc16_l0; char pc17_l0, _x_pc17_l0; char pc17_l1, _x_pc17_l1; char pc5_l2, _x_pc5_l2; char pc18_evt0, _x_pc18_evt0; char pc24_l2, _x_pc24_l2; char pc18_evt1, _x_pc18_evt1; char a17_evt1, _x_a17_evt1; char pc6_l2, _x_pc6_l2; char pc19_evt0, _x_pc19_evt0; char pc25_l2, _x_pc25_l2; char pc19_evt1, _x_pc19_evt1; char pc19_l0, _x_pc19_l0; char pc19_l1, _x_pc19_l1; char pc20_evt1, _x_pc20_evt1; char a21_evt1, _x_a21_evt1; char pc20_l0, _x_pc20_l0; char pc20_l1, _x_pc20_l1; char pc8_l2, _x_pc8_l2; char pc21_evt0, _x_pc21_evt0; char pc21_evt1, _x_pc21_evt1; char pc21_l1, _x_pc21_l1; char pc9_l2, _x_pc9_l2; char pc22_evt0, _x_pc22_evt0; char pc22_evt1, _x_pc22_evt1; char pc22_l0, _x_pc22_l0; char pc22_l1, _x_pc22_l1; char pc23_l0, _x_pc23_l0; char pc11_l2, _x_pc11_l2; char a0_evt0, _x_a0_evt0; char pc24_evt0, _x_pc24_evt0; char pc12_l2, _x_pc12_l2; char pc25_evt0, _x_pc25_evt0; char pc25_l1, _x_pc25_l1; int main() { _diverge_delta = __VERIFIER_nondet_float(); pc29_l2 = __VERIFIER_nondet_bool(); pc29_l1 = __VERIFIER_nondet_bool(); pc29_evt1 = __VERIFIER_nondet_bool(); pc29_x = __VERIFIER_nondet_float(); pc28_l1 = __VERIFIER_nondet_bool(); pc28_l0 = __VERIFIER_nondet_bool(); pc28_evt1 = __VERIFIER_nondet_bool(); pc28_x = __VERIFIER_nondet_float(); pc27_l2 = __VERIFIER_nondet_bool(); pc27_l1 = __VERIFIER_nondet_bool(); pc27_l0 = __VERIFIER_nondet_bool(); pc27_evt1 = __VERIFIER_nondet_bool(); pc4_l1 = __VERIFIER_nondet_bool(); pc4_evt1 = __VERIFIER_nondet_bool(); pc3_evt1 = __VERIFIER_nondet_bool(); a13_evt1 = __VERIFIER_nondet_bool(); pc3_x = __VERIFIER_nondet_float(); pc11_x = __VERIFIER_nondet_float(); pc17_x = __VERIFIER_nondet_float(); a17_l = __VERIFIER_nondet_bool(); pc10_x = __VERIFIER_nondet_float(); pc1_l1 = __VERIFIER_nondet_bool(); a0_l = __VERIFIER_nondet_bool(); pc13_x = __VERIFIER_nondet_float(); pc1_l0 = __VERIFIER_nondet_bool(); pc1_x = __VERIFIER_nondet_float(); pc0_l0 = __VERIFIER_nondet_bool(); pc26_l0 = __VERIFIER_nondet_bool(); a27_evt0 = __VERIFIER_nondet_bool(); id = __VERIFIER_nondet_int(); pc26_evt1 = __VERIFIER_nondet_bool(); a29_evt1 = __VERIFIER_nondet_bool(); pc18_l0 = __VERIFIER_nondet_bool(); a29_evt0 = __VERIFIER_nondet_bool(); a1_evt1 = __VERIFIER_nondet_bool(); pc19_x = __VERIFIER_nondet_float(); a28_evt1 = __VERIFIER_nondet_bool(); a28_evt0 = __VERIFIER_nondet_bool(); a27_evt1 = __VERIFIER_nondet_bool(); c_move = __VERIFIER_nondet_bool(); a26_evt1 = __VERIFIER_nondet_bool(); pc8_l0 = __VERIFIER_nondet_bool(); a26_evt0 = __VERIFIER_nondet_bool(); a25_evt1 = __VERIFIER_nondet_bool(); pc4_l2 = __VERIFIER_nondet_bool(); pc17_evt0 = __VERIFIER_nondet_bool(); pc23_l2 = __VERIFIER_nondet_bool(); a25_evt0 = __VERIFIER_nondet_bool(); pc23_l1 = __VERIFIER_nondet_bool(); a24_evt0 = __VERIFIER_nondet_bool(); pc6_evt1 = __VERIFIER_nondet_bool(); pc6_l0 = __VERIFIER_nondet_bool(); a23_evt0 = __VERIFIER_nondet_bool(); pc24_l0 = __VERIFIER_nondet_bool(); a23_l = __VERIFIER_nondet_bool(); pc2_l2 = __VERIFIER_nondet_bool(); pc15_evt0 = __VERIFIER_nondet_bool(); pc21_l2 = __VERIFIER_nondet_bool(); a6_evt1 = __VERIFIER_nondet_bool(); pc3_l1 = __VERIFIER_nondet_bool(); a22_evt0 = __VERIFIER_nondet_bool(); a29_l = __VERIFIER_nondet_bool(); pc15_l1 = __VERIFIER_nondet_bool(); a21_evt0 = __VERIFIER_nondet_bool(); a21_l = __VERIFIER_nondet_bool(); pc0_x = __VERIFIER_nondet_float(); pc11_evt0 = __VERIFIER_nondet_bool(); pc17_l2 = __VERIFIER_nondet_bool(); pc26_x = __VERIFIER_nondet_float(); a20_evt0 = __VERIFIER_nondet_bool(); pc5_evt0 = __VERIFIER_nondet_bool(); pc20_x = __VERIFIER_nondet_float(); a27_l = __VERIFIER_nondet_bool(); pc10_l2 = __VERIFIER_nondet_bool(); pc23_evt0 = __VERIFIER_nondet_bool(); pc0_l1 = __VERIFIER_nondet_bool(); a8_evt0 = __VERIFIER_nondet_bool(); pc26_l1 = __VERIFIER_nondet_bool(); a19_l = __VERIFIER_nondet_bool(); a26_l = __VERIFIER_nondet_bool(); pc5_l1 = __VERIFIER_nondet_bool(); a18_evt0 = __VERIFIER_nondet_bool(); a6_l = __VERIFIER_nondet_bool(); a14_evt0 = __VERIFIER_nondet_bool(); pc3_evt0 = __VERIFIER_nondet_bool(); pc5_evt1 = __VERIFIER_nondet_bool(); a13_evt0 = __VERIFIER_nondet_bool(); pc18_x = __VERIFIER_nondet_float(); a5_evt1 = __VERIFIER_nondet_bool(); pc10_evt0 = __VERIFIER_nondet_bool(); pc29_evt0 = __VERIFIER_nondet_bool(); pc16_l2 = __VERIFIER_nondet_bool(); a28_l = __VERIFIER_nondet_bool(); pc25_x = __VERIFIER_nondet_float(); pc4_x = __VERIFIER_nondet_float(); a15_l = __VERIFIER_nondet_bool(); a4_l = __VERIFIER_nondet_bool(); pc25_l0 = __VERIFIER_nondet_bool(); a23_evt1 = __VERIFIER_nondet_bool(); pc24_l1 = __VERIFIER_nondet_bool(); a12_evt0 = __VERIFIER_nondet_bool(); a3_evt1 = __VERIFIER_nondet_bool(); a5_l = __VERIFIER_nondet_bool(); a20_l = __VERIFIER_nondet_bool(); pc7_evt1 = __VERIFIER_nondet_bool(); a24_evt1 = __VERIFIER_nondet_bool(); pc1_evt0 = __VERIFIER_nondet_bool(); pc16_x = __VERIFIER_nondet_float(); a14_l = __VERIFIER_nondet_bool(); pc4_evt0 = __VERIFIER_nondet_bool(); a9_l = __VERIFIER_nondet_bool(); a24_l = __VERIFIER_nondet_bool(); pc8_l1 = __VERIFIER_nondet_bool(); a25_l = __VERIFIER_nondet_bool(); pc14_evt1 = __VERIFIER_nondet_bool(); pc4_l0 = __VERIFIER_nondet_bool(); a1_l = __VERIFIER_nondet_bool(); pc15_l0 = __VERIFIER_nondet_bool(); a20_evt1 = __VERIFIER_nondet_bool(); pc14_l1 = __VERIFIER_nondet_bool(); a9_evt0 = __VERIFIER_nondet_bool(); pc14_l0 = __VERIFIER_nondet_bool(); c_initial = __VERIFIER_nondet_bool(); a10_l = __VERIFIER_nondet_bool(); pc3_l0 = __VERIFIER_nondet_bool(); a6_evt0 = __VERIFIER_nondet_bool(); pc29_l0 = __VERIFIER_nondet_bool(); pc0_l2 = __VERIFIER_nondet_bool(); pc7_l2 = __VERIFIER_nondet_bool(); pc20_evt0 = __VERIFIER_nondet_bool(); pc26_l2 = __VERIFIER_nondet_bool(); pc7_l0 = __VERIFIER_nondet_bool(); a8_l = __VERIFIER_nondet_bool(); pc17_evt1 = __VERIFIER_nondet_bool(); a16_evt0 = __VERIFIER_nondet_bool(); pc13_evt0 = __VERIFIER_nondet_bool(); pc19_l2 = __VERIFIER_nondet_bool(); a7_evt1 = __VERIFIER_nondet_bool(); a18_evt1 = __VERIFIER_nondet_bool(); a7_evt0 = __VERIFIER_nondet_bool(); pc24_evt1 = __VERIFIER_nondet_bool(); a0_evt1 = __VERIFIER_nondet_bool(); pc7_l1 = __VERIFIER_nondet_bool(); a9_evt1 = __VERIFIER_nondet_bool(); pc11_l0 = __VERIFIER_nondet_bool(); pc1_evt1 = __VERIFIER_nondet_bool(); pc28_l2 = __VERIFIER_nondet_bool(); a3_l = __VERIFIER_nondet_bool(); pc12_x = __VERIFIER_nondet_float(); a22_evt1 = __VERIFIER_nondet_bool(); a11_evt0 = __VERIFIER_nondet_bool(); pc2_evt1 = __VERIFIER_nondet_bool(); a2_evt1 = __VERIFIER_nondet_bool(); pc15_x = __VERIFIER_nondet_float(); a12_l = __VERIFIER_nondet_bool(); pc18_l1 = __VERIFIER_nondet_bool(); pc2_l1 = __VERIFIER_nondet_bool(); a7_l = __VERIFIER_nondet_bool(); a16_l = __VERIFIER_nondet_bool(); a2_l = __VERIFIER_nondet_bool(); a10_evt0 = __VERIFIER_nondet_bool(); pc8_x = __VERIFIER_nondet_float(); a11_l = __VERIFIER_nondet_bool(); pc2_x = __VERIFIER_nondet_float(); pc23_evt1 = __VERIFIER_nondet_bool(); pc2_l0 = __VERIFIER_nondet_bool(); a18_l = __VERIFIER_nondet_bool(); delta = __VERIFIER_nondet_float(); a10_evt1 = __VERIFIER_nondet_bool(); a11_evt1 = __VERIFIER_nondet_bool(); a1_evt0 = __VERIFIER_nondet_bool(); pc15_evt1 = __VERIFIER_nondet_bool(); a12_evt1 = __VERIFIER_nondet_bool(); pc21_l0 = __VERIFIER_nondet_bool(); pc2_evt0 = __VERIFIER_nondet_bool(); a2_evt0 = __VERIFIER_nondet_bool(); a17_evt0 = __VERIFIER_nondet_bool(); pc6_l1 = __VERIFIER_nondet_bool(); a3_evt0 = __VERIFIER_nondet_bool(); pc5_x = __VERIFIER_nondet_float(); a14_evt1 = __VERIFIER_nondet_bool(); a4_evt0 = __VERIFIER_nondet_bool(); pc25_evt1 = __VERIFIER_nondet_bool(); a5_evt0 = __VERIFIER_nondet_bool(); pc0_evt1 = __VERIFIER_nondet_bool(); pc16_l1 = __VERIFIER_nondet_bool(); a16_evt1 = __VERIFIER_nondet_bool(); pc13_evt1 = __VERIFIER_nondet_bool(); a13_l = __VERIFIER_nondet_bool(); pc5_l0 = __VERIFIER_nondet_bool(); pc14_x = __VERIFIER_nondet_float(); pc6_x = __VERIFIER_nondet_float(); pc6_evt0 = __VERIFIER_nondet_bool(); pc21_x = __VERIFIER_nondet_float(); pc7_x = __VERIFIER_nondet_float(); pc7_evt0 = __VERIFIER_nondet_bool(); pc26_evt0 = __VERIFIER_nondet_bool(); pc13_l2 = __VERIFIER_nondet_bool(); pc22_x = __VERIFIER_nondet_float(); pc8_evt0 = __VERIFIER_nondet_bool(); pc27_evt0 = __VERIFIER_nondet_bool(); pc14_l2 = __VERIFIER_nondet_bool(); pc23_x = __VERIFIER_nondet_float(); pc8_evt1 = __VERIFIER_nondet_bool(); pc9_x = __VERIFIER_nondet_float(); a4_evt1 = __VERIFIER_nondet_bool(); pc9_evt0 = __VERIFIER_nondet_bool(); pc28_evt0 = __VERIFIER_nondet_bool(); pc15_l2 = __VERIFIER_nondet_bool(); pc24_x = __VERIFIER_nondet_float(); pc9_evt1 = __VERIFIER_nondet_bool(); pc9_l0 = __VERIFIER_nondet_bool(); pc9_l1 = __VERIFIER_nondet_bool(); pc10_evt1 = __VERIFIER_nondet_bool(); a8_evt1 = __VERIFIER_nondet_bool(); pc10_l0 = __VERIFIER_nondet_bool(); pc10_l1 = __VERIFIER_nondet_bool(); pc11_evt1 = __VERIFIER_nondet_bool(); pc11_l1 = __VERIFIER_nondet_bool(); a15_evt0 = __VERIFIER_nondet_bool(); pc12_evt0 = __VERIFIER_nondet_bool(); pc18_l2 = __VERIFIER_nondet_bool(); pc27_x = __VERIFIER_nondet_float(); a15_evt1 = __VERIFIER_nondet_bool(); pc12_evt1 = __VERIFIER_nondet_bool(); pc12_l0 = __VERIFIER_nondet_bool(); pc12_l1 = __VERIFIER_nondet_bool(); a19_evt0 = __VERIFIER_nondet_bool(); pc13_l0 = __VERIFIER_nondet_bool(); a19_evt1 = __VERIFIER_nondet_bool(); pc13_l1 = __VERIFIER_nondet_bool(); pc1_l2 = __VERIFIER_nondet_bool(); a22_l = __VERIFIER_nondet_bool(); pc14_evt0 = __VERIFIER_nondet_bool(); pc20_l2 = __VERIFIER_nondet_bool(); pc3_l2 = __VERIFIER_nondet_bool(); pc16_evt0 = __VERIFIER_nondet_bool(); pc22_l2 = __VERIFIER_nondet_bool(); pc16_evt1 = __VERIFIER_nondet_bool(); pc0_evt0 = __VERIFIER_nondet_bool(); pc16_l0 = __VERIFIER_nondet_bool(); pc17_l0 = __VERIFIER_nondet_bool(); pc17_l1 = __VERIFIER_nondet_bool(); pc5_l2 = __VERIFIER_nondet_bool(); pc18_evt0 = __VERIFIER_nondet_bool(); pc24_l2 = __VERIFIER_nondet_bool(); pc18_evt1 = __VERIFIER_nondet_bool(); a17_evt1 = __VERIFIER_nondet_bool(); pc6_l2 = __VERIFIER_nondet_bool(); pc19_evt0 = __VERIFIER_nondet_bool(); pc25_l2 = __VERIFIER_nondet_bool(); pc19_evt1 = __VERIFIER_nondet_bool(); pc19_l0 = __VERIFIER_nondet_bool(); pc19_l1 = __VERIFIER_nondet_bool(); pc20_evt1 = __VERIFIER_nondet_bool(); a21_evt1 = __VERIFIER_nondet_bool(); pc20_l0 = __VERIFIER_nondet_bool(); pc20_l1 = __VERIFIER_nondet_bool(); pc8_l2 = __VERIFIER_nondet_bool(); pc21_evt0 = __VERIFIER_nondet_bool(); pc21_evt1 = __VERIFIER_nondet_bool(); pc21_l1 = __VERIFIER_nondet_bool(); pc9_l2 = __VERIFIER_nondet_bool(); pc22_evt0 = __VERIFIER_nondet_bool(); pc22_evt1 = __VERIFIER_nondet_bool(); pc22_l0 = __VERIFIER_nondet_bool(); pc22_l1 = __VERIFIER_nondet_bool(); pc23_l0 = __VERIFIER_nondet_bool(); pc11_l2 = __VERIFIER_nondet_bool(); a0_evt0 = __VERIFIER_nondet_bool(); pc24_evt0 = __VERIFIER_nondet_bool(); pc12_l2 = __VERIFIER_nondet_bool(); pc25_evt0 = __VERIFIER_nondet_bool(); pc25_l1 = __VERIFIER_nondet_bool(); int __ok = (((((((( !(pc29_l2 != 0)) && (( !(pc29_l0 != 0)) && ( !(pc29_l1 != 0)))) && (pc29_x == 0.0)) && (((( !(pc29_evt0 != 0)) && ( !(pc29_evt1 != 0))) || ((pc29_evt1 != 0) && ( !(pc29_evt0 != 0)))) || (((pc29_evt0 != 0) && ( !(pc29_evt1 != 0))) || ((pc29_evt0 != 0) && (pc29_evt1 != 0))))) && ((( !(pc29_l2 != 0)) && ((pc29_l0 != 0) && (pc29_l1 != 0))) || ((((( !(pc29_l2 != 0)) && (( !(pc29_l0 != 0)) && ( !(pc29_l1 != 0)))) || ((pc29_l2 != 0) && (( !(pc29_l0 != 0)) && ( !(pc29_l1 != 0))))) || ((( !(pc29_l2 != 0)) && ((pc29_l1 != 0) && ( !(pc29_l0 != 0)))) || ((pc29_l2 != 0) && ((pc29_l1 != 0) && ( !(pc29_l0 != 0)))))) || ((( !(pc29_l2 != 0)) && ((pc29_l0 != 0) && ( !(pc29_l1 != 0)))) || ((pc29_l2 != 0) && ((pc29_l0 != 0) && ( !(pc29_l1 != 0)))))))) && (((((( !(pc28_l2 != 0)) && (( !(pc28_l0 != 0)) && ( !(pc28_l1 != 0)))) && (pc28_x == 0.0)) && (((( !(pc28_evt0 != 0)) && ( !(pc28_evt1 != 0))) || ((pc28_evt1 != 0) && ( !(pc28_evt0 != 0)))) || (((pc28_evt0 != 0) && ( !(pc28_evt1 != 0))) || ((pc28_evt0 != 0) && (pc28_evt1 != 0))))) && ((( !(pc28_l2 != 0)) && ((pc28_l0 != 0) && (pc28_l1 != 0))) || ((((( !(pc28_l2 != 0)) && (( !(pc28_l0 != 0)) && ( !(pc28_l1 != 0)))) || ((pc28_l2 != 0) && (( !(pc28_l0 != 0)) && ( !(pc28_l1 != 0))))) || ((( !(pc28_l2 != 0)) && ((pc28_l1 != 0) && ( !(pc28_l0 != 0)))) || ((pc28_l2 != 0) && ((pc28_l1 != 0) && ( !(pc28_l0 != 0)))))) || ((( !(pc28_l2 != 0)) && ((pc28_l0 != 0) && ( !(pc28_l1 != 0)))) || ((pc28_l2 != 0) && ((pc28_l0 != 0) && ( !(pc28_l1 != 0)))))))) && (((((( !(pc27_l2 != 0)) && (( !(pc27_l0 != 0)) && ( !(pc27_l1 != 0)))) && (pc27_x == 0.0)) && (((( !(pc27_evt0 != 0)) && ( !(pc27_evt1 != 0))) || ((pc27_evt1 != 0) && ( !(pc27_evt0 != 0)))) || (((pc27_evt0 != 0) && ( !(pc27_evt1 != 0))) || ((pc27_evt0 != 0) && (pc27_evt1 != 0))))) && ((( !(pc27_l2 != 0)) && ((pc27_l0 != 0) && (pc27_l1 != 0))) || ((((( !(pc27_l2 != 0)) && (( !(pc27_l0 != 0)) && ( !(pc27_l1 != 0)))) || ((pc27_l2 != 0) && (( !(pc27_l0 != 0)) && ( !(pc27_l1 != 0))))) || ((( !(pc27_l2 != 0)) && ((pc27_l1 != 0) && ( !(pc27_l0 != 0)))) || ((pc27_l2 != 0) && ((pc27_l1 != 0) && ( !(pc27_l0 != 0)))))) || ((( !(pc27_l2 != 0)) && ((pc27_l0 != 0) && ( !(pc27_l1 != 0)))) || ((pc27_l2 != 0) && ((pc27_l0 != 0) && ( !(pc27_l1 != 0)))))))) && (((((( !(pc26_l2 != 0)) && (( !(pc26_l0 != 0)) && ( !(pc26_l1 != 0)))) && (pc26_x == 0.0)) && (((( !(pc26_evt0 != 0)) && ( !(pc26_evt1 != 0))) || ((pc26_evt1 != 0) && ( !(pc26_evt0 != 0)))) || (((pc26_evt0 != 0) && ( !(pc26_evt1 != 0))) || ((pc26_evt0 != 0) && (pc26_evt1 != 0))))) && ((( !(pc26_l2 != 0)) && ((pc26_l0 != 0) && (pc26_l1 != 0))) || ((((( !(pc26_l2 != 0)) && (( !(pc26_l0 != 0)) && ( !(pc26_l1 != 0)))) || ((pc26_l2 != 0) && (( !(pc26_l0 != 0)) && ( !(pc26_l1 != 0))))) || ((( !(pc26_l2 != 0)) && ((pc26_l1 != 0) && ( !(pc26_l0 != 0)))) || ((pc26_l2 != 0) && ((pc26_l1 != 0) && ( !(pc26_l0 != 0)))))) || ((( !(pc26_l2 != 0)) && ((pc26_l0 != 0) && ( !(pc26_l1 != 0)))) || ((pc26_l2 != 0) && ((pc26_l0 != 0) && ( !(pc26_l1 != 0)))))))) && (((((( !(pc25_l2 != 0)) && (( !(pc25_l0 != 0)) && ( !(pc25_l1 != 0)))) && (pc25_x == 0.0)) && (((( !(pc25_evt0 != 0)) && ( !(pc25_evt1 != 0))) || ((pc25_evt1 != 0) && ( !(pc25_evt0 != 0)))) || (((pc25_evt0 != 0) && ( !(pc25_evt1 != 0))) || ((pc25_evt0 != 0) && (pc25_evt1 != 0))))) && ((( !(pc25_l2 != 0)) && ((pc25_l0 != 0) && (pc25_l1 != 0))) || ((((( !(pc25_l2 != 0)) && (( !(pc25_l0 != 0)) && ( !(pc25_l1 != 0)))) || ((pc25_l2 != 0) && (( !(pc25_l0 != 0)) && ( !(pc25_l1 != 0))))) || ((( !(pc25_l2 != 0)) && ((pc25_l1 != 0) && ( !(pc25_l0 != 0)))) || ((pc25_l2 != 0) && ((pc25_l1 != 0) && ( !(pc25_l0 != 0)))))) || ((( !(pc25_l2 != 0)) && ((pc25_l0 != 0) && ( !(pc25_l1 != 0)))) || ((pc25_l2 != 0) && ((pc25_l0 != 0) && ( !(pc25_l1 != 0)))))))) && (((((( !(pc24_l2 != 0)) && (( !(pc24_l0 != 0)) && ( !(pc24_l1 != 0)))) && (pc24_x == 0.0)) && (((( !(pc24_evt0 != 0)) && ( !(pc24_evt1 != 0))) || ((pc24_evt1 != 0) && ( !(pc24_evt0 != 0)))) || (((pc24_evt0 != 0) && ( !(pc24_evt1 != 0))) || ((pc24_evt0 != 0) && (pc24_evt1 != 0))))) && ((( !(pc24_l2 != 0)) && ((pc24_l0 != 0) && (pc24_l1 != 0))) || ((((( !(pc24_l2 != 0)) && (( !(pc24_l0 != 0)) && ( !(pc24_l1 != 0)))) || ((pc24_l2 != 0) && (( !(pc24_l0 != 0)) && ( !(pc24_l1 != 0))))) || ((( !(pc24_l2 != 0)) && ((pc24_l1 != 0) && ( !(pc24_l0 != 0)))) || ((pc24_l2 != 0) && ((pc24_l1 != 0) && ( !(pc24_l0 != 0)))))) || ((( !(pc24_l2 != 0)) && ((pc24_l0 != 0) && ( !(pc24_l1 != 0)))) || ((pc24_l2 != 0) && ((pc24_l0 != 0) && ( !(pc24_l1 != 0)))))))) && (((((( !(pc23_l2 != 0)) && (( !(pc23_l0 != 0)) && ( !(pc23_l1 != 0)))) && (pc23_x == 0.0)) && (((( !(pc23_evt0 != 0)) && ( !(pc23_evt1 != 0))) || ((pc23_evt1 != 0) && ( !(pc23_evt0 != 0)))) || (((pc23_evt0 != 0) && ( !(pc23_evt1 != 0))) || ((pc23_evt0 != 0) && (pc23_evt1 != 0))))) && ((( !(pc23_l2 != 0)) && ((pc23_l0 != 0) && (pc23_l1 != 0))) || ((((( !(pc23_l2 != 0)) && (( !(pc23_l0 != 0)) && ( !(pc23_l1 != 0)))) || ((pc23_l2 != 0) && (( !(pc23_l0 != 0)) && ( !(pc23_l1 != 0))))) || ((( !(pc23_l2 != 0)) && ((pc23_l1 != 0) && ( !(pc23_l0 != 0)))) || ((pc23_l2 != 0) && ((pc23_l1 != 0) && ( !(pc23_l0 != 0)))))) || ((( !(pc23_l2 != 0)) && ((pc23_l0 != 0) && ( !(pc23_l1 != 0)))) || ((pc23_l2 != 0) && ((pc23_l0 != 0) && ( !(pc23_l1 != 0)))))))) && (((((( !(pc22_l2 != 0)) && (( !(pc22_l0 != 0)) && ( !(pc22_l1 != 0)))) && (pc22_x == 0.0)) && (((( !(pc22_evt0 != 0)) && ( !(pc22_evt1 != 0))) || ((pc22_evt1 != 0) && ( !(pc22_evt0 != 0)))) || (((pc22_evt0 != 0) && ( !(pc22_evt1 != 0))) || ((pc22_evt0 != 0) && (pc22_evt1 != 0))))) && ((( !(pc22_l2 != 0)) && ((pc22_l0 != 0) && (pc22_l1 != 0))) || ((((( !(pc22_l2 != 0)) && (( !(pc22_l0 != 0)) && ( !(pc22_l1 != 0)))) || ((pc22_l2 != 0) && (( !(pc22_l0 != 0)) && ( !(pc22_l1 != 0))))) || ((( !(pc22_l2 != 0)) && ((pc22_l1 != 0) && ( !(pc22_l0 != 0)))) || ((pc22_l2 != 0) && ((pc22_l1 != 0) && ( !(pc22_l0 != 0)))))) || ((( !(pc22_l2 != 0)) && ((pc22_l0 != 0) && ( !(pc22_l1 != 0)))) || ((pc22_l2 != 0) && ((pc22_l0 != 0) && ( !(pc22_l1 != 0)))))))) && (((((( !(pc21_l2 != 0)) && (( !(pc21_l0 != 0)) && ( !(pc21_l1 != 0)))) && (pc21_x == 0.0)) && (((( !(pc21_evt0 != 0)) && ( !(pc21_evt1 != 0))) || ((pc21_evt1 != 0) && ( !(pc21_evt0 != 0)))) || (((pc21_evt0 != 0) && ( !(pc21_evt1 != 0))) || ((pc21_evt0 != 0) && (pc21_evt1 != 0))))) && ((( !(pc21_l2 != 0)) && ((pc21_l0 != 0) && (pc21_l1 != 0))) || ((((( !(pc21_l2 != 0)) && (( !(pc21_l0 != 0)) && ( !(pc21_l1 != 0)))) || ((pc21_l2 != 0) && (( !(pc21_l0 != 0)) && ( !(pc21_l1 != 0))))) || ((( !(pc21_l2 != 0)) && ((pc21_l1 != 0) && ( !(pc21_l0 != 0)))) || ((pc21_l2 != 0) && ((pc21_l1 != 0) && ( !(pc21_l0 != 0)))))) || ((( !(pc21_l2 != 0)) && ((pc21_l0 != 0) && ( !(pc21_l1 != 0)))) || ((pc21_l2 != 0) && ((pc21_l0 != 0) && ( !(pc21_l1 != 0)))))))) && (((((( !(pc20_l2 != 0)) && (( !(pc20_l0 != 0)) && ( !(pc20_l1 != 0)))) && (pc20_x == 0.0)) && (((( !(pc20_evt0 != 0)) && ( !(pc20_evt1 != 0))) || ((pc20_evt1 != 0) && ( !(pc20_evt0 != 0)))) || (((pc20_evt0 != 0) && ( !(pc20_evt1 != 0))) || ((pc20_evt0 != 0) && (pc20_evt1 != 0))))) && ((( !(pc20_l2 != 0)) && ((pc20_l0 != 0) && (pc20_l1 != 0))) || ((((( !(pc20_l2 != 0)) && (( !(pc20_l0 != 0)) && ( !(pc20_l1 != 0)))) || ((pc20_l2 != 0) && (( !(pc20_l0 != 0)) && ( !(pc20_l1 != 0))))) || ((( !(pc20_l2 != 0)) && ((pc20_l1 != 0) && ( !(pc20_l0 != 0)))) || ((pc20_l2 != 0) && ((pc20_l1 != 0) && ( !(pc20_l0 != 0)))))) || ((( !(pc20_l2 != 0)) && ((pc20_l0 != 0) && ( !(pc20_l1 != 0)))) || ((pc20_l2 != 0) && ((pc20_l0 != 0) && ( !(pc20_l1 != 0)))))))) && (((((( !(pc19_l2 != 0)) && (( !(pc19_l0 != 0)) && ( !(pc19_l1 != 0)))) && (pc19_x == 0.0)) && (((( !(pc19_evt0 != 0)) && ( !(pc19_evt1 != 0))) || ((pc19_evt1 != 0) && ( !(pc19_evt0 != 0)))) || (((pc19_evt0 != 0) && ( !(pc19_evt1 != 0))) || ((pc19_evt0 != 0) && (pc19_evt1 != 0))))) && ((( !(pc19_l2 != 0)) && ((pc19_l0 != 0) && (pc19_l1 != 0))) || ((((( !(pc19_l2 != 0)) && (( !(pc19_l0 != 0)) && ( !(pc19_l1 != 0)))) || ((pc19_l2 != 0) && (( !(pc19_l0 != 0)) && ( !(pc19_l1 != 0))))) || ((( !(pc19_l2 != 0)) && ((pc19_l1 != 0) && ( !(pc19_l0 != 0)))) || ((pc19_l2 != 0) && ((pc19_l1 != 0) && ( !(pc19_l0 != 0)))))) || ((( !(pc19_l2 != 0)) && ((pc19_l0 != 0) && ( !(pc19_l1 != 0)))) || ((pc19_l2 != 0) && ((pc19_l0 != 0) && ( !(pc19_l1 != 0)))))))) && (((((( !(pc18_l2 != 0)) && (( !(pc18_l0 != 0)) && ( !(pc18_l1 != 0)))) && (pc18_x == 0.0)) && (((( !(pc18_evt0 != 0)) && ( !(pc18_evt1 != 0))) || ((pc18_evt1 != 0) && ( !(pc18_evt0 != 0)))) || (((pc18_evt0 != 0) && ( !(pc18_evt1 != 0))) || ((pc18_evt0 != 0) && (pc18_evt1 != 0))))) && ((( !(pc18_l2 != 0)) && ((pc18_l0 != 0) && (pc18_l1 != 0))) || ((((( !(pc18_l2 != 0)) && (( !(pc18_l0 != 0)) && ( !(pc18_l1 != 0)))) || ((pc18_l2 != 0) && (( !(pc18_l0 != 0)) && ( !(pc18_l1 != 0))))) || ((( !(pc18_l2 != 0)) && ((pc18_l1 != 0) && ( !(pc18_l0 != 0)))) || ((pc18_l2 != 0) && ((pc18_l1 != 0) && ( !(pc18_l0 != 0)))))) || ((( !(pc18_l2 != 0)) && ((pc18_l0 != 0) && ( !(pc18_l1 != 0)))) || ((pc18_l2 != 0) && ((pc18_l0 != 0) && ( !(pc18_l1 != 0)))))))) && (((((( !(pc17_l2 != 0)) && (( !(pc17_l0 != 0)) && ( !(pc17_l1 != 0)))) && (pc17_x == 0.0)) && (((( !(pc17_evt0 != 0)) && ( !(pc17_evt1 != 0))) || ((pc17_evt1 != 0) && ( !(pc17_evt0 != 0)))) || (((pc17_evt0 != 0) && ( !(pc17_evt1 != 0))) || ((pc17_evt0 != 0) && (pc17_evt1 != 0))))) && ((( !(pc17_l2 != 0)) && ((pc17_l0 != 0) && (pc17_l1 != 0))) || ((((( !(pc17_l2 != 0)) && (( !(pc17_l0 != 0)) && ( !(pc17_l1 != 0)))) || ((pc17_l2 != 0) && (( !(pc17_l0 != 0)) && ( !(pc17_l1 != 0))))) || ((( !(pc17_l2 != 0)) && ((pc17_l1 != 0) && ( !(pc17_l0 != 0)))) || ((pc17_l2 != 0) && ((pc17_l1 != 0) && ( !(pc17_l0 != 0)))))) || ((( !(pc17_l2 != 0)) && ((pc17_l0 != 0) && ( !(pc17_l1 != 0)))) || ((pc17_l2 != 0) && ((pc17_l0 != 0) && ( !(pc17_l1 != 0)))))))) && (((((( !(pc16_l2 != 0)) && (( !(pc16_l0 != 0)) && ( !(pc16_l1 != 0)))) && (pc16_x == 0.0)) && (((( !(pc16_evt0 != 0)) && ( !(pc16_evt1 != 0))) || ((pc16_evt1 != 0) && ( !(pc16_evt0 != 0)))) || (((pc16_evt0 != 0) && ( !(pc16_evt1 != 0))) || ((pc16_evt0 != 0) && (pc16_evt1 != 0))))) && ((( !(pc16_l2 != 0)) && ((pc16_l0 != 0) && (pc16_l1 != 0))) || ((((( !(pc16_l2 != 0)) && (( !(pc16_l0 != 0)) && ( !(pc16_l1 != 0)))) || ((pc16_l2 != 0) && (( !(pc16_l0 != 0)) && ( !(pc16_l1 != 0))))) || ((( !(pc16_l2 != 0)) && ((pc16_l1 != 0) && ( !(pc16_l0 != 0)))) || ((pc16_l2 != 0) && ((pc16_l1 != 0) && ( !(pc16_l0 != 0)))))) || ((( !(pc16_l2 != 0)) && ((pc16_l0 != 0) && ( !(pc16_l1 != 0)))) || ((pc16_l2 != 0) && ((pc16_l0 != 0) && ( !(pc16_l1 != 0)))))))) && (((((( !(pc15_l2 != 0)) && (( !(pc15_l0 != 0)) && ( !(pc15_l1 != 0)))) && (pc15_x == 0.0)) && (((( !(pc15_evt0 != 0)) && ( !(pc15_evt1 != 0))) || ((pc15_evt1 != 0) && ( !(pc15_evt0 != 0)))) || (((pc15_evt0 != 0) && ( !(pc15_evt1 != 0))) || ((pc15_evt0 != 0) && (pc15_evt1 != 0))))) && ((( !(pc15_l2 != 0)) && ((pc15_l0 != 0) && (pc15_l1 != 0))) || ((((( !(pc15_l2 != 0)) && (( !(pc15_l0 != 0)) && ( !(pc15_l1 != 0)))) || ((pc15_l2 != 0) && (( !(pc15_l0 != 0)) && ( !(pc15_l1 != 0))))) || ((( !(pc15_l2 != 0)) && ((pc15_l1 != 0) && ( !(pc15_l0 != 0)))) || ((pc15_l2 != 0) && ((pc15_l1 != 0) && ( !(pc15_l0 != 0)))))) || ((( !(pc15_l2 != 0)) && ((pc15_l0 != 0) && ( !(pc15_l1 != 0)))) || ((pc15_l2 != 0) && ((pc15_l0 != 0) && ( !(pc15_l1 != 0)))))))) && (((((( !(pc14_l2 != 0)) && (( !(pc14_l0 != 0)) && ( !(pc14_l1 != 0)))) && (pc14_x == 0.0)) && (((( !(pc14_evt0 != 0)) && ( !(pc14_evt1 != 0))) || ((pc14_evt1 != 0) && ( !(pc14_evt0 != 0)))) || (((pc14_evt0 != 0) && ( !(pc14_evt1 != 0))) || ((pc14_evt0 != 0) && (pc14_evt1 != 0))))) && ((( !(pc14_l2 != 0)) && ((pc14_l0 != 0) && (pc14_l1 != 0))) || ((((( !(pc14_l2 != 0)) && (( !(pc14_l0 != 0)) && ( !(pc14_l1 != 0)))) || ((pc14_l2 != 0) && (( !(pc14_l0 != 0)) && ( !(pc14_l1 != 0))))) || ((( !(pc14_l2 != 0)) && ((pc14_l1 != 0) && ( !(pc14_l0 != 0)))) || ((pc14_l2 != 0) && ((pc14_l1 != 0) && ( !(pc14_l0 != 0)))))) || ((( !(pc14_l2 != 0)) && ((pc14_l0 != 0) && ( !(pc14_l1 != 0)))) || ((pc14_l2 != 0) && ((pc14_l0 != 0) && ( !(pc14_l1 != 0)))))))) && (((((( !(pc13_l2 != 0)) && (( !(pc13_l0 != 0)) && ( !(pc13_l1 != 0)))) && (pc13_x == 0.0)) && (((( !(pc13_evt0 != 0)) && ( !(pc13_evt1 != 0))) || ((pc13_evt1 != 0) && ( !(pc13_evt0 != 0)))) || (((pc13_evt0 != 0) && ( !(pc13_evt1 != 0))) || ((pc13_evt0 != 0) && (pc13_evt1 != 0))))) && ((( !(pc13_l2 != 0)) && ((pc13_l0 != 0) && (pc13_l1 != 0))) || ((((( !(pc13_l2 != 0)) && (( !(pc13_l0 != 0)) && ( !(pc13_l1 != 0)))) || ((pc13_l2 != 0) && (( !(pc13_l0 != 0)) && ( !(pc13_l1 != 0))))) || ((( !(pc13_l2 != 0)) && ((pc13_l1 != 0) && ( !(pc13_l0 != 0)))) || ((pc13_l2 != 0) && ((pc13_l1 != 0) && ( !(pc13_l0 != 0)))))) || ((( !(pc13_l2 != 0)) && ((pc13_l0 != 0) && ( !(pc13_l1 != 0)))) || ((pc13_l2 != 0) && ((pc13_l0 != 0) && ( !(pc13_l1 != 0)))))))) && (((((( !(pc12_l2 != 0)) && (( !(pc12_l0 != 0)) && ( !(pc12_l1 != 0)))) && (pc12_x == 0.0)) && (((( !(pc12_evt0 != 0)) && ( !(pc12_evt1 != 0))) || ((pc12_evt1 != 0) && ( !(pc12_evt0 != 0)))) || (((pc12_evt0 != 0) && ( !(pc12_evt1 != 0))) || ((pc12_evt0 != 0) && (pc12_evt1 != 0))))) && ((( !(pc12_l2 != 0)) && ((pc12_l0 != 0) && (pc12_l1 != 0))) || ((((( !(pc12_l2 != 0)) && (( !(pc12_l0 != 0)) && ( !(pc12_l1 != 0)))) || ((pc12_l2 != 0) && (( !(pc12_l0 != 0)) && ( !(pc12_l1 != 0))))) || ((( !(pc12_l2 != 0)) && ((pc12_l1 != 0) && ( !(pc12_l0 != 0)))) || ((pc12_l2 != 0) && ((pc12_l1 != 0) && ( !(pc12_l0 != 0)))))) || ((( !(pc12_l2 != 0)) && ((pc12_l0 != 0) && ( !(pc12_l1 != 0)))) || ((pc12_l2 != 0) && ((pc12_l0 != 0) && ( !(pc12_l1 != 0)))))))) && (((((( !(pc11_l2 != 0)) && (( !(pc11_l0 != 0)) && ( !(pc11_l1 != 0)))) && (pc11_x == 0.0)) && (((( !(pc11_evt0 != 0)) && ( !(pc11_evt1 != 0))) || ((pc11_evt1 != 0) && ( !(pc11_evt0 != 0)))) || (((pc11_evt0 != 0) && ( !(pc11_evt1 != 0))) || ((pc11_evt0 != 0) && (pc11_evt1 != 0))))) && ((( !(pc11_l2 != 0)) && ((pc11_l0 != 0) && (pc11_l1 != 0))) || ((((( !(pc11_l2 != 0)) && (( !(pc11_l0 != 0)) && ( !(pc11_l1 != 0)))) || ((pc11_l2 != 0) && (( !(pc11_l0 != 0)) && ( !(pc11_l1 != 0))))) || ((( !(pc11_l2 != 0)) && ((pc11_l1 != 0) && ( !(pc11_l0 != 0)))) || ((pc11_l2 != 0) && ((pc11_l1 != 0) && ( !(pc11_l0 != 0)))))) || ((( !(pc11_l2 != 0)) && ((pc11_l0 != 0) && ( !(pc11_l1 != 0)))) || ((pc11_l2 != 0) && ((pc11_l0 != 0) && ( !(pc11_l1 != 0)))))))) && (((((( !(pc10_l2 != 0)) && (( !(pc10_l0 != 0)) && ( !(pc10_l1 != 0)))) && (pc10_x == 0.0)) && (((( !(pc10_evt0 != 0)) && ( !(pc10_evt1 != 0))) || ((pc10_evt1 != 0) && ( !(pc10_evt0 != 0)))) || (((pc10_evt0 != 0) && ( !(pc10_evt1 != 0))) || ((pc10_evt0 != 0) && (pc10_evt1 != 0))))) && ((( !(pc10_l2 != 0)) && ((pc10_l0 != 0) && (pc10_l1 != 0))) || ((((( !(pc10_l2 != 0)) && (( !(pc10_l0 != 0)) && ( !(pc10_l1 != 0)))) || ((pc10_l2 != 0) && (( !(pc10_l0 != 0)) && ( !(pc10_l1 != 0))))) || ((( !(pc10_l2 != 0)) && ((pc10_l1 != 0) && ( !(pc10_l0 != 0)))) || ((pc10_l2 != 0) && ((pc10_l1 != 0) && ( !(pc10_l0 != 0)))))) || ((( !(pc10_l2 != 0)) && ((pc10_l0 != 0) && ( !(pc10_l1 != 0)))) || ((pc10_l2 != 0) && ((pc10_l0 != 0) && ( !(pc10_l1 != 0)))))))) && (((((( !(pc9_l2 != 0)) && (( !(pc9_l0 != 0)) && ( !(pc9_l1 != 0)))) && (pc9_x == 0.0)) && (((( !(pc9_evt0 != 0)) && ( !(pc9_evt1 != 0))) || ((pc9_evt1 != 0) && ( !(pc9_evt0 != 0)))) || (((pc9_evt0 != 0) && ( !(pc9_evt1 != 0))) || ((pc9_evt0 != 0) && (pc9_evt1 != 0))))) && ((( !(pc9_l2 != 0)) && ((pc9_l0 != 0) && (pc9_l1 != 0))) || ((((( !(pc9_l2 != 0)) && (( !(pc9_l0 != 0)) && ( !(pc9_l1 != 0)))) || ((pc9_l2 != 0) && (( !(pc9_l0 != 0)) && ( !(pc9_l1 != 0))))) || ((( !(pc9_l2 != 0)) && ((pc9_l1 != 0) && ( !(pc9_l0 != 0)))) || ((pc9_l2 != 0) && ((pc9_l1 != 0) && ( !(pc9_l0 != 0)))))) || ((( !(pc9_l2 != 0)) && ((pc9_l0 != 0) && ( !(pc9_l1 != 0)))) || ((pc9_l2 != 0) && ((pc9_l0 != 0) && ( !(pc9_l1 != 0)))))))) && (((((( !(pc8_l2 != 0)) && (( !(pc8_l0 != 0)) && ( !(pc8_l1 != 0)))) && (pc8_x == 0.0)) && (((( !(pc8_evt0 != 0)) && ( !(pc8_evt1 != 0))) || ((pc8_evt1 != 0) && ( !(pc8_evt0 != 0)))) || (((pc8_evt0 != 0) && ( !(pc8_evt1 != 0))) || ((pc8_evt0 != 0) && (pc8_evt1 != 0))))) && ((( !(pc8_l2 != 0)) && ((pc8_l0 != 0) && (pc8_l1 != 0))) || ((((( !(pc8_l2 != 0)) && (( !(pc8_l0 != 0)) && ( !(pc8_l1 != 0)))) || ((pc8_l2 != 0) && (( !(pc8_l0 != 0)) && ( !(pc8_l1 != 0))))) || ((( !(pc8_l2 != 0)) && ((pc8_l1 != 0) && ( !(pc8_l0 != 0)))) || ((pc8_l2 != 0) && ((pc8_l1 != 0) && ( !(pc8_l0 != 0)))))) || ((( !(pc8_l2 != 0)) && ((pc8_l0 != 0) && ( !(pc8_l1 != 0)))) || ((pc8_l2 != 0) && ((pc8_l0 != 0) && ( !(pc8_l1 != 0)))))))) && (((((( !(pc7_l2 != 0)) && (( !(pc7_l0 != 0)) && ( !(pc7_l1 != 0)))) && (pc7_x == 0.0)) && (((( !(pc7_evt0 != 0)) && ( !(pc7_evt1 != 0))) || ((pc7_evt1 != 0) && ( !(pc7_evt0 != 0)))) || (((pc7_evt0 != 0) && ( !(pc7_evt1 != 0))) || ((pc7_evt0 != 0) && (pc7_evt1 != 0))))) && ((( !(pc7_l2 != 0)) && ((pc7_l0 != 0) && (pc7_l1 != 0))) || ((((( !(pc7_l2 != 0)) && (( !(pc7_l0 != 0)) && ( !(pc7_l1 != 0)))) || ((pc7_l2 != 0) && (( !(pc7_l0 != 0)) && ( !(pc7_l1 != 0))))) || ((( !(pc7_l2 != 0)) && ((pc7_l1 != 0) && ( !(pc7_l0 != 0)))) || ((pc7_l2 != 0) && ((pc7_l1 != 0) && ( !(pc7_l0 != 0)))))) || ((( !(pc7_l2 != 0)) && ((pc7_l0 != 0) && ( !(pc7_l1 != 0)))) || ((pc7_l2 != 0) && ((pc7_l0 != 0) && ( !(pc7_l1 != 0)))))))) && (((((( !(pc6_l2 != 0)) && (( !(pc6_l0 != 0)) && ( !(pc6_l1 != 0)))) && (pc6_x == 0.0)) && (((( !(pc6_evt0 != 0)) && ( !(pc6_evt1 != 0))) || ((pc6_evt1 != 0) && ( !(pc6_evt0 != 0)))) || (((pc6_evt0 != 0) && ( !(pc6_evt1 != 0))) || ((pc6_evt0 != 0) && (pc6_evt1 != 0))))) && ((( !(pc6_l2 != 0)) && ((pc6_l0 != 0) && (pc6_l1 != 0))) || ((((( !(pc6_l2 != 0)) && (( !(pc6_l0 != 0)) && ( !(pc6_l1 != 0)))) || ((pc6_l2 != 0) && (( !(pc6_l0 != 0)) && ( !(pc6_l1 != 0))))) || ((( !(pc6_l2 != 0)) && ((pc6_l1 != 0) && ( !(pc6_l0 != 0)))) || ((pc6_l2 != 0) && ((pc6_l1 != 0) && ( !(pc6_l0 != 0)))))) || ((( !(pc6_l2 != 0)) && ((pc6_l0 != 0) && ( !(pc6_l1 != 0)))) || ((pc6_l2 != 0) && ((pc6_l0 != 0) && ( !(pc6_l1 != 0)))))))) && (((((( !(pc5_l2 != 0)) && (( !(pc5_l0 != 0)) && ( !(pc5_l1 != 0)))) && (pc5_x == 0.0)) && (((( !(pc5_evt0 != 0)) && ( !(pc5_evt1 != 0))) || ((pc5_evt1 != 0) && ( !(pc5_evt0 != 0)))) || (((pc5_evt0 != 0) && ( !(pc5_evt1 != 0))) || ((pc5_evt0 != 0) && (pc5_evt1 != 0))))) && ((( !(pc5_l2 != 0)) && ((pc5_l0 != 0) && (pc5_l1 != 0))) || ((((( !(pc5_l2 != 0)) && (( !(pc5_l0 != 0)) && ( !(pc5_l1 != 0)))) || ((pc5_l2 != 0) && (( !(pc5_l0 != 0)) && ( !(pc5_l1 != 0))))) || ((( !(pc5_l2 != 0)) && ((pc5_l1 != 0) && ( !(pc5_l0 != 0)))) || ((pc5_l2 != 0) && ((pc5_l1 != 0) && ( !(pc5_l0 != 0)))))) || ((( !(pc5_l2 != 0)) && ((pc5_l0 != 0) && ( !(pc5_l1 != 0)))) || ((pc5_l2 != 0) && ((pc5_l0 != 0) && ( !(pc5_l1 != 0)))))))) && (((((( !(pc4_l2 != 0)) && (( !(pc4_l0 != 0)) && ( !(pc4_l1 != 0)))) && (pc4_x == 0.0)) && (((( !(pc4_evt0 != 0)) && ( !(pc4_evt1 != 0))) || ((pc4_evt1 != 0) && ( !(pc4_evt0 != 0)))) || (((pc4_evt0 != 0) && ( !(pc4_evt1 != 0))) || ((pc4_evt0 != 0) && (pc4_evt1 != 0))))) && ((( !(pc4_l2 != 0)) && ((pc4_l0 != 0) && (pc4_l1 != 0))) || ((((( !(pc4_l2 != 0)) && (( !(pc4_l0 != 0)) && ( !(pc4_l1 != 0)))) || ((pc4_l2 != 0) && (( !(pc4_l0 != 0)) && ( !(pc4_l1 != 0))))) || ((( !(pc4_l2 != 0)) && ((pc4_l1 != 0) && ( !(pc4_l0 != 0)))) || ((pc4_l2 != 0) && ((pc4_l1 != 0) && ( !(pc4_l0 != 0)))))) || ((( !(pc4_l2 != 0)) && ((pc4_l0 != 0) && ( !(pc4_l1 != 0)))) || ((pc4_l2 != 0) && ((pc4_l0 != 0) && ( !(pc4_l1 != 0)))))))) && (((((( !(pc3_l2 != 0)) && (( !(pc3_l0 != 0)) && ( !(pc3_l1 != 0)))) && (pc3_x == 0.0)) && (((( !(pc3_evt0 != 0)) && ( !(pc3_evt1 != 0))) || ((pc3_evt1 != 0) && ( !(pc3_evt0 != 0)))) || (((pc3_evt0 != 0) && ( !(pc3_evt1 != 0))) || ((pc3_evt0 != 0) && (pc3_evt1 != 0))))) && ((( !(pc3_l2 != 0)) && ((pc3_l0 != 0) && (pc3_l1 != 0))) || ((((( !(pc3_l2 != 0)) && (( !(pc3_l0 != 0)) && ( !(pc3_l1 != 0)))) || ((pc3_l2 != 0) && (( !(pc3_l0 != 0)) && ( !(pc3_l1 != 0))))) || ((( !(pc3_l2 != 0)) && ((pc3_l1 != 0) && ( !(pc3_l0 != 0)))) || ((pc3_l2 != 0) && ((pc3_l1 != 0) && ( !(pc3_l0 != 0)))))) || ((( !(pc3_l2 != 0)) && ((pc3_l0 != 0) && ( !(pc3_l1 != 0)))) || ((pc3_l2 != 0) && ((pc3_l0 != 0) && ( !(pc3_l1 != 0)))))))) && (((((( !(pc2_l2 != 0)) && (( !(pc2_l0 != 0)) && ( !(pc2_l1 != 0)))) && (pc2_x == 0.0)) && (((( !(pc2_evt0 != 0)) && ( !(pc2_evt1 != 0))) || ((pc2_evt1 != 0) && ( !(pc2_evt0 != 0)))) || (((pc2_evt0 != 0) && ( !(pc2_evt1 != 0))) || ((pc2_evt0 != 0) && (pc2_evt1 != 0))))) && ((( !(pc2_l2 != 0)) && ((pc2_l0 != 0) && (pc2_l1 != 0))) || ((((( !(pc2_l2 != 0)) && (( !(pc2_l0 != 0)) && ( !(pc2_l1 != 0)))) || ((pc2_l2 != 0) && (( !(pc2_l0 != 0)) && ( !(pc2_l1 != 0))))) || ((( !(pc2_l2 != 0)) && ((pc2_l1 != 0) && ( !(pc2_l0 != 0)))) || ((pc2_l2 != 0) && ((pc2_l1 != 0) && ( !(pc2_l0 != 0)))))) || ((( !(pc2_l2 != 0)) && ((pc2_l0 != 0) && ( !(pc2_l1 != 0)))) || ((pc2_l2 != 0) && ((pc2_l0 != 0) && ( !(pc2_l1 != 0)))))))) && (((((( !(pc1_l2 != 0)) && (( !(pc1_l0 != 0)) && ( !(pc1_l1 != 0)))) && (pc1_x == 0.0)) && (((( !(pc1_evt0 != 0)) && ( !(pc1_evt1 != 0))) || ((pc1_evt1 != 0) && ( !(pc1_evt0 != 0)))) || (((pc1_evt0 != 0) && ( !(pc1_evt1 != 0))) || ((pc1_evt0 != 0) && (pc1_evt1 != 0))))) && ((( !(pc1_l2 != 0)) && ((pc1_l0 != 0) && (pc1_l1 != 0))) || ((((( !(pc1_l2 != 0)) && (( !(pc1_l0 != 0)) && ( !(pc1_l1 != 0)))) || ((pc1_l2 != 0) && (( !(pc1_l0 != 0)) && ( !(pc1_l1 != 0))))) || ((( !(pc1_l2 != 0)) && ((pc1_l1 != 0) && ( !(pc1_l0 != 0)))) || ((pc1_l2 != 0) && ((pc1_l1 != 0) && ( !(pc1_l0 != 0)))))) || ((( !(pc1_l2 != 0)) && ((pc1_l0 != 0) && ( !(pc1_l1 != 0)))) || ((pc1_l2 != 0) && ((pc1_l0 != 0) && ( !(pc1_l1 != 0)))))))) && (((((( !(pc0_l2 != 0)) && (( !(pc0_l0 != 0)) && ( !(pc0_l1 != 0)))) && (pc0_x == 0.0)) && (((( !(pc0_evt0 != 0)) && ( !(pc0_evt1 != 0))) || ((pc0_evt1 != 0) && ( !(pc0_evt0 != 0)))) || (((pc0_evt0 != 0) && ( !(pc0_evt1 != 0))) || ((pc0_evt0 != 0) && (pc0_evt1 != 0))))) && ((( !(pc0_l2 != 0)) && ((pc0_l0 != 0) && (pc0_l1 != 0))) || ((((( !(pc0_l2 != 0)) && (( !(pc0_l0 != 0)) && ( !(pc0_l1 != 0)))) || ((pc0_l2 != 0) && (( !(pc0_l0 != 0)) && ( !(pc0_l1 != 0))))) || ((( !(pc0_l2 != 0)) && ((pc0_l1 != 0) && ( !(pc0_l0 != 0)))) || ((pc0_l2 != 0) && ((pc0_l1 != 0) && ( !(pc0_l0 != 0)))))) || ((( !(pc0_l2 != 0)) && ((pc0_l0 != 0) && ( !(pc0_l1 != 0)))) || ((pc0_l2 != 0) && ((pc0_l0 != 0) && ( !(pc0_l1 != 0)))))))) && ((( !(a29_l != 0)) && ((( !(a29_evt0 != 0)) && ( !(a29_evt1 != 0))) || (((a29_evt1 != 0) && ( !(a29_evt0 != 0))) || ((a29_evt0 != 0) && ( !(a29_evt1 != 0)))))) && ((( !(a28_l != 0)) && ((( !(a28_evt0 != 0)) && ( !(a28_evt1 != 0))) || (((a28_evt1 != 0) && ( !(a28_evt0 != 0))) || ((a28_evt0 != 0) && ( !(a28_evt1 != 0)))))) && ((( !(a27_l != 0)) && ((( !(a27_evt0 != 0)) && ( !(a27_evt1 != 0))) || (((a27_evt1 != 0) && ( !(a27_evt0 != 0))) || ((a27_evt0 != 0) && ( !(a27_evt1 != 0)))))) && ((( !(a26_l != 0)) && ((( !(a26_evt0 != 0)) && ( !(a26_evt1 != 0))) || (((a26_evt1 != 0) && ( !(a26_evt0 != 0))) || ((a26_evt0 != 0) && ( !(a26_evt1 != 0)))))) && ((( !(a25_l != 0)) && ((( !(a25_evt0 != 0)) && ( !(a25_evt1 != 0))) || (((a25_evt1 != 0) && ( !(a25_evt0 != 0))) || ((a25_evt0 != 0) && ( !(a25_evt1 != 0)))))) && ((( !(a24_l != 0)) && ((( !(a24_evt0 != 0)) && ( !(a24_evt1 != 0))) || (((a24_evt1 != 0) && ( !(a24_evt0 != 0))) || ((a24_evt0 != 0) && ( !(a24_evt1 != 0)))))) && ((( !(a23_l != 0)) && ((( !(a23_evt0 != 0)) && ( !(a23_evt1 != 0))) || (((a23_evt1 != 0) && ( !(a23_evt0 != 0))) || ((a23_evt0 != 0) && ( !(a23_evt1 != 0)))))) && ((( !(a22_l != 0)) && ((( !(a22_evt0 != 0)) && ( !(a22_evt1 != 0))) || (((a22_evt1 != 0) && ( !(a22_evt0 != 0))) || ((a22_evt0 != 0) && ( !(a22_evt1 != 0)))))) && ((( !(a21_l != 0)) && ((( !(a21_evt0 != 0)) && ( !(a21_evt1 != 0))) || (((a21_evt1 != 0) && ( !(a21_evt0 != 0))) || ((a21_evt0 != 0) && ( !(a21_evt1 != 0)))))) && ((( !(a20_l != 0)) && ((( !(a20_evt0 != 0)) && ( !(a20_evt1 != 0))) || (((a20_evt1 != 0) && ( !(a20_evt0 != 0))) || ((a20_evt0 != 0) && ( !(a20_evt1 != 0)))))) && ((( !(a19_l != 0)) && ((( !(a19_evt0 != 0)) && ( !(a19_evt1 != 0))) || (((a19_evt1 != 0) && ( !(a19_evt0 != 0))) || ((a19_evt0 != 0) && ( !(a19_evt1 != 0)))))) && ((( !(a18_l != 0)) && ((( !(a18_evt0 != 0)) && ( !(a18_evt1 != 0))) || (((a18_evt1 != 0) && ( !(a18_evt0 != 0))) || ((a18_evt0 != 0) && ( !(a18_evt1 != 0)))))) && ((( !(a17_l != 0)) && ((( !(a17_evt0 != 0)) && ( !(a17_evt1 != 0))) || (((a17_evt1 != 0) && ( !(a17_evt0 != 0))) || ((a17_evt0 != 0) && ( !(a17_evt1 != 0)))))) && ((( !(a16_l != 0)) && ((( !(a16_evt0 != 0)) && ( !(a16_evt1 != 0))) || (((a16_evt1 != 0) && ( !(a16_evt0 != 0))) || ((a16_evt0 != 0) && ( !(a16_evt1 != 0)))))) && ((( !(a15_l != 0)) && ((( !(a15_evt0 != 0)) && ( !(a15_evt1 != 0))) || (((a15_evt1 != 0) && ( !(a15_evt0 != 0))) || ((a15_evt0 != 0) && ( !(a15_evt1 != 0)))))) && ((( !(a14_l != 0)) && ((( !(a14_evt0 != 0)) && ( !(a14_evt1 != 0))) || (((a14_evt1 != 0) && ( !(a14_evt0 != 0))) || ((a14_evt0 != 0) && ( !(a14_evt1 != 0)))))) && ((( !(a13_l != 0)) && ((( !(a13_evt0 != 0)) && ( !(a13_evt1 != 0))) || (((a13_evt1 != 0) && ( !(a13_evt0 != 0))) || ((a13_evt0 != 0) && ( !(a13_evt1 != 0)))))) && ((( !(a12_l != 0)) && ((( !(a12_evt0 != 0)) && ( !(a12_evt1 != 0))) || (((a12_evt1 != 0) && ( !(a12_evt0 != 0))) || ((a12_evt0 != 0) && ( !(a12_evt1 != 0)))))) && ((( !(a11_l != 0)) && ((( !(a11_evt0 != 0)) && ( !(a11_evt1 != 0))) || (((a11_evt1 != 0) && ( !(a11_evt0 != 0))) || ((a11_evt0 != 0) && ( !(a11_evt1 != 0)))))) && ((( !(a10_l != 0)) && ((( !(a10_evt0 != 0)) && ( !(a10_evt1 != 0))) || (((a10_evt1 != 0) && ( !(a10_evt0 != 0))) || ((a10_evt0 != 0) && ( !(a10_evt1 != 0)))))) && ((( !(a9_l != 0)) && ((( !(a9_evt0 != 0)) && ( !(a9_evt1 != 0))) || (((a9_evt1 != 0) && ( !(a9_evt0 != 0))) || ((a9_evt0 != 0) && ( !(a9_evt1 != 0)))))) && ((( !(a8_l != 0)) && ((( !(a8_evt0 != 0)) && ( !(a8_evt1 != 0))) || (((a8_evt1 != 0) && ( !(a8_evt0 != 0))) || ((a8_evt0 != 0) && ( !(a8_evt1 != 0)))))) && ((( !(a7_l != 0)) && ((( !(a7_evt0 != 0)) && ( !(a7_evt1 != 0))) || (((a7_evt1 != 0) && ( !(a7_evt0 != 0))) || ((a7_evt0 != 0) && ( !(a7_evt1 != 0)))))) && ((( !(a6_l != 0)) && ((( !(a6_evt0 != 0)) && ( !(a6_evt1 != 0))) || (((a6_evt1 != 0) && ( !(a6_evt0 != 0))) || ((a6_evt0 != 0) && ( !(a6_evt1 != 0)))))) && ((( !(a5_l != 0)) && ((( !(a5_evt0 != 0)) && ( !(a5_evt1 != 0))) || (((a5_evt1 != 0) && ( !(a5_evt0 != 0))) || ((a5_evt0 != 0) && ( !(a5_evt1 != 0)))))) && ((( !(a4_l != 0)) && ((( !(a4_evt0 != 0)) && ( !(a4_evt1 != 0))) || (((a4_evt1 != 0) && ( !(a4_evt0 != 0))) || ((a4_evt0 != 0) && ( !(a4_evt1 != 0)))))) && ((( !(a3_l != 0)) && ((( !(a3_evt0 != 0)) && ( !(a3_evt1 != 0))) || (((a3_evt1 != 0) && ( !(a3_evt0 != 0))) || ((a3_evt0 != 0) && ( !(a3_evt1 != 0)))))) && ((( !(a2_l != 0)) && ((( !(a2_evt0 != 0)) && ( !(a2_evt1 != 0))) || (((a2_evt1 != 0) && ( !(a2_evt0 != 0))) || ((a2_evt0 != 0) && ( !(a2_evt1 != 0)))))) && ((( !(a1_l != 0)) && ((( !(a1_evt0 != 0)) && ( !(a1_evt1 != 0))) || (((a1_evt1 != 0) && ( !(a1_evt0 != 0))) || ((a1_evt0 != 0) && ( !(a1_evt1 != 0)))))) && ((( !(a0_l != 0)) && ((( !(a0_evt0 != 0)) && ( !(a0_evt1 != 0))) || (((a0_evt1 != 0) && ( !(a0_evt0 != 0))) || ((a0_evt0 != 0) && ( !(a0_evt1 != 0)))))) && ((c_initial != 0) && (0.0 <= delta)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) && ((id == 29) || ((id == 28) || ((id == 27) || ((id == 26) || ((id == 25) || ((id == 24) || ((id == 23) || ((id == 22) || ((id == 21) || ((id == 20) || ((id == 19) || ((id == 18) || ((id == 17) || ((id == 16) || ((id == 15) || ((id == 14) || ((id == 13) || ((id == 12) || ((id == 11) || ((id == 10) || ((id == 9) || ((id == 8) || ((id == 7) || ((id == 6) || ((id == 5) || ((id == 4) || ((id == 3) || ((id == 2) || ((id == 0) || (id == 1))))))))))))))))))))))))))))))) && (delta == _diverge_delta)); while (__ok) { _x__diverge_delta = __VERIFIER_nondet_float(); _x_pc29_l2 = __VERIFIER_nondet_bool(); _x_pc29_l1 = __VERIFIER_nondet_bool(); _x_pc29_evt1 = __VERIFIER_nondet_bool(); _x_pc29_x = __VERIFIER_nondet_float(); _x_pc28_l1 = __VERIFIER_nondet_bool(); _x_pc28_l0 = __VERIFIER_nondet_bool(); _x_pc28_evt1 = __VERIFIER_nondet_bool(); _x_pc28_x = __VERIFIER_nondet_float(); _x_pc27_l2 = __VERIFIER_nondet_bool(); _x_pc27_l1 = __VERIFIER_nondet_bool(); _x_pc27_l0 = __VERIFIER_nondet_bool(); _x_pc27_evt1 = __VERIFIER_nondet_bool(); _x_pc4_l1 = __VERIFIER_nondet_bool(); _x_pc4_evt1 = __VERIFIER_nondet_bool(); _x_pc3_evt1 = __VERIFIER_nondet_bool(); _x_a13_evt1 = __VERIFIER_nondet_bool(); _x_pc3_x = __VERIFIER_nondet_float(); _x_pc11_x = __VERIFIER_nondet_float(); _x_pc17_x = __VERIFIER_nondet_float(); _x_a17_l = __VERIFIER_nondet_bool(); _x_pc10_x = __VERIFIER_nondet_float(); _x_pc1_l1 = __VERIFIER_nondet_bool(); _x_a0_l = __VERIFIER_nondet_bool(); _x_pc13_x = __VERIFIER_nondet_float(); _x_pc1_l0 = __VERIFIER_nondet_bool(); _x_pc1_x = __VERIFIER_nondet_float(); _x_pc0_l0 = __VERIFIER_nondet_bool(); _x_pc26_l0 = __VERIFIER_nondet_bool(); _x_a27_evt0 = __VERIFIER_nondet_bool(); _x_id = __VERIFIER_nondet_int(); _x_pc26_evt1 = __VERIFIER_nondet_bool(); _x_a29_evt1 = __VERIFIER_nondet_bool(); _x_pc18_l0 = __VERIFIER_nondet_bool(); _x_a29_evt0 = __VERIFIER_nondet_bool(); _x_a1_evt1 = __VERIFIER_nondet_bool(); _x_pc19_x = __VERIFIER_nondet_float(); _x_a28_evt1 = __VERIFIER_nondet_bool(); _x_a28_evt0 = __VERIFIER_nondet_bool(); _x_a27_evt1 = __VERIFIER_nondet_bool(); _x_c_move = __VERIFIER_nondet_bool(); _x_a26_evt1 = __VERIFIER_nondet_bool(); _x_pc8_l0 = __VERIFIER_nondet_bool(); _x_a26_evt0 = __VERIFIER_nondet_bool(); _x_a25_evt1 = __VERIFIER_nondet_bool(); _x_pc4_l2 = __VERIFIER_nondet_bool(); _x_pc17_evt0 = __VERIFIER_nondet_bool(); _x_pc23_l2 = __VERIFIER_nondet_bool(); _x_a25_evt0 = __VERIFIER_nondet_bool(); _x_pc23_l1 = __VERIFIER_nondet_bool(); _x_a24_evt0 = __VERIFIER_nondet_bool(); _x_pc6_evt1 = __VERIFIER_nondet_bool(); _x_pc6_l0 = __VERIFIER_nondet_bool(); _x_a23_evt0 = __VERIFIER_nondet_bool(); _x_pc24_l0 = __VERIFIER_nondet_bool(); _x_a23_l = __VERIFIER_nondet_bool(); _x_pc2_l2 = __VERIFIER_nondet_bool(); _x_pc15_evt0 = __VERIFIER_nondet_bool(); _x_pc21_l2 = __VERIFIER_nondet_bool(); _x_a6_evt1 = __VERIFIER_nondet_bool(); _x_pc3_l1 = __VERIFIER_nondet_bool(); _x_a22_evt0 = __VERIFIER_nondet_bool(); _x_a29_l = __VERIFIER_nondet_bool(); _x_pc15_l1 = __VERIFIER_nondet_bool(); _x_a21_evt0 = __VERIFIER_nondet_bool(); _x_a21_l = __VERIFIER_nondet_bool(); _x_pc0_x = __VERIFIER_nondet_float(); _x_pc11_evt0 = __VERIFIER_nondet_bool(); _x_pc17_l2 = __VERIFIER_nondet_bool(); _x_pc26_x = __VERIFIER_nondet_float(); _x_a20_evt0 = __VERIFIER_nondet_bool(); _x_pc5_evt0 = __VERIFIER_nondet_bool(); _x_pc20_x = __VERIFIER_nondet_float(); _x_a27_l = __VERIFIER_nondet_bool(); _x_pc10_l2 = __VERIFIER_nondet_bool(); _x_pc23_evt0 = __VERIFIER_nondet_bool(); _x_pc0_l1 = __VERIFIER_nondet_bool(); _x_a8_evt0 = __VERIFIER_nondet_bool(); _x_pc26_l1 = __VERIFIER_nondet_bool(); _x_a19_l = __VERIFIER_nondet_bool(); _x_a26_l = __VERIFIER_nondet_bool(); _x_pc5_l1 = __VERIFIER_nondet_bool(); _x_a18_evt0 = __VERIFIER_nondet_bool(); _x_a6_l = __VERIFIER_nondet_bool(); _x_a14_evt0 = __VERIFIER_nondet_bool(); _x_pc3_evt0 = __VERIFIER_nondet_bool(); _x_pc5_evt1 = __VERIFIER_nondet_bool(); _x_a13_evt0 = __VERIFIER_nondet_bool(); _x_pc18_x = __VERIFIER_nondet_float(); _x_a5_evt1 = __VERIFIER_nondet_bool(); _x_pc10_evt0 = __VERIFIER_nondet_bool(); _x_pc29_evt0 = __VERIFIER_nondet_bool(); _x_pc16_l2 = __VERIFIER_nondet_bool(); _x_a28_l = __VERIFIER_nondet_bool(); _x_pc25_x = __VERIFIER_nondet_float(); _x_pc4_x = __VERIFIER_nondet_float(); _x_a15_l = __VERIFIER_nondet_bool(); _x_a4_l = __VERIFIER_nondet_bool(); _x_pc25_l0 = __VERIFIER_nondet_bool(); _x_a23_evt1 = __VERIFIER_nondet_bool(); _x_pc24_l1 = __VERIFIER_nondet_bool(); _x_a12_evt0 = __VERIFIER_nondet_bool(); _x_a3_evt1 = __VERIFIER_nondet_bool(); _x_a5_l = __VERIFIER_nondet_bool(); _x_a20_l = __VERIFIER_nondet_bool(); _x_pc7_evt1 = __VERIFIER_nondet_bool(); _x_a24_evt1 = __VERIFIER_nondet_bool(); _x_pc1_evt0 = __VERIFIER_nondet_bool(); _x_pc16_x = __VERIFIER_nondet_float(); _x_a14_l = __VERIFIER_nondet_bool(); _x_pc4_evt0 = __VERIFIER_nondet_bool(); _x_a9_l = __VERIFIER_nondet_bool(); _x_a24_l = __VERIFIER_nondet_bool(); _x_pc8_l1 = __VERIFIER_nondet_bool(); _x_a25_l = __VERIFIER_nondet_bool(); _x_pc14_evt1 = __VERIFIER_nondet_bool(); _x_pc4_l0 = __VERIFIER_nondet_bool(); _x_a1_l = __VERIFIER_nondet_bool(); _x_pc15_l0 = __VERIFIER_nondet_bool(); _x_a20_evt1 = __VERIFIER_nondet_bool(); _x_pc14_l1 = __VERIFIER_nondet_bool(); _x_a9_evt0 = __VERIFIER_nondet_bool(); _x_pc14_l0 = __VERIFIER_nondet_bool(); _x_c_initial = __VERIFIER_nondet_bool(); _x_a10_l = __VERIFIER_nondet_bool(); _x_pc3_l0 = __VERIFIER_nondet_bool(); _x_a6_evt0 = __VERIFIER_nondet_bool(); _x_pc29_l0 = __VERIFIER_nondet_bool(); _x_pc0_l2 = __VERIFIER_nondet_bool(); _x_pc7_l2 = __VERIFIER_nondet_bool(); _x_pc20_evt0 = __VERIFIER_nondet_bool(); _x_pc26_l2 = __VERIFIER_nondet_bool(); _x_pc7_l0 = __VERIFIER_nondet_bool(); _x_a8_l = __VERIFIER_nondet_bool(); _x_pc17_evt1 = __VERIFIER_nondet_bool(); _x_a16_evt0 = __VERIFIER_nondet_bool(); _x_pc13_evt0 = __VERIFIER_nondet_bool(); _x_pc19_l2 = __VERIFIER_nondet_bool(); _x_a7_evt1 = __VERIFIER_nondet_bool(); _x_a18_evt1 = __VERIFIER_nondet_bool(); _x_a7_evt0 = __VERIFIER_nondet_bool(); _x_pc24_evt1 = __VERIFIER_nondet_bool(); _x_a0_evt1 = __VERIFIER_nondet_bool(); _x_pc7_l1 = __VERIFIER_nondet_bool(); _x_a9_evt1 = __VERIFIER_nondet_bool(); _x_pc11_l0 = __VERIFIER_nondet_bool(); _x_pc1_evt1 = __VERIFIER_nondet_bool(); _x_pc28_l2 = __VERIFIER_nondet_bool(); _x_a3_l = __VERIFIER_nondet_bool(); _x_pc12_x = __VERIFIER_nondet_float(); _x_a22_evt1 = __VERIFIER_nondet_bool(); _x_a11_evt0 = __VERIFIER_nondet_bool(); _x_pc2_evt1 = __VERIFIER_nondet_bool(); _x_a2_evt1 = __VERIFIER_nondet_bool(); _x_pc15_x = __VERIFIER_nondet_float(); _x_a12_l = __VERIFIER_nondet_bool(); _x_pc18_l1 = __VERIFIER_nondet_bool(); _x_pc2_l1 = __VERIFIER_nondet_bool(); _x_a7_l = __VERIFIER_nondet_bool(); _x_a16_l = __VERIFIER_nondet_bool(); _x_a2_l = __VERIFIER_nondet_bool(); _x_a10_evt0 = __VERIFIER_nondet_bool(); _x_pc8_x = __VERIFIER_nondet_float(); _x_a11_l = __VERIFIER_nondet_bool(); _x_pc2_x = __VERIFIER_nondet_float(); _x_pc23_evt1 = __VERIFIER_nondet_bool(); _x_pc2_l0 = __VERIFIER_nondet_bool(); _x_a18_l = __VERIFIER_nondet_bool(); _x_delta = __VERIFIER_nondet_float(); _x_a10_evt1 = __VERIFIER_nondet_bool(); _x_a11_evt1 = __VERIFIER_nondet_bool(); _x_a1_evt0 = __VERIFIER_nondet_bool(); _x_pc15_evt1 = __VERIFIER_nondet_bool(); _x_a12_evt1 = __VERIFIER_nondet_bool(); _x_pc21_l0 = __VERIFIER_nondet_bool(); _x_pc2_evt0 = __VERIFIER_nondet_bool(); _x_a2_evt0 = __VERIFIER_nondet_bool(); _x_a17_evt0 = __VERIFIER_nondet_bool(); _x_pc6_l1 = __VERIFIER_nondet_bool(); _x_a3_evt0 = __VERIFIER_nondet_bool(); _x_pc5_x = __VERIFIER_nondet_float(); _x_a14_evt1 = __VERIFIER_nondet_bool(); _x_a4_evt0 = __VERIFIER_nondet_bool(); _x_pc25_evt1 = __VERIFIER_nondet_bool(); _x_a5_evt0 = __VERIFIER_nondet_bool(); _x_pc0_evt1 = __VERIFIER_nondet_bool(); _x_pc16_l1 = __VERIFIER_nondet_bool(); _x_a16_evt1 = __VERIFIER_nondet_bool(); _x_pc13_evt1 = __VERIFIER_nondet_bool(); _x_a13_l = __VERIFIER_nondet_bool(); _x_pc5_l0 = __VERIFIER_nondet_bool(); _x_pc14_x = __VERIFIER_nondet_float(); _x_pc6_x = __VERIFIER_nondet_float(); _x_pc6_evt0 = __VERIFIER_nondet_bool(); _x_pc21_x = __VERIFIER_nondet_float(); _x_pc7_x = __VERIFIER_nondet_float(); _x_pc7_evt0 = __VERIFIER_nondet_bool(); _x_pc26_evt0 = __VERIFIER_nondet_bool(); _x_pc13_l2 = __VERIFIER_nondet_bool(); _x_pc22_x = __VERIFIER_nondet_float(); _x_pc8_evt0 = __VERIFIER_nondet_bool(); _x_pc27_evt0 = __VERIFIER_nondet_bool(); _x_pc14_l2 = __VERIFIER_nondet_bool(); _x_pc23_x = __VERIFIER_nondet_float(); _x_pc8_evt1 = __VERIFIER_nondet_bool(); _x_pc9_x = __VERIFIER_nondet_float(); _x_a4_evt1 = __VERIFIER_nondet_bool(); _x_pc9_evt0 = __VERIFIER_nondet_bool(); _x_pc28_evt0 = __VERIFIER_nondet_bool(); _x_pc15_l2 = __VERIFIER_nondet_bool(); _x_pc24_x = __VERIFIER_nondet_float(); _x_pc9_evt1 = __VERIFIER_nondet_bool(); _x_pc9_l0 = __VERIFIER_nondet_bool(); _x_pc9_l1 = __VERIFIER_nondet_bool(); _x_pc10_evt1 = __VERIFIER_nondet_bool(); _x_a8_evt1 = __VERIFIER_nondet_bool(); _x_pc10_l0 = __VERIFIER_nondet_bool(); _x_pc10_l1 = __VERIFIER_nondet_bool(); _x_pc11_evt1 = __VERIFIER_nondet_bool(); _x_pc11_l1 = __VERIFIER_nondet_bool(); _x_a15_evt0 = __VERIFIER_nondet_bool(); _x_pc12_evt0 = __VERIFIER_nondet_bool(); _x_pc18_l2 = __VERIFIER_nondet_bool(); _x_pc27_x = __VERIFIER_nondet_float(); _x_a15_evt1 = __VERIFIER_nondet_bool(); _x_pc12_evt1 = __VERIFIER_nondet_bool(); _x_pc12_l0 = __VERIFIER_nondet_bool(); _x_pc12_l1 = __VERIFIER_nondet_bool(); _x_a19_evt0 = __VERIFIER_nondet_bool(); _x_pc13_l0 = __VERIFIER_nondet_bool(); _x_a19_evt1 = __VERIFIER_nondet_bool(); _x_pc13_l1 = __VERIFIER_nondet_bool(); _x_pc1_l2 = __VERIFIER_nondet_bool(); _x_a22_l = __VERIFIER_nondet_bool(); _x_pc14_evt0 = __VERIFIER_nondet_bool(); _x_pc20_l2 = __VERIFIER_nondet_bool(); _x_pc3_l2 = __VERIFIER_nondet_bool(); _x_pc16_evt0 = __VERIFIER_nondet_bool(); _x_pc22_l2 = __VERIFIER_nondet_bool(); _x_pc16_evt1 = __VERIFIER_nondet_bool(); _x_pc0_evt0 = __VERIFIER_nondet_bool(); _x_pc16_l0 = __VERIFIER_nondet_bool(); _x_pc17_l0 = __VERIFIER_nondet_bool(); _x_pc17_l1 = __VERIFIER_nondet_bool(); _x_pc5_l2 = __VERIFIER_nondet_bool(); _x_pc18_evt0 = __VERIFIER_nondet_bool(); _x_pc24_l2 = __VERIFIER_nondet_bool(); _x_pc18_evt1 = __VERIFIER_nondet_bool(); _x_a17_evt1 = __VERIFIER_nondet_bool(); _x_pc6_l2 = __VERIFIER_nondet_bool(); _x_pc19_evt0 = __VERIFIER_nondet_bool(); _x_pc25_l2 = __VERIFIER_nondet_bool(); _x_pc19_evt1 = __VERIFIER_nondet_bool(); _x_pc19_l0 = __VERIFIER_nondet_bool(); _x_pc19_l1 = __VERIFIER_nondet_bool(); _x_pc20_evt1 = __VERIFIER_nondet_bool(); _x_a21_evt1 = __VERIFIER_nondet_bool(); _x_pc20_l0 = __VERIFIER_nondet_bool(); _x_pc20_l1 = __VERIFIER_nondet_bool(); _x_pc8_l2 = __VERIFIER_nondet_bool(); _x_pc21_evt0 = __VERIFIER_nondet_bool(); _x_pc21_evt1 = __VERIFIER_nondet_bool(); _x_pc21_l1 = __VERIFIER_nondet_bool(); _x_pc9_l2 = __VERIFIER_nondet_bool(); _x_pc22_evt0 = __VERIFIER_nondet_bool(); _x_pc22_evt1 = __VERIFIER_nondet_bool(); _x_pc22_l0 = __VERIFIER_nondet_bool(); _x_pc22_l1 = __VERIFIER_nondet_bool(); _x_pc23_l0 = __VERIFIER_nondet_bool(); _x_pc11_l2 = __VERIFIER_nondet_bool(); _x_a0_evt0 = __VERIFIER_nondet_bool(); _x_pc24_evt0 = __VERIFIER_nondet_bool(); _x_pc12_l2 = __VERIFIER_nondet_bool(); _x_pc25_evt0 = __VERIFIER_nondet_bool(); _x_pc25_l1 = __VERIFIER_nondet_bool(); __ok = (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((( !(_x_pc29_evt0 != 0)) && ( !(_x_pc29_evt1 != 0))) || ((_x_pc29_evt1 != 0) && ( !(_x_pc29_evt0 != 0)))) || (((_x_pc29_evt0 != 0) && ( !(_x_pc29_evt1 != 0))) || ((_x_pc29_evt0 != 0) && (_x_pc29_evt1 != 0)))) && ((( !(_x_pc29_l2 != 0)) && ((_x_pc29_l0 != 0) && (_x_pc29_l1 != 0))) || ((((( !(_x_pc29_l2 != 0)) && (( !(_x_pc29_l0 != 0)) && ( !(_x_pc29_l1 != 0)))) || ((_x_pc29_l2 != 0) && (( !(_x_pc29_l0 != 0)) && ( !(_x_pc29_l1 != 0))))) || ((( !(_x_pc29_l2 != 0)) && ((_x_pc29_l1 != 0) && ( !(_x_pc29_l0 != 0)))) || ((_x_pc29_l2 != 0) && ((_x_pc29_l1 != 0) && ( !(_x_pc29_l0 != 0)))))) || ((( !(_x_pc29_l2 != 0)) && ((_x_pc29_l0 != 0) && ( !(_x_pc29_l1 != 0)))) || ((_x_pc29_l2 != 0) && ((_x_pc29_l0 != 0) && ( !(_x_pc29_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc29_l0 != 0) == (_x_pc29_l0 != 0)) && ((pc29_l1 != 0) == (_x_pc29_l1 != 0))) && ((pc29_l2 != 0) == (_x_pc29_l2 != 0))) && ((delta + (pc29_x + (-1.0 * _x_pc29_x))) == 0.0)))) && ((((((pc29_l0 != 0) == (_x_pc29_l0 != 0)) && ((pc29_l1 != 0) == (_x_pc29_l1 != 0))) && ((pc29_l2 != 0) == (_x_pc29_l2 != 0))) && ((delta + (pc29_x + (-1.0 * _x_pc29_x))) == 0.0)) || ( !(( !(pc29_evt0 != 0)) && ( !(pc29_evt1 != 0)))))) && (((((pc29_evt0 != 0) && (pc29_evt1 != 0)) && (pc29_x <= 50.0)) && (((_x_pc29_l2 != 0) && (( !(_x_pc29_l0 != 0)) && ( !(_x_pc29_l1 != 0)))) && (_x_pc29_x == 0.0))) || ( !((( !(pc29_l2 != 0)) && (( !(pc29_l0 != 0)) && ( !(pc29_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc29_evt0 != 0)) && ( !(pc29_evt1 != 0))))))))) && ((((pc29_evt0 != 0) && (pc29_evt1 != 0)) && ((( !(_x_pc29_l2 != 0)) && (( !(_x_pc29_l0 != 0)) && ( !(_x_pc29_l1 != 0)))) || (( !(_x_pc29_l2 != 0)) && ((_x_pc29_l1 != 0) && ( !(_x_pc29_l0 != 0)))))) || ( !(((pc29_l2 != 0) && (( !(pc29_l0 != 0)) && ( !(pc29_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc29_evt0 != 0)) && ( !(pc29_evt1 != 0))))))))) && (((_x_pc29_x == 0.0) && (25.0 <= pc29_x)) || ( !((( !(_x_pc29_l2 != 0)) && (( !(_x_pc29_l0 != 0)) && ( !(_x_pc29_l1 != 0)))) && ((pc29_l2 != 0) && (( !(pc29_l0 != 0)) && ( !(pc29_l1 != 0)))))))) && (((pc29_x <= 24.0) && (pc29_x == _x_pc29_x)) || ( !(((pc29_l2 != 0) && (( !(pc29_l0 != 0)) && ( !(pc29_l1 != 0)))) && (( !(_x_pc29_l2 != 0)) && ((_x_pc29_l1 != 0) && ( !(_x_pc29_l0 != 0)))))))) && (((_x_pc29_x == 0.0) && (((pc29_evt1 != 0) && ( !(pc29_evt0 != 0))) && ((_x_pc29_l2 != 0) && ((_x_pc29_l1 != 0) && ( !(_x_pc29_l0 != 0)))))) || ( !((( !(pc29_l2 != 0)) && ((pc29_l1 != 0) && ( !(pc29_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc29_evt0 != 0)) && ( !(pc29_evt1 != 0))))))))) && (((( !(_x_pc29_l2 != 0)) && ((_x_pc29_l0 != 0) && ( !(_x_pc29_l1 != 0)))) || (( !(_x_pc29_l2 != 0)) && ((_x_pc29_l0 != 0) && (_x_pc29_l1 != 0)))) || ( !(((pc29_l2 != 0) && ((pc29_l1 != 0) && ( !(pc29_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc29_evt0 != 0)) && ( !(pc29_evt1 != 0))))))))) && (((pc29_x == _x_pc29_x) && (((pc29_evt0 != 0) && (pc29_evt1 != 0)) && (50.0 <= pc29_x))) || ( !(((pc29_l2 != 0) && ((pc29_l1 != 0) && ( !(pc29_l0 != 0)))) && (( !(_x_pc29_l2 != 0)) && ((_x_pc29_l0 != 0) && (_x_pc29_l1 != 0))))))) && (((_x_pc29_x == 0.0) && (((pc29_evt0 != 0) && ( !(pc29_evt1 != 0))) && (pc29_x <= 25.0))) || ( !(((pc29_l2 != 0) && ((pc29_l1 != 0) && ( !(pc29_l0 != 0)))) && (( !(_x_pc29_l2 != 0)) && ((_x_pc29_l0 != 0) && ( !(_x_pc29_l1 != 0)))))))) && (((((pc29_evt0 != 0) && (pc29_evt1 != 0)) && (pc29_x == _x_pc29_x)) && (((_x_pc29_l2 != 0) && ((_x_pc29_l0 != 0) && ( !(_x_pc29_l1 != 0)))) || (( !(_x_pc29_l2 != 0)) && ((_x_pc29_l0 != 0) && (_x_pc29_l1 != 0))))) || ( !((( !(pc29_l2 != 0)) && ((pc29_l0 != 0) && ( !(pc29_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc29_evt0 != 0)) && ( !(pc29_evt1 != 0))))))))) && ((25.0 <= pc29_x) || ( !((( !(pc29_l2 != 0)) && ((pc29_l0 != 0) && ( !(pc29_l1 != 0)))) && (( !(_x_pc29_l2 != 0)) && ((_x_pc29_l0 != 0) && (_x_pc29_l1 != 0))))))) && ((pc29_x <= 24.0) || ( !((( !(pc29_l2 != 0)) && ((pc29_l0 != 0) && ( !(pc29_l1 != 0)))) && ((_x_pc29_l2 != 0) && ((_x_pc29_l0 != 0) && ( !(_x_pc29_l1 != 0)))))))) && ((( !(_x_pc29_l2 != 0)) && ((_x_pc29_l0 != 0) && (_x_pc29_l1 != 0))) || ( !((( !(pc29_l2 != 0)) && ((pc29_l0 != 0) && (pc29_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc29_evt0 != 0)) && ( !(pc29_evt1 != 0))))))))) && ((( !(_x_pc29_l2 != 0)) && (( !(_x_pc29_l0 != 0)) && ( !(_x_pc29_l1 != 0)))) || ( !(((pc29_l2 != 0) && ((pc29_l0 != 0) && ( !(pc29_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc29_evt0 != 0)) && ( !(pc29_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc28_evt0 != 0)) && ( !(_x_pc28_evt1 != 0))) || ((_x_pc28_evt1 != 0) && ( !(_x_pc28_evt0 != 0)))) || (((_x_pc28_evt0 != 0) && ( !(_x_pc28_evt1 != 0))) || ((_x_pc28_evt0 != 0) && (_x_pc28_evt1 != 0)))) && ((( !(_x_pc28_l2 != 0)) && ((_x_pc28_l0 != 0) && (_x_pc28_l1 != 0))) || ((((( !(_x_pc28_l2 != 0)) && (( !(_x_pc28_l0 != 0)) && ( !(_x_pc28_l1 != 0)))) || ((_x_pc28_l2 != 0) && (( !(_x_pc28_l0 != 0)) && ( !(_x_pc28_l1 != 0))))) || ((( !(_x_pc28_l2 != 0)) && ((_x_pc28_l1 != 0) && ( !(_x_pc28_l0 != 0)))) || ((_x_pc28_l2 != 0) && ((_x_pc28_l1 != 0) && ( !(_x_pc28_l0 != 0)))))) || ((( !(_x_pc28_l2 != 0)) && ((_x_pc28_l0 != 0) && ( !(_x_pc28_l1 != 0)))) || ((_x_pc28_l2 != 0) && ((_x_pc28_l0 != 0) && ( !(_x_pc28_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc28_l0 != 0) == (_x_pc28_l0 != 0)) && ((pc28_l1 != 0) == (_x_pc28_l1 != 0))) && ((pc28_l2 != 0) == (_x_pc28_l2 != 0))) && ((delta + (pc28_x + (-1.0 * _x_pc28_x))) == 0.0)))) && ((((((pc28_l0 != 0) == (_x_pc28_l0 != 0)) && ((pc28_l1 != 0) == (_x_pc28_l1 != 0))) && ((pc28_l2 != 0) == (_x_pc28_l2 != 0))) && ((delta + (pc28_x + (-1.0 * _x_pc28_x))) == 0.0)) || ( !(( !(pc28_evt0 != 0)) && ( !(pc28_evt1 != 0)))))) && (((((pc28_evt0 != 0) && (pc28_evt1 != 0)) && (pc28_x <= 50.0)) && (((_x_pc28_l2 != 0) && (( !(_x_pc28_l0 != 0)) && ( !(_x_pc28_l1 != 0)))) && (_x_pc28_x == 0.0))) || ( !((( !(pc28_l2 != 0)) && (( !(pc28_l0 != 0)) && ( !(pc28_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc28_evt0 != 0)) && ( !(pc28_evt1 != 0))))))))) && ((((pc28_evt0 != 0) && (pc28_evt1 != 0)) && ((( !(_x_pc28_l2 != 0)) && (( !(_x_pc28_l0 != 0)) && ( !(_x_pc28_l1 != 0)))) || (( !(_x_pc28_l2 != 0)) && ((_x_pc28_l1 != 0) && ( !(_x_pc28_l0 != 0)))))) || ( !(((pc28_l2 != 0) && (( !(pc28_l0 != 0)) && ( !(pc28_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc28_evt0 != 0)) && ( !(pc28_evt1 != 0))))))))) && (((_x_pc28_x == 0.0) && (25.0 <= pc28_x)) || ( !((( !(_x_pc28_l2 != 0)) && (( !(_x_pc28_l0 != 0)) && ( !(_x_pc28_l1 != 0)))) && ((pc28_l2 != 0) && (( !(pc28_l0 != 0)) && ( !(pc28_l1 != 0)))))))) && (((pc28_x <= 24.0) && (pc28_x == _x_pc28_x)) || ( !(((pc28_l2 != 0) && (( !(pc28_l0 != 0)) && ( !(pc28_l1 != 0)))) && (( !(_x_pc28_l2 != 0)) && ((_x_pc28_l1 != 0) && ( !(_x_pc28_l0 != 0)))))))) && (((_x_pc28_x == 0.0) && (((pc28_evt1 != 0) && ( !(pc28_evt0 != 0))) && ((_x_pc28_l2 != 0) && ((_x_pc28_l1 != 0) && ( !(_x_pc28_l0 != 0)))))) || ( !((( !(pc28_l2 != 0)) && ((pc28_l1 != 0) && ( !(pc28_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc28_evt0 != 0)) && ( !(pc28_evt1 != 0))))))))) && (((( !(_x_pc28_l2 != 0)) && ((_x_pc28_l0 != 0) && ( !(_x_pc28_l1 != 0)))) || (( !(_x_pc28_l2 != 0)) && ((_x_pc28_l0 != 0) && (_x_pc28_l1 != 0)))) || ( !(((pc28_l2 != 0) && ((pc28_l1 != 0) && ( !(pc28_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc28_evt0 != 0)) && ( !(pc28_evt1 != 0))))))))) && (((pc28_x == _x_pc28_x) && (((pc28_evt0 != 0) && (pc28_evt1 != 0)) && (50.0 <= pc28_x))) || ( !(((pc28_l2 != 0) && ((pc28_l1 != 0) && ( !(pc28_l0 != 0)))) && (( !(_x_pc28_l2 != 0)) && ((_x_pc28_l0 != 0) && (_x_pc28_l1 != 0))))))) && (((_x_pc28_x == 0.0) && (((pc28_evt0 != 0) && ( !(pc28_evt1 != 0))) && (pc28_x <= 25.0))) || ( !(((pc28_l2 != 0) && ((pc28_l1 != 0) && ( !(pc28_l0 != 0)))) && (( !(_x_pc28_l2 != 0)) && ((_x_pc28_l0 != 0) && ( !(_x_pc28_l1 != 0)))))))) && (((((pc28_evt0 != 0) && (pc28_evt1 != 0)) && (pc28_x == _x_pc28_x)) && (((_x_pc28_l2 != 0) && ((_x_pc28_l0 != 0) && ( !(_x_pc28_l1 != 0)))) || (( !(_x_pc28_l2 != 0)) && ((_x_pc28_l0 != 0) && (_x_pc28_l1 != 0))))) || ( !((( !(pc28_l2 != 0)) && ((pc28_l0 != 0) && ( !(pc28_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc28_evt0 != 0)) && ( !(pc28_evt1 != 0))))))))) && ((25.0 <= pc28_x) || ( !((( !(pc28_l2 != 0)) && ((pc28_l0 != 0) && ( !(pc28_l1 != 0)))) && (( !(_x_pc28_l2 != 0)) && ((_x_pc28_l0 != 0) && (_x_pc28_l1 != 0))))))) && ((pc28_x <= 24.0) || ( !((( !(pc28_l2 != 0)) && ((pc28_l0 != 0) && ( !(pc28_l1 != 0)))) && ((_x_pc28_l2 != 0) && ((_x_pc28_l0 != 0) && ( !(_x_pc28_l1 != 0)))))))) && ((( !(_x_pc28_l2 != 0)) && ((_x_pc28_l0 != 0) && (_x_pc28_l1 != 0))) || ( !((( !(pc28_l2 != 0)) && ((pc28_l0 != 0) && (pc28_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc28_evt0 != 0)) && ( !(pc28_evt1 != 0))))))))) && ((( !(_x_pc28_l2 != 0)) && (( !(_x_pc28_l0 != 0)) && ( !(_x_pc28_l1 != 0)))) || ( !(((pc28_l2 != 0) && ((pc28_l0 != 0) && ( !(pc28_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc28_evt0 != 0)) && ( !(pc28_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc27_evt0 != 0)) && ( !(_x_pc27_evt1 != 0))) || ((_x_pc27_evt1 != 0) && ( !(_x_pc27_evt0 != 0)))) || (((_x_pc27_evt0 != 0) && ( !(_x_pc27_evt1 != 0))) || ((_x_pc27_evt0 != 0) && (_x_pc27_evt1 != 0)))) && ((( !(_x_pc27_l2 != 0)) && ((_x_pc27_l0 != 0) && (_x_pc27_l1 != 0))) || ((((( !(_x_pc27_l2 != 0)) && (( !(_x_pc27_l0 != 0)) && ( !(_x_pc27_l1 != 0)))) || ((_x_pc27_l2 != 0) && (( !(_x_pc27_l0 != 0)) && ( !(_x_pc27_l1 != 0))))) || ((( !(_x_pc27_l2 != 0)) && ((_x_pc27_l1 != 0) && ( !(_x_pc27_l0 != 0)))) || ((_x_pc27_l2 != 0) && ((_x_pc27_l1 != 0) && ( !(_x_pc27_l0 != 0)))))) || ((( !(_x_pc27_l2 != 0)) && ((_x_pc27_l0 != 0) && ( !(_x_pc27_l1 != 0)))) || ((_x_pc27_l2 != 0) && ((_x_pc27_l0 != 0) && ( !(_x_pc27_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc27_l0 != 0) == (_x_pc27_l0 != 0)) && ((pc27_l1 != 0) == (_x_pc27_l1 != 0))) && ((pc27_l2 != 0) == (_x_pc27_l2 != 0))) && ((delta + (pc27_x + (-1.0 * _x_pc27_x))) == 0.0)))) && ((((((pc27_l0 != 0) == (_x_pc27_l0 != 0)) && ((pc27_l1 != 0) == (_x_pc27_l1 != 0))) && ((pc27_l2 != 0) == (_x_pc27_l2 != 0))) && ((delta + (pc27_x + (-1.0 * _x_pc27_x))) == 0.0)) || ( !(( !(pc27_evt0 != 0)) && ( !(pc27_evt1 != 0)))))) && (((((pc27_evt0 != 0) && (pc27_evt1 != 0)) && (pc27_x <= 50.0)) && (((_x_pc27_l2 != 0) && (( !(_x_pc27_l0 != 0)) && ( !(_x_pc27_l1 != 0)))) && (_x_pc27_x == 0.0))) || ( !((( !(pc27_l2 != 0)) && (( !(pc27_l0 != 0)) && ( !(pc27_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc27_evt0 != 0)) && ( !(pc27_evt1 != 0))))))))) && ((((pc27_evt0 != 0) && (pc27_evt1 != 0)) && ((( !(_x_pc27_l2 != 0)) && (( !(_x_pc27_l0 != 0)) && ( !(_x_pc27_l1 != 0)))) || (( !(_x_pc27_l2 != 0)) && ((_x_pc27_l1 != 0) && ( !(_x_pc27_l0 != 0)))))) || ( !(((pc27_l2 != 0) && (( !(pc27_l0 != 0)) && ( !(pc27_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc27_evt0 != 0)) && ( !(pc27_evt1 != 0))))))))) && (((_x_pc27_x == 0.0) && (25.0 <= pc27_x)) || ( !((( !(_x_pc27_l2 != 0)) && (( !(_x_pc27_l0 != 0)) && ( !(_x_pc27_l1 != 0)))) && ((pc27_l2 != 0) && (( !(pc27_l0 != 0)) && ( !(pc27_l1 != 0)))))))) && (((pc27_x <= 24.0) && (pc27_x == _x_pc27_x)) || ( !(((pc27_l2 != 0) && (( !(pc27_l0 != 0)) && ( !(pc27_l1 != 0)))) && (( !(_x_pc27_l2 != 0)) && ((_x_pc27_l1 != 0) && ( !(_x_pc27_l0 != 0)))))))) && (((_x_pc27_x == 0.0) && (((pc27_evt1 != 0) && ( !(pc27_evt0 != 0))) && ((_x_pc27_l2 != 0) && ((_x_pc27_l1 != 0) && ( !(_x_pc27_l0 != 0)))))) || ( !((( !(pc27_l2 != 0)) && ((pc27_l1 != 0) && ( !(pc27_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc27_evt0 != 0)) && ( !(pc27_evt1 != 0))))))))) && (((( !(_x_pc27_l2 != 0)) && ((_x_pc27_l0 != 0) && ( !(_x_pc27_l1 != 0)))) || (( !(_x_pc27_l2 != 0)) && ((_x_pc27_l0 != 0) && (_x_pc27_l1 != 0)))) || ( !(((pc27_l2 != 0) && ((pc27_l1 != 0) && ( !(pc27_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc27_evt0 != 0)) && ( !(pc27_evt1 != 0))))))))) && (((pc27_x == _x_pc27_x) && (((pc27_evt0 != 0) && (pc27_evt1 != 0)) && (50.0 <= pc27_x))) || ( !(((pc27_l2 != 0) && ((pc27_l1 != 0) && ( !(pc27_l0 != 0)))) && (( !(_x_pc27_l2 != 0)) && ((_x_pc27_l0 != 0) && (_x_pc27_l1 != 0))))))) && (((_x_pc27_x == 0.0) && (((pc27_evt0 != 0) && ( !(pc27_evt1 != 0))) && (pc27_x <= 25.0))) || ( !(((pc27_l2 != 0) && ((pc27_l1 != 0) && ( !(pc27_l0 != 0)))) && (( !(_x_pc27_l2 != 0)) && ((_x_pc27_l0 != 0) && ( !(_x_pc27_l1 != 0)))))))) && (((((pc27_evt0 != 0) && (pc27_evt1 != 0)) && (pc27_x == _x_pc27_x)) && (((_x_pc27_l2 != 0) && ((_x_pc27_l0 != 0) && ( !(_x_pc27_l1 != 0)))) || (( !(_x_pc27_l2 != 0)) && ((_x_pc27_l0 != 0) && (_x_pc27_l1 != 0))))) || ( !((( !(pc27_l2 != 0)) && ((pc27_l0 != 0) && ( !(pc27_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc27_evt0 != 0)) && ( !(pc27_evt1 != 0))))))))) && ((25.0 <= pc27_x) || ( !((( !(pc27_l2 != 0)) && ((pc27_l0 != 0) && ( !(pc27_l1 != 0)))) && (( !(_x_pc27_l2 != 0)) && ((_x_pc27_l0 != 0) && (_x_pc27_l1 != 0))))))) && ((pc27_x <= 24.0) || ( !((( !(pc27_l2 != 0)) && ((pc27_l0 != 0) && ( !(pc27_l1 != 0)))) && ((_x_pc27_l2 != 0) && ((_x_pc27_l0 != 0) && ( !(_x_pc27_l1 != 0)))))))) && ((( !(_x_pc27_l2 != 0)) && ((_x_pc27_l0 != 0) && (_x_pc27_l1 != 0))) || ( !((( !(pc27_l2 != 0)) && ((pc27_l0 != 0) && (pc27_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc27_evt0 != 0)) && ( !(pc27_evt1 != 0))))))))) && ((( !(_x_pc27_l2 != 0)) && (( !(_x_pc27_l0 != 0)) && ( !(_x_pc27_l1 != 0)))) || ( !(((pc27_l2 != 0) && ((pc27_l0 != 0) && ( !(pc27_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc27_evt0 != 0)) && ( !(pc27_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc26_evt0 != 0)) && ( !(_x_pc26_evt1 != 0))) || ((_x_pc26_evt1 != 0) && ( !(_x_pc26_evt0 != 0)))) || (((_x_pc26_evt0 != 0) && ( !(_x_pc26_evt1 != 0))) || ((_x_pc26_evt0 != 0) && (_x_pc26_evt1 != 0)))) && ((( !(_x_pc26_l2 != 0)) && ((_x_pc26_l0 != 0) && (_x_pc26_l1 != 0))) || ((((( !(_x_pc26_l2 != 0)) && (( !(_x_pc26_l0 != 0)) && ( !(_x_pc26_l1 != 0)))) || ((_x_pc26_l2 != 0) && (( !(_x_pc26_l0 != 0)) && ( !(_x_pc26_l1 != 0))))) || ((( !(_x_pc26_l2 != 0)) && ((_x_pc26_l1 != 0) && ( !(_x_pc26_l0 != 0)))) || ((_x_pc26_l2 != 0) && ((_x_pc26_l1 != 0) && ( !(_x_pc26_l0 != 0)))))) || ((( !(_x_pc26_l2 != 0)) && ((_x_pc26_l0 != 0) && ( !(_x_pc26_l1 != 0)))) || ((_x_pc26_l2 != 0) && ((_x_pc26_l0 != 0) && ( !(_x_pc26_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc26_l0 != 0) == (_x_pc26_l0 != 0)) && ((pc26_l1 != 0) == (_x_pc26_l1 != 0))) && ((pc26_l2 != 0) == (_x_pc26_l2 != 0))) && ((delta + (pc26_x + (-1.0 * _x_pc26_x))) == 0.0)))) && ((((((pc26_l0 != 0) == (_x_pc26_l0 != 0)) && ((pc26_l1 != 0) == (_x_pc26_l1 != 0))) && ((pc26_l2 != 0) == (_x_pc26_l2 != 0))) && ((delta + (pc26_x + (-1.0 * _x_pc26_x))) == 0.0)) || ( !(( !(pc26_evt0 != 0)) && ( !(pc26_evt1 != 0)))))) && (((((pc26_evt0 != 0) && (pc26_evt1 != 0)) && (pc26_x <= 50.0)) && (((_x_pc26_l2 != 0) && (( !(_x_pc26_l0 != 0)) && ( !(_x_pc26_l1 != 0)))) && (_x_pc26_x == 0.0))) || ( !((( !(pc26_l2 != 0)) && (( !(pc26_l0 != 0)) && ( !(pc26_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc26_evt0 != 0)) && ( !(pc26_evt1 != 0))))))))) && ((((pc26_evt0 != 0) && (pc26_evt1 != 0)) && ((( !(_x_pc26_l2 != 0)) && (( !(_x_pc26_l0 != 0)) && ( !(_x_pc26_l1 != 0)))) || (( !(_x_pc26_l2 != 0)) && ((_x_pc26_l1 != 0) && ( !(_x_pc26_l0 != 0)))))) || ( !(((pc26_l2 != 0) && (( !(pc26_l0 != 0)) && ( !(pc26_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc26_evt0 != 0)) && ( !(pc26_evt1 != 0))))))))) && (((_x_pc26_x == 0.0) && (25.0 <= pc26_x)) || ( !((( !(_x_pc26_l2 != 0)) && (( !(_x_pc26_l0 != 0)) && ( !(_x_pc26_l1 != 0)))) && ((pc26_l2 != 0) && (( !(pc26_l0 != 0)) && ( !(pc26_l1 != 0)))))))) && (((pc26_x <= 24.0) && (pc26_x == _x_pc26_x)) || ( !(((pc26_l2 != 0) && (( !(pc26_l0 != 0)) && ( !(pc26_l1 != 0)))) && (( !(_x_pc26_l2 != 0)) && ((_x_pc26_l1 != 0) && ( !(_x_pc26_l0 != 0)))))))) && (((_x_pc26_x == 0.0) && (((pc26_evt1 != 0) && ( !(pc26_evt0 != 0))) && ((_x_pc26_l2 != 0) && ((_x_pc26_l1 != 0) && ( !(_x_pc26_l0 != 0)))))) || ( !((( !(pc26_l2 != 0)) && ((pc26_l1 != 0) && ( !(pc26_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc26_evt0 != 0)) && ( !(pc26_evt1 != 0))))))))) && (((( !(_x_pc26_l2 != 0)) && ((_x_pc26_l0 != 0) && ( !(_x_pc26_l1 != 0)))) || (( !(_x_pc26_l2 != 0)) && ((_x_pc26_l0 != 0) && (_x_pc26_l1 != 0)))) || ( !(((pc26_l2 != 0) && ((pc26_l1 != 0) && ( !(pc26_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc26_evt0 != 0)) && ( !(pc26_evt1 != 0))))))))) && (((pc26_x == _x_pc26_x) && (((pc26_evt0 != 0) && (pc26_evt1 != 0)) && (50.0 <= pc26_x))) || ( !(((pc26_l2 != 0) && ((pc26_l1 != 0) && ( !(pc26_l0 != 0)))) && (( !(_x_pc26_l2 != 0)) && ((_x_pc26_l0 != 0) && (_x_pc26_l1 != 0))))))) && (((_x_pc26_x == 0.0) && (((pc26_evt0 != 0) && ( !(pc26_evt1 != 0))) && (pc26_x <= 25.0))) || ( !(((pc26_l2 != 0) && ((pc26_l1 != 0) && ( !(pc26_l0 != 0)))) && (( !(_x_pc26_l2 != 0)) && ((_x_pc26_l0 != 0) && ( !(_x_pc26_l1 != 0)))))))) && (((((pc26_evt0 != 0) && (pc26_evt1 != 0)) && (pc26_x == _x_pc26_x)) && (((_x_pc26_l2 != 0) && ((_x_pc26_l0 != 0) && ( !(_x_pc26_l1 != 0)))) || (( !(_x_pc26_l2 != 0)) && ((_x_pc26_l0 != 0) && (_x_pc26_l1 != 0))))) || ( !((( !(pc26_l2 != 0)) && ((pc26_l0 != 0) && ( !(pc26_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc26_evt0 != 0)) && ( !(pc26_evt1 != 0))))))))) && ((25.0 <= pc26_x) || ( !((( !(pc26_l2 != 0)) && ((pc26_l0 != 0) && ( !(pc26_l1 != 0)))) && (( !(_x_pc26_l2 != 0)) && ((_x_pc26_l0 != 0) && (_x_pc26_l1 != 0))))))) && ((pc26_x <= 24.0) || ( !((( !(pc26_l2 != 0)) && ((pc26_l0 != 0) && ( !(pc26_l1 != 0)))) && ((_x_pc26_l2 != 0) && ((_x_pc26_l0 != 0) && ( !(_x_pc26_l1 != 0)))))))) && ((( !(_x_pc26_l2 != 0)) && ((_x_pc26_l0 != 0) && (_x_pc26_l1 != 0))) || ( !((( !(pc26_l2 != 0)) && ((pc26_l0 != 0) && (pc26_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc26_evt0 != 0)) && ( !(pc26_evt1 != 0))))))))) && ((( !(_x_pc26_l2 != 0)) && (( !(_x_pc26_l0 != 0)) && ( !(_x_pc26_l1 != 0)))) || ( !(((pc26_l2 != 0) && ((pc26_l0 != 0) && ( !(pc26_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc26_evt0 != 0)) && ( !(pc26_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc25_evt0 != 0)) && ( !(_x_pc25_evt1 != 0))) || ((_x_pc25_evt1 != 0) && ( !(_x_pc25_evt0 != 0)))) || (((_x_pc25_evt0 != 0) && ( !(_x_pc25_evt1 != 0))) || ((_x_pc25_evt0 != 0) && (_x_pc25_evt1 != 0)))) && ((( !(_x_pc25_l2 != 0)) && ((_x_pc25_l0 != 0) && (_x_pc25_l1 != 0))) || ((((( !(_x_pc25_l2 != 0)) && (( !(_x_pc25_l0 != 0)) && ( !(_x_pc25_l1 != 0)))) || ((_x_pc25_l2 != 0) && (( !(_x_pc25_l0 != 0)) && ( !(_x_pc25_l1 != 0))))) || ((( !(_x_pc25_l2 != 0)) && ((_x_pc25_l1 != 0) && ( !(_x_pc25_l0 != 0)))) || ((_x_pc25_l2 != 0) && ((_x_pc25_l1 != 0) && ( !(_x_pc25_l0 != 0)))))) || ((( !(_x_pc25_l2 != 0)) && ((_x_pc25_l0 != 0) && ( !(_x_pc25_l1 != 0)))) || ((_x_pc25_l2 != 0) && ((_x_pc25_l0 != 0) && ( !(_x_pc25_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc25_l0 != 0) == (_x_pc25_l0 != 0)) && ((pc25_l1 != 0) == (_x_pc25_l1 != 0))) && ((pc25_l2 != 0) == (_x_pc25_l2 != 0))) && ((delta + (pc25_x + (-1.0 * _x_pc25_x))) == 0.0)))) && ((((((pc25_l0 != 0) == (_x_pc25_l0 != 0)) && ((pc25_l1 != 0) == (_x_pc25_l1 != 0))) && ((pc25_l2 != 0) == (_x_pc25_l2 != 0))) && ((delta + (pc25_x + (-1.0 * _x_pc25_x))) == 0.0)) || ( !(( !(pc25_evt0 != 0)) && ( !(pc25_evt1 != 0)))))) && (((((pc25_evt0 != 0) && (pc25_evt1 != 0)) && (pc25_x <= 50.0)) && (((_x_pc25_l2 != 0) && (( !(_x_pc25_l0 != 0)) && ( !(_x_pc25_l1 != 0)))) && (_x_pc25_x == 0.0))) || ( !((( !(pc25_l2 != 0)) && (( !(pc25_l0 != 0)) && ( !(pc25_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc25_evt0 != 0)) && ( !(pc25_evt1 != 0))))))))) && ((((pc25_evt0 != 0) && (pc25_evt1 != 0)) && ((( !(_x_pc25_l2 != 0)) && (( !(_x_pc25_l0 != 0)) && ( !(_x_pc25_l1 != 0)))) || (( !(_x_pc25_l2 != 0)) && ((_x_pc25_l1 != 0) && ( !(_x_pc25_l0 != 0)))))) || ( !(((pc25_l2 != 0) && (( !(pc25_l0 != 0)) && ( !(pc25_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc25_evt0 != 0)) && ( !(pc25_evt1 != 0))))))))) && (((_x_pc25_x == 0.0) && (25.0 <= pc25_x)) || ( !((( !(_x_pc25_l2 != 0)) && (( !(_x_pc25_l0 != 0)) && ( !(_x_pc25_l1 != 0)))) && ((pc25_l2 != 0) && (( !(pc25_l0 != 0)) && ( !(pc25_l1 != 0)))))))) && (((pc25_x <= 24.0) && (pc25_x == _x_pc25_x)) || ( !(((pc25_l2 != 0) && (( !(pc25_l0 != 0)) && ( !(pc25_l1 != 0)))) && (( !(_x_pc25_l2 != 0)) && ((_x_pc25_l1 != 0) && ( !(_x_pc25_l0 != 0)))))))) && (((_x_pc25_x == 0.0) && (((pc25_evt1 != 0) && ( !(pc25_evt0 != 0))) && ((_x_pc25_l2 != 0) && ((_x_pc25_l1 != 0) && ( !(_x_pc25_l0 != 0)))))) || ( !((( !(pc25_l2 != 0)) && ((pc25_l1 != 0) && ( !(pc25_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc25_evt0 != 0)) && ( !(pc25_evt1 != 0))))))))) && (((( !(_x_pc25_l2 != 0)) && ((_x_pc25_l0 != 0) && ( !(_x_pc25_l1 != 0)))) || (( !(_x_pc25_l2 != 0)) && ((_x_pc25_l0 != 0) && (_x_pc25_l1 != 0)))) || ( !(((pc25_l2 != 0) && ((pc25_l1 != 0) && ( !(pc25_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc25_evt0 != 0)) && ( !(pc25_evt1 != 0))))))))) && (((pc25_x == _x_pc25_x) && (((pc25_evt0 != 0) && (pc25_evt1 != 0)) && (50.0 <= pc25_x))) || ( !(((pc25_l2 != 0) && ((pc25_l1 != 0) && ( !(pc25_l0 != 0)))) && (( !(_x_pc25_l2 != 0)) && ((_x_pc25_l0 != 0) && (_x_pc25_l1 != 0))))))) && (((_x_pc25_x == 0.0) && (((pc25_evt0 != 0) && ( !(pc25_evt1 != 0))) && (pc25_x <= 25.0))) || ( !(((pc25_l2 != 0) && ((pc25_l1 != 0) && ( !(pc25_l0 != 0)))) && (( !(_x_pc25_l2 != 0)) && ((_x_pc25_l0 != 0) && ( !(_x_pc25_l1 != 0)))))))) && (((((pc25_evt0 != 0) && (pc25_evt1 != 0)) && (pc25_x == _x_pc25_x)) && (((_x_pc25_l2 != 0) && ((_x_pc25_l0 != 0) && ( !(_x_pc25_l1 != 0)))) || (( !(_x_pc25_l2 != 0)) && ((_x_pc25_l0 != 0) && (_x_pc25_l1 != 0))))) || ( !((( !(pc25_l2 != 0)) && ((pc25_l0 != 0) && ( !(pc25_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc25_evt0 != 0)) && ( !(pc25_evt1 != 0))))))))) && ((25.0 <= pc25_x) || ( !((( !(pc25_l2 != 0)) && ((pc25_l0 != 0) && ( !(pc25_l1 != 0)))) && (( !(_x_pc25_l2 != 0)) && ((_x_pc25_l0 != 0) && (_x_pc25_l1 != 0))))))) && ((pc25_x <= 24.0) || ( !((( !(pc25_l2 != 0)) && ((pc25_l0 != 0) && ( !(pc25_l1 != 0)))) && ((_x_pc25_l2 != 0) && ((_x_pc25_l0 != 0) && ( !(_x_pc25_l1 != 0)))))))) && ((( !(_x_pc25_l2 != 0)) && ((_x_pc25_l0 != 0) && (_x_pc25_l1 != 0))) || ( !((( !(pc25_l2 != 0)) && ((pc25_l0 != 0) && (pc25_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc25_evt0 != 0)) && ( !(pc25_evt1 != 0))))))))) && ((( !(_x_pc25_l2 != 0)) && (( !(_x_pc25_l0 != 0)) && ( !(_x_pc25_l1 != 0)))) || ( !(((pc25_l2 != 0) && ((pc25_l0 != 0) && ( !(pc25_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc25_evt0 != 0)) && ( !(pc25_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc24_evt0 != 0)) && ( !(_x_pc24_evt1 != 0))) || ((_x_pc24_evt1 != 0) && ( !(_x_pc24_evt0 != 0)))) || (((_x_pc24_evt0 != 0) && ( !(_x_pc24_evt1 != 0))) || ((_x_pc24_evt0 != 0) && (_x_pc24_evt1 != 0)))) && ((( !(_x_pc24_l2 != 0)) && ((_x_pc24_l0 != 0) && (_x_pc24_l1 != 0))) || ((((( !(_x_pc24_l2 != 0)) && (( !(_x_pc24_l0 != 0)) && ( !(_x_pc24_l1 != 0)))) || ((_x_pc24_l2 != 0) && (( !(_x_pc24_l0 != 0)) && ( !(_x_pc24_l1 != 0))))) || ((( !(_x_pc24_l2 != 0)) && ((_x_pc24_l1 != 0) && ( !(_x_pc24_l0 != 0)))) || ((_x_pc24_l2 != 0) && ((_x_pc24_l1 != 0) && ( !(_x_pc24_l0 != 0)))))) || ((( !(_x_pc24_l2 != 0)) && ((_x_pc24_l0 != 0) && ( !(_x_pc24_l1 != 0)))) || ((_x_pc24_l2 != 0) && ((_x_pc24_l0 != 0) && ( !(_x_pc24_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc24_l0 != 0) == (_x_pc24_l0 != 0)) && ((pc24_l1 != 0) == (_x_pc24_l1 != 0))) && ((pc24_l2 != 0) == (_x_pc24_l2 != 0))) && ((delta + (pc24_x + (-1.0 * _x_pc24_x))) == 0.0)))) && ((((((pc24_l0 != 0) == (_x_pc24_l0 != 0)) && ((pc24_l1 != 0) == (_x_pc24_l1 != 0))) && ((pc24_l2 != 0) == (_x_pc24_l2 != 0))) && ((delta + (pc24_x + (-1.0 * _x_pc24_x))) == 0.0)) || ( !(( !(pc24_evt0 != 0)) && ( !(pc24_evt1 != 0)))))) && (((((pc24_evt0 != 0) && (pc24_evt1 != 0)) && (pc24_x <= 50.0)) && (((_x_pc24_l2 != 0) && (( !(_x_pc24_l0 != 0)) && ( !(_x_pc24_l1 != 0)))) && (_x_pc24_x == 0.0))) || ( !((( !(pc24_l2 != 0)) && (( !(pc24_l0 != 0)) && ( !(pc24_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc24_evt0 != 0)) && ( !(pc24_evt1 != 0))))))))) && ((((pc24_evt0 != 0) && (pc24_evt1 != 0)) && ((( !(_x_pc24_l2 != 0)) && (( !(_x_pc24_l0 != 0)) && ( !(_x_pc24_l1 != 0)))) || (( !(_x_pc24_l2 != 0)) && ((_x_pc24_l1 != 0) && ( !(_x_pc24_l0 != 0)))))) || ( !(((pc24_l2 != 0) && (( !(pc24_l0 != 0)) && ( !(pc24_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc24_evt0 != 0)) && ( !(pc24_evt1 != 0))))))))) && (((_x_pc24_x == 0.0) && (25.0 <= pc24_x)) || ( !((( !(_x_pc24_l2 != 0)) && (( !(_x_pc24_l0 != 0)) && ( !(_x_pc24_l1 != 0)))) && ((pc24_l2 != 0) && (( !(pc24_l0 != 0)) && ( !(pc24_l1 != 0)))))))) && (((pc24_x <= 24.0) && (pc24_x == _x_pc24_x)) || ( !(((pc24_l2 != 0) && (( !(pc24_l0 != 0)) && ( !(pc24_l1 != 0)))) && (( !(_x_pc24_l2 != 0)) && ((_x_pc24_l1 != 0) && ( !(_x_pc24_l0 != 0)))))))) && (((_x_pc24_x == 0.0) && (((pc24_evt1 != 0) && ( !(pc24_evt0 != 0))) && ((_x_pc24_l2 != 0) && ((_x_pc24_l1 != 0) && ( !(_x_pc24_l0 != 0)))))) || ( !((( !(pc24_l2 != 0)) && ((pc24_l1 != 0) && ( !(pc24_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc24_evt0 != 0)) && ( !(pc24_evt1 != 0))))))))) && (((( !(_x_pc24_l2 != 0)) && ((_x_pc24_l0 != 0) && ( !(_x_pc24_l1 != 0)))) || (( !(_x_pc24_l2 != 0)) && ((_x_pc24_l0 != 0) && (_x_pc24_l1 != 0)))) || ( !(((pc24_l2 != 0) && ((pc24_l1 != 0) && ( !(pc24_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc24_evt0 != 0)) && ( !(pc24_evt1 != 0))))))))) && (((pc24_x == _x_pc24_x) && (((pc24_evt0 != 0) && (pc24_evt1 != 0)) && (50.0 <= pc24_x))) || ( !(((pc24_l2 != 0) && ((pc24_l1 != 0) && ( !(pc24_l0 != 0)))) && (( !(_x_pc24_l2 != 0)) && ((_x_pc24_l0 != 0) && (_x_pc24_l1 != 0))))))) && (((_x_pc24_x == 0.0) && (((pc24_evt0 != 0) && ( !(pc24_evt1 != 0))) && (pc24_x <= 25.0))) || ( !(((pc24_l2 != 0) && ((pc24_l1 != 0) && ( !(pc24_l0 != 0)))) && (( !(_x_pc24_l2 != 0)) && ((_x_pc24_l0 != 0) && ( !(_x_pc24_l1 != 0)))))))) && (((((pc24_evt0 != 0) && (pc24_evt1 != 0)) && (pc24_x == _x_pc24_x)) && (((_x_pc24_l2 != 0) && ((_x_pc24_l0 != 0) && ( !(_x_pc24_l1 != 0)))) || (( !(_x_pc24_l2 != 0)) && ((_x_pc24_l0 != 0) && (_x_pc24_l1 != 0))))) || ( !((( !(pc24_l2 != 0)) && ((pc24_l0 != 0) && ( !(pc24_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc24_evt0 != 0)) && ( !(pc24_evt1 != 0))))))))) && ((25.0 <= pc24_x) || ( !((( !(pc24_l2 != 0)) && ((pc24_l0 != 0) && ( !(pc24_l1 != 0)))) && (( !(_x_pc24_l2 != 0)) && ((_x_pc24_l0 != 0) && (_x_pc24_l1 != 0))))))) && ((pc24_x <= 24.0) || ( !((( !(pc24_l2 != 0)) && ((pc24_l0 != 0) && ( !(pc24_l1 != 0)))) && ((_x_pc24_l2 != 0) && ((_x_pc24_l0 != 0) && ( !(_x_pc24_l1 != 0)))))))) && ((( !(_x_pc24_l2 != 0)) && ((_x_pc24_l0 != 0) && (_x_pc24_l1 != 0))) || ( !((( !(pc24_l2 != 0)) && ((pc24_l0 != 0) && (pc24_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc24_evt0 != 0)) && ( !(pc24_evt1 != 0))))))))) && ((( !(_x_pc24_l2 != 0)) && (( !(_x_pc24_l0 != 0)) && ( !(_x_pc24_l1 != 0)))) || ( !(((pc24_l2 != 0) && ((pc24_l0 != 0) && ( !(pc24_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc24_evt0 != 0)) && ( !(pc24_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc23_evt0 != 0)) && ( !(_x_pc23_evt1 != 0))) || ((_x_pc23_evt1 != 0) && ( !(_x_pc23_evt0 != 0)))) || (((_x_pc23_evt0 != 0) && ( !(_x_pc23_evt1 != 0))) || ((_x_pc23_evt0 != 0) && (_x_pc23_evt1 != 0)))) && ((( !(_x_pc23_l2 != 0)) && ((_x_pc23_l0 != 0) && (_x_pc23_l1 != 0))) || ((((( !(_x_pc23_l2 != 0)) && (( !(_x_pc23_l0 != 0)) && ( !(_x_pc23_l1 != 0)))) || ((_x_pc23_l2 != 0) && (( !(_x_pc23_l0 != 0)) && ( !(_x_pc23_l1 != 0))))) || ((( !(_x_pc23_l2 != 0)) && ((_x_pc23_l1 != 0) && ( !(_x_pc23_l0 != 0)))) || ((_x_pc23_l2 != 0) && ((_x_pc23_l1 != 0) && ( !(_x_pc23_l0 != 0)))))) || ((( !(_x_pc23_l2 != 0)) && ((_x_pc23_l0 != 0) && ( !(_x_pc23_l1 != 0)))) || ((_x_pc23_l2 != 0) && ((_x_pc23_l0 != 0) && ( !(_x_pc23_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc23_l0 != 0) == (_x_pc23_l0 != 0)) && ((pc23_l1 != 0) == (_x_pc23_l1 != 0))) && ((pc23_l2 != 0) == (_x_pc23_l2 != 0))) && ((delta + (pc23_x + (-1.0 * _x_pc23_x))) == 0.0)))) && ((((((pc23_l0 != 0) == (_x_pc23_l0 != 0)) && ((pc23_l1 != 0) == (_x_pc23_l1 != 0))) && ((pc23_l2 != 0) == (_x_pc23_l2 != 0))) && ((delta + (pc23_x + (-1.0 * _x_pc23_x))) == 0.0)) || ( !(( !(pc23_evt0 != 0)) && ( !(pc23_evt1 != 0)))))) && (((((pc23_evt0 != 0) && (pc23_evt1 != 0)) && (pc23_x <= 50.0)) && (((_x_pc23_l2 != 0) && (( !(_x_pc23_l0 != 0)) && ( !(_x_pc23_l1 != 0)))) && (_x_pc23_x == 0.0))) || ( !((( !(pc23_l2 != 0)) && (( !(pc23_l0 != 0)) && ( !(pc23_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc23_evt0 != 0)) && ( !(pc23_evt1 != 0))))))))) && ((((pc23_evt0 != 0) && (pc23_evt1 != 0)) && ((( !(_x_pc23_l2 != 0)) && (( !(_x_pc23_l0 != 0)) && ( !(_x_pc23_l1 != 0)))) || (( !(_x_pc23_l2 != 0)) && ((_x_pc23_l1 != 0) && ( !(_x_pc23_l0 != 0)))))) || ( !(((pc23_l2 != 0) && (( !(pc23_l0 != 0)) && ( !(pc23_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc23_evt0 != 0)) && ( !(pc23_evt1 != 0))))))))) && (((_x_pc23_x == 0.0) && (25.0 <= pc23_x)) || ( !((( !(_x_pc23_l2 != 0)) && (( !(_x_pc23_l0 != 0)) && ( !(_x_pc23_l1 != 0)))) && ((pc23_l2 != 0) && (( !(pc23_l0 != 0)) && ( !(pc23_l1 != 0)))))))) && (((pc23_x <= 24.0) && (pc23_x == _x_pc23_x)) || ( !(((pc23_l2 != 0) && (( !(pc23_l0 != 0)) && ( !(pc23_l1 != 0)))) && (( !(_x_pc23_l2 != 0)) && ((_x_pc23_l1 != 0) && ( !(_x_pc23_l0 != 0)))))))) && (((_x_pc23_x == 0.0) && (((pc23_evt1 != 0) && ( !(pc23_evt0 != 0))) && ((_x_pc23_l2 != 0) && ((_x_pc23_l1 != 0) && ( !(_x_pc23_l0 != 0)))))) || ( !((( !(pc23_l2 != 0)) && ((pc23_l1 != 0) && ( !(pc23_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc23_evt0 != 0)) && ( !(pc23_evt1 != 0))))))))) && (((( !(_x_pc23_l2 != 0)) && ((_x_pc23_l0 != 0) && ( !(_x_pc23_l1 != 0)))) || (( !(_x_pc23_l2 != 0)) && ((_x_pc23_l0 != 0) && (_x_pc23_l1 != 0)))) || ( !(((pc23_l2 != 0) && ((pc23_l1 != 0) && ( !(pc23_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc23_evt0 != 0)) && ( !(pc23_evt1 != 0))))))))) && (((pc23_x == _x_pc23_x) && (((pc23_evt0 != 0) && (pc23_evt1 != 0)) && (50.0 <= pc23_x))) || ( !(((pc23_l2 != 0) && ((pc23_l1 != 0) && ( !(pc23_l0 != 0)))) && (( !(_x_pc23_l2 != 0)) && ((_x_pc23_l0 != 0) && (_x_pc23_l1 != 0))))))) && (((_x_pc23_x == 0.0) && (((pc23_evt0 != 0) && ( !(pc23_evt1 != 0))) && (pc23_x <= 25.0))) || ( !(((pc23_l2 != 0) && ((pc23_l1 != 0) && ( !(pc23_l0 != 0)))) && (( !(_x_pc23_l2 != 0)) && ((_x_pc23_l0 != 0) && ( !(_x_pc23_l1 != 0)))))))) && (((((pc23_evt0 != 0) && (pc23_evt1 != 0)) && (pc23_x == _x_pc23_x)) && (((_x_pc23_l2 != 0) && ((_x_pc23_l0 != 0) && ( !(_x_pc23_l1 != 0)))) || (( !(_x_pc23_l2 != 0)) && ((_x_pc23_l0 != 0) && (_x_pc23_l1 != 0))))) || ( !((( !(pc23_l2 != 0)) && ((pc23_l0 != 0) && ( !(pc23_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc23_evt0 != 0)) && ( !(pc23_evt1 != 0))))))))) && ((25.0 <= pc23_x) || ( !((( !(pc23_l2 != 0)) && ((pc23_l0 != 0) && ( !(pc23_l1 != 0)))) && (( !(_x_pc23_l2 != 0)) && ((_x_pc23_l0 != 0) && (_x_pc23_l1 != 0))))))) && ((pc23_x <= 24.0) || ( !((( !(pc23_l2 != 0)) && ((pc23_l0 != 0) && ( !(pc23_l1 != 0)))) && ((_x_pc23_l2 != 0) && ((_x_pc23_l0 != 0) && ( !(_x_pc23_l1 != 0)))))))) && ((( !(_x_pc23_l2 != 0)) && ((_x_pc23_l0 != 0) && (_x_pc23_l1 != 0))) || ( !((( !(pc23_l2 != 0)) && ((pc23_l0 != 0) && (pc23_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc23_evt0 != 0)) && ( !(pc23_evt1 != 0))))))))) && ((( !(_x_pc23_l2 != 0)) && (( !(_x_pc23_l0 != 0)) && ( !(_x_pc23_l1 != 0)))) || ( !(((pc23_l2 != 0) && ((pc23_l0 != 0) && ( !(pc23_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc23_evt0 != 0)) && ( !(pc23_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc22_evt0 != 0)) && ( !(_x_pc22_evt1 != 0))) || ((_x_pc22_evt1 != 0) && ( !(_x_pc22_evt0 != 0)))) || (((_x_pc22_evt0 != 0) && ( !(_x_pc22_evt1 != 0))) || ((_x_pc22_evt0 != 0) && (_x_pc22_evt1 != 0)))) && ((( !(_x_pc22_l2 != 0)) && ((_x_pc22_l0 != 0) && (_x_pc22_l1 != 0))) || ((((( !(_x_pc22_l2 != 0)) && (( !(_x_pc22_l0 != 0)) && ( !(_x_pc22_l1 != 0)))) || ((_x_pc22_l2 != 0) && (( !(_x_pc22_l0 != 0)) && ( !(_x_pc22_l1 != 0))))) || ((( !(_x_pc22_l2 != 0)) && ((_x_pc22_l1 != 0) && ( !(_x_pc22_l0 != 0)))) || ((_x_pc22_l2 != 0) && ((_x_pc22_l1 != 0) && ( !(_x_pc22_l0 != 0)))))) || ((( !(_x_pc22_l2 != 0)) && ((_x_pc22_l0 != 0) && ( !(_x_pc22_l1 != 0)))) || ((_x_pc22_l2 != 0) && ((_x_pc22_l0 != 0) && ( !(_x_pc22_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc22_l0 != 0) == (_x_pc22_l0 != 0)) && ((pc22_l1 != 0) == (_x_pc22_l1 != 0))) && ((pc22_l2 != 0) == (_x_pc22_l2 != 0))) && ((delta + (pc22_x + (-1.0 * _x_pc22_x))) == 0.0)))) && ((((((pc22_l0 != 0) == (_x_pc22_l0 != 0)) && ((pc22_l1 != 0) == (_x_pc22_l1 != 0))) && ((pc22_l2 != 0) == (_x_pc22_l2 != 0))) && ((delta + (pc22_x + (-1.0 * _x_pc22_x))) == 0.0)) || ( !(( !(pc22_evt0 != 0)) && ( !(pc22_evt1 != 0)))))) && (((((pc22_evt0 != 0) && (pc22_evt1 != 0)) && (pc22_x <= 50.0)) && (((_x_pc22_l2 != 0) && (( !(_x_pc22_l0 != 0)) && ( !(_x_pc22_l1 != 0)))) && (_x_pc22_x == 0.0))) || ( !((( !(pc22_l2 != 0)) && (( !(pc22_l0 != 0)) && ( !(pc22_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc22_evt0 != 0)) && ( !(pc22_evt1 != 0))))))))) && ((((pc22_evt0 != 0) && (pc22_evt1 != 0)) && ((( !(_x_pc22_l2 != 0)) && (( !(_x_pc22_l0 != 0)) && ( !(_x_pc22_l1 != 0)))) || (( !(_x_pc22_l2 != 0)) && ((_x_pc22_l1 != 0) && ( !(_x_pc22_l0 != 0)))))) || ( !(((pc22_l2 != 0) && (( !(pc22_l0 != 0)) && ( !(pc22_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc22_evt0 != 0)) && ( !(pc22_evt1 != 0))))))))) && (((_x_pc22_x == 0.0) && (25.0 <= pc22_x)) || ( !((( !(_x_pc22_l2 != 0)) && (( !(_x_pc22_l0 != 0)) && ( !(_x_pc22_l1 != 0)))) && ((pc22_l2 != 0) && (( !(pc22_l0 != 0)) && ( !(pc22_l1 != 0)))))))) && (((pc22_x <= 24.0) && (pc22_x == _x_pc22_x)) || ( !(((pc22_l2 != 0) && (( !(pc22_l0 != 0)) && ( !(pc22_l1 != 0)))) && (( !(_x_pc22_l2 != 0)) && ((_x_pc22_l1 != 0) && ( !(_x_pc22_l0 != 0)))))))) && (((_x_pc22_x == 0.0) && (((pc22_evt1 != 0) && ( !(pc22_evt0 != 0))) && ((_x_pc22_l2 != 0) && ((_x_pc22_l1 != 0) && ( !(_x_pc22_l0 != 0)))))) || ( !((( !(pc22_l2 != 0)) && ((pc22_l1 != 0) && ( !(pc22_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc22_evt0 != 0)) && ( !(pc22_evt1 != 0))))))))) && (((( !(_x_pc22_l2 != 0)) && ((_x_pc22_l0 != 0) && ( !(_x_pc22_l1 != 0)))) || (( !(_x_pc22_l2 != 0)) && ((_x_pc22_l0 != 0) && (_x_pc22_l1 != 0)))) || ( !(((pc22_l2 != 0) && ((pc22_l1 != 0) && ( !(pc22_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc22_evt0 != 0)) && ( !(pc22_evt1 != 0))))))))) && (((pc22_x == _x_pc22_x) && (((pc22_evt0 != 0) && (pc22_evt1 != 0)) && (50.0 <= pc22_x))) || ( !(((pc22_l2 != 0) && ((pc22_l1 != 0) && ( !(pc22_l0 != 0)))) && (( !(_x_pc22_l2 != 0)) && ((_x_pc22_l0 != 0) && (_x_pc22_l1 != 0))))))) && (((_x_pc22_x == 0.0) && (((pc22_evt0 != 0) && ( !(pc22_evt1 != 0))) && (pc22_x <= 25.0))) || ( !(((pc22_l2 != 0) && ((pc22_l1 != 0) && ( !(pc22_l0 != 0)))) && (( !(_x_pc22_l2 != 0)) && ((_x_pc22_l0 != 0) && ( !(_x_pc22_l1 != 0)))))))) && (((((pc22_evt0 != 0) && (pc22_evt1 != 0)) && (pc22_x == _x_pc22_x)) && (((_x_pc22_l2 != 0) && ((_x_pc22_l0 != 0) && ( !(_x_pc22_l1 != 0)))) || (( !(_x_pc22_l2 != 0)) && ((_x_pc22_l0 != 0) && (_x_pc22_l1 != 0))))) || ( !((( !(pc22_l2 != 0)) && ((pc22_l0 != 0) && ( !(pc22_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc22_evt0 != 0)) && ( !(pc22_evt1 != 0))))))))) && ((25.0 <= pc22_x) || ( !((( !(pc22_l2 != 0)) && ((pc22_l0 != 0) && ( !(pc22_l1 != 0)))) && (( !(_x_pc22_l2 != 0)) && ((_x_pc22_l0 != 0) && (_x_pc22_l1 != 0))))))) && ((pc22_x <= 24.0) || ( !((( !(pc22_l2 != 0)) && ((pc22_l0 != 0) && ( !(pc22_l1 != 0)))) && ((_x_pc22_l2 != 0) && ((_x_pc22_l0 != 0) && ( !(_x_pc22_l1 != 0)))))))) && ((( !(_x_pc22_l2 != 0)) && ((_x_pc22_l0 != 0) && (_x_pc22_l1 != 0))) || ( !((( !(pc22_l2 != 0)) && ((pc22_l0 != 0) && (pc22_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc22_evt0 != 0)) && ( !(pc22_evt1 != 0))))))))) && ((( !(_x_pc22_l2 != 0)) && (( !(_x_pc22_l0 != 0)) && ( !(_x_pc22_l1 != 0)))) || ( !(((pc22_l2 != 0) && ((pc22_l0 != 0) && ( !(pc22_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc22_evt0 != 0)) && ( !(pc22_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc21_evt0 != 0)) && ( !(_x_pc21_evt1 != 0))) || ((_x_pc21_evt1 != 0) && ( !(_x_pc21_evt0 != 0)))) || (((_x_pc21_evt0 != 0) && ( !(_x_pc21_evt1 != 0))) || ((_x_pc21_evt0 != 0) && (_x_pc21_evt1 != 0)))) && ((( !(_x_pc21_l2 != 0)) && ((_x_pc21_l0 != 0) && (_x_pc21_l1 != 0))) || ((((( !(_x_pc21_l2 != 0)) && (( !(_x_pc21_l0 != 0)) && ( !(_x_pc21_l1 != 0)))) || ((_x_pc21_l2 != 0) && (( !(_x_pc21_l0 != 0)) && ( !(_x_pc21_l1 != 0))))) || ((( !(_x_pc21_l2 != 0)) && ((_x_pc21_l1 != 0) && ( !(_x_pc21_l0 != 0)))) || ((_x_pc21_l2 != 0) && ((_x_pc21_l1 != 0) && ( !(_x_pc21_l0 != 0)))))) || ((( !(_x_pc21_l2 != 0)) && ((_x_pc21_l0 != 0) && ( !(_x_pc21_l1 != 0)))) || ((_x_pc21_l2 != 0) && ((_x_pc21_l0 != 0) && ( !(_x_pc21_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc21_l0 != 0) == (_x_pc21_l0 != 0)) && ((pc21_l1 != 0) == (_x_pc21_l1 != 0))) && ((pc21_l2 != 0) == (_x_pc21_l2 != 0))) && ((delta + (pc21_x + (-1.0 * _x_pc21_x))) == 0.0)))) && ((((((pc21_l0 != 0) == (_x_pc21_l0 != 0)) && ((pc21_l1 != 0) == (_x_pc21_l1 != 0))) && ((pc21_l2 != 0) == (_x_pc21_l2 != 0))) && ((delta + (pc21_x + (-1.0 * _x_pc21_x))) == 0.0)) || ( !(( !(pc21_evt0 != 0)) && ( !(pc21_evt1 != 0)))))) && (((((pc21_evt0 != 0) && (pc21_evt1 != 0)) && (pc21_x <= 50.0)) && (((_x_pc21_l2 != 0) && (( !(_x_pc21_l0 != 0)) && ( !(_x_pc21_l1 != 0)))) && (_x_pc21_x == 0.0))) || ( !((( !(pc21_l2 != 0)) && (( !(pc21_l0 != 0)) && ( !(pc21_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc21_evt0 != 0)) && ( !(pc21_evt1 != 0))))))))) && ((((pc21_evt0 != 0) && (pc21_evt1 != 0)) && ((( !(_x_pc21_l2 != 0)) && (( !(_x_pc21_l0 != 0)) && ( !(_x_pc21_l1 != 0)))) || (( !(_x_pc21_l2 != 0)) && ((_x_pc21_l1 != 0) && ( !(_x_pc21_l0 != 0)))))) || ( !(((pc21_l2 != 0) && (( !(pc21_l0 != 0)) && ( !(pc21_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc21_evt0 != 0)) && ( !(pc21_evt1 != 0))))))))) && (((_x_pc21_x == 0.0) && (25.0 <= pc21_x)) || ( !((( !(_x_pc21_l2 != 0)) && (( !(_x_pc21_l0 != 0)) && ( !(_x_pc21_l1 != 0)))) && ((pc21_l2 != 0) && (( !(pc21_l0 != 0)) && ( !(pc21_l1 != 0)))))))) && (((pc21_x <= 24.0) && (pc21_x == _x_pc21_x)) || ( !(((pc21_l2 != 0) && (( !(pc21_l0 != 0)) && ( !(pc21_l1 != 0)))) && (( !(_x_pc21_l2 != 0)) && ((_x_pc21_l1 != 0) && ( !(_x_pc21_l0 != 0)))))))) && (((_x_pc21_x == 0.0) && (((pc21_evt1 != 0) && ( !(pc21_evt0 != 0))) && ((_x_pc21_l2 != 0) && ((_x_pc21_l1 != 0) && ( !(_x_pc21_l0 != 0)))))) || ( !((( !(pc21_l2 != 0)) && ((pc21_l1 != 0) && ( !(pc21_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc21_evt0 != 0)) && ( !(pc21_evt1 != 0))))))))) && (((( !(_x_pc21_l2 != 0)) && ((_x_pc21_l0 != 0) && ( !(_x_pc21_l1 != 0)))) || (( !(_x_pc21_l2 != 0)) && ((_x_pc21_l0 != 0) && (_x_pc21_l1 != 0)))) || ( !(((pc21_l2 != 0) && ((pc21_l1 != 0) && ( !(pc21_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc21_evt0 != 0)) && ( !(pc21_evt1 != 0))))))))) && (((pc21_x == _x_pc21_x) && (((pc21_evt0 != 0) && (pc21_evt1 != 0)) && (50.0 <= pc21_x))) || ( !(((pc21_l2 != 0) && ((pc21_l1 != 0) && ( !(pc21_l0 != 0)))) && (( !(_x_pc21_l2 != 0)) && ((_x_pc21_l0 != 0) && (_x_pc21_l1 != 0))))))) && (((_x_pc21_x == 0.0) && (((pc21_evt0 != 0) && ( !(pc21_evt1 != 0))) && (pc21_x <= 25.0))) || ( !(((pc21_l2 != 0) && ((pc21_l1 != 0) && ( !(pc21_l0 != 0)))) && (( !(_x_pc21_l2 != 0)) && ((_x_pc21_l0 != 0) && ( !(_x_pc21_l1 != 0)))))))) && (((((pc21_evt0 != 0) && (pc21_evt1 != 0)) && (pc21_x == _x_pc21_x)) && (((_x_pc21_l2 != 0) && ((_x_pc21_l0 != 0) && ( !(_x_pc21_l1 != 0)))) || (( !(_x_pc21_l2 != 0)) && ((_x_pc21_l0 != 0) && (_x_pc21_l1 != 0))))) || ( !((( !(pc21_l2 != 0)) && ((pc21_l0 != 0) && ( !(pc21_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc21_evt0 != 0)) && ( !(pc21_evt1 != 0))))))))) && ((25.0 <= pc21_x) || ( !((( !(pc21_l2 != 0)) && ((pc21_l0 != 0) && ( !(pc21_l1 != 0)))) && (( !(_x_pc21_l2 != 0)) && ((_x_pc21_l0 != 0) && (_x_pc21_l1 != 0))))))) && ((pc21_x <= 24.0) || ( !((( !(pc21_l2 != 0)) && ((pc21_l0 != 0) && ( !(pc21_l1 != 0)))) && ((_x_pc21_l2 != 0) && ((_x_pc21_l0 != 0) && ( !(_x_pc21_l1 != 0)))))))) && ((( !(_x_pc21_l2 != 0)) && ((_x_pc21_l0 != 0) && (_x_pc21_l1 != 0))) || ( !((( !(pc21_l2 != 0)) && ((pc21_l0 != 0) && (pc21_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc21_evt0 != 0)) && ( !(pc21_evt1 != 0))))))))) && ((( !(_x_pc21_l2 != 0)) && (( !(_x_pc21_l0 != 0)) && ( !(_x_pc21_l1 != 0)))) || ( !(((pc21_l2 != 0) && ((pc21_l0 != 0) && ( !(pc21_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc21_evt0 != 0)) && ( !(pc21_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc20_evt0 != 0)) && ( !(_x_pc20_evt1 != 0))) || ((_x_pc20_evt1 != 0) && ( !(_x_pc20_evt0 != 0)))) || (((_x_pc20_evt0 != 0) && ( !(_x_pc20_evt1 != 0))) || ((_x_pc20_evt0 != 0) && (_x_pc20_evt1 != 0)))) && ((( !(_x_pc20_l2 != 0)) && ((_x_pc20_l0 != 0) && (_x_pc20_l1 != 0))) || ((((( !(_x_pc20_l2 != 0)) && (( !(_x_pc20_l0 != 0)) && ( !(_x_pc20_l1 != 0)))) || ((_x_pc20_l2 != 0) && (( !(_x_pc20_l0 != 0)) && ( !(_x_pc20_l1 != 0))))) || ((( !(_x_pc20_l2 != 0)) && ((_x_pc20_l1 != 0) && ( !(_x_pc20_l0 != 0)))) || ((_x_pc20_l2 != 0) && ((_x_pc20_l1 != 0) && ( !(_x_pc20_l0 != 0)))))) || ((( !(_x_pc20_l2 != 0)) && ((_x_pc20_l0 != 0) && ( !(_x_pc20_l1 != 0)))) || ((_x_pc20_l2 != 0) && ((_x_pc20_l0 != 0) && ( !(_x_pc20_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc20_l0 != 0) == (_x_pc20_l0 != 0)) && ((pc20_l1 != 0) == (_x_pc20_l1 != 0))) && ((pc20_l2 != 0) == (_x_pc20_l2 != 0))) && ((delta + (pc20_x + (-1.0 * _x_pc20_x))) == 0.0)))) && ((((((pc20_l0 != 0) == (_x_pc20_l0 != 0)) && ((pc20_l1 != 0) == (_x_pc20_l1 != 0))) && ((pc20_l2 != 0) == (_x_pc20_l2 != 0))) && ((delta + (pc20_x + (-1.0 * _x_pc20_x))) == 0.0)) || ( !(( !(pc20_evt0 != 0)) && ( !(pc20_evt1 != 0)))))) && (((((pc20_evt0 != 0) && (pc20_evt1 != 0)) && (pc20_x <= 50.0)) && (((_x_pc20_l2 != 0) && (( !(_x_pc20_l0 != 0)) && ( !(_x_pc20_l1 != 0)))) && (_x_pc20_x == 0.0))) || ( !((( !(pc20_l2 != 0)) && (( !(pc20_l0 != 0)) && ( !(pc20_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc20_evt0 != 0)) && ( !(pc20_evt1 != 0))))))))) && ((((pc20_evt0 != 0) && (pc20_evt1 != 0)) && ((( !(_x_pc20_l2 != 0)) && (( !(_x_pc20_l0 != 0)) && ( !(_x_pc20_l1 != 0)))) || (( !(_x_pc20_l2 != 0)) && ((_x_pc20_l1 != 0) && ( !(_x_pc20_l0 != 0)))))) || ( !(((pc20_l2 != 0) && (( !(pc20_l0 != 0)) && ( !(pc20_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc20_evt0 != 0)) && ( !(pc20_evt1 != 0))))))))) && (((_x_pc20_x == 0.0) && (25.0 <= pc20_x)) || ( !((( !(_x_pc20_l2 != 0)) && (( !(_x_pc20_l0 != 0)) && ( !(_x_pc20_l1 != 0)))) && ((pc20_l2 != 0) && (( !(pc20_l0 != 0)) && ( !(pc20_l1 != 0)))))))) && (((pc20_x <= 24.0) && (pc20_x == _x_pc20_x)) || ( !(((pc20_l2 != 0) && (( !(pc20_l0 != 0)) && ( !(pc20_l1 != 0)))) && (( !(_x_pc20_l2 != 0)) && ((_x_pc20_l1 != 0) && ( !(_x_pc20_l0 != 0)))))))) && (((_x_pc20_x == 0.0) && (((pc20_evt1 != 0) && ( !(pc20_evt0 != 0))) && ((_x_pc20_l2 != 0) && ((_x_pc20_l1 != 0) && ( !(_x_pc20_l0 != 0)))))) || ( !((( !(pc20_l2 != 0)) && ((pc20_l1 != 0) && ( !(pc20_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc20_evt0 != 0)) && ( !(pc20_evt1 != 0))))))))) && (((( !(_x_pc20_l2 != 0)) && ((_x_pc20_l0 != 0) && ( !(_x_pc20_l1 != 0)))) || (( !(_x_pc20_l2 != 0)) && ((_x_pc20_l0 != 0) && (_x_pc20_l1 != 0)))) || ( !(((pc20_l2 != 0) && ((pc20_l1 != 0) && ( !(pc20_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc20_evt0 != 0)) && ( !(pc20_evt1 != 0))))))))) && (((pc20_x == _x_pc20_x) && (((pc20_evt0 != 0) && (pc20_evt1 != 0)) && (50.0 <= pc20_x))) || ( !(((pc20_l2 != 0) && ((pc20_l1 != 0) && ( !(pc20_l0 != 0)))) && (( !(_x_pc20_l2 != 0)) && ((_x_pc20_l0 != 0) && (_x_pc20_l1 != 0))))))) && (((_x_pc20_x == 0.0) && (((pc20_evt0 != 0) && ( !(pc20_evt1 != 0))) && (pc20_x <= 25.0))) || ( !(((pc20_l2 != 0) && ((pc20_l1 != 0) && ( !(pc20_l0 != 0)))) && (( !(_x_pc20_l2 != 0)) && ((_x_pc20_l0 != 0) && ( !(_x_pc20_l1 != 0)))))))) && (((((pc20_evt0 != 0) && (pc20_evt1 != 0)) && (pc20_x == _x_pc20_x)) && (((_x_pc20_l2 != 0) && ((_x_pc20_l0 != 0) && ( !(_x_pc20_l1 != 0)))) || (( !(_x_pc20_l2 != 0)) && ((_x_pc20_l0 != 0) && (_x_pc20_l1 != 0))))) || ( !((( !(pc20_l2 != 0)) && ((pc20_l0 != 0) && ( !(pc20_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc20_evt0 != 0)) && ( !(pc20_evt1 != 0))))))))) && ((25.0 <= pc20_x) || ( !((( !(pc20_l2 != 0)) && ((pc20_l0 != 0) && ( !(pc20_l1 != 0)))) && (( !(_x_pc20_l2 != 0)) && ((_x_pc20_l0 != 0) && (_x_pc20_l1 != 0))))))) && ((pc20_x <= 24.0) || ( !((( !(pc20_l2 != 0)) && ((pc20_l0 != 0) && ( !(pc20_l1 != 0)))) && ((_x_pc20_l2 != 0) && ((_x_pc20_l0 != 0) && ( !(_x_pc20_l1 != 0)))))))) && ((( !(_x_pc20_l2 != 0)) && ((_x_pc20_l0 != 0) && (_x_pc20_l1 != 0))) || ( !((( !(pc20_l2 != 0)) && ((pc20_l0 != 0) && (pc20_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc20_evt0 != 0)) && ( !(pc20_evt1 != 0))))))))) && ((( !(_x_pc20_l2 != 0)) && (( !(_x_pc20_l0 != 0)) && ( !(_x_pc20_l1 != 0)))) || ( !(((pc20_l2 != 0) && ((pc20_l0 != 0) && ( !(pc20_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc20_evt0 != 0)) && ( !(pc20_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc19_evt0 != 0)) && ( !(_x_pc19_evt1 != 0))) || ((_x_pc19_evt1 != 0) && ( !(_x_pc19_evt0 != 0)))) || (((_x_pc19_evt0 != 0) && ( !(_x_pc19_evt1 != 0))) || ((_x_pc19_evt0 != 0) && (_x_pc19_evt1 != 0)))) && ((( !(_x_pc19_l2 != 0)) && ((_x_pc19_l0 != 0) && (_x_pc19_l1 != 0))) || ((((( !(_x_pc19_l2 != 0)) && (( !(_x_pc19_l0 != 0)) && ( !(_x_pc19_l1 != 0)))) || ((_x_pc19_l2 != 0) && (( !(_x_pc19_l0 != 0)) && ( !(_x_pc19_l1 != 0))))) || ((( !(_x_pc19_l2 != 0)) && ((_x_pc19_l1 != 0) && ( !(_x_pc19_l0 != 0)))) || ((_x_pc19_l2 != 0) && ((_x_pc19_l1 != 0) && ( !(_x_pc19_l0 != 0)))))) || ((( !(_x_pc19_l2 != 0)) && ((_x_pc19_l0 != 0) && ( !(_x_pc19_l1 != 0)))) || ((_x_pc19_l2 != 0) && ((_x_pc19_l0 != 0) && ( !(_x_pc19_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc19_l0 != 0) == (_x_pc19_l0 != 0)) && ((pc19_l1 != 0) == (_x_pc19_l1 != 0))) && ((pc19_l2 != 0) == (_x_pc19_l2 != 0))) && ((delta + (pc19_x + (-1.0 * _x_pc19_x))) == 0.0)))) && ((((((pc19_l0 != 0) == (_x_pc19_l0 != 0)) && ((pc19_l1 != 0) == (_x_pc19_l1 != 0))) && ((pc19_l2 != 0) == (_x_pc19_l2 != 0))) && ((delta + (pc19_x + (-1.0 * _x_pc19_x))) == 0.0)) || ( !(( !(pc19_evt0 != 0)) && ( !(pc19_evt1 != 0)))))) && (((((pc19_evt0 != 0) && (pc19_evt1 != 0)) && (pc19_x <= 50.0)) && (((_x_pc19_l2 != 0) && (( !(_x_pc19_l0 != 0)) && ( !(_x_pc19_l1 != 0)))) && (_x_pc19_x == 0.0))) || ( !((( !(pc19_l2 != 0)) && (( !(pc19_l0 != 0)) && ( !(pc19_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc19_evt0 != 0)) && ( !(pc19_evt1 != 0))))))))) && ((((pc19_evt0 != 0) && (pc19_evt1 != 0)) && ((( !(_x_pc19_l2 != 0)) && (( !(_x_pc19_l0 != 0)) && ( !(_x_pc19_l1 != 0)))) || (( !(_x_pc19_l2 != 0)) && ((_x_pc19_l1 != 0) && ( !(_x_pc19_l0 != 0)))))) || ( !(((pc19_l2 != 0) && (( !(pc19_l0 != 0)) && ( !(pc19_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc19_evt0 != 0)) && ( !(pc19_evt1 != 0))))))))) && (((_x_pc19_x == 0.0) && (25.0 <= pc19_x)) || ( !((( !(_x_pc19_l2 != 0)) && (( !(_x_pc19_l0 != 0)) && ( !(_x_pc19_l1 != 0)))) && ((pc19_l2 != 0) && (( !(pc19_l0 != 0)) && ( !(pc19_l1 != 0)))))))) && (((pc19_x <= 24.0) && (pc19_x == _x_pc19_x)) || ( !(((pc19_l2 != 0) && (( !(pc19_l0 != 0)) && ( !(pc19_l1 != 0)))) && (( !(_x_pc19_l2 != 0)) && ((_x_pc19_l1 != 0) && ( !(_x_pc19_l0 != 0)))))))) && (((_x_pc19_x == 0.0) && (((pc19_evt1 != 0) && ( !(pc19_evt0 != 0))) && ((_x_pc19_l2 != 0) && ((_x_pc19_l1 != 0) && ( !(_x_pc19_l0 != 0)))))) || ( !((( !(pc19_l2 != 0)) && ((pc19_l1 != 0) && ( !(pc19_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc19_evt0 != 0)) && ( !(pc19_evt1 != 0))))))))) && (((( !(_x_pc19_l2 != 0)) && ((_x_pc19_l0 != 0) && ( !(_x_pc19_l1 != 0)))) || (( !(_x_pc19_l2 != 0)) && ((_x_pc19_l0 != 0) && (_x_pc19_l1 != 0)))) || ( !(((pc19_l2 != 0) && ((pc19_l1 != 0) && ( !(pc19_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc19_evt0 != 0)) && ( !(pc19_evt1 != 0))))))))) && (((pc19_x == _x_pc19_x) && (((pc19_evt0 != 0) && (pc19_evt1 != 0)) && (50.0 <= pc19_x))) || ( !(((pc19_l2 != 0) && ((pc19_l1 != 0) && ( !(pc19_l0 != 0)))) && (( !(_x_pc19_l2 != 0)) && ((_x_pc19_l0 != 0) && (_x_pc19_l1 != 0))))))) && (((_x_pc19_x == 0.0) && (((pc19_evt0 != 0) && ( !(pc19_evt1 != 0))) && (pc19_x <= 25.0))) || ( !(((pc19_l2 != 0) && ((pc19_l1 != 0) && ( !(pc19_l0 != 0)))) && (( !(_x_pc19_l2 != 0)) && ((_x_pc19_l0 != 0) && ( !(_x_pc19_l1 != 0)))))))) && (((((pc19_evt0 != 0) && (pc19_evt1 != 0)) && (pc19_x == _x_pc19_x)) && (((_x_pc19_l2 != 0) && ((_x_pc19_l0 != 0) && ( !(_x_pc19_l1 != 0)))) || (( !(_x_pc19_l2 != 0)) && ((_x_pc19_l0 != 0) && (_x_pc19_l1 != 0))))) || ( !((( !(pc19_l2 != 0)) && ((pc19_l0 != 0) && ( !(pc19_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc19_evt0 != 0)) && ( !(pc19_evt1 != 0))))))))) && ((25.0 <= pc19_x) || ( !((( !(pc19_l2 != 0)) && ((pc19_l0 != 0) && ( !(pc19_l1 != 0)))) && (( !(_x_pc19_l2 != 0)) && ((_x_pc19_l0 != 0) && (_x_pc19_l1 != 0))))))) && ((pc19_x <= 24.0) || ( !((( !(pc19_l2 != 0)) && ((pc19_l0 != 0) && ( !(pc19_l1 != 0)))) && ((_x_pc19_l2 != 0) && ((_x_pc19_l0 != 0) && ( !(_x_pc19_l1 != 0)))))))) && ((( !(_x_pc19_l2 != 0)) && ((_x_pc19_l0 != 0) && (_x_pc19_l1 != 0))) || ( !((( !(pc19_l2 != 0)) && ((pc19_l0 != 0) && (pc19_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc19_evt0 != 0)) && ( !(pc19_evt1 != 0))))))))) && ((( !(_x_pc19_l2 != 0)) && (( !(_x_pc19_l0 != 0)) && ( !(_x_pc19_l1 != 0)))) || ( !(((pc19_l2 != 0) && ((pc19_l0 != 0) && ( !(pc19_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc19_evt0 != 0)) && ( !(pc19_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc18_evt0 != 0)) && ( !(_x_pc18_evt1 != 0))) || ((_x_pc18_evt1 != 0) && ( !(_x_pc18_evt0 != 0)))) || (((_x_pc18_evt0 != 0) && ( !(_x_pc18_evt1 != 0))) || ((_x_pc18_evt0 != 0) && (_x_pc18_evt1 != 0)))) && ((( !(_x_pc18_l2 != 0)) && ((_x_pc18_l0 != 0) && (_x_pc18_l1 != 0))) || ((((( !(_x_pc18_l2 != 0)) && (( !(_x_pc18_l0 != 0)) && ( !(_x_pc18_l1 != 0)))) || ((_x_pc18_l2 != 0) && (( !(_x_pc18_l0 != 0)) && ( !(_x_pc18_l1 != 0))))) || ((( !(_x_pc18_l2 != 0)) && ((_x_pc18_l1 != 0) && ( !(_x_pc18_l0 != 0)))) || ((_x_pc18_l2 != 0) && ((_x_pc18_l1 != 0) && ( !(_x_pc18_l0 != 0)))))) || ((( !(_x_pc18_l2 != 0)) && ((_x_pc18_l0 != 0) && ( !(_x_pc18_l1 != 0)))) || ((_x_pc18_l2 != 0) && ((_x_pc18_l0 != 0) && ( !(_x_pc18_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc18_l0 != 0) == (_x_pc18_l0 != 0)) && ((pc18_l1 != 0) == (_x_pc18_l1 != 0))) && ((pc18_l2 != 0) == (_x_pc18_l2 != 0))) && ((delta + (pc18_x + (-1.0 * _x_pc18_x))) == 0.0)))) && ((((((pc18_l0 != 0) == (_x_pc18_l0 != 0)) && ((pc18_l1 != 0) == (_x_pc18_l1 != 0))) && ((pc18_l2 != 0) == (_x_pc18_l2 != 0))) && ((delta + (pc18_x + (-1.0 * _x_pc18_x))) == 0.0)) || ( !(( !(pc18_evt0 != 0)) && ( !(pc18_evt1 != 0)))))) && (((((pc18_evt0 != 0) && (pc18_evt1 != 0)) && (pc18_x <= 50.0)) && (((_x_pc18_l2 != 0) && (( !(_x_pc18_l0 != 0)) && ( !(_x_pc18_l1 != 0)))) && (_x_pc18_x == 0.0))) || ( !((( !(pc18_l2 != 0)) && (( !(pc18_l0 != 0)) && ( !(pc18_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc18_evt0 != 0)) && ( !(pc18_evt1 != 0))))))))) && ((((pc18_evt0 != 0) && (pc18_evt1 != 0)) && ((( !(_x_pc18_l2 != 0)) && (( !(_x_pc18_l0 != 0)) && ( !(_x_pc18_l1 != 0)))) || (( !(_x_pc18_l2 != 0)) && ((_x_pc18_l1 != 0) && ( !(_x_pc18_l0 != 0)))))) || ( !(((pc18_l2 != 0) && (( !(pc18_l0 != 0)) && ( !(pc18_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc18_evt0 != 0)) && ( !(pc18_evt1 != 0))))))))) && (((_x_pc18_x == 0.0) && (25.0 <= pc18_x)) || ( !((( !(_x_pc18_l2 != 0)) && (( !(_x_pc18_l0 != 0)) && ( !(_x_pc18_l1 != 0)))) && ((pc18_l2 != 0) && (( !(pc18_l0 != 0)) && ( !(pc18_l1 != 0)))))))) && (((pc18_x <= 24.0) && (pc18_x == _x_pc18_x)) || ( !(((pc18_l2 != 0) && (( !(pc18_l0 != 0)) && ( !(pc18_l1 != 0)))) && (( !(_x_pc18_l2 != 0)) && ((_x_pc18_l1 != 0) && ( !(_x_pc18_l0 != 0)))))))) && (((_x_pc18_x == 0.0) && (((pc18_evt1 != 0) && ( !(pc18_evt0 != 0))) && ((_x_pc18_l2 != 0) && ((_x_pc18_l1 != 0) && ( !(_x_pc18_l0 != 0)))))) || ( !((( !(pc18_l2 != 0)) && ((pc18_l1 != 0) && ( !(pc18_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc18_evt0 != 0)) && ( !(pc18_evt1 != 0))))))))) && (((( !(_x_pc18_l2 != 0)) && ((_x_pc18_l0 != 0) && ( !(_x_pc18_l1 != 0)))) || (( !(_x_pc18_l2 != 0)) && ((_x_pc18_l0 != 0) && (_x_pc18_l1 != 0)))) || ( !(((pc18_l2 != 0) && ((pc18_l1 != 0) && ( !(pc18_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc18_evt0 != 0)) && ( !(pc18_evt1 != 0))))))))) && (((pc18_x == _x_pc18_x) && (((pc18_evt0 != 0) && (pc18_evt1 != 0)) && (50.0 <= pc18_x))) || ( !(((pc18_l2 != 0) && ((pc18_l1 != 0) && ( !(pc18_l0 != 0)))) && (( !(_x_pc18_l2 != 0)) && ((_x_pc18_l0 != 0) && (_x_pc18_l1 != 0))))))) && (((_x_pc18_x == 0.0) && (((pc18_evt0 != 0) && ( !(pc18_evt1 != 0))) && (pc18_x <= 25.0))) || ( !(((pc18_l2 != 0) && ((pc18_l1 != 0) && ( !(pc18_l0 != 0)))) && (( !(_x_pc18_l2 != 0)) && ((_x_pc18_l0 != 0) && ( !(_x_pc18_l1 != 0)))))))) && (((((pc18_evt0 != 0) && (pc18_evt1 != 0)) && (pc18_x == _x_pc18_x)) && (((_x_pc18_l2 != 0) && ((_x_pc18_l0 != 0) && ( !(_x_pc18_l1 != 0)))) || (( !(_x_pc18_l2 != 0)) && ((_x_pc18_l0 != 0) && (_x_pc18_l1 != 0))))) || ( !((( !(pc18_l2 != 0)) && ((pc18_l0 != 0) && ( !(pc18_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc18_evt0 != 0)) && ( !(pc18_evt1 != 0))))))))) && ((25.0 <= pc18_x) || ( !((( !(pc18_l2 != 0)) && ((pc18_l0 != 0) && ( !(pc18_l1 != 0)))) && (( !(_x_pc18_l2 != 0)) && ((_x_pc18_l0 != 0) && (_x_pc18_l1 != 0))))))) && ((pc18_x <= 24.0) || ( !((( !(pc18_l2 != 0)) && ((pc18_l0 != 0) && ( !(pc18_l1 != 0)))) && ((_x_pc18_l2 != 0) && ((_x_pc18_l0 != 0) && ( !(_x_pc18_l1 != 0)))))))) && ((( !(_x_pc18_l2 != 0)) && ((_x_pc18_l0 != 0) && (_x_pc18_l1 != 0))) || ( !((( !(pc18_l2 != 0)) && ((pc18_l0 != 0) && (pc18_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc18_evt0 != 0)) && ( !(pc18_evt1 != 0))))))))) && ((( !(_x_pc18_l2 != 0)) && (( !(_x_pc18_l0 != 0)) && ( !(_x_pc18_l1 != 0)))) || ( !(((pc18_l2 != 0) && ((pc18_l0 != 0) && ( !(pc18_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc18_evt0 != 0)) && ( !(pc18_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc17_evt0 != 0)) && ( !(_x_pc17_evt1 != 0))) || ((_x_pc17_evt1 != 0) && ( !(_x_pc17_evt0 != 0)))) || (((_x_pc17_evt0 != 0) && ( !(_x_pc17_evt1 != 0))) || ((_x_pc17_evt0 != 0) && (_x_pc17_evt1 != 0)))) && ((( !(_x_pc17_l2 != 0)) && ((_x_pc17_l0 != 0) && (_x_pc17_l1 != 0))) || ((((( !(_x_pc17_l2 != 0)) && (( !(_x_pc17_l0 != 0)) && ( !(_x_pc17_l1 != 0)))) || ((_x_pc17_l2 != 0) && (( !(_x_pc17_l0 != 0)) && ( !(_x_pc17_l1 != 0))))) || ((( !(_x_pc17_l2 != 0)) && ((_x_pc17_l1 != 0) && ( !(_x_pc17_l0 != 0)))) || ((_x_pc17_l2 != 0) && ((_x_pc17_l1 != 0) && ( !(_x_pc17_l0 != 0)))))) || ((( !(_x_pc17_l2 != 0)) && ((_x_pc17_l0 != 0) && ( !(_x_pc17_l1 != 0)))) || ((_x_pc17_l2 != 0) && ((_x_pc17_l0 != 0) && ( !(_x_pc17_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc17_l0 != 0) == (_x_pc17_l0 != 0)) && ((pc17_l1 != 0) == (_x_pc17_l1 != 0))) && ((pc17_l2 != 0) == (_x_pc17_l2 != 0))) && ((delta + (pc17_x + (-1.0 * _x_pc17_x))) == 0.0)))) && ((((((pc17_l0 != 0) == (_x_pc17_l0 != 0)) && ((pc17_l1 != 0) == (_x_pc17_l1 != 0))) && ((pc17_l2 != 0) == (_x_pc17_l2 != 0))) && ((delta + (pc17_x + (-1.0 * _x_pc17_x))) == 0.0)) || ( !(( !(pc17_evt0 != 0)) && ( !(pc17_evt1 != 0)))))) && (((((pc17_evt0 != 0) && (pc17_evt1 != 0)) && (pc17_x <= 50.0)) && (((_x_pc17_l2 != 0) && (( !(_x_pc17_l0 != 0)) && ( !(_x_pc17_l1 != 0)))) && (_x_pc17_x == 0.0))) || ( !((( !(pc17_l2 != 0)) && (( !(pc17_l0 != 0)) && ( !(pc17_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc17_evt0 != 0)) && ( !(pc17_evt1 != 0))))))))) && ((((pc17_evt0 != 0) && (pc17_evt1 != 0)) && ((( !(_x_pc17_l2 != 0)) && (( !(_x_pc17_l0 != 0)) && ( !(_x_pc17_l1 != 0)))) || (( !(_x_pc17_l2 != 0)) && ((_x_pc17_l1 != 0) && ( !(_x_pc17_l0 != 0)))))) || ( !(((pc17_l2 != 0) && (( !(pc17_l0 != 0)) && ( !(pc17_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc17_evt0 != 0)) && ( !(pc17_evt1 != 0))))))))) && (((_x_pc17_x == 0.0) && (25.0 <= pc17_x)) || ( !((( !(_x_pc17_l2 != 0)) && (( !(_x_pc17_l0 != 0)) && ( !(_x_pc17_l1 != 0)))) && ((pc17_l2 != 0) && (( !(pc17_l0 != 0)) && ( !(pc17_l1 != 0)))))))) && (((pc17_x <= 24.0) && (pc17_x == _x_pc17_x)) || ( !(((pc17_l2 != 0) && (( !(pc17_l0 != 0)) && ( !(pc17_l1 != 0)))) && (( !(_x_pc17_l2 != 0)) && ((_x_pc17_l1 != 0) && ( !(_x_pc17_l0 != 0)))))))) && (((_x_pc17_x == 0.0) && (((pc17_evt1 != 0) && ( !(pc17_evt0 != 0))) && ((_x_pc17_l2 != 0) && ((_x_pc17_l1 != 0) && ( !(_x_pc17_l0 != 0)))))) || ( !((( !(pc17_l2 != 0)) && ((pc17_l1 != 0) && ( !(pc17_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc17_evt0 != 0)) && ( !(pc17_evt1 != 0))))))))) && (((( !(_x_pc17_l2 != 0)) && ((_x_pc17_l0 != 0) && ( !(_x_pc17_l1 != 0)))) || (( !(_x_pc17_l2 != 0)) && ((_x_pc17_l0 != 0) && (_x_pc17_l1 != 0)))) || ( !(((pc17_l2 != 0) && ((pc17_l1 != 0) && ( !(pc17_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc17_evt0 != 0)) && ( !(pc17_evt1 != 0))))))))) && (((pc17_x == _x_pc17_x) && (((pc17_evt0 != 0) && (pc17_evt1 != 0)) && (50.0 <= pc17_x))) || ( !(((pc17_l2 != 0) && ((pc17_l1 != 0) && ( !(pc17_l0 != 0)))) && (( !(_x_pc17_l2 != 0)) && ((_x_pc17_l0 != 0) && (_x_pc17_l1 != 0))))))) && (((_x_pc17_x == 0.0) && (((pc17_evt0 != 0) && ( !(pc17_evt1 != 0))) && (pc17_x <= 25.0))) || ( !(((pc17_l2 != 0) && ((pc17_l1 != 0) && ( !(pc17_l0 != 0)))) && (( !(_x_pc17_l2 != 0)) && ((_x_pc17_l0 != 0) && ( !(_x_pc17_l1 != 0)))))))) && (((((pc17_evt0 != 0) && (pc17_evt1 != 0)) && (pc17_x == _x_pc17_x)) && (((_x_pc17_l2 != 0) && ((_x_pc17_l0 != 0) && ( !(_x_pc17_l1 != 0)))) || (( !(_x_pc17_l2 != 0)) && ((_x_pc17_l0 != 0) && (_x_pc17_l1 != 0))))) || ( !((( !(pc17_l2 != 0)) && ((pc17_l0 != 0) && ( !(pc17_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc17_evt0 != 0)) && ( !(pc17_evt1 != 0))))))))) && ((25.0 <= pc17_x) || ( !((( !(pc17_l2 != 0)) && ((pc17_l0 != 0) && ( !(pc17_l1 != 0)))) && (( !(_x_pc17_l2 != 0)) && ((_x_pc17_l0 != 0) && (_x_pc17_l1 != 0))))))) && ((pc17_x <= 24.0) || ( !((( !(pc17_l2 != 0)) && ((pc17_l0 != 0) && ( !(pc17_l1 != 0)))) && ((_x_pc17_l2 != 0) && ((_x_pc17_l0 != 0) && ( !(_x_pc17_l1 != 0)))))))) && ((( !(_x_pc17_l2 != 0)) && ((_x_pc17_l0 != 0) && (_x_pc17_l1 != 0))) || ( !((( !(pc17_l2 != 0)) && ((pc17_l0 != 0) && (pc17_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc17_evt0 != 0)) && ( !(pc17_evt1 != 0))))))))) && ((( !(_x_pc17_l2 != 0)) && (( !(_x_pc17_l0 != 0)) && ( !(_x_pc17_l1 != 0)))) || ( !(((pc17_l2 != 0) && ((pc17_l0 != 0) && ( !(pc17_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc17_evt0 != 0)) && ( !(pc17_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc16_evt0 != 0)) && ( !(_x_pc16_evt1 != 0))) || ((_x_pc16_evt1 != 0) && ( !(_x_pc16_evt0 != 0)))) || (((_x_pc16_evt0 != 0) && ( !(_x_pc16_evt1 != 0))) || ((_x_pc16_evt0 != 0) && (_x_pc16_evt1 != 0)))) && ((( !(_x_pc16_l2 != 0)) && ((_x_pc16_l0 != 0) && (_x_pc16_l1 != 0))) || ((((( !(_x_pc16_l2 != 0)) && (( !(_x_pc16_l0 != 0)) && ( !(_x_pc16_l1 != 0)))) || ((_x_pc16_l2 != 0) && (( !(_x_pc16_l0 != 0)) && ( !(_x_pc16_l1 != 0))))) || ((( !(_x_pc16_l2 != 0)) && ((_x_pc16_l1 != 0) && ( !(_x_pc16_l0 != 0)))) || ((_x_pc16_l2 != 0) && ((_x_pc16_l1 != 0) && ( !(_x_pc16_l0 != 0)))))) || ((( !(_x_pc16_l2 != 0)) && ((_x_pc16_l0 != 0) && ( !(_x_pc16_l1 != 0)))) || ((_x_pc16_l2 != 0) && ((_x_pc16_l0 != 0) && ( !(_x_pc16_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc16_l0 != 0) == (_x_pc16_l0 != 0)) && ((pc16_l1 != 0) == (_x_pc16_l1 != 0))) && ((pc16_l2 != 0) == (_x_pc16_l2 != 0))) && ((delta + (pc16_x + (-1.0 * _x_pc16_x))) == 0.0)))) && ((((((pc16_l0 != 0) == (_x_pc16_l0 != 0)) && ((pc16_l1 != 0) == (_x_pc16_l1 != 0))) && ((pc16_l2 != 0) == (_x_pc16_l2 != 0))) && ((delta + (pc16_x + (-1.0 * _x_pc16_x))) == 0.0)) || ( !(( !(pc16_evt0 != 0)) && ( !(pc16_evt1 != 0)))))) && (((((pc16_evt0 != 0) && (pc16_evt1 != 0)) && (pc16_x <= 50.0)) && (((_x_pc16_l2 != 0) && (( !(_x_pc16_l0 != 0)) && ( !(_x_pc16_l1 != 0)))) && (_x_pc16_x == 0.0))) || ( !((( !(pc16_l2 != 0)) && (( !(pc16_l0 != 0)) && ( !(pc16_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc16_evt0 != 0)) && ( !(pc16_evt1 != 0))))))))) && ((((pc16_evt0 != 0) && (pc16_evt1 != 0)) && ((( !(_x_pc16_l2 != 0)) && (( !(_x_pc16_l0 != 0)) && ( !(_x_pc16_l1 != 0)))) || (( !(_x_pc16_l2 != 0)) && ((_x_pc16_l1 != 0) && ( !(_x_pc16_l0 != 0)))))) || ( !(((pc16_l2 != 0) && (( !(pc16_l0 != 0)) && ( !(pc16_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc16_evt0 != 0)) && ( !(pc16_evt1 != 0))))))))) && (((_x_pc16_x == 0.0) && (25.0 <= pc16_x)) || ( !((( !(_x_pc16_l2 != 0)) && (( !(_x_pc16_l0 != 0)) && ( !(_x_pc16_l1 != 0)))) && ((pc16_l2 != 0) && (( !(pc16_l0 != 0)) && ( !(pc16_l1 != 0)))))))) && (((pc16_x <= 24.0) && (pc16_x == _x_pc16_x)) || ( !(((pc16_l2 != 0) && (( !(pc16_l0 != 0)) && ( !(pc16_l1 != 0)))) && (( !(_x_pc16_l2 != 0)) && ((_x_pc16_l1 != 0) && ( !(_x_pc16_l0 != 0)))))))) && (((_x_pc16_x == 0.0) && (((pc16_evt1 != 0) && ( !(pc16_evt0 != 0))) && ((_x_pc16_l2 != 0) && ((_x_pc16_l1 != 0) && ( !(_x_pc16_l0 != 0)))))) || ( !((( !(pc16_l2 != 0)) && ((pc16_l1 != 0) && ( !(pc16_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc16_evt0 != 0)) && ( !(pc16_evt1 != 0))))))))) && (((( !(_x_pc16_l2 != 0)) && ((_x_pc16_l0 != 0) && ( !(_x_pc16_l1 != 0)))) || (( !(_x_pc16_l2 != 0)) && ((_x_pc16_l0 != 0) && (_x_pc16_l1 != 0)))) || ( !(((pc16_l2 != 0) && ((pc16_l1 != 0) && ( !(pc16_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc16_evt0 != 0)) && ( !(pc16_evt1 != 0))))))))) && (((pc16_x == _x_pc16_x) && (((pc16_evt0 != 0) && (pc16_evt1 != 0)) && (50.0 <= pc16_x))) || ( !(((pc16_l2 != 0) && ((pc16_l1 != 0) && ( !(pc16_l0 != 0)))) && (( !(_x_pc16_l2 != 0)) && ((_x_pc16_l0 != 0) && (_x_pc16_l1 != 0))))))) && (((_x_pc16_x == 0.0) && (((pc16_evt0 != 0) && ( !(pc16_evt1 != 0))) && (pc16_x <= 25.0))) || ( !(((pc16_l2 != 0) && ((pc16_l1 != 0) && ( !(pc16_l0 != 0)))) && (( !(_x_pc16_l2 != 0)) && ((_x_pc16_l0 != 0) && ( !(_x_pc16_l1 != 0)))))))) && (((((pc16_evt0 != 0) && (pc16_evt1 != 0)) && (pc16_x == _x_pc16_x)) && (((_x_pc16_l2 != 0) && ((_x_pc16_l0 != 0) && ( !(_x_pc16_l1 != 0)))) || (( !(_x_pc16_l2 != 0)) && ((_x_pc16_l0 != 0) && (_x_pc16_l1 != 0))))) || ( !((( !(pc16_l2 != 0)) && ((pc16_l0 != 0) && ( !(pc16_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc16_evt0 != 0)) && ( !(pc16_evt1 != 0))))))))) && ((25.0 <= pc16_x) || ( !((( !(pc16_l2 != 0)) && ((pc16_l0 != 0) && ( !(pc16_l1 != 0)))) && (( !(_x_pc16_l2 != 0)) && ((_x_pc16_l0 != 0) && (_x_pc16_l1 != 0))))))) && ((pc16_x <= 24.0) || ( !((( !(pc16_l2 != 0)) && ((pc16_l0 != 0) && ( !(pc16_l1 != 0)))) && ((_x_pc16_l2 != 0) && ((_x_pc16_l0 != 0) && ( !(_x_pc16_l1 != 0)))))))) && ((( !(_x_pc16_l2 != 0)) && ((_x_pc16_l0 != 0) && (_x_pc16_l1 != 0))) || ( !((( !(pc16_l2 != 0)) && ((pc16_l0 != 0) && (pc16_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc16_evt0 != 0)) && ( !(pc16_evt1 != 0))))))))) && ((( !(_x_pc16_l2 != 0)) && (( !(_x_pc16_l0 != 0)) && ( !(_x_pc16_l1 != 0)))) || ( !(((pc16_l2 != 0) && ((pc16_l0 != 0) && ( !(pc16_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc16_evt0 != 0)) && ( !(pc16_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc15_evt0 != 0)) && ( !(_x_pc15_evt1 != 0))) || ((_x_pc15_evt1 != 0) && ( !(_x_pc15_evt0 != 0)))) || (((_x_pc15_evt0 != 0) && ( !(_x_pc15_evt1 != 0))) || ((_x_pc15_evt0 != 0) && (_x_pc15_evt1 != 0)))) && ((( !(_x_pc15_l2 != 0)) && ((_x_pc15_l0 != 0) && (_x_pc15_l1 != 0))) || ((((( !(_x_pc15_l2 != 0)) && (( !(_x_pc15_l0 != 0)) && ( !(_x_pc15_l1 != 0)))) || ((_x_pc15_l2 != 0) && (( !(_x_pc15_l0 != 0)) && ( !(_x_pc15_l1 != 0))))) || ((( !(_x_pc15_l2 != 0)) && ((_x_pc15_l1 != 0) && ( !(_x_pc15_l0 != 0)))) || ((_x_pc15_l2 != 0) && ((_x_pc15_l1 != 0) && ( !(_x_pc15_l0 != 0)))))) || ((( !(_x_pc15_l2 != 0)) && ((_x_pc15_l0 != 0) && ( !(_x_pc15_l1 != 0)))) || ((_x_pc15_l2 != 0) && ((_x_pc15_l0 != 0) && ( !(_x_pc15_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc15_l0 != 0) == (_x_pc15_l0 != 0)) && ((pc15_l1 != 0) == (_x_pc15_l1 != 0))) && ((pc15_l2 != 0) == (_x_pc15_l2 != 0))) && ((delta + (pc15_x + (-1.0 * _x_pc15_x))) == 0.0)))) && ((((((pc15_l0 != 0) == (_x_pc15_l0 != 0)) && ((pc15_l1 != 0) == (_x_pc15_l1 != 0))) && ((pc15_l2 != 0) == (_x_pc15_l2 != 0))) && ((delta + (pc15_x + (-1.0 * _x_pc15_x))) == 0.0)) || ( !(( !(pc15_evt0 != 0)) && ( !(pc15_evt1 != 0)))))) && (((((pc15_evt0 != 0) && (pc15_evt1 != 0)) && (pc15_x <= 50.0)) && (((_x_pc15_l2 != 0) && (( !(_x_pc15_l0 != 0)) && ( !(_x_pc15_l1 != 0)))) && (_x_pc15_x == 0.0))) || ( !((( !(pc15_l2 != 0)) && (( !(pc15_l0 != 0)) && ( !(pc15_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc15_evt0 != 0)) && ( !(pc15_evt1 != 0))))))))) && ((((pc15_evt0 != 0) && (pc15_evt1 != 0)) && ((( !(_x_pc15_l2 != 0)) && (( !(_x_pc15_l0 != 0)) && ( !(_x_pc15_l1 != 0)))) || (( !(_x_pc15_l2 != 0)) && ((_x_pc15_l1 != 0) && ( !(_x_pc15_l0 != 0)))))) || ( !(((pc15_l2 != 0) && (( !(pc15_l0 != 0)) && ( !(pc15_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc15_evt0 != 0)) && ( !(pc15_evt1 != 0))))))))) && (((_x_pc15_x == 0.0) && (25.0 <= pc15_x)) || ( !((( !(_x_pc15_l2 != 0)) && (( !(_x_pc15_l0 != 0)) && ( !(_x_pc15_l1 != 0)))) && ((pc15_l2 != 0) && (( !(pc15_l0 != 0)) && ( !(pc15_l1 != 0)))))))) && (((pc15_x <= 24.0) && (pc15_x == _x_pc15_x)) || ( !(((pc15_l2 != 0) && (( !(pc15_l0 != 0)) && ( !(pc15_l1 != 0)))) && (( !(_x_pc15_l2 != 0)) && ((_x_pc15_l1 != 0) && ( !(_x_pc15_l0 != 0)))))))) && (((_x_pc15_x == 0.0) && (((pc15_evt1 != 0) && ( !(pc15_evt0 != 0))) && ((_x_pc15_l2 != 0) && ((_x_pc15_l1 != 0) && ( !(_x_pc15_l0 != 0)))))) || ( !((( !(pc15_l2 != 0)) && ((pc15_l1 != 0) && ( !(pc15_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc15_evt0 != 0)) && ( !(pc15_evt1 != 0))))))))) && (((( !(_x_pc15_l2 != 0)) && ((_x_pc15_l0 != 0) && ( !(_x_pc15_l1 != 0)))) || (( !(_x_pc15_l2 != 0)) && ((_x_pc15_l0 != 0) && (_x_pc15_l1 != 0)))) || ( !(((pc15_l2 != 0) && ((pc15_l1 != 0) && ( !(pc15_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc15_evt0 != 0)) && ( !(pc15_evt1 != 0))))))))) && (((pc15_x == _x_pc15_x) && (((pc15_evt0 != 0) && (pc15_evt1 != 0)) && (50.0 <= pc15_x))) || ( !(((pc15_l2 != 0) && ((pc15_l1 != 0) && ( !(pc15_l0 != 0)))) && (( !(_x_pc15_l2 != 0)) && ((_x_pc15_l0 != 0) && (_x_pc15_l1 != 0))))))) && (((_x_pc15_x == 0.0) && (((pc15_evt0 != 0) && ( !(pc15_evt1 != 0))) && (pc15_x <= 25.0))) || ( !(((pc15_l2 != 0) && ((pc15_l1 != 0) && ( !(pc15_l0 != 0)))) && (( !(_x_pc15_l2 != 0)) && ((_x_pc15_l0 != 0) && ( !(_x_pc15_l1 != 0)))))))) && (((((pc15_evt0 != 0) && (pc15_evt1 != 0)) && (pc15_x == _x_pc15_x)) && (((_x_pc15_l2 != 0) && ((_x_pc15_l0 != 0) && ( !(_x_pc15_l1 != 0)))) || (( !(_x_pc15_l2 != 0)) && ((_x_pc15_l0 != 0) && (_x_pc15_l1 != 0))))) || ( !((( !(pc15_l2 != 0)) && ((pc15_l0 != 0) && ( !(pc15_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc15_evt0 != 0)) && ( !(pc15_evt1 != 0))))))))) && ((25.0 <= pc15_x) || ( !((( !(pc15_l2 != 0)) && ((pc15_l0 != 0) && ( !(pc15_l1 != 0)))) && (( !(_x_pc15_l2 != 0)) && ((_x_pc15_l0 != 0) && (_x_pc15_l1 != 0))))))) && ((pc15_x <= 24.0) || ( !((( !(pc15_l2 != 0)) && ((pc15_l0 != 0) && ( !(pc15_l1 != 0)))) && ((_x_pc15_l2 != 0) && ((_x_pc15_l0 != 0) && ( !(_x_pc15_l1 != 0)))))))) && ((( !(_x_pc15_l2 != 0)) && ((_x_pc15_l0 != 0) && (_x_pc15_l1 != 0))) || ( !((( !(pc15_l2 != 0)) && ((pc15_l0 != 0) && (pc15_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc15_evt0 != 0)) && ( !(pc15_evt1 != 0))))))))) && ((( !(_x_pc15_l2 != 0)) && (( !(_x_pc15_l0 != 0)) && ( !(_x_pc15_l1 != 0)))) || ( !(((pc15_l2 != 0) && ((pc15_l0 != 0) && ( !(pc15_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc15_evt0 != 0)) && ( !(pc15_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc14_evt0 != 0)) && ( !(_x_pc14_evt1 != 0))) || ((_x_pc14_evt1 != 0) && ( !(_x_pc14_evt0 != 0)))) || (((_x_pc14_evt0 != 0) && ( !(_x_pc14_evt1 != 0))) || ((_x_pc14_evt0 != 0) && (_x_pc14_evt1 != 0)))) && ((( !(_x_pc14_l2 != 0)) && ((_x_pc14_l0 != 0) && (_x_pc14_l1 != 0))) || ((((( !(_x_pc14_l2 != 0)) && (( !(_x_pc14_l0 != 0)) && ( !(_x_pc14_l1 != 0)))) || ((_x_pc14_l2 != 0) && (( !(_x_pc14_l0 != 0)) && ( !(_x_pc14_l1 != 0))))) || ((( !(_x_pc14_l2 != 0)) && ((_x_pc14_l1 != 0) && ( !(_x_pc14_l0 != 0)))) || ((_x_pc14_l2 != 0) && ((_x_pc14_l1 != 0) && ( !(_x_pc14_l0 != 0)))))) || ((( !(_x_pc14_l2 != 0)) && ((_x_pc14_l0 != 0) && ( !(_x_pc14_l1 != 0)))) || ((_x_pc14_l2 != 0) && ((_x_pc14_l0 != 0) && ( !(_x_pc14_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc14_l0 != 0) == (_x_pc14_l0 != 0)) && ((pc14_l1 != 0) == (_x_pc14_l1 != 0))) && ((pc14_l2 != 0) == (_x_pc14_l2 != 0))) && ((delta + (pc14_x + (-1.0 * _x_pc14_x))) == 0.0)))) && ((((((pc14_l0 != 0) == (_x_pc14_l0 != 0)) && ((pc14_l1 != 0) == (_x_pc14_l1 != 0))) && ((pc14_l2 != 0) == (_x_pc14_l2 != 0))) && ((delta + (pc14_x + (-1.0 * _x_pc14_x))) == 0.0)) || ( !(( !(pc14_evt0 != 0)) && ( !(pc14_evt1 != 0)))))) && (((((pc14_evt0 != 0) && (pc14_evt1 != 0)) && (pc14_x <= 50.0)) && (((_x_pc14_l2 != 0) && (( !(_x_pc14_l0 != 0)) && ( !(_x_pc14_l1 != 0)))) && (_x_pc14_x == 0.0))) || ( !((( !(pc14_l2 != 0)) && (( !(pc14_l0 != 0)) && ( !(pc14_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc14_evt0 != 0)) && ( !(pc14_evt1 != 0))))))))) && ((((pc14_evt0 != 0) && (pc14_evt1 != 0)) && ((( !(_x_pc14_l2 != 0)) && (( !(_x_pc14_l0 != 0)) && ( !(_x_pc14_l1 != 0)))) || (( !(_x_pc14_l2 != 0)) && ((_x_pc14_l1 != 0) && ( !(_x_pc14_l0 != 0)))))) || ( !(((pc14_l2 != 0) && (( !(pc14_l0 != 0)) && ( !(pc14_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc14_evt0 != 0)) && ( !(pc14_evt1 != 0))))))))) && (((_x_pc14_x == 0.0) && (25.0 <= pc14_x)) || ( !((( !(_x_pc14_l2 != 0)) && (( !(_x_pc14_l0 != 0)) && ( !(_x_pc14_l1 != 0)))) && ((pc14_l2 != 0) && (( !(pc14_l0 != 0)) && ( !(pc14_l1 != 0)))))))) && (((pc14_x <= 24.0) && (pc14_x == _x_pc14_x)) || ( !(((pc14_l2 != 0) && (( !(pc14_l0 != 0)) && ( !(pc14_l1 != 0)))) && (( !(_x_pc14_l2 != 0)) && ((_x_pc14_l1 != 0) && ( !(_x_pc14_l0 != 0)))))))) && (((_x_pc14_x == 0.0) && (((pc14_evt1 != 0) && ( !(pc14_evt0 != 0))) && ((_x_pc14_l2 != 0) && ((_x_pc14_l1 != 0) && ( !(_x_pc14_l0 != 0)))))) || ( !((( !(pc14_l2 != 0)) && ((pc14_l1 != 0) && ( !(pc14_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc14_evt0 != 0)) && ( !(pc14_evt1 != 0))))))))) && (((( !(_x_pc14_l2 != 0)) && ((_x_pc14_l0 != 0) && ( !(_x_pc14_l1 != 0)))) || (( !(_x_pc14_l2 != 0)) && ((_x_pc14_l0 != 0) && (_x_pc14_l1 != 0)))) || ( !(((pc14_l2 != 0) && ((pc14_l1 != 0) && ( !(pc14_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc14_evt0 != 0)) && ( !(pc14_evt1 != 0))))))))) && (((pc14_x == _x_pc14_x) && (((pc14_evt0 != 0) && (pc14_evt1 != 0)) && (50.0 <= pc14_x))) || ( !(((pc14_l2 != 0) && ((pc14_l1 != 0) && ( !(pc14_l0 != 0)))) && (( !(_x_pc14_l2 != 0)) && ((_x_pc14_l0 != 0) && (_x_pc14_l1 != 0))))))) && (((_x_pc14_x == 0.0) && (((pc14_evt0 != 0) && ( !(pc14_evt1 != 0))) && (pc14_x <= 25.0))) || ( !(((pc14_l2 != 0) && ((pc14_l1 != 0) && ( !(pc14_l0 != 0)))) && (( !(_x_pc14_l2 != 0)) && ((_x_pc14_l0 != 0) && ( !(_x_pc14_l1 != 0)))))))) && (((((pc14_evt0 != 0) && (pc14_evt1 != 0)) && (pc14_x == _x_pc14_x)) && (((_x_pc14_l2 != 0) && ((_x_pc14_l0 != 0) && ( !(_x_pc14_l1 != 0)))) || (( !(_x_pc14_l2 != 0)) && ((_x_pc14_l0 != 0) && (_x_pc14_l1 != 0))))) || ( !((( !(pc14_l2 != 0)) && ((pc14_l0 != 0) && ( !(pc14_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc14_evt0 != 0)) && ( !(pc14_evt1 != 0))))))))) && ((25.0 <= pc14_x) || ( !((( !(pc14_l2 != 0)) && ((pc14_l0 != 0) && ( !(pc14_l1 != 0)))) && (( !(_x_pc14_l2 != 0)) && ((_x_pc14_l0 != 0) && (_x_pc14_l1 != 0))))))) && ((pc14_x <= 24.0) || ( !((( !(pc14_l2 != 0)) && ((pc14_l0 != 0) && ( !(pc14_l1 != 0)))) && ((_x_pc14_l2 != 0) && ((_x_pc14_l0 != 0) && ( !(_x_pc14_l1 != 0)))))))) && ((( !(_x_pc14_l2 != 0)) && ((_x_pc14_l0 != 0) && (_x_pc14_l1 != 0))) || ( !((( !(pc14_l2 != 0)) && ((pc14_l0 != 0) && (pc14_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc14_evt0 != 0)) && ( !(pc14_evt1 != 0))))))))) && ((( !(_x_pc14_l2 != 0)) && (( !(_x_pc14_l0 != 0)) && ( !(_x_pc14_l1 != 0)))) || ( !(((pc14_l2 != 0) && ((pc14_l0 != 0) && ( !(pc14_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc14_evt0 != 0)) && ( !(pc14_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc13_evt0 != 0)) && ( !(_x_pc13_evt1 != 0))) || ((_x_pc13_evt1 != 0) && ( !(_x_pc13_evt0 != 0)))) || (((_x_pc13_evt0 != 0) && ( !(_x_pc13_evt1 != 0))) || ((_x_pc13_evt0 != 0) && (_x_pc13_evt1 != 0)))) && ((( !(_x_pc13_l2 != 0)) && ((_x_pc13_l0 != 0) && (_x_pc13_l1 != 0))) || ((((( !(_x_pc13_l2 != 0)) && (( !(_x_pc13_l0 != 0)) && ( !(_x_pc13_l1 != 0)))) || ((_x_pc13_l2 != 0) && (( !(_x_pc13_l0 != 0)) && ( !(_x_pc13_l1 != 0))))) || ((( !(_x_pc13_l2 != 0)) && ((_x_pc13_l1 != 0) && ( !(_x_pc13_l0 != 0)))) || ((_x_pc13_l2 != 0) && ((_x_pc13_l1 != 0) && ( !(_x_pc13_l0 != 0)))))) || ((( !(_x_pc13_l2 != 0)) && ((_x_pc13_l0 != 0) && ( !(_x_pc13_l1 != 0)))) || ((_x_pc13_l2 != 0) && ((_x_pc13_l0 != 0) && ( !(_x_pc13_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc13_l0 != 0) == (_x_pc13_l0 != 0)) && ((pc13_l1 != 0) == (_x_pc13_l1 != 0))) && ((pc13_l2 != 0) == (_x_pc13_l2 != 0))) && ((delta + (pc13_x + (-1.0 * _x_pc13_x))) == 0.0)))) && ((((((pc13_l0 != 0) == (_x_pc13_l0 != 0)) && ((pc13_l1 != 0) == (_x_pc13_l1 != 0))) && ((pc13_l2 != 0) == (_x_pc13_l2 != 0))) && ((delta + (pc13_x + (-1.0 * _x_pc13_x))) == 0.0)) || ( !(( !(pc13_evt0 != 0)) && ( !(pc13_evt1 != 0)))))) && (((((pc13_evt0 != 0) && (pc13_evt1 != 0)) && (pc13_x <= 50.0)) && (((_x_pc13_l2 != 0) && (( !(_x_pc13_l0 != 0)) && ( !(_x_pc13_l1 != 0)))) && (_x_pc13_x == 0.0))) || ( !((( !(pc13_l2 != 0)) && (( !(pc13_l0 != 0)) && ( !(pc13_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc13_evt0 != 0)) && ( !(pc13_evt1 != 0))))))))) && ((((pc13_evt0 != 0) && (pc13_evt1 != 0)) && ((( !(_x_pc13_l2 != 0)) && (( !(_x_pc13_l0 != 0)) && ( !(_x_pc13_l1 != 0)))) || (( !(_x_pc13_l2 != 0)) && ((_x_pc13_l1 != 0) && ( !(_x_pc13_l0 != 0)))))) || ( !(((pc13_l2 != 0) && (( !(pc13_l0 != 0)) && ( !(pc13_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc13_evt0 != 0)) && ( !(pc13_evt1 != 0))))))))) && (((_x_pc13_x == 0.0) && (25.0 <= pc13_x)) || ( !((( !(_x_pc13_l2 != 0)) && (( !(_x_pc13_l0 != 0)) && ( !(_x_pc13_l1 != 0)))) && ((pc13_l2 != 0) && (( !(pc13_l0 != 0)) && ( !(pc13_l1 != 0)))))))) && (((pc13_x <= 24.0) && (pc13_x == _x_pc13_x)) || ( !(((pc13_l2 != 0) && (( !(pc13_l0 != 0)) && ( !(pc13_l1 != 0)))) && (( !(_x_pc13_l2 != 0)) && ((_x_pc13_l1 != 0) && ( !(_x_pc13_l0 != 0)))))))) && (((_x_pc13_x == 0.0) && (((pc13_evt1 != 0) && ( !(pc13_evt0 != 0))) && ((_x_pc13_l2 != 0) && ((_x_pc13_l1 != 0) && ( !(_x_pc13_l0 != 0)))))) || ( !((( !(pc13_l2 != 0)) && ((pc13_l1 != 0) && ( !(pc13_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc13_evt0 != 0)) && ( !(pc13_evt1 != 0))))))))) && (((( !(_x_pc13_l2 != 0)) && ((_x_pc13_l0 != 0) && ( !(_x_pc13_l1 != 0)))) || (( !(_x_pc13_l2 != 0)) && ((_x_pc13_l0 != 0) && (_x_pc13_l1 != 0)))) || ( !(((pc13_l2 != 0) && ((pc13_l1 != 0) && ( !(pc13_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc13_evt0 != 0)) && ( !(pc13_evt1 != 0))))))))) && (((pc13_x == _x_pc13_x) && (((pc13_evt0 != 0) && (pc13_evt1 != 0)) && (50.0 <= pc13_x))) || ( !(((pc13_l2 != 0) && ((pc13_l1 != 0) && ( !(pc13_l0 != 0)))) && (( !(_x_pc13_l2 != 0)) && ((_x_pc13_l0 != 0) && (_x_pc13_l1 != 0))))))) && (((_x_pc13_x == 0.0) && (((pc13_evt0 != 0) && ( !(pc13_evt1 != 0))) && (pc13_x <= 25.0))) || ( !(((pc13_l2 != 0) && ((pc13_l1 != 0) && ( !(pc13_l0 != 0)))) && (( !(_x_pc13_l2 != 0)) && ((_x_pc13_l0 != 0) && ( !(_x_pc13_l1 != 0)))))))) && (((((pc13_evt0 != 0) && (pc13_evt1 != 0)) && (pc13_x == _x_pc13_x)) && (((_x_pc13_l2 != 0) && ((_x_pc13_l0 != 0) && ( !(_x_pc13_l1 != 0)))) || (( !(_x_pc13_l2 != 0)) && ((_x_pc13_l0 != 0) && (_x_pc13_l1 != 0))))) || ( !((( !(pc13_l2 != 0)) && ((pc13_l0 != 0) && ( !(pc13_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc13_evt0 != 0)) && ( !(pc13_evt1 != 0))))))))) && ((25.0 <= pc13_x) || ( !((( !(pc13_l2 != 0)) && ((pc13_l0 != 0) && ( !(pc13_l1 != 0)))) && (( !(_x_pc13_l2 != 0)) && ((_x_pc13_l0 != 0) && (_x_pc13_l1 != 0))))))) && ((pc13_x <= 24.0) || ( !((( !(pc13_l2 != 0)) && ((pc13_l0 != 0) && ( !(pc13_l1 != 0)))) && ((_x_pc13_l2 != 0) && ((_x_pc13_l0 != 0) && ( !(_x_pc13_l1 != 0)))))))) && ((( !(_x_pc13_l2 != 0)) && ((_x_pc13_l0 != 0) && (_x_pc13_l1 != 0))) || ( !((( !(pc13_l2 != 0)) && ((pc13_l0 != 0) && (pc13_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc13_evt0 != 0)) && ( !(pc13_evt1 != 0))))))))) && ((( !(_x_pc13_l2 != 0)) && (( !(_x_pc13_l0 != 0)) && ( !(_x_pc13_l1 != 0)))) || ( !(((pc13_l2 != 0) && ((pc13_l0 != 0) && ( !(pc13_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc13_evt0 != 0)) && ( !(pc13_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc12_evt0 != 0)) && ( !(_x_pc12_evt1 != 0))) || ((_x_pc12_evt1 != 0) && ( !(_x_pc12_evt0 != 0)))) || (((_x_pc12_evt0 != 0) && ( !(_x_pc12_evt1 != 0))) || ((_x_pc12_evt0 != 0) && (_x_pc12_evt1 != 0)))) && ((( !(_x_pc12_l2 != 0)) && ((_x_pc12_l0 != 0) && (_x_pc12_l1 != 0))) || ((((( !(_x_pc12_l2 != 0)) && (( !(_x_pc12_l0 != 0)) && ( !(_x_pc12_l1 != 0)))) || ((_x_pc12_l2 != 0) && (( !(_x_pc12_l0 != 0)) && ( !(_x_pc12_l1 != 0))))) || ((( !(_x_pc12_l2 != 0)) && ((_x_pc12_l1 != 0) && ( !(_x_pc12_l0 != 0)))) || ((_x_pc12_l2 != 0) && ((_x_pc12_l1 != 0) && ( !(_x_pc12_l0 != 0)))))) || ((( !(_x_pc12_l2 != 0)) && ((_x_pc12_l0 != 0) && ( !(_x_pc12_l1 != 0)))) || ((_x_pc12_l2 != 0) && ((_x_pc12_l0 != 0) && ( !(_x_pc12_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc12_l0 != 0) == (_x_pc12_l0 != 0)) && ((pc12_l1 != 0) == (_x_pc12_l1 != 0))) && ((pc12_l2 != 0) == (_x_pc12_l2 != 0))) && ((delta + (pc12_x + (-1.0 * _x_pc12_x))) == 0.0)))) && ((((((pc12_l0 != 0) == (_x_pc12_l0 != 0)) && ((pc12_l1 != 0) == (_x_pc12_l1 != 0))) && ((pc12_l2 != 0) == (_x_pc12_l2 != 0))) && ((delta + (pc12_x + (-1.0 * _x_pc12_x))) == 0.0)) || ( !(( !(pc12_evt0 != 0)) && ( !(pc12_evt1 != 0)))))) && (((((pc12_evt0 != 0) && (pc12_evt1 != 0)) && (pc12_x <= 50.0)) && (((_x_pc12_l2 != 0) && (( !(_x_pc12_l0 != 0)) && ( !(_x_pc12_l1 != 0)))) && (_x_pc12_x == 0.0))) || ( !((( !(pc12_l2 != 0)) && (( !(pc12_l0 != 0)) && ( !(pc12_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc12_evt0 != 0)) && ( !(pc12_evt1 != 0))))))))) && ((((pc12_evt0 != 0) && (pc12_evt1 != 0)) && ((( !(_x_pc12_l2 != 0)) && (( !(_x_pc12_l0 != 0)) && ( !(_x_pc12_l1 != 0)))) || (( !(_x_pc12_l2 != 0)) && ((_x_pc12_l1 != 0) && ( !(_x_pc12_l0 != 0)))))) || ( !(((pc12_l2 != 0) && (( !(pc12_l0 != 0)) && ( !(pc12_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc12_evt0 != 0)) && ( !(pc12_evt1 != 0))))))))) && (((_x_pc12_x == 0.0) && (25.0 <= pc12_x)) || ( !((( !(_x_pc12_l2 != 0)) && (( !(_x_pc12_l0 != 0)) && ( !(_x_pc12_l1 != 0)))) && ((pc12_l2 != 0) && (( !(pc12_l0 != 0)) && ( !(pc12_l1 != 0)))))))) && (((pc12_x <= 24.0) && (pc12_x == _x_pc12_x)) || ( !(((pc12_l2 != 0) && (( !(pc12_l0 != 0)) && ( !(pc12_l1 != 0)))) && (( !(_x_pc12_l2 != 0)) && ((_x_pc12_l1 != 0) && ( !(_x_pc12_l0 != 0)))))))) && (((_x_pc12_x == 0.0) && (((pc12_evt1 != 0) && ( !(pc12_evt0 != 0))) && ((_x_pc12_l2 != 0) && ((_x_pc12_l1 != 0) && ( !(_x_pc12_l0 != 0)))))) || ( !((( !(pc12_l2 != 0)) && ((pc12_l1 != 0) && ( !(pc12_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc12_evt0 != 0)) && ( !(pc12_evt1 != 0))))))))) && (((( !(_x_pc12_l2 != 0)) && ((_x_pc12_l0 != 0) && ( !(_x_pc12_l1 != 0)))) || (( !(_x_pc12_l2 != 0)) && ((_x_pc12_l0 != 0) && (_x_pc12_l1 != 0)))) || ( !(((pc12_l2 != 0) && ((pc12_l1 != 0) && ( !(pc12_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc12_evt0 != 0)) && ( !(pc12_evt1 != 0))))))))) && (((pc12_x == _x_pc12_x) && (((pc12_evt0 != 0) && (pc12_evt1 != 0)) && (50.0 <= pc12_x))) || ( !(((pc12_l2 != 0) && ((pc12_l1 != 0) && ( !(pc12_l0 != 0)))) && (( !(_x_pc12_l2 != 0)) && ((_x_pc12_l0 != 0) && (_x_pc12_l1 != 0))))))) && (((_x_pc12_x == 0.0) && (((pc12_evt0 != 0) && ( !(pc12_evt1 != 0))) && (pc12_x <= 25.0))) || ( !(((pc12_l2 != 0) && ((pc12_l1 != 0) && ( !(pc12_l0 != 0)))) && (( !(_x_pc12_l2 != 0)) && ((_x_pc12_l0 != 0) && ( !(_x_pc12_l1 != 0)))))))) && (((((pc12_evt0 != 0) && (pc12_evt1 != 0)) && (pc12_x == _x_pc12_x)) && (((_x_pc12_l2 != 0) && ((_x_pc12_l0 != 0) && ( !(_x_pc12_l1 != 0)))) || (( !(_x_pc12_l2 != 0)) && ((_x_pc12_l0 != 0) && (_x_pc12_l1 != 0))))) || ( !((( !(pc12_l2 != 0)) && ((pc12_l0 != 0) && ( !(pc12_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc12_evt0 != 0)) && ( !(pc12_evt1 != 0))))))))) && ((25.0 <= pc12_x) || ( !((( !(pc12_l2 != 0)) && ((pc12_l0 != 0) && ( !(pc12_l1 != 0)))) && (( !(_x_pc12_l2 != 0)) && ((_x_pc12_l0 != 0) && (_x_pc12_l1 != 0))))))) && ((pc12_x <= 24.0) || ( !((( !(pc12_l2 != 0)) && ((pc12_l0 != 0) && ( !(pc12_l1 != 0)))) && ((_x_pc12_l2 != 0) && ((_x_pc12_l0 != 0) && ( !(_x_pc12_l1 != 0)))))))) && ((( !(_x_pc12_l2 != 0)) && ((_x_pc12_l0 != 0) && (_x_pc12_l1 != 0))) || ( !((( !(pc12_l2 != 0)) && ((pc12_l0 != 0) && (pc12_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc12_evt0 != 0)) && ( !(pc12_evt1 != 0))))))))) && ((( !(_x_pc12_l2 != 0)) && (( !(_x_pc12_l0 != 0)) && ( !(_x_pc12_l1 != 0)))) || ( !(((pc12_l2 != 0) && ((pc12_l0 != 0) && ( !(pc12_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc12_evt0 != 0)) && ( !(pc12_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc11_evt0 != 0)) && ( !(_x_pc11_evt1 != 0))) || ((_x_pc11_evt1 != 0) && ( !(_x_pc11_evt0 != 0)))) || (((_x_pc11_evt0 != 0) && ( !(_x_pc11_evt1 != 0))) || ((_x_pc11_evt0 != 0) && (_x_pc11_evt1 != 0)))) && ((( !(_x_pc11_l2 != 0)) && ((_x_pc11_l0 != 0) && (_x_pc11_l1 != 0))) || ((((( !(_x_pc11_l2 != 0)) && (( !(_x_pc11_l0 != 0)) && ( !(_x_pc11_l1 != 0)))) || ((_x_pc11_l2 != 0) && (( !(_x_pc11_l0 != 0)) && ( !(_x_pc11_l1 != 0))))) || ((( !(_x_pc11_l2 != 0)) && ((_x_pc11_l1 != 0) && ( !(_x_pc11_l0 != 0)))) || ((_x_pc11_l2 != 0) && ((_x_pc11_l1 != 0) && ( !(_x_pc11_l0 != 0)))))) || ((( !(_x_pc11_l2 != 0)) && ((_x_pc11_l0 != 0) && ( !(_x_pc11_l1 != 0)))) || ((_x_pc11_l2 != 0) && ((_x_pc11_l0 != 0) && ( !(_x_pc11_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc11_l0 != 0) == (_x_pc11_l0 != 0)) && ((pc11_l1 != 0) == (_x_pc11_l1 != 0))) && ((pc11_l2 != 0) == (_x_pc11_l2 != 0))) && ((delta + (pc11_x + (-1.0 * _x_pc11_x))) == 0.0)))) && ((((((pc11_l0 != 0) == (_x_pc11_l0 != 0)) && ((pc11_l1 != 0) == (_x_pc11_l1 != 0))) && ((pc11_l2 != 0) == (_x_pc11_l2 != 0))) && ((delta + (pc11_x + (-1.0 * _x_pc11_x))) == 0.0)) || ( !(( !(pc11_evt0 != 0)) && ( !(pc11_evt1 != 0)))))) && (((((pc11_evt0 != 0) && (pc11_evt1 != 0)) && (pc11_x <= 50.0)) && (((_x_pc11_l2 != 0) && (( !(_x_pc11_l0 != 0)) && ( !(_x_pc11_l1 != 0)))) && (_x_pc11_x == 0.0))) || ( !((( !(pc11_l2 != 0)) && (( !(pc11_l0 != 0)) && ( !(pc11_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc11_evt0 != 0)) && ( !(pc11_evt1 != 0))))))))) && ((((pc11_evt0 != 0) && (pc11_evt1 != 0)) && ((( !(_x_pc11_l2 != 0)) && (( !(_x_pc11_l0 != 0)) && ( !(_x_pc11_l1 != 0)))) || (( !(_x_pc11_l2 != 0)) && ((_x_pc11_l1 != 0) && ( !(_x_pc11_l0 != 0)))))) || ( !(((pc11_l2 != 0) && (( !(pc11_l0 != 0)) && ( !(pc11_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc11_evt0 != 0)) && ( !(pc11_evt1 != 0))))))))) && (((_x_pc11_x == 0.0) && (25.0 <= pc11_x)) || ( !((( !(_x_pc11_l2 != 0)) && (( !(_x_pc11_l0 != 0)) && ( !(_x_pc11_l1 != 0)))) && ((pc11_l2 != 0) && (( !(pc11_l0 != 0)) && ( !(pc11_l1 != 0)))))))) && (((pc11_x <= 24.0) && (pc11_x == _x_pc11_x)) || ( !(((pc11_l2 != 0) && (( !(pc11_l0 != 0)) && ( !(pc11_l1 != 0)))) && (( !(_x_pc11_l2 != 0)) && ((_x_pc11_l1 != 0) && ( !(_x_pc11_l0 != 0)))))))) && (((_x_pc11_x == 0.0) && (((pc11_evt1 != 0) && ( !(pc11_evt0 != 0))) && ((_x_pc11_l2 != 0) && ((_x_pc11_l1 != 0) && ( !(_x_pc11_l0 != 0)))))) || ( !((( !(pc11_l2 != 0)) && ((pc11_l1 != 0) && ( !(pc11_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc11_evt0 != 0)) && ( !(pc11_evt1 != 0))))))))) && (((( !(_x_pc11_l2 != 0)) && ((_x_pc11_l0 != 0) && ( !(_x_pc11_l1 != 0)))) || (( !(_x_pc11_l2 != 0)) && ((_x_pc11_l0 != 0) && (_x_pc11_l1 != 0)))) || ( !(((pc11_l2 != 0) && ((pc11_l1 != 0) && ( !(pc11_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc11_evt0 != 0)) && ( !(pc11_evt1 != 0))))))))) && (((pc11_x == _x_pc11_x) && (((pc11_evt0 != 0) && (pc11_evt1 != 0)) && (50.0 <= pc11_x))) || ( !(((pc11_l2 != 0) && ((pc11_l1 != 0) && ( !(pc11_l0 != 0)))) && (( !(_x_pc11_l2 != 0)) && ((_x_pc11_l0 != 0) && (_x_pc11_l1 != 0))))))) && (((_x_pc11_x == 0.0) && (((pc11_evt0 != 0) && ( !(pc11_evt1 != 0))) && (pc11_x <= 25.0))) || ( !(((pc11_l2 != 0) && ((pc11_l1 != 0) && ( !(pc11_l0 != 0)))) && (( !(_x_pc11_l2 != 0)) && ((_x_pc11_l0 != 0) && ( !(_x_pc11_l1 != 0)))))))) && (((((pc11_evt0 != 0) && (pc11_evt1 != 0)) && (pc11_x == _x_pc11_x)) && (((_x_pc11_l2 != 0) && ((_x_pc11_l0 != 0) && ( !(_x_pc11_l1 != 0)))) || (( !(_x_pc11_l2 != 0)) && ((_x_pc11_l0 != 0) && (_x_pc11_l1 != 0))))) || ( !((( !(pc11_l2 != 0)) && ((pc11_l0 != 0) && ( !(pc11_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc11_evt0 != 0)) && ( !(pc11_evt1 != 0))))))))) && ((25.0 <= pc11_x) || ( !((( !(pc11_l2 != 0)) && ((pc11_l0 != 0) && ( !(pc11_l1 != 0)))) && (( !(_x_pc11_l2 != 0)) && ((_x_pc11_l0 != 0) && (_x_pc11_l1 != 0))))))) && ((pc11_x <= 24.0) || ( !((( !(pc11_l2 != 0)) && ((pc11_l0 != 0) && ( !(pc11_l1 != 0)))) && ((_x_pc11_l2 != 0) && ((_x_pc11_l0 != 0) && ( !(_x_pc11_l1 != 0)))))))) && ((( !(_x_pc11_l2 != 0)) && ((_x_pc11_l0 != 0) && (_x_pc11_l1 != 0))) || ( !((( !(pc11_l2 != 0)) && ((pc11_l0 != 0) && (pc11_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc11_evt0 != 0)) && ( !(pc11_evt1 != 0))))))))) && ((( !(_x_pc11_l2 != 0)) && (( !(_x_pc11_l0 != 0)) && ( !(_x_pc11_l1 != 0)))) || ( !(((pc11_l2 != 0) && ((pc11_l0 != 0) && ( !(pc11_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc11_evt0 != 0)) && ( !(pc11_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc10_evt0 != 0)) && ( !(_x_pc10_evt1 != 0))) || ((_x_pc10_evt1 != 0) && ( !(_x_pc10_evt0 != 0)))) || (((_x_pc10_evt0 != 0) && ( !(_x_pc10_evt1 != 0))) || ((_x_pc10_evt0 != 0) && (_x_pc10_evt1 != 0)))) && ((( !(_x_pc10_l2 != 0)) && ((_x_pc10_l0 != 0) && (_x_pc10_l1 != 0))) || ((((( !(_x_pc10_l2 != 0)) && (( !(_x_pc10_l0 != 0)) && ( !(_x_pc10_l1 != 0)))) || ((_x_pc10_l2 != 0) && (( !(_x_pc10_l0 != 0)) && ( !(_x_pc10_l1 != 0))))) || ((( !(_x_pc10_l2 != 0)) && ((_x_pc10_l1 != 0) && ( !(_x_pc10_l0 != 0)))) || ((_x_pc10_l2 != 0) && ((_x_pc10_l1 != 0) && ( !(_x_pc10_l0 != 0)))))) || ((( !(_x_pc10_l2 != 0)) && ((_x_pc10_l0 != 0) && ( !(_x_pc10_l1 != 0)))) || ((_x_pc10_l2 != 0) && ((_x_pc10_l0 != 0) && ( !(_x_pc10_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc10_l0 != 0) == (_x_pc10_l0 != 0)) && ((pc10_l1 != 0) == (_x_pc10_l1 != 0))) && ((pc10_l2 != 0) == (_x_pc10_l2 != 0))) && ((delta + (pc10_x + (-1.0 * _x_pc10_x))) == 0.0)))) && ((((((pc10_l0 != 0) == (_x_pc10_l0 != 0)) && ((pc10_l1 != 0) == (_x_pc10_l1 != 0))) && ((pc10_l2 != 0) == (_x_pc10_l2 != 0))) && ((delta + (pc10_x + (-1.0 * _x_pc10_x))) == 0.0)) || ( !(( !(pc10_evt0 != 0)) && ( !(pc10_evt1 != 0)))))) && (((((pc10_evt0 != 0) && (pc10_evt1 != 0)) && (pc10_x <= 50.0)) && (((_x_pc10_l2 != 0) && (( !(_x_pc10_l0 != 0)) && ( !(_x_pc10_l1 != 0)))) && (_x_pc10_x == 0.0))) || ( !((( !(pc10_l2 != 0)) && (( !(pc10_l0 != 0)) && ( !(pc10_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc10_evt0 != 0)) && ( !(pc10_evt1 != 0))))))))) && ((((pc10_evt0 != 0) && (pc10_evt1 != 0)) && ((( !(_x_pc10_l2 != 0)) && (( !(_x_pc10_l0 != 0)) && ( !(_x_pc10_l1 != 0)))) || (( !(_x_pc10_l2 != 0)) && ((_x_pc10_l1 != 0) && ( !(_x_pc10_l0 != 0)))))) || ( !(((pc10_l2 != 0) && (( !(pc10_l0 != 0)) && ( !(pc10_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc10_evt0 != 0)) && ( !(pc10_evt1 != 0))))))))) && (((_x_pc10_x == 0.0) && (25.0 <= pc10_x)) || ( !((( !(_x_pc10_l2 != 0)) && (( !(_x_pc10_l0 != 0)) && ( !(_x_pc10_l1 != 0)))) && ((pc10_l2 != 0) && (( !(pc10_l0 != 0)) && ( !(pc10_l1 != 0)))))))) && (((pc10_x <= 24.0) && (pc10_x == _x_pc10_x)) || ( !(((pc10_l2 != 0) && (( !(pc10_l0 != 0)) && ( !(pc10_l1 != 0)))) && (( !(_x_pc10_l2 != 0)) && ((_x_pc10_l1 != 0) && ( !(_x_pc10_l0 != 0)))))))) && (((_x_pc10_x == 0.0) && (((pc10_evt1 != 0) && ( !(pc10_evt0 != 0))) && ((_x_pc10_l2 != 0) && ((_x_pc10_l1 != 0) && ( !(_x_pc10_l0 != 0)))))) || ( !((( !(pc10_l2 != 0)) && ((pc10_l1 != 0) && ( !(pc10_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc10_evt0 != 0)) && ( !(pc10_evt1 != 0))))))))) && (((( !(_x_pc10_l2 != 0)) && ((_x_pc10_l0 != 0) && ( !(_x_pc10_l1 != 0)))) || (( !(_x_pc10_l2 != 0)) && ((_x_pc10_l0 != 0) && (_x_pc10_l1 != 0)))) || ( !(((pc10_l2 != 0) && ((pc10_l1 != 0) && ( !(pc10_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc10_evt0 != 0)) && ( !(pc10_evt1 != 0))))))))) && (((pc10_x == _x_pc10_x) && (((pc10_evt0 != 0) && (pc10_evt1 != 0)) && (50.0 <= pc10_x))) || ( !(((pc10_l2 != 0) && ((pc10_l1 != 0) && ( !(pc10_l0 != 0)))) && (( !(_x_pc10_l2 != 0)) && ((_x_pc10_l0 != 0) && (_x_pc10_l1 != 0))))))) && (((_x_pc10_x == 0.0) && (((pc10_evt0 != 0) && ( !(pc10_evt1 != 0))) && (pc10_x <= 25.0))) || ( !(((pc10_l2 != 0) && ((pc10_l1 != 0) && ( !(pc10_l0 != 0)))) && (( !(_x_pc10_l2 != 0)) && ((_x_pc10_l0 != 0) && ( !(_x_pc10_l1 != 0)))))))) && (((((pc10_evt0 != 0) && (pc10_evt1 != 0)) && (pc10_x == _x_pc10_x)) && (((_x_pc10_l2 != 0) && ((_x_pc10_l0 != 0) && ( !(_x_pc10_l1 != 0)))) || (( !(_x_pc10_l2 != 0)) && ((_x_pc10_l0 != 0) && (_x_pc10_l1 != 0))))) || ( !((( !(pc10_l2 != 0)) && ((pc10_l0 != 0) && ( !(pc10_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc10_evt0 != 0)) && ( !(pc10_evt1 != 0))))))))) && ((25.0 <= pc10_x) || ( !((( !(pc10_l2 != 0)) && ((pc10_l0 != 0) && ( !(pc10_l1 != 0)))) && (( !(_x_pc10_l2 != 0)) && ((_x_pc10_l0 != 0) && (_x_pc10_l1 != 0))))))) && ((pc10_x <= 24.0) || ( !((( !(pc10_l2 != 0)) && ((pc10_l0 != 0) && ( !(pc10_l1 != 0)))) && ((_x_pc10_l2 != 0) && ((_x_pc10_l0 != 0) && ( !(_x_pc10_l1 != 0)))))))) && ((( !(_x_pc10_l2 != 0)) && ((_x_pc10_l0 != 0) && (_x_pc10_l1 != 0))) || ( !((( !(pc10_l2 != 0)) && ((pc10_l0 != 0) && (pc10_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc10_evt0 != 0)) && ( !(pc10_evt1 != 0))))))))) && ((( !(_x_pc10_l2 != 0)) && (( !(_x_pc10_l0 != 0)) && ( !(_x_pc10_l1 != 0)))) || ( !(((pc10_l2 != 0) && ((pc10_l0 != 0) && ( !(pc10_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc10_evt0 != 0)) && ( !(pc10_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc9_evt0 != 0)) && ( !(_x_pc9_evt1 != 0))) || ((_x_pc9_evt1 != 0) && ( !(_x_pc9_evt0 != 0)))) || (((_x_pc9_evt0 != 0) && ( !(_x_pc9_evt1 != 0))) || ((_x_pc9_evt0 != 0) && (_x_pc9_evt1 != 0)))) && ((( !(_x_pc9_l2 != 0)) && ((_x_pc9_l0 != 0) && (_x_pc9_l1 != 0))) || ((((( !(_x_pc9_l2 != 0)) && (( !(_x_pc9_l0 != 0)) && ( !(_x_pc9_l1 != 0)))) || ((_x_pc9_l2 != 0) && (( !(_x_pc9_l0 != 0)) && ( !(_x_pc9_l1 != 0))))) || ((( !(_x_pc9_l2 != 0)) && ((_x_pc9_l1 != 0) && ( !(_x_pc9_l0 != 0)))) || ((_x_pc9_l2 != 0) && ((_x_pc9_l1 != 0) && ( !(_x_pc9_l0 != 0)))))) || ((( !(_x_pc9_l2 != 0)) && ((_x_pc9_l0 != 0) && ( !(_x_pc9_l1 != 0)))) || ((_x_pc9_l2 != 0) && ((_x_pc9_l0 != 0) && ( !(_x_pc9_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc9_l0 != 0) == (_x_pc9_l0 != 0)) && ((pc9_l1 != 0) == (_x_pc9_l1 != 0))) && ((pc9_l2 != 0) == (_x_pc9_l2 != 0))) && ((delta + (pc9_x + (-1.0 * _x_pc9_x))) == 0.0)))) && ((((((pc9_l0 != 0) == (_x_pc9_l0 != 0)) && ((pc9_l1 != 0) == (_x_pc9_l1 != 0))) && ((pc9_l2 != 0) == (_x_pc9_l2 != 0))) && ((delta + (pc9_x + (-1.0 * _x_pc9_x))) == 0.0)) || ( !(( !(pc9_evt0 != 0)) && ( !(pc9_evt1 != 0)))))) && (((((pc9_evt0 != 0) && (pc9_evt1 != 0)) && (pc9_x <= 50.0)) && (((_x_pc9_l2 != 0) && (( !(_x_pc9_l0 != 0)) && ( !(_x_pc9_l1 != 0)))) && (_x_pc9_x == 0.0))) || ( !((( !(pc9_l2 != 0)) && (( !(pc9_l0 != 0)) && ( !(pc9_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc9_evt0 != 0)) && ( !(pc9_evt1 != 0))))))))) && ((((pc9_evt0 != 0) && (pc9_evt1 != 0)) && ((( !(_x_pc9_l2 != 0)) && (( !(_x_pc9_l0 != 0)) && ( !(_x_pc9_l1 != 0)))) || (( !(_x_pc9_l2 != 0)) && ((_x_pc9_l1 != 0) && ( !(_x_pc9_l0 != 0)))))) || ( !(((pc9_l2 != 0) && (( !(pc9_l0 != 0)) && ( !(pc9_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc9_evt0 != 0)) && ( !(pc9_evt1 != 0))))))))) && (((_x_pc9_x == 0.0) && (25.0 <= pc9_x)) || ( !((( !(_x_pc9_l2 != 0)) && (( !(_x_pc9_l0 != 0)) && ( !(_x_pc9_l1 != 0)))) && ((pc9_l2 != 0) && (( !(pc9_l0 != 0)) && ( !(pc9_l1 != 0)))))))) && (((pc9_x <= 24.0) && (pc9_x == _x_pc9_x)) || ( !(((pc9_l2 != 0) && (( !(pc9_l0 != 0)) && ( !(pc9_l1 != 0)))) && (( !(_x_pc9_l2 != 0)) && ((_x_pc9_l1 != 0) && ( !(_x_pc9_l0 != 0)))))))) && (((_x_pc9_x == 0.0) && (((pc9_evt1 != 0) && ( !(pc9_evt0 != 0))) && ((_x_pc9_l2 != 0) && ((_x_pc9_l1 != 0) && ( !(_x_pc9_l0 != 0)))))) || ( !((( !(pc9_l2 != 0)) && ((pc9_l1 != 0) && ( !(pc9_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc9_evt0 != 0)) && ( !(pc9_evt1 != 0))))))))) && (((( !(_x_pc9_l2 != 0)) && ((_x_pc9_l0 != 0) && ( !(_x_pc9_l1 != 0)))) || (( !(_x_pc9_l2 != 0)) && ((_x_pc9_l0 != 0) && (_x_pc9_l1 != 0)))) || ( !(((pc9_l2 != 0) && ((pc9_l1 != 0) && ( !(pc9_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc9_evt0 != 0)) && ( !(pc9_evt1 != 0))))))))) && (((pc9_x == _x_pc9_x) && (((pc9_evt0 != 0) && (pc9_evt1 != 0)) && (50.0 <= pc9_x))) || ( !(((pc9_l2 != 0) && ((pc9_l1 != 0) && ( !(pc9_l0 != 0)))) && (( !(_x_pc9_l2 != 0)) && ((_x_pc9_l0 != 0) && (_x_pc9_l1 != 0))))))) && (((_x_pc9_x == 0.0) && (((pc9_evt0 != 0) && ( !(pc9_evt1 != 0))) && (pc9_x <= 25.0))) || ( !(((pc9_l2 != 0) && ((pc9_l1 != 0) && ( !(pc9_l0 != 0)))) && (( !(_x_pc9_l2 != 0)) && ((_x_pc9_l0 != 0) && ( !(_x_pc9_l1 != 0)))))))) && (((((pc9_evt0 != 0) && (pc9_evt1 != 0)) && (pc9_x == _x_pc9_x)) && (((_x_pc9_l2 != 0) && ((_x_pc9_l0 != 0) && ( !(_x_pc9_l1 != 0)))) || (( !(_x_pc9_l2 != 0)) && ((_x_pc9_l0 != 0) && (_x_pc9_l1 != 0))))) || ( !((( !(pc9_l2 != 0)) && ((pc9_l0 != 0) && ( !(pc9_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc9_evt0 != 0)) && ( !(pc9_evt1 != 0))))))))) && ((25.0 <= pc9_x) || ( !((( !(pc9_l2 != 0)) && ((pc9_l0 != 0) && ( !(pc9_l1 != 0)))) && (( !(_x_pc9_l2 != 0)) && ((_x_pc9_l0 != 0) && (_x_pc9_l1 != 0))))))) && ((pc9_x <= 24.0) || ( !((( !(pc9_l2 != 0)) && ((pc9_l0 != 0) && ( !(pc9_l1 != 0)))) && ((_x_pc9_l2 != 0) && ((_x_pc9_l0 != 0) && ( !(_x_pc9_l1 != 0)))))))) && ((( !(_x_pc9_l2 != 0)) && ((_x_pc9_l0 != 0) && (_x_pc9_l1 != 0))) || ( !((( !(pc9_l2 != 0)) && ((pc9_l0 != 0) && (pc9_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc9_evt0 != 0)) && ( !(pc9_evt1 != 0))))))))) && ((( !(_x_pc9_l2 != 0)) && (( !(_x_pc9_l0 != 0)) && ( !(_x_pc9_l1 != 0)))) || ( !(((pc9_l2 != 0) && ((pc9_l0 != 0) && ( !(pc9_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc9_evt0 != 0)) && ( !(pc9_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc8_evt0 != 0)) && ( !(_x_pc8_evt1 != 0))) || ((_x_pc8_evt1 != 0) && ( !(_x_pc8_evt0 != 0)))) || (((_x_pc8_evt0 != 0) && ( !(_x_pc8_evt1 != 0))) || ((_x_pc8_evt0 != 0) && (_x_pc8_evt1 != 0)))) && ((( !(_x_pc8_l2 != 0)) && ((_x_pc8_l0 != 0) && (_x_pc8_l1 != 0))) || ((((( !(_x_pc8_l2 != 0)) && (( !(_x_pc8_l0 != 0)) && ( !(_x_pc8_l1 != 0)))) || ((_x_pc8_l2 != 0) && (( !(_x_pc8_l0 != 0)) && ( !(_x_pc8_l1 != 0))))) || ((( !(_x_pc8_l2 != 0)) && ((_x_pc8_l1 != 0) && ( !(_x_pc8_l0 != 0)))) || ((_x_pc8_l2 != 0) && ((_x_pc8_l1 != 0) && ( !(_x_pc8_l0 != 0)))))) || ((( !(_x_pc8_l2 != 0)) && ((_x_pc8_l0 != 0) && ( !(_x_pc8_l1 != 0)))) || ((_x_pc8_l2 != 0) && ((_x_pc8_l0 != 0) && ( !(_x_pc8_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc8_l0 != 0) == (_x_pc8_l0 != 0)) && ((pc8_l1 != 0) == (_x_pc8_l1 != 0))) && ((pc8_l2 != 0) == (_x_pc8_l2 != 0))) && ((delta + (pc8_x + (-1.0 * _x_pc8_x))) == 0.0)))) && ((((((pc8_l0 != 0) == (_x_pc8_l0 != 0)) && ((pc8_l1 != 0) == (_x_pc8_l1 != 0))) && ((pc8_l2 != 0) == (_x_pc8_l2 != 0))) && ((delta + (pc8_x + (-1.0 * _x_pc8_x))) == 0.0)) || ( !(( !(pc8_evt0 != 0)) && ( !(pc8_evt1 != 0)))))) && (((((pc8_evt0 != 0) && (pc8_evt1 != 0)) && (pc8_x <= 50.0)) && (((_x_pc8_l2 != 0) && (( !(_x_pc8_l0 != 0)) && ( !(_x_pc8_l1 != 0)))) && (_x_pc8_x == 0.0))) || ( !((( !(pc8_l2 != 0)) && (( !(pc8_l0 != 0)) && ( !(pc8_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc8_evt0 != 0)) && ( !(pc8_evt1 != 0))))))))) && ((((pc8_evt0 != 0) && (pc8_evt1 != 0)) && ((( !(_x_pc8_l2 != 0)) && (( !(_x_pc8_l0 != 0)) && ( !(_x_pc8_l1 != 0)))) || (( !(_x_pc8_l2 != 0)) && ((_x_pc8_l1 != 0) && ( !(_x_pc8_l0 != 0)))))) || ( !(((pc8_l2 != 0) && (( !(pc8_l0 != 0)) && ( !(pc8_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc8_evt0 != 0)) && ( !(pc8_evt1 != 0))))))))) && (((_x_pc8_x == 0.0) && (25.0 <= pc8_x)) || ( !((( !(_x_pc8_l2 != 0)) && (( !(_x_pc8_l0 != 0)) && ( !(_x_pc8_l1 != 0)))) && ((pc8_l2 != 0) && (( !(pc8_l0 != 0)) && ( !(pc8_l1 != 0)))))))) && (((pc8_x <= 24.0) && (pc8_x == _x_pc8_x)) || ( !(((pc8_l2 != 0) && (( !(pc8_l0 != 0)) && ( !(pc8_l1 != 0)))) && (( !(_x_pc8_l2 != 0)) && ((_x_pc8_l1 != 0) && ( !(_x_pc8_l0 != 0)))))))) && (((_x_pc8_x == 0.0) && (((pc8_evt1 != 0) && ( !(pc8_evt0 != 0))) && ((_x_pc8_l2 != 0) && ((_x_pc8_l1 != 0) && ( !(_x_pc8_l0 != 0)))))) || ( !((( !(pc8_l2 != 0)) && ((pc8_l1 != 0) && ( !(pc8_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc8_evt0 != 0)) && ( !(pc8_evt1 != 0))))))))) && (((( !(_x_pc8_l2 != 0)) && ((_x_pc8_l0 != 0) && ( !(_x_pc8_l1 != 0)))) || (( !(_x_pc8_l2 != 0)) && ((_x_pc8_l0 != 0) && (_x_pc8_l1 != 0)))) || ( !(((pc8_l2 != 0) && ((pc8_l1 != 0) && ( !(pc8_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc8_evt0 != 0)) && ( !(pc8_evt1 != 0))))))))) && (((pc8_x == _x_pc8_x) && (((pc8_evt0 != 0) && (pc8_evt1 != 0)) && (50.0 <= pc8_x))) || ( !(((pc8_l2 != 0) && ((pc8_l1 != 0) && ( !(pc8_l0 != 0)))) && (( !(_x_pc8_l2 != 0)) && ((_x_pc8_l0 != 0) && (_x_pc8_l1 != 0))))))) && (((_x_pc8_x == 0.0) && (((pc8_evt0 != 0) && ( !(pc8_evt1 != 0))) && (pc8_x <= 25.0))) || ( !(((pc8_l2 != 0) && ((pc8_l1 != 0) && ( !(pc8_l0 != 0)))) && (( !(_x_pc8_l2 != 0)) && ((_x_pc8_l0 != 0) && ( !(_x_pc8_l1 != 0)))))))) && (((((pc8_evt0 != 0) && (pc8_evt1 != 0)) && (pc8_x == _x_pc8_x)) && (((_x_pc8_l2 != 0) && ((_x_pc8_l0 != 0) && ( !(_x_pc8_l1 != 0)))) || (( !(_x_pc8_l2 != 0)) && ((_x_pc8_l0 != 0) && (_x_pc8_l1 != 0))))) || ( !((( !(pc8_l2 != 0)) && ((pc8_l0 != 0) && ( !(pc8_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc8_evt0 != 0)) && ( !(pc8_evt1 != 0))))))))) && ((25.0 <= pc8_x) || ( !((( !(pc8_l2 != 0)) && ((pc8_l0 != 0) && ( !(pc8_l1 != 0)))) && (( !(_x_pc8_l2 != 0)) && ((_x_pc8_l0 != 0) && (_x_pc8_l1 != 0))))))) && ((pc8_x <= 24.0) || ( !((( !(pc8_l2 != 0)) && ((pc8_l0 != 0) && ( !(pc8_l1 != 0)))) && ((_x_pc8_l2 != 0) && ((_x_pc8_l0 != 0) && ( !(_x_pc8_l1 != 0)))))))) && ((( !(_x_pc8_l2 != 0)) && ((_x_pc8_l0 != 0) && (_x_pc8_l1 != 0))) || ( !((( !(pc8_l2 != 0)) && ((pc8_l0 != 0) && (pc8_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc8_evt0 != 0)) && ( !(pc8_evt1 != 0))))))))) && ((( !(_x_pc8_l2 != 0)) && (( !(_x_pc8_l0 != 0)) && ( !(_x_pc8_l1 != 0)))) || ( !(((pc8_l2 != 0) && ((pc8_l0 != 0) && ( !(pc8_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc8_evt0 != 0)) && ( !(pc8_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc7_evt0 != 0)) && ( !(_x_pc7_evt1 != 0))) || ((_x_pc7_evt1 != 0) && ( !(_x_pc7_evt0 != 0)))) || (((_x_pc7_evt0 != 0) && ( !(_x_pc7_evt1 != 0))) || ((_x_pc7_evt0 != 0) && (_x_pc7_evt1 != 0)))) && ((( !(_x_pc7_l2 != 0)) && ((_x_pc7_l0 != 0) && (_x_pc7_l1 != 0))) || ((((( !(_x_pc7_l2 != 0)) && (( !(_x_pc7_l0 != 0)) && ( !(_x_pc7_l1 != 0)))) || ((_x_pc7_l2 != 0) && (( !(_x_pc7_l0 != 0)) && ( !(_x_pc7_l1 != 0))))) || ((( !(_x_pc7_l2 != 0)) && ((_x_pc7_l1 != 0) && ( !(_x_pc7_l0 != 0)))) || ((_x_pc7_l2 != 0) && ((_x_pc7_l1 != 0) && ( !(_x_pc7_l0 != 0)))))) || ((( !(_x_pc7_l2 != 0)) && ((_x_pc7_l0 != 0) && ( !(_x_pc7_l1 != 0)))) || ((_x_pc7_l2 != 0) && ((_x_pc7_l0 != 0) && ( !(_x_pc7_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc7_l0 != 0) == (_x_pc7_l0 != 0)) && ((pc7_l1 != 0) == (_x_pc7_l1 != 0))) && ((pc7_l2 != 0) == (_x_pc7_l2 != 0))) && ((delta + (pc7_x + (-1.0 * _x_pc7_x))) == 0.0)))) && ((((((pc7_l0 != 0) == (_x_pc7_l0 != 0)) && ((pc7_l1 != 0) == (_x_pc7_l1 != 0))) && ((pc7_l2 != 0) == (_x_pc7_l2 != 0))) && ((delta + (pc7_x + (-1.0 * _x_pc7_x))) == 0.0)) || ( !(( !(pc7_evt0 != 0)) && ( !(pc7_evt1 != 0)))))) && (((((pc7_evt0 != 0) && (pc7_evt1 != 0)) && (pc7_x <= 50.0)) && (((_x_pc7_l2 != 0) && (( !(_x_pc7_l0 != 0)) && ( !(_x_pc7_l1 != 0)))) && (_x_pc7_x == 0.0))) || ( !((( !(pc7_l2 != 0)) && (( !(pc7_l0 != 0)) && ( !(pc7_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc7_evt0 != 0)) && ( !(pc7_evt1 != 0))))))))) && ((((pc7_evt0 != 0) && (pc7_evt1 != 0)) && ((( !(_x_pc7_l2 != 0)) && (( !(_x_pc7_l0 != 0)) && ( !(_x_pc7_l1 != 0)))) || (( !(_x_pc7_l2 != 0)) && ((_x_pc7_l1 != 0) && ( !(_x_pc7_l0 != 0)))))) || ( !(((pc7_l2 != 0) && (( !(pc7_l0 != 0)) && ( !(pc7_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc7_evt0 != 0)) && ( !(pc7_evt1 != 0))))))))) && (((_x_pc7_x == 0.0) && (25.0 <= pc7_x)) || ( !((( !(_x_pc7_l2 != 0)) && (( !(_x_pc7_l0 != 0)) && ( !(_x_pc7_l1 != 0)))) && ((pc7_l2 != 0) && (( !(pc7_l0 != 0)) && ( !(pc7_l1 != 0)))))))) && (((pc7_x <= 24.0) && (pc7_x == _x_pc7_x)) || ( !(((pc7_l2 != 0) && (( !(pc7_l0 != 0)) && ( !(pc7_l1 != 0)))) && (( !(_x_pc7_l2 != 0)) && ((_x_pc7_l1 != 0) && ( !(_x_pc7_l0 != 0)))))))) && (((_x_pc7_x == 0.0) && (((pc7_evt1 != 0) && ( !(pc7_evt0 != 0))) && ((_x_pc7_l2 != 0) && ((_x_pc7_l1 != 0) && ( !(_x_pc7_l0 != 0)))))) || ( !((( !(pc7_l2 != 0)) && ((pc7_l1 != 0) && ( !(pc7_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc7_evt0 != 0)) && ( !(pc7_evt1 != 0))))))))) && (((( !(_x_pc7_l2 != 0)) && ((_x_pc7_l0 != 0) && ( !(_x_pc7_l1 != 0)))) || (( !(_x_pc7_l2 != 0)) && ((_x_pc7_l0 != 0) && (_x_pc7_l1 != 0)))) || ( !(((pc7_l2 != 0) && ((pc7_l1 != 0) && ( !(pc7_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc7_evt0 != 0)) && ( !(pc7_evt1 != 0))))))))) && (((pc7_x == _x_pc7_x) && (((pc7_evt0 != 0) && (pc7_evt1 != 0)) && (50.0 <= pc7_x))) || ( !(((pc7_l2 != 0) && ((pc7_l1 != 0) && ( !(pc7_l0 != 0)))) && (( !(_x_pc7_l2 != 0)) && ((_x_pc7_l0 != 0) && (_x_pc7_l1 != 0))))))) && (((_x_pc7_x == 0.0) && (((pc7_evt0 != 0) && ( !(pc7_evt1 != 0))) && (pc7_x <= 25.0))) || ( !(((pc7_l2 != 0) && ((pc7_l1 != 0) && ( !(pc7_l0 != 0)))) && (( !(_x_pc7_l2 != 0)) && ((_x_pc7_l0 != 0) && ( !(_x_pc7_l1 != 0)))))))) && (((((pc7_evt0 != 0) && (pc7_evt1 != 0)) && (pc7_x == _x_pc7_x)) && (((_x_pc7_l2 != 0) && ((_x_pc7_l0 != 0) && ( !(_x_pc7_l1 != 0)))) || (( !(_x_pc7_l2 != 0)) && ((_x_pc7_l0 != 0) && (_x_pc7_l1 != 0))))) || ( !((( !(pc7_l2 != 0)) && ((pc7_l0 != 0) && ( !(pc7_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc7_evt0 != 0)) && ( !(pc7_evt1 != 0))))))))) && ((25.0 <= pc7_x) || ( !((( !(pc7_l2 != 0)) && ((pc7_l0 != 0) && ( !(pc7_l1 != 0)))) && (( !(_x_pc7_l2 != 0)) && ((_x_pc7_l0 != 0) && (_x_pc7_l1 != 0))))))) && ((pc7_x <= 24.0) || ( !((( !(pc7_l2 != 0)) && ((pc7_l0 != 0) && ( !(pc7_l1 != 0)))) && ((_x_pc7_l2 != 0) && ((_x_pc7_l0 != 0) && ( !(_x_pc7_l1 != 0)))))))) && ((( !(_x_pc7_l2 != 0)) && ((_x_pc7_l0 != 0) && (_x_pc7_l1 != 0))) || ( !((( !(pc7_l2 != 0)) && ((pc7_l0 != 0) && (pc7_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc7_evt0 != 0)) && ( !(pc7_evt1 != 0))))))))) && ((( !(_x_pc7_l2 != 0)) && (( !(_x_pc7_l0 != 0)) && ( !(_x_pc7_l1 != 0)))) || ( !(((pc7_l2 != 0) && ((pc7_l0 != 0) && ( !(pc7_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc7_evt0 != 0)) && ( !(pc7_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc6_evt0 != 0)) && ( !(_x_pc6_evt1 != 0))) || ((_x_pc6_evt1 != 0) && ( !(_x_pc6_evt0 != 0)))) || (((_x_pc6_evt0 != 0) && ( !(_x_pc6_evt1 != 0))) || ((_x_pc6_evt0 != 0) && (_x_pc6_evt1 != 0)))) && ((( !(_x_pc6_l2 != 0)) && ((_x_pc6_l0 != 0) && (_x_pc6_l1 != 0))) || ((((( !(_x_pc6_l2 != 0)) && (( !(_x_pc6_l0 != 0)) && ( !(_x_pc6_l1 != 0)))) || ((_x_pc6_l2 != 0) && (( !(_x_pc6_l0 != 0)) && ( !(_x_pc6_l1 != 0))))) || ((( !(_x_pc6_l2 != 0)) && ((_x_pc6_l1 != 0) && ( !(_x_pc6_l0 != 0)))) || ((_x_pc6_l2 != 0) && ((_x_pc6_l1 != 0) && ( !(_x_pc6_l0 != 0)))))) || ((( !(_x_pc6_l2 != 0)) && ((_x_pc6_l0 != 0) && ( !(_x_pc6_l1 != 0)))) || ((_x_pc6_l2 != 0) && ((_x_pc6_l0 != 0) && ( !(_x_pc6_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc6_l0 != 0) == (_x_pc6_l0 != 0)) && ((pc6_l1 != 0) == (_x_pc6_l1 != 0))) && ((pc6_l2 != 0) == (_x_pc6_l2 != 0))) && ((delta + (pc6_x + (-1.0 * _x_pc6_x))) == 0.0)))) && ((((((pc6_l0 != 0) == (_x_pc6_l0 != 0)) && ((pc6_l1 != 0) == (_x_pc6_l1 != 0))) && ((pc6_l2 != 0) == (_x_pc6_l2 != 0))) && ((delta + (pc6_x + (-1.0 * _x_pc6_x))) == 0.0)) || ( !(( !(pc6_evt0 != 0)) && ( !(pc6_evt1 != 0)))))) && (((((pc6_evt0 != 0) && (pc6_evt1 != 0)) && (pc6_x <= 50.0)) && (((_x_pc6_l2 != 0) && (( !(_x_pc6_l0 != 0)) && ( !(_x_pc6_l1 != 0)))) && (_x_pc6_x == 0.0))) || ( !((( !(pc6_l2 != 0)) && (( !(pc6_l0 != 0)) && ( !(pc6_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc6_evt0 != 0)) && ( !(pc6_evt1 != 0))))))))) && ((((pc6_evt0 != 0) && (pc6_evt1 != 0)) && ((( !(_x_pc6_l2 != 0)) && (( !(_x_pc6_l0 != 0)) && ( !(_x_pc6_l1 != 0)))) || (( !(_x_pc6_l2 != 0)) && ((_x_pc6_l1 != 0) && ( !(_x_pc6_l0 != 0)))))) || ( !(((pc6_l2 != 0) && (( !(pc6_l0 != 0)) && ( !(pc6_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc6_evt0 != 0)) && ( !(pc6_evt1 != 0))))))))) && (((_x_pc6_x == 0.0) && (25.0 <= pc6_x)) || ( !((( !(_x_pc6_l2 != 0)) && (( !(_x_pc6_l0 != 0)) && ( !(_x_pc6_l1 != 0)))) && ((pc6_l2 != 0) && (( !(pc6_l0 != 0)) && ( !(pc6_l1 != 0)))))))) && (((pc6_x <= 24.0) && (pc6_x == _x_pc6_x)) || ( !(((pc6_l2 != 0) && (( !(pc6_l0 != 0)) && ( !(pc6_l1 != 0)))) && (( !(_x_pc6_l2 != 0)) && ((_x_pc6_l1 != 0) && ( !(_x_pc6_l0 != 0)))))))) && (((_x_pc6_x == 0.0) && (((pc6_evt1 != 0) && ( !(pc6_evt0 != 0))) && ((_x_pc6_l2 != 0) && ((_x_pc6_l1 != 0) && ( !(_x_pc6_l0 != 0)))))) || ( !((( !(pc6_l2 != 0)) && ((pc6_l1 != 0) && ( !(pc6_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc6_evt0 != 0)) && ( !(pc6_evt1 != 0))))))))) && (((( !(_x_pc6_l2 != 0)) && ((_x_pc6_l0 != 0) && ( !(_x_pc6_l1 != 0)))) || (( !(_x_pc6_l2 != 0)) && ((_x_pc6_l0 != 0) && (_x_pc6_l1 != 0)))) || ( !(((pc6_l2 != 0) && ((pc6_l1 != 0) && ( !(pc6_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc6_evt0 != 0)) && ( !(pc6_evt1 != 0))))))))) && (((pc6_x == _x_pc6_x) && (((pc6_evt0 != 0) && (pc6_evt1 != 0)) && (50.0 <= pc6_x))) || ( !(((pc6_l2 != 0) && ((pc6_l1 != 0) && ( !(pc6_l0 != 0)))) && (( !(_x_pc6_l2 != 0)) && ((_x_pc6_l0 != 0) && (_x_pc6_l1 != 0))))))) && (((_x_pc6_x == 0.0) && (((pc6_evt0 != 0) && ( !(pc6_evt1 != 0))) && (pc6_x <= 25.0))) || ( !(((pc6_l2 != 0) && ((pc6_l1 != 0) && ( !(pc6_l0 != 0)))) && (( !(_x_pc6_l2 != 0)) && ((_x_pc6_l0 != 0) && ( !(_x_pc6_l1 != 0)))))))) && (((((pc6_evt0 != 0) && (pc6_evt1 != 0)) && (pc6_x == _x_pc6_x)) && (((_x_pc6_l2 != 0) && ((_x_pc6_l0 != 0) && ( !(_x_pc6_l1 != 0)))) || (( !(_x_pc6_l2 != 0)) && ((_x_pc6_l0 != 0) && (_x_pc6_l1 != 0))))) || ( !((( !(pc6_l2 != 0)) && ((pc6_l0 != 0) && ( !(pc6_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc6_evt0 != 0)) && ( !(pc6_evt1 != 0))))))))) && ((25.0 <= pc6_x) || ( !((( !(pc6_l2 != 0)) && ((pc6_l0 != 0) && ( !(pc6_l1 != 0)))) && (( !(_x_pc6_l2 != 0)) && ((_x_pc6_l0 != 0) && (_x_pc6_l1 != 0))))))) && ((pc6_x <= 24.0) || ( !((( !(pc6_l2 != 0)) && ((pc6_l0 != 0) && ( !(pc6_l1 != 0)))) && ((_x_pc6_l2 != 0) && ((_x_pc6_l0 != 0) && ( !(_x_pc6_l1 != 0)))))))) && ((( !(_x_pc6_l2 != 0)) && ((_x_pc6_l0 != 0) && (_x_pc6_l1 != 0))) || ( !((( !(pc6_l2 != 0)) && ((pc6_l0 != 0) && (pc6_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc6_evt0 != 0)) && ( !(pc6_evt1 != 0))))))))) && ((( !(_x_pc6_l2 != 0)) && (( !(_x_pc6_l0 != 0)) && ( !(_x_pc6_l1 != 0)))) || ( !(((pc6_l2 != 0) && ((pc6_l0 != 0) && ( !(pc6_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc6_evt0 != 0)) && ( !(pc6_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc5_evt0 != 0)) && ( !(_x_pc5_evt1 != 0))) || ((_x_pc5_evt1 != 0) && ( !(_x_pc5_evt0 != 0)))) || (((_x_pc5_evt0 != 0) && ( !(_x_pc5_evt1 != 0))) || ((_x_pc5_evt0 != 0) && (_x_pc5_evt1 != 0)))) && ((( !(_x_pc5_l2 != 0)) && ((_x_pc5_l0 != 0) && (_x_pc5_l1 != 0))) || ((((( !(_x_pc5_l2 != 0)) && (( !(_x_pc5_l0 != 0)) && ( !(_x_pc5_l1 != 0)))) || ((_x_pc5_l2 != 0) && (( !(_x_pc5_l0 != 0)) && ( !(_x_pc5_l1 != 0))))) || ((( !(_x_pc5_l2 != 0)) && ((_x_pc5_l1 != 0) && ( !(_x_pc5_l0 != 0)))) || ((_x_pc5_l2 != 0) && ((_x_pc5_l1 != 0) && ( !(_x_pc5_l0 != 0)))))) || ((( !(_x_pc5_l2 != 0)) && ((_x_pc5_l0 != 0) && ( !(_x_pc5_l1 != 0)))) || ((_x_pc5_l2 != 0) && ((_x_pc5_l0 != 0) && ( !(_x_pc5_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc5_l0 != 0) == (_x_pc5_l0 != 0)) && ((pc5_l1 != 0) == (_x_pc5_l1 != 0))) && ((pc5_l2 != 0) == (_x_pc5_l2 != 0))) && ((delta + (pc5_x + (-1.0 * _x_pc5_x))) == 0.0)))) && ((((((pc5_l0 != 0) == (_x_pc5_l0 != 0)) && ((pc5_l1 != 0) == (_x_pc5_l1 != 0))) && ((pc5_l2 != 0) == (_x_pc5_l2 != 0))) && ((delta + (pc5_x + (-1.0 * _x_pc5_x))) == 0.0)) || ( !(( !(pc5_evt0 != 0)) && ( !(pc5_evt1 != 0)))))) && (((((pc5_evt0 != 0) && (pc5_evt1 != 0)) && (pc5_x <= 50.0)) && (((_x_pc5_l2 != 0) && (( !(_x_pc5_l0 != 0)) && ( !(_x_pc5_l1 != 0)))) && (_x_pc5_x == 0.0))) || ( !((( !(pc5_l2 != 0)) && (( !(pc5_l0 != 0)) && ( !(pc5_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc5_evt0 != 0)) && ( !(pc5_evt1 != 0))))))))) && ((((pc5_evt0 != 0) && (pc5_evt1 != 0)) && ((( !(_x_pc5_l2 != 0)) && (( !(_x_pc5_l0 != 0)) && ( !(_x_pc5_l1 != 0)))) || (( !(_x_pc5_l2 != 0)) && ((_x_pc5_l1 != 0) && ( !(_x_pc5_l0 != 0)))))) || ( !(((pc5_l2 != 0) && (( !(pc5_l0 != 0)) && ( !(pc5_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc5_evt0 != 0)) && ( !(pc5_evt1 != 0))))))))) && (((_x_pc5_x == 0.0) && (25.0 <= pc5_x)) || ( !((( !(_x_pc5_l2 != 0)) && (( !(_x_pc5_l0 != 0)) && ( !(_x_pc5_l1 != 0)))) && ((pc5_l2 != 0) && (( !(pc5_l0 != 0)) && ( !(pc5_l1 != 0)))))))) && (((pc5_x <= 24.0) && (pc5_x == _x_pc5_x)) || ( !(((pc5_l2 != 0) && (( !(pc5_l0 != 0)) && ( !(pc5_l1 != 0)))) && (( !(_x_pc5_l2 != 0)) && ((_x_pc5_l1 != 0) && ( !(_x_pc5_l0 != 0)))))))) && (((_x_pc5_x == 0.0) && (((pc5_evt1 != 0) && ( !(pc5_evt0 != 0))) && ((_x_pc5_l2 != 0) && ((_x_pc5_l1 != 0) && ( !(_x_pc5_l0 != 0)))))) || ( !((( !(pc5_l2 != 0)) && ((pc5_l1 != 0) && ( !(pc5_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc5_evt0 != 0)) && ( !(pc5_evt1 != 0))))))))) && (((( !(_x_pc5_l2 != 0)) && ((_x_pc5_l0 != 0) && ( !(_x_pc5_l1 != 0)))) || (( !(_x_pc5_l2 != 0)) && ((_x_pc5_l0 != 0) && (_x_pc5_l1 != 0)))) || ( !(((pc5_l2 != 0) && ((pc5_l1 != 0) && ( !(pc5_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc5_evt0 != 0)) && ( !(pc5_evt1 != 0))))))))) && (((pc5_x == _x_pc5_x) && (((pc5_evt0 != 0) && (pc5_evt1 != 0)) && (50.0 <= pc5_x))) || ( !(((pc5_l2 != 0) && ((pc5_l1 != 0) && ( !(pc5_l0 != 0)))) && (( !(_x_pc5_l2 != 0)) && ((_x_pc5_l0 != 0) && (_x_pc5_l1 != 0))))))) && (((_x_pc5_x == 0.0) && (((pc5_evt0 != 0) && ( !(pc5_evt1 != 0))) && (pc5_x <= 25.0))) || ( !(((pc5_l2 != 0) && ((pc5_l1 != 0) && ( !(pc5_l0 != 0)))) && (( !(_x_pc5_l2 != 0)) && ((_x_pc5_l0 != 0) && ( !(_x_pc5_l1 != 0)))))))) && (((((pc5_evt0 != 0) && (pc5_evt1 != 0)) && (pc5_x == _x_pc5_x)) && (((_x_pc5_l2 != 0) && ((_x_pc5_l0 != 0) && ( !(_x_pc5_l1 != 0)))) || (( !(_x_pc5_l2 != 0)) && ((_x_pc5_l0 != 0) && (_x_pc5_l1 != 0))))) || ( !((( !(pc5_l2 != 0)) && ((pc5_l0 != 0) && ( !(pc5_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc5_evt0 != 0)) && ( !(pc5_evt1 != 0))))))))) && ((25.0 <= pc5_x) || ( !((( !(pc5_l2 != 0)) && ((pc5_l0 != 0) && ( !(pc5_l1 != 0)))) && (( !(_x_pc5_l2 != 0)) && ((_x_pc5_l0 != 0) && (_x_pc5_l1 != 0))))))) && ((pc5_x <= 24.0) || ( !((( !(pc5_l2 != 0)) && ((pc5_l0 != 0) && ( !(pc5_l1 != 0)))) && ((_x_pc5_l2 != 0) && ((_x_pc5_l0 != 0) && ( !(_x_pc5_l1 != 0)))))))) && ((( !(_x_pc5_l2 != 0)) && ((_x_pc5_l0 != 0) && (_x_pc5_l1 != 0))) || ( !((( !(pc5_l2 != 0)) && ((pc5_l0 != 0) && (pc5_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc5_evt0 != 0)) && ( !(pc5_evt1 != 0))))))))) && ((( !(_x_pc5_l2 != 0)) && (( !(_x_pc5_l0 != 0)) && ( !(_x_pc5_l1 != 0)))) || ( !(((pc5_l2 != 0) && ((pc5_l0 != 0) && ( !(pc5_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc5_evt0 != 0)) && ( !(pc5_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc4_evt0 != 0)) && ( !(_x_pc4_evt1 != 0))) || ((_x_pc4_evt1 != 0) && ( !(_x_pc4_evt0 != 0)))) || (((_x_pc4_evt0 != 0) && ( !(_x_pc4_evt1 != 0))) || ((_x_pc4_evt0 != 0) && (_x_pc4_evt1 != 0)))) && ((( !(_x_pc4_l2 != 0)) && ((_x_pc4_l0 != 0) && (_x_pc4_l1 != 0))) || ((((( !(_x_pc4_l2 != 0)) && (( !(_x_pc4_l0 != 0)) && ( !(_x_pc4_l1 != 0)))) || ((_x_pc4_l2 != 0) && (( !(_x_pc4_l0 != 0)) && ( !(_x_pc4_l1 != 0))))) || ((( !(_x_pc4_l2 != 0)) && ((_x_pc4_l1 != 0) && ( !(_x_pc4_l0 != 0)))) || ((_x_pc4_l2 != 0) && ((_x_pc4_l1 != 0) && ( !(_x_pc4_l0 != 0)))))) || ((( !(_x_pc4_l2 != 0)) && ((_x_pc4_l0 != 0) && ( !(_x_pc4_l1 != 0)))) || ((_x_pc4_l2 != 0) && ((_x_pc4_l0 != 0) && ( !(_x_pc4_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc4_l0 != 0) == (_x_pc4_l0 != 0)) && ((pc4_l1 != 0) == (_x_pc4_l1 != 0))) && ((pc4_l2 != 0) == (_x_pc4_l2 != 0))) && ((delta + (pc4_x + (-1.0 * _x_pc4_x))) == 0.0)))) && ((((((pc4_l0 != 0) == (_x_pc4_l0 != 0)) && ((pc4_l1 != 0) == (_x_pc4_l1 != 0))) && ((pc4_l2 != 0) == (_x_pc4_l2 != 0))) && ((delta + (pc4_x + (-1.0 * _x_pc4_x))) == 0.0)) || ( !(( !(pc4_evt0 != 0)) && ( !(pc4_evt1 != 0)))))) && (((((pc4_evt0 != 0) && (pc4_evt1 != 0)) && (pc4_x <= 50.0)) && (((_x_pc4_l2 != 0) && (( !(_x_pc4_l0 != 0)) && ( !(_x_pc4_l1 != 0)))) && (_x_pc4_x == 0.0))) || ( !((( !(pc4_l2 != 0)) && (( !(pc4_l0 != 0)) && ( !(pc4_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc4_evt0 != 0)) && ( !(pc4_evt1 != 0))))))))) && ((((pc4_evt0 != 0) && (pc4_evt1 != 0)) && ((( !(_x_pc4_l2 != 0)) && (( !(_x_pc4_l0 != 0)) && ( !(_x_pc4_l1 != 0)))) || (( !(_x_pc4_l2 != 0)) && ((_x_pc4_l1 != 0) && ( !(_x_pc4_l0 != 0)))))) || ( !(((pc4_l2 != 0) && (( !(pc4_l0 != 0)) && ( !(pc4_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc4_evt0 != 0)) && ( !(pc4_evt1 != 0))))))))) && (((_x_pc4_x == 0.0) && (25.0 <= pc4_x)) || ( !((( !(_x_pc4_l2 != 0)) && (( !(_x_pc4_l0 != 0)) && ( !(_x_pc4_l1 != 0)))) && ((pc4_l2 != 0) && (( !(pc4_l0 != 0)) && ( !(pc4_l1 != 0)))))))) && (((pc4_x <= 24.0) && (pc4_x == _x_pc4_x)) || ( !(((pc4_l2 != 0) && (( !(pc4_l0 != 0)) && ( !(pc4_l1 != 0)))) && (( !(_x_pc4_l2 != 0)) && ((_x_pc4_l1 != 0) && ( !(_x_pc4_l0 != 0)))))))) && (((_x_pc4_x == 0.0) && (((pc4_evt1 != 0) && ( !(pc4_evt0 != 0))) && ((_x_pc4_l2 != 0) && ((_x_pc4_l1 != 0) && ( !(_x_pc4_l0 != 0)))))) || ( !((( !(pc4_l2 != 0)) && ((pc4_l1 != 0) && ( !(pc4_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc4_evt0 != 0)) && ( !(pc4_evt1 != 0))))))))) && (((( !(_x_pc4_l2 != 0)) && ((_x_pc4_l0 != 0) && ( !(_x_pc4_l1 != 0)))) || (( !(_x_pc4_l2 != 0)) && ((_x_pc4_l0 != 0) && (_x_pc4_l1 != 0)))) || ( !(((pc4_l2 != 0) && ((pc4_l1 != 0) && ( !(pc4_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc4_evt0 != 0)) && ( !(pc4_evt1 != 0))))))))) && (((pc4_x == _x_pc4_x) && (((pc4_evt0 != 0) && (pc4_evt1 != 0)) && (50.0 <= pc4_x))) || ( !(((pc4_l2 != 0) && ((pc4_l1 != 0) && ( !(pc4_l0 != 0)))) && (( !(_x_pc4_l2 != 0)) && ((_x_pc4_l0 != 0) && (_x_pc4_l1 != 0))))))) && (((_x_pc4_x == 0.0) && (((pc4_evt0 != 0) && ( !(pc4_evt1 != 0))) && (pc4_x <= 25.0))) || ( !(((pc4_l2 != 0) && ((pc4_l1 != 0) && ( !(pc4_l0 != 0)))) && (( !(_x_pc4_l2 != 0)) && ((_x_pc4_l0 != 0) && ( !(_x_pc4_l1 != 0)))))))) && (((((pc4_evt0 != 0) && (pc4_evt1 != 0)) && (pc4_x == _x_pc4_x)) && (((_x_pc4_l2 != 0) && ((_x_pc4_l0 != 0) && ( !(_x_pc4_l1 != 0)))) || (( !(_x_pc4_l2 != 0)) && ((_x_pc4_l0 != 0) && (_x_pc4_l1 != 0))))) || ( !((( !(pc4_l2 != 0)) && ((pc4_l0 != 0) && ( !(pc4_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc4_evt0 != 0)) && ( !(pc4_evt1 != 0))))))))) && ((25.0 <= pc4_x) || ( !((( !(pc4_l2 != 0)) && ((pc4_l0 != 0) && ( !(pc4_l1 != 0)))) && (( !(_x_pc4_l2 != 0)) && ((_x_pc4_l0 != 0) && (_x_pc4_l1 != 0))))))) && ((pc4_x <= 24.0) || ( !((( !(pc4_l2 != 0)) && ((pc4_l0 != 0) && ( !(pc4_l1 != 0)))) && ((_x_pc4_l2 != 0) && ((_x_pc4_l0 != 0) && ( !(_x_pc4_l1 != 0)))))))) && ((( !(_x_pc4_l2 != 0)) && ((_x_pc4_l0 != 0) && (_x_pc4_l1 != 0))) || ( !((( !(pc4_l2 != 0)) && ((pc4_l0 != 0) && (pc4_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc4_evt0 != 0)) && ( !(pc4_evt1 != 0))))))))) && ((( !(_x_pc4_l2 != 0)) && (( !(_x_pc4_l0 != 0)) && ( !(_x_pc4_l1 != 0)))) || ( !(((pc4_l2 != 0) && ((pc4_l0 != 0) && ( !(pc4_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc4_evt0 != 0)) && ( !(pc4_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc3_evt0 != 0)) && ( !(_x_pc3_evt1 != 0))) || ((_x_pc3_evt1 != 0) && ( !(_x_pc3_evt0 != 0)))) || (((_x_pc3_evt0 != 0) && ( !(_x_pc3_evt1 != 0))) || ((_x_pc3_evt0 != 0) && (_x_pc3_evt1 != 0)))) && ((( !(_x_pc3_l2 != 0)) && ((_x_pc3_l0 != 0) && (_x_pc3_l1 != 0))) || ((((( !(_x_pc3_l2 != 0)) && (( !(_x_pc3_l0 != 0)) && ( !(_x_pc3_l1 != 0)))) || ((_x_pc3_l2 != 0) && (( !(_x_pc3_l0 != 0)) && ( !(_x_pc3_l1 != 0))))) || ((( !(_x_pc3_l2 != 0)) && ((_x_pc3_l1 != 0) && ( !(_x_pc3_l0 != 0)))) || ((_x_pc3_l2 != 0) && ((_x_pc3_l1 != 0) && ( !(_x_pc3_l0 != 0)))))) || ((( !(_x_pc3_l2 != 0)) && ((_x_pc3_l0 != 0) && ( !(_x_pc3_l1 != 0)))) || ((_x_pc3_l2 != 0) && ((_x_pc3_l0 != 0) && ( !(_x_pc3_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc3_l0 != 0) == (_x_pc3_l0 != 0)) && ((pc3_l1 != 0) == (_x_pc3_l1 != 0))) && ((pc3_l2 != 0) == (_x_pc3_l2 != 0))) && ((delta + (pc3_x + (-1.0 * _x_pc3_x))) == 0.0)))) && ((((((pc3_l0 != 0) == (_x_pc3_l0 != 0)) && ((pc3_l1 != 0) == (_x_pc3_l1 != 0))) && ((pc3_l2 != 0) == (_x_pc3_l2 != 0))) && ((delta + (pc3_x + (-1.0 * _x_pc3_x))) == 0.0)) || ( !(( !(pc3_evt0 != 0)) && ( !(pc3_evt1 != 0)))))) && (((((pc3_evt0 != 0) && (pc3_evt1 != 0)) && (pc3_x <= 50.0)) && (((_x_pc3_l2 != 0) && (( !(_x_pc3_l0 != 0)) && ( !(_x_pc3_l1 != 0)))) && (_x_pc3_x == 0.0))) || ( !((( !(pc3_l2 != 0)) && (( !(pc3_l0 != 0)) && ( !(pc3_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc3_evt0 != 0)) && ( !(pc3_evt1 != 0))))))))) && ((((pc3_evt0 != 0) && (pc3_evt1 != 0)) && ((( !(_x_pc3_l2 != 0)) && (( !(_x_pc3_l0 != 0)) && ( !(_x_pc3_l1 != 0)))) || (( !(_x_pc3_l2 != 0)) && ((_x_pc3_l1 != 0) && ( !(_x_pc3_l0 != 0)))))) || ( !(((pc3_l2 != 0) && (( !(pc3_l0 != 0)) && ( !(pc3_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc3_evt0 != 0)) && ( !(pc3_evt1 != 0))))))))) && (((_x_pc3_x == 0.0) && (25.0 <= pc3_x)) || ( !((( !(_x_pc3_l2 != 0)) && (( !(_x_pc3_l0 != 0)) && ( !(_x_pc3_l1 != 0)))) && ((pc3_l2 != 0) && (( !(pc3_l0 != 0)) && ( !(pc3_l1 != 0)))))))) && (((pc3_x <= 24.0) && (pc3_x == _x_pc3_x)) || ( !(((pc3_l2 != 0) && (( !(pc3_l0 != 0)) && ( !(pc3_l1 != 0)))) && (( !(_x_pc3_l2 != 0)) && ((_x_pc3_l1 != 0) && ( !(_x_pc3_l0 != 0)))))))) && (((_x_pc3_x == 0.0) && (((pc3_evt1 != 0) && ( !(pc3_evt0 != 0))) && ((_x_pc3_l2 != 0) && ((_x_pc3_l1 != 0) && ( !(_x_pc3_l0 != 0)))))) || ( !((( !(pc3_l2 != 0)) && ((pc3_l1 != 0) && ( !(pc3_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc3_evt0 != 0)) && ( !(pc3_evt1 != 0))))))))) && (((( !(_x_pc3_l2 != 0)) && ((_x_pc3_l0 != 0) && ( !(_x_pc3_l1 != 0)))) || (( !(_x_pc3_l2 != 0)) && ((_x_pc3_l0 != 0) && (_x_pc3_l1 != 0)))) || ( !(((pc3_l2 != 0) && ((pc3_l1 != 0) && ( !(pc3_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc3_evt0 != 0)) && ( !(pc3_evt1 != 0))))))))) && (((pc3_x == _x_pc3_x) && (((pc3_evt0 != 0) && (pc3_evt1 != 0)) && (50.0 <= pc3_x))) || ( !(((pc3_l2 != 0) && ((pc3_l1 != 0) && ( !(pc3_l0 != 0)))) && (( !(_x_pc3_l2 != 0)) && ((_x_pc3_l0 != 0) && (_x_pc3_l1 != 0))))))) && (((_x_pc3_x == 0.0) && (((pc3_evt0 != 0) && ( !(pc3_evt1 != 0))) && (pc3_x <= 25.0))) || ( !(((pc3_l2 != 0) && ((pc3_l1 != 0) && ( !(pc3_l0 != 0)))) && (( !(_x_pc3_l2 != 0)) && ((_x_pc3_l0 != 0) && ( !(_x_pc3_l1 != 0)))))))) && (((((pc3_evt0 != 0) && (pc3_evt1 != 0)) && (pc3_x == _x_pc3_x)) && (((_x_pc3_l2 != 0) && ((_x_pc3_l0 != 0) && ( !(_x_pc3_l1 != 0)))) || (( !(_x_pc3_l2 != 0)) && ((_x_pc3_l0 != 0) && (_x_pc3_l1 != 0))))) || ( !((( !(pc3_l2 != 0)) && ((pc3_l0 != 0) && ( !(pc3_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc3_evt0 != 0)) && ( !(pc3_evt1 != 0))))))))) && ((25.0 <= pc3_x) || ( !((( !(pc3_l2 != 0)) && ((pc3_l0 != 0) && ( !(pc3_l1 != 0)))) && (( !(_x_pc3_l2 != 0)) && ((_x_pc3_l0 != 0) && (_x_pc3_l1 != 0))))))) && ((pc3_x <= 24.0) || ( !((( !(pc3_l2 != 0)) && ((pc3_l0 != 0) && ( !(pc3_l1 != 0)))) && ((_x_pc3_l2 != 0) && ((_x_pc3_l0 != 0) && ( !(_x_pc3_l1 != 0)))))))) && ((( !(_x_pc3_l2 != 0)) && ((_x_pc3_l0 != 0) && (_x_pc3_l1 != 0))) || ( !((( !(pc3_l2 != 0)) && ((pc3_l0 != 0) && (pc3_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc3_evt0 != 0)) && ( !(pc3_evt1 != 0))))))))) && ((( !(_x_pc3_l2 != 0)) && (( !(_x_pc3_l0 != 0)) && ( !(_x_pc3_l1 != 0)))) || ( !(((pc3_l2 != 0) && ((pc3_l0 != 0) && ( !(pc3_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc3_evt0 != 0)) && ( !(pc3_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc2_evt0 != 0)) && ( !(_x_pc2_evt1 != 0))) || ((_x_pc2_evt1 != 0) && ( !(_x_pc2_evt0 != 0)))) || (((_x_pc2_evt0 != 0) && ( !(_x_pc2_evt1 != 0))) || ((_x_pc2_evt0 != 0) && (_x_pc2_evt1 != 0)))) && ((( !(_x_pc2_l2 != 0)) && ((_x_pc2_l0 != 0) && (_x_pc2_l1 != 0))) || ((((( !(_x_pc2_l2 != 0)) && (( !(_x_pc2_l0 != 0)) && ( !(_x_pc2_l1 != 0)))) || ((_x_pc2_l2 != 0) && (( !(_x_pc2_l0 != 0)) && ( !(_x_pc2_l1 != 0))))) || ((( !(_x_pc2_l2 != 0)) && ((_x_pc2_l1 != 0) && ( !(_x_pc2_l0 != 0)))) || ((_x_pc2_l2 != 0) && ((_x_pc2_l1 != 0) && ( !(_x_pc2_l0 != 0)))))) || ((( !(_x_pc2_l2 != 0)) && ((_x_pc2_l0 != 0) && ( !(_x_pc2_l1 != 0)))) || ((_x_pc2_l2 != 0) && ((_x_pc2_l0 != 0) && ( !(_x_pc2_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc2_l0 != 0) == (_x_pc2_l0 != 0)) && ((pc2_l1 != 0) == (_x_pc2_l1 != 0))) && ((pc2_l2 != 0) == (_x_pc2_l2 != 0))) && ((delta + (pc2_x + (-1.0 * _x_pc2_x))) == 0.0)))) && ((((((pc2_l0 != 0) == (_x_pc2_l0 != 0)) && ((pc2_l1 != 0) == (_x_pc2_l1 != 0))) && ((pc2_l2 != 0) == (_x_pc2_l2 != 0))) && ((delta + (pc2_x + (-1.0 * _x_pc2_x))) == 0.0)) || ( !(( !(pc2_evt0 != 0)) && ( !(pc2_evt1 != 0)))))) && (((((pc2_evt0 != 0) && (pc2_evt1 != 0)) && (pc2_x <= 50.0)) && (((_x_pc2_l2 != 0) && (( !(_x_pc2_l0 != 0)) && ( !(_x_pc2_l1 != 0)))) && (_x_pc2_x == 0.0))) || ( !((( !(pc2_l2 != 0)) && (( !(pc2_l0 != 0)) && ( !(pc2_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc2_evt0 != 0)) && ( !(pc2_evt1 != 0))))))))) && ((((pc2_evt0 != 0) && (pc2_evt1 != 0)) && ((( !(_x_pc2_l2 != 0)) && (( !(_x_pc2_l0 != 0)) && ( !(_x_pc2_l1 != 0)))) || (( !(_x_pc2_l2 != 0)) && ((_x_pc2_l1 != 0) && ( !(_x_pc2_l0 != 0)))))) || ( !(((pc2_l2 != 0) && (( !(pc2_l0 != 0)) && ( !(pc2_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc2_evt0 != 0)) && ( !(pc2_evt1 != 0))))))))) && (((_x_pc2_x == 0.0) && (25.0 <= pc2_x)) || ( !((( !(_x_pc2_l2 != 0)) && (( !(_x_pc2_l0 != 0)) && ( !(_x_pc2_l1 != 0)))) && ((pc2_l2 != 0) && (( !(pc2_l0 != 0)) && ( !(pc2_l1 != 0)))))))) && (((pc2_x <= 24.0) && (pc2_x == _x_pc2_x)) || ( !(((pc2_l2 != 0) && (( !(pc2_l0 != 0)) && ( !(pc2_l1 != 0)))) && (( !(_x_pc2_l2 != 0)) && ((_x_pc2_l1 != 0) && ( !(_x_pc2_l0 != 0)))))))) && (((_x_pc2_x == 0.0) && (((pc2_evt1 != 0) && ( !(pc2_evt0 != 0))) && ((_x_pc2_l2 != 0) && ((_x_pc2_l1 != 0) && ( !(_x_pc2_l0 != 0)))))) || ( !((( !(pc2_l2 != 0)) && ((pc2_l1 != 0) && ( !(pc2_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc2_evt0 != 0)) && ( !(pc2_evt1 != 0))))))))) && (((( !(_x_pc2_l2 != 0)) && ((_x_pc2_l0 != 0) && ( !(_x_pc2_l1 != 0)))) || (( !(_x_pc2_l2 != 0)) && ((_x_pc2_l0 != 0) && (_x_pc2_l1 != 0)))) || ( !(((pc2_l2 != 0) && ((pc2_l1 != 0) && ( !(pc2_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc2_evt0 != 0)) && ( !(pc2_evt1 != 0))))))))) && (((pc2_x == _x_pc2_x) && (((pc2_evt0 != 0) && (pc2_evt1 != 0)) && (50.0 <= pc2_x))) || ( !(((pc2_l2 != 0) && ((pc2_l1 != 0) && ( !(pc2_l0 != 0)))) && (( !(_x_pc2_l2 != 0)) && ((_x_pc2_l0 != 0) && (_x_pc2_l1 != 0))))))) && (((_x_pc2_x == 0.0) && (((pc2_evt0 != 0) && ( !(pc2_evt1 != 0))) && (pc2_x <= 25.0))) || ( !(((pc2_l2 != 0) && ((pc2_l1 != 0) && ( !(pc2_l0 != 0)))) && (( !(_x_pc2_l2 != 0)) && ((_x_pc2_l0 != 0) && ( !(_x_pc2_l1 != 0)))))))) && (((((pc2_evt0 != 0) && (pc2_evt1 != 0)) && (pc2_x == _x_pc2_x)) && (((_x_pc2_l2 != 0) && ((_x_pc2_l0 != 0) && ( !(_x_pc2_l1 != 0)))) || (( !(_x_pc2_l2 != 0)) && ((_x_pc2_l0 != 0) && (_x_pc2_l1 != 0))))) || ( !((( !(pc2_l2 != 0)) && ((pc2_l0 != 0) && ( !(pc2_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc2_evt0 != 0)) && ( !(pc2_evt1 != 0))))))))) && ((25.0 <= pc2_x) || ( !((( !(pc2_l2 != 0)) && ((pc2_l0 != 0) && ( !(pc2_l1 != 0)))) && (( !(_x_pc2_l2 != 0)) && ((_x_pc2_l0 != 0) && (_x_pc2_l1 != 0))))))) && ((pc2_x <= 24.0) || ( !((( !(pc2_l2 != 0)) && ((pc2_l0 != 0) && ( !(pc2_l1 != 0)))) && ((_x_pc2_l2 != 0) && ((_x_pc2_l0 != 0) && ( !(_x_pc2_l1 != 0)))))))) && ((( !(_x_pc2_l2 != 0)) && ((_x_pc2_l0 != 0) && (_x_pc2_l1 != 0))) || ( !((( !(pc2_l2 != 0)) && ((pc2_l0 != 0) && (pc2_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc2_evt0 != 0)) && ( !(pc2_evt1 != 0))))))))) && ((( !(_x_pc2_l2 != 0)) && (( !(_x_pc2_l0 != 0)) && ( !(_x_pc2_l1 != 0)))) || ( !(((pc2_l2 != 0) && ((pc2_l0 != 0) && ( !(pc2_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc2_evt0 != 0)) && ( !(pc2_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc1_evt0 != 0)) && ( !(_x_pc1_evt1 != 0))) || ((_x_pc1_evt1 != 0) && ( !(_x_pc1_evt0 != 0)))) || (((_x_pc1_evt0 != 0) && ( !(_x_pc1_evt1 != 0))) || ((_x_pc1_evt0 != 0) && (_x_pc1_evt1 != 0)))) && ((( !(_x_pc1_l2 != 0)) && ((_x_pc1_l0 != 0) && (_x_pc1_l1 != 0))) || ((((( !(_x_pc1_l2 != 0)) && (( !(_x_pc1_l0 != 0)) && ( !(_x_pc1_l1 != 0)))) || ((_x_pc1_l2 != 0) && (( !(_x_pc1_l0 != 0)) && ( !(_x_pc1_l1 != 0))))) || ((( !(_x_pc1_l2 != 0)) && ((_x_pc1_l1 != 0) && ( !(_x_pc1_l0 != 0)))) || ((_x_pc1_l2 != 0) && ((_x_pc1_l1 != 0) && ( !(_x_pc1_l0 != 0)))))) || ((( !(_x_pc1_l2 != 0)) && ((_x_pc1_l0 != 0) && ( !(_x_pc1_l1 != 0)))) || ((_x_pc1_l2 != 0) && ((_x_pc1_l0 != 0) && ( !(_x_pc1_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc1_l0 != 0) == (_x_pc1_l0 != 0)) && ((pc1_l1 != 0) == (_x_pc1_l1 != 0))) && ((pc1_l2 != 0) == (_x_pc1_l2 != 0))) && ((delta + (pc1_x + (-1.0 * _x_pc1_x))) == 0.0)))) && ((((((pc1_l0 != 0) == (_x_pc1_l0 != 0)) && ((pc1_l1 != 0) == (_x_pc1_l1 != 0))) && ((pc1_l2 != 0) == (_x_pc1_l2 != 0))) && ((delta + (pc1_x + (-1.0 * _x_pc1_x))) == 0.0)) || ( !(( !(pc1_evt0 != 0)) && ( !(pc1_evt1 != 0)))))) && (((((pc1_evt0 != 0) && (pc1_evt1 != 0)) && (pc1_x <= 50.0)) && (((_x_pc1_l2 != 0) && (( !(_x_pc1_l0 != 0)) && ( !(_x_pc1_l1 != 0)))) && (_x_pc1_x == 0.0))) || ( !((( !(pc1_l2 != 0)) && (( !(pc1_l0 != 0)) && ( !(pc1_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc1_evt0 != 0)) && ( !(pc1_evt1 != 0))))))))) && ((((pc1_evt0 != 0) && (pc1_evt1 != 0)) && ((( !(_x_pc1_l2 != 0)) && (( !(_x_pc1_l0 != 0)) && ( !(_x_pc1_l1 != 0)))) || (( !(_x_pc1_l2 != 0)) && ((_x_pc1_l1 != 0) && ( !(_x_pc1_l0 != 0)))))) || ( !(((pc1_l2 != 0) && (( !(pc1_l0 != 0)) && ( !(pc1_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc1_evt0 != 0)) && ( !(pc1_evt1 != 0))))))))) && (((_x_pc1_x == 0.0) && (25.0 <= pc1_x)) || ( !((( !(_x_pc1_l2 != 0)) && (( !(_x_pc1_l0 != 0)) && ( !(_x_pc1_l1 != 0)))) && ((pc1_l2 != 0) && (( !(pc1_l0 != 0)) && ( !(pc1_l1 != 0)))))))) && (((pc1_x <= 24.0) && (pc1_x == _x_pc1_x)) || ( !(((pc1_l2 != 0) && (( !(pc1_l0 != 0)) && ( !(pc1_l1 != 0)))) && (( !(_x_pc1_l2 != 0)) && ((_x_pc1_l1 != 0) && ( !(_x_pc1_l0 != 0)))))))) && (((_x_pc1_x == 0.0) && (((pc1_evt1 != 0) && ( !(pc1_evt0 != 0))) && ((_x_pc1_l2 != 0) && ((_x_pc1_l1 != 0) && ( !(_x_pc1_l0 != 0)))))) || ( !((( !(pc1_l2 != 0)) && ((pc1_l1 != 0) && ( !(pc1_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc1_evt0 != 0)) && ( !(pc1_evt1 != 0))))))))) && (((( !(_x_pc1_l2 != 0)) && ((_x_pc1_l0 != 0) && ( !(_x_pc1_l1 != 0)))) || (( !(_x_pc1_l2 != 0)) && ((_x_pc1_l0 != 0) && (_x_pc1_l1 != 0)))) || ( !(((pc1_l2 != 0) && ((pc1_l1 != 0) && ( !(pc1_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc1_evt0 != 0)) && ( !(pc1_evt1 != 0))))))))) && (((pc1_x == _x_pc1_x) && (((pc1_evt0 != 0) && (pc1_evt1 != 0)) && (50.0 <= pc1_x))) || ( !(((pc1_l2 != 0) && ((pc1_l1 != 0) && ( !(pc1_l0 != 0)))) && (( !(_x_pc1_l2 != 0)) && ((_x_pc1_l0 != 0) && (_x_pc1_l1 != 0))))))) && (((_x_pc1_x == 0.0) && (((pc1_evt0 != 0) && ( !(pc1_evt1 != 0))) && (pc1_x <= 25.0))) || ( !(((pc1_l2 != 0) && ((pc1_l1 != 0) && ( !(pc1_l0 != 0)))) && (( !(_x_pc1_l2 != 0)) && ((_x_pc1_l0 != 0) && ( !(_x_pc1_l1 != 0)))))))) && (((((pc1_evt0 != 0) && (pc1_evt1 != 0)) && (pc1_x == _x_pc1_x)) && (((_x_pc1_l2 != 0) && ((_x_pc1_l0 != 0) && ( !(_x_pc1_l1 != 0)))) || (( !(_x_pc1_l2 != 0)) && ((_x_pc1_l0 != 0) && (_x_pc1_l1 != 0))))) || ( !((( !(pc1_l2 != 0)) && ((pc1_l0 != 0) && ( !(pc1_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc1_evt0 != 0)) && ( !(pc1_evt1 != 0))))))))) && ((25.0 <= pc1_x) || ( !((( !(pc1_l2 != 0)) && ((pc1_l0 != 0) && ( !(pc1_l1 != 0)))) && (( !(_x_pc1_l2 != 0)) && ((_x_pc1_l0 != 0) && (_x_pc1_l1 != 0))))))) && ((pc1_x <= 24.0) || ( !((( !(pc1_l2 != 0)) && ((pc1_l0 != 0) && ( !(pc1_l1 != 0)))) && ((_x_pc1_l2 != 0) && ((_x_pc1_l0 != 0) && ( !(_x_pc1_l1 != 0)))))))) && ((( !(_x_pc1_l2 != 0)) && ((_x_pc1_l0 != 0) && (_x_pc1_l1 != 0))) || ( !((( !(pc1_l2 != 0)) && ((pc1_l0 != 0) && (pc1_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc1_evt0 != 0)) && ( !(pc1_evt1 != 0))))))))) && ((( !(_x_pc1_l2 != 0)) && (( !(_x_pc1_l0 != 0)) && ( !(_x_pc1_l1 != 0)))) || ( !(((pc1_l2 != 0) && ((pc1_l0 != 0) && ( !(pc1_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc1_evt0 != 0)) && ( !(pc1_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc0_evt0 != 0)) && ( !(_x_pc0_evt1 != 0))) || ((_x_pc0_evt1 != 0) && ( !(_x_pc0_evt0 != 0)))) || (((_x_pc0_evt0 != 0) && ( !(_x_pc0_evt1 != 0))) || ((_x_pc0_evt0 != 0) && (_x_pc0_evt1 != 0)))) && ((( !(_x_pc0_l2 != 0)) && ((_x_pc0_l0 != 0) && (_x_pc0_l1 != 0))) || ((((( !(_x_pc0_l2 != 0)) && (( !(_x_pc0_l0 != 0)) && ( !(_x_pc0_l1 != 0)))) || ((_x_pc0_l2 != 0) && (( !(_x_pc0_l0 != 0)) && ( !(_x_pc0_l1 != 0))))) || ((( !(_x_pc0_l2 != 0)) && ((_x_pc0_l1 != 0) && ( !(_x_pc0_l0 != 0)))) || ((_x_pc0_l2 != 0) && ((_x_pc0_l1 != 0) && ( !(_x_pc0_l0 != 0)))))) || ((( !(_x_pc0_l2 != 0)) && ((_x_pc0_l0 != 0) && ( !(_x_pc0_l1 != 0)))) || ((_x_pc0_l2 != 0) && ((_x_pc0_l0 != 0) && ( !(_x_pc0_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc0_l0 != 0) == (_x_pc0_l0 != 0)) && ((pc0_l1 != 0) == (_x_pc0_l1 != 0))) && ((pc0_l2 != 0) == (_x_pc0_l2 != 0))) && ((delta + (pc0_x + (-1.0 * _x_pc0_x))) == 0.0)))) && ((((((pc0_l0 != 0) == (_x_pc0_l0 != 0)) && ((pc0_l1 != 0) == (_x_pc0_l1 != 0))) && ((pc0_l2 != 0) == (_x_pc0_l2 != 0))) && ((delta + (pc0_x + (-1.0 * _x_pc0_x))) == 0.0)) || ( !(( !(pc0_evt0 != 0)) && ( !(pc0_evt1 != 0)))))) && (((((pc0_evt0 != 0) && (pc0_evt1 != 0)) && (pc0_x <= 50.0)) && (((_x_pc0_l2 != 0) && (( !(_x_pc0_l0 != 0)) && ( !(_x_pc0_l1 != 0)))) && (_x_pc0_x == 0.0))) || ( !((( !(pc0_l2 != 0)) && (( !(pc0_l0 != 0)) && ( !(pc0_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc0_evt0 != 0)) && ( !(pc0_evt1 != 0))))))))) && ((((pc0_evt0 != 0) && (pc0_evt1 != 0)) && ((( !(_x_pc0_l2 != 0)) && (( !(_x_pc0_l0 != 0)) && ( !(_x_pc0_l1 != 0)))) || (( !(_x_pc0_l2 != 0)) && ((_x_pc0_l1 != 0) && ( !(_x_pc0_l0 != 0)))))) || ( !(((pc0_l2 != 0) && (( !(pc0_l0 != 0)) && ( !(pc0_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc0_evt0 != 0)) && ( !(pc0_evt1 != 0))))))))) && (((_x_pc0_x == 0.0) && (25.0 <= pc0_x)) || ( !((( !(_x_pc0_l2 != 0)) && (( !(_x_pc0_l0 != 0)) && ( !(_x_pc0_l1 != 0)))) && ((pc0_l2 != 0) && (( !(pc0_l0 != 0)) && ( !(pc0_l1 != 0)))))))) && (((pc0_x <= 24.0) && (pc0_x == _x_pc0_x)) || ( !(((pc0_l2 != 0) && (( !(pc0_l0 != 0)) && ( !(pc0_l1 != 0)))) && (( !(_x_pc0_l2 != 0)) && ((_x_pc0_l1 != 0) && ( !(_x_pc0_l0 != 0)))))))) && (((_x_pc0_x == 0.0) && (((pc0_evt1 != 0) && ( !(pc0_evt0 != 0))) && ((_x_pc0_l2 != 0) && ((_x_pc0_l1 != 0) && ( !(_x_pc0_l0 != 0)))))) || ( !((( !(pc0_l2 != 0)) && ((pc0_l1 != 0) && ( !(pc0_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc0_evt0 != 0)) && ( !(pc0_evt1 != 0))))))))) && (((( !(_x_pc0_l2 != 0)) && ((_x_pc0_l0 != 0) && ( !(_x_pc0_l1 != 0)))) || (( !(_x_pc0_l2 != 0)) && ((_x_pc0_l0 != 0) && (_x_pc0_l1 != 0)))) || ( !(((pc0_l2 != 0) && ((pc0_l1 != 0) && ( !(pc0_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc0_evt0 != 0)) && ( !(pc0_evt1 != 0))))))))) && (((pc0_x == _x_pc0_x) && (((pc0_evt0 != 0) && (pc0_evt1 != 0)) && (50.0 <= pc0_x))) || ( !(((pc0_l2 != 0) && ((pc0_l1 != 0) && ( !(pc0_l0 != 0)))) && (( !(_x_pc0_l2 != 0)) && ((_x_pc0_l0 != 0) && (_x_pc0_l1 != 0))))))) && (((_x_pc0_x == 0.0) && (((pc0_evt0 != 0) && ( !(pc0_evt1 != 0))) && (pc0_x <= 25.0))) || ( !(((pc0_l2 != 0) && ((pc0_l1 != 0) && ( !(pc0_l0 != 0)))) && (( !(_x_pc0_l2 != 0)) && ((_x_pc0_l0 != 0) && ( !(_x_pc0_l1 != 0)))))))) && (((((pc0_evt0 != 0) && (pc0_evt1 != 0)) && (pc0_x == _x_pc0_x)) && (((_x_pc0_l2 != 0) && ((_x_pc0_l0 != 0) && ( !(_x_pc0_l1 != 0)))) || (( !(_x_pc0_l2 != 0)) && ((_x_pc0_l0 != 0) && (_x_pc0_l1 != 0))))) || ( !((( !(pc0_l2 != 0)) && ((pc0_l0 != 0) && ( !(pc0_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc0_evt0 != 0)) && ( !(pc0_evt1 != 0))))))))) && ((25.0 <= pc0_x) || ( !((( !(pc0_l2 != 0)) && ((pc0_l0 != 0) && ( !(pc0_l1 != 0)))) && (( !(_x_pc0_l2 != 0)) && ((_x_pc0_l0 != 0) && (_x_pc0_l1 != 0))))))) && ((pc0_x <= 24.0) || ( !((( !(pc0_l2 != 0)) && ((pc0_l0 != 0) && ( !(pc0_l1 != 0)))) && ((_x_pc0_l2 != 0) && ((_x_pc0_l0 != 0) && ( !(_x_pc0_l1 != 0)))))))) && ((( !(_x_pc0_l2 != 0)) && ((_x_pc0_l0 != 0) && (_x_pc0_l1 != 0))) || ( !((( !(pc0_l2 != 0)) && ((pc0_l0 != 0) && (pc0_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc0_evt0 != 0)) && ( !(pc0_evt1 != 0))))))))) && ((( !(_x_pc0_l2 != 0)) && (( !(_x_pc0_l0 != 0)) && ( !(_x_pc0_l1 != 0)))) || ( !(((pc0_l2 != 0) && ((pc0_l0 != 0) && ( !(pc0_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc0_evt0 != 0)) && ( !(pc0_evt1 != 0))))))))) && ((((((( !(_x_a29_evt0 != 0)) && ( !(_x_a29_evt1 != 0))) || (((_x_a29_evt1 != 0) && ( !(_x_a29_evt0 != 0))) || ((_x_a29_evt0 != 0) && ( !(_x_a29_evt1 != 0))))) && (((a29_l != 0) == (_x_a29_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a29_evt0 != 0)) && ( !(a29_evt1 != 0))))))) && (((_x_id == 0) && ((((a29_evt1 != 0) && ( !(a29_evt0 != 0))) && (_x_a29_l != 0)) && (id == 30))) || ( !(( !(a29_l != 0)) && ((delta == 0.0) && ( !(( !(a29_evt0 != 0)) && ( !(a29_evt1 != 0))))))))) && (((((a29_evt0 != 0) && ( !(a29_evt1 != 0))) && ( !(_x_a29_l != 0))) && (_x_id == 30)) || ( !((a29_l != 0) && ((delta == 0.0) && ( !(( !(a29_evt0 != 0)) && ( !(a29_evt1 != 0))))))))) && ((((((( !(_x_a28_evt0 != 0)) && ( !(_x_a28_evt1 != 0))) || (((_x_a28_evt1 != 0) && ( !(_x_a28_evt0 != 0))) || ((_x_a28_evt0 != 0) && ( !(_x_a28_evt1 != 0))))) && (((a28_l != 0) == (_x_a28_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a28_evt0 != 0)) && ( !(a28_evt1 != 0))))))) && (((_x_id == 0) && ((((a28_evt1 != 0) && ( !(a28_evt0 != 0))) && (_x_a28_l != 0)) && (id == 29))) || ( !(( !(a28_l != 0)) && ((delta == 0.0) && ( !(( !(a28_evt0 != 0)) && ( !(a28_evt1 != 0))))))))) && (((((a28_evt0 != 0) && ( !(a28_evt1 != 0))) && ( !(_x_a28_l != 0))) && (_x_id == 29)) || ( !((a28_l != 0) && ((delta == 0.0) && ( !(( !(a28_evt0 != 0)) && ( !(a28_evt1 != 0))))))))) && ((((((( !(_x_a27_evt0 != 0)) && ( !(_x_a27_evt1 != 0))) || (((_x_a27_evt1 != 0) && ( !(_x_a27_evt0 != 0))) || ((_x_a27_evt0 != 0) && ( !(_x_a27_evt1 != 0))))) && (((a27_l != 0) == (_x_a27_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a27_evt0 != 0)) && ( !(a27_evt1 != 0))))))) && (((_x_id == 0) && ((((a27_evt1 != 0) && ( !(a27_evt0 != 0))) && (_x_a27_l != 0)) && (id == 28))) || ( !(( !(a27_l != 0)) && ((delta == 0.0) && ( !(( !(a27_evt0 != 0)) && ( !(a27_evt1 != 0))))))))) && (((((a27_evt0 != 0) && ( !(a27_evt1 != 0))) && ( !(_x_a27_l != 0))) && (_x_id == 28)) || ( !((a27_l != 0) && ((delta == 0.0) && ( !(( !(a27_evt0 != 0)) && ( !(a27_evt1 != 0))))))))) && ((((((( !(_x_a26_evt0 != 0)) && ( !(_x_a26_evt1 != 0))) || (((_x_a26_evt1 != 0) && ( !(_x_a26_evt0 != 0))) || ((_x_a26_evt0 != 0) && ( !(_x_a26_evt1 != 0))))) && (((a26_l != 0) == (_x_a26_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a26_evt0 != 0)) && ( !(a26_evt1 != 0))))))) && (((_x_id == 0) && ((((a26_evt1 != 0) && ( !(a26_evt0 != 0))) && (_x_a26_l != 0)) && (id == 27))) || ( !(( !(a26_l != 0)) && ((delta == 0.0) && ( !(( !(a26_evt0 != 0)) && ( !(a26_evt1 != 0))))))))) && (((((a26_evt0 != 0) && ( !(a26_evt1 != 0))) && ( !(_x_a26_l != 0))) && (_x_id == 27)) || ( !((a26_l != 0) && ((delta == 0.0) && ( !(( !(a26_evt0 != 0)) && ( !(a26_evt1 != 0))))))))) && ((((((( !(_x_a25_evt0 != 0)) && ( !(_x_a25_evt1 != 0))) || (((_x_a25_evt1 != 0) && ( !(_x_a25_evt0 != 0))) || ((_x_a25_evt0 != 0) && ( !(_x_a25_evt1 != 0))))) && (((a25_l != 0) == (_x_a25_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a25_evt0 != 0)) && ( !(a25_evt1 != 0))))))) && (((_x_id == 0) && ((((a25_evt1 != 0) && ( !(a25_evt0 != 0))) && (_x_a25_l != 0)) && (id == 26))) || ( !(( !(a25_l != 0)) && ((delta == 0.0) && ( !(( !(a25_evt0 != 0)) && ( !(a25_evt1 != 0))))))))) && (((((a25_evt0 != 0) && ( !(a25_evt1 != 0))) && ( !(_x_a25_l != 0))) && (_x_id == 26)) || ( !((a25_l != 0) && ((delta == 0.0) && ( !(( !(a25_evt0 != 0)) && ( !(a25_evt1 != 0))))))))) && ((((((( !(_x_a24_evt0 != 0)) && ( !(_x_a24_evt1 != 0))) || (((_x_a24_evt1 != 0) && ( !(_x_a24_evt0 != 0))) || ((_x_a24_evt0 != 0) && ( !(_x_a24_evt1 != 0))))) && (((a24_l != 0) == (_x_a24_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a24_evt0 != 0)) && ( !(a24_evt1 != 0))))))) && (((_x_id == 0) && ((((a24_evt1 != 0) && ( !(a24_evt0 != 0))) && (_x_a24_l != 0)) && (id == 25))) || ( !(( !(a24_l != 0)) && ((delta == 0.0) && ( !(( !(a24_evt0 != 0)) && ( !(a24_evt1 != 0))))))))) && (((((a24_evt0 != 0) && ( !(a24_evt1 != 0))) && ( !(_x_a24_l != 0))) && (_x_id == 25)) || ( !((a24_l != 0) && ((delta == 0.0) && ( !(( !(a24_evt0 != 0)) && ( !(a24_evt1 != 0))))))))) && ((((((( !(_x_a23_evt0 != 0)) && ( !(_x_a23_evt1 != 0))) || (((_x_a23_evt1 != 0) && ( !(_x_a23_evt0 != 0))) || ((_x_a23_evt0 != 0) && ( !(_x_a23_evt1 != 0))))) && (((a23_l != 0) == (_x_a23_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a23_evt0 != 0)) && ( !(a23_evt1 != 0))))))) && (((_x_id == 0) && ((((a23_evt1 != 0) && ( !(a23_evt0 != 0))) && (_x_a23_l != 0)) && (id == 24))) || ( !(( !(a23_l != 0)) && ((delta == 0.0) && ( !(( !(a23_evt0 != 0)) && ( !(a23_evt1 != 0))))))))) && (((((a23_evt0 != 0) && ( !(a23_evt1 != 0))) && ( !(_x_a23_l != 0))) && (_x_id == 24)) || ( !((a23_l != 0) && ((delta == 0.0) && ( !(( !(a23_evt0 != 0)) && ( !(a23_evt1 != 0))))))))) && ((((((( !(_x_a22_evt0 != 0)) && ( !(_x_a22_evt1 != 0))) || (((_x_a22_evt1 != 0) && ( !(_x_a22_evt0 != 0))) || ((_x_a22_evt0 != 0) && ( !(_x_a22_evt1 != 0))))) && (((a22_l != 0) == (_x_a22_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a22_evt0 != 0)) && ( !(a22_evt1 != 0))))))) && (((_x_id == 0) && ((((a22_evt1 != 0) && ( !(a22_evt0 != 0))) && (_x_a22_l != 0)) && (id == 23))) || ( !(( !(a22_l != 0)) && ((delta == 0.0) && ( !(( !(a22_evt0 != 0)) && ( !(a22_evt1 != 0))))))))) && (((((a22_evt0 != 0) && ( !(a22_evt1 != 0))) && ( !(_x_a22_l != 0))) && (_x_id == 23)) || ( !((a22_l != 0) && ((delta == 0.0) && ( !(( !(a22_evt0 != 0)) && ( !(a22_evt1 != 0))))))))) && ((((((( !(_x_a21_evt0 != 0)) && ( !(_x_a21_evt1 != 0))) || (((_x_a21_evt1 != 0) && ( !(_x_a21_evt0 != 0))) || ((_x_a21_evt0 != 0) && ( !(_x_a21_evt1 != 0))))) && (((a21_l != 0) == (_x_a21_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a21_evt0 != 0)) && ( !(a21_evt1 != 0))))))) && (((_x_id == 0) && ((((a21_evt1 != 0) && ( !(a21_evt0 != 0))) && (_x_a21_l != 0)) && (id == 22))) || ( !(( !(a21_l != 0)) && ((delta == 0.0) && ( !(( !(a21_evt0 != 0)) && ( !(a21_evt1 != 0))))))))) && (((((a21_evt0 != 0) && ( !(a21_evt1 != 0))) && ( !(_x_a21_l != 0))) && (_x_id == 22)) || ( !((a21_l != 0) && ((delta == 0.0) && ( !(( !(a21_evt0 != 0)) && ( !(a21_evt1 != 0))))))))) && ((((((( !(_x_a20_evt0 != 0)) && ( !(_x_a20_evt1 != 0))) || (((_x_a20_evt1 != 0) && ( !(_x_a20_evt0 != 0))) || ((_x_a20_evt0 != 0) && ( !(_x_a20_evt1 != 0))))) && (((a20_l != 0) == (_x_a20_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a20_evt0 != 0)) && ( !(a20_evt1 != 0))))))) && (((_x_id == 0) && ((((a20_evt1 != 0) && ( !(a20_evt0 != 0))) && (_x_a20_l != 0)) && (id == 21))) || ( !(( !(a20_l != 0)) && ((delta == 0.0) && ( !(( !(a20_evt0 != 0)) && ( !(a20_evt1 != 0))))))))) && (((((a20_evt0 != 0) && ( !(a20_evt1 != 0))) && ( !(_x_a20_l != 0))) && (_x_id == 21)) || ( !((a20_l != 0) && ((delta == 0.0) && ( !(( !(a20_evt0 != 0)) && ( !(a20_evt1 != 0))))))))) && ((((((( !(_x_a19_evt0 != 0)) && ( !(_x_a19_evt1 != 0))) || (((_x_a19_evt1 != 0) && ( !(_x_a19_evt0 != 0))) || ((_x_a19_evt0 != 0) && ( !(_x_a19_evt1 != 0))))) && (((a19_l != 0) == (_x_a19_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a19_evt0 != 0)) && ( !(a19_evt1 != 0))))))) && (((_x_id == 0) && ((((a19_evt1 != 0) && ( !(a19_evt0 != 0))) && (_x_a19_l != 0)) && (id == 20))) || ( !(( !(a19_l != 0)) && ((delta == 0.0) && ( !(( !(a19_evt0 != 0)) && ( !(a19_evt1 != 0))))))))) && (((((a19_evt0 != 0) && ( !(a19_evt1 != 0))) && ( !(_x_a19_l != 0))) && (_x_id == 20)) || ( !((a19_l != 0) && ((delta == 0.0) && ( !(( !(a19_evt0 != 0)) && ( !(a19_evt1 != 0))))))))) && ((((((( !(_x_a18_evt0 != 0)) && ( !(_x_a18_evt1 != 0))) || (((_x_a18_evt1 != 0) && ( !(_x_a18_evt0 != 0))) || ((_x_a18_evt0 != 0) && ( !(_x_a18_evt1 != 0))))) && (((a18_l != 0) == (_x_a18_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a18_evt0 != 0)) && ( !(a18_evt1 != 0))))))) && (((_x_id == 0) && ((((a18_evt1 != 0) && ( !(a18_evt0 != 0))) && (_x_a18_l != 0)) && (id == 19))) || ( !(( !(a18_l != 0)) && ((delta == 0.0) && ( !(( !(a18_evt0 != 0)) && ( !(a18_evt1 != 0))))))))) && (((((a18_evt0 != 0) && ( !(a18_evt1 != 0))) && ( !(_x_a18_l != 0))) && (_x_id == 19)) || ( !((a18_l != 0) && ((delta == 0.0) && ( !(( !(a18_evt0 != 0)) && ( !(a18_evt1 != 0))))))))) && ((((((( !(_x_a17_evt0 != 0)) && ( !(_x_a17_evt1 != 0))) || (((_x_a17_evt1 != 0) && ( !(_x_a17_evt0 != 0))) || ((_x_a17_evt0 != 0) && ( !(_x_a17_evt1 != 0))))) && (((a17_l != 0) == (_x_a17_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a17_evt0 != 0)) && ( !(a17_evt1 != 0))))))) && (((_x_id == 0) && ((((a17_evt1 != 0) && ( !(a17_evt0 != 0))) && (_x_a17_l != 0)) && (id == 18))) || ( !(( !(a17_l != 0)) && ((delta == 0.0) && ( !(( !(a17_evt0 != 0)) && ( !(a17_evt1 != 0))))))))) && (((((a17_evt0 != 0) && ( !(a17_evt1 != 0))) && ( !(_x_a17_l != 0))) && (_x_id == 18)) || ( !((a17_l != 0) && ((delta == 0.0) && ( !(( !(a17_evt0 != 0)) && ( !(a17_evt1 != 0))))))))) && ((((((( !(_x_a16_evt0 != 0)) && ( !(_x_a16_evt1 != 0))) || (((_x_a16_evt1 != 0) && ( !(_x_a16_evt0 != 0))) || ((_x_a16_evt0 != 0) && ( !(_x_a16_evt1 != 0))))) && (((a16_l != 0) == (_x_a16_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a16_evt0 != 0)) && ( !(a16_evt1 != 0))))))) && (((_x_id == 0) && ((((a16_evt1 != 0) && ( !(a16_evt0 != 0))) && (_x_a16_l != 0)) && (id == 17))) || ( !(( !(a16_l != 0)) && ((delta == 0.0) && ( !(( !(a16_evt0 != 0)) && ( !(a16_evt1 != 0))))))))) && (((((a16_evt0 != 0) && ( !(a16_evt1 != 0))) && ( !(_x_a16_l != 0))) && (_x_id == 17)) || ( !((a16_l != 0) && ((delta == 0.0) && ( !(( !(a16_evt0 != 0)) && ( !(a16_evt1 != 0))))))))) && ((((((( !(_x_a15_evt0 != 0)) && ( !(_x_a15_evt1 != 0))) || (((_x_a15_evt1 != 0) && ( !(_x_a15_evt0 != 0))) || ((_x_a15_evt0 != 0) && ( !(_x_a15_evt1 != 0))))) && (((a15_l != 0) == (_x_a15_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a15_evt0 != 0)) && ( !(a15_evt1 != 0))))))) && (((_x_id == 0) && ((((a15_evt1 != 0) && ( !(a15_evt0 != 0))) && (_x_a15_l != 0)) && (id == 16))) || ( !(( !(a15_l != 0)) && ((delta == 0.0) && ( !(( !(a15_evt0 != 0)) && ( !(a15_evt1 != 0))))))))) && (((((a15_evt0 != 0) && ( !(a15_evt1 != 0))) && ( !(_x_a15_l != 0))) && (_x_id == 16)) || ( !((a15_l != 0) && ((delta == 0.0) && ( !(( !(a15_evt0 != 0)) && ( !(a15_evt1 != 0))))))))) && ((((((( !(_x_a14_evt0 != 0)) && ( !(_x_a14_evt1 != 0))) || (((_x_a14_evt1 != 0) && ( !(_x_a14_evt0 != 0))) || ((_x_a14_evt0 != 0) && ( !(_x_a14_evt1 != 0))))) && (((a14_l != 0) == (_x_a14_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a14_evt0 != 0)) && ( !(a14_evt1 != 0))))))) && (((_x_id == 0) && ((((a14_evt1 != 0) && ( !(a14_evt0 != 0))) && (_x_a14_l != 0)) && (id == 15))) || ( !(( !(a14_l != 0)) && ((delta == 0.0) && ( !(( !(a14_evt0 != 0)) && ( !(a14_evt1 != 0))))))))) && (((((a14_evt0 != 0) && ( !(a14_evt1 != 0))) && ( !(_x_a14_l != 0))) && (_x_id == 15)) || ( !((a14_l != 0) && ((delta == 0.0) && ( !(( !(a14_evt0 != 0)) && ( !(a14_evt1 != 0))))))))) && ((((((( !(_x_a13_evt0 != 0)) && ( !(_x_a13_evt1 != 0))) || (((_x_a13_evt1 != 0) && ( !(_x_a13_evt0 != 0))) || ((_x_a13_evt0 != 0) && ( !(_x_a13_evt1 != 0))))) && (((a13_l != 0) == (_x_a13_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a13_evt0 != 0)) && ( !(a13_evt1 != 0))))))) && (((_x_id == 0) && ((((a13_evt1 != 0) && ( !(a13_evt0 != 0))) && (_x_a13_l != 0)) && (id == 14))) || ( !(( !(a13_l != 0)) && ((delta == 0.0) && ( !(( !(a13_evt0 != 0)) && ( !(a13_evt1 != 0))))))))) && (((((a13_evt0 != 0) && ( !(a13_evt1 != 0))) && ( !(_x_a13_l != 0))) && (_x_id == 14)) || ( !((a13_l != 0) && ((delta == 0.0) && ( !(( !(a13_evt0 != 0)) && ( !(a13_evt1 != 0))))))))) && ((((((( !(_x_a12_evt0 != 0)) && ( !(_x_a12_evt1 != 0))) || (((_x_a12_evt1 != 0) && ( !(_x_a12_evt0 != 0))) || ((_x_a12_evt0 != 0) && ( !(_x_a12_evt1 != 0))))) && (((a12_l != 0) == (_x_a12_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a12_evt0 != 0)) && ( !(a12_evt1 != 0))))))) && (((_x_id == 0) && ((((a12_evt1 != 0) && ( !(a12_evt0 != 0))) && (_x_a12_l != 0)) && (id == 13))) || ( !(( !(a12_l != 0)) && ((delta == 0.0) && ( !(( !(a12_evt0 != 0)) && ( !(a12_evt1 != 0))))))))) && (((((a12_evt0 != 0) && ( !(a12_evt1 != 0))) && ( !(_x_a12_l != 0))) && (_x_id == 13)) || ( !((a12_l != 0) && ((delta == 0.0) && ( !(( !(a12_evt0 != 0)) && ( !(a12_evt1 != 0))))))))) && ((((((( !(_x_a11_evt0 != 0)) && ( !(_x_a11_evt1 != 0))) || (((_x_a11_evt1 != 0) && ( !(_x_a11_evt0 != 0))) || ((_x_a11_evt0 != 0) && ( !(_x_a11_evt1 != 0))))) && (((a11_l != 0) == (_x_a11_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a11_evt0 != 0)) && ( !(a11_evt1 != 0))))))) && (((_x_id == 0) && ((((a11_evt1 != 0) && ( !(a11_evt0 != 0))) && (_x_a11_l != 0)) && (id == 12))) || ( !(( !(a11_l != 0)) && ((delta == 0.0) && ( !(( !(a11_evt0 != 0)) && ( !(a11_evt1 != 0))))))))) && (((((a11_evt0 != 0) && ( !(a11_evt1 != 0))) && ( !(_x_a11_l != 0))) && (_x_id == 12)) || ( !((a11_l != 0) && ((delta == 0.0) && ( !(( !(a11_evt0 != 0)) && ( !(a11_evt1 != 0))))))))) && ((((((( !(_x_a10_evt0 != 0)) && ( !(_x_a10_evt1 != 0))) || (((_x_a10_evt1 != 0) && ( !(_x_a10_evt0 != 0))) || ((_x_a10_evt0 != 0) && ( !(_x_a10_evt1 != 0))))) && (((a10_l != 0) == (_x_a10_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a10_evt0 != 0)) && ( !(a10_evt1 != 0))))))) && (((_x_id == 0) && ((((a10_evt1 != 0) && ( !(a10_evt0 != 0))) && (_x_a10_l != 0)) && (id == 11))) || ( !(( !(a10_l != 0)) && ((delta == 0.0) && ( !(( !(a10_evt0 != 0)) && ( !(a10_evt1 != 0))))))))) && (((((a10_evt0 != 0) && ( !(a10_evt1 != 0))) && ( !(_x_a10_l != 0))) && (_x_id == 11)) || ( !((a10_l != 0) && ((delta == 0.0) && ( !(( !(a10_evt0 != 0)) && ( !(a10_evt1 != 0))))))))) && ((((((( !(_x_a9_evt0 != 0)) && ( !(_x_a9_evt1 != 0))) || (((_x_a9_evt1 != 0) && ( !(_x_a9_evt0 != 0))) || ((_x_a9_evt0 != 0) && ( !(_x_a9_evt1 != 0))))) && (((a9_l != 0) == (_x_a9_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a9_evt0 != 0)) && ( !(a9_evt1 != 0))))))) && (((_x_id == 0) && ((((a9_evt1 != 0) && ( !(a9_evt0 != 0))) && (_x_a9_l != 0)) && (id == 10))) || ( !(( !(a9_l != 0)) && ((delta == 0.0) && ( !(( !(a9_evt0 != 0)) && ( !(a9_evt1 != 0))))))))) && (((((a9_evt0 != 0) && ( !(a9_evt1 != 0))) && ( !(_x_a9_l != 0))) && (_x_id == 10)) || ( !((a9_l != 0) && ((delta == 0.0) && ( !(( !(a9_evt0 != 0)) && ( !(a9_evt1 != 0))))))))) && ((((((( !(_x_a8_evt0 != 0)) && ( !(_x_a8_evt1 != 0))) || (((_x_a8_evt1 != 0) && ( !(_x_a8_evt0 != 0))) || ((_x_a8_evt0 != 0) && ( !(_x_a8_evt1 != 0))))) && (((a8_l != 0) == (_x_a8_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a8_evt0 != 0)) && ( !(a8_evt1 != 0))))))) && (((_x_id == 0) && ((((a8_evt1 != 0) && ( !(a8_evt0 != 0))) && (_x_a8_l != 0)) && (id == 9))) || ( !(( !(a8_l != 0)) && ((delta == 0.0) && ( !(( !(a8_evt0 != 0)) && ( !(a8_evt1 != 0))))))))) && (((((a8_evt0 != 0) && ( !(a8_evt1 != 0))) && ( !(_x_a8_l != 0))) && (_x_id == 9)) || ( !((a8_l != 0) && ((delta == 0.0) && ( !(( !(a8_evt0 != 0)) && ( !(a8_evt1 != 0))))))))) && ((((((( !(_x_a7_evt0 != 0)) && ( !(_x_a7_evt1 != 0))) || (((_x_a7_evt1 != 0) && ( !(_x_a7_evt0 != 0))) || ((_x_a7_evt0 != 0) && ( !(_x_a7_evt1 != 0))))) && (((a7_l != 0) == (_x_a7_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a7_evt0 != 0)) && ( !(a7_evt1 != 0))))))) && (((_x_id == 0) && ((((a7_evt1 != 0) && ( !(a7_evt0 != 0))) && (_x_a7_l != 0)) && (id == 8))) || ( !(( !(a7_l != 0)) && ((delta == 0.0) && ( !(( !(a7_evt0 != 0)) && ( !(a7_evt1 != 0))))))))) && (((((a7_evt0 != 0) && ( !(a7_evt1 != 0))) && ( !(_x_a7_l != 0))) && (_x_id == 8)) || ( !((a7_l != 0) && ((delta == 0.0) && ( !(( !(a7_evt0 != 0)) && ( !(a7_evt1 != 0))))))))) && ((((((( !(_x_a6_evt0 != 0)) && ( !(_x_a6_evt1 != 0))) || (((_x_a6_evt1 != 0) && ( !(_x_a6_evt0 != 0))) || ((_x_a6_evt0 != 0) && ( !(_x_a6_evt1 != 0))))) && (((a6_l != 0) == (_x_a6_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a6_evt0 != 0)) && ( !(a6_evt1 != 0))))))) && (((_x_id == 0) && ((((a6_evt1 != 0) && ( !(a6_evt0 != 0))) && (_x_a6_l != 0)) && (id == 7))) || ( !(( !(a6_l != 0)) && ((delta == 0.0) && ( !(( !(a6_evt0 != 0)) && ( !(a6_evt1 != 0))))))))) && (((((a6_evt0 != 0) && ( !(a6_evt1 != 0))) && ( !(_x_a6_l != 0))) && (_x_id == 7)) || ( !((a6_l != 0) && ((delta == 0.0) && ( !(( !(a6_evt0 != 0)) && ( !(a6_evt1 != 0))))))))) && ((((((( !(_x_a5_evt0 != 0)) && ( !(_x_a5_evt1 != 0))) || (((_x_a5_evt1 != 0) && ( !(_x_a5_evt0 != 0))) || ((_x_a5_evt0 != 0) && ( !(_x_a5_evt1 != 0))))) && (((a5_l != 0) == (_x_a5_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a5_evt0 != 0)) && ( !(a5_evt1 != 0))))))) && (((_x_id == 0) && ((((a5_evt1 != 0) && ( !(a5_evt0 != 0))) && (_x_a5_l != 0)) && (id == 6))) || ( !(( !(a5_l != 0)) && ((delta == 0.0) && ( !(( !(a5_evt0 != 0)) && ( !(a5_evt1 != 0))))))))) && (((((a5_evt0 != 0) && ( !(a5_evt1 != 0))) && ( !(_x_a5_l != 0))) && (_x_id == 6)) || ( !((a5_l != 0) && ((delta == 0.0) && ( !(( !(a5_evt0 != 0)) && ( !(a5_evt1 != 0))))))))) && ((((((( !(_x_a4_evt0 != 0)) && ( !(_x_a4_evt1 != 0))) || (((_x_a4_evt1 != 0) && ( !(_x_a4_evt0 != 0))) || ((_x_a4_evt0 != 0) && ( !(_x_a4_evt1 != 0))))) && (((a4_l != 0) == (_x_a4_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a4_evt0 != 0)) && ( !(a4_evt1 != 0))))))) && (((_x_id == 0) && ((((a4_evt1 != 0) && ( !(a4_evt0 != 0))) && (_x_a4_l != 0)) && (id == 5))) || ( !(( !(a4_l != 0)) && ((delta == 0.0) && ( !(( !(a4_evt0 != 0)) && ( !(a4_evt1 != 0))))))))) && (((((a4_evt0 != 0) && ( !(a4_evt1 != 0))) && ( !(_x_a4_l != 0))) && (_x_id == 5)) || ( !((a4_l != 0) && ((delta == 0.0) && ( !(( !(a4_evt0 != 0)) && ( !(a4_evt1 != 0))))))))) && ((((((( !(_x_a3_evt0 != 0)) && ( !(_x_a3_evt1 != 0))) || (((_x_a3_evt1 != 0) && ( !(_x_a3_evt0 != 0))) || ((_x_a3_evt0 != 0) && ( !(_x_a3_evt1 != 0))))) && (((a3_l != 0) == (_x_a3_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a3_evt0 != 0)) && ( !(a3_evt1 != 0))))))) && (((_x_id == 0) && ((((a3_evt1 != 0) && ( !(a3_evt0 != 0))) && (_x_a3_l != 0)) && (id == 4))) || ( !(( !(a3_l != 0)) && ((delta == 0.0) && ( !(( !(a3_evt0 != 0)) && ( !(a3_evt1 != 0))))))))) && (((((a3_evt0 != 0) && ( !(a3_evt1 != 0))) && ( !(_x_a3_l != 0))) && (_x_id == 4)) || ( !((a3_l != 0) && ((delta == 0.0) && ( !(( !(a3_evt0 != 0)) && ( !(a3_evt1 != 0))))))))) && ((((((( !(_x_a2_evt0 != 0)) && ( !(_x_a2_evt1 != 0))) || (((_x_a2_evt1 != 0) && ( !(_x_a2_evt0 != 0))) || ((_x_a2_evt0 != 0) && ( !(_x_a2_evt1 != 0))))) && (((a2_l != 0) == (_x_a2_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a2_evt0 != 0)) && ( !(a2_evt1 != 0))))))) && (((_x_id == 0) && ((((a2_evt1 != 0) && ( !(a2_evt0 != 0))) && (_x_a2_l != 0)) && (id == 3))) || ( !(( !(a2_l != 0)) && ((delta == 0.0) && ( !(( !(a2_evt0 != 0)) && ( !(a2_evt1 != 0))))))))) && (((((a2_evt0 != 0) && ( !(a2_evt1 != 0))) && ( !(_x_a2_l != 0))) && (_x_id == 3)) || ( !((a2_l != 0) && ((delta == 0.0) && ( !(( !(a2_evt0 != 0)) && ( !(a2_evt1 != 0))))))))) && ((((((( !(_x_a1_evt0 != 0)) && ( !(_x_a1_evt1 != 0))) || (((_x_a1_evt1 != 0) && ( !(_x_a1_evt0 != 0))) || ((_x_a1_evt0 != 0) && ( !(_x_a1_evt1 != 0))))) && (((a1_l != 0) == (_x_a1_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a1_evt0 != 0)) && ( !(a1_evt1 != 0))))))) && (((_x_id == 0) && ((((a1_evt1 != 0) && ( !(a1_evt0 != 0))) && (_x_a1_l != 0)) && (id == 2))) || ( !(( !(a1_l != 0)) && ((delta == 0.0) && ( !(( !(a1_evt0 != 0)) && ( !(a1_evt1 != 0))))))))) && (((((a1_evt0 != 0) && ( !(a1_evt1 != 0))) && ( !(_x_a1_l != 0))) && (_x_id == 2)) || ( !((a1_l != 0) && ((delta == 0.0) && ( !(( !(a1_evt0 != 0)) && ( !(a1_evt1 != 0))))))))) && ((((((( !(_x_a0_evt0 != 0)) && ( !(_x_a0_evt1 != 0))) || (((_x_a0_evt1 != 0) && ( !(_x_a0_evt0 != 0))) || ((_x_a0_evt0 != 0) && ( !(_x_a0_evt1 != 0))))) && (((a0_l != 0) == (_x_a0_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a0_evt0 != 0)) && ( !(a0_evt1 != 0))))))) && ((((((a0_evt1 != 0) && ( !(a0_evt0 != 0))) && (_x_a0_l != 0)) && (id == 1)) && (_x_id == 0)) || ( !(( !(a0_l != 0)) && ((delta == 0.0) && ( !(( !(a0_evt0 != 0)) && ( !(a0_evt1 != 0))))))))) && (((_x_id == 1) && (((a0_evt0 != 0) && ( !(a0_evt1 != 0))) && ( !(_x_a0_l != 0)))) || ( !((a0_l != 0) && ((delta == 0.0) && ( !(( !(a0_evt0 != 0)) && ( !(a0_evt1 != 0))))))))) && ((((((((c_initial != 0) == (_x_c_initial != 0)) || ( !(( !(c_move != 0)) || ( !(delta <= 0.0))))) && ((((id == 0) && (_x_id == 1)) && ( !(_x_c_initial != 0))) || ( !((delta == 0.0) && ((c_move != 0) && (c_initial != 0)))))) && (( !(_x_c_initial != 0)) || ( !(((c_move != 0) && (delta == 0.0)) && ( !(c_initial != 0)))))) && ((_x_id == 1) || ( !(((delta == 0.0) && (30 <= id)) && (( !(_x_c_initial != 0)) && ( !(c_initial != 0))))))) && ((_x_id == 1) || ( !((( !(_x_c_initial != 0)) && ( !(c_initial != 0))) && ((delta == 0.0) && ( !(30 <= id))))))) && (0.0 <= _x_delta)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) && ((_x_id == 29) || ((_x_id == 28) || ((_x_id == 27) || ((_x_id == 26) || ((_x_id == 25) || ((_x_id == 24) || ((_x_id == 23) || ((_x_id == 22) || ((_x_id == 21) || ((_x_id == 20) || ((_x_id == 19) || ((_x_id == 18) || ((_x_id == 17) || ((_x_id == 16) || ((_x_id == 15) || ((_x_id == 14) || ((_x_id == 13) || ((_x_id == 12) || ((_x_id == 11) || ((_x_id == 10) || ((_x_id == 9) || ((_x_id == 8) || ((_x_id == 7) || ((_x_id == 6) || ((_x_id == 5) || ((_x_id == 4) || ((_x_id == 3) || ((_x_id == 2) || ((_x_id == 1) || (_x_id == 0))))))))))))))))))))))))))))))) && ((id == _x_id) || ( !((( !(pc29_evt0 != 0)) && ( !(pc29_evt1 != 0))) && ((( !(pc28_evt0 != 0)) && ( !(pc28_evt1 != 0))) && ((( !(pc27_evt0 != 0)) && ( !(pc27_evt1 != 0))) && ((( !(pc26_evt0 != 0)) && ( !(pc26_evt1 != 0))) && ((( !(pc25_evt0 != 0)) && ( !(pc25_evt1 != 0))) && ((( !(pc24_evt0 != 0)) && ( !(pc24_evt1 != 0))) && ((( !(pc23_evt0 != 0)) && ( !(pc23_evt1 != 0))) && ((( !(pc22_evt0 != 0)) && ( !(pc22_evt1 != 0))) && ((( !(pc21_evt0 != 0)) && ( !(pc21_evt1 != 0))) && ((( !(pc20_evt0 != 0)) && ( !(pc20_evt1 != 0))) && ((( !(pc19_evt0 != 0)) && ( !(pc19_evt1 != 0))) && ((( !(pc18_evt0 != 0)) && ( !(pc18_evt1 != 0))) && ((( !(pc17_evt0 != 0)) && ( !(pc17_evt1 != 0))) && ((( !(pc16_evt0 != 0)) && ( !(pc16_evt1 != 0))) && ((( !(pc15_evt0 != 0)) && ( !(pc15_evt1 != 0))) && ((( !(pc14_evt0 != 0)) && ( !(pc14_evt1 != 0))) && ((( !(pc13_evt0 != 0)) && ( !(pc13_evt1 != 0))) && ((( !(pc12_evt0 != 0)) && ( !(pc12_evt1 != 0))) && ((( !(pc11_evt0 != 0)) && ( !(pc11_evt1 != 0))) && ((( !(pc10_evt0 != 0)) && ( !(pc10_evt1 != 0))) && ((( !(pc9_evt0 != 0)) && ( !(pc9_evt1 != 0))) && ((( !(pc8_evt0 != 0)) && ( !(pc8_evt1 != 0))) && ((( !(pc7_evt0 != 0)) && ( !(pc7_evt1 != 0))) && ((( !(pc6_evt0 != 0)) && ( !(pc6_evt1 != 0))) && ((( !(pc5_evt0 != 0)) && ( !(pc5_evt1 != 0))) && ((( !(pc4_evt0 != 0)) && ( !(pc4_evt1 != 0))) && ((( !(pc3_evt0 != 0)) && ( !(pc3_evt1 != 0))) && ((( !(pc2_evt0 != 0)) && ( !(pc2_evt1 != 0))) && ((( !(pc1_evt0 != 0)) && ( !(pc1_evt1 != 0))) && ((( !(pc0_evt0 != 0)) && ( !(pc0_evt1 != 0))) && ((( !(a29_evt0 != 0)) && ( !(a29_evt1 != 0))) && ((( !(a28_evt0 != 0)) && ( !(a28_evt1 != 0))) && ((( !(a27_evt0 != 0)) && ( !(a27_evt1 != 0))) && ((( !(a26_evt0 != 0)) && ( !(a26_evt1 != 0))) && ((( !(a25_evt0 != 0)) && ( !(a25_evt1 != 0))) && ((( !(a24_evt0 != 0)) && ( !(a24_evt1 != 0))) && ((( !(a23_evt0 != 0)) && ( !(a23_evt1 != 0))) && ((( !(a22_evt0 != 0)) && ( !(a22_evt1 != 0))) && ((( !(a21_evt0 != 0)) && ( !(a21_evt1 != 0))) && ((( !(a20_evt0 != 0)) && ( !(a20_evt1 != 0))) && ((( !(a19_evt0 != 0)) && ( !(a19_evt1 != 0))) && ((( !(a18_evt0 != 0)) && ( !(a18_evt1 != 0))) && ((( !(a17_evt0 != 0)) && ( !(a17_evt1 != 0))) && ((( !(a16_evt0 != 0)) && ( !(a16_evt1 != 0))) && ((( !(a15_evt0 != 0)) && ( !(a15_evt1 != 0))) && ((( !(a14_evt0 != 0)) && ( !(a14_evt1 != 0))) && ((( !(a13_evt0 != 0)) && ( !(a13_evt1 != 0))) && ((( !(a12_evt0 != 0)) && ( !(a12_evt1 != 0))) && ((( !(a11_evt0 != 0)) && ( !(a11_evt1 != 0))) && ((( !(a10_evt0 != 0)) && ( !(a10_evt1 != 0))) && ((( !(a9_evt0 != 0)) && ( !(a9_evt1 != 0))) && ((( !(a8_evt0 != 0)) && ( !(a8_evt1 != 0))) && ((( !(a7_evt0 != 0)) && ( !(a7_evt1 != 0))) && ((( !(a6_evt0 != 0)) && ( !(a6_evt1 != 0))) && ((( !(a5_evt0 != 0)) && ( !(a5_evt1 != 0))) && ((( !(a4_evt0 != 0)) && ( !(a4_evt1 != 0))) && ((( !(a3_evt0 != 0)) && ( !(a3_evt1 != 0))) && ((( !(a2_evt0 != 0)) && ( !(a2_evt1 != 0))) && ((( !(a1_evt0 != 0)) && ( !(a1_evt1 != 0))) && (( !(c_move != 0)) && (( !(a0_evt0 != 0)) && ( !(a0_evt1 != 0)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) && ((((a0_evt1 != 0) && ( !(a0_evt0 != 0))) == ((pc0_evt1 != 0) && ( !(pc0_evt0 != 0)))) || ( !(delta == 0.0)))) && (( !(delta == 0.0)) || (((a0_evt0 != 0) && ( !(a0_evt1 != 0))) == ((pc0_evt0 != 0) && ( !(pc0_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a1_evt1 != 0) && ( !(a1_evt0 != 0))) == ((pc1_evt1 != 0) && ( !(pc1_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a1_evt0 != 0) && ( !(a1_evt1 != 0))) == ((pc1_evt0 != 0) && ( !(pc1_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a2_evt1 != 0) && ( !(a2_evt0 != 0))) == ((pc2_evt1 != 0) && ( !(pc2_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a2_evt0 != 0) && ( !(a2_evt1 != 0))) == ((pc2_evt0 != 0) && ( !(pc2_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a3_evt1 != 0) && ( !(a3_evt0 != 0))) == ((pc3_evt1 != 0) && ( !(pc3_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a3_evt0 != 0) && ( !(a3_evt1 != 0))) == ((pc3_evt0 != 0) && ( !(pc3_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a4_evt1 != 0) && ( !(a4_evt0 != 0))) == ((pc4_evt1 != 0) && ( !(pc4_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a4_evt0 != 0) && ( !(a4_evt1 != 0))) == ((pc4_evt0 != 0) && ( !(pc4_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a5_evt1 != 0) && ( !(a5_evt0 != 0))) == ((pc5_evt1 != 0) && ( !(pc5_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a5_evt0 != 0) && ( !(a5_evt1 != 0))) == ((pc5_evt0 != 0) && ( !(pc5_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a6_evt1 != 0) && ( !(a6_evt0 != 0))) == ((pc6_evt1 != 0) && ( !(pc6_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a6_evt0 != 0) && ( !(a6_evt1 != 0))) == ((pc6_evt0 != 0) && ( !(pc6_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a7_evt1 != 0) && ( !(a7_evt0 != 0))) == ((pc7_evt1 != 0) && ( !(pc7_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a7_evt0 != 0) && ( !(a7_evt1 != 0))) == ((pc7_evt0 != 0) && ( !(pc7_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a8_evt1 != 0) && ( !(a8_evt0 != 0))) == ((pc8_evt1 != 0) && ( !(pc8_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a8_evt0 != 0) && ( !(a8_evt1 != 0))) == ((pc8_evt0 != 0) && ( !(pc8_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a9_evt1 != 0) && ( !(a9_evt0 != 0))) == ((pc9_evt1 != 0) && ( !(pc9_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a9_evt0 != 0) && ( !(a9_evt1 != 0))) == ((pc9_evt0 != 0) && ( !(pc9_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a10_evt1 != 0) && ( !(a10_evt0 != 0))) == ((pc10_evt1 != 0) && ( !(pc10_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a10_evt0 != 0) && ( !(a10_evt1 != 0))) == ((pc10_evt0 != 0) && ( !(pc10_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a11_evt1 != 0) && ( !(a11_evt0 != 0))) == ((pc11_evt1 != 0) && ( !(pc11_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a11_evt0 != 0) && ( !(a11_evt1 != 0))) == ((pc11_evt0 != 0) && ( !(pc11_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a12_evt1 != 0) && ( !(a12_evt0 != 0))) == ((pc12_evt1 != 0) && ( !(pc12_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a12_evt0 != 0) && ( !(a12_evt1 != 0))) == ((pc12_evt0 != 0) && ( !(pc12_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a13_evt1 != 0) && ( !(a13_evt0 != 0))) == ((pc13_evt1 != 0) && ( !(pc13_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a13_evt0 != 0) && ( !(a13_evt1 != 0))) == ((pc13_evt0 != 0) && ( !(pc13_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a14_evt1 != 0) && ( !(a14_evt0 != 0))) == ((pc14_evt1 != 0) && ( !(pc14_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a14_evt0 != 0) && ( !(a14_evt1 != 0))) == ((pc14_evt0 != 0) && ( !(pc14_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a15_evt1 != 0) && ( !(a15_evt0 != 0))) == ((pc15_evt1 != 0) && ( !(pc15_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a15_evt0 != 0) && ( !(a15_evt1 != 0))) == ((pc15_evt0 != 0) && ( !(pc15_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a16_evt1 != 0) && ( !(a16_evt0 != 0))) == ((pc16_evt1 != 0) && ( !(pc16_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a16_evt0 != 0) && ( !(a16_evt1 != 0))) == ((pc16_evt0 != 0) && ( !(pc16_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a17_evt1 != 0) && ( !(a17_evt0 != 0))) == ((pc17_evt1 != 0) && ( !(pc17_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a17_evt0 != 0) && ( !(a17_evt1 != 0))) == ((pc17_evt0 != 0) && ( !(pc17_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a18_evt1 != 0) && ( !(a18_evt0 != 0))) == ((pc18_evt1 != 0) && ( !(pc18_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a18_evt0 != 0) && ( !(a18_evt1 != 0))) == ((pc18_evt0 != 0) && ( !(pc18_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a19_evt1 != 0) && ( !(a19_evt0 != 0))) == ((pc19_evt1 != 0) && ( !(pc19_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a19_evt0 != 0) && ( !(a19_evt1 != 0))) == ((pc19_evt0 != 0) && ( !(pc19_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a20_evt1 != 0) && ( !(a20_evt0 != 0))) == ((pc20_evt1 != 0) && ( !(pc20_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a20_evt0 != 0) && ( !(a20_evt1 != 0))) == ((pc20_evt0 != 0) && ( !(pc20_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a21_evt1 != 0) && ( !(a21_evt0 != 0))) == ((pc21_evt1 != 0) && ( !(pc21_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a21_evt0 != 0) && ( !(a21_evt1 != 0))) == ((pc21_evt0 != 0) && ( !(pc21_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a22_evt1 != 0) && ( !(a22_evt0 != 0))) == ((pc22_evt1 != 0) && ( !(pc22_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a22_evt0 != 0) && ( !(a22_evt1 != 0))) == ((pc22_evt0 != 0) && ( !(pc22_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a23_evt1 != 0) && ( !(a23_evt0 != 0))) == ((pc23_evt1 != 0) && ( !(pc23_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a23_evt0 != 0) && ( !(a23_evt1 != 0))) == ((pc23_evt0 != 0) && ( !(pc23_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a24_evt1 != 0) && ( !(a24_evt0 != 0))) == ((pc24_evt1 != 0) && ( !(pc24_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a24_evt0 != 0) && ( !(a24_evt1 != 0))) == ((pc24_evt0 != 0) && ( !(pc24_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a25_evt1 != 0) && ( !(a25_evt0 != 0))) == ((pc25_evt1 != 0) && ( !(pc25_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a25_evt0 != 0) && ( !(a25_evt1 != 0))) == ((pc25_evt0 != 0) && ( !(pc25_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a26_evt1 != 0) && ( !(a26_evt0 != 0))) == ((pc26_evt1 != 0) && ( !(pc26_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a26_evt0 != 0) && ( !(a26_evt1 != 0))) == ((pc26_evt0 != 0) && ( !(pc26_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a27_evt1 != 0) && ( !(a27_evt0 != 0))) == ((pc27_evt1 != 0) && ( !(pc27_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a27_evt0 != 0) && ( !(a27_evt1 != 0))) == ((pc27_evt0 != 0) && ( !(pc27_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a28_evt1 != 0) && ( !(a28_evt0 != 0))) == ((pc28_evt1 != 0) && ( !(pc28_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a28_evt0 != 0) && ( !(a28_evt1 != 0))) == ((pc28_evt0 != 0) && ( !(pc28_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a29_evt1 != 0) && ( !(a29_evt0 != 0))) == ((pc29_evt1 != 0) && ( !(pc29_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a29_evt0 != 0) && ( !(a29_evt1 != 0))) == ((pc29_evt0 != 0) && ( !(pc29_evt1 != 0)))))) && (((delta == _x__diverge_delta) || ( !(1.0 <= _diverge_delta))) && ((1.0 <= _diverge_delta) || ((delta + (_diverge_delta + (-1.0 * _x__diverge_delta))) == 0.0)))); _diverge_delta = _x__diverge_delta; pc29_l2 = _x_pc29_l2; pc29_l1 = _x_pc29_l1; pc29_evt1 = _x_pc29_evt1; pc29_x = _x_pc29_x; pc28_l1 = _x_pc28_l1; pc28_l0 = _x_pc28_l0; pc28_evt1 = _x_pc28_evt1; pc28_x = _x_pc28_x; pc27_l2 = _x_pc27_l2; pc27_l1 = _x_pc27_l1; pc27_l0 = _x_pc27_l0; pc27_evt1 = _x_pc27_evt1; pc4_l1 = _x_pc4_l1; pc4_evt1 = _x_pc4_evt1; pc3_evt1 = _x_pc3_evt1; a13_evt1 = _x_a13_evt1; pc3_x = _x_pc3_x; pc11_x = _x_pc11_x; pc17_x = _x_pc17_x; a17_l = _x_a17_l; pc10_x = _x_pc10_x; pc1_l1 = _x_pc1_l1; a0_l = _x_a0_l; pc13_x = _x_pc13_x; pc1_l0 = _x_pc1_l0; pc1_x = _x_pc1_x; pc0_l0 = _x_pc0_l0; pc26_l0 = _x_pc26_l0; a27_evt0 = _x_a27_evt0; id = _x_id; pc26_evt1 = _x_pc26_evt1; a29_evt1 = _x_a29_evt1; pc18_l0 = _x_pc18_l0; a29_evt0 = _x_a29_evt0; a1_evt1 = _x_a1_evt1; pc19_x = _x_pc19_x; a28_evt1 = _x_a28_evt1; a28_evt0 = _x_a28_evt0; a27_evt1 = _x_a27_evt1; c_move = _x_c_move; a26_evt1 = _x_a26_evt1; pc8_l0 = _x_pc8_l0; a26_evt0 = _x_a26_evt0; a25_evt1 = _x_a25_evt1; pc4_l2 = _x_pc4_l2; pc17_evt0 = _x_pc17_evt0; pc23_l2 = _x_pc23_l2; a25_evt0 = _x_a25_evt0; pc23_l1 = _x_pc23_l1; a24_evt0 = _x_a24_evt0; pc6_evt1 = _x_pc6_evt1; pc6_l0 = _x_pc6_l0; a23_evt0 = _x_a23_evt0; pc24_l0 = _x_pc24_l0; a23_l = _x_a23_l; pc2_l2 = _x_pc2_l2; pc15_evt0 = _x_pc15_evt0; pc21_l2 = _x_pc21_l2; a6_evt1 = _x_a6_evt1; pc3_l1 = _x_pc3_l1; a22_evt0 = _x_a22_evt0; a29_l = _x_a29_l; pc15_l1 = _x_pc15_l1; a21_evt0 = _x_a21_evt0; a21_l = _x_a21_l; pc0_x = _x_pc0_x; pc11_evt0 = _x_pc11_evt0; pc17_l2 = _x_pc17_l2; pc26_x = _x_pc26_x; a20_evt0 = _x_a20_evt0; pc5_evt0 = _x_pc5_evt0; pc20_x = _x_pc20_x; a27_l = _x_a27_l; pc10_l2 = _x_pc10_l2; pc23_evt0 = _x_pc23_evt0; pc0_l1 = _x_pc0_l1; a8_evt0 = _x_a8_evt0; pc26_l1 = _x_pc26_l1; a19_l = _x_a19_l; a26_l = _x_a26_l; pc5_l1 = _x_pc5_l1; a18_evt0 = _x_a18_evt0; a6_l = _x_a6_l; a14_evt0 = _x_a14_evt0; pc3_evt0 = _x_pc3_evt0; pc5_evt1 = _x_pc5_evt1; a13_evt0 = _x_a13_evt0; pc18_x = _x_pc18_x; a5_evt1 = _x_a5_evt1; pc10_evt0 = _x_pc10_evt0; pc29_evt0 = _x_pc29_evt0; pc16_l2 = _x_pc16_l2; a28_l = _x_a28_l; pc25_x = _x_pc25_x; pc4_x = _x_pc4_x; a15_l = _x_a15_l; a4_l = _x_a4_l; pc25_l0 = _x_pc25_l0; a23_evt1 = _x_a23_evt1; pc24_l1 = _x_pc24_l1; a12_evt0 = _x_a12_evt0; a3_evt1 = _x_a3_evt1; a5_l = _x_a5_l; a20_l = _x_a20_l; pc7_evt1 = _x_pc7_evt1; a24_evt1 = _x_a24_evt1; pc1_evt0 = _x_pc1_evt0; pc16_x = _x_pc16_x; a14_l = _x_a14_l; pc4_evt0 = _x_pc4_evt0; a9_l = _x_a9_l; a24_l = _x_a24_l; pc8_l1 = _x_pc8_l1; a25_l = _x_a25_l; pc14_evt1 = _x_pc14_evt1; pc4_l0 = _x_pc4_l0; a1_l = _x_a1_l; pc15_l0 = _x_pc15_l0; a20_evt1 = _x_a20_evt1; pc14_l1 = _x_pc14_l1; a9_evt0 = _x_a9_evt0; pc14_l0 = _x_pc14_l0; c_initial = _x_c_initial; a10_l = _x_a10_l; pc3_l0 = _x_pc3_l0; a6_evt0 = _x_a6_evt0; pc29_l0 = _x_pc29_l0; pc0_l2 = _x_pc0_l2; pc7_l2 = _x_pc7_l2; pc20_evt0 = _x_pc20_evt0; pc26_l2 = _x_pc26_l2; pc7_l0 = _x_pc7_l0; a8_l = _x_a8_l; pc17_evt1 = _x_pc17_evt1; a16_evt0 = _x_a16_evt0; pc13_evt0 = _x_pc13_evt0; pc19_l2 = _x_pc19_l2; a7_evt1 = _x_a7_evt1; a18_evt1 = _x_a18_evt1; a7_evt0 = _x_a7_evt0; pc24_evt1 = _x_pc24_evt1; a0_evt1 = _x_a0_evt1; pc7_l1 = _x_pc7_l1; a9_evt1 = _x_a9_evt1; pc11_l0 = _x_pc11_l0; pc1_evt1 = _x_pc1_evt1; pc28_l2 = _x_pc28_l2; a3_l = _x_a3_l; pc12_x = _x_pc12_x; a22_evt1 = _x_a22_evt1; a11_evt0 = _x_a11_evt0; pc2_evt1 = _x_pc2_evt1; a2_evt1 = _x_a2_evt1; pc15_x = _x_pc15_x; a12_l = _x_a12_l; pc18_l1 = _x_pc18_l1; pc2_l1 = _x_pc2_l1; a7_l = _x_a7_l; a16_l = _x_a16_l; a2_l = _x_a2_l; a10_evt0 = _x_a10_evt0; pc8_x = _x_pc8_x; a11_l = _x_a11_l; pc2_x = _x_pc2_x; pc23_evt1 = _x_pc23_evt1; pc2_l0 = _x_pc2_l0; a18_l = _x_a18_l; delta = _x_delta; a10_evt1 = _x_a10_evt1; a11_evt1 = _x_a11_evt1; a1_evt0 = _x_a1_evt0; pc15_evt1 = _x_pc15_evt1; a12_evt1 = _x_a12_evt1; pc21_l0 = _x_pc21_l0; pc2_evt0 = _x_pc2_evt0; a2_evt0 = _x_a2_evt0; a17_evt0 = _x_a17_evt0; pc6_l1 = _x_pc6_l1; a3_evt0 = _x_a3_evt0; pc5_x = _x_pc5_x; a14_evt1 = _x_a14_evt1; a4_evt0 = _x_a4_evt0; pc25_evt1 = _x_pc25_evt1; a5_evt0 = _x_a5_evt0; pc0_evt1 = _x_pc0_evt1; pc16_l1 = _x_pc16_l1; a16_evt1 = _x_a16_evt1; pc13_evt1 = _x_pc13_evt1; a13_l = _x_a13_l; pc5_l0 = _x_pc5_l0; pc14_x = _x_pc14_x; pc6_x = _x_pc6_x; pc6_evt0 = _x_pc6_evt0; pc21_x = _x_pc21_x; pc7_x = _x_pc7_x; pc7_evt0 = _x_pc7_evt0; pc26_evt0 = _x_pc26_evt0; pc13_l2 = _x_pc13_l2; pc22_x = _x_pc22_x; pc8_evt0 = _x_pc8_evt0; pc27_evt0 = _x_pc27_evt0; pc14_l2 = _x_pc14_l2; pc23_x = _x_pc23_x; pc8_evt1 = _x_pc8_evt1; pc9_x = _x_pc9_x; a4_evt1 = _x_a4_evt1; pc9_evt0 = _x_pc9_evt0; pc28_evt0 = _x_pc28_evt0; pc15_l2 = _x_pc15_l2; pc24_x = _x_pc24_x; pc9_evt1 = _x_pc9_evt1; pc9_l0 = _x_pc9_l0; pc9_l1 = _x_pc9_l1; pc10_evt1 = _x_pc10_evt1; a8_evt1 = _x_a8_evt1; pc10_l0 = _x_pc10_l0; pc10_l1 = _x_pc10_l1; pc11_evt1 = _x_pc11_evt1; pc11_l1 = _x_pc11_l1; a15_evt0 = _x_a15_evt0; pc12_evt0 = _x_pc12_evt0; pc18_l2 = _x_pc18_l2; pc27_x = _x_pc27_x; a15_evt1 = _x_a15_evt1; pc12_evt1 = _x_pc12_evt1; pc12_l0 = _x_pc12_l0; pc12_l1 = _x_pc12_l1; a19_evt0 = _x_a19_evt0; pc13_l0 = _x_pc13_l0; a19_evt1 = _x_a19_evt1; pc13_l1 = _x_pc13_l1; pc1_l2 = _x_pc1_l2; a22_l = _x_a22_l; pc14_evt0 = _x_pc14_evt0; pc20_l2 = _x_pc20_l2; pc3_l2 = _x_pc3_l2; pc16_evt0 = _x_pc16_evt0; pc22_l2 = _x_pc22_l2; pc16_evt1 = _x_pc16_evt1; pc0_evt0 = _x_pc0_evt0; pc16_l0 = _x_pc16_l0; pc17_l0 = _x_pc17_l0; pc17_l1 = _x_pc17_l1; pc5_l2 = _x_pc5_l2; pc18_evt0 = _x_pc18_evt0; pc24_l2 = _x_pc24_l2; pc18_evt1 = _x_pc18_evt1; a17_evt1 = _x_a17_evt1; pc6_l2 = _x_pc6_l2; pc19_evt0 = _x_pc19_evt0; pc25_l2 = _x_pc25_l2; pc19_evt1 = _x_pc19_evt1; pc19_l0 = _x_pc19_l0; pc19_l1 = _x_pc19_l1; pc20_evt1 = _x_pc20_evt1; a21_evt1 = _x_a21_evt1; pc20_l0 = _x_pc20_l0; pc20_l1 = _x_pc20_l1; pc8_l2 = _x_pc8_l2; pc21_evt0 = _x_pc21_evt0; pc21_evt1 = _x_pc21_evt1; pc21_l1 = _x_pc21_l1; pc9_l2 = _x_pc9_l2; pc22_evt0 = _x_pc22_evt0; pc22_evt1 = _x_pc22_evt1; pc22_l0 = _x_pc22_l0; pc22_l1 = _x_pc22_l1; pc23_l0 = _x_pc23_l0; pc11_l2 = _x_pc11_l2; a0_evt0 = _x_a0_evt0; pc24_evt0 = _x_pc24_evt0; pc12_l2 = _x_pc12_l2; pc25_evt0 = _x_pc25_evt0; pc25_l1 = _x_pc25_l1; } }
the_stack_data/93887501.c
/* * Copyright (c) 1987, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by the University of * California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)mktemp.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #include <stdio.h> #include <ctype.h> #ifndef O_BINARY #define O_BINARY 0 #endif static int _gettemp(); mkstemp(path) char *path; { int fd; return (_gettemp(path, &fd) ? fd : -1); } static _gettemp(path, doopen) char *path; register int *doopen; { extern int errno; register char *start, *trv; struct stat sbuf; u_int pid; pid = getpid(); for (trv = path; *trv; ++trv); /* extra X's get set to 0's */ while (*--trv == 'X') { *trv = (pid % 10) + '0'; pid /= 10; } /* * check the target directory; if you have six X's and it * doesn't exist this runs for a *very* long time. */ for (start = trv + 1;; --trv) { if (trv <= path) break; if (*trv == '/') { *trv = '\0'; if (stat(path, &sbuf)) return(0); if (!S_ISDIR(sbuf.st_mode)) { errno = ENOTDIR; return(0); } *trv = '/'; break; } } for (;;) { if (doopen) { if ((*doopen = open(path, O_CREAT|O_EXCL|O_RDWR|O_BINARY, 0600)) >= 0) return(1); if (errno != EEXIST) return(0); } else if (stat(path, &sbuf)) return(errno == ENOENT ? 1 : 0); /* tricky little algorithm for backward compatibility */ for (trv = start;;) { if (!*trv) return(0); if (*trv == 'z') *trv++ = 'a'; else { if (isdigit(*trv)) *trv = 'a'; else ++*trv; break; } } } /*NOTREACHED*/ }
the_stack_data/60509.c
//Classification: n/DAM/NP/sS/D(v)/lc/ln //Written by: Sergey Pomelov //Reviewed by: Igor Eremeev //Comment: #include <stdio.h> int main(void) { int *p = NULL; static int a; a = *p; printf("%d",a); return 0; }
the_stack_data/187642768.c
/* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#) Copyright (c) 1983, 1993 The Regents of the University of California. All rights reserved. * @(#)logger.c 8.1 (Berkeley) 6/6/93 * $FreeBSD: src/usr.bin/logger/logger.c,v 1.5.2.3 2001/09/06 17:38:57 ru Exp $ * $DragonFly: src/usr.bin/logger/logger.c,v 1.4 2005/02/25 18:08:05 liamfoy Exp $ */ #include <sys/types.h> #include <sys/socket.h> #include <ctype.h> #include <err.h> #include <netdb.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #define SYSLOG_NAMES #include <syslog.h> static int decode(const char *, CODE *); static int pencode(char *); static void logmessage(int, const char *, const char *); static void usage(void); struct socks { int sock; int addrlen; struct sockaddr_storage addr; }; #ifdef INET6 int family = PF_UNSPEC; /* protocol family (IPv4, IPv6 or both) */ #else int family = PF_INET; /* protocol family (IPv4 only) */ #endif int send_to_all = 0; /* send message to all IPv4/IPv6 addresses */ /* * logger -- read and log utility * * Reads from an input and arranges to write the result on the system * log. */ int main(int argc, char **argv) { int ch, logflags, pri; char *tag, *host, buf[1024]; tag = NULL; host = NULL; pri = LOG_USER | LOG_NOTICE; logflags = 0; unsetenv("TZ"); while ((ch = getopt(argc, argv, "46Af:h:ip:st:")) != -1) switch(ch) { case '4': family = PF_INET; break; #ifdef INET6 case '6': family = PF_INET6; break; #endif case 'A': send_to_all++; break; case 'f': /* file to log */ if (freopen(optarg, "r", stdin) == NULL) err(1, "%s", optarg); break; case 'h': /* hostname to deliver to */ host = optarg; break; case 'i': /* log process id also */ logflags |= LOG_PID; break; case 'p': /* priority */ pri = pencode(optarg); break; case 's': /* log to standard error */ logflags |= LOG_PERROR; break; case 't': /* tag */ tag = optarg; break; case '?': default: usage(); } argc -= optind; argv += optind; /* setup for logging */ openlog(tag ? tag : getlogin(), logflags, 0); fclose(stdout); /* log input line if appropriate */ if (argc > 0) { char *p, *endp; size_t len; for (p = buf, endp = buf + sizeof(buf) - 2; *argv;) { len = strlen(*argv); if (p + len > endp && p > buf) { logmessage(pri, host, buf); p = buf; } if (len > sizeof(buf) - 1) logmessage(pri, host, *argv++); else { if (p != buf) *p++ = ' '; bcopy(*argv++, p, len); *(p += len) = '\0'; } } if (p != buf) logmessage(pri, host, buf); } else while (fgets(buf, sizeof(buf), stdin) != NULL) logmessage(pri, host, buf); exit(0); } /* * Send the message to syslog, either on the local host, or on a remote host */ static void logmessage(int pri, const char *host, const char *buf) { static struct socks *socks; static int nsock = 0; struct addrinfo hints, *res, *r; char *line; int maxs, len, sock, error, i, lsent = 0; if (host == NULL) { syslog(pri, "%s", buf); return; } if (nsock <= 0) { /* set up socket stuff */ /* resolve hostname */ memset(&hints, 0, sizeof(hints)); hints.ai_family = family; hints.ai_socktype = SOCK_DGRAM; error = getaddrinfo(host, "syslog", &hints, &res); if (error == EAI_SERVICE) { warnx ("syslog/udp: unknown service"); /* not fatal */ error = getaddrinfo(host, "514", &hints, &res); } if (error) errx(1, "%s: %s", gai_strerror(error), host); /* count max number of sockets we may open */ for (maxs = 0, r = res; r; r = r->ai_next, maxs++); socks = malloc(maxs * sizeof(struct socks)); if (!socks) err(1, "couldn't allocate memory for sockets"); for (r = res; r; r = r->ai_next) { sock = socket(r->ai_family, r->ai_socktype, r->ai_protocol); if (sock < 0) continue; memcpy(&socks[nsock].addr, r->ai_addr, r->ai_addrlen); socks[nsock].addrlen = r->ai_addrlen; socks[nsock++].sock = sock; } freeaddrinfo(res); if (nsock <= 0) errx(1, "socket"); } if ((len = asprintf(&line, "<%d>%s", pri, buf)) == -1) errx(1, "asprintf"); for (i = 0; i < nsock; ++i) { lsent = sendto(socks[i].sock, line, len, 0, (struct sockaddr *)&socks[i].addr, socks[i].addrlen); if (lsent == len && !send_to_all) break; } if (lsent != len) warnx("sendmsg"); free(line); } /* * Decode a symbolic name to a numeric value */ static int pencode(char *s) { char *save; int fac, lev; for (save = s; *s && *s != '.'; ++s); if (*s) { *s = '\0'; fac = decode(save, facilitynames); if (fac < 0) errx(1, "unknown facility name: %s", save); *s++ = '.'; } else { fac = 0; s = save; } lev = decode(s, prioritynames); if (lev < 0) errx(1, "unknown priority name: %s", save); return ((lev & LOG_PRIMASK) | (fac & LOG_FACMASK)); } int decode(const char *name, CODE *codetab) { CODE *c; if (isdigit(*name)) return (atoi(name)); for (c = codetab; c->c_name; c++) if (!strcasecmp(name, c->c_name)) return (c->c_val); return (-1); } static void usage(void) { fprintf(stderr, "usage: %s\n", "logger [-46Ais] [-f file] [-h host] [-p pri] [-t tag] [message ...]"); exit(1); }
the_stack_data/101972.c
#include<stdio.h> int GCD(int a,int b) { return b==0?a:GCD(b,a%b); } // https://zh.wikipedia.org/wiki/最小公倍数 int LCM(int a,int b) { return a/GCD(a,b)*b; } int main() { int n; int m; int a,lcm; scanf("%d",&n); while(n--) { scanf("%d",&m); scanf("%d",&lcm); while(--m>0) { scanf("%d",&a); lcm = LCM(lcm,a); } printf("%d\n",lcm); } }
the_stack_data/90763732.c
/* Generated by CIL v. 1.7.0 */ /* print_CIL_Input is false */ struct _IO_FILE; struct timeval; extern float strtof(char const *str , char const *endptr ) ; extern void signal(int sig , void *func ) ; typedef struct _IO_FILE FILE; extern int atoi(char const *s ) ; extern double strtod(char const *str , char const *endptr ) ; extern int fclose(void *stream ) ; extern void *fopen(char const *filename , char const *mode ) ; extern void abort() ; extern void exit(int status ) ; extern int raise(int sig ) ; extern int fprintf(struct _IO_FILE *stream , char const *format , ...) ; extern int strcmp(char const *a , char const *b ) ; extern int rand() ; extern unsigned long strtoul(char const *str , char const *endptr , int base ) ; void RandomFunc(unsigned long input[1] , unsigned long output[1] ) ; extern int strncmp(char const *s1 , char const *s2 , unsigned long maxlen ) ; extern int gettimeofday(struct timeval *tv , void *tz , ...) ; extern int printf(char const *format , ...) ; int main(int argc , char *argv[] ) ; void megaInit(void) ; extern unsigned long strlen(char const *s ) ; extern long strtol(char const *str , char const *endptr , int base ) ; extern unsigned long strnlen(char const *s , unsigned long maxlen ) ; extern void *memcpy(void *s1 , void const *s2 , unsigned long size ) ; struct timeval { long tv_sec ; long tv_usec ; }; extern void *malloc(unsigned long size ) ; extern int scanf(char const *format , ...) ; void RandomFunc(unsigned long input[1] , unsigned long output[1] ) { unsigned long state[1] ; unsigned long local1 ; unsigned int copy11 ; { state[0UL] = (input[0UL] + 51238316UL) + 274866410UL; local1 = 0UL; while (local1 < input[1UL]) { if (state[0UL] < local1) { copy11 = *((unsigned int *)(& state[local1]) + 1); *((unsigned int *)(& state[local1]) + 1) = *((unsigned int *)(& state[local1]) + 0); *((unsigned int *)(& state[local1]) + 0) = copy11; } else { state[0UL] = state[local1] * state[local1]; } local1 += 2UL; } output[0UL] = state[0UL] + 1626444070UL; } } void megaInit(void) { { } } int main(int argc , char *argv[] ) { unsigned long input[1] ; unsigned long output[1] ; int randomFuns_i5 ; unsigned long randomFuns_value6 ; int randomFuns_main_i7 ; { megaInit(); if (argc != 2) { printf("Call this program with %i arguments\n", 1); exit(-1); } else { } randomFuns_i5 = 0; while (randomFuns_i5 < 1) { randomFuns_value6 = strtoul(argv[randomFuns_i5 + 1], 0, 10); input[randomFuns_i5] = randomFuns_value6; randomFuns_i5 ++; } RandomFunc(input, output); if (output[0] == 4242424242UL) { printf("You win!\n"); } else { } randomFuns_main_i7 = 0; while (randomFuns_main_i7 < 1) { printf("%lu\n", output[randomFuns_main_i7]); randomFuns_main_i7 ++; } } }
the_stack_data/62911.c
/****************************************************************************** * * Copyright(c) 2013 - 2017 Realtek Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * *****************************************************************************/ #ifdef CONFIG_BT_COEXIST #include <drv_types.h> #include <hal_btcoex.h> #include <hal_data.h> void rtw_btcoex_Initialize(PADAPTER padapter) { hal_btcoex_Initialize(padapter); } void rtw_btcoex_PowerOnSetting(PADAPTER padapter) { hal_btcoex_PowerOnSetting(padapter); } void rtw_btcoex_PowerOffSetting(PADAPTER padapter) { hal_btcoex_PowerOffSetting(padapter); } void rtw_btcoex_PreLoadFirmware(PADAPTER padapter) { hal_btcoex_PreLoadFirmware(padapter); } void rtw_btcoex_HAL_Initialize(PADAPTER padapter, u8 bWifiOnly) { hal_btcoex_InitHwConfig(padapter, bWifiOnly); } void rtw_btcoex_IpsNotify(PADAPTER padapter, u8 type) { PHAL_DATA_TYPE pHalData; pHalData = GET_HAL_DATA(padapter); if (_FALSE == pHalData->EEPROMBluetoothCoexist) return; hal_btcoex_IpsNotify(padapter, type); } void rtw_btcoex_LpsNotify(PADAPTER padapter, u8 type) { PHAL_DATA_TYPE pHalData; pHalData = GET_HAL_DATA(padapter); if (_FALSE == pHalData->EEPROMBluetoothCoexist) return; hal_btcoex_LpsNotify(padapter, type); } void rtw_btcoex_ScanNotify(PADAPTER padapter, u8 type) { PHAL_DATA_TYPE pHalData; #ifdef CONFIG_BT_COEXIST_SOCKET_TRX struct bt_coex_info *pcoex_info = &padapter->coex_info; PBT_MGNT pBtMgnt = &pcoex_info->BtMgnt; #endif /* CONFIG_BT_COEXIST_SOCKET_TRX */ pHalData = GET_HAL_DATA(padapter); if (_FALSE == pHalData->EEPROMBluetoothCoexist) return; if (_FALSE == type) { #ifdef CONFIG_CONCURRENT_MODE if (rtw_mi_buddy_check_fwstate(padapter, WIFI_SITE_MONITOR)) return; #endif if (DEV_MGMT_TX_NUM(adapter_to_dvobj(padapter)) || DEV_ROCH_NUM(adapter_to_dvobj(padapter))) return; } #ifdef CONFIG_BT_COEXIST_SOCKET_TRX if (pBtMgnt->ExtConfig.bEnableWifiScanNotify) rtw_btcoex_SendScanNotify(padapter, type); #endif /* CONFIG_BT_COEXIST_SOCKET_TRX */ hal_btcoex_ScanNotify(padapter, type); } void rtw_btcoex_ConnectNotify(PADAPTER padapter, u8 action) { PHAL_DATA_TYPE pHalData; pHalData = GET_HAL_DATA(padapter); if (_FALSE == pHalData->EEPROMBluetoothCoexist) return; #ifdef DBG_CONFIG_ERROR_RESET if (_TRUE == rtw_hal_sreset_inprogress(padapter)) { RTW_INFO(FUNC_ADPT_FMT ": [BTCoex] under reset, skip notify!\n", FUNC_ADPT_ARG(padapter)); return; } #endif /* DBG_CONFIG_ERROR_RESET */ #ifdef CONFIG_CONCURRENT_MODE if (_FALSE == action) { if (rtw_mi_buddy_check_fwstate(padapter, WIFI_UNDER_LINKING)) return; } #endif hal_btcoex_ConnectNotify(padapter, action); } void rtw_btcoex_MediaStatusNotify(PADAPTER padapter, u8 mediaStatus) { PHAL_DATA_TYPE pHalData; pHalData = GET_HAL_DATA(padapter); if (_FALSE == pHalData->EEPROMBluetoothCoexist) return; #ifdef DBG_CONFIG_ERROR_RESET if (_TRUE == rtw_hal_sreset_inprogress(padapter)) { RTW_INFO(FUNC_ADPT_FMT ": [BTCoex] under reset, skip notify!\n", FUNC_ADPT_ARG(padapter)); return; } #endif /* DBG_CONFIG_ERROR_RESET */ #ifdef CONFIG_CONCURRENT_MODE if (RT_MEDIA_DISCONNECT == mediaStatus) { if (rtw_mi_buddy_check_fwstate(padapter, WIFI_ASOC_STATE)) return; } #endif /* CONFIG_CONCURRENT_MODE */ if ((RT_MEDIA_CONNECT == mediaStatus) && (check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == _TRUE)) rtw_hal_set_hwreg(padapter, HW_VAR_DL_RSVD_PAGE, NULL); hal_btcoex_MediaStatusNotify(padapter, mediaStatus); } void rtw_btcoex_SpecialPacketNotify(PADAPTER padapter, u8 pktType) { PHAL_DATA_TYPE pHalData; pHalData = GET_HAL_DATA(padapter); if (_FALSE == pHalData->EEPROMBluetoothCoexist) return; hal_btcoex_SpecialPacketNotify(padapter, pktType); } void rtw_btcoex_IQKNotify(PADAPTER padapter, u8 state) { PHAL_DATA_TYPE pHalData; pHalData = GET_HAL_DATA(padapter); if (_FALSE == pHalData->EEPROMBluetoothCoexist) return; hal_btcoex_IQKNotify(padapter, state); } void rtw_btcoex_BtInfoNotify(PADAPTER padapter, u8 length, u8 *tmpBuf) { PHAL_DATA_TYPE pHalData; pHalData = GET_HAL_DATA(padapter); if (_FALSE == pHalData->EEPROMBluetoothCoexist) return; hal_btcoex_BtInfoNotify(padapter, length, tmpBuf); } void rtw_btcoex_BtMpRptNotify(PADAPTER padapter, u8 length, u8 *tmpBuf) { PHAL_DATA_TYPE pHalData; pHalData = GET_HAL_DATA(padapter); if (_FALSE == pHalData->EEPROMBluetoothCoexist) return; if (padapter->registrypriv.mp_mode == 1) return; hal_btcoex_BtMpRptNotify(padapter, length, tmpBuf); } void rtw_btcoex_SuspendNotify(PADAPTER padapter, u8 state) { PHAL_DATA_TYPE pHalData; pHalData = GET_HAL_DATA(padapter); if (_FALSE == pHalData->EEPROMBluetoothCoexist) return; hal_btcoex_SuspendNotify(padapter, state); } void rtw_btcoex_HaltNotify(PADAPTER padapter) { PHAL_DATA_TYPE pHalData; u8 do_halt = 1; pHalData = GET_HAL_DATA(padapter); if (_FALSE == pHalData->EEPROMBluetoothCoexist) do_halt = 0; if (_FALSE == padapter->bup) { RTW_INFO(FUNC_ADPT_FMT ": bup=%d Skip!\n", FUNC_ADPT_ARG(padapter), padapter->bup); do_halt = 0; } if (rtw_is_surprise_removed(padapter)) { RTW_INFO(FUNC_ADPT_FMT ": bSurpriseRemoved=%s Skip!\n", FUNC_ADPT_ARG(padapter), rtw_is_surprise_removed(padapter) ? "True" : "False"); do_halt = 0; } hal_btcoex_HaltNotify(padapter, do_halt); } void rtw_btcoex_switchband_notify(u8 under_scan, u8 band_type) { hal_btcoex_switchband_notify(under_scan, band_type); } void rtw_btcoex_WlFwDbgInfoNotify(PADAPTER padapter, u8* tmpBuf, u8 length) { hal_btcoex_WlFwDbgInfoNotify(padapter, tmpBuf, length); } void rtw_btcoex_rx_rate_change_notify(PADAPTER padapter, u8 is_data_frame, u8 rate_id) { hal_btcoex_rx_rate_change_notify(padapter, is_data_frame, rate_id); } void rtw_btcoex_SwitchBtTRxMask(PADAPTER padapter) { hal_btcoex_SwitchBtTRxMask(padapter); } void rtw_btcoex_Switch(PADAPTER padapter, u8 enable) { hal_btcoex_SetBTCoexist(padapter, enable); } u8 rtw_btcoex_IsBtDisabled(PADAPTER padapter) { return hal_btcoex_IsBtDisabled(padapter); } void rtw_btcoex_Handler(PADAPTER padapter) { PHAL_DATA_TYPE pHalData; pHalData = GET_HAL_DATA(padapter); if (_FALSE == pHalData->EEPROMBluetoothCoexist) return; hal_btcoex_Hanlder(padapter); } s32 rtw_btcoex_IsBTCoexRejectAMPDU(PADAPTER padapter) { s32 coexctrl; coexctrl = hal_btcoex_IsBTCoexRejectAMPDU(padapter); return coexctrl; } s32 rtw_btcoex_IsBTCoexCtrlAMPDUSize(PADAPTER padapter) { s32 coexctrl; coexctrl = hal_btcoex_IsBTCoexCtrlAMPDUSize(padapter); return coexctrl; } u32 rtw_btcoex_GetAMPDUSize(PADAPTER padapter) { u32 size; size = hal_btcoex_GetAMPDUSize(padapter); return size; } void rtw_btcoex_SetManualControl(PADAPTER padapter, u8 manual) { if (_TRUE == manual) hal_btcoex_SetManualControl(padapter, _TRUE); else hal_btcoex_SetManualControl(padapter, _FALSE); } u8 rtw_btcoex_1Ant(PADAPTER padapter) { return hal_btcoex_1Ant(padapter); } u8 rtw_btcoex_IsBtControlLps(PADAPTER padapter) { return hal_btcoex_IsBtControlLps(padapter); } u8 rtw_btcoex_IsLpsOn(PADAPTER padapter) { return hal_btcoex_IsLpsOn(padapter); } u8 rtw_btcoex_RpwmVal(PADAPTER padapter) { return hal_btcoex_RpwmVal(padapter); } u8 rtw_btcoex_LpsVal(PADAPTER padapter) { return hal_btcoex_LpsVal(padapter); } u32 rtw_btcoex_GetRaMask(PADAPTER padapter) { return hal_btcoex_GetRaMask(padapter); } void rtw_btcoex_RecordPwrMode(PADAPTER padapter, u8 *pCmdBuf, u8 cmdLen) { hal_btcoex_RecordPwrMode(padapter, pCmdBuf, cmdLen); } void rtw_btcoex_DisplayBtCoexInfo(PADAPTER padapter, u8 *pbuf, u32 bufsize) { hal_btcoex_DisplayBtCoexInfo(padapter, pbuf, bufsize); } void rtw_btcoex_SetDBG(PADAPTER padapter, u32 *pDbgModule) { hal_btcoex_SetDBG(padapter, pDbgModule); } u32 rtw_btcoex_GetDBG(PADAPTER padapter, u8 *pStrBuf, u32 bufSize) { return hal_btcoex_GetDBG(padapter, pStrBuf, bufSize); } u8 rtw_btcoex_IncreaseScanDeviceNum(PADAPTER padapter) { return hal_btcoex_IncreaseScanDeviceNum(padapter); } u8 rtw_btcoex_IsBtLinkExist(PADAPTER padapter) { return hal_btcoex_IsBtLinkExist(padapter); } void rtw_btcoex_SetBtPatchVersion(PADAPTER padapter, u16 btHciVer, u16 btPatchVer) { hal_btcoex_SetBtPatchVersion(padapter, btHciVer, btPatchVer); } void rtw_btcoex_SetHciVersion(PADAPTER padapter, u16 hciVersion) { hal_btcoex_SetHciVersion(padapter, hciVersion); } void rtw_btcoex_StackUpdateProfileInfo(void) { hal_btcoex_StackUpdateProfileInfo(); } void rtw_btcoex_pta_off_on_notify(PADAPTER padapter, u8 bBTON) { hal_btcoex_pta_off_on_notify(padapter, bBTON); } #ifdef CONFIG_RF4CE_COEXIST void rtw_btcoex_SetRf4ceLinkState(PADAPTER padapter, u8 state) { hal_btcoex_set_rf4ce_link_state(state); } u8 rtw_btcoex_GetRf4ceLinkState(PADAPTER padapter) { return hal_btcoex_get_rf4ce_link_state(); } #endif /* ================================================== * Below Functions are called by BT-Coex * ================================================== */ void rtw_btcoex_rx_ampdu_apply(PADAPTER padapter) { rtw_rx_ampdu_apply(padapter); } void rtw_btcoex_LPS_Enter(PADAPTER padapter) { struct pwrctrl_priv *pwrpriv; u8 lpsVal; pwrpriv = adapter_to_pwrctl(padapter); pwrpriv->bpower_saving = _TRUE; lpsVal = rtw_btcoex_LpsVal(padapter); rtw_set_ps_mode(padapter, PS_MODE_MIN, 0, lpsVal, "BTCOEX"); } u8 rtw_btcoex_LPS_Leave(PADAPTER padapter) { struct pwrctrl_priv *pwrpriv; pwrpriv = adapter_to_pwrctl(padapter); if (pwrpriv->pwr_mode != PS_MODE_ACTIVE) { rtw_set_ps_mode(padapter, PS_MODE_ACTIVE, 0, 0, "BTCOEX"); LPS_RF_ON_check(padapter, 100); pwrpriv->bpower_saving = _FALSE; } return _TRUE; } u16 rtw_btcoex_btreg_read(PADAPTER padapter, u8 type, u16 addr, u32 *data) { return hal_btcoex_btreg_read(padapter, type, addr, data); } u16 rtw_btcoex_btreg_write(PADAPTER padapter, u8 type, u16 addr, u16 val) { return hal_btcoex_btreg_write(padapter, type, addr, val); } u8 rtw_btcoex_get_bt_coexist(PADAPTER padapter) { HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter); return pHalData->EEPROMBluetoothCoexist; } u8 rtw_btcoex_get_chip_type(PADAPTER padapter) { HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter); return pHalData->EEPROMBluetoothType; } u8 rtw_btcoex_get_pg_ant_num(PADAPTER padapter) { HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter); return pHalData->EEPROMBluetoothAntNum == Ant_x2 ? 2 : 1; } u8 rtw_btcoex_get_pg_single_ant_path(PADAPTER padapter) { HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter); return pHalData->ant_path; } u8 rtw_btcoex_get_pg_rfe_type(PADAPTER padapter) { HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter); return pHalData->rfe_type; } u8 rtw_btcoex_is_tfbga_package_type(PADAPTER padapter) { HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter); #ifdef CONFIG_RTL8723B if ((pHalData->PackageType == PACKAGE_TFBGA79) || (pHalData->PackageType == PACKAGE_TFBGA80) || (pHalData->PackageType == PACKAGE_TFBGA90)) return _TRUE; #endif return _FALSE; } u8 rtw_btcoex_get_ant_div_cfg(PADAPTER padapter) { PHAL_DATA_TYPE pHalData; pHalData = GET_HAL_DATA(padapter); return (pHalData->AntDivCfg == 0) ? _FALSE : _TRUE; } /* ================================================== * Below Functions are BT-Coex socket related function * ================================================== */ #ifdef CONFIG_BT_COEXIST_SOCKET_TRX _adapter *pbtcoexadapter; /* = NULL; */ /* do not initialise globals to 0 or NULL */ u8 rtw_btcoex_btinfo_cmd(_adapter *adapter, u8 *buf, u16 len) { struct cmd_obj *ph2c; struct drvextra_cmd_parm *pdrvextra_cmd_parm; u8 *btinfo; struct cmd_priv *pcmdpriv = &adapter->cmdpriv; u8 res = _SUCCESS; ph2c = (struct cmd_obj *)rtw_zmalloc(sizeof(struct cmd_obj)); if (ph2c == NULL) { res = _FAIL; goto exit; } pdrvextra_cmd_parm = (struct drvextra_cmd_parm *)rtw_zmalloc(sizeof(struct drvextra_cmd_parm)); if (pdrvextra_cmd_parm == NULL) { rtw_mfree((u8 *)ph2c, sizeof(struct cmd_obj)); res = _FAIL; goto exit; } btinfo = rtw_zmalloc(len); if (btinfo == NULL) { rtw_mfree((u8 *)ph2c, sizeof(struct cmd_obj)); rtw_mfree((u8 *)pdrvextra_cmd_parm, sizeof(struct drvextra_cmd_parm)); res = _FAIL; goto exit; } pdrvextra_cmd_parm->ec_id = BTINFO_WK_CID; pdrvextra_cmd_parm->type = 0; pdrvextra_cmd_parm->size = len; pdrvextra_cmd_parm->pbuf = btinfo; _rtw_memcpy(btinfo, buf, len); init_h2fwcmd_w_parm_no_rsp(ph2c, pdrvextra_cmd_parm, GEN_CMD_CODE(_Set_Drv_Extra)); res = rtw_enqueue_cmd(pcmdpriv, ph2c); exit: return res; } u8 rtw_btcoex_send_event_to_BT(_adapter *padapter, u8 status, u8 event_code, u8 opcode_low, u8 opcode_high, u8 *dbg_msg) { u8 localBuf[6] = ""; u8 *pRetPar; u8 len = 0, tx_event_length = 0; rtw_HCI_event *pEvent; pEvent = (rtw_HCI_event *)(&localBuf[0]); pEvent->EventCode = event_code; pEvent->Data[0] = 0x1; /* packet # */ pEvent->Data[1] = opcode_low; pEvent->Data[2] = opcode_high; len = len + 3; /* Return parameters starts from here */ pRetPar = &pEvent->Data[len]; pRetPar[0] = status; /* status */ len++; pEvent->Length = len; /* total tx event length + EventCode length + sizeof(length) */ tx_event_length = pEvent->Length + 2; #if 0 rtw_btcoex_dump_tx_msg((u8 *)pEvent, tx_event_length, dbg_msg); #endif status = rtw_btcoex_sendmsgbysocket(padapter, (u8 *)pEvent, tx_event_length, _FALSE); return status; } /* Ref: Realtek Wi-Fi Driver Host Controller Interface for Bluetooth 3.0 + HS V1.4 2013/02/07 Window team code & BT team code */ u8 rtw_btcoex_parse_BT_info_notify_cmd(_adapter *padapter, u8 *pcmd, u16 cmdlen) { #define BT_INFO_LENGTH 8 u8 curPollEnable = pcmd[0]; u8 curPollTime = pcmd[1]; u8 btInfoReason = pcmd[2]; u8 btInfoLen = pcmd[3]; u8 btinfo[BT_INFO_LENGTH]; u8 localBuf[6] = ""; u8 *pRetPar; u8 len = 0, tx_event_length = 0; RTW_HCI_STATUS status = HCI_STATUS_SUCCESS; rtw_HCI_event *pEvent; /* RTW_INFO("%s\n",__func__); RTW_INFO("current Poll Enable: %d, currrent Poll Time: %d\n",curPollEnable,curPollTime); RTW_INFO("BT Info reason: %d, BT Info length: %d\n",btInfoReason,btInfoLen); RTW_INFO("%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\n" ,pcmd[4],pcmd[5],pcmd[6],pcmd[7],pcmd[8],pcmd[9],pcmd[10],pcmd[11]);*/ _rtw_memset(btinfo, 0, BT_INFO_LENGTH); #if 1 if (BT_INFO_LENGTH != btInfoLen) { status = HCI_STATUS_INVALID_HCI_CMD_PARA_VALUE; RTW_INFO("Error BT Info Length: %d\n", btInfoLen); /* return _FAIL; */ } else #endif { if (0x1 == btInfoReason || 0x2 == btInfoReason) { _rtw_memcpy(btinfo, &pcmd[4], btInfoLen); btinfo[0] = btInfoReason; rtw_btcoex_btinfo_cmd(padapter, btinfo, btInfoLen); } else RTW_INFO("Other BT info reason\n"); } /* send complete event to BT */ { pEvent = (rtw_HCI_event *)(&localBuf[0]); pEvent->EventCode = HCI_EVENT_COMMAND_COMPLETE; pEvent->Data[0] = 0x1; /* packet # */ pEvent->Data[1] = HCIOPCODELOW(HCI_BT_INFO_NOTIFY, OGF_EXTENSION); pEvent->Data[2] = HCIOPCODEHIGHT(HCI_BT_INFO_NOTIFY, OGF_EXTENSION); len = len + 3; /* Return parameters starts from here */ pRetPar = &pEvent->Data[len]; pRetPar[0] = status; /* status */ len++; pEvent->Length = len; /* total tx event length + EventCode length + sizeof(length) */ tx_event_length = pEvent->Length + 2; #if 0 rtw_btcoex_dump_tx_msg((u8 *)pEvent, tx_event_length, "BT_info_event"); #endif status = rtw_btcoex_sendmsgbysocket(padapter, (u8 *)pEvent, tx_event_length, _FALSE); return status; /* bthci_IndicateEvent(Adapter, PPacketIrpEvent, len+2); */ } } u8 rtw_btcoex_parse_BT_patch_ver_info_cmd(_adapter *padapter, u8 *pcmd, u16 cmdlen) { RTW_HCI_STATUS status = HCI_STATUS_SUCCESS; u16 btPatchVer = 0x0, btHciVer = 0x0; /* u16 *pU2tmp; */ u8 localBuf[6] = ""; u8 *pRetPar; u8 len = 0, tx_event_length = 0; rtw_HCI_event *pEvent; btHciVer = pcmd[0] | pcmd[1] << 8; btPatchVer = pcmd[2] | pcmd[3] << 8; RTW_INFO("%s, cmd:%02x %02x %02x %02x\n", __func__, pcmd[0] , pcmd[1] , pcmd[2] , pcmd[3]); RTW_INFO("%s, HCI Ver:%d, Patch Ver:%d\n", __func__, btHciVer, btPatchVer); rtw_btcoex_SetBtPatchVersion(padapter, btHciVer, btPatchVer); /* send complete event to BT */ { pEvent = (rtw_HCI_event *)(&localBuf[0]); pEvent->EventCode = HCI_EVENT_COMMAND_COMPLETE; pEvent->Data[0] = 0x1; /* packet # */ pEvent->Data[1] = HCIOPCODELOW(HCI_BT_PATCH_VERSION_NOTIFY, OGF_EXTENSION); pEvent->Data[2] = HCIOPCODEHIGHT(HCI_BT_PATCH_VERSION_NOTIFY, OGF_EXTENSION); len = len + 3; /* Return parameters starts from here */ pRetPar = &pEvent->Data[len]; pRetPar[0] = status; /* status */ len++; pEvent->Length = len; /* total tx event length + EventCode length + sizeof(length) */ tx_event_length = pEvent->Length + 2; #if 0 rtw_btcoex_dump_tx_msg((u8 *)pEvent, tx_event_length, "BT_patch_event"); #endif status = rtw_btcoex_sendmsgbysocket(padapter, (u8 *)pEvent, tx_event_length, _FALSE); return status; /* bthci_IndicateEvent(Adapter, PPacketIrpEvent, len+2); */ } } u8 rtw_btcoex_parse_HCI_Ver_notify_cmd(_adapter *padapter, u8 *pcmd, u16 cmdlen) { RTW_HCI_STATUS status = HCI_STATUS_SUCCESS; u16 hciver = pcmd[0] | pcmd[1] << 8; u8 localBuf[6] = ""; u8 *pRetPar; u8 len = 0, tx_event_length = 0; rtw_HCI_event *pEvent; struct bt_coex_info *pcoex_info = &padapter->coex_info; PBT_MGNT pBtMgnt = &pcoex_info->BtMgnt; pBtMgnt->ExtConfig.HCIExtensionVer = hciver; RTW_INFO("%s, HCI Version: %d\n", __func__, pBtMgnt->ExtConfig.HCIExtensionVer); if (pBtMgnt->ExtConfig.HCIExtensionVer < 4) { status = HCI_STATUS_INVALID_HCI_CMD_PARA_VALUE; RTW_INFO("%s, Version = %d, HCI Version < 4\n", __func__, pBtMgnt->ExtConfig.HCIExtensionVer); } else rtw_btcoex_SetHciVersion(padapter, hciver); /* send complete event to BT */ { pEvent = (rtw_HCI_event *)(&localBuf[0]); pEvent->EventCode = HCI_EVENT_COMMAND_COMPLETE; pEvent->Data[0] = 0x1; /* packet # */ pEvent->Data[1] = HCIOPCODELOW(HCI_EXTENSION_VERSION_NOTIFY, OGF_EXTENSION); pEvent->Data[2] = HCIOPCODEHIGHT(HCI_EXTENSION_VERSION_NOTIFY, OGF_EXTENSION); len = len + 3; /* Return parameters starts from here */ pRetPar = &pEvent->Data[len]; pRetPar[0] = status; /* status */ len++; pEvent->Length = len; /* total tx event length + EventCode length + sizeof(length) */ tx_event_length = pEvent->Length + 2; status = rtw_btcoex_sendmsgbysocket(padapter, (u8 *)pEvent, tx_event_length, _FALSE); return status; /* bthci_IndicateEvent(Adapter, PPacketIrpEvent, len+2); */ } } u8 rtw_btcoex_parse_WIFI_scan_notify_cmd(_adapter *padapter, u8 *pcmd, u16 cmdlen) { RTW_HCI_STATUS status = HCI_STATUS_SUCCESS; u8 localBuf[6] = ""; u8 *pRetPar; u8 len = 0, tx_event_length = 0; rtw_HCI_event *pEvent; struct bt_coex_info *pcoex_info = &padapter->coex_info; PBT_MGNT pBtMgnt = &pcoex_info->BtMgnt; pBtMgnt->ExtConfig.bEnableWifiScanNotify = pcmd[0]; RTW_INFO("%s, bEnableWifiScanNotify: %d\n", __func__, pBtMgnt->ExtConfig.bEnableWifiScanNotify); /* send complete event to BT */ { pEvent = (rtw_HCI_event *)(&localBuf[0]); pEvent->EventCode = HCI_EVENT_COMMAND_COMPLETE; pEvent->Data[0] = 0x1; /* packet # */ pEvent->Data[1] = HCIOPCODELOW(HCI_ENABLE_WIFI_SCAN_NOTIFY, OGF_EXTENSION); pEvent->Data[2] = HCIOPCODEHIGHT(HCI_ENABLE_WIFI_SCAN_NOTIFY, OGF_EXTENSION); len = len + 3; /* Return parameters starts from here */ pRetPar = &pEvent->Data[len]; pRetPar[0] = status; /* status */ len++; pEvent->Length = len; /* total tx event length + EventCode length + sizeof(length) */ tx_event_length = pEvent->Length + 2; status = rtw_btcoex_sendmsgbysocket(padapter, (u8 *)pEvent, tx_event_length, _FALSE); return status; /* bthci_IndicateEvent(Adapter, PPacketIrpEvent, len+2); */ } } u8 rtw_btcoex_parse_HCI_link_status_notify_cmd(_adapter *padapter, u8 *pcmd, u16 cmdlen) { RTW_HCI_STATUS status = HCI_STATUS_SUCCESS; struct bt_coex_info *pcoex_info = &padapter->coex_info; PBT_MGNT pBtMgnt = &pcoex_info->BtMgnt; /* PBT_DBG pBtDbg=&padapter->MgntInfo.BtInfo.BtDbg; */ u8 i, numOfHandle = 0, numOfAcl = 0; u16 conHandle; u8 btProfile, btCoreSpec, linkRole; u8 *pTriple; u8 localBuf[6] = ""; u8 *pRetPar; u8 len = 0, tx_event_length = 0; rtw_HCI_event *pEvent; /* pBtDbg->dbgHciInfo.hciCmdCntLinkStatusNotify++; */ /* RT_DISP_DATA(FIOCTL, IOCTL_BT_HCICMD_EXT, "LinkStatusNotify, Hex Data :\n", */ /* &pHciCmd->Data[0], pHciCmd->Length); */ RTW_INFO("BTLinkStatusNotify\n"); /* Current only RTL8723 support this command. */ /* pBtMgnt->bSupportProfile = TRUE; */ pBtMgnt->bSupportProfile = _FALSE; pBtMgnt->ExtConfig.NumberOfACL = 0; pBtMgnt->ExtConfig.NumberOfSCO = 0; numOfHandle = pcmd[0]; /* RT_DISP(FIOCTL, IOCTL_BT_HCICMD_EXT, ("numOfHandle = 0x%x\n", numOfHandle)); */ /* RT_DISP(FIOCTL, IOCTL_BT_HCICMD_EXT, ("HCIExtensionVer = %d\n", pBtMgnt->ExtConfig.HCIExtensionVer)); */ RTW_INFO("numOfHandle = 0x%x\n", numOfHandle); RTW_INFO("HCIExtensionVer = %d\n", pBtMgnt->ExtConfig.HCIExtensionVer); pTriple = &pcmd[1]; for (i = 0; i < numOfHandle; i++) { if (pBtMgnt->ExtConfig.HCIExtensionVer < 1) { conHandle = *((u8 *)&pTriple[0]); btProfile = pTriple[2]; btCoreSpec = pTriple[3]; if (BT_PROFILE_SCO == btProfile) pBtMgnt->ExtConfig.NumberOfSCO++; else { pBtMgnt->ExtConfig.NumberOfACL++; pBtMgnt->ExtConfig.aclLink[i].ConnectHandle = conHandle; pBtMgnt->ExtConfig.aclLink[i].BTProfile = btProfile; pBtMgnt->ExtConfig.aclLink[i].BTCoreSpec = btCoreSpec; } /* RT_DISP(FIOCTL, IOCTL_BT_HCICMD_EXT, */ /* ("Connection_Handle=0x%x, BTProfile=%d, BTSpec=%d\n", */ /* conHandle, btProfile, btCoreSpec)); */ RTW_INFO("Connection_Handle=0x%x, BTProfile=%d, BTSpec=%d\n", conHandle, btProfile, btCoreSpec); pTriple += 4; } else if (pBtMgnt->ExtConfig.HCIExtensionVer >= 1) { conHandle = *((pu2Byte)&pTriple[0]); btProfile = pTriple[2]; btCoreSpec = pTriple[3]; linkRole = pTriple[4]; if (BT_PROFILE_SCO == btProfile) pBtMgnt->ExtConfig.NumberOfSCO++; else { pBtMgnt->ExtConfig.NumberOfACL++; pBtMgnt->ExtConfig.aclLink[i].ConnectHandle = conHandle; pBtMgnt->ExtConfig.aclLink[i].BTProfile = btProfile; pBtMgnt->ExtConfig.aclLink[i].BTCoreSpec = btCoreSpec; pBtMgnt->ExtConfig.aclLink[i].linkRole = linkRole; } /* RT_DISP(FIOCTL, IOCTL_BT_HCICMD_EXT, */ RTW_INFO("Connection_Handle=0x%x, BTProfile=%d, BTSpec=%d, LinkRole=%d\n", conHandle, btProfile, btCoreSpec, linkRole); pTriple += 5; } } rtw_btcoex_StackUpdateProfileInfo(); /* send complete event to BT */ { pEvent = (rtw_HCI_event *)(&localBuf[0]); pEvent->EventCode = HCI_EVENT_COMMAND_COMPLETE; pEvent->Data[0] = 0x1; /* packet # */ pEvent->Data[1] = HCIOPCODELOW(HCI_LINK_STATUS_NOTIFY, OGF_EXTENSION); pEvent->Data[2] = HCIOPCODEHIGHT(HCI_LINK_STATUS_NOTIFY, OGF_EXTENSION); len = len + 3; /* Return parameters starts from here */ pRetPar = &pEvent->Data[len]; pRetPar[0] = status; /* status */ len++; pEvent->Length = len; /* total tx event length + EventCode length + sizeof(length) */ tx_event_length = pEvent->Length + 2; status = rtw_btcoex_sendmsgbysocket(padapter, (u8 *)pEvent, tx_event_length, _FALSE); return status; /* bthci_IndicateEvent(Adapter, PPacketIrpEvent, len+2); */ } } u8 rtw_btcoex_parse_HCI_BT_coex_notify_cmd(_adapter *padapter, u8 *pcmd, u16 cmdlen) { u8 localBuf[6] = ""; u8 *pRetPar; u8 len = 0, tx_event_length = 0; rtw_HCI_event *pEvent; RTW_HCI_STATUS status = HCI_STATUS_SUCCESS; { pEvent = (rtw_HCI_event *)(&localBuf[0]); pEvent->EventCode = HCI_EVENT_COMMAND_COMPLETE; pEvent->Data[0] = 0x1; /* packet # */ pEvent->Data[1] = HCIOPCODELOW(HCI_BT_COEX_NOTIFY, OGF_EXTENSION); pEvent->Data[2] = HCIOPCODEHIGHT(HCI_BT_COEX_NOTIFY, OGF_EXTENSION); len = len + 3; /* Return parameters starts from here */ pRetPar = &pEvent->Data[len]; pRetPar[0] = status; /* status */ len++; pEvent->Length = len; /* total tx event length + EventCode length + sizeof(length) */ tx_event_length = pEvent->Length + 2; status = rtw_btcoex_sendmsgbysocket(padapter, (u8 *)pEvent, tx_event_length, _FALSE); return status; /* bthci_IndicateEvent(Adapter, PPacketIrpEvent, len+2); */ } } u8 rtw_btcoex_parse_HCI_BT_operation_notify_cmd(_adapter *padapter, u8 *pcmd, u16 cmdlen) { u8 localBuf[6] = ""; u8 *pRetPar; u8 len = 0, tx_event_length = 0; rtw_HCI_event *pEvent; RTW_HCI_STATUS status = HCI_STATUS_SUCCESS; RTW_INFO("%s, OP code: %d\n", __func__, pcmd[0]); switch (pcmd[0]) { case HCI_BT_OP_NONE: RTW_INFO("[bt operation] : Operation None!!\n"); break; case HCI_BT_OP_INQUIRY_START: RTW_INFO("[bt operation] : Inquiry start!!\n"); break; case HCI_BT_OP_INQUIRY_FINISH: RTW_INFO("[bt operation] : Inquiry finished!!\n"); break; case HCI_BT_OP_PAGING_START: RTW_INFO("[bt operation] : Paging is started!!\n"); break; case HCI_BT_OP_PAGING_SUCCESS: RTW_INFO("[bt operation] : Paging complete successfully!!\n"); break; case HCI_BT_OP_PAGING_UNSUCCESS: RTW_INFO("[bt operation] : Paging complete unsuccessfully!!\n"); break; case HCI_BT_OP_PAIRING_START: RTW_INFO("[bt operation] : Pairing start!!\n"); break; case HCI_BT_OP_PAIRING_FINISH: RTW_INFO("[bt operation] : Pairing finished!!\n"); break; case HCI_BT_OP_BT_DEV_ENABLE: RTW_INFO("[bt operation] : BT Device is enabled!!\n"); break; case HCI_BT_OP_BT_DEV_DISABLE: RTW_INFO("[bt operation] : BT Device is disabled!!\n"); break; default: RTW_INFO("[bt operation] : Unknown, error!!\n"); break; } /* send complete event to BT */ { pEvent = (rtw_HCI_event *)(&localBuf[0]); pEvent->EventCode = HCI_EVENT_COMMAND_COMPLETE; pEvent->Data[0] = 0x1; /* packet # */ pEvent->Data[1] = HCIOPCODELOW(HCI_BT_OPERATION_NOTIFY, OGF_EXTENSION); pEvent->Data[2] = HCIOPCODEHIGHT(HCI_BT_OPERATION_NOTIFY, OGF_EXTENSION); len = len + 3; /* Return parameters starts from here */ pRetPar = &pEvent->Data[len]; pRetPar[0] = status; /* status */ len++; pEvent->Length = len; /* total tx event length + EventCode length + sizeof(length) */ tx_event_length = pEvent->Length + 2; status = rtw_btcoex_sendmsgbysocket(padapter, (u8 *)pEvent, tx_event_length, _FALSE); return status; /* bthci_IndicateEvent(Adapter, PPacketIrpEvent, len+2); */ } } u8 rtw_btcoex_parse_BT_AFH_MAP_notify_cmd(_adapter *padapter, u8 *pcmd, u16 cmdlen) { u8 localBuf[6] = ""; u8 *pRetPar; u8 len = 0, tx_event_length = 0; rtw_HCI_event *pEvent; RTW_HCI_STATUS status = HCI_STATUS_SUCCESS; { pEvent = (rtw_HCI_event *)(&localBuf[0]); pEvent->EventCode = HCI_EVENT_COMMAND_COMPLETE; pEvent->Data[0] = 0x1; /* packet # */ pEvent->Data[1] = HCIOPCODELOW(HCI_BT_AFH_MAP_NOTIFY, OGF_EXTENSION); pEvent->Data[2] = HCIOPCODEHIGHT(HCI_BT_AFH_MAP_NOTIFY, OGF_EXTENSION); len = len + 3; /* Return parameters starts from here */ pRetPar = &pEvent->Data[len]; pRetPar[0] = status; /* status */ len++; pEvent->Length = len; /* total tx event length + EventCode length + sizeof(length) */ tx_event_length = pEvent->Length + 2; status = rtw_btcoex_sendmsgbysocket(padapter, (u8 *)pEvent, tx_event_length, _FALSE); return status; /* bthci_IndicateEvent(Adapter, PPacketIrpEvent, len+2); */ } } u8 rtw_btcoex_parse_BT_register_val_notify_cmd(_adapter *padapter, u8 *pcmd, u16 cmdlen) { u8 localBuf[6] = ""; u8 *pRetPar; u8 len = 0, tx_event_length = 0; rtw_HCI_event *pEvent; RTW_HCI_STATUS status = HCI_STATUS_SUCCESS; { pEvent = (rtw_HCI_event *)(&localBuf[0]); pEvent->EventCode = HCI_EVENT_COMMAND_COMPLETE; pEvent->Data[0] = 0x1; /* packet # */ pEvent->Data[1] = HCIOPCODELOW(HCI_BT_REGISTER_VALUE_NOTIFY, OGF_EXTENSION); pEvent->Data[2] = HCIOPCODEHIGHT(HCI_BT_REGISTER_VALUE_NOTIFY, OGF_EXTENSION); len = len + 3; /* Return parameters starts from here */ pRetPar = &pEvent->Data[len]; pRetPar[0] = status; /* status */ len++; pEvent->Length = len; /* total tx event length + EventCode length + sizeof(length) */ tx_event_length = pEvent->Length + 2; status = rtw_btcoex_sendmsgbysocket(padapter, (u8 *)pEvent, tx_event_length, _FALSE); return status; /* bthci_IndicateEvent(Adapter, PPacketIrpEvent, len+2); */ } } u8 rtw_btcoex_parse_HCI_BT_abnormal_notify_cmd(_adapter *padapter, u8 *pcmd, u16 cmdlen) { u8 localBuf[6] = ""; u8 *pRetPar; u8 len = 0, tx_event_length = 0; rtw_HCI_event *pEvent; RTW_HCI_STATUS status = HCI_STATUS_SUCCESS; { pEvent = (rtw_HCI_event *)(&localBuf[0]); pEvent->EventCode = HCI_EVENT_COMMAND_COMPLETE; pEvent->Data[0] = 0x1; /* packet # */ pEvent->Data[1] = HCIOPCODELOW(HCI_BT_ABNORMAL_NOTIFY, OGF_EXTENSION); pEvent->Data[2] = HCIOPCODEHIGHT(HCI_BT_ABNORMAL_NOTIFY, OGF_EXTENSION); len = len + 3; /* Return parameters starts from here */ pRetPar = &pEvent->Data[len]; pRetPar[0] = status; /* status */ len++; pEvent->Length = len; /* total tx event length + EventCode length + sizeof(length) */ tx_event_length = pEvent->Length + 2; status = rtw_btcoex_sendmsgbysocket(padapter, (u8 *)pEvent, tx_event_length, _FALSE); return status; /* bthci_IndicateEvent(Adapter, PPacketIrpEvent, len+2); */ } } u8 rtw_btcoex_parse_HCI_query_RF_status_cmd(_adapter *padapter, u8 *pcmd, u16 cmdlen) { u8 localBuf[6] = ""; u8 *pRetPar; u8 len = 0, tx_event_length = 0; rtw_HCI_event *pEvent; RTW_HCI_STATUS status = HCI_STATUS_SUCCESS; { pEvent = (rtw_HCI_event *)(&localBuf[0]); pEvent->EventCode = HCI_EVENT_COMMAND_COMPLETE; pEvent->Data[0] = 0x1; /* packet # */ pEvent->Data[1] = HCIOPCODELOW(HCI_QUERY_RF_STATUS, OGF_EXTENSION); pEvent->Data[2] = HCIOPCODEHIGHT(HCI_QUERY_RF_STATUS, OGF_EXTENSION); len = len + 3; /* Return parameters starts from here */ pRetPar = &pEvent->Data[len]; pRetPar[0] = status; /* status */ len++; pEvent->Length = len; /* total tx event length + EventCode length + sizeof(length) */ tx_event_length = pEvent->Length + 2; status = rtw_btcoex_sendmsgbysocket(padapter, (u8 *)pEvent, tx_event_length, _FALSE); return status; /* bthci_IndicateEvent(Adapter, PPacketIrpEvent, len+2); */ } } /***************************************** * HCI cmd format : *| 15 - 0 | *| OPcode (OCF|OGF<<10) | *| 15 - 8 |7 - 0 | *|Cmd para |Cmd para Length | *|Cmd para...... | ******************************************/ /* bit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 * | OCF | OGF | */ void rtw_btcoex_parse_hci_extend_cmd(_adapter *padapter, u8 *pcmd, u16 len, const u16 hci_OCF) { RTW_INFO("%s: OCF: %x\n", __func__, hci_OCF); switch (hci_OCF) { case HCI_EXTENSION_VERSION_NOTIFY: RTW_INFO("HCI_EXTENSION_VERSION_NOTIFY\n"); rtw_btcoex_parse_HCI_Ver_notify_cmd(padapter, pcmd, len); break; case HCI_LINK_STATUS_NOTIFY: RTW_INFO("HCI_LINK_STATUS_NOTIFY\n"); rtw_btcoex_parse_HCI_link_status_notify_cmd(padapter, pcmd, len); break; case HCI_BT_OPERATION_NOTIFY: /* only for 8723a 2ant */ RTW_INFO("HCI_BT_OPERATION_NOTIFY\n"); rtw_btcoex_parse_HCI_BT_operation_notify_cmd(padapter, pcmd, len); /* */ break; case HCI_ENABLE_WIFI_SCAN_NOTIFY: RTW_INFO("HCI_ENABLE_WIFI_SCAN_NOTIFY\n"); rtw_btcoex_parse_WIFI_scan_notify_cmd(padapter, pcmd, len); break; case HCI_QUERY_RF_STATUS: /* only for 8723b 2ant */ RTW_INFO("HCI_QUERY_RF_STATUS\n"); rtw_btcoex_parse_HCI_query_RF_status_cmd(padapter, pcmd, len); break; case HCI_BT_ABNORMAL_NOTIFY: RTW_INFO("HCI_BT_ABNORMAL_NOTIFY\n"); rtw_btcoex_parse_HCI_BT_abnormal_notify_cmd(padapter, pcmd, len); break; case HCI_BT_INFO_NOTIFY: RTW_INFO("HCI_BT_INFO_NOTIFY\n"); rtw_btcoex_parse_BT_info_notify_cmd(padapter, pcmd, len); break; case HCI_BT_COEX_NOTIFY: RTW_INFO("HCI_BT_COEX_NOTIFY\n"); rtw_btcoex_parse_HCI_BT_coex_notify_cmd(padapter, pcmd, len); break; case HCI_BT_PATCH_VERSION_NOTIFY: RTW_INFO("HCI_BT_PATCH_VERSION_NOTIFY\n"); rtw_btcoex_parse_BT_patch_ver_info_cmd(padapter, pcmd, len); break; case HCI_BT_AFH_MAP_NOTIFY: RTW_INFO("HCI_BT_AFH_MAP_NOTIFY\n"); rtw_btcoex_parse_BT_AFH_MAP_notify_cmd(padapter, pcmd, len); break; case HCI_BT_REGISTER_VALUE_NOTIFY: RTW_INFO("HCI_BT_REGISTER_VALUE_NOTIFY\n"); rtw_btcoex_parse_BT_register_val_notify_cmd(padapter, pcmd, len); break; default: RTW_INFO("ERROR!!! Unknown OCF: %x\n", hci_OCF); break; } } void rtw_btcoex_parse_hci_cmd(_adapter *padapter, u8 *pcmd, u16 len) { u16 opcode = pcmd[0] | pcmd[1] << 8; u16 hci_OGF = HCI_OGF(opcode); u16 hci_OCF = HCI_OCF(opcode); u8 cmdlen = len - 3; u8 pare_len = pcmd[2]; RTW_INFO("%s OGF: %x,OCF: %x\n", __func__, hci_OGF, hci_OCF); switch (hci_OGF) { case OGF_EXTENSION: RTW_INFO("HCI_EXTENSION_CMD_OGF\n"); rtw_btcoex_parse_hci_extend_cmd(padapter, &pcmd[3], cmdlen, hci_OCF); break; default: RTW_INFO("Other OGF: %x\n", hci_OGF); break; } } u16 rtw_btcoex_parse_recv_data(u8 *msg, u8 msg_size) { u8 cmp_msg1[32] = attend_ack; u8 cmp_msg2[32] = leave_ack; u8 cmp_msg3[32] = bt_leave; u8 cmp_msg4[32] = invite_req; u8 cmp_msg5[32] = attend_req; u8 cmp_msg6[32] = invite_rsp; u8 res = OTHER; if (_rtw_memcmp(cmp_msg1, msg, msg_size) == _TRUE) { /*RTW_INFO("%s, msg:%s\n",__func__,msg);*/ res = RX_ATTEND_ACK; } else if (_rtw_memcmp(cmp_msg2, msg, msg_size) == _TRUE) { /*RTW_INFO("%s, msg:%s\n",__func__,msg);*/ res = RX_LEAVE_ACK; } else if (_rtw_memcmp(cmp_msg3, msg, msg_size) == _TRUE) { /*RTW_INFO("%s, msg:%s\n",__func__,msg);*/ res = RX_BT_LEAVE; } else if (_rtw_memcmp(cmp_msg4, msg, msg_size) == _TRUE) { /*RTW_INFO("%s, msg:%s\n",__func__,msg);*/ res = RX_INVITE_REQ; } else if (_rtw_memcmp(cmp_msg5, msg, msg_size) == _TRUE) res = RX_ATTEND_REQ; else if (_rtw_memcmp(cmp_msg6, msg, msg_size) == _TRUE) res = RX_INVITE_RSP; else { /*RTW_INFO("%s, %s\n", __func__, msg);*/ res = OTHER; } /*RTW_INFO("%s, res:%d\n", __func__, res);*/ return res; } void rtw_btcoex_recvmsgbysocket(void *data) { u8 recv_data[255]; u8 tx_msg[255] = leave_ack; u32 len = 0; u16 recv_length = 0; u16 parse_res = 0; #if 0 u8 para_len = 0, polling_enable = 0, poling_interval = 0, reason = 0, btinfo_len = 0; u8 btinfo[BT_INFO_LEN] = {0}; #endif struct bt_coex_info *pcoex_info = NULL; struct sock *sk = NULL; struct sk_buff *skb = NULL; /*RTW_INFO("%s\n",__func__);*/ if (pbtcoexadapter == NULL) { RTW_INFO("%s: btcoexadapter NULL!\n", __func__); return; } pcoex_info = &pbtcoexadapter->coex_info; sk = pcoex_info->sk_store; if (sk == NULL) { RTW_INFO("%s: critical error when receive socket data!\n", __func__); return; } len = skb_queue_len(&sk->sk_receive_queue); while (len > 0) { skb = skb_dequeue(&sk->sk_receive_queue); /*important: cut the udp header from skb->data! header length is 8 byte*/ recv_length = skb->len - 8; _rtw_memset(recv_data, 0, sizeof(recv_data)); _rtw_memcpy(recv_data, skb->data + 8, recv_length); parse_res = rtw_btcoex_parse_recv_data(recv_data, recv_length); #if 0 if (RX_ATTEND_ACK == parse_res) { /* attend ack */ pcoex_info->BT_attend = _TRUE; RTW_INFO("RX_ATTEND_ACK!,sock_open:%d, BT_attend:%d\n", pcoex_info->sock_open, pcoex_info->BT_attend); } else if (RX_ATTEND_REQ == parse_res) { /* attend req from BT */ pcoex_info->BT_attend = _TRUE; RTW_INFO("RX_BT_ATTEND_REQ!,sock_open:%d, BT_attend:%d\n", pcoex_info->sock_open, pcoex_info->BT_attend); rtw_btcoex_sendmsgbysocket(pbtcoexadapter, attend_ack, sizeof(attend_ack), _FALSE); } else if (RX_INVITE_REQ == parse_res) { /* invite req from BT */ pcoex_info->BT_attend = _TRUE; RTW_INFO("RX_INVITE_REQ!,sock_open:%d, BT_attend:%d\n", pcoex_info->sock_open, pcoex_info->BT_attend); rtw_btcoex_sendmsgbysocket(pbtcoexadapter, invite_rsp, sizeof(invite_rsp), _FALSE); } else if (RX_INVITE_RSP == parse_res) { /* invite rsp */ pcoex_info->BT_attend = _TRUE; RTW_INFO("RX_INVITE_RSP!,sock_open:%d, BT_attend:%d\n", pcoex_info->sock_open, pcoex_info->BT_attend); } else if (RX_LEAVE_ACK == parse_res) { /* mean BT know wifi will leave */ pcoex_info->BT_attend = _FALSE; RTW_INFO("RX_LEAVE_ACK!,sock_open:%d, BT_attend:%d\n", pcoex_info->sock_open, pcoex_info->BT_attend); } else if (RX_BT_LEAVE == parse_res) { /* BT leave */ rtw_btcoex_sendmsgbysocket(pbtcoexadapter, leave_ack, sizeof(leave_ack), _FALSE); /* no ack */ pcoex_info->BT_attend = _FALSE; RTW_INFO("RX_BT_LEAVE!sock_open:%d, BT_attend:%d\n", pcoex_info->sock_open, pcoex_info->BT_attend); } else { /* todo: check if recv data are really hci cmds */ if (_TRUE == pcoex_info->BT_attend) rtw_btcoex_parse_hci_cmd(pbtcoexadapter, recv_data, recv_length); } #endif switch (parse_res) { case RX_ATTEND_ACK: /* attend ack */ pcoex_info->BT_attend = _TRUE; RTW_INFO("RX_ATTEND_ACK!,sock_open:%d, BT_attend:%d\n", pcoex_info->sock_open, pcoex_info->BT_attend); rtw_btcoex_pta_off_on_notify(pbtcoexadapter, pcoex_info->BT_attend); break; case RX_ATTEND_REQ: pcoex_info->BT_attend = _TRUE; RTW_INFO("RX_BT_ATTEND_REQ!,sock_open:%d, BT_attend:%d\n", pcoex_info->sock_open, pcoex_info->BT_attend); rtw_btcoex_sendmsgbysocket(pbtcoexadapter, attend_ack, sizeof(attend_ack), _FALSE); rtw_btcoex_pta_off_on_notify(pbtcoexadapter, pcoex_info->BT_attend); break; case RX_INVITE_REQ: /* invite req from BT */ pcoex_info->BT_attend = _TRUE; RTW_INFO("RX_INVITE_REQ!,sock_open:%d, BT_attend:%d\n", pcoex_info->sock_open, pcoex_info->BT_attend); rtw_btcoex_sendmsgbysocket(pbtcoexadapter, invite_rsp, sizeof(invite_rsp), _FALSE); rtw_btcoex_pta_off_on_notify(pbtcoexadapter, pcoex_info->BT_attend); break; case RX_INVITE_RSP: /*invite rsp*/ pcoex_info->BT_attend = _TRUE; RTW_INFO("RX_INVITE_RSP!,sock_open:%d, BT_attend:%d\n", pcoex_info->sock_open, pcoex_info->BT_attend); rtw_btcoex_pta_off_on_notify(pbtcoexadapter, pcoex_info->BT_attend); break; case RX_LEAVE_ACK: /* mean BT know wifi will leave */ pcoex_info->BT_attend = _FALSE; RTW_INFO("RX_LEAVE_ACK!,sock_open:%d, BT_attend:%d\n", pcoex_info->sock_open, pcoex_info->BT_attend); rtw_btcoex_pta_off_on_notify(pbtcoexadapter, pcoex_info->BT_attend); break; case RX_BT_LEAVE: /* BT leave */ rtw_btcoex_sendmsgbysocket(pbtcoexadapter, leave_ack, sizeof(leave_ack), _FALSE); /* no ack */ pcoex_info->BT_attend = _FALSE; RTW_INFO("RX_BT_LEAVE!sock_open:%d, BT_attend:%d\n", pcoex_info->sock_open, pcoex_info->BT_attend); rtw_btcoex_pta_off_on_notify(pbtcoexadapter, pcoex_info->BT_attend); break; default: if (_TRUE == pcoex_info->BT_attend) rtw_btcoex_parse_hci_cmd(pbtcoexadapter, recv_data, recv_length); else RTW_INFO("ERROR!! BT is UP\n"); break; } len--; kfree_skb(skb); } } #if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0)) void rtw_btcoex_recvmsg_init(struct sock *sk_in, s32 bytes) #else void rtw_btcoex_recvmsg_init(struct sock *sk_in) #endif { struct bt_coex_info *pcoex_info = NULL; if (pbtcoexadapter == NULL) { RTW_INFO("%s: btcoexadapter NULL\n", __func__); return; } pcoex_info = &pbtcoexadapter->coex_info; pcoex_info->sk_store = sk_in; if (pcoex_info->btcoex_wq != NULL) queue_delayed_work(pcoex_info->btcoex_wq, &pcoex_info->recvmsg_work, 0); else RTW_INFO("%s: BTCOEX workqueue NULL\n", __func__); } u8 rtw_btcoex_sendmsgbysocket(_adapter *padapter, u8 *msg, u8 msg_size, bool force) { u8 error; struct msghdr udpmsg; mm_segment_t oldfs; struct iovec iov; struct bt_coex_info *pcoex_info = &padapter->coex_info; /* RTW_INFO("%s: msg:%s, force:%s\n", __func__, msg, force == _TRUE?"TRUE":"FALSE"); */ if (_FALSE == force) { if (_FALSE == pcoex_info->BT_attend) { RTW_INFO("TX Blocked: WiFi-BT disconnected\n"); return _FAIL; } } iov.iov_base = (void *)msg; iov.iov_len = msg_size; udpmsg.msg_name = &pcoex_info->bt_sockaddr; udpmsg.msg_namelen = sizeof(struct sockaddr_in); #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)) /* referece:sock_xmit in kernel code * WRITE for sock_sendmsg, READ for sock_recvmsg * third parameter for msg_iovlen * last parameter for iov_len */ iov_iter_init(&udpmsg.msg_iter, WRITE, &iov, 1, msg_size); #else udpmsg.msg_iov = &iov; udpmsg.msg_iovlen = 1; #endif udpmsg.msg_control = NULL; udpmsg.msg_controllen = 0; udpmsg.msg_flags = MSG_DONTWAIT | MSG_NOSIGNAL; oldfs = get_fs(); set_fs(KERNEL_DS); #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0)) error = sock_sendmsg(pcoex_info->udpsock, &udpmsg); #else error = sock_sendmsg(pcoex_info->udpsock, &udpmsg, msg_size); #endif set_fs(oldfs); if (error < 0) { RTW_INFO("Error when sendimg msg, error:%d\n", error); return _FAIL; } else return _SUCCESS; } u8 rtw_btcoex_create_kernel_socket(_adapter *padapter) { s8 kernel_socket_err; u8 tx_msg[255] = attend_req; struct bt_coex_info *pcoex_info = &padapter->coex_info; s32 sock_reuse = 1; u8 status = _FAIL; RTW_INFO("%s CONNECT_PORT %d\n", __func__, CONNECT_PORT); if (NULL == pcoex_info) { RTW_INFO("coex_info: NULL\n"); status = _FAIL; } kernel_socket_err = sock_create(PF_INET, SOCK_DGRAM, 0, &pcoex_info->udpsock); if (kernel_socket_err < 0) { RTW_INFO("Error during creation of socket error:%d\n", kernel_socket_err); status = _FAIL; } else { _rtw_memset(&(pcoex_info->wifi_sockaddr), 0, sizeof(pcoex_info->wifi_sockaddr)); pcoex_info->wifi_sockaddr.sin_family = AF_INET; pcoex_info->wifi_sockaddr.sin_port = htons(CONNECT_PORT); pcoex_info->wifi_sockaddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); _rtw_memset(&(pcoex_info->bt_sockaddr), 0, sizeof(pcoex_info->bt_sockaddr)); pcoex_info->bt_sockaddr.sin_family = AF_INET; pcoex_info->bt_sockaddr.sin_port = htons(CONNECT_PORT_BT); pcoex_info->bt_sockaddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); pcoex_info->sk_store = NULL; kernel_socket_err = pcoex_info->udpsock->ops->bind(pcoex_info->udpsock, (struct sockaddr *)&pcoex_info->wifi_sockaddr, sizeof(pcoex_info->wifi_sockaddr)); if (kernel_socket_err == 0) { RTW_INFO("binding socket success\n"); pcoex_info->udpsock->sk->sk_data_ready = rtw_btcoex_recvmsg_init; pcoex_info->sock_open |= KERNEL_SOCKET_OK; pcoex_info->BT_attend = _FALSE; RTW_INFO("WIFI sending attend_req\n"); rtw_btcoex_sendmsgbysocket(padapter, attend_req, sizeof(attend_req), _TRUE); status = _SUCCESS; } else { pcoex_info->BT_attend = _FALSE; sock_release(pcoex_info->udpsock); /* bind fail release socket */ RTW_INFO("Error binding socket: %d\n", kernel_socket_err); status = _FAIL; } } return status; } void rtw_btcoex_close_kernel_socket(_adapter *padapter) { struct bt_coex_info *pcoex_info = &padapter->coex_info; if (pcoex_info->sock_open & KERNEL_SOCKET_OK) { RTW_INFO("release kernel socket\n"); sock_release(pcoex_info->udpsock); pcoex_info->sock_open &= ~(KERNEL_SOCKET_OK); if (_TRUE == pcoex_info->BT_attend) pcoex_info->BT_attend = _FALSE; RTW_INFO("sock_open:%d, BT_attend:%d\n", pcoex_info->sock_open, pcoex_info->BT_attend); } } void rtw_btcoex_init_socket(_adapter *padapter) { u8 is_invite = _FALSE; struct bt_coex_info *pcoex_info = &padapter->coex_info; RTW_INFO("%s\n", __func__); if (_FALSE == pcoex_info->is_exist) { _rtw_memset(pcoex_info, 0, sizeof(struct bt_coex_info)); pcoex_info->btcoex_wq = create_workqueue("BTCOEX"); INIT_DELAYED_WORK(&pcoex_info->recvmsg_work, (void *)rtw_btcoex_recvmsgbysocket); pbtcoexadapter = padapter; /* We expect BT is off if BT don't send ack to wifi */ RTW_INFO("We expect BT is off if BT send ack to wifi\n"); rtw_btcoex_pta_off_on_notify(pbtcoexadapter, _FALSE); if (rtw_btcoex_create_kernel_socket(padapter) == _SUCCESS) pcoex_info->is_exist = _TRUE; else { pcoex_info->is_exist = _FALSE; pbtcoexadapter = NULL; } RTW_INFO("%s: pbtcoexadapter:%p, coex_info->is_exist: %s\n" , __func__, pbtcoexadapter, pcoex_info->is_exist == _TRUE ? "TRUE" : "FALSE"); } } void rtw_btcoex_close_socket(_adapter *padapter) { struct bt_coex_info *pcoex_info = &padapter->coex_info; RTW_INFO("%s--coex_info->is_exist: %s, pcoex_info->BT_attend:%s\n" , __func__, pcoex_info->is_exist == _TRUE ? "TRUE" : "FALSE", pcoex_info->BT_attend == _TRUE ? "TRUE" : "FALSE"); if (_TRUE == pcoex_info->is_exist) { if (_TRUE == pcoex_info->BT_attend) { /*inform BT wifi leave*/ rtw_btcoex_sendmsgbysocket(padapter, wifi_leave, sizeof(wifi_leave), _FALSE); msleep(50); } if (pcoex_info->btcoex_wq != NULL) { flush_workqueue(pcoex_info->btcoex_wq); destroy_workqueue(pcoex_info->btcoex_wq); } rtw_btcoex_close_kernel_socket(padapter); pbtcoexadapter = NULL; pcoex_info->is_exist = _FALSE; } } void rtw_btcoex_dump_tx_msg(u8 *tx_msg, u8 len, u8 *msg_name) { u8 i = 0; RTW_INFO("======> Msg name: %s\n", msg_name); for (i = 0; i < len; i++) printk("%02x ", tx_msg[i]); printk("\n"); RTW_INFO("Msg name: %s <======\n", msg_name); } /* Porting from Windows team */ void rtw_btcoex_SendEventExtBtCoexControl(PADAPTER padapter, u8 bNeedDbgRsp, u8 dataLen, void *pData) { u8 len = 0, tx_event_length = 0; u8 localBuf[32] = ""; u8 *pRetPar; u8 opCode = 0; u8 *pInBuf = (pu1Byte)pData; u8 *pOpCodeContent; rtw_HCI_event *pEvent; opCode = pInBuf[0]; RTW_INFO("%s, OPCode:%02x\n", __func__, opCode); pEvent = (rtw_HCI_event *)(&localBuf[0]); /* len += bthci_ExtensionEventHeaderRtk(&localBuf[0], */ /* HCI_EVENT_EXT_BT_COEX_CONTROL); */ pEvent->EventCode = HCI_EVENT_EXTENSION_RTK; pEvent->Data[0] = HCI_EVENT_EXT_BT_COEX_CONTROL; /* extension event code */ len++; /* Return parameters starts from here */ pRetPar = &pEvent->Data[len]; _rtw_memcpy(&pRetPar[0], pData, dataLen); len += dataLen; pEvent->Length = len; /* total tx event length + EventCode length + sizeof(length) */ tx_event_length = pEvent->Length + 2; #if 0 rtw_btcoex_dump_tx_msg((u8 *)pEvent, tx_event_length, "BT COEX CONTROL", _FALSE); #endif rtw_btcoex_sendmsgbysocket(padapter, (u8 *)pEvent, tx_event_length, _FALSE); } /* Porting from Windows team */ void rtw_btcoex_SendEventExtBtInfoControl(PADAPTER padapter, u8 dataLen, void *pData) { rtw_HCI_event *pEvent; u8 *pRetPar; u8 len = 0, tx_event_length = 0; u8 localBuf[32] = ""; struct bt_coex_info *pcoex_info = &padapter->coex_info; PBT_MGNT pBtMgnt = &pcoex_info->BtMgnt; /* RTW_INFO("%s\n",__func__);*/ if (pBtMgnt->ExtConfig.HCIExtensionVer < 4) { /* not support */ RTW_INFO("ERROR: HCIExtensionVer = %d, HCIExtensionVer<4 !!!!\n", pBtMgnt->ExtConfig.HCIExtensionVer); return; } pEvent = (rtw_HCI_event *)(&localBuf[0]); /* len += bthci_ExtensionEventHeaderRtk(&localBuf[0], */ /* HCI_EVENT_EXT_BT_INFO_CONTROL); */ pEvent->EventCode = HCI_EVENT_EXTENSION_RTK; pEvent->Data[0] = HCI_EVENT_EXT_BT_INFO_CONTROL; /* extension event code */ len++; /* Return parameters starts from here */ pRetPar = &pEvent->Data[len]; _rtw_memcpy(&pRetPar[0], pData, dataLen); len += dataLen; pEvent->Length = len; /* total tx event length + EventCode length + sizeof(length) */ tx_event_length = pEvent->Length + 2; #if 0 rtw_btcoex_dump_tx_msg((u8 *)pEvent, tx_event_length, "BT INFO CONTROL"); #endif rtw_btcoex_sendmsgbysocket(padapter, (u8 *)pEvent, tx_event_length, _FALSE); } void rtw_btcoex_SendScanNotify(PADAPTER padapter, u8 scanType) { u8 len = 0, tx_event_length = 0; u8 localBuf[7] = ""; u8 *pRetPar; u8 *pu1Temp; rtw_HCI_event *pEvent; struct bt_coex_info *pcoex_info = &padapter->coex_info; PBT_MGNT pBtMgnt = &pcoex_info->BtMgnt; /* if(!pBtMgnt->BtOperationOn) * return; */ pEvent = (rtw_HCI_event *)(&localBuf[0]); /* len += bthci_ExtensionEventHeaderRtk(&localBuf[0], * HCI_EVENT_EXT_WIFI_SCAN_NOTIFY); */ pEvent->EventCode = HCI_EVENT_EXTENSION_RTK; pEvent->Data[0] = HCI_EVENT_EXT_WIFI_SCAN_NOTIFY; /* extension event code */ len++; /* Return parameters starts from here */ /* pRetPar = &PPacketIrpEvent->Data[len]; */ /* pu1Temp = (u8 *)&pRetPar[0]; */ /* *pu1Temp = scanType; */ pEvent->Data[len] = scanType; len += 1; pEvent->Length = len; /* total tx event length + EventCode length + sizeof(length) */ tx_event_length = pEvent->Length + 2; #if 0 rtw_btcoex_dump_tx_msg((u8 *)pEvent, tx_event_length, "WIFI SCAN OPERATION"); #endif rtw_btcoex_sendmsgbysocket(padapter, (u8 *)pEvent, tx_event_length, _FALSE); } #endif /* CONFIG_BT_COEXIST_SOCKET_TRX */ #endif /* CONFIG_BT_COEXIST */
the_stack_data/830178.c
#include <stdio.h> #include <string.h> #include <stdint.h> #include <inttypes.h> int main() { int x = 1, y = 2; intptr_t ux = (intptr_t)&x; intptr_t uy = (intptr_t)&y; intptr_t offset = uy - ux; printf("Addresses: &x=%"PRIiPTR" &y=%"PRIiPTR\ " offset=%"PRIiPTR" \n",ux,uy,offset); int *p = (int *)(ux + offset); int *q = &y; if (memcmp(&p, &q, sizeof(p)) == 0) { *p = 11; // is this free of undefined behaviour? printf("x=%d y=%d *p=%d *q=%d\n",x,y,*p,*q); } }
the_stack_data/115765877.c
void fence() { asm("sync"); } void lwfence() { asm("lwsync"); } void isync() { asm("isync"); } int __unbuffered_cnt = 0; int __unbuffered_p0_r1 = 0; int __unbuffered_p0_r3 = 0; int __unbuffered_p1_r1 = 0; int __unbuffered_p1_r3 = 0; int __unbuffered_p2_r1 = 0; int __unbuffered_p2_r3 = 0; int x = 0; int y = 0; int z = 0; void *P0(void *arg) { __unbuffered_p0_r1 = 2; z = __unbuffered_p0_r1; lwfence(); __unbuffered_p0_r3 = 1; x = __unbuffered_p0_r3; // Instrumentation for CPROVER fence(); __unbuffered_cnt++; } void *P1(void *arg) { __unbuffered_p1_r1 = 2; x = __unbuffered_p1_r1; fence(); __unbuffered_p1_r3 = 1; y = __unbuffered_p1_r3; // Instrumentation for CPROVER fence(); __unbuffered_cnt++; } void *P2(void *arg) { __unbuffered_p2_r1 = 2; y = __unbuffered_p2_r1; fence(); __unbuffered_p2_r3 = 1; z = __unbuffered_p2_r3; // Instrumentation for CPROVER fence(); __unbuffered_cnt++; } int main() { __CPROVER_ASYNC_0: P0(0); __CPROVER_ASYNC_1: P1(0); __CPROVER_ASYNC_2: P2(0); __CPROVER_assume(__unbuffered_cnt == 3); fence(); // EXPECT:exists __CPROVER_assert( !(x == 2 && y == 2 && z == 2), "Program was expected to be safe for PPC, model checker should have said " "NO.\nThis likely is a bug in the tool chain."); return 0; }
the_stack_data/73574084.c
#include <stdio.h> #include <omp.h> int thdLim =1024; //__attribute__((amdgpu_flat_work_group_size(1024, 1024))) int main() { int numTeams=128; int N = 12; int NN = 1024; int CUs[numTeams*NN]; int lims[N] , threads[N], Res[numTeams*NN]; int i; for (i=0; i <N; i++) lims[i] = threads[i] = -1; for (i=0; i <N*NN; i++) {Res[i] = -1; CUs[i] = -2;} #pragma omp target teams num_teams(numTeams) thread_limit(1024) map (tofrom: CUs, lims, threads, Res) #pragma omp distribute for (int j=0; j < numTeams; j++) { if (j<N) { lims[j] = omp_get_num_teams(); threads[j] = omp_get_num_threads(); } #pragma omp parallel for for (int i=j*NN; i <(j+1)*NN; i++) { Res[i] = i; CUs[i] = omp_ext_get_smid(); if (i ==1) printf("i= %d\n",i); } if (j == 1) printf("Res 1 CUs 1 %d %d\n", Res[1], CUs[1]); } for (i=0; i <N; i++) { printf("i=%d lims[%d] threads[%d]\n", i, lims[i], threads[i]); } for (i=0; i <numTeams*NN; i++) { if (Res[i] != i) { printf("Failed %d %d\n",i, Res[i]); printf("Failed %d %d\n",i+1, Res[i+1]); return 1; } } //for (i=0; i <numTeams*NN; i++) // printf("CUs %d\n",CUs[i]); return 0; }
the_stack_data/64199451.c
//***************************************************************************** // // startup_ccs.c - Startup code for use with TI's Code Composer Studio. // // Copyright (c) 2010-2012 Texas Instruments Incorporated. All rights reserved. // Software License Agreement // // Texas Instruments (TI) is supplying this software for use solely and // exclusively on TI's microcontroller products. The software is owned by // TI and/or its suppliers, and is protected under applicable copyright // laws. You may not combine this software with "viral" open-source // software in order to form a larger program. // // THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS. // NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT // NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY // CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL // DAMAGES, FOR ANY REASON WHATSOEVER. // // This is part of revision 9107 of the EK-LM3S9B92 Firmware Package. // //***************************************************************************** //***************************************************************************** // // Forward declaration of the default fault handlers. // //***************************************************************************** void ResetISR(void); static void NmiSR(void); static void FaultISR(void); static void IntDefaultHandler(void); //***************************************************************************** // // External declaration for the reset handler that is to be called when the // processor is started // //***************************************************************************** extern void _c_int00(void); //***************************************************************************** // // Linker variable that marks the top of the stack. // //***************************************************************************** extern unsigned long __STACK_TOP; //***************************************************************************** // // External declarations for the interrupt handlers used by the application. // //***************************************************************************** extern void UART1IntHandler(void); extern void uDMAErrorHandler(void); //***************************************************************************** // // The vector table. Note that the proper constructs must be placed on this to // ensure that it ends up at physical address 0x0000.0000 or at the start of // the program if located at a start address other than 0. // //***************************************************************************** #pragma DATA_SECTION(g_pfnVectors, ".intvecs") void (* const g_pfnVectors[])(void) = { (void (*)(void))((unsigned long)&__STACK_TOP), // The initial stack pointer ResetISR, // The reset handler NmiSR, // The NMI handler FaultISR, // The hard fault handler IntDefaultHandler, // The MPU fault handler IntDefaultHandler, // The bus fault handler IntDefaultHandler, // The usage fault handler 0, // Reserved 0, // Reserved 0, // Reserved 0, // Reserved IntDefaultHandler, // SVCall handler IntDefaultHandler, // Debug monitor handler 0, // Reserved IntDefaultHandler, // The PendSV handler IntDefaultHandler, // The SysTick handler IntDefaultHandler, // GPIO Port A IntDefaultHandler, // GPIO Port B IntDefaultHandler, // GPIO Port C IntDefaultHandler, // GPIO Port D IntDefaultHandler, // GPIO Port E IntDefaultHandler, // UART0 Rx and Tx UART1IntHandler, // UART1 Rx and Tx IntDefaultHandler, // SSI0 Rx and Tx IntDefaultHandler, // I2C0 Master and Slave IntDefaultHandler, // PWM Fault IntDefaultHandler, // PWM Generator 0 IntDefaultHandler, // PWM Generator 1 IntDefaultHandler, // PWM Generator 2 IntDefaultHandler, // Quadrature Encoder 0 IntDefaultHandler, // ADC Sequence 0 IntDefaultHandler, // ADC Sequence 1 IntDefaultHandler, // ADC Sequence 2 IntDefaultHandler, // ADC Sequence 3 IntDefaultHandler, // Watchdog timer IntDefaultHandler, // Timer 0 subtimer A IntDefaultHandler, // Timer 0 subtimer B IntDefaultHandler, // Timer 1 subtimer A IntDefaultHandler, // Timer 1 subtimer B IntDefaultHandler, // Timer 2 subtimer A IntDefaultHandler, // Timer 2 subtimer B IntDefaultHandler, // Analog Comparator 0 IntDefaultHandler, // Analog Comparator 1 IntDefaultHandler, // Analog Comparator 2 IntDefaultHandler, // System Control (PLL, OSC, BO) IntDefaultHandler, // FLASH Control IntDefaultHandler, // GPIO Port F IntDefaultHandler, // GPIO Port G IntDefaultHandler, // GPIO Port H IntDefaultHandler, // UART2 Rx and Tx IntDefaultHandler, // SSI1 Rx and Tx IntDefaultHandler, // Timer 3 subtimer A IntDefaultHandler, // Timer 3 subtimer B IntDefaultHandler, // I2C1 Master and Slave IntDefaultHandler, // Quadrature Encoder 1 IntDefaultHandler, // CAN0 IntDefaultHandler, // CAN1 IntDefaultHandler, // CAN2 IntDefaultHandler, // Ethernet IntDefaultHandler, // Hibernate IntDefaultHandler, // USB0 IntDefaultHandler, // PWM Generator 3 IntDefaultHandler, // uDMA Software Transfer uDMAErrorHandler, // uDMA Error IntDefaultHandler, // ADC1 Sequence 0 IntDefaultHandler, // ADC1 Sequence 1 IntDefaultHandler, // ADC1 Sequence 2 IntDefaultHandler, // ADC1 Sequence 3 IntDefaultHandler, // I2S0 IntDefaultHandler, // External Bus Interface 0 IntDefaultHandler // GPIO Port J }; //***************************************************************************** // // This is the code that gets called when the processor first starts execution // following a reset event. Only the absolutely necessary set is performed, // after which the application supplied entry() routine is called. Any fancy // actions (such as making decisions based on the reset cause register, and // resetting the bits in that register) are left solely in the hands of the // application. // //***************************************************************************** void ResetISR(void) { // // Jump to the CCS C initialization routine. // __asm(" .global _c_int00\n" " b.w _c_int00"); } //***************************************************************************** // // This is the code that gets called when the processor receives a NMI. This // simply enters an infinite loop, preserving the system state for examination // by a debugger. // //***************************************************************************** static void NmiSR(void) { // // Enter an infinite loop. // while(1) { } } //***************************************************************************** // // This is the code that gets called when the processor receives a fault // interrupt. This simply enters an infinite loop, preserving the system state // for examination by a debugger. // //***************************************************************************** static void FaultISR(void) { // // Enter an infinite loop. // while(1) { } } //***************************************************************************** // // This is the code that gets called when the processor receives an unexpected // interrupt. This simply enters an infinite loop, preserving the system state // for examination by a debugger. // //***************************************************************************** static void IntDefaultHandler(void) { // // Go into an infinite loop. // while(1) { } }
the_stack_data/51700510.c
#include <string.h> #include <stdio.h> #include <arpa/inet.h> #include <stdarg.h> #define IPHEADERLEN 20 #define IPADDRLEN 16 int count_packets(FILE *fp) { int count = 0; long fileindex = 2L; unsigned char bytes[2]; fseek(fp, fileindex, SEEK_SET); while (fread(bytes, sizeof(char), 2, fp) == 2) { count++; fileindex += (bytes[0] << 8) | bytes[1]; fseek(fp, fileindex, SEEK_SET); } if (!feof(fp)) { perror("Failed to reach end of log file"); return -1; } return count; } int print_summary(FILE *fp) { unsigned char bytes[IPHEADERLEN]; if (fread(bytes, sizeof(char), IPHEADERLEN, fp) != IPHEADERLEN) { perror("Failed to read ip header data from log file"); return 1; } unsigned char ihl = bytes[0] & 0x0F; unsigned short int packetlen = (bytes[2] << 8) | bytes[3]; char srcaddr[IPADDRLEN]; char destaddr[IPADDRLEN]; snprintf(srcaddr, IPADDRLEN, "%u.%u.%u.%u", bytes[12], bytes[13], bytes[14], bytes[15]); snprintf(destaddr, IPADDRLEN, "%u.%u.%u.%u", bytes[16], bytes[17], bytes[18], bytes[19]); //seek to TCP data offset field fseek(fp, (ihl * 4) + 12, SEEK_SET); if (fread(bytes, sizeof(char), 1, fp) != 1) { perror("Failed to read tcp header data from log file"); return 1; } unsigned char tcphl = (bytes[0] & 0xF0) >> 4; int npackets = count_packets(fp); if (npackets < 0) { return 1; } printf("%s %s %u %u %u %d\n", srcaddr, destaddr, ihl, packetlen, tcphl, npackets); return 0; } int main(int argc, char const *argv[]) { if (argc != 2) { perror("Usage: summary <file>"); return 1; } FILE *fp; if ((fp = fopen(argv[1], "rb")) == 0) { perror("Cannot find log file"); return 2; } return print_summary(fp); }
the_stack_data/192331240.c
#include <stdio.h> #include <omp.h> int main() { #pragma omp parallel { int ID = omp_get_thread_num(); printf("hello(%d)", ID); printf(" world(%d) \n", ID); } }
the_stack_data/14197.c
// // Created by Administrator on 2018/5/5. //
the_stack_data/75137558.c
#include <stdio.h> int main(void) { int num1, num2, num3; printf("Informe 3 numeros: "); scanf("%d %d %d", &num1, &num2, &num3); if (num1 > num2 && num1 > num3) { if (num2 > num3) { printf("%d, %d e %d", num1, num2, num3); } else { printf("%d, %d e %d", num1, num3, num2); } } else { if (num2 > num1 && num2 > num3) { if (num1 > num3) { printf("%d, %d e %d", num2, num1, num3); } else { printf("%d, %d e %d", num2, num3, num1); } } else { if (num2 > num1) { printf("%d, %d e %d", num3, num2, num1); } else { printf("%d, %d e %d", num3, num1, num2); } } } return 0; }
the_stack_data/193892917.c
#include <unistd.h> #include <stdlib.h> #include <stdio.h> int main(int argc, char *argv[]) { exit(0); }
the_stack_data/153922.c
#include<stdio.h> int main(){ int n,i,l,cont,c; cont=0; scanf("%d",&n); for(i=1;i<=n;i++){ scanf("%d%d",&l,&c); if(l>c){ cont= cont+c; } } printf("%d",cont); }
the_stack_data/989803.c
#include<stdio.h> #include<stdlib.h> #include<unistd.h> #include<pthread.h> /* Two different kind of operation: default: customers keep comming and when seats are full, leave shop ifdef CUSTBLOCK: generator blocks until a seat is free #define CUSTBLOCK */ int simended = 0; /* if simulation ended */ int nbarbers; int nseats; int tnewcust, tcut; int *seatstate, *barberstate; int freeseat(const int *seatstate) { int i; for (i = 0; i < nseats; i++) if (seatstate[i] == 0) return i; return -1; } void intervalwait(int t, int w) /* wait for a random val in interval [t-w,t+w] *10 miliseconds*/ { int min = (t <= w) ? 0 : t-w; int p = t + w - min; usleep( (min + rand() % p ) * 100000); } struct clist { int cid; /* customer id */ char seat; struct clist *next; } *seats = NULL; struct clist *lastseat = NULL; int onseats = 0; pthread_mutex_t mut_seats = PTHREAD_MUTEX_INITIALIZER; pthread_cond_t cond_custav = PTHREAD_COND_INITIALIZER; #ifdef CUSTBLOCK pthread_cond_t cond_seatfree = PTHREAD_COND_INITIALIZER; #endif pthread_mutex_t mut_out = PTHREAD_MUTEX_INITIALIZER; /* following macro is for mutually exclusive output of independent threads */ #define PRINT(...) pthread_mutex_lock(&mut_out); \ printf(__VA_ARGS__); \ pthread_mutex_unlock(&mut_out); void newcustomer(int id) /* add a new customer to end of queue, thread should hold mut_seats before calling this function */ { if (onseats >= nseats) { /* seats are full, customer drops */ PRINT("customer %d leaves shop, no free seats\n", id); } else { int s; /* insert end of the queue */ struct clist *newcust = malloc(sizeof(struct clist)); newcust->next = NULL; newcust->cid = id; s = freeseat(seatstate); seatstate[s] = id; newcust->seat = s; if (seats == NULL) { seats = lastseat = newcust; } else { lastseat->next = newcust; lastseat = newcust; } /* increment seat count */ onseats++; PRINT("Customer %d sat on seat %d\n", id, s); /* signal a new customer is available to barbers */ pthread_cond_signal(&cond_custav); } } int popcustomer() /* pop first customer in queue, thread should hold mut_seats before calling this function */ { if (onseats == 0 || seats == NULL) { /* no customer!! ERROR */ fprintf(stderr,"no customer waiting, this should not happen\n"); } else { /* delete from start of the queue */ int custid; struct clist *p; p = seats; seats = seats->next; custid = p->cid; seatstate[p->seat] = 0; free(p); /* increment seat count */ onseats--; #ifdef CUSTBLOCK pthread_cond_signal(&cond_seatfree); #endif return custid; } } void *barber(void *p) { int id = *(int *) p; /* id of the barber */ while (1) { int custid; pthread_mutex_lock(&mut_seats); while (onseats == 0) { /* no customers ready, wait... */ if (simended) { PRINT("barber %d is exitting\n", id); pthread_mutex_unlock(&mut_seats); return NULL; } pthread_cond_wait(&cond_custav, &mut_seats); } custid = popcustomer(); barberstate[id] = custid; pthread_mutex_unlock(&mut_seats); /* finished with seats */ PRINT("barber %d started cutting hair of customer %d\n", id, custid); intervalwait(tcut, 20); PRINT("barber %d finished cutting hair of customer %d\n", id, custid); barberstate[id] = 0; } } void *generator(void *p) /* generate customers arriving for simulation */ { int cid = 100; while (!simended) { intervalwait(tnewcust,2); pthread_mutex_lock(&mut_seats); #ifdef CUSTBLOCK while (onseats >= nseats) { PRINT("seats are full, customers blocked\n"); pthread_cond_wait(&cond_seatfree, &mut_seats); } #endif newcustomer(cid); pthread_mutex_unlock(&mut_seats); cid++; } PRINT("generator is stopping\n"); } int main(int argc, char *argv[]) { pthread_t *barbers, genth; int *bids,i; if (argc != 5) { fprintf(stderr, "Usage: %s nbarbers nseats tnewcustomer tcut\n", argv[0]); fprintf(stderr, "Typical run for 3 barbers 4 seats a new customer per 100ms" " cut takes arround 400 ms:\n" "%s 3 4 10 40\n", argv[0]); return 1; } srand(time(NULL)); nbarbers = atoi(argv[1]); nseats = atoi(argv[2]); tnewcust = atoi(argv[3]); tcut = atoi(argv[4]); if (nbarbers <1 || nseats < 2) { fprintf(stderr, "Errors: should have nbabers >= 1, nseats >=2\n"); return 2; } barbers = malloc(sizeof(pthread_t)*nbarbers); bids = malloc(sizeof(int)*nbarbers); seatstate = malloc(nseats*sizeof(int)); barberstate = malloc(nbarbers*sizeof(int)); for (i = 0; i < nbarbers; i++) { bids[i] = i; barberstate[i] = 0; pthread_create(&barbers[i], NULL, barber, (void *) &bids[i]); } pthread_create(&genth, NULL, generator, NULL); /* run simulation for 30 seconds */ sleep(30); simended = 1; pthread_join(genth, NULL); for (i = 0; i < nbarbers; i++) { pthread_join(barbers[i], NULL); } return 0; }
the_stack_data/34513122.c
#include <stdint.h> // NOTE: This is not implemented as a built-in in libmspbuiltins because Clang // doesn't issue calls to operations where result type is different from // argument type. But this case is more efficient and easier to implement than // a full 32-bit multiplication. #ifndef __clang__ #pragma GCC diagnostic ignored "-Wreturn-type" #endif __attribute__((naked)) uint32_t mult16(uint16_t a, uint16_t b) { // NOTE: We have to hardcode addresses, because we ca neither access // definitions from the msp430.h header inside the assembly, nor // parametrize the assembly snippet since function is naked. A non-naked // function with parametrized snipped turned out to be horribly inefficient // (the result construction needs a shift: 8 instructions...). // NOTE: The registers are dependent on compiler calling convention. // Load OP1 and OP2 into the hardware multiplier and read result. #if defined(__clang__) __asm__ volatile ( "MOV R15, &0x04C0\n" "MOV R14, &0x04C8\n" "MOV &0x04CA, R14\n" "MOV &0x04CC, R15\n" "RET\n" ); #elif defined(__GNUC__) __asm__ volatile ( "MOV R12, &0x04C0\n" "MOV R13, &0x04C8\n" "MOV &0x04CA, R12\n" "MOV &0x04CC, R13\n" "RET\n" ); #else #error Unsupported compiler. #endif }
the_stack_data/32559.c
void io_hlt(void); void io_cli(void); void io_out8(int port, int data); int io_load_eflags(void); void io_store_eflags(int eflags); void init_palette(void); void set_palette(int start, int end, unsigned char *rgb); void boxfill8(unsigned char *vram, int xsize, unsigned char c, int x0, int y0, int x1, int y1); void init_screen(char *vram, int x, int y); void putfont8(char *vram, int xsize, int x, int y, char c, char *font); void putfonts8_asc(char *vram, int xsize, int x, int y, char c, unsigned char *s); #define COL8_000000 0 #define COL8_FF0000 1 #define COL8_00FF00 2 #define COL8_FFFF00 3 #define COL8_0000FF 4 #define COL8_FF00FF 5 #define COL8_00FFFF 6 #define COL8_FFFFFF 7 #define COL8_C6C6C6 8 #define COL8_840000 9 #define COL8_008400 10 #define COL8_848400 11 #define COL8_000084 12 #define COL8_840084 13 #define COL8_008484 14 #define COL8_848484 15 struct BOOTINFO { char cyls, leds, vmode, reserve; short scrnx, scrny; char *vram; }; void HariMain(void) { struct BOOTINFO *binfo = (struct BOOTINFO *) 0x0ff0; init_palette(); init_screen(binfo->vram, binfo->scrnx, binfo->scrny); putfonts8_asc(binfo->vram, binfo->scrnx, 9, 9, COL8_FFFFFF, "ABC 123"); putfonts8_asc(binfo->vram, binfo->scrnx, 8, 8, COL8_FF0000, "ABC 123"); putfonts8_asc(binfo->vram, binfo->scrnx, 31, 31, COL8_000000, "Haribote OS."); putfonts8_asc(binfo->vram, binfo->scrnx, 30, 30, COL8_FFFFFF, "Haribote OS."); for (;;) { io_hlt(); } } void init_palette(void) { static unsigned char table_rgb[16 * 3] = { 0x00, 0x00, 0x00, /* 0:黒 */ 0xff, 0x00, 0x00, /* 1:明るい赤 */ 0x00, 0xff, 0x00, /* 2:明るい緑 */ 0xff, 0xff, 0x00, /* 3:明るい黄色 */ 0x00, 0x00, 0xff, /* 4:明るい青 */ 0xff, 0x00, 0xff, /* 5:明るい紫 */ 0x00, 0xff, 0xff, /* 6:明るい水色 */ 0xff, 0xff, 0xff, /* 7:白 */ 0xc6, 0xc6, 0xc6, /* 8:明るい灰色 */ 0x84, 0x00, 0x00, /* 9:暗い赤 */ 0x00, 0x84, 0x00, /* 10:暗い緑 */ 0x84, 0x84, 0x00, /* 11:暗い黄色 */ 0x00, 0x00, 0x84, /* 12:暗い青 */ 0x84, 0x00, 0x84, /* 13:暗い紫 */ 0x00, 0x84, 0x84, /* 14:暗い水色 */ 0x84, 0x84, 0x84 /* 15:暗い灰色 */ }; set_palette(0, 15, table_rgb); return; /* static char 命令は、データにしか使えないけどDB命令相当 */ } void set_palette(int start, int end, unsigned char *rgb) { int i, eflags; eflags = io_load_eflags(); /* 割り込み許可フラグの値を記録する */ io_cli(); /* 許可フラグを0にして割り込み禁止にする */ io_out8(0x03c8, start); for (i = start; i <= end; i++) { io_out8(0x03c9, rgb[0] / 4); io_out8(0x03c9, rgb[1] / 4); io_out8(0x03c9, rgb[2] / 4); rgb += 3; } io_store_eflags(eflags); /* 割り込み許可フラグを元に戻す */ return; } void boxfill8(unsigned char *vram, int xsize, unsigned char c, int x0, int y0, int x1, int y1) { int x, y; for (y = y0; y <= y1; y++) { for (x = x0; x <= x1; x++) vram[y * xsize + x] = c; } return; } void init_screen(char *vram, int x, int y) { boxfill8(vram, x, COL8_008484, 0, 0, x - 1, y - 29); boxfill8(vram, x, COL8_C6C6C6, 0, y - 28, x - 1, y - 28); boxfill8(vram, x, COL8_FFFFFF, 0, y - 27, x - 1, y - 27); boxfill8(vram, x, COL8_C6C6C6, 0, y - 26, x - 1, y - 1); boxfill8(vram, x, COL8_FFFFFF, 3, y - 24, 59, y - 24); boxfill8(vram, x, COL8_FFFFFF, 2, y - 24, 2, y - 4); boxfill8(vram, x, COL8_848484, 3, y - 4, 59, y - 4); boxfill8(vram, x, COL8_848484, 59, y - 23, 59, y - 5); boxfill8(vram, x, COL8_000000, 2, y - 3, 59, y - 3); boxfill8(vram, x, COL8_000000, 60, y - 24, 60, y - 3); boxfill8(vram, x, COL8_848484, x - 47, y - 24, x - 4, y - 24); boxfill8(vram, x, COL8_848484, x - 47, y - 23, x - 47, y - 4); boxfill8(vram, x, COL8_FFFFFF, x - 47, y - 3, x - 4, y - 3); boxfill8(vram, x, COL8_FFFFFF, x - 3, y - 24, x - 3, y - 3); return; } void putfont8(char *vram, int xsize, int x, int y, char c, char *font) { int i; char *p, d /* data */; for (i = 0; i < 16; i++) { p = vram + (y + i) * xsize + x; d = font[i]; if ((d & 0x80) != 0) { p[0] = c; } if ((d & 0x40) != 0) { p[1] = c; } if ((d & 0x20) != 0) { p[2] = c; } if ((d & 0x10) != 0) { p[3] = c; } if ((d & 0x08) != 0) { p[4] = c; } if ((d & 0x04) != 0) { p[5] = c; } if ((d & 0x02) != 0) { p[6] = c; } if ((d & 0x01) != 0) { p[7] = c; } } return; } void putfonts8_asc(char *vram, int xsize, int x, int y, char c, unsigned char *s) { extern char hankaku[4096]; for (; *s != 0x00; s++) { putfont8(vram, xsize, x, y, c, hankaku + *s * 16); x += 8; } return; }
the_stack_data/89200054.c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* handle_s.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: fbafica <[email protected]> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2021/07/16 19:51:56 by fbafica #+# #+# */ /* Updated: 2021/11/12 14:22:05 by fbafica ### ########.fr */ /* */ /* ************************************************************************** */ #include <unistd.h> int handle_s(char *s) { int i; i = 0; if (!s) s = "(null)"; while (s[i] != '\0') { write(1, &s[i], 1); ++i; } return (i); }
the_stack_data/58248.c
/* * Write a function escape(s, t), that converts characters like newline * and tab into visible escape sequences like \n and \t as it copies the * string t to s. Use a switch. Write a function for the other direction * as well, converting escape sequences into the real characters. */ void escape(char s[], char t[]) { int i, j; for (i=0, j=0; t[i] != '\0'; i++) { switch (t[i]) { case '\n': s[j++] = '\\'; s[j++] = 'n'; break; case '\t': s[j++] = '\\'; s[j++] = 't'; break; default: s[j++] = t[i]; break; } } s[j] = '\0'; } void unescape(char s[], char t[]) { int i, j; for (i=0, j=0; t[i] != '\0'; i++) { if ('\\' == t[i]) { switch (t[++i]) { case 't': s[j++] = '\t'; break; case 'n': s[j++] = '\n'; break; default: s[j++] = '\\'; s[j++] = t[i]; break; } } else { s[j++] = t[i]; } } s[j] = '\0'; }
the_stack_data/125141018.c
#include <stdio.h> #include <string.h> void DSP_neg32_c ( const int *x, int * r, int nx ); #pragma DATA_ALIGN(x_c, 8); #pragma DATA_ALIGN(r_c, 8); /* ======================================================================== */ /* Constant dataset. */ /* ======================================================================== */ #define N (256) /* ======================================================================== */ /* Initialize arrays with random test data. */ /* ======================================================================== */ int x_c[N] = { 0x3104521E, 0x4B8AD6BF, 0x5B22DF04, -0x1CB3E263, -0x29CBF198, -0x59BB84A2, 0x69A21107, -0x77C3D2AC, -0x5FAE0476, -0x4964FB64, 0x4170AE36, -0x38CF2BE9, -0x66E180CD, -0x3407FF54, 0x3CC01B95, 0x598620BE, 0x17DD1F86, -0x515F4FE5, 0x40B1B483, 0x29F23F7F, 0x3DBC5B8A, -0x717F354D, -0x5273A0F9, 0x6742479A, 0x7FBDE01E, 0x7B37E91F, 0x049AECAE, -0x75BF7D21, 0x27B39148, 0x42B85805, -0x7B5D8D83, -0x6D3C9BC3, 0x24308447, -0x3E56600B, 0x19EF2642, -0x05070664, -0x3E926933, -0x701C029E, -0x67E15F67, -0x14C7372C, 0x47857F14, -0x597BEC57, -0x0E76BE66, -0x5A1A685C, 0x4F3B8E6B, 0x7F7C9015, 0x1B5CBAD2, 0x0C192BE7, -0x05D52DAE, 0x3139DC61, 0x0199A7F1, -0x695953AA, -0x4BDADB1F, 0x7E6CFC1F, -0x7BC52569, -0x6471BAEC, -0x17BC8701, -0x0B6CC065, -0x4F6243D0, -0x4E06C164, 0x50085EB7, 0x592BC591, -0x3E2D0D35, -0x3FCDEBF8, 0x286037F7, 0x36793CE0, 0x31DEF547, -0x643A2D75, -0x0F8C5536, 0x21FF1919, 0x5420F64C, 0x5F13F8DB, 0x7B9B47D3, -0x0965B6BF, 0x2A8B93B4, -0x14884DB2, -0x02A521B0, -0x7866BFFF, -0x44F485E7, -0x5402CA52, -0x0FBC7FD3, 0x3796C6E7, -0x22E31853, 0x0E8B55BE, 0x0C5A326A, -0x1C85FE6A, -0x1CEF634B, -0x0C5591BE, 0x35CB7566, -0x15E0EE4B, -0x13B17CD9, 0x335380EE, 0x1EB6658A, -0x6CBDD4DE, -0x3FDCBB00, -0x5F552B87, 0x65719291, -0x69F791F2, 0x3EF1B38B, -0x109BD2E7, -0x1A3EF1E1, -0x1E428B78, 0x297AC6AC, 0x017FADFE, -0x3BA85289, -0x3D61B174, 0x63960365, -0x6296071A, -0x507D2678, -0x27482740, -0x177FEA25, -0x295530B8, 0x3970C54F, -0x5336026F, -0x09733814, 0x015E26AB, -0x4E27284F, -0x37FA1190, -0x7940F4D9, -0x65E0B80C, 0x0E9F6C9D, 0x6F63648C, -0x384DF289, 0x79D5D866, -0x55AFBC59, 0x40D3E712, -0x35A3B37A, 0x12DC54EB, 0x08EC657B, 0x4AD778C8, 0x49438246, -0x31FCF19B, 0x17F92D2D, 0x7053A139, -0x026658E0, 0x18462D39, -0x5A78CC45, -0x14594246, -0x3BC683D6, -0x31DB6BBC, -0x6F79CE88, -0x43EC4E3E, 0x0FF4171A, -0x7FD4308B, -0x246C156C, 0x2CAF97BF, -0x3420865B, -0x0F1F4C50, -0x013CED8D, 0x3FD64BD5, 0x57ADCBB2, -0x74C0BD62, 0x7D6B7AD0, -0x6EE9B57F, 0x38D9241E, -0x65BC3B70, 0x08375326, -0x586736DC, 0x3EDF03FA, -0x55B6CD24, 0x350FB731, 0x36940925, -0x79CCF276, 0x29147AAB, 0x16800984, -0x5B88244B, 0x7CE4CD84, 0x5229F025, -0x63F535B6, -0x4894E830, -0x77D4CF20, 0x6522978A, 0x1A5D3079, -0x7B5C75B2, 0x7B69411F, 0x1159FAED, -0x052A83F2, 0x76D4A619, -0x3C2585D5, -0x15618CA4, 0x4C0D4FD9, 0x4F10F27F, 0x78811B9C, 0x7E8C4D0B, -0x1CC853CC, -0x5153D6B2, 0x70687ACD, -0x08A6AA0B, -0x052C2712, -0x22561CF3, -0x7F10DFE6, 0x5E9B9EDF, -0x1D488206, 0x3055CCB1, -0x22C34E07, 0x3440206E, -0x5B281DA3, -0x1618586B, -0x12DFCCD8, 0x0BF78338, 0x2B5A73D3, -0x7CC7FDD8, 0x5253CCC4, 0x375E50F5, 0x68C3E981, 0x1D3AF3F4, 0x12958841, 0x377D3FF2, 0x6073566A, -0x7ADA7FD6, -0x21CC676A, 0x0A317548, 0x3AA01FC5, 0x6A712145, -0x03001A2D, 0x2DA59B4A, 0x3D29F3A7, 0x2FCB8905, 0x58C352EE, -0x7EF12B1C, 0x0152591A, -0x4299DC0D, -0x57237D05, 0x1BA4CFF1, 0x27B6119F, 0x67D9141F, -0x31067872, -0x29FB5573, 0x502C2B67, 0x6A82F0BC, -0x1EA95041, 0x2663D584, 0x7B1FB3CE, 0x1A023D19, -0x036054DD, 0x0C93E9D1, 0x26C6D0D8, 0x1258C03D, 0x18E91229, -0x1738F778, -0x51C16857, -0x0E1B90B7, -0x15DCE26F, 0x7660F35D, -0x45077F36, -0x149CC9EA, -0x436B07C6, 0x68262260, 0x348D3541, 0x1322DA81, -0x38CBA559, 0x18F2FD9F, 0x42899293, -0x6CAFB395, 0x7688EA08, -0x2A89274D }; int r_c[N]; int r_c_expected[N] = { -822366750, -1267390143, -1529011972, 481550947, 701231512, 1505461410, -1772228871, 2009322156, 1605239926, 1231354724, -1097903670, 953101289, 1726054605, 872939348, -1019222933, -1501962430, -400367494, 1365200869, -1085387907, -703741823, -1035754378, 1904162125, 1383309561, -1732396954, -2143150110, -2067261727, -77261998, 1975483681, -666079560, -1119377413, 2069728643, 1832688579, -607159367, 1045848075, -435103298, 84346468, 1049782579, 1880883870, 1742823271, 348600108, -1199931156, 1501293655, 242663014, 1511680092, -1329303147, -2138869781, -459061970, -202976231, 97856942, -825875553, -26847217, 1767461802, 1272634143, -2121071647, 2076517737, 1685175020, 398231297, 191676517, 1331839952, 1309065572, -1342725815, -1496040849, 1043139893, 1070459896, -677394423, -913915104, -836695367, 1681534325, 260855094, -570366233, -1411446348, -1595144411, -2073774035, 157660863, -713790388, 344477106, 44376496, 2019999743, 1156875751, 1409469010, 264011731, -932628199, 585308243, -244012478, -207237738, 478543466, 485450571, 206934462, -902526310, 367062603, 330398937, -861110510, -515270026, 1824380126, 1071430400, 1599417223, -1701941905, 1777832434, -1056027531, 278647527, 440332769, 507677560, -695912108, -25144830, 1000886921, 1029812596, -1670775653, 1653999386, 1350379128, 659040064, 394258981, 693448888, -963691855, 1396048495, 158545940, -22947499, 1311189071, 939135376, 2034300121, 1709225996, -245329053, -1868784780, 944632457, -2044057702, 1437580377, -1087629074, 899920762, -316429547, -149710203, -1255635144, -1229161030, 838660507, -402205997, -1884528953, 40261856, -407252281, 1517866053, 341393990, 1002865622, 836463548, 1870253704, 1139559998, -267654938, 2144612491, 611063148, -749705151, 874546779, 253709392, 20770189, -1071008725, -1471007666, 1958788450, -2104195792, 1860810111, -953754654, 1706834800, -137843494, 1483159260, -1054802938, 1438043428, -890222385, -915671333, 2043474550, -689207979, -377489796, 1535648843, -2095369604, -1378480165, 1677014454, 1217718320, 2010435360, -1696765834, -442314873, 2069657010, -2070495519, -291109613, 86672370, -1993647641, 1009092053, 358714532, -1275940825, -1326510719, -2021727132, -2123123979, 482890700, 1364448946, -1885895373, 145140235, 86779666, 576068851, 2131812326, -1587257055, 491291142, -810929329, 583224839, -876617838, 1529355683, 370694251, 316656856, -200770360, -727348179, 2093481432, -1381223620, -928927989, -1757669761, -490402804, -311789633, -930955250, -1618171498, 2061139926, 567043946, -171013448, -983572421, -1785798981, 50338349, -765827914, -1026159527, -801868037, -1489195758, 2129734428, -22173978, 1117379597, 1461943557, -463785969, -666243487, -1742279711, 822507634, 704337267, -1345071975, -1786966204, 514412609, -644076932, -2065675214, -436354329, 56644829, -211020241, -650563800, -307806269, -417927721, 389609336, 1371629655, 236687543, 366797423, -1986065245, 1158119222, 345819626, 1131087814, -1747329632, -881669441, -321051265, 952870233, -418577823, -1116312211, 1823454101, -1988684296, 713631565 }; int main(int argc, char** argv) { #pragma monitor start #pragma kernel DSP_neg32_c(x_c, r_c, N); #pragma monitor stop if (argc > 42 && ! strcmp(argv[0], "")) printf("%d", r_c[N-1]); int i; for(i=0; i < N; i++) { if(r_c[i] != r_c_expected[i]) { return 1; } } return 10; }
the_stack_data/18887507.c
#include <stdio.h> int main(void) { int a[5]; printf("%p\n", &a); printf("%p\n", &a+1); printf("%p\n", &a[0]); printf("%p\n", &a[1]); printf("%lu hello\n", sizeof a); return 0; }
the_stack_data/54826498.c
// // Created by Gary on 2020/12/19. // #include<stdio.h> #include <stdlib.h> #include<string.h> struct node{ char s[27]; int t; int ex; }e[57]; char ka[57][27]; char kb[57][27]; int cmp(const void *a,const void* b){ int exa=((struct node *)a)->ex; int exb=((struct node *)b)->ex; int ta=((struct node *)a)->t; int tb=((struct node *)b)->t; if(exa==exb){ return ta<tb; } return exa<exb; } int main(){ int n,m,k; scanf("%d %d %d",&n,&m,&k); for(int i=1;i<=n;i++){ scanf("%s %d",e[i].s,&e[i].t); e[i].ex=0; } for(int i=1;i<=m;i++){ scanf("%s %s",ka[i],kb[i]); for(int j=1;j<=n;j++){ if(strcmp(kb[i],e[j].s)==0) { e[j].ex++; break; } } } int ans=0; for(int i=1;i<=k;i++){ qsort(e,n,sizeof(struct node),cmp); ans+=e[i].t; e[i].ex=55; for(int j=1;j<=m;j++){ if(strcmp(e[i].s,ka[j])==0){ for(int z=1;z<=n;z++){ if(strcmp(kb[j],e[z].s)==0){ e[z].ex--; break; } } break; } } } printf("%d\n",52); return 0; }
the_stack_data/1266587.c
// wrapper for dlldata.c #ifdef _MERGE_PROXYSTUB // merge proxy stub DLL #define REGISTER_PROXY_DLL //DllRegisterServer, etc. #define USE_STUBLESS_PROXY //defined only with MIDL switch /Oicf #pragma comment(lib, "rpcns4.lib") #pragma comment(lib, "rpcrt4.lib") #define ENTRY_PREFIX Prx #include "dlldata.c" #include "RBSpeech_p.c" #endif //_MERGE_PROXYSTUB
the_stack_data/125140390.c
/* ** 2015 Aug 04 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ****************************************************************************** ** ** This file contains test code only, it is not included in release ** versions of FTS5. It contains the implementation of an FTS5 auxiliary ** function very similar to the FTS4 function matchinfo(): ** ** https://www.sqlite.org/fts3.html#matchinfo ** ** Known differences are that: ** ** 1) this function uses the FTS5 definition of "matchable phrase", which ** excludes any phrases that are part of an expression sub-tree that ** does not match the current row. This comes up for MATCH queries ** such as: ** ** "a OR (b AND c)" ** ** In FTS4, if a single row contains instances of tokens "a" and "c", ** but not "b", all instances of "c" are considered matches. In FTS5, ** they are not (as the "b AND c" sub-tree does not match the current ** row. ** ** 2) For the values returned by 'x' that apply to all rows of the table, ** NEAR constraints are not considered. But for the number of hits in ** the current row, they are. ** ** This file exports a single function that may be called to register the ** matchinfo() implementation with a database handle: ** ** int sqlite3Fts5TestRegisterMatchinfo(sqlite3 *db); */ #ifdef SQLITE_ENABLE_FTS5 #include "fts5.h" #include <assert.h> #include <string.h> typedef struct Fts5MatchinfoCtx Fts5MatchinfoCtx; #ifndef SQLITE_AMALGAMATION typedef unsigned int u32; #endif struct Fts5MatchinfoCtx { int nCol; /* Number of cols in FTS5 table */ int nPhrase; /* Number of phrases in FTS5 query */ char *zArg; /* nul-term'd copy of 2nd arg */ int nRet; /* Number of elements in aRet[] */ u32 *aRet; /* Array of 32-bit unsigned ints to return */ }; /* ** Return a pointer to the fts5_api pointer for database connection db. ** If an error occurs, return NULL and leave an error in the database ** handle (accessible using sqlite3_errcode()/errmsg()). */ static int fts5_api_from_db(sqlite3 *db, fts5_api **ppApi){ sqlite3_stmt *pStmt = 0; int rc; *ppApi = 0; rc = sqlite3_prepare(db, "SELECT fts5()", -1, &pStmt, 0); if( rc==SQLITE_OK ){ if( SQLITE_ROW==sqlite3_step(pStmt) && sizeof(fts5_api*)==sqlite3_column_bytes(pStmt, 0) ){ memcpy(ppApi, sqlite3_column_blob(pStmt, 0), sizeof(fts5_api*)); } rc = sqlite3_finalize(pStmt); } return rc; } /* ** Argument f should be a flag accepted by matchinfo() (a valid character ** in the string passed as the second argument). If it is not, -1 is ** returned. Otherwise, if f is a valid matchinfo flag, the value returned ** is the number of 32-bit integers added to the output array if the ** table has nCol columns and the query nPhrase phrases. */ static int fts5MatchinfoFlagsize(int nCol, int nPhrase, char f){ int ret = -1; switch( f ){ case 'p': ret = 1; break; case 'c': ret = 1; break; case 'x': ret = 3 * nCol * nPhrase; break; case 'y': ret = nCol * nPhrase; break; case 'b': ret = ((nCol + 31) / 32) * nPhrase; break; case 'n': ret = 1; break; case 'a': ret = nCol; break; case 'l': ret = nCol; break; case 's': ret = nCol; break; } return ret; } static int fts5MatchinfoIter( const Fts5ExtensionApi *pApi, /* API offered by current FTS version */ Fts5Context *pFts, /* First arg to pass to pApi functions */ Fts5MatchinfoCtx *p, int(*x)(const Fts5ExtensionApi*,Fts5Context*,Fts5MatchinfoCtx*,char,u32*) ){ int i; int n = 0; int rc = SQLITE_OK; char f; for(i=0; (f = p->zArg[i]); i++){ rc = x(pApi, pFts, p, f, &p->aRet[n]); if( rc!=SQLITE_OK ) break; n += fts5MatchinfoFlagsize(p->nCol, p->nPhrase, f); } return rc; } static int fts5MatchinfoXCb( const Fts5ExtensionApi *pApi, Fts5Context *pFts, void *pUserData ){ Fts5PhraseIter iter; int iCol, iOff; u32 *aOut = (u32*)pUserData; int iPrev = -1; for(pApi->xPhraseFirst(pFts, 0, &iter, &iCol, &iOff); iCol>=0; pApi->xPhraseNext(pFts, &iter, &iCol, &iOff) ){ aOut[iCol*3+1]++; if( iCol!=iPrev ) aOut[iCol*3 + 2]++; iPrev = iCol; } return SQLITE_OK; } static int fts5MatchinfoGlobalCb( const Fts5ExtensionApi *pApi, Fts5Context *pFts, Fts5MatchinfoCtx *p, char f, u32 *aOut ){ int rc = SQLITE_OK; switch( f ){ case 'p': aOut[0] = p->nPhrase; break; case 'c': aOut[0] = p->nCol; break; case 'x': { int i; for(i=0; i<p->nPhrase && rc==SQLITE_OK; i++){ void *pPtr = (void*)&aOut[i * p->nCol * 3]; rc = pApi->xQueryPhrase(pFts, i, pPtr, fts5MatchinfoXCb); } break; } case 'n': { sqlite3_int64 nRow; rc = pApi->xRowCount(pFts, &nRow); aOut[0] = (u32)nRow; break; } case 'a': { sqlite3_int64 nRow = 0; rc = pApi->xRowCount(pFts, &nRow); if( nRow==0 ){ memset(aOut, 0, sizeof(u32) * p->nCol); }else{ int i; for(i=0; rc==SQLITE_OK && i<p->nCol; i++){ sqlite3_int64 nToken; rc = pApi->xColumnTotalSize(pFts, i, &nToken); if( rc==SQLITE_OK){ aOut[i] = (u32)((2*nToken + nRow) / (2*nRow)); } } } break; } } return rc; } static int fts5MatchinfoLocalCb( const Fts5ExtensionApi *pApi, Fts5Context *pFts, Fts5MatchinfoCtx *p, char f, u32 *aOut ){ int i; int rc = SQLITE_OK; switch( f ){ case 'b': { int iPhrase; int nInt = ((p->nCol + 31) / 32) * p->nPhrase; for(i=0; i<nInt; i++) aOut[i] = 0; for(iPhrase=0; iPhrase<p->nPhrase; iPhrase++){ Fts5PhraseIter iter; int iCol; for(pApi->xPhraseFirstColumn(pFts, iPhrase, &iter, &iCol); iCol>=0; pApi->xPhraseNextColumn(pFts, &iter, &iCol) ){ aOut[iPhrase * ((p->nCol+31)/32) + iCol/32] |= ((u32)1 << iCol%32); } } break; } case 'x': case 'y': { int nMul = (f=='x' ? 3 : 1); int iPhrase; for(i=0; i<(p->nCol*p->nPhrase); i++) aOut[i*nMul] = 0; for(iPhrase=0; iPhrase<p->nPhrase; iPhrase++){ Fts5PhraseIter iter; int iOff, iCol; for(pApi->xPhraseFirst(pFts, iPhrase, &iter, &iCol, &iOff); iOff>=0; pApi->xPhraseNext(pFts, &iter, &iCol, &iOff) ){ aOut[nMul * (iCol + iPhrase * p->nCol)]++; } } break; } case 'l': { for(i=0; rc==SQLITE_OK && i<p->nCol; i++){ int nToken; rc = pApi->xColumnSize(pFts, i, &nToken); aOut[i] = (u32)nToken; } break; } case 's': { int nInst; memset(aOut, 0, sizeof(u32) * p->nCol); rc = pApi->xInstCount(pFts, &nInst); for(i=0; rc==SQLITE_OK && i<nInst; i++){ int iPhrase, iOff, iCol = 0; int iNextPhrase; int iNextOff; u32 nSeq = 1; int j; rc = pApi->xInst(pFts, i, &iPhrase, &iCol, &iOff); iNextPhrase = iPhrase+1; iNextOff = iOff+pApi->xPhraseSize(pFts, 0); for(j=i+1; rc==SQLITE_OK && j<nInst; j++){ int ip, ic, io; rc = pApi->xInst(pFts, j, &ip, &ic, &io); if( ic!=iCol || io>iNextOff ) break; if( ip==iNextPhrase && io==iNextOff ){ nSeq++; iNextPhrase = ip+1; iNextOff = io + pApi->xPhraseSize(pFts, ip); } } if( nSeq>aOut[iCol] ) aOut[iCol] = nSeq; } break; } } return rc; } static Fts5MatchinfoCtx *fts5MatchinfoNew( const Fts5ExtensionApi *pApi, /* API offered by current FTS version */ Fts5Context *pFts, /* First arg to pass to pApi functions */ sqlite3_context *pCtx, /* Context for returning error message */ const char *zArg /* Matchinfo flag string */ ){ Fts5MatchinfoCtx *p; int nCol; int nPhrase; int i; int nInt; int nByte; int rc; nCol = pApi->xColumnCount(pFts); nPhrase = pApi->xPhraseCount(pFts); nInt = 0; for(i=0; zArg[i]; i++){ int n = fts5MatchinfoFlagsize(nCol, nPhrase, zArg[i]); if( n<0 ){ char *zErr = sqlite3_mprintf("unrecognized matchinfo flag: %c", zArg[i]); sqlite3_result_error(pCtx, zErr, -1); sqlite3_free(zErr); return 0; } nInt += n; } nByte = sizeof(Fts5MatchinfoCtx) /* The struct itself */ + sizeof(u32) * nInt /* The p->aRet[] array */ + (i+1); /* The p->zArg string */ p = (Fts5MatchinfoCtx*)sqlite3_malloc(nByte); if( p==0 ){ sqlite3_result_error_nomem(pCtx); return 0; } memset(p, 0, nByte); p->nCol = nCol; p->nPhrase = nPhrase; p->aRet = (u32*)&p[1]; p->nRet = nInt; p->zArg = (char*)&p->aRet[nInt]; memcpy(p->zArg, zArg, i); rc = fts5MatchinfoIter(pApi, pFts, p, fts5MatchinfoGlobalCb); if( rc!=SQLITE_OK ){ sqlite3_result_error_code(pCtx, rc); sqlite3_free(p); p = 0; } return p; } static void fts5MatchinfoFunc( const Fts5ExtensionApi *pApi, /* API offered by current FTS version */ Fts5Context *pFts, /* First arg to pass to pApi functions */ sqlite3_context *pCtx, /* Context for returning result/error */ int nVal, /* Number of values in apVal[] array */ sqlite3_value **apVal /* Array of trailing arguments */ ){ const char *zArg; Fts5MatchinfoCtx *p; int rc = SQLITE_OK; if( nVal>0 ){ zArg = (const char*)sqlite3_value_text(apVal[0]); }else{ zArg = "pcx"; } p = (Fts5MatchinfoCtx*)pApi->xGetAuxdata(pFts, 0); if( p==0 || sqlite3_stricmp(zArg, p->zArg) ){ p = fts5MatchinfoNew(pApi, pFts, pCtx, zArg); if( p==0 ){ rc = SQLITE_NOMEM; }else{ rc = pApi->xSetAuxdata(pFts, p, sqlite3_free); } } if( rc==SQLITE_OK ){ rc = fts5MatchinfoIter(pApi, pFts, p, fts5MatchinfoLocalCb); } if( rc!=SQLITE_OK ){ sqlite3_result_error_code(pCtx, rc); }else{ /* No errors has occured, so return a copy of the array of integers. */ int nByte = p->nRet * sizeof(u32); sqlite3_result_blob(pCtx, (void*)p->aRet, nByte, SQLITE_TRANSIENT); } } int sqlite3Fts5TestRegisterMatchinfo(sqlite3 *db){ int rc; /* Return code */ fts5_api *pApi; /* FTS5 API functions */ /* Extract the FTS5 API pointer from the database handle. The ** fts5_api_from_db() function above is copied verbatim from the ** FTS5 documentation. Refer there for details. */ rc = fts5_api_from_db(db, &pApi); if( rc!=SQLITE_OK ) return rc; /* If fts5_api_from_db() returns NULL, then either FTS5 is not registered ** with this database handle, or an error (OOM perhaps?) has occurred. ** ** Also check that the fts5_api object is version 2 or newer. */ if( pApi==0 || pApi->iVersion<2 ){ return SQLITE_ERROR; } /* Register the implementation of matchinfo() */ rc = pApi->xCreateFunction(pApi, "matchinfo", 0, fts5MatchinfoFunc, 0); return rc; } #endif /* SQLITE_ENABLE_FTS5 */
the_stack_data/151471.c
#include <fcntl.h> #include <unistd.h> #include <stdio.h> #include <errno.h> #define BUFSIZE 100 void main() { int fd, fd2, nr, nw; char buf[BUFSIZE]; fd = open("file1", O_RDONLY); if (fd < 0) perror("open"); // O_CREAT = creates new file fd2 = open("file2", O_WRONLY | O_CREAT); if (fd2 < 0) perror("open write"); nr = read(fd, buf, 30); printf("n: %d\n", nr); if (nr < 0) perror("read"); nw = write(fd2, buf, nr); // Check for erros if (nw != nr) perror("write"); // Write to the standard output write(STDOUT_FILENO, buf, nr); close(fd); }
the_stack_data/1240149.c
// tag-#anon#ST[*{V}$V$'_call_addr'||S32'_syscall'||U32'_arch'|] // file /usr/include/x86_64-linux-gnu/bits/siginfo.h line 121 struct anonymous$4; // tag-#anon#ST[*{V}$V$'si_addr'||S16'si_addr_lsb'||U48'$pad0'|] // file /usr/include/x86_64-linux-gnu/bits/siginfo.h line 107 struct anonymous$2; // tag-#anon#ST[ARR16{U64}$U64$'__val'|] // file /usr/include/x86_64-linux-gnu/bits/sigset.h line 27 struct anonymous$9; // tag-#anon#ST[S32'si_pid'||U32'si_uid'|] // file /usr/include/x86_64-linux-gnu/bits/siginfo.h line 74 struct anonymous$14; // tag-#anon#ST[S32'si_pid'||U32'si_uid'||S32'si_status'||U32'$pad0'||S64'si_utime'||S64'si_stime'|] // file /usr/include/x86_64-linux-gnu/bits/siginfo.h line 97 struct anonymous$1; // tag-#anon#ST[S32'si_pid'||U32'si_uid'||SYM#tag-sigval#'si_sigval'|] // file /usr/include/x86_64-linux-gnu/bits/siginfo.h line 89 struct anonymous; // tag-#anon#ST[S32'si_signo'||S32'si_errno'||S32'si_code'||U32'$pad0'||SYM#tag-#anon#UN[ARR28{S32}$S32$'_pad'||SYM#tag-#anon#ST[S32'si_pid'||U32'si_uid'|]#'_kill'||SYM#tag-#anon#ST[S32'si_tid'||S32'si_overrun'||SYM#tag-sigval#'si_sigval'|]#'_timer'||SYM#tag-#anon#ST[S32'si_pid'||U32'si_uid'||SYM#tag-sigval#'si_sigval'|]#'_rt'||SYM#tag-#anon#ST[S32'si_pid'||U32'si_uid'||S32'si_status'||U32'$pad0'||S64'si_utime'||S64'si_stime'|]#'_sigchld'||SYM#tag-#anon#ST[*{V}$V$'si_addr'||S16'si_addr_lsb'||U48'$pad0'|]#'_sigfault'||SYM#tag-#anon#ST[S64'si_band'||S32'si_fd'||U32'$pad0'|]#'_sigpoll'||SYM#tag-#anon#ST[*{V}$V$'_call_addr'||S32'_syscall'||U32'_arch'|]#'_sigsys'|]#'_sifields'|] // file /usr/include/x86_64-linux-gnu/bits/siginfo.h line 62 struct anonymous$10; // tag-#anon#ST[S32'si_tid'||S32'si_overrun'||SYM#tag-sigval#'si_sigval'|] // file /usr/include/x86_64-linux-gnu/bits/siginfo.h line 81 struct anonymous$15; // tag-#anon#ST[S64'si_band'||S32'si_fd'||U32'$pad0'|] // file /usr/include/x86_64-linux-gnu/bits/siginfo.h line 114 struct anonymous$3; // tag-#anon#UN[*{V(S32)->V}$V(S32)->V$'sa_handler'||*{V(S32|*{SYM#tag-#anon#ST[S32'si_signo'||S32'si_errno'||S32'si_code'||U32'$pad0'||SYM#tag-#anon#UN[ARR28{S32}$S32$'_pad'||SYM#tag-#anon#ST[S32'si_pid'||U32'si_uid'|]#'_kill'||SYM#tag-#anon#ST[S32'si_tid'||S32'si_overrun'||SYM#tag-sigval#'si_sigval'|]#'_timer'||SYM#tag-#anon#ST[S32'si_pid'||U32'si_uid'||SYM#tag-sigval#'si_sigval'|]#'_rt'||SYM#tag-#anon#ST[S32'si_pid'||U32'si_uid'||S32'si_status'||U32'$pad0'||S64'si_utime'||S64'si_stime'|]#'_sigchld'||SYM#tag-#anon#ST[*{V}$V$'si_addr'||S16'si_addr_lsb'||U48'$pad0'|]#'_sigfault'||SYM#tag-#anon#ST[S64'si_band'||S32'si_fd'||U32'$pad0'|]#'_sigpoll'||SYM#tag-#anon#ST[*{V}$V$'_call_addr'||S32'_syscall'||U32'_arch'|]#'_sigsys'|]#'_sifields'|]#}$SYM#tag-#anon#ST[S32'si_signo'||S32'si_errno'||S32'si_code'||U32'$pad0'||SYM#tag-#anon#UN[ARR28{S32}$S32$'_pad'||SYM#tag-#anon#ST[S32'si_pid'||U32'si_uid'|]#'_kill'||SYM#tag-#anon#ST[S32'si_tid'||S32'si_overrun'||SYM#tag-sigval#'si_sigval'|]#'_timer'||SYM#tag-#anon#ST[S32'si_pid'||U32'si_uid'||SYM#tag-sigval#'si_sigval'|]#'_rt'||SYM#tag-#anon#ST[S32'si_pid'||U32'si_uid'||S32'si_status'||U32'$pad0'||S64'si_utime'||S64'si_stime'|]#'_sigchld'||SYM#tag-#anon#ST[*{V}$V$'si_addr'||S16'si_addr_lsb'||U48'$pad0'|]#'_sigfault'||SYM#tag-#anon#ST[S64'si_band'||S32'si_fd'||U32'$pad0'|]#'_sigpoll'||SYM#tag-#anon#ST[*{V}$V$'_call_addr'||S32'_syscall'||U32'_arch'|]#'_sigsys'|]#'_sifields'|]#$|*{V}$V$)->V}$V(S32|*{SYM#tag-#anon#ST[S32'si_signo'||S32'si_errno'||S32'si_code'||U32'$pad0'||SYM#tag-#anon#UN[ARR28{S32}$S32$'_pad'||SYM#tag-#anon#ST[S32'si_pid'||U32'si_uid'|]#'_kill'||SYM#tag-#anon#ST[S32'si_tid'||S32'si_overrun'||SYM#tag-sigval#'si_sigval'|]#'_timer'||SYM#tag-#anon#ST[S32'si_pid'||U32'si_uid'||SYM#tag-sigval#'si_sigval'|]#'_rt'||SYM#tag-#anon#ST[S32'si_pid'||U32'si_uid'||S32'si_status'||U32'$pad0'||S64'si_utime'||S64'si_stime'|]#'_sigchld'||SYM#tag-#anon#ST[*{V}$V$'si_addr'||S16'si_addr_lsb'||U48'$pad0'|]#'_sigfault'||SYM#tag-#anon#ST[S64'si_band'||S32'si_fd'||U32'$pad0'|]#'_sigpoll'||SYM#tag-#anon#ST[*{V}$V$'_call_addr'||S32'_syscall'||U32'_arch'|]#'_sigsys'|]#'_sifields'|]#}$SYM#tag-#anon#ST[S32'si_signo'||S32'si_errno'||S32'si_code'||U32'$pad0'||SYM#tag-#anon#UN[ARR28{S32}$S32$'_pad'||SYM#tag-#anon#ST[S32'si_pid'||U32'si_uid'|]#'_kill'||SYM#tag-#anon#ST[S32'si_tid'||S32'si_overrun'||SYM#tag-sigval#'si_sigval'|]#'_timer'||SYM#tag-#anon#ST[S32'si_pid'||U32'si_uid'||SYM#tag-sigval#'si_sigval'|]#'_rt'||SYM#tag-#anon#ST[S32'si_pid'||U32'si_uid'||S32'si_status'||U32'$pad0'||S64'si_utime'||S64'si_stime'|]#'_sigchld'||SYM#tag-#anon#ST[*{V}$V$'si_addr'||S16'si_addr_lsb'||U48'$pad0'|]#'_sigfault'||SYM#tag-#anon#ST[S64'si_band'||S32'si_fd'||U32'$pad0'|]#'_sigpoll'||SYM#tag-#anon#ST[*{V}$V$'_call_addr'||S32'_syscall'||U32'_arch'|]#'_sigsys'|]#'_sifields'|]#$|*{V}$V$)->V$'sa_sigaction'|] // file /usr/include/x86_64-linux-gnu/bits/sigaction.h line 28 union anonymous$8; // tag-#anon#UN[ARR16{U8}$U8$'__u6_addr8'||ARR8{U16}$U16$'__u6_addr16'||ARR4{U32}$U32$'__u6_addr32'|] // file /usr/include/netinet/in.h line 211 union anonymous$12; // tag-#anon#UN[ARR28{S32}$S32$'_pad'||SYM#tag-#anon#ST[S32'si_pid'||U32'si_uid'|]#'_kill'||SYM#tag-#anon#ST[S32'si_tid'||S32'si_overrun'||SYM#tag-sigval#'si_sigval'|]#'_timer'||SYM#tag-#anon#ST[S32'si_pid'||U32'si_uid'||SYM#tag-sigval#'si_sigval'|]#'_rt'||SYM#tag-#anon#ST[S32'si_pid'||U32'si_uid'||S32'si_status'||U32'$pad0'||S64'si_utime'||S64'si_stime'|]#'_sigchld'||SYM#tag-#anon#ST[*{V}$V$'si_addr'||S16'si_addr_lsb'||U48'$pad0'|]#'_sigfault'||SYM#tag-#anon#ST[S64'si_band'||S32'si_fd'||U32'$pad0'|]#'_sigpoll'||SYM#tag-#anon#ST[*{V}$V$'_call_addr'||S32'_syscall'||U32'_arch'|]#'_sigsys'|] // file /usr/include/x86_64-linux-gnu/bits/siginfo.h line 69 union anonymous$5; // tag-#anon#UN[ARR4{S8}$S8$'__size'||S32'__align'|] // file /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h line 130 union anonymous$7; // tag-#anon#UN[SYM#tag-__pthread_mutex_s#'__data'||ARR40{S8}$S8$'__size'||S64'__align'|] // file /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h line 90 union anonymous$6; // tag-#anon#UN[r*{SYM#tag-sockaddr#}$SYM#tag-sockaddr#$'__sockaddr__'||r*{SYM#tag-sockaddr_at#}$SYM#tag-sockaddr_at#$'__sockaddr_at__'||r*{SYM#tag-sockaddr_ax25#}$SYM#tag-sockaddr_ax25#$'__sockaddr_ax25__'||r*{SYM#tag-sockaddr_dl#}$SYM#tag-sockaddr_dl#$'__sockaddr_dl__'||r*{SYM#tag-sockaddr_eon#}$SYM#tag-sockaddr_eon#$'__sockaddr_eon__'||r*{SYM#tag-sockaddr_in#}$SYM#tag-sockaddr_in#$'__sockaddr_in__'||r*{SYM#tag-sockaddr_in6#}$SYM#tag-sockaddr_in6#$'__sockaddr_in6__'||r*{SYM#tag-sockaddr_inarp#}$SYM#tag-sockaddr_inarp#$'__sockaddr_inarp__'||r*{SYM#tag-sockaddr_ipx#}$SYM#tag-sockaddr_ipx#$'__sockaddr_ipx__'||r*{SYM#tag-sockaddr_iso#}$SYM#tag-sockaddr_iso#$'__sockaddr_iso__'||r*{SYM#tag-sockaddr_ns#}$SYM#tag-sockaddr_ns#$'__sockaddr_ns__'||r*{SYM#tag-sockaddr_un#}$SYM#tag-sockaddr_un#$'__sockaddr_un__'||r*{SYM#tag-sockaddr_x25#}$SYM#tag-sockaddr_x25#$'__sockaddr_x25__'|] // file /usr/include/x86_64-linux-gnu/sys/socket.h line 90 union anonymous$0; // tag-#anon#UN[r*{SYM#tag-sockaddr#}$SYM#tag-sockaddr#$'__sockaddr__'||r*{SYM#tag-sockaddr_at#}$SYM#tag-sockaddr_at#$'__sockaddr_at__'||r*{SYM#tag-sockaddr_ax25#}$SYM#tag-sockaddr_ax25#$'__sockaddr_ax25__'||r*{SYM#tag-sockaddr_dl#}$SYM#tag-sockaddr_dl#$'__sockaddr_dl__'||r*{SYM#tag-sockaddr_eon#}$SYM#tag-sockaddr_eon#$'__sockaddr_eon__'||r*{SYM#tag-sockaddr_in#}$SYM#tag-sockaddr_in#$'__sockaddr_in__'||r*{SYM#tag-sockaddr_in6#}$SYM#tag-sockaddr_in6#$'__sockaddr_in6__'||r*{SYM#tag-sockaddr_inarp#}$SYM#tag-sockaddr_inarp#$'__sockaddr_inarp__'||r*{SYM#tag-sockaddr_ipx#}$SYM#tag-sockaddr_ipx#$'__sockaddr_ipx__'||r*{SYM#tag-sockaddr_iso#}$SYM#tag-sockaddr_iso#$'__sockaddr_iso__'||r*{SYM#tag-sockaddr_ns#}$SYM#tag-sockaddr_ns#$'__sockaddr_ns__'||r*{SYM#tag-sockaddr_un#}$SYM#tag-sockaddr_un#$'__sockaddr_un__'||r*{SYM#tag-sockaddr_x25#}$SYM#tag-sockaddr_x25#$'__sockaddr_x25__'|]$transparent // file /usr/include/x86_64-linux-gnu/sys/socket.h line 90 union anonymous$13; // tag-_IO_FILE // file /usr/include/stdio.h line 44 struct _IO_FILE; // tag-_IO_marker // file /usr/include/libio.h line 160 struct _IO_marker; // tag-__pthread_internal_list // file /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h line 75 struct __pthread_internal_list; // tag-__pthread_mutex_s // file /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h line 92 struct __pthread_mutex_s; // tag-addrinfo // file /usr/include/netdb.h line 567 struct addrinfo; // tag-connection // file internal.h line 68 struct connection; // tag-group // file /usr/include/grp.h line 42 struct group; // tag-in6_addr // file /usr/include/netinet/in.h line 209 struct in6_addr; // tag-in_addr // file /usr/include/netinet/in.h line 31 struct in_addr; // tag-nbdkit_plugin // file ../include/nbdkit-plugin.h line 49 struct nbdkit_plugin; // tag-old_handshake // file protocol.h line 40 struct old_handshake; // tag-option // file /usr/include/getopt.h line 104 struct option; // tag-passwd // file /usr/include/pwd.h line 49 struct passwd; // tag-pollfd // file /usr/include/x86_64-linux-gnu/sys/poll.h line 39 struct pollfd; // tag-pthread_attr_t // file /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h line 63 union pthread_attr_t; // tag-reply // file protocol.h line 72 struct reply; // tag-request // file protocol.h line 63 struct request; // tag-sigaction // file /usr/include/x86_64-linux-gnu/bits/sigaction.h line 24 struct sigaction; // tag-sigval // file /usr/include/x86_64-linux-gnu/bits/siginfo.h line 32 union sigval; // tag-sockaddr // file /usr/include/x86_64-linux-gnu/bits/socket.h line 149 struct sockaddr; // tag-sockaddr_at // file /usr/include/x86_64-linux-gnu/sys/socket.h line 90 struct sockaddr_at; // tag-sockaddr_ax25 // file /usr/include/x86_64-linux-gnu/sys/socket.h line 90 struct sockaddr_ax25; // tag-sockaddr_dl // file /usr/include/x86_64-linux-gnu/sys/socket.h line 90 struct sockaddr_dl; // tag-sockaddr_eon // file /usr/include/x86_64-linux-gnu/sys/socket.h line 90 struct sockaddr_eon; // tag-sockaddr_in // file /usr/include/x86_64-linux-gnu/sys/socket.h line 90 struct sockaddr_in; // tag-sockaddr_in6 // file /usr/include/x86_64-linux-gnu/sys/socket.h line 90 struct sockaddr_in6; // tag-sockaddr_inarp // file /usr/include/x86_64-linux-gnu/sys/socket.h line 90 struct sockaddr_inarp; // tag-sockaddr_ipx // file /usr/include/x86_64-linux-gnu/sys/socket.h line 90 struct sockaddr_ipx; // tag-sockaddr_iso // file /usr/include/x86_64-linux-gnu/sys/socket.h line 90 struct sockaddr_iso; // tag-sockaddr_ns // file /usr/include/x86_64-linux-gnu/sys/socket.h line 90 struct sockaddr_ns; // tag-sockaddr_un // file /usr/include/x86_64-linux-gnu/sys/socket.h line 90 struct sockaddr_un; // tag-sockaddr_x25 // file /usr/include/x86_64-linux-gnu/sys/socket.h line 90 struct sockaddr_x25; // tag-thread_data // file sockets.c line 201 struct thread_data; // tag-tls // file tls.c line 54 struct tls; #include <assert.h> #ifndef NULL #define NULL ((void*)0) #endif // __assert_fail // file /usr/include/assert.h line 69 extern void __assert_fail(const char *, const char *, unsigned int, const char *); // __bswap_32 // file /usr/include/x86_64-linux-gnu/bits/byteswap.h line 45 static inline unsigned int __bswap_32(unsigned int __bsx); // __bswap_64 // file /usr/include/x86_64-linux-gnu/bits/byteswap.h line 109 static inline unsigned long int __bswap_64(unsigned long int __bsx); // __errno_location // file /usr/include/x86_64-linux-gnu/bits/errno.h line 50 extern signed int * __errno_location(void); // _exit // file /usr/include/unistd.h line 603 extern void _exit(signed int); // _handle_request // file connections.c line 327 static signed int _handle_request(struct connection *conn, unsigned int cmd, unsigned int flags, unsigned long int offset, unsigned int count, void *buf, unsigned int *error); // _handle_single_connection // file connections.c line 61 static signed int _handle_single_connection(signed int sockin, signed int sockout); // _negotiate_handshake // file connections.c line 150 static signed int _negotiate_handshake(struct connection *conn); // abort // file /usr/include/stdlib.h line 515 extern void abort(void); // accept // file /usr/include/x86_64-linux-gnu/sys/socket.h line 243 extern signed int accept(signed int, union anonymous$13, unsigned int *); // accept_connection // file sockets.c line 226 static void accept_connection(signed int listen_sock); // accept_incoming_connections // file internal.h line 111 extern void accept_incoming_connections(signed int *socks, unsigned long int nr_socks); // asprintf // file /usr/include/stdio.h line 405 extern signed int asprintf(char ** restrict , const char *, ...); // bind // file /usr/include/x86_64-linux-gnu/sys/socket.h line 123 extern signed int bind(signed int, union anonymous$13, unsigned int); // bind_tcpip_socket // file internal.h line 110 extern signed int * bind_tcpip_socket(unsigned long int *nr_socks); // bind_unix_socket // file internal.h line 109 extern signed int * bind_unix_socket(unsigned long int *nr_socks); // calloc // file /usr/include/stdlib.h line 468 extern void * calloc(unsigned long int, unsigned long int); // change_user // file main.c line 468 static void change_user(void); // chdir // file /usr/include/unistd.h line 497 extern signed int chdir(const char *); // cleanup_free // file cleanup.c line 45 extern void cleanup_free(void *ptr); // close // file /usr/include/unistd.h line 353 extern signed int close(signed int); // display_version // file main.c line 122 static void display_version(void); // dlclose // file /usr/include/dlfcn.h line 60 extern signed int dlclose(void *); // dlerror // file /usr/include/dlfcn.h line 82 extern char * dlerror(void); // dlopen // file /usr/include/dlfcn.h line 56 extern void * dlopen(const char *, signed int); // dlsym // file /usr/include/dlfcn.h line 64 extern void * dlsym(void *, const char *); // dump_config // file main.c line 128 static void dump_config(void); // dup2 // file /usr/include/unistd.h line 534 extern signed int dup2(signed int, signed int); // exit // file /usr/include/stdlib.h line 543 extern void exit(signed int); // fork // file /usr/include/unistd.h line 756 extern signed int fork(void); // fork_into_background // file main.c line 530 static void fork_into_background(void); // fprintf // file /usr/include/stdio.h line 356 extern signed int fprintf(struct _IO_FILE *, const char *, ...); // free // file /usr/include/stdlib.h line 483 extern void free(void *); // free_connection // file connections.c line 128 static void free_connection(struct connection *conn); // free_listening_sockets // file internal.h line 112 extern void free_listening_sockets(signed int *socks, unsigned long int nr_socks); // free_tls // file tls.c line 64 static void free_tls(void *tlsv); // freeaddrinfo // file /usr/include/netdb.h line 668 extern void freeaddrinfo(struct addrinfo *); // gai_strerror // file /usr/include/netdb.h line 671 extern const char * gai_strerror(signed int); // get_current_dir_name // file /usr/include/unistd.h line 517 extern char * get_current_dir_name(void); // getaddrinfo // file /usr/include/netdb.h line 662 extern signed int getaddrinfo(const char *, const char *, struct addrinfo *, struct addrinfo ** restrict ); // getgrnam // file /usr/include/grp.h line 110 extern struct group * getgrnam(const char *); // getopt_long // file /usr/include/getopt.h line 173 extern signed int getopt_long(signed int, char * const *, const char *, struct option *, signed int *); // getpid // file /usr/include/unistd.h line 628 extern signed int getpid(void); // getpwnam // file /usr/include/pwd.h line 116 extern struct passwd * getpwnam(const char *); // handle_quit // file main.c line 443 static void handle_quit(signed int sig); // handle_request // file connections.c line 389 static signed int handle_request(struct connection *conn, unsigned int cmd, unsigned int flags, unsigned long int offset, unsigned int count, void *buf, unsigned int *error); // handle_single_connection // file connections.c line 98 extern signed int handle_single_connection(signed int sockin, signed int sockout); // kill // file /usr/include/signal.h line 127 extern signed int kill(signed int, signed int); // listen // file /usr/include/x86_64-linux-gnu/sys/socket.h line 233 extern signed int listen(signed int, signed int); // make_random_fifo // file main.c line 323 static char * make_random_fifo(void); // malloc // file /usr/include/stdlib.h line 466 extern void * malloc(unsigned long int); // memcpy // file /usr/include/string.h line 46 extern void * memcpy(void *, const void *, unsigned long int); // memset // file /usr/include/string.h line 66 extern void * memset(void *, signed int, unsigned long int); // mkdtemp // file /usr/include/stdlib.h line 662 extern char * mkdtemp(char *); // nbdkit_absolute_path // file ../include/nbdkit-plugin.h line 91 extern char * nbdkit_absolute_path(const char *path); // nbdkit_debug // file ../include/nbdkit-plugin.h line 87 extern void nbdkit_debug(const char *fs, ...); // nbdkit_error // file ../include/nbdkit-plugin.h line 84 extern void nbdkit_error(const char *fs, ...); // nbdkit_parse_size // file utils.c line 86 extern signed long int nbdkit_parse_size(const char *str); // nbdkit_vdebug // file errors.c line 65 extern void nbdkit_vdebug(const char *fs, void **args); // nbdkit_verror // file errors.c line 104 extern void nbdkit_verror(const char *fs, void **args); // negotiate_handshake // file connections.c line 222 static signed int negotiate_handshake(struct connection *conn); // new_connection // file connections.c line 110 static struct connection * new_connection(signed int sockin, signed int sockout); // open // file /usr/include/fcntl.h line 146 extern signed int open(const char *, signed int, ...); // open_plugin_so // file main.c line 354 static void open_plugin_so(const char *name); // open_plugin_so::1::plugin_init$object // struct nbdkit_plugin * plugin_init$object(void); // parsegroup // file main.c line 673 static unsigned int parsegroup(const char *id); // parseuser // file main.c line 645 static unsigned int parseuser(const char *id); // perror // file /usr/include/stdio.h line 846 extern void perror(const char *); // plugin_can_flush // file internal.h line 100 extern signed int plugin_can_flush(struct connection *conn); // plugin_can_trim // file internal.h line 102 extern signed int plugin_can_trim(struct connection *conn); // plugin_can_write // file internal.h line 99 extern signed int plugin_can_write(struct connection *conn); // plugin_cleanup // file internal.h line 86 extern void plugin_cleanup(void); // plugin_close // file internal.h line 97 extern void plugin_close(struct connection *conn); // plugin_config // file internal.h line 90 extern void plugin_config(const char *key, const char *value); // plugin_config_complete // file internal.h line 91 extern void plugin_config_complete(void); // plugin_flush // file internal.h line 105 extern signed int plugin_flush(struct connection *conn); // plugin_get_size // file internal.h line 98 extern signed long int plugin_get_size(struct connection *conn); // plugin_is_rotational // file internal.h line 101 extern signed int plugin_is_rotational(struct connection *conn); // plugin_lock_connection // file internal.h line 92 extern void plugin_lock_connection(void); // plugin_lock_request // file internal.h line 94 extern void plugin_lock_request(struct connection *conn); // plugin_name // file internal.h line 87 extern const char * plugin_name(void); // plugin_open // file internal.h line 96 extern signed int plugin_open(struct connection *conn, signed int readonly); // plugin_pread // file internal.h line 103 extern signed int plugin_pread(struct connection *conn, void *buf, unsigned int count, unsigned long int offset); // plugin_pwrite // file internal.h line 104 extern signed int plugin_pwrite(struct connection *conn, void *buf, unsigned int count, unsigned long int offset); // plugin_register // file internal.h line 85 extern void plugin_register(const char *_filename, void *_dl, struct nbdkit_plugin * (*plugin_init)(void)); // plugin_register::plugin_init$object // struct nbdkit_plugin * plugin_init$object(void); // plugin_trim // file internal.h line 106 extern signed int plugin_trim(struct connection *conn, unsigned int count, unsigned long int offset); // plugin_unlock_connection // file internal.h line 93 extern void plugin_unlock_connection(void); // plugin_unlock_request // file internal.h line 95 extern void plugin_unlock_request(struct connection *conn); // plugin_usage // file internal.h line 88 extern void plugin_usage(void); // plugin_version // file internal.h line 89 extern void plugin_version(void); // poll // file /usr/include/x86_64-linux-gnu/sys/poll.h line 57 extern signed int poll(struct pollfd *, unsigned long int, signed int); // printf // file /usr/include/stdio.h line 362 extern signed int printf(const char *, ...); // prologue // file errors.c line 46 static void prologue(const char *type); // pthread_attr_destroy // file /usr/include/pthread.h line 292 extern signed int pthread_attr_destroy(union pthread_attr_t *); // pthread_attr_init // file /usr/include/pthread.h line 289 extern signed int pthread_attr_init(union pthread_attr_t *); // pthread_attr_setdetachstate // file /usr/include/pthread.h line 301 extern signed int pthread_attr_setdetachstate(union pthread_attr_t *, signed int); // pthread_create // file /usr/include/pthread.h line 235 extern signed int pthread_create(unsigned long int *, const union pthread_attr_t *, void * (*)(void *), void *); // pthread_getspecific // file /usr/include/pthread.h line 1121 extern void * pthread_getspecific(unsigned int); // pthread_key_create // file /usr/include/pthread.h line 1113 extern signed int pthread_key_create(unsigned int *, void (*)(void *)); // pthread_mutex_destroy // file /usr/include/pthread.h line 756 extern signed int pthread_mutex_destroy(union anonymous$6 *); // pthread_mutex_init // file /usr/include/pthread.h line 751 extern signed int pthread_mutex_init(union anonymous$6 *, const union anonymous$7 *); // pthread_mutex_lock // file /usr/include/pthread.h line 764 extern signed int pthread_mutex_lock(union anonymous$6 *); // pthread_mutex_unlock // file /usr/include/pthread.h line 775 extern signed int pthread_mutex_unlock(union anonymous$6 *); // pthread_setspecific // file /usr/include/pthread.h line 1124 extern signed int pthread_setspecific(unsigned int, const void *); // read // file /usr/include/unistd.h line 360 extern signed long int read(signed int, void *, unsigned long int); // realloc // file /usr/include/stdlib.h line 480 extern void * realloc(void *, unsigned long int); // recv_request_send_reply // file connections.c line 422 static signed int recv_request_send_reply(struct connection *conn); // rmdir // file /usr/include/unistd.h line 835 extern signed int rmdir(const char *); // run_command // file main.c line 562 static void run_command(void); // set_up_signals // file main.c line 449 static void set_up_signals(void); // setgid // file /usr/include/unistd.h line 717 extern signed int setgid(unsigned int); // setgroups // file /usr/include/grp.h line 179 extern signed int setgroups(unsigned long int, const unsigned int *); // setsockopt // file /usr/include/x86_64-linux-gnu/sys/socket.h line 226 extern signed int setsockopt(signed int, signed int, signed int, const void *, unsigned int); // setuid // file /usr/include/unistd.h line 700 extern signed int setuid(unsigned int); // sigaction // file /usr/include/signal.h line 259 extern signed int sigaction(signed int, struct sigaction *, struct sigaction *); // skip_over_write_buffer // file connections.c line 404 static void skip_over_write_buffer(signed int sock, unsigned long int count); // snprintf // file /usr/include/stdio.h line 386 extern signed int snprintf(char *, unsigned long int, const char *, ...); // socket // file /usr/include/x86_64-linux-gnu/sys/socket.h line 113 extern signed int socket(signed int, signed int, signed int); // sscanf // file /usr/include/stdio.h line 433 extern signed int sscanf(const char *, const char *, ...); // start_serving // file main.c line 397 static void start_serving(void); // start_thread // file sockets.c line 209 static void * start_thread(void *datav); // strchr // file /usr/include/string.h line 235 extern char * strchr(const char *, signed int); // strcmp // file /usr/include/string.h line 144 extern signed int strcmp(const char *, const char *); // strdup // file /usr/include/string.h line 175 extern char * strdup(const char *); // strerror // file /usr/include/string.h line 412 extern char * strerror(signed int); // strlen // file /usr/include/string.h line 398 extern unsigned long int strlen(const char *); // strstr // file /usr/include/string.h line 341 extern char * strstr(const char *, const char *); // system // file /usr/include/stdlib.h line 716 extern signed int system(const char *); // tls_get_instance_num // file internal.h line 121 extern unsigned long int tls_get_instance_num(void); // tls_get_name // file internal.h line 120 extern const char * tls_get_name(void); // tls_init // file internal.h line 115 extern void tls_init(void); // tls_new_server_thread // file internal.h line 116 extern void tls_new_server_thread(void); // tls_set_instance_num // file internal.h line 118 extern void tls_set_instance_num(unsigned long int instance_num); // tls_set_name // file internal.h line 117 extern void tls_set_name(const char *name); // tls_set_sockaddr // file internal.h line 119 extern void tls_set_sockaddr(struct sockaddr *addr, unsigned int addrlen); // unlink // file /usr/include/unistd.h line 826 extern signed int unlink(const char *); // usage // file main.c line 111 static void usage(void); // valid_range // file connections.c line 234 static signed int valid_range(struct connection *conn, unsigned long int offset, unsigned int count); // validate_request // file connections.c line 242 static signed int validate_request(struct connection *conn, unsigned int cmd, unsigned int flags, unsigned long int offset, unsigned int count, unsigned int *error); // vfprintf // file /usr/include/stdio.h line 371 extern signed int vfprintf(struct _IO_FILE *, const char *, void **); // write // file /usr/include/unistd.h line 366 extern signed long int write(signed int, const void *, unsigned long int); // write_pidfile // file main.c line 500 static void write_pidfile(void); // xread // file internal.h line 125 extern signed int xread(signed int sock, void *vbuf, unsigned long int len); // xwrite // file internal.h line 126 extern signed int xwrite(signed int sock, const void *vbuf, unsigned long int len); struct anonymous$4 { // _call_addr void *_call_addr; // _syscall signed int _syscall; // _arch unsigned int _arch; }; struct anonymous$2 { // si_addr void *si_addr; // si_addr_lsb signed short int si_addr_lsb; }; struct anonymous$9 { // __val unsigned long int __val[16l]; }; struct anonymous$14 { // si_pid signed int si_pid; // si_uid unsigned int si_uid; }; struct anonymous$1 { // si_pid signed int si_pid; // si_uid unsigned int si_uid; // si_status signed int si_status; // si_utime signed long int si_utime; // si_stime signed long int si_stime; }; union sigval { // sival_int signed int sival_int; // sival_ptr void *sival_ptr; }; struct anonymous { // si_pid signed int si_pid; // si_uid unsigned int si_uid; // si_sigval union sigval si_sigval; }; struct anonymous$15 { // si_tid signed int si_tid; // si_overrun signed int si_overrun; // si_sigval union sigval si_sigval; }; struct anonymous$3 { // si_band signed long int si_band; // si_fd signed int si_fd; }; union anonymous$5 { // _pad signed int _pad[28l]; // _kill struct anonymous$14 _kill; // _timer struct anonymous$15 _timer; // _rt struct anonymous _rt; // _sigchld struct anonymous$1 _sigchld; // _sigfault struct anonymous$2 _sigfault; // _sigpoll struct anonymous$3 _sigpoll; // _sigsys struct anonymous$4 _sigsys; }; struct anonymous$10 { // si_signo signed int si_signo; // si_errno signed int si_errno; // si_code signed int si_code; // _sifields union anonymous$5 _sifields; }; union anonymous$8 { // sa_handler void (*sa_handler)(signed int); // sa_sigaction void (*sa_sigaction)(signed int, struct anonymous$10 *, void *); }; union anonymous$12 { // __u6_addr8 unsigned char __u6_addr8[16l]; // __u6_addr16 unsigned short int __u6_addr16[8l]; // __u6_addr32 unsigned int __u6_addr32[4l]; }; union anonymous$7 { // __size char __size[4l]; // __align signed int __align; }; struct __pthread_internal_list { // __prev struct __pthread_internal_list *__prev; // __next struct __pthread_internal_list *__next; }; struct __pthread_mutex_s { // __lock signed int __lock; // __count unsigned int __count; // __owner signed int __owner; // __nusers unsigned int __nusers; // __kind signed int __kind; // __spins signed short int __spins; // __elision signed short int __elision; // __list struct __pthread_internal_list __list; }; union anonymous$6 { // __data struct __pthread_mutex_s __data; // __size char __size[40l]; // __align signed long int __align; }; union anonymous$0 { // __sockaddr__ struct sockaddr * restrict __sockaddr__; // __sockaddr_at__ struct sockaddr_at * restrict __sockaddr_at__; // __sockaddr_ax25__ struct sockaddr_ax25 * restrict __sockaddr_ax25__; // __sockaddr_dl__ struct sockaddr_dl * restrict __sockaddr_dl__; // __sockaddr_eon__ struct sockaddr_eon * restrict __sockaddr_eon__; // __sockaddr_in__ struct sockaddr_in * restrict __sockaddr_in__; // __sockaddr_in6__ struct sockaddr_in6 * restrict __sockaddr_in6__; // __sockaddr_inarp__ struct sockaddr_inarp * restrict __sockaddr_inarp__; // __sockaddr_ipx__ struct sockaddr_ipx * restrict __sockaddr_ipx__; // __sockaddr_iso__ struct sockaddr_iso * restrict __sockaddr_iso__; // __sockaddr_ns__ struct sockaddr_ns * restrict __sockaddr_ns__; // __sockaddr_un__ struct sockaddr_un * restrict __sockaddr_un__; // __sockaddr_x25__ struct sockaddr_x25 * restrict __sockaddr_x25__; }; union anonymous$13 { // __sockaddr__ struct sockaddr * restrict __sockaddr__; // __sockaddr_at__ struct sockaddr_at * restrict __sockaddr_at__; // __sockaddr_ax25__ struct sockaddr_ax25 * restrict __sockaddr_ax25__; // __sockaddr_dl__ struct sockaddr_dl * restrict __sockaddr_dl__; // __sockaddr_eon__ struct sockaddr_eon * restrict __sockaddr_eon__; // __sockaddr_in__ struct sockaddr_in * restrict __sockaddr_in__; // __sockaddr_in6__ struct sockaddr_in6 * restrict __sockaddr_in6__; // __sockaddr_inarp__ struct sockaddr_inarp * restrict __sockaddr_inarp__; // __sockaddr_ipx__ struct sockaddr_ipx * restrict __sockaddr_ipx__; // __sockaddr_iso__ struct sockaddr_iso * restrict __sockaddr_iso__; // __sockaddr_ns__ struct sockaddr_ns * restrict __sockaddr_ns__; // __sockaddr_un__ struct sockaddr_un * restrict __sockaddr_un__; // __sockaddr_x25__ struct sockaddr_x25 * restrict __sockaddr_x25__; } __attribute__ ((__transparent_union__)); struct _IO_FILE { // _flags signed int _flags; // _IO_read_ptr char *_IO_read_ptr; // _IO_read_end char *_IO_read_end; // _IO_read_base char *_IO_read_base; // _IO_write_base char *_IO_write_base; // _IO_write_ptr char *_IO_write_ptr; // _IO_write_end char *_IO_write_end; // _IO_buf_base char *_IO_buf_base; // _IO_buf_end char *_IO_buf_end; // _IO_save_base char *_IO_save_base; // _IO_backup_base char *_IO_backup_base; // _IO_save_end char *_IO_save_end; // _markers struct _IO_marker *_markers; // _chain struct _IO_FILE *_chain; // _fileno signed int _fileno; // _flags2 signed int _flags2; // _old_offset signed long int _old_offset; // _cur_column unsigned short int _cur_column; // _vtable_offset signed char _vtable_offset; // _shortbuf char _shortbuf[1l]; // _lock void *_lock; // _offset signed long int _offset; // __pad1 void *__pad1; // __pad2 void *__pad2; // __pad3 void *__pad3; // __pad4 void *__pad4; // __pad5 unsigned long int __pad5; // _mode signed int _mode; // _unused2 char _unused2[(signed long int)(sizeof(signed int) * 5) /*20l*/ ]; }; struct _IO_marker { // _next struct _IO_marker *_next; // _sbuf struct _IO_FILE *_sbuf; // _pos signed int _pos; }; struct addrinfo { // ai_flags signed int ai_flags; // ai_family signed int ai_family; // ai_socktype signed int ai_socktype; // ai_protocol signed int ai_protocol; // ai_addrlen unsigned int ai_addrlen; // ai_addr struct sockaddr *ai_addr; // ai_canonname char *ai_canonname; // ai_next struct addrinfo *ai_next; }; struct connection { // sockin signed int sockin; // sockout signed int sockout; // request_lock union anonymous$6 request_lock; // handle void *handle; // exportsize unsigned long int exportsize; // readonly signed int readonly; // can_flush signed int can_flush; // is_rotational signed int is_rotational; // can_trim signed int can_trim; }; struct group { // gr_name char *gr_name; // gr_passwd char *gr_passwd; // gr_gid unsigned int gr_gid; // gr_mem char **gr_mem; }; struct in6_addr { // __in6_u union anonymous$12 __in6_u; }; struct in_addr { // s_addr unsigned int s_addr; }; struct nbdkit_plugin { // _struct_size unsigned long int _struct_size; // _api_version signed int _api_version; // _thread_model signed int _thread_model; // name const char *name; // longname const char *longname; // version const char *version; // description const char *description; // load void (*load)(void); // unload void (*unload)(void); // config signed int (*config)(const char *, const char *); // config_complete signed int (*config_complete)(void); // config_help const char *config_help; // open void * (*open)(signed int); // close void (*close)(void *); // get_size signed long int (*get_size)(void *); // can_write signed int (*can_write)(void *); // can_flush signed int (*can_flush)(void *); // is_rotational signed int (*is_rotational)(void *); // can_trim signed int (*can_trim)(void *); // pread signed int (*pread)(void *, void *, unsigned int, unsigned long int); // pwrite signed int (*pwrite)(void *, const void *, unsigned int, unsigned long int); // flush signed int (*flush)(void *); // trim signed int (*trim)(void *, unsigned int, unsigned long int); }; struct old_handshake { // nbdmagic char nbdmagic[8l]; // version unsigned long int version; // exportsize unsigned long int exportsize; // gflags unsigned short int gflags; // eflags unsigned short int eflags; // zeroes char zeroes[124l]; } __attribute__ ((__packed__)); struct option { // name const char *name; // has_arg signed int has_arg; // flag signed int *flag; // val signed int val; }; struct passwd { // pw_name char *pw_name; // pw_passwd char *pw_passwd; // pw_uid unsigned int pw_uid; // pw_gid unsigned int pw_gid; // pw_gecos char *pw_gecos; // pw_dir char *pw_dir; // pw_shell char *pw_shell; }; struct pollfd { // fd signed int fd; // events signed short int events; // revents signed short int revents; }; union pthread_attr_t { // __size char __size[56l]; // __align signed long int __align; }; struct reply { // magic unsigned int magic; // error unsigned int error; // handle unsigned long int handle; } __attribute__ ((__packed__)); struct request { // magic unsigned int magic; // type unsigned int type; // handle unsigned long int handle; // offset unsigned long int offset; // count unsigned int count; } __attribute__ ((__packed__)); struct sigaction { // __sigaction_handler union anonymous$8 __sigaction_handler; // sa_mask struct anonymous$9 sa_mask; // sa_flags signed int sa_flags; // sa_restorer void (*sa_restorer)(void); }; struct sockaddr { // sa_family unsigned short int sa_family; // sa_data char sa_data[14l]; }; struct sockaddr_in { // sin_family unsigned short int sin_family; // sin_port unsigned short int sin_port; // sin_addr struct in_addr sin_addr; // sin_zero unsigned char sin_zero[8l]; }; struct sockaddr_in6 { // sin6_family unsigned short int sin6_family; // sin6_port unsigned short int sin6_port; // sin6_flowinfo unsigned int sin6_flowinfo; // sin6_addr struct in6_addr sin6_addr; // sin6_scope_id unsigned int sin6_scope_id; }; struct sockaddr_un { // sun_family unsigned short int sun_family; // sun_path char sun_path[108l]; }; struct thread_data { // sock signed int sock; // instance_num unsigned long int instance_num; // addr struct sockaddr addr; // addrlen unsigned int addrlen; }; struct tls { // name const char *name; // instance_num unsigned long int instance_num; // addr struct sockaddr *addr; // addrlen unsigned int addrlen; }; // all_requests_lock // file plugins.c line 49 static union anonymous$6 all_requests_lock = { .__data={ .__lock=0, .__count=(unsigned int)0, .__owner=0, .__nusers=(unsigned int)0, .__kind=0, .__spins=(signed short int)0, .__elision=(signed short int)0, .__list={ .__prev=((struct __pthread_internal_list *)NULL), .__next=((struct __pthread_internal_list *)NULL) } } }; // connection_lock // file plugins.c line 48 static union anonymous$6 connection_lock = { .__data={ .__lock=0, .__count=(unsigned int)0, .__owner=0, .__nusers=(unsigned int)0, .__kind=0, .__spins=(signed short int)0, .__elision=(signed short int)0, .__list={ .__prev=((struct __pthread_internal_list *)NULL), .__next=((struct __pthread_internal_list *)NULL) } } }; // dl // file plugins.c line 55 static void *dl; // filename // file plugins.c line 54 static char *filename; // foreground // file main.c line 68 signed int foreground; // group // file main.c line 76 const char *group; // ipaddr // file main.c line 69 const char *ipaddr; // listen_stdin // file main.c line 70 signed int listen_stdin; // long_options // file main.c line 87 static struct option long_options[20l] = { { .name="help", .has_arg=0, .flag=(signed int *)(void *)0, .val=128 }, { .name="dump-config", .has_arg=0, .flag=(signed int *)(void *)0, .val=0 }, { .name="foreground", .has_arg=0, .flag=(signed int *)(void *)0, .val=102 }, { .name="no-fork", .has_arg=0, .flag=(signed int *)(void *)0, .val=102 }, { .name="group", .has_arg=1, .flag=(signed int *)(void *)0, .val=103 }, { .name="ip-addr", .has_arg=1, .flag=(signed int *)(void *)0, .val=105 }, { .name="ipaddr", .has_arg=1, .flag=(signed int *)(void *)0, .val=105 }, { .name="pid-file", .has_arg=1, .flag=(signed int *)(void *)0, .val=80 }, { .name="pidfile", .has_arg=1, .flag=(signed int *)(void *)0, .val=80 }, { .name="port", .has_arg=1, .flag=(signed int *)(void *)0, .val=112 }, { .name="read-only", .has_arg=0, .flag=(signed int *)(void *)0, .val=114 }, { .name="readonly", .has_arg=0, .flag=(signed int *)(void *)0, .val=114 }, { .name="run", .has_arg=1, .flag=(signed int *)(void *)0, .val=0 }, { .name="single", .has_arg=0, .flag=(signed int *)(void *)0, .val=115 }, { .name="stdin", .has_arg=0, .flag=(signed int *)(void *)0, .val=115 }, { .name="unix", .has_arg=1, .flag=(signed int *)(void *)0, .val=85 }, { .name="user", .has_arg=1, .flag=(signed int *)(void *)0, .val=117 }, { .name="verbose", .has_arg=0, .flag=(signed int *)(void *)0, .val=118 }, { .name="version", .has_arg=0, .flag=(signed int *)(void *)0, .val=86 }, { .name=(const char *)(void *)0, .has_arg=0, .flag=((signed int *)NULL), .val=0 } }; // optarg // file /usr/include/getopt.h line 57 extern char *optarg; // optind // file /usr/include/getopt.h line 71 extern signed int optind; // pidfile // file main.c line 71 char *pidfile; // plugin // file plugins.c line 56 static struct nbdkit_plugin plugin; // port // file main.c line 72 const char *port; // program_invocation_short_name // file /usr/include/errno.h line 54 extern char *program_invocation_short_name; // quit // file main.c line 79 volatile signed int quit; // random_fifo // file main.c line 82 static char *random_fifo = (char *)(void *)0; // random_fifo_dir // file main.c line 81 static char *random_fifo_dir = (char *)(void *)0; // readonly // file main.c line 73 signed int readonly; // run // file main.c line 74 char *run; // short_options // file main.c line 86 static const char *short_options = "fg:i:p:P:rsu:U:vV"; // stderr // file /usr/include/stdio.h line 170 extern struct _IO_FILE *stderr; // tls_key // file tls.c line 61 static unsigned int tls_key; // unixsocket // file main.c line 75 char *unixsocket; // user // file main.c line 76 const char *user; // verbose // file main.c line 77 signed int verbose; // __bswap_32 // file /usr/include/x86_64-linux-gnu/bits/byteswap.h line 45 static inline unsigned int __bswap_32(unsigned int __bsx) { signed long int return_value___builtin_bswap32$1; return_value___builtin_bswap32$1=__builtin_bswap32((signed long int)__bsx); return (unsigned int)return_value___builtin_bswap32$1; } // __bswap_64 // file /usr/include/x86_64-linux-gnu/bits/byteswap.h line 109 static inline unsigned long int __bswap_64(unsigned long int __bsx) { signed long long int return_value___builtin_bswap64$1; return_value___builtin_bswap64$1=__builtin_bswap64((signed long long int)__bsx); return (unsigned long int)return_value___builtin_bswap64$1; } // _handle_request // file connections.c line 327 static signed int _handle_request(struct connection *conn, unsigned int cmd, unsigned int flags, unsigned long int offset, unsigned int count, void *buf, unsigned int *error) { _Bool flush_after_command; signed int r; flush_after_command = (flags & (unsigned int)(1 << 16)) != (unsigned int)0; _Bool tmp_if_expr$1; if(conn->can_flush == 0) tmp_if_expr$1 = (_Bool)1; else tmp_if_expr$1 = conn->readonly != 0 ? (_Bool)1 : (_Bool)0; if(tmp_if_expr$1) flush_after_command = (_Bool)0; signed int tmp_if_expr$4; signed int *return_value___errno_location$3; signed int tmp_if_expr$7; signed int *return_value___errno_location$6; signed int tmp_if_expr$10; signed int *return_value___errno_location$9; signed int tmp_if_expr$13; signed int *return_value___errno_location$12; switch(cmd) { case (unsigned int)0: { r=plugin_pread(conn, buf, count, offset); if(r == -1) { signed int *return_value___errno_location$2; return_value___errno_location$2=__errno_location(); if(!(*return_value___errno_location$2 == 0)) { return_value___errno_location$3=__errno_location(); tmp_if_expr$4 = *return_value___errno_location$3; } else tmp_if_expr$4 = 5; *error = (unsigned int)tmp_if_expr$4; return 0; } break; } case (unsigned int)1: { r=plugin_pwrite(conn, buf, count, offset); if(r == -1) { signed int *return_value___errno_location$5; return_value___errno_location$5=__errno_location(); if(!(*return_value___errno_location$5 == 0)) { return_value___errno_location$6=__errno_location(); tmp_if_expr$7 = *return_value___errno_location$6; } else tmp_if_expr$7 = 5; *error = (unsigned int)tmp_if_expr$7; return 0; } break; } case (unsigned int)3: { r=plugin_flush(conn); if(r == -1) { signed int *return_value___errno_location$8; return_value___errno_location$8=__errno_location(); if(!(*return_value___errno_location$8 == 0)) { return_value___errno_location$9=__errno_location(); tmp_if_expr$10 = *return_value___errno_location$9; } else tmp_if_expr$10 = 5; *error = (unsigned int)tmp_if_expr$10; return 0; } break; } case (unsigned int)4: { r=plugin_trim(conn, count, offset); if(r == -1) { signed int *return_value___errno_location$11; return_value___errno_location$11=__errno_location(); if(!(*return_value___errno_location$11 == 0)) { return_value___errno_location$12=__errno_location(); tmp_if_expr$13 = *return_value___errno_location$12; } else tmp_if_expr$13 = 5; *error = (unsigned int)tmp_if_expr$13; return 0; } break; } default: abort(); } signed int tmp_if_expr$16; signed int *return_value___errno_location$15; if(!(flush_after_command == (_Bool)0)) { r=plugin_flush(conn); if(r == -1) { signed int *return_value___errno_location$14; return_value___errno_location$14=__errno_location(); if(!(*return_value___errno_location$14 == 0)) { return_value___errno_location$15=__errno_location(); tmp_if_expr$16 = *return_value___errno_location$15; } else tmp_if_expr$16 = 5; *error = (unsigned int)tmp_if_expr$16; return 0; } } return 0; } // _handle_single_connection // file connections.c line 61 static signed int _handle_single_connection(signed int sockin, signed int sockout) { signed int r; struct connection *conn; conn=new_connection(sockin, sockout); signed int return_value_plugin_open$1; const char *return_value_plugin_name$2; signed int return_value_negotiate_handshake$3; if(!(conn == ((struct connection *)NULL))) { return_value_plugin_open$1=plugin_open(conn, readonly); if(return_value_plugin_open$1 == -1) goto err; return_value_plugin_name$2=plugin_name(); tls_set_name(return_value_plugin_name$2); return_value_negotiate_handshake$3=negotiate_handshake(conn); if(return_value_negotiate_handshake$3 == -1) goto err; while(quit == 0) { r=recv_request_send_reply(conn); if(r == -1) goto err; if(r == 0) break; } free_connection(conn); return 0; } else { err: ; free_connection(conn); return -1; } } // _negotiate_handshake // file connections.c line 150 static signed int _negotiate_handshake(struct connection *conn) { struct old_handshake handshake; signed long int r; unsigned long int exportsize; unsigned short int gflags; unsigned short int eflags; signed int fl; r=plugin_get_size(conn); unsigned short int tmp_statement_expression$1; unsigned short int tmp_statement_expression$2; if(r == -1l) return -1; else if(!(r >= 0l)) { nbdkit_error(".get_size function returned invalid value (%li)", r); return -1; } else { exportsize = (unsigned long int)r; conn->exportsize = exportsize; gflags = (unsigned short int)0; eflags = (unsigned short int)1; fl=plugin_can_write(conn); if(fl == -1) return -1; else { if(fl == 0 || !(readonly == 0)) { eflags = eflags | (unsigned short int)2; conn->readonly = 1; } fl=plugin_can_flush(conn); if(fl == -1) return -1; else { if(!(fl == 0)) { eflags = eflags | (unsigned short int)(4 | 8); conn->can_flush = 1; } fl=plugin_is_rotational(conn); if(fl == -1) return -1; else { if(!(fl == 0)) { eflags = eflags | (unsigned short int)16; conn->is_rotational = 1; } fl=plugin_can_trim(conn); if(fl == -1) return -1; else { if(!(fl == 0)) { eflags = eflags | (unsigned short int)32; conn->can_trim = 1; } nbdkit_debug("flags: global 0x%x export 0x%x", gflags, eflags); memset((void *)&handshake, 0, sizeof(struct old_handshake) /*152ul*/ ); memcpy((void *)handshake.nbdmagic, (const void *)"NBDMAGIC", (unsigned long int)8); handshake.version=__bswap_64(0x420281861253UL); handshake.exportsize=__bswap_64(exportsize); unsigned short int _negotiate_handshake$$1$$6$$__v; unsigned short int _negotiate_handshake$$1$$6$$__x = (unsigned short int)gflags; asm("rorw $8, %w0" : "=r"(_negotiate_handshake$$1$$6$$__v) : "0"(_negotiate_handshake$$1$$6$$__x) : "cc"); tmp_statement_expression$1 = _negotiate_handshake$$1$$6$$__v; handshake.gflags = tmp_statement_expression$1; unsigned short int __v; unsigned short int __x = (unsigned short int)eflags; asm("rorw $8, %w0" : "=r"(__v) : "0"(__x) : "cc"); tmp_statement_expression$2 = __v; handshake.eflags = tmp_statement_expression$2; signed int return_value_xwrite$3; return_value_xwrite$3=xwrite(conn->sockout, (const void *)&handshake, sizeof(struct old_handshake) /*152ul*/ ); if(return_value_xwrite$3 == -1) { nbdkit_error("write: %m"); return -1; } else return 0; } } } } } } // accept_connection // file sockets.c line 226 static void accept_connection(signed int listen_sock) { signed int err; union pthread_attr_t attrs; unsigned long int thread; struct thread_data thread_data; static unsigned long int instance_num = (unsigned long int)1; unsigned long int tmp_post$1 = instance_num; instance_num = instance_num + 1ul; thread_data.instance_num = tmp_post$1; thread_data.addrlen = (unsigned int)sizeof(struct sockaddr) /*16ul*/ ; signed int *return_value___errno_location$2; _Bool tmp_if_expr$4; signed int *return_value___errno_location$3; do { again: ; thread_data.sock=accept(listen_sock, &thread_data.addr, &thread_data.addrlen); if(!(thread_data.sock == -1)) goto __CPROVER_DUMP_L4; return_value___errno_location$2=__errno_location(); if(*return_value___errno_location$2 == 4) tmp_if_expr$4 = (_Bool)1; else { return_value___errno_location$3=__errno_location(); tmp_if_expr$4 = *return_value___errno_location$3 == 11 ? (_Bool)1 : (_Bool)0; } } while(tmp_if_expr$4); perror("accept"); goto __CPROVER_DUMP_L6; __CPROVER_DUMP_L4: ; pthread_attr_init(&attrs); pthread_attr_setdetachstate(&attrs, 1); err=pthread_create(&thread, &attrs, start_thread, (void *)&thread_data); pthread_attr_destroy(&attrs); if(!(err == 0)) { char *return_value_strerror$5; return_value_strerror$5=strerror(err); fprintf(stderr, "%s: pthread_create: %s\n", program_invocation_short_name, return_value_strerror$5); close(thread_data.sock); goto __CPROVER_DUMP_L6; } __CPROVER_DUMP_L6: ; } // accept_incoming_connections // file internal.h line 111 extern void accept_incoming_connections(signed int *socks, unsigned long int nr_socks) { const signed long int accept_incoming_connections$array_size0 = (signed long int)nr_socks; struct pollfd fds[accept_incoming_connections$array_size0]; unsigned long int i; signed int r; _Bool tmp_if_expr$3; signed int *return_value___errno_location$2; while(quit == 0) { i = (unsigned long int)0; for( ; !(i >= nr_socks); i = i + 1ul) { fds[(signed long int)i].fd = socks[(signed long int)i]; fds[(signed long int)i].events = (signed short int)0x001; fds[(signed long int)i].revents = (signed short int)0; } r=poll(fds, nr_socks, -1); if(r == -1) { signed int *return_value___errno_location$1; return_value___errno_location$1=__errno_location(); if(*return_value___errno_location$1 == 4) tmp_if_expr$3 = (_Bool)1; else { return_value___errno_location$2=__errno_location(); tmp_if_expr$3 = *return_value___errno_location$2 == 11 ? (_Bool)1 : (_Bool)0; } if(tmp_if_expr$3) continue; perror("poll"); exit(1); } i = (unsigned long int)0; for( ; !(i >= nr_socks); i = i + 1ul) if(!((0x001 & (signed int)fds[(signed long int)i].revents) == 0)) accept_connection(fds[(signed long int)i].fd); } } // bind_tcpip_socket // file internal.h line 110 extern signed int * bind_tcpip_socket(unsigned long int *nr_socks) { struct addrinfo *ai = (struct addrinfo *)(void *)0; struct addrinfo hints; struct addrinfo *a; signed int err; signed int opt; signed int *socks = (signed int *)(void *)0; _Bool addr_in_use; if(port == ((const char *)NULL)) port = "10809"; memset((void *)&hints, 0, sizeof(struct addrinfo) /*48ul*/ ); hints.ai_flags = 0x0001 | 0x0020; hints.ai_socktype = 1; err=getaddrinfo(ipaddr, port, &hints, &ai); if(!(err == 0)) { const char *return_value_gai_strerror$1; return_value_gai_strerror$1=gai_strerror(err); fprintf(stderr, "%s: getaddrinfo: %s: %s: %s", program_invocation_short_name, ipaddr != ((const char *)NULL) ? ipaddr : "<any>", port, return_value_gai_strerror$1); exit(1); } *nr_socks = (unsigned long int)0; a = ai; for( ; !(a == ((struct addrinfo *)NULL)); a = a->ai_next) { signed int sock; sock=socket(a->ai_family, a->ai_socktype, a->ai_protocol); if(sock == -1) { perror("socket"); exit(1); } opt = 1; signed int return_value_setsockopt$2; return_value_setsockopt$2=setsockopt(sock, 1, 2, (const void *)&opt, (unsigned int)sizeof(signed int) /*4ul*/ ); if(return_value_setsockopt$2 == -1) perror("setsockopt: SO_REUSEADDR"); if(a->ai_family == 10) { signed int return_value_setsockopt$3; return_value_setsockopt$3=setsockopt(sock, 41, 26, (const void *)&opt, (unsigned int)sizeof(signed int) /*4ul*/ ); if(return_value_setsockopt$3 == -1) perror("setsockopt: IPv6 only"); } signed int return_value_bind$5; return_value_bind$5=bind(sock, a->ai_addr, a->ai_addrlen); if(return_value_bind$5 == -1) { signed int *return_value___errno_location$4; return_value___errno_location$4=__errno_location(); if(*return_value___errno_location$4 == 98) { addr_in_use = (_Bool)1; close(sock); goto __CPROVER_DUMP_L12; } perror("bind"); exit(1); } signed int return_value_listen$6; return_value_listen$6=listen(sock, 128); if(return_value_listen$6 == -1) { perror("listen"); exit(1); } *nr_socks = *nr_socks + 1ul; void *return_value_realloc$7; return_value_realloc$7=realloc((void *)socks, sizeof(signed int) /*4ul*/ * *nr_socks); socks = (signed int *)return_value_realloc$7; if(socks == ((signed int *)NULL)) { perror("realloc"); exit(1); } socks[(signed long int)(*nr_socks - (unsigned long int)1)] = sock; __CPROVER_DUMP_L12: ; } freeaddrinfo(ai); if(*nr_socks == 0ul) { if(!(addr_in_use == (_Bool)0)) { char *return_value_strerror$8; return_value_strerror$8=strerror(98); fprintf(stderr, "%s: unable to bind to any sockets: %s\n", program_invocation_short_name, return_value_strerror$8); exit(1); } } nbdkit_debug("bound to IP address %s:%s (%zu socket(s))", ipaddr != ((const char *)NULL) ? ipaddr : "<any>", port, *nr_socks); return socks; } // bind_unix_socket // file internal.h line 109 extern signed int * bind_unix_socket(unsigned long int *nr_socks) { unsigned long int len; signed int sock; struct sockaddr_un addr; signed int *ret; /* assertion unixsocket */ assert(unixsocket != ((char *)NULL)); /* assertion unixsocket[0] == '/' */ assert((signed int)unixsocket[(signed long int)0] == 47); len=strlen(unixsocket); if(len >= 108ul) { fprintf(stderr, "%s: -U option: path too long (max is %d) bytes", program_invocation_short_name, 108 - 1); exit(1); } sock=socket(1, 1 | 524288, 0); if(sock == -1) { perror("socket"); exit(1); } addr.sun_family = (unsigned short int)1; memcpy((void *)addr.sun_path, (const void *)unixsocket, len + (unsigned long int)1); signed int return_value_bind$1; return_value_bind$1=bind(sock, (struct sockaddr *)&addr, (unsigned int)sizeof(struct sockaddr_un) /*110ul*/ ); if(return_value_bind$1 == -1) { perror(unixsocket); exit(1); } signed int return_value_listen$2; return_value_listen$2=listen(sock, 128); if(return_value_listen$2 == -1) { perror("listen"); exit(1); } void *return_value_malloc$3; return_value_malloc$3=malloc(sizeof(signed int) /*4ul*/ ); ret = (signed int *)return_value_malloc$3; if(ret == ((signed int *)NULL)) { perror("malloc"); exit(1); } ret[(signed long int)0] = sock; *nr_socks = (unsigned long int)1; nbdkit_debug("bound to unix socket %s", unixsocket); return ret; } // change_user // file main.c line 468 static void change_user(void) { if(!(group == ((const char *)NULL))) { unsigned int gid; gid=parsegroup(group); signed int return_value_setgid$1; return_value_setgid$1=setgid(gid); if(return_value_setgid$1 == -1) { perror("setgid"); exit(1); } signed int return_value_setgroups$2; return_value_setgroups$2=setgroups((unsigned long int)1, &gid); if(return_value_setgroups$2 == -1) { perror("setgroups"); exit(1); } nbdkit_debug("changed group to %s", group); } if(!(user == ((const char *)NULL))) { unsigned int uid; uid=parseuser(user); signed int return_value_setuid$3; return_value_setuid$3=setuid(uid); if(return_value_setuid$3 == -1) { perror("setuid"); exit(1); } nbdkit_debug("changed user to %s", user); } } // cleanup_free // file cleanup.c line 45 extern void cleanup_free(void *ptr) { free(*((void **)ptr)); } // display_version // file main.c line 122 static void display_version(void) { printf("%s %s\n", (const void *)"nbdkit", (const void *)"1.1.11"); } // dump_config // file main.c line 128 static void dump_config(void) { printf("%s=%s\n", (const void *)"bindir", (const void *)"/usr/bin"); printf("%s=%s\n", (const void *)"libdir", (const void *)"/usr/lib/x86_64-linux-gnu"); printf("%s=%s\n", (const void *)"name", (const void *)"nbdkit"); printf("%s=%s\n", (const void *)"plugindir", (const void *)"/usr/lib/x86_64-linux-gnu/nbdkit/plugins"); printf("%s=%s\n", (const void *)"sbindir", (const void *)"/usr/sbin"); printf("%s=%s\n", (const void *)"sysconfdir", (const void *)"/etc"); printf("%s=%s\n", (const void *)"version", (const void *)"1.1.11"); } // fork_into_background // file main.c line 530 static void fork_into_background(void) { signed int pid; if(foreground == 0) { pid=fork(); if(pid == -1) { perror("fork"); exit(1); } if(pid >= 1) exit(0); chdir("/"); close(0); close(1); open("/dev/null", 00); open("/dev/null", 01); if(verbose == 0) dup2(1, 2); signed int return_value_getpid$1; return_value_getpid$1=getpid(); nbdkit_debug("forked into background (new pid = %d)", return_value_getpid$1); } } // free_connection // file connections.c line 128 static void free_connection(struct connection *conn) { if(!(conn == ((struct connection *)NULL))) { if(conn->sockin >= 0) close(conn->sockin); if(conn->sockout >= 0) { if(!(conn->sockin == conn->sockout)) close(conn->sockout); } pthread_mutex_destroy(&conn->request_lock); if(!(conn->handle == NULL)) plugin_close(conn); free((void *)conn); } } // free_listening_sockets // file internal.h line 112 extern void free_listening_sockets(signed int *socks, unsigned long int nr_socks) { unsigned long int i = (unsigned long int)0; for( ; !(i >= nr_socks); i = i + 1ul) close(socks[(signed long int)i]); free((void *)socks); } // free_tls // file tls.c line 64 static void free_tls(void *tlsv) { struct tls *tls = (struct tls *)tlsv; free((void *)tls->addr); free((void *)tls); } // handle_quit // file main.c line 443 static void handle_quit(signed int sig) { quit = 1; } // handle_request // file connections.c line 389 static signed int handle_request(struct connection *conn, unsigned int cmd, unsigned int flags, unsigned long int offset, unsigned int count, void *buf, unsigned int *error) { signed int r; plugin_lock_request(conn); r=_handle_request(conn, cmd, flags, offset, count, buf, error); plugin_unlock_request(conn); return r; } // handle_single_connection // file connections.c line 98 extern signed int handle_single_connection(signed int sockin, signed int sockout) { signed int r; plugin_lock_connection(); r=_handle_single_connection(sockin, sockout); plugin_unlock_connection(); return r; } // main // file main.c line 140 signed int main(signed int argc, char **argv) { signed int c; signed int option_index; signed int help = 0; signed int version = 0; tls_init(); signed int return_value_strcmp$2; signed int return_value_strcmp$1; signed int return_value_strcmp$3; do { c=getopt_long(argc, argv, short_options, long_options, &option_index); if(c == -1) break; switch(c) { case 0: { return_value_strcmp$2=strcmp(long_options[(signed long int)option_index].name, "dump-config"); if(return_value_strcmp$2 == 0) { dump_config(); exit(0); } else { return_value_strcmp$1=strcmp(long_options[(signed long int)option_index].name, "run"); if(return_value_strcmp$1 == 0) { run = optarg; foreground = 1; } else { fprintf(stderr, "%s: unknown long option: %s (%d)\n", program_invocation_short_name, long_options[(signed long int)option_index].name, option_index); exit(1); } } break; } case 102: { foreground = 1; break; } case 103: { group = optarg; break; } case 105: { ipaddr = optarg; break; } case 80: { pidfile=nbdkit_absolute_path(optarg); if(pidfile == ((char *)NULL)) exit(1); break; } case 112: { port = optarg; break; } case 114: { readonly = 1; break; } case 115: { listen_stdin = 1; break; } case 85: { return_value_strcmp$3=strcmp(optarg, "-"); if(return_value_strcmp$3 == 0) unixsocket=make_random_fifo(); else unixsocket=nbdkit_absolute_path(optarg); if(unixsocket == ((char *)NULL)) exit(1); break; } case 117: { user = optarg; break; } case 118: { verbose = 1; break; } case 86: { version = 1; break; } case 128: { help = 1; break; } default: { usage(); exit(1); } } } while((_Bool)1); if(optind >= argc) { if(!(help == 0)) { usage(); exit(0); } if(!(version == 0)) { display_version(); exit(0); } fprintf(stderr, "%s: no plugins given on the command line.\nRead nbdkit(1) for documentation.\n", program_invocation_short_name); exit(1); } while(!(optind >= argc)) { const char *main$$1$$3$$filename = argv[(signed long int)optind]; char *p; open_plugin_so(main$$1$$3$$filename); optind = optind + 1; while(!(optind >= argc)) { p=strchr(argv[(signed long int)optind], 61); if(p == ((char *)NULL)) break; if(help == 0 && version == 0) { *p = (char)0; plugin_config(argv[(signed long int)optind], p + (signed long int)1); optind = optind + 1; } } if(!(help == 0)) { usage(); printf("\n%s:\n\n", main$$1$$3$$filename); plugin_usage(); exit(0); } if(!(version == 0)) { display_version(); plugin_version(); exit(0); } plugin_config_complete(); optind = optind + 1; if(!(optind >= argc)) { fprintf(stderr, "%s: this server only supports a single plugin\n", program_invocation_short_name); exit(1); } } start_serving(); plugin_cleanup(); free((void *)unixsocket); free((void *)pidfile); if(!(random_fifo == ((char *)NULL))) { unlink(random_fifo); free((void *)random_fifo); } if(!(random_fifo_dir == ((char *)NULL))) { rmdir(random_fifo_dir); free((void *)random_fifo_dir); } exit(0); } // make_random_fifo // file main.c line 323 static char * make_random_fifo(void) { char template[18l] = { '/', 't', 'm', 'p', '/', 'n', 'b', 'd', 'k', 'i', 't', 'X', 'X', 'X', 'X', 'X', 'X', 0 }; char *make_random_fifo$$1$$unixsocket; char *return_value_mkdtemp$1; return_value_mkdtemp$1=mkdtemp(template); if(return_value_mkdtemp$1 == ((char *)NULL)) { perror("mkdtemp"); return (char *)(void *)0; } else { random_fifo_dir=strdup(template); if(random_fifo_dir == ((char *)NULL)) { perror("strdup"); return (char *)(void *)0; } else { signed int return_value_asprintf$2; return_value_asprintf$2=asprintf(&random_fifo, "%s/socket", (const void *)template); if(return_value_asprintf$2 == -1) { perror("asprintf"); return (char *)(void *)0; } else { make_random_fifo$$1$$unixsocket=strdup(random_fifo); if(make_random_fifo$$1$$unixsocket == ((char *)NULL)) { perror("strdup"); return (char *)(void *)0; } else return make_random_fifo$$1$$unixsocket; } } } } // nbdkit_absolute_path // file ../include/nbdkit-plugin.h line 91 extern char * nbdkit_absolute_path(const char *path) { char *pwd = (char *)(void *)0; char *ret; _Bool tmp_if_expr$1; if(path == ((const char *)NULL)) tmp_if_expr$1 = (_Bool)1; else tmp_if_expr$1 = (signed int)*path == 0 ? (_Bool)1 : (_Bool)0; if(tmp_if_expr$1) { nbdkit_error("cannot convert null or empty path to an absolute path"); return (char *)(void *)0; } else if((signed int)*path == 47) { ret=strdup(path); if(ret == ((char *)NULL)) { nbdkit_error("strdup: %m"); return (char *)(void *)0; } return ret; } else { pwd=get_current_dir_name(); if(pwd == ((char *)NULL)) { nbdkit_error("get_current_dir_name: %m"); return (char *)(void *)0; } else { signed int return_value_asprintf$2; return_value_asprintf$2=asprintf(&ret, "%s/%s", pwd, path); if(return_value_asprintf$2 == -1) { nbdkit_error("asprintf: %m"); return (char *)(void *)0; } else return ret; } } } // nbdkit_debug // file ../include/nbdkit-plugin.h line 87 extern void nbdkit_debug(const char *fs, ...) { void **args; signed int err; signed int *return_value___errno_location$1; return_value___errno_location$1=__errno_location(); err = *return_value___errno_location$1; if(!(verbose == 0)) { prologue("debug"); args = (void **)&fs; vfprintf(stderr, fs, args); args = ((void **)NULL); fprintf(stderr, "\n"); signed int *return_value___errno_location$2; return_value___errno_location$2=__errno_location(); *return_value___errno_location$2 = err; } } // nbdkit_error // file ../include/nbdkit-plugin.h line 84 extern void nbdkit_error(const char *fs, ...) { void **args; signed int err; signed int *return_value___errno_location$1; return_value___errno_location$1=__errno_location(); err = *return_value___errno_location$1; prologue("error"); args = (void **)&fs; vfprintf(stderr, fs, args); args = ((void **)NULL); fprintf(stderr, "\n"); signed int *return_value___errno_location$2; return_value___errno_location$2=__errno_location(); *return_value___errno_location$2 = err; } // nbdkit_parse_size // file utils.c line 86 extern signed long int nbdkit_parse_size(const char *str) { unsigned long int size; char t; signed int return_value_sscanf$1; return_value_sscanf$1=sscanf(str, "%lu%c", &size, &t); if(return_value_sscanf$1 == 2) switch((signed int)t) { case 98: case 66: return (signed long int)size; case 107: case 75: return (signed long int)size * (signed long int)1024; case 109: case 77: return (signed long int)size * (signed long int)1024 * (signed long int)1024; case 103: case 71: return (signed long int)size * (signed long int)1024 * (signed long int)1024 * (signed long int)1024; case 116: case 84: return (signed long int)size * (signed long int)1024 * (signed long int)1024 * (signed long int)1024 * (signed long int)1024; case 112: case 80: return (signed long int)size * (signed long int)1024 * (signed long int)1024 * (signed long int)1024 * (signed long int)1024 * (signed long int)1024; case 101: case 69: return (signed long int)size * (signed long int)1024 * (signed long int)1024 * (signed long int)1024 * (signed long int)1024 * (signed long int)1024 * (signed long int)1024; case 115: case 83: return (signed long int)size * (signed long int)512; default: { nbdkit_error("could not parse size: unknown specifier '%c'", t); return (signed long int)-1; } } else { signed int return_value_sscanf$2; return_value_sscanf$2=sscanf(str, "%lu", &size); if(return_value_sscanf$2 == 1) return (signed long int)size; else { nbdkit_error("could not parse size string (%s)", str); return (signed long int)-1; } } } // nbdkit_vdebug // file errors.c line 65 extern void nbdkit_vdebug(const char *fs, void **args) { signed int err; signed int *return_value___errno_location$1; return_value___errno_location$1=__errno_location(); err = *return_value___errno_location$1; if(!(verbose == 0)) { prologue("debug"); vfprintf(stderr, fs, args); fprintf(stderr, "\n"); signed int *return_value___errno_location$2; return_value___errno_location$2=__errno_location(); *return_value___errno_location$2 = err; } } // nbdkit_verror // file errors.c line 104 extern void nbdkit_verror(const char *fs, void **args) { signed int err; signed int *return_value___errno_location$1; return_value___errno_location$1=__errno_location(); err = *return_value___errno_location$1; prologue("error"); vfprintf(stderr, fs, args); fprintf(stderr, "\n"); signed int *return_value___errno_location$2; return_value___errno_location$2=__errno_location(); *return_value___errno_location$2 = err; } // negotiate_handshake // file connections.c line 222 static signed int negotiate_handshake(struct connection *conn) { signed int r; plugin_lock_request(conn); r=_negotiate_handshake(conn); plugin_unlock_request(conn); return r; } // new_connection // file connections.c line 110 static struct connection * new_connection(signed int sockin, signed int sockout) { struct connection *conn; void *return_value_calloc$1; return_value_calloc$1=calloc((unsigned long int)1, sizeof(struct connection) /*80ul*/ ); conn = (struct connection *)return_value_calloc$1; if(conn == ((struct connection *)NULL)) { perror("malloc"); return (struct connection *)(void *)0; } else { conn->sockin = sockin; conn->sockout = sockout; pthread_mutex_init(&conn->request_lock, (const union anonymous$7 *)(void *)0); return conn; } } // open_plugin_so // file main.c line 354 static void open_plugin_so(const char *name) { char *open_plugin_so$$1$$filename = (char *)name; signed int free_filename = 0; void *open_plugin_so$$1$$dl; struct nbdkit_plugin * (*plugin_init)(void); char *error; char *return_value_strchr$3; return_value_strchr$3=strchr(name, 46); char *return_value_strchr$2; if(return_value_strchr$3 == ((char *)NULL)) { return_value_strchr$2=strchr(name, 47); if(return_value_strchr$2 == ((char *)NULL)) { signed int return_value_asprintf$1; return_value_asprintf$1=asprintf(&open_plugin_so$$1$$filename, "%s/nbdkit-%s-plugin.so", (const void *)"/usr/lib/x86_64-linux-gnu/nbdkit/plugins", name); if(return_value_asprintf$1 == -1) { perror("asprintf"); exit(1); } free_filename = 1; } } open_plugin_so$$1$$dl=dlopen(open_plugin_so$$1$$filename, 0x00002 | 0x00100); if(open_plugin_so$$1$$dl == NULL) { char *return_value_dlerror$4; return_value_dlerror$4=dlerror(); fprintf(stderr, "%s: %s: %s\n", program_invocation_short_name, open_plugin_so$$1$$filename, return_value_dlerror$4); exit(1); } dlerror(); *((void **)&plugin_init)=dlsym(open_plugin_so$$1$$dl, "plugin_init"); error=dlerror(); if(!(error == ((char *)NULL))) { fprintf(stderr, "%s: %s: %s\n", program_invocation_short_name, name, error); exit(1); } if(plugin_init == ((struct nbdkit_plugin * (*)(void))NULL)) { fprintf(stderr, "%s: %s: invalid plugin_init\n", program_invocation_short_name, name); exit(1); } plugin_register(open_plugin_so$$1$$filename, open_plugin_so$$1$$dl, plugin_init); if(!(free_filename == 0)) free((void *)open_plugin_so$$1$$filename); } // parsegroup // file main.c line 673 static unsigned int parsegroup(const char *id) { struct group *grp; signed int saved_errno; signed int *return_value___errno_location$1; return_value___errno_location$1=__errno_location(); *return_value___errno_location$1 = 0; grp=getgrnam(id); char *return_value_strerror$4; if(grp == ((struct group *)NULL)) { signed int val; signed int *return_value___errno_location$2; return_value___errno_location$2=__errno_location(); saved_errno = *return_value___errno_location$2; signed int return_value_sscanf$3; return_value_sscanf$3=sscanf(id, "%d", &val); if(return_value_sscanf$3 == 1) return (unsigned int)val; fprintf(stderr, "%s: -g option: %s is not a valid group name or gid", program_invocation_short_name, id); if(!(saved_errno == 0)) { return_value_strerror$4=strerror(saved_errno); fprintf(stderr, " (getgrnam error: %s)", return_value_strerror$4); } fprintf(stderr, "\n"); exit(1); } return grp->gr_gid; } // parseuser // file main.c line 645 static unsigned int parseuser(const char *id) { struct passwd *pwd; signed int saved_errno; signed int *return_value___errno_location$1; return_value___errno_location$1=__errno_location(); *return_value___errno_location$1 = 0; pwd=getpwnam(id); char *return_value_strerror$4; if(pwd == ((struct passwd *)NULL)) { signed int val; signed int *return_value___errno_location$2; return_value___errno_location$2=__errno_location(); saved_errno = *return_value___errno_location$2; signed int return_value_sscanf$3; return_value_sscanf$3=sscanf(id, "%d", &val); if(return_value_sscanf$3 == 1) return (unsigned int)val; fprintf(stderr, "%s: -u option: %s is not a valid user name or uid", program_invocation_short_name, id); if(!(saved_errno == 0)) { return_value_strerror$4=strerror(saved_errno); fprintf(stderr, " (getpwnam error: %s)", return_value_strerror$4); } fprintf(stderr, "\n"); exit(1); } return pwd->pw_uid; } // plugin_can_flush // file internal.h line 100 extern signed int plugin_can_flush(struct connection *conn) { /* assertion dl */ assert(dl != NULL); /* assertion conn->handle */ assert(conn->handle != NULL); nbdkit_debug("can_flush"); signed int return_value; if(!(plugin.can_flush == ((signed int (*)(void *))NULL))) { return_value=plugin.can_flush(conn->handle); return return_value; } else return (signed int)(plugin.flush != (signed int (*)(void *))(void *)0); } // plugin_can_trim // file internal.h line 102 extern signed int plugin_can_trim(struct connection *conn) { /* assertion dl */ assert(dl != NULL); /* assertion conn->handle */ assert(conn->handle != NULL); nbdkit_debug("can_trim"); signed int return_value; if(!(plugin.can_trim == ((signed int (*)(void *))NULL))) { return_value=plugin.can_trim(conn->handle); return return_value; } else return (signed int)(plugin.trim != (signed int (*)(void *, unsigned int, unsigned long int))(void *)0); } // plugin_can_write // file internal.h line 99 extern signed int plugin_can_write(struct connection *conn) { /* assertion dl */ assert(dl != NULL); /* assertion conn->handle */ assert(conn->handle != NULL); nbdkit_debug("can_write"); signed int return_value; if(!(plugin.can_write == ((signed int (*)(void *))NULL))) { return_value=plugin.can_write(conn->handle); return return_value; } else return (signed int)(plugin.pwrite != (signed int (*)(void *, const void *, unsigned int, unsigned long int))(void *)0); } // plugin_cleanup // file internal.h line 86 extern void plugin_cleanup(void) { if(!(dl == NULL)) { nbdkit_debug("%s: unload", filename); if(!(plugin.unload == ((void (*)(void))NULL))) plugin.unload(); dlclose(dl); dl = (void *)0; free((void *)filename); filename = (char *)(void *)0; } } // plugin_close // file internal.h line 97 extern void plugin_close(struct connection *conn) { /* assertion dl */ assert(dl != NULL); /* assertion conn->handle */ assert(conn->handle != NULL); nbdkit_debug("close"); if(!(plugin.close == ((void (*)(void *))NULL))) plugin.close(conn->handle); conn->handle = (void *)0; } // plugin_config // file internal.h line 90 extern void plugin_config(const char *key, const char *value) { /* assertion dl */ assert(dl != NULL); nbdkit_debug("%s: config key=%s, value=%s", filename, key, value); if(plugin.config == ((signed int (*)(const char *, const char *))NULL)) { fprintf(stderr, "%s: %s: this plugin does not need command line configuration\nTry using: %s --help %s\n", program_invocation_short_name, filename, program_invocation_short_name, filename); exit(1); } signed int return_value; return_value=plugin.config(key, value); if(return_value == -1) exit(1); } // plugin_config_complete // file internal.h line 91 extern void plugin_config_complete(void) { /* assertion dl */ assert(dl != NULL); nbdkit_debug("%s: config_complete", filename); if(!(plugin.config_complete == ((signed int (*)(void))NULL))) { signed int return_value; return_value=plugin.config_complete(); if(return_value == -1) exit(1); } } // plugin_flush // file internal.h line 105 extern signed int plugin_flush(struct connection *conn) { /* assertion dl */ assert(dl != NULL); /* assertion conn->handle */ assert(conn->handle != NULL); nbdkit_debug("flush"); signed int return_value; if(!(plugin.flush == ((signed int (*)(void *))NULL))) { return_value=plugin.flush(conn->handle); return return_value; } else { signed int *return_value___errno_location$1; return_value___errno_location$1=__errno_location(); *return_value___errno_location$1 = 22; return -1; } } // plugin_get_size // file internal.h line 98 extern signed long int plugin_get_size(struct connection *conn) { /* assertion dl */ assert(dl != NULL); /* assertion conn->handle */ assert(conn->handle != NULL); /* assertion plugin.get_size != ((void *)0) */ assert(plugin.get_size != (signed long int (*)(void *))(void *)0); nbdkit_debug("get_size"); signed long int return_value; return_value=plugin.get_size(conn->handle); return return_value; } // plugin_is_rotational // file internal.h line 101 extern signed int plugin_is_rotational(struct connection *conn) { /* assertion dl */ assert(dl != NULL); /* assertion conn->handle */ assert(conn->handle != NULL); nbdkit_debug("is_rotational"); signed int return_value; if(!(plugin.is_rotational == ((signed int (*)(void *))NULL))) { return_value=plugin.is_rotational(conn->handle); return return_value; } else return 0; } // plugin_lock_connection // file internal.h line 92 extern void plugin_lock_connection(void) { /* assertion dl */ assert(dl != NULL); if(!(plugin._thread_model >= 1)) { nbdkit_debug("%s: acquire connection lock", filename); pthread_mutex_lock(&connection_lock); } } // plugin_lock_request // file internal.h line 94 extern void plugin_lock_request(struct connection *conn) { /* assertion dl */ assert(dl != NULL); if(!(plugin._thread_model >= 2)) { nbdkit_debug("acquire global request lock"); pthread_mutex_lock(&all_requests_lock); } if(!(plugin._thread_model >= 3)) { nbdkit_debug("acquire per-connection request lock"); pthread_mutex_lock(&conn->request_lock); } } // plugin_name // file internal.h line 87 extern const char * plugin_name(void) { /* assertion dl */ assert(dl != NULL); return plugin.name; } // plugin_open // file internal.h line 96 extern signed int plugin_open(struct connection *conn, signed int readonly) { void *handle; /* assertion dl */ assert(dl != NULL); /* assertion conn->handle == ((void *)0) */ assert(conn->handle == (void *)0); /* assertion plugin.open != ((void *)0) */ assert(plugin.open != (void * (*)(signed int))(void *)0); nbdkit_debug("%s: open readonly=%d", filename, readonly); handle=plugin.open(readonly); if(handle == NULL) return -1; else { conn->handle = handle; return 0; } } // plugin_pread // file internal.h line 103 extern signed int plugin_pread(struct connection *conn, void *buf, unsigned int count, unsigned long int offset) { /* assertion dl */ assert(dl != NULL); /* assertion conn->handle */ assert(conn->handle != NULL); /* assertion plugin.pread != ((void *)0) */ assert(plugin.pread != (signed int (*)(void *, void *, unsigned int, unsigned long int))(void *)0); nbdkit_debug("pread count=%u offset=%lu", count, offset); signed int return_value; return_value=plugin.pread(conn->handle, buf, count, offset); return return_value; } // plugin_pwrite // file internal.h line 104 extern signed int plugin_pwrite(struct connection *conn, void *buf, unsigned int count, unsigned long int offset) { /* assertion dl */ assert(dl != NULL); /* assertion conn->handle */ assert(conn->handle != NULL); nbdkit_debug("pwrite count=%u offset=%lu", count, offset); signed int return_value; if(!(plugin.pwrite == ((signed int (*)(void *, const void *, unsigned int, unsigned long int))NULL))) { return_value=plugin.pwrite(conn->handle, buf, count, offset); return return_value; } else { signed int *return_value___errno_location$1; return_value___errno_location$1=__errno_location(); *return_value___errno_location$1 = 30; return -1; } } // plugin_register // file internal.h line 85 extern void plugin_register(const char *_filename, void *_dl, struct nbdkit_plugin * (*plugin_init)(void)) { struct nbdkit_plugin *_plugin; unsigned long int i; unsigned long int len; unsigned long int size; filename=strdup(_filename); if(filename == ((char *)NULL)) { perror("strdup"); exit(1); } dl = _dl; nbdkit_debug("registering %s", filename); _plugin=plugin_init(); if(_plugin == ((struct nbdkit_plugin *)NULL)) { fprintf(stderr, "%s: %s: plugin registration function failed\n", program_invocation_short_name, filename); exit(1); } if(!(_plugin->_api_version == 1)) { fprintf(stderr, "%s: %s: plugin is incompatible with this version of nbdkit (_api_version = %d)\n", program_invocation_short_name, filename, _plugin->_api_version); exit(1); } size = sizeof(struct nbdkit_plugin) /*176ul*/ ; memset((void *)&plugin, 0, size); if(!(_plugin->_struct_size >= size)) size = _plugin->_struct_size; memcpy((void *)&plugin, (const void *)_plugin, size); if(plugin.name == ((const char *)NULL)) { fprintf(stderr, "%s: %s: plugin must have a .name field\n", program_invocation_short_name, filename); exit(1); } if(plugin.open == ((void * (*)(signed int))NULL)) { fprintf(stderr, "%s: %s: plugin must have a .open callback\n", program_invocation_short_name, filename); exit(1); } if(plugin.get_size == ((signed long int (*)(void *))NULL)) { fprintf(stderr, "%s: %s: plugin must have a .get_size callback\n", program_invocation_short_name, filename); exit(1); } if(plugin.pread == ((signed int (*)(void *, void *, unsigned int, unsigned long int))NULL)) { fprintf(stderr, "%s: %s: plugin must have a .pread callback\n", program_invocation_short_name, filename); exit(1); } len=strlen(plugin.name); if(len == 0ul) { fprintf(stderr, "%s: %s: plugin.name field must not be empty\n", program_invocation_short_name, filename); exit(1); } i = (unsigned long int)0; _Bool tmp_if_expr$1; _Bool tmp_if_expr$3; _Bool tmp_if_expr$2; _Bool tmp_if_expr$5; _Bool tmp_if_expr$4; if(!(i >= len)) { if((signed int)plugin.name[(signed long int)i] >= 48) tmp_if_expr$1 = (signed int)plugin.name[(signed long int)i] <= 57 ? (_Bool)1 : (_Bool)0; else tmp_if_expr$1 = (_Bool)0; if(tmp_if_expr$1) tmp_if_expr$3 = (_Bool)1; else { if((signed int)plugin.name[(signed long int)i] >= 97) tmp_if_expr$2 = (signed int)plugin.name[(signed long int)i] <= 122 ? (_Bool)1 : (_Bool)0; else tmp_if_expr$2 = (_Bool)0; tmp_if_expr$3 = tmp_if_expr$2 ? (_Bool)1 : (_Bool)0; } if(tmp_if_expr$3) tmp_if_expr$5 = (_Bool)1; else { if((signed int)plugin.name[(signed long int)i] >= 65) tmp_if_expr$4 = (signed int)plugin.name[(signed long int)i] <= 90 ? (_Bool)1 : (_Bool)0; else tmp_if_expr$4 = (_Bool)0; tmp_if_expr$5 = tmp_if_expr$4 ? (_Bool)1 : (_Bool)0; } if(!tmp_if_expr$5) { fprintf(stderr, "%s: %s: plugin.name ('%s') field must contain only ASCII alphanumeric characters\n", program_invocation_short_name, filename, plugin.name); exit(1); } i = i + 1ul; } nbdkit_debug("registered %s (name %s)", filename, plugin.name); nbdkit_debug("%s: load", filename); if(!(plugin.load == ((void (*)(void))NULL))) plugin.load(); } // plugin_trim // file internal.h line 106 extern signed int plugin_trim(struct connection *conn, unsigned int count, unsigned long int offset) { /* assertion dl */ assert(dl != NULL); /* assertion conn->handle */ assert(conn->handle != NULL); nbdkit_debug("trim count=%u offset=%lu", count, offset); signed int return_value; if(!(plugin.trim == ((signed int (*)(void *, unsigned int, unsigned long int))NULL))) { return_value=plugin.trim(conn->handle, count, offset); return return_value; } else { signed int *return_value___errno_location$1; return_value___errno_location$1=__errno_location(); *return_value___errno_location$1 = 22; return -1; } } // plugin_unlock_connection // file internal.h line 93 extern void plugin_unlock_connection(void) { /* assertion dl */ assert(dl != NULL); if(!(plugin._thread_model >= 1)) { nbdkit_debug("%s: release connection lock", filename); pthread_mutex_unlock(&connection_lock); } } // plugin_unlock_request // file internal.h line 95 extern void plugin_unlock_request(struct connection *conn) { /* assertion dl */ assert(dl != NULL); if(!(plugin._thread_model >= 3)) { nbdkit_debug("release per-connection request lock"); pthread_mutex_unlock(&conn->request_lock); } if(!(plugin._thread_model >= 2)) { nbdkit_debug("release global request lock"); pthread_mutex_unlock(&all_requests_lock); } } // plugin_usage // file internal.h line 88 extern void plugin_usage(void) { /* assertion dl */ assert(dl != NULL); printf("%s", plugin.name); if(!(plugin.longname == ((const char *)NULL))) printf(" (%s)", plugin.longname); printf("\n"); if(!(plugin.description == ((const char *)NULL))) { printf("\n"); printf("%s\n", plugin.description); } if(!(plugin.config_help == ((const char *)NULL))) { printf("\n"); printf("%s\n", plugin.config_help); } } // plugin_version // file internal.h line 89 extern void plugin_version(void) { /* assertion dl */ assert(dl != NULL); printf("%s", plugin.name); if(!(plugin.version == ((const char *)NULL))) printf(" %s", plugin.version); printf("\n"); } // prologue // file errors.c line 46 static void prologue(const char *type) { const char *name; name=tls_get_name(); unsigned long int instance_num; instance_num=tls_get_instance_num(); fprintf(stderr, "%s: ", program_invocation_short_name); if(!(name == ((const char *)NULL))) { fprintf(stderr, "%s", name); if(instance_num >= 1ul) fprintf(stderr, "[%zu]", instance_num); fprintf(stderr, ": "); } fprintf(stderr, "%s: ", type); } // recv_request_send_reply // file connections.c line 422 static signed int recv_request_send_reply(struct connection *conn) { signed int r; struct request request; struct reply reply; unsigned int magic; unsigned int cmd; unsigned int flags; unsigned int count; unsigned int error = (unsigned int)0; unsigned long int offset; char *buf = (char *)(void *)0; r=xread(conn->sockin, (void *)&request, sizeof(struct request) /*28ul*/ ); if(r == -1) { nbdkit_error("read request: %m"); return -1; } else if(r == 0) { nbdkit_debug("client closed input socket, closing connection"); return 0; } else { magic=__bswap_32(request.magic); if(!(magic == 627086611u)) { nbdkit_error("invalid request: 'magic' field is incorrect (0x%x)", magic); return -1; } else { cmd=__bswap_32(request.type); flags = cmd; cmd = cmd & (unsigned int)0xffff; offset=__bswap_64(request.offset); count=__bswap_32(request.count); if(cmd == 2u) { nbdkit_debug("client sent disconnect command, closing connection"); return 0; } else { r=validate_request(conn, cmd, flags, offset, count, &error); if(r == -1) return -1; else { if(r == 0) { if(cmd == 1u) skip_over_write_buffer(conn->sockin, (unsigned long int)count); } else { if(cmd == 0u || cmd == 1u) { void *return_value_malloc$1; return_value_malloc$1=malloc((unsigned long int)count); buf = (char *)return_value_malloc$1; if(buf == ((char *)NULL)) { perror("malloc"); error = (unsigned int)12; if(cmd == 1u) skip_over_write_buffer(conn->sockin, (unsigned long int)count); goto send_reply; } } if(cmd == 1u) { r=xread(conn->sockin, (void *)buf, (unsigned long int)count); if(r == -1) { nbdkit_error("read data: %m"); return -1; } if(r == 0) { nbdkit_debug("client closed input unexpectedly, closing connection"); return 0; } } r=handle_request(conn, cmd, flags, offset, count, (void *)buf, &error); if(r == -1) return -1; } send_reply: ; reply.magic=__bswap_32((unsigned int)0x67446698); reply.handle = request.handle; reply.error=__bswap_32(error); r=xwrite(conn->sockout, (const void *)&reply, sizeof(struct reply) /*16ul*/ ); if(r == -1) { nbdkit_error("write reply: %m"); return -1; } else if(cmd == 0u) { r=xwrite(conn->sockout, (const void *)buf, (unsigned long int)count); if(!(r == -1)) goto __CPROVER_DUMP_L15; nbdkit_error("write data: %m"); return -1; } else { __CPROVER_DUMP_L15: ; return 1; } } } } } } // run_command // file main.c line 562 static void run_command(void) { char *url; char *cmd; signed int r; signed int pid; if(!(run == ((char *)NULL))) { char *return_value_strstr$1; return_value_strstr$1=strstr(run, "guestfish"); if(!(return_value_strstr$1 == ((char *)NULL))) { if(!(port == ((const char *)NULL))) r=asprintf(&url, "nbd://localhost:%s", port); else if(!(unixsocket == ((char *)NULL))) r=asprintf(&url, "nbd://?socket=%s", unixsocket); else abort(); } else if(!(port == ((const char *)NULL))) r=asprintf(&url, "nbd:localhost:%s", port); else if(!(unixsocket == ((char *)NULL))) r=asprintf(&url, "nbd:unix:%s", unixsocket); else abort(); if(r == -1) { perror("asprintf"); exit(1); } r=asprintf(&cmd, "nbd='%s'\nport='%s'\nunixsocket='%s'\n%s", url, port != ((const char *)NULL) ? port : "", unixsocket != ((char *)NULL) ? unixsocket : "", run); if(r == -1) { perror("asprintf"); exit(1); } free((void *)url); pid=fork(); if(pid == -1) { perror("fork"); exit(1); } if(pid >= 1) { r=system(cmd); /* tag-#anon#lUN[lS32'__in'||S32'__i'|] */ union anonymous$11 { // __in signed int __in; // __i signed int __i; }; /* */ ; if((0x7f & r) == 0) r = (((union anonymous$11){ .__in=r }).__i & 0xff00) >> 8; else if((signed int)((127 & (signed char)r) + 1) >> 1 >= 1) { fprintf(stderr, "%s: external command was killed by signal %d\n", program_invocation_short_name, ((union anonymous$11){ .__in=r }).__i & 0x7f); r = 1; } else if((0xff & r) == 0x7f) { fprintf(stderr, "%s: external command was stopped by signal %d\n", program_invocation_short_name, (((union anonymous$11){ .__in=r }).__i & 0xff00) >> 8); r = 1; } kill(pid, 15); _exit(r); } free((void *)cmd); signed int return_value_getpid$2; return_value_getpid$2=getpid(); nbdkit_debug("forked into background (new pid = %d)", return_value_getpid$2); } } // set_up_signals // file main.c line 449 static void set_up_signals(void) { struct sigaction sa; memset((void *)&sa, 0, sizeof(struct sigaction) /*152ul*/ ); sa.sa_flags = 0x10000000; sa.__sigaction_handler.sa_handler = handle_quit; sigaction(2, &sa, (struct sigaction *)(void *)0); sigaction(3, &sa, (struct sigaction *)(void *)0); sigaction(15, &sa, (struct sigaction *)(void *)0); sigaction(1, &sa, (struct sigaction *)(void *)0); memset((void *)&sa, 0, sizeof(struct sigaction) /*152ul*/ ); sa.sa_flags = 0x10000000; sa.__sigaction_handler.sa_handler = (void (*)(signed int))1; sigaction(13, &sa, (struct sigaction *)(void *)0); } // skip_over_write_buffer // file connections.c line 404 static void skip_over_write_buffer(signed int sock, unsigned long int count) { char buf[8192l]; signed long int r; for( ; count >= 1ul; count = count - (unsigned long int)r) { r=read(sock, (void *)buf, count > (unsigned long int)8192 ? (unsigned long int)8192 : count); if(r == -1l) { nbdkit_error("skipping write buffer: %m"); goto __CPROVER_DUMP_L5; } if(r == 0l) goto __CPROVER_DUMP_L5; } __CPROVER_DUMP_L5: ; } // start_serving // file main.c line 397 static void start_serving(void) { signed int *socks; unsigned long int nr_socks; if(!(port == ((const char *)NULL)) && !(unixsocket == ((char *)NULL)) || !(port == ((const char *)NULL)) && !(listen_stdin == 0) || !(run == ((char *)NULL)) && !(listen_stdin == 0) || !(unixsocket == ((char *)NULL)) && !(listen_stdin == 0)) { fprintf(stderr, "%s: -p, -U and -s options cannot appear at the same time\n", program_invocation_short_name); exit(1); } set_up_signals(); if(!(listen_stdin == 0)) { change_user(); write_pidfile(); tls_new_server_thread(); signed int return_value_handle_single_connection$1; return_value_handle_single_connection$1=handle_single_connection(0, 1); if(return_value_handle_single_connection$1 == -1) exit(1); goto __CPROVER_DUMP_L6; } if(!(unixsocket == ((char *)NULL))) socks=bind_unix_socket(&nr_socks); else socks=bind_tcpip_socket(&nr_socks); run_command(); change_user(); fork_into_background(); write_pidfile(); accept_incoming_connections(socks, nr_socks); free_listening_sockets(socks, nr_socks); __CPROVER_DUMP_L6: ; } // start_thread // file sockets.c line 209 static void * start_thread(void *datav) { struct thread_data *data = (struct thread_data *)datav; nbdkit_debug("accepted connection"); tls_new_server_thread(); tls_set_instance_num(data->instance_num); tls_set_sockaddr(&data->addr, data->addrlen); handle_single_connection(data->sock, data->sock); return (void *)0; } // tls_get_instance_num // file internal.h line 121 extern unsigned long int tls_get_instance_num(void) { struct tls *tls; void *return_value_pthread_getspecific$1; return_value_pthread_getspecific$1=pthread_getspecific(tls_key); tls = (struct tls *)return_value_pthread_getspecific$1; if(tls == ((struct tls *)NULL)) return (unsigned long int)0; else return tls->instance_num; } // tls_get_name // file internal.h line 120 extern const char * tls_get_name(void) { struct tls *tls; void *return_value_pthread_getspecific$1; return_value_pthread_getspecific$1=pthread_getspecific(tls_key); tls = (struct tls *)return_value_pthread_getspecific$1; if(tls == ((struct tls *)NULL)) return (const char *)(void *)0; else return tls->name; } // tls_init // file internal.h line 115 extern void tls_init(void) { signed int err; err=pthread_key_create(&tls_key, free_tls); if(!(err == 0)) { char *return_value_strerror$1; return_value_strerror$1=strerror(err); fprintf(stderr, "%s: pthread_key_create: %s\n", program_invocation_short_name, return_value_strerror$1); exit(1); } } // tls_new_server_thread // file internal.h line 116 extern void tls_new_server_thread(void) { struct tls *tls; void *return_value_calloc$1; return_value_calloc$1=calloc((unsigned long int)1, sizeof(struct tls) /*32ul*/ ); tls = (struct tls *)return_value_calloc$1; if(tls == ((struct tls *)NULL)) { perror("malloc"); exit(1); } pthread_setspecific(tls_key, (const void *)tls); } // tls_set_instance_num // file internal.h line 118 extern void tls_set_instance_num(unsigned long int instance_num) { struct tls *tls; void *return_value_pthread_getspecific$1; return_value_pthread_getspecific$1=pthread_getspecific(tls_key); tls = (struct tls *)return_value_pthread_getspecific$1; if(!(tls == ((struct tls *)NULL))) tls->instance_num = instance_num; } // tls_set_name // file internal.h line 117 extern void tls_set_name(const char *name) { struct tls *tls; void *return_value_pthread_getspecific$1; return_value_pthread_getspecific$1=pthread_getspecific(tls_key); tls = (struct tls *)return_value_pthread_getspecific$1; if(!(tls == ((struct tls *)NULL))) tls->name = name; } // tls_set_sockaddr // file internal.h line 119 extern void tls_set_sockaddr(struct sockaddr *addr, unsigned int addrlen) { struct tls *tls; void *return_value_pthread_getspecific$1; return_value_pthread_getspecific$1=pthread_getspecific(tls_key); tls = (struct tls *)return_value_pthread_getspecific$1; if(!(tls == ((struct tls *)NULL))) { free((void *)tls->addr); void *return_value_calloc$2; return_value_calloc$2=calloc((unsigned long int)1, (unsigned long int)addrlen); tls->addr = (struct sockaddr *)return_value_calloc$2; if(tls->addr == ((struct sockaddr *)NULL)) { perror("calloc"); exit(1); } memcpy((void *)tls->addr, (const void *)addr, (unsigned long int)addrlen); } } // usage // file main.c line 111 static void usage(void) { printf("nbdkit [--dump-config] [-f] [-g GROUP] [-i IPADDR]\n [-P PIDFILE] [-p PORT] [-r] [--run CMD] [-s]\n [-U SOCKET] [-u USER] [-v] [-V]\n PLUGIN [key=value [key=value [...]]]\n\nPlease read the nbdkit(1) manual page for full usage.\n"); } // valid_range // file connections.c line 234 static signed int valid_range(struct connection *conn, unsigned long int offset, unsigned int count) { unsigned long int exportsize = conn->exportsize; return (signed int)(count > (unsigned int)0 && offset <= exportsize && offset + (unsigned long int)count <= exportsize); } // validate_request // file connections.c line 242 static signed int validate_request(struct connection *conn, unsigned int cmd, unsigned int flags, unsigned long int offset, unsigned int count, unsigned int *error) { signed int r; switch(cmd) { case (unsigned int)0: case (unsigned int)1: case (unsigned int)4: { r=valid_range(conn, offset, count); if(r == -1) return -1; if(r == 0) { nbdkit_error("invalid request: offset and length are out of range"); *error = (unsigned int)5; return 0; } break; } case (unsigned int)3: { if(!(count == 0u) || !(offset == 0ul)) { nbdkit_error("invalid flush request: expecting offset and length == 0"); *error = (unsigned int)22; return 0; } break; } default: { nbdkit_error("invalid request: unknown command (%u) ignored", cmd); *error = (unsigned int)22; return 0; } } if(count >= 67108865u && (cmd == 0u || cmd == 1u)) { nbdkit_error("invalid request: data request is too large (%u > %d)", count, 64 * 1024 * 1024); *error = (unsigned int)12; return 0; } else if(!(conn->readonly == 0)) { if(!(cmd == 1u) && !(cmd == 3u) && !(cmd == 4u)) goto __CPROVER_DUMP_L9; nbdkit_error("invalid request: write request on readonly connection"); *error = (unsigned int)30; return 0; } else { __CPROVER_DUMP_L9: ; if(conn->can_flush == 0) { if(!(cmd == 3u)) goto __CPROVER_DUMP_L10; nbdkit_error("invalid request: flush operation not supported"); *error = (unsigned int)22; return 0; } else { __CPROVER_DUMP_L10: ; if(conn->can_trim == 0) { if(!(cmd == 4u)) goto __CPROVER_DUMP_L11; nbdkit_error("invalid request: trim operation not supported"); *error = (unsigned int)22; return 0; } else { __CPROVER_DUMP_L11: ; return 1; } } } } // write_pidfile // file main.c line 500 static void write_pidfile(void) { signed int fd; signed int pid; char pidstr[64l]; unsigned long int len; _Bool tmp_if_expr$3; signed int return_value_close$2; if(!(pidfile == ((char *)NULL))) { pid=getpid(); snprintf(pidstr, sizeof(char [64l]) /*64ul*/ , "%d\n", pid); len=strlen(pidstr); fd=open(pidfile, 01 | 01000 | 0100 | 02000000 | 0400, 0644); if(fd == -1) { perror(pidfile); exit(1); } signed long int return_value_write$1; return_value_write$1=write(fd, (const void *)pidstr, len); if(!((unsigned long int)return_value_write$1 >= len)) tmp_if_expr$3 = (_Bool)1; else { return_value_close$2=close(fd); tmp_if_expr$3 = return_value_close$2 == -1 ? (_Bool)1 : (_Bool)0; } if(tmp_if_expr$3) { perror(pidfile); exit(1); } nbdkit_debug("written pidfile %s", pidfile); } } // xread // file internal.h line 125 extern signed int xread(signed int sock, void *vbuf, unsigned long int len) { char *buf = (char *)vbuf; signed long int r; _Bool first_read = (_Bool)1; _Bool tmp_if_expr$3; signed int *return_value___errno_location$2; while(len >= 1ul) { r=read(sock, (void *)buf, len); if(r == -1l) { signed int *return_value___errno_location$1; return_value___errno_location$1=__errno_location(); if(*return_value___errno_location$1 == 4) tmp_if_expr$3 = (_Bool)1; else { return_value___errno_location$2=__errno_location(); tmp_if_expr$3 = *return_value___errno_location$2 == 11 ? (_Bool)1 : (_Bool)0; } if(tmp_if_expr$3) continue; return -1; } if(r == 0l) { if(!(first_read == (_Bool)0)) return 0; signed int *return_value___errno_location$4; return_value___errno_location$4=__errno_location(); *return_value___errno_location$4 = 74; return -1; } first_read = (_Bool)0; buf = buf + r; len = len - (unsigned long int)r; } return 1; } // xwrite // file internal.h line 126 extern signed int xwrite(signed int sock, const void *vbuf, unsigned long int len) { const char *buf = (const char *)vbuf; signed long int r; _Bool tmp_if_expr$3; signed int *return_value___errno_location$2; while(len >= 1ul) { r=write(sock, (const void *)buf, len); if(r == -1l) { signed int *return_value___errno_location$1; return_value___errno_location$1=__errno_location(); if(*return_value___errno_location$1 == 4) tmp_if_expr$3 = (_Bool)1; else { return_value___errno_location$2=__errno_location(); tmp_if_expr$3 = *return_value___errno_location$2 == 11 ? (_Bool)1 : (_Bool)0; } if(tmp_if_expr$3) continue; return -1; } buf = buf + r; len = len - (unsigned long int)r; } return 0; }
the_stack_data/29826592.c
/*** * This code is a part of EvoApproxLib library (ehw.fit.vutbr.cz/approxlib) distributed under The MIT License. * When used, please cite the following article(s): V. Mrazek, Z. Vasicek, L. Sekanina, H. Jiang and J. Han, "Scalable Construction of Approximate Multipliers With Formally Guaranteed Worst Case Error" in IEEE Transactions on Very Large Scale Integration (VLSI) Systems, vol. 26, no. 11, pp. 2572-2576, Nov. 2018. doi: 10.1109/TVLSI.2018.2856362 * This file contains a circuit from a sub-set of pareto optimal circuits with respect to the pwr and ep parameters ***/ // MAE% = 0.0000015 % // MAE = 64 // WCE% = 0.000006 % // WCE = 257 // WCRE% = 100.00 % // EP% = 37.50 % // MRE% = 0.00011 % // MSE = 16416 // PDK45_PWR = 2.184 mW // PDK45_AREA = 3084.2 um2 // PDK45_DELAY = 3.12 ns #include <stdint.h> #include <stdlib.h> uint16_t trun8_tam00b(uint8_t A, uint8_t B) { uint16_t P, P_; uint8_t tmp, C_1_0,C_1_1,C_1_2,C_1_3,C_1_4,C_1_5,C_1_6,C_2_0,C_2_1,C_2_2,C_2_3,C_2_4,C_2_5,C_2_6,C_3_0,C_3_1,C_3_2,C_3_3,C_3_4,C_3_5,C_3_6,C_4_0,C_4_1,C_4_2,C_4_3,C_4_4,C_4_5,C_4_6,C_5_0,C_5_1,C_5_2,C_5_3,C_5_4,C_5_5,C_5_6,C_6_0,C_6_1,C_6_2,C_6_3,C_6_4,C_6_5,C_6_6,C_7_0,C_7_1,C_7_2,C_7_3,C_7_4,C_7_5,C_7_6,S_0_0,S_0_1,S_0_2,S_0_3,S_0_4,S_0_5,S_0_6,S_0_7,S_1_0,S_1_1,S_1_2,S_1_3,S_1_4,S_1_5,S_1_6,S_1_7,S_2_0,S_2_1,S_2_2,S_2_3,S_2_4,S_2_5,S_2_6,S_2_7,S_3_0,S_3_1,S_3_2,S_3_3,S_3_4,S_3_5,S_3_6,S_3_7,S_4_0,S_4_1,S_4_2,S_4_3,S_4_4,S_4_5,S_4_6,S_4_7,S_5_0,S_5_1,S_5_2,S_5_3,S_5_4,S_5_5,S_5_6,S_5_7,S_6_0,S_6_1,S_6_2,S_6_3,S_6_4,S_6_5,S_6_6,S_6_7,S_7_0,S_7_1,S_7_2,S_7_3,S_7_4,S_7_5,S_7_6,S_7_7,S_8_0,S_8_1,S_8_2,S_8_3,S_8_4,S_8_5,S_8_6,S_8_7; S_0_0 = (((A>>0)&1) & ((B>>0)&1)); S_0_1 = (((A>>0)&1) & ((B>>1)&1)); S_0_2 = (((A>>0)&1) & ((B>>2)&1)); S_0_3 = (((A>>0)&1) & ((B>>3)&1)); S_0_4 = (((A>>0)&1) & ((B>>4)&1)); S_0_5 = (((A>>0)&1) & ((B>>5)&1)); S_0_6 = (((A>>0)&1) & ((B>>6)&1)); S_0_7 = (((A>>0)&1) & ((B>>7)&1)); S_1_0 = S_0_1^(((A>>1)&1) & ((B>>0)&1)); C_1_0 = S_0_1&(((A>>1)&1) & ((B>>0)&1)); S_1_1 = S_0_2^(((A>>1)&1) & ((B>>1)&1)); C_1_1 = S_0_2&(((A>>1)&1) & ((B>>1)&1)); S_1_2 = S_0_3^(((A>>1)&1) & ((B>>2)&1)); C_1_2 = S_0_3&(((A>>1)&1) & ((B>>2)&1)); S_1_3 = S_0_4^(((A>>1)&1) & ((B>>3)&1)); C_1_3 = S_0_4&(((A>>1)&1) & ((B>>3)&1)); S_1_4 = S_0_5^(((A>>1)&1) & ((B>>4)&1)); C_1_4 = S_0_5&(((A>>1)&1) & ((B>>4)&1)); S_1_5 = S_0_6^(((A>>1)&1) & ((B>>5)&1)); C_1_5 = S_0_6&(((A>>1)&1) & ((B>>5)&1)); S_1_6 = S_0_7^(((A>>1)&1) & ((B>>6)&1)); C_1_6 = S_0_7&(((A>>1)&1) & ((B>>6)&1)); S_1_7 = (((A>>1)&1) & ((B>>7)&1)); tmp = S_1_1^C_1_0; S_2_0 = tmp^(((A>>2)&1) & ((B>>0)&1)); C_2_0 = (tmp&(((A>>2)&1) & ((B>>0)&1)))|(S_1_1&C_1_0); tmp = S_1_2^C_1_1; S_2_1 = tmp^(((A>>2)&1) & ((B>>1)&1)); C_2_1 = (tmp&(((A>>2)&1) & ((B>>1)&1)))|(S_1_2&C_1_1); tmp = S_1_3^C_1_2; S_2_2 = tmp^(((A>>2)&1) & ((B>>2)&1)); C_2_2 = (tmp&(((A>>2)&1) & ((B>>2)&1)))|(S_1_3&C_1_2); tmp = S_1_4^C_1_3; S_2_3 = tmp^(((A>>2)&1) & ((B>>3)&1)); C_2_3 = (tmp&(((A>>2)&1) & ((B>>3)&1)))|(S_1_4&C_1_3); tmp = S_1_5^C_1_4; S_2_4 = tmp^(((A>>2)&1) & ((B>>4)&1)); C_2_4 = (tmp&(((A>>2)&1) & ((B>>4)&1)))|(S_1_5&C_1_4); tmp = S_1_6^C_1_5; S_2_5 = tmp^(((A>>2)&1) & ((B>>5)&1)); C_2_5 = (tmp&(((A>>2)&1) & ((B>>5)&1)))|(S_1_6&C_1_5); tmp = S_1_7^C_1_6; S_2_6 = tmp^(((A>>2)&1) & ((B>>6)&1)); C_2_6 = (tmp&(((A>>2)&1) & ((B>>6)&1)))|(S_1_7&C_1_6); S_2_7 = (((A>>2)&1) & ((B>>7)&1)); tmp = S_2_1^C_2_0; S_3_0 = tmp^(((A>>3)&1) & ((B>>0)&1)); C_3_0 = (tmp&(((A>>3)&1) & ((B>>0)&1)))|(S_2_1&C_2_0); tmp = S_2_2^C_2_1; S_3_1 = tmp^(((A>>3)&1) & ((B>>1)&1)); C_3_1 = (tmp&(((A>>3)&1) & ((B>>1)&1)))|(S_2_2&C_2_1); tmp = S_2_3^C_2_2; S_3_2 = tmp^(((A>>3)&1) & ((B>>2)&1)); C_3_2 = (tmp&(((A>>3)&1) & ((B>>2)&1)))|(S_2_3&C_2_2); tmp = S_2_4^C_2_3; S_3_3 = tmp^(((A>>3)&1) & ((B>>3)&1)); C_3_3 = (tmp&(((A>>3)&1) & ((B>>3)&1)))|(S_2_4&C_2_3); tmp = S_2_5^C_2_4; S_3_4 = tmp^(((A>>3)&1) & ((B>>4)&1)); C_3_4 = (tmp&(((A>>3)&1) & ((B>>4)&1)))|(S_2_5&C_2_4); tmp = S_2_6^C_2_5; S_3_5 = tmp^(((A>>3)&1) & ((B>>5)&1)); C_3_5 = (tmp&(((A>>3)&1) & ((B>>5)&1)))|(S_2_6&C_2_5); tmp = S_2_7^C_2_6; S_3_6 = tmp^(((A>>3)&1) & ((B>>6)&1)); C_3_6 = (tmp&(((A>>3)&1) & ((B>>6)&1)))|(S_2_7&C_2_6); S_3_7 = (((A>>3)&1) & ((B>>7)&1)); tmp = S_3_1^C_3_0; S_4_0 = tmp^(((A>>4)&1) & ((B>>0)&1)); C_4_0 = (tmp&(((A>>4)&1) & ((B>>0)&1)))|(S_3_1&C_3_0); tmp = S_3_2^C_3_1; S_4_1 = tmp^(((A>>4)&1) & ((B>>1)&1)); C_4_1 = (tmp&(((A>>4)&1) & ((B>>1)&1)))|(S_3_2&C_3_1); tmp = S_3_3^C_3_2; S_4_2 = tmp^(((A>>4)&1) & ((B>>2)&1)); C_4_2 = (tmp&(((A>>4)&1) & ((B>>2)&1)))|(S_3_3&C_3_2); tmp = S_3_4^C_3_3; S_4_3 = tmp^(((A>>4)&1) & ((B>>3)&1)); C_4_3 = (tmp&(((A>>4)&1) & ((B>>3)&1)))|(S_3_4&C_3_3); tmp = S_3_5^C_3_4; S_4_4 = tmp^(((A>>4)&1) & ((B>>4)&1)); C_4_4 = (tmp&(((A>>4)&1) & ((B>>4)&1)))|(S_3_5&C_3_4); tmp = S_3_6^C_3_5; S_4_5 = tmp^(((A>>4)&1) & ((B>>5)&1)); C_4_5 = (tmp&(((A>>4)&1) & ((B>>5)&1)))|(S_3_6&C_3_5); tmp = S_3_7^C_3_6; S_4_6 = tmp^(((A>>4)&1) & ((B>>6)&1)); C_4_6 = (tmp&(((A>>4)&1) & ((B>>6)&1)))|(S_3_7&C_3_6); S_4_7 = (((A>>4)&1) & ((B>>7)&1)); tmp = S_4_1^C_4_0; S_5_0 = tmp^(((A>>5)&1) & ((B>>0)&1)); C_5_0 = (tmp&(((A>>5)&1) & ((B>>0)&1)))|(S_4_1&C_4_0); tmp = S_4_2^C_4_1; S_5_1 = tmp^(((A>>5)&1) & ((B>>1)&1)); C_5_1 = (tmp&(((A>>5)&1) & ((B>>1)&1)))|(S_4_2&C_4_1); tmp = S_4_3^C_4_2; S_5_2 = tmp^(((A>>5)&1) & ((B>>2)&1)); C_5_2 = (tmp&(((A>>5)&1) & ((B>>2)&1)))|(S_4_3&C_4_2); tmp = S_4_4^C_4_3; S_5_3 = tmp^(((A>>5)&1) & ((B>>3)&1)); C_5_3 = (tmp&(((A>>5)&1) & ((B>>3)&1)))|(S_4_4&C_4_3); tmp = S_4_5^C_4_4; S_5_4 = tmp^(((A>>5)&1) & ((B>>4)&1)); C_5_4 = (tmp&(((A>>5)&1) & ((B>>4)&1)))|(S_4_5&C_4_4); tmp = S_4_6^C_4_5; S_5_5 = tmp^(((A>>5)&1) & ((B>>5)&1)); C_5_5 = (tmp&(((A>>5)&1) & ((B>>5)&1)))|(S_4_6&C_4_5); tmp = S_4_7^C_4_6; S_5_6 = tmp^(((A>>5)&1) & ((B>>6)&1)); C_5_6 = (tmp&(((A>>5)&1) & ((B>>6)&1)))|(S_4_7&C_4_6); S_5_7 = (((A>>5)&1) & ((B>>7)&1)); tmp = S_5_1^C_5_0; S_6_0 = tmp^(((A>>6)&1) & ((B>>0)&1)); C_6_0 = (tmp&(((A>>6)&1) & ((B>>0)&1)))|(S_5_1&C_5_0); tmp = S_5_2^C_5_1; S_6_1 = tmp^(((A>>6)&1) & ((B>>1)&1)); C_6_1 = (tmp&(((A>>6)&1) & ((B>>1)&1)))|(S_5_2&C_5_1); tmp = S_5_3^C_5_2; S_6_2 = tmp^(((A>>6)&1) & ((B>>2)&1)); C_6_2 = (tmp&(((A>>6)&1) & ((B>>2)&1)))|(S_5_3&C_5_2); tmp = S_5_4^C_5_3; S_6_3 = tmp^(((A>>6)&1) & ((B>>3)&1)); C_6_3 = (tmp&(((A>>6)&1) & ((B>>3)&1)))|(S_5_4&C_5_3); tmp = S_5_5^C_5_4; S_6_4 = tmp^(((A>>6)&1) & ((B>>4)&1)); C_6_4 = (tmp&(((A>>6)&1) & ((B>>4)&1)))|(S_5_5&C_5_4); tmp = S_5_6^C_5_5; S_6_5 = tmp^(((A>>6)&1) & ((B>>5)&1)); C_6_5 = (tmp&(((A>>6)&1) & ((B>>5)&1)))|(S_5_6&C_5_5); tmp = S_5_7^C_5_6; S_6_6 = tmp^(((A>>6)&1) & ((B>>6)&1)); C_6_6 = (tmp&(((A>>6)&1) & ((B>>6)&1)))|(S_5_7&C_5_6); S_6_7 = (((A>>6)&1) & ((B>>7)&1)); tmp = S_6_1^C_6_0; S_7_0 = tmp^(((A>>7)&1) & ((B>>0)&1)); C_7_0 = (tmp&(((A>>7)&1) & ((B>>0)&1)))|(S_6_1&C_6_0); tmp = S_6_2^C_6_1; S_7_1 = tmp^(((A>>7)&1) & ((B>>1)&1)); C_7_1 = (tmp&(((A>>7)&1) & ((B>>1)&1)))|(S_6_2&C_6_1); tmp = S_6_3^C_6_2; S_7_2 = tmp^(((A>>7)&1) & ((B>>2)&1)); C_7_2 = (tmp&(((A>>7)&1) & ((B>>2)&1)))|(S_6_3&C_6_2); tmp = S_6_4^C_6_3; S_7_3 = tmp^(((A>>7)&1) & ((B>>3)&1)); C_7_3 = (tmp&(((A>>7)&1) & ((B>>3)&1)))|(S_6_4&C_6_3); tmp = S_6_5^C_6_4; S_7_4 = tmp^(((A>>7)&1) & ((B>>4)&1)); C_7_4 = (tmp&(((A>>7)&1) & ((B>>4)&1)))|(S_6_5&C_6_4); tmp = S_6_6^C_6_5; S_7_5 = tmp^(((A>>7)&1) & ((B>>5)&1)); C_7_5 = (tmp&(((A>>7)&1) & ((B>>5)&1)))|(S_6_6&C_6_5); tmp = S_6_7^C_6_6; S_7_6 = tmp^(((A>>7)&1) & ((B>>6)&1)); C_7_6 = (tmp&(((A>>7)&1) & ((B>>6)&1)))|(S_6_7&C_6_6); S_7_7 = (((A>>7)&1) & ((B>>7)&1)); P_ = (((C_7_0 & 1)<<0)|((C_7_1 & 1)<<1)|((C_7_2 & 1)<<2)|((C_7_3 & 1)<<3)|((C_7_4 & 1)<<4)|((C_7_5 & 1)<<5)|((C_7_6 & 1)<<6)) + (((S_7_1 & 1)<<0)|((S_7_2 & 1)<<1)|((S_7_3 & 1)<<2)|((S_7_4 & 1)<<3)|((S_7_5 & 1)<<4)|((S_7_6 & 1)<<5)|((S_7_7 & 1)<<6)); S_8_0 = (P_ >> 0) & 1; S_8_1 = (P_ >> 1) & 1; S_8_2 = (P_ >> 2) & 1; S_8_3 = (P_ >> 3) & 1; S_8_4 = (P_ >> 4) & 1; S_8_5 = (P_ >> 5) & 1; S_8_6 = (P_ >> 6) & 1; S_8_7 = (P_ >> 7) & 1; P = 0; P |= (S_0_0 & 1) << 0; P |= (S_1_0 & 1) << 1; P |= (S_2_0 & 1) << 2; P |= (S_3_0 & 1) << 3; P |= (S_4_0 & 1) << 4; P |= (S_5_0 & 1) << 5; P |= (S_6_0 & 1) << 6; P |= (S_7_0 & 1) << 7; P |= (S_8_0 & 1) << 8; P |= (S_8_1 & 1) << 9; P |= (S_8_2 & 1) << 10; P |= (S_8_3 & 1) << 11; P |= (S_8_4 & 1) << 12; P |= (S_8_5 & 1) << 13; P |= (S_8_6 & 1) << 14; P |= (S_8_7 & 1) << 15; return P; } uint64_t mult8_cgp14ep_ep49152_wc1_2_csamrca(const uint64_t B,const uint64_t A) { uint64_t O, dout_16, dout_17, dout_18, dout_19, dout_20, dout_21, dout_22, dout_23, dout_24, dout_25, dout_26, dout_27, dout_28, dout_29, dout_30, dout_31, dout_32, dout_33, dout_34, dout_35, dout_36, dout_37, dout_38, dout_39, dout_40, dout_41, dout_42, dout_43, dout_44, dout_45, dout_46, dout_47, dout_48, dout_49, dout_50, dout_51, dout_52, dout_53, dout_54, dout_55, dout_56, dout_57, dout_58, dout_59, dout_60, dout_61, dout_62, dout_63, dout_64, dout_65, dout_66, dout_67, dout_68, dout_69, dout_70, dout_71, dout_72, dout_73, dout_74, dout_75, dout_76, dout_77, dout_78, dout_79, dout_80, dout_81, dout_82, dout_83, dout_84, dout_85, dout_87, dout_88, dout_89, dout_90, dout_91, dout_92, dout_93, dout_94, dout_95, dout_96, dout_97, dout_98, dout_99, dout_100, dout_101, dout_102, dout_103, dout_104, dout_105, dout_106, dout_107, dout_108, dout_109, dout_110, dout_111, dout_112, dout_113, dout_114, dout_115, dout_116, dout_117, dout_118, dout_119, dout_120, dout_121, dout_122, dout_123, dout_124, dout_125, dout_126, dout_127, dout_128, dout_129, dout_130, dout_131, dout_132, dout_133, dout_134, dout_135, dout_136, dout_137, dout_138, dout_139, dout_140, dout_141, dout_142, dout_143, dout_144, dout_145, dout_146, dout_147, dout_148, dout_149, dout_150, dout_151, dout_152, dout_153, dout_154, dout_155, dout_156, dout_157, dout_158, dout_159, dout_160, dout_161, dout_162, dout_163, dout_164, dout_165, dout_166, dout_167, dout_168, dout_169, dout_170, dout_171, dout_172, dout_173, dout_174, dout_175, dout_176, dout_177, dout_178, dout_179, dout_180, dout_181, dout_182, dout_183, dout_184, dout_185, dout_186, dout_187, dout_188, dout_189, dout_190, dout_191, dout_192, dout_193, dout_194, dout_195, dout_196, dout_197, dout_198, dout_199, dout_200, dout_201, dout_202, dout_203, dout_204, dout_205, dout_206, dout_207, dout_208, dout_209, dout_210, dout_211, dout_212, dout_213, dout_214, dout_215, dout_216, dout_217, dout_218, dout_219, dout_220, dout_221, dout_222, dout_223, dout_224, dout_225, dout_226, dout_227, dout_228, dout_229, dout_230, dout_231, dout_232, dout_233, dout_234, dout_235, dout_236, dout_237, dout_238, dout_239, dout_240, dout_241, dout_242, dout_243, dout_244, dout_245, dout_246, dout_247, dout_248, dout_249, dout_250, dout_251, dout_252, dout_253, dout_254, dout_255, dout_256, dout_257, dout_258, dout_259, dout_260, dout_261, dout_262, dout_263, dout_264, dout_265, dout_266, dout_267, dout_268, dout_269, dout_270, dout_271, dout_272, dout_273, dout_274, dout_275, dout_276, dout_277, dout_278, dout_279, dout_280, dout_281, dout_282, dout_283, dout_284, dout_285, dout_286, dout_287, dout_288, dout_289, dout_290, dout_291, dout_292, dout_293, dout_294, dout_295, dout_296, dout_297, dout_298, dout_299, dout_300, dout_301, dout_302, dout_303, dout_304, dout_305, dout_306, dout_307, dout_308, dout_309, dout_310, dout_311, dout_312, dout_313, dout_314, dout_315, dout_316, dout_317, dout_318, dout_319, dout_320, dout_321, dout_322, dout_323, dout_324, dout_325, dout_326, dout_327, dout_328, dout_329, dout_330, dout_331, dout_332, dout_333, dout_334, dout_335; int avg=0; dout_16=((A >> 1)&1)&((B >> 6)&1); dout_17=((B >> 1)&1)&((A >> 0)&1); dout_18=((B >> 2)&1)&((A >> 0)&1); dout_19=((B >> 3)&1)&((A >> 0)&1); dout_20=((B >> 4)&1)&((A >> 0)&1); dout_21=((B >> 5)&1)&((A >> 0)&1); dout_22=((B >> 6)&1)&((A >> 0)&1); dout_23=((B >> 7)&1)&((A >> 0)&1); dout_24=((B >> 0)&1)&((A >> 1)&1); dout_25=((B >> 1)&1)&((A >> 1)&1); dout_26=((B >> 2)&1)&((A >> 1)&1); dout_27=((B >> 3)&1)&((A >> 1)&1); dout_28=((B >> 4)&1)&((A >> 1)&1); dout_29=((B >> 5)&1)&((A >> 1)&1); dout_30=((B >> 6)&1)&((A >> 1)&1); dout_31=((B >> 7)&1)&((A >> 1)&1); dout_32=dout_17|dout_24; dout_33=dout_17&dout_24; dout_34=dout_18^dout_25; dout_35=dout_18&dout_25; dout_36=dout_19^dout_26; dout_37=dout_19&dout_26; dout_38=dout_20^dout_27; dout_39=dout_20&dout_27; dout_40=dout_21^dout_28; dout_41=dout_21&dout_28; dout_42=dout_22^dout_29; dout_43=dout_22&dout_29; dout_44=dout_23^dout_16; dout_45=dout_23&dout_30; dout_46=((B >> 0)&1)&((A >> 2)&1); dout_47=((B >> 1)&1)&((A >> 2)&1); dout_48=((B >> 2)&1)&((A >> 2)&1); dout_49=((B >> 3)&1)&((A >> 2)&1); dout_50=((B >> 4)&1)&((A >> 2)&1); dout_51=((B >> 5)&1)&((A >> 2)&1); dout_52=((B >> 6)&1)&((A >> 2)&1); dout_53=((B >> 7)&1)&((A >> 2)&1); dout_54=dout_34^dout_46; dout_55=dout_34&dout_46; dout_56=dout_54&dout_33; dout_57=dout_54^dout_33; dout_58=dout_55|dout_56; dout_59=dout_36^dout_47; dout_60=dout_36&dout_47; dout_61=dout_59&dout_35; dout_62=dout_59^dout_35; dout_63=dout_60|dout_61; dout_64=dout_38^dout_48; dout_65=dout_38&dout_48; dout_66=dout_64&dout_37; dout_67=dout_64^dout_37; dout_68=dout_65|dout_66; dout_69=dout_40^dout_49; dout_70=dout_40&dout_49; dout_71=dout_69&dout_39; dout_72=dout_69^dout_39; dout_73=dout_70|dout_71; dout_74=dout_42^dout_50; dout_75=dout_42&dout_50; dout_76=dout_74&dout_41; dout_77=dout_74^dout_41; dout_78=dout_75|dout_76; dout_79=dout_44^dout_51; dout_80=dout_44&dout_51; dout_81=dout_79&dout_43; dout_82=dout_79^dout_43; dout_83=dout_80|dout_81; dout_84=dout_31^dout_52; dout_85=dout_31&dout_52; dout_87=dout_84^dout_45; dout_88=dout_85|dout_45; dout_89=((B >> 0)&1)&((A >> 3)&1); dout_90=((B >> 1)&1)&((A >> 3)&1); dout_91=((B >> 2)&1)&((A >> 3)&1); dout_92=((B >> 3)&1)&((A >> 3)&1); dout_93=((B >> 4)&1)&((A >> 3)&1); dout_94=((B >> 5)&1)&((A >> 3)&1); dout_95=((B >> 6)&1)&((A >> 3)&1); dout_96=((B >> 7)&1)&((A >> 3)&1); dout_97=dout_62^dout_89; dout_98=dout_62&dout_89; dout_99=dout_97&dout_58; dout_100=dout_97^dout_58; dout_101=dout_98|dout_99; dout_102=dout_67^dout_90; dout_103=dout_67&dout_90; dout_104=dout_102&dout_63; dout_105=dout_102^dout_63; dout_106=dout_103|dout_104; dout_107=dout_72^dout_91; dout_108=dout_72&dout_91; dout_109=dout_107&dout_68; dout_110=dout_107^dout_68; dout_111=dout_108|dout_109; dout_112=dout_77^dout_92; dout_113=dout_77&dout_92; dout_114=dout_112&dout_73; dout_115=dout_112^dout_73; dout_116=dout_113|dout_114; dout_117=dout_82^dout_93; dout_118=dout_82&dout_93; dout_119=dout_117&dout_78; dout_120=dout_117^dout_78; dout_121=dout_118|dout_119; dout_122=dout_87^dout_94; dout_123=dout_87&dout_94; dout_124=dout_122&dout_83; dout_125=dout_122^dout_83; dout_126=dout_123|dout_124; dout_127=dout_53^dout_95; dout_128=dout_53&dout_95; dout_129=dout_127&dout_88; dout_130=dout_127^dout_88; dout_131=dout_128|dout_129; dout_132=((B >> 0)&1)&((A >> 4)&1); dout_133=((B >> 1)&1)&((A >> 4)&1); dout_134=((B >> 2)&1)&((A >> 4)&1); dout_135=((B >> 3)&1)&((A >> 4)&1); dout_136=((B >> 4)&1)&((A >> 4)&1); dout_137=((B >> 5)&1)&((A >> 4)&1); dout_138=((B >> 6)&1)&((A >> 4)&1); dout_139=((B >> 7)&1)&((A >> 4)&1); dout_140=dout_105^dout_132; dout_141=dout_105&dout_132; dout_142=dout_140&dout_101; dout_143=dout_140^dout_101; dout_144=dout_141|dout_142; dout_145=dout_110^dout_133; dout_146=dout_110&dout_133; dout_147=dout_145&dout_106; dout_148=dout_145^dout_106; dout_149=dout_146|dout_147; dout_150=dout_115^dout_134; dout_151=dout_115&dout_134; dout_152=dout_150&dout_111; dout_153=dout_150^dout_111; dout_154=dout_151|dout_152; dout_155=dout_120^dout_135; dout_156=dout_120&dout_135; dout_157=dout_155&dout_116; dout_158=dout_155^dout_116; dout_159=dout_156|dout_157; dout_160=dout_125^dout_136; dout_161=dout_125&dout_136; dout_162=dout_160&dout_121; dout_163=dout_160^dout_121; dout_164=dout_161|dout_162; dout_165=dout_130^dout_137; dout_166=dout_130&dout_137; dout_167=dout_165&dout_126; dout_168=dout_165^dout_126; dout_169=dout_166|dout_167; dout_170=dout_96^dout_138; dout_171=dout_96&dout_138; dout_172=dout_170&dout_131; dout_173=dout_170^dout_131; dout_174=dout_171|dout_172; dout_175=((B >> 0)&1)&((A >> 5)&1); dout_176=((B >> 1)&1)&((A >> 5)&1); dout_177=((B >> 2)&1)&((A >> 5)&1); dout_178=((B >> 3)&1)&((A >> 5)&1); dout_179=((B >> 4)&1)&((A >> 5)&1); dout_180=((B >> 5)&1)&((A >> 5)&1); dout_181=((B >> 6)&1)&((A >> 5)&1); dout_182=((B >> 7)&1)&((A >> 5)&1); dout_183=dout_148^dout_175; dout_184=dout_148&dout_175; dout_185=dout_183&dout_144; dout_186=dout_183^dout_144; dout_187=dout_184|dout_185; dout_188=dout_153^dout_176; dout_189=dout_153&dout_176; dout_190=dout_188&dout_149; dout_191=dout_188^dout_149; dout_192=dout_189|dout_190; dout_193=dout_158^dout_177; dout_194=dout_158&dout_177; dout_195=dout_193&dout_154; dout_196=dout_193^dout_154; dout_197=dout_194|dout_195; dout_198=dout_163^dout_178; dout_199=dout_163&dout_178; dout_200=dout_198&dout_159; dout_201=dout_198^dout_159; dout_202=dout_199|dout_200; dout_203=dout_168^dout_179; dout_204=dout_168&dout_179; dout_205=dout_203&dout_164; dout_206=dout_203^dout_164; dout_207=dout_204|dout_205; dout_208=dout_173^dout_180; dout_209=dout_173&dout_180; dout_210=dout_208&dout_169; dout_211=dout_208^dout_169; dout_212=dout_209|dout_210; dout_213=dout_139^dout_181; dout_214=dout_139&dout_181; dout_215=dout_213&dout_174; dout_216=dout_213^dout_174; dout_217=dout_214|dout_215; dout_218=((B >> 0)&1)&((A >> 6)&1); dout_219=((B >> 1)&1)&((A >> 6)&1); dout_220=((B >> 2)&1)&((A >> 6)&1); dout_221=((B >> 3)&1)&((A >> 6)&1); dout_222=((B >> 4)&1)&((A >> 6)&1); dout_223=((B >> 5)&1)&((A >> 6)&1); dout_224=((B >> 6)&1)&((A >> 6)&1); dout_225=((B >> 7)&1)&((A >> 6)&1); dout_226=dout_191^dout_218; dout_227=dout_191&dout_218; dout_228=dout_226&dout_187; dout_229=dout_226^dout_187; dout_230=dout_227|dout_228; dout_231=dout_196^dout_219; dout_232=dout_196&dout_219; dout_233=dout_231&dout_192; dout_234=dout_231^dout_192; dout_235=dout_232|dout_233; dout_236=dout_201^dout_220; dout_237=dout_201&dout_220; dout_238=dout_236&dout_197; dout_239=dout_236^dout_197; dout_240=dout_237|dout_238; dout_241=dout_206^dout_221; dout_242=dout_206&dout_221; dout_243=dout_241&dout_202; dout_244=dout_241^dout_202; dout_245=dout_242|dout_243; dout_246=dout_211^dout_222; dout_247=dout_211&dout_222; dout_248=dout_246&dout_207; dout_249=dout_246^dout_207; dout_250=dout_247|dout_248; dout_251=dout_216^dout_223; dout_252=dout_216&dout_223; dout_253=dout_251&dout_212; dout_254=dout_251^dout_212; dout_255=dout_252|dout_253; dout_256=dout_182^dout_224; dout_257=dout_182&dout_224; dout_258=dout_256&dout_217; dout_259=dout_256^dout_217; dout_260=dout_257|dout_258; dout_261=((B >> 0)&1)&((A >> 7)&1); dout_262=((B >> 1)&1)&((A >> 7)&1); dout_263=((B >> 2)&1)&((A >> 7)&1); dout_264=((B >> 3)&1)&((A >> 7)&1); dout_265=((B >> 4)&1)&((A >> 7)&1); dout_266=((B >> 5)&1)&((A >> 7)&1); dout_267=((B >> 6)&1)&((A >> 7)&1); dout_268=((B >> 7)&1)&((A >> 7)&1); dout_269=dout_234^dout_261; dout_270=dout_234&dout_261; dout_271=dout_269&dout_230; dout_272=dout_269^dout_230; dout_273=dout_270|dout_271; dout_274=dout_239^dout_262; dout_275=dout_239&dout_262; dout_276=dout_274&dout_235; dout_277=dout_274^dout_235; dout_278=dout_275|dout_276; dout_279=dout_244^dout_263; dout_280=dout_244&dout_263; dout_281=dout_279&dout_240; dout_282=dout_279^dout_240; dout_283=dout_280|dout_281; dout_284=dout_249^dout_264; dout_285=dout_249&dout_264; dout_286=dout_284&dout_245; dout_287=dout_284^dout_245; dout_288=dout_285|dout_286; dout_289=dout_254^dout_265; dout_290=dout_254&dout_265; dout_291=dout_289&dout_250; dout_292=dout_289^dout_250; dout_293=dout_290|dout_291; dout_294=dout_259^dout_266; dout_295=dout_259&dout_266; dout_296=dout_294&dout_255; dout_297=dout_294^dout_255; dout_298=dout_295|dout_296; dout_299=dout_225^dout_267; dout_300=dout_225&dout_267; dout_301=dout_299&dout_260; dout_302=dout_299^dout_260; dout_303=dout_300|dout_301; dout_304=dout_277^dout_273; dout_305=dout_277&dout_273; dout_306=dout_282^dout_278; dout_307=dout_282&dout_278; dout_308=dout_306&dout_305; dout_309=dout_306^dout_305; dout_310=dout_307|dout_308; dout_311=dout_287^dout_283; dout_312=dout_287&dout_283; dout_313=dout_311&dout_310; dout_314=dout_311^dout_310; dout_315=dout_312|dout_313; dout_316=dout_292^dout_288; dout_317=dout_292&dout_288; dout_318=dout_316&dout_315; dout_319=dout_316^dout_315; dout_320=dout_317|dout_318; dout_321=dout_297^dout_293; dout_322=dout_297&dout_293; dout_323=dout_321&dout_320; dout_324=dout_321^dout_320; dout_325=dout_322|dout_323; dout_326=dout_302^dout_298; dout_327=dout_302&dout_298; dout_328=dout_326&dout_325; dout_329=dout_326^dout_325; dout_330=dout_327|dout_328; dout_331=dout_268^dout_303; dout_332=((A >> 7)&1)&dout_303; dout_333=dout_331&dout_330; dout_334=dout_331^dout_330; dout_335=dout_332|dout_333; O = 0; O |= (0&1) << 0; O |= (dout_32&1) << 1; O |= (dout_57&1) << 2; O |= (dout_100&1) << 3; O |= (dout_143&1) << 4; O |= (dout_186&1) << 5; O |= (dout_229&1) << 6; O |= (dout_272&1) << 7; O |= (dout_304&1) << 8; O |= (dout_309&1) << 9; O |= (dout_314&1) << 10; O |= (dout_319&1) << 11; O |= (dout_324&1) << 12; O |= (dout_329&1) << 13; O |= (dout_334&1) << 14; O |= (dout_335&1) << 15; return O; } uint32_t mul16u_FGN (uint16_t a, uint16_t b) { static uint16_t * cacheLL = NULL; static uint16_t * cacheLH = NULL; static uint16_t * cacheHL = NULL; static uint16_t * cacheHH = NULL; int fillData = cacheLL == NULL || cacheLH == NULL || cacheHL == NULL || cacheHH == NULL; if(!cacheLL) cacheLL = (uint16_t *)malloc(256 * 256 * sizeof(uint16_t)); if(!cacheLH) cacheLH = (uint16_t *)malloc(256 * 256 * sizeof(uint16_t)); if(!cacheHL) cacheHL = (uint16_t *)malloc(256 * 256 * sizeof(uint16_t)); if(!cacheHH) cacheHH = (uint16_t *)malloc(256 * 256 * sizeof(uint16_t)); if(fillData) { for(int i = 0; i < 256; i++) { for(int j = 0; j < 256; j++) { cacheLL[i * 256 + j] = mult8_cgp14ep_ep49152_wc1_2_csamrca(i, j); cacheLH[i * 256 + j] = trun8_tam00b(i, j); cacheHL[i * 256 + j] = mult8_cgp14ep_ep49152_wc1_2_csamrca(i, j); cacheHH[i * 256 + j] = trun8_tam00b(i, j); } } } uint32_t opt = 0; opt += (uint32_t)cacheLL[(a & 0xFF ) * 256 + (b & 0xFF )]; opt += (uint32_t)cacheLH[(a & 0xFF ) * 256 + ((b >> 8) & 0xFF )] << 8; opt += (uint32_t)cacheHL[((a >> 8) & 0xFF) * 256 + (b & 0xFF )] << 8; opt += (uint32_t)cacheHH[((a >> 8) & 0xFF) * 256 + ((b >> 8) & 0xFF )] << 16; return opt; }
the_stack_data/1229883.c
#include <stdio.h> #include<stdlib.h> #include<string.h> #include<time.h> char name[10],city[20]; void start() { printf("*********************************************************************\n"); printf("* *\n"); printf("* * WELCOME TO THE KBC GAME * *\n"); printf("* ------------------------------- *\n"); printf("* By *\n"); printf("* *\n"); printf("* The Innovative Beast *\n"); printf("* *\n"); printf("*********************************************************************\n"); }; void intro(char name[],char city[]) { printf("\nToday we have a NEW PLAYER,here with us whose name is %s.\n He belongs to the place called %s.\n",name,city); }; int main() { int j=1,i=0,p,sav=0,m=0; char ans[5]; int l,k, n,r[10]; srand(time(NULL)); for (l = 0; l <=9; l++) { n = rand() % 10; for(k = 0;k<=l-1;k++) { if(n==r[k]) break; } if(l==k) r[l]=n; else l--; } char a[10][100]={ "who is the railway minister of india?", "how many jyotirlings are there in india", "indian independence year", "national drink of india", "indian state with most GDP ", "In which of the place the Kumbha Mela is held every twelve years?", "how old is the taj mahal", "what is the duration of emergency in india", "under operation Blue star which holy place was seiged by the army", "when is international yoga day observed" }; char b[10][100]={ " a. mamta bannerje b.piush goyal c.suresh prabhu d.venkaiya naidu", " a. 16 b.12 c.10 d.14", " a. 1947 b. 1927 c.1937 d.1917", " a. coffe b. nimbu paani c.tea d.sugarcane juice", " a. punjab b. west bengal c.karnataka d.maharashtra", " A. Purl B Prayag.C. Rameshwaram D. Chittakoot", "a. 305 b. 300 c. 388 d 288", "a.1975-77 b.1976-79 c.1974-77 d.1970-75", "a.akshardham temple b.tirupati balaji c.sidhivinayak temple d.golden temple", "a.21 july b.23 june c.21 june d.22 july " }; char c[10][2]={ "b", "b", "a", "c", "d", "b", "c", "a", "d", "c" }; printf("\nEnter your name : "); gets(name); printf("\nEnter your city : "); gets(city); start(); intro(name,city); do { printf("\n%s",a[r[i]]); printf("\n%s\n",b[r[i]]); scanf("%s",ans); if (strcmp(ans,c[r[i]])==0) {system("clear"); m=(1000*j); printf("\n you won Rs. %d\n",1000*j); j++; if(i%3==0) { printf("u have cleared a level...ur progress has been saved\n"); sav = m; } i++; } else { printf("\n Unfortunately you lost and you have to go home with Rs.%d\ntry nex time",sav); sav=0; exit(1); } }while(i<10); printf("u have won rs%d\n",sav); printf("thank you for playing with us.....\n"); return 0; }
the_stack_data/76700774.c
/* { dg-do run } */ extern void abort (void); struct { unsigned f2; unsigned f3 : 15; unsigned f5 : 3; short f6; } b = {0x7f8000, 6, 5, 0}, g = {8, 0, 5, 0}; short d, l; int a, c, h = 8; volatile char e[237] = {4}; short *f = &d; short i[5] = {3}; char j; int *k = &c; int fn1 (unsigned p1) { return -p1; } void fn2 (char p1) { a = p1; e[0]; } short fn3 () { *k = 4; return *f; } int main () { unsigned m; short *n = &i[4]; m = fn1 ((h && j) <= b.f5); l = m > g.f3; *n = 3; fn2 (b.f2 >> 15); if ((a & 0xff) != 0xff) abort (); return 0; }
the_stack_data/187642623.c
#include <stdlib.h> #include <stdio.h> #include <math.h> int main(){ double x01,x02,x03,y1,y2,y3,x1,x2,x3; scanf("%lf%lf%lf",&x01,&x02,&x03); scanf("%lf%lf%lf",&y1,&y2,&y3); x1 = x02*y3 - x03*y2; x2 = x03*y1 - x01*y3; x3 = x01*y2 - x02*y1; printf("Produto Vetorial = (%.2lf, %.2lf, %.2lf)\n", x1, x2, x3); }
the_stack_data/47304.c
#include <stdio.h> int outside(int,int); int remaining(int,int); int main(int argc, char const *argv[]) { int x,y; printf("Enter two numbers(the second numbers can't be zero):"); scanf("%d%d",&x,&y); printf("outside:%d\n",outside(x,y)); printf("remaining:%d\n",remaining(x,y)); return 0; } int outside(int a, int b){ return a/b; } int remaining(int a, int b){ return a%b; }
the_stack_data/60442.c
/********************************************************************************************** raylib API parser This parser scans raylib.h to get API information about structs, enums, functions and defines. All data is divided into pieces, usually as strings. The following types are used for data: - struct FunctionInfo - struct StructInfo - struct EnumInfo - struct DefInfo CONSTRAINTS: This parser is specifically designed to work with raylib.h, so, it has some constraints: - Functions are expected as a single line with the following structure: <retType> <name>(<paramType[0]> <paramName[0]>, <paramType[1]> <paramName[1]>); <desc> Be careful with functions broken into several lines, it breaks the process! - Structures are expected as several lines with the following form: <desc> typedef struct <name> { <fieldType[0]> <fieldName[0]>; <fieldDesc[0]> <fieldType[1]> <fieldName[1]>; <fieldDesc[1]> <fieldType[2]> <fieldName[2]>; <fieldDesc[2]> } <name>; - Enums are expected as several lines with the following form: <desc> typedef enum { <valueName[0]> = <valueInteger[0]>, <valueDesc[0]> <valueName[1]>, <valueName[2]>, <valueDesc[2]> <valueName[3]> <valueDesc[3]> } <name>; NOTE: Multiple options are supported for enums: - If value is not provided, (<valueInteger[i -1]> + 1) is assigned - Value description can be provided or not OTHER NOTES: - This parser could work with other C header files if mentioned constraints are followed. - This parser does not require <string.h> library, all data is parsed directly from char buffers. LICENSE: zlib/libpng raylib-parser is licensed under an unmodified zlib/libpng license, which is an OSI-certified, BSD-like license that allows static linking with closed source software: Copyright (c) 2021 Ramon Santamaria (@raysan5) **********************************************************************************************/ #define _CRT_SECURE_NO_WARNINGS #include <stdlib.h> // Required for: malloc(), calloc(), realloc(), free(), atoi(), strtol() #include <stdio.h> // Required for: printf(), fopen(), fseek(), ftell(), fread(), fclose() #include <stdbool.h> // Required for: bool #include <ctype.h> // Required for: isdigit() #define MAX_FUNCS_TO_PARSE 512 // Maximum number of functions to parse #define MAX_STRUCTS_TO_PARSE 64 // Maximum number of structures to parse #define MAX_ENUMS_TO_PARSE 64 // Maximum number of enums to parse #define MAX_DEFINES_TO_PARSE 2048 // Maximum number of defines to parse #define MAX_LINE_LENGTH 512 // Maximum length of one line (including comments) #define MAX_STRUCT_LINE_LENGTH 2048 // Maximum length of one struct (multiple lines) #define MAX_FUNCTION_PARAMETERS 12 // Maximum number of function parameters #define MAX_STRUCT_FIELDS 32 // Maximum number of struct fields #define MAX_ENUM_VALUES 512 // Maximum number of enum values //---------------------------------------------------------------------------------- // Types and Structures Definition //---------------------------------------------------------------------------------- // Function info data typedef struct FunctionInfo { char name[64]; // Function name char desc[128]; // Function description (comment at the end) char retType[32]; // Return value type int paramCount; // Number of function parameters char paramType[MAX_FUNCTION_PARAMETERS][32]; // Parameters type char paramName[MAX_FUNCTION_PARAMETERS][32]; // Parameters name char paramDesc[MAX_FUNCTION_PARAMETERS][128]; // Parameters description } FunctionInfo; // Struct info data typedef struct StructInfo { char name[64]; // Struct name char desc[128]; // Struct type description int fieldCount; // Number of fields in the struct char fieldType[MAX_STRUCT_FIELDS][64]; // Field type char fieldName[MAX_STRUCT_FIELDS][64]; // Field name char fieldDesc[MAX_STRUCT_FIELDS][128]; // Field description } StructInfo; // Enum info data typedef struct EnumInfo { char name[64]; // Enum name char desc[128]; // Enum description int valueCount; // Number of values in enumerator char valueName[MAX_ENUM_VALUES][64]; // Value name definition int valueInteger[MAX_ENUM_VALUES]; // Value integer char valueDesc[MAX_ENUM_VALUES][128]; // Value description } EnumInfo; // Type of parsed define typedef enum { UNKNOWN = 0, MACRO, GUARD, INT, LONG, FLOAT, DOUBLE, CHAR, STRING, COLOR } DefineType; // Define info data typedef struct DefineInfo { char name[64]; // Define name DefineType type; // Define type char value[256]; // Define value char desc[128]; // Define description bool isHex; // Define is hex number (for types INT, LONG) } DefineInfo; // Output format for parsed data typedef enum { DEFAULT = 0, JSON, XML, LUA } OutputFormat; //---------------------------------------------------------------------------------- // Global Variables Definition //---------------------------------------------------------------------------------- static int funcCount = 0; static int structCount = 0; static int enumCount = 0; static int defineCount = 0; static FunctionInfo *funcs = NULL; static StructInfo *structs = NULL; static EnumInfo *enums = NULL; static DefineInfo *defines = NULL; static char apiDefine[32] = "RLAPI\0"; // Command line variables static char inFileName[512] = { 0 }; // Input file name (required in case of provided through CLI) static char outFileName[512] = { 0 }; // Output file name (required for file save/export) static int outputFormat = DEFAULT; //---------------------------------------------------------------------------------- // Module Functions Declaration //---------------------------------------------------------------------------------- static void ShowCommandLineInfo(void); // Show command line usage info static void ProcessCommandLine(int argc, char *argv[]); // Process command line input static char *LoadFileText(const char *fileName, int *length); static char **GetTextLines(const char *buffer, int length, int *linesCount); static void GetDataTypeAndName(const char *typeName, int typeNameLen, char *type, char *name); static unsigned int TextLength(const char *text); // Get text length in bytes, check for \0 character static bool IsTextEqual(const char *text1, const char *text2, unsigned int count); static void MemoryCopy(void *dest, const void *src, unsigned int count); static char *EscapeBackslashes(char *text); // Replace '\' by "\\" when exporting to JSON and XML static void ExportParsedData(const char *fileName, int format); // Export parsed data in desired format static const char *StrDefineType(DefineType type); // Get string of define type //------------------------------------------------------------------------------------ // Program main entry point //------------------------------------------------------------------------------------ int main(int argc, char* argv[]) { if (argc > 1) ProcessCommandLine(argc, argv); if (inFileName[0] == '\0') MemoryCopy(inFileName, "../src/raylib.h\0", 16); int length = 0; char *buffer = LoadFileText(inFileName, &length); // Preprocess buffer to get separate lines // NOTE: GetTextLines() also removes leading spaces/tabs int linesCount = 0; char **lines = GetTextLines(buffer, length, &linesCount); // Function lines pointers, selected from buffer "lines" char **funcLines = (char **)malloc(MAX_FUNCS_TO_PARSE*sizeof(char *)); // Structs data (multiple lines), selected from "buffer" int *structLines = (int *)malloc(MAX_STRUCTS_TO_PARSE*sizeof(int)); // Enums lines pointers, selected from buffer "lines" int *enumLines = (int *)malloc(MAX_ENUMS_TO_PARSE*sizeof(int)); // Defines lines pointers, selected from buffer "lines" int *defineLines = (int *)malloc(MAX_DEFINES_TO_PARSE*sizeof(int)); // Prepare required lines for parsing //-------------------------------------------------------------------------------------------------- // Read function lines for (int i = 0; i < linesCount; i++) { // Read function line (starting with `define`, i.e. for raylib.h "RLAPI") if (IsTextEqual(lines[i], apiDefine, TextLength(apiDefine))) { // Keep a pointer to the function line funcLines[funcCount] = lines[i]; funcCount++; } } // Read struct lines for (int i = 0; i < linesCount; i++) { // Find structs (starting with "typedef struct ... {", ending with '} ... ;') if (IsTextEqual(lines[i], "typedef struct", 14)) { int j = 0; bool validStruct = false; // WARNING: Typedefs between types: typedef Vector4 Quaternion; // (maybe we could export these too?) for (int c = 0; c < MAX_LINE_LENGTH; c++) { char v = lines[i][c]; if (v == '{') validStruct = true; if (v == '{' || v == ';' || v == '\0') { // Not valid struct if it ends without '{': // i.e typedef struct rAudioBuffer rAudioBuffer; -> Typedef and forward declaration break; } } if (!validStruct) continue; structLines[structCount] = i; while (lines[i][0] != '}') i++; while (lines[i][0] != '\0') i++; structCount++; } } // Read enum lines for (int i = 0; i < linesCount; i++) { // Read enum line if (IsTextEqual(lines[i], "typedef enum {", 14) && lines[i][TextLength(lines[i])-1] != ';') // ignore inline enums { // Keep the line position in the array of lines, // so, we can scan that position and following lines enumLines[enumCount] = i; enumCount++; } } // Read const lines for (int i = 0; i < linesCount; i++) { int j = 0; while (lines[i][j] == ' ' || lines[i][j] == '\t') j++; // skip spaces and tabs in the begining // Read define line if (IsTextEqual(lines[i]+j, "#define ", 8)) { // Keep the line position in the array of lines, // so, we can scan that position and following lines defineLines[defineCount] = i; defineCount++; } } // At this point we have all raylib structs, enums, functions, defines lines data to start parsing free(buffer); // Unload text buffer // Parsing raylib data //-------------------------------------------------------------------------------------------------- // Structs info data structs = (StructInfo *)calloc(MAX_STRUCTS_TO_PARSE, sizeof(StructInfo)); for (int i = 0; i < structCount; i++) { char **linesPtr = &lines[structLines[i]]; // Parse struct description if (linesPtr[-1][0] == '/') { MemoryCopy(structs[i].desc, linesPtr[-1], TextLength(linesPtr[-1])); } // Get struct name: typedef struct name { const int TDS_LEN = 15; // length of "typedef struct " for (int c = TDS_LEN; c < 64 + TDS_LEN; c++) { if (linesPtr[0][c] == '{') { MemoryCopy(structs[i].name, &linesPtr[0][TDS_LEN], c - TDS_LEN - 1); break; } } // Get struct fields and count them -> fields finish with ; int l = 1; while (linesPtr[l][0] != '}') { // WARNING: Some structs have empty spaces and comments -> OK, processed if ((linesPtr[l][0] != ' ') && (linesPtr[l][0] != '\0')) { // Scan one field line char *fieldLine = linesPtr[l]; int fieldEndPos = 0; while (fieldLine[fieldEndPos] != ';') fieldEndPos++; if (fieldLine[0] != '/') // Field line is not a comment { //printf("Struct field: %s_\n", fieldLine); // OK! // Get struct field type and name GetDataTypeAndName(fieldLine, fieldEndPos, structs[i].fieldType[structs[i].fieldCount], structs[i].fieldName[structs[i].fieldCount]); // Get the field description // We start skipping spaces in front of description comment int descStart = fieldEndPos; while ((fieldLine[descStart] != '/') && (fieldLine[descStart] != '\0')) descStart++; int k = 0; while ((fieldLine[descStart + k] != '\0') && (fieldLine[descStart + k] != '\n')) { structs[i].fieldDesc[structs[i].fieldCount][k] = fieldLine[descStart + k]; k++; } structs[i].fieldCount++; } } l++; } } free(structLines); // Enum info data enums = (EnumInfo *)calloc(MAX_ENUMS_TO_PARSE, sizeof(EnumInfo)); for (int i = 0; i < enumCount; i++) { // Parse enum description // NOTE: This is not necessarily from the line immediately before, // some of the enums have extra lines between the "description" // and the typedef enum for (int j = enumLines[i] - 1; j > 0; j--) { char *linePtr = lines[j]; if ((linePtr[0] != '/') || (linePtr[2] != ' ')) { MemoryCopy(enums[i].desc, &lines[j + 1][0], sizeof(enums[i].desc) - 1); break; } } for (int j = 1; j < MAX_ENUM_VALUES*2; j++) // Maximum number of lines following enum first line { char *linePtr = lines[enumLines[i] + j]; if ((linePtr[0] >= 'A') && (linePtr[0] <= 'Z')) { // Parse enum value line, possible options: //ENUM_VALUE_NAME, //ENUM_VALUE_NAME //ENUM_VALUE_NAME = 99 //ENUM_VALUE_NAME = 99, //ENUM_VALUE_NAME = 0x00000040, // Value description // We start reading the value name int c = 0; while ((linePtr[c] != ',') && (linePtr[c] != ' ') && (linePtr[c] != '=') && (linePtr[c] != '\0')) { enums[i].valueName[enums[i].valueCount][c] = linePtr[c]; c++; } // After the name we can have: // '=' -> value is provided // ',' -> value is equal to previous + 1, there could be a description if not '\0' // ' ' -> value is equal to previous + 1, there could be a description if not '\0' // '\0' -> value is equal to previous + 1 // Let's start checking if the line is not finished if ((linePtr[c] != ',') && (linePtr[c] != '\0')) { // Two options: // '=' -> value is provided // ' ' -> value is equal to previous + 1, there could be a description if not '\0' bool foundValue = false; while ((linePtr[c] != '\0') && (linePtr[c] != '/')) { if (linePtr[c] == '=') { foundValue = true; break; } c++; } if (foundValue) { if (linePtr[c + 1] == ' ') c += 2; else c++; // Parse integer value int n = 0; char integer[16] = { 0 }; while ((linePtr[c] != ',') && (linePtr[c] != ' ') && (linePtr[c] != '\0')) { integer[n] = linePtr[c]; c++; n++; } if (integer[1] == 'x') enums[i].valueInteger[enums[i].valueCount] = (int)strtol(integer, NULL, 16); else enums[i].valueInteger[enums[i].valueCount] = atoi(integer); } else enums[i].valueInteger[enums[i].valueCount] = (enums[i].valueInteger[enums[i].valueCount - 1] + 1); } else enums[i].valueInteger[enums[i].valueCount] = (enums[i].valueInteger[enums[i].valueCount - 1] + 1); // Look for description or end of line while ((linePtr[c] != '/') && (linePtr[c] != '\0')) { c++; } if (linePtr[c] == '/') { // Parse value description MemoryCopy(enums[i].valueDesc[enums[i].valueCount], &linePtr[c], sizeof(enums[0].valueDesc[0]) - c - 1); } enums[i].valueCount++; } else if (linePtr[0] == '}') { // Get enum name from typedef int c = 0; while (linePtr[2 + c] != ';') { enums[i].name[c] = linePtr[2 + c]; c++; } break; // Enum ended, break for() loop } } } free(enumLines); // Define info data defines = (DefineInfo *)calloc(MAX_DEFINES_TO_PARSE, sizeof(DefineInfo)); int defineIndex = 0; for (int i = 0; i < defineCount; i++) { char *linePtr = lines[defineLines[i]]; int j = 0; while (linePtr[j] == ' ' || linePtr[j] == '\t') j++; // Skip spaces and tabs in the begining j += 8; // Skip "#define " while (linePtr[j] == ' ' || linePtr[j] == '\t') j++; // Skip spaces and tabs after "#define " // Extract name int defineNameStart = j; while (linePtr[j] != ' ' && linePtr[j] != '\t' && linePtr[j] != '\0') j++; int defineNameEnd = j-1; // Skip duplicates int nameLen = defineNameEnd - defineNameStart + 1; bool isDuplicate = false; for (int k = 0; k < defineIndex; k++) { if (nameLen == TextLength(defines[k].name) && IsTextEqual(defines[k].name, linePtr + defineNameStart, nameLen)) { isDuplicate = true; break; } } if (isDuplicate) continue; MemoryCopy(defines[defineIndex].name, linePtr + defineNameStart, nameLen); // Determine type if (linePtr[defineNameEnd] == ')') defines[defineIndex].type = MACRO; while (linePtr[j] == ' ' || linePtr[j] == '\t') j++; // Skip spaces and tabs after name int defineValueStart = j; if (linePtr[j] == '\0' || linePtr == "/") defines[defineIndex].type = GUARD; if (linePtr[j] == '"') defines[defineIndex].type = STRING; else if (linePtr[j] == '\'') defines[defineIndex].type = CHAR; else if (IsTextEqual(linePtr+j, "CLITERAL(Color)", 15)) defines[defineIndex].type = COLOR; else if (isdigit(linePtr[j])) { // Parsing numbers bool isFloat = false, isNumber = true, isHex = false; while (linePtr[j] != ' ' && linePtr[j] != '\t' && linePtr[j] != '\0') { char ch = linePtr[j]; if (ch == '.') isFloat = true; if (ch == 'x') isHex = true; if (!(isdigit(ch)||(ch >= 'a' && ch <= 'f')||(ch >= 'A' && ch <= 'F')||ch=='x'||ch=='L'||ch=='.'||ch=='+'||ch=='-')) isNumber = false; j++; } if (isNumber) { if (isFloat) { defines[defineIndex].type = linePtr[j-1] == 'f' ? FLOAT : DOUBLE; } else { defines[defineIndex].type = linePtr[j-1] == 'L' ? LONG : INT; defines[defineIndex].isHex = isHex; } } } // Extracting value while (linePtr[j] != '\\' && linePtr[j] != '\0' && !(linePtr[j] == '/' && linePtr[j+1] == '/')) j++; int defineValueEnd = j-1; while (linePtr[defineValueEnd] == ' ' || linePtr[defineValueEnd] == '\t') defineValueEnd--; // Remove trailing spaces and tabs if (defines[defineIndex].type == LONG || defines[defineIndex].type == FLOAT) defineValueEnd--; // Remove number postfix int valueLen = defineValueEnd - defineValueStart + 1; if (valueLen > 255) valueLen = 255; if (valueLen > 0) MemoryCopy(defines[defineIndex].value, linePtr + defineValueStart, valueLen); // Extracting description if (linePtr[j] == '/') { int commentStart = j; while (linePtr[j] != '\\' && linePtr[j] != '\0') j++; int commentEnd = j-1; int commentLen = commentEnd - commentStart + 1; if (commentLen > 127) commentLen = 127; MemoryCopy(defines[defineIndex].desc, linePtr + commentStart, commentLen); } defineIndex++; } defineCount = defineIndex; free(defineLines); // Functions info data funcs = (FunctionInfo *)calloc(MAX_FUNCS_TO_PARSE, sizeof(FunctionInfo)); for (int i = 0; i < funcCount; i++) { int funcParamsStart = 0; int funcEnd = 0; // Get return type and function name from func line for (int c = 0; (c < MAX_LINE_LENGTH) && (funcLines[i][c] != '\n'); c++) { if (funcLines[i][c] == '(') // Starts function parameters { funcParamsStart = c + 1; // At this point we have function return type and function name char funcRetTypeName[128] = { 0 }; int dc = TextLength(apiDefine) + 1; int funcRetTypeNameLen = c - dc; // Substract `define` ("RLAPI " for raylib.h) MemoryCopy(funcRetTypeName, &funcLines[i][dc], funcRetTypeNameLen); GetDataTypeAndName(funcRetTypeName, funcRetTypeNameLen, funcs[i].retType, funcs[i].name); break; } } // Get parameters from func line for (int c = funcParamsStart; c < MAX_LINE_LENGTH; c++) { if (funcLines[i][c] == ',') // Starts function parameters { // Get parameter type + name, extract info char funcParamTypeName[128] = { 0 }; int funcParamTypeNameLen = c - funcParamsStart; MemoryCopy(funcParamTypeName, &funcLines[i][funcParamsStart], funcParamTypeNameLen); GetDataTypeAndName(funcParamTypeName, funcParamTypeNameLen, funcs[i].paramType[funcs[i].paramCount], funcs[i].paramName[funcs[i].paramCount]); funcParamsStart = c + 1; if (funcLines[i][c + 1] == ' ') funcParamsStart += 1; funcs[i].paramCount++; // Move to next parameter } else if (funcLines[i][c] == ')') { funcEnd = c + 2; // Check if previous word is void if ((funcLines[i][c - 4] == 'v') && (funcLines[i][c - 3] == 'o') && (funcLines[i][c - 2] == 'i') && (funcLines[i][c - 1] == 'd')) break; // Get parameter type + name, extract info char funcParamTypeName[128] = { 0 }; int funcParamTypeNameLen = c - funcParamsStart; MemoryCopy(funcParamTypeName, &funcLines[i][funcParamsStart], funcParamTypeNameLen); GetDataTypeAndName(funcParamTypeName, funcParamTypeNameLen, funcs[i].paramType[funcs[i].paramCount], funcs[i].paramName[funcs[i].paramCount]); funcs[i].paramCount++; // Move to next parameter break; } } // Get function description for (int c = funcEnd; c < MAX_LINE_LENGTH; c++) { if (funcLines[i][c] == '/') { MemoryCopy(funcs[i].desc, &funcLines[i][c], 127); // WARNING: Size could be too long for funcLines[i][c]? break; } } } for (int i = 0; i < linesCount; i++) free(lines[i]); free(lines); free(funcLines); // At this point, all raylib data has been parsed! //----------------------------------------------------------------------------------------- // structs[] -> We have all the structs decomposed into pieces for further analysis // enums[] -> We have all the enums decomposed into pieces for further analysis // funcs[] -> We have all the functions decomposed into pieces for further analysis // defines[] -> We have all the defines decomposed into pieces for further analysis // Process input file to output if (outFileName[0] == '\0') MemoryCopy(outFileName, "raylib_api.txt\0", 15); printf("\nInput file: %s", inFileName); printf("\nOutput file: %s", outFileName); if (outputFormat == DEFAULT) printf("\nOutput format: DEFAULT\n\n"); else if (outputFormat == JSON) printf("\nOutput format: JSON\n\n"); else if (outputFormat == XML) printf("\nOutput format: XML\n\n"); else if (outputFormat == LUA) printf("\nOutput format: LUA\n\n"); ExportParsedData(outFileName, outputFormat); free(funcs); free(structs); free(enums); } //---------------------------------------------------------------------------------- // Module Functions Definition //---------------------------------------------------------------------------------- // Show command line usage info static void ShowCommandLineInfo(void) { printf("\n//////////////////////////////////////////////////////////////////////////////////\n"); printf("// //\n"); printf("// raylib API parser //\n"); printf("// //\n"); printf("// more info and bugs-report: github.com/raysan5/raylib/parser //\n"); printf("// //\n"); printf("// Copyright (c) 2021 Ramon Santamaria (@raysan5) //\n"); printf("// //\n"); printf("//////////////////////////////////////////////////////////////////////////////////\n\n"); printf("USAGE:\n\n"); printf(" > raylib_parser [--help] [--input <filename.h>] [--output <filename.ext>] [--format <type>] [--define <DEF>]\n"); printf("\nOPTIONS:\n\n"); printf(" -h, --help : Show tool version and command line usage help\n\n"); printf(" -i, --input <filename.h> : Define input header file to parse.\n"); printf(" NOTE: If not specified, defaults to: raylib.h\n\n"); printf(" -o, --output <filename.ext> : Define output file and format.\n"); printf(" Supported extensions: .txt, .json, .xml, .h\n"); printf(" NOTE: If not specified, defaults to: raylib_api.txt\n\n"); printf(" -f, --format <type> : Define output format for parser data.\n"); printf(" Supported types: DEFAULT, JSON, XML, LUA\n\n"); printf(" -d, --define <DEF> : Define functions define (i.e. RLAPI for raylib.h, RMDEF for raymath.h, etc\n"); printf(" NOTE: If not specified, defaults to: RLAPI\n\n"); printf("\nEXAMPLES:\n\n"); printf(" > raylib_parser --input raylib.h --output api.json\n"); printf(" Process <raylib.h> to generate <api.json>\n\n"); printf(" > raylib_parser --output raylib_data.info --format XML\n"); printf(" Process <raylib.h> to generate <raylib_data.info> as XML text data\n\n"); printf(" > raylib_parser --input raymath.h --output raymath_data.info --format XML\n"); printf(" Process <raymath.h> to generate <raymath_data.info> as XML text data\n\n"); } // Process command line arguments static void ProcessCommandLine(int argc, char *argv[]) { for (int i = 1; i < argc; i++) { if (IsTextEqual(argv[i], "-h", 2) || IsTextEqual(argv[i], "--help", 6)) { // Show info ShowCommandLineInfo(); } else if (IsTextEqual(argv[i], "-i", 2) || IsTextEqual(argv[i], "--input", 7)) { // Check for valid argument and valid file extension if (((i + 1) < argc) && (argv[i + 1][0] != '-')) { MemoryCopy(inFileName, argv[i + 1], TextLength(argv[i + 1])); // Read input filename i++; } else printf("WARNING: No input file provided\n"); } else if (IsTextEqual(argv[i], "-o", 2) || IsTextEqual(argv[i], "--output", 8)) { if (((i + 1) < argc) && (argv[i + 1][0] != '-')) { MemoryCopy(outFileName, argv[i + 1], TextLength(argv[i + 1])); // Read output filename i++; } else printf("WARNING: No output file provided\n"); } else if (IsTextEqual(argv[i], "-f", 2) || IsTextEqual(argv[i], "--format", 8)) { if (((i + 1) < argc) && (argv[i + 1][0] != '-')) { if (IsTextEqual(argv[i + 1], "DEFAULT\0", 8)) outputFormat = DEFAULT; else if (IsTextEqual(argv[i + 1], "JSON\0", 5)) outputFormat = JSON; else if (IsTextEqual(argv[i + 1], "XML\0", 4)) outputFormat = XML; else if (IsTextEqual(argv[i + 1], "LUA\0", 4)) outputFormat = LUA; } else printf("WARNING: No format parameters provided\n"); } else if (IsTextEqual(argv[i], "-d", 2) || IsTextEqual(argv[i], "--define", 8)) { if (((i + 1) < argc) && (argv[i + 1][0] != '-')) { MemoryCopy(apiDefine, argv[i + 1], TextLength(argv[i + 1])); // Read functions define apiDefine[TextLength(argv[i + 1])] = '\0'; i++; } else printf("WARNING: No define key provided\n"); } } } // Load text data from file, returns a '\0' terminated string // NOTE: text chars array should be freed manually static char *LoadFileText(const char *fileName, int *length) { char *text = NULL; if (fileName != NULL) { FILE *file = fopen(fileName, "rt"); if (file != NULL) { // WARNING: When reading a file as 'text' file, // text mode causes carriage return-linefeed translation... // ...but using fseek() should return correct byte-offset fseek(file, 0, SEEK_END); int size = ftell(file); fseek(file, 0, SEEK_SET); if (size > 0) { text = (char *)calloc((size + 1), sizeof(char)); unsigned int count = (unsigned int)fread(text, sizeof(char), size, file); // WARNING: \r\n is converted to \n on reading, so, // read bytes count gets reduced by the number of lines if (count < (unsigned int)size) { text = realloc(text, count + 1); *length = count; } else *length = size; // Zero-terminate the string text[count] = '\0'; } fclose(file); } } return text; } // Get all lines from a text buffer (expecting lines ending with '\n') static char **GetTextLines(const char *buffer, int length, int *linesCount) { // Get the number of lines in the text int count = 0; for (int i = 0; i < length; i++) if (buffer[i] == '\n') count++; printf("Number of text lines in buffer: %i\n", count); // Allocate as many pointers as lines char **lines = (char **)malloc(count*sizeof(char **)); char *bufferPtr = (char *)buffer; for (int i = 0; (i < count) || (bufferPtr[0] != '\0'); i++) { lines[i] = (char *)calloc(MAX_LINE_LENGTH, sizeof(char)); // Remove line leading spaces // Find last index of space/tab character int index = 0; while ((bufferPtr[index] == ' ') || (bufferPtr[index] == '\t')) index++; int j = 0; while (bufferPtr[index + j] != '\n') { lines[i][j] = bufferPtr[index + j]; j++; } bufferPtr += (index + j + 1); } *linesCount = count; return lines; } // Get data type and name from a string containing both // NOTE: Useful to parse function parameters and struct fields static void GetDataTypeAndName(const char *typeName, int typeNameLen, char *type, char *name) { for (int k = typeNameLen; k > 0; k--) { if (typeName[k] == ' ' && typeName[k - 1] != ',') { // Function name starts at this point (and ret type finishes at this point) MemoryCopy(type, typeName, k); MemoryCopy(name, typeName + k + 1, typeNameLen - k - 1); break; } else if (typeName[k] == '*') { MemoryCopy(type, typeName, k + 1); MemoryCopy(name, typeName + k + 1, typeNameLen - k - 1); break; } else if (typeName[k] == '.' && typeNameLen == 3) // Handle varargs ...); { MemoryCopy(type, "...", 3); MemoryCopy(name, "args", 4); break; } } } // Get text length in bytes, check for \0 character static unsigned int TextLength(const char *text) { unsigned int length = 0; if (text != NULL) while (*text++) length++; return length; } // Custom memcpy() to avoid <string.h> static void MemoryCopy(void *dest, const void *src, unsigned int count) { char *srcPtr = (char *)src; char *destPtr = (char *)dest; for (unsigned int i = 0; i < count; i++) destPtr[i] = srcPtr[i]; } // Compare two text strings, requires number of characters to compare static bool IsTextEqual(const char *text1, const char *text2, unsigned int count) { bool result = true; for (unsigned int i = 0; i < count; i++) { if (text1[i] != text2[i]) { result = false; break; } } return result; } // Escape backslashes in a string, writing the escaped string into a static buffer static char *EscapeBackslashes(char *text) { static char buffer[256] = { 0 }; int count = 0; for (int i = 0; (text[i] != '\0') && (i < 255); i++, count++) { buffer[count] = text[i]; if (text[i] == '\\') { buffer[count + 1] = '\\'; count++; } } buffer[count] = '\0'; return buffer; } // Get string of define type static const char *StrDefineType(DefineType type) { switch (type) { case UNKNOWN: return "UNKNOWN"; case GUARD: return "GUARD"; case MACRO: return "MACRO"; case INT: return "INT"; case LONG: return "LONG"; case FLOAT: return "FLOAT"; case DOUBLE: return "DOUBLE"; case CHAR: return "CHAR"; case STRING: return "STRING"; case COLOR: return "COLOR"; } return ""; } /* // Replace text string // REQUIRES: strlen(), strstr(), strncpy(), strcpy() -> TODO: Replace by custom implementations! // WARNING: Returned buffer must be freed by the user (if return != NULL) static char *TextReplace(char *text, const char *replace, const char *by) { // Sanity checks and initialization if (!text || !replace || !by) return NULL; char *result; char *insertPoint; // Next insert point char *temp; // Temp pointer int replaceLen; // Replace string length of (the string to remove) int byLen; // Replacement length (the string to replace replace by) int lastReplacePos; // Distance between replace and end of last replace int count; // Number of replacements replaceLen = strlen(replace); if (replaceLen == 0) return NULL; // Empty replace causes infinite loop during count byLen = strlen(by); // Count the number of replacements needed insertPoint = text; for (count = 0; (temp = strstr(insertPoint, replace)); count++) insertPoint = temp + replaceLen; // Allocate returning string and point temp to it temp = result = (char *)malloc(strlen(text) + (byLen - replaceLen)*count + 1); if (!result) return NULL; // Memory could not be allocated // First time through the loop, all the variable are set correctly from here on, // - 'temp' points to the end of the result string // - 'insertPoint' points to the next occurrence of replace in text // - 'text' points to the remainder of text after "end of replace" while (count--) { insertPoint = strstr(text, replace); lastReplacePos = (int)(insertPoint - text); temp = strncpy(temp, text, lastReplacePos) + lastReplacePos; temp = strcpy(temp, by) + byLen; text += lastReplacePos + replaceLen; // Move to next "end of replace" } // Copy remaind text part after replacement to result (pointed by moving temp) strcpy(temp, text); return result; } */ // Export parsed data in desired format static void ExportParsedData(const char *fileName, int format) { FILE *outFile = fopen(fileName, "wt"); switch (format) { case DEFAULT: { // Print structs info fprintf(outFile, "\nStructures found: %i\n\n", structCount); for (int i = 0; i < structCount; i++) { fprintf(outFile, "Struct %02i: %s (%i fields)\n", i + 1, structs[i].name, structs[i].fieldCount); fprintf(outFile, " Name: %s\n", structs[i].name); fprintf(outFile, " Description: %s\n", structs[i].desc + 3); for (int f = 0; f < structs[i].fieldCount; f++) fprintf(outFile, " Field[%i]: %s %s %s\n", f + 1, structs[i].fieldType[f], structs[i].fieldName[f], structs[i].fieldDesc[f]); } // Print enums info fprintf(outFile, "\nEnums found: %i\n\n", enumCount); for (int i = 0; i < enumCount; i++) { fprintf(outFile, "Enum %02i: %s (%i values)\n", i + 1, enums[i].name, enums[i].valueCount); fprintf(outFile, " Name: %s\n", enums[i].name); fprintf(outFile, " Description: %s\n", enums[i].desc + 3); for (int e = 0; e < enums[i].valueCount; e++) fprintf(outFile, " Value[%s]: %i\n", enums[i].valueName[e], enums[i].valueInteger[e]); } // Print functions info fprintf(outFile, "\nFunctions found: %i\n\n", funcCount); for (int i = 0; i < funcCount; i++) { fprintf(outFile, "Function %03i: %s() (%i input parameters)\n", i + 1, funcs[i].name, funcs[i].paramCount); fprintf(outFile, " Name: %s\n", funcs[i].name); fprintf(outFile, " Return type: %s\n", funcs[i].retType); fprintf(outFile, " Description: %s\n", funcs[i].desc + 3); for (int p = 0; p < funcs[i].paramCount; p++) fprintf(outFile, " Param[%i]: %s (type: %s)\n", p + 1, funcs[i].paramName[p], funcs[i].paramType[p]); if (funcs[i].paramCount == 0) fprintf(outFile, " No input parameters\n"); } fprintf(outFile, "\nDefines found: %i\n\n", defineCount); for (int i = 0; i < defineCount; i++) { fprintf(outFile, "Define %03i: %s\n", i + 1, defines[i].name); fprintf(outFile, " Name: %s\n", defines[i].name); fprintf(outFile, " Type: %s\n", StrDefineType(defines[i].type)); fprintf(outFile, " Value: %s\n", defines[i].value); fprintf(outFile, " Description: %s\n", defines[i].desc + 3); } } break; case LUA: { fprintf(outFile, "return {\n"); // Print structs info fprintf(outFile, " structs = {\n"); for (int i = 0; i < structCount; i++) { fprintf(outFile, " {\n"); fprintf(outFile, " name = \"%s\",\n", structs[i].name); fprintf(outFile, " description = \"%s\",\n", EscapeBackslashes(structs[i].desc + 3)); fprintf(outFile, " fields = {\n"); for (int f = 0; f < structs[i].fieldCount; f++) { fprintf(outFile, " {\n"); fprintf(outFile, " type = \"%s\",\n", structs[i].fieldType[f]); fprintf(outFile, " name = \"%s\",\n", structs[i].fieldName[f]); fprintf(outFile, " description = \"%s\"\n", EscapeBackslashes(structs[i].fieldDesc[f] + 3)); fprintf(outFile, " }"); if (f < structs[i].fieldCount - 1) fprintf(outFile, ",\n"); else fprintf(outFile, "\n"); } fprintf(outFile, " }\n"); fprintf(outFile, " }"); if (i < structCount - 1) fprintf(outFile, ",\n"); else fprintf(outFile, "\n"); } fprintf(outFile, " },\n"); // Print enums info fprintf(outFile, " enums = {\n"); for (int i = 0; i < enumCount; i++) { fprintf(outFile, " {\n"); fprintf(outFile, " name = \"%s\",\n", enums[i].name); fprintf(outFile, " description = \"%s\",\n", EscapeBackslashes(enums[i].desc + 3)); fprintf(outFile, " values = {\n"); for (int e = 0; e < enums[i].valueCount; e++) { fprintf(outFile, " {\n"); fprintf(outFile, " name = \"%s\",\n", enums[i].valueName[e]); fprintf(outFile, " value = %i,\n", enums[i].valueInteger[e]); fprintf(outFile, " description = \"%s\"\n", EscapeBackslashes(enums[i].valueDesc[e] + 3)); fprintf(outFile, " }"); if (e < enums[i].valueCount - 1) fprintf(outFile, ",\n"); else fprintf(outFile, "\n"); } fprintf(outFile, " }\n"); fprintf(outFile, " }"); if (i < enumCount - 1) fprintf(outFile, ",\n"); else fprintf(outFile, "\n"); } fprintf(outFile, " },\n"); // Print defines info fprintf(outFile, " defines = {\n"); for (int i = 0; i < defineCount; i++) { fprintf(outFile, " {\n"); fprintf(outFile, " name = \"%s\",\n", defines[i].name); fprintf(outFile, " type = \"%s\",\n", StrDefineType(defines[i].type)); if (defines[i].type == INT || defines[i].type == LONG || defines[i].type == FLOAT || defines[i].type == DOUBLE || defines[i].type == STRING) { fprintf(outFile, " value = %s,\n", defines[i].value); } else { fprintf(outFile, " value = \"%s\",\n", defines[i].value); } fprintf(outFile, " description = \"%s\"\n", defines[i].desc + 3); fprintf(outFile, " }"); if (i < defineCount - 1) fprintf(outFile, ",\n"); else fprintf(outFile, "\n"); } fprintf(outFile, " },\n"); // Print functions info fprintf(outFile, " functions = {\n"); for (int i = 0; i < funcCount; i++) { fprintf(outFile, " {\n"); fprintf(outFile, " name = \"%s\",\n", funcs[i].name); fprintf(outFile, " description = \"%s\",\n", EscapeBackslashes(funcs[i].desc + 3)); fprintf(outFile, " returnType = \"%s\"", funcs[i].retType); if (funcs[i].paramCount == 0) fprintf(outFile, "\n"); else { fprintf(outFile, ",\n params = {\n"); for (int p = 0; p < funcs[i].paramCount; p++) { fprintf(outFile, " {type = \"%s\", name = \"%s\"}", funcs[i].paramType[p], funcs[i].paramName[p]); if (p < funcs[i].paramCount - 1) fprintf(outFile, ",\n"); else fprintf(outFile, "\n"); } fprintf(outFile, " }\n"); } fprintf(outFile, " }"); if (i < funcCount - 1) fprintf(outFile, ",\n"); else fprintf(outFile, "\n"); } fprintf(outFile, " }\n"); fprintf(outFile, "}\n"); } break; case JSON: { fprintf(outFile, "{\n"); // Print structs info fprintf(outFile, " \"structs\": [\n"); for (int i = 0; i < structCount; i++) { fprintf(outFile, " {\n"); fprintf(outFile, " \"name\": \"%s\",\n", structs[i].name); fprintf(outFile, " \"description\": \"%s\",\n", EscapeBackslashes(structs[i].desc + 3)); fprintf(outFile, " \"fields\": [\n"); for (int f = 0; f < structs[i].fieldCount; f++) { fprintf(outFile, " {\n"); fprintf(outFile, " \"type\": \"%s\",\n", structs[i].fieldType[f]); fprintf(outFile, " \"name\": \"%s\",\n", structs[i].fieldName[f]); fprintf(outFile, " \"description\": \"%s\"\n", EscapeBackslashes(structs[i].fieldDesc[f] + 3)); fprintf(outFile, " }"); if (f < structs[i].fieldCount - 1) fprintf(outFile, ",\n"); else fprintf(outFile, "\n"); } fprintf(outFile, " ]\n"); fprintf(outFile, " }"); if (i < structCount - 1) fprintf(outFile, ",\n"); else fprintf(outFile, "\n"); } fprintf(outFile, " ],\n"); // Print enums info fprintf(outFile, " \"enums\": [\n"); for (int i = 0; i < enumCount; i++) { fprintf(outFile, " {\n"); fprintf(outFile, " \"name\": \"%s\",\n", enums[i].name); fprintf(outFile, " \"description\": \"%s\",\n", EscapeBackslashes(enums[i].desc + 3)); fprintf(outFile, " \"values\": [\n"); for (int e = 0; e < enums[i].valueCount; e++) { fprintf(outFile, " {\n"); fprintf(outFile, " \"name\": \"%s\",\n", enums[i].valueName[e]); fprintf(outFile, " \"value\": %i,\n", enums[i].valueInteger[e]); fprintf(outFile, " \"description\": \"%s\"\n", EscapeBackslashes(enums[i].valueDesc[e] + 3)); fprintf(outFile, " }"); if (e < enums[i].valueCount - 1) fprintf(outFile, ",\n"); else fprintf(outFile, "\n"); } fprintf(outFile, " ]\n"); fprintf(outFile, " }"); if (i < enumCount - 1) fprintf(outFile, ",\n"); else fprintf(outFile, "\n"); } fprintf(outFile, " ],\n"); // Print defines info fprintf(outFile, " \"defines\": [\n"); for (int i = 0; i < defineCount; i++) { fprintf(outFile, " {\n"); fprintf(outFile, " \"name\": \"%s\",\n", defines[i].name); fprintf(outFile, " \"type\": \"%s\",\n", StrDefineType(defines[i].type)); if (defines[i].isHex) { // INT or LONG fprintf(outFile, " \"value\": %ld,\n", strtol(defines[i].value, NULL, 16)); } else if (defines[i].type == INT || defines[i].type == LONG || defines[i].type == FLOAT || defines[i].type == DOUBLE || defines[i].type == STRING) { fprintf(outFile, " \"value\": %s,\n", defines[i].value); } else { fprintf(outFile, " \"value\": \"%s\",\n", defines[i].value); } fprintf(outFile, " \"description\": \"%s\"\n", defines[i].desc + 3); fprintf(outFile, " }"); if (i < defineCount - 1) fprintf(outFile, ",\n"); else fprintf(outFile, "\n"); } fprintf(outFile, " ],\n"); // Print functions info fprintf(outFile, " \"functions\": [\n"); for (int i = 0; i < funcCount; i++) { fprintf(outFile, " {\n"); fprintf(outFile, " \"name\": \"%s\",\n", funcs[i].name); fprintf(outFile, " \"description\": \"%s\",\n", EscapeBackslashes(funcs[i].desc + 3)); fprintf(outFile, " \"returnType\": \"%s\"", funcs[i].retType); if (funcs[i].paramCount == 0) fprintf(outFile, "\n"); else { fprintf(outFile, ",\n \"params\": [\n"); for (int p = 0; p < funcs[i].paramCount; p++) { fprintf(outFile, " {\n"); fprintf(outFile, " \"type\": \"%s\",\n", funcs[i].paramType[p]); fprintf(outFile, " \"name\": \"%s\"\n", funcs[i].paramName[p]); fprintf(outFile, " }"); if (p < funcs[i].paramCount - 1) fprintf(outFile, ",\n"); else fprintf(outFile, "\n"); } fprintf(outFile, " ]\n"); } fprintf(outFile, " }"); if (i < funcCount - 1) fprintf(outFile, ",\n"); else fprintf(outFile, "\n"); } fprintf(outFile, " ]\n"); fprintf(outFile, "}\n"); } break; case XML: { // XML format to export data: /* <?xml version="1.0" encoding="Windows-1252" ?> <raylibAPI> <Structs count=""> <Struct name="" fieldCount="" desc=""> <Field type="" name="" desc=""> <Field type="" name="" desc=""> </Struct> <Structs> <Enums count=""> <Enum name="" valueCount="" desc=""> <Value name="" integer="" desc=""> <Value name="" integer="" desc=""> </Enum> </Enums> <Functions count=""> <Function name="" retType="" paramCount="" desc=""> <Param type="" name="" desc="" /> <Param type="" name="" desc="" /> </Function> </Functions> </raylibAPI> */ fprintf(outFile, "<?xml version=\"1.0\" encoding=\"Windows-1252\" ?>\n"); fprintf(outFile, "<raylibAPI>\n"); // Print structs info fprintf(outFile, " <Structs count=\"%i\">\n", structCount); for (int i = 0; i < structCount; i++) { fprintf(outFile, " <Struct name=\"%s\" fieldCount=\"%i\" desc=\"%s\">\n", structs[i].name, structs[i].fieldCount, structs[i].desc + 3); for (int f = 0; f < structs[i].fieldCount; f++) { fprintf(outFile, " <Field type=\"%s\" name=\"%s\" desc=\"%s\" />\n", structs[i].fieldType[f], structs[i].fieldName[f], structs[i].fieldDesc[f] + 3); } fprintf(outFile, " </Struct>\n"); } fprintf(outFile, " </Structs>\n"); // Print enums info fprintf(outFile, " <Enums count=\"%i\">\n", enumCount); for (int i = 0; i < enumCount; i++) { fprintf(outFile, " <Enum name=\"%s\" valueCount=\"%i\" desc=\"%s\">\n", enums[i].name, enums[i].valueCount, enums[i].desc + 3); for (int v = 0; v < enums[i].valueCount; v++) { fprintf(outFile, " <Value name=\"%s\" integer=\"%i\" desc=\"%s\" />\n", enums[i].valueName[v], enums[i].valueInteger[v], enums[i].valueDesc[v] + 3); } fprintf(outFile, " </Enum>\n"); } fprintf(outFile, " </Enums>\n"); // Print defines info fprintf(outFile, " <Defines count=\"%i\">\n", defineCount); for (int i = 0; i < defineCount; i++) { fprintf(outFile, " <Define name=\"%s\" type=\"%s\" value=\"%s\" desc=\"%s\" />\n", defines[i].name, StrDefineType(defines[i].type), defines[i].value, defines[i].desc); } fprintf(outFile, " </Defines>\n"); // Print functions info fprintf(outFile, " <Functions count=\"%i\">\n", funcCount); for (int i = 0; i < funcCount; i++) { fprintf(outFile, " <Function name=\"%s\" retType=\"%s\" paramCount=\"%i\" desc=\"%s\">\n", funcs[i].name, funcs[i].retType, funcs[i].paramCount, funcs[i].desc + 3); for (int p = 0; p < funcs[i].paramCount; p++) { fprintf(outFile, " <Param type=\"%s\" name=\"%s\" desc=\"%s\" />\n", funcs[i].paramType[p], funcs[i].paramName[p], funcs[i].paramDesc[p] + 3); } fprintf(outFile, " </Function>\n"); } fprintf(outFile, " </Functions>\n"); fprintf(outFile, "</raylibAPI>\n"); } break; default: break; } fclose(outFile); }
the_stack_data/232956891.c
int main(void){ int* p; { int x = 5; p = &x; } // the memory for x should not be accessible now int y = *p; return 0; }
the_stack_data/101839.c
/* test support for large constants in enums (gcc-specific) if you ask me, gcc's behaviour is a bit weird, but... */ enum fun { SMALL = 33, STRANGE = 44LL, LARGE = 22LL << 34 }; long long magic1 = 22LL << 34; enum fun magic2 = LARGE; int main() { int ok = 1; ok = ok && (LARGE + 1 == magic1 + 1); return ok ? 0 : 2; }
the_stack_data/80104.c
/* Functional tests for the function hotpatching feature. */ /* { dg-do compile } */ /* { dg-options "-mzarch -mhotpatch=0,0" } */ #include <stdio.h> void hp1(void) { printf("hello, world!\n"); } /* Check number of occurences of certain instructions. */ /* { dg-final { scan-assembler-not "pre-label NOPs" } } */ /* { dg-final { scan-assembler-not "post-label NOPs" } } */ /* { dg-final { scan-assembler-not "nopr\t%r0" } } */ /* { dg-final { scan-assembler-not "nop\t0" } } */ /* { dg-final { scan-assembler-not "brcl\t0, 0" } } */ /* { dg-final { scan-assembler-not "alignment for hotpatch" } } */
the_stack_data/126703469.c
/* * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <stdlib.h> struct delicious { int yum; int* ptr; }; struct delicious* bake(struct delicious** cake) { int* zero = NULL; *zero = 3; return NULL; } struct delicious* skip_function_with_no_spec(void) { struct delicious* cake = NULL; int i; if (bake(&cake) == NULL) { return 0; } i = cake->yum; return cake; } extern struct delicious* bakery(struct delicious** cake); extern struct delicious* bakery2(struct delicious** cake, struct delicious** pie); extern struct delicious* returnPassByRef(); extern void skip(struct delicious* s); struct delicious* skip_external_function(void) { struct delicious* cake = NULL; int i; if (bakery(&cake) == NULL) { return 0; } i = cake->yum; return cake; } void by_ref_actual_already_in_footprint(struct delicious* param) { int i; struct delicious* ret = bakery(&param); i = param->yum; } void call_by_ref_actual_already_in_footprint_ok() { by_ref_actual_already_in_footprint(NULL); // should not report a warning } void by_ref_actual_already_in_footprint2(struct delicious* param) { int i; i = param->yum; // should not report a warning struct delicious* ret = bakery(&param); i = param->yum; // should not report a warning } void call_by_ref_actual_already_in_footprint_bad() { by_ref_actual_already_in_footprint2(NULL); // should report a warning } void passByRefTwice() { struct delicious* param; bakery2(&param, &param); // should not report a warning int i = param->yum; } struct delicious* returnPassByRef2() { struct delicious* param = NULL; bakery(&param); int i = param->yum; // should not report a warning return param; } void returnPassByRefDeref() { struct delicious* ret = returnPassByRef(); ret->yum = 2; // should not report a warning free(ret); } extern void struct_ptr_skip(struct delicious* s); extern void struct_val_skip(struct delicious s); int passStructByRefDeref() { struct delicious d; d.yum = 7; struct_ptr_skip(&d); return 1 / d.yum; // should not report divide by zero warning } int struct_value_by_ref_pure() { struct delicious x; struct_ptr_skip(&x); return 1 / x.yum; // should not report divide by zero warning } int struct_value_by_ref_ptr() { struct delicious x; struct_ptr_skip(&x); return *x.ptr; // should not report null deref warning } int struct_value_by_ref_abduce() { struct delicious x; struct_ptr_skip(&x); return 1 / *x.ptr; // shoult not report divide by zero warning } int struct_value_by_ref_ptr_write_before() { struct delicious x; x.ptr = NULL; struct_ptr_skip(&x); return *x.ptr; // should not report null deref warning } int struct_value_by_ref_ptr_write() { struct delicious x; struct_ptr_skip(&x); x.ptr = NULL; return *x.ptr; // should report null deref warning } void setF(struct delicious* x, int val) { x->ptr = val; } int struct_value_by_ref_callee_write_no_skip() { struct delicious x; setF(&x, NULL); return *x.ptr; // should report null deref warning } int struct_value_by_ref_callee_write_skip() { struct delicious x; struct_ptr_skip(&x); setF(&x, NULL); return *x.ptr; // should report null deref warning } int struct_value_by_ref_write_then_skip() { struct delicious x; x.ptr = NULL; struct_ptr_skip(&x); return *x.ptr; // should not report null deref warning } int struct_value_skip_null_deref() { struct delicious x; x.ptr = NULL; struct_val_skip(x); return *x.ptr; // should report null deref warning } int struct_value_skip_ok() { struct delicious x; x.yum = 7; struct_val_skip(x); return 1 / x.yum; // should not report div by zero warning } int struct_value_from_pointer_skip_ok(struct delicious* x) { struct_val_skip(*x); return 1 / x->yum; // should not report div by zero warning } int struct_value_from_pointer_skip_bad(struct delicious* x) { x->ptr = NULL; struct_val_skip(*x); return 1 / *x->ptr; // should report null deref warning }
the_stack_data/211081652.c
#include <stdio.h> int main(int argc, char *argv[]) { int baud; int mode; if (argc == 4) { baud = strtol( argv[ 2 ], NULL, 10 ); mode = strtol( argv[ 3 ], NULL, 10 ); printf("Port : %s\n", argv[1]); printf("Baud : %d\n", baud); printf("Mode : %d\n", mode); } else { printf("error command\n"); } return 0; }
the_stack_data/154831496.c
#ifdef RL_MPFR real_t *r_init_array(int count) { int i; real_t *a; a = calloc(count, sizeof(real_t)); for (i=0; i < count; i++) r_init(a[i]); return a; } void r_zero_array(real_t *a, int count) { int i; for (i=0; i < count; i++) r_setd(a[i], 0.); } void r_free_array(real_t **a, int count) { int i; for (i=0; i < count; i++) r_free((*a)[i]); free_null((void **) a); } void r_flipsign(real_t y, real_t x) { int new_sign; new_sign = (mpfr_signbit(x) == 0); mpfr_setsign(y, x, new_sign, MPFR_RNDN); } void r_gaussian(real_t y, real_t x) { r_set(y, x); r_mul(y, y); r_flipsign(y, y); r_exp(y, y); } void r_mix(real_t x, double t, real_t start, real_t end) // x = (end-start)*t + start { r_rsub(x, end, start); r_muld(x, t); r_add(x, start); } #endif
the_stack_data/148576836.c
/* * @brief FPU init code * * @note * Copyright(C) NXP Semiconductors, 2012 * All rights reserved. * * @par * Software that is described herein is for illustrative purposes only * which provides customers with programming information regarding the * LPC products. This software is supplied "AS IS" without any warranties of * any kind, and NXP Semiconductors and its licensor disclaim any and * all warranties, express or implied, including all implied warranties of * merchantability, fitness for a particular purpose and non-infringement of * intellectual property rights. NXP Semiconductors assumes no responsibility * or liability for the use of the software, conveys no license or rights under any * patent, copyright, mask work right, or any other intellectual property rights in * or to any products. NXP Semiconductors reserves the right to make changes * in the software without notification. NXP Semiconductors also makes no * representation or warranty that such application will be suitable for the * specified use without further testing or modification. * * @par * Permission to use, copy, modify, and distribute this software and its * documentation is hereby granted, under NXP Semiconductors' and its * licensor's relevant copyrights in the software, without fee, provided that it * is used in conjunction with NXP Semiconductors microcontrollers. This * copyright, permission, and disclaimer notice must appear in all copies of * this code. */ #if defined(CORE_M4) #include "sys_config.h" #include "cmsis.h" #include "stdint.h" /***************************************************************************** * Private types/enumerations/variables ****************************************************************************/ #define LPC_CPACR 0xE000ED88 #define SCB_MVFR0 0xE000EF40 #define SCB_MVFR0_RESET 0x10110021 #define SCB_MVFR1 0xE000EF44 #define SCB_MVFR1_RESET 0x11000011 /***************************************************************************** * Public types/enumerations/variables ****************************************************************************/ /***************************************************************************** * Private functions ****************************************************************************/ /***************************************************************************** * Public functions ****************************************************************************/ /* Early initialization of the FPU */ void fpuInit(void) { #if __FPU_PRESENT != 0 // from arm trm manual: // ; CPACR is located at address 0xE000ED88 // LDR.W R0, =0xE000ED88 // ; Read CPACR // LDR R1, [R0] // ; Set bits 20-23 to enable CP10 and CP11 coprocessors // ORR R1, R1, #(0xF << 20) // ; Write back the modified value to the CPACR // STR R1, [R0] volatile uint32_t *regCpacr = (uint32_t *) LPC_CPACR; volatile uint32_t *regMvfr0 = (uint32_t *) SCB_MVFR0; volatile uint32_t *regMvfr1 = (uint32_t *) SCB_MVFR1; volatile uint32_t Cpacr; volatile uint32_t Mvfr0; volatile uint32_t Mvfr1; char vfpPresent = 0; Mvfr0 = *regMvfr0; Mvfr1 = *regMvfr1; vfpPresent = ((SCB_MVFR0_RESET == Mvfr0) && (SCB_MVFR1_RESET == Mvfr1)); if (vfpPresent) { Cpacr = *regCpacr; Cpacr |= (0xF << 20); *regCpacr = Cpacr; // enable CP10 and CP11 for full access } #endif /* __FPU_PRESENT != 0 */ } #endif /* defined(CORE_M4 */
the_stack_data/301779.c
/****************************************************************************** 11-Faca um programa que receba dois numeros e mostre o maior. Se por acaso, os dois numeros forem iguais, imprima a mensagem Numeros iguais. Data: 26.3.22 *******************************************************************************/ #include <stdio.h> int main() { //VARIÁVEIS int n1, n2; //INÍCIO printf("Este compara dois números e determina qual é o maior.\n"); //Entrada printf("Informe dois números inteiros para comparação:\n"); scanf("%i %i", &n1, &n2); //Processamento if(n1 > n2){ printf("%i é maior que %i.",n1,n2); }else if(n1 < n2){ printf("%i é menor que %i", n1,n2); }else{ printf("Os dois números são iguais."); } }
the_stack_data/20950.c
/* * fbtest3.c * * http://raspberrycompote.blogspot.ie/2013/01/low-level-graphics-on-raspberry-pi-part_22.html * * Original work by J-P Rosti (a.k.a -rst- and 'Raspberry Compote') * * Licensed under the Creative Commons Attribution 3.0 Unported License * (http://creativecommons.org/licenses/by/3.0/deed.en_US) * * Distributed in the hope that this will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * */ #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <linux/fb.h> #include <sys/mman.h> // application entry point int main(int argc, char* argv[]) { int fbfd = 0; struct fb_var_screeninfo orig_vinfo; struct fb_var_screeninfo vinfo; struct fb_fix_screeninfo finfo; long int screensize = 0; char *fbp = 0; // Open the file for reading and writing fbfd = open("/dev/fb0", O_RDWR); if (fbfd == -1) { printf("Error: cannot open framebuffer device.\n"); return(1); } printf("The framebuffer device was opened successfully.\n"); // Get variable screen information if (ioctl(fbfd, FBIOGET_VSCREENINFO, &vinfo)) { printf("Error reading variable information.\n"); } printf("Original %dx%d, %dbpp\n", vinfo.xres, vinfo.yres, vinfo.bits_per_pixel ); // Store for reset (copy vinfo to vinfo_orig) memcpy(&orig_vinfo, &vinfo, sizeof(struct fb_var_screeninfo)); // Change variable info vinfo.bits_per_pixel = 8; if (ioctl(fbfd, FBIOPUT_VSCREENINFO, &vinfo)) { printf("Error setting variable information.\n"); } // Get fixed screen information if (ioctl(fbfd, FBIOGET_FSCREENINFO, &finfo)) { printf("Error reading fixed information.\n"); } // map fb to user mem screensize = finfo.smem_len; fbp = (char*)mmap(0, screensize, PROT_READ | PROT_WRITE, MAP_SHARED, fbfd, 0); if ((int)fbp == -1) { printf("Failed to mmap.\n"); } else { // draw... int x, y; unsigned int pix_offset; for (y = 0; y < (vinfo.yres / 2); y++) { for (x = 0; x < vinfo.xres; x++) { // calculate the pixel's byte offset inside the buffer // see the image above in the blog... pix_offset = x + y * finfo.line_length; // now this is about the same as fbp[pix_offset] = value *((char*)(fbp + pix_offset)) = 16 * x / vinfo.xres; } } sleep(5); } // cleanup // unmap fb file from memory munmap(fbp, screensize); // reset the display mode if (ioctl(fbfd, FBIOPUT_VSCREENINFO, &orig_vinfo)) { printf("Error re-setting variable information.\n"); } // close fb file close(fbfd); return 0; }
the_stack_data/11076297.c
#include <stdio.h> int main(int argc, char **argv){ if(argc>2){ printf("Too many arguments specified!\n"); return(1); } if(!argc){ printf("No filename specified!\n"); return(1); } FILE *fp; fp=fopen(argv[1],"w"); printf("File %s created!\n", argv[1]); return 0; }
the_stack_data/689020.c
// submited by ishan piplani #include<stdio.h> int main(){ float L, B, R, Area_Rect, Peri_Rect, Area_Circ, Circum_Circ, Pi = 3.5; printf("\nEnter Length of Rectangle: "); scanf("%f",&L); printf("\nEnter Breadth of Rectangle: "); scanf("%f",&B); Area_Rect = L*B; Peri_Rect = 2*(L+B); printf("\nArea of Rectangle = %0.2f",Area_Rect); printf("\nPerimeter of Rectangle = %0.2f",Peri_Rect); printf("\nEnter Radius of Circle: "); scanf("%f",&R); Area_Circ = Pi*R*R; Circum_Circ = 2*Pi*R; printf("\nArea of Circle = %0.2f",Area_Circ); printf("\nCircumference of Circle = %0.2f",Circum_Circ); }
the_stack_data/151705917.c
extern void __VERIFIER_error(); void check(int cond) { if (!cond) { __VERIFIER_error(); } } void testLL() { long long ll1 = -2147483648 - 1; check(ll1 == -2147483649LL); long long ll2 = -2147483647 - 2147483647; check(ll2==2); long long ll3 = -2147483647LL - 2147483647LL; check(ll3 == -4294967294LL); long long ll4 = -2147483648 - 2147483648; check(ll4 == -4294967296LL); long long ll5 = -2147483648LL - 2147483648LL; check(ll5 == -4294967296LL); } void testULL() { long long ull1 = -2147483648 - 1; check(ull1 == 18446744071562067967ULL); long long ull2 = -2147483647 - 2147483647; check(ull2==2); long long ull3 = -2147483647LL - 2147483647LL; check(ull3 == 18446744069414584322ULL); long long ull4 = -2147483648 - 2147483648; check(ull4 == 18446744069414584320ULL); long long ull5 = -2147483648LL - 2147483648LL; check(ull5 == 18446744069414584320ULL); } void testL8() { long l1 = -2147483648 - 1; check(l1 == -2147483649LL); long l2 = -2147483647 - 2147483647; check(l2==2); long l3 = -2147483647LL - 2147483647LL; check(l3 == -4294967294LL); long l4 = -2147483648 - 2147483648; check(l4 == -4294967296LL); long l5 = -2147483648LL - 2147483648LL; check(l5 == -4294967296LL); } void testUL8() { long ul1 = -2147483648 - 1; check(ul1 == 18446744071562067967ULL); long ul2 = -2147483647 - 2147483647; check(ul2==2); long ul3 = -2147483647LL - 2147483647LL; check(ul3 == 18446744069414584322ULL); long ul4 = -2147483648 - 2147483648; check(ul4 == 18446744069414584320ULL); long ul5 = -2147483648LL - 2147483648LL; check(ul5 == 18446744069414584320ULL); } void main() { testLL(); testULL(); if (sizeof(long int) == 8) { // 64-bit system testL8(); testUL8(); } }
the_stack_data/48312.c
#include<stdio.h> int main(void){ int t,n,k,i,j,l,m,cont; scanf("%d",&t); for(i=0; i<t; i++){ cont=0; scanf("%d %d",&n,&k); char mat[n][n]; for(j=0; j<n; j++){ for(l=0; l<n; l++){ scanf(" %c",&mat[j][l]); } } for(j=0; j<n; j++){ for(l=0; l<n; l++){ if(mat[j][l]=='P'){ m=l-k; if(m<0) m=0; while(m>=0 && m<=l+k && m<n){ if(mat[j][m]=='L'){ mat[j][m]='A'; cont++; m=l+k; } m++; } } } } printf("%d\n",cont); } }
the_stack_data/22013052.c
#include <unistd.h> #include <stdio.h> #include <fcntl.h> int main(void) { int pid = fork(); if (pid == -1) { fprintf(stderr, "Could not fork process\n"); return -1; } else if (pid == 0) { fprintf(stdout, "Child will now replace itself with ls\n"); // Setup the arguments/environment to call char *argv[] = { "/bin/ls", "-la", 0 }; char *envp[] = { "HOME=/", "PATH=/bin:/usr/bin", "USER=brandon", 0 }; // Call execve(2) which will replace the executable image of this // process execve(argv[0], &argv[0], envp); // Execution will never continue in this process unless execve returns // because of an error fprintf(stderr, "Oops!\n"); return -1; } else if (pid > 0) { int status; fprintf(stdout, "Parent will now wait for child to finish execution\n"); wait(&status); fprintf(stdout, "Child has finished execution (returned %i), parent is done\n", status); } return 0; }
the_stack_data/71690.c
#ifdef DEBUG /* * pargv_dump.c */ #include "private.h" #include "target-utils/lub/dump.h" /*--------------------------------------------------------- */ void clish_parg_dump(const clish_parg_t * this) { lub_dump_printf("parg(%p)\n", this); lub_dump_indent(); lub_dump_printf("name : %s\n", clish_parg__get_name(this)); lub_dump_printf("ptype: %s\n", clish_ptype__get_name(clish_parg__get_ptype(this))); lub_dump_printf("value: %s\n", clish_parg__get_value(this)); lub_dump_undent(); } /*--------------------------------------------------------- */ void clish_pargv_dump(const clish_pargv_t * this) { unsigned i; lub_dump_printf("pargv(%p)\n", this); lub_dump_indent(); for (i = 0; i < this->pargc; i++) { /* get the appropriate parameter definition */ clish_parg_dump(this->pargv[i]); } lub_dump_undent(); } /*--------------------------------------------------------- */ #endif /* DEBUG */
the_stack_data/20449462.c
int main(void){ int a[0]; }
the_stack_data/14200834.c
/* mem.c Copyright (C) 1997 Michael J. Fromberger, All Rights Reserved. Memory wrappers for Xcaliber Mark II */ #ifdef DEBUG #include <stdio.h> #include <stdlib.h> void myfree(void *ptr) { fprintf(stderr, "myfree: ptr=0x%p\n", ptr); if (ptr != NULL) free(ptr); } void *mymalloc(size_t size) { void *out = malloc(size); fprintf(stderr, "mymalloc: size=%ld out=0x%p\n", size, out); return out; } void *mycalloc(int num, size_t size) { void *out = calloc(num, size); fprintf(stderr, "mycalloc: num=%d size=%ld out=0x%p\n", num, size, out); return out; } #endif
the_stack_data/1268619.c
#include <stdio.h> #include <string.h> int wcount(char *s) { int i, res = 0, flag = 0; for(i=0;i<strlen(s);i++){ if(s[i] != ' ' && (i == strlen(s)-1 || s[i+1] == ' ')) res++; } return res; } int main() { char str[100]; gets(str); printf("%d\n", wcount(str)); return 0; }
the_stack_data/206392218.c
#include<stdio.h> int fibonacci(int n){ if(n==0){ return 0; }else if(n==1){ return 1; }else{ return fibonacci(n-2)+fibonacci(n-1); } } void printfibonacci(int n){ if(n<0){ return; }else{ printfibonacci(n-1); printf("%d ",fibonacci(n)); } } int main(void){ int n; scanf("%d",&n); printfibonacci(n); return 0; }
the_stack_data/111963.c
/* Copyright (C) 2002 Jean-Marc Valin File: exc_5_64_table.c Codebook for excitation in narrowband CELP mode (9600 bps) 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 Xiph.org Foundation 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 FOUNDATION 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. */ const signed char exc_5_64_table[320]={ 1,5,-15,49,-66, -48,-4,50,-44,7, 37,16,-18,25,-26, -26,-15,19,19,-27, -47,28,57,5,-17, -32,-41,68,21,-2, 64,56,8,-16,-13, -26,-9,-16,11,6, -39,25,-19,22,-31, 20,-45,55,-43,10, -16,47,-40,40,-20, -51,3,-17,-14,-15, -24,53,-20,-46,46, 27,-68,32,3,-18, -5,9,-31,16,-9, -10,-1,-23,48,95, 47,25,-41,-32,-3, 15,-25,-55,36,41, -27,20,5,13,14, -22,5,2,-23,18, 46,-15,17,-18,-34, -5,-8,27,-55,73, 16,2,-1,-17,40, -78,33,0,2,19, 4,53,-16,-15,-16, -28,-3,-13,49,8, -7,-29,27,-13,32, 20,32,-61,16,14, 41,44,40,24,20, 7,4,48,-60,-77, 17,-6,-48,65,-15, 32,-30,-71,-10,-3, -6,10,-2,-7,-29, -56,67,-30,7,-5, 86,-6,-10,0,5, -31,60,34,-38,-3, 24,10,-2,30,23, 24,-41,12,70,-43, 15,-17,6,13,16, -13,8,30,-15,-8, 5,23,-34,-98,-4, -13,13,-48,-31,70, 12,31,25,24,-24, 26,-7,33,-16,8, 5,-11,-14,-8,-65, 13,10,-2,-9,0, -3,-68,5,35,7, 0,-31,-1,-17,-9, -9,16,-37,-18,-1, 69,-48,-28,22,-21, -11,5,49,55,23, -86,-36,16,2,13, 63,-51,30,-11,13, 24,-18,-6,14,-19, 1,41,9,-5,27, -36,-44,-34,-37,-21, -26,31,-39,15,43, 5,-8,29,20,-8, -20,-52,-28,-1,13, 26,-34,-10,-9,27, -8,8,27,-66,4, 12,-22,49,10,-77, 32,-18,3,-38,12, -3,-1,2,2,0};
the_stack_data/103265907.c
int main() { int a = 5; a -= 6+9*8; return a; }
the_stack_data/70518.c
#include <stdio.h> int main(){ // Reverse of a value int value,reverse; printf("Enter a value "); scanf("%d",&value); while(value>0) { reverse = reverse*10; reverse = reverse + value%10; value = value/10; } printf("Reversed value is %d",reverse); printf("\n"); return 0; }
the_stack_data/206393190.c
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward declarations */ typedef struct TYPE_38__ TYPE_9__ ; typedef struct TYPE_37__ TYPE_8__ ; typedef struct TYPE_36__ TYPE_7__ ; typedef struct TYPE_35__ TYPE_6__ ; typedef struct TYPE_34__ TYPE_5__ ; typedef struct TYPE_33__ TYPE_4__ ; typedef struct TYPE_32__ TYPE_3__ ; typedef struct TYPE_31__ TYPE_2__ ; typedef struct TYPE_30__ TYPE_1__ ; typedef struct TYPE_29__ TYPE_19__ ; typedef struct TYPE_28__ TYPE_18__ ; typedef struct TYPE_27__ TYPE_17__ ; typedef struct TYPE_26__ TYPE_16__ ; typedef struct TYPE_25__ TYPE_15__ ; typedef struct TYPE_24__ TYPE_14__ ; typedef struct TYPE_23__ TYPE_13__ ; typedef struct TYPE_22__ TYPE_12__ ; typedef struct TYPE_21__ TYPE_11__ ; typedef struct TYPE_20__ TYPE_10__ ; /* Type definitions */ typedef unsigned int uint8_t ; typedef int uint64_t ; typedef int uint16_t ; struct TYPE_28__ {unsigned int plc; int payload; int /*<<< orphan*/ ip; } ; struct TYPE_27__ {int /*<<< orphan*/ autonomous; int /*<<< orphan*/ store; int /*<<< orphan*/ interrupt; int /*<<< orphan*/ deepest; int /*<<< orphan*/ last; } ; struct TYPE_26__ {int /*<<< orphan*/ hw; int /*<<< orphan*/ sub_state; int /*<<< orphan*/ state; } ; struct TYPE_25__ {int hints; int ext; } ; struct TYPE_24__ {int /*<<< orphan*/ ip; } ; struct TYPE_23__ {int payload; } ; struct TYPE_22__ {int base; } ; struct TYPE_21__ {int value; } ; struct TYPE_20__ {int /*<<< orphan*/ ctc; } ; struct TYPE_38__ {int ctc; int fc; } ; struct TYPE_37__ {int /*<<< orphan*/ ratio; } ; struct TYPE_36__ {int tsc; } ; struct TYPE_35__ {int cr3; int /*<<< orphan*/ nr; } ; struct TYPE_32__ {int /*<<< orphan*/ abrt; int /*<<< orphan*/ intx; } ; struct TYPE_31__ {int /*<<< orphan*/ csd; int /*<<< orphan*/ csl; } ; struct TYPE_33__ {TYPE_3__ tsx; TYPE_2__ exec; } ; struct TYPE_34__ {TYPE_4__ bits; int /*<<< orphan*/ leaf; } ; struct TYPE_30__ {int bit_size; unsigned int payload; } ; struct TYPE_29__ {TYPE_18__ ptw; TYPE_17__ pwrx; TYPE_16__ pwre; TYPE_15__ mwait; TYPE_14__ exstop; TYPE_13__ mnt; TYPE_12__ vmcs; TYPE_11__ cyc; TYPE_10__ mtc; TYPE_9__ tma; TYPE_8__ cbr; TYPE_7__ tsc; TYPE_6__ pip; TYPE_5__ mode; TYPE_1__ tnt; int /*<<< orphan*/ ip; } ; struct pt_packet {int type; TYPE_19__ payload; } ; struct pt_encoder {unsigned int* pos; } ; /* Variables and functions */ #define ppt_cbr 156 #define ppt_cyc 155 #define ppt_exstop 154 #define ppt_fup 153 #define ppt_invalid 152 #define ppt_mnt 151 #define ppt_mode 150 #define ppt_mtc 149 #define ppt_mwait 148 #define ppt_ovf 147 #define ppt_pad 146 #define ppt_pip 145 #define ppt_psb 144 #define ppt_psbend 143 #define ppt_ptw 142 #define ppt_pwre 141 #define ppt_pwrx 140 #define ppt_stop 139 #define ppt_tip 138 #define ppt_tip_pgd 137 #define ppt_tip_pge 136 #define ppt_tma 135 #define ppt_tnt_64 134 #define ppt_tnt_8 133 #define ppt_tsc 132 #define ppt_unknown 131 #define ppt_vmcs 130 unsigned int* pt_encode_int (unsigned int*,int,int) ; int pt_encode_ip (struct pt_encoder*,int /*<<< orphan*/ ,int /*<<< orphan*/ *) ; int /*<<< orphan*/ pt_ext2_mnt ; int /*<<< orphan*/ pt_ext_cbr ; unsigned int pt_ext_exstop ; unsigned int pt_ext_exstop_ip ; int /*<<< orphan*/ pt_ext_ext2 ; int /*<<< orphan*/ pt_ext_mwait ; int /*<<< orphan*/ pt_ext_ovf ; int /*<<< orphan*/ pt_ext_pip ; int /*<<< orphan*/ pt_ext_psbend ; unsigned int pt_ext_ptw ; int /*<<< orphan*/ pt_ext_pwre ; int /*<<< orphan*/ pt_ext_pwrx ; int /*<<< orphan*/ pt_ext_stop ; int /*<<< orphan*/ pt_ext_tma ; int /*<<< orphan*/ pt_ext_tnt_64 ; int /*<<< orphan*/ pt_ext_vmcs ; unsigned int pt_mob_exec_csd ; unsigned int pt_mob_exec_csl ; unsigned int pt_mob_tsx_abrt ; unsigned int pt_mob_tsx_intx ; #define pt_mol_exec 129 #define pt_mol_tsx 128 unsigned int pt_opc_cyc ; void* pt_opc_ext ; int /*<<< orphan*/ pt_opc_fup ; int /*<<< orphan*/ pt_opc_mode ; int /*<<< orphan*/ pt_opc_mtc ; int /*<<< orphan*/ pt_opc_pad ; int /*<<< orphan*/ pt_opc_tip ; int /*<<< orphan*/ pt_opc_tip_pgd ; int /*<<< orphan*/ pt_opc_tip_pge ; int /*<<< orphan*/ pt_opc_tsc ; int /*<<< orphan*/ pt_opcs_ptw ; unsigned int pt_opm_cyc_ext ; int pt_opm_cyc_shr ; unsigned int pt_opm_cycx_ext ; int pt_opm_cycx_shr ; int /*<<< orphan*/ pt_opm_ptw_ip ; unsigned int pt_opm_ptw_pb_shr ; unsigned int pt_opm_tnt_8_shr ; int pt_pl_cyc_max_size ; int pt_pl_mnt_size ; int pt_pl_mwait_ext_size ; int pt_pl_mwait_hints_size ; int /*<<< orphan*/ pt_pl_pip_nr ; int pt_pl_pip_shl ; int pt_pl_pip_shr ; int pt_pl_pip_size ; int /*<<< orphan*/ pt_pl_pwre_hw_mask ; int pt_pl_pwre_size ; int /*<<< orphan*/ pt_pl_pwre_state_mask ; int pt_pl_pwre_state_shr ; int /*<<< orphan*/ pt_pl_pwre_sub_state_mask ; int pt_pl_pwre_sub_state_shr ; int /*<<< orphan*/ pt_pl_pwrx_deepest_mask ; int pt_pl_pwrx_deepest_shr ; int /*<<< orphan*/ pt_pl_pwrx_last_mask ; int pt_pl_pwrx_last_shr ; int pt_pl_pwrx_size ; int /*<<< orphan*/ pt_pl_pwrx_wr_hw ; int /*<<< orphan*/ pt_pl_pwrx_wr_int ; int /*<<< orphan*/ pt_pl_pwrx_wr_store ; int pt_pl_tma_ctc_size ; int pt_pl_tma_fc_mask ; int pt_pl_tma_fc_size ; unsigned int pt_pl_tnt_64_bits ; int pt_pl_tnt_64_size ; int pt_pl_tsc_size ; int pt_pl_vmcs_shl ; int pt_pl_vmcs_size ; int /*<<< orphan*/ pt_psb_hilo ; int pt_ptw_size (unsigned int) ; int pt_reserve (struct pt_encoder*,unsigned int) ; int pte_bad_opc ; int pte_bad_packet ; int pte_invalid ; unsigned int ptps_cbr ; unsigned int ptps_exstop ; unsigned int ptps_mnt ; unsigned int ptps_mode ; unsigned int ptps_mtc ; unsigned int ptps_mwait ; unsigned int ptps_ovf ; unsigned int ptps_pad ; unsigned int ptps_pip ; unsigned int ptps_psb ; unsigned int ptps_psbend ; unsigned int ptps_pwre ; unsigned int ptps_pwrx ; unsigned int ptps_stop ; unsigned int ptps_tma ; unsigned int ptps_tnt_64 ; unsigned int ptps_tnt_8 ; unsigned int ptps_tsc ; unsigned int ptps_vmcs ; int pt_enc_next(struct pt_encoder *encoder, const struct pt_packet *packet) { uint8_t *pos, *begin; int errcode; if (!encoder || !packet) return -pte_invalid; pos = begin = encoder->pos; switch (packet->type) { case ppt_pad: errcode = pt_reserve(encoder, ptps_pad); if (errcode < 0) return errcode; *pos++ = pt_opc_pad; encoder->pos = pos; return (int) (pos - begin); case ppt_psb: { uint64_t psb; errcode = pt_reserve(encoder, ptps_psb); if (errcode < 0) return errcode; psb = ((uint64_t) pt_psb_hilo << 48 | (uint64_t) pt_psb_hilo << 32 | (uint64_t) pt_psb_hilo << 16 | (uint64_t) pt_psb_hilo); pos = pt_encode_int(pos, psb, 8); pos = pt_encode_int(pos, psb, 8); encoder->pos = pos; return (int) (pos - begin); } case ppt_psbend: errcode = pt_reserve(encoder, ptps_psbend); if (errcode < 0) return errcode; *pos++ = pt_opc_ext; *pos++ = pt_ext_psbend; encoder->pos = pos; return (int) (pos - begin); case ppt_ovf: errcode = pt_reserve(encoder, ptps_ovf); if (errcode < 0) return errcode; *pos++ = pt_opc_ext; *pos++ = pt_ext_ovf; encoder->pos = pos; return (int) (pos - begin); case ppt_fup: return pt_encode_ip(encoder, pt_opc_fup, &packet->payload.ip); case ppt_tip: return pt_encode_ip(encoder, pt_opc_tip, &packet->payload.ip); case ppt_tip_pge: return pt_encode_ip(encoder, pt_opc_tip_pge, &packet->payload.ip); case ppt_tip_pgd: return pt_encode_ip(encoder, pt_opc_tip_pgd, &packet->payload.ip); case ppt_tnt_8: { uint8_t opc, stop; if (packet->payload.tnt.bit_size >= 7) return -pte_bad_packet; errcode = pt_reserve(encoder, ptps_tnt_8); if (errcode < 0) return errcode; stop = packet->payload.tnt.bit_size + pt_opm_tnt_8_shr; opc = (uint8_t) (packet->payload.tnt.payload << pt_opm_tnt_8_shr); *pos++ = (uint8_t) (opc | (1u << stop)); encoder->pos = pos; return (int) (pos - begin); } case ppt_tnt_64: { uint64_t tnt, stop; errcode = pt_reserve(encoder, ptps_tnt_64); if (errcode < 0) return errcode; if (packet->payload.tnt.bit_size >= pt_pl_tnt_64_bits) return -pte_invalid; stop = 1ull << packet->payload.tnt.bit_size; tnt = packet->payload.tnt.payload; if (tnt & ~(stop - 1)) return -pte_invalid; *pos++ = pt_opc_ext; *pos++ = pt_ext_tnt_64; pos = pt_encode_int(pos, tnt | stop, pt_pl_tnt_64_size); encoder->pos = pos; return (int) (pos - begin); } case ppt_mode: { uint8_t mode; errcode = pt_reserve(encoder, ptps_mode); if (errcode < 0) return errcode; switch (packet->payload.mode.leaf) { default: return -pte_bad_packet; case pt_mol_exec: mode = pt_mol_exec; if (packet->payload.mode.bits.exec.csl) mode |= pt_mob_exec_csl; if (packet->payload.mode.bits.exec.csd) mode |= pt_mob_exec_csd; break; case pt_mol_tsx: mode = pt_mol_tsx; if (packet->payload.mode.bits.tsx.intx) mode |= pt_mob_tsx_intx; if (packet->payload.mode.bits.tsx.abrt) mode |= pt_mob_tsx_abrt; break; } *pos++ = pt_opc_mode; *pos++ = mode; encoder->pos = pos; return (int) (pos - begin); } case ppt_pip: { uint64_t cr3; errcode = pt_reserve(encoder, ptps_pip); if (errcode < 0) return errcode; cr3 = packet->payload.pip.cr3; cr3 >>= pt_pl_pip_shl; cr3 <<= pt_pl_pip_shr; if (packet->payload.pip.nr) cr3 |= (uint64_t) pt_pl_pip_nr; *pos++ = pt_opc_ext; *pos++ = pt_ext_pip; pos = pt_encode_int(pos, cr3, pt_pl_pip_size); encoder->pos = pos; return (int) (pos - begin); } case ppt_tsc: errcode = pt_reserve(encoder, ptps_tsc); if (errcode < 0) return errcode; *pos++ = pt_opc_tsc; pos = pt_encode_int(pos, packet->payload.tsc.tsc, pt_pl_tsc_size); encoder->pos = pos; return (int) (pos - begin); case ppt_cbr: errcode = pt_reserve(encoder, ptps_cbr); if (errcode < 0) return errcode; *pos++ = pt_opc_ext; *pos++ = pt_ext_cbr; *pos++ = packet->payload.cbr.ratio; *pos++ = 0; encoder->pos = pos; return (int) (pos - begin); case ppt_tma: { uint16_t ctc, fc; errcode = pt_reserve(encoder, ptps_tma); if (errcode < 0) return errcode; ctc = packet->payload.tma.ctc; fc = packet->payload.tma.fc; if (fc & ~pt_pl_tma_fc_mask) return -pte_bad_packet; *pos++ = pt_opc_ext; *pos++ = pt_ext_tma; pos = pt_encode_int(pos, ctc, pt_pl_tma_ctc_size); *pos++ = 0; pos = pt_encode_int(pos, fc, pt_pl_tma_fc_size); encoder->pos = pos; return (int) (pos - begin); } case ppt_mtc: errcode = pt_reserve(encoder, ptps_mtc); if (errcode < 0) return errcode; *pos++ = pt_opc_mtc; *pos++ = packet->payload.mtc.ctc; encoder->pos = pos; return (int) (pos - begin); case ppt_cyc: { uint8_t byte[pt_pl_cyc_max_size], index, end; uint64_t ctc; ctc = (uint8_t) packet->payload.cyc.value; ctc <<= pt_opm_cyc_shr; byte[0] = pt_opc_cyc; byte[0] |= (uint8_t) ctc; ctc = packet->payload.cyc.value; ctc >>= (8 - pt_opm_cyc_shr); if (ctc) byte[0] |= pt_opm_cyc_ext; for (end = 1; ctc; ++end) { /* Check if the CYC payload is too big. */ if (pt_pl_cyc_max_size <= end) return -pte_bad_packet; ctc <<= pt_opm_cycx_shr; byte[end] = (uint8_t) ctc; ctc >>= 8; if (ctc) byte[end] |= pt_opm_cycx_ext; } errcode = pt_reserve(encoder, end); if (errcode < 0) return errcode; for (index = 0; index < end; ++index) *pos++ = byte[index]; encoder->pos = pos; return (int) (pos - begin); } case ppt_stop: errcode = pt_reserve(encoder, ptps_stop); if (errcode < 0) return errcode; *pos++ = pt_opc_ext; *pos++ = pt_ext_stop; encoder->pos = pos; return (int) (pos - begin); case ppt_vmcs: errcode = pt_reserve(encoder, ptps_vmcs); if (errcode < 0) return errcode; *pos++ = pt_opc_ext; *pos++ = pt_ext_vmcs; pos = pt_encode_int(pos, packet->payload.vmcs.base >> pt_pl_vmcs_shl, pt_pl_vmcs_size); encoder->pos = pos; return (int) (pos - begin); case ppt_mnt: errcode = pt_reserve(encoder, ptps_mnt); if (errcode < 0) return errcode; *pos++ = pt_opc_ext; *pos++ = pt_ext_ext2; *pos++ = pt_ext2_mnt; pos = pt_encode_int(pos, packet->payload.mnt.payload, pt_pl_mnt_size); encoder->pos = pos; return (int) (pos - begin); case ppt_exstop: { uint8_t ext; errcode = pt_reserve(encoder, ptps_exstop); if (errcode < 0) return errcode; ext = packet->payload.exstop.ip ? pt_ext_exstop_ip : pt_ext_exstop; *pos++ = pt_opc_ext; *pos++ = ext; encoder->pos = pos; return (int) (pos - begin); } case ppt_mwait: errcode = pt_reserve(encoder, ptps_mwait); if (errcode < 0) return errcode; *pos++ = pt_opc_ext; *pos++ = pt_ext_mwait; pos = pt_encode_int(pos, packet->payload.mwait.hints, pt_pl_mwait_hints_size); pos = pt_encode_int(pos, packet->payload.mwait.ext, pt_pl_mwait_ext_size); encoder->pos = pos; return (int) (pos - begin); case ppt_pwre: { uint64_t payload; errcode = pt_reserve(encoder, ptps_pwre); if (errcode < 0) return errcode; payload = 0ull; payload |= ((uint64_t) packet->payload.pwre.state << pt_pl_pwre_state_shr) & (uint64_t) pt_pl_pwre_state_mask; payload |= ((uint64_t) packet->payload.pwre.sub_state << pt_pl_pwre_sub_state_shr) & (uint64_t) pt_pl_pwre_sub_state_mask; if (packet->payload.pwre.hw) payload |= (uint64_t) pt_pl_pwre_hw_mask; *pos++ = pt_opc_ext; *pos++ = pt_ext_pwre; pos = pt_encode_int(pos, payload, pt_pl_pwre_size); encoder->pos = pos; return (int) (pos - begin); } case ppt_pwrx: { uint64_t payload; errcode = pt_reserve(encoder, ptps_pwrx); if (errcode < 0) return errcode; payload = 0ull; payload |= ((uint64_t) packet->payload.pwrx.last << pt_pl_pwrx_last_shr) & (uint64_t) pt_pl_pwrx_last_mask; payload |= ((uint64_t) packet->payload.pwrx.deepest << pt_pl_pwrx_deepest_shr) & (uint64_t) pt_pl_pwrx_deepest_mask; if (packet->payload.pwrx.interrupt) payload |= (uint64_t) pt_pl_pwrx_wr_int; if (packet->payload.pwrx.store) payload |= (uint64_t) pt_pl_pwrx_wr_store; if (packet->payload.pwrx.autonomous) payload |= (uint64_t) pt_pl_pwrx_wr_hw; *pos++ = pt_opc_ext; *pos++ = pt_ext_pwrx; pos = pt_encode_int(pos, payload, pt_pl_pwrx_size); encoder->pos = pos; return (int) (pos - begin); } case ppt_ptw: { uint8_t plc, ext; int size; plc = packet->payload.ptw.plc; size = pt_ptw_size(plc); if (size < 0) return size; errcode = pt_reserve(encoder, (unsigned int) (pt_opcs_ptw + size)); if (errcode < 0) return errcode; ext = pt_ext_ptw; ext |= plc << pt_opm_ptw_pb_shr; if (packet->payload.ptw.ip) ext |= (uint8_t) pt_opm_ptw_ip; *pos++ = pt_opc_ext; *pos++ = ext; pos = pt_encode_int(pos, packet->payload.ptw.payload, size); encoder->pos = pos; return (int) (pos - begin); } case ppt_unknown: case ppt_invalid: return -pte_bad_opc; } return -pte_bad_opc; }
the_stack_data/28262868.c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_atoi.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: wjohnson <[email protected]> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/04/10 22:54:36 by wjohnson #+# #+# */ /* Updated: 2017/04/11 00:10:31 by wjohnson ### ########.fr */ /* */ /* ************************************************************************** */ void ft_putchar(int c); int ft_isspace(char c) { if (c == ' ' || c == '\t') { return (1); } return (0); } int ft_isdigit(int n) { n = n - '0'; if (n >= 0 && n < 10) { return (1); } return (0); } int ft_atoi(char *str) { int sign; int result; //check for whitespace while (ft_isspace(*str)) { str++; } //check for signed if (*str == '-') { sign = 1; str++; } else { sign = 0; if (*str == '+') { str++; } } result = 0; while (ft_isdigit(*str)) { result = (result * 10) + (*str)-'0'; str++; } if (sign) { return (-result); } else { return (result); } }
the_stack_data/18888511.c
/* ****************************************************************************** DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2021 Copyright (C) 2021 Mahendra Sondagar <[email protected]> Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. You just DO WHAT THE FUCK YOU WANT TO. Coded: Mon, 7th Nov 2021 / 00:13 PM ****************************************************/ #include <stdio.h> #include <stdlib.h> #include <sys/ipc.h> #include <sys/shm.h> #include <errno.h> /* AIM: Shared memory example showcase */ int main(int argc, char *argv[]) { key_t key ; int shmid; /* Generating the key */ key= ftok("Myshared", 66); /* Generating the id */ shmid = shmget(key, 1024, 0666 | IPC_CREAT); if(shmid<0) { perror("shmid"); exit(EXIT_FAILURE); } char *str = (char *)shmat(shmid, (void *)0, 0); printf("Received data: %s\r\n", str); /* Detaching the shared memory */ shmdt(shmid); /* Destroying the shared memory */ shmctl(shmid, IPC_RMID,NULL); return 0; }
the_stack_data/45449091.c
// RUN: not %clang %s --hedonism -### 2>&1 | \ // RUN: FileCheck %s // RUN: not %clang %s --hell -### 2>&1 | \ // RUN: FileCheck %s --check-prefix=DID-YOU-MEAN // CHECK: error: unsupported option '--hedonism' // DID-YOU-MEAN: error: unsupported option '--hell', did you mean '--help'?
the_stack_data/200143029.c
/* * POK header * * The following file is a part of the POK project. Any modification should * made according to the POK licence. You CANNOT use this file or a part of * this file is this part of a file for your own project * * For more information on the POK licence, please see our LICENCE FILE * * Please follow the coding guidelines described in doc/CODING_GUIDELINES * * Copyright (c) 2007-2009 POK team * * Created by julien on Fri Jan 30 14:41:34 2009 */ /* s_tanhf.c -- float version of s_tanh.c. * Conversion to float by Ian Lance Taylor, Cygnus Support, [email protected]. */ /* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. * * Developed at SunPro, a Sun Microsystems, Inc. business. * Permission to use, copy, modify, and distribute this * software is freely granted, provided that this notice * is preserved. * ==================================================== */ #ifdef POK_NEEDS_LIBMATH #include <libm.h> #include "math_private.h" static const float one=1.0, two=2.0, tiny = 1.0e-30; float tanhf(float x) { float t,z; int32_t jx,ix; GET_FLOAT_WORD(jx,x); ix = jx&0x7fffffff; /* x is INF or NaN */ if(ix>=0x7f800000) { if (jx>=0) return one/x+one; /* tanh(+-inf)=+-1 */ else return one/x-one; /* tanh(NaN) = NaN */ } /* |x| < 22 */ if (ix < 0x41b00000) { /* |x|<22 */ if (ix<0x24000000) /* |x|<2**-55 */ return x*(one+x); /* tanh(small) = small */ if (ix>=0x3f800000) { /* |x|>=1 */ t = expm1f(two*fabsf(x)); z = one - two/(t+two); } else { t = expm1f(-two*fabsf(x)); z= -t/(t+two); } /* |x| > 22, return +-1 */ } else { z = one - tiny; /* raised inexact flag */ } return (jx>=0)? z: -z; } #endif
the_stack_data/134376.c
/* * thx: https://www.geeksforgeeks.org/g-fact-5/ * thx: https://denniskubes.com/2012/08/19/pointers-and-arrays-in-c/ */ #include <stdlib.h> int main(void) { // initialize an array of ints int numbers[5] = {1,2,3,4,5}; int numbers2[5] = {6,7,8,9,0}; int *ptr = numbers2; /* the following code won't compile */ // numbers = numbers2; // numbers = &numbers2; // numbers = ptr; return EXIT_SUCCESS; }
the_stack_data/113430.c
#include<stdio.h> int main(int argc, char const *argv[]) { int length, breadth; printf("Enter the value of length\n"); scanf("%d", &length); printf("Enter the value of breadth\n"); scanf("%d", &breadth); printf("The area of ypur rectangle is %d", length*breadth); return 0; }
the_stack_data/22403.c
int foo(void) { int f = 2, g = 0; int h = (g < 7) ^ (1 || (f = 1)); int j = (g < 7) ^ (0 && (f = 1)); return f + h + j; } int bar(void) { int i = 1, j = 1; if (13L && i) { i = 4; } if (0 || j) { j = 7; } return i + j; } int baz() { int i = 1, j = 1; j = (0 || (j + 1)); return i + j; } int main(void) { char a = 1, b = 2; int t1 = (a == 0 && (b = 0)); int t2 = a || 1 || (b = 1); return b + foo() + bar() + baz(); }
the_stack_data/92329258.c
#include <stdio.h> #include <stdlib.h> // readvector opens and reads the given file // The size of the vector should be stored in the parameter size // The values should be returned in a flat float array float* readvector(const char* filename, int *size) { FILE* file = fopen(filename, "r"); if (file == NULL) { printf("Cannot open file \"%s\"\n", filename); exit(1); } fscanf(file, "%d ", size); float* result = malloc(sizeof(float) * *size); for (int i=0; i < *size; i++) { float x; fscanf(file, " %f", &x); result[i] = x; } fclose(file); return result; } int main(int argc, char** argv) { if (argc != 2) { printf("usage: readvector %s\n", argv[1]); exit(0); } int size = 0; float* vector = readvector(argv[1], &size); for (int i=0; i < size; i++) { printf("%f\n", vector[i]); } free(vector); return 0; }
the_stack_data/143878.c
/* * Copyright (c) 2007 - 2015 Joseph Gaeddert * * 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. */ // // iirfilt_cccf_data_h3x64.c: autotest iirfilt data // #include <complex.h> float complex iirfilt_cccf_data_h3x64_b[] = { 0.054572462936 + 0.039649215181*_Complex_I, 0.041689651984 + 0.128307555581*_Complex_I, -0.020844825992 + 0.064153777791*_Complex_I}; float complex iirfilt_cccf_data_h3x64_a[] = { 0.809016994375 + 0.587785252292*_Complex_I, -0.353200399524 + -1.087039054939*_Complex_I, -0.127562709117 + 0.392597649806*_Complex_I}; float complex iirfilt_cccf_data_h3x64_x[] = { -0.024833213118 + -0.034917156419*_Complex_I, -0.203303753453 + -0.146194321825*_Complex_I, 0.046955837790 + -0.018522626941*_Complex_I, -0.009310945228 + -0.145839543251*_Complex_I, 0.050014713286 + 0.074118954232*_Complex_I, 0.053029015111 + 0.038309174053*_Complex_I, 0.024855918446 + -0.013616668881*_Complex_I, -0.075445314910 + -0.100119258919*_Complex_I, 0.160017817197 + 0.023949186601*_Complex_I, 0.146076212120 + -0.000269193014*_Complex_I, 0.015195370146 + 0.275825448022*_Complex_I, 0.071299735570 + 0.054576601750*_Complex_I, -0.143098150747 + 0.029176300561*_Complex_I, -0.029456081088 + -0.072086611744*_Complex_I, 0.068475191123 + -0.216689722106*_Complex_I, 0.076757256920 + 0.097275143829*_Complex_I, -0.043846185419 + 0.306249972124*_Complex_I, 0.070413973865 + 0.090585247522*_Complex_I, 0.132485779791 + -0.159268673808*_Complex_I, 0.026917161537 + -0.100640356329*_Complex_I, 0.007473659993 + 0.080379816333*_Complex_I, 0.190359743048 + 0.112433411463*_Complex_I, -0.120301668631 + 0.050439886600*_Complex_I, -0.046297800762 + -0.003443247054*_Complex_I, -0.124614723514 + 0.115573697342*_Complex_I, 0.145848137742 + -0.028451577663*_Complex_I, 0.150217608922 + 0.041411226796*_Complex_I, 0.065634804159 + -0.047306957256*_Complex_I, -0.082921695322 + -0.079112928494*_Complex_I, -0.145226550689 + -0.188234399475*_Complex_I, -0.034483517482 + 0.115199412906*_Complex_I, 0.011933371178 + -0.013196555096*_Complex_I, -0.135183164034 + -0.016707765823*_Complex_I, -0.023217606041 + 0.034147466698*_Complex_I, 0.048294051851 + -0.023691893478*_Complex_I, 0.032010168738 + -0.060275616633*_Complex_I, -0.145436488960 + -0.187315942943*_Complex_I, -0.087977813311 + 0.136955551173*_Complex_I, -0.124764798898 + 0.030020090717*_Complex_I, -0.085914119584 + 0.066553144151*_Complex_I, 0.080940796771 + 0.007884486399*_Complex_I, -0.073277212995 + 0.029723354716*_Complex_I, 0.218025609607 + -0.011507652078*_Complex_I, -0.050453154704 + 0.168205457912*_Complex_I, 0.065308138197 + 0.010673521587*_Complex_I, 0.164945191560 + 0.069669644982*_Complex_I, -0.019014062556 + -0.020454796529*_Complex_I, 0.064918556283 + -0.050548033336*_Complex_I, 0.028164657959 + -0.173995204773*_Complex_I, 0.122134013651 + 0.005095487421*_Complex_I, 0.234213744496 + -0.143695630868*_Complex_I, 0.084679105788 + -0.021311700717*_Complex_I, 0.054268742828 + 0.007308179887*_Complex_I, -0.029620954263 + 0.054909993996*_Complex_I, 0.019992503058 + -0.115385511675*_Complex_I, -0.064206101272 + -0.057135496497*_Complex_I, 0.102760385313 + 0.007278409932*_Complex_I, 0.177210934528 + 0.054290451135*_Complex_I, 0.128563865148 + 0.003219961582*_Complex_I, -0.083833350402 + 0.040801324808*_Complex_I, -0.080842077428 + 0.120550027178*_Complex_I, -0.019021541271 + 0.041759686472*_Complex_I, -0.115073955933 + -0.091807014377*_Complex_I, 0.153344859386 + -0.062742865142*_Complex_I}; float complex iirfilt_cccf_data_h3x64_y[] = { -0.001675131192 + -0.002355346350*_Complex_I, -0.013622046565 + -0.018945208542*_Complex_I, -0.006286044544 + -0.061360482408*_Complex_I, 0.040817629094 + -0.077423785655*_Complex_I, 0.082560403156 + -0.042905448043*_Complex_I, 0.081885166095 + 0.020646150389*_Complex_I, 0.035185788192 + 0.059385572466*_Complex_I, -0.012349534229 + 0.041702279147*_Complex_I, -0.008719427172 + -0.005108227398*_Complex_I, 0.043586624569 + -0.002694870087*_Complex_I, 0.060010371171 + 0.071790678150*_Complex_I, -0.011700201664 + 0.134289646346*_Complex_I, -0.104085781588 + 0.103901309521*_Complex_I, -0.133770658357 + 0.006298194510*_Complex_I, -0.071593140378 + -0.089829654416*_Complex_I, 0.047530468946 + -0.094499459711*_Complex_I, 0.094339040540 + 0.021353778886*_Complex_I, 0.000763487486 + 0.119530519765*_Complex_I, -0.094370685059 + 0.079578408854*_Complex_I, -0.069334619720 + -0.012623371571*_Complex_I, 0.012050086613 + -0.029603434811*_Complex_I, 0.049219627613 + 0.026131367418*_Complex_I, 0.013542931769 + 0.089200137012*_Complex_I, -0.066921684818 + 0.079213353516*_Complex_I, -0.100736964307 + 0.008675016473*_Complex_I, -0.073014776026 + -0.045716119068*_Complex_I, -0.002251024625 + -0.047215888024*_Complex_I, 0.043409846071 + 0.011329094890*_Complex_I, 0.020075927067 + 0.051751627220*_Complex_I, -0.025464006128 + 0.018170901171*_Complex_I, -0.017900643236 + -0.046047380472*_Complex_I, 0.021720291461 + -0.051218319397*_Complex_I, 0.023820600962 + -0.021299144521*_Complex_I, -0.000443310781 + -0.015435045664*_Complex_I, -0.005171097244 + -0.029938427283*_Complex_I, 0.015962947694 + -0.032614702790*_Complex_I, 0.026567768778 + -0.027656459980*_Complex_I, 0.025886386590 + -0.031773276552*_Complex_I, 0.011142820861 + -0.022130140814*_Complex_I, -0.023018410554 + -0.024004380806*_Complex_I, -0.028989134806 + -0.045608118967*_Complex_I, -0.005447370179 + -0.044390449128*_Complex_I, 0.016111369022 + -0.025494020513*_Complex_I, 0.033164181168 + 0.018349162452*_Complex_I, -0.002881749460 + 0.064999887863*_Complex_I, -0.037794707920 + 0.054120734400*_Complex_I, -0.033549552744 + 0.041209685622*_Complex_I, -0.029745345484 + 0.028385093658*_Complex_I, -0.012206946909 + 0.000426141907*_Complex_I, 0.033070597342 + -0.013052292197*_Complex_I, 0.081548142195 + 0.013614572710*_Complex_I, 0.101806391304 + 0.065450185198*_Complex_I, 0.073804512902 + 0.112077362053*_Complex_I, 0.012136514124 + 0.118696097982*_Complex_I, -0.039510405075 + 0.074133214086*_Complex_I, -0.038427157781 + 0.006482000625*_Complex_I, 0.006530434509 + -0.025726623154*_Complex_I, 0.055688677705 + 0.002152977720*_Complex_I, 0.064499041530 + 0.067061388496*_Complex_I, 0.016662206642 + 0.109004403882*_Complex_I, -0.055089624558 + 0.092364887087*_Complex_I, -0.096355781376 + 0.032987760948*_Complex_I, -0.090540548264 + -0.030202075604*_Complex_I, -0.036200313340 + -0.078861745571*_Complex_I};
the_stack_data/198581044.c
/** * https://www.spoj.com/PTIT/problems/BCFACT/ */ #include<stdio.h> long long factorial(long long number) { long long result = number; for (int i = 2; i <= number / 2; i ++) { result *= (i * (number + 1 - i)); } if (number % 2 != 0) { result *= (number /2 ) + 1; } return result; } int main () { long long number; while(number != 0){ scanf("%lli", &number); if (number != 0) { printf("%lli\n", factorial(number)); } } return 0; }
the_stack_data/15762923.c
#include <math.h> double solve_dp(double weights[], double profits[], unsigned short sets[], unsigned short num_items, unsigned short num_sets, unsigned short digits, short total_charge, double total_charge_diff, unsigned short solution[]) { unsigned long blowup = (unsigned long) pow(10.0, (double) digits); unsigned short k; unsigned short i; unsigned short j; unsigned long d; unsigned short offset = 0; unsigned long w[num_items]; // transform weights to non-negative integers double tc = (double) total_charge; double max_sum = 0.0; for (k = 0; k < num_sets; k ++) { double wmin = INFINITY; double wmax = -INFINITY; for (i = 0; i < sets[k]; i++) { if (weights[i + offset] < wmin) { wmin = weights[i + offset]; } if (weights[i + offset] > wmax) { wmax = weights[i + offset]; } } tc -= wmin; max_sum += wmax - wmin; for (i = 0; i < sets[k]; i++) { w[i + offset] = lround(blowup * (weights[i + offset] - wmin)); } offset += sets[k]; } // lower and upper capacity limits long upper_signed = lround(blowup * (tc + total_charge_diff)); long lower_signed = lround(blowup * fmax(tc - total_charge_diff, 0.0)); // check if feasible solutions may exist long reachable = lround(blowup * max_sum); if (upper_signed < 0 || lower_signed > reachable) { // sum of min weights over all sets is larger than the upper bound // or sum of max weights over all sets is smaller than the lower bound return -INFINITY; } // conversion to unsigned long is now safe unsigned long upper = (unsigned long) upper_signed; unsigned long lower = (unsigned long) lower_signed; // init DP and traceback tables double dp[upper + 1]; unsigned short tb[(upper + 1) * num_sets]; dp[0] = 0; for (d = 1; d <= upper; d++) { dp[d] = -INFINITY; } for (d = 0; d < (upper + 1) * num_sets; d++) { tb[d] = 0; } // DP double max_val; unsigned long max_idx = 0; offset = 0; // iterate over all sets for (k = 0; k < num_sets; k++) { // iterate over all capacities d = upper + 1; do { d--; // find max. profit with capacity i over all items j in set k max_val = -INFINITY; for (j = 0; j < sets[k]; j++) { if (d >= w[j + offset] && dp[d - w[j + offset]] + profits[j + offset] > max_val) { max_val = dp[d - w[j + offset]] + profits[j + offset]; max_idx = j; } } if (max_val > -INFINITY) { dp[d] = max_val; // copy old traceback indices for (i = 0; i < k; i++) { tb[(d * num_sets) + i] = tb[((d - w[max_idx + offset]) * num_sets) + i]; } // add new index to traceback tb[(d * num_sets) + k] = max_idx; } else { dp[d] = -INFINITY; } } while (d > 0l); offset += sets[k]; } // find max profit max_val = -INFINITY; unsigned long max_pos = 0; for (d = lower; d < upper+1; d++) { if (dp[d] > max_val) { max_val = dp[d]; max_pos = d; } } // copy solution if (max_val > -INFINITY) { for (k = 0; k < num_sets; k++) { solution[k] = tb[(max_pos * num_sets) + k]; } } return max_val; }
the_stack_data/179829842.c
#include<stdio.h> #include<unistd.h> #include<string.h> #include<stdlib.h> //Global Variables char * currdir = NULL; char * prevDir = NULL; //Function to store previously opened path char * storePreviousDirectory(char * dir){ char * previous = (char * )malloc(100*sizeof(char)); strcpy(previous, dir); return previous; } //Funtion to concat two strings by efficiently allocating required memory. char * concat(const char *s1, const char *s2) { char *result = malloc(strlen(s1) + strlen(s2) + 1); strcpy(result, s1); strcat(result, s2); return result; } //Changes the directory char * changeDir(char * args[]){ char * buff = (char *)malloc(100*sizeof(char)); //Buffer to send error message if the directory doesn't exist. char * temp = (char *)malloc(100*sizeof(char)); //Temporarily stores value of current directory. strcpy(temp, currdir); temp = concat(temp, "/"); temp = concat(temp, args[1]); //If directory doesn't exist, exit the function with error message if(chdir(temp) == -1 && args[1] != "-"){ snprintf(buff, 100, "The directory %s doesn't exists", args[1]); return buff; } //If user just types 'cd', go to home directory if(args[1] == NULL){ currdir = "/home/ubuntu"; return currdir; } //If '-' return previous directory if(args[1] == "-"){ return prevDir; }else{ prevDir = storePreviousDirectory(currdir); } currdir = temp; //If the given path is valid, update the currdir path. return currdir; } //Tester main (need to initialize global variables) void main(){ currdir = (char *)malloc(100*sizeof(char)); currdir = "/home/ubuntu"; prevDir = (char *)malloc(100*sizeof(char)); strcpy(prevDir, currdir); }
the_stack_data/464763.c
/* This testcase is part of GDB, the GNU debugger. Copyright 2018-2021 Free Software Foundation, Inc. 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 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This file contains a library that can be preloaded into GDB on Linux using the LD_PRELOAD technique. The library intercepts calls to WAITPID and SIGSUSPEND in order to simulate the behaviour of a heavily loaded kernel. When GDB wants to stop all threads in an inferior each thread is sent a SIGSTOP, GDB will then wait for the signal to be received by the thread with a waitpid call. If the kernel is slow in either delivering the signal, or making the result available to the waitpid call then GDB will enter a sigsuspend call in order to wait for the inferior threads to change state, this is signalled to GDB with a SIGCHLD. A bug in GDB meant that in some cases we would deadlock during this process. This was rarely seen as the kernel is usually quick at delivering signals and making the results available to waitpid, so quick that GDB would gather the statuses from all inferior threads in the original pass. The idea in this library is to rate limit calls to waitpid (where pid is -1 and the WNOHANG option is set) so that only 1 per second can return an answer. Any additional calls will report that no threads are currently ready. This should match the behaviour we see on a slow kernel. However, given that usually when using this library, the kernel does have the waitpid result ready this means that the kernel will never send GDB a SIGCHLD. This means that when GDB enters sigsuspend it will block forever. Alternatively, if GDB enters its polling loop the lack of SIGCHLD means that we will never see an event on the child threads. To resolve these problems the library intercepts calls to sigsuspend and forces the call to exit if there is a pending waitpid result. Also, when we know that there's a waitpid result that we've ignored, we create a new thread which, after a short delay, will send GDB a SIGCHLD. */ #define _GNU_SOURCE #include <sys/types.h> #include <sys/wait.h> #include <sys/time.h> #include <stdlib.h> #include <stdio.h> #include <dlfcn.h> #include <string.h> #include <stdarg.h> #include <signal.h> #include <errno.h> #include <pthread.h> #include <unistd.h> /* Logging. */ static void log_msg (const char *fmt, ...) { #ifdef LOGGING va_list ap; va_start (ap, fmt); vfprintf (stderr, fmt, ap); va_end (ap); #endif /* LOGGING */ } /* Error handling, message and exit. */ static void error (const char *fmt, ...) { va_list ap; va_start (ap, fmt); vfprintf (stderr, fmt, ap); va_end (ap); exit (EXIT_FAILURE); } /* Cache the result of a waitpid call that has not been reported back to GDB yet. We only ever cache a single result. Once we have a result cached then later calls to waitpid with the WNOHANG option will return a result of 0. */ static struct { /* Flag to indicate when we have a result cached. */ int cached_p; /* The cached result fields from a waitpid call. */ pid_t pid; int wstatus; } cached_wait_status; /* Lock to hold when modifying SIGNAL_THREAD_ACTIVE_P. */ static pthread_mutex_t thread_creation_lock_obj = PTHREAD_MUTEX_INITIALIZER; #define thread_creation_lock (&thread_creation_lock_obj) /* This flag is only modified while holding the THREAD_CREATION_LOCK mutex. When this flag is true then there is a signal thread alive that will be sending a SIGCHLD at some point in the future. */ static int signal_thread_active_p; /* When we last allowed a waitpid to complete. */ static struct timeval last_waitpid_time = { 0, 0 }; /* The number of seconds that must elapse between calls to waitpid where the pid is -1 and the WNOHANG option is set. If calls occur faster than this then we force a result of 0 to be returned from waitpid. */ #define WAITPID_MIN_TIME (1) /* Return true (non-zero) if we should skip this call to waitpid, or false (zero) if this waitpid call should be handled with a call to the "real" waitpid function. Allows 1 waitpid call per second. */ static int should_skip_waitpid (void) { struct timeval *tv = &last_waitpid_time; if (tv->tv_sec == 0) { if (gettimeofday (tv, NULL) < 0) error ("error: gettimeofday failed\n"); return 0; /* Don't skip. */ } else { struct timeval new_tv; if (gettimeofday (&new_tv, NULL) < 0) error ("error: gettimeofday failed\n"); if ((new_tv.tv_sec - tv->tv_sec) < WAITPID_MIN_TIME) return 1; /* Skip. */ *tv = new_tv; } /* Don't skip. */ return 0; } /* Perform a real waitpid call. */ static pid_t real_waitpid (pid_t pid, int *wstatus, int options) { typedef pid_t (*fptr_t) (pid_t, int *, int); static fptr_t real_func = NULL; if (real_func == NULL) { real_func = dlsym (RTLD_NEXT, "waitpid"); if (real_func == NULL) error ("error: failed to find real waitpid\n"); } return (*real_func) (pid, wstatus, options); } /* Thread worker created when we cache a waitpid result. Delays for a short period of time and then sends SIGCHLD to the GDB process. This should trigger GDB to call waitpid again, at which point we will make the cached waitpid result available. */ static void* send_sigchld_thread (void *arg) { /* Delay one second longer than WAITPID_MIN_TIME so that there can be no chance that a call to SHOULD_SKIP_WAITPID will return true once the SIGCHLD is delivered and handled. */ sleep (WAITPID_MIN_TIME + 1); pthread_mutex_lock (thread_creation_lock); signal_thread_active_p = 0; if (cached_wait_status.cached_p) { log_msg ("signal-thread: sending SIGCHLD\n"); kill (getpid (), SIGCHLD); } pthread_mutex_unlock (thread_creation_lock); return NULL; } /* The waitpid entry point function. */ pid_t waitpid (pid_t pid, int *wstatus, int options) { log_msg ("waitpid: waitpid (%d, %p, 0x%x)\n", pid, wstatus, options); if ((options & WNOHANG) != 0 && pid == -1 && should_skip_waitpid ()) { if (!cached_wait_status.cached_p) { /* Do the waitpid call, but hold the result back. */ pid_t tmp_pid; int tmp_wstatus; tmp_pid = real_waitpid (-1, &tmp_wstatus, options); if (tmp_pid > 0) { log_msg ("waitpid: delaying waitpid result (pid = %d)\n", tmp_pid); /* Cache the result. */ cached_wait_status.pid = tmp_pid; cached_wait_status.wstatus = tmp_wstatus; cached_wait_status.cached_p = 1; /* Is there a thread around that will be sending a signal in the near future? The prevents us from creating one thread per call to waitpid when the calls occur in a sequence. */ pthread_mutex_lock (thread_creation_lock); if (!signal_thread_active_p) { sigset_t old_ss, new_ss; pthread_t thread_id; pthread_attr_t attr; /* Create the new signal sending thread in detached state. This means that the thread doesn't need to be pthread_join'ed. Which is fine as there's no result we care about. */ pthread_attr_init (&attr); pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED); /* Ensure the signal sending thread has all signals blocked. We don't want any signals to GDB to be handled in that thread. */ sigfillset (&new_ss); sigprocmask (SIG_BLOCK, &new_ss, &old_ss); log_msg ("waitpid: spawn thread to signal us\n"); if (pthread_create (&thread_id, &attr, send_sigchld_thread, NULL) != 0) error ("error: pthread_create failed\n"); signal_thread_active_p = 1; sigprocmask (SIG_SETMASK, &old_ss, NULL); pthread_attr_destroy (&attr); } pthread_mutex_unlock (thread_creation_lock); } } log_msg ("waitpid: skipping\n"); return 0; } /* If we have a cached result that is a suitable reply for this call to waitpid then send that cached result back now. */ if (cached_wait_status.cached_p && (pid == -1 || pid == cached_wait_status.pid)) { pid_t pid; pid = cached_wait_status.pid; log_msg ("waitpid: return cached result (%d)\n", pid); *wstatus = cached_wait_status.wstatus; cached_wait_status.cached_p = 0; return pid; } log_msg ("waitpid: real waitpid call\n"); return real_waitpid (pid, wstatus, options); } /* Perform a real sigsuspend call. */ static int real_sigsuspend (const sigset_t *mask) { typedef int (*fptr_t) (const sigset_t *); static fptr_t real_func = NULL; if (real_func == NULL) { real_func = dlsym (RTLD_NEXT, "sigsuspend"); if (real_func == NULL) error ("error: failed to find real sigsuspend\n"); } return (*real_func) (mask); } /* The sigsuspend entry point function. */ int sigsuspend (const sigset_t *mask) { log_msg ("sigsuspend: sigsuspend (0x%p)\n", ((void *) mask)); /* If SIGCHLD is _not_ in MASK, and is therefore deliverable, then if we have a pending wait status pretend that a signal arrived. We will have a thread alive that is going to deliver a signal but doing this will boost the speed as we don't have to wait for a signal. If the signal ends up being delivered then it should be harmless, we'll just perform an additional waitpid call. */ if (!sigismember (mask, SIGCHLD)) { if (cached_wait_status.cached_p) { log_msg ("sigsuspend: interrupt for cached waitstatus\n"); last_waitpid_time.tv_sec = 0; last_waitpid_time.tv_usec = 0; errno = EINTR; return -1; } } log_msg ("sigsuspend: real sigsuspend call\n"); return real_sigsuspend (mask); }
the_stack_data/181392087.c
/* Verify that simple indirect calls are inlined even without early inlining.. */ /* { dg-do compile } */ /* { dg-options "-O3 -c -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */ extern void non_existent(int); int __attribute__ ((noinline,noclone)) get_input(void) { return 1; } static void hooray () { non_existent (1); } static void hip2 (void (*g)()) { non_existent (2); g (); } static void hip1 (void (*f)(void (*)()), void (*g)()) { non_existent (2); f (g); } int main (int argc, int *argv[]) { int i; for (i = 0; i < get_input (); i++) hip1 (hip2, hooray); return 0; } /* { dg-final { scan-ipa-dump "hooray\[^\\n\]*inline copy in main" "inline" } } */ /* { dg-final { scan-ipa-dump "hip2\[^\\n\]*inline copy in main" "inline" } } */
the_stack_data/119347.c
/* Lista de Exercicios 02 Exercicio 01 Aluno: Murilo Carvalho */ #include <stdio.h> int main(){ /* Criar um algoritmo que leia 2 números. Caso o primeiro número lido seja maior que o segundo, imprima na tela o primeiro número menos o segundo, caso contrário mostre a soma dos dois números. */ int a,b; a = 0; b = 0; printf("========== Exercicio 1 =========="); printf("\n"); printf("Digite dois numeros: A = "); scanf("%d", &a); printf("B = "); scanf("%d", &b); if(a>b){ printf("A - B: %d - %d = %d", a,b, (a-b)); }else{ printf("A + B: %d + %d = %d", b,a, (a+b)); } }
the_stack_data/418892.c
int mySqrt(int x) { long start,end,mid; start = 0; end = x; mid = 0; while(start <= end){ mid = (start + end) / 2; if(mid * mid == x || (mid * mid < x && (mid + 1) * (mid + 1) > x)) break; if(mid * mid < x) start = mid+1; else end = mid-1; } return mid; }
the_stack_data/242331591.c
// WARNING in __cfg80211_ibss_joined // https://syzkaller.appspot.com/bug?id=2da49cf28199dad792b6 // status:0 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include <arpa/inet.h> #include <dirent.h> #include <endian.h> #include <errno.h> #include <fcntl.h> #include <net/if.h> #include <netinet/in.h> #include <signal.h> #include <stdarg.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> #include <sys/prctl.h> #include <sys/socket.h> #include <sys/stat.h> #include <sys/syscall.h> #include <sys/types.h> #include <sys/wait.h> #include <time.h> #include <unistd.h> #include <linux/genetlink.h> #include <linux/if_addr.h> #include <linux/if_ether.h> #include <linux/if_link.h> #include <linux/in6.h> #include <linux/neighbour.h> #include <linux/net.h> #include <linux/netlink.h> #include <linux/nl80211.h> #include <linux/rtnetlink.h> #include <linux/veth.h> static void sleep_ms(uint64_t ms) { usleep(ms * 1000); } static uint64_t current_time_ms(void) { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts)) exit(1); return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000; } static bool write_file(const char* file, const char* what, ...) { char buf[1024]; va_list args; va_start(args, what); vsnprintf(buf, sizeof(buf), what, args); va_end(args); buf[sizeof(buf) - 1] = 0; int len = strlen(buf); int fd = open(file, O_WRONLY | O_CLOEXEC); if (fd == -1) return false; if (write(fd, buf, len) != len) { int err = errno; close(fd); errno = err; return false; } close(fd); return true; } struct nlmsg { char* pos; int nesting; struct nlattr* nested[8]; char buf[4096]; }; static void netlink_init(struct nlmsg* nlmsg, int typ, int flags, const void* data, int size) { memset(nlmsg, 0, sizeof(*nlmsg)); struct nlmsghdr* hdr = (struct nlmsghdr*)nlmsg->buf; hdr->nlmsg_type = typ; hdr->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | flags; memcpy(hdr + 1, data, size); nlmsg->pos = (char*)(hdr + 1) + NLMSG_ALIGN(size); } static void netlink_attr(struct nlmsg* nlmsg, int typ, const void* data, int size) { struct nlattr* attr = (struct nlattr*)nlmsg->pos; attr->nla_len = sizeof(*attr) + size; attr->nla_type = typ; if (size > 0) memcpy(attr + 1, data, size); nlmsg->pos += NLMSG_ALIGN(attr->nla_len); } static int netlink_send_ext(struct nlmsg* nlmsg, int sock, uint16_t reply_type, int* reply_len) { if (nlmsg->pos > nlmsg->buf + sizeof(nlmsg->buf) || nlmsg->nesting) exit(1); struct nlmsghdr* hdr = (struct nlmsghdr*)nlmsg->buf; hdr->nlmsg_len = nlmsg->pos - nlmsg->buf; struct sockaddr_nl addr; memset(&addr, 0, sizeof(addr)); addr.nl_family = AF_NETLINK; unsigned n = sendto(sock, nlmsg->buf, hdr->nlmsg_len, 0, (struct sockaddr*)&addr, sizeof(addr)); if (n != hdr->nlmsg_len) exit(1); n = recv(sock, nlmsg->buf, sizeof(nlmsg->buf), 0); if (reply_len) *reply_len = 0; if (hdr->nlmsg_type == NLMSG_DONE) return 0; if (n < sizeof(struct nlmsghdr)) exit(1); if (reply_len && hdr->nlmsg_type == reply_type) { *reply_len = n; return 0; } if (n < sizeof(struct nlmsghdr) + sizeof(struct nlmsgerr)) exit(1); if (hdr->nlmsg_type != NLMSG_ERROR) exit(1); return ((struct nlmsgerr*)(hdr + 1))->error; } static int netlink_send(struct nlmsg* nlmsg, int sock) { return netlink_send_ext(nlmsg, sock, 0, NULL); } static int netlink_query_family_id(struct nlmsg* nlmsg, int sock, const char* family_name) { struct genlmsghdr genlhdr; memset(&genlhdr, 0, sizeof(genlhdr)); genlhdr.cmd = CTRL_CMD_GETFAMILY; netlink_init(nlmsg, GENL_ID_CTRL, 0, &genlhdr, sizeof(genlhdr)); netlink_attr(nlmsg, CTRL_ATTR_FAMILY_NAME, family_name, strnlen(family_name, GENL_NAMSIZ - 1) + 1); int n = 0; int err = netlink_send_ext(nlmsg, sock, GENL_ID_CTRL, &n); if (err < 0) { return -1; } uint16_t id = 0; struct nlattr* attr = (struct nlattr*)(nlmsg->buf + NLMSG_HDRLEN + NLMSG_ALIGN(sizeof(genlhdr))); for (; (char*)attr < nlmsg->buf + n; attr = (struct nlattr*)((char*)attr + NLMSG_ALIGN(attr->nla_len))) { if (attr->nla_type == CTRL_ATTR_FAMILY_ID) { id = *(uint16_t*)(attr + 1); break; } } if (!id) { return -1; } recv(sock, nlmsg->buf, sizeof(nlmsg->buf), 0); return id; } #define WIFI_INITIAL_DEVICE_COUNT 2 #define WIFI_MAC_BASE \ { \ 0x08, 0x02, 0x11, 0x00, 0x00, 0x00 \ } #define WIFI_IBSS_BSSID \ { \ 0x50, 0x50, 0x50, 0x50, 0x50, 0x50 \ } #define WIFI_IBSS_SSID \ { \ 0x10, 0x10, 0x10, 0x10, 0x10, 0x10 \ } #define WIFI_DEFAULT_FREQUENCY 2412 #define WIFI_DEFAULT_SIGNAL 0 #define WIFI_DEFAULT_RX_RATE 1 #define HWSIM_CMD_REGISTER 1 #define HWSIM_CMD_FRAME 2 #define HWSIM_CMD_NEW_RADIO 4 #define HWSIM_ATTR_SUPPORT_P2P_DEVICE 14 #define HWSIM_ATTR_PERM_ADDR 22 #define IF_OPER_UP 6 struct join_ibss_props { int wiphy_freq; bool wiphy_freq_fixed; uint8_t* mac; uint8_t* ssid; int ssid_len; }; static int set_interface_state(const char* interface_name, int on) { struct ifreq ifr; int sock = socket(AF_INET, SOCK_DGRAM, 0); if (sock < 0) { return -1; } memset(&ifr, 0, sizeof(ifr)); strcpy(ifr.ifr_name, interface_name); int ret = ioctl(sock, SIOCGIFFLAGS, &ifr); if (ret < 0) { close(sock); return -1; } if (on) ifr.ifr_flags |= IFF_UP; else ifr.ifr_flags &= ~IFF_UP; ret = ioctl(sock, SIOCSIFFLAGS, &ifr); close(sock); if (ret < 0) { return -1; } return 0; } static int nl80211_set_interface(struct nlmsg* nlmsg, int sock, int nl80211_family, uint32_t ifindex, uint32_t iftype) { struct genlmsghdr genlhdr; memset(&genlhdr, 0, sizeof(genlhdr)); genlhdr.cmd = NL80211_CMD_SET_INTERFACE; netlink_init(nlmsg, nl80211_family, 0, &genlhdr, sizeof(genlhdr)); netlink_attr(nlmsg, NL80211_ATTR_IFINDEX, &ifindex, sizeof(ifindex)); netlink_attr(nlmsg, NL80211_ATTR_IFTYPE, &iftype, sizeof(iftype)); int err = netlink_send(nlmsg, sock); if (err < 0) { return -1; } return 0; } static int nl80211_join_ibss(struct nlmsg* nlmsg, int sock, int nl80211_family, uint32_t ifindex, struct join_ibss_props* props) { struct genlmsghdr genlhdr; memset(&genlhdr, 0, sizeof(genlhdr)); genlhdr.cmd = NL80211_CMD_JOIN_IBSS; netlink_init(nlmsg, nl80211_family, 0, &genlhdr, sizeof(genlhdr)); netlink_attr(nlmsg, NL80211_ATTR_IFINDEX, &ifindex, sizeof(ifindex)); netlink_attr(nlmsg, NL80211_ATTR_SSID, props->ssid, props->ssid_len); netlink_attr(nlmsg, NL80211_ATTR_WIPHY_FREQ, &(props->wiphy_freq), sizeof(props->wiphy_freq)); if (props->mac) netlink_attr(nlmsg, NL80211_ATTR_MAC, props->mac, ETH_ALEN); if (props->wiphy_freq_fixed) netlink_attr(nlmsg, NL80211_ATTR_FREQ_FIXED, NULL, 0); int err = netlink_send(nlmsg, sock); if (err < 0) { return -1; } return 0; } static int get_ifla_operstate(struct nlmsg* nlmsg, int ifindex) { struct ifinfomsg info; memset(&info, 0, sizeof(info)); info.ifi_family = AF_UNSPEC; info.ifi_index = ifindex; int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); if (sock == -1) { return -1; } netlink_init(nlmsg, RTM_GETLINK, 0, &info, sizeof(info)); int n; int err = netlink_send_ext(nlmsg, sock, RTM_NEWLINK, &n); close(sock); if (err) { return -1; } struct rtattr* attr = IFLA_RTA(NLMSG_DATA(nlmsg->buf)); for (; RTA_OK(attr, n); attr = RTA_NEXT(attr, n)) { if (attr->rta_type == IFLA_OPERSTATE) return *((int32_t*)RTA_DATA(attr)); } return -1; } static int await_ifla_operstate(struct nlmsg* nlmsg, char* interface, int operstate) { int ifindex = if_nametoindex(interface); while (true) { usleep(1000); int ret = get_ifla_operstate(nlmsg, ifindex); if (ret < 0) return ret; if (ret == operstate) return 0; } return 0; } static int nl80211_setup_ibss_interface(struct nlmsg* nlmsg, int sock, int nl80211_family_id, char* interface, struct join_ibss_props* ibss_props) { int ifindex = if_nametoindex(interface); if (ifindex == 0) { return -1; } int ret = nl80211_set_interface(nlmsg, sock, nl80211_family_id, ifindex, NL80211_IFTYPE_ADHOC); if (ret < 0) { return -1; } ret = set_interface_state(interface, 1); if (ret < 0) { return -1; } ret = nl80211_join_ibss(nlmsg, sock, nl80211_family_id, ifindex, ibss_props); if (ret < 0) { return -1; } return 0; } static void kill_and_wait(int pid, int* status) { kill(-pid, SIGKILL); kill(pid, SIGKILL); for (int i = 0; i < 100; i++) { if (waitpid(-1, status, WNOHANG | __WALL) == pid) return; usleep(1000); } DIR* dir = opendir("/sys/fs/fuse/connections"); if (dir) { for (;;) { struct dirent* ent = readdir(dir); if (!ent) break; if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) continue; char abort[300]; snprintf(abort, sizeof(abort), "/sys/fs/fuse/connections/%s/abort", ent->d_name); int fd = open(abort, O_WRONLY); if (fd == -1) { continue; } if (write(fd, abort, 1) < 0) { } close(fd); } closedir(dir); } else { } while (waitpid(-1, status, __WALL) != pid) { } } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); write_file("/proc/self/oom_score_adj", "1000"); } #define WIFI_MAX_SSID_LEN 32 #define WIFI_JOIN_IBSS_NO_SCAN 0 #define WIFI_JOIN_IBSS_BG_SCAN 1 #define WIFI_JOIN_IBSS_BG_NO_SCAN 2 static long syz_80211_join_ibss(volatile long a0, volatile long a1, volatile long a2, volatile long a3) { char* interface = (char*)a0; uint8_t* ssid = (uint8_t*)a1; int ssid_len = (int)a2; int mode = (int)a3; struct nlmsg tmp_msg; uint8_t bssid[ETH_ALEN] = WIFI_IBSS_BSSID; if (ssid_len < 0 || ssid_len > WIFI_MAX_SSID_LEN) { return -1; } if (mode < 0 || mode > WIFI_JOIN_IBSS_BG_NO_SCAN) { return -1; } int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); if (sock < 0) { return -1; } int nl80211_family_id = netlink_query_family_id(&tmp_msg, sock, "nl80211"); struct join_ibss_props ibss_props = { .wiphy_freq = WIFI_DEFAULT_FREQUENCY, .wiphy_freq_fixed = (mode == WIFI_JOIN_IBSS_NO_SCAN || mode == WIFI_JOIN_IBSS_BG_NO_SCAN), .mac = bssid, .ssid = ssid, .ssid_len = ssid_len}; int ret = nl80211_setup_ibss_interface(&tmp_msg, sock, nl80211_family_id, interface, &ibss_props); close(sock); if (ret < 0) { return -1; } if (mode == WIFI_JOIN_IBSS_NO_SCAN) { ret = await_ifla_operstate(&tmp_msg, interface, IF_OPER_UP); if (ret < 0) { return -1; } } return 0; } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { int iter = 0; for (;; iter++) { int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { setup_test(); execute_one(); exit(0); } int status = 0; uint64_t start = current_time_ms(); for (;;) { if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; sleep_ms(1); if (current_time_ms() - start < 5 * 1000) continue; kill_and_wait(pid, &status); break; } } } uint64_t r[1] = {0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; syscall(__NR_sendmsg, -1, 0ul, 0x8000ul); syscall(__NR_ioctl, -1, 0xab00, -1); res = syscall(__NR_socket, 0x10ul, 3ul, 0); if (res != -1) r[0] = res; *(uint64_t*)0x20000140 = 0; *(uint32_t*)0x20000148 = 0; *(uint64_t*)0x20000150 = 0x20000200; *(uint64_t*)0x20000200 = 0x20000540; memcpy((void*)0x20000540, "\x28\x00\x00\x00\x10\x00\x01\x08\x00\x00\x00\x00" "\x00\x00\x5c\x54\x00\x00\x00\x00", 20); *(uint32_t*)0x20000554 = 0; memcpy((void*)0x20000558, "\x00\x00\x00\x00\xd7\xfa\xf0\x00\x08\x00\x1b", 11); *(uint64_t*)0x20000208 = 0x28; *(uint64_t*)0x20000158 = 1; *(uint64_t*)0x20000160 = 0; *(uint64_t*)0x20000168 = 0; *(uint32_t*)0x20000170 = 0; syscall(__NR_sendmsg, r[0], 0x20000140ul, 0ul); memcpy((void*)0x20000380, "wlan0\000", 6); *(uint8_t*)0x20000700 = 1; *(uint8_t*)0x20000701 = 1; *(uint8_t*)0x20000702 = 1; *(uint8_t*)0x20000703 = 1; *(uint8_t*)0x20000704 = 1; *(uint8_t*)0x20000705 = 1; syz_80211_join_ibss(0x20000380, 0x20000700, 6, 0); } int main(void) { syscall(__NR_mmap, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); loop(); return 0; }
the_stack_data/159516293.c
#include <stdio.h> void main() { printf("hello world \n"); }
the_stack_data/242330619.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> int main(int argc, char* argv[]) { char *nume_sursa = NULL; FILE *fs; int cnt, i = 0, first = 0, iterator = 1, noption = 0, nargs = 0, coption = 0, cargs = 0, countn = 0, countc = 0, plusc = 0, plusn = 0, plus = 0; if( argc < 1 ) { fprintf(stderr,"Ati uitat sa specificati numele fisierului\n"); exit(1); } while(iterator < argc) { if( strcmp(argv[iterator],"-n") == 0) { noption = 1; nargs = atoi(argv[iterator+1]); if(argv[iterator+1][0] == '+')plusn = 1; iterator++; first = 1; } else if( strcmp(argv[iterator],"-c") == 0) { coption = 1; cargs = atoi(argv[iterator+1]); if(argv[iterator+1][0] == '+')plusc = 1; iterator++; first = 2; } else if(!nume_sursa)nume_sursa = argv[iterator]; iterator++; } if(noption + coption == 2) { if(first == 1)coption = 0; else if(first == 2)noption = 0; } else if(noption + coption == 0) { noption = 1; nargs = 10; } if( (fs = fopen(nume_sursa,"r")) == NULL ) { perror("Eroare la deschiderea fisierului de prelucrat"); exit(2); } fseek(fs,0,SEEK_END); cnt = ftell(fs); int in = 0; if((coption == 1 && plusc == 0) || (noption == 1 && plusn == 0)) while( i < cnt ) { i++; fseek(fs,-i,SEEK_END); if((countn > nargs) || (countc > cargs)) { in = 1; int curr = i-2; while( curr > 0 ) { fseek(fs,-curr,SEEK_END); printf("%c",fgetc(fs)); curr--; } break; } if(noption == 1 && fgetc(fs) == '\n' && countn <= nargs)countn++; if(coption == 1 && countc <= cargs)countc++; } else { int count = 0; int ch; while((count < nargs || count < cargs) && i < cnt) { fseek(fs,i,SEEK_SET); i++; ch=fgetc(fs); if(ch == '\n' && noption == 1)count++; else if(coption == 1)count++; } while(i < cnt) { fseek(fs,i,SEEK_SET); i++; ch=fgetc(fs); printf("%c",ch); } } if(in == 0 && (plusc == 0 && plusn == 0)) { while( cnt > 0 ) { fseek(fs,-cnt,SEEK_END); printf("%c",fgetc(fs)); cnt--; } } fclose(fs); return 0; }
the_stack_data/37238.c
typedef int ptrdiff_t; typedef unsigned int size_t; typedef unsigned int wchar_t; typedef struct { long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); long double __max_align_ld __attribute__((__aligned__(__alignof__(long double)))); } max_align_t; typedef signed char __int8_t; typedef unsigned char __uint8_t; typedef short int __int16_t; typedef short unsigned int __uint16_t; typedef long int __int32_t; typedef long unsigned int __uint32_t; typedef long long int __int64_t; typedef long long unsigned int __uint64_t; typedef signed char __int_least8_t; typedef unsigned char __uint_least8_t; typedef short int __int_least16_t; typedef short unsigned int __uint_least16_t; typedef long int __int_least32_t; typedef long unsigned int __uint_least32_t; typedef long long int __int_least64_t; typedef long long unsigned int __uint_least64_t; typedef int __intptr_t; typedef unsigned int __uintptr_t; typedef __int8_t int8_t ; typedef __uint8_t uint8_t ; typedef __int16_t int16_t ; typedef __uint16_t uint16_t ; typedef __int32_t int32_t ; typedef __uint32_t uint32_t ; typedef __int64_t int64_t ; typedef __uint64_t uint64_t ; typedef __intptr_t intptr_t; typedef __uintptr_t uintptr_t; typedef __int_least8_t int_least8_t; typedef __uint_least8_t uint_least8_t; typedef __int_least16_t int_least16_t; typedef __uint_least16_t uint_least16_t; typedef __int_least32_t int_least32_t; typedef __uint_least32_t uint_least32_t; typedef __int_least64_t int_least64_t; typedef __uint_least64_t uint_least64_t; typedef int int_fast8_t; typedef unsigned int uint_fast8_t; typedef int int_fast16_t; typedef unsigned int uint_fast16_t; typedef int int_fast32_t; typedef unsigned int uint_fast32_t; typedef long long int int_fast64_t; typedef long long unsigned int uint_fast64_t; typedef long long int intmax_t; typedef long long unsigned int uintmax_t; typedef int _LOCK_T; typedef int _LOCK_RECURSIVE_T; typedef long __blkcnt_t; typedef long __blksize_t; typedef __uint64_t __fsblkcnt_t; typedef __uint32_t __fsfilcnt_t; typedef long _off_t; typedef int __pid_t; typedef short __dev_t; typedef unsigned short __uid_t; typedef unsigned short __gid_t; typedef __uint32_t __id_t; typedef unsigned short __ino_t; typedef __uint32_t __mode_t; __extension__ typedef long long _off64_t; typedef _off_t __off_t; typedef _off64_t __loff_t; typedef long __key_t; typedef long _fpos_t; typedef unsigned int __size_t; typedef signed int _ssize_t; typedef _ssize_t __ssize_t; typedef unsigned int wint_t; typedef struct { int __count; union { wint_t __wch; unsigned char __wchb[4]; } __value; } _mbstate_t; typedef _LOCK_RECURSIVE_T _flock_t; typedef void *_iconv_t; typedef unsigned long __clock_t; typedef long __time_t; typedef unsigned long __clockid_t; typedef unsigned long __timer_t; typedef __uint8_t __sa_family_t; typedef __uint32_t __socklen_t; typedef unsigned short __nlink_t; typedef long __suseconds_t; typedef unsigned long __useconds_t; typedef char * __va_list; typedef unsigned long __ULong; struct _reent; struct __locale_t; struct _Bigint { struct _Bigint *_next; int _k, _maxwds, _sign, _wds; __ULong _x[1]; }; struct __tm { int __tm_sec; int __tm_min; int __tm_hour; int __tm_mday; int __tm_mon; int __tm_year; int __tm_wday; int __tm_yday; int __tm_isdst; }; struct _on_exit_args { void * _fnargs[32]; void * _dso_handle[32]; __ULong _fntypes; __ULong _is_cxa; }; struct _atexit { struct _atexit *_next; int _ind; void (*_fns[32])(void); struct _on_exit_args _on_exit_args; }; struct __sbuf { unsigned char *_base; int _size; }; struct __sFILE { unsigned char *_p; int _r; int _w; short _flags; short _file; struct __sbuf _bf; int _lbfsize; void * _cookie; int (* _read) (struct _reent *, void *, char *, int) ; int (* _write) (struct _reent *, void *, const char *, int) ; _fpos_t (* _seek) (struct _reent *, void *, _fpos_t, int); int (* _close) (struct _reent *, void *); struct __sbuf _ub; unsigned char *_up; int _ur; unsigned char _ubuf[3]; unsigned char _nbuf[1]; struct __sbuf _lb; int _blksize; _off_t _offset; struct _reent *_data; _flock_t _lock; _mbstate_t _mbstate; int _flags2; }; typedef struct __sFILE __FILE; struct _glue { struct _glue *_next; int _niobs; __FILE *_iobs; }; struct _rand48 { unsigned short _seed[3]; unsigned short _mult[3]; unsigned short _add; }; struct _reent { int _errno; __FILE *_stdin, *_stdout, *_stderr; int _inc; char _emergency[25]; int _unspecified_locale_info; struct __locale_t *_locale; int __sdidinit; void (* __cleanup) (struct _reent *); struct _Bigint *_result; int _result_k; struct _Bigint *_p5s; struct _Bigint **_freelist; int _cvtlen; char *_cvtbuf; union { struct { unsigned int _unused_rand; char * _strtok_last; char _asctime_buf[26]; struct __tm _localtime_buf; int _gamma_signgam; __extension__ unsigned long long _rand_next; struct _rand48 _r48; _mbstate_t _mblen_state; _mbstate_t _mbtowc_state; _mbstate_t _wctomb_state; char _l64a_buf[8]; char _signal_buf[24]; int _getdate_err; _mbstate_t _mbrlen_state; _mbstate_t _mbrtowc_state; _mbstate_t _mbsrtowcs_state; _mbstate_t _wcrtomb_state; _mbstate_t _wcsrtombs_state; int _h_errno; } _reent; struct { unsigned char * _nextf[30]; unsigned int _nmalloc[30]; } _unused; } _new; struct _atexit *_atexit; struct _atexit _atexit0; void (**(_sig_func))(int); struct _glue __sglue; __FILE __sf[3]; }; extern struct _reent *_impure_ptr ; extern struct _reent *const _global_impure_ptr ; void _reclaim_reent (struct _reent *); struct __locale_t; typedef struct __locale_t *locale_t; void * memchr (const void *, int, size_t); int memcmp (const void *, const void *, size_t); void * memcpy (void * restrict, const void * restrict, size_t); void * memmove (void *, const void *, size_t); void * memset (void *, int, size_t); char *strcat (char *restrict, const char *restrict); char *strchr (const char *, int); int strcmp (const char *, const char *); int strcoll (const char *, const char *); char *strcpy (char *restrict, const char *restrict); size_t strcspn (const char *, const char *); char *strerror (int); size_t strlen (const char *); char *strncat (char *restrict, const char *restrict, size_t); int strncmp (const char *, const char *, size_t); char *strncpy (char *restrict, const char *restrict, size_t); char *strpbrk (const char *, const char *); char *strrchr (const char *, int); size_t strspn (const char *, const char *); char *strstr (const char *, const char *); char *strtok (char *restrict, const char *restrict); size_t strxfrm (char *restrict, const char *restrict, size_t); int strcoll_l (const char *, const char *, locale_t); char *strerror_l (int, locale_t); size_t strxfrm_l (char *restrict, const char *restrict, size_t, locale_t); char *strtok_r (char *restrict, const char *restrict, char **restrict); int bcmp (const void *, const void *, size_t); void bcopy (const void *, void *, size_t); void bzero (void *, size_t); void explicit_bzero (void *, size_t); int timingsafe_bcmp (const void *, const void *, size_t); int timingsafe_memcmp (const void *, const void *, size_t); int ffs (int); char *index (const char *, int); void * memccpy (void * restrict, const void * restrict, int, size_t); char *rindex (const char *, int); char *stpcpy (char *restrict, const char *restrict); char *stpncpy (char *restrict, const char *restrict, size_t); int strcasecmp (const char *, const char *); char *strdup (const char *); char *_strdup_r (struct _reent *, const char *); char *strndup (const char *, size_t); char *_strndup_r (struct _reent *, const char *, size_t); int strerror_r (int, char *, size_t) __asm__ ("" "__xpg_strerror_r") ; char * _strerror_r (struct _reent *, int, int, int *); size_t strlcat (char *, const char *, size_t); size_t strlcpy (char *, const char *, size_t); int strncasecmp (const char *, const char *, size_t); size_t strnlen (const char *, size_t); char *strsep (char **, const char *); char *strlwr (char *); char *strupr (char *); char *strsignal (int __signo); typedef char name_t; typedef uint32_t sem_count_t; typedef uint32_t cpu_stack_t; typedef uint32_t hr_timer_t; typedef uint32_t lr_timer_t; typedef uint32_t mutex_nested_t; typedef uint8_t suspend_nested_t; typedef uint64_t ctx_switch_t; typedef uint32_t cpu_cpsr_t; typedef enum { RHINO_SUCCESS = 0u, RHINO_SYS_FATAL_ERR, RHINO_SYS_SP_ERR, RHINO_RUNNING, RHINO_STOPPED, RHINO_INV_PARAM, RHINO_NULL_PTR, RHINO_INV_ALIGN, RHINO_KOBJ_TYPE_ERR, RHINO_KOBJ_DEL_ERR, RHINO_KOBJ_DOCKER_EXIST, RHINO_KOBJ_BLK, RHINO_KOBJ_SET_FULL, RHINO_NOTIFY_FUNC_EXIST, RHINO_MM_POOL_SIZE_ERR = 100u, RHINO_MM_ALLOC_SIZE_ERR, RHINO_MM_FREE_ADDR_ERR, RHINO_MM_CORRUPT_ERR, RHINO_DYN_MEM_PROC_ERR, RHINO_NO_MEM, RHINO_RINGBUF_FULL, RHINO_RINGBUF_EMPTY, RHINO_SCHED_DISABLE = 200u, RHINO_SCHED_ALREADY_ENABLED, RHINO_SCHED_LOCK_COUNT_OVF, RHINO_INV_SCHED_WAY, RHINO_TASK_INV_STACK_SIZE = 300u, RHINO_TASK_NOT_SUSPENDED, RHINO_TASK_DEL_NOT_ALLOWED, RHINO_TASK_SUSPEND_NOT_ALLOWED, RHINO_SUSPENDED_COUNT_OVF, RHINO_BEYOND_MAX_PRI, RHINO_PRI_CHG_NOT_ALLOWED, RHINO_INV_TASK_STATE, RHINO_IDLE_TASK_EXIST, RHINO_NO_PEND_WAIT = 400u, RHINO_BLK_ABORT, RHINO_BLK_TIMEOUT, RHINO_BLK_DEL, RHINO_BLK_INV_STATE, RHINO_BLK_POOL_SIZE_ERR, RHINO_TIMER_STATE_INV = 500u, RHINO_NO_THIS_EVENT_OPT = 600u, RHINO_BUF_QUEUE_INV_SIZE = 700u, RHINO_BUF_QUEUE_SIZE_ZERO, RHINO_BUF_QUEUE_FULL, RHINO_BUF_QUEUE_MSG_SIZE_OVERFLOW, RHINO_QUEUE_FULL, RHINO_QUEUE_NOT_FULL, RHINO_SEM_OVF = 800u, RHINO_SEM_TASK_WAITING, RHINO_MUTEX_NOT_RELEASED_BY_OWNER = 900u, RHINO_MUTEX_OWNER_NESTED, RHINO_MUTEX_NESTED_OVF, RHINO_NOT_CALLED_BY_INTRPT = 1000u, RHINO_TRY_AGAIN, RHINO_WORKQUEUE_EXIST = 1100u, RHINO_WORKQUEUE_NOT_EXIST, RHINO_WORKQUEUE_WORK_EXIST, RHINO_WORKQUEUE_BUSY, RHINO_WORKQUEUE_WORK_RUNNING, RHINO_TASK_STACK_OVF = 1200u, RHINO_INTRPT_STACK_OVF } kstat_t; typedef void (*krhino_err_proc_t)(kstat_t err); extern krhino_err_proc_t g_err_proc; typedef struct { cpu_cpsr_t cpsr; } kspinlock_t; typedef uint64_t sys_time_t; typedef int64_t sys_time_i_t; typedef uint64_t idle_count_t; typedef uint64_t tick_t; typedef int64_t tick_i_t; kstat_t krhino_init(void); kstat_t krhino_start(void); kstat_t krhino_intrpt_enter(void); void krhino_intrpt_exit(void); void krhino_intrpt_stack_ovf_check(void); tick_t krhino_next_sleep_ticks_get(void); size_t krhino_global_space_get(void); uint32_t krhino_version_get(void); static inline void krhino_bitmap_set(uint32_t *bitmap, int32_t nr) { bitmap[((nr) >> 5U)] |= (1UL << (32U - 1U - ((nr) & 0X0000001F))); } static inline void krhino_bitmap_clear(uint32_t *bitmap, int32_t nr) { bitmap[((nr) >> 5U)] &= ~(1UL << (32U - 1U - ((nr) & 0X0000001F))); } static inline uint8_t krhino_clz32(uint32_t x) { uint8_t n = 0; if (x == 0) { return 32; } if ((x & 0XFFFF0000) == 0) { x <<= 16; n += 16; } if ((x & 0XFF000000) == 0) { x <<= 8; n += 8; } if ((x & 0XF0000000) == 0) { x <<= 4; n += 4; } if ((x & 0XC0000000) == 0) { x <<= 2; n += 2; } if ((x & 0X80000000) == 0) { n += 1; } return n; } static inline uint8_t krhino_ctz32(uint32_t x) { uint8_t n = 0; if (x == 0) { return 32; } if ((x & 0X0000FFFF) == 0) { x >>= 16; n += 16; } if ((x & 0X000000FF) == 0) { x >>= 8; n += 8; } if ((x & 0X0000000F) == 0) { x >>= 4; n += 4; } if ((x & 0X00000003) == 0) { x >>= 2; n += 2; } if ((x & 0X00000001) == 0) { n += 1; } return n; } static inline int32_t krhino_find_first_bit(uint32_t *bitmap) { int32_t nr = 0; uint32_t tmp = 0; while (*bitmap == 0UL) { nr += 32U; bitmap++; } tmp = *bitmap; if (!(tmp & 0XFFFF0000)) { tmp <<= 16; nr += 16; } if (!(tmp & 0XFF000000)) { tmp <<= 8; nr += 8; } if (!(tmp & 0XF0000000)) { tmp <<= 4; nr += 4; } if (!(tmp & 0XC0000000)) { tmp <<= 2; nr += 2; } if (!(tmp & 0X80000000)) { nr += 1; } return nr; } typedef struct klist_s { struct klist_s *next; struct klist_s *prev; } klist_t; static inline void klist_init(klist_t *list_head) { list_head->next = list_head; list_head->prev = list_head; } static inline uint8_t is_klist_empty(klist_t *list) { return (list->next == list); } static inline void klist_insert(klist_t *head, klist_t *element) { element->prev = head->prev; element->next = head; head->prev->next = element; head->prev = element; } static inline void klist_add(klist_t *head, klist_t *element) { element->prev = head; element->next = head->next; head->next->prev = element; head->next = element; } static inline void klist_rm(klist_t *element) { element->prev->next = element->next; element->next->prev = element->prev; } static inline void klist_rm_init(klist_t *element) { element->prev->next = element->next; element->next->prev = element->prev; element->next = element->prev = element; } typedef enum { BLK_POLICY_PRI = 0u, BLK_POLICY_FIFO } blk_policy_t; typedef enum { BLK_FINISH = 0, BLK_ABORT, BLK_TIMEOUT, BLK_DEL, BLK_INVALID } blk_state_t; typedef enum { RHINO_OBJ_TYPE_NONE = 0, RHINO_SEM_OBJ_TYPE, RHINO_MUTEX_OBJ_TYPE, RHINO_QUEUE_OBJ_TYPE, RHINO_BUF_QUEUE_OBJ_TYPE, RHINO_TIMER_OBJ_TYPE, RHINO_EVENT_OBJ_TYPE, RHINO_MM_OBJ_TYPE } kobj_type_t; typedef struct blk_obj { klist_t blk_list; const name_t *name; blk_policy_t blk_policy; kobj_type_t obj_type; } blk_obj_t; typedef struct { klist_t task_head; klist_t mutex_head; klist_t mblkpool_head; klist_t sem_head; klist_t queue_head; klist_t event_head; klist_t buf_queue_head; } kobj_list_t; typedef struct { klist_t *cur_list_item[62]; uint32_t task_bit_map[((62 + 31) / 32)]; uint8_t highest_pri; } runqueue_t; kstat_t krhino_sched_disable(void); kstat_t krhino_sched_enable(void); typedef enum { K_SEED, K_RDY, K_PEND, K_SUSPENDED, K_PEND_SUSPENDED, K_SLEEP, K_SLEEP_SUSPENDED, K_DELETED, } task_stat_t; typedef struct { void *task_stack; const name_t *task_name; void *user_info[2]; cpu_stack_t *task_stack_base; uint32_t stack_size; klist_t task_list; suspend_nested_t suspend_count; struct mutex_s *mutex_list; klist_t task_stats_item; klist_t tick_list; tick_t tick_match; tick_t tick_remain; klist_t *tick_head; void *msg; size_t bq_msg_size; task_stat_t task_state; blk_state_t blk_state; blk_obj_t *blk_obj; struct sem_s *task_sem_obj; uint32_t time_slice; uint32_t time_total; uint32_t pend_flags; void *pend_info; uint8_t pend_option; uint8_t sched_policy; uint8_t cpu_num; uint8_t prio; uint8_t b_prio; uint8_t mm_alloc_flag; } ktask_t; typedef void (*task_entry_t)(void *arg); kstat_t krhino_task_create(ktask_t *task, const name_t *name, void *arg, uint8_t prio, tick_t ticks, cpu_stack_t *stack_buf, size_t stack_size, task_entry_t entry, uint8_t autorun); kstat_t krhino_task_dyn_create(ktask_t **task, const name_t *name, void *arg, uint8_t pri, tick_t ticks, size_t stack, task_entry_t entry, uint8_t autorun); kstat_t krhino_task_del(ktask_t *task); kstat_t krhino_task_dyn_del(ktask_t *task); kstat_t krhino_task_sleep(tick_t dly); kstat_t krhino_task_yield(void); ktask_t *krhino_cur_task_get(void); kstat_t krhino_task_suspend(ktask_t *task); kstat_t krhino_task_resume(ktask_t *task); kstat_t krhino_task_stack_min_free(ktask_t *task, size_t *free); kstat_t krhino_task_stack_cur_free(ktask_t *task, size_t *free); kstat_t krhino_task_pri_change(ktask_t *task, uint8_t pri, uint8_t *old_pri); kstat_t krhino_task_wait_abort(ktask_t *task); kstat_t krhino_task_time_slice_set(ktask_t *task, size_t slice); kstat_t krhino_sched_policy_set(ktask_t *task, uint8_t policy); kstat_t krhino_sched_policy_get(ktask_t *task, uint8_t *policy); kstat_t krhino_task_info_set(ktask_t *task, size_t idx, void *info); kstat_t krhino_task_info_get(ktask_t *task, size_t idx, void **info); void krhino_task_deathbed(void); typedef struct { uint8_t *buf; uint8_t *end; uint8_t *head; uint8_t *tail; size_t freesize; size_t type; size_t blk_size; } k_ringbuf_t; typedef struct { void **queue_start; size_t size; size_t cur_num; size_t peak_num; } msg_q_t; typedef struct { msg_q_t msg_q; klist_t *pend_entry; } msg_info_t; typedef struct queue_s { blk_obj_t blk_obj; k_ringbuf_t ringbuf; msg_q_t msg_q; klist_t queue_item; uint8_t mm_alloc_flag; } kqueue_t; kstat_t krhino_queue_create(kqueue_t *queue, const name_t *name, void **start, size_t msg_num); kstat_t krhino_queue_del(kqueue_t *queue); kstat_t krhino_queue_dyn_create(kqueue_t **queue, const name_t *name, size_t msg_num); kstat_t krhino_queue_dyn_del(kqueue_t *queue); kstat_t krhino_queue_back_send(kqueue_t *queue, void *msg); kstat_t krhino_queue_all_send(kqueue_t *queue, void *msg); kstat_t krhino_queue_recv(kqueue_t *queue, tick_t ticks, void **msg); kstat_t krhino_queue_is_full(kqueue_t *queue); kstat_t krhino_queue_flush(kqueue_t *queue); kstat_t krhino_queue_info_get(kqueue_t *queue, msg_info_t *info); typedef struct { blk_obj_t blk_obj; void *buf; k_ringbuf_t ringbuf; size_t max_msg_size; size_t cur_num; size_t peak_num; size_t min_free_buf_size; klist_t buf_queue_item; uint8_t mm_alloc_flag; } kbuf_queue_t; typedef struct { size_t buf_size; size_t max_msg_size; size_t cur_num; size_t peak_num; size_t free_buf_size; size_t min_free_buf_size; } kbuf_queue_info_t; kstat_t krhino_buf_queue_create(kbuf_queue_t *queue, const name_t *name, void *buf, size_t size, size_t max_msg); kstat_t krhino_fix_buf_queue_create(kbuf_queue_t *queue, const name_t *name, void *buf, size_t msg_size, size_t msg_num); kstat_t krhino_buf_queue_del(kbuf_queue_t *queue); kstat_t krhino_buf_queue_dyn_create(kbuf_queue_t **queue, const name_t *name, size_t size, size_t max_msg); kstat_t krhino_buf_queue_dyn_del(kbuf_queue_t *queue); kstat_t krhino_buf_queue_send(kbuf_queue_t *queue, void *msg, size_t size); kstat_t krhino_buf_queue_recv(kbuf_queue_t *queue, tick_t ticks, void *msg, size_t *size); kstat_t krhino_buf_queue_flush(kbuf_queue_t *queue); kstat_t krhino_buf_queue_info_get(kbuf_queue_t *queue, kbuf_queue_info_t *info); typedef struct sem_s { blk_obj_t blk_obj; sem_count_t count; sem_count_t peak_count; klist_t sem_item; uint8_t mm_alloc_flag; } ksem_t; kstat_t krhino_sem_create(ksem_t *sem, const name_t *name, sem_count_t count); kstat_t krhino_sem_del(ksem_t *sem); kstat_t krhino_sem_dyn_create(ksem_t **sem, const name_t *name, sem_count_t count); kstat_t krhino_sem_dyn_del(ksem_t *sem); kstat_t krhino_sem_give(ksem_t *sem); kstat_t krhino_sem_give_all(ksem_t *sem); kstat_t krhino_sem_take(ksem_t *sem, tick_t ticks); kstat_t krhino_sem_count_set(ksem_t *sem, sem_count_t count); kstat_t krhino_sem_count_get(ksem_t *sem, sem_count_t *count); kstat_t krhino_task_sem_create(ktask_t *task, ksem_t *sem, const name_t *name, size_t count); kstat_t krhino_task_sem_del(ktask_t *task); kstat_t krhino_task_sem_give(ktask_t *task); kstat_t krhino_task_sem_take(tick_t ticks); kstat_t krhino_task_sem_count_set(ktask_t *task, sem_count_t count); kstat_t krhino_task_sem_count_get(ktask_t *task, sem_count_t *count); typedef struct mutex_s { blk_obj_t blk_obj; ktask_t *mutex_task; struct mutex_s *mutex_list; mutex_nested_t owner_nested; klist_t mutex_item; uint8_t mm_alloc_flag; } kmutex_t; kstat_t krhino_mutex_create(kmutex_t *mutex, const name_t *name); kstat_t krhino_mutex_del(kmutex_t *mutex); kstat_t krhino_mutex_dyn_create(kmutex_t **mutex, const name_t *name); kstat_t krhino_mutex_dyn_del(kmutex_t *mutex); kstat_t krhino_mutex_lock(kmutex_t *mutex, tick_t ticks); kstat_t krhino_mutex_unlock(kmutex_t *mutex); enum { TIMER_CMD_CB = 0u, TIMER_CMD_START, TIMER_CMD_STOP, TIMER_CMD_CHG, TIMER_ARG_CHG, TIMER_ARG_CHG_AUTO, TIMER_CMD_DEL, TIMER_CMD_DYN_DEL }; typedef void (*timer_cb_t)(void *timer, void *arg); typedef struct { klist_t timer_list; klist_t *to_head; const name_t *name; timer_cb_t cb; void *timer_cb_arg; sys_time_t match; sys_time_t remain; sys_time_t init_count; sys_time_t round_ticks; void *priv; kobj_type_t obj_type; uint8_t timer_state; uint8_t mm_alloc_flag; } ktimer_t; typedef struct { ktimer_t *timer; uint8_t cb_num; sys_time_t first; union { sys_time_t round; void *arg; } u; } k_timer_queue_cb; typedef enum { TIMER_DEACTIVE = 0u, TIMER_ACTIVE } k_timer_state_t; kstat_t krhino_timer_create(ktimer_t *timer, const name_t *name, timer_cb_t cb, sys_time_t first, sys_time_t round, void *arg, uint8_t auto_run); kstat_t krhino_timer_del(ktimer_t *timer); kstat_t krhino_timer_dyn_create(ktimer_t **timer, const name_t *name, timer_cb_t cb, sys_time_t first, sys_time_t round, void *arg, uint8_t auto_run); kstat_t krhino_timer_dyn_del(ktimer_t *timer); kstat_t krhino_timer_start(ktimer_t *timer); kstat_t krhino_timer_stop(ktimer_t *timer); kstat_t krhino_timer_change(ktimer_t *timer, sys_time_t first, sys_time_t round); kstat_t krhino_timer_arg_change_auto(ktimer_t *timer, void *arg); kstat_t krhino_timer_arg_change(ktimer_t *timer, void *arg); void krhino_tick_proc(void); sys_time_t krhino_sys_time_get(void); sys_time_t krhino_sys_tick_get(void); tick_t krhino_ms_to_ticks(sys_time_t ms); sys_time_t krhino_ticks_to_ms(tick_t ticks); typedef struct { blk_obj_t blk_obj; uint32_t flags; klist_t event_item; uint8_t mm_alloc_flag; } kevent_t; kstat_t krhino_event_create(kevent_t *event, const name_t *name, uint32_t flags); kstat_t krhino_event_del(kevent_t *event); kstat_t krhino_event_dyn_create(kevent_t **event, const name_t *name, uint32_t flags); kstat_t krhino_event_dyn_del(kevent_t *event); kstat_t krhino_event_get(kevent_t *event, uint32_t flags, uint8_t opt, uint32_t *actl_flags, tick_t ticks); kstat_t krhino_event_set(kevent_t *event, uint32_t flags, uint8_t opt); void kobj_list_init(void); void krhino_stack_ovf_check(void); typedef struct { const name_t *pool_name; void *pool_end; void *pool_start; size_t blk_size; size_t blk_avail; size_t blk_whole; uint8_t *avail_list; kspinlock_t blk_lock; klist_t mblkpool_stats_item; } mblk_pool_t; kstat_t krhino_mblk_pool_init(mblk_pool_t *pool, const name_t *name, void *pool_start, size_t blk_size, size_t pool_size); kstat_t krhino_mblk_alloc(mblk_pool_t *pool, void **blk); kstat_t krhino_mblk_free(mblk_pool_t *pool, void *blk); typedef struct { uint8_t *start; size_t len; } k_mm_region_t; typedef struct free_ptr_struct { struct k_mm_list_struct *prev; struct k_mm_list_struct *next; } free_ptr_t; typedef struct k_mm_list_struct { struct k_mm_list_struct *prev; size_t buf_size; union { struct free_ptr_struct free_ptr; uint8_t buffer[1]; } mbinfo; } k_mm_list_t; typedef struct k_mm_region_info_struct { k_mm_list_t *end; struct k_mm_region_info_struct *next; } k_mm_region_info_t; typedef struct { kspinlock_t mm_lock; k_mm_region_info_t *regioninfo; void *fix_pool; size_t used_size; size_t maxused_size; size_t free_size; size_t alloc_times[(19 - 6 + 2)]; uint32_t free_bitmap; k_mm_list_t *freelist[(19 - 6 + 2)]; } k_mm_head; kstat_t krhino_init_mm_head(k_mm_head **ppmmhead, void *addr, size_t len ); kstat_t krhino_deinit_mm_head(k_mm_head *mmhead); kstat_t krhino_add_mm_region(k_mm_head *mmhead, void *addr, size_t len); void *k_mm_alloc(k_mm_head *mmhead, size_t size); void k_mm_free(k_mm_head *mmhead, void *ptr); void *k_mm_realloc(k_mm_head *mmhead, void *oldmem, size_t new_size); void *krhino_mm_alloc(size_t size); void krhino_mm_free(void *ptr); void *krhino_mm_realloc(void *oldmem, size_t newsize); typedef void (*work_handle_t)(void *arg); typedef struct { klist_t work_node; work_handle_t handle; void *arg; tick_t dly; ktimer_t *timer; void *wq; uint8_t work_exit; } kwork_t; typedef struct { klist_t workqueue_node; klist_t work_list; kwork_t *work_current; const name_t *name; ktask_t worker; ksem_t sem; } kworkqueue_t; kstat_t krhino_workqueue_create(kworkqueue_t *workqueue, const name_t *name, uint8_t pri, cpu_stack_t *stack_buf, size_t stack_size); kstat_t krhino_work_init(kwork_t *work, work_handle_t handle, void *arg, tick_t dly); kstat_t krhino_work_run(kworkqueue_t *workqueue, kwork_t *work); kstat_t krhino_work_sched(kwork_t *work); kstat_t krhino_work_cancel(kwork_t *work); extern kstat_t g_sys_stat; extern uint8_t g_idle_task_spawned[1]; extern runqueue_t g_ready_queue; extern uint8_t g_sched_lock[1]; extern uint8_t g_intrpt_nested_level[1]; extern ktask_t *g_preferred_ready_task[1]; extern ktask_t *g_active_task[1]; extern ktask_t g_idle_task[1]; extern idle_count_t g_idle_count[1]; extern cpu_stack_t g_idle_task_stack[1][200]; extern tick_t g_tick_count; extern klist_t g_tick_head; extern kobj_list_t g_kobj_list; extern klist_t g_timer_head; extern sys_time_t g_timer_count; extern ktask_t g_timer_task; extern cpu_stack_t g_timer_task_stack[300]; extern kbuf_queue_t g_timer_queue; extern k_timer_queue_cb timer_queue_cb[20]; extern ksem_t g_res_sem; extern klist_t g_res_list; extern ktask_t g_dyn_task; extern cpu_stack_t g_dyn_task_stack[256]; extern klist_t g_workqueue_list_head; extern kmutex_t g_workqueue_mutex; extern kworkqueue_t g_workqueue_default; extern cpu_stack_t g_workqueue_stack[768]; extern k_mm_head *g_kmm_head; typedef struct { size_t cnt; void *res[4]; klist_t res_list; } res_free_t; ktask_t *preferred_cpu_ready_task_get(runqueue_t *rq, uint8_t cpu_num); void core_sched(void); void runqueue_init(runqueue_t *rq); void ready_list_add(runqueue_t *rq, ktask_t *task); void ready_list_add_head(runqueue_t *rq, ktask_t *task); void ready_list_add_tail(runqueue_t *rq, ktask_t *task); void ready_list_rm(runqueue_t *rq, ktask_t *task); void ready_list_head_to_tail(runqueue_t *rq, ktask_t *task); void time_slice_update(void); void timer_task_sched(void); void pend_list_reorder(ktask_t *task); void pend_task_wakeup(ktask_t *task); void pend_to_blk_obj(blk_obj_t *blk_obj, ktask_t *task, tick_t timeout); void pend_task_rm(ktask_t *task); kstat_t pend_state_end_proc(ktask_t *task); void idle_task(void *p_arg); void idle_count_set(idle_count_t value); idle_count_t idle_count_get(void); void tick_list_init(void); void tick_task_start(void); void tick_list_rm(ktask_t *task); void tick_list_insert(ktask_t *task, tick_t time); void tick_list_update(tick_i_t ticks); uint8_t mutex_pri_limit(ktask_t *tcb, uint8_t pri); void mutex_task_pri_reset(ktask_t *tcb); uint8_t mutex_pri_look(ktask_t *tcb, kmutex_t *mutex_rel); kstat_t task_pri_change(ktask_t *task, uint8_t new_pri); void k_err_proc(kstat_t err); void ktimer_init(void); void intrpt_disable_measure_start(void); void intrpt_disable_measure_stop(void); void dyn_mem_proc_task_start(void); void cpu_usage_stats_start(void); kstat_t ringbuf_init(k_ringbuf_t *p_ringbuf, void *buf, size_t len, size_t type, size_t block_size); kstat_t ringbuf_reset(k_ringbuf_t *p_ringbuf); kstat_t ringbuf_push(k_ringbuf_t *p_ringbuf, void *data, size_t len); kstat_t ringbuf_head_push(k_ringbuf_t *p_ringbuf, void *data, size_t len); kstat_t ringbuf_pop(k_ringbuf_t *p_ringbuf, void *pdata, size_t *plen); uint8_t ringbuf_is_full(k_ringbuf_t *p_ringbuf); uint8_t ringbuf_is_empty(k_ringbuf_t *p_ringbuf); void workqueue_init(void); void k_mm_init(void); void soc_err_proc(kstat_t err); size_t soc_get_cur_sp(void); size_t cpu_intrpt_save(void); void cpu_intrpt_restore(size_t cpsr); void cpu_intrpt_switch(void); void cpu_task_switch(void); void cpu_first_task_start(void); void *cpu_task_stack_init(cpu_stack_t *base, size_t size, void *arg, task_entry_t entry); static inline uint8_t cpu_cur_get(void) { return 0; } void tick_list_init(void) { klist_init(&g_tick_head); } static inline void tick_list_pri_insert(klist_t *head, ktask_t *task) { tick_t val; klist_t *q; klist_t *list_start; klist_t *list_end; ktask_t *task_iter_temp; list_start = list_end = head; val = task->tick_remain; for (q = list_start->next; q != list_end; q = q->next) { task_iter_temp = ((ktask_t *)((uint8_t *)(q) - (size_t)(&((ktask_t *)0)->tick_list))); if ((task_iter_temp->tick_match - g_tick_count) > val) { break; } } klist_insert(q, &task->tick_list); } void tick_list_insert(ktask_t *task, tick_t time) { klist_t *tick_head_ptr; if (time > 0u) { task->tick_match = g_tick_count + time; task->tick_remain = time; tick_head_ptr = &g_tick_head; tick_list_pri_insert(tick_head_ptr, task); task->tick_head = tick_head_ptr; } } void tick_list_rm(ktask_t *task) { klist_t *tick_head_ptr = task->tick_head; if (tick_head_ptr != ((void *)0) ) { klist_rm(&task->tick_list); task->tick_head = ((void *)0) ; } } void tick_list_update(tick_i_t ticks) { size_t cpsr; klist_t *tick_head_ptr; ktask_t *p_tcb; klist_t *iter; klist_t *iter_temp; tick_i_t delta; do { { cpsr = cpu_intrpt_save(); }; } while (0); g_tick_count += ticks; tick_head_ptr = &g_tick_head; iter = tick_head_ptr->next; while (1u) { if (iter != tick_head_ptr) { iter_temp = iter->next; p_tcb = ((ktask_t *)((uint8_t *)(iter) - (size_t)(&((ktask_t *)0)->tick_list))); delta = (tick_i_t)p_tcb->tick_match - (tick_i_t)g_tick_count; if (delta <= 0) { switch (p_tcb->task_state) { case K_SLEEP: p_tcb->blk_state = BLK_FINISH; p_tcb->task_state = K_RDY; tick_list_rm(p_tcb); ready_list_add(&g_ready_queue, p_tcb); break; case K_PEND: tick_list_rm(p_tcb); klist_rm(&p_tcb->task_list); ready_list_add(&g_ready_queue, p_tcb); p_tcb->blk_state = BLK_TIMEOUT; p_tcb->task_state = K_RDY; mutex_task_pri_reset(p_tcb); p_tcb->blk_obj = ((void *)0) ; break; case K_PEND_SUSPENDED: tick_list_rm(p_tcb); klist_rm(&p_tcb->task_list); p_tcb->blk_state = BLK_TIMEOUT; p_tcb->task_state = K_SUSPENDED; mutex_task_pri_reset(p_tcb); p_tcb->blk_obj = ((void *)0) ; break; case K_SLEEP_SUSPENDED: p_tcb->task_state = K_SUSPENDED; p_tcb->blk_state = BLK_FINISH; tick_list_rm(p_tcb); break; default: k_err_proc(RHINO_SYS_FATAL_ERR); break; } iter = iter_temp; } else { break; } } else { break; } } do { { cpu_intrpt_restore(cpsr); }; } while (0); }
the_stack_data/630082.c
/* * libc/stdlib/strtof.c */ #include <ctype.h> #include <errno.h> #include <limits.h> #include <stdlib.h> /* * Convert string to float */ float strtof(const char * nptr, char ** endptr) { return (float)strtod(nptr, endptr); }
the_stack_data/1186658.c
// A granja Frangotech possui um controle automatizado de cada frango da sua produção. No pé direito do frango há um anel com um chip de identificação; no pé esquerdo são dois anéis para indicar o tipo de alimento que ele deve consumir. Sabendo que o anel com chip custa R$4,00 e o anel de alimento custa R$3,50. faça um algoritmo para calcular o gasto total da granja para marcar todos os seus frangos. #include <stdio.h> #include <stdlib.h> int main() { system("cls"); int f, r; printf("Custo chip granja\n"); printf("\nInsira o numero de frangos: "); scanf("%i", &f); r = (f * 7) + (f * 4); printf("\nO valor a ser gasto eh de R$ %i,00 reais \n\n", r); printf("\n\n"); return 0; }
the_stack_data/97012175.c
/*Exercise 4 - Functions Implement the three functions minimum(), maximum() and multiply() below the main() function. Do not change the code given in the main() function when you are implementing your solution.*/ #include <stdio.h> //function declaration int maximum( int x, int y); int minimum( int x, int y); int multiply( int x, int y); int main() { int no1, no2; printf("Enter a value for no 1 : "); scanf("%d", &no1); printf("Enter a value for no 2 : "); scanf("%d", &no2); printf("%d ", minimum(no1, no2)); printf("%d ", maximum(no1, no2)); printf("%d ", multiply(no1, no2)); return 0; } //function implementation int minimum( int x, int y) //finding the minimum { if( x < y) return x; else return y; } int maximum( int x, int y)//finding the maximum { if( x < y) return y; else return x; } int multiply( int x, int y)//multiplication { return x*y; }
the_stack_data/1070227.c
#line 2 "gpp_lexer.c" #line 4 "gpp_lexer.c" #define YY_INT_ALIGNED short int /* A lexical scanner generated by flex */ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 6 #define YY_FLEX_SUBMINOR_VERSION 0 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif /* First, we deal with platform-specific or compiler-specific issues. */ /* begin standard C headers. */ #include <stdio.h> #include <string.h> #include <errno.h> #include <stdlib.h> /* end standard C headers. */ /* flex integer type definitions */ #ifndef FLEXINT_H #define FLEXINT_H /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, * if you want the limit (max/min) macros for int types. */ #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS 1 #endif #include <inttypes.h> typedef int8_t flex_int8_t; typedef uint8_t flex_uint8_t; typedef int16_t flex_int16_t; typedef uint16_t flex_uint16_t; typedef int32_t flex_int32_t; typedef uint32_t flex_uint32_t; #else typedef signed char flex_int8_t; typedef short int flex_int16_t; typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; /* Limits of integral types. */ #ifndef INT8_MIN #define INT8_MIN (-128) #endif #ifndef INT16_MIN #define INT16_MIN (-32767-1) #endif #ifndef INT32_MIN #define INT32_MIN (-2147483647-1) #endif #ifndef INT8_MAX #define INT8_MAX (127) #endif #ifndef INT16_MAX #define INT16_MAX (32767) #endif #ifndef INT32_MAX #define INT32_MAX (2147483647) #endif #ifndef UINT8_MAX #define UINT8_MAX (255U) #endif #ifndef UINT16_MAX #define UINT16_MAX (65535U) #endif #ifndef UINT32_MAX #define UINT32_MAX (4294967295U) #endif #endif /* ! C99 */ #endif /* ! FLEXINT_H */ #ifdef __cplusplus /* The "const" storage-class-modifier is valid. */ #define YY_USE_CONST #else /* ! __cplusplus */ /* C99 requires __STDC__ to be defined as 1. */ #if defined (__STDC__) #define YY_USE_CONST #endif /* defined (__STDC__) */ #endif /* ! __cplusplus */ #ifdef YY_USE_CONST #define yyconst const #else #define yyconst #endif /* Returned upon end-of-file. */ #define YY_NULL 0 /* Promotes a possibly negative, possibly signed char to an unsigned * integer for use as an array index. If the signed char is negative, * we want to instead treat it as an 8-bit unsigned char, hence the * double cast. */ #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) /* Enter a start condition. This macro really ought to take a parameter, * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. */ #define BEGIN (yy_start) = 1 + 2 * /* Translate the current start state into a value that can be later handed * to BEGIN to return to the state. The YYSTATE alias is for lex * compatibility. */ #define YY_START (((yy_start) - 1) / 2) #define YYSTATE YY_START /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ #define YY_NEW_FILE yyrestart(yyin ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #ifndef YY_BUF_SIZE #ifdef __ia64__ /* On IA-64, the buffer size is 16k, not 8k. * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. * Ditto for the __ia64__ case accordingly. */ #define YY_BUF_SIZE 32768 #else #define YY_BUF_SIZE 16384 #endif /* __ia64__ */ #endif /* The state buf must be large enough to hold one state per character in the main buffer. */ #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) #ifndef YY_TYPEDEF_YY_BUFFER_STATE #define YY_TYPEDEF_YY_BUFFER_STATE typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif #ifndef YY_TYPEDEF_YY_SIZE_T #define YY_TYPEDEF_YY_SIZE_T typedef size_t yy_size_t; #endif extern yy_size_t yyleng; extern FILE *yyin, *yyout; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 #define YY_LESS_LINENO(n) #define YY_LINENO_REWIND_TO(ptr) /* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ *yy_cp = (yy_hold_char); \ YY_RESTORE_YY_MORE_OFFSET \ (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up yytext again */ \ } \ while ( 0 ) #define unput(c) yyunput( c, (yytext_ptr) ) #ifndef YY_STRUCT_YY_BUFFER_STATE #define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state { FILE *yy_input_file; char *yy_ch_buf; /* input buffer */ char *yy_buf_pos; /* current position in input buffer */ /* Size of input buffer in bytes, not including room for EOB * characters. */ yy_size_t yy_buf_size; /* Number of characters read into yy_ch_buf, not including EOB * characters. */ int yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to * delete it. */ int yy_is_our_buffer; /* Whether this is an "interactive" input source; if so, and * if we're using stdio for input, then we want to use getc() * instead of fread(), to make sure we stop fetching input after * each newline. */ int yy_is_interactive; /* Whether we're considered to be at the beginning of a line. * If so, '^' rules will be active on the next match, otherwise * not. */ int yy_at_bol; int yy_bs_lineno; /**< The line count. */ int yy_bs_column; /**< The column count. */ /* Whether to try to fill the input buffer when we reach the * end of it. */ int yy_fill_buffer; int yy_buffer_status; #define YY_BUFFER_NEW 0 #define YY_BUFFER_NORMAL 1 /* When an EOF's been seen but there's still some text to process * then we mark the buffer as YY_EOF_PENDING, to indicate that we * shouldn't try reading from the input source any more. We might * still have a bunch of tokens to match, though, because of * possible backing-up. * * When we actually see the EOF, we change the status to "new" * (via yyrestart()), so that the user can continue scanning by * just pointing yyin at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 }; #endif /* !YY_STRUCT_YY_BUFFER_STATE */ /* Stack of input buffers. */ static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ /* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general * "scanner state". * * Returns the top of the stack, or NULL. */ #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ : NULL) /* Same as previous macro, but useful when we know that the buffer stack is not * NULL or when we need an lvalue. For internal use only. */ #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] /* yy_hold_char holds the character lost when yytext is formed. */ static char yy_hold_char; static int yy_n_chars; /* number of characters read into yy_ch_buf */ yy_size_t yyleng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (char *) 0; static int yy_init = 0; /* whether we need to initialize */ static int yy_start = 0; /* start state number */ /* Flag which is used to allow yywrap()'s to do buffer switches * instead of setting up a fresh yyin. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; void yyrestart (FILE *input_file ); void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); void yy_delete_buffer (YY_BUFFER_STATE b ); void yy_flush_buffer (YY_BUFFER_STATE b ); void yypush_buffer_state (YY_BUFFER_STATE new_buffer ); void yypop_buffer_state (void ); static void yyensure_buffer_stack (void ); static void yy_load_buffer_state (void ); static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ); void *yyalloc (yy_size_t ); void *yyrealloc (void *,yy_size_t ); void yyfree (void * ); #define yy_new_buffer yy_create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! YY_CURRENT_BUFFER ){ \ yyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ yy_create_buffer(yyin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ if ( ! YY_CURRENT_BUFFER ){\ yyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ yy_create_buffer(yyin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ } #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) /* Begin user sect3 */ typedef unsigned char YY_CHAR; FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; typedef int yy_state_type; extern int yylineno; int yylineno = 1; extern char *yytext; #ifdef yytext_ptr #undef yytext_ptr #endif #define yytext_ptr yytext static yy_state_type yy_get_previous_state (void ); static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); static int yy_get_next_buffer (void ); #if defined(__GNUC__) && __GNUC__ >= 3 __attribute__((__noreturn__)) #endif static void yy_fatal_error (yyconst char msg[] ); /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ #define YY_DO_BEFORE_ACTION \ (yytext_ptr) = yy_bp; \ yyleng = (size_t) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; #define YY_NUM_RULES 37 #define YY_END_OF_BUFFER 38 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info { flex_int32_t yy_verify; flex_int32_t yy_nxt; }; static yyconst flex_int16_t yy_accept[96] = { 0, 0, 0, 38, 36, 32, 32, 35, 26, 23, 24, 22, 19, 27, 20, 21, 29, 29, 35, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 35, 25, 33, 34, 29, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 13, 30, 30, 30, 30, 30, 2, 30, 30, 35, 28, 28, 1, 30, 30, 30, 30, 30, 30, 30, 12, 30, 30, 30, 6, 3, 10, 30, 30, 30, 30, 16, 30, 14, 30, 5, 7, 15, 17, 30, 30, 30, 4, 18, 8, 9, 11, 0 } ; static yyconst YY_CHAR yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 4, 5, 4, 4, 4, 4, 4, 6, 7, 8, 9, 10, 11, 4, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 4, 15, 4, 4, 4, 4, 4, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 4, 4, 4, 4, 4, 4, 17, 16, 18, 19, 20, 21, 16, 16, 22, 16, 16, 23, 16, 24, 25, 26, 27, 28, 29, 30, 31, 16, 16, 32, 16, 16, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } ; static yyconst YY_CHAR yy_meta[33] = { 0, 1, 1, 2, 3, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 } ; static yyconst flex_uint16_t yy_base[102] = { 0, 0, 90, 90, 297, 297, 297, 0, 297, 297, 297, 74, 0, 0, 0, 0, 29, 41, 63, 53, 65, 10, 59, 60, 71, 46, 78, 83, 86, 91, 92, 297, 0, 0, 33, 45, 0, 120, 75, 104, 105, 108, 112, 111, 115, 121, 125, 126, 118, 129, 133, 139, 143, 144, 147, 151, 152, 180, 0, 195, 156, 179, 161, 183, 182, 193, 188, 187, 196, 197, 201, 209, 206, 210, 213, 218, 217, 223, 222, 226, 231, 232, 239, 236, 240, 243, 244, 252, 249, 248, 256, 257, 260, 261, 264, 297, 68, 63, 57, 290, 45, 293 } ; static yyconst flex_int16_t yy_def[102] = { 0, 95, 1, 95, 95, 95, 95, 96, 95, 95, 95, 96, 96, 96, 96, 96, 97, 97, 96, 98, 98, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 95, 96, 96, 17, 17, 17, 99, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 100, 101, 99, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 0, 95, 95, 95, 95, 95, 95 } ; static yyconst flex_uint16_t yy_nxt[330] = { 0, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 19, 19, 19, 29, 30, 19, 19, 32, 38, 41, 38, 32, 32, 32, 32, 32, 34, 34, 32, 32, 34, 34, 57, 32, 32, 32, 32, 32, 36, 36, 32, 32, 57, 57, 38, 32, 32, 32, 32, 32, 35, 48, 32, 32, 38, 32, 38, 32, 32, 32, 32, 32, 37, 42, 32, 43, 33, 38, 38, 38, 38, 44, 46, 39, 95, 40, 45, 31, 95, 38, 47, 38, 49, 38, 50, 38, 38, 51, 38, 52, 95, 38, 53, 38, 38, 55, 38, 95, 54, 38, 38, 38, 38, 95, 56, 58, 58, 60, 95, 58, 58, 58, 38, 38, 38, 61, 62, 63, 38, 38, 38, 38, 38, 38, 64, 38, 38, 66, 38, 38, 65, 38, 67, 38, 38, 38, 38, 38, 68, 38, 71, 38, 69, 38, 95, 95, 70, 38, 95, 38, 72, 38, 38, 38, 38, 38, 95, 38, 73, 38, 38, 38, 38, 77, 38, 74, 38, 75, 32, 38, 95, 38, 32, 32, 32, 32, 32, 95, 95, 32, 58, 58, 95, 76, 58, 58, 58, 38, 78, 38, 38, 38, 79, 38, 80, 38, 38, 38, 38, 95, 82, 38, 81, 38, 38, 38, 38, 38, 95, 38, 83, 38, 85, 95, 38, 84, 38, 38, 38, 38, 38, 38, 86, 38, 88, 87, 38, 38, 38, 95, 38, 38, 38, 38, 38, 95, 38, 89, 90, 38, 38, 38, 38, 91, 38, 95, 38, 38, 38, 38, 38, 38, 38, 38, 38, 92, 94, 38, 38, 38, 38, 95, 38, 93, 38, 38, 38, 38, 38, 38, 38, 38, 38, 95, 38, 59, 95, 59, 58, 95, 58, 3, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95 } ; static yyconst flex_int16_t yy_chk[330] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16, 21, 21, 21, 16, 16, 16, 16, 16, 16, 16, 16, 17, 34, 34, 100, 17, 17, 17, 17, 17, 17, 17, 17, 19, 35, 35, 98, 19, 19, 19, 19, 19, 97, 25, 19, 20, 25, 96, 25, 20, 20, 20, 20, 20, 18, 22, 20, 22, 11, 22, 23, 22, 23, 23, 24, 20, 3, 20, 23, 2, 0, 24, 24, 24, 26, 38, 26, 38, 26, 26, 26, 27, 0, 27, 27, 27, 28, 29, 28, 0, 28, 29, 30, 29, 30, 0, 30, 37, 37, 39, 0, 37, 37, 37, 39, 40, 39, 40, 41, 42, 41, 43, 42, 43, 42, 44, 43, 44, 48, 45, 48, 45, 44, 45, 46, 46, 47, 46, 47, 49, 47, 49, 51, 50, 49, 50, 0, 0, 50, 51, 0, 51, 52, 52, 53, 52, 53, 54, 0, 54, 53, 55, 56, 55, 56, 62, 60, 55, 60, 56, 57, 62, 0, 62, 57, 57, 57, 57, 57, 0, 0, 57, 59, 59, 0, 61, 59, 59, 59, 61, 63, 61, 64, 63, 64, 63, 65, 67, 66, 67, 66, 0, 67, 65, 66, 65, 68, 69, 68, 69, 0, 70, 69, 70, 71, 0, 72, 70, 72, 71, 73, 71, 73, 74, 75, 74, 77, 76, 75, 76, 75, 0, 78, 77, 78, 77, 79, 0, 79, 78, 80, 80, 81, 80, 81, 82, 83, 0, 83, 82, 84, 82, 84, 85, 86, 85, 86, 87, 89, 88, 89, 88, 87, 0, 87, 88, 90, 91, 90, 91, 92, 93, 92, 93, 94, 0, 94, 99, 0, 99, 101, 0, 101, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95 } ; static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; extern int yy_flex_debug; int yy_flex_debug = 0; /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */ #define REJECT reject_used_but_not_detected #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET char *yytext; #line 1 "gpp_lexer.l" #line 2 "gpp_lexer.l" int isOpenQuote = 0; #line 573 "gpp_lexer.c" #define INITIAL 0 #ifndef YY_NO_UNISTD_H /* Special case for "unistd.h", since it is non-ANSI. We include it way * down here because we want the user's section 1 to have been scanned first. * The user has a chance to override it with an option. */ #include <unistd.h> #endif #ifndef YY_EXTRA_TYPE #define YY_EXTRA_TYPE void * #endif static int yy_init_globals (void ); /* Accessor methods to globals. These are made visible to non-reentrant scanners for convenience. */ int yylex_destroy (void ); int yyget_debug (void ); void yyset_debug (int debug_flag ); YY_EXTRA_TYPE yyget_extra (void ); void yyset_extra (YY_EXTRA_TYPE user_defined ); FILE *yyget_in (void ); void yyset_in (FILE * _in_str ); FILE *yyget_out (void ); void yyset_out (FILE * _out_str ); yy_size_t yyget_leng (void ); char *yyget_text (void ); int yyget_lineno (void ); void yyset_lineno (int _line_number ); /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" int yywrap (void ); #else extern int yywrap (void ); #endif #endif #ifndef YY_NO_UNPUT static void yyunput (int c,char *buf_ptr ); #endif #ifndef yytext_ptr static void yy_flex_strncpy (char *,yyconst char *,int ); #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * ); #endif #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (void ); #else static int input (void ); #endif #endif /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE #ifdef __ia64__ /* On IA-64, the buffer size is 16k, not 8k */ #define YY_READ_BUF_SIZE 16384 #else #define YY_READ_BUF_SIZE 8192 #endif /* __ia64__ */ #endif /* Copy whatever the last rule matched to the standard output. */ #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ int c = '*'; \ size_t n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else \ { \ errno=0; \ while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ { \ if( errno != EINTR) \ { \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ break; \ } \ errno=0; \ clearerr(yyin); \ } \ }\ \ #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */ #ifndef yyterminate #define yyterminate() return YY_NULL #endif /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR #define YY_START_STACK_INCR 25 #endif /* Report a fatal error. */ #ifndef YY_FATAL_ERROR #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) #endif /* end tables serialization structures and prototypes */ /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL #define YY_DECL_IS_OURS 1 extern int yylex (void); #define YY_DECL int yylex (void) #endif /* !YY_DECL */ /* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */ #ifndef YY_USER_ACTION #define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK #define YY_BREAK /*LINTED*/break; #endif #define YY_RULE_SETUP \ if ( yyleng > 0 ) \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \ (yytext[yyleng - 1] == '\n'); \ YY_USER_ACTION /** The main scanner function which does all the work. */ YY_DECL { yy_state_type yy_current_state; char *yy_cp, *yy_bp; int yy_act; if ( !(yy_init) ) { (yy_init) = 1; #ifdef YY_USER_INIT YY_USER_INIT; #endif if ( ! (yy_start) ) (yy_start) = 1; /* first start state */ if ( ! yyin ) yyin = stdin; if ( ! yyout ) yyout = stdout; if ( ! YY_CURRENT_BUFFER ) { yyensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin,YY_BUF_SIZE ); } yy_load_buffer_state( ); } { #line 40 "gpp_lexer.l" #line 796 "gpp_lexer.c" while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ { yy_cp = (yy_c_buf_p); /* Support of yytext. */ *yy_cp = (yy_hold_char); /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; yy_current_state = (yy_start); yy_current_state += YY_AT_BOL(); yy_match: do { YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 96 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; ++yy_cp; } while ( yy_base[yy_current_state] != 297 ); yy_find_action: yy_act = yy_accept[yy_current_state]; if ( yy_act == 0 ) { /* have to back up */ yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); yy_act = yy_accept[yy_current_state]; } YY_DO_BEFORE_ACTION; do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ case 0: /* must back up */ /* undo the effects of YY_DO_BEFORE_ACTION */ *yy_cp = (yy_hold_char); yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); goto yy_find_action; case 1: YY_RULE_SETUP #line 41 "gpp_lexer.l" fprintf(yyout,"KW_AND\n"); YY_BREAK case 2: YY_RULE_SETUP #line 42 "gpp_lexer.l" fprintf(yyout,"KW_OR\n"); YY_BREAK case 3: YY_RULE_SETUP #line 43 "gpp_lexer.l" fprintf(yyout,"KW_NOT\n"); YY_BREAK case 4: YY_RULE_SETUP #line 44 "gpp_lexer.l" fprintf(yyout,"KW_EQUAL\n"); YY_BREAK case 5: YY_RULE_SETUP #line 45 "gpp_lexer.l" fprintf(yyout,"KW_LESS\n"); YY_BREAK case 6: YY_RULE_SETUP #line 46 "gpp_lexer.l" fprintf(yyout,"KW_NIL\n"); YY_BREAK case 7: YY_RULE_SETUP #line 47 "gpp_lexer.l" fprintf(yyout,"KW_LIST\n"); YY_BREAK case 8: YY_RULE_SETUP #line 48 "gpp_lexer.l" fprintf(yyout,"KW_APPEND\n"); YY_BREAK case 9: YY_RULE_SETUP #line 49 "gpp_lexer.l" fprintf(yyout,"KW_CONCAT\n"); YY_BREAK case 10: YY_RULE_SETUP #line 50 "gpp_lexer.l" fprintf(yyout,"KW_SET\n"); YY_BREAK case 11: YY_RULE_SETUP #line 51 "gpp_lexer.l" fprintf(yyout,"KW_DEFFUN\n"); YY_BREAK case 12: YY_RULE_SETUP #line 52 "gpp_lexer.l" fprintf(yyout,"KW_FOR\n"); YY_BREAK case 13: YY_RULE_SETUP #line 53 "gpp_lexer.l" fprintf(yyout,"KW_IF\n"); YY_BREAK case 14: YY_RULE_SETUP #line 54 "gpp_lexer.l" fprintf(yyout,"KW_EXIT\n"); YY_BREAK case 15: YY_RULE_SETUP #line 55 "gpp_lexer.l" fprintf(yyout,"KW_LOAD\n"); YY_BREAK case 16: YY_RULE_SETUP #line 56 "gpp_lexer.l" fprintf(yyout,"KW_DISP\n"); YY_BREAK case 17: YY_RULE_SETUP #line 57 "gpp_lexer.l" fprintf(yyout,"KW_TRUE\n"); YY_BREAK case 18: YY_RULE_SETUP #line 58 "gpp_lexer.l" fprintf(yyout,"KW_FALSE\n"); YY_BREAK case 19: YY_RULE_SETUP #line 59 "gpp_lexer.l" fprintf(yyout,"OP_PLUS\n"); YY_BREAK case 20: YY_RULE_SETUP #line 60 "gpp_lexer.l" fprintf(yyout,"OP_MINUS\n"); YY_BREAK case 21: YY_RULE_SETUP #line 61 "gpp_lexer.l" fprintf(yyout,"OP_DIV\n"); YY_BREAK case 22: YY_RULE_SETUP #line 62 "gpp_lexer.l" fprintf(yyout,"OP_MULT\n"); YY_BREAK case 23: YY_RULE_SETUP #line 63 "gpp_lexer.l" fprintf(yyout,"OP_OP\n"); YY_BREAK case 24: YY_RULE_SETUP #line 64 "gpp_lexer.l" fprintf(yyout,"OP_CP\n"); YY_BREAK case 25: YY_RULE_SETUP #line 65 "gpp_lexer.l" fprintf(yyout,"OP_DBLMULT\n"); YY_BREAK case 26: YY_RULE_SETUP #line 66 "gpp_lexer.l" { isOpenQuote == 0 ? fprintf(yyout,"OP_OC\n") : fprintf(yyout,"OP_CC\n"); isOpenQuote = !isOpenQuote; } YY_BREAK case 27: YY_RULE_SETUP #line 67 "gpp_lexer.l" fprintf(yyout,"OP_COMMA\n"); YY_BREAK case 28: YY_RULE_SETUP #line 68 "gpp_lexer.l" fprintf(yyout,"COMMENT\n"); YY_BREAK case 29: YY_RULE_SETUP #line 69 "gpp_lexer.l" fprintf(yyout,"VALUE\n"); YY_BREAK case 30: YY_RULE_SETUP #line 70 "gpp_lexer.l" fprintf(yyout,"IDENTIFIER\n"); YY_BREAK case 31: /* rule 31 can match eol */ YY_RULE_SETUP #line 71 "gpp_lexer.l" { if(yyin == stdin) return 0; } YY_BREAK case YY_STATE_EOF(INITIAL): #line 72 "gpp_lexer.l" return 0; YY_BREAK case 32: /* rule 32 can match eol */ YY_RULE_SETUP #line 73 "gpp_lexer.l" /* Initially is ignored */ YY_BREAK case 33: YY_RULE_SETUP #line 74 "gpp_lexer.l" fprintf(yyout,"SYNTAX ERROR %s cannot be tokenized\n",yytext); YY_BREAK case 34: YY_RULE_SETUP #line 75 "gpp_lexer.l" fprintf(yyout,"SYNTAX ERROR %s cannot be tokenized\n",yytext); YY_BREAK case 35: YY_RULE_SETUP #line 76 "gpp_lexer.l" fprintf(yyout,"SYNTAX ERROR %s cannot be tokenized\n",yytext); YY_BREAK case 36: YY_RULE_SETUP #line 77 "gpp_lexer.l" fprintf(yyout,"SYNTAX ERROR %s cannot bo tekonized\n",yytext); YY_BREAK case 37: YY_RULE_SETUP #line 78 "gpp_lexer.l" ECHO; YY_BREAK #line 1045 "gpp_lexer.c" case YY_END_OF_BUFFER: { /* Amount of text matched not including the EOB char. */ int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; /* Undo the effects of YY_DO_BEFORE_ACTION. */ *yy_cp = (yy_hold_char); YY_RESTORE_YY_MORE_OFFSET if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) { /* We're scanning a new file or input source. It's * possible that this happened because the user * just pointed yyin at a new source and called * yylex(). If so, then we have to assure * consistency between YY_CURRENT_BUFFER and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; } /* Note that here we test for yy_c_buf_p "<=" to the position * of the first EOB in the buffer, since yy_c_buf_p will * already have been incremented past the NUL character * (since all states make transitions on EOB to the * end-of-buffer state). Contrast this with the test * in input(). */ if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) { /* This was really a NUL. */ yy_state_type yy_next_state; (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); /* Okay, we're now positioned to make the NUL * transition. We couldn't have * yy_get_previous_state() go ahead and do it * for us because it doesn't know how to deal * with the possibility of jamming (and we don't * want to build jamming into it because then it * will run more slowly). */ yy_next_state = yy_try_NUL_trans( yy_current_state ); yy_bp = (yytext_ptr) + YY_MORE_ADJ; if ( yy_next_state ) { /* Consume the NUL. */ yy_cp = ++(yy_c_buf_p); yy_current_state = yy_next_state; goto yy_match; } else { yy_cp = (yy_c_buf_p); goto yy_find_action; } } else switch ( yy_get_next_buffer( ) ) { case EOB_ACT_END_OF_FILE: { (yy_did_buffer_switch_on_eof) = 0; if ( yywrap( ) ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up * yytext, we can now set up * yy_c_buf_p so that if some total * hoser (like flex itself) wants to * call the scanner after we return the * YY_NULL, it'll still work - another * YY_NULL will get returned. */ (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; } else { if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; } break; } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: (yy_c_buf_p) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_find_action; } break; } default: YY_FATAL_ERROR( "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ } /* end of user's declarations */ } /* end of yylex */ /* yy_get_next_buffer - try to read in a new buffer * * Returns a code representing an action: * EOB_ACT_LAST_MATCH - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_END_OF_FILE - end of file */ static int yy_get_next_buffer (void) { char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; char *source = (yytext_ptr); yy_size_t number_to_move, i; int ret_val; if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) YY_FATAL_ERROR( "fatal flex scanner internal error--end of buffer missed" ); if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) { /* Don't try to fill the buffer, so this is an EOF. */ if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) { /* We matched a single character, the EOB, so * treat this as a final EOF. */ return EOB_ACT_END_OF_FILE; } else { /* We matched some text prior to the EOB, first * process it. */ return EOB_ACT_LAST_MATCH; } } /* Try to read more data. */ /* First move last chars to start of buffer. */ number_to_move = (yy_size_t) ((yy_c_buf_p) - (yytext_ptr)) - 1; for ( i = 0; i < number_to_move; ++i ) *(dest++) = *(source++); if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) /* don't do the read, it's not guaranteed to return an EOF, * just force an EOF */ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; else { yy_size_t num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ /* just a shorter name for the current buffer */ YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; int yy_c_buf_p_offset = (int) ((yy_c_buf_p) - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { yy_size_t new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; else b->yy_buf_size *= 2; b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ b->yy_ch_buf = 0; if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" ); (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; } if ( num_to_read > YY_READ_BUF_SIZE ) num_to_read = YY_READ_BUF_SIZE; /* Read in more data. */ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), (yy_n_chars), num_to_read ); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } if ( (yy_n_chars) == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; yyrestart(yyin ); } else { ret_val = EOB_ACT_LAST_MATCH; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } else ret_val = EOB_ACT_CONTINUE_SCAN; if ((int) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { /* Extend the array by 50%, plus the number we really need. */ int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); } (yy_n_chars) += number_to_move; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; return ret_val; } /* yy_get_previous_state - get the state just before the EOB char was reached */ static yy_state_type yy_get_previous_state (void) { yy_state_type yy_current_state; char *yy_cp; yy_current_state = (yy_start); yy_current_state += YY_AT_BOL(); for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) { YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 96 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; } return yy_current_state; } /* yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis * next_state = yy_try_NUL_trans( current_state ); */ static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) { int yy_is_jam; char *yy_cp = (yy_c_buf_p); YY_CHAR yy_c = 1; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 96 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_is_jam = (yy_current_state == 95); return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_UNPUT static void yyunput (int c, char * yy_bp ) { char *yy_cp; yy_cp = (yy_c_buf_p); /* undo effects of setting up yytext */ *yy_cp = (yy_hold_char); if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) { /* need to shift things up to make room */ /* +2 for EOB chars. */ yy_size_t number_to_move = (yy_n_chars) + 2; char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; char *source = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) *--dest = *--source; yy_cp += (int) (dest - source); yy_bp += (int) (dest - source); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) YY_FATAL_ERROR( "flex scanner push-back overflow" ); } *--yy_cp = (char) c; (yytext_ptr) = yy_bp; (yy_hold_char) = *yy_cp; (yy_c_buf_p) = yy_cp; } #endif #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (void) #else static int input (void) #endif { int c; *(yy_c_buf_p) = (yy_hold_char); if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) { /* yy_c_buf_p now points to the character we want to return. * If this occurs *before* the EOB characters, then it's a * valid NUL; if not, then we've hit the end of the buffer. */ if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) /* This was really a NUL. */ *(yy_c_buf_p) = '\0'; else { /* need more input */ yy_size_t offset = (yy_c_buf_p) - (yytext_ptr); ++(yy_c_buf_p); switch ( yy_get_next_buffer( ) ) { case EOB_ACT_LAST_MATCH: /* This happens because yy_g_n_b() * sees that we've accumulated a * token and flags that we need to * try matching the token before * proceeding. But for input(), * there's no matching to consider. * So convert the EOB_ACT_LAST_MATCH * to EOB_ACT_END_OF_FILE. */ /* Reset buffer status. */ yyrestart(yyin ); /*FALLTHROUGH*/ case EOB_ACT_END_OF_FILE: { if ( yywrap( ) ) return EOF; if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(); #else return input(); #endif } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + offset; break; } } } c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ *(yy_c_buf_p) = '\0'; /* preserve yytext */ (yy_hold_char) = *++(yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n'); return c; } #endif /* ifndef YY_NO_INPUT */ /** Immediately switch to a different input stream. * @param input_file A readable stream. * * @note This function does not reset the start condition to @c INITIAL . */ void yyrestart (FILE * input_file ) { if ( ! YY_CURRENT_BUFFER ){ yyensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin,YY_BUF_SIZE ); } yy_init_buffer(YY_CURRENT_BUFFER,input_file ); yy_load_buffer_state( ); } /** Switch to a different input buffer. * @param new_buffer The new input buffer. * */ void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) { /* TODO. We should be able to replace this entire function body * with * yypop_buffer_state(); * yypush_buffer_state(new_buffer); */ yyensure_buffer_stack (); if ( YY_CURRENT_BUFFER == new_buffer ) return; if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } YY_CURRENT_BUFFER_LVALUE = new_buffer; yy_load_buffer_state( ); /* We don't actually know whether we did this switch during * EOF (yywrap()) processing, but the only time this flag * is looked at is after yywrap() is called, so it's safe * to go ahead and always set it. */ (yy_did_buffer_switch_on_eof) = 1; } static void yy_load_buffer_state (void) { (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; (yy_hold_char) = *(yy_c_buf_p); } /** Allocate and initialize an input buffer state. * @param file A readable stream. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. * * @return the allocated buffer state. */ YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_buf_size = (yy_size_t)size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_is_our_buffer = 1; yy_init_buffer(b,file ); return b; } /** Destroy the buffer. * @param b a buffer created with yy_create_buffer() * */ void yy_delete_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) yyfree((void *) b->yy_ch_buf ); yyfree((void *) b ); } /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a yyrestart() or at EOF. */ static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) { int oerrno = errno; yy_flush_buffer(b ); b->yy_input_file = file; b->yy_fill_buffer = 1; /* If b is the current buffer, then yy_init_buffer was _probably_ * called from yyrestart() or through yy_get_next_buffer. * In that case, we don't want to reset the lineno or column. */ if (b != YY_CURRENT_BUFFER){ b->yy_bs_lineno = 1; b->yy_bs_column = 0; } b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; errno = oerrno; } /** Discard all buffered characters. On the next scan, YY_INPUT will be called. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. * */ void yy_flush_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; b->yy_n_chars = 0; /* We always need two end-of-buffer characters. The first causes * a transition to the end-of-buffer state. The second causes * a jam in that state. */ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; b->yy_buf_pos = &b->yy_ch_buf[0]; b->yy_at_bol = 1; b->yy_buffer_status = YY_BUFFER_NEW; if ( b == YY_CURRENT_BUFFER ) yy_load_buffer_state( ); } /** Pushes the new state onto the stack. The new state becomes * the current state. This function will allocate the stack * if necessary. * @param new_buffer The new state. * */ void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) { if (new_buffer == NULL) return; yyensure_buffer_stack(); /* This block is copied from yy_switch_to_buffer. */ if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } /* Only push if top exists. Otherwise, replace top. */ if (YY_CURRENT_BUFFER) (yy_buffer_stack_top)++; YY_CURRENT_BUFFER_LVALUE = new_buffer; /* copied from yy_switch_to_buffer. */ yy_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } /** Removes and deletes the top of the stack, if present. * The next element becomes the new top. * */ void yypop_buffer_state (void) { if (!YY_CURRENT_BUFFER) return; yy_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; if ((yy_buffer_stack_top) > 0) --(yy_buffer_stack_top); if (YY_CURRENT_BUFFER) { yy_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } } /* Allocates the stack if it does not exist. * Guarantees space for at least one push. */ static void yyensure_buffer_stack (void) { yy_size_t num_to_alloc; if (!(yy_buffer_stack)) { /* First allocation is just for 2 elements, since we don't know if this * scanner will even need a stack. We use 2 instead of 1 to avoid an * immediate realloc on the next call. */ num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */ (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc (num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; (yy_buffer_stack_top) = 0; return; } if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ /* Increase the buffer to prepare for a possible push. */ yy_size_t grow_size = 8 /* arbitrary grow size */; num_to_alloc = (yy_buffer_stack_max) + grow_size; (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc ((yy_buffer_stack), num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); /* zero only the new slots.*/ memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; } } /** Setup the input buffer state to scan directly from a user-specified character buffer. * @param base the character buffer * @param size the size in bytes of the character buffer * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) { YY_BUFFER_STATE b; if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) /* They forgot to leave room for the EOB's. */ return 0; b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ b->yy_buf_pos = b->yy_ch_buf = base; b->yy_is_our_buffer = 0; b->yy_input_file = 0; b->yy_n_chars = b->yy_buf_size; b->yy_is_interactive = 0; b->yy_at_bol = 1; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; yy_switch_to_buffer(b ); return b; } /** Setup the input buffer state to scan a string. The next call to yylex() will * scan from a @e copy of @a str. * @param yystr a NUL-terminated string to scan * * @return the newly allocated buffer state object. * @note If you want to scan bytes that may contain NUL values, then use * yy_scan_bytes() instead. */ YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) { return yy_scan_bytes(yystr,strlen(yystr) ); } /** Setup the input buffer state to scan the given bytes. The next call to yylex() will * scan from a @e copy of @a bytes. * @param yybytes the byte buffer to scan * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len ) { YY_BUFFER_STATE b; char *buf; yy_size_t n; yy_size_t i; /* Get memory for full buffer, including space for trailing EOB's. */ n = _yybytes_len + 2; buf = (char *) yyalloc(n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); for ( i = 0; i < _yybytes_len; ++i ) buf[i] = yybytes[i]; buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; b = yy_scan_buffer(buf,n ); if ( ! b ) YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); /* It's okay to grow etc. this buffer, and we should throw it * away when we're done. */ b->yy_is_our_buffer = 1; return b; } #ifndef YY_EXIT_FAILURE #define YY_EXIT_FAILURE 2 #endif static void yy_fatal_error (yyconst char* msg ) { (void) fprintf( stderr, "%s\n", msg ); exit( YY_EXIT_FAILURE ); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ yytext[yyleng] = (yy_hold_char); \ (yy_c_buf_p) = yytext + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ yyleng = yyless_macro_arg; \ } \ while ( 0 ) /* Accessor methods (get/set functions) to struct members. */ /** Get the current line number. * */ int yyget_lineno (void) { return yylineno; } /** Get the input stream. * */ FILE *yyget_in (void) { return yyin; } /** Get the output stream. * */ FILE *yyget_out (void) { return yyout; } /** Get the length of the current token. * */ yy_size_t yyget_leng (void) { return yyleng; } /** Get the current token. * */ char *yyget_text (void) { return yytext; } /** Set the current line number. * @param _line_number line number * */ void yyset_lineno (int _line_number ) { yylineno = _line_number; } /** Set the input stream. This does not discard the current * input buffer. * @param _in_str A readable stream. * * @see yy_switch_to_buffer */ void yyset_in (FILE * _in_str ) { yyin = _in_str ; } void yyset_out (FILE * _out_str ) { yyout = _out_str ; } int yyget_debug (void) { return yy_flex_debug; } void yyset_debug (int _bdebug ) { yy_flex_debug = _bdebug ; } static int yy_init_globals (void) { /* Initialization is the same as for the non-reentrant scanner. * This function is called from yylex_destroy(), so don't allocate here. */ (yy_buffer_stack) = 0; (yy_buffer_stack_top) = 0; (yy_buffer_stack_max) = 0; (yy_c_buf_p) = (char *) 0; (yy_init) = 0; (yy_start) = 0; /* Defined in main.c */ #ifdef YY_STDINIT yyin = stdin; yyout = stdout; #else yyin = (FILE *) 0; yyout = (FILE *) 0; #endif /* For future reference: Set errno on error, since we are called by * yylex_init() */ return 0; } /* yylex_destroy is for both reentrant and non-reentrant scanners. */ int yylex_destroy (void) { /* Pop the buffer stack, destroying each element. */ while(YY_CURRENT_BUFFER){ yy_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; yypop_buffer_state(); } /* Destroy the stack itself. */ yyfree((yy_buffer_stack) ); (yy_buffer_stack) = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time * yylex() is called, initialization will occur. */ yy_init_globals( ); return 0; } /* * Internal utility routines. */ #ifndef yytext_ptr static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) { int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; } #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * s ) { int n; for ( n = 0; s[n]; ++n ) ; return n; } #endif void *yyalloc (yy_size_t size ) { return (void *) malloc( size ); } void *yyrealloc (void * ptr, yy_size_t size ) { /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter * because both ANSI C and C++ allow castless assignment from * any pointer type to void*, and deal with argument conversions * as though doing an assignment. */ return (void *) realloc( (char *) ptr, size ); } void yyfree (void * ptr ) { free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ } #define YYTABLES_NAME "yytables" #line 78 "gpp_lexer.l" int yywrap(){} void setIOAndStartFlex(FILE* in, FILE* out); FILE* openFileToRead(int,char**); FILE* openFileToWrite(char*); int main(int argc, char** argv) { FILE* in = openFileToRead(argc,argv); FILE* out = openFileToWrite("parsed_cpp.txt"); if(in && out) setIOAndStartFlex(in,out); return 0; } void setIOAndStartFlex(FILE* in, FILE* out) { yyin = in; yyout = out; yylex(); } FILE* openFileToRead(int argc, char** argv) { FILE* in = NULL; if(argc == 1) in = stdin; else if(!(in = fopen(argv[1],"r"))) fprintf(stderr,"ERROR: File couldn't be opened: %s\n",argv[1]); return in; } FILE* openFileToWrite(char* fileName) { FILE* out = NULL; if(!(out = fopen(fileName,"w"))) fprintf(stderr,"ERROR: No such file: %s",fileName); return out; }