file
stringlengths
18
26
data
stringlengths
3
1.04M
the_stack_data/42172.c
//pattern 2: // * * * * // * * * // * * // * #include <stdio.h> void main() { int i,j,k; int n =5; //size of the pattern for(i=1;i<=n;i++) { for(k=1;k<=i;k++) printf(" "); for(j=n-i+1;j>=1;j--) printf("*"); printf("\n"); } }
the_stack_data/165767719.c
/* * Copyright 2017 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <inttypes.h> #include <stdio.h> #include <sys/mman.h> #include <stdint.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdlib.h> #define MEMORY "/dev/mem" #define FSI_CLOCK_VAL 0x1e0 #define FSI_CLOCK_BIT 16 #define NDEBUG #ifdef NDEBUG #define printf(...) #else #define printf(...) printf(__VA_ARGS__) #endif static uint32_t readl(void *addr) { printf("read from %p\n", addr); asm volatile("" : : : "memory"); return *(volatile uint32_t *) addr; } static void writel(void *addr, uint32_t data) { printf("write 0x%" PRIx32 " to %p\n", data, addr); asm volatile("" : : : "memory"); *(volatile uint32_t *)addr = data; } int main(void) { int fd; void *gc, *fsi; uint32_t up, down; printf("Opening " MEMORY "\n"); fd = open("/dev/mem", O_RDWR | O_SYNC); if (fd == -1) { perror("open"); exit(1); } printf("Mapping %d\n", fd); gc = mmap(NULL, 4 * 1024, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0x1e780000); if (gc == MAP_FAILED) { perror("mmap"); exit(2); } printf("%d mapped to %p for %d\n", fd, gc, 4 * 1024); down = readl(gc + FSI_CLOCK_VAL) & ~(1 << FSI_CLOCK_BIT); up = down | (1 << FSI_CLOCK_BIT); fsi = gc + FSI_CLOCK_VAL; while (1) { writel(fsi, down); writel(fsi, up); } }
the_stack_data/899597.c
#include <stdio.h> struct point { int x; int y; }; struct rect { struct point p1; struct point p2; }; int main() { struct rect a={{1,2},{3,4}}; printf("Size = %lu\n", sizeof(a)); return 0; }
the_stack_data/663706.c
// RUN: clang-cc %s -fsyntax-only -verify #define _AS1 __attribute__((address_space(1))) #define _AS2 __attribute__((address_space(2))) #define _AS3 __attribute__((address_space(3))) void bar(_AS2 int a); // expected-error {{parameter may not be qualified with an address space}} void foo(_AS3 float *a, _AS1 float b) // expected-error {{parameter may not be qualified with an address space}} { _AS2 *x;// expected-warning {{type specifier missing, defaults to 'int'}} _AS1 float * _AS2 *B; int _AS1 _AS2 *Y; // expected-error {{multiple address spaces specified for type}} int *_AS1 _AS2 *Z; // expected-error {{multiple address spaces specified for type}} _AS1 int local; // expected-error {{automatic variable qualified with an address space}} _AS1 int array[5]; // expected-error {{automatic variable qualified with an address space}} _AS1 int arrarr[5][5]; // expected-error {{automatic variable qualified with an address space}} __attribute__((address_space(-1))) int *_boundsA; // expected-error {{address space is negative}} __attribute__((address_space(0xFFFFFF))) int *_boundsB; __attribute__((address_space(0x1000000))) int *_boundsC; // expected-error {{address space is larger than the maximum supported}} // chosen specifically to overflow 32 bits and come out reasonable __attribute__((address_space(4294967500))) int *_boundsD; // expected-error {{address space is larger than the maximum supported}} *a = 5.0f + b; } struct _st { int x, y; } s __attribute ((address_space(1))) = {1, 1}; // rdar://6774906 __attribute__((address_space(256))) void * * const base = 0; void * get_0(void) { return base[0]; // expected-error {{illegal implicit cast between two pointers with different address spaces}} \ expected-warning {{returning 'void __attribute__((address_space(256))) *' discards qualifiers, expected 'void *'}} }
the_stack_data/85372.c
// Написать функцию: // void arraySort(int array[], int size) // Отсортировать элементы в порядке неубывания. // Настоятельно рекомендуется разработать алгоритм самостоятельно, без помощи гугла.
the_stack_data/165766491.c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strcmp.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: hturkatr <[email protected]> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/09/02 20:32:43 by hturkatr #+# #+# */ /* Updated: 2019/09/20 14:23:47 by hturkatr ### ########.fr */ /* */ /* ************************************************************************** */ int ft_strcmp(const char *s1, const char *s2) { while ((unsigned char)*s1 != 0 || (unsigned char)*s2 != 0) { if ((unsigned char)*s1 - (unsigned char)*s2 != 0) return ((unsigned char)*s1 - (unsigned char)*s2); s1++; s2++; } return ((unsigned char)0); }
the_stack_data/150139458.c
/* * Test R5900-specific MTLO1 and MTHI1. */ #include <stdio.h> #include <inttypes.h> #include <assert.h> int main() { int32_t tlo = 12207031, thi = 305175781; int32_t tlo1 = 32452867, thi1 = 49979687; int32_t flo, fhi, flo1, fhi1; /* Test both LO/HI and LO1/HI1 to verify separation. */ __asm__ __volatile__ ( " mtlo %4\n" " mthi %5\n" " mtlo1 %6\n" " mthi1 %7\n" " move %0, $0\n" " move %1, $0\n" " move %2, $0\n" " move %3, $0\n" " mflo %0\n" " mfhi %1\n" " mflo1 %2\n" " mfhi1 %3\n" : "=r" (flo), "=r" (fhi), "=r" (flo1), "=r" (fhi1) : "r" (tlo), "r" (thi), "r" (tlo1), "r" (thi1)); assert(flo == 12207031); assert(fhi == 305175781); assert(flo1 == 32452867); assert(fhi1 == 49979687); return 0; }
the_stack_data/140764823.c
// RUN: %ucc -fsyntax-only -std=c99 %s // RUN: %check -e %s -std=c89 struct A { int ar[2]; }; struct A a(void); f(int *p); main() { f(a().ar); // CHECK: error: mismatching types, argument 1 to f }
the_stack_data/98263.c
int main() { int a, b, g; int flag=2; if(flag==0) { a=100; b=25; } else { a=20; if(flag==1) // nested if else b=5; else b=4; } return 0; }
the_stack_data/250979.c
/** * @file wcstoumax.c * Copyright 2012, 2013 MinGW.org project * * 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 (including the next * paragraph) shall be included in all copies or substantial portions of the * Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ #include <wchar.h> #include <errno.h> #include <ctype.h> #include <inttypes.h> /* convert digit wide character to number, in any base */ #define ToWNumber(c) (iswdigit(c) ? (c) - L'0' : \ iswupper(c) ? (c) - L'A' + 10 : \ iswlower(c) ? (c) - L'a' + 10 : \ -1 /* "invalid" flag */ \ ) /* validate converted digit character for specific base */ #define valid(n, b) ((n) >= 0 && (n) < (b)) uintmax_t wcstoumax(nptr, endptr, base) register const wchar_t * __restrict__ nptr; wchar_t ** __restrict__ endptr; register int base; { register uintmax_t accum; /* accumulates converted value */ register uintmax_t next; /* for computing next value of accum */ register int n; /* numeral from digit character */ int minus; /* set iff minus sign seen (yes!) */ int toobig; /* set iff value overflows */ if ( endptr != NULL ) *endptr = (wchar_t *)nptr; /* in case no conv performed */ if ( base < 0 || base == 1 || base > 36 ) { errno = EDOM; return 0; /* unspecified behavior */ } /* skip initial, possibly empty sequence of white-space w.characters */ while ( iswspace(*nptr) ) ++nptr; /* process subject sequence: */ /* optional sign */ if ( (minus = *nptr == L'-') || *nptr == L'+' ) ++nptr; if ( base == 0 ) { if ( *nptr == L'0' ) { if ( nptr[1] == L'X' || nptr[1] == L'x' ) base = 16; else base = 8; } else base = 10; } /* optional "0x" or "0X" for base 16 */ if ( base == 16 && *nptr == L'0' && (nptr[1] == L'X' || nptr[1] == L'x') ) nptr += 2; /* skip past this prefix */ /* check whether there is at least one valid digit */ n = ToWNumber(*nptr); ++nptr; if ( !valid(n, base) ) return 0; /* subject seq. not of expected form */ accum = n; for ( toobig = 0; n = ToWNumber(*nptr), valid(n, base); ++nptr ) if ( accum > UINTMAX_MAX / base + 1 /* major wrap-around */ || (next = base * accum + n) < accum /* minor wrap-around */ ) toobig = 1; /* but keep scanning */ else accum = next; if ( endptr != NULL ) *endptr = (wchar_t *)nptr; /* -> first not-valid-digit */ if ( toobig ) { errno = ERANGE; return UINTMAX_MAX; } else return minus ? -accum : accum; /* (yes!) */ } unsigned long long __attribute__ ((alias ("wcstoumax"))) wcstoull (const wchar_t* __restrict__ nptr, wchar_t ** __restrict__ endptr, int base);
the_stack_data/243893557.c
typedef unsigned int size_t; typedef long __time_t; struct buf_mem_st { int length ; char *data ; int max ; }; typedef struct buf_mem_st BUF_MEM; typedef __time_t time_t; struct stack_st { int num ; char **data ; int sorted ; int num_alloc ; int (*comp)(char const * const * , char const * const * ) ; }; typedef struct stack_st STACK; struct bio_st; struct crypto_ex_data_st { STACK *sk ; int dummy ; }; typedef struct crypto_ex_data_st CRYPTO_EX_DATA; typedef struct bio_st BIO; typedef void bio_info_cb(struct bio_st * , int , char const * , int , long , long );struct bio_method_st { int type ; char const *name ; int (*bwrite)(BIO * , char const * , int ) ; int (*bread)(BIO * , char * , int ) ; int (*bputs)(BIO * , char const * ) ; int (*bgets)(BIO * , char * , int ) ; long (*ctrl)(BIO * , int , long , void * ) ; int (*create)(BIO * ) ; int (*destroy)(BIO * ) ; long (*callback_ctrl)(BIO * , int , bio_info_cb * ) ; }; typedef struct bio_method_st BIO_METHOD; struct bio_st { BIO_METHOD *method ; long (*callback)(struct bio_st * , int , char const * , int , long , long ) ; char *cb_arg ; int init ; int shutdown ; int flags ; int retry_reason ; int num ; void *ptr ; struct bio_st *next_bio ; struct bio_st *prev_bio ; int references ; unsigned long num_read ; unsigned long num_write ; CRYPTO_EX_DATA ex_data ; }; struct bignum_st { unsigned long *d ; int top ; int dmax ; int neg ; int flags ; }; typedef struct bignum_st BIGNUM; struct bignum_ctx { int tos ; BIGNUM bn[16] ; int flags ; int depth ; int pos[12] ; int too_many ; }; typedef struct bignum_ctx BN_CTX; struct bn_blinding_st { int init ; BIGNUM *A ; BIGNUM *Ai ; BIGNUM *mod ; }; typedef struct bn_blinding_st BN_BLINDING; struct bn_mont_ctx_st { int ri ; BIGNUM RR ; BIGNUM N ; BIGNUM Ni ; unsigned long n0 ; int flags ; }; typedef struct bn_mont_ctx_st BN_MONT_CTX; struct X509_algor_st;struct X509_algor_st; struct asn1_object_st { char const *sn ; char const *ln ; int nid ; int length ; unsigned char *data ; int flags ; }; typedef struct asn1_object_st ASN1_OBJECT; struct asn1_string_st { int length ; int type ; unsigned char *data ; long flags ; }; typedef struct asn1_string_st ASN1_STRING; typedef struct asn1_string_st ASN1_INTEGER; typedef struct asn1_string_st ASN1_ENUMERATED; typedef struct asn1_string_st ASN1_BIT_STRING; typedef struct asn1_string_st ASN1_OCTET_STRING; typedef struct asn1_string_st ASN1_PRINTABLESTRING; typedef struct asn1_string_st ASN1_T61STRING; typedef struct asn1_string_st ASN1_IA5STRING; typedef struct asn1_string_st ASN1_GENERALSTRING; typedef struct asn1_string_st ASN1_UNIVERSALSTRING; typedef struct asn1_string_st ASN1_BMPSTRING; typedef struct asn1_string_st ASN1_UTCTIME; typedef struct asn1_string_st ASN1_TIME; typedef struct asn1_string_st ASN1_GENERALIZEDTIME; typedef struct asn1_string_st ASN1_VISIBLESTRING; typedef struct asn1_string_st ASN1_UTF8STRING; typedef int ASN1_BOOLEAN; union __anonunion_value_19 { char *ptr ; ASN1_BOOLEAN boolean ; ASN1_STRING *asn1_string ; ASN1_OBJECT *object ; ASN1_INTEGER *integer ; ASN1_ENUMERATED *enumerated ; ASN1_BIT_STRING *bit_string ; ASN1_OCTET_STRING *octet_string ; ASN1_PRINTABLESTRING *printablestring ; ASN1_T61STRING *t61string ; ASN1_IA5STRING *ia5string ; ASN1_GENERALSTRING *generalstring ; ASN1_BMPSTRING *bmpstring ; ASN1_UNIVERSALSTRING *universalstring ; ASN1_UTCTIME *utctime ; ASN1_GENERALIZEDTIME *generalizedtime ; ASN1_VISIBLESTRING *visiblestring ; ASN1_UTF8STRING *utf8string ; ASN1_STRING *set ; ASN1_STRING *sequence ; }; struct asn1_type_st { int type ; union __anonunion_value_19 value ; }; typedef struct asn1_type_st ASN1_TYPE; struct MD5state_st { unsigned int A ; unsigned int B ; unsigned int C ; unsigned int D ; unsigned int Nl ; unsigned int Nh ; unsigned int data[16] ; int num ; }; typedef struct MD5state_st MD5_CTX; struct SHAstate_st { unsigned int h0 ; unsigned int h1 ; unsigned int h2 ; unsigned int h3 ; unsigned int h4 ; unsigned int Nl ; unsigned int Nh ; unsigned int data[16] ; int num ; }; typedef struct SHAstate_st SHA_CTX; struct MD2state_st { int num ; unsigned char data[16] ; unsigned int cksm[16] ; unsigned int state[16] ; }; typedef struct MD2state_st MD2_CTX; struct MD4state_st { unsigned int A ; unsigned int B ; unsigned int C ; unsigned int D ; unsigned int Nl ; unsigned int Nh ; unsigned int data[16] ; int num ; }; typedef struct MD4state_st MD4_CTX; struct RIPEMD160state_st { unsigned int A ; unsigned int B ; unsigned int C ; unsigned int D ; unsigned int E ; unsigned int Nl ; unsigned int Nh ; unsigned int data[16] ; int num ; }; typedef struct RIPEMD160state_st RIPEMD160_CTX; typedef unsigned char des_cblock[8]; union __anonunion_ks_20 { des_cblock cblock ; unsigned long deslong[2] ; }; struct des_ks_struct { union __anonunion_ks_20 ks ; int weak_key ; }; typedef struct des_ks_struct des_key_schedule[16]; struct rc4_key_st { unsigned int x ; unsigned int y ; unsigned int data[256] ; }; typedef struct rc4_key_st RC4_KEY; struct rc2_key_st { unsigned int data[64] ; }; typedef struct rc2_key_st RC2_KEY; struct rc5_key_st { int rounds ; unsigned long data[34] ; }; typedef struct rc5_key_st RC5_32_KEY; struct bf_key_st { unsigned int P[18] ; unsigned int S[1024] ; }; typedef struct bf_key_st BF_KEY; struct cast_key_st { unsigned long data[32] ; int short_key ; }; typedef struct cast_key_st CAST_KEY; struct idea_key_st { unsigned int data[9][6] ; }; typedef struct idea_key_st IDEA_KEY_SCHEDULE; struct mdc2_ctx_st { int num ; unsigned char data[8] ; des_cblock h ; des_cblock hh ; int pad_type ; }; typedef struct mdc2_ctx_st MDC2_CTX; struct rsa_st;typedef struct rsa_st RSA; struct rsa_meth_st { char const *name ; int (*rsa_pub_enc)(int flen1 , unsigned char *from1 , unsigned char *to1 , RSA *rsa1 , int padding1 ) ; int (*rsa_pub_dec)(int flen2 , unsigned char *from2 , unsigned char *to2 , RSA *rsa2 , int padding2 ) ; int (*rsa_priv_enc)(int flen3 , unsigned char *from3 , unsigned char *to3 , RSA *rsa3 , int padding3 ) ; int (*rsa_priv_dec)(int flen4 , unsigned char *from4 , unsigned char *to4 , RSA *rsa4 , int padding4 ) ; int (*rsa_mod_exp)(BIGNUM *r0 , BIGNUM *I , RSA *rsa ) ; int (*bn_mod_exp)(BIGNUM *r , BIGNUM *a , BIGNUM const *p , BIGNUM const *m , BN_CTX *ctx , BN_MONT_CTX *m_ctx ) ; int (*init)(RSA *rsa11 ) ; int (*finish)(RSA *rsa12 ) ; int flags ; char *app_data ; int (*rsa_sign)(int type5 , unsigned char *m5 , unsigned int m_len5 , unsigned char *sigret5 , unsigned int *siglen5 , RSA *rsa5 ) ; int (*rsa_verify)(int dtype6 , unsigned char *m6 , unsigned int m_len6 , unsigned char *sigbuf6 , unsigned int siglen6 , RSA *rsa6 ) ; }; typedef struct rsa_meth_st RSA_METHOD; struct rsa_st { int pad ; int version ; RSA_METHOD *meth ; BIGNUM *n ; BIGNUM *e ; BIGNUM *d ; BIGNUM *p ; BIGNUM *q ; BIGNUM *dmp1 ; BIGNUM *dmq1 ; BIGNUM *iqmp ; CRYPTO_EX_DATA ex_data ; int references ; int flags ; BN_MONT_CTX *_method_mod_n ; BN_MONT_CTX *_method_mod_p ; BN_MONT_CTX *_method_mod_q ; char *bignum_data ; BN_BLINDING *blinding ; }; struct dh_st;typedef struct dh_st DH; struct dh_method { char const *name ; int (*generate_key)(DH *dh1 ) ; int (*compute_key)(unsigned char *key2, BIGNUM *pub_key2 , DH *dh2 ) ; int (*bn_mod_exp)(DH *dh3 , BIGNUM *r3 , BIGNUM *a3 , BIGNUM const *p3 , BIGNUM const *m3 , BN_CTX *ctx3 , BN_MONT_CTX *m_ctx3 ) ; int (*init)(DH *dh4 ) ; int (*finish)(DH *dh5 ) ; int flags ; char *app_data ; }; typedef struct dh_method DH_METHOD; struct dh_st { int pad ; int version ; BIGNUM *p ; BIGNUM *g ; int length ; BIGNUM *pub_key ; BIGNUM *priv_key ; int flags ; char *method_mont_p ; BIGNUM *q ; BIGNUM *j ; unsigned char *seed ; int seedlen ; BIGNUM *counter ; int references ; CRYPTO_EX_DATA ex_data ; DH_METHOD *meth ; }; struct dsa_st;typedef struct dsa_st DSA; struct DSA_SIG_st { BIGNUM *r ; BIGNUM *s ; }; typedef struct DSA_SIG_st DSA_SIG; struct dsa_method { char const *name ; DSA_SIG *(*dsa_do_sign)(unsigned char const *dgst1 , int dlen1 , DSA *dsa1 ) ; int (*dsa_sign_setup)(DSA *dsa2 , BN_CTX *ctx_in2 , BIGNUM **kinvp2 , BIGNUM **rp2 ) ; int (*dsa_do_verify)(unsigned char const *dgst3 , int dgst_len3 , DSA_SIG *sig3 , DSA *dsa3 ) ; int (*dsa_mod_exp)(DSA *dsa4 , BIGNUM *rr4 , BIGNUM *a14 , BIGNUM *p14 , BIGNUM *a24 , BIGNUM *p24 , BIGNUM *m4 , BN_CTX *ctx4 , BN_MONT_CTX *in_mont4 ) ; int (*bn_mod_exp)(DSA *dsa5 , BIGNUM *r5 , BIGNUM *a5 , BIGNUM const *p5 , BIGNUM const *m5 , BN_CTX *ctx5 , BN_MONT_CTX *m_ctx5 ) ; int (*init)(DSA *dsa6 ) ; int (*finish)(DSA *dsa7 ) ; int flags ; char *app_data ; }; typedef struct dsa_method DSA_METHOD; struct dsa_st { int pad ; int version ; int write_params ; BIGNUM *p ; BIGNUM *q ; BIGNUM *g ; BIGNUM *pub_key ; BIGNUM *priv_key ; BIGNUM *kinv ; BIGNUM *r ; int flags ; char *method_mont_p ; int references ; CRYPTO_EX_DATA ex_data ; DSA_METHOD *meth ; }; union __anonunion_pkey_21 { char *ptr ; struct rsa_st *rsa ; struct dsa_st *dsa ; struct dh_st *dh ; }; struct evp_pkey_st { int type ; int save_type ; int references ; union __anonunion_pkey_21 pkey ; int save_parameters ; STACK *attributes ; }; typedef struct evp_pkey_st EVP_PKEY; struct env_md_st { int type ; int pkey_type ; int md_size ; void (*init)() ; void (*update)() ; void (*final)() ; int (*sign)() ; int (*verify)() ; int required_pkey_type[5] ; int block_size ; int ctx_size ; }; typedef struct env_md_st EVP_MD; union __anonunion_md_22 { unsigned char base[4] ; MD2_CTX md2 ; MD5_CTX md5 ; MD4_CTX md4 ; RIPEMD160_CTX ripemd160 ; SHA_CTX sha ; MDC2_CTX mdc2 ; }; struct env_md_ctx_st { EVP_MD const *digest ; union __anonunion_md_22 md ; }; typedef struct env_md_ctx_st EVP_MD_CTX; struct evp_cipher_st;typedef struct evp_cipher_st EVP_CIPHER; struct evp_cipher_ctx_st;typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX; struct evp_cipher_st { int nid ; int block_size ; int key_len ; int iv_len ; unsigned long flags ; int (*init)(EVP_CIPHER_CTX *ctx1 , unsigned char const *key1 , unsigned char const *iv1 , int enc1 ) ; int (*do_cipher)(EVP_CIPHER_CTX *ctx2 , unsigned char *out2 , unsigned char const *in2 , unsigned int inl2 ) ; int (*cleanup)(EVP_CIPHER_CTX * ) ; int ctx_size ; int (*set_asn1_parameters)(EVP_CIPHER_CTX * , ASN1_TYPE * ) ; int (*get_asn1_parameters)(EVP_CIPHER_CTX * , ASN1_TYPE * ) ; int (*ctrl)(EVP_CIPHER_CTX * , int type , int arg , void *ptr ) ; void *app_data ; }; struct __anonstruct_rc4_24 { unsigned char key[16] ; RC4_KEY ks ; }; struct __anonstruct_desx_cbc_25 { des_key_schedule ks ; des_cblock inw ; des_cblock outw ; }; struct __anonstruct_des_ede_26 { des_key_schedule ks1 ; des_key_schedule ks2 ; des_key_schedule ks3 ; }; struct __anonstruct_rc2_27 { int key_bits ; RC2_KEY ks ; }; struct __anonstruct_rc5_28 { int rounds ; RC5_32_KEY ks ; }; union __anonunion_c_23 { struct __anonstruct_rc4_24 rc4 ; des_key_schedule des_ks ; struct __anonstruct_desx_cbc_25 desx_cbc ; struct __anonstruct_des_ede_26 des_ede ; IDEA_KEY_SCHEDULE idea_ks ; struct __anonstruct_rc2_27 rc2 ; struct __anonstruct_rc5_28 rc5 ; BF_KEY bf_ks ; CAST_KEY cast_ks ; }; struct evp_cipher_ctx_st { EVP_CIPHER const *cipher ; int encrypt ; int buf_len ; unsigned char oiv[8] ; unsigned char iv[8] ; unsigned char buf[8] ; int num ; void *app_data ; int key_len ; union __anonunion_c_23 c ; }; struct X509_algor_st { ASN1_OBJECT *algorithm ; ASN1_TYPE *parameter ; }; typedef struct X509_algor_st X509_ALGOR; struct X509_val_st { ASN1_TIME *notBefore ; ASN1_TIME *notAfter ; }; typedef struct X509_val_st X509_VAL; struct X509_pubkey_st { X509_ALGOR *algor ; ASN1_BIT_STRING *public_key ; EVP_PKEY *pkey ; }; typedef struct X509_pubkey_st X509_PUBKEY; struct X509_name_st { STACK *entries ; int modified ; BUF_MEM *bytes ; unsigned long hash ; }; typedef struct X509_name_st X509_NAME; struct x509_cinf_st { ASN1_INTEGER *version ; ASN1_INTEGER *serialNumber ; X509_ALGOR *signature ; X509_NAME *issuer ; X509_VAL *validity ; X509_NAME *subject ; X509_PUBKEY *key ; ASN1_BIT_STRING *issuerUID ; ASN1_BIT_STRING *subjectUID ; STACK *extensions ; }; typedef struct x509_cinf_st X509_CINF; struct x509_cert_aux_st { STACK *trust ; STACK *reject ; ASN1_UTF8STRING *alias ; ASN1_OCTET_STRING *keyid ; STACK *other ; }; typedef struct x509_cert_aux_st X509_CERT_AUX; struct AUTHORITY_KEYID_st;struct x509_st { X509_CINF *cert_info ; X509_ALGOR *sig_alg ; ASN1_BIT_STRING *signature ; int valid ; int references ; char *name ; CRYPTO_EX_DATA ex_data ; long ex_pathlen ; unsigned long ex_flags ; unsigned long ex_kusage ; unsigned long ex_xkusage ; unsigned long ex_nscert ; ASN1_OCTET_STRING *skid ; struct AUTHORITY_KEYID_st *akid ; unsigned char sha1_hash[20] ; X509_CERT_AUX *aux ; }; typedef struct x509_st X509; struct lhash_node_st { void *data ; struct lhash_node_st *next ; unsigned long hash ; }; typedef struct lhash_node_st LHASH_NODE; struct lhash_st { LHASH_NODE **b ; int (*comp)() ; unsigned long (*hash)() ; unsigned int num_nodes ; unsigned int num_alloc_nodes ; unsigned int p ; unsigned int pmax ; unsigned long up_load ; unsigned long down_load ; unsigned long num_items ; unsigned long num_expands ; unsigned long num_expand_reallocs ; unsigned long num_contracts ; unsigned long num_contract_reallocs ; unsigned long num_hash_calls ; unsigned long num_comp_calls ; unsigned long num_insert ; unsigned long num_replace ; unsigned long num_delete ; unsigned long num_no_delete ; unsigned long num_retrieve ; unsigned long num_retrieve_miss ; unsigned long num_hash_comps ; int error ; }; struct x509_store_ctx_st;typedef struct x509_store_ctx_st X509_STORE_CTX; struct x509_store_st { int cache ; STACK *objs ; STACK *get_cert_methods ; int (*verify)(X509_STORE_CTX *ctx1 ) ; int (*verify_cb)(int ok , X509_STORE_CTX *ctx2 ) ; CRYPTO_EX_DATA ex_data ; int references ; int depth ; }; typedef struct x509_store_st X509_STORE; struct x509_store_ctx_st { X509_STORE *ctx ; int current_method ; X509 *cert ; STACK *untrusted ; int purpose ; int trust ; time_t check_time ; unsigned long flags ; void *other_ctx ; int (*verify)(X509_STORE_CTX *ctx1 ) ; int (*verify_cb)(int ok , X509_STORE_CTX *ctx2) ; int (*get_issuer)(X509 **issuer3 , X509_STORE_CTX *ctx3 , X509 *x3 ) ; int (*check_issued)(X509_STORE_CTX *ctx4 , X509 *x4 , X509 *issuer4 ) ; int (*cleanup)(X509_STORE_CTX *ctx5 ) ; int depth ; int valid ; int last_untrusted ; STACK *chain ; int error_depth ; int error ; X509 *current_cert ; X509 *current_issuer ; CRYPTO_EX_DATA ex_data ; }; struct comp_method_st { int type ; char const *name ; int (*init)() ; void (*finish)() ; int (*compress)() ; int (*expand)() ; long (*ctrl)() ; long (*callback_ctrl)() ; }; typedef struct comp_method_st COMP_METHOD; struct comp_ctx_st { COMP_METHOD *meth ; unsigned long compress_in ; unsigned long compress_out ; unsigned long expand_in ; unsigned long expand_out ; CRYPTO_EX_DATA ex_data ; }; typedef struct comp_ctx_st COMP_CTX; typedef int pem_password_cb(char *buf , int size , int rwflag , void *userdata ); struct ssl_st; struct ssl_cipher_st { int valid ; char const *name ; unsigned long id ; unsigned long algorithms ; unsigned long algo_strength ; unsigned long algorithm2 ; int strength_bits ; int alg_bits ; unsigned long mask ; unsigned long mask_strength ; }; typedef struct ssl_cipher_st SSL_CIPHER; typedef struct ssl_st SSL; struct ssl_ctx_st;typedef struct ssl_ctx_st SSL_CTX; struct ssl3_enc_method;struct ssl_method_st { int version ; int (*ssl_new)(SSL *s1 ) ; void (*ssl_clear)(SSL *s2 ) ; void (*ssl_free)(SSL *s3 ) ; int (*ssl_accept)(SSL *s4 ) ; int (*ssl_connect)(SSL *s5 ) ; int (*ssl_read)(SSL *s6 , void *buf6 , int len6 ) ; int (*ssl_peek)(SSL *s7 , void *buf7 , int len7 ) ; int (*ssl_write)(SSL *s8 , void const *buf8 , int len8 ) ; int (*ssl_shutdown)(SSL *s9 ) ; int (*ssl_renegotiate)(SSL *s10 ) ; int (*ssl_renegotiate_check)(SSL *s11 ) ; long (*ssl_ctrl)(SSL *s12 , int cmd12 , long larg12 , char *parg12 ) ; long (*ssl_ctx_ctrl)(SSL_CTX *ctx13 , int cmd13 , long larg13 , char *parg13 ) ; SSL_CIPHER *(*get_cipher_by_char)(unsigned char const *ptr14 ) ; int (*put_cipher_by_char)(SSL_CIPHER const *cipher15 , unsigned char *ptr15 ) ; int (*ssl_pending)(SSL *s16 ) ; int (*num_ciphers)(void) ; SSL_CIPHER *(*get_cipher)(unsigned int ncipher17 ) ; struct ssl_method_st *(*get_ssl_method)(int version18 ) ; long (*get_timeout)(void) ; struct ssl3_enc_method *ssl3_enc ; int (*ssl_version)() ; // long (*ssl_callback_ctrl)(SSL *s , int cb_id , void (*fp)() ) ; //long (*ssl_ctx_callback_ctrl)(SSL_CTX *s , int cb_id , void (*fp)() ) ; }; typedef struct ssl_method_st SSL_METHOD; struct sess_cert_st;struct ssl_session_st { int ssl_version ; unsigned int key_arg_length ; unsigned char key_arg[8] ; int master_key_length ; unsigned char master_key[48] ; unsigned int session_id_length ; unsigned char session_id[32] ; unsigned int sid_ctx_length ; unsigned char sid_ctx[32] ; int not_resumable ; struct sess_cert_st *sess_cert ; X509 *peer ; long verify_result ; int references ; long timeout ; long time ; int compress_meth ; SSL_CIPHER *cipher ; unsigned long cipher_id ; STACK *ciphers ; CRYPTO_EX_DATA ex_data ; struct ssl_session_st *prev ; struct ssl_session_st *next ; }; typedef struct ssl_session_st SSL_SESSION; struct ssl_comp_st { int id ; char *name ; COMP_METHOD *method ; }; typedef struct ssl_comp_st SSL_COMP; struct __anonstruct_stats_37 { int sess_connect ; int sess_connect_renegotiate ; int sess_connect_good ; int sess_accept ; int sess_accept_renegotiate ; int sess_accept_good ; int sess_miss ; int sess_timeout ; int sess_cache_full ; int sess_hit ; int sess_cb_hit ; }; struct cert_st;struct ssl_ctx_st { SSL_METHOD *method ; unsigned long options ; unsigned long mode ; STACK *cipher_list ; STACK *cipher_list_by_id ; struct x509_store_st *cert_store ; struct lhash_st *sessions ; unsigned long session_cache_size ; struct ssl_session_st *session_cache_head ; struct ssl_session_st *session_cache_tail ; int session_cache_mode ; long session_timeout ; int (*new_session_cb)(struct ssl_st *ssl1 , SSL_SESSION *sess1 ) ; void (*remove_session_cb)(struct ssl_ctx_st *ctx2 , SSL_SESSION *sess2 ) ; SSL_SESSION *(*get_session_cb)(struct ssl_st *ssl3 , unsigned char *data3 , int len3 , int *copy3 ) ; struct __anonstruct_stats_37 stats ; int references ; void (*info_callback)() ; int (*app_verify_callback)() ; char *app_verify_arg ; struct cert_st *cert ; int read_ahead ; int verify_mode ; int verify_depth ; unsigned int sid_ctx_length ; unsigned char sid_ctx[32] ; int (*default_verify_callback)(int ok4 , X509_STORE_CTX *ctx4 ) ; int purpose ; int trust ; pem_password_cb *default_passwd_callback ; void *default_passwd_callback_userdata ; int (*client_cert_cb)() ; STACK *client_CA ; int quiet_shutdown ; CRYPTO_EX_DATA ex_data ; EVP_MD const *rsa_md5 ; EVP_MD const *md5 ; EVP_MD const *sha1 ; STACK *extra_certs ; STACK *comp_methods ; }; struct ssl2_state_st;struct ssl3_state_st;struct ssl_st { int version ; int type ; SSL_METHOD *method ; BIO *rbio ; BIO *wbio ; BIO *bbio ; int rwstate ; int in_handshake ; int (*handshake_func)() ; int server ; int new_session ; int quiet_shutdown ; int shutdown ; int state ; int rstate ; BUF_MEM *init_buf ; int init_num ; int init_off ; unsigned char *packet ; unsigned int packet_length ; struct ssl2_state_st *s2 ; struct ssl3_state_st *s3 ; int read_ahead ; int hit ; int purpose ; int trust ; STACK *cipher_list ; STACK *cipher_list_by_id ; EVP_CIPHER_CTX *enc_read_ctx ; EVP_MD const *read_hash ; COMP_CTX *expand ; EVP_CIPHER_CTX *enc_write_ctx ; EVP_MD const *write_hash ; COMP_CTX *compress ; struct cert_st *cert ; unsigned int sid_ctx_length ; unsigned char sid_ctx[32] ; SSL_SESSION *session ; int verify_mode ; int verify_depth ; int (*verify_callback)(int ok , X509_STORE_CTX *ctx ) ; void (*info_callback)() ; int error ; int error_code ; SSL_CTX *ctx ; int debug ; long verify_result ; CRYPTO_EX_DATA ex_data ; STACK *client_CA ; int references ; unsigned long options ; unsigned long mode ; int first_packet ; int client_version ; }; struct __anonstruct_tmp_38 { unsigned int conn_id_length ; unsigned int cert_type ; unsigned int cert_length ; unsigned int csl ; unsigned int clear ; unsigned int enc ; unsigned char ccl[32] ; unsigned int cipher_spec_length ; unsigned int session_id_length ; unsigned int clen ; unsigned int rlen ; }; struct ssl2_state_st { int three_byte_header ; int clear_text ; int escape ; int ssl2_rollback ; unsigned int wnum ; int wpend_tot ; unsigned char const *wpend_buf ; int wpend_off ; int wpend_len ; int wpend_ret ; int rbuf_left ; int rbuf_offs ; unsigned char *rbuf ; unsigned char *wbuf ; unsigned char *write_ptr ; unsigned int padding ; unsigned int rlength ; int ract_data_length ; unsigned int wlength ; int wact_data_length ; unsigned char *ract_data ; unsigned char *wact_data ; unsigned char *mac_data ; unsigned char *pad_data_UNUSED ; unsigned char *read_key ; unsigned char *write_key ; unsigned int challenge_length ; unsigned char challenge[32] ; unsigned int conn_id_length ; unsigned char conn_id[16] ; unsigned int key_material_length ; unsigned char key_material[48] ; unsigned long read_sequence ; unsigned long write_sequence ; struct __anonstruct_tmp_38 tmp ; }; struct ssl3_record_st { int type ; unsigned int length ; unsigned int off ; unsigned char *data ; unsigned char *input ; unsigned char *comp ; }; typedef struct ssl3_record_st SSL3_RECORD; struct ssl3_buffer_st { unsigned char *buf ; int offset ; int left ; }; typedef struct ssl3_buffer_st SSL3_BUFFER; struct __anonstruct_tmp_39 { unsigned char cert_verify_md[72] ; unsigned char finish_md[72] ; int finish_md_len ; unsigned char peer_finish_md[72] ; int peer_finish_md_len ; unsigned long message_size ; int message_type ; SSL_CIPHER *new_cipher ; DH *dh ; int next_state ; int reuse_message ; int cert_req ; int ctype_num ; char ctype[7] ; STACK *ca_names ; int use_rsa_tmp ; int key_block_length ; unsigned char *key_block ; EVP_CIPHER const *new_sym_enc ; EVP_MD const *new_hash ; SSL_COMP const *new_compression ; int cert_request ; }; struct ssl3_state_st { long flags ; int delay_buf_pop_ret ; unsigned char read_sequence[8] ; unsigned char read_mac_secret[36] ; unsigned char write_sequence[8] ; unsigned char write_mac_secret[36] ; unsigned char server_random[32] ; unsigned char client_random[32] ; SSL3_BUFFER rbuf ; SSL3_BUFFER wbuf ; SSL3_RECORD rrec ; SSL3_RECORD wrec ; unsigned char alert_fragment[2] ; unsigned int alert_fragment_len ; unsigned char handshake_fragment[4] ; unsigned int handshake_fragment_len ; unsigned int wnum ; int wpend_tot ; int wpend_type ; int wpend_ret ; unsigned char const *wpend_buf ; EVP_MD_CTX finish_dgst1 ; EVP_MD_CTX finish_dgst2 ; int change_cipher_spec ; int warn_alert ; int fatal_alert ; int alert_dispatch ; unsigned char send_alert[2] ; int renegotiate ; int total_renegotiations ; int num_renegotiations ; int in_read_app_data ; struct __anonstruct_tmp_39 tmp ; }; struct cert_pkey_st { X509 *x509 ; EVP_PKEY *privatekey ; }; typedef struct cert_pkey_st CERT_PKEY; struct cert_st { CERT_PKEY *key ; int valid ; unsigned long mask ; unsigned long export_mask ; RSA *rsa_tmp ; RSA *(*rsa_tmp_cb)(SSL *ssl1 , int is_export1 , int keysize1 ) ; DH *dh_tmp ; DH *(*dh_tmp_cb)(SSL *ssl2 , int is_export2 , int keysize2 ) ; CERT_PKEY pkeys[5] ; int references ; }; typedef struct cert_st CERT; struct sess_cert_st { STACK *cert_chain ; int peer_cert_type ; CERT_PKEY *peer_key ; CERT_PKEY peer_pkeys[5] ; RSA *peer_rsa_tmp ; DH *peer_dh_tmp ; int references ; }; typedef struct sess_cert_st SESS_CERT; struct ssl3_enc_method { int (*enc)(SSL * , int ) ; int (*mac)(SSL * , unsigned char * , int ) ; int (*setup_key_block)(SSL * ) ; int (*generate_master_secret)(SSL * , unsigned char * , unsigned char * , int ) ; int (*change_cipher_state)(SSL * , int ) ; int (*final_finish_mac)(SSL * , EVP_MD_CTX * , EVP_MD_CTX * , char const * , int , unsigned char * ) ; int finish_mac_length ; int (*cert_verify_mac)(SSL * , EVP_MD_CTX * , unsigned char * ) ; char const *client_finished_label ; int client_finished_label_len ; char const *server_finished_label ; int server_finished_label_len ; int (*alert_value)(int ) ; }; extern BUF_MEM *BUF_MEM_new(void) ; extern void BUF_MEM_free(BUF_MEM *a ) ; extern int BUF_MEM_grow(BUF_MEM *str , int len ) ; extern int RAND_pseudo_bytes(unsigned char *buf , int num ) ; extern void RAND_add(void const *buf , int num , double entropy ) ; extern int sk_num(STACK const * ) ; extern char *sk_value(STACK const * , int ) ; extern STACK *sk_new_null(void) ; extern void sk_free(STACK * ) ; extern void sk_pop_free(STACK *st , void (*func)(void * ) ) ; extern int sk_push(STACK *st , char *data ) ; extern char *sk_shift(STACK *st ) ; extern int CRYPTO_add_lock(int *pointer , int amount , int type , char const *file , int line ) ; extern long BIO_ctrl(BIO *bp , int cmd , long larg , void *parg ) ; extern time_t time(time_t *__timer ) ; extern int BN_num_bits(BIGNUM const *a ) ; extern void BN_clear_free(BIGNUM *a ) ; extern BIGNUM *BN_bin2bn(unsigned char const *s , int len , BIGNUM *ret ) ; extern int BN_bn2bin(BIGNUM const *a , unsigned char *to ) ; extern BIGNUM *BN_dup(BIGNUM const *a ) ; extern char *ASN1_dup(int (*i2d)() , char *(*d2i)() , char *x ) ; extern int RSA_private_decrypt(int flen , unsigned char *from , unsigned char *to , RSA *rsa , int padding ) ; extern int RSA_sign(int type , unsigned char *m , unsigned int m_len , unsigned char *sigret , unsigned int *siglen , RSA *rsa ) ; extern int RSA_verify(int type , unsigned char *m , unsigned int m_len , unsigned char *sigbuf , unsigned int siglen , RSA *rsa ) ; extern void DH_free(DH *dh ) ; extern int DH_generate_key(DH *dh ) ; extern int DH_compute_key(unsigned char *key , BIGNUM *pub_key , DH *dh ) ; extern DH *d2i_DHparams(DH **a , unsigned char **pp , long length ) ; extern int i2d_DHparams(DH *a , unsigned char **pp ) ; extern int DSA_verify(int type , unsigned char const *dgst , int dgst_len , unsigned char *sigbuf , int siglen , DSA *dsa ) ; extern void EVP_DigestInit(EVP_MD_CTX *ctx , EVP_MD const *type ) ; extern void EVP_DigestUpdate(EVP_MD_CTX *ctx , void const *d , unsigned int cnt ) ; extern void EVP_DigestFinal(EVP_MD_CTX *ctx , unsigned char *md , unsigned int *s ) ; extern int EVP_SignFinal(EVP_MD_CTX *ctx , unsigned char *md , unsigned int *s , EVP_PKEY *pkey ) ; extern EVP_MD *EVP_dss1(void) ; extern int EVP_PKEY_size(EVP_PKEY *pkey ) ; extern void EVP_PKEY_free(EVP_PKEY *pkey ) ; extern int i2d_X509_NAME(X509_NAME *a , unsigned char **pp ) ; extern void X509_free(X509 *a ) ; extern X509 *d2i_X509(X509 **a , unsigned char **pp , long length ) ; extern EVP_PKEY *X509_get_pubkey(X509 *x ) ; extern int X509_certificate_type(X509 *x , EVP_PKEY *pubkey ) ; extern void *memcpy(void * __dest , void * __src , size_t __n ) ; extern void *memset(void *__s , int __c , size_t __n ) ; extern int *__errno_location(void) ; extern void ERR_put_error(int lib , int func , int reason , char *file , int line ) ; extern void ERR_clear_error(void) ; extern int SSL_clear(SSL *s ) ; extern STACK *SSL_get_client_CA_list(SSL *s ) ; extern int SSL_state(SSL *ssl ) ; extern SSL_METHOD *sslv3_base_method(void) ; extern SESS_CERT *ssl_sess_cert_new(void) ; extern int ssl_get_new_session(SSL *s , int session ) ; extern int ssl_get_prev_session(SSL *s , unsigned char *session , int len ) ; extern STACK *ssl_bytes_to_cipher_list(SSL *s , unsigned char *p , int num , STACK **skp ) ; extern void ssl_update_cache(SSL *s , int mode ) ; extern int ssl_verify_cert_chain(SSL *s , STACK *sk ) ; extern X509 *ssl_get_server_send_cert(SSL * ) ; extern EVP_PKEY *ssl_get_sign_pkey(SSL * , SSL_CIPHER * ) ; extern STACK *ssl_get_ciphers_by_id(SSL *s ) ; extern int ssl_verify_alarm_type(long type ) ; extern int ssl3_put_cipher_by_char(SSL_CIPHER *c , unsigned char *p ) ; extern void ssl3_init_finished_mac(SSL *s ) ; extern int ssl3_get_finished(SSL *s , int state_a , int state_b ) ; extern int ssl3_send_change_cipher_spec(SSL *s , int state_a , int state_b ) ; extern void ssl3_cleanup_key_block(SSL *s ) ; extern int ssl3_do_write(SSL *s , int type ) ; extern void ssl3_send_alert(SSL *s , int level , int desc ) ; extern int ssl3_get_req_cert_type(SSL *s , unsigned char *p ) ; extern long ssl3_get_message(SSL *s , int st1 , int stn , int mt , long max , int *ok ) ; extern int ssl3_send_finished(SSL *s , int a , int b , char *sender , int slen ) ; extern unsigned long ssl3_output_cert_chain(SSL *s , X509 *x ) ; extern SSL_CIPHER *ssl3_choose_cipher(SSL *ssl , STACK *have , STACK *pref ) ; extern int ssl3_setup_buffers(SSL *s ) ; extern int ssl_init_wbio_buffer(SSL *s , int push ) ; extern void ssl_free_wbio_buffer(SSL *s ) ; int main() { SSL *s ; int myState ; // BEGIN ssl3_accept(s); BUF_MEM *buf ; unsigned long l ; unsigned long Time ; unsigned long tmp ; void (*cb)() ; long num1 ; int ret ; int new_state ; int state ; int skip ; int got_new_session ; int *tmp___0 ; int tmp___1 ; int tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; int tmp___6 ; int tmp___7 ; long tmp___8 ; int tmp___9 ; int tmp___10 ; int blastFlag; // *s = 0; s->state = 8464; myState = 8464; { blastFlag = 0; //tmp = (unsigned long )time((time_t *)((void *)0)); Time = tmp; cb = (void (*)())((void *)0); ret = -1; skip = 0; got_new_session = 0; //RAND_add((void const *)(& Time), (int )sizeof(Time), (double )0); //ERR_clear_error(); //tmp___0 = __errno_location(); (*tmp___0) = 0; if ((unsigned long )s->info_callback != (unsigned long )((void *)0)) { cb = s->info_callback; } else { if ((unsigned long )(s->ctx)->info_callback != (unsigned long )((void *)0)) { cb = (s->ctx)->info_callback; } } s->in_handshake ++; //tmp___1 = SSL_state(s); if (tmp___1 & 12288) { //tmp___2 = SSL_state(s); if (tmp___2 & 16384) { //SSL_clear(s); } } else { //SSL_clear(s); } if ((unsigned long )s->cert == (unsigned long )((void *)0)) { //ERR_put_error(20, 128, 179, (char const *)"s3_srvr.c", 187); return (-1); } while (1) { state = myState; //s->state; switch (myState /*s->state*/) { case 12292: s->new_session = 1; case 16384: ; case 8192: ; case 24576: ; case 8195: s->server = 1; if ((unsigned long )cb != (unsigned long )((void *)0)) { //((*cb))(s, 16, 1); } if (s->version >> 8 != 3) { //ERR_put_error(20, 128, 157, (char const *)"s3_srvr.c", 211); return (-1); } s->type = 8192; if ((unsigned long )s->init_buf == (unsigned long )((void *)0)) { //buf = BUF_MEM_new(); if ((unsigned long )buf == (unsigned long )((void *)0)) { ret = -1; goto end; } //tmp___3 = BUF_MEM_grow(buf, 16384); if (! tmp___3) { ret = -1; goto end; } s->init_buf = buf; } //tmp___4 = ssl3_setup_buffers(s); if (! tmp___4) { ret = -1; goto end; } s->init_num = 0; if (myState /*s->state*/ != 12292) { //tmp___5 = ssl_init_wbio_buffer(s, 1); if (! tmp___5) { ret = -1; goto end; } //ssl3_init_finished_mac(s); s->state = 8464; myState = 8464; (s->ctx)->stats.sess_accept ++; } else { (s->ctx)->stats.sess_accept_renegotiate ++; s->state = 8480; myState = 8480; } break; case 8480: ; case 8481: s->shutdown = 0; //ret = ssl3_send_hello_request(s); if (ret <= 0) { goto end; } (s->s3)->tmp.next_state = 8482; s->state = 8448; myState = 8448; s->init_num = 0; //ssl3_init_finished_mac(s); break; case 8482: s->state = 3; myState = 3; break; case 8464: ; case 8465: ; case 8466: s->shutdown = 0; //ret = ssl3_get_client_hello(s); if(blastFlag == 0) blastFlag = 1; if (ret <= 0) { goto end; } got_new_session = 1; s->state = 8496; myState = 8496; s->init_num = 0; break; case 8496: ; case 8497: //ret = ssl3_send_server_hello(s); if(blastFlag == 1) blastFlag = 2; if (ret <= 0) { goto end; } if (s->hit) { s->state = 8656; myState = 8656; } else { s->state = 8512; myState = 8512; } s->init_num = 0; break; case 8512: ; case 8513: ; if (((s->s3)->tmp.new_cipher)->algorithms & 256UL) { skip = 1; } else { //ret = ssl3_send_server_certificate(s); if (ret <= 0) { goto end; } } s->state = 8528; myState = 8528; s->init_num = 0; break; case 8528: ; case 8529: l = ((s->s3)->tmp.new_cipher)->algorithms; if (s->options & 2097152UL) { (s->s3)->tmp.use_rsa_tmp = 1; } else { (s->s3)->tmp.use_rsa_tmp = 0; } if ((s->s3)->tmp.use_rsa_tmp) { goto _L___0; } else { if (l & 30UL) { goto _L___0; } else { if (l & 1UL) { if ((unsigned long )(s->cert)->pkeys[0].privatekey == (unsigned long )((void *)0)) { goto _L___0; } else { if (((s->s3)->tmp.new_cipher)->algo_strength & 2UL) { //tmp___6 = EVP_PKEY_size((s->cert)->pkeys[0].privatekey); if (((s->s3)->tmp.new_cipher)->algo_strength & 4UL) { tmp___7 = 512; } else { tmp___7 = 1024; } if (tmp___6 * 8 > tmp___7) { _L___0: _L: //ret = ssl3_send_server_key_exchange(s); if (ret <= 0) { goto end; } } else { skip = 1; } } else { skip = 1; } } } else { skip = 1; } } } s->state = 8544; myState = 8544; s->init_num = 0; break; case 8544: ; case 8545: ; if (s->verify_mode & 1) { if ((unsigned long )(s->session)->peer != (unsigned long )((void *)0)) { if (s->verify_mode & 4) { skip = 1; (s->s3)->tmp.cert_request = 0; s->state = 8560; myState = 8560; } else { goto _L___2; } } else { _L___2: if (((s->s3)->tmp.new_cipher)->algorithms & 256UL) { if (s->verify_mode & 2) { goto _L___1; } else { skip = 1; (s->s3)->tmp.cert_request = 0; s->state = 8560; myState = 8560; } } else { _L___1: (s->s3)->tmp.cert_request = 1; //ret = ssl3_send_certificate_request(s); if (ret <= 0) { goto end; } s->state = 8448; myState = 8448; (s->s3)->tmp.next_state = 8576; s->init_num = 0; } } } else { skip = 1; (s->s3)->tmp.cert_request = 0; s->state = 8560; myState = 8560; } break; case 8560: ; case 8561: //ret = ssl3_send_server_done(s); if (ret <= 0) { goto end; } (s->s3)->tmp.next_state = 8576; s->state = 8448; myState = 8448; s->init_num = 0; break; case 8448: //num1 = BIO_ctrl(s->wbio, 3, 0L, (void *)0); if (num1 > 0L) { s->rwstate = 2; //tmp___8 = BIO_ctrl(s->wbio, 11, 0L, (void *)0); num1 = (long )((int )tmp___8); if (num1 <= 0L) { ret = -1; goto end; } s->rwstate = 1; } s->state = (s->s3)->tmp.next_state; // Should we shadow also (s->s3)->tmp.next_state? break; case 8576: ; case 8577: //ret = ssl3_check_client_hello(s); if (ret <= 0) { goto end; } if (ret == 2) { s->state = 8466; myState = 8466; } else { //ret = ssl3_get_client_certificate(s); if (ret <= 0) { goto end; } s->init_num = 0; s->state = 8592; myState = 8592; } break; case 8592: ; case 8593: //ret = ssl3_get_client_key_exchange(s); if (ret <= 0) { goto end; } s->state = 8608; myState = 8608; s->init_num = 0; //((*(((s->method)->ssl3_enc)->cert_verify_mac)))(s, & (s->s3)->finish_dgst1, & (s->s3)->tmp.cert_verify_md[0]); //((*(((s->method)->ssl3_enc)->cert_verify_mac)))(s, & (s->s3)->finish_dgst2, & (s->s3)->tmp.cert_verify_md[16]); break; case 8608: ; case 8609: //ret = ssl3_get_cert_verify(s); if (ret <= 0) { goto end; } s->state = 8640; myState = 8640; s->init_num = 0; break; case 8640: ; case 8641: //ret = ssl3_get_finished(s, 8640, 8641); if(blastFlag == 3) blastFlag = 4; if (ret <= 0) { goto end; } if (s->hit) { s->state = 3; myState = 3; } else { s->state = 8656; myState = 8656; } s->init_num = 0; break; case 8656: ; case 8657: (s->session)->cipher = (s->s3)->tmp.new_cipher; //tmp___9 = ((*(((s->method)->ssl3_enc)->setup_key_block)))(s); if (! tmp___9) { ret = -1; goto end; } //ret = ssl3_send_change_cipher_spec(s, 8656, 8657); if(blastFlag == 2) blastFlag = 3; if (ret <= 0) { goto end; } s->state = 8672; myState = 8672; s->init_num = 0; //tmp___10 = ((*(((s->method)->ssl3_enc)->change_cipher_state)))(s, 34); if (! tmp___10) { ret = -1; goto end; } break; case 8672: ; case 8673: //ret = ssl3_send_finished(s, 8672, 8673, ((s->method)->ssl3_enc)->server_finished_label,((s->method)->ssl3_enc)->server_finished_label_len); if(blastFlag == 4) blastFlag = 5; else _ABORT(blastFlag == 5); // if(blastFlag == 5) goto ERROR; // if (ret <= 0) { goto end; } s->state = 8448; myState = 8448; if (s->hit) { (s->s3)->tmp.next_state = 8640; } else { (s->s3)->tmp.next_state = 3; } s->init_num = 0; break; case 3: //ssl3_cleanup_key_block(s); //BUF_MEM_free(s->init_buf); s->init_buf = (BUF_MEM *)((void *)0); //ssl_free_wbio_buffer(s); s->init_num = 0; if (got_new_session) { s->new_session = 0; //ssl_update_cache(s, 2); (s->ctx)->stats.sess_accept_good ++; // TRACER s->handshake_func = (int (*)())(& ssl3_accept); if ((unsigned long )cb != (unsigned long )((void *)0)) { //((*cb))(s, 32, 1); } } ret = 1; goto end; default: //ERR_put_error(20, 128, 255, (char const *)"s3_srvr.c", 536); ret = -1; goto end; } if (! (s->s3)->tmp.reuse_message) { if (! skip) { if (s->debug) { //ret = (int )BIO_ctrl(s->wbio, 11, 0L, (void *)0); if (ret <= 0) { goto end; } } if ((unsigned long )cb != (unsigned long )((void *)0)) { if (myState /*s->state*/ != state) { new_state = myState /*s->state*/; /*s->state*/ myState = state; //((*cb))(s, 8193, 1); myState /*s->state*/ = new_state; } } } } skip = 0; } end: s->in_handshake --; if ((unsigned long )cb != (unsigned long )((void *)0)) { //((*cb))(s, 8194, ret); } return (ret); // ERROR: goto ERROR; } // END ssl3_accept(s); }
the_stack_data/154828479.c
/* ** EPITECH PROJECT, 2022 ** h ** File description: ** h */
the_stack_data/7164.c
#include <stdio.h> void main() { int a,b,sum,diff,multi,div,modulo; printf("Enter any two numbers:"); scanf("%d%d",&a,&b); sum=a+b; diff=a-b; multi=a*b; div=a/b; modulo=a%b; printf("\n"); printf("Sum of %d & %d = %d\n",a,b,sum); printf("\n"); printf("Difference of %d & %d = %d\n",a,b,diff); printf("\n"); printf("Product of %d & %d = %d\n",a,b,multi); printf("\n"); printf("Division of %d & %d = %d\n",a,b,div); printf("\n"); printf("Modulo of %d & %d = %d\n",a,b,modulo); getch(); }
the_stack_data/3263474.c
/* Taxonomy Classification: 0000000100000022000010 */ /* * WRITE/READ 0 write * WHICH BOUND 0 upper * DATA TYPE 0 char * MEMORY LOCATION 0 stack * SCOPE 0 same * CONTAINER 0 no * POINTER 0 no * INDEX COMPLEXITY 1 variable * ADDRESS COMPLEXITY 0 constant * LENGTH COMPLEXITY 0 N/A * ADDRESS ALIAS 0 none * INDEX ALIAS 0 none * LOCAL CONTROL FLOW 0 none * SECONDARY CONTROL FLOW 0 none * LOOP STRUCTURE 2 do-while * LOOP COMPLEXITY 2 one * ASYNCHRONY 0 no * TAINT 0 no * RUNTIME ENV. DEPENDENCE 0 no * MAGNITUDE 0 no overflow * CONTINUOUS/DISCRETE 1 continuous * SIGNEDNESS 0 no */ /* Copyright 2004 M.I.T. Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute this software and its documentation for any purpose, provided that the above copyright notice and the following three paragraphs appear in all copies of this software. IN NO EVENT SHALL M.I.T. BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF M.I.T. HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMANGE. M.I.T. SPECIFICALLY DISCLAIMS ANY WARRANTIES INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THE SOFTWARE IS PROVIDED ON AN "AS-IS" BASIS AND M.I.T. HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. */ int main(int argc, char *argv[]) { int inc_value; int loop_counter; char buf[10]; inc_value = 9 - (9 - 1); loop_counter = 0; do { /* OK */ buf[loop_counter] = 'A'; loop_counter += inc_value; } while(loop_counter <= 9); return 0; }
the_stack_data/78725.c
#include <stdio.h> #include <string.h> int main (void){ FILE *fp1; FILE *fp2; char str[50000]; char str1[50000]; int i=0; fp1 = fopen("MOJI.txt","r"); fp2 = fopen("HMOJI.txt","w"); if(fp1==NULL){ printf("ファイルオープン失敗\n"); return -1; } while( (str[i]=fgetc(fp1)) != EOF ){ str1[i]=str[i]; if(65<=str[i] && 90>=str[i] || str[i]==32 || str[i] == 10){ } else if(97<=str[i]&&122>=str[i]){ str[i]=str[i]-32; } else{ str[i] = 32; } i++; } fprintf(fp2,"%s",str); printf("置換前\n"); for(i=0; i <=10; i++){ printf("%c",str1[i]); } printf("\n置換後\n"); for(i=0; i <=10; i++){ printf("%c",str[i]); } printf("\n"); fclose(fp1); fclose(fp2); return 0; }
the_stack_data/62638718.c
#include<stdio.h> #include<sys/types.h> #include<unistd.h> #include<stdlib.h> int main(int argc, char** argv) { pid_t pid; if ((pid = fork()) == 0) { printf("hello from the child\n"); } else if (pid > 0) { printf("hello from the parent\n"); } else { printf("fork error\n"); exit(0); } return 0; }
the_stack_data/170294.c
/** * @file 2.2.3.c 单链表-按序号查找结点值、按值查找表节点 * @author D1n910 ([email protected]) * @brief 单链表的实现 * @version 0.1 * @date 2022-03-02 * * @copyright Copyright (c) 2022 * */ #include <stdio.h> #include <stdlib.h> #define my_printf(s) (printf(#s " %d \n", s)) #define ElemType int typedef struct LNode { ElemType data; struct LNode* next; } LNode, *ListNode; ListNode my_L; /** * @brief 尾插法 * * @param L * @return ListNode */ ListNode List_initTail(ListNode L); /** * @brief 按序号查找表节点 * * @param L * @return ListNode */ LNode *GetElem(ListNode L, int index); /** * @brief 按值查找表节点 * * @param L * @param e * @return LNode* */ LNode *LocateElem(ListNode L, ElemType e); /** * @brief 获取表的长度 * * @param L * @return L.Length */ int GetLLength(ListNode L); /** * @brief 操作列表 * * @param operate_serialNumber */ void OperateList(); int main(void) { my_L = (ListNode)malloc(sizeof(LNode)); my_L->next = NULL; OperateList(); return 0; } ListNode List_initTail(ListNode L) { int e; // 获取的数字内容 L = (ListNode)malloc(sizeof(LNode)); LNode *s; // 新节点的内容 LNode *r = L; // 表尾指针 printf("Please enter number(enter 9999 mean terminate input):"); scanf("%d", &e); // 输入第一个节点的值 while (e != 9999) { s = (ListNode)malloc(sizeof(LNode)); s->data = e; r->next = s; r = s; printf("Please enter number(enter 9999 mean terminate input):"); scanf("%d", &e); }; r->next = NULL; // 尾指针为空 return L; } LNode *GetElem(ListNode L, int index) { LNode *e = L->next; // 找到的点 int j = 1; // 点 if (index == 0) return L; // 若 i 等于 0,则返回头结点 if (index < 1) return NULL; // 若 i 无效,返回 NULL while (e && j < index) // 从第一个节点找,查找第 index 个节点 { /* code */ e = e->next; j++; } return e; // 返回元素,如果没找到,那么就是 NULL } int GetLLength(ListNode L) { int i = 0; LNode *e = L->next; while (e) { e = e->next; i++; } return i; } LNode *LocateElem(ListNode L, ElemType e) { ListNode p = L->next; while (p && p->data != e) { p = p->next; } return p; } void OperateList(void) { int my_L_length; // 长度 LNode *search_data; int next_number; printf("What you want to do: \n" "Use tail insert to init list[Enter number '1'] \n" "Get list's length[Enter number '2'] \n" "Search one data use index[Enter number '3'] \n" "Search one data equal data[Enter number '4'] \n" "Quit[Enter number '0'] \n" ); scanf("%d", &next_number); switch (next_number) { case 0: exit(0); // 退出 break; case 1: my_L = List_initTail(my_L); break; case 2: printf("Start 'GetLLength'\n"); my_L_length = GetLLength(my_L); printf("List's length is %d \n", my_L_length); break; case 3: printf("Which element do you want to get the data for:"); scanf("%d", &next_number); search_data = GetElem(my_L, next_number); if (search_data) { printf("Successfully found data: %d !!!\n", search_data->data); } else { printf("\n\nWorry! Please check your enter data! \n\n"); } break; case 4: printf("You want to check the data:"); scanf("%d", &next_number); search_data = LocateElem(my_L, next_number); if (search_data) { printf("Successfully found data: %d !!!\n", search_data->data); } else { printf("\n\nWorry! We do not have '%d'! \n\n", next_number); } break; default: OperateList(); break; } OperateList(); }
the_stack_data/153266965.c
#include <stdlib.h> #include <stdio.h> void exibirPilha(int * pilha, int tamanho){ for(int x = tamanho - 1; x >= 0; x--){ printf("%d\n", pilha[x]); } } void pushPilha(int ** pilha, int * topo, int tamanho, int valor_a_ser_inserido){ if(*topo < tamanho - 1){ *topo += 1; //Também não consegui descobrir exatamente o porquê de *topo++ neste caso retornar 10 (aparentemente tem algo haver com a ordem de procedencia dos operadores). (*pilha)[*topo] = valor_a_ser_inserido; //Leia-se: Conteudo apontado por ponteiro de ponteiro (ou seja, o nosso ponteiro original) recebe no topo o valor a ser inserido. //Esse é um comportamento curioso em C, por algum motivo, para alterar o conteudo de um array por meio de uma função, é necessario passar o endereço de memoria desse array, e não para onde ele esta apontando. } //Não consegui descobrir exatamente o porquê disto acontecer. else{ puts("Pilha cheia!"); } } void popPilha(int ** pilha, int * topo){ if((*pilha)[*topo] == -1){ printf("A pilha já esta vazia!"); } else{ printf("Valor removido: %d\n", (* pilha)[*topo]); (* pilha)[*topo] = 0; *topo -= 1; } } void main(){ int * pilha; int topo = -1, tamanho, valor_a_ser_inserido; printf("Insira o tamanho da pilha: "); scanf("%d", &tamanho); pilha = (int *) malloc(tamanho * sizeof(int)); for(int x = 0; x < tamanho; x++){ printf("Insira o valor a ser inserido na pilha: "); scanf("%d", &valor_a_ser_inserido); pushPilha(&pilha, &topo, tamanho, valor_a_ser_inserido); } exibirPilha(pilha, tamanho); popPilha(&pilha, &topo); exibirPilha(pilha, tamanho); pushPilha(&pilha, &topo, tamanho, 16); exibirPilha(pilha, tamanho); }
the_stack_data/149716.c
/* Check that long calls to different sections are not optimized to "bl". */ /* { dg-do compile { target { arm32 && nonpic } } } */ /* { dg-options "-O2" } */ /* This test expects that short calls are the default. */ /* { dg-skip-if "-mlong-calls in use" { "*-*-*" } { "-mlong-calls" } { "" } } */ #define section(S) __attribute__((section(S))) #define weak __attribute__((weak)) #define noinline __attribute__((noinline)) #define long_call __attribute__((long_call)) #define short_call __attribute__((short_call)) #define REMOTE_CALL(ID, TARGET_ATTRS, CALL_ATTRS) \ const char *TARGET_ATTRS ID (void); \ const char *CALL_ATTRS call_##ID (void) { return ID () + 1; } #define EXTERN_CALL(ID, TARGET_ATTRS, CALL_ATTRS) \ const char *TARGET_ATTRS noinline ID (void) { return #ID; } \ const char *CALL_ATTRS call_##ID (void) { return ID () + 1; } \ const char *CALL_ATTRS sibcall_##ID (void) { return ID (); } #define STATIC_CALL(ID, TARGET_ATTRS, CALL_ATTRS) \ static const char *TARGET_ATTRS noinline ID (void) { return #ID; } \ const char *CALL_ATTRS call_##ID (void) { return ID () + 1; } \ const char *CALL_ATTRS sibcall_##ID (void) { return ID (); } #define DO_TESTS_SECTION(ID, TEST, TARGET_ATTRS) \ TEST (ID##1, TARGET_ATTRS, ) \ TEST (ID##2, TARGET_ATTRS section (".test.a"), section (".test.b")) \ TEST (ID##3, TARGET_ATTRS section (".test.c"), section (".test.c")) #define DO_TESTS_CALL_ATTR(ID, TEST, TARGET_ATTRS) \ DO_TESTS_SECTION (ID##n, TEST, TARGET_ATTRS) \ DO_TESTS_SECTION (ID##l, TEST, TARGET_ATTRS long_call) \ DO_TESTS_SECTION (ID##s, TEST, TARGET_ATTRS short_call) DO_TESTS_CALL_ATTR (remote_, REMOTE_CALL,) DO_TESTS_CALL_ATTR (strong_, EXTERN_CALL,) DO_TESTS_CALL_ATTR (weak_, EXTERN_CALL, weak) DO_TESTS_CALL_ATTR (static_, STATIC_CALL,) /* Calls to remote_* should honor the call type attribute, with "short" being the default. In the regular expressions below: * We allow both "b" and "bl" in some cases to allow for the possibility of sibling calls. As of this writing, GCC does not use sibling calls in Thumb-2 mode. */ /* { dg-final { scan-assembler "\tbl\tremote_n1\n" } } */ /* { dg-final { scan-assembler "\tbl\tremote_n2\n" } } */ /* { dg-final { scan-assembler "\tbl\tremote_n3\n" } } */ /* { dg-final { scan-assembler-not "\tbl\tremote_l1\n" } } */ /* { dg-final { scan-assembler-not "\tbl\tremote_l2\n" } } */ /* { dg-final { scan-assembler-not "\tbl\tremote_l3\n" } } */ /* { dg-final { scan-assembler "\tbl\tremote_s1\n" } } */ /* { dg-final { scan-assembler "\tbl\tremote_s2\n" } } */ /* { dg-final { scan-assembler "\tbl\tremote_s3\n" } } */ /* Calls to strong_*2 calls should honor the call type attribute, with "short" being the default. Calls to other strong_* functions should be short. */ /* { dg-final { scan-assembler "\tbl\tstrong_n1\n" } } */ /* { dg-final { scan-assembler "\tbl?\tstrong_n1\n" } } */ /* { dg-final { scan-assembler "\tbl\tstrong_n2\n" } } */ /* { dg-final { scan-assembler "\tbl?\tstrong_n2\n" } } */ /* { dg-final { scan-assembler "\tbl\tstrong_n3\n" } } */ /* { dg-final { scan-assembler "\tbl?\tstrong_n3\n" } } */ /* { dg-final { scan-assembler "\tbl\tstrong_l1\n" } } */ /* { dg-final { scan-assembler "\tbl?\tstrong_l1\n" } } */ /* { dg-final { scan-assembler-not "\tbl?\tstrong_l2\n" } } */ /* { dg-final { scan-assembler "\tbl\tstrong_l3\n" } } */ /* { dg-final { scan-assembler "\tbl?\tstrong_l3\n" } } */ /* { dg-final { scan-assembler "\tbl\tstrong_s1\n" } } */ /* { dg-final { scan-assembler "\tbl?\tstrong_s1\n" } } */ /* { dg-final { scan-assembler "\tbl\tstrong_s2\n" } } */ /* { dg-final { scan-assembler "\tbl?\tstrong_s2\n" } } */ /* { dg-final { scan-assembler "\tbl\tstrong_s3\n" } } */ /* { dg-final { scan-assembler "\tbl?\tstrong_s3\n" } } */ /* Calls to weak_* should honor the call type attribute, with "short" being the default. */ /* { dg-final { scan-assembler "\tbl\tweak_n1\n" } } */ /* { dg-final { scan-assembler "\tbl?\tweak_n1\n" } } */ /* { dg-final { scan-assembler "\tbl\tweak_n2\n" } } */ /* { dg-final { scan-assembler "\tbl?\tweak_n2\n" } } */ /* { dg-final { scan-assembler "\tbl\tweak_n3\n" } } */ /* { dg-final { scan-assembler "\tbl?\tweak_n3\n" } } */ /* { dg-final { scan-assembler-not "\tbl?\tweak_l1\n" } } */ /* { dg-final { scan-assembler-not "\tbl?\tweak_l2\n" } } */ /* { dg-final { scan-assembler-not "\tbl?\tweak_l3\n" } } */ /* { dg-final { scan-assembler "\tbl\tweak_s1\n" } } */ /* { dg-final { scan-assembler "\tbl?\tweak_s1\n" } } */ /* { dg-final { scan-assembler "\tbl\tweak_s2\n" } } */ /* { dg-final { scan-assembler "\tbl?\tweak_s2\n" } } */ /* { dg-final { scan-assembler "\tbl\tweak_s3\n" } } */ /* { dg-final { scan-assembler "\tbl?\tweak_s3\n" } } */ /* Calls to static_*2 calls should honor the call type attribute, with "short" being the default. Calls to other static_* functions should be short. */ /* { dg-final { scan-assembler "\tbl\tstatic_n1\n" } } */ /* { dg-final { scan-assembler "\tbl?\tstatic_n1\n" } } */ /* { dg-final { scan-assembler "\tbl\tstatic_n2\n" } } */ /* { dg-final { scan-assembler "\tbl?\tstatic_n2\n" } } */ /* { dg-final { scan-assembler "\tbl\tstatic_n3\n" } } */ /* { dg-final { scan-assembler "\tbl?\tstatic_n3\n" } } */ /* { dg-final { scan-assembler "\tbl\tstatic_l1\n" } } */ /* { dg-final { scan-assembler "\tbl?\tstatic_l1\n" } } */ /* { dg-final { scan-assembler-not "\tbl?\tstatic_l2\n" } } */ /* { dg-final { scan-assembler "\tbl\tstatic_l3\n" } } */ /* { dg-final { scan-assembler "\tbl?\tstatic_l3\n" } } */ /* { dg-final { scan-assembler "\tbl\tstatic_s1\n" } } */ /* { dg-final { scan-assembler "\tbl?\tstatic_s1\n" } } */ /* { dg-final { scan-assembler "\tbl\tstatic_s2\n" } } */ /* { dg-final { scan-assembler "\tbl?\tstatic_s2\n" } } */ /* { dg-final { scan-assembler "\tbl\tstatic_s3\n" } } */ /* { dg-final { scan-assembler "\tbl?\tstatic_s3\n" } } */
the_stack_data/111077260.c
#include <stdio.h> int swap(int, int); int gcd(int, int); int swap(int x, int y) { int buf; buf = x; x = y; y = buf; return y; } int gcd(int x, int y) { int buf; if (x < y) swap(x, y); while (y > 0) { buf = x % y; x = y; y = buf; } return x; } int main() { int x, y; scanf("%d %d", &x, &y); printf("%d\n", gcd(x, y)); return ( 0 ); }
the_stack_data/9512413.c
/* Note that "extern" is critical to demonstrating the bug (after everything else was fixed). */ extern const struct eproto { short p; } eproto_db[];
the_stack_data/421509.c
// // dishiliuzhang3.c // dishiliuzhang // // Created by mingyue on 15/11/27. // Copyright © 2015年 G. All rights reserved. // #include <stdio.h> #define XNAME(n) x ## n #define PRINT_XN(n) printf("x" #n " = %d\n",x ## n) int main(int argc, const char* argv[]){ int XNAME(1) = 14; int XNAME(2) = 20; PRINT_XN(1); PRINT_XN(2); return 0; }
the_stack_data/165765744.c
//@ ltl invariant negative: ([] (([] AP(x_5 - x_23 > 2)) U AP(x_11 - x_22 > -7))); float x_0; float x_1; float x_2; float x_3; float x_4; float x_5; float x_6; float x_7; float x_8; float x_9; float x_10; float x_11; float x_12; float x_13; float x_14; float x_15; float x_16; float x_17; float x_18; float x_19; float x_20; float x_21; float x_22; float x_23; float x_24; float x_25; float x_26; float x_27; int main() { float x_0_; float x_1_; float x_2_; float x_3_; float x_4_; float x_5_; float x_6_; float x_7_; float x_8_; float x_9_; float x_10_; float x_11_; float x_12_; float x_13_; float x_14_; float x_15_; float x_16_; float x_17_; float x_18_; float x_19_; float x_20_; float x_21_; float x_22_; float x_23_; float x_24_; float x_25_; float x_26_; float x_27_; while(1) { x_0_ = ((((6.0 + x_0) > ((8.0 + x_1) > (12.0 + x_2)? (8.0 + x_1) : (12.0 + x_2))? (6.0 + x_0) : ((8.0 + x_1) > (12.0 + x_2)? (8.0 + x_1) : (12.0 + x_2))) > (((7.0 + x_3) > (14.0 + x_4)? (7.0 + x_3) : (14.0 + x_4)) > ((20.0 + x_8) > (12.0 + x_9)? (20.0 + x_8) : (12.0 + x_9))? ((7.0 + x_3) > (14.0 + x_4)? (7.0 + x_3) : (14.0 + x_4)) : ((20.0 + x_8) > (12.0 + x_9)? (20.0 + x_8) : (12.0 + x_9)))? ((6.0 + x_0) > ((8.0 + x_1) > (12.0 + x_2)? (8.0 + x_1) : (12.0 + x_2))? (6.0 + x_0) : ((8.0 + x_1) > (12.0 + x_2)? (8.0 + x_1) : (12.0 + x_2))) : (((7.0 + x_3) > (14.0 + x_4)? (7.0 + x_3) : (14.0 + x_4)) > ((20.0 + x_8) > (12.0 + x_9)? (20.0 + x_8) : (12.0 + x_9))? ((7.0 + x_3) > (14.0 + x_4)? (7.0 + x_3) : (14.0 + x_4)) : ((20.0 + x_8) > (12.0 + x_9)? (20.0 + x_8) : (12.0 + x_9)))) > (((1.0 + x_13) > ((20.0 + x_14) > (19.0 + x_20)? (20.0 + x_14) : (19.0 + x_20))? (1.0 + x_13) : ((20.0 + x_14) > (19.0 + x_20)? (20.0 + x_14) : (19.0 + x_20))) > (((9.0 + x_21) > (11.0 + x_22)? (9.0 + x_21) : (11.0 + x_22)) > ((16.0 + x_23) > (15.0 + x_27)? (16.0 + x_23) : (15.0 + x_27))? ((9.0 + x_21) > (11.0 + x_22)? (9.0 + x_21) : (11.0 + x_22)) : ((16.0 + x_23) > (15.0 + x_27)? (16.0 + x_23) : (15.0 + x_27)))? ((1.0 + x_13) > ((20.0 + x_14) > (19.0 + x_20)? (20.0 + x_14) : (19.0 + x_20))? (1.0 + x_13) : ((20.0 + x_14) > (19.0 + x_20)? (20.0 + x_14) : (19.0 + x_20))) : (((9.0 + x_21) > (11.0 + x_22)? (9.0 + x_21) : (11.0 + x_22)) > ((16.0 + x_23) > (15.0 + x_27)? (16.0 + x_23) : (15.0 + x_27))? ((9.0 + x_21) > (11.0 + x_22)? (9.0 + x_21) : (11.0 + x_22)) : ((16.0 + x_23) > (15.0 + x_27)? (16.0 + x_23) : (15.0 + x_27))))? (((6.0 + x_0) > ((8.0 + x_1) > (12.0 + x_2)? (8.0 + x_1) : (12.0 + x_2))? (6.0 + x_0) : ((8.0 + x_1) > (12.0 + x_2)? (8.0 + x_1) : (12.0 + x_2))) > (((7.0 + x_3) > (14.0 + x_4)? (7.0 + x_3) : (14.0 + x_4)) > ((20.0 + x_8) > (12.0 + x_9)? (20.0 + x_8) : (12.0 + x_9))? ((7.0 + x_3) > (14.0 + x_4)? (7.0 + x_3) : (14.0 + x_4)) : ((20.0 + x_8) > (12.0 + x_9)? (20.0 + x_8) : (12.0 + x_9)))? ((6.0 + x_0) > ((8.0 + x_1) > (12.0 + x_2)? (8.0 + x_1) : (12.0 + x_2))? (6.0 + x_0) : ((8.0 + x_1) > (12.0 + x_2)? (8.0 + x_1) : (12.0 + x_2))) : (((7.0 + x_3) > (14.0 + x_4)? (7.0 + x_3) : (14.0 + x_4)) > ((20.0 + x_8) > (12.0 + x_9)? (20.0 + x_8) : (12.0 + x_9))? ((7.0 + x_3) > (14.0 + x_4)? (7.0 + x_3) : (14.0 + x_4)) : ((20.0 + x_8) > (12.0 + x_9)? (20.0 + x_8) : (12.0 + x_9)))) : (((1.0 + x_13) > ((20.0 + x_14) > (19.0 + x_20)? (20.0 + x_14) : (19.0 + x_20))? (1.0 + x_13) : ((20.0 + x_14) > (19.0 + x_20)? (20.0 + x_14) : (19.0 + x_20))) > (((9.0 + x_21) > (11.0 + x_22)? (9.0 + x_21) : (11.0 + x_22)) > ((16.0 + x_23) > (15.0 + x_27)? (16.0 + x_23) : (15.0 + x_27))? ((9.0 + x_21) > (11.0 + x_22)? (9.0 + x_21) : (11.0 + x_22)) : ((16.0 + x_23) > (15.0 + x_27)? (16.0 + x_23) : (15.0 + x_27)))? ((1.0 + x_13) > ((20.0 + x_14) > (19.0 + x_20)? (20.0 + x_14) : (19.0 + x_20))? (1.0 + x_13) : ((20.0 + x_14) > (19.0 + x_20)? (20.0 + x_14) : (19.0 + x_20))) : (((9.0 + x_21) > (11.0 + x_22)? (9.0 + x_21) : (11.0 + x_22)) > ((16.0 + x_23) > (15.0 + x_27)? (16.0 + x_23) : (15.0 + x_27))? ((9.0 + x_21) > (11.0 + x_22)? (9.0 + x_21) : (11.0 + x_22)) : ((16.0 + x_23) > (15.0 + x_27)? (16.0 + x_23) : (15.0 + x_27))))); x_1_ = ((((20.0 + x_0) > ((14.0 + x_2) > (3.0 + x_4)? (14.0 + x_2) : (3.0 + x_4))? (20.0 + x_0) : ((14.0 + x_2) > (3.0 + x_4)? (14.0 + x_2) : (3.0 + x_4))) > (((1.0 + x_5) > (17.0 + x_8)? (1.0 + x_5) : (17.0 + x_8)) > ((17.0 + x_9) > (16.0 + x_10)? (17.0 + x_9) : (16.0 + x_10))? ((1.0 + x_5) > (17.0 + x_8)? (1.0 + x_5) : (17.0 + x_8)) : ((17.0 + x_9) > (16.0 + x_10)? (17.0 + x_9) : (16.0 + x_10)))? ((20.0 + x_0) > ((14.0 + x_2) > (3.0 + x_4)? (14.0 + x_2) : (3.0 + x_4))? (20.0 + x_0) : ((14.0 + x_2) > (3.0 + x_4)? (14.0 + x_2) : (3.0 + x_4))) : (((1.0 + x_5) > (17.0 + x_8)? (1.0 + x_5) : (17.0 + x_8)) > ((17.0 + x_9) > (16.0 + x_10)? (17.0 + x_9) : (16.0 + x_10))? ((1.0 + x_5) > (17.0 + x_8)? (1.0 + x_5) : (17.0 + x_8)) : ((17.0 + x_9) > (16.0 + x_10)? (17.0 + x_9) : (16.0 + x_10)))) > (((4.0 + x_12) > ((7.0 + x_16) > (15.0 + x_21)? (7.0 + x_16) : (15.0 + x_21))? (4.0 + x_12) : ((7.0 + x_16) > (15.0 + x_21)? (7.0 + x_16) : (15.0 + x_21))) > (((13.0 + x_22) > (19.0 + x_24)? (13.0 + x_22) : (19.0 + x_24)) > ((1.0 + x_25) > (2.0 + x_27)? (1.0 + x_25) : (2.0 + x_27))? ((13.0 + x_22) > (19.0 + x_24)? (13.0 + x_22) : (19.0 + x_24)) : ((1.0 + x_25) > (2.0 + x_27)? (1.0 + x_25) : (2.0 + x_27)))? ((4.0 + x_12) > ((7.0 + x_16) > (15.0 + x_21)? (7.0 + x_16) : (15.0 + x_21))? (4.0 + x_12) : ((7.0 + x_16) > (15.0 + x_21)? (7.0 + x_16) : (15.0 + x_21))) : (((13.0 + x_22) > (19.0 + x_24)? (13.0 + x_22) : (19.0 + x_24)) > ((1.0 + x_25) > (2.0 + x_27)? (1.0 + x_25) : (2.0 + x_27))? ((13.0 + x_22) > (19.0 + x_24)? (13.0 + x_22) : (19.0 + x_24)) : ((1.0 + x_25) > (2.0 + x_27)? (1.0 + x_25) : (2.0 + x_27))))? (((20.0 + x_0) > ((14.0 + x_2) > (3.0 + x_4)? (14.0 + x_2) : (3.0 + x_4))? (20.0 + x_0) : ((14.0 + x_2) > (3.0 + x_4)? (14.0 + x_2) : (3.0 + x_4))) > (((1.0 + x_5) > (17.0 + x_8)? (1.0 + x_5) : (17.0 + x_8)) > ((17.0 + x_9) > (16.0 + x_10)? (17.0 + x_9) : (16.0 + x_10))? ((1.0 + x_5) > (17.0 + x_8)? (1.0 + x_5) : (17.0 + x_8)) : ((17.0 + x_9) > (16.0 + x_10)? (17.0 + x_9) : (16.0 + x_10)))? ((20.0 + x_0) > ((14.0 + x_2) > (3.0 + x_4)? (14.0 + x_2) : (3.0 + x_4))? (20.0 + x_0) : ((14.0 + x_2) > (3.0 + x_4)? (14.0 + x_2) : (3.0 + x_4))) : (((1.0 + x_5) > (17.0 + x_8)? (1.0 + x_5) : (17.0 + x_8)) > ((17.0 + x_9) > (16.0 + x_10)? (17.0 + x_9) : (16.0 + x_10))? ((1.0 + x_5) > (17.0 + x_8)? (1.0 + x_5) : (17.0 + x_8)) : ((17.0 + x_9) > (16.0 + x_10)? (17.0 + x_9) : (16.0 + x_10)))) : (((4.0 + x_12) > ((7.0 + x_16) > (15.0 + x_21)? (7.0 + x_16) : (15.0 + x_21))? (4.0 + x_12) : ((7.0 + x_16) > (15.0 + x_21)? (7.0 + x_16) : (15.0 + x_21))) > (((13.0 + x_22) > (19.0 + x_24)? (13.0 + x_22) : (19.0 + x_24)) > ((1.0 + x_25) > (2.0 + x_27)? (1.0 + x_25) : (2.0 + x_27))? ((13.0 + x_22) > (19.0 + x_24)? (13.0 + x_22) : (19.0 + x_24)) : ((1.0 + x_25) > (2.0 + x_27)? (1.0 + x_25) : (2.0 + x_27)))? ((4.0 + x_12) > ((7.0 + x_16) > (15.0 + x_21)? (7.0 + x_16) : (15.0 + x_21))? (4.0 + x_12) : ((7.0 + x_16) > (15.0 + x_21)? (7.0 + x_16) : (15.0 + x_21))) : (((13.0 + x_22) > (19.0 + x_24)? (13.0 + x_22) : (19.0 + x_24)) > ((1.0 + x_25) > (2.0 + x_27)? (1.0 + x_25) : (2.0 + x_27))? ((13.0 + x_22) > (19.0 + x_24)? (13.0 + x_22) : (19.0 + x_24)) : ((1.0 + x_25) > (2.0 + x_27)? (1.0 + x_25) : (2.0 + x_27))))); x_2_ = ((((3.0 + x_2) > ((9.0 + x_4) > (13.0 + x_6)? (9.0 + x_4) : (13.0 + x_6))? (3.0 + x_2) : ((9.0 + x_4) > (13.0 + x_6)? (9.0 + x_4) : (13.0 + x_6))) > (((16.0 + x_7) > (2.0 + x_11)? (16.0 + x_7) : (2.0 + x_11)) > ((12.0 + x_13) > (18.0 + x_15)? (12.0 + x_13) : (18.0 + x_15))? ((16.0 + x_7) > (2.0 + x_11)? (16.0 + x_7) : (2.0 + x_11)) : ((12.0 + x_13) > (18.0 + x_15)? (12.0 + x_13) : (18.0 + x_15)))? ((3.0 + x_2) > ((9.0 + x_4) > (13.0 + x_6)? (9.0 + x_4) : (13.0 + x_6))? (3.0 + x_2) : ((9.0 + x_4) > (13.0 + x_6)? (9.0 + x_4) : (13.0 + x_6))) : (((16.0 + x_7) > (2.0 + x_11)? (16.0 + x_7) : (2.0 + x_11)) > ((12.0 + x_13) > (18.0 + x_15)? (12.0 + x_13) : (18.0 + x_15))? ((16.0 + x_7) > (2.0 + x_11)? (16.0 + x_7) : (2.0 + x_11)) : ((12.0 + x_13) > (18.0 + x_15)? (12.0 + x_13) : (18.0 + x_15)))) > (((9.0 + x_17) > ((4.0 + x_18) > (18.0 + x_19)? (4.0 + x_18) : (18.0 + x_19))? (9.0 + x_17) : ((4.0 + x_18) > (18.0 + x_19)? (4.0 + x_18) : (18.0 + x_19))) > (((4.0 + x_23) > (4.0 + x_25)? (4.0 + x_23) : (4.0 + x_25)) > ((20.0 + x_26) > (6.0 + x_27)? (20.0 + x_26) : (6.0 + x_27))? ((4.0 + x_23) > (4.0 + x_25)? (4.0 + x_23) : (4.0 + x_25)) : ((20.0 + x_26) > (6.0 + x_27)? (20.0 + x_26) : (6.0 + x_27)))? ((9.0 + x_17) > ((4.0 + x_18) > (18.0 + x_19)? (4.0 + x_18) : (18.0 + x_19))? (9.0 + x_17) : ((4.0 + x_18) > (18.0 + x_19)? (4.0 + x_18) : (18.0 + x_19))) : (((4.0 + x_23) > (4.0 + x_25)? (4.0 + x_23) : (4.0 + x_25)) > ((20.0 + x_26) > (6.0 + x_27)? (20.0 + x_26) : (6.0 + x_27))? ((4.0 + x_23) > (4.0 + x_25)? (4.0 + x_23) : (4.0 + x_25)) : ((20.0 + x_26) > (6.0 + x_27)? (20.0 + x_26) : (6.0 + x_27))))? (((3.0 + x_2) > ((9.0 + x_4) > (13.0 + x_6)? (9.0 + x_4) : (13.0 + x_6))? (3.0 + x_2) : ((9.0 + x_4) > (13.0 + x_6)? (9.0 + x_4) : (13.0 + x_6))) > (((16.0 + x_7) > (2.0 + x_11)? (16.0 + x_7) : (2.0 + x_11)) > ((12.0 + x_13) > (18.0 + x_15)? (12.0 + x_13) : (18.0 + x_15))? ((16.0 + x_7) > (2.0 + x_11)? (16.0 + x_7) : (2.0 + x_11)) : ((12.0 + x_13) > (18.0 + x_15)? (12.0 + x_13) : (18.0 + x_15)))? ((3.0 + x_2) > ((9.0 + x_4) > (13.0 + x_6)? (9.0 + x_4) : (13.0 + x_6))? (3.0 + x_2) : ((9.0 + x_4) > (13.0 + x_6)? (9.0 + x_4) : (13.0 + x_6))) : (((16.0 + x_7) > (2.0 + x_11)? (16.0 + x_7) : (2.0 + x_11)) > ((12.0 + x_13) > (18.0 + x_15)? (12.0 + x_13) : (18.0 + x_15))? ((16.0 + x_7) > (2.0 + x_11)? (16.0 + x_7) : (2.0 + x_11)) : ((12.0 + x_13) > (18.0 + x_15)? (12.0 + x_13) : (18.0 + x_15)))) : (((9.0 + x_17) > ((4.0 + x_18) > (18.0 + x_19)? (4.0 + x_18) : (18.0 + x_19))? (9.0 + x_17) : ((4.0 + x_18) > (18.0 + x_19)? (4.0 + x_18) : (18.0 + x_19))) > (((4.0 + x_23) > (4.0 + x_25)? (4.0 + x_23) : (4.0 + x_25)) > ((20.0 + x_26) > (6.0 + x_27)? (20.0 + x_26) : (6.0 + x_27))? ((4.0 + x_23) > (4.0 + x_25)? (4.0 + x_23) : (4.0 + x_25)) : ((20.0 + x_26) > (6.0 + x_27)? (20.0 + x_26) : (6.0 + x_27)))? ((9.0 + x_17) > ((4.0 + x_18) > (18.0 + x_19)? (4.0 + x_18) : (18.0 + x_19))? (9.0 + x_17) : ((4.0 + x_18) > (18.0 + x_19)? (4.0 + x_18) : (18.0 + x_19))) : (((4.0 + x_23) > (4.0 + x_25)? (4.0 + x_23) : (4.0 + x_25)) > ((20.0 + x_26) > (6.0 + x_27)? (20.0 + x_26) : (6.0 + x_27))? ((4.0 + x_23) > (4.0 + x_25)? (4.0 + x_23) : (4.0 + x_25)) : ((20.0 + x_26) > (6.0 + x_27)? (20.0 + x_26) : (6.0 + x_27))))); x_3_ = ((((9.0 + x_0) > ((19.0 + x_1) > (17.0 + x_2)? (19.0 + x_1) : (17.0 + x_2))? (9.0 + x_0) : ((19.0 + x_1) > (17.0 + x_2)? (19.0 + x_1) : (17.0 + x_2))) > (((18.0 + x_4) > (5.0 + x_9)? (18.0 + x_4) : (5.0 + x_9)) > ((19.0 + x_12) > (5.0 + x_13)? (19.0 + x_12) : (5.0 + x_13))? ((18.0 + x_4) > (5.0 + x_9)? (18.0 + x_4) : (5.0 + x_9)) : ((19.0 + x_12) > (5.0 + x_13)? (19.0 + x_12) : (5.0 + x_13)))? ((9.0 + x_0) > ((19.0 + x_1) > (17.0 + x_2)? (19.0 + x_1) : (17.0 + x_2))? (9.0 + x_0) : ((19.0 + x_1) > (17.0 + x_2)? (19.0 + x_1) : (17.0 + x_2))) : (((18.0 + x_4) > (5.0 + x_9)? (18.0 + x_4) : (5.0 + x_9)) > ((19.0 + x_12) > (5.0 + x_13)? (19.0 + x_12) : (5.0 + x_13))? ((18.0 + x_4) > (5.0 + x_9)? (18.0 + x_4) : (5.0 + x_9)) : ((19.0 + x_12) > (5.0 + x_13)? (19.0 + x_12) : (5.0 + x_13)))) > (((1.0 + x_14) > ((13.0 + x_17) > (8.0 + x_20)? (13.0 + x_17) : (8.0 + x_20))? (1.0 + x_14) : ((13.0 + x_17) > (8.0 + x_20)? (13.0 + x_17) : (8.0 + x_20))) > (((10.0 + x_22) > (9.0 + x_23)? (10.0 + x_22) : (9.0 + x_23)) > ((3.0 + x_26) > (15.0 + x_27)? (3.0 + x_26) : (15.0 + x_27))? ((10.0 + x_22) > (9.0 + x_23)? (10.0 + x_22) : (9.0 + x_23)) : ((3.0 + x_26) > (15.0 + x_27)? (3.0 + x_26) : (15.0 + x_27)))? ((1.0 + x_14) > ((13.0 + x_17) > (8.0 + x_20)? (13.0 + x_17) : (8.0 + x_20))? (1.0 + x_14) : ((13.0 + x_17) > (8.0 + x_20)? (13.0 + x_17) : (8.0 + x_20))) : (((10.0 + x_22) > (9.0 + x_23)? (10.0 + x_22) : (9.0 + x_23)) > ((3.0 + x_26) > (15.0 + x_27)? (3.0 + x_26) : (15.0 + x_27))? ((10.0 + x_22) > (9.0 + x_23)? (10.0 + x_22) : (9.0 + x_23)) : ((3.0 + x_26) > (15.0 + x_27)? (3.0 + x_26) : (15.0 + x_27))))? (((9.0 + x_0) > ((19.0 + x_1) > (17.0 + x_2)? (19.0 + x_1) : (17.0 + x_2))? (9.0 + x_0) : ((19.0 + x_1) > (17.0 + x_2)? (19.0 + x_1) : (17.0 + x_2))) > (((18.0 + x_4) > (5.0 + x_9)? (18.0 + x_4) : (5.0 + x_9)) > ((19.0 + x_12) > (5.0 + x_13)? (19.0 + x_12) : (5.0 + x_13))? ((18.0 + x_4) > (5.0 + x_9)? (18.0 + x_4) : (5.0 + x_9)) : ((19.0 + x_12) > (5.0 + x_13)? (19.0 + x_12) : (5.0 + x_13)))? ((9.0 + x_0) > ((19.0 + x_1) > (17.0 + x_2)? (19.0 + x_1) : (17.0 + x_2))? (9.0 + x_0) : ((19.0 + x_1) > (17.0 + x_2)? (19.0 + x_1) : (17.0 + x_2))) : (((18.0 + x_4) > (5.0 + x_9)? (18.0 + x_4) : (5.0 + x_9)) > ((19.0 + x_12) > (5.0 + x_13)? (19.0 + x_12) : (5.0 + x_13))? ((18.0 + x_4) > (5.0 + x_9)? (18.0 + x_4) : (5.0 + x_9)) : ((19.0 + x_12) > (5.0 + x_13)? (19.0 + x_12) : (5.0 + x_13)))) : (((1.0 + x_14) > ((13.0 + x_17) > (8.0 + x_20)? (13.0 + x_17) : (8.0 + x_20))? (1.0 + x_14) : ((13.0 + x_17) > (8.0 + x_20)? (13.0 + x_17) : (8.0 + x_20))) > (((10.0 + x_22) > (9.0 + x_23)? (10.0 + x_22) : (9.0 + x_23)) > ((3.0 + x_26) > (15.0 + x_27)? (3.0 + x_26) : (15.0 + x_27))? ((10.0 + x_22) > (9.0 + x_23)? (10.0 + x_22) : (9.0 + x_23)) : ((3.0 + x_26) > (15.0 + x_27)? (3.0 + x_26) : (15.0 + x_27)))? ((1.0 + x_14) > ((13.0 + x_17) > (8.0 + x_20)? (13.0 + x_17) : (8.0 + x_20))? (1.0 + x_14) : ((13.0 + x_17) > (8.0 + x_20)? (13.0 + x_17) : (8.0 + x_20))) : (((10.0 + x_22) > (9.0 + x_23)? (10.0 + x_22) : (9.0 + x_23)) > ((3.0 + x_26) > (15.0 + x_27)? (3.0 + x_26) : (15.0 + x_27))? ((10.0 + x_22) > (9.0 + x_23)? (10.0 + x_22) : (9.0 + x_23)) : ((3.0 + x_26) > (15.0 + x_27)? (3.0 + x_26) : (15.0 + x_27))))); x_4_ = ((((9.0 + x_1) > ((16.0 + x_3) > (18.0 + x_5)? (16.0 + x_3) : (18.0 + x_5))? (9.0 + x_1) : ((16.0 + x_3) > (18.0 + x_5)? (16.0 + x_3) : (18.0 + x_5))) > (((2.0 + x_6) > (6.0 + x_11)? (2.0 + x_6) : (6.0 + x_11)) > ((13.0 + x_13) > (13.0 + x_16)? (13.0 + x_13) : (13.0 + x_16))? ((2.0 + x_6) > (6.0 + x_11)? (2.0 + x_6) : (6.0 + x_11)) : ((13.0 + x_13) > (13.0 + x_16)? (13.0 + x_13) : (13.0 + x_16)))? ((9.0 + x_1) > ((16.0 + x_3) > (18.0 + x_5)? (16.0 + x_3) : (18.0 + x_5))? (9.0 + x_1) : ((16.0 + x_3) > (18.0 + x_5)? (16.0 + x_3) : (18.0 + x_5))) : (((2.0 + x_6) > (6.0 + x_11)? (2.0 + x_6) : (6.0 + x_11)) > ((13.0 + x_13) > (13.0 + x_16)? (13.0 + x_13) : (13.0 + x_16))? ((2.0 + x_6) > (6.0 + x_11)? (2.0 + x_6) : (6.0 + x_11)) : ((13.0 + x_13) > (13.0 + x_16)? (13.0 + x_13) : (13.0 + x_16)))) > (((13.0 + x_17) > ((3.0 + x_18) > (10.0 + x_20)? (3.0 + x_18) : (10.0 + x_20))? (13.0 + x_17) : ((3.0 + x_18) > (10.0 + x_20)? (3.0 + x_18) : (10.0 + x_20))) > (((9.0 + x_24) > (6.0 + x_25)? (9.0 + x_24) : (6.0 + x_25)) > ((13.0 + x_26) > (6.0 + x_27)? (13.0 + x_26) : (6.0 + x_27))? ((9.0 + x_24) > (6.0 + x_25)? (9.0 + x_24) : (6.0 + x_25)) : ((13.0 + x_26) > (6.0 + x_27)? (13.0 + x_26) : (6.0 + x_27)))? ((13.0 + x_17) > ((3.0 + x_18) > (10.0 + x_20)? (3.0 + x_18) : (10.0 + x_20))? (13.0 + x_17) : ((3.0 + x_18) > (10.0 + x_20)? (3.0 + x_18) : (10.0 + x_20))) : (((9.0 + x_24) > (6.0 + x_25)? (9.0 + x_24) : (6.0 + x_25)) > ((13.0 + x_26) > (6.0 + x_27)? (13.0 + x_26) : (6.0 + x_27))? ((9.0 + x_24) > (6.0 + x_25)? (9.0 + x_24) : (6.0 + x_25)) : ((13.0 + x_26) > (6.0 + x_27)? (13.0 + x_26) : (6.0 + x_27))))? (((9.0 + x_1) > ((16.0 + x_3) > (18.0 + x_5)? (16.0 + x_3) : (18.0 + x_5))? (9.0 + x_1) : ((16.0 + x_3) > (18.0 + x_5)? (16.0 + x_3) : (18.0 + x_5))) > (((2.0 + x_6) > (6.0 + x_11)? (2.0 + x_6) : (6.0 + x_11)) > ((13.0 + x_13) > (13.0 + x_16)? (13.0 + x_13) : (13.0 + x_16))? ((2.0 + x_6) > (6.0 + x_11)? (2.0 + x_6) : (6.0 + x_11)) : ((13.0 + x_13) > (13.0 + x_16)? (13.0 + x_13) : (13.0 + x_16)))? ((9.0 + x_1) > ((16.0 + x_3) > (18.0 + x_5)? (16.0 + x_3) : (18.0 + x_5))? (9.0 + x_1) : ((16.0 + x_3) > (18.0 + x_5)? (16.0 + x_3) : (18.0 + x_5))) : (((2.0 + x_6) > (6.0 + x_11)? (2.0 + x_6) : (6.0 + x_11)) > ((13.0 + x_13) > (13.0 + x_16)? (13.0 + x_13) : (13.0 + x_16))? ((2.0 + x_6) > (6.0 + x_11)? (2.0 + x_6) : (6.0 + x_11)) : ((13.0 + x_13) > (13.0 + x_16)? (13.0 + x_13) : (13.0 + x_16)))) : (((13.0 + x_17) > ((3.0 + x_18) > (10.0 + x_20)? (3.0 + x_18) : (10.0 + x_20))? (13.0 + x_17) : ((3.0 + x_18) > (10.0 + x_20)? (3.0 + x_18) : (10.0 + x_20))) > (((9.0 + x_24) > (6.0 + x_25)? (9.0 + x_24) : (6.0 + x_25)) > ((13.0 + x_26) > (6.0 + x_27)? (13.0 + x_26) : (6.0 + x_27))? ((9.0 + x_24) > (6.0 + x_25)? (9.0 + x_24) : (6.0 + x_25)) : ((13.0 + x_26) > (6.0 + x_27)? (13.0 + x_26) : (6.0 + x_27)))? ((13.0 + x_17) > ((3.0 + x_18) > (10.0 + x_20)? (3.0 + x_18) : (10.0 + x_20))? (13.0 + x_17) : ((3.0 + x_18) > (10.0 + x_20)? (3.0 + x_18) : (10.0 + x_20))) : (((9.0 + x_24) > (6.0 + x_25)? (9.0 + x_24) : (6.0 + x_25)) > ((13.0 + x_26) > (6.0 + x_27)? (13.0 + x_26) : (6.0 + x_27))? ((9.0 + x_24) > (6.0 + x_25)? (9.0 + x_24) : (6.0 + x_25)) : ((13.0 + x_26) > (6.0 + x_27)? (13.0 + x_26) : (6.0 + x_27))))); x_5_ = ((((3.0 + x_3) > ((19.0 + x_4) > (13.0 + x_5)? (19.0 + x_4) : (13.0 + x_5))? (3.0 + x_3) : ((19.0 + x_4) > (13.0 + x_5)? (19.0 + x_4) : (13.0 + x_5))) > (((7.0 + x_6) > (4.0 + x_12)? (7.0 + x_6) : (4.0 + x_12)) > ((20.0 + x_13) > (6.0 + x_14)? (20.0 + x_13) : (6.0 + x_14))? ((7.0 + x_6) > (4.0 + x_12)? (7.0 + x_6) : (4.0 + x_12)) : ((20.0 + x_13) > (6.0 + x_14)? (20.0 + x_13) : (6.0 + x_14)))? ((3.0 + x_3) > ((19.0 + x_4) > (13.0 + x_5)? (19.0 + x_4) : (13.0 + x_5))? (3.0 + x_3) : ((19.0 + x_4) > (13.0 + x_5)? (19.0 + x_4) : (13.0 + x_5))) : (((7.0 + x_6) > (4.0 + x_12)? (7.0 + x_6) : (4.0 + x_12)) > ((20.0 + x_13) > (6.0 + x_14)? (20.0 + x_13) : (6.0 + x_14))? ((7.0 + x_6) > (4.0 + x_12)? (7.0 + x_6) : (4.0 + x_12)) : ((20.0 + x_13) > (6.0 + x_14)? (20.0 + x_13) : (6.0 + x_14)))) > (((6.0 + x_18) > ((7.0 + x_19) > (7.0 + x_20)? (7.0 + x_19) : (7.0 + x_20))? (6.0 + x_18) : ((7.0 + x_19) > (7.0 + x_20)? (7.0 + x_19) : (7.0 + x_20))) > (((20.0 + x_21) > (8.0 + x_23)? (20.0 + x_21) : (8.0 + x_23)) > ((11.0 + x_25) > (3.0 + x_26)? (11.0 + x_25) : (3.0 + x_26))? ((20.0 + x_21) > (8.0 + x_23)? (20.0 + x_21) : (8.0 + x_23)) : ((11.0 + x_25) > (3.0 + x_26)? (11.0 + x_25) : (3.0 + x_26)))? ((6.0 + x_18) > ((7.0 + x_19) > (7.0 + x_20)? (7.0 + x_19) : (7.0 + x_20))? (6.0 + x_18) : ((7.0 + x_19) > (7.0 + x_20)? (7.0 + x_19) : (7.0 + x_20))) : (((20.0 + x_21) > (8.0 + x_23)? (20.0 + x_21) : (8.0 + x_23)) > ((11.0 + x_25) > (3.0 + x_26)? (11.0 + x_25) : (3.0 + x_26))? ((20.0 + x_21) > (8.0 + x_23)? (20.0 + x_21) : (8.0 + x_23)) : ((11.0 + x_25) > (3.0 + x_26)? (11.0 + x_25) : (3.0 + x_26))))? (((3.0 + x_3) > ((19.0 + x_4) > (13.0 + x_5)? (19.0 + x_4) : (13.0 + x_5))? (3.0 + x_3) : ((19.0 + x_4) > (13.0 + x_5)? (19.0 + x_4) : (13.0 + x_5))) > (((7.0 + x_6) > (4.0 + x_12)? (7.0 + x_6) : (4.0 + x_12)) > ((20.0 + x_13) > (6.0 + x_14)? (20.0 + x_13) : (6.0 + x_14))? ((7.0 + x_6) > (4.0 + x_12)? (7.0 + x_6) : (4.0 + x_12)) : ((20.0 + x_13) > (6.0 + x_14)? (20.0 + x_13) : (6.0 + x_14)))? ((3.0 + x_3) > ((19.0 + x_4) > (13.0 + x_5)? (19.0 + x_4) : (13.0 + x_5))? (3.0 + x_3) : ((19.0 + x_4) > (13.0 + x_5)? (19.0 + x_4) : (13.0 + x_5))) : (((7.0 + x_6) > (4.0 + x_12)? (7.0 + x_6) : (4.0 + x_12)) > ((20.0 + x_13) > (6.0 + x_14)? (20.0 + x_13) : (6.0 + x_14))? ((7.0 + x_6) > (4.0 + x_12)? (7.0 + x_6) : (4.0 + x_12)) : ((20.0 + x_13) > (6.0 + x_14)? (20.0 + x_13) : (6.0 + x_14)))) : (((6.0 + x_18) > ((7.0 + x_19) > (7.0 + x_20)? (7.0 + x_19) : (7.0 + x_20))? (6.0 + x_18) : ((7.0 + x_19) > (7.0 + x_20)? (7.0 + x_19) : (7.0 + x_20))) > (((20.0 + x_21) > (8.0 + x_23)? (20.0 + x_21) : (8.0 + x_23)) > ((11.0 + x_25) > (3.0 + x_26)? (11.0 + x_25) : (3.0 + x_26))? ((20.0 + x_21) > (8.0 + x_23)? (20.0 + x_21) : (8.0 + x_23)) : ((11.0 + x_25) > (3.0 + x_26)? (11.0 + x_25) : (3.0 + x_26)))? ((6.0 + x_18) > ((7.0 + x_19) > (7.0 + x_20)? (7.0 + x_19) : (7.0 + x_20))? (6.0 + x_18) : ((7.0 + x_19) > (7.0 + x_20)? (7.0 + x_19) : (7.0 + x_20))) : (((20.0 + x_21) > (8.0 + x_23)? (20.0 + x_21) : (8.0 + x_23)) > ((11.0 + x_25) > (3.0 + x_26)? (11.0 + x_25) : (3.0 + x_26))? ((20.0 + x_21) > (8.0 + x_23)? (20.0 + x_21) : (8.0 + x_23)) : ((11.0 + x_25) > (3.0 + x_26)? (11.0 + x_25) : (3.0 + x_26))))); x_6_ = ((((14.0 + x_0) > ((5.0 + x_2) > (18.0 + x_3)? (5.0 + x_2) : (18.0 + x_3))? (14.0 + x_0) : ((5.0 + x_2) > (18.0 + x_3)? (5.0 + x_2) : (18.0 + x_3))) > (((1.0 + x_4) > (6.0 + x_5)? (1.0 + x_4) : (6.0 + x_5)) > ((12.0 + x_6) > (4.0 + x_7)? (12.0 + x_6) : (4.0 + x_7))? ((1.0 + x_4) > (6.0 + x_5)? (1.0 + x_4) : (6.0 + x_5)) : ((12.0 + x_6) > (4.0 + x_7)? (12.0 + x_6) : (4.0 + x_7)))? ((14.0 + x_0) > ((5.0 + x_2) > (18.0 + x_3)? (5.0 + x_2) : (18.0 + x_3))? (14.0 + x_0) : ((5.0 + x_2) > (18.0 + x_3)? (5.0 + x_2) : (18.0 + x_3))) : (((1.0 + x_4) > (6.0 + x_5)? (1.0 + x_4) : (6.0 + x_5)) > ((12.0 + x_6) > (4.0 + x_7)? (12.0 + x_6) : (4.0 + x_7))? ((1.0 + x_4) > (6.0 + x_5)? (1.0 + x_4) : (6.0 + x_5)) : ((12.0 + x_6) > (4.0 + x_7)? (12.0 + x_6) : (4.0 + x_7)))) > (((9.0 + x_9) > ((7.0 + x_10) > (12.0 + x_13)? (7.0 + x_10) : (12.0 + x_13))? (9.0 + x_9) : ((7.0 + x_10) > (12.0 + x_13)? (7.0 + x_10) : (12.0 + x_13))) > (((20.0 + x_15) > (2.0 + x_16)? (20.0 + x_15) : (2.0 + x_16)) > ((3.0 + x_18) > (10.0 + x_25)? (3.0 + x_18) : (10.0 + x_25))? ((20.0 + x_15) > (2.0 + x_16)? (20.0 + x_15) : (2.0 + x_16)) : ((3.0 + x_18) > (10.0 + x_25)? (3.0 + x_18) : (10.0 + x_25)))? ((9.0 + x_9) > ((7.0 + x_10) > (12.0 + x_13)? (7.0 + x_10) : (12.0 + x_13))? (9.0 + x_9) : ((7.0 + x_10) > (12.0 + x_13)? (7.0 + x_10) : (12.0 + x_13))) : (((20.0 + x_15) > (2.0 + x_16)? (20.0 + x_15) : (2.0 + x_16)) > ((3.0 + x_18) > (10.0 + x_25)? (3.0 + x_18) : (10.0 + x_25))? ((20.0 + x_15) > (2.0 + x_16)? (20.0 + x_15) : (2.0 + x_16)) : ((3.0 + x_18) > (10.0 + x_25)? (3.0 + x_18) : (10.0 + x_25))))? (((14.0 + x_0) > ((5.0 + x_2) > (18.0 + x_3)? (5.0 + x_2) : (18.0 + x_3))? (14.0 + x_0) : ((5.0 + x_2) > (18.0 + x_3)? (5.0 + x_2) : (18.0 + x_3))) > (((1.0 + x_4) > (6.0 + x_5)? (1.0 + x_4) : (6.0 + x_5)) > ((12.0 + x_6) > (4.0 + x_7)? (12.0 + x_6) : (4.0 + x_7))? ((1.0 + x_4) > (6.0 + x_5)? (1.0 + x_4) : (6.0 + x_5)) : ((12.0 + x_6) > (4.0 + x_7)? (12.0 + x_6) : (4.0 + x_7)))? ((14.0 + x_0) > ((5.0 + x_2) > (18.0 + x_3)? (5.0 + x_2) : (18.0 + x_3))? (14.0 + x_0) : ((5.0 + x_2) > (18.0 + x_3)? (5.0 + x_2) : (18.0 + x_3))) : (((1.0 + x_4) > (6.0 + x_5)? (1.0 + x_4) : (6.0 + x_5)) > ((12.0 + x_6) > (4.0 + x_7)? (12.0 + x_6) : (4.0 + x_7))? ((1.0 + x_4) > (6.0 + x_5)? (1.0 + x_4) : (6.0 + x_5)) : ((12.0 + x_6) > (4.0 + x_7)? (12.0 + x_6) : (4.0 + x_7)))) : (((9.0 + x_9) > ((7.0 + x_10) > (12.0 + x_13)? (7.0 + x_10) : (12.0 + x_13))? (9.0 + x_9) : ((7.0 + x_10) > (12.0 + x_13)? (7.0 + x_10) : (12.0 + x_13))) > (((20.0 + x_15) > (2.0 + x_16)? (20.0 + x_15) : (2.0 + x_16)) > ((3.0 + x_18) > (10.0 + x_25)? (3.0 + x_18) : (10.0 + x_25))? ((20.0 + x_15) > (2.0 + x_16)? (20.0 + x_15) : (2.0 + x_16)) : ((3.0 + x_18) > (10.0 + x_25)? (3.0 + x_18) : (10.0 + x_25)))? ((9.0 + x_9) > ((7.0 + x_10) > (12.0 + x_13)? (7.0 + x_10) : (12.0 + x_13))? (9.0 + x_9) : ((7.0 + x_10) > (12.0 + x_13)? (7.0 + x_10) : (12.0 + x_13))) : (((20.0 + x_15) > (2.0 + x_16)? (20.0 + x_15) : (2.0 + x_16)) > ((3.0 + x_18) > (10.0 + x_25)? (3.0 + x_18) : (10.0 + x_25))? ((20.0 + x_15) > (2.0 + x_16)? (20.0 + x_15) : (2.0 + x_16)) : ((3.0 + x_18) > (10.0 + x_25)? (3.0 + x_18) : (10.0 + x_25))))); x_7_ = ((((19.0 + x_2) > ((3.0 + x_5) > (4.0 + x_7)? (3.0 + x_5) : (4.0 + x_7))? (19.0 + x_2) : ((3.0 + x_5) > (4.0 + x_7)? (3.0 + x_5) : (4.0 + x_7))) > (((3.0 + x_9) > (16.0 + x_10)? (3.0 + x_9) : (16.0 + x_10)) > ((12.0 + x_12) > (10.0 + x_13)? (12.0 + x_12) : (10.0 + x_13))? ((3.0 + x_9) > (16.0 + x_10)? (3.0 + x_9) : (16.0 + x_10)) : ((12.0 + x_12) > (10.0 + x_13)? (12.0 + x_12) : (10.0 + x_13)))? ((19.0 + x_2) > ((3.0 + x_5) > (4.0 + x_7)? (3.0 + x_5) : (4.0 + x_7))? (19.0 + x_2) : ((3.0 + x_5) > (4.0 + x_7)? (3.0 + x_5) : (4.0 + x_7))) : (((3.0 + x_9) > (16.0 + x_10)? (3.0 + x_9) : (16.0 + x_10)) > ((12.0 + x_12) > (10.0 + x_13)? (12.0 + x_12) : (10.0 + x_13))? ((3.0 + x_9) > (16.0 + x_10)? (3.0 + x_9) : (16.0 + x_10)) : ((12.0 + x_12) > (10.0 + x_13)? (12.0 + x_12) : (10.0 + x_13)))) > (((2.0 + x_16) > ((14.0 + x_17) > (6.0 + x_18)? (14.0 + x_17) : (6.0 + x_18))? (2.0 + x_16) : ((14.0 + x_17) > (6.0 + x_18)? (14.0 + x_17) : (6.0 + x_18))) > (((5.0 + x_19) > (6.0 + x_23)? (5.0 + x_19) : (6.0 + x_23)) > ((2.0 + x_25) > (16.0 + x_27)? (2.0 + x_25) : (16.0 + x_27))? ((5.0 + x_19) > (6.0 + x_23)? (5.0 + x_19) : (6.0 + x_23)) : ((2.0 + x_25) > (16.0 + x_27)? (2.0 + x_25) : (16.0 + x_27)))? ((2.0 + x_16) > ((14.0 + x_17) > (6.0 + x_18)? (14.0 + x_17) : (6.0 + x_18))? (2.0 + x_16) : ((14.0 + x_17) > (6.0 + x_18)? (14.0 + x_17) : (6.0 + x_18))) : (((5.0 + x_19) > (6.0 + x_23)? (5.0 + x_19) : (6.0 + x_23)) > ((2.0 + x_25) > (16.0 + x_27)? (2.0 + x_25) : (16.0 + x_27))? ((5.0 + x_19) > (6.0 + x_23)? (5.0 + x_19) : (6.0 + x_23)) : ((2.0 + x_25) > (16.0 + x_27)? (2.0 + x_25) : (16.0 + x_27))))? (((19.0 + x_2) > ((3.0 + x_5) > (4.0 + x_7)? (3.0 + x_5) : (4.0 + x_7))? (19.0 + x_2) : ((3.0 + x_5) > (4.0 + x_7)? (3.0 + x_5) : (4.0 + x_7))) > (((3.0 + x_9) > (16.0 + x_10)? (3.0 + x_9) : (16.0 + x_10)) > ((12.0 + x_12) > (10.0 + x_13)? (12.0 + x_12) : (10.0 + x_13))? ((3.0 + x_9) > (16.0 + x_10)? (3.0 + x_9) : (16.0 + x_10)) : ((12.0 + x_12) > (10.0 + x_13)? (12.0 + x_12) : (10.0 + x_13)))? ((19.0 + x_2) > ((3.0 + x_5) > (4.0 + x_7)? (3.0 + x_5) : (4.0 + x_7))? (19.0 + x_2) : ((3.0 + x_5) > (4.0 + x_7)? (3.0 + x_5) : (4.0 + x_7))) : (((3.0 + x_9) > (16.0 + x_10)? (3.0 + x_9) : (16.0 + x_10)) > ((12.0 + x_12) > (10.0 + x_13)? (12.0 + x_12) : (10.0 + x_13))? ((3.0 + x_9) > (16.0 + x_10)? (3.0 + x_9) : (16.0 + x_10)) : ((12.0 + x_12) > (10.0 + x_13)? (12.0 + x_12) : (10.0 + x_13)))) : (((2.0 + x_16) > ((14.0 + x_17) > (6.0 + x_18)? (14.0 + x_17) : (6.0 + x_18))? (2.0 + x_16) : ((14.0 + x_17) > (6.0 + x_18)? (14.0 + x_17) : (6.0 + x_18))) > (((5.0 + x_19) > (6.0 + x_23)? (5.0 + x_19) : (6.0 + x_23)) > ((2.0 + x_25) > (16.0 + x_27)? (2.0 + x_25) : (16.0 + x_27))? ((5.0 + x_19) > (6.0 + x_23)? (5.0 + x_19) : (6.0 + x_23)) : ((2.0 + x_25) > (16.0 + x_27)? (2.0 + x_25) : (16.0 + x_27)))? ((2.0 + x_16) > ((14.0 + x_17) > (6.0 + x_18)? (14.0 + x_17) : (6.0 + x_18))? (2.0 + x_16) : ((14.0 + x_17) > (6.0 + x_18)? (14.0 + x_17) : (6.0 + x_18))) : (((5.0 + x_19) > (6.0 + x_23)? (5.0 + x_19) : (6.0 + x_23)) > ((2.0 + x_25) > (16.0 + x_27)? (2.0 + x_25) : (16.0 + x_27))? ((5.0 + x_19) > (6.0 + x_23)? (5.0 + x_19) : (6.0 + x_23)) : ((2.0 + x_25) > (16.0 + x_27)? (2.0 + x_25) : (16.0 + x_27))))); x_8_ = ((((3.0 + x_2) > ((3.0 + x_3) > (13.0 + x_4)? (3.0 + x_3) : (13.0 + x_4))? (3.0 + x_2) : ((3.0 + x_3) > (13.0 + x_4)? (3.0 + x_3) : (13.0 + x_4))) > (((9.0 + x_5) > (3.0 + x_6)? (9.0 + x_5) : (3.0 + x_6)) > ((19.0 + x_7) > (8.0 + x_8)? (19.0 + x_7) : (8.0 + x_8))? ((9.0 + x_5) > (3.0 + x_6)? (9.0 + x_5) : (3.0 + x_6)) : ((19.0 + x_7) > (8.0 + x_8)? (19.0 + x_7) : (8.0 + x_8)))? ((3.0 + x_2) > ((3.0 + x_3) > (13.0 + x_4)? (3.0 + x_3) : (13.0 + x_4))? (3.0 + x_2) : ((3.0 + x_3) > (13.0 + x_4)? (3.0 + x_3) : (13.0 + x_4))) : (((9.0 + x_5) > (3.0 + x_6)? (9.0 + x_5) : (3.0 + x_6)) > ((19.0 + x_7) > (8.0 + x_8)? (19.0 + x_7) : (8.0 + x_8))? ((9.0 + x_5) > (3.0 + x_6)? (9.0 + x_5) : (3.0 + x_6)) : ((19.0 + x_7) > (8.0 + x_8)? (19.0 + x_7) : (8.0 + x_8)))) > (((10.0 + x_10) > ((9.0 + x_12) > (2.0 + x_13)? (9.0 + x_12) : (2.0 + x_13))? (10.0 + x_10) : ((9.0 + x_12) > (2.0 + x_13)? (9.0 + x_12) : (2.0 + x_13))) > (((9.0 + x_15) > (4.0 + x_17)? (9.0 + x_15) : (4.0 + x_17)) > ((17.0 + x_18) > (8.0 + x_24)? (17.0 + x_18) : (8.0 + x_24))? ((9.0 + x_15) > (4.0 + x_17)? (9.0 + x_15) : (4.0 + x_17)) : ((17.0 + x_18) > (8.0 + x_24)? (17.0 + x_18) : (8.0 + x_24)))? ((10.0 + x_10) > ((9.0 + x_12) > (2.0 + x_13)? (9.0 + x_12) : (2.0 + x_13))? (10.0 + x_10) : ((9.0 + x_12) > (2.0 + x_13)? (9.0 + x_12) : (2.0 + x_13))) : (((9.0 + x_15) > (4.0 + x_17)? (9.0 + x_15) : (4.0 + x_17)) > ((17.0 + x_18) > (8.0 + x_24)? (17.0 + x_18) : (8.0 + x_24))? ((9.0 + x_15) > (4.0 + x_17)? (9.0 + x_15) : (4.0 + x_17)) : ((17.0 + x_18) > (8.0 + x_24)? (17.0 + x_18) : (8.0 + x_24))))? (((3.0 + x_2) > ((3.0 + x_3) > (13.0 + x_4)? (3.0 + x_3) : (13.0 + x_4))? (3.0 + x_2) : ((3.0 + x_3) > (13.0 + x_4)? (3.0 + x_3) : (13.0 + x_4))) > (((9.0 + x_5) > (3.0 + x_6)? (9.0 + x_5) : (3.0 + x_6)) > ((19.0 + x_7) > (8.0 + x_8)? (19.0 + x_7) : (8.0 + x_8))? ((9.0 + x_5) > (3.0 + x_6)? (9.0 + x_5) : (3.0 + x_6)) : ((19.0 + x_7) > (8.0 + x_8)? (19.0 + x_7) : (8.0 + x_8)))? ((3.0 + x_2) > ((3.0 + x_3) > (13.0 + x_4)? (3.0 + x_3) : (13.0 + x_4))? (3.0 + x_2) : ((3.0 + x_3) > (13.0 + x_4)? (3.0 + x_3) : (13.0 + x_4))) : (((9.0 + x_5) > (3.0 + x_6)? (9.0 + x_5) : (3.0 + x_6)) > ((19.0 + x_7) > (8.0 + x_8)? (19.0 + x_7) : (8.0 + x_8))? ((9.0 + x_5) > (3.0 + x_6)? (9.0 + x_5) : (3.0 + x_6)) : ((19.0 + x_7) > (8.0 + x_8)? (19.0 + x_7) : (8.0 + x_8)))) : (((10.0 + x_10) > ((9.0 + x_12) > (2.0 + x_13)? (9.0 + x_12) : (2.0 + x_13))? (10.0 + x_10) : ((9.0 + x_12) > (2.0 + x_13)? (9.0 + x_12) : (2.0 + x_13))) > (((9.0 + x_15) > (4.0 + x_17)? (9.0 + x_15) : (4.0 + x_17)) > ((17.0 + x_18) > (8.0 + x_24)? (17.0 + x_18) : (8.0 + x_24))? ((9.0 + x_15) > (4.0 + x_17)? (9.0 + x_15) : (4.0 + x_17)) : ((17.0 + x_18) > (8.0 + x_24)? (17.0 + x_18) : (8.0 + x_24)))? ((10.0 + x_10) > ((9.0 + x_12) > (2.0 + x_13)? (9.0 + x_12) : (2.0 + x_13))? (10.0 + x_10) : ((9.0 + x_12) > (2.0 + x_13)? (9.0 + x_12) : (2.0 + x_13))) : (((9.0 + x_15) > (4.0 + x_17)? (9.0 + x_15) : (4.0 + x_17)) > ((17.0 + x_18) > (8.0 + x_24)? (17.0 + x_18) : (8.0 + x_24))? ((9.0 + x_15) > (4.0 + x_17)? (9.0 + x_15) : (4.0 + x_17)) : ((17.0 + x_18) > (8.0 + x_24)? (17.0 + x_18) : (8.0 + x_24))))); x_9_ = ((((18.0 + x_1) > ((1.0 + x_2) > (3.0 + x_3)? (1.0 + x_2) : (3.0 + x_3))? (18.0 + x_1) : ((1.0 + x_2) > (3.0 + x_3)? (1.0 + x_2) : (3.0 + x_3))) > (((18.0 + x_4) > (19.0 + x_7)? (18.0 + x_4) : (19.0 + x_7)) > ((8.0 + x_8) > (4.0 + x_10)? (8.0 + x_8) : (4.0 + x_10))? ((18.0 + x_4) > (19.0 + x_7)? (18.0 + x_4) : (19.0 + x_7)) : ((8.0 + x_8) > (4.0 + x_10)? (8.0 + x_8) : (4.0 + x_10)))? ((18.0 + x_1) > ((1.0 + x_2) > (3.0 + x_3)? (1.0 + x_2) : (3.0 + x_3))? (18.0 + x_1) : ((1.0 + x_2) > (3.0 + x_3)? (1.0 + x_2) : (3.0 + x_3))) : (((18.0 + x_4) > (19.0 + x_7)? (18.0 + x_4) : (19.0 + x_7)) > ((8.0 + x_8) > (4.0 + x_10)? (8.0 + x_8) : (4.0 + x_10))? ((18.0 + x_4) > (19.0 + x_7)? (18.0 + x_4) : (19.0 + x_7)) : ((8.0 + x_8) > (4.0 + x_10)? (8.0 + x_8) : (4.0 + x_10)))) > (((12.0 + x_12) > ((16.0 + x_14) > (10.0 + x_18)? (16.0 + x_14) : (10.0 + x_18))? (12.0 + x_12) : ((16.0 + x_14) > (10.0 + x_18)? (16.0 + x_14) : (10.0 + x_18))) > (((12.0 + x_19) > (4.0 + x_21)? (12.0 + x_19) : (4.0 + x_21)) > ((5.0 + x_23) > (6.0 + x_27)? (5.0 + x_23) : (6.0 + x_27))? ((12.0 + x_19) > (4.0 + x_21)? (12.0 + x_19) : (4.0 + x_21)) : ((5.0 + x_23) > (6.0 + x_27)? (5.0 + x_23) : (6.0 + x_27)))? ((12.0 + x_12) > ((16.0 + x_14) > (10.0 + x_18)? (16.0 + x_14) : (10.0 + x_18))? (12.0 + x_12) : ((16.0 + x_14) > (10.0 + x_18)? (16.0 + x_14) : (10.0 + x_18))) : (((12.0 + x_19) > (4.0 + x_21)? (12.0 + x_19) : (4.0 + x_21)) > ((5.0 + x_23) > (6.0 + x_27)? (5.0 + x_23) : (6.0 + x_27))? ((12.0 + x_19) > (4.0 + x_21)? (12.0 + x_19) : (4.0 + x_21)) : ((5.0 + x_23) > (6.0 + x_27)? (5.0 + x_23) : (6.0 + x_27))))? (((18.0 + x_1) > ((1.0 + x_2) > (3.0 + x_3)? (1.0 + x_2) : (3.0 + x_3))? (18.0 + x_1) : ((1.0 + x_2) > (3.0 + x_3)? (1.0 + x_2) : (3.0 + x_3))) > (((18.0 + x_4) > (19.0 + x_7)? (18.0 + x_4) : (19.0 + x_7)) > ((8.0 + x_8) > (4.0 + x_10)? (8.0 + x_8) : (4.0 + x_10))? ((18.0 + x_4) > (19.0 + x_7)? (18.0 + x_4) : (19.0 + x_7)) : ((8.0 + x_8) > (4.0 + x_10)? (8.0 + x_8) : (4.0 + x_10)))? ((18.0 + x_1) > ((1.0 + x_2) > (3.0 + x_3)? (1.0 + x_2) : (3.0 + x_3))? (18.0 + x_1) : ((1.0 + x_2) > (3.0 + x_3)? (1.0 + x_2) : (3.0 + x_3))) : (((18.0 + x_4) > (19.0 + x_7)? (18.0 + x_4) : (19.0 + x_7)) > ((8.0 + x_8) > (4.0 + x_10)? (8.0 + x_8) : (4.0 + x_10))? ((18.0 + x_4) > (19.0 + x_7)? (18.0 + x_4) : (19.0 + x_7)) : ((8.0 + x_8) > (4.0 + x_10)? (8.0 + x_8) : (4.0 + x_10)))) : (((12.0 + x_12) > ((16.0 + x_14) > (10.0 + x_18)? (16.0 + x_14) : (10.0 + x_18))? (12.0 + x_12) : ((16.0 + x_14) > (10.0 + x_18)? (16.0 + x_14) : (10.0 + x_18))) > (((12.0 + x_19) > (4.0 + x_21)? (12.0 + x_19) : (4.0 + x_21)) > ((5.0 + x_23) > (6.0 + x_27)? (5.0 + x_23) : (6.0 + x_27))? ((12.0 + x_19) > (4.0 + x_21)? (12.0 + x_19) : (4.0 + x_21)) : ((5.0 + x_23) > (6.0 + x_27)? (5.0 + x_23) : (6.0 + x_27)))? ((12.0 + x_12) > ((16.0 + x_14) > (10.0 + x_18)? (16.0 + x_14) : (10.0 + x_18))? (12.0 + x_12) : ((16.0 + x_14) > (10.0 + x_18)? (16.0 + x_14) : (10.0 + x_18))) : (((12.0 + x_19) > (4.0 + x_21)? (12.0 + x_19) : (4.0 + x_21)) > ((5.0 + x_23) > (6.0 + x_27)? (5.0 + x_23) : (6.0 + x_27))? ((12.0 + x_19) > (4.0 + x_21)? (12.0 + x_19) : (4.0 + x_21)) : ((5.0 + x_23) > (6.0 + x_27)? (5.0 + x_23) : (6.0 + x_27))))); x_10_ = ((((5.0 + x_0) > ((2.0 + x_2) > (9.0 + x_3)? (2.0 + x_2) : (9.0 + x_3))? (5.0 + x_0) : ((2.0 + x_2) > (9.0 + x_3)? (2.0 + x_2) : (9.0 + x_3))) > (((8.0 + x_8) > (8.0 + x_10)? (8.0 + x_8) : (8.0 + x_10)) > ((10.0 + x_13) > (13.0 + x_14)? (10.0 + x_13) : (13.0 + x_14))? ((8.0 + x_8) > (8.0 + x_10)? (8.0 + x_8) : (8.0 + x_10)) : ((10.0 + x_13) > (13.0 + x_14)? (10.0 + x_13) : (13.0 + x_14)))? ((5.0 + x_0) > ((2.0 + x_2) > (9.0 + x_3)? (2.0 + x_2) : (9.0 + x_3))? (5.0 + x_0) : ((2.0 + x_2) > (9.0 + x_3)? (2.0 + x_2) : (9.0 + x_3))) : (((8.0 + x_8) > (8.0 + x_10)? (8.0 + x_8) : (8.0 + x_10)) > ((10.0 + x_13) > (13.0 + x_14)? (10.0 + x_13) : (13.0 + x_14))? ((8.0 + x_8) > (8.0 + x_10)? (8.0 + x_8) : (8.0 + x_10)) : ((10.0 + x_13) > (13.0 + x_14)? (10.0 + x_13) : (13.0 + x_14)))) > (((7.0 + x_15) > ((15.0 + x_18) > (3.0 + x_19)? (15.0 + x_18) : (3.0 + x_19))? (7.0 + x_15) : ((15.0 + x_18) > (3.0 + x_19)? (15.0 + x_18) : (3.0 + x_19))) > (((3.0 + x_20) > (6.0 + x_21)? (3.0 + x_20) : (6.0 + x_21)) > ((3.0 + x_26) > (5.0 + x_27)? (3.0 + x_26) : (5.0 + x_27))? ((3.0 + x_20) > (6.0 + x_21)? (3.0 + x_20) : (6.0 + x_21)) : ((3.0 + x_26) > (5.0 + x_27)? (3.0 + x_26) : (5.0 + x_27)))? ((7.0 + x_15) > ((15.0 + x_18) > (3.0 + x_19)? (15.0 + x_18) : (3.0 + x_19))? (7.0 + x_15) : ((15.0 + x_18) > (3.0 + x_19)? (15.0 + x_18) : (3.0 + x_19))) : (((3.0 + x_20) > (6.0 + x_21)? (3.0 + x_20) : (6.0 + x_21)) > ((3.0 + x_26) > (5.0 + x_27)? (3.0 + x_26) : (5.0 + x_27))? ((3.0 + x_20) > (6.0 + x_21)? (3.0 + x_20) : (6.0 + x_21)) : ((3.0 + x_26) > (5.0 + x_27)? (3.0 + x_26) : (5.0 + x_27))))? (((5.0 + x_0) > ((2.0 + x_2) > (9.0 + x_3)? (2.0 + x_2) : (9.0 + x_3))? (5.0 + x_0) : ((2.0 + x_2) > (9.0 + x_3)? (2.0 + x_2) : (9.0 + x_3))) > (((8.0 + x_8) > (8.0 + x_10)? (8.0 + x_8) : (8.0 + x_10)) > ((10.0 + x_13) > (13.0 + x_14)? (10.0 + x_13) : (13.0 + x_14))? ((8.0 + x_8) > (8.0 + x_10)? (8.0 + x_8) : (8.0 + x_10)) : ((10.0 + x_13) > (13.0 + x_14)? (10.0 + x_13) : (13.0 + x_14)))? ((5.0 + x_0) > ((2.0 + x_2) > (9.0 + x_3)? (2.0 + x_2) : (9.0 + x_3))? (5.0 + x_0) : ((2.0 + x_2) > (9.0 + x_3)? (2.0 + x_2) : (9.0 + x_3))) : (((8.0 + x_8) > (8.0 + x_10)? (8.0 + x_8) : (8.0 + x_10)) > ((10.0 + x_13) > (13.0 + x_14)? (10.0 + x_13) : (13.0 + x_14))? ((8.0 + x_8) > (8.0 + x_10)? (8.0 + x_8) : (8.0 + x_10)) : ((10.0 + x_13) > (13.0 + x_14)? (10.0 + x_13) : (13.0 + x_14)))) : (((7.0 + x_15) > ((15.0 + x_18) > (3.0 + x_19)? (15.0 + x_18) : (3.0 + x_19))? (7.0 + x_15) : ((15.0 + x_18) > (3.0 + x_19)? (15.0 + x_18) : (3.0 + x_19))) > (((3.0 + x_20) > (6.0 + x_21)? (3.0 + x_20) : (6.0 + x_21)) > ((3.0 + x_26) > (5.0 + x_27)? (3.0 + x_26) : (5.0 + x_27))? ((3.0 + x_20) > (6.0 + x_21)? (3.0 + x_20) : (6.0 + x_21)) : ((3.0 + x_26) > (5.0 + x_27)? (3.0 + x_26) : (5.0 + x_27)))? ((7.0 + x_15) > ((15.0 + x_18) > (3.0 + x_19)? (15.0 + x_18) : (3.0 + x_19))? (7.0 + x_15) : ((15.0 + x_18) > (3.0 + x_19)? (15.0 + x_18) : (3.0 + x_19))) : (((3.0 + x_20) > (6.0 + x_21)? (3.0 + x_20) : (6.0 + x_21)) > ((3.0 + x_26) > (5.0 + x_27)? (3.0 + x_26) : (5.0 + x_27))? ((3.0 + x_20) > (6.0 + x_21)? (3.0 + x_20) : (6.0 + x_21)) : ((3.0 + x_26) > (5.0 + x_27)? (3.0 + x_26) : (5.0 + x_27))))); x_11_ = ((((19.0 + x_0) > ((2.0 + x_1) > (12.0 + x_2)? (2.0 + x_1) : (12.0 + x_2))? (19.0 + x_0) : ((2.0 + x_1) > (12.0 + x_2)? (2.0 + x_1) : (12.0 + x_2))) > (((7.0 + x_3) > (14.0 + x_4)? (7.0 + x_3) : (14.0 + x_4)) > ((14.0 + x_7) > (9.0 + x_8)? (14.0 + x_7) : (9.0 + x_8))? ((7.0 + x_3) > (14.0 + x_4)? (7.0 + x_3) : (14.0 + x_4)) : ((14.0 + x_7) > (9.0 + x_8)? (14.0 + x_7) : (9.0 + x_8)))? ((19.0 + x_0) > ((2.0 + x_1) > (12.0 + x_2)? (2.0 + x_1) : (12.0 + x_2))? (19.0 + x_0) : ((2.0 + x_1) > (12.0 + x_2)? (2.0 + x_1) : (12.0 + x_2))) : (((7.0 + x_3) > (14.0 + x_4)? (7.0 + x_3) : (14.0 + x_4)) > ((14.0 + x_7) > (9.0 + x_8)? (14.0 + x_7) : (9.0 + x_8))? ((7.0 + x_3) > (14.0 + x_4)? (7.0 + x_3) : (14.0 + x_4)) : ((14.0 + x_7) > (9.0 + x_8)? (14.0 + x_7) : (9.0 + x_8)))) > (((5.0 + x_11) > ((16.0 + x_20) > (7.0 + x_22)? (16.0 + x_20) : (7.0 + x_22))? (5.0 + x_11) : ((16.0 + x_20) > (7.0 + x_22)? (16.0 + x_20) : (7.0 + x_22))) > (((10.0 + x_23) > (20.0 + x_24)? (10.0 + x_23) : (20.0 + x_24)) > ((8.0 + x_25) > (7.0 + x_27)? (8.0 + x_25) : (7.0 + x_27))? ((10.0 + x_23) > (20.0 + x_24)? (10.0 + x_23) : (20.0 + x_24)) : ((8.0 + x_25) > (7.0 + x_27)? (8.0 + x_25) : (7.0 + x_27)))? ((5.0 + x_11) > ((16.0 + x_20) > (7.0 + x_22)? (16.0 + x_20) : (7.0 + x_22))? (5.0 + x_11) : ((16.0 + x_20) > (7.0 + x_22)? (16.0 + x_20) : (7.0 + x_22))) : (((10.0 + x_23) > (20.0 + x_24)? (10.0 + x_23) : (20.0 + x_24)) > ((8.0 + x_25) > (7.0 + x_27)? (8.0 + x_25) : (7.0 + x_27))? ((10.0 + x_23) > (20.0 + x_24)? (10.0 + x_23) : (20.0 + x_24)) : ((8.0 + x_25) > (7.0 + x_27)? (8.0 + x_25) : (7.0 + x_27))))? (((19.0 + x_0) > ((2.0 + x_1) > (12.0 + x_2)? (2.0 + x_1) : (12.0 + x_2))? (19.0 + x_0) : ((2.0 + x_1) > (12.0 + x_2)? (2.0 + x_1) : (12.0 + x_2))) > (((7.0 + x_3) > (14.0 + x_4)? (7.0 + x_3) : (14.0 + x_4)) > ((14.0 + x_7) > (9.0 + x_8)? (14.0 + x_7) : (9.0 + x_8))? ((7.0 + x_3) > (14.0 + x_4)? (7.0 + x_3) : (14.0 + x_4)) : ((14.0 + x_7) > (9.0 + x_8)? (14.0 + x_7) : (9.0 + x_8)))? ((19.0 + x_0) > ((2.0 + x_1) > (12.0 + x_2)? (2.0 + x_1) : (12.0 + x_2))? (19.0 + x_0) : ((2.0 + x_1) > (12.0 + x_2)? (2.0 + x_1) : (12.0 + x_2))) : (((7.0 + x_3) > (14.0 + x_4)? (7.0 + x_3) : (14.0 + x_4)) > ((14.0 + x_7) > (9.0 + x_8)? (14.0 + x_7) : (9.0 + x_8))? ((7.0 + x_3) > (14.0 + x_4)? (7.0 + x_3) : (14.0 + x_4)) : ((14.0 + x_7) > (9.0 + x_8)? (14.0 + x_7) : (9.0 + x_8)))) : (((5.0 + x_11) > ((16.0 + x_20) > (7.0 + x_22)? (16.0 + x_20) : (7.0 + x_22))? (5.0 + x_11) : ((16.0 + x_20) > (7.0 + x_22)? (16.0 + x_20) : (7.0 + x_22))) > (((10.0 + x_23) > (20.0 + x_24)? (10.0 + x_23) : (20.0 + x_24)) > ((8.0 + x_25) > (7.0 + x_27)? (8.0 + x_25) : (7.0 + x_27))? ((10.0 + x_23) > (20.0 + x_24)? (10.0 + x_23) : (20.0 + x_24)) : ((8.0 + x_25) > (7.0 + x_27)? (8.0 + x_25) : (7.0 + x_27)))? ((5.0 + x_11) > ((16.0 + x_20) > (7.0 + x_22)? (16.0 + x_20) : (7.0 + x_22))? (5.0 + x_11) : ((16.0 + x_20) > (7.0 + x_22)? (16.0 + x_20) : (7.0 + x_22))) : (((10.0 + x_23) > (20.0 + x_24)? (10.0 + x_23) : (20.0 + x_24)) > ((8.0 + x_25) > (7.0 + x_27)? (8.0 + x_25) : (7.0 + x_27))? ((10.0 + x_23) > (20.0 + x_24)? (10.0 + x_23) : (20.0 + x_24)) : ((8.0 + x_25) > (7.0 + x_27)? (8.0 + x_25) : (7.0 + x_27))))); x_12_ = ((((14.0 + x_2) > ((3.0 + x_6) > (19.0 + x_7)? (3.0 + x_6) : (19.0 + x_7))? (14.0 + x_2) : ((3.0 + x_6) > (19.0 + x_7)? (3.0 + x_6) : (19.0 + x_7))) > (((15.0 + x_8) > (11.0 + x_9)? (15.0 + x_8) : (11.0 + x_9)) > ((5.0 + x_10) > (16.0 + x_12)? (5.0 + x_10) : (16.0 + x_12))? ((15.0 + x_8) > (11.0 + x_9)? (15.0 + x_8) : (11.0 + x_9)) : ((5.0 + x_10) > (16.0 + x_12)? (5.0 + x_10) : (16.0 + x_12)))? ((14.0 + x_2) > ((3.0 + x_6) > (19.0 + x_7)? (3.0 + x_6) : (19.0 + x_7))? (14.0 + x_2) : ((3.0 + x_6) > (19.0 + x_7)? (3.0 + x_6) : (19.0 + x_7))) : (((15.0 + x_8) > (11.0 + x_9)? (15.0 + x_8) : (11.0 + x_9)) > ((5.0 + x_10) > (16.0 + x_12)? (5.0 + x_10) : (16.0 + x_12))? ((15.0 + x_8) > (11.0 + x_9)? (15.0 + x_8) : (11.0 + x_9)) : ((5.0 + x_10) > (16.0 + x_12)? (5.0 + x_10) : (16.0 + x_12)))) > (((13.0 + x_14) > ((19.0 + x_16) > (18.0 + x_17)? (19.0 + x_16) : (18.0 + x_17))? (13.0 + x_14) : ((19.0 + x_16) > (18.0 + x_17)? (19.0 + x_16) : (18.0 + x_17))) > (((12.0 + x_19) > (7.0 + x_21)? (12.0 + x_19) : (7.0 + x_21)) > ((12.0 + x_22) > (2.0 + x_23)? (12.0 + x_22) : (2.0 + x_23))? ((12.0 + x_19) > (7.0 + x_21)? (12.0 + x_19) : (7.0 + x_21)) : ((12.0 + x_22) > (2.0 + x_23)? (12.0 + x_22) : (2.0 + x_23)))? ((13.0 + x_14) > ((19.0 + x_16) > (18.0 + x_17)? (19.0 + x_16) : (18.0 + x_17))? (13.0 + x_14) : ((19.0 + x_16) > (18.0 + x_17)? (19.0 + x_16) : (18.0 + x_17))) : (((12.0 + x_19) > (7.0 + x_21)? (12.0 + x_19) : (7.0 + x_21)) > ((12.0 + x_22) > (2.0 + x_23)? (12.0 + x_22) : (2.0 + x_23))? ((12.0 + x_19) > (7.0 + x_21)? (12.0 + x_19) : (7.0 + x_21)) : ((12.0 + x_22) > (2.0 + x_23)? (12.0 + x_22) : (2.0 + x_23))))? (((14.0 + x_2) > ((3.0 + x_6) > (19.0 + x_7)? (3.0 + x_6) : (19.0 + x_7))? (14.0 + x_2) : ((3.0 + x_6) > (19.0 + x_7)? (3.0 + x_6) : (19.0 + x_7))) > (((15.0 + x_8) > (11.0 + x_9)? (15.0 + x_8) : (11.0 + x_9)) > ((5.0 + x_10) > (16.0 + x_12)? (5.0 + x_10) : (16.0 + x_12))? ((15.0 + x_8) > (11.0 + x_9)? (15.0 + x_8) : (11.0 + x_9)) : ((5.0 + x_10) > (16.0 + x_12)? (5.0 + x_10) : (16.0 + x_12)))? ((14.0 + x_2) > ((3.0 + x_6) > (19.0 + x_7)? (3.0 + x_6) : (19.0 + x_7))? (14.0 + x_2) : ((3.0 + x_6) > (19.0 + x_7)? (3.0 + x_6) : (19.0 + x_7))) : (((15.0 + x_8) > (11.0 + x_9)? (15.0 + x_8) : (11.0 + x_9)) > ((5.0 + x_10) > (16.0 + x_12)? (5.0 + x_10) : (16.0 + x_12))? ((15.0 + x_8) > (11.0 + x_9)? (15.0 + x_8) : (11.0 + x_9)) : ((5.0 + x_10) > (16.0 + x_12)? (5.0 + x_10) : (16.0 + x_12)))) : (((13.0 + x_14) > ((19.0 + x_16) > (18.0 + x_17)? (19.0 + x_16) : (18.0 + x_17))? (13.0 + x_14) : ((19.0 + x_16) > (18.0 + x_17)? (19.0 + x_16) : (18.0 + x_17))) > (((12.0 + x_19) > (7.0 + x_21)? (12.0 + x_19) : (7.0 + x_21)) > ((12.0 + x_22) > (2.0 + x_23)? (12.0 + x_22) : (2.0 + x_23))? ((12.0 + x_19) > (7.0 + x_21)? (12.0 + x_19) : (7.0 + x_21)) : ((12.0 + x_22) > (2.0 + x_23)? (12.0 + x_22) : (2.0 + x_23)))? ((13.0 + x_14) > ((19.0 + x_16) > (18.0 + x_17)? (19.0 + x_16) : (18.0 + x_17))? (13.0 + x_14) : ((19.0 + x_16) > (18.0 + x_17)? (19.0 + x_16) : (18.0 + x_17))) : (((12.0 + x_19) > (7.0 + x_21)? (12.0 + x_19) : (7.0 + x_21)) > ((12.0 + x_22) > (2.0 + x_23)? (12.0 + x_22) : (2.0 + x_23))? ((12.0 + x_19) > (7.0 + x_21)? (12.0 + x_19) : (7.0 + x_21)) : ((12.0 + x_22) > (2.0 + x_23)? (12.0 + x_22) : (2.0 + x_23))))); x_13_ = ((((5.0 + x_1) > ((10.0 + x_2) > (9.0 + x_5)? (10.0 + x_2) : (9.0 + x_5))? (5.0 + x_1) : ((10.0 + x_2) > (9.0 + x_5)? (10.0 + x_2) : (9.0 + x_5))) > (((13.0 + x_6) > (10.0 + x_7)? (13.0 + x_6) : (10.0 + x_7)) > ((8.0 + x_9) > (13.0 + x_10)? (8.0 + x_9) : (13.0 + x_10))? ((13.0 + x_6) > (10.0 + x_7)? (13.0 + x_6) : (10.0 + x_7)) : ((8.0 + x_9) > (13.0 + x_10)? (8.0 + x_9) : (13.0 + x_10)))? ((5.0 + x_1) > ((10.0 + x_2) > (9.0 + x_5)? (10.0 + x_2) : (9.0 + x_5))? (5.0 + x_1) : ((10.0 + x_2) > (9.0 + x_5)? (10.0 + x_2) : (9.0 + x_5))) : (((13.0 + x_6) > (10.0 + x_7)? (13.0 + x_6) : (10.0 + x_7)) > ((8.0 + x_9) > (13.0 + x_10)? (8.0 + x_9) : (13.0 + x_10))? ((13.0 + x_6) > (10.0 + x_7)? (13.0 + x_6) : (10.0 + x_7)) : ((8.0 + x_9) > (13.0 + x_10)? (8.0 + x_9) : (13.0 + x_10)))) > (((19.0 + x_14) > ((16.0 + x_15) > (15.0 + x_19)? (16.0 + x_15) : (15.0 + x_19))? (19.0 + x_14) : ((16.0 + x_15) > (15.0 + x_19)? (16.0 + x_15) : (15.0 + x_19))) > (((2.0 + x_21) > (13.0 + x_24)? (2.0 + x_21) : (13.0 + x_24)) > ((3.0 + x_25) > (16.0 + x_26)? (3.0 + x_25) : (16.0 + x_26))? ((2.0 + x_21) > (13.0 + x_24)? (2.0 + x_21) : (13.0 + x_24)) : ((3.0 + x_25) > (16.0 + x_26)? (3.0 + x_25) : (16.0 + x_26)))? ((19.0 + x_14) > ((16.0 + x_15) > (15.0 + x_19)? (16.0 + x_15) : (15.0 + x_19))? (19.0 + x_14) : ((16.0 + x_15) > (15.0 + x_19)? (16.0 + x_15) : (15.0 + x_19))) : (((2.0 + x_21) > (13.0 + x_24)? (2.0 + x_21) : (13.0 + x_24)) > ((3.0 + x_25) > (16.0 + x_26)? (3.0 + x_25) : (16.0 + x_26))? ((2.0 + x_21) > (13.0 + x_24)? (2.0 + x_21) : (13.0 + x_24)) : ((3.0 + x_25) > (16.0 + x_26)? (3.0 + x_25) : (16.0 + x_26))))? (((5.0 + x_1) > ((10.0 + x_2) > (9.0 + x_5)? (10.0 + x_2) : (9.0 + x_5))? (5.0 + x_1) : ((10.0 + x_2) > (9.0 + x_5)? (10.0 + x_2) : (9.0 + x_5))) > (((13.0 + x_6) > (10.0 + x_7)? (13.0 + x_6) : (10.0 + x_7)) > ((8.0 + x_9) > (13.0 + x_10)? (8.0 + x_9) : (13.0 + x_10))? ((13.0 + x_6) > (10.0 + x_7)? (13.0 + x_6) : (10.0 + x_7)) : ((8.0 + x_9) > (13.0 + x_10)? (8.0 + x_9) : (13.0 + x_10)))? ((5.0 + x_1) > ((10.0 + x_2) > (9.0 + x_5)? (10.0 + x_2) : (9.0 + x_5))? (5.0 + x_1) : ((10.0 + x_2) > (9.0 + x_5)? (10.0 + x_2) : (9.0 + x_5))) : (((13.0 + x_6) > (10.0 + x_7)? (13.0 + x_6) : (10.0 + x_7)) > ((8.0 + x_9) > (13.0 + x_10)? (8.0 + x_9) : (13.0 + x_10))? ((13.0 + x_6) > (10.0 + x_7)? (13.0 + x_6) : (10.0 + x_7)) : ((8.0 + x_9) > (13.0 + x_10)? (8.0 + x_9) : (13.0 + x_10)))) : (((19.0 + x_14) > ((16.0 + x_15) > (15.0 + x_19)? (16.0 + x_15) : (15.0 + x_19))? (19.0 + x_14) : ((16.0 + x_15) > (15.0 + x_19)? (16.0 + x_15) : (15.0 + x_19))) > (((2.0 + x_21) > (13.0 + x_24)? (2.0 + x_21) : (13.0 + x_24)) > ((3.0 + x_25) > (16.0 + x_26)? (3.0 + x_25) : (16.0 + x_26))? ((2.0 + x_21) > (13.0 + x_24)? (2.0 + x_21) : (13.0 + x_24)) : ((3.0 + x_25) > (16.0 + x_26)? (3.0 + x_25) : (16.0 + x_26)))? ((19.0 + x_14) > ((16.0 + x_15) > (15.0 + x_19)? (16.0 + x_15) : (15.0 + x_19))? (19.0 + x_14) : ((16.0 + x_15) > (15.0 + x_19)? (16.0 + x_15) : (15.0 + x_19))) : (((2.0 + x_21) > (13.0 + x_24)? (2.0 + x_21) : (13.0 + x_24)) > ((3.0 + x_25) > (16.0 + x_26)? (3.0 + x_25) : (16.0 + x_26))? ((2.0 + x_21) > (13.0 + x_24)? (2.0 + x_21) : (13.0 + x_24)) : ((3.0 + x_25) > (16.0 + x_26)? (3.0 + x_25) : (16.0 + x_26))))); x_14_ = ((((11.0 + x_0) > ((9.0 + x_1) > (11.0 + x_3)? (9.0 + x_1) : (11.0 + x_3))? (11.0 + x_0) : ((9.0 + x_1) > (11.0 + x_3)? (9.0 + x_1) : (11.0 + x_3))) > (((13.0 + x_6) > (4.0 + x_7)? (13.0 + x_6) : (4.0 + x_7)) > ((20.0 + x_8) > (4.0 + x_9)? (20.0 + x_8) : (4.0 + x_9))? ((13.0 + x_6) > (4.0 + x_7)? (13.0 + x_6) : (4.0 + x_7)) : ((20.0 + x_8) > (4.0 + x_9)? (20.0 + x_8) : (4.0 + x_9)))? ((11.0 + x_0) > ((9.0 + x_1) > (11.0 + x_3)? (9.0 + x_1) : (11.0 + x_3))? (11.0 + x_0) : ((9.0 + x_1) > (11.0 + x_3)? (9.0 + x_1) : (11.0 + x_3))) : (((13.0 + x_6) > (4.0 + x_7)? (13.0 + x_6) : (4.0 + x_7)) > ((20.0 + x_8) > (4.0 + x_9)? (20.0 + x_8) : (4.0 + x_9))? ((13.0 + x_6) > (4.0 + x_7)? (13.0 + x_6) : (4.0 + x_7)) : ((20.0 + x_8) > (4.0 + x_9)? (20.0 + x_8) : (4.0 + x_9)))) > (((15.0 + x_10) > ((1.0 + x_11) > (3.0 + x_13)? (1.0 + x_11) : (3.0 + x_13))? (15.0 + x_10) : ((1.0 + x_11) > (3.0 + x_13)? (1.0 + x_11) : (3.0 + x_13))) > (((14.0 + x_15) > (13.0 + x_16)? (14.0 + x_15) : (13.0 + x_16)) > ((8.0 + x_23) > (11.0 + x_25)? (8.0 + x_23) : (11.0 + x_25))? ((14.0 + x_15) > (13.0 + x_16)? (14.0 + x_15) : (13.0 + x_16)) : ((8.0 + x_23) > (11.0 + x_25)? (8.0 + x_23) : (11.0 + x_25)))? ((15.0 + x_10) > ((1.0 + x_11) > (3.0 + x_13)? (1.0 + x_11) : (3.0 + x_13))? (15.0 + x_10) : ((1.0 + x_11) > (3.0 + x_13)? (1.0 + x_11) : (3.0 + x_13))) : (((14.0 + x_15) > (13.0 + x_16)? (14.0 + x_15) : (13.0 + x_16)) > ((8.0 + x_23) > (11.0 + x_25)? (8.0 + x_23) : (11.0 + x_25))? ((14.0 + x_15) > (13.0 + x_16)? (14.0 + x_15) : (13.0 + x_16)) : ((8.0 + x_23) > (11.0 + x_25)? (8.0 + x_23) : (11.0 + x_25))))? (((11.0 + x_0) > ((9.0 + x_1) > (11.0 + x_3)? (9.0 + x_1) : (11.0 + x_3))? (11.0 + x_0) : ((9.0 + x_1) > (11.0 + x_3)? (9.0 + x_1) : (11.0 + x_3))) > (((13.0 + x_6) > (4.0 + x_7)? (13.0 + x_6) : (4.0 + x_7)) > ((20.0 + x_8) > (4.0 + x_9)? (20.0 + x_8) : (4.0 + x_9))? ((13.0 + x_6) > (4.0 + x_7)? (13.0 + x_6) : (4.0 + x_7)) : ((20.0 + x_8) > (4.0 + x_9)? (20.0 + x_8) : (4.0 + x_9)))? ((11.0 + x_0) > ((9.0 + x_1) > (11.0 + x_3)? (9.0 + x_1) : (11.0 + x_3))? (11.0 + x_0) : ((9.0 + x_1) > (11.0 + x_3)? (9.0 + x_1) : (11.0 + x_3))) : (((13.0 + x_6) > (4.0 + x_7)? (13.0 + x_6) : (4.0 + x_7)) > ((20.0 + x_8) > (4.0 + x_9)? (20.0 + x_8) : (4.0 + x_9))? ((13.0 + x_6) > (4.0 + x_7)? (13.0 + x_6) : (4.0 + x_7)) : ((20.0 + x_8) > (4.0 + x_9)? (20.0 + x_8) : (4.0 + x_9)))) : (((15.0 + x_10) > ((1.0 + x_11) > (3.0 + x_13)? (1.0 + x_11) : (3.0 + x_13))? (15.0 + x_10) : ((1.0 + x_11) > (3.0 + x_13)? (1.0 + x_11) : (3.0 + x_13))) > (((14.0 + x_15) > (13.0 + x_16)? (14.0 + x_15) : (13.0 + x_16)) > ((8.0 + x_23) > (11.0 + x_25)? (8.0 + x_23) : (11.0 + x_25))? ((14.0 + x_15) > (13.0 + x_16)? (14.0 + x_15) : (13.0 + x_16)) : ((8.0 + x_23) > (11.0 + x_25)? (8.0 + x_23) : (11.0 + x_25)))? ((15.0 + x_10) > ((1.0 + x_11) > (3.0 + x_13)? (1.0 + x_11) : (3.0 + x_13))? (15.0 + x_10) : ((1.0 + x_11) > (3.0 + x_13)? (1.0 + x_11) : (3.0 + x_13))) : (((14.0 + x_15) > (13.0 + x_16)? (14.0 + x_15) : (13.0 + x_16)) > ((8.0 + x_23) > (11.0 + x_25)? (8.0 + x_23) : (11.0 + x_25))? ((14.0 + x_15) > (13.0 + x_16)? (14.0 + x_15) : (13.0 + x_16)) : ((8.0 + x_23) > (11.0 + x_25)? (8.0 + x_23) : (11.0 + x_25))))); x_15_ = ((((8.0 + x_3) > ((4.0 + x_8) > (13.0 + x_9)? (4.0 + x_8) : (13.0 + x_9))? (8.0 + x_3) : ((4.0 + x_8) > (13.0 + x_9)? (4.0 + x_8) : (13.0 + x_9))) > (((20.0 + x_10) > (15.0 + x_12)? (20.0 + x_10) : (15.0 + x_12)) > ((5.0 + x_13) > (16.0 + x_14)? (5.0 + x_13) : (16.0 + x_14))? ((20.0 + x_10) > (15.0 + x_12)? (20.0 + x_10) : (15.0 + x_12)) : ((5.0 + x_13) > (16.0 + x_14)? (5.0 + x_13) : (16.0 + x_14)))? ((8.0 + x_3) > ((4.0 + x_8) > (13.0 + x_9)? (4.0 + x_8) : (13.0 + x_9))? (8.0 + x_3) : ((4.0 + x_8) > (13.0 + x_9)? (4.0 + x_8) : (13.0 + x_9))) : (((20.0 + x_10) > (15.0 + x_12)? (20.0 + x_10) : (15.0 + x_12)) > ((5.0 + x_13) > (16.0 + x_14)? (5.0 + x_13) : (16.0 + x_14))? ((20.0 + x_10) > (15.0 + x_12)? (20.0 + x_10) : (15.0 + x_12)) : ((5.0 + x_13) > (16.0 + x_14)? (5.0 + x_13) : (16.0 + x_14)))) > (((11.0 + x_16) > ((7.0 + x_17) > (1.0 + x_18)? (7.0 + x_17) : (1.0 + x_18))? (11.0 + x_16) : ((7.0 + x_17) > (1.0 + x_18)? (7.0 + x_17) : (1.0 + x_18))) > (((16.0 + x_19) > (3.0 + x_20)? (16.0 + x_19) : (3.0 + x_20)) > ((17.0 + x_23) > (12.0 + x_27)? (17.0 + x_23) : (12.0 + x_27))? ((16.0 + x_19) > (3.0 + x_20)? (16.0 + x_19) : (3.0 + x_20)) : ((17.0 + x_23) > (12.0 + x_27)? (17.0 + x_23) : (12.0 + x_27)))? ((11.0 + x_16) > ((7.0 + x_17) > (1.0 + x_18)? (7.0 + x_17) : (1.0 + x_18))? (11.0 + x_16) : ((7.0 + x_17) > (1.0 + x_18)? (7.0 + x_17) : (1.0 + x_18))) : (((16.0 + x_19) > (3.0 + x_20)? (16.0 + x_19) : (3.0 + x_20)) > ((17.0 + x_23) > (12.0 + x_27)? (17.0 + x_23) : (12.0 + x_27))? ((16.0 + x_19) > (3.0 + x_20)? (16.0 + x_19) : (3.0 + x_20)) : ((17.0 + x_23) > (12.0 + x_27)? (17.0 + x_23) : (12.0 + x_27))))? (((8.0 + x_3) > ((4.0 + x_8) > (13.0 + x_9)? (4.0 + x_8) : (13.0 + x_9))? (8.0 + x_3) : ((4.0 + x_8) > (13.0 + x_9)? (4.0 + x_8) : (13.0 + x_9))) > (((20.0 + x_10) > (15.0 + x_12)? (20.0 + x_10) : (15.0 + x_12)) > ((5.0 + x_13) > (16.0 + x_14)? (5.0 + x_13) : (16.0 + x_14))? ((20.0 + x_10) > (15.0 + x_12)? (20.0 + x_10) : (15.0 + x_12)) : ((5.0 + x_13) > (16.0 + x_14)? (5.0 + x_13) : (16.0 + x_14)))? ((8.0 + x_3) > ((4.0 + x_8) > (13.0 + x_9)? (4.0 + x_8) : (13.0 + x_9))? (8.0 + x_3) : ((4.0 + x_8) > (13.0 + x_9)? (4.0 + x_8) : (13.0 + x_9))) : (((20.0 + x_10) > (15.0 + x_12)? (20.0 + x_10) : (15.0 + x_12)) > ((5.0 + x_13) > (16.0 + x_14)? (5.0 + x_13) : (16.0 + x_14))? ((20.0 + x_10) > (15.0 + x_12)? (20.0 + x_10) : (15.0 + x_12)) : ((5.0 + x_13) > (16.0 + x_14)? (5.0 + x_13) : (16.0 + x_14)))) : (((11.0 + x_16) > ((7.0 + x_17) > (1.0 + x_18)? (7.0 + x_17) : (1.0 + x_18))? (11.0 + x_16) : ((7.0 + x_17) > (1.0 + x_18)? (7.0 + x_17) : (1.0 + x_18))) > (((16.0 + x_19) > (3.0 + x_20)? (16.0 + x_19) : (3.0 + x_20)) > ((17.0 + x_23) > (12.0 + x_27)? (17.0 + x_23) : (12.0 + x_27))? ((16.0 + x_19) > (3.0 + x_20)? (16.0 + x_19) : (3.0 + x_20)) : ((17.0 + x_23) > (12.0 + x_27)? (17.0 + x_23) : (12.0 + x_27)))? ((11.0 + x_16) > ((7.0 + x_17) > (1.0 + x_18)? (7.0 + x_17) : (1.0 + x_18))? (11.0 + x_16) : ((7.0 + x_17) > (1.0 + x_18)? (7.0 + x_17) : (1.0 + x_18))) : (((16.0 + x_19) > (3.0 + x_20)? (16.0 + x_19) : (3.0 + x_20)) > ((17.0 + x_23) > (12.0 + x_27)? (17.0 + x_23) : (12.0 + x_27))? ((16.0 + x_19) > (3.0 + x_20)? (16.0 + x_19) : (3.0 + x_20)) : ((17.0 + x_23) > (12.0 + x_27)? (17.0 + x_23) : (12.0 + x_27))))); x_16_ = ((((13.0 + x_2) > ((9.0 + x_6) > (2.0 + x_7)? (9.0 + x_6) : (2.0 + x_7))? (13.0 + x_2) : ((9.0 + x_6) > (2.0 + x_7)? (9.0 + x_6) : (2.0 + x_7))) > (((19.0 + x_8) > (14.0 + x_11)? (19.0 + x_8) : (14.0 + x_11)) > ((17.0 + x_14) > (14.0 + x_15)? (17.0 + x_14) : (14.0 + x_15))? ((19.0 + x_8) > (14.0 + x_11)? (19.0 + x_8) : (14.0 + x_11)) : ((17.0 + x_14) > (14.0 + x_15)? (17.0 + x_14) : (14.0 + x_15)))? ((13.0 + x_2) > ((9.0 + x_6) > (2.0 + x_7)? (9.0 + x_6) : (2.0 + x_7))? (13.0 + x_2) : ((9.0 + x_6) > (2.0 + x_7)? (9.0 + x_6) : (2.0 + x_7))) : (((19.0 + x_8) > (14.0 + x_11)? (19.0 + x_8) : (14.0 + x_11)) > ((17.0 + x_14) > (14.0 + x_15)? (17.0 + x_14) : (14.0 + x_15))? ((19.0 + x_8) > (14.0 + x_11)? (19.0 + x_8) : (14.0 + x_11)) : ((17.0 + x_14) > (14.0 + x_15)? (17.0 + x_14) : (14.0 + x_15)))) > (((19.0 + x_16) > ((3.0 + x_17) > (3.0 + x_20)? (3.0 + x_17) : (3.0 + x_20))? (19.0 + x_16) : ((3.0 + x_17) > (3.0 + x_20)? (3.0 + x_17) : (3.0 + x_20))) > (((5.0 + x_22) > (16.0 + x_24)? (5.0 + x_22) : (16.0 + x_24)) > ((4.0 + x_25) > (18.0 + x_26)? (4.0 + x_25) : (18.0 + x_26))? ((5.0 + x_22) > (16.0 + x_24)? (5.0 + x_22) : (16.0 + x_24)) : ((4.0 + x_25) > (18.0 + x_26)? (4.0 + x_25) : (18.0 + x_26)))? ((19.0 + x_16) > ((3.0 + x_17) > (3.0 + x_20)? (3.0 + x_17) : (3.0 + x_20))? (19.0 + x_16) : ((3.0 + x_17) > (3.0 + x_20)? (3.0 + x_17) : (3.0 + x_20))) : (((5.0 + x_22) > (16.0 + x_24)? (5.0 + x_22) : (16.0 + x_24)) > ((4.0 + x_25) > (18.0 + x_26)? (4.0 + x_25) : (18.0 + x_26))? ((5.0 + x_22) > (16.0 + x_24)? (5.0 + x_22) : (16.0 + x_24)) : ((4.0 + x_25) > (18.0 + x_26)? (4.0 + x_25) : (18.0 + x_26))))? (((13.0 + x_2) > ((9.0 + x_6) > (2.0 + x_7)? (9.0 + x_6) : (2.0 + x_7))? (13.0 + x_2) : ((9.0 + x_6) > (2.0 + x_7)? (9.0 + x_6) : (2.0 + x_7))) > (((19.0 + x_8) > (14.0 + x_11)? (19.0 + x_8) : (14.0 + x_11)) > ((17.0 + x_14) > (14.0 + x_15)? (17.0 + x_14) : (14.0 + x_15))? ((19.0 + x_8) > (14.0 + x_11)? (19.0 + x_8) : (14.0 + x_11)) : ((17.0 + x_14) > (14.0 + x_15)? (17.0 + x_14) : (14.0 + x_15)))? ((13.0 + x_2) > ((9.0 + x_6) > (2.0 + x_7)? (9.0 + x_6) : (2.0 + x_7))? (13.0 + x_2) : ((9.0 + x_6) > (2.0 + x_7)? (9.0 + x_6) : (2.0 + x_7))) : (((19.0 + x_8) > (14.0 + x_11)? (19.0 + x_8) : (14.0 + x_11)) > ((17.0 + x_14) > (14.0 + x_15)? (17.0 + x_14) : (14.0 + x_15))? ((19.0 + x_8) > (14.0 + x_11)? (19.0 + x_8) : (14.0 + x_11)) : ((17.0 + x_14) > (14.0 + x_15)? (17.0 + x_14) : (14.0 + x_15)))) : (((19.0 + x_16) > ((3.0 + x_17) > (3.0 + x_20)? (3.0 + x_17) : (3.0 + x_20))? (19.0 + x_16) : ((3.0 + x_17) > (3.0 + x_20)? (3.0 + x_17) : (3.0 + x_20))) > (((5.0 + x_22) > (16.0 + x_24)? (5.0 + x_22) : (16.0 + x_24)) > ((4.0 + x_25) > (18.0 + x_26)? (4.0 + x_25) : (18.0 + x_26))? ((5.0 + x_22) > (16.0 + x_24)? (5.0 + x_22) : (16.0 + x_24)) : ((4.0 + x_25) > (18.0 + x_26)? (4.0 + x_25) : (18.0 + x_26)))? ((19.0 + x_16) > ((3.0 + x_17) > (3.0 + x_20)? (3.0 + x_17) : (3.0 + x_20))? (19.0 + x_16) : ((3.0 + x_17) > (3.0 + x_20)? (3.0 + x_17) : (3.0 + x_20))) : (((5.0 + x_22) > (16.0 + x_24)? (5.0 + x_22) : (16.0 + x_24)) > ((4.0 + x_25) > (18.0 + x_26)? (4.0 + x_25) : (18.0 + x_26))? ((5.0 + x_22) > (16.0 + x_24)? (5.0 + x_22) : (16.0 + x_24)) : ((4.0 + x_25) > (18.0 + x_26)? (4.0 + x_25) : (18.0 + x_26))))); x_17_ = ((((7.0 + x_0) > ((6.0 + x_1) > (20.0 + x_2)? (6.0 + x_1) : (20.0 + x_2))? (7.0 + x_0) : ((6.0 + x_1) > (20.0 + x_2)? (6.0 + x_1) : (20.0 + x_2))) > (((3.0 + x_5) > (18.0 + x_7)? (3.0 + x_5) : (18.0 + x_7)) > ((5.0 + x_12) > (3.0 + x_14)? (5.0 + x_12) : (3.0 + x_14))? ((3.0 + x_5) > (18.0 + x_7)? (3.0 + x_5) : (18.0 + x_7)) : ((5.0 + x_12) > (3.0 + x_14)? (5.0 + x_12) : (3.0 + x_14)))? ((7.0 + x_0) > ((6.0 + x_1) > (20.0 + x_2)? (6.0 + x_1) : (20.0 + x_2))? (7.0 + x_0) : ((6.0 + x_1) > (20.0 + x_2)? (6.0 + x_1) : (20.0 + x_2))) : (((3.0 + x_5) > (18.0 + x_7)? (3.0 + x_5) : (18.0 + x_7)) > ((5.0 + x_12) > (3.0 + x_14)? (5.0 + x_12) : (3.0 + x_14))? ((3.0 + x_5) > (18.0 + x_7)? (3.0 + x_5) : (18.0 + x_7)) : ((5.0 + x_12) > (3.0 + x_14)? (5.0 + x_12) : (3.0 + x_14)))) > (((5.0 + x_15) > ((1.0 + x_16) > (14.0 + x_17)? (1.0 + x_16) : (14.0 + x_17))? (5.0 + x_15) : ((1.0 + x_16) > (14.0 + x_17)? (1.0 + x_16) : (14.0 + x_17))) > (((1.0 + x_18) > (7.0 + x_23)? (1.0 + x_18) : (7.0 + x_23)) > ((17.0 + x_24) > (19.0 + x_27)? (17.0 + x_24) : (19.0 + x_27))? ((1.0 + x_18) > (7.0 + x_23)? (1.0 + x_18) : (7.0 + x_23)) : ((17.0 + x_24) > (19.0 + x_27)? (17.0 + x_24) : (19.0 + x_27)))? ((5.0 + x_15) > ((1.0 + x_16) > (14.0 + x_17)? (1.0 + x_16) : (14.0 + x_17))? (5.0 + x_15) : ((1.0 + x_16) > (14.0 + x_17)? (1.0 + x_16) : (14.0 + x_17))) : (((1.0 + x_18) > (7.0 + x_23)? (1.0 + x_18) : (7.0 + x_23)) > ((17.0 + x_24) > (19.0 + x_27)? (17.0 + x_24) : (19.0 + x_27))? ((1.0 + x_18) > (7.0 + x_23)? (1.0 + x_18) : (7.0 + x_23)) : ((17.0 + x_24) > (19.0 + x_27)? (17.0 + x_24) : (19.0 + x_27))))? (((7.0 + x_0) > ((6.0 + x_1) > (20.0 + x_2)? (6.0 + x_1) : (20.0 + x_2))? (7.0 + x_0) : ((6.0 + x_1) > (20.0 + x_2)? (6.0 + x_1) : (20.0 + x_2))) > (((3.0 + x_5) > (18.0 + x_7)? (3.0 + x_5) : (18.0 + x_7)) > ((5.0 + x_12) > (3.0 + x_14)? (5.0 + x_12) : (3.0 + x_14))? ((3.0 + x_5) > (18.0 + x_7)? (3.0 + x_5) : (18.0 + x_7)) : ((5.0 + x_12) > (3.0 + x_14)? (5.0 + x_12) : (3.0 + x_14)))? ((7.0 + x_0) > ((6.0 + x_1) > (20.0 + x_2)? (6.0 + x_1) : (20.0 + x_2))? (7.0 + x_0) : ((6.0 + x_1) > (20.0 + x_2)? (6.0 + x_1) : (20.0 + x_2))) : (((3.0 + x_5) > (18.0 + x_7)? (3.0 + x_5) : (18.0 + x_7)) > ((5.0 + x_12) > (3.0 + x_14)? (5.0 + x_12) : (3.0 + x_14))? ((3.0 + x_5) > (18.0 + x_7)? (3.0 + x_5) : (18.0 + x_7)) : ((5.0 + x_12) > (3.0 + x_14)? (5.0 + x_12) : (3.0 + x_14)))) : (((5.0 + x_15) > ((1.0 + x_16) > (14.0 + x_17)? (1.0 + x_16) : (14.0 + x_17))? (5.0 + x_15) : ((1.0 + x_16) > (14.0 + x_17)? (1.0 + x_16) : (14.0 + x_17))) > (((1.0 + x_18) > (7.0 + x_23)? (1.0 + x_18) : (7.0 + x_23)) > ((17.0 + x_24) > (19.0 + x_27)? (17.0 + x_24) : (19.0 + x_27))? ((1.0 + x_18) > (7.0 + x_23)? (1.0 + x_18) : (7.0 + x_23)) : ((17.0 + x_24) > (19.0 + x_27)? (17.0 + x_24) : (19.0 + x_27)))? ((5.0 + x_15) > ((1.0 + x_16) > (14.0 + x_17)? (1.0 + x_16) : (14.0 + x_17))? (5.0 + x_15) : ((1.0 + x_16) > (14.0 + x_17)? (1.0 + x_16) : (14.0 + x_17))) : (((1.0 + x_18) > (7.0 + x_23)? (1.0 + x_18) : (7.0 + x_23)) > ((17.0 + x_24) > (19.0 + x_27)? (17.0 + x_24) : (19.0 + x_27))? ((1.0 + x_18) > (7.0 + x_23)? (1.0 + x_18) : (7.0 + x_23)) : ((17.0 + x_24) > (19.0 + x_27)? (17.0 + x_24) : (19.0 + x_27))))); x_18_ = ((((6.0 + x_2) > ((1.0 + x_4) > (20.0 + x_5)? (1.0 + x_4) : (20.0 + x_5))? (6.0 + x_2) : ((1.0 + x_4) > (20.0 + x_5)? (1.0 + x_4) : (20.0 + x_5))) > (((8.0 + x_8) > (2.0 + x_9)? (8.0 + x_8) : (2.0 + x_9)) > ((10.0 + x_10) > (8.0 + x_11)? (10.0 + x_10) : (8.0 + x_11))? ((8.0 + x_8) > (2.0 + x_9)? (8.0 + x_8) : (2.0 + x_9)) : ((10.0 + x_10) > (8.0 + x_11)? (10.0 + x_10) : (8.0 + x_11)))? ((6.0 + x_2) > ((1.0 + x_4) > (20.0 + x_5)? (1.0 + x_4) : (20.0 + x_5))? (6.0 + x_2) : ((1.0 + x_4) > (20.0 + x_5)? (1.0 + x_4) : (20.0 + x_5))) : (((8.0 + x_8) > (2.0 + x_9)? (8.0 + x_8) : (2.0 + x_9)) > ((10.0 + x_10) > (8.0 + x_11)? (10.0 + x_10) : (8.0 + x_11))? ((8.0 + x_8) > (2.0 + x_9)? (8.0 + x_8) : (2.0 + x_9)) : ((10.0 + x_10) > (8.0 + x_11)? (10.0 + x_10) : (8.0 + x_11)))) > (((4.0 + x_13) > ((2.0 + x_14) > (17.0 + x_18)? (2.0 + x_14) : (17.0 + x_18))? (4.0 + x_13) : ((2.0 + x_14) > (17.0 + x_18)? (2.0 + x_14) : (17.0 + x_18))) > (((10.0 + x_20) > (4.0 + x_21)? (10.0 + x_20) : (4.0 + x_21)) > ((4.0 + x_22) > (8.0 + x_25)? (4.0 + x_22) : (8.0 + x_25))? ((10.0 + x_20) > (4.0 + x_21)? (10.0 + x_20) : (4.0 + x_21)) : ((4.0 + x_22) > (8.0 + x_25)? (4.0 + x_22) : (8.0 + x_25)))? ((4.0 + x_13) > ((2.0 + x_14) > (17.0 + x_18)? (2.0 + x_14) : (17.0 + x_18))? (4.0 + x_13) : ((2.0 + x_14) > (17.0 + x_18)? (2.0 + x_14) : (17.0 + x_18))) : (((10.0 + x_20) > (4.0 + x_21)? (10.0 + x_20) : (4.0 + x_21)) > ((4.0 + x_22) > (8.0 + x_25)? (4.0 + x_22) : (8.0 + x_25))? ((10.0 + x_20) > (4.0 + x_21)? (10.0 + x_20) : (4.0 + x_21)) : ((4.0 + x_22) > (8.0 + x_25)? (4.0 + x_22) : (8.0 + x_25))))? (((6.0 + x_2) > ((1.0 + x_4) > (20.0 + x_5)? (1.0 + x_4) : (20.0 + x_5))? (6.0 + x_2) : ((1.0 + x_4) > (20.0 + x_5)? (1.0 + x_4) : (20.0 + x_5))) > (((8.0 + x_8) > (2.0 + x_9)? (8.0 + x_8) : (2.0 + x_9)) > ((10.0 + x_10) > (8.0 + x_11)? (10.0 + x_10) : (8.0 + x_11))? ((8.0 + x_8) > (2.0 + x_9)? (8.0 + x_8) : (2.0 + x_9)) : ((10.0 + x_10) > (8.0 + x_11)? (10.0 + x_10) : (8.0 + x_11)))? ((6.0 + x_2) > ((1.0 + x_4) > (20.0 + x_5)? (1.0 + x_4) : (20.0 + x_5))? (6.0 + x_2) : ((1.0 + x_4) > (20.0 + x_5)? (1.0 + x_4) : (20.0 + x_5))) : (((8.0 + x_8) > (2.0 + x_9)? (8.0 + x_8) : (2.0 + x_9)) > ((10.0 + x_10) > (8.0 + x_11)? (10.0 + x_10) : (8.0 + x_11))? ((8.0 + x_8) > (2.0 + x_9)? (8.0 + x_8) : (2.0 + x_9)) : ((10.0 + x_10) > (8.0 + x_11)? (10.0 + x_10) : (8.0 + x_11)))) : (((4.0 + x_13) > ((2.0 + x_14) > (17.0 + x_18)? (2.0 + x_14) : (17.0 + x_18))? (4.0 + x_13) : ((2.0 + x_14) > (17.0 + x_18)? (2.0 + x_14) : (17.0 + x_18))) > (((10.0 + x_20) > (4.0 + x_21)? (10.0 + x_20) : (4.0 + x_21)) > ((4.0 + x_22) > (8.0 + x_25)? (4.0 + x_22) : (8.0 + x_25))? ((10.0 + x_20) > (4.0 + x_21)? (10.0 + x_20) : (4.0 + x_21)) : ((4.0 + x_22) > (8.0 + x_25)? (4.0 + x_22) : (8.0 + x_25)))? ((4.0 + x_13) > ((2.0 + x_14) > (17.0 + x_18)? (2.0 + x_14) : (17.0 + x_18))? (4.0 + x_13) : ((2.0 + x_14) > (17.0 + x_18)? (2.0 + x_14) : (17.0 + x_18))) : (((10.0 + x_20) > (4.0 + x_21)? (10.0 + x_20) : (4.0 + x_21)) > ((4.0 + x_22) > (8.0 + x_25)? (4.0 + x_22) : (8.0 + x_25))? ((10.0 + x_20) > (4.0 + x_21)? (10.0 + x_20) : (4.0 + x_21)) : ((4.0 + x_22) > (8.0 + x_25)? (4.0 + x_22) : (8.0 + x_25))))); x_19_ = ((((15.0 + x_0) > ((19.0 + x_1) > (11.0 + x_2)? (19.0 + x_1) : (11.0 + x_2))? (15.0 + x_0) : ((19.0 + x_1) > (11.0 + x_2)? (19.0 + x_1) : (11.0 + x_2))) > (((6.0 + x_5) > (20.0 + x_6)? (6.0 + x_5) : (20.0 + x_6)) > ((11.0 + x_7) > (4.0 + x_9)? (11.0 + x_7) : (4.0 + x_9))? ((6.0 + x_5) > (20.0 + x_6)? (6.0 + x_5) : (20.0 + x_6)) : ((11.0 + x_7) > (4.0 + x_9)? (11.0 + x_7) : (4.0 + x_9)))? ((15.0 + x_0) > ((19.0 + x_1) > (11.0 + x_2)? (19.0 + x_1) : (11.0 + x_2))? (15.0 + x_0) : ((19.0 + x_1) > (11.0 + x_2)? (19.0 + x_1) : (11.0 + x_2))) : (((6.0 + x_5) > (20.0 + x_6)? (6.0 + x_5) : (20.0 + x_6)) > ((11.0 + x_7) > (4.0 + x_9)? (11.0 + x_7) : (4.0 + x_9))? ((6.0 + x_5) > (20.0 + x_6)? (6.0 + x_5) : (20.0 + x_6)) : ((11.0 + x_7) > (4.0 + x_9)? (11.0 + x_7) : (4.0 + x_9)))) > (((11.0 + x_10) > ((4.0 + x_11) > (2.0 + x_13)? (4.0 + x_11) : (2.0 + x_13))? (11.0 + x_10) : ((4.0 + x_11) > (2.0 + x_13)? (4.0 + x_11) : (2.0 + x_13))) > (((4.0 + x_15) > (16.0 + x_18)? (4.0 + x_15) : (16.0 + x_18)) > ((12.0 + x_26) > (14.0 + x_27)? (12.0 + x_26) : (14.0 + x_27))? ((4.0 + x_15) > (16.0 + x_18)? (4.0 + x_15) : (16.0 + x_18)) : ((12.0 + x_26) > (14.0 + x_27)? (12.0 + x_26) : (14.0 + x_27)))? ((11.0 + x_10) > ((4.0 + x_11) > (2.0 + x_13)? (4.0 + x_11) : (2.0 + x_13))? (11.0 + x_10) : ((4.0 + x_11) > (2.0 + x_13)? (4.0 + x_11) : (2.0 + x_13))) : (((4.0 + x_15) > (16.0 + x_18)? (4.0 + x_15) : (16.0 + x_18)) > ((12.0 + x_26) > (14.0 + x_27)? (12.0 + x_26) : (14.0 + x_27))? ((4.0 + x_15) > (16.0 + x_18)? (4.0 + x_15) : (16.0 + x_18)) : ((12.0 + x_26) > (14.0 + x_27)? (12.0 + x_26) : (14.0 + x_27))))? (((15.0 + x_0) > ((19.0 + x_1) > (11.0 + x_2)? (19.0 + x_1) : (11.0 + x_2))? (15.0 + x_0) : ((19.0 + x_1) > (11.0 + x_2)? (19.0 + x_1) : (11.0 + x_2))) > (((6.0 + x_5) > (20.0 + x_6)? (6.0 + x_5) : (20.0 + x_6)) > ((11.0 + x_7) > (4.0 + x_9)? (11.0 + x_7) : (4.0 + x_9))? ((6.0 + x_5) > (20.0 + x_6)? (6.0 + x_5) : (20.0 + x_6)) : ((11.0 + x_7) > (4.0 + x_9)? (11.0 + x_7) : (4.0 + x_9)))? ((15.0 + x_0) > ((19.0 + x_1) > (11.0 + x_2)? (19.0 + x_1) : (11.0 + x_2))? (15.0 + x_0) : ((19.0 + x_1) > (11.0 + x_2)? (19.0 + x_1) : (11.0 + x_2))) : (((6.0 + x_5) > (20.0 + x_6)? (6.0 + x_5) : (20.0 + x_6)) > ((11.0 + x_7) > (4.0 + x_9)? (11.0 + x_7) : (4.0 + x_9))? ((6.0 + x_5) > (20.0 + x_6)? (6.0 + x_5) : (20.0 + x_6)) : ((11.0 + x_7) > (4.0 + x_9)? (11.0 + x_7) : (4.0 + x_9)))) : (((11.0 + x_10) > ((4.0 + x_11) > (2.0 + x_13)? (4.0 + x_11) : (2.0 + x_13))? (11.0 + x_10) : ((4.0 + x_11) > (2.0 + x_13)? (4.0 + x_11) : (2.0 + x_13))) > (((4.0 + x_15) > (16.0 + x_18)? (4.0 + x_15) : (16.0 + x_18)) > ((12.0 + x_26) > (14.0 + x_27)? (12.0 + x_26) : (14.0 + x_27))? ((4.0 + x_15) > (16.0 + x_18)? (4.0 + x_15) : (16.0 + x_18)) : ((12.0 + x_26) > (14.0 + x_27)? (12.0 + x_26) : (14.0 + x_27)))? ((11.0 + x_10) > ((4.0 + x_11) > (2.0 + x_13)? (4.0 + x_11) : (2.0 + x_13))? (11.0 + x_10) : ((4.0 + x_11) > (2.0 + x_13)? (4.0 + x_11) : (2.0 + x_13))) : (((4.0 + x_15) > (16.0 + x_18)? (4.0 + x_15) : (16.0 + x_18)) > ((12.0 + x_26) > (14.0 + x_27)? (12.0 + x_26) : (14.0 + x_27))? ((4.0 + x_15) > (16.0 + x_18)? (4.0 + x_15) : (16.0 + x_18)) : ((12.0 + x_26) > (14.0 + x_27)? (12.0 + x_26) : (14.0 + x_27))))); x_20_ = ((((20.0 + x_1) > ((3.0 + x_2) > (2.0 + x_3)? (3.0 + x_2) : (2.0 + x_3))? (20.0 + x_1) : ((3.0 + x_2) > (2.0 + x_3)? (3.0 + x_2) : (2.0 + x_3))) > (((5.0 + x_4) > (12.0 + x_7)? (5.0 + x_4) : (12.0 + x_7)) > ((7.0 + x_8) > (16.0 + x_10)? (7.0 + x_8) : (16.0 + x_10))? ((5.0 + x_4) > (12.0 + x_7)? (5.0 + x_4) : (12.0 + x_7)) : ((7.0 + x_8) > (16.0 + x_10)? (7.0 + x_8) : (16.0 + x_10)))? ((20.0 + x_1) > ((3.0 + x_2) > (2.0 + x_3)? (3.0 + x_2) : (2.0 + x_3))? (20.0 + x_1) : ((3.0 + x_2) > (2.0 + x_3)? (3.0 + x_2) : (2.0 + x_3))) : (((5.0 + x_4) > (12.0 + x_7)? (5.0 + x_4) : (12.0 + x_7)) > ((7.0 + x_8) > (16.0 + x_10)? (7.0 + x_8) : (16.0 + x_10))? ((5.0 + x_4) > (12.0 + x_7)? (5.0 + x_4) : (12.0 + x_7)) : ((7.0 + x_8) > (16.0 + x_10)? (7.0 + x_8) : (16.0 + x_10)))) > (((18.0 + x_11) > ((17.0 + x_20) > (18.0 + x_22)? (17.0 + x_20) : (18.0 + x_22))? (18.0 + x_11) : ((17.0 + x_20) > (18.0 + x_22)? (17.0 + x_20) : (18.0 + x_22))) > (((13.0 + x_23) > (3.0 + x_24)? (13.0 + x_23) : (3.0 + x_24)) > ((20.0 + x_26) > (9.0 + x_27)? (20.0 + x_26) : (9.0 + x_27))? ((13.0 + x_23) > (3.0 + x_24)? (13.0 + x_23) : (3.0 + x_24)) : ((20.0 + x_26) > (9.0 + x_27)? (20.0 + x_26) : (9.0 + x_27)))? ((18.0 + x_11) > ((17.0 + x_20) > (18.0 + x_22)? (17.0 + x_20) : (18.0 + x_22))? (18.0 + x_11) : ((17.0 + x_20) > (18.0 + x_22)? (17.0 + x_20) : (18.0 + x_22))) : (((13.0 + x_23) > (3.0 + x_24)? (13.0 + x_23) : (3.0 + x_24)) > ((20.0 + x_26) > (9.0 + x_27)? (20.0 + x_26) : (9.0 + x_27))? ((13.0 + x_23) > (3.0 + x_24)? (13.0 + x_23) : (3.0 + x_24)) : ((20.0 + x_26) > (9.0 + x_27)? (20.0 + x_26) : (9.0 + x_27))))? (((20.0 + x_1) > ((3.0 + x_2) > (2.0 + x_3)? (3.0 + x_2) : (2.0 + x_3))? (20.0 + x_1) : ((3.0 + x_2) > (2.0 + x_3)? (3.0 + x_2) : (2.0 + x_3))) > (((5.0 + x_4) > (12.0 + x_7)? (5.0 + x_4) : (12.0 + x_7)) > ((7.0 + x_8) > (16.0 + x_10)? (7.0 + x_8) : (16.0 + x_10))? ((5.0 + x_4) > (12.0 + x_7)? (5.0 + x_4) : (12.0 + x_7)) : ((7.0 + x_8) > (16.0 + x_10)? (7.0 + x_8) : (16.0 + x_10)))? ((20.0 + x_1) > ((3.0 + x_2) > (2.0 + x_3)? (3.0 + x_2) : (2.0 + x_3))? (20.0 + x_1) : ((3.0 + x_2) > (2.0 + x_3)? (3.0 + x_2) : (2.0 + x_3))) : (((5.0 + x_4) > (12.0 + x_7)? (5.0 + x_4) : (12.0 + x_7)) > ((7.0 + x_8) > (16.0 + x_10)? (7.0 + x_8) : (16.0 + x_10))? ((5.0 + x_4) > (12.0 + x_7)? (5.0 + x_4) : (12.0 + x_7)) : ((7.0 + x_8) > (16.0 + x_10)? (7.0 + x_8) : (16.0 + x_10)))) : (((18.0 + x_11) > ((17.0 + x_20) > (18.0 + x_22)? (17.0 + x_20) : (18.0 + x_22))? (18.0 + x_11) : ((17.0 + x_20) > (18.0 + x_22)? (17.0 + x_20) : (18.0 + x_22))) > (((13.0 + x_23) > (3.0 + x_24)? (13.0 + x_23) : (3.0 + x_24)) > ((20.0 + x_26) > (9.0 + x_27)? (20.0 + x_26) : (9.0 + x_27))? ((13.0 + x_23) > (3.0 + x_24)? (13.0 + x_23) : (3.0 + x_24)) : ((20.0 + x_26) > (9.0 + x_27)? (20.0 + x_26) : (9.0 + x_27)))? ((18.0 + x_11) > ((17.0 + x_20) > (18.0 + x_22)? (17.0 + x_20) : (18.0 + x_22))? (18.0 + x_11) : ((17.0 + x_20) > (18.0 + x_22)? (17.0 + x_20) : (18.0 + x_22))) : (((13.0 + x_23) > (3.0 + x_24)? (13.0 + x_23) : (3.0 + x_24)) > ((20.0 + x_26) > (9.0 + x_27)? (20.0 + x_26) : (9.0 + x_27))? ((13.0 + x_23) > (3.0 + x_24)? (13.0 + x_23) : (3.0 + x_24)) : ((20.0 + x_26) > (9.0 + x_27)? (20.0 + x_26) : (9.0 + x_27))))); x_21_ = ((((2.0 + x_1) > ((9.0 + x_4) > (3.0 + x_9)? (9.0 + x_4) : (3.0 + x_9))? (2.0 + x_1) : ((9.0 + x_4) > (3.0 + x_9)? (9.0 + x_4) : (3.0 + x_9))) > (((2.0 + x_11) > (5.0 + x_13)? (2.0 + x_11) : (5.0 + x_13)) > ((16.0 + x_14) > (2.0 + x_15)? (16.0 + x_14) : (2.0 + x_15))? ((2.0 + x_11) > (5.0 + x_13)? (2.0 + x_11) : (5.0 + x_13)) : ((16.0 + x_14) > (2.0 + x_15)? (16.0 + x_14) : (2.0 + x_15)))? ((2.0 + x_1) > ((9.0 + x_4) > (3.0 + x_9)? (9.0 + x_4) : (3.0 + x_9))? (2.0 + x_1) : ((9.0 + x_4) > (3.0 + x_9)? (9.0 + x_4) : (3.0 + x_9))) : (((2.0 + x_11) > (5.0 + x_13)? (2.0 + x_11) : (5.0 + x_13)) > ((16.0 + x_14) > (2.0 + x_15)? (16.0 + x_14) : (2.0 + x_15))? ((2.0 + x_11) > (5.0 + x_13)? (2.0 + x_11) : (5.0 + x_13)) : ((16.0 + x_14) > (2.0 + x_15)? (16.0 + x_14) : (2.0 + x_15)))) > (((5.0 + x_16) > ((8.0 + x_17) > (1.0 + x_21)? (8.0 + x_17) : (1.0 + x_21))? (5.0 + x_16) : ((8.0 + x_17) > (1.0 + x_21)? (8.0 + x_17) : (1.0 + x_21))) > (((20.0 + x_24) > (12.0 + x_25)? (20.0 + x_24) : (12.0 + x_25)) > ((19.0 + x_26) > (11.0 + x_27)? (19.0 + x_26) : (11.0 + x_27))? ((20.0 + x_24) > (12.0 + x_25)? (20.0 + x_24) : (12.0 + x_25)) : ((19.0 + x_26) > (11.0 + x_27)? (19.0 + x_26) : (11.0 + x_27)))? ((5.0 + x_16) > ((8.0 + x_17) > (1.0 + x_21)? (8.0 + x_17) : (1.0 + x_21))? (5.0 + x_16) : ((8.0 + x_17) > (1.0 + x_21)? (8.0 + x_17) : (1.0 + x_21))) : (((20.0 + x_24) > (12.0 + x_25)? (20.0 + x_24) : (12.0 + x_25)) > ((19.0 + x_26) > (11.0 + x_27)? (19.0 + x_26) : (11.0 + x_27))? ((20.0 + x_24) > (12.0 + x_25)? (20.0 + x_24) : (12.0 + x_25)) : ((19.0 + x_26) > (11.0 + x_27)? (19.0 + x_26) : (11.0 + x_27))))? (((2.0 + x_1) > ((9.0 + x_4) > (3.0 + x_9)? (9.0 + x_4) : (3.0 + x_9))? (2.0 + x_1) : ((9.0 + x_4) > (3.0 + x_9)? (9.0 + x_4) : (3.0 + x_9))) > (((2.0 + x_11) > (5.0 + x_13)? (2.0 + x_11) : (5.0 + x_13)) > ((16.0 + x_14) > (2.0 + x_15)? (16.0 + x_14) : (2.0 + x_15))? ((2.0 + x_11) > (5.0 + x_13)? (2.0 + x_11) : (5.0 + x_13)) : ((16.0 + x_14) > (2.0 + x_15)? (16.0 + x_14) : (2.0 + x_15)))? ((2.0 + x_1) > ((9.0 + x_4) > (3.0 + x_9)? (9.0 + x_4) : (3.0 + x_9))? (2.0 + x_1) : ((9.0 + x_4) > (3.0 + x_9)? (9.0 + x_4) : (3.0 + x_9))) : (((2.0 + x_11) > (5.0 + x_13)? (2.0 + x_11) : (5.0 + x_13)) > ((16.0 + x_14) > (2.0 + x_15)? (16.0 + x_14) : (2.0 + x_15))? ((2.0 + x_11) > (5.0 + x_13)? (2.0 + x_11) : (5.0 + x_13)) : ((16.0 + x_14) > (2.0 + x_15)? (16.0 + x_14) : (2.0 + x_15)))) : (((5.0 + x_16) > ((8.0 + x_17) > (1.0 + x_21)? (8.0 + x_17) : (1.0 + x_21))? (5.0 + x_16) : ((8.0 + x_17) > (1.0 + x_21)? (8.0 + x_17) : (1.0 + x_21))) > (((20.0 + x_24) > (12.0 + x_25)? (20.0 + x_24) : (12.0 + x_25)) > ((19.0 + x_26) > (11.0 + x_27)? (19.0 + x_26) : (11.0 + x_27))? ((20.0 + x_24) > (12.0 + x_25)? (20.0 + x_24) : (12.0 + x_25)) : ((19.0 + x_26) > (11.0 + x_27)? (19.0 + x_26) : (11.0 + x_27)))? ((5.0 + x_16) > ((8.0 + x_17) > (1.0 + x_21)? (8.0 + x_17) : (1.0 + x_21))? (5.0 + x_16) : ((8.0 + x_17) > (1.0 + x_21)? (8.0 + x_17) : (1.0 + x_21))) : (((20.0 + x_24) > (12.0 + x_25)? (20.0 + x_24) : (12.0 + x_25)) > ((19.0 + x_26) > (11.0 + x_27)? (19.0 + x_26) : (11.0 + x_27))? ((20.0 + x_24) > (12.0 + x_25)? (20.0 + x_24) : (12.0 + x_25)) : ((19.0 + x_26) > (11.0 + x_27)? (19.0 + x_26) : (11.0 + x_27))))); x_22_ = ((((6.0 + x_0) > ((3.0 + x_3) > (5.0 + x_6)? (3.0 + x_3) : (5.0 + x_6))? (6.0 + x_0) : ((3.0 + x_3) > (5.0 + x_6)? (3.0 + x_3) : (5.0 + x_6))) > (((11.0 + x_8) > (15.0 + x_10)? (11.0 + x_8) : (15.0 + x_10)) > ((8.0 + x_14) > (18.0 + x_16)? (8.0 + x_14) : (18.0 + x_16))? ((11.0 + x_8) > (15.0 + x_10)? (11.0 + x_8) : (15.0 + x_10)) : ((8.0 + x_14) > (18.0 + x_16)? (8.0 + x_14) : (18.0 + x_16)))? ((6.0 + x_0) > ((3.0 + x_3) > (5.0 + x_6)? (3.0 + x_3) : (5.0 + x_6))? (6.0 + x_0) : ((3.0 + x_3) > (5.0 + x_6)? (3.0 + x_3) : (5.0 + x_6))) : (((11.0 + x_8) > (15.0 + x_10)? (11.0 + x_8) : (15.0 + x_10)) > ((8.0 + x_14) > (18.0 + x_16)? (8.0 + x_14) : (18.0 + x_16))? ((11.0 + x_8) > (15.0 + x_10)? (11.0 + x_8) : (15.0 + x_10)) : ((8.0 + x_14) > (18.0 + x_16)? (8.0 + x_14) : (18.0 + x_16)))) > (((9.0 + x_19) > ((11.0 + x_20) > (17.0 + x_21)? (11.0 + x_20) : (17.0 + x_21))? (9.0 + x_19) : ((11.0 + x_20) > (17.0 + x_21)? (11.0 + x_20) : (17.0 + x_21))) > (((3.0 + x_22) > (2.0 + x_24)? (3.0 + x_22) : (2.0 + x_24)) > ((13.0 + x_26) > (19.0 + x_27)? (13.0 + x_26) : (19.0 + x_27))? ((3.0 + x_22) > (2.0 + x_24)? (3.0 + x_22) : (2.0 + x_24)) : ((13.0 + x_26) > (19.0 + x_27)? (13.0 + x_26) : (19.0 + x_27)))? ((9.0 + x_19) > ((11.0 + x_20) > (17.0 + x_21)? (11.0 + x_20) : (17.0 + x_21))? (9.0 + x_19) : ((11.0 + x_20) > (17.0 + x_21)? (11.0 + x_20) : (17.0 + x_21))) : (((3.0 + x_22) > (2.0 + x_24)? (3.0 + x_22) : (2.0 + x_24)) > ((13.0 + x_26) > (19.0 + x_27)? (13.0 + x_26) : (19.0 + x_27))? ((3.0 + x_22) > (2.0 + x_24)? (3.0 + x_22) : (2.0 + x_24)) : ((13.0 + x_26) > (19.0 + x_27)? (13.0 + x_26) : (19.0 + x_27))))? (((6.0 + x_0) > ((3.0 + x_3) > (5.0 + x_6)? (3.0 + x_3) : (5.0 + x_6))? (6.0 + x_0) : ((3.0 + x_3) > (5.0 + x_6)? (3.0 + x_3) : (5.0 + x_6))) > (((11.0 + x_8) > (15.0 + x_10)? (11.0 + x_8) : (15.0 + x_10)) > ((8.0 + x_14) > (18.0 + x_16)? (8.0 + x_14) : (18.0 + x_16))? ((11.0 + x_8) > (15.0 + x_10)? (11.0 + x_8) : (15.0 + x_10)) : ((8.0 + x_14) > (18.0 + x_16)? (8.0 + x_14) : (18.0 + x_16)))? ((6.0 + x_0) > ((3.0 + x_3) > (5.0 + x_6)? (3.0 + x_3) : (5.0 + x_6))? (6.0 + x_0) : ((3.0 + x_3) > (5.0 + x_6)? (3.0 + x_3) : (5.0 + x_6))) : (((11.0 + x_8) > (15.0 + x_10)? (11.0 + x_8) : (15.0 + x_10)) > ((8.0 + x_14) > (18.0 + x_16)? (8.0 + x_14) : (18.0 + x_16))? ((11.0 + x_8) > (15.0 + x_10)? (11.0 + x_8) : (15.0 + x_10)) : ((8.0 + x_14) > (18.0 + x_16)? (8.0 + x_14) : (18.0 + x_16)))) : (((9.0 + x_19) > ((11.0 + x_20) > (17.0 + x_21)? (11.0 + x_20) : (17.0 + x_21))? (9.0 + x_19) : ((11.0 + x_20) > (17.0 + x_21)? (11.0 + x_20) : (17.0 + x_21))) > (((3.0 + x_22) > (2.0 + x_24)? (3.0 + x_22) : (2.0 + x_24)) > ((13.0 + x_26) > (19.0 + x_27)? (13.0 + x_26) : (19.0 + x_27))? ((3.0 + x_22) > (2.0 + x_24)? (3.0 + x_22) : (2.0 + x_24)) : ((13.0 + x_26) > (19.0 + x_27)? (13.0 + x_26) : (19.0 + x_27)))? ((9.0 + x_19) > ((11.0 + x_20) > (17.0 + x_21)? (11.0 + x_20) : (17.0 + x_21))? (9.0 + x_19) : ((11.0 + x_20) > (17.0 + x_21)? (11.0 + x_20) : (17.0 + x_21))) : (((3.0 + x_22) > (2.0 + x_24)? (3.0 + x_22) : (2.0 + x_24)) > ((13.0 + x_26) > (19.0 + x_27)? (13.0 + x_26) : (19.0 + x_27))? ((3.0 + x_22) > (2.0 + x_24)? (3.0 + x_22) : (2.0 + x_24)) : ((13.0 + x_26) > (19.0 + x_27)? (13.0 + x_26) : (19.0 + x_27))))); x_23_ = ((((18.0 + x_2) > ((14.0 + x_4) > (17.0 + x_5)? (14.0 + x_4) : (17.0 + x_5))? (18.0 + x_2) : ((14.0 + x_4) > (17.0 + x_5)? (14.0 + x_4) : (17.0 + x_5))) > (((11.0 + x_7) > (16.0 + x_8)? (11.0 + x_7) : (16.0 + x_8)) > ((6.0 + x_9) > (20.0 + x_10)? (6.0 + x_9) : (20.0 + x_10))? ((11.0 + x_7) > (16.0 + x_8)? (11.0 + x_7) : (16.0 + x_8)) : ((6.0 + x_9) > (20.0 + x_10)? (6.0 + x_9) : (20.0 + x_10)))? ((18.0 + x_2) > ((14.0 + x_4) > (17.0 + x_5)? (14.0 + x_4) : (17.0 + x_5))? (18.0 + x_2) : ((14.0 + x_4) > (17.0 + x_5)? (14.0 + x_4) : (17.0 + x_5))) : (((11.0 + x_7) > (16.0 + x_8)? (11.0 + x_7) : (16.0 + x_8)) > ((6.0 + x_9) > (20.0 + x_10)? (6.0 + x_9) : (20.0 + x_10))? ((11.0 + x_7) > (16.0 + x_8)? (11.0 + x_7) : (16.0 + x_8)) : ((6.0 + x_9) > (20.0 + x_10)? (6.0 + x_9) : (20.0 + x_10)))) > (((11.0 + x_15) > ((13.0 + x_18) > (8.0 + x_21)? (13.0 + x_18) : (8.0 + x_21))? (11.0 + x_15) : ((13.0 + x_18) > (8.0 + x_21)? (13.0 + x_18) : (8.0 + x_21))) > (((5.0 + x_23) > (10.0 + x_25)? (5.0 + x_23) : (10.0 + x_25)) > ((7.0 + x_26) > (7.0 + x_27)? (7.0 + x_26) : (7.0 + x_27))? ((5.0 + x_23) > (10.0 + x_25)? (5.0 + x_23) : (10.0 + x_25)) : ((7.0 + x_26) > (7.0 + x_27)? (7.0 + x_26) : (7.0 + x_27)))? ((11.0 + x_15) > ((13.0 + x_18) > (8.0 + x_21)? (13.0 + x_18) : (8.0 + x_21))? (11.0 + x_15) : ((13.0 + x_18) > (8.0 + x_21)? (13.0 + x_18) : (8.0 + x_21))) : (((5.0 + x_23) > (10.0 + x_25)? (5.0 + x_23) : (10.0 + x_25)) > ((7.0 + x_26) > (7.0 + x_27)? (7.0 + x_26) : (7.0 + x_27))? ((5.0 + x_23) > (10.0 + x_25)? (5.0 + x_23) : (10.0 + x_25)) : ((7.0 + x_26) > (7.0 + x_27)? (7.0 + x_26) : (7.0 + x_27))))? (((18.0 + x_2) > ((14.0 + x_4) > (17.0 + x_5)? (14.0 + x_4) : (17.0 + x_5))? (18.0 + x_2) : ((14.0 + x_4) > (17.0 + x_5)? (14.0 + x_4) : (17.0 + x_5))) > (((11.0 + x_7) > (16.0 + x_8)? (11.0 + x_7) : (16.0 + x_8)) > ((6.0 + x_9) > (20.0 + x_10)? (6.0 + x_9) : (20.0 + x_10))? ((11.0 + x_7) > (16.0 + x_8)? (11.0 + x_7) : (16.0 + x_8)) : ((6.0 + x_9) > (20.0 + x_10)? (6.0 + x_9) : (20.0 + x_10)))? ((18.0 + x_2) > ((14.0 + x_4) > (17.0 + x_5)? (14.0 + x_4) : (17.0 + x_5))? (18.0 + x_2) : ((14.0 + x_4) > (17.0 + x_5)? (14.0 + x_4) : (17.0 + x_5))) : (((11.0 + x_7) > (16.0 + x_8)? (11.0 + x_7) : (16.0 + x_8)) > ((6.0 + x_9) > (20.0 + x_10)? (6.0 + x_9) : (20.0 + x_10))? ((11.0 + x_7) > (16.0 + x_8)? (11.0 + x_7) : (16.0 + x_8)) : ((6.0 + x_9) > (20.0 + x_10)? (6.0 + x_9) : (20.0 + x_10)))) : (((11.0 + x_15) > ((13.0 + x_18) > (8.0 + x_21)? (13.0 + x_18) : (8.0 + x_21))? (11.0 + x_15) : ((13.0 + x_18) > (8.0 + x_21)? (13.0 + x_18) : (8.0 + x_21))) > (((5.0 + x_23) > (10.0 + x_25)? (5.0 + x_23) : (10.0 + x_25)) > ((7.0 + x_26) > (7.0 + x_27)? (7.0 + x_26) : (7.0 + x_27))? ((5.0 + x_23) > (10.0 + x_25)? (5.0 + x_23) : (10.0 + x_25)) : ((7.0 + x_26) > (7.0 + x_27)? (7.0 + x_26) : (7.0 + x_27)))? ((11.0 + x_15) > ((13.0 + x_18) > (8.0 + x_21)? (13.0 + x_18) : (8.0 + x_21))? (11.0 + x_15) : ((13.0 + x_18) > (8.0 + x_21)? (13.0 + x_18) : (8.0 + x_21))) : (((5.0 + x_23) > (10.0 + x_25)? (5.0 + x_23) : (10.0 + x_25)) > ((7.0 + x_26) > (7.0 + x_27)? (7.0 + x_26) : (7.0 + x_27))? ((5.0 + x_23) > (10.0 + x_25)? (5.0 + x_23) : (10.0 + x_25)) : ((7.0 + x_26) > (7.0 + x_27)? (7.0 + x_26) : (7.0 + x_27))))); x_24_ = ((((8.0 + x_1) > ((15.0 + x_2) > (4.0 + x_5)? (15.0 + x_2) : (4.0 + x_5))? (8.0 + x_1) : ((15.0 + x_2) > (4.0 + x_5)? (15.0 + x_2) : (4.0 + x_5))) > (((6.0 + x_6) > (14.0 + x_12)? (6.0 + x_6) : (14.0 + x_12)) > ((11.0 + x_13) > (11.0 + x_14)? (11.0 + x_13) : (11.0 + x_14))? ((6.0 + x_6) > (14.0 + x_12)? (6.0 + x_6) : (14.0 + x_12)) : ((11.0 + x_13) > (11.0 + x_14)? (11.0 + x_13) : (11.0 + x_14)))? ((8.0 + x_1) > ((15.0 + x_2) > (4.0 + x_5)? (15.0 + x_2) : (4.0 + x_5))? (8.0 + x_1) : ((15.0 + x_2) > (4.0 + x_5)? (15.0 + x_2) : (4.0 + x_5))) : (((6.0 + x_6) > (14.0 + x_12)? (6.0 + x_6) : (14.0 + x_12)) > ((11.0 + x_13) > (11.0 + x_14)? (11.0 + x_13) : (11.0 + x_14))? ((6.0 + x_6) > (14.0 + x_12)? (6.0 + x_6) : (14.0 + x_12)) : ((11.0 + x_13) > (11.0 + x_14)? (11.0 + x_13) : (11.0 + x_14)))) > (((11.0 + x_20) > ((6.0 + x_21) > (1.0 + x_22)? (6.0 + x_21) : (1.0 + x_22))? (11.0 + x_20) : ((6.0 + x_21) > (1.0 + x_22)? (6.0 + x_21) : (1.0 + x_22))) > (((15.0 + x_23) > (14.0 + x_25)? (15.0 + x_23) : (14.0 + x_25)) > ((20.0 + x_26) > (4.0 + x_27)? (20.0 + x_26) : (4.0 + x_27))? ((15.0 + x_23) > (14.0 + x_25)? (15.0 + x_23) : (14.0 + x_25)) : ((20.0 + x_26) > (4.0 + x_27)? (20.0 + x_26) : (4.0 + x_27)))? ((11.0 + x_20) > ((6.0 + x_21) > (1.0 + x_22)? (6.0 + x_21) : (1.0 + x_22))? (11.0 + x_20) : ((6.0 + x_21) > (1.0 + x_22)? (6.0 + x_21) : (1.0 + x_22))) : (((15.0 + x_23) > (14.0 + x_25)? (15.0 + x_23) : (14.0 + x_25)) > ((20.0 + x_26) > (4.0 + x_27)? (20.0 + x_26) : (4.0 + x_27))? ((15.0 + x_23) > (14.0 + x_25)? (15.0 + x_23) : (14.0 + x_25)) : ((20.0 + x_26) > (4.0 + x_27)? (20.0 + x_26) : (4.0 + x_27))))? (((8.0 + x_1) > ((15.0 + x_2) > (4.0 + x_5)? (15.0 + x_2) : (4.0 + x_5))? (8.0 + x_1) : ((15.0 + x_2) > (4.0 + x_5)? (15.0 + x_2) : (4.0 + x_5))) > (((6.0 + x_6) > (14.0 + x_12)? (6.0 + x_6) : (14.0 + x_12)) > ((11.0 + x_13) > (11.0 + x_14)? (11.0 + x_13) : (11.0 + x_14))? ((6.0 + x_6) > (14.0 + x_12)? (6.0 + x_6) : (14.0 + x_12)) : ((11.0 + x_13) > (11.0 + x_14)? (11.0 + x_13) : (11.0 + x_14)))? ((8.0 + x_1) > ((15.0 + x_2) > (4.0 + x_5)? (15.0 + x_2) : (4.0 + x_5))? (8.0 + x_1) : ((15.0 + x_2) > (4.0 + x_5)? (15.0 + x_2) : (4.0 + x_5))) : (((6.0 + x_6) > (14.0 + x_12)? (6.0 + x_6) : (14.0 + x_12)) > ((11.0 + x_13) > (11.0 + x_14)? (11.0 + x_13) : (11.0 + x_14))? ((6.0 + x_6) > (14.0 + x_12)? (6.0 + x_6) : (14.0 + x_12)) : ((11.0 + x_13) > (11.0 + x_14)? (11.0 + x_13) : (11.0 + x_14)))) : (((11.0 + x_20) > ((6.0 + x_21) > (1.0 + x_22)? (6.0 + x_21) : (1.0 + x_22))? (11.0 + x_20) : ((6.0 + x_21) > (1.0 + x_22)? (6.0 + x_21) : (1.0 + x_22))) > (((15.0 + x_23) > (14.0 + x_25)? (15.0 + x_23) : (14.0 + x_25)) > ((20.0 + x_26) > (4.0 + x_27)? (20.0 + x_26) : (4.0 + x_27))? ((15.0 + x_23) > (14.0 + x_25)? (15.0 + x_23) : (14.0 + x_25)) : ((20.0 + x_26) > (4.0 + x_27)? (20.0 + x_26) : (4.0 + x_27)))? ((11.0 + x_20) > ((6.0 + x_21) > (1.0 + x_22)? (6.0 + x_21) : (1.0 + x_22))? (11.0 + x_20) : ((6.0 + x_21) > (1.0 + x_22)? (6.0 + x_21) : (1.0 + x_22))) : (((15.0 + x_23) > (14.0 + x_25)? (15.0 + x_23) : (14.0 + x_25)) > ((20.0 + x_26) > (4.0 + x_27)? (20.0 + x_26) : (4.0 + x_27))? ((15.0 + x_23) > (14.0 + x_25)? (15.0 + x_23) : (14.0 + x_25)) : ((20.0 + x_26) > (4.0 + x_27)? (20.0 + x_26) : (4.0 + x_27))))); x_25_ = ((((11.0 + x_0) > ((5.0 + x_1) > (8.0 + x_6)? (5.0 + x_1) : (8.0 + x_6))? (11.0 + x_0) : ((5.0 + x_1) > (8.0 + x_6)? (5.0 + x_1) : (8.0 + x_6))) > (((20.0 + x_8) > (16.0 + x_10)? (20.0 + x_8) : (16.0 + x_10)) > ((14.0 + x_12) > (10.0 + x_13)? (14.0 + x_12) : (10.0 + x_13))? ((20.0 + x_8) > (16.0 + x_10)? (20.0 + x_8) : (16.0 + x_10)) : ((14.0 + x_12) > (10.0 + x_13)? (14.0 + x_12) : (10.0 + x_13)))? ((11.0 + x_0) > ((5.0 + x_1) > (8.0 + x_6)? (5.0 + x_1) : (8.0 + x_6))? (11.0 + x_0) : ((5.0 + x_1) > (8.0 + x_6)? (5.0 + x_1) : (8.0 + x_6))) : (((20.0 + x_8) > (16.0 + x_10)? (20.0 + x_8) : (16.0 + x_10)) > ((14.0 + x_12) > (10.0 + x_13)? (14.0 + x_12) : (10.0 + x_13))? ((20.0 + x_8) > (16.0 + x_10)? (20.0 + x_8) : (16.0 + x_10)) : ((14.0 + x_12) > (10.0 + x_13)? (14.0 + x_12) : (10.0 + x_13)))) > (((6.0 + x_14) > ((15.0 + x_15) > (16.0 + x_19)? (15.0 + x_15) : (16.0 + x_19))? (6.0 + x_14) : ((15.0 + x_15) > (16.0 + x_19)? (15.0 + x_15) : (16.0 + x_19))) > (((8.0 + x_20) > (9.0 + x_22)? (8.0 + x_20) : (9.0 + x_22)) > ((16.0 + x_24) > (11.0 + x_26)? (16.0 + x_24) : (11.0 + x_26))? ((8.0 + x_20) > (9.0 + x_22)? (8.0 + x_20) : (9.0 + x_22)) : ((16.0 + x_24) > (11.0 + x_26)? (16.0 + x_24) : (11.0 + x_26)))? ((6.0 + x_14) > ((15.0 + x_15) > (16.0 + x_19)? (15.0 + x_15) : (16.0 + x_19))? (6.0 + x_14) : ((15.0 + x_15) > (16.0 + x_19)? (15.0 + x_15) : (16.0 + x_19))) : (((8.0 + x_20) > (9.0 + x_22)? (8.0 + x_20) : (9.0 + x_22)) > ((16.0 + x_24) > (11.0 + x_26)? (16.0 + x_24) : (11.0 + x_26))? ((8.0 + x_20) > (9.0 + x_22)? (8.0 + x_20) : (9.0 + x_22)) : ((16.0 + x_24) > (11.0 + x_26)? (16.0 + x_24) : (11.0 + x_26))))? (((11.0 + x_0) > ((5.0 + x_1) > (8.0 + x_6)? (5.0 + x_1) : (8.0 + x_6))? (11.0 + x_0) : ((5.0 + x_1) > (8.0 + x_6)? (5.0 + x_1) : (8.0 + x_6))) > (((20.0 + x_8) > (16.0 + x_10)? (20.0 + x_8) : (16.0 + x_10)) > ((14.0 + x_12) > (10.0 + x_13)? (14.0 + x_12) : (10.0 + x_13))? ((20.0 + x_8) > (16.0 + x_10)? (20.0 + x_8) : (16.0 + x_10)) : ((14.0 + x_12) > (10.0 + x_13)? (14.0 + x_12) : (10.0 + x_13)))? ((11.0 + x_0) > ((5.0 + x_1) > (8.0 + x_6)? (5.0 + x_1) : (8.0 + x_6))? (11.0 + x_0) : ((5.0 + x_1) > (8.0 + x_6)? (5.0 + x_1) : (8.0 + x_6))) : (((20.0 + x_8) > (16.0 + x_10)? (20.0 + x_8) : (16.0 + x_10)) > ((14.0 + x_12) > (10.0 + x_13)? (14.0 + x_12) : (10.0 + x_13))? ((20.0 + x_8) > (16.0 + x_10)? (20.0 + x_8) : (16.0 + x_10)) : ((14.0 + x_12) > (10.0 + x_13)? (14.0 + x_12) : (10.0 + x_13)))) : (((6.0 + x_14) > ((15.0 + x_15) > (16.0 + x_19)? (15.0 + x_15) : (16.0 + x_19))? (6.0 + x_14) : ((15.0 + x_15) > (16.0 + x_19)? (15.0 + x_15) : (16.0 + x_19))) > (((8.0 + x_20) > (9.0 + x_22)? (8.0 + x_20) : (9.0 + x_22)) > ((16.0 + x_24) > (11.0 + x_26)? (16.0 + x_24) : (11.0 + x_26))? ((8.0 + x_20) > (9.0 + x_22)? (8.0 + x_20) : (9.0 + x_22)) : ((16.0 + x_24) > (11.0 + x_26)? (16.0 + x_24) : (11.0 + x_26)))? ((6.0 + x_14) > ((15.0 + x_15) > (16.0 + x_19)? (15.0 + x_15) : (16.0 + x_19))? (6.0 + x_14) : ((15.0 + x_15) > (16.0 + x_19)? (15.0 + x_15) : (16.0 + x_19))) : (((8.0 + x_20) > (9.0 + x_22)? (8.0 + x_20) : (9.0 + x_22)) > ((16.0 + x_24) > (11.0 + x_26)? (16.0 + x_24) : (11.0 + x_26))? ((8.0 + x_20) > (9.0 + x_22)? (8.0 + x_20) : (9.0 + x_22)) : ((16.0 + x_24) > (11.0 + x_26)? (16.0 + x_24) : (11.0 + x_26))))); x_26_ = ((((2.0 + x_3) > ((8.0 + x_5) > (16.0 + x_6)? (8.0 + x_5) : (16.0 + x_6))? (2.0 + x_3) : ((8.0 + x_5) > (16.0 + x_6)? (8.0 + x_5) : (16.0 + x_6))) > (((16.0 + x_7) > (16.0 + x_9)? (16.0 + x_7) : (16.0 + x_9)) > ((13.0 + x_11) > (7.0 + x_12)? (13.0 + x_11) : (7.0 + x_12))? ((16.0 + x_7) > (16.0 + x_9)? (16.0 + x_7) : (16.0 + x_9)) : ((13.0 + x_11) > (7.0 + x_12)? (13.0 + x_11) : (7.0 + x_12)))? ((2.0 + x_3) > ((8.0 + x_5) > (16.0 + x_6)? (8.0 + x_5) : (16.0 + x_6))? (2.0 + x_3) : ((8.0 + x_5) > (16.0 + x_6)? (8.0 + x_5) : (16.0 + x_6))) : (((16.0 + x_7) > (16.0 + x_9)? (16.0 + x_7) : (16.0 + x_9)) > ((13.0 + x_11) > (7.0 + x_12)? (13.0 + x_11) : (7.0 + x_12))? ((16.0 + x_7) > (16.0 + x_9)? (16.0 + x_7) : (16.0 + x_9)) : ((13.0 + x_11) > (7.0 + x_12)? (13.0 + x_11) : (7.0 + x_12)))) > (((17.0 + x_14) > ((7.0 + x_16) > (17.0 + x_17)? (7.0 + x_16) : (17.0 + x_17))? (17.0 + x_14) : ((7.0 + x_16) > (17.0 + x_17)? (7.0 + x_16) : (17.0 + x_17))) > (((12.0 + x_19) > (2.0 + x_20)? (12.0 + x_19) : (2.0 + x_20)) > ((3.0 + x_23) > (18.0 + x_27)? (3.0 + x_23) : (18.0 + x_27))? ((12.0 + x_19) > (2.0 + x_20)? (12.0 + x_19) : (2.0 + x_20)) : ((3.0 + x_23) > (18.0 + x_27)? (3.0 + x_23) : (18.0 + x_27)))? ((17.0 + x_14) > ((7.0 + x_16) > (17.0 + x_17)? (7.0 + x_16) : (17.0 + x_17))? (17.0 + x_14) : ((7.0 + x_16) > (17.0 + x_17)? (7.0 + x_16) : (17.0 + x_17))) : (((12.0 + x_19) > (2.0 + x_20)? (12.0 + x_19) : (2.0 + x_20)) > ((3.0 + x_23) > (18.0 + x_27)? (3.0 + x_23) : (18.0 + x_27))? ((12.0 + x_19) > (2.0 + x_20)? (12.0 + x_19) : (2.0 + x_20)) : ((3.0 + x_23) > (18.0 + x_27)? (3.0 + x_23) : (18.0 + x_27))))? (((2.0 + x_3) > ((8.0 + x_5) > (16.0 + x_6)? (8.0 + x_5) : (16.0 + x_6))? (2.0 + x_3) : ((8.0 + x_5) > (16.0 + x_6)? (8.0 + x_5) : (16.0 + x_6))) > (((16.0 + x_7) > (16.0 + x_9)? (16.0 + x_7) : (16.0 + x_9)) > ((13.0 + x_11) > (7.0 + x_12)? (13.0 + x_11) : (7.0 + x_12))? ((16.0 + x_7) > (16.0 + x_9)? (16.0 + x_7) : (16.0 + x_9)) : ((13.0 + x_11) > (7.0 + x_12)? (13.0 + x_11) : (7.0 + x_12)))? ((2.0 + x_3) > ((8.0 + x_5) > (16.0 + x_6)? (8.0 + x_5) : (16.0 + x_6))? (2.0 + x_3) : ((8.0 + x_5) > (16.0 + x_6)? (8.0 + x_5) : (16.0 + x_6))) : (((16.0 + x_7) > (16.0 + x_9)? (16.0 + x_7) : (16.0 + x_9)) > ((13.0 + x_11) > (7.0 + x_12)? (13.0 + x_11) : (7.0 + x_12))? ((16.0 + x_7) > (16.0 + x_9)? (16.0 + x_7) : (16.0 + x_9)) : ((13.0 + x_11) > (7.0 + x_12)? (13.0 + x_11) : (7.0 + x_12)))) : (((17.0 + x_14) > ((7.0 + x_16) > (17.0 + x_17)? (7.0 + x_16) : (17.0 + x_17))? (17.0 + x_14) : ((7.0 + x_16) > (17.0 + x_17)? (7.0 + x_16) : (17.0 + x_17))) > (((12.0 + x_19) > (2.0 + x_20)? (12.0 + x_19) : (2.0 + x_20)) > ((3.0 + x_23) > (18.0 + x_27)? (3.0 + x_23) : (18.0 + x_27))? ((12.0 + x_19) > (2.0 + x_20)? (12.0 + x_19) : (2.0 + x_20)) : ((3.0 + x_23) > (18.0 + x_27)? (3.0 + x_23) : (18.0 + x_27)))? ((17.0 + x_14) > ((7.0 + x_16) > (17.0 + x_17)? (7.0 + x_16) : (17.0 + x_17))? (17.0 + x_14) : ((7.0 + x_16) > (17.0 + x_17)? (7.0 + x_16) : (17.0 + x_17))) : (((12.0 + x_19) > (2.0 + x_20)? (12.0 + x_19) : (2.0 + x_20)) > ((3.0 + x_23) > (18.0 + x_27)? (3.0 + x_23) : (18.0 + x_27))? ((12.0 + x_19) > (2.0 + x_20)? (12.0 + x_19) : (2.0 + x_20)) : ((3.0 + x_23) > (18.0 + x_27)? (3.0 + x_23) : (18.0 + x_27))))); x_27_ = ((((15.0 + x_0) > ((8.0 + x_6) > (5.0 + x_10)? (8.0 + x_6) : (5.0 + x_10))? (15.0 + x_0) : ((8.0 + x_6) > (5.0 + x_10)? (8.0 + x_6) : (5.0 + x_10))) > (((19.0 + x_11) > (8.0 + x_13)? (19.0 + x_11) : (8.0 + x_13)) > ((6.0 + x_14) > (13.0 + x_16)? (6.0 + x_14) : (13.0 + x_16))? ((19.0 + x_11) > (8.0 + x_13)? (19.0 + x_11) : (8.0 + x_13)) : ((6.0 + x_14) > (13.0 + x_16)? (6.0 + x_14) : (13.0 + x_16)))? ((15.0 + x_0) > ((8.0 + x_6) > (5.0 + x_10)? (8.0 + x_6) : (5.0 + x_10))? (15.0 + x_0) : ((8.0 + x_6) > (5.0 + x_10)? (8.0 + x_6) : (5.0 + x_10))) : (((19.0 + x_11) > (8.0 + x_13)? (19.0 + x_11) : (8.0 + x_13)) > ((6.0 + x_14) > (13.0 + x_16)? (6.0 + x_14) : (13.0 + x_16))? ((19.0 + x_11) > (8.0 + x_13)? (19.0 + x_11) : (8.0 + x_13)) : ((6.0 + x_14) > (13.0 + x_16)? (6.0 + x_14) : (13.0 + x_16)))) > (((2.0 + x_17) > ((18.0 + x_18) > (19.0 + x_19)? (18.0 + x_18) : (19.0 + x_19))? (2.0 + x_17) : ((18.0 + x_18) > (19.0 + x_19)? (18.0 + x_18) : (19.0 + x_19))) > (((16.0 + x_22) > (3.0 + x_23)? (16.0 + x_22) : (3.0 + x_23)) > ((3.0 + x_26) > (13.0 + x_27)? (3.0 + x_26) : (13.0 + x_27))? ((16.0 + x_22) > (3.0 + x_23)? (16.0 + x_22) : (3.0 + x_23)) : ((3.0 + x_26) > (13.0 + x_27)? (3.0 + x_26) : (13.0 + x_27)))? ((2.0 + x_17) > ((18.0 + x_18) > (19.0 + x_19)? (18.0 + x_18) : (19.0 + x_19))? (2.0 + x_17) : ((18.0 + x_18) > (19.0 + x_19)? (18.0 + x_18) : (19.0 + x_19))) : (((16.0 + x_22) > (3.0 + x_23)? (16.0 + x_22) : (3.0 + x_23)) > ((3.0 + x_26) > (13.0 + x_27)? (3.0 + x_26) : (13.0 + x_27))? ((16.0 + x_22) > (3.0 + x_23)? (16.0 + x_22) : (3.0 + x_23)) : ((3.0 + x_26) > (13.0 + x_27)? (3.0 + x_26) : (13.0 + x_27))))? (((15.0 + x_0) > ((8.0 + x_6) > (5.0 + x_10)? (8.0 + x_6) : (5.0 + x_10))? (15.0 + x_0) : ((8.0 + x_6) > (5.0 + x_10)? (8.0 + x_6) : (5.0 + x_10))) > (((19.0 + x_11) > (8.0 + x_13)? (19.0 + x_11) : (8.0 + x_13)) > ((6.0 + x_14) > (13.0 + x_16)? (6.0 + x_14) : (13.0 + x_16))? ((19.0 + x_11) > (8.0 + x_13)? (19.0 + x_11) : (8.0 + x_13)) : ((6.0 + x_14) > (13.0 + x_16)? (6.0 + x_14) : (13.0 + x_16)))? ((15.0 + x_0) > ((8.0 + x_6) > (5.0 + x_10)? (8.0 + x_6) : (5.0 + x_10))? (15.0 + x_0) : ((8.0 + x_6) > (5.0 + x_10)? (8.0 + x_6) : (5.0 + x_10))) : (((19.0 + x_11) > (8.0 + x_13)? (19.0 + x_11) : (8.0 + x_13)) > ((6.0 + x_14) > (13.0 + x_16)? (6.0 + x_14) : (13.0 + x_16))? ((19.0 + x_11) > (8.0 + x_13)? (19.0 + x_11) : (8.0 + x_13)) : ((6.0 + x_14) > (13.0 + x_16)? (6.0 + x_14) : (13.0 + x_16)))) : (((2.0 + x_17) > ((18.0 + x_18) > (19.0 + x_19)? (18.0 + x_18) : (19.0 + x_19))? (2.0 + x_17) : ((18.0 + x_18) > (19.0 + x_19)? (18.0 + x_18) : (19.0 + x_19))) > (((16.0 + x_22) > (3.0 + x_23)? (16.0 + x_22) : (3.0 + x_23)) > ((3.0 + x_26) > (13.0 + x_27)? (3.0 + x_26) : (13.0 + x_27))? ((16.0 + x_22) > (3.0 + x_23)? (16.0 + x_22) : (3.0 + x_23)) : ((3.0 + x_26) > (13.0 + x_27)? (3.0 + x_26) : (13.0 + x_27)))? ((2.0 + x_17) > ((18.0 + x_18) > (19.0 + x_19)? (18.0 + x_18) : (19.0 + x_19))? (2.0 + x_17) : ((18.0 + x_18) > (19.0 + x_19)? (18.0 + x_18) : (19.0 + x_19))) : (((16.0 + x_22) > (3.0 + x_23)? (16.0 + x_22) : (3.0 + x_23)) > ((3.0 + x_26) > (13.0 + x_27)? (3.0 + x_26) : (13.0 + x_27))? ((16.0 + x_22) > (3.0 + x_23)? (16.0 + x_22) : (3.0 + x_23)) : ((3.0 + x_26) > (13.0 + x_27)? (3.0 + x_26) : (13.0 + x_27))))); x_0 = x_0_; x_1 = x_1_; x_2 = x_2_; x_3 = x_3_; x_4 = x_4_; x_5 = x_5_; x_6 = x_6_; x_7 = x_7_; x_8 = x_8_; x_9 = x_9_; x_10 = x_10_; x_11 = x_11_; x_12 = x_12_; x_13 = x_13_; x_14 = x_14_; x_15 = x_15_; x_16 = x_16_; x_17 = x_17_; x_18 = x_18_; x_19 = x_19_; x_20 = x_20_; x_21 = x_21_; x_22 = x_22_; x_23 = x_23_; x_24 = x_24_; x_25 = x_25_; x_26 = x_26_; x_27 = x_27_; } return 0; }
the_stack_data/168892769.c
/* $Xorg: LocBitmap.c,v 1.7 2001/02/09 02:03:52 xorgcvs Exp $ */ /* Copyright 1989, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. 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 OPEN GROUP 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. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ /* $XFree86: xc/lib/Xmu/LocBitmap.c,v 3.9 2001/12/14 19:55:47 dawes Exp $ */ /* * Author: Jim Fulton, MIT X Consortium */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <X11/Xlib.h> #include <stdlib.h> #include <string.h> #include <X11/Xresource.h> #include <X11/Xutil.h> #include <X11/Xmu/CvtCache.h> #include <X11/Xmu/Drawing.h> #include <X11/Xmu/SysUtil.h> #ifndef X_NOT_POSIX #ifdef _POSIX_SOURCE #include <limits.h> #else #define _POSIX_SOURCE #include <limits.h> #undef _POSIX_SOURCE #endif #endif /* X_NOT_POSIX */ #ifndef PATH_MAX #ifdef WIN32 #define PATH_MAX 512 #else #include <sys/param.h> #endif #ifndef PATH_MAX #ifdef MAXPATHLEN #define PATH_MAX MAXPATHLEN #else #define PATH_MAX 1024 #endif #endif #endif /* PATH_MAX */ /* * Prototypes */ static char **split_path_string(char*); /* * XmuLocateBitmapFile - read a bitmap file using the normal defaults */ Pixmap XmuLocateBitmapFile(Screen *screen, _Xconst char *name, char *srcname, int srcnamelen, int *widthp, int *heightp, int *xhotp, int *yhotp) { return XmuLocatePixmapFile (screen, name, (unsigned long) 1, (unsigned long) 0, (unsigned int) 1, srcname, srcnamelen, widthp, heightp, xhotp, yhotp); } /* * version that reads pixmap data as well as bitmap data */ Pixmap XmuLocatePixmapFile(Screen *screen, _Xconst char *name, unsigned long fore, unsigned long back, unsigned int depth, char *srcname, int srcnamelen, int *widthp, int *heightp, int *xhotp, int *yhotp) { #ifndef BITMAPDIR #define BITMAPDIR "/usr/include/X11/bitmaps" #endif Display *dpy = DisplayOfScreen (screen); Window root = RootWindowOfScreen (screen); Bool try_plain_name = True; XmuCvtCache *cache = _XmuCCLookupDisplay (dpy); char **file_paths = (char **) NULL; char filename[PATH_MAX]; #if 0 char* bitmapdir = BITMAPDIR; #endif unsigned int width, height; int xhot, yhot; int i; /* * look in cache for bitmap path */ if (cache) { if (!cache->string_to_bitmap.bitmapFilePath) { XrmName xrm_name[2]; XrmClass xrm_class[2]; XrmRepresentation rep_type; XrmValue value; xrm_name[0] = XrmPermStringToQuark ("bitmapFilePath"); xrm_name[1] = NULLQUARK; xrm_class[0] = XrmPermStringToQuark ("BitmapFilePath"); xrm_class[1] = NULLQUARK; if (!XrmGetDatabase(dpy)) { /* what a hack; need to initialize it */ (void) XGetDefault (dpy, "", ""); } if (XrmQGetResource (XrmGetDatabase(dpy), xrm_name, xrm_class, &rep_type, &value) && rep_type == XrmPermStringToQuark("String")) { cache->string_to_bitmap.bitmapFilePath = split_path_string (value.addr); } } file_paths = cache->string_to_bitmap.bitmapFilePath; } /* * Search order: * 1. name if it begins with / or ./ * 2. "each prefix in file_paths"/name * 3. BITMAPDIR/name * 4. name if didn't begin with / or . */ for (i = 1; i <= 4; i++) { char *fn = filename; Pixmap pixmap; unsigned char *data; switch (i) { case 1: #ifndef __UNIXOS2__ if (!(name[0] == '/' || ((name[0] == '.') && name[1] == '/'))) #else if (!(name[0] == '/' || (name[0] == '.' && name[1] == '/') || (isalpha(name[0]) && name[1] == ':'))) #endif continue; fn = (char *) name; try_plain_name = False; break; case 2: if (file_paths && *file_paths) { XmuSnprintf(filename, sizeof(filename), "%s/%s", *file_paths, name); file_paths++; i--; break; } continue; case 3: XmuSnprintf(filename, sizeof(filename), "%s/%s", BITMAPDIR, name); break; case 4: if (!try_plain_name) continue; fn = (char *) name; break; } data = NULL; pixmap = None; #ifdef __UNIXOS2__ fn = (char*)__XOS2RedirRoot(fn); #endif if (XmuReadBitmapDataFromFile (fn, &width, &height, &data, &xhot, &yhot) == BitmapSuccess) { pixmap = XCreatePixmapFromBitmapData (dpy, root, (char *) data, width, height, fore, back, depth); XFree ((char *)data); } if (pixmap) { if (widthp) *widthp = (int)width; if (heightp) *heightp = (int)height; if (xhotp) *xhotp = xhot; if (yhotp) *yhotp = yhot; if (srcname && srcnamelen > 0) { strncpy (srcname, fn, srcnamelen - 1); srcname[srcnamelen - 1] = '\0'; } return pixmap; } } return None; } /* * split_path_string - split a colon-separated list into its constituent * parts; to release, free list[0] and list. */ static char ** split_path_string(register char *src) { int nelems = 1; register char *dst; char **elemlist, **elem; /* count the number of elements */ for (dst = src; *dst; dst++) if (*dst == ':') nelems++; /* get memory for everything */ dst = (char *) malloc (dst - src + 1); if (!dst) return NULL; elemlist = (char **) calloc ((nelems + 1), sizeof (char *)); if (!elemlist) { free (dst); return NULL; } /* copy to new list and walk up nulling colons and setting list pointers */ strcpy (dst, src); for (elem = elemlist, src = dst; *src; src++) { if (*src == ':') { *elem++ = dst; *src = '\0'; dst = src + 1; } } *elem = dst; return elemlist; } void _XmuStringToBitmapInitCache(register XmuCvtCache *c) { c->string_to_bitmap.bitmapFilePath = NULL; } void _XmuStringToBitmapFreeCache(register XmuCvtCache *c) { if (c->string_to_bitmap.bitmapFilePath) { if (c->string_to_bitmap.bitmapFilePath[0]) free (c->string_to_bitmap.bitmapFilePath[0]); free ((char *) (c->string_to_bitmap.bitmapFilePath)); } }
the_stack_data/184518968.c
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s void test_zero() { #pragma omp parallel sections {} } void test_one() { #pragma omp parallel sections { ; } } // CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc> // CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-parallel-sections.c:3:1, line:6:1> line:3:6 test_zero 'void ()' // CHECK-NEXT: | `-CompoundStmt {{.*}} <col:18, line:6:1> // CHECK-NEXT: `-FunctionDecl {{.*}} <line:8:1, line:11:1> line:8:6 test_one 'void ()' // CHECK-NEXT: `-CompoundStmt {{.*}} <col:17, line:11:1> // CHECK-NEXT: `-OMPParallelSectionsDirective {{.*}} <line:9:9, col:30> // CHECK-NEXT: `-CapturedStmt {{.*}} <line:10:3, col:7> // CHECK-NEXT: `-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> // CHECK-NEXT: |-CompoundStmt {{.*}} <col:3, col:7> openmp_structured_block // CHECK-NEXT: | `-NullStmt {{.*}} <col:5> // CHECK-NEXT: |-ImplicitParamDecl {{.*}} <line:9:9> col:9 implicit .global_tid. 'const int *const restrict' // CHECK-NEXT: |-ImplicitParamDecl {{.*}} <col:9> col:9 implicit .bound_tid. 'const int *const restrict' // CHECK-NEXT: `-ImplicitParamDecl {{.*}} <col:9> col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-sections.c:9:9) *const restrict'
the_stack_data/67669.c
/* Christmas Tree Pattern input 3 output * *** ***** ******* *** ***** * * We divide the problem into 3 parts: 1. Full triangle 2. Partial Triangle 3. Stand */ #include<stdio.h> void fulltriangle(int row) { for(int i=1;i<=row;i++) { printf("%*s",row-i,""); for(int j=1;j<=(2*i-1);j++) { printf("*"); } printf("\n"); } } void partialtriangle(int row,int offset) { for(int i=1;i<=row;i++) { printf("%*s",offset,""); printf("%*s",row-i,""); for(int j=1;j<=(2*i+1);j++) { printf("*"); } printf("\n"); } } void stand(int row) { for(int i=1;i<=2;i++) { printf("%*s",row,""); printf("*\n"); } } int main(int argc, char const *argv[]) { int n,offset=1; scanf("%d",&n); fulltriangle(n+1); for(int j=n-1;j>=2;j--) { partialtriangle(j,offset); offset++; } stand(n); return 0; }
the_stack_data/90765691.c
// WARNING: The files in this directory have not been extensively tested // and may be incorrect. --JTB void main() { int a = 1; int b = 3; int c = 5; int N = 10; for(int t = 0; t < N; t++) { if (a > 0) { b += a; c += 1; a = -1; } else { if (a < 0) { b += a; c -= 1; a = 1; } else { a = a; b = b; c = c; } } } __VERIFIER_assert(c - b == 2); }
the_stack_data/48575592.c
#include<stdio.h> #define MAX 16 void main(){ int N, menor = 1000, p, i; scanf("%d", &N); int X[N]; for(i = 0; i < N; i++){ scanf("%d", &X[i]); if(X[i] < menor){ p = i; menor = X[i]; } } printf("Menor valor: %d\n", menor); printf("Posicao: %d\n", p); }
the_stack_data/150139956.c
#ifndef __HWFont__ #define __HWFont__ unsigned int size_HWFont = 0x23E0; unsigned char HWFont[] __attribute__((aligned(16))) = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x0F,0xF0,0x00,0x00,0x0F,0x00,0x90,0x9F,0x90,0x00,0x00,0x00,0x00, 0x00,0x09,0x00,0x00,0x90,0x0F,0x00,0xF0,0x09,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x09,0x00,0x00,0x09,0x09,0x00,0x00,0x4F,0xF0,0x04,0x90,0x9F, 0x00,0xF0,0xF9,0xF4,0x04,0x90,0x9F,0x00,0x90,0x9F,0x00,0x00,0xF0,0x49,0x00,0x90, 0x4F,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x90,0x9B,0x00,0x00,0x4F, 0x4F,0x00,0x00,0x4F,0xF0,0x04,0xF9,0xFF,0x09,0xF0,0xF4,0xF4,0x04,0xF0,0xF9,0x04, 0xF0,0xFF,0x04,0x00,0xFA,0x44,0x00,0x00,0xAF,0x00,0x00,0x00,0x90,0x00,0x00,0xF0, 0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x90,0x00, 0x00,0x00,0x00,0xB0,0xBF,0x04,0x00,0x4F,0x4F,0x00,0xF0,0xFF,0xFF,0x0F,0x9F,0x9F, 0x4F,0xF0,0xF4,0xF9,0x04,0xF0,0xF4,0x04,0x90,0x9F,0x04,0x00,0xAF,0x04,0x00,0x00, 0xFA,0x04,0x00,0x9F,0xF0,0x94,0x0F,0xF0,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0x04,0x00,0x00,0x00,0xF0,0xFF,0x04,0x00,0x4F, 0x4F,0x00,0x00,0x4F,0xF4,0x44,0x9F,0x4F,0x44,0xF0,0xF9,0x9F,0x04,0xF0,0xF9,0x04, 0xF0,0x49,0x04,0x00,0x9F,0x04,0x00,0x00,0xF9,0x04,0x00,0xF9,0xF9,0xF9,0x09,0xF0, 0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF9,0x04, 0x00,0x00,0x00,0xF0,0xFF,0x04,0x00,0x49,0x49,0x00,0x00,0x4F,0xF0,0x04,0xF9,0x4F, 0x00,0x90,0x9F,0x4F,0x04,0x90,0x4F,0x04,0x00,0x44,0x00,0x00,0x4F,0x04,0x00,0x00, 0xF0,0x04,0x00,0x90,0xFF,0x9F,0x04,0xF0,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x9F,0x04,0x00,0x00,0x00,0xF0,0xFF,0x04,0x00,0x40, 0x40,0x00,0x00,0x4F,0xF0,0x04,0x90,0x9F,0x00,0x00,0xF9,0x49,0x00,0x90,0x9F,0x00, 0x00,0x00,0x00,0x00,0x4F,0x00,0x00,0x00,0xF0,0x04,0x00,0x00,0xF9,0x49,0xF4,0xFF, 0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x90,0x4F,0x04, 0x00,0x00,0x00,0xB0,0xBF,0x04,0x00,0x00,0x00,0x00,0x00,0x4F,0xF0,0x04,0x00,0xFF, 0x09,0x00,0xF0,0xF9,0x09,0xF9,0xF9,0x04,0x00,0x00,0x00,0x00,0x4F,0x00,0x00,0x00, 0xF0,0x04,0x00,0x90,0xFF,0x9F,0x00,0xF4,0x44,0x04,0x00,0x00,0x00,0xF0,0xFF,0xFF, 0x0F,0x00,0x00,0x00,0x00,0xF0,0x49,0x00,0x00,0x00,0x00,0x90,0x9F,0x04,0x00,0x00, 0x00,0x00,0x00,0x4F,0xF0,0x04,0x00,0x9F,0x4F,0x00,0xF0,0x9F,0x4F,0x9F,0xF4,0xF9, 0x00,0x00,0x00,0x00,0x9F,0x00,0x00,0x00,0xF9,0x04,0x00,0xF9,0xF9,0xF9,0x09,0xF0, 0x04,0x00,0x00,0x00,0x00,0x00,0x44,0x44,0x44,0x00,0x00,0x00,0x00,0xF9,0x44,0x00, 0x00,0x00,0x00,0x00,0x4B,0x04,0x00,0x00,0x00,0x00,0xF0,0xFF,0xFF,0x0F,0x0F,0x4F, 0x4F,0x00,0x9F,0x4F,0x4F,0x4F,0x94,0x4F,0x04,0x00,0x00,0x00,0xAF,0x04,0x00,0x00, 0xFA,0x04,0x00,0x9F,0xF4,0x94,0x0F,0xF0,0x04,0x00,0xF0,0x0F,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x9F,0x04,0x00,0x00,0x00,0x00,0x00,0x44,0x00,0x00,0x00, 0x00,0x00,0x00,0x4F,0xF4,0x44,0x9F,0x9F,0x4F,0x90,0x4F,0x4F,0x4F,0x4F,0x90,0x4F, 0x00,0x00,0x00,0x00,0xFA,0x04,0x00,0x00,0xAF,0x04,0x00,0x40,0x94,0x04,0x04,0xF0, 0x04,0x00,0xF0,0x4F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x90,0x4F,0x04,0x00, 0x00,0x00,0x00,0x90,0x9F,0x00,0x00,0x00,0x00,0x00,0x00,0x4F,0xF0,0x04,0xF9,0xFF, 0x49,0xF0,0x49,0x9F,0x4F,0x9F,0xF9,0x9F,0x00,0x00,0x00,0x00,0xF0,0x09,0x00,0x00, 0x4F,0x04,0x00,0x00,0x00,0x04,0x00,0xF0,0x04,0x00,0x90,0x4F,0x00,0x00,0x00,0x00, 0x00,0xF0,0x0F,0x00,0xF0,0x49,0x00,0x00,0x00,0x00,0x00,0x90,0x9F,0x04,0x00,0x00, 0x00,0x00,0x00,0x4F,0xF0,0x04,0x90,0x9F,0x44,0xF0,0x44,0xF9,0x49,0xF9,0x9F,0xF4, 0x04,0x00,0x00,0x00,0x90,0x4F,0x00,0xF0,0x49,0x00,0x00,0x00,0x00,0x00,0x00,0xF0, 0x04,0x00,0xF0,0x49,0x00,0x00,0x00,0x00,0x00,0xF0,0x4F,0x00,0xF0,0x44,0x00,0x00, 0x00,0x00,0x00,0x00,0x44,0x04,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x04,0x00,0x4F, 0x04,0x90,0x04,0x90,0x44,0x40,0x44,0x04,0x04,0x00,0x00,0x00,0x00,0x44,0x00,0x00, 0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x90,0x44,0x00,0x00,0x00,0x00, 0x00,0x90,0x49,0x00,0x90,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x04,0x00,0x04,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x40,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x44,0x00,0x00,0x04,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x90,0xFF,0x09,0x00,0x00,0x0F,0x00,0x90,0xFF,0x09,0x00,0xF9,0x9F,0x00,0x00,0x90, 0x0F,0xF0,0xFF,0xFF,0x0F,0x90,0xFF,0x09,0xF0,0xFF,0xFF,0x0F,0x90,0xFF,0x09,0x00, 0xF9,0x9F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0xF9,0x9F,0x00,0xF9,0x99,0x9F,0x00,0x90,0x4F,0x00,0xF9, 0x99,0x9F,0x90,0x4F,0xF9,0x09,0x00,0xF0,0x4F,0xF0,0x44,0x44,0x44,0xF9,0x44,0x9F, 0x00,0x44,0x44,0x4F,0xF9,0x99,0x9F,0x90,0x9F,0xF9,0x09,0xFF,0x00,0x00,0xF0,0x0F, 0x00,0x00,0x00,0x00,0xF9,0x00,0x00,0x00,0x00,0x9F,0x00,0x00,0x90,0x9F,0xF9,0x09, 0x9F,0x44,0xF9,0x04,0xF9,0x4F,0x00,0x9F,0x44,0xF9,0xF4,0x49,0x90,0x4F,0x00,0xF9, 0x4F,0xF0,0x04,0x00,0x00,0x4F,0x04,0x40,0x04,0x00,0x90,0x4F,0x9F,0x44,0xF9,0xF4, 0x49,0x94,0x4F,0xFF,0x04,0x00,0xF0,0x4F,0x00,0x00,0x00,0x90,0x9F,0x04,0x00,0x00, 0x00,0xF9,0x09,0x00,0xF0,0x49,0x94,0x4F,0x4F,0x04,0xF0,0x94,0xFF,0x4F,0x00,0x40, 0x04,0xF9,0x04,0x44,0x90,0x4F,0x90,0x9F,0x4F,0xF0,0x04,0x00,0x00,0x4F,0x00,0x00, 0x00,0x00,0xF0,0x49,0x9F,0x04,0xF9,0xF4,0x44,0x00,0x4F,0x99,0x04,0x00,0x90,0x49, 0x00,0x00,0x00,0xF9,0x49,0x04,0xF9,0xFF,0x9F,0x90,0x9F,0x00,0xF0,0x44,0x00,0x4F, 0x4F,0x00,0xF0,0x04,0x44,0x4F,0x00,0x00,0x00,0xF9,0x04,0x00,0xF9,0x49,0xF0,0x49, 0x4F,0xF0,0xFF,0x9F,0x00,0x9F,0xFF,0x09,0x00,0x00,0xF0,0x44,0xF9,0x99,0x9F,0xF4, 0x04,0x00,0x4F,0x40,0x04,0x00,0x00,0x44,0x00,0x00,0x90,0x9F,0x44,0x00,0x40,0x44, 0x44,0x00,0xF9,0x09,0x90,0x04,0x90,0x4F,0x4F,0x00,0xF0,0x04,0x00,0x4F,0x00,0x00, 0x90,0x9F,0x04,0xF9,0x9F,0x44,0xF9,0x44,0x4F,0xF0,0x49,0xF4,0x09,0xFF,0x99,0x9F, 0x00,0x00,0xF9,0x04,0x90,0xFF,0x49,0xF4,0x09,0x90,0x4F,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0xF9,0x49,0x04,0x00,0x00,0x00,0x00,0x00,0x90,0x9F,0x00,0x04,0xF9,0x49, 0x4F,0x00,0xF0,0x04,0x00,0x4F,0x00,0x00,0xF9,0x49,0x04,0x40,0xF9,0x09,0x9F,0x04, 0x4F,0x00,0x44,0x00,0x4F,0x9F,0x44,0xF9,0x04,0x00,0x9F,0x04,0xF9,0x99,0x4F,0x90, 0x9F,0xF9,0x4F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF9,0x49,0x00,0x00,0x00,0x00, 0x00,0x00,0x90,0x9F,0x04,0x90,0x9F,0x44,0x4F,0x00,0xF0,0x04,0x00,0x4F,0x00,0x90, 0x9F,0x44,0x00,0x00,0x90,0x4F,0x4F,0x04,0x4F,0x00,0x00,0x00,0x4F,0x4F,0x04,0xF0, 0x04,0x00,0x4F,0x04,0x9F,0x44,0xF9,0x00,0xF9,0x9F,0x4F,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x90,0x9F,0x00,0x00,0x00,0x00,0x00,0x00,0xF9,0x49,0x04,0xF0,0x49,0x04, 0x4F,0x00,0xF0,0x04,0x00,0x4F,0x00,0xF0,0x49,0x04,0xF0,0x00,0x00,0x4F,0xFF,0xFF, 0xFF,0xFF,0x00,0x00,0x4F,0x4F,0x00,0xF0,0x04,0x00,0x4F,0x00,0x4F,0x04,0xF0,0x04, 0x40,0x94,0x4F,0xFF,0x00,0x00,0xF0,0x0F,0x00,0x00,0x00,0xF9,0x09,0x00,0xF9,0xFF, 0x9F,0x90,0x9F,0x44,0x00,0x90,0x44,0x00,0x9F,0x00,0xF9,0x04,0x00,0x4F,0x00,0xF9, 0x44,0x00,0xF0,0x09,0x90,0x4F,0x40,0x44,0x4F,0xF4,0x09,0x90,0x4F,0x9F,0x00,0xF9, 0x04,0x00,0x4F,0x00,0x9F,0x00,0xF9,0x04,0x00,0x90,0x4F,0xFF,0x04,0x00,0xF0,0x4F, 0x00,0x00,0x00,0x90,0x9F,0x00,0x40,0x44,0x44,0xF9,0x49,0x04,0x00,0x40,0x04,0x00, 0xF9,0x99,0x9F,0x04,0x00,0x4F,0x00,0x9F,0x04,0x00,0x90,0x9F,0xF9,0x49,0x00,0x00, 0x4F,0x90,0x9F,0xF9,0x49,0xF9,0x99,0x9F,0x04,0x00,0x4F,0x00,0xF9,0x99,0x9F,0x94, 0x0F,0xF0,0x49,0x99,0x04,0x00,0xF0,0x49,0x00,0x00,0x00,0x00,0xF9,0x04,0x00,0x00, 0x00,0x9F,0x44,0x00,0x00,0xF9,0x09,0x00,0x90,0xFF,0x49,0x04,0x00,0x4F,0x00,0xFF, 0xFF,0xFF,0x00,0xF9,0x9F,0x44,0x00,0x00,0x4F,0x00,0xF9,0x9F,0x44,0x90,0xFF,0x49, 0x04,0x00,0x4F,0x00,0x90,0xFF,0x49,0x04,0xF9,0x9F,0x44,0x40,0x04,0x00,0x90,0x44, 0x00,0x00,0x00,0x00,0x40,0x04,0x00,0x00,0x00,0x40,0x04,0x00,0x00,0xF9,0x49,0x00, 0x00,0x44,0x44,0x00,0x00,0x40,0x00,0x40,0x44,0x44,0x04,0x40,0x44,0x04,0x00,0x00, 0x40,0x00,0x40,0x44,0x04,0x00,0x44,0x44,0x00,0x00,0x40,0x00,0x00,0x44,0x44,0x00, 0x40,0x44,0x04,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x90,0xFF,0x09,0x00,0xF0,0x0F,0x00,0xFF,0xFF,0x9F,0x00,0xF9,0x9F,0x00,0xFF,0x9F, 0x00,0xF0,0xFF,0xFF,0x0F,0xFF,0xFF,0xFF,0x00,0xF9,0x9F,0x00,0x0F,0x00,0xF0,0xF0, 0x00,0x00,0x00,0x00,0x00,0xF0,0xF0,0x00,0x90,0x0F,0x0F,0x00,0x00,0xF0,0x09,0x90, 0x0F,0x9F,0x00,0xF0,0x00,0xF9,0x9F,0x00,0xF9,0x99,0x9F,0x00,0xF0,0x4F,0x00,0x4F, 0x44,0xF9,0x94,0x9F,0xF9,0x09,0x9F,0xF9,0x09,0xF0,0x44,0x44,0x44,0x4F,0x44,0x44, 0x94,0x9F,0xF9,0x09,0x4F,0x00,0xF0,0xF4,0x04,0x00,0x00,0x00,0x00,0xF0,0xF4,0x04, 0xF9,0x49,0x4F,0x00,0x00,0xF0,0x4A,0xA0,0x4F,0xFF,0x04,0xF0,0x94,0x9F,0xF9,0x09, 0x9F,0x44,0xF9,0x04,0xF0,0x4F,0x00,0x4F,0x00,0xF0,0xF4,0x49,0x94,0x4F,0x4F,0x94, 0x9F,0xF0,0x04,0x00,0x00,0x4F,0x00,0x00,0xF0,0x49,0x94,0x4F,0x4F,0x00,0xF0,0xF4, 0x04,0x00,0x00,0x00,0x00,0xF0,0xF4,0x04,0x9F,0x44,0x4F,0x00,0x00,0xF0,0x4F,0xF0, 0x4F,0xFF,0x09,0xF0,0xF4,0x49,0x94,0x4F,0x4F,0xA9,0xF0,0x04,0x9F,0xF9,0x00,0x4F, 0x00,0xF9,0xF4,0x44,0x00,0x4F,0x4F,0x00,0xF9,0xF4,0x04,0x00,0x00,0x4F,0x00,0x00, 0xF0,0x44,0x00,0x44,0x4F,0x00,0xF0,0xF4,0x04,0x00,0x00,0x00,0x00,0xF0,0xF4,0x94, 0x4F,0x04,0x4F,0x00,0x00,0xF0,0x9F,0xF9,0x4F,0x9F,0x4F,0xF0,0xF4,0x44,0x00,0x4F, 0x4F,0xFA,0xF4,0x04,0x4F,0xF4,0x04,0x4F,0x00,0x9F,0xF4,0x04,0x00,0x40,0x4F,0x00, 0xF0,0xF4,0x04,0x00,0x00,0x4F,0x00,0x00,0xF0,0x04,0x00,0x00,0x4F,0x00,0xF0,0xF4, 0x04,0x00,0x00,0x00,0x00,0xF0,0xF4,0xF9,0x44,0x00,0x4F,0x00,0x00,0xF0,0xF9,0x9F, 0x4F,0x4F,0x4F,0xF0,0xF4,0x04,0x00,0x4F,0x4F,0xFF,0xF4,0x04,0x4F,0xF0,0x04,0xFF, 0xFF,0x49,0xF4,0x04,0x00,0x00,0x4F,0x00,0xF0,0xF4,0xFF,0xFF,0x00,0xFF,0xFF,0x0F, 0xF0,0x04,0x00,0x00,0xFF,0xFF,0xFF,0xF4,0x04,0x00,0x00,0x00,0x00,0xF0,0xF4,0xFF, 0x09,0x00,0x4F,0x00,0x00,0xF0,0xF9,0x9F,0x4F,0x4F,0x9F,0xF0,0xF4,0x04,0x00,0x4F, 0x4F,0xFF,0xF4,0x04,0x4F,0xF0,0x04,0x4F,0x44,0x9F,0xF0,0x04,0x00,0x00,0x4F,0x00, 0xF0,0xF4,0x44,0x44,0x04,0x4F,0x44,0x44,0xF0,0xF4,0xFF,0x0F,0x4F,0x44,0xF4,0xF4, 0x04,0x00,0x00,0x00,0x00,0xF0,0xF4,0x99,0x4F,0x00,0x4F,0x00,0x00,0xF0,0xF4,0x4F, 0x4F,0x4F,0xF9,0xF4,0xF4,0x04,0x00,0x4F,0x4F,0xAA,0xF4,0x94,0xFF,0xFF,0x09,0x4F, 0x00,0xF9,0xF4,0x04,0x00,0x00,0x4F,0x00,0xF0,0xF4,0x04,0x00,0x00,0x4F,0x00,0x00, 0xF0,0x04,0x44,0x4F,0x4F,0x00,0xF0,0xF4,0x04,0x00,0x00,0x0F,0x00,0xF0,0xF4,0x44, 0x9F,0x00,0x4F,0x00,0x00,0xF0,0xA4,0x4A,0x4F,0x4F,0xF0,0xF4,0xF4,0x04,0x00,0x4F, 0x4F,0x99,0xF4,0xF4,0x49,0x94,0x4F,0x4F,0x00,0xF0,0xF4,0x04,0x00,0x0F,0x4F,0x00, 0xF9,0xF4,0x04,0x00,0x00,0x4F,0x00,0x00,0xF0,0x04,0x00,0x4F,0x4F,0x00,0xF0,0xF4, 0x04,0x00,0x00,0x4F,0x00,0xF0,0xF4,0x04,0xF9,0x04,0x4F,0x00,0x00,0xF0,0x94,0x49, 0x4F,0x4F,0xF0,0xF9,0xF4,0x04,0x00,0x4F,0x9F,0x40,0xF9,0xF4,0x44,0x00,0x4F,0x4F, 0x00,0xF9,0xF4,0x09,0x90,0x4F,0x4F,0x90,0x9F,0xF4,0x04,0x00,0x00,0x4F,0x00,0x00, 0xF0,0x09,0x90,0x4F,0x4F,0x00,0xF0,0xF4,0x04,0x00,0x00,0x9F,0x00,0xF9,0xF4,0x04, 0xF0,0x09,0x4F,0x00,0x00,0xF0,0x04,0x44,0x4F,0x4F,0x90,0xFF,0xF4,0x09,0x90,0x4F, 0xF9,0x99,0x9F,0xF4,0x04,0x00,0x4F,0x4F,0x00,0x9F,0x94,0x9F,0xF9,0x49,0x9F,0xF9, 0x49,0xF4,0x04,0x00,0x00,0x4F,0x00,0x00,0x90,0x9F,0xF9,0x4F,0x4F,0x00,0xF0,0xF4, 0x04,0x00,0x00,0xF9,0x99,0x9F,0xF4,0x04,0x90,0x4F,0x4F,0x00,0x00,0xF0,0x04,0x00, 0x4F,0x4F,0x00,0xFF,0x94,0x9F,0xF9,0x49,0x90,0xFF,0x49,0xF4,0x04,0x00,0x4F,0xFF, 0xFF,0x49,0x04,0xF9,0x9F,0x44,0xFF,0x9F,0x44,0xF0,0xFF,0xFF,0x0F,0x4F,0x00,0x00, 0x00,0xF9,0x9F,0x4F,0x4F,0x00,0xF0,0xF4,0x04,0x00,0x00,0x90,0xFF,0x49,0xF4,0x04, 0x00,0x4F,0xFF,0xFF,0xFF,0xF0,0x04,0x00,0x4F,0x4F,0x00,0xF9,0x04,0xF9,0x9F,0x44, 0x00,0x44,0x44,0x00,0x04,0x00,0x40,0x40,0x44,0x44,0x00,0x40,0x44,0x04,0x40,0x44, 0x04,0x00,0x44,0x44,0x44,0x40,0x00,0x00,0x00,0x40,0x44,0x44,0x40,0x00,0x00,0x04, 0x04,0x00,0x00,0x00,0x44,0x44,0x00,0x04,0x00,0x40,0x40,0x44,0x44,0x04,0x04,0x00, 0x40,0x40,0x00,0x40,0x04,0x40,0x44,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0xFF,0xFF,0x09,0x00,0xF9,0x9F,0x00,0xFF,0xFF,0x09,0x00,0xF9,0x9F,0x00,0xFF,0xFF, 0x0F,0xF0,0x00,0x00,0x0F,0x0F,0x00,0xF0,0xF0,0x00,0x00,0x0F,0x0F,0x00,0xF0,0xF0, 0x00,0xF0,0x00,0xFF,0xFF,0xFF,0xF0,0xFF,0x00,0x00,0x0F,0x00,0x00,0xF0,0xFF,0x00, 0x00,0x90,0x9F,0x00,0x00,0x00,0x00,0x00,0x4F,0x94,0x9F,0x90,0x9F,0xF9,0x09,0x4F, 0x44,0x9F,0x90,0x9F,0xF9,0x09,0x40,0x4F,0x44,0xF0,0x04,0x00,0x4F,0x4F,0x00,0xF0, 0xF4,0x04,0x00,0x4F,0x4F,0x00,0xF0,0xF4,0x04,0xF0,0x04,0x40,0x44,0xF9,0xF4,0x44, 0x04,0x00,0x9F,0x00,0x00,0x00,0xF4,0x04,0x00,0xF9,0xF9,0x09,0x00,0x00,0x00,0x00, 0x4F,0x00,0xF9,0xF4,0x49,0x94,0x4F,0x4F,0x00,0xF9,0xF4,0x49,0x94,0x4F,0x00,0x4F, 0x00,0xF0,0x04,0x00,0x4F,0x4F,0x00,0xF0,0xF4,0x94,0x09,0x4F,0x9F,0x00,0xF9,0xF4, 0x04,0xF0,0x04,0x00,0x00,0x9F,0xF4,0x04,0x00,0x00,0xF9,0x04,0x00,0x00,0xF0,0x04, 0x00,0x9F,0x94,0x4F,0x00,0x00,0x00,0x00,0x4F,0x00,0xF9,0xF4,0x44,0x00,0x4F,0x4F, 0x00,0xF0,0xF4,0x44,0x00,0x44,0x00,0x4F,0x00,0xF0,0x04,0x00,0x4F,0x9F,0x00,0xF9, 0xF4,0xF4,0x4F,0x4F,0xF9,0x04,0x9F,0xF4,0x04,0xF0,0x04,0x00,0x90,0x4F,0xF4,0x04, 0x00,0x00,0xF0,0x09,0x00,0x00,0xF0,0x04,0x00,0x49,0x04,0x49,0x00,0x00,0x00,0x00, 0x4F,0x00,0xF9,0xF4,0x04,0x00,0x4F,0x4F,0x00,0xF9,0x94,0x9F,0x00,0x00,0x00,0x4F, 0x00,0xF0,0x04,0x00,0x4F,0xF9,0x04,0x9F,0xF4,0xF4,0x4F,0x4F,0xF0,0x99,0x4F,0xF4, 0x09,0xF9,0x04,0x00,0xF9,0x49,0xF0,0x04,0x00,0x00,0x90,0x4F,0x00,0x00,0xF0,0x04, 0x00,0x40,0x00,0x40,0x00,0x00,0x00,0x00,0x4F,0x90,0x9F,0xF4,0x04,0x00,0x4F,0x4F, 0x00,0x9F,0x04,0xF9,0x9F,0x00,0x00,0x4F,0x00,0xF0,0x04,0x00,0x4F,0xF0,0x04,0x4F, 0xF4,0xF4,0x4F,0x4F,0x90,0xFF,0x49,0x90,0x9F,0x9F,0x04,0x00,0x9F,0x44,0xF0,0x04, 0x00,0x00,0x00,0x9F,0x00,0x00,0xF0,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0xFF,0xFF,0x49,0xF4,0x04,0x00,0x4F,0xFF,0xFF,0x49,0x04,0x40,0xF9,0x09,0x00,0x4F, 0x00,0xF0,0x04,0x00,0x4F,0xF0,0x04,0x4F,0xF0,0xF9,0x9F,0x4F,0x90,0xFF,0x49,0x00, 0xF9,0x49,0x04,0x90,0x4F,0x04,0xF0,0x04,0x00,0x00,0x00,0xF9,0x04,0x00,0xF0,0x04, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4F,0x44,0x44,0xF0,0xF4,0x09,0x4F,0x4F, 0x94,0x4F,0x00,0x00,0x90,0x4F,0x00,0x4F,0x00,0xF0,0x04,0x00,0x4F,0xF0,0x99,0x4F, 0xF0,0x9F,0xF9,0x4F,0xF0,0x99,0x4F,0x00,0xF0,0x44,0x00,0xF0,0x49,0x00,0xF0,0x04, 0x00,0x00,0x00,0xF0,0x09,0x00,0xF0,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x4F,0x00,0x00,0xF0,0x94,0x9F,0x4F,0x4F,0x00,0x9F,0xF0,0x00,0x00,0x4F,0x00,0x4F, 0x00,0xF0,0x04,0x00,0x4F,0x90,0xFF,0x49,0xF0,0x9F,0xF9,0x4F,0xF9,0x44,0x9F,0x00, 0xF0,0x04,0x00,0xF9,0x44,0x00,0xF0,0x04,0x00,0x00,0x00,0x90,0x4F,0x00,0xF0,0x04, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4F,0x00,0x00,0xF0,0x09,0xF9,0x4F,0x4F, 0x00,0xF9,0xF4,0x09,0x90,0x4F,0x00,0x4F,0x00,0xF0,0x09,0x90,0x4F,0x00,0xFF,0x44, 0xF0,0x4F,0xF4,0x4F,0x9F,0x04,0xF9,0x04,0xF0,0x04,0x00,0x9F,0x04,0x00,0xF0,0x04, 0x00,0x00,0x00,0x00,0x9F,0x00,0xF0,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x4F,0x00,0x00,0x90,0x9F,0xF9,0x49,0x4F,0x00,0xF0,0x94,0x9F,0xF9,0x49,0x00,0x4F, 0x00,0x90,0x9F,0xF9,0x49,0x00,0xFF,0x04,0xF0,0x49,0x90,0x4F,0x4F,0x04,0xF0,0x04, 0xF0,0x04,0x00,0x4F,0x04,0x00,0xF0,0x04,0x00,0x00,0x00,0x00,0xF9,0x04,0xF0,0x04, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4F,0x00,0x00,0x00,0xF9,0x9F,0x4F,0x4F, 0x00,0xF0,0x04,0xF9,0x9F,0x44,0x00,0x4F,0x00,0x00,0xF9,0x9F,0x44,0x00,0xFF,0x04, 0xF0,0x44,0x00,0x4F,0x4F,0x00,0xF0,0x04,0xF0,0x04,0x00,0xFF,0xFF,0xFF,0xF0,0xFF, 0x00,0x00,0x00,0x00,0xF0,0xF4,0xFF,0x04,0x00,0x00,0x00,0x00,0xF0,0xFF,0xFF,0xFF, 0x40,0x00,0x00,0x00,0x40,0x44,0x44,0x40,0x00,0x00,0x04,0x40,0x44,0x04,0x00,0x40, 0x00,0x00,0x40,0x44,0x04,0x00,0x40,0x04,0x00,0x04,0x00,0x40,0x40,0x00,0x00,0x04, 0x00,0x04,0x00,0x40,0x44,0x44,0x04,0x44,0x04,0x00,0x00,0x00,0x00,0x04,0x44,0x04, 0x00,0x00,0x00,0x00,0x00,0x44,0x44,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x90,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0xF0,0x00,0x00,0x00,0x00,0x00,0xF9,0x0F,0x00,0x00,0x00,0x00,0x0F,0x00,0x00,0x90, 0x00,0x00,0x00,0x00,0x00,0xF0,0xF4,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4F, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0x04,0x00,0x00,0x00,0x00,0x9F,0x44, 0x00,0x00,0x00,0x00,0x4F,0x00,0x00,0xF0,0x04,0x00,0x00,0x00,0x00,0x90,0xF4,0x04, 0x00,0x00,0xF9,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0xF0,0x04,0x00,0x00,0x00,0x00,0x4F,0x04,0x00,0x00,0x00,0x00,0x4F,0x00,0x00,0x90, 0x04,0x00,0x00,0x00,0x00,0x00,0xF4,0x04,0x00,0x00,0xF0,0x04,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4F, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0x04,0x00,0x00,0x00,0x00,0x4F,0x00, 0x00,0xF9,0xFF,0x0F,0x4F,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0xF0,0xF0,0x04, 0x00,0x00,0xF0,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xF9,0xFF,0x09,0xFF,0xFF,0x09,0x00,0xF9,0x9F,0x00,0x90,0xFF, 0xFF,0x04,0xF9,0x9F,0x00,0xFF,0xFF,0x0F,0x00,0x4F,0xF9,0x44,0x9F,0xFF,0x9F,0xF0, 0x00,0x00,0x00,0x00,0x00,0xF0,0xF4,0x04,0xF9,0x00,0xF0,0x04,0x00,0x90,0xFF,0xF9, 0x9F,0x9F,0xFF,0x9F,0x00,0xF9,0x9F,0x00,0x00,0x00,0x00,0x00,0x9F,0x94,0x4F,0x4F, 0x94,0x9F,0x90,0x9F,0xF9,0x09,0xF9,0x49,0xF4,0x94,0x9F,0xF9,0x09,0x40,0x4F,0x44, 0x00,0x9F,0xF0,0x04,0xFF,0x44,0xF9,0xF4,0x04,0x00,0x00,0x00,0x00,0xF0,0xF4,0x99, 0x9F,0x04,0xF0,0x04,0x00,0xF0,0x99,0x9F,0xF9,0xFF,0x49,0xF9,0x94,0x4F,0xF4,0x09, 0x00,0x00,0x00,0x00,0x40,0x04,0x4F,0x4F,0x00,0xF9,0xF4,0x49,0x94,0x4F,0x9F,0x44, 0xF0,0xF4,0x49,0x94,0x4F,0x00,0x4F,0x00,0x00,0xFF,0x9F,0x04,0x9F,0x04,0xF0,0xF4, 0x04,0x00,0x00,0x00,0x00,0xF0,0xF4,0xFF,0x49,0x04,0xF0,0x04,0x00,0xF0,0x44,0x4F, 0xF4,0x9F,0x44,0xF0,0xF4,0x49,0x90,0x4F,0x00,0x00,0x00,0x00,0xF9,0xFF,0x4F,0x4F, 0x00,0xF0,0xF4,0x44,0x00,0x44,0x4F,0x04,0xF0,0xF4,0xFF,0xFF,0x4F,0x00,0x4F,0x00, 0x00,0x9F,0x44,0x04,0x4F,0x04,0xF0,0xF4,0x04,0x00,0x00,0x00,0x00,0xF0,0xF4,0x9F, 0x44,0x00,0xF0,0x04,0x00,0xF0,0x04,0x4F,0xF0,0x4F,0x04,0xF0,0xF4,0x44,0x00,0x4F, 0x00,0x00,0x00,0x90,0x4F,0x94,0x4F,0x4F,0x00,0xF0,0xF4,0x04,0x00,0x00,0x4F,0x00, 0xF0,0xF4,0x44,0x44,0x44,0x00,0x4F,0x00,0x90,0xFF,0xFF,0x09,0x4F,0x00,0xF0,0xF4, 0x04,0x00,0x00,0x00,0x00,0xF0,0xF4,0xF9,0x09,0x00,0xF0,0x04,0x00,0xF0,0x04,0x4F, 0xF0,0x4F,0x00,0xF0,0xF4,0x04,0x00,0x4F,0x00,0x00,0x00,0xF0,0x49,0x90,0x4F,0x4F, 0x00,0xF9,0xF4,0x09,0x90,0x0F,0x9F,0x00,0xF0,0xF4,0x09,0x90,0x0F,0x00,0x4F,0x00, 0xF0,0x49,0x94,0x4F,0x4F,0x00,0xF0,0xF4,0x04,0x00,0x00,0x00,0x00,0xF0,0xF4,0x94, 0x9F,0x00,0xF0,0x04,0x00,0xF0,0x04,0x4F,0xF0,0x4F,0x00,0xF0,0xF4,0x09,0x90,0x4F, 0x00,0x00,0x00,0x90,0x4F,0xF9,0x4F,0x4F,0x90,0x9F,0x94,0x9F,0xF9,0x49,0xF9,0x09, 0xF0,0x94,0x9F,0xF9,0x49,0x00,0x4F,0x00,0xF0,0x44,0x00,0x4F,0x4F,0x00,0xF0,0xF4, 0x04,0x00,0x00,0x9F,0x00,0xF9,0xF4,0x04,0xF9,0x09,0xF0,0x04,0x00,0xF0,0x04,0x4F, 0xF0,0x4F,0x00,0xF0,0x94,0x4F,0xF0,0x49,0x00,0x00,0x00,0x00,0xF9,0x9F,0xFF,0xFF, 0xFF,0x49,0x04,0xF9,0x9F,0x44,0x90,0xFF,0xFF,0x04,0xF9,0x9F,0x44,0x00,0x4F,0x00, 0xF0,0x09,0x90,0x4F,0x4F,0x00,0xF0,0xF4,0x04,0x00,0x00,0xF9,0x99,0x9F,0xF4,0x04, 0x90,0x4F,0xF0,0x04,0x00,0xF0,0x04,0x4F,0xF0,0x4F,0x00,0xF0,0x04,0xF9,0x9F,0x44, 0x00,0x00,0x00,0x00,0x40,0x44,0x44,0x40,0x44,0x44,0x00,0x40,0x44,0x04,0x00,0x44, 0x44,0x04,0x40,0x44,0x04,0x00,0x40,0x00,0x90,0xFF,0xFF,0x49,0x40,0x00,0x00,0x04, 0x04,0x00,0x00,0x90,0xFF,0x49,0x04,0x04,0x00,0x44,0x00,0x04,0x00,0x00,0x04,0x40, 0x00,0x40,0x00,0x00,0x04,0x40,0x44,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x44,0x44,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x44,0x44,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF9,0xFF,0x00,0x0F,0x00,0x00,0xF0,0xFF,0x09, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x9F, 0x44,0x04,0x4F,0x00,0x00,0x00,0x94,0x4F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4F,0x04,0x00,0x4F,0x00,0x00,0x00,0x00,0x4F, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4F, 0x00,0x00,0x4F,0x00,0x00,0x00,0x00,0x4F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0xFF,0xFF,0x09,0x00,0xF9,0xFF,0x0F,0x0F,0xF9,0x0F,0x90,0xFF,0xFF,0x09,0xFF,0xFF, 0x0F,0xF0,0x00,0x00,0x0F,0x0F,0x00,0xF0,0xF0,0x00,0x00,0x0F,0x0F,0x00,0xF0,0xF0, 0x00,0x00,0x0F,0xFF,0xFF,0x0F,0x00,0x4F,0x00,0x00,0x4F,0x00,0x00,0x00,0x00,0x4F, 0x00,0xF9,0x09,0x90,0x00,0x00,0x00,0x00,0x4F,0x94,0x9F,0x90,0x9F,0x94,0x4F,0x9F, 0x9F,0x44,0xF0,0x49,0x94,0x4F,0x40,0x4F,0x44,0xF0,0x04,0x00,0x4F,0x4F,0x00,0xF0, 0xF4,0xF4,0x0F,0x4F,0x9F,0x00,0xF9,0xF4,0x04,0x00,0x4F,0x40,0x94,0x4F,0xF0,0x4F, 0x00,0x00,0x4F,0x00,0x00,0x00,0x00,0xFF,0x00,0x9F,0x4F,0xF0,0x04,0x00,0x00,0x00, 0x4F,0x00,0xF9,0xF4,0x49,0x04,0x4F,0xFF,0x49,0x04,0xF0,0x49,0x00,0x44,0x00,0x4F, 0x00,0xF0,0x04,0x00,0x4F,0x9F,0x00,0xF9,0xF4,0xF4,0x4F,0x4F,0xF0,0x99,0x4F,0xF4, 0x09,0x90,0x4F,0x00,0xF9,0x49,0x00,0x4F,0x00,0x00,0x4F,0x00,0x00,0x00,0x00,0x4F, 0x04,0x4F,0xF9,0xF9,0x04,0x00,0x00,0x00,0x4F,0x00,0xF0,0xF4,0x44,0x00,0x4F,0x9F, 0x44,0x00,0x90,0xFF,0xFF,0x09,0x00,0x4F,0x00,0xF0,0x04,0x00,0x4F,0xF9,0x04,0x9F, 0xF4,0xF4,0x4F,0x4F,0x00,0xFF,0x44,0x00,0x4F,0xF0,0x44,0x00,0x9F,0x44,0x00,0x4F, 0x00,0x00,0x4F,0x00,0x00,0x00,0x00,0x4F,0x00,0x49,0x90,0x9F,0x04,0x00,0x00,0x00, 0x4F,0x90,0x9F,0x94,0x9F,0x90,0x4F,0x4F,0x04,0x00,0x00,0x44,0x94,0x4F,0x00,0x4F, 0x00,0xF0,0x04,0x00,0x4F,0xF0,0x04,0x4F,0xF4,0xF9,0x9F,0x4F,0x90,0xFF,0x09,0x00, 0x4F,0xF0,0x04,0x90,0x4F,0x04,0x00,0x4F,0x00,0x00,0x4F,0x00,0x00,0x00,0x00,0x4F, 0x00,0x40,0x00,0x44,0x04,0x00,0x00,0x00,0xFF,0xFF,0x49,0x04,0xF9,0xFF,0x4F,0x4F, 0x00,0x00,0xF0,0x00,0x00,0x4F,0x00,0x4F,0xF0,0xF0,0x09,0x90,0x4F,0xF0,0x04,0x4F, 0xA0,0xAF,0xFA,0x4A,0xF0,0x44,0x4F,0x00,0xF0,0x4F,0x04,0xF9,0x49,0x00,0x00,0x4F, 0x00,0x00,0x4F,0x00,0x00,0x00,0x00,0x4F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x4F,0x44,0x44,0x00,0x40,0x44,0x4F,0x4F,0x00,0x00,0xF0,0x09,0x90,0x4F,0x00,0x9F, 0xF9,0x94,0x9F,0xF0,0x4F,0x00,0xFF,0x44,0x90,0x9F,0xF9,0x49,0x9F,0x04,0xF9,0x00, 0xF0,0x49,0x00,0x9F,0x44,0x00,0x00,0x9F,0x00,0x00,0x4F,0x00,0x00,0x00,0x90,0x4F, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4F,0x00,0x00,0x00,0x00,0x00,0x4F,0x4F, 0x00,0x00,0x90,0xFF,0xFF,0x49,0x00,0xF9,0x9F,0x04,0xF9,0x9F,0x4F,0x00,0xFF,0x04, 0x00,0x4F,0xF4,0x44,0x4F,0x04,0xF0,0x04,0xF0,0x44,0x00,0xFF,0xFF,0x0F,0x00,0xF9, 0xFF,0x00,0x4F,0x00,0x00,0xF0,0xFF,0x49,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x4F,0x00,0x00,0x00,0x00,0x00,0x4F,0x40,0x00,0x00,0x00,0x44,0x44,0x44,0x00,0x40, 0x44,0x04,0x40,0x44,0x44,0x00,0x40,0x04,0x00,0x40,0x00,0x04,0x40,0x00,0x00,0x04, 0x9F,0x04,0x00,0x40,0x44,0x44,0x00,0x40,0x44,0x04,0x40,0x00,0x00,0x00,0x44,0x44, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x40,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4F,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x80,0x88,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0x57,0x03,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0xF0,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0xFF,0xFF, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0x03,0x00,0x00,0x14,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x50,0x55,0xA5,0x03,0x00,0x00,0x00,0x00,0x00,0x21,0x00, 0x00,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x55,0x00,0x00,0x05,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0xF0,0x03,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x90, 0x03,0x55,0x55,0x04,0x00,0x00,0x75,0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00, 0x55,0x00,0x00,0x19,0x00,0x00,0x00,0x00,0x00,0x10,0x55,0x35,0x00,0x10,0x03,0x05, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0x03,0x00,0x00,0x38,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x55,0xF5,0x02,0x88,0x88,0x0F,0x00,0x00,0x3A,0x00, 0x32,0x39,0x02,0x40,0x88,0x48,0x00,0x33,0x77,0x13,0x00,0x38,0x93,0x01,0x51,0x45, 0x00,0x20,0x88,0x59,0x00,0x26,0x07,0x0B,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0xF0,0x03,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x80,0xFF,0xFF, 0x00,0x00,0x45,0x08,0x00,0x30,0x0A,0x00,0xF8,0xFF,0x0F,0x30,0xA5,0x35,0x00,0xFF, 0xFF,0x3F,0x00,0xA5,0xF9,0x00,0x82,0x88,0x00,0x00,0x00,0x53,0x00,0x37,0x19,0x08, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0x03,0x00,0x00,0x38,0x00,0x00,0x00, 0x00,0x00,0x30,0x5F,0x00,0x00,0x00,0xB3,0x00,0x00,0x8F,0x04,0x00,0x90,0x05,0x00, 0x38,0x00,0x0F,0x00,0x80,0x00,0x00,0x00,0x59,0x00,0x71,0x7F,0x82,0x00,0x00,0x80, 0x00,0x00,0x00,0x53,0x00,0x54,0x34,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0xF0,0x03,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x10,0x35,0x00,0x00,0x00,0x84, 0x00,0x00,0x8F,0x00,0x00,0xF5,0x05,0x00,0x38,0x00,0x0F,0x00,0x80,0x00,0x00,0x10, 0x5F,0x00,0x70,0x84,0x55,0x00,0x00,0x80,0x00,0x00,0xFF,0x5F,0x00,0x31,0x40,0x06, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0x03,0x00,0x00,0x38,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x58,0x00,0x00,0x0F,0x00,0x40,0x7B,0x05,0x00, 0x26,0x10,0x08,0x00,0x80,0x00,0x00,0x50,0x5B,0x00,0x00,0xA0,0x14,0x00,0x00,0x80, 0x00,0x00,0x33,0x55,0x00,0x00,0x60,0x04,0x00,0x00,0x00,0x00,0x72,0x05,0x00,0x00, 0xF0,0x03,0x00,0x00,0x38,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x1F, 0x00,0x00,0x0F,0x00,0x50,0x54,0x05,0x00,0x00,0x40,0x07,0x00,0x80,0x00,0x00,0xB1, 0x56,0x00,0x00,0xA0,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x53,0x00,0x00,0xA0,0x01, 0x00,0x00,0x00,0x00,0x18,0x45,0x00,0x00,0x30,0x01,0x00,0x00,0x38,0x00,0x80,0x07, 0x00,0x00,0x00,0x00,0x00,0x00,0x91,0x06,0x00,0x10,0x09,0x00,0x00,0x50,0x05,0x00, 0x00,0x70,0x04,0x60,0xB8,0x88,0x00,0x75,0x55,0x00,0x00,0x80,0x03,0x00,0x88,0xB8, 0x28,0x10,0x33,0x55,0x00,0x00,0x84,0x00,0x00,0x00,0x00,0x00,0x08,0x51,0x00,0x00, 0x00,0x00,0x00,0x00,0x38,0x00,0x40,0x7F,0x00,0x00,0x00,0x00,0x00,0x10,0x9A,0x01, 0x00,0x50,0x06,0x00,0x00,0x50,0x05,0x00,0x00,0xB2,0x01,0x40,0x55,0x55,0x00,0x18, 0x55,0x00,0x00,0x60,0x04,0x00,0x55,0x55,0x15,0x30,0xFF,0x5F,0x00,0x20,0x2B,0x00, 0x00,0x00,0x00,0x00,0x56,0x18,0x00,0x00,0x00,0x00,0x30,0xFF,0x3F,0x00,0x00,0xA4, 0x01,0x00,0x00,0x00,0x00,0x00,0x16,0x00,0x00,0xA0,0x01,0x00,0x00,0x50,0x05,0x00, 0x00,0x58,0x00,0x00,0x00,0x00,0x00,0x20,0x5F,0x00,0x00,0x50,0x05,0x00,0x00,0x00, 0x00,0x00,0x00,0x31,0x00,0x50,0x04,0x00,0x00,0x00,0x00,0x00,0x30,0x01,0x00,0x00, 0x00,0x00,0x10,0x33,0x13,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x10,0x00,0x00,0x00,0x10,0x01,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00, 0x03,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x15,0x00,0x00,0x00,0x00,0x00,0x00,0x21,0x00,0x00,0x31,0x00, 0x00,0x10,0x02,0x00,0x00,0x11,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x0F,0x00,0x00,0x00, 0x00,0x00,0x00,0x55,0x00,0x00,0xF3,0x00,0x00,0x40,0x07,0x00,0x00,0x93,0x00,0x00, 0x80,0x03,0x00,0x00,0x00,0x00,0x00,0x51,0x80,0x05,0x10,0x05,0x00,0x00,0x00,0x00, 0x00,0x00,0x46,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x88,0x88,0x29,0x00, 0x00,0xB4,0x01,0x00,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x55,0x00,0x00,0xF3,0x00, 0x00,0x30,0x08,0x00,0x00,0x65,0x00,0x00,0xB0,0x01,0x00,0x00,0x00,0x00,0x00,0x83, 0x80,0x05,0x20,0x3F,0x00,0x00,0x52,0x75,0x01,0x00,0x58,0x00,0x00,0x04,0x00,0x26, 0x00,0x00,0x00,0x20,0x56,0x55,0x5A,0x00,0x00,0x78,0x00,0x33,0x3F,0x13,0x80,0xFF, 0xFF,0x00,0x00,0x55,0x00,0x00,0xF3,0x00,0x00,0x40,0x8A,0x08,0x00,0xA7,0x88,0x01, 0xF1,0x00,0x00,0x40,0x55,0x55,0x00,0x83,0x80,0x05,0x00,0x45,0x00,0x00,0xF6,0xB9, 0x06,0x00,0x58,0x00,0x00,0x4A,0x00,0x3B,0x00,0x00,0x00,0x00,0x00,0x15,0x1B,0x00, 0x10,0x1F,0x00,0xFF,0xFF,0x3F,0x40,0xA5,0x57,0x50,0xFF,0xFF,0x8F,0x82,0xF9,0xFF, 0x00,0xFB,0x7F,0x04,0x00,0x8A,0xF8,0x02,0xA3,0x55,0x45,0x80,0xFF,0xFF,0x10,0x95, 0x93,0x27,0x10,0x00,0x00,0x00,0x00,0x90,0x04,0x00,0x58,0x94,0x03,0x66,0x00,0x1F, 0x00,0x00,0x00,0x00,0x00,0x4F,0x08,0x00,0x80,0x07,0x00,0x3F,0x33,0x39,0x00,0x80, 0x03,0x30,0x55,0x8B,0x45,0x82,0xA9,0xF5,0x00,0x25,0x0F,0x00,0x20,0x0B,0xF0,0x00, 0xF5,0xFF,0x8F,0x00,0x00,0xF0,0x50,0xFF,0xFF,0x8F,0xA1,0x01,0x40,0x06,0x00,0xF1, 0x01,0x30,0xFA,0xBB,0x04,0x94,0x10,0x0F,0x51,0x55,0x55,0x03,0x00,0xBF,0x03,0x00, 0xF4,0x05,0x00,0x0F,0x00,0x38,0x00,0x80,0x03,0x00,0x10,0x5F,0x00,0x00,0x83,0xF0, 0x00,0x00,0x1A,0x00,0x70,0x07,0xB2,0x00,0x48,0x80,0x03,0x00,0x00,0xF0,0x20,0x95, 0x93,0x27,0x80,0x07,0x70,0x06,0x00,0x84,0x00,0xF4,0x7F,0xA0,0x01,0x61,0x30,0x0A, 0x82,0x88,0x88,0x04,0x00,0x5F,0x00,0x10,0xAB,0x05,0x00,0x0F,0x00,0x3B,0x00,0x80, 0x03,0x00,0x40,0x5F,0x00,0x00,0x84,0xF0,0x00,0x00,0x68,0x77,0xF1,0x01,0x84,0x10, 0x1F,0xA0,0x02,0x00,0x00,0xF0,0x00,0x83,0x80,0x05,0x10,0x04,0xB1,0x02,0x00,0x58, 0x00,0x21,0x58,0x92,0x00,0x00,0x50,0x08,0x00,0x00,0x00,0x00,0x00,0x0F,0x00,0x90, 0x58,0x05,0x00,0x08,0x10,0x1F,0x00,0x80,0x03,0x00,0x80,0x59,0x00,0x00,0x55,0xF0, 0x30,0xB8,0xAF,0x47,0x20,0x00,0x56,0x10,0x05,0xF0,0x00,0x00,0x00,0xF0,0x00,0x83, 0x80,0x03,0x00,0x00,0x85,0x00,0x10,0xAF,0x00,0x00,0x58,0x57,0x00,0x00,0x80,0x05, 0x00,0x00,0x00,0x00,0x10,0x0F,0x00,0x50,0x51,0x05,0x00,0x00,0x40,0x0A,0x00,0x80, 0x03,0x00,0xA3,0x55,0x00,0x00,0x48,0xF0,0x40,0x47,0x58,0x00,0x00,0x00,0x3A,0x00, 0x00,0xA2,0x00,0x00,0x00,0xF0,0x00,0x41,0xB0,0x03,0x00,0x10,0x3B,0x00,0x70,0xA7, 0x04,0x00,0x58,0x14,0x00,0x00,0xF1,0x01,0x00,0x00,0x00,0x00,0x40,0x09,0x00,0x00, 0x50,0x05,0x00,0x00,0x70,0x06,0x51,0xA5,0x57,0x03,0x59,0x55,0x00,0x10,0x1F,0xF0, 0x00,0x00,0x55,0x00,0x00,0x30,0x0A,0x00,0x00,0x75,0x00,0x20,0x33,0xF3,0x00,0x00, 0xF2,0x00,0x00,0x80,0x08,0x00,0xF1,0x41,0x0A,0x00,0x58,0x00,0x00,0x00,0x95,0x00, 0x00,0x00,0x00,0x00,0x70,0x06,0x00,0x00,0x50,0x05,0x00,0x00,0xF1,0x02,0xF3,0xFF, 0xFF,0x45,0x0A,0x55,0x00,0x50,0x08,0xB3,0x00,0x00,0x75,0x00,0x00,0x80,0x05,0x00, 0x00,0x49,0x00,0x80,0xFF,0xFF,0x00,0x00,0x87,0x00,0x00,0xB7,0x01,0x00,0x78,0x00, 0x4A,0x00,0x78,0x33,0x00,0x10,0x4B,0x00,0x00,0x00,0x00,0x00,0xF2,0x02,0x00,0x00, 0x50,0x05,0x00,0x00,0x88,0x00,0x00,0x00,0x00,0x10,0x12,0x57,0x00,0xB1,0x23,0x8B, 0x00,0x00,0x84,0x00,0x00,0xB5,0x01,0x00,0x30,0x1B,0x00,0x20,0x33,0x83,0x00,0x30, 0x3F,0x00,0x50,0x2B,0x00,0x20,0x1B,0x00,0x55,0x00,0xF6,0xFF,0x00,0x80,0x08,0x00, 0x00,0x00,0x00,0x00,0x82,0x00,0x00,0x00,0x50,0x05,0x00,0x10,0x1B,0x00,0x00,0x00, 0x00,0x00,0x40,0x5F,0x00,0x50,0x10,0x15,0x00,0x00,0x83,0x00,0x00,0x4B,0x00,0x00, 0x60,0x05,0x00,0x00,0x00,0x00,0x00,0x40,0x06,0x00,0x10,0x02,0x00,0x00,0x01,0x00, 0x01,0x00,0x31,0x33,0x00,0x60,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x10,0x13,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x31,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x50,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x01,0x00,0x00,0x00,0x00, 0x00,0x84,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x31,0x33,0x02,0x00,0x54, 0x00,0x00,0x00,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0x00,0x00, 0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0xF0,0x03,0x00,0x00,0x00,0x00,0x00,0x55,0x00,0x00,0x10,0x94,0x1B,0x00, 0x42,0x30,0x03,0xF5,0xFF,0x08,0x00,0x55,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x00, 0x00,0x54,0x88,0x05,0x00,0xF0,0x00,0x00,0x00,0x50,0x09,0x00,0x00,0x00,0x00,0x85, 0x00,0x00,0x50,0x55,0x55,0x00,0x00,0x00,0x00,0x00,0xF0,0x03,0x00,0x00,0x00,0x01, 0x00,0xF8,0xAF,0x00,0xF8,0x9F,0x03,0x71,0x94,0x70,0x05,0x31,0x33,0x02,0x00,0x55, 0x00,0x00,0x00,0x38,0x00,0x40,0x88,0x68,0x00,0x87,0x78,0x09,0x50,0xF7,0x48,0x00, 0x00,0x70,0x06,0x00,0x00,0x04,0x00,0x85,0x00,0x00,0xF0,0xFF,0xFF,0x03,0x20,0x04, 0x00,0x00,0xF0,0x03,0x20,0x88,0xF9,0x5F,0x00,0x5B,0xB7,0x00,0x21,0x58,0x00,0xF1, 0xF1,0x80,0x05,0x00,0x00,0x00,0x00,0x55,0x00,0x00,0x00,0x38,0x00,0x40,0x88,0x68, 0x00,0x00,0x50,0x08,0x60,0x58,0x6A,0x00,0x00,0x90,0x04,0x00,0x06,0x4A,0x00,0x85, 0x10,0x07,0x00,0x00,0xB0,0x03,0x80,0x1B,0x00,0xF3,0xFF,0xFF,0x25,0x58,0x55,0x4A, 0x20,0x0A,0x83,0x00,0x00,0x58,0x00,0x80,0x83,0x81,0x34,0x55,0x55,0x35,0x00,0x75, 0x00,0x50,0xFF,0xFF,0x8F,0x00,0x00,0x00,0x00,0x40,0x70,0x05,0x00,0x10,0x1F,0x00, 0x00,0xF1,0x01,0x20,0x0B,0x76,0x00,0xA5,0xF8,0x1A,0x00,0x00,0xF0,0x01,0xB2,0x58, 0x00,0x51,0xF1,0x55,0x03,0x00,0x10,0x1F,0x60,0x46,0x84,0x20,0x88,0xAB,0x68,0x60, 0x14,0xB0,0x53,0xFF,0xFF,0x5F,0x00,0xF5,0x18,0x30,0x55,0x7A,0x45,0x00,0x00,0x00, 0x00,0xA0,0xA5,0x02,0x00,0x70,0x07,0x00,0x00,0xA5,0x00,0x30,0x08,0xA3,0x00,0xB5, 0x47,0x00,0x00,0x00,0xF1,0x00,0x57,0xB3,0x01,0x00,0xF0,0x01,0x00,0x00,0x40,0x08, 0xA0,0xB2,0x58,0x20,0x88,0xAB,0x68,0x10,0x00,0xF1,0x01,0x00,0x38,0x00,0x00,0x85, 0x9A,0x01,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x20,0xAF,0x00,0x00,0xF3,0x44,0x00, 0x00,0x67,0x00,0x50,0x07,0xF0,0x01,0x85,0x00,0x00,0x00,0x00,0x84,0x10,0x1F,0x80, 0x05,0x50,0xF0,0x71,0x00,0x70,0x81,0x04,0x10,0x50,0x3F,0x00,0x00,0x58,0x00,0x00, 0x00,0xA4,0x00,0x00,0x38,0x00,0x00,0x55,0xA1,0x01,0x00,0x38,0x00,0x00,0x00,0x00, 0x00,0x00,0x98,0x00,0x10,0xFB,0xB4,0x01,0x10,0x2F,0x00,0x80,0x05,0x80,0x04,0x85, 0x00,0x00,0x00,0x00,0x67,0x40,0x07,0x30,0x1B,0xB1,0xF0,0xF1,0x01,0x80,0xB8,0x00, 0x00,0x10,0x6F,0x00,0x00,0x48,0x00,0x00,0x00,0x78,0x00,0x00,0x38,0x00,0x00,0x55, 0x10,0x00,0x00,0x3B,0x00,0x00,0x00,0x00,0x00,0x10,0xBF,0x04,0x91,0xF7,0x80,0x07, 0x50,0x09,0x00,0xB0,0x02,0x60,0x06,0x85,0x00,0x00,0x00,0x10,0x2F,0x00,0x01,0x00, 0x88,0x94,0xF0,0x91,0x04,0x30,0x5F,0x00,0x00,0x50,0x48,0x00,0x00,0x2F,0x00,0x00, 0x10,0x2F,0x00,0x00,0x3A,0x00,0x00,0x55,0x00,0x00,0x10,0x0F,0x00,0x82,0x98,0x88, 0x04,0x80,0x57,0x09,0x61,0xF0,0x10,0x05,0xB1,0x04,0x00,0xB2,0x00,0x50,0x08,0x85, 0x00,0x00,0x00,0x80,0x08,0x00,0x00,0x00,0x73,0x57,0xF0,0x51,0x07,0x00,0x58,0x00, 0x00,0xB1,0x03,0x00,0x40,0x0B,0x00,0x00,0x80,0x08,0x00,0x10,0x1F,0x00,0x00,0x55, 0x00,0x00,0x40,0x09,0x00,0x82,0x88,0x88,0x04,0xB7,0x11,0x1B,0x00,0xF0,0x00,0x00, 0xA8,0x00,0x00,0x76,0x00,0x30,0x09,0x95,0x00,0x00,0x10,0xB8,0x02,0x00,0x00,0x00, 0x10,0x35,0xF0,0x31,0x05,0x00,0xB3,0x01,0x00,0x87,0x00,0x00,0x90,0x07,0x00,0x00, 0xB8,0x01,0x00,0x50,0x09,0x00,0x00,0x55,0x00,0x00,0xA0,0x04,0x00,0x00,0x00,0x00, 0x10,0x3F,0x00,0x02,0x00,0xF0,0x00,0x00,0x36,0x00,0x00,0x21,0x00,0x10,0x01,0xF3, 0xFF,0x1F,0x40,0x2B,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0x01,0x00,0x00,0x90,0x01, 0x10,0x1B,0x00,0x00,0x91,0x01,0x00,0x00,0x28,0x00,0x00,0x80,0x04,0x00,0x00,0x33, 0x00,0x00,0x92,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0xF0,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x55,0x05,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0xF0,0x03,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x10,0x00,0x00,0x00, 0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x08,0x00,0x00,0x54,0x00,0x00, 0x10,0x02,0x00,0x00,0x00,0x1A,0x00,0x00,0x00,0x44,0x00,0x00,0x00,0x00,0x00,0x08, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x31,0x33,0x02,0x10,0x02,0x62,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x61,0x57,0x00,0x00,0x45,0x03,0x00,0x30,0xAF,0x04,0x00,0x30,0x0F,0x00,0x00, 0x00,0x55,0x00,0x86,0x88,0x08,0x00,0x1F,0x00,0x00,0x00,0x00,0x00,0x50,0xFF,0x8F, 0x00,0xF5,0xFF,0x08,0x50,0x08,0x83,0x00,0x51,0x65,0x00,0x50,0x08,0x00,0x00,0x32, 0x33,0x03,0xF0,0xFF,0xFF,0x03,0x15,0x00,0x00,0x80,0x14,0x00,0x00,0x76,0x02,0x00, 0x10,0x84,0x4F,0x00,0x30,0x09,0x00,0x00,0x00,0x58,0x00,0x96,0x8B,0x08,0x00,0x38, 0x51,0x05,0x31,0x33,0x00,0x30,0x55,0x87,0x00,0x31,0x33,0x02,0x50,0x08,0x83,0x00, 0x83,0x55,0x00,0x50,0x08,0x00,0x00,0xF8,0xFF,0x0F,0xF0,0x57,0xA5,0x03,0x6A,0x00, 0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x12,0x00,0x50,0x08,0x00,0x00, 0x01,0x38,0x00,0x30,0x08,0x00,0x00,0x78,0xBB,0x08,0xF5,0xFF,0x00,0x00,0x00,0x83, 0x00,0x00,0x00,0x00,0x50,0x08,0x83,0x00,0x83,0x55,0x00,0x50,0x08,0x00,0x00,0x58, 0x33,0x0F,0xF0,0x03,0x80,0x03,0xF3,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x10,0x02,0x00,0x00,0x60,0x05,0x00,0x00,0x68,0x1F,0x00,0x30,0x08,0x00,0x51,0x9A, 0x63,0x05,0x31,0xF3,0x00,0x00,0x00,0x83,0x00,0x88,0x89,0x28,0x50,0x08,0x83,0x00, 0x83,0x55,0x00,0x50,0x08,0x00,0x00,0x38,0x00,0x0F,0xF0,0x03,0x80,0x03,0x60,0x00, 0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x9F,0x04,0x00,0x80,0x04,0x00,0x00, 0xF2,0x09,0x10,0x75,0x5A,0x35,0xB6,0x79,0xA0,0x02,0x00,0xF0,0x00,0x30,0x55,0x87, 0x00,0x88,0x88,0x3F,0x50,0x08,0x83,0x00,0x83,0x55,0x10,0x50,0x08,0x20,0x05,0x38, 0x00,0x0F,0xF0,0x03,0xA0,0x03,0x00,0x00,0x57,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x84,0x5F,0x00,0xA0,0x42,0x04,0x00,0x70,0x1B,0x30,0xFF,0xFF,0x5F,0x12,0x83, 0xA2,0x00,0x00,0xF0,0x00,0x50,0xFF,0x8F,0x00,0x00,0x00,0x1F,0x50,0x08,0x83,0x00, 0x83,0x55,0x60,0x50,0x08,0x50,0x07,0x38,0x00,0x0F,0x50,0x01,0xF0,0x01,0x00,0x00, 0x3B,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x34,0x00,0xF0,0x40,0x08,0x00, 0xA0,0x8B,0x00,0x30,0x08,0x00,0x00,0xA3,0x51,0x00,0x00,0xF0,0x00,0x00,0x00,0x83, 0x00,0x00,0x10,0x0F,0x40,0x06,0x85,0x00,0x84,0x55,0xA2,0x50,0x08,0xA0,0x04,0x38, 0x00,0x0F,0x00,0x00,0xB2,0x00,0x00,0x40,0x0B,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x10,0x01,0x00,0x00,0x93,0x10,0x1F,0x00,0xB3,0x71,0x00,0x30,0x08,0x00,0x00,0xF0, 0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0x83,0x00,0x00,0x40,0x09,0x00,0x00,0x75,0x00, 0x75,0x55,0x57,0x50,0x08,0xA4,0x00,0x38,0x00,0x0F,0x00,0x00,0x75,0x00,0x00,0xA1, 0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x6F,0x01,0x00,0x94,0x53,0x4B,0x00, 0x58,0x10,0x00,0x30,0x08,0x00,0x00,0xF0,0x01,0x10,0x33,0xF3,0x23,0x00,0x00,0x83, 0x00,0x00,0x70,0x06,0x00,0x00,0x58,0x00,0x58,0x85,0x1B,0x50,0x18,0x4B,0x00,0xF8, 0xFF,0x0F,0x00,0x10,0x3B,0x00,0x00,0xA7,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x10,0xB5,0x3B,0x40,0xFF,0x9F,0x7A,0x40,0x1B,0x00,0x00,0x30,0x4B,0x13,0x00,0x90, 0x03,0x50,0xFF,0xFF,0x8F,0x50,0xFF,0x8F,0x00,0x00,0xF2,0x01,0x00,0x10,0x2F,0x10, 0x1F,0xF5,0x04,0x50,0xAA,0x07,0x00,0x78,0x55,0x0F,0x00,0x70,0x08,0x00,0xA4,0x2B, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x98,0x20,0x24,0x00,0x84,0x80, 0x05,0x00,0x00,0x10,0xFB,0x3F,0x00,0x80,0x04,0x10,0x33,0x33,0x23,0x30,0x55,0x87, 0x00,0x10,0x69,0x00,0x00,0x80,0x08,0x50,0x09,0x75,0x00,0x50,0x6F,0x00,0x00,0x12, 0x00,0x00,0x00,0xB4,0x02,0x00,0x89,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x20,0x00,0x00,0x00,0x11,0x10,0x00,0x00,0x00,0x00,0x30,0x13,0x00,0x70, 0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x21,0x00,0x80,0x09,0x00,0x00,0xB1,0x03,0x10, 0x04,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x21,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x10,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; #endif
the_stack_data/344513.c
/* Taxonomy Classification: 0000000100000032000110 */ /* * WRITE/READ 0 write * WHICH BOUND 0 upper * DATA TYPE 0 char * MEMORY LOCATION 0 stack * SCOPE 0 same * CONTAINER 0 no * POINTER 0 no * INDEX COMPLEXITY 1 variable * ADDRESS COMPLEXITY 0 constant * LENGTH COMPLEXITY 0 N/A * ADDRESS ALIAS 0 none * INDEX ALIAS 0 none * LOCAL CONTROL FLOW 0 none * SECONDARY CONTROL FLOW 0 none * LOOP STRUCTURE 3 while * LOOP COMPLEXITY 2 one * ASYNCHRONY 0 no * TAINT 0 no * RUNTIME ENV. DEPENDENCE 0 no * MAGNITUDE 1 1 byte * CONTINUOUS/DISCRETE 1 continuous * SIGNEDNESS 0 no */ /* Copyright 2004 M.I.T. Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute this software and its documentation for any purpose, provided that the above copyright notice and the following three paragraphs appear in all copies of this software. IN NO EVENT SHALL M.I.T. BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF M.I.T. HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMANGE. M.I.T. SPECIFICALLY DISCLAIMS ANY WARRANTIES INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THE SOFTWARE IS PROVIDED ON AN "AS-IS" BASIS AND M.I.T. HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. */ int main(int argc, char *argv[]) { int test_value; int loop_counter; char buf[10]; test_value = 10; loop_counter = 0; while(loop_counter <= test_value) { /* BAD */ buf[loop_counter] = 'A'; loop_counter++; } return 0; }
the_stack_data/363255.c
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> void swap(char** array, int a, int b) { char* temp = array[a]; array[a] = array[b]; array[b] = temp; } int Partition(char** array, int pivot, int sx, int dx) { char* mose = array[pivot]; //Mosè divide le acque tra <= e >= swap(array, pivot, dx); int i = sx; int j = dx-1; while(i <= j) { while(i <= j && (strcmp(array[i], mose) <= 0)) i++; while(i <= j && (strcmp(array[j], mose) >= 0)) j--; if(i < j) swap(array, i, j); } swap(array, i, dx); return i; } void QuickSort(char** array, int sx, int dx) { if(sx<dx) { int pivot = sx + (rand() % (dx-sx+1)); int perno = Partition(array, pivot, sx, dx); QuickSort(array, sx, perno-1); QuickSort(array, perno+1, dx); } } int main() { int len, i; scanf("%d", &len); char** array = malloc(len * sizeof(char*)); for(i=0; i<len; i++) { array[i] = malloc(101 * sizeof(char)); scanf("%s", array[i]); } srand(time(NULL)); QuickSort(array, 0, len-1); for(i=0; i<len; i++) { printf("%s\n", array[i]); free(array[i]); } free(array); return 0; }
the_stack_data/70448953.c
/* SSC-0112 - Organizacao de Computadores Digitais */ /* Turma A - 2018/01 */ /* Prof. Paulo Sergio Lopes de Souza */ /* */ /* Trabalho 2 */ /* Simulação de uma CPU MIPS Multiciclo de 32 bits */ /* */ /* Aluno NUSP */ /* Felipe Scrochio Custodio 9442688 */ /* Gabriel Henrique Scalici 9292970 */ /* Juliano Fantozzi 9791218 */ /* Andre Luis Storino Junior 9293668 */ // +------------------------+ // | DECISÕES DE PROJETO | // +------------------------+ /* * MUX possui como identificador a unidade funcional que ele dá a * resposta. * MUX_IDENTIFICADOR* * * ANDI usa código de operação 11 do ALUOp */ #include <stdio.h> #include <stdlib.h> // +--------+ // | pow | // +--------+ #include <math.h> #define DEBUG 1 #define IF_DEBUG if (DEBUG) #define GETBIT(x,p) (((x)>>(p))&1) #define TRUE 1 #define FALSE 0 typedef char boolean; typedef unsigned char byte; typedef unsigned char bit; typedef unsigned int word; #define STATUS_VALID 0 #define STATUS_INVALID_INSTR 1 #define STATUS_INVALID_ACCESS 2 #define STATUS_INVALID_ALU 3 #define STATUS_INVALID_REG 4 /*******************************************************/ // +----------+ // | DEBUGGER | // +----------+ int clocks = 0; FILE* f_debug = NULL; // +----------+ // | STATUS | // +----------+ int status = 0; // status da saída // +----------------------+ // | FUNÇÕES AUXILIARES | // +----------------------+ /* * bin2dec * ---------------------------- * Retorna valor decimal convertido de um binário * * bit* binary: string que representa o binário * int size: tamanho desse binário * */ int bin2dec(bit* binary, int size) { int i; int sum = 0; for (i = 0; i < size; i++) { if ((int)(binary[i])) { sum += pow(2, i); } } return sum; } /* * status_message * ---------------------------- * Retorna mensagem de erro de acordo com o * status da saída. */ char* status_message() { char* exit_message = NULL; switch(status) { case STATUS_INVALID_INSTR: exit_message = "Término devido à tentativa de execução de instrução inválida.\n"; break; case STATUS_INVALID_ACCESS: exit_message = "Término devido a acesso inválido de memória.\n"; break; case STATUS_INVALID_ALU: exit_message = "Término devido à operação inválida da ULA.\n"; break; case STATUS_INVALID_REG: exit_message = "Término devido a acesso inválido ao Banco de Registradores.\n"; break; case STATUS_VALID: exit_message = ("Estado da saída ainda é válido.\n"); } return exit_message; } /*******************************************************/ // +---------+ // | MEMÓRIA | // +---------+ #define MAX_SIZE 128 byte MEMORY[MAX_SIZE]; // memória (vetor de bytes) byte* memory_pointer; // acessar bytes da memória individualmente word* memory_word_pointer; // acessar bytes em blocos de tamanho da palavra /*******************************************************/ // +----+ // | IR | // +----+ bit op_code[6]; bit function[6]; bit rs[5]; bit rt[5]; bit rd[5]; bit immediate[16]; //jump_addr começará com 26 bits quando sair do IR bit jump_addr[32]; // +------------------------+ // | BANCO DE REGISTRADORES | // +------------------------+ typedef unsigned int reg; reg zero; // 0 reg at; // 1 reg v0; // 2 reg v1; // 3 reg a0; // 4 reg a1; // 5 reg a2; // 6 reg a3; // 7 reg t0; // 8 reg t1; // 9 reg t2; // 10 reg t3; // 11 reg t4; // 12 reg t5; // 13 reg t6; // 14 reg t7; // 15 reg s0; // 16 reg s1; // 17 reg s2; // 18 reg s3; // 19 reg s4; // 20 reg s5; // 21 reg s6; // 22 reg s7; // 23 reg t8; // 24 reg t9; // 25 reg k0; // 26 reg k1; // 27 reg gp; // 28 reg sp; // 29 reg fp; // 30 reg ra; // 31 reg MAR; // memory address register reg IR; // instruction register reg MDR; // memory buffer register word reg_write_data; // conteúdo a ser escrito em um registrador reg* write_reg; // ponteiro para o registrador que receberá write data reg PC; // program counter word pc_write_data; // saida do mux_pc // +----------------------------------+ // | FUNÇÕES - BANCO DE REGISTRADORES | // +----------------------------------+ /* * funcao() * RETORNA O ENDEREÇO DO REGISTRADOR * A PARTIR DO SEU IDENTIFICADOR * (0 - REG $ZERO) * (1 - REG $AT) * (...) */ reg* get_register(int id) { switch (id) { case 0: return &zero; break; case 1: return &at; break; case 2: return &v0; break; case 3: return &v1; break; case 4: return &a0; break; case 5: return &a1; break; case 6: return &a2; break; case 7: return &a3; break; case 8: return &t0; break; case 9: return &t1; break; case 10: return &t2; break; case 11: return &t3; break; case 12: return &t4; break; case 13: return &t5; break; case 14: return &t6; break; case 15: return &t7; break; case 16: return &s0; break; case 17: return &s1; break; case 18: return &s2; break; case 19: return &s3; break; case 20: return &s4; break; case 21: return &s5; break; case 22: return &s6; break; case 23: return &s7; break; case 24: return &t8; break; case 25: return &t9; break; case 26: return &k0; break; case 27: return &k1; break; case 28: return &gp; break; case 29: return &sp; break; case 30: return &fp; break; case 31: return &ra; break; } // registrador inválido return NULL; } /* * register_name * ---------------------------- * Retorna o nome (string) do registrador * com base em seu número * * int id: valor identificador do registrador * */ char* register_name(int id) { switch (id) { case 0: return "$zero"; break; case 1: return "$at"; break; case 2: return "$v0"; break; case 3: return "$v1"; break; case 4: return "$a0"; break; case 5: return "$a1"; break; case 6: return "$a2"; break; case 7: return "$a3"; break; case 8: return "$t0"; break; case 9: return "$t1"; break; case 10: return "$t2"; break; case 11: return "$t3"; break; case 12: return "$t4"; break; case 13: return "$t5"; break; case 14: return "$t6"; break; case 15: return "$t7"; break; case 16: return "$s0"; break; case 17: return "$s1"; break; case 18: return "$s2"; break; case 19: return "$s3"; break; case 20: return "$s4"; break; case 21: return "$s5"; break; case 22: return "$s6"; break; case 23: return "$s7"; break; case 24: return "$t8"; break; case 25: return "$t9"; break; case 26: return "$k0"; break; case 27: return "$k1"; break; case 28: return "$gp"; break; case 29: return "$sp"; break; case 30: return "$fp"; break; case 31: return "$ra"; break; } printf("ERRO: Registrador de número %d não encontrado.\n", id); exit(0); } /*******************************************************/ // +--------------------+ // | ULA | // +--------------------+ reg A; // read data 1 reg B; // read data 2 bit ALUInput[3]; // bits que definem quais operações a ULA deverá executar word ALUResult; // saída da ULA reg ALUOut; // registrador que armazena a saída da ULA word immediate_extended; // saída do sign extend word operator_1; // primeiro operando word operator_2; // segundo operando bit ALU_zero; // bit que indica se resultado é 0 ou não /*******************************************************/ // +--------------------+ // | SINAIS DE CONTROLE | // +--------------------+ bit RegDst0; // 00 bit RegDst1; // 01 bit RegWrite; // 02 bit ALUSrcA; // 03 bit ALUSrcB0; // 04 bit ALUSrcB1; // 05 bit ALUOp0; // 06 bit ALUOp1; // 07 bit PCSource0; // 08 bit PCSource1; // 09 bit PCWriteCond; // 10 bit PCWrite; // 11 bit IorD; // 12 bit MemRead; // 13 bit MemWrite; // 14 bit BNE; // 15 bit IRWrite; // 16 bit MemtoReg0; // 17 bit MemtoReg1; // 18 // auxiliar para BNE: // sinal de controle que chega ao PC bit PCControl; // +--------------------+ // | SINAIS DE ESTADO | // +--------------------+ bit state[5]; bit next_state[5]; /*******************************************************/ // +---------------------+ // | UNIDADES FUNCIONAIS | // +---------------------+ /* * FUNCAO QUE SIMULA O MUX QUE FARÁ O ACESSO A MEMORIA * ---------------------------- * O que ela faz: * RECEBE: SINAL DE CONTROLE IORD * SAIDAL: ALTERA O VALOR DE MAR */ void MUX_MEMORY() { switch (IorD) { case 0: MAR = PC; break; case 1: MAR = ALUOut; break; } } /* * FUNCAO QUE SIMULA O FUNCIONAMENTO DE PC * ---------------------------- * O que ela faz: * RECEBE: SINAL DE CONTROLE PCCONTROL * SAIDA: ATUALIZA O VALOR DE PC * */ void PROGRAM_COUNTER() { if (PCControl) { PC = pc_write_data; } } /* * FUNCAO QUE SIMULA O BANCO DE MEMORIA * ---------------------------- * O que ela faz: * RECEBE: BITS DE CONTROLE MEMREAD E MEMREG * SAIDA: OPERACAO DE LEITURA OU ESCRITA NA MEMORIA */ void MEMORY_BANK() { if (MemRead) { memory_word_pointer = (word*)(&(MEMORY[MAR])); // MDR = MEMORY[MAR]; MDR = (*memory_word_pointer); // IR = MEMORY[MAR]; IR = (*memory_word_pointer); } if (MemWrite) { // B = registrador read data 2 memory_word_pointer = (word*)(&(MEMORY[MAR])); // MEMORY[MAR] = B; (*memory_word_pointer) = B; } } /** * FUNCAO QUE SIMULA A SELECAO DO REGISTRADOR QUE TERA SEU VALOR ALTERADO * SINAL DE CONTROLE: REGDEST0 E REGDEST1 * 0 - PEGA O VALOR DE INSTRUCTION[20 .. 16] * 1 - PEGA O VALOR DE INSTRUCTION[15 .. 11] * 2 - PEGA O VALOR 31 (NUMÉRICO) * 3 - NÃO EXISTE * SAIDA: PARA WRITE REGISTER (REGISTERS) */ void MUX_WRITE_REG() { int i; switch (RegDst1) { case 0: switch (RegDst0) { case 0: // escrever no registrador apontado por rt write_reg = get_register(bin2dec(rt, 5)); break; case 1: // escrever no registrador apontado por rd write_reg = get_register(bin2dec(rd, 5)); break; } break; case 1: // registrador 31 = 11111 = $ra write_reg = get_register(31); break; } } /** * FUNCAO QUE SIMULA O MUX RESPONSAVEL PELA SELECAO DO VALOR PARA SER ESCRITO EM UM REGISTRADOR * SINAL DE CONTROLE: MEMTOREG0 E MEMTOREG1 * 0 - PEGA O VALOR DE ALUOUT * 1 - PEGA O VALOR DE MEM_DATA_REGISTER * 2 - PEGA O VALOR DE PC * 3 - NÃO EXISTE * SAIDA: PARA WRITE DATA (REGISTERS) */ void MUX_WRITE_DATA() { int i; // MEMTOREG // 00 - ALUOut // 01 - MDR // 10 - PC // ANALISE SEPARA DOS DOIS BITS DE CONTROLE switch (MemtoReg1) { case 0: switch (MemtoReg0) { case 0: // escreve de ALUOut em Banco de Registradores reg_write_data = ALUOut; break; case 1: // escreve de MDR em banco de registradores[write_register] reg_write_data = MDR; break; } break; case 1: // escreve de PC em banco de registradores[write_register] switch (MemtoReg0) { case 0: reg_write_data = PC; break; } break; } } /** * FUNCAO QUE SIMULA O MUX QUE SELECIONA O QUE SERA ENVIADO PARA A PRIMEIRA ENTRADA DA ULA * SINAL DE CONTROLE: ALUSRCA * 0 - PEGA O VALOR DE PC * 1 - PEGA O VALOR DE A (READ DATA 1 - REGISTERS) * SAIDA: ENTRADA 1 DA ALU */ void MUX_ALU_1() { switch (ALUSrcA) { case 0: // PRIMEIRO OPERANDO DA ULA RECEBE PC operator_1 = PC; break; case 1: //PRIMEIRO OPERANDO DA ULA RECEBE A operator_1 = A; break; } } /** * FUNCAO QUE SIMULA O MUX QUE SELECIONA O QUE SERA ENVIADO PARA A SEGUNDA ENTRADA DA ULA * SINAL DE CONTROLE: ALUSRCB0 E ALUSRCB1 * 0 - PEGA O VALOR DE B (READ DATA 2 - REGISTERS) * 1 - PEGA O VALOR 4 (NÚMERO) * 2 - PEGA O VALOR DE INSTRUCTION[15 .. 0] (DEPOIS DE SIGNAL_EXTEND_16_TO_32) * 3 - PEGA O VALOR DE INSTRUCTION[15 .. 0] (DEPOIS DE SIGNAL_EXTEND_16_TO_32 E SHIFT_LEFT_2_MUX_ALU_2) * SAIDA: ENTRADA 2 DA ALU */ void MUX_ALU_2() { //ANALISE COM BASE NOS DOIS BITS DE CONTROLE ALUSRCB switch (ALUSrcB1) { case 0: switch (ALUSrcB0) { case 0: //SEGUNDO OPERANDO DA ULA RECEBE B operator_2 = B; break; case 1: //SEGUNDO OPERANDO DA ULA RECEBE 4 operator_2 = 4; break; } break; case 1: switch (ALUSrcB0) { case 0: //SEGUNDO OPERANDO DA ULA RECEBE IMEDIATO EXTENDIDO operator_2 = immediate_extended; break; case 1: //SEGUNDO OPERANDO DA ULA RECEBE IMEDIATO EXTENDIDO << 2 operator_2 = immediate_extended << 2; break; } break; } } /** * FUNCAO QUE SIMULA O FUNCIONAMENTO DO MUX QUE SELECIONA O QUE SERA ESCRITO EM PC * SINAL DE CONTROLE: PCSORCE0 E PCSOURCE1 * 0 - PEGA O VALOR DE RESULTADO DA ULA * 1 - PEGA O VALOR DE ALUOUT * 2 - PEGA O VALOR DE PC SHIFT 2 LEFT * 3 - PEGA O VALOR DE A (REGISTRADORES) * SAIDA: PARA PC */ void MUX_PC() { int i; // FAZENDO A ANALISE DOS DOIS BITS DE CONTROLE switch (PCSource1) { case 0: switch (PCSource0) { case 0: // PC RECEBE ALU RESULT (SAIDA DA ULA) pc_write_data = ALUResult; break; case 1: // PC RECEBE ALUOUT pc_write_data = ALUOut; break; } break; case 1: switch (PCSource0) { case 0: // PC RECEBE PC[31..28] + (jump_addr[26..0] << 2) pc_write_data = 0; for(i = 0; i < 4; i++) pc_write_data += GETBIT(PC, 31-i) * ((unsigned int)pow(2, 31-i)); pc_write_data += (bin2dec(jump_addr, 26) << 2); break; case 1: // PC RECEBE A pc_write_data = A; break; } break; } } /* * FUNCAO QUE SIMULA O FUNCIONAMENTO DO MUX ADICIONADO RESPONSAVEL PELO BNE * ---------------------------- * O que ela faz: * RECEBE: SAIDAS ZERO DA ULA * SAIDA: PERMITE ALTERAR PC PASSANDO POR UMA PORTA AND E OR * */ void MUX_BNE() { switch (BNE) { case 0: PCControl = ((ALU_zero & PCWriteCond) | PCWrite); break; case 1: PCControl = (((!ALU_zero) & PCWriteCond) | PCWrite); break; } } /* * FUNCAO AUXILIAR PARA SETAR VALORES DO IR * ---------------------------- * O que ela faz: * UTILIZANDO O VALOR DE IR BIT A BIT, SETA OS VALORES * QUE SAEM NOS BARRAMENTOS IR. */ void IR_SET() { int i; if (IRWrite) { //OPCODE RECEBE IR[26..32] //CAMPO DE FUNCAO RECEBE IR[0..6] for (i = 0; i < 6; i++) { op_code[i] = GETBIT(IR, 26+i); function[i] = GETBIT(IR, i); } //SETANDO RS RT E RD for (i = 0; i < 5; i++) { rs[i] = GETBIT(IR, 21+i); rt[i] = GETBIT(IR, 16+i); rd[i] = GETBIT(IR, 11+i); } //SETANDO IMEDIATO for (i = 0; i < 16; i++) { immediate[i] = GETBIT(IR, i); } //SETANDO JUMP OFFSET for (i = 0; i < 26; i++) { jump_addr[i] = GETBIT(IR, i); } } } /* * FUNCAO QUE REPRESENTA O FUNCIONAMENTO DO BANCO DE REGISTRADORES * ---------------------------- * O que ela faz: * ATUALIZA OS VALORES DE A E B PARA QUEPOSSAM SER UTILIZADOS PRINCIPALMENTE * NA ULA. * ANALISA O REGWRITE PARA SABER QUANTO SEVE SER ESCRITO UM VALOR NO BANCO DE * REGISTRADORES * */ void REGISTER_BANK() { A = *(get_register(bin2dec(rs, 5))); B = *(get_register(bin2dec(rt, 5))); if (RegWrite) { // registrador recebe conteúdo (*write_reg) = reg_write_data; } } /* * EXTENSAO DE SINAL DE 16 BITS PARA 32 BITS * ---------------------------- * O que ela faz: * RECEBE O VALOR DE INSTRUCTION [15 .. 0] COM 16 BITS E MANDA PARA O MUX * DA ENTRADA B DA ULA, O VALOR COM EXTENSAO DE SINAL PARA 32 BITS * */ void SIGNAL_EXTEND_16_TO_32() { immediate_extended = bin2dec(immediate, 16); } /* * FUNCAO QUE SIMULA O CONTROLE DA ULA FEITO PELA UNIDADE ALU CONTROL * ---------------------------- * O que ela faz: * RECEBE: SINAL ALUOP QUE POSSUI DOIS BITS DE CONTROLE * INSTRUCTION[5 ..0] PARA QUE SEJA ANALISADO QUAL OPERACAO DEVE SER FEITA * ENVIA: PARA A ULA A INTRUCAO DE QUAL OPERACAO DEVE SER REALIZADA * */ void ALU_CONTROL() { //ANALISE FEITA EM SWITCH POIS POSSUI DOIS BITS DE CONTROLE switch(ALUOp1) { // não precisa checar o campo de função (instruções LW, SW, Branch) case 0: switch(ALUOp0) { case 0: // add ALUInput[2] = 0; ALUInput[1] = 1; ALUInput[0] = 0; break; case 1: // subtract ALUInput[2] = 1; ALUInput[1] = 1; ALUInput[0] = 0; break; } break; // precisa checar o campo de função e ALUOp0 sempre será 0 case 1: // (ALUOp = 10 e Function = 100000) operação = add if ((function[5] == 1) && ((function[4] == 0) && ((function[3] == 0) && ((function[2] == 0) && ((function[1] == 0) && ((function[0] == 0))))))) { ALUInput[2] = 0; ALUInput[1] = 1; ALUInput[0] = 0; } // (ALUOp = 10 e Function = 100010) operação = subtract else if ((function[5] == 1) && ((function[4] == 0) && ((function[3] == 0) && ((function[2] == 0) && ((function[1] == 1) && ((function[0] == 0))))))) { ALUInput[2] = 1; ALUInput[1] = 1; ALUInput[0] = 0; } // (ALUOp = 10 e Function = 100100) operação = and else if ((function[5] == 1) && ((function[4] == 0) && ((function[3] == 0) && ((function[2] == 1) && ((function[1] == 0) && ((function[0] == 0))))))) { ALUInput[2] = 0; ALUInput[1] = 0; ALUInput[0] = 0; } // (ALUOp = 10 e Function = 100101) operação = or else if ((function[5] == 1) && ((function[4] == 0) && ((function[3] == 0) && ((function[2] == 1) && ((function[1] == 0) && ((function[0] == 1))))))) { ALUInput[2] = 0; ALUInput[1] = 0; ALUInput[0] = 1; } // (ALUOp = 10 e Function = 101010) operação = set on less than else if ((function[5] == 1) && ((function[4] == 0) && ((function[3] == 1) && ((function[2] == 0) && ((function[1] == 1) && ((function[0] == 0))))))) { ALUInput[2] = 1; ALUInput[1] = 1; ALUInput[0] = 1; } break; } } /* * FUNCAO QUE SIMULA UMA ULA COM OPERACOES ARITMETICAS PRE DETERMINADAS * ---------------------------- * O que ela faz: * RECEBE: VALORES DE MUX_ALU_1 E MUX_ALU_2 QUE POR SUA VEZ PODEM OBTER OS VALORES * DE DIFERENTES LOCAIS * SAIDA: RESULTADO DAS OPERACOES COM BASE NA OPERACAO DEFINIDA POR ALU CONTROL * BIT ADICIONAL PARA INDICAR CASO A OPERACAO TENHA DADO ZERO OU NAO * */ void ALU() { // (ALUInput = 010) operação = add if ((ALUInput[2] == 0) && (ALUInput[1] == 1) && (ALUInput[0] == 0)) { ALUResult = operator_1 + operator_2; } // (ALUInput = 110) operação = subtract else if ((ALUInput[2] == 1) && (ALUInput[1] == 1) && (ALUInput[0] == 0)) { ALUResult = operator_1 - operator_2; } // (ALUInput = 000) operação = and else if ((ALUInput[2] == 0) && (ALUInput[1] == 0) && (ALUInput[0] == 0)) { ALUResult = operator_1 & operator_2; } // (ALUInput = 001) operação = or else if ((ALUInput[2] == 0) && (ALUInput[1] == 1) && (ALUInput[0] == 1)) { ALUResult = operator_1 | operator_2; } // (ALUInput = 111) operação = set on less than else if ((ALUInput[2] == 1) && (ALUInput[1] == 1) && (ALUInput[0] == 1)) { (operator_1 < operator_2) ? (ALUResult = 1) : (ALUResult = 0); } } /* * FUNCAO QUE ARMAZENA A SAIDA DA ULA * ---------------------------- * O que ela faz: * ARMAZENA O VALOR DE SAIDA DA ULA, PARA QUE POSSA SER USADA EM * OUTROS CICLOS * */ void ALU_OUT() { ALUOut = ALUResult; } /* * FUNCAO RESPONSAVEL POR SETAR OS BITS DE * CONTROLE / CALCULAR O PROXIMO ESTADO * ---------------------------- * O que ela faz: * ANALISA COM BASE EM UMA PLA, QUANDO OS BITS SERAO SETADOS DEPENDENDO DE * CADA ESTADO. * * UTILIZA SOMENTE AS INFORMACOES DO ESTADOS * PARA CALCULAR PROXIMO ESTADO UTILIZA A INFORMACAO DO ESTADO ANTERIOR E * OS BITS DE OPERACAO (OPCODE) * */ void CONTROL() { // ANALISANDO OS SINAIS DE CONTROLE COM BASE NOS VALORES DOS ESTADOS // ****** SINAIS DE CONTROLE ****** //REGDST POSSUI DOIS BITS //RegDst0 = (S0 * S1 * S2 * !S3 * !S4) RegDst0 = (state[0] & state[1] & state[2] & !state[3] & !state[4]); //RegDst1 = (S0 * S1 * !S2 * S3 * !S4) + (S0 * !S1 * !S2 * !S3 * S4) RegDst1 = (state[0] & state[1] & !state[2] & state[3] & !state[4]) | (state[0] & !state[1] & !state[2] & !state[3] & state[4]); /*RegWrite = (!S0 * !S1 * S2 * !S3 * !S4) + (S0 * S1 * S2 * !S3 * !S4) + (S0 * S1 * !S2 * S3 * !S4) + (S0 * !S1 * S2 * S3 * !S4) + (!S0 * !S1 * !S2 * !S3 * S4) + (S0 * !S1 * !S2 * !S3 * S4) */ RegWrite = (!state[0] & !state[1] & state[2] & !state[3] & !state[4]) | (state[0] & state[1] & state[2] & !state[3] & !state[4]) | (state[0] & state[1] & !state[2] & state[3] & !state[4]) | (state[0] & !state[1] & state[2] & state[3] & !state[4]) | (!state[0] & !state[1] & !state[2] & !state[3] & state[4]) | (state[0] & !state[1] & !state[2] & !state[3] & state[4]); /*ALUSrcA = (!S0 * S1 * !S2 * !S3 * !S4) + (!S0 * S1 * S2 * !S3 * !S4) + (!S0 * !S1 * !S2 * S3 * !S4) + (!S0 * !S1 * S2 * S3 * !S4) + (!S0 * S1 * S2 * S3 * !S4) + (S0 * S1 * S2 * S3 * !S4) */ ALUSrcA = (!state[0] & state[1] & !state[2] & !state[3] & !state[4]) | (!state[0] & state[1] & state[2] & !state[3] & !state[4]) | (!state[0] & !state[1] & !state[2] & state[3] & !state[4]) | (!state[0] & !state[1] & state[2] & state[3] & !state[4]) | (!state[0] & state[1] & state[2] & state[3] & !state[4]) | (state[0] & state[1] & state[2] & state[3] & !state[4]); //ALUSRCB POSSUI DOIS BITS //ALUSrcB0 = (!S0 * !S1 * !S2 * !S3 * !S4) + (S0 * !S1 * !S2 * !S3 * !S4) ALUSrcB0 = (!state[0] & !state[1] & !state[2] & !state[3] & !state[4]) | (state[0] & !state[1] & !state[2] & !state[3] & !state[4]); /*ALUSrcB1 = (S0 * !S1 * !S2 * !S3 * !S4) + (!S0 * S1 * !S2 * !S3 * !S4) + (!S0 * !S1 * S2 * S3 * !S4) + (S0 * S1 * S2 * S3 * !S4) */ ALUSrcB1 = (state[0] & !state[1] & !state[2] & !state[3] & !state[4]) | (!state[0] & state[1] & !state[2] & !state[3] & !state[4]) | (!state[0] & !state[1] & state[2] & state[3] & !state[4]) | (state[0] & state[1] & state[2] & state[3] & !state[4]); // ALUOP POSSUI DOIS BITS /*ALUOp0 = (!S0 * !S1 * !S2 * S3 * !S4) + (!S0 * S1 * S2 * S3 * !S4) + (S0 * S1 * S2 * S3 * !S4) */ ALUOp0 = (!state[0] & !state[1] & !state[2] & state[3] & !state[4]) | (!state[0] & state[1] & state[2] & state[3] & !state[4]) | (state[0] & state[1] & state[2] & state[3] & !state[4]); //ALUOp1 = (!S0 * S1 * S2 * !S3 * !S4) + (S0 * S1 * S2 * S3 * !S4) ALUOp1 = (!state[0] & state[1] & state[2] & !state[3] & !state[4]) | (state[0] & state[1] & state[2] & state[3] & !state[4]); //PCSOURCE POSSUI 2 BITS /*PCSource0 = (!S0 * !S1 * !S2 * S3 * !S4) + (!S0 * S1 * !S2 * S3 * !S4) + (S0 * S1 * !S2 * S3 * !S4) + (!S0 * S1 * S2 * S3 * !S4) */ PCSource0 = (!state[0] & !state[1] & !state[2] & state[3] & !state[4]) | (!state[0] & state[1] & !state[2] & state[3] & !state[4]) | (state[0] & state[1] & !state[2] & state[3] & !state[4]) | (!state[0] & state[1] & state[2] & state[3] & !state[4]); /*PCSource1 = (S0 * !S1 * !S2 * S3 * !S4) + (!S0 * S1 * !S2 * S3 * !S4) + (S0 * S1 * !S2 * S3 * !S4) + (S0 * !S1 * !S2 * !S3 * !S4) */ PCSource1 = (state[0] & !state[1] & !state[2] & state[3] & !state[4]) | (!state[0] & state[1] & !state[2] & state[3] & !state[4]) | (state[0] & state[1] & !state[2] & state[3] & !state[4]) | (state[0] & !state[1] & !state[2] & !state[3] & state[4]); //PCWriteCond = (!S0 * !S1 * !S2 * S3 * !S4) + (!S0 * S1 * S2 * S3 * !S4) PCWriteCond = (!state[0] & !state[1] & !state[2] & state[3] & !state[4]) | (!state[0] & state[1] & state[2] & state[3] & !state[4]); /*PCWrite = (!S0 * S1 * !S2 * !S3 * !S4) + (!S0 * S1 * S2 * !S3 * !S4) + (!S0 * !S1 * !S2 * S3 * !S4) + (!S0 * !S1 * S2 * S3 * !S4) + (!S0 * S1 * S2 * S3 * !S4) + (S0 * S1 * S2 * S3 * !S4) */ PCWrite = (!state[0] & !state[1] & !state[2] & !state[3] & !state[4]) | (state[0] & !state[1] & !state[2] & state[3] & !state[4]) | (!state[0] & state[1] & !state[2] & state[3] & !state[4]) | (state[0] & state[1] & !state[2] & state[3] & !state[4]) | (state[0] & !state[1] & !state[2] & !state[3] & state[4]); //IorD = (S0 * S1 * !S2 * !S3 * !S4) + (S0 * !S1 * S2 * !S3 * !S4) IorD = (state[0] & state[1] & !state[2] & !state[3] & !state[4]) | (state[0] & !state[1] & state[2] & !state[3] & !state[4]); //MemRead = (!S0 * !S1 * !S2 * !S3 * !S4) + (S0 * S1 * !S2 * !S3 * !S4) MemRead = (!state[0] & !state[1] & !state[2] & !state[3] & !state[4]) | (state[0] & state[1] & !state[2] & !state[3] & !state[4]); //MemWrite = (S0 * !S1 * S2 * !S3 * !S4) MemWrite = (state[0] & !state[1] & state[2] & !state[3] & !state[4]); //BNE = (!S0 * S1 * S2 * S3 * !S4) BNE = (!state[0] & state[1] & state[2] & state[3] & !state[4]); //IRWrite = (!S0 * !S1 * !S2 * !S3 * !S4) IRWrite = (!state[0] & !state[1] & !state[2] & !state[3] & !state[4]); // MEMTOREG POSSUI 2 BITS //MemtoReg0 = (!S0 * S1 * !S2 * S3 * !S4) MemtoReg0 = (!state[0] & !state[1] & state[2] & !state[3] & !state[4]); //MemtoReg1 = (S0 * S1 * !S2 * S3 * !S4) + (S0 * !S1 * S2 * !S3 * S4) MemtoReg1 = (state[0] & state[1] & !state[2] & state[3] & !state[4]) | (state[0] & !state[1] & state[2] & !state[3] & state[4]); // ***** Equacoes de proximo estado: ****** // ESTADO ANTERIOR + OP_CODE (Caso tenha mais de um caminho) // ATIVADO QUANDO: Numero do estado em binario possuir o bit em analise como 1 // ANALISE A PARTIR DO BIT MENOS SIGNIFICATIVO (NS0) // ESTADO 1 = (!S0 * !S1 * !S2 * !S3 * !S4) next_state[0] = (!state[0] & !state[1] & !state[2] & !state[3] & !state[4] ) | // ESTADO 3 = (!S0 * S1 * !S2 * !S3 * !S4 * OP0 * OP1 * !OP2 * !OP3 * !OP4 * OP5) (!state[0] & state[1] & !state[2] & !state[3] & !state[4] & op_code[0] & op_code[1] & !op_code[2] & !op_code[3] & !op_code[4] & op_code[5]) | // ESTADO 5 = (!S0 * S1 * !S2 * !S3 * !S4 * OP0 * OP1 * !OP2 * OP3 * !OP4 * OP5) (!state[0] & state[1] & !state[2] & !state[3] & !state[4] & op_code[0] & op_code[1] & !op_code[2] & op_code[3] & !op_code[4] & op_code[5]) | // ESTADO 7 = (!S0 * S1 * S2 * !S3 * !S4) (!state[0] & state[1] & state[2] & !state[3] & !state[4] ) | // ESTADO 9 = (S0 * !S1 * !S2 * !S3 * !S4 * !OP0 * OP1 * !OP2 * !OP3 * !OP4 * !OP5) (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & !op_code[0] & op_code[1] & !op_code[2] & !op_code[3] & !op_code[4] & !op_code[5]) | // ESTADO 11 = (S0 * !S1 * !S2 * !S3 * !S4 * OP0 * !OP1 * OP2 * !OP3 * OP4 * !OP5) (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & op_code[0] & !op_code[1] & op_code[2] & !op_code[3] & op_code[4] & !op_code[5]) | // ESTADO 13 = (!S0 * !S1 * S2 * S3 * !S4) (!state[0] & !state[1] & state[2] & state[3] & !state[4] ) | // ESTADO 15 = (S0 * !S1 * !S2 * !S3 * !S4 * !OP0 * !OP1 * OP2 * OP3 * !OP4 * !OP5) (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & !op_code[0] & !op_code[1] & op_code[2] & op_code[3] & !op_code[4] & !op_code[5]) | // ESTADO 17 = (S0 * !S1 * !S2 * !S3 * !S4 * OP0 * OP1 * !OP2 * !OP3 * !OP4 * !OP5) (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & op_code[0] & op_code[1] & !op_code[2] & !op_code[3] & !op_code[4] & !op_code[5]); //ESTADO X = (S0 * !S1 * !S2 * !S3 * !S4 * OP0 * OP1 * !OP2 * !OP4 * OP5) next_state[1] = (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & op_code[0] & op_code[1] & !op_code[2] & !op_code[4] & op_code[5]) | //ESTADO X = (!S0 * S1 * !S2 * !S3 * !S4 * OP0 * OP1 * !OP2 * !OP3 * !OP4 * OP5) (!state[0] & state[1] & !state[2] & !state[3] & !state[4] & op_code[0] & op_code[1] & !op_code[2] & !op_code[3] & !op_code[4] & op_code[5]) | //ESTADO X = (S0 * !S1 * !S2 * !S3 * !S4 * !OP0 * !OP1 * !OP2 * !OP3 * !OP4 * !OP5) (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & !op_code[0] & !op_code[1] & !op_code[2] & !op_code[3] & !op_code[4] & !op_code[5]) | //ESTADO X = (!S0 * S1 * S2 * !S3 * !S4) (!state[0] & state[1] & state[2] & !state[3] & !state[4]) | //ESTADO X = (S0 * !S1 * !S2 * !S3 * !S4 * !OP0 * !OP1 * OP2 * !OP3 * OP4 * !OP5) (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & !op_code[0] & !op_code[1] & op_code[2] & !op_code[3] & op_code[4] & !op_code[5]) | //ESTADO X = (S0 * !S1 * !S2 * !S3 * !S4 * OP0 * !OP1 * OP2 * !OP3 * OP4 * !OP5) (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & op_code[0] & !op_code[1] & op_code[2] & !op_code[3] & op_code[4] & !op_code[5]) | //ESTADO X = (S0 * !S1 * !S2 * !S3 * !S4 * OP0 * !OP1 * OP2 * !OP3 * !OP4 * !OP5) (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & op_code[0] & !op_code[1] & op_code[2] & !op_code[3] & !op_code[4] & !op_code[5]) | //ESTADO X = (S0 * !S1 * !S2 * !S3 * !S4 * !OP0 * !OP1 * OP2 * OP3 * !OP4 * !OP5) (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & !op_code[0] & !op_code[1] & op_code[2] & op_code[3] & !op_code[4] & !op_code[5]); //ESTADO X = (S0 * S1 * !S2 * !S3 * !S4) next_state[2] = (state[0] & state[1] & !state[2] & !state[3] & !state[4]) | //ESTADO X = (!S0 * S1 * !S2 * !S3 * !S4 * OP0 * OP1 * !OP2 * OP3 * !OP4 * OP5) (!state[0] & state[1] & !state[2] & !state[3] & !state[4] & op_code[0] & op_code[1] & !op_code[2] & op_code[3] & !op_code[4] & op_code[5]) | //ESTADO X = (S0 * !S1 * !S2 * !S3 * !S4 * !OP0 * !OP1 * !OP2 * !OP3 * !OP4 * !OP5) (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & !op_code[0] & !op_code[1] & !op_code[2] & !op_code[3] & !op_code[4] & !op_code[5]) | //ESTADO X = (!S0 * S1 * S2 * !S3 * !S4) (!state[0] & state[1] & state[2] & !state[3] & !state[4]) | //ESTADO X = (S0 * !S1 * !S2 * !S3 * !S4 * OP0 * !OP1 * !OP2 * OP3 * !OP4 * !OP5) (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & !op_code[0] & !op_code[1] & !op_code[2] & op_code[3] & !op_code[4] & !op_code[5]) | //ESTADO X = (!S0 * !S1 * S2 * S3 * !S4) (!state[0] & !state[1] & state[2] & state[3] & !state[4]) | //ESTADO X = (S0 * !S1 * !S2 * !S3 * !S4 * OP0 * !OP1 * OP2 * !OP3 * !OP4 * !OP5) (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & op_code[0] & !op_code[1] & op_code[2] & !op_code[3] & !op_code[4] & !op_code[5]) | //ESTADO X = (S0 * !S1 * !S2 * !S3 * !S4 * !OP0 * !OP1 * OP2 * OP3 * !OP4 * !OP5) (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & !op_code[0] & !op_code[1] & op_code[2] & op_code[3] & !op_code[4] & !op_code[5]); //ESTADO X = (S0 * !S1 * !S2 * !S3 * !S4 * !OP0 * !OP1 * OP2 * !OP3 * !OP4 * !OP5) next_state[3] = (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & !op_code[0] & !op_code[1] & op_code[2] & !op_code[3] & !op_code[4] & !op_code[5]) | //ESTADO X = (S0 * !S1 * !S2 * !S3 * !S4 * !OP0 * OP1 * !OP2 * !OP3 * !OP4 * !OP5) (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & !op_code[0] & op_code[1] & !op_code[2] & !op_code[3] & !op_code[4] & !op_code[5]) | //ESTADO X = (S0 * !S1 * !S2 * !S3 * !S4 * !OP0 * !OP1 * OP2 * !OP3 * OP4 * !OP5) (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & !op_code[0] & !op_code[1] & op_code[2] & !op_code[3] & op_code[4] & !op_code[5]) | //ESTADO X = (S0 * !S1 * !S2 * !S3 * !S4 * OP0 * !OP1 * OP2 * !OP3 * OP4 * !OP5) (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & op_code[0] & !op_code[1] & op_code[2] & !op_code[3] & op_code[4] & !op_code[5]) | //ESTADO X = (S0 * !S1 * !S2 * !S3 * !S4 * !OP0 * !OP1 * !OP2 * OP3 * !OP4 * !OP5) (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & !op_code[0] & !op_code[1] & !op_code[2] & op_code[3] & !op_code[4] & !op_code[5]) | //ESTADO X = (!S0 * !S1 * S2 * S3 * !S4) (!state[0] & !state[1] & state[2] & state[3] & !state[4]) | //ESTADO X = (!S0 * !S1 * S2 * S3 * !S4) (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & op_code[0] & !op_code[1] & op_code[2] & !op_code[3] & !op_code[4] & !op_code[5]) | //ESTADO X = (S0 * !S1 * !S2 * !S3 * !S4 * !OP0 * !OP1 * OP2 * OP3 * !OP4 * !OP5) (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & !op_code[0] & !op_code[1] & op_code[2] & op_code[3] & !op_code[4] & !op_code[5]); //ESTADO X = (S0 * !S1 * !S2 * !S3 * !S4 * OP0 * OP1 * !OP2 * !OP3 * !OP4 * !OP5) next_state[4] = (state[0] & !state[1] & !state[2] & !state[3] & !state[4] & op_code[0] & op_code[1] & !op_code[2] & !op_code[3] & !op_code[4] & !op_code[5]) | //ESTADO X = (S0 * S1 * S2 * S3 * !S4) (state[0] & state[1] & state[2] & state[3] & !state[4]); // atualizando estado para o próximo ciclo state[0] = next_state[0]; state[1] = next_state[1]; state[2] = next_state[2]; state[3] = next_state[3]; state[4] = next_state[4]; } /*******************************************************/ // +-----------+ // | SIMULAÇÃO | // +-----------+ /* * INICIALIZAR TODOS OS COMPONENTES DO PROJETO * ---------------------------- * O que ela faz: * INICIALIZA OS COMPONENTES PARA O VALORES CORRETOS * */ void initialize(const char* source) { int i; // instrução a ser lida do arquivo unsigned int instruction; // conta quantas instruções foram lidas para indexar memória int instr_counter; reg* current_reg = NULL; // abrir arquivo do código fonte FILE* bin = NULL; bin = fopen(source, "r"); // checar integridade do código fonte if (bin == NULL) { printf("ERRO: Código fonte não carregado.\n"); exit(0); } // inicializar memória // acessar posição inicial (byte) memory_pointer = (byte*)(&(MEMORY)); // escrever 0 em todos os bytes for (i = 0; i < MAX_SIZE; i++) { memory_pointer = (byte*)(&(MEMORY[i])); (*memory_pointer) = 0; } // ler instruções do código fonte // acessar endereço inicial da memória memory_word_pointer = (word*)(MEMORY); while (fscanf(bin, "%d ", &instruction) != EOF) { // copiar instrução para dentro da memória (tamanho = 1 word) (*memory_word_pointer) = instruction; // ir para próxima posição (+ 4 bytes) memory_word_pointer += 1; } // fechar arquivo do código fonte fclose(bin); bin = NULL; // inicializar banco de registradores for (i = 0; i < 32; i++) { current_reg = get_register(i); (*current_reg) = 0; } // inicializar PC p/ primeira posição válida PC = 0; } /* * start * ---------------------------- * Inicializa todos os sinais de controle, * memória e registradores * Estado 0 * */ void start() { int i; // inicializar sinais de controle // inicializa para o ciclo de busca RegDst0 = 0; RegDst1 = 0; RegWrite = 0; ALUSrcA = 0; // ALUSrcB = 01 ALUSrcB0 = 1; ALUSrcB1 = 0; ALUOp0 = 0; ALUOp1 = 0; PCSource0 = 0; PCSource1 = 0; PCWriteCond = 0; PCWrite = 0; IorD = 0; MemRead = 1; MemWrite = 0; BNE = 0; IRWrite = 0; MemtoReg0 = 0; MemtoReg1 = 0; // inicializa o vetor de estado for(i = 0; i < 5; i++) { state[i] = 0; } } /* * funcao * ---------------------------- * O que ela faz: * * X recebe Y * * argumento1: * argumento2: * */ void finalize() { int i, j; char* regid = NULL; // identificador do registrador (nome) reg* current_reg = NULL; // ponteiro para registrador char* exit_message = NULL; // mensagem de status da saída // exibir status da saída exit_message = status_message(); printf("Status da saída: %s", exit_message); printf("\n"); // exibir registradores printf("PC = %d\t", PC); printf("IR = %d\t", IR); printf("MDR = %d\t", MDR); printf("\n"); printf("A = %d\t", A); printf("B = %d\t", B); printf("AluOut = %d\n", ALUOut); printf("Controle = []\n"); printf("\n"); // exibir banco de registradores printf("Banco de Registradores\n"); for (i = 0; i < 8; i++) { for (j = i; j < (i + (8 * 4)); j+=8) { regid = register_name(j); current_reg = get_register(j); printf("R%02d (%s) = %d\t", j, regid, (*current_reg)); } printf("\n"); } printf("\n"); // exibir memória (a byte) printf("Memória (endereços a byte)\n"); // imprimir as 32 primeiras posições de memória (em inteiros sem sinal) memory_word_pointer = (word*)(MEMORY); // para manter formatação em colunas na sáida, acessamos utilizando índices i e j // ponteiro de palavra vai acessar endereço de MEMORY[indice] for (i = 0; i < 28; i += 4) { memory_word_pointer = (word*)(&(MEMORY[i])); for (j = i; j < (i + (32 * 4)); j += 32) { memory_word_pointer = (word*)(&MEMORY[j]); printf("[%02d] = %u\t", j, (*memory_word_pointer)); } printf("\n"); } } /*******************************************************/ // +----------------------+ // | FUNCIONAMENTO DA CPU | // +----------------------+ /* * FUNCAO QUE SIMULA O FUNCIONAMENTO DE TODOS OS COMPONENTES DE ACORDO COM O CLOCK * ---------------------------- */ void set() { MUX_MEMORY(); SIGNAL_EXTEND_16_TO_32(); MUX_ALU_1(); MUX_ALU_2(); ALU_CONTROL(); ALU(); MUX_BNE(); MUX_WRITE_REG(); MUX_WRITE_DATA(); MUX_PC(); } /* * FUNCAO QUE SIMULA O FUNCIONAMENTO DE TODOS OS COMPONENTES DE ACORDO COM O CLOCK * ---------------------------- */ void go() { MEMORY_BANK(); IR_SET(); PROGRAM_COUNTER(); ALU_OUT(); REGISTER_BANK(); CONTROL(); clocks++; } /*******************************************************/ /* * check_status * ---------------------------- * Verifica o estado da saída do programa, * procurando por instruções ou acessos inválidos. * Os estados estão definidos no cabeçalho, sendo * STATUS_VALID 0, ou seja, enquanto a função não * alterar esse valor para outro estado inválido * (enquanto retorno for falso), * a simulação continua rodando. */ int check_status() { // checar acesso a memória if (MAR > MAX_SIZE || MAR < 0) { status = STATUS_INVALID_ACCESS; } // checar se instrução é válida // checar código de operação? // TODO // if () { // status = STATUS_INVALID_INSTR; // } // operação inválida da ULA // TODO ?? // // if () { // status = STATUS_INVALID_ALU; // } // checar acesso ao banco de registradores // if (write_reg == NULL) { // status = STATUS_INVALID_REG; // } return status; } /* * debugger * ---------------------------- * Escreve no arquivo 'log.txt' o conteúdo * de todas os sinais e registradores da simulação. * É chamado após cada ciclo. * */ void debugger() { reg* current_reg = NULL; char* regid = NULL; int i, j; fprintf(f_debug, "CLOCKS: %d\n\n", clocks); fprintf(f_debug, "*** IR ***\n"); fprintf(f_debug, "op_code: "); for (i = 0; i < 6; i++) { fprintf(f_debug, "%d", op_code[i]); } fprintf(f_debug, "\n"); fprintf(f_debug, "function: "); for (i = 0; i < 6; i++) { fprintf(f_debug, "%d", function[i]); } fprintf(f_debug, "\n"); fprintf(f_debug, "rs: "); for (i = 0; i < 5; i++) { fprintf(f_debug, "%d", rs[i]); } fprintf(f_debug, "\n"); fprintf(f_debug, "rt: "); for (i = 0; i < 5; i++) { fprintf(f_debug, "%d", rt[i]); } fprintf(f_debug, "\n"); fprintf(f_debug, "rd: "); for (i = 0; i < 5; i++) { fprintf(f_debug, "%d", rd[i]); } fprintf(f_debug, "\n"); fprintf(f_debug, "immediate: "); for (i = 0; i < 16; i++) { fprintf(f_debug, "%d", immediate[i]); } fprintf(f_debug, "\n"); fprintf(f_debug, "jump_addr: "); for (i = 0; i < 32; i++) { fprintf(f_debug, "%d", jump_addr[i]); } fprintf(f_debug, "\n"); fprintf(f_debug, "\n"); fprintf(f_debug, "*** REGISTRADORES ***\n"); for (i = 0; i < 8; i++) { for (j = i; j < (i + (8 * 4)); j+=8) { regid = register_name(j); current_reg = get_register(j); fprintf(f_debug, "R%02d (%s) = %d\t", j, regid, (*current_reg)); } fprintf(f_debug, "\n"); } fprintf(f_debug, "\n"); fprintf(f_debug, "MAR: %d\n", MAR); fprintf(f_debug, "IR: %d\n", IR); fprintf(f_debug, "MDR: %d\n", MDR); fprintf(f_debug, "reg_write_data: %d\n", reg_write_data); fprintf(f_debug, "PC: %d\n", PC); fprintf(f_debug, "pc_write_data: %d\n", pc_write_data); fprintf(f_debug, "\n"); fprintf(f_debug, "*** ULA ***\n"); fprintf(f_debug, "A: %d\n", A); fprintf(f_debug, "B: %d\n", B); fprintf(f_debug, "ALUInput: "); for (i = 0; i < 3; i++) { fprintf(f_debug, "%d", ALUInput[i]); } fprintf(f_debug, "\n"); fprintf(f_debug, "ALUResult: %d\n", ALUResult); fprintf(f_debug, "ALUOut: %d\n", ALUOut); fprintf(f_debug, "immediate_extended: %d\n", immediate_extended); fprintf(f_debug, "operator_1: %d\n", operator_1); fprintf(f_debug, "operator_2: %d\n", operator_2); fprintf(f_debug, "ALU_zero: %d\n", ALU_zero); fprintf(f_debug, "\n"); fprintf(f_debug, "*** SINAIS DE CONTROLE ***\n"); fprintf(f_debug, "RegDst0: %d\n", RegDst0); fprintf(f_debug, "RegDst1: %d\n", RegDst1); fprintf(f_debug, "RegWrite: %d\n", RegWrite); fprintf(f_debug, "ALUSrcA: %d\n", ALUSrcA); fprintf(f_debug, "ALUSrcB0: %d\n", ALUSrcB0); fprintf(f_debug, "ALUSrcB1: %d\n", ALUSrcB1); fprintf(f_debug, "ALUOp0: %d\n", ALUOp0); fprintf(f_debug, "ALUOp1: %d\n", ALUOp1); fprintf(f_debug, "PCSource0: %d\n", PCSource0); fprintf(f_debug, "PCSource1: %d\n", PCSource1); fprintf(f_debug, "PCWriteCond: %d\n", PCWriteCond); fprintf(f_debug, "PCWrite: %d\n", PCWrite); fprintf(f_debug, "IorD: %d\n", IorD); fprintf(f_debug, "MemRead: %d\n", MemRead); fprintf(f_debug, "MemWrite: %d\n", MemWrite); fprintf(f_debug, "BNE: %d\n", BNE); fprintf(f_debug, "IRWrite: %d\n", IRWrite); fprintf(f_debug, "MemtoReg0: %d\n", MemtoReg0); fprintf(f_debug, "MemtoReg1: %d\n", MemtoReg1); fprintf(f_debug, "\n"); fprintf(f_debug, "PCControl: %d\n", PCControl); fprintf(f_debug, "\n"); fprintf(f_debug, "*** SINAIS DE ESTADO ***\n"); fprintf(f_debug, "next state: "); for (i = 0; i < 5; i++) { fprintf(f_debug, "%d", state[i]); } fprintf(f_debug, "\n"); fprintf(f_debug, "\n"); fprintf(f_debug, "*** MEMÓRIA ***\n"); memory_word_pointer = (word*)(MEMORY); for (i = 0; i < 28; i += 4) { memory_word_pointer = (word*)(&(MEMORY[i])); for (j = i; j < (i + (32 * 4)); j += 32) { memory_word_pointer = (word*)(&MEMORY[j]); fprintf(f_debug, "[%02d] = %u\t", j, (*memory_word_pointer)); } fprintf(f_debug, "\n"); } fprintf(f_debug, "\n"); fprintf(f_debug, "************************************************************\n"); fprintf(f_debug, "************************************************************\n"); fprintf(f_debug, "\n"); } /*******************************************************/ // +------+ // | MAIN | // +------+ int main(int argc, char const *argv[]) { int i; const char* source = NULL; // verificar se código fonte foi passado como argumento if (argc < 2) { printf("ERRO: Código fonte não foi passado como argumento.\n"); exit(1); } // abrir arquivo de log f_debug = fopen("log.txt", "w"); // checar integridade do arquivo de log if (f_debug == NULL) { printf("ERRO: Arquivo de log não abriu.\n"); exit(0); } // código fonte source = argv[1]; // inicializar memória e registradores initialize(source); // inicializar sinais de controle start(); // teste com 3 clocks (comparar com saída do PDF) debugger(); // while (!(check_status())) { while (i < 100) { set(); go(); debugger(); i++; } // finalizar execução e exibir informações na tela finalize(); // fechar arquivo de log fclose(f_debug); return 0; }
the_stack_data/123007.c
#include <stdio.h> int main() { unsigned char mese, primoGiorno, numgiorni = 31, pos; printf("Numero del mese: "); scanf("%hhu", &mese); printf("Numero del giorno della settimana con cui comincia: "); scanf("%hhu", &primoGiorno); switch (mese) { case 2: numgiorni = 28; break; case 4: case 6: case 9: case 11: numgiorni = 30; break; } printf("\nCalendario (assumo non bisestile):\n"); printf("Lu Ma Me Gi Ve Sa Do\n"); for (char i = 1; i < primoGiorno; i++) printf(" "); pos = primoGiorno - 1; for (unsigned char giorno = 1; giorno <= numgiorni; giorno++) { if (pos++ % 7 == 0) printf("\n"); printf("%2hhu ", giorno); } printf("\n"); return 0; } // 30: 4, 6, 9, 11 // 31: 1, 3, 5, 7, 8, 10, 12 // 28: 2
the_stack_data/104741.c
#include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/wait.h> int main() { int pid = fork(); if( pid == 0 ) { int fd = open("quotes.txt", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR ); dup2(fd, 1); close(fd); execl("boba", "boba", NULL); printf(" this only happens on failure\n" ); } else { wait(NULL); } return 0; }
the_stack_data/90764519.c
/*Displays a Magic Square (R) for a given order. Developer : ABDUL MOHSIN SIDDIQI */ #include<stdio.h> int a[100][100],b[100][100]; void prn(int n,int ar[100][100]) //Prints the Magic Square { int i,j; for(i=0;i<n;i++) { printf("\n"); for(j=0;j<n;j++) { if((ar[i][j])/10==0) printf(" "); printf("%d ",ar[i][j]); } } printf("\n\nSum of any particular row or column or diagonal elements = %d\n",n*(n*n+1)/2); } void odd(int m,int n) //Computes For n=1,3,5,7,...... { int i=1,j=n/2-1,k; for(k=m;k<m+n*n;k++) { i=(i+n-1)%n; j=(j+1)%n; if(a[i][j]==0) a[i][j]=k; else {i=(i+2)%n; j=(j+n-1)%n; a[i][j]=k;} } } void eve2(int n) //Computes For n=4,8,12,...... { int k,i,j; for(k=0;k<n*n;k++) a[k/n][k%n]=k+1; for(i=0;i<n/4;i++) for(j=n/4;j<3*n/4;j++) swp(&a[i][j],&a[n-i-1][j]); for(i=n/4;i<n/2;i++) for(j=0;j<n;j++) if(j<n/4 || j>=3*n/4) swp(&a[i][j],&a[n-i-1][j]); prn(n,a); } void eveins(int i1,int j1,int mf,int n) //Extension for function eve1 { int i,j; odd(mf+1,n/2); for(i=0;i<n/2;i++) for(j=0;j<n/2;j++) {b[i+i1][j+j1]=a[i][j]; a[i][j]=0;} } void eve1(int n) //Computes For n=6,10,14,...... { int i=0,j=0; eveins(0,0,0,n); eveins(n/2,n/2,(n*n/4),n); eveins(0,n/2,(n*n/2),n); eveins(n/2,0,(3*n*n/4),n); for(i=0;i<n/2;i++) for(j=0;j<n;j++) if(j<n/4 || j>=(3*n/4)+2) swp(&b[i][j],&b[i+n/2][j]); swp(&b[n/4][n/4],&b[n-n/4-1][n/4]); swp(&b[n/4][n/4-1],&b[n-n/4-1][n/4-1]); prn(n,b); } int swp(int *x,int *y) //Swap the values of specified locations { int t=*x; *x=*y; *y=t; } int main(void) { int n; memset(a,0,sizeof(a)); printf("Enter the order of the magic square: "); scanf("%d",&n); if(n<1 || n==2) //Not Possible for order 2 printf("\nMagic Square of order %d does not exist!\n",n); else if(n%2==1) //Odd Order {odd(1,n); prn(n,a);} else if(n%4==0) //Order Thats Multiple of 4 eve2(n); else //n=6,10,14....... eve1(n); return 0; }
the_stack_data/231393551.c
#include <stdio.h> int main(void) { int c; while ((c = getchar()) != EOF) { if (c == '\t') { printf("\\t"); } else if (c == '\b') { /* backspaces won't work because they never actually * reach the program, bash doesn't allow that. */ printf("\\b"); } else if (c == '\\') { printf("\\\\"); } else { putchar(c); } } return 0; }
the_stack_data/35772.c
// because the standard dirname(3) is from a simpler time... // we need to use the full path, in case the relative path is "." or something // a bigger problem is if we start supporting chroot, wont the path be "/"? // one idea is to immediately chdir to the repo dir // then basically everything can use simple relative paths // and it works with chroot just fine // also in that case we dont have to worry about manaully concatenating strings // just chdir and then getcwd // and then we can use standard dirname? // oh, the problem with this approach // is that 1. it sucks for a host application when we're running as a library // and 2. doesnt really work for opening multiple repos at once // which ought to be supported, even if we currently have no use for it // thus we should support "." or "/" as the repo dir, but not require it // which means either way the repo itself cant use dirname // we also want to support configurable repo names that arent the same as the directory name // but i think it's reasonable to have EFSRepoCreate(dir, name) // and then override name later if need be // we could do some crazy function // accept an array of relative/absolute paths // then scan backwards from the last one until we get a real name // separation of concerns, better to have two functions // then even better, portability and windows support... // okay, practical solution // use chdir to handle resolution // but change back afterward...? // still need a portable dirname... // lets just look for a library yo
the_stack_data/493154.c
/* * Author: Brandon Hosley, bhosl2, [email protected] * Compile using the GCC program. * Description: This program emulates a Shell OS * * The two main functions it serves is as a wrapper to evoke * a number of functions borrowed from the Linux operating system. * it does so in a manner that will allow additional functionaility * to be added trivially. * Second, the program demonstrates usage of the fork() functionality * of a unix system to create new processes, the new processes will * execute the desired function before closing itself. */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <sys/wait.h> #define MAX_CMD_LENGTH 80 // the max length of characters for each command const char ACCEPTABLE_CALLS[6][6] = {"cal","date","ls","ps","pwd","who"}; int isAcceptableCommand(char s[]) { for(int i=0; i<(sizeof(ACCEPTABLE_CALLS)); i++) { if(strcmp(ACCEPTABLE_CALLS[i], s) == 0) { return 1; } } return 0; }; void help() { printf("Available Commands. Type:\n"); printf("cal : to display a calendar for this month.\n"); printf("date : to display the date.\n"); printf("ls : to display the contents of the current directory.\n"); printf("ps : to display current processes.\n"); printf("pwd : prints the address of current directory.\n"); printf("who : prints the username of the current user.\n"); }; int main(int argc, char* argv[]) { int i, MAX_CMD_NUMBER; char command[MAX_CMD_LENGTH]; /* * Determine number of Commands */ if (atoi(argv[1]) > 0 && atoi(argv[1]) < 10) { MAX_CMD_NUMBER = atoi(argv[1]); } else { MAX_CMD_NUMBER = 10; } /* * Accept input */ for (i = 0; i < MAX_CMD_NUMBER; i++) { printf("COMMAND-> "); fflush(stdout); scanf("%s", command); // takes in the user's single-string command if (strcmp(command, "quit") == 0) { i = MAX_CMD_NUMBER; // terminate the loop } else if (strcmp(command, "help") == 0) { help(); } else if (isAcceptableCommand(command) == 1) { int rc = fork(); if (rc < 0) { // fork failed; exit exit(1); } else if (rc == 0) { // Child Does the Command char *args[]={command,NULL}; execvp(args[0],args); exit(0); } else { int wc = wait(NULL); // Parent Waits } } else { printf("Command %s is unrecognized.\n", command); printf("Type \"help\" for list of commands.\n"); } } }
the_stack_data/12034.c
#include <stdio.h> // Read input and replace any sequence of whitespace with // one single blank character. int isWhitespace(int character) { return character == ' ' || character == '\t' || character == '\n'; } int main(void) { // 1 if last character was non whitespace, 0 if it was whitespace. int lastCharacterWasWhitespace = 1; int readChar; while ((readChar = getchar()) != EOF) { if (!isWhitespace(readChar)) { lastCharacterWasWhitespace = 0; putchar(readChar); } else if (!lastCharacterWasWhitespace) { lastCharacterWasWhitespace = 1; putchar(' '); } else { ; } } return 0; }
the_stack_data/51699906.c
extern int print_iters; double integral(double (*f)(double), double a, double b, double eps2) { int n = 1; double x, dx; double sum = 0, oldsum = 0; do { oldsum = sum; sum = 0; n *= 2; x = a; dx = (b - a) / n; while (x < b) { sum += f(x) * dx; x += dx; } } while (fabs(sum - oldsum) > eps2); return sum; } double root(double (*f)(double), double (*g)(double), double a, double b, double eps1) { if (f(a) - g(a) > 0) { double t = a; a = b; b = t; } double x = (a + b) / 2; int iter = 0; double dy = f(x) - g(x); while (fabs(dy) > eps1) { if (dy < 0) { a = x; } else { b = x; } x = (a + b) / 2; dy = f(x) - g(x); iter += 1; if (iter > 100) break; } if (print_iters) { x = iter; } return x; } double f4(double x) { return log(x) + 2.0; } double f5(double x) { return -x + 5.0; } double f6(double x) { return sqrt(x); }
the_stack_data/140766570.c
// Find the transpose and Inverse of a matrix. #include <stdio.h> void transpose() { int a[10][10], transpose[10][10], r, c; printf("Enter rows and columns: "); scanf("%d %d", &r, &c); // asssigning elements to the matrix printf("\nEnter matrix elements:\n"); for (int i = 0; i < r; ++i) for (int j = 0; j < c; ++j) { printf("Enter element a%d%d: ", i + 1, j + 1); scanf("%d", &a[i][j]); } // printing the matrix a[][] printf("\nEntered matrix: \n"); for (int i = 0; i < r; ++i) for (int j = 0; j < c; ++j) { printf("%d ", a[i][j]); if (j == c - 1) printf("\n"); } // computing the transpose for (int i = 0; i < r; ++i) for (int j = 0; j < c; ++j) { transpose[j][i] = a[i][j]; } // printing the transpose printf("\nTranspose of the matrix:\n"); for (int i = 0; i < c; ++i) for (int j = 0; j < r; ++j) { printf("%d ", transpose[i][j]); if (j == r - 1) printf("\n"); } } void inverse() { int a[10][10], inverse[10][10], r, c; float det; printf("Enter rows and columns: "); scanf("%d %d", &r, &c); // asssigning elements to the matrix printf("\nEnter matrix elements:\n"); for (int i = 0; i < r; ++i) for (int j = 0; j < c; ++j) { printf("Enter element a%d%d: ", i + 1, j + 1); scanf("%d", &a[i][j]); } // printing the matrix a[][] printf("\nEntered matrix: \n"); for (int i = 0; i < r; ++i) for (int j = 0; j < c; ++j) { printf("%d ", a[i][j]); if (j == c - 1) printf("\n"); } for (int i = 0; i < 3; i++) det = det + (a[0][i] * (a[1][(i + 1) % 3] * a[2][(i + 2) % 3] - a[1][(i + 2) % 3] * a[2][(i + 1) % 3])); printf("\nInverse of matrix is: \n\n"); for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) printf("%.2f\t", ((a[(i + 1) % 3][(j + 1) % 3] * a[(i + 2) % 3][(j + 2) % 3]) - (a[(i + 1) % 3][(j + 2) % 3] * a[(i + 2) % 3][(j + 1) % 3])) / det); printf("\n"); } } int main() { int ch; printf("\n1. Transpose of a matrix\n2. Inverse of a matrix\n"); printf("Enter your choice: "); scanf("%d", &ch); switch (ch) { case 1: transpose(); break; case 2: inverse(); break; default: printf("\nInvalid choice\n"); } return 0; }
the_stack_data/6387167.c
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // ____ ___ __ _ // / __// o |,'_/ .' \ // / _/ / _,'/ /_n / o / _ __ _ ___ _ _ __ // /_/ /_/ |__,'/_n_/ / \,' /.' \ ,' _/,' \ / |/ / // / \,' // o /_\ `./ o // || / // /_/ /_//_n_//___,'|_,'/_/|_/ // //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Author : Wesley Taylor-Rendal (WTR) // Design history : Review git logs. // Description : Finding the Least Common Multiple (LCM) // Concepts : Implementing algorithm >>> lcm = uv/gcd(u,v) //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #include <stdio.h> int gcd(int u, int v) { int temp; printf("The gcd of %i and %i is ", u, v); while (v != 0) { temp = u % v; u = v; v = temp; } return u; } int product(int u, int v) { return u*v; } int lcm ( int u, int v) { if ((u == 0) || ( v == 0)) { printf("One of the inputs is zero\n"); return 0; } else { if (u < 0) u = -u; if (v < 0) v = -v; return product(u, v)/gcd(u, v); } } int main(void) { printf("lcm(15, 10) = %i\n", lcm(15, 10)); printf("lcm(25, 100) = %i\n", lcm(25, 100)); printf("lcm(15, 10) = %i\n", lcm(15, 10)); return 0; }
the_stack_data/193909.c
#include <stdio.h> int main() { float ideal, min, max; scanf("%f %f %f", &ideal, &min, &max); float read; int count = 0; float average = 0; int above = 0, below = 0; while(scanf("%f", &read) != EOF) { if(read < min) { ++below; continue; } if(read > max) { ++above; continue; } average += read; ++count; } average /= count; float deviation = (average-ideal)/ideal; printf("Volume medio (desvio): %.2f (desvio de %.2f%%)\n\ Garrafas eliminadas (volume por excesso): %d\n\ Garrafas eliminadas (volume por defeito): %d\n", average, deviation*100.0f, above, below); return 0; }
the_stack_data/87638317.c
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/socket.h> #include <sys/select.h> #include <inttypes.h> #include <netinet/in.h> #include <arpa/inet.h> #include <errno.h> #include <string.h> #include <fcntl.h> #define MAX_LINE_LEN 100 int main(int argc, char *argv[]) { struct sockaddr_in saddr; int port; int s; char line[MAX_LINE_LEN]; int a, b; FILE *fsock_in, *fsock_out; // check arguments if(argc != 3) { fprintf(stderr, "Usage: %s <address> <port>\n", argv[0]); return 1; } // parse the address if(!inet_aton(argv[1], &saddr.sin_addr)) { fprintf(stderr, "Invalid address\n"); return 1; } // parse the port port = atoi(argv[2]); if(port == 0) { fprintf(stderr, "Invalid port\n"); return 1; } saddr.sin_port = htons(port); saddr.sin_family = AF_INET; // create the socket TCP s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if(s < 0) { perror("Impossible to create socket"); return 1; } // connect the socket if(connect(s, (struct sockaddr *)&saddr, sizeof(saddr)) < 0) { perror("Impossible to connect"); return 1; } printf("Connection estabilished. Write 'end' to quit\n"); // create FILE* variables to work on socket by using stdio fsock_in = fdopen(s, "r"); fsock_out = fdopen(s, "w"); if(fsock_in == NULL || fsock_out == NULL) { fprintf(stderr, "Impossible to fdopen\n"); return 1; } // unbuffered write, because stdio must work directly without buffering setbuf(fsock_out, 0); // main loop while(1) { // get a line from keyboard fgets(line, MAX_LINE_LEN, stdin); // termination test: "end" makes the program terminate if(strncmp(line, "end\n", MAX_LINE_LEN) == 0) { break; } // check the format if(sscanf(line, "%d %d", &a, &b) != 2) { printf("Wrong input\n"); // then loop repeats asking again for a line } else { // printf on the socket fprintf(fsock_out, "%d %d\r\n", a, b); printf("Sent\n"); // read from the socket a line fgets(line, MAX_LINE_LEN, fsock_in); printf("Received answer: %s\n", line); } } // close all fclose(fsock_in); fclose(fsock_out); close(s); return 0; }
the_stack_data/3261927.c
int stack[128]; int top = 0;
the_stack_data/159515451.c
#include <stdio.h> int foo(int i) { return i; } int main(int argc, char **argv) { int y = foo(argc); int a = 42; while (argc-- > 0) { a += 42; } int z = foo(a); printf("%d\n", y); printf("%d\n", z); }
the_stack_data/87637301.c
/* OpenCL built-in library: printf_constant() Copyright (c) 2013 Pekka Jääskeläinen 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. */ /** * Implementation of printf where the format string * (note, later also %s) reside in the constant address space. * * Implemented as a wrapper that copies the format string to * the private space (0) and calls a system vprintf. */ #include <stddef.h> #include <stdarg.h> #ifdef __TCE_V1__ /* TCE includes need tceops.h to be generated just for _TCE_STDOUT in the stdio.h header. Work around this by hiding the __TCE_V1__ macro. */ #undef __TCE_V1__ /* The newlib headers of TCE expect to see valid long and double (which in 32bit TCE are defined to be 32bit). */ #undef long #define long long #undef double #define double double #endif /* AS 0 is required for the prototypes, otherwise they get assigned * the generic AS (#4) */ #define OCL_C_AS __attribute__((address_space(0))) int vprintf(OCL_C_AS const char *, __builtin_va_list); int fflush(OCL_C_AS void *stream); #undef printf #define MAX_FORMAT_STR_SIZE 2048 int _cl_printf(__attribute__((address_space(POCL_ADDRESS_SPACE_CONSTANT))) char* restrict fmt, ...) { /* http://www.pagetable.com/?p=298 */ int retval = 0; va_list ap; va_start(ap, fmt); char format_private[MAX_FORMAT_STR_SIZE]; for (int i = 0; i < MAX_FORMAT_STR_SIZE; ++i) { format_private[i] = fmt[i]; if (fmt[i] == '\0') { break; } } retval = vprintf(format_private, ap); fflush(NULL); va_end(ap); return retval; }
the_stack_data/6388171.c
#include <stdio.h> #include <stdlib.h> struct consumidor{ int numero; float gasto; char codigo[2]; float total; }; main(){ int i,n, numMaior, contC=0, contR=0, aux,index; float maior=0, consumoC=0, consumoR=0; printf("Informe o numero de consumidores: "); scanf("%d",&n); struct consumidor vetor[n]; for(i=0 ; i<n ; i++){ printf("[Consumidor %d] Numero: ",i+1); scanf("%d",&vetor[i].numero); printf("[Consumidor %d] Gasto: ",i+1); scanf("%f",&vetor[i].gasto); setbuf(stdin,NULL); printf("[Consumidor %d] Codigo: ",i+1); scanf("%s",&vetor[i].codigo); vetor[i].total = vetor[i].gasto*0.72; if(vetor[i].total>maior){ maior = vetor[i].total; numMaior = vetor[i].numero; index = i; } aux = strcmp(vetor[i].codigo, "C"); if(aux == 0){ consumoC = consumoC + vetor[i].total; contC++; } else { consumoR = consumoR + vetor[i].total; contR++; } printf("\n[Consumidor %d] Total = %.2f reais\n\n",i+1 ,vetor[i].total); } consumoC = consumoC/contC; consumoR = consumoR/contR; if(contR==0){ consumoR =0 ; } if(contC==0){ consumoC =0 ; } printf("[Consumidor de numero %d] Maior gasto = %.2f reais! Tipo %s\n",numMaior, maior,vetor[index].codigo); printf("Percentual de consumo(R$) R: %.2f \n",consumoR); printf("Percentual de consumo(R$) C: %.2f \n",consumoC); }
the_stack_data/132953664.c
/** ****************************************************************************** * @file stm32l0xx_ll_lpuart.c * @author MCD Application Team * @brief LPUART LL module driver. ****************************************************************************** * @attention * * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2> * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. Neither the name of STMicroelectronics nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ****************************************************************************** */ #if defined(USE_FULL_LL_DRIVER) /* Includes ------------------------------------------------------------------*/ #include "stm32l0xx_ll_lpuart.h" #include "stm32l0xx_ll_rcc.h" #include "stm32l0xx_ll_bus.h" #ifdef USE_FULL_ASSERT #include "stm32_assert.h" #else #define assert_param(expr) ((void)0U) #endif /** @addtogroup STM32L0xx_LL_Driver * @{ */ #if defined (LPUART1) /** @addtogroup LPUART_LL * @{ */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /** @addtogroup LPUART_LL_Private_Constants * @{ */ /** * @} */ /* Private macros ------------------------------------------------------------*/ /** @addtogroup LPUART_LL_Private_Macros * @{ */ /* Check of parameters for configuration of LPUART registers */ /* __BAUDRATE__ Depending on constraints applicable for LPUART BRR register */ /* value : */ /* - fck must be in the range [3 x baudrate, 4096 x baudrate] */ /* - LPUART_BRR register value should be >= 0x300 */ /* - LPUART_BRR register value should be <= 0xFFFFF (20 bits) */ /* Baudrate specified by the user should belong to [8, 10600000].*/ #define IS_LL_LPUART_BAUDRATE(__BAUDRATE__) (((__BAUDRATE__) <= 10600000U) && ((__BAUDRATE__) >= 8U)) #define IS_LL_LPUART_DIRECTION(__VALUE__) (((__VALUE__) == LL_LPUART_DIRECTION_NONE) \ || ((__VALUE__) == LL_LPUART_DIRECTION_RX) \ || ((__VALUE__) == LL_LPUART_DIRECTION_TX) \ || ((__VALUE__) == LL_LPUART_DIRECTION_TX_RX)) #define IS_LL_LPUART_PARITY(__VALUE__) (((__VALUE__) == LL_LPUART_PARITY_NONE) \ || ((__VALUE__) == LL_LPUART_PARITY_EVEN) \ || ((__VALUE__) == LL_LPUART_PARITY_ODD)) #define IS_LL_LPUART_DATAWIDTH(__VALUE__) (((__VALUE__) == LL_LPUART_DATAWIDTH_7B) \ || ((__VALUE__) == LL_LPUART_DATAWIDTH_8B) \ || ((__VALUE__) == LL_LPUART_DATAWIDTH_9B)) #define IS_LL_LPUART_STOPBITS(__VALUE__) (((__VALUE__) == LL_LPUART_STOPBITS_1) \ || ((__VALUE__) == LL_LPUART_STOPBITS_2)) #define IS_LL_LPUART_HWCONTROL(__VALUE__) (((__VALUE__) == LL_LPUART_HWCONTROL_NONE) \ || ((__VALUE__) == LL_LPUART_HWCONTROL_RTS) \ || ((__VALUE__) == LL_LPUART_HWCONTROL_CTS) \ || ((__VALUE__) == LL_LPUART_HWCONTROL_RTS_CTS)) /** * @} */ /* Private function prototypes -----------------------------------------------*/ /* Exported functions --------------------------------------------------------*/ /** @addtogroup LPUART_LL_Exported_Functions * @{ */ /** @addtogroup LPUART_LL_EF_Init * @{ */ /** * @brief De-initialize LPUART registers (Registers restored to their default values). * @param LPUARTx LPUART Instance * @retval An ErrorStatus enumeration value: * - SUCCESS: LPUART registers are de-initialized * - ERROR: not applicable */ ErrorStatus LL_LPUART_DeInit(USART_TypeDef *LPUARTx) { ErrorStatus status = SUCCESS; /* Check the parameters */ assert_param(IS_LPUART_INSTANCE(LPUARTx)); /* Force reset of LPUART peripheral */ LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_LPUART1); /* Release reset of LPUART peripheral */ LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_LPUART1); return (status); } /** * @brief Initialize LPUART registers according to the specified * parameters in LPUART_InitStruct. * @note As some bits in LPUART configuration registers can only be written when the LPUART is disabled (USART_CR1_UE bit =0), * LPUART IP should be in disabled state prior calling this function. Otherwise, ERROR result will be returned. * @note Baud rate value stored in LPUART_InitStruct BaudRate field, should be valid (different from 0). * @param LPUARTx LPUART Instance * @param LPUART_InitStruct pointer to a @ref LL_LPUART_InitTypeDef structure * that contains the configuration information for the specified LPUART peripheral. * @retval An ErrorStatus enumeration value: * - SUCCESS: LPUART registers are initialized according to LPUART_InitStruct content * - ERROR: Problem occurred during LPUART Registers initialization */ ErrorStatus LL_LPUART_Init(USART_TypeDef *LPUARTx, LL_LPUART_InitTypeDef *LPUART_InitStruct) { ErrorStatus status = ERROR; uint32_t periphclk = LL_RCC_PERIPH_FREQUENCY_NO; /* Check the parameters */ assert_param(IS_LPUART_INSTANCE(LPUARTx)); assert_param(IS_LL_LPUART_BAUDRATE(LPUART_InitStruct->BaudRate)); assert_param(IS_LL_LPUART_DATAWIDTH(LPUART_InitStruct->DataWidth)); assert_param(IS_LL_LPUART_STOPBITS(LPUART_InitStruct->StopBits)); assert_param(IS_LL_LPUART_PARITY(LPUART_InitStruct->Parity)); assert_param(IS_LL_LPUART_DIRECTION(LPUART_InitStruct->TransferDirection)); assert_param(IS_LL_LPUART_HWCONTROL(LPUART_InitStruct->HardwareFlowControl)); /* LPUART needs to be in disabled state, in order to be able to configure some bits in CRx registers. Otherwise (LPUART not in Disabled state) => return ERROR */ if (LL_LPUART_IsEnabled(LPUARTx) == 0U) { /*---------------------------- LPUART CR1 Configuration ----------------------- * Configure LPUARTx CR1 (LPUART Word Length, Parity and Transfer Direction bits) with parameters: * - DataWidth: USART_CR1_M bits according to LPUART_InitStruct->DataWidth value * - Parity: USART_CR1_PCE, USART_CR1_PS bits according to LPUART_InitStruct->Parity value * - TransferDirection: USART_CR1_TE, USART_CR1_RE bits according to LPUART_InitStruct->TransferDirection value */ MODIFY_REG(LPUARTx->CR1, (USART_CR1_M | USART_CR1_PCE | USART_CR1_PS | USART_CR1_TE | USART_CR1_RE), (LPUART_InitStruct->DataWidth | LPUART_InitStruct->Parity | LPUART_InitStruct->TransferDirection)); /*---------------------------- LPUART CR2 Configuration ----------------------- * Configure LPUARTx CR2 (Stop bits) with parameters: * - Stop Bits: USART_CR2_STOP bits according to LPUART_InitStruct->StopBits value. */ LL_LPUART_SetStopBitsLength(LPUARTx, LPUART_InitStruct->StopBits); /*---------------------------- LPUART CR3 Configuration ----------------------- * Configure LPUARTx CR3 (Hardware Flow Control) with parameters: * - HardwareFlowControl: USART_CR3_RTSE, USART_CR3_CTSE bits according to LPUART_InitStruct->HardwareFlowControl value. */ LL_LPUART_SetHWFlowCtrl(LPUARTx, LPUART_InitStruct->HardwareFlowControl); /*---------------------------- LPUART BRR Configuration ----------------------- * Retrieve Clock frequency used for LPUART Peripheral */ periphclk = LL_RCC_GetLPUARTClockFreq(LL_RCC_LPUART1_CLKSOURCE); /* Configure the LPUART Baud Rate : - valid baud rate value (different from 0) is required - Peripheral clock as returned by RCC service, should be valid (different from 0). */ if ((periphclk != LL_RCC_PERIPH_FREQUENCY_NO) && (LPUART_InitStruct->BaudRate != 0U)) { status = SUCCESS; LL_LPUART_SetBaudRate(LPUARTx, periphclk, LPUART_InitStruct->BaudRate); } } return (status); } /** * @brief Set each @ref LL_LPUART_InitTypeDef field to default value. * @param LPUART_InitStruct pointer to a @ref LL_LPUART_InitTypeDef structure * whose fields will be set to default values. * @retval None */ void LL_LPUART_StructInit(LL_LPUART_InitTypeDef *LPUART_InitStruct) { /* Set LPUART_InitStruct fields to default values */ LPUART_InitStruct->BaudRate = 9600U; LPUART_InitStruct->DataWidth = LL_LPUART_DATAWIDTH_8B; LPUART_InitStruct->StopBits = LL_LPUART_STOPBITS_1; LPUART_InitStruct->Parity = LL_LPUART_PARITY_NONE ; LPUART_InitStruct->TransferDirection = LL_LPUART_DIRECTION_TX_RX; LPUART_InitStruct->HardwareFlowControl = LL_LPUART_HWCONTROL_NONE; } /** * @} */ /** * @} */ /** * @} */ #endif /* defined (LPUART1) */ /** * @} */ #endif /* USE_FULL_LL_DRIVER */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
the_stack_data/552337.c
/*- * Copyright (c) 1990 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. */ #ifndef lint //static char sccsid[] = "@(#)getsubopt.c 5.2 (Berkeley) 2/24/91"; #endif /* not lint */ #include <unistd.h> #include <stdlib.h> #include <string.h> /* * The SVID interface to getsubopt provides no way of figuring out which * part of the suboptions list wasn't matched. This makes error messages * tricky... The extern variable suboptarg is a pointer to the token * which didn't match. */ char *suboptarg; int getsubopt(optionp, tokens, valuep) register char **optionp, **valuep; register char * const *tokens; { register int cnt; register char *p; suboptarg = *valuep = NULL; if (!optionp || !*optionp) return(-1); /* skip leading white-space, commas */ for (p = *optionp; *p && (*p == ',' || *p == ' ' || *p == '\t'); ++p); if (!*p) { *optionp = p; return(-1); } /* save the start of the token, and skip the rest of the token. */ for (suboptarg = p; *++p && *p != ',' && *p != '=' && *p != ' ' && *p != '\t';); if (*p) { /* * If there's an equals sign, set the value pointer, and * skip over the value part of the token. Terminate the * token. */ if (*p == '=') { *p = '\0'; for (*valuep = ++p; *p && *p != ',' && *p != ' ' && *p != '\t'; ++p); if (*p) *p++ = '\0'; } else *p++ = '\0'; /* Skip any whitespace or commas after this token. */ for (; *p && (*p == ',' || *p == ' ' || *p == '\t'); ++p); } /* set optionp for next round. */ *optionp = p; for (cnt = 0; *tokens; ++tokens, ++cnt) if (!strcmp(suboptarg, *tokens)) return(cnt); return(-1); }
the_stack_data/64200707.c
#include <string.h> int main(void) { const char *foo = "bar"; char *baz; baz = strndup(foo, 1); return(0 != strcmp(baz, "b")); }
the_stack_data/200144202.c
#include <stdio.h> #include <stdlib.h> int reverse(int n) { int revn, c, d, u; c = n / 100; d = (n - c * 100) / 10; u = n % 10; revn = (u * 100) + (d * 10) + c; return revn; } int main() { int num, revnum; scanf("%d", &num); revnum = reverse(num); printf("Revertendo: %d\n", revnum); system("PAUSE"); return 0; }
the_stack_data/712165.c
/* Gustavo T. Mastrobuono, NUSP 10734411; Henrique de S. Q. dos Santos, NUSP 10819029; Jhordan P. V. Pesantes, NUSP 11733353; Witor M. A. de Oliveira, NUSP 10692190; Yorvin A. R. Carrion, NUSP 11733332; */ #include <stdio.h> #include <omp.h> #include <stdlib.h> // valor maximo na matriz. Se a matriz tiver valores que // ultrapassam as 6 casas, aumentar esse valor também #define MAX_VALUE 999999 int main(){ omp_set_nested(1); // permitindo o uso de paralelismos aninhados int **mat, i = 0, j = 0, n = 0, pos = 0; int menorLocal = MAX_VALUE, menorGlobal = MAX_VALUE; // tamanho da matriz e posição nela scanf("%d\n%d\n", &n, &pos); // Alocação de memória para a matriz mat = (int**) malloc(n * sizeof(int*)); for(int j = 0; j < n; j++) mat[j] = (int*) malloc(n * sizeof(int)); // Lendo valores e armazenando na matriz for(int i = 0; i < n; i++) for(int j = 0; j < n; j++) scanf("%d", &mat[i][j]); // Esse vetor armazenará o maior valor encontrado // para cada linha da matriz. Aqui alocamos memória // para ele e o inicializamos int *vet = (int *) malloc(n * sizeof(int)); for(i = 0; i < n; i++) vet[i] = MAX_VALUE; // Criando uma região paralela que irá criar N threads // uma thread para cada linha. Para cada uma dessas threads // serão geradas mais N/T threads que ficarão responsáveis // por verificar a existência de um menor maior valor // nas N/T partes da linha que ficou responsável. // O OMP define automaticamente o numero T de threads. #pragma omp parallel for shared(vet) schedule(static, n) for(i = 0; i < n; i++){ #pragma omp parallel for firstprivate(menorLocal, pos) shared(vet) for(j = 0; j < n; j++){ if((mat[i][j] > mat[i][pos]) && (mat[i][j] < menorLocal)) menorLocal = mat[i][j]; #pragma omp critical if(menorLocal < vet[i]) vet[i] = menorLocal; } } for (i = 0; i < n; i++){ if(vet[i] == MAX_VALUE) printf("-1 "); else printf("%d ", vet[i]); } printf("\n"); // Liberando memória alocada para matriz for(i = 0; i< n; i++) free(mat[i]); free(mat); // Liberando memória alocada para vetor // com os menores maiores valores de cada linha free(vet); return 0; }
the_stack_data/372087.c
*a; b; j() { int e, f, c, g; char *h; long i; char d; while (k()) { if (b && !g) if (b && e != !g) f--; if (g == 0) c = 1; if (c == 0) g = -g; if (b && c) { c = e = b; continue; } if (c) { h++; continue; } d; if (f) i++; } if (i) return 1; if (*a) l(j, a + 1); else l(j, a); *h = '\0'; }
the_stack_data/220455907.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 short input[1] , unsigned short 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 megaInit(void) { { } } int main(int argc , char *argv[] ) { unsigned short input[1] ; unsigned short output[1] ; int randomFuns_i5 ; unsigned short 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 = (unsigned short )strtoul(argv[randomFuns_i5 + 1], 0, 10); input[randomFuns_i5] = randomFuns_value6; randomFuns_i5 ++; } RandomFunc(input, output); if (output[0] == 52758) { printf("You win!\n"); } else { } randomFuns_main_i7 = 0; while (randomFuns_main_i7 < 1) { printf("%u\n", output[randomFuns_main_i7]); randomFuns_main_i7 ++; } } } void RandomFunc(unsigned short input[1] , unsigned short output[1] ) { unsigned short state[1] ; unsigned short local1 ; char copy11 ; char copy12 ; { state[0UL] = input[0UL] + (unsigned short)2885; local1 = 0UL; while (local1 < input[1UL]) { if (state[0UL] > local1) { if (state[0UL] > local1) { copy11 = *((char *)(& state[local1]) + 1); *((char *)(& state[local1]) + 1) = *((char *)(& state[local1]) + 0); *((char *)(& state[local1]) + 0) = copy11; copy11 = *((char *)(& state[local1]) + 0); *((char *)(& state[local1]) + 0) = *((char *)(& state[local1]) + 1); *((char *)(& state[local1]) + 1) = copy11; } else { state[local1] += state[local1]; } } else if (state[0UL] < local1) { copy12 = *((char *)(& state[0UL]) + 0); *((char *)(& state[0UL]) + 0) = *((char *)(& state[0UL]) + 1); *((char *)(& state[0UL]) + 1) = copy12; } else { state[0UL] -= state[local1]; } local1 += 2UL; } output[0UL] = state[0UL] + 844337816UL; } }
the_stack_data/43886987.c
#ifdef NLANG_DEFINE_FUNCTIONS n$builtins$Uint openssl$EVP_MAX_MD_SIZE = EVP_MAX_MD_SIZE; struct openssl$EVP_MD *openssl$EVP_md_null(void) { return (EVP_MD *) EVP_md_null(); } #ifndef OPENSSL_NO_MD2 struct openssl$EVP_MD *openssl$EVP_md2(void) { return (EVP_MD *) EVP_md2(); } #else struct openssl$EVP_MD *openssl$EVP_md2(void) { return NULL; } #endif #ifndef OPENSSL_NO_MD4 struct openssl$EVP_MD *openssl$EVP_md4(void) { return (EVP_MD *) EVP_md4(); } #else struct openssl$EVP_MD *openssl$EVP_md4(void) { return NULL; } #endif #ifndef OPENSSL_NO_MD5 struct openssl$EVP_MD *openssl$EVP_md5(void) { return (EVP_MD *) EVP_md5(); } #else struct openssl$EVP_MD *openssl$EVP_md5(void) { return NULL; } #endif #ifndef OPENSSL_NO_SHA struct openssl$EVP_MD *openssl$EVP_sha(void) { return (EVP_MD *) EVP_sha(); } struct openssl$EVP_MD *openssl$EVP_sha1(void) { return (EVP_MD *) EVP_sha1(); } struct openssl$EVP_MD *openssl$EVP_dss(void) { return (EVP_MD *) EVP_dss(); } struct openssl$EVP_MD *openssl$EVP_dss1(void) { return (EVP_MD *) EVP_dss1(); } struct openssl$EVP_MD *openssl$EVP_ecdsa(void) { return (EVP_MD *) EVP_ecdsa(); } #else struct openssl$EVP_MD *openssl$EVP_sha(void) { return NULL; } struct openssl$EVP_MD *openssl$EVP_sha1(void) { return NULL; } struct openssl$EVP_MD *openssl$EVP_dss(void) { return NULL; } struct openssl$EVP_MD *openssl$EVP_dss1(void) { return NULL; } struct openssl$EVP_MD *openssl$EVP_ecdsa(void) { return NULL; } #endif #ifndef OPENSSL_NO_SHA256 struct openssl$EVP_MD *openssl$EVP_sha224(void) { return (EVP_MD *) EVP_sha224(); } struct openssl$EVP_MD *openssl$EVP_sha256(void) { return (EVP_MD *) EVP_sha256(); } #else struct openssl$EVP_MD *openssl$EVP_sha224(void) { return NULL; } struct openssl$EVP_MD *openssl$EVP_sha256(void) { return NULL; } #endif #ifndef OPENSSL_NO_SHA512 struct openssl$EVP_MD *openssl$EVP_sha384(void) { return (EVP_MD *) EVP_sha384(); } struct openssl$EVP_MD *openssl$EVP_sha512(void) { return (EVP_MD *) EVP_sha512(); } #else struct openssl$EVP_MD *openssl$EVP_sha384(void) { return NULL; } struct openssl$EVP_MD *openssl$EVP_sha512(void) { return NULL; } #endif #ifndef OPENSSL_NO_MDC2 struct openssl$EVP_MD *openssl$EVP_mdc2(void) { return (EVP_MD *) EVP_mdc2(); } #else struct openssl$EVP_MD *openssl$EVP_mdc2(void) { return NULL; } #endif #ifndef OPENSSL_NO_RIPEMD struct openssl$EVP_MD *openssl$EVP_ripemd160(void) { return (EVP_MD *) EVP_ripemd160(); } #else struct openssl$EVP_MD *openssl$EVP_ripemd160(void) { return NULL; } #endif #ifndef OPENSSL_NO_WHIRLPOOL struct openssl$EVP_MD *openssl$EVP_whirlpool(void) { return (EVP_MD *) EVP_whirlpool(); } #else struct openssl$EVP_MD *openssl$EVP_ripemd160(void) { return NULL; } #endif static struct openssl$EVP_MD *openssl$_EVP_get_digestbyname(n$builtins$U8 *name) { return (EVP_MD *) EVP_get_digestbyname((char *) name); } // defines can only be used for non-exported N declarations (directly mapped // to openssl definitions), which in practice is when we need to write a N // wrapper. For exported symbols that need no wrapper, we still need a // openssl$xxx symbol to be emitted (for outside modules that wish to link // with this module), so we define it here. void openssl$EVP_MD_CTX_init(EVP_MD_CTX *ctx) { EVP_MD_CTX_init(ctx); } EVP_MD_CTX *openssl$EVP_MD_CTX_create(void) { return EVP_MD_CTX_create(); } #define openssl$_EVP_DigestInit_ex EVP_DigestInit_ex #define openssl$_EVP_DigestUpdate EVP_DigestUpdate #define openssl$_EVP_DigestFinal_ex EVP_DigestFinal_ex #define openssl$_EVP_MD_CTX_cleanup EVP_MD_CTX_cleanup void openssl$EVP_MD_CTX_destroy(EVP_MD_CTX *ctx) { EVP_MD_CTX_destroy(ctx); } #define openssl$_EVP_MD_CTX_copy_ex EVP_MD_CTX_copy_ex #define openssl$_EVP_DigestInit EVP_DigestInit #define openssl$_EVP_DigestFinal EVP_DigestFinal #define openssl$_EVP_MD_CTX_copy EVP_MD_CTX_copy int openssl$EVP_MD_type(EVP_MD *md) { return EVP_MD_type(md); } int openssl$EVP_MD_pkey_type(EVP_MD *md) { return EVP_MD_pkey_type(md); } #define openssl$_EVP_MD_size EVP_MD_size #define openssl$_EVP_MD_block_size EVP_MD_block_size struct openssl$EVP_MD *openssl$EVP_MD_CTX_md(EVP_MD_CTX *md) { return (EVP_MD *) EVP_MD_CTX_md(md); } static int openssl$_EVP_MD_CTX_size(EVP_MD_CTX *ctx) { return EVP_MD_CTX_size(ctx); } static int openssl$_EVP_MD_CTX_block_size(EVP_MD_CTX *ctx) { return EVP_MD_CTX_block_size(ctx); } int openssl$EVP_MD_CTX_type(EVP_MD_CTX *ctx) { return EVP_MD_CTX_type(ctx); } #define openssl$_HMAC HMAC #define openssl$_HMAC_CTX_init HMAC_CTX_init #define openssl$_HMAC_Init_ex HMAC_Init_ex #define openssl$_HMAC_Update HMAC_Update #define openssl$_HMAC_Final HMAC_Final #define openssl$_HMAC_CTX_cleanup HMAC_CTX_cleanup #endif
the_stack_data/393649.c
#include <stdio.h> #define STR 3 #define COL 5 int main(void) { int storage[STR][COL]; int string, column; void show_array(int (*ar)[COL], int n); void double_array(int ar[][COL], int n); for(string=0;string<STR;string++) { for(column=0;column<COL;column++) { printf("unit [%d][%d] = ", string, column); scanf("%d", &storage[string][column]); } } show_array(storage, STR); double_array(storage, STR); show_array(storage, STR); return 0; } void show_array(int (*ar)[COL], int n) { putchar('\n'); int i,j; for(i=0;i<n;i++) { for(j=0;j<COL;j++) printf("%5d", *(*(ar+i)+j)); putchar('\n'); } } void double_array(int ar[][COL], int n) { int i,j; for(i=0;i<n;i++) { for(j=0;j<COL;j++) ar[i][j]*=2; } }
the_stack_data/115593.c
#include <string.h> #include <stdlib.h> #include <stdio.h> void remove_dup_slashes(char *str) { char *start_of_slashes; char *end_of_slashes; char *end_of_str = str + strlen(str); // while there are slashes remaining, find start of slashes while ((start_of_slashes = strchr(str, '/'))) { // find end of current slashes end_of_slashes = start_of_slashes+1; while(end_of_slashes[0] == '/') { end_of_slashes++; } // given n slashes, move the tail of the string to cover up the last n-1 slashes. memmove(start_of_slashes + 1, end_of_slashes, (end_of_str-end_of_slashes)+1); str = start_of_slashes+1; end_of_str -= (end_of_slashes - (start_of_slashes+1)); } } int main(int argc, char **argv) { printf("argc: %d\n", argc); printf("input : %s\n", argv[1]); remove_dup_slashes(argv[1]); printf("output: %s\n", argv[1]); }
the_stack_data/59512505.c
/* * memset.c */ #include <string.h> #include <stdint.h> void *memset(void *dst, int c, size_t n) { char *q = (char *)dst; while (n--) { *q++ = c; __asm volatile ("":::"memory"); } return dst; }
the_stack_data/198579665.c
#include<stdio.h> struct date{ int date; int month; int year; }; struct date val[] = {{20, 1, 2014}, {25, 3, 2010}, { 3, 12, 2001}, {18, 11, 2001}, {1, 1, 1953}, {20, 4, 4045}, {21, 5, 2015}, {19, 4, 2016}, {19, 4, 2020}, { 9, 7, 3030}}; void sortday(){ int i=0; struct date temp[10]; int count[31]={0}; for(i=0;i<10;i++){ count[val[i].date]++; } for(i=1;i<31;i++){ count[i] = count[i] + count[i-1]; } for(i=9;i>=0;i--){ temp[count[val[i].date - 1]-1] = val[i]; count[val[i].date - 1]--; } for(i=0;i<10;i++){} val[i] = temp[i]; } void sortMonth(){ struct date temp[10]; int count[12]={0}; int i=0; for(;i<10;i++){ count[val[i].month-1]++; } for(i=1;i<12;i++){ count[i] += count[i-1]; } for(i=9;i>=0;i--){ temp[count[val[i].month - 1]-1] = val[i]; count[val[i].month - 1]--; } for(i=0;i<10;i++) val[i] = temp[i]; } void sortYear(){ struct date temp[10]; int count[5000]={0}; int i=0; for(;i<10;i++){ count[val[i].year]++; } for(i=1;i<5000;i++){ count[i] += count[i-1]; } for(i=9;i>=0;i--){ temp[count[(val[i].year)]-1] = val[i]; count[(val[i].year)]--; } for(i=0;i<10;i++) val[i] = temp[i]; } void sort(){ sortday(); sortMonth(); sortYear(); } int main(){ int i=0; sort(); for(;i<10;i++){ printf("%d %d %d\n",val[i].date,val[i].month,val[i].year); } return 0; }
the_stack_data/827209.c
#define _GNU_SOURCE #include <assert.h> #include <errno.h> #include <sched.h> #include <stdio.h> #include <stdlib.h> #include <sys/mman.h> #include <sys/wait.h> #include <unistd.h> // Based on a test by Steven Stewart-Gallus, see 342040 int fork_routine(void *arg) { write(1, "fork_routine\n", 13); _Exit(EXIT_SUCCESS); } int main(void) { long page_size = sysconf(_SC_PAGE_SIZE); assert(page_size != -1); /* We need an extra page for signals */ long stack_size = sysconf(_SC_THREAD_STACK_MIN) + page_size; assert(stack_size != -1); size_t stack_and_guard_size = page_size + stack_size + page_size; void *child_stack = mmap( NULL, stack_and_guard_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_GROWSDOWN, -1, 0); if (NULL == child_stack) { perror("mmap"); return EXIT_FAILURE; } /* Guard pages are shared between the stacks */ if (-1 == mprotect((char *)child_stack, page_size, PROT_NONE)) { perror("mprotect"); return EXIT_FAILURE; } if (-1 == mprotect((char *)child_stack + page_size + stack_size, page_size, PROT_NONE)) { perror("mprotect"); return EXIT_FAILURE; } void *stack_start = (char *)child_stack + page_size + stack_size; if (0) printf("stack_start %p page_size %d stack_size %d\n", stack_start, (int)page_size, (int)stack_size); write(1, "parent before clone\n", 20); pid_t child = clone(fork_routine, stack_start, SIGCHLD | CLONE_VFORK | CLONE_VM, NULL); write(1, "parent after clone\n", 19); if (-1 == child) { perror("clone"); return EXIT_FAILURE; } for (;;) { int xx; switch (waitpid(child, &xx, 0)) { case -1: switch (errno) { case EINTR: continue; default: perror("waitpid"); return EXIT_FAILURE; } default: return EXIT_SUCCESS; } } }
the_stack_data/89199302.c
int foo(int i, int j) { return (i+1)*5+j; } int bar(int i, int j) { return (i+1)*5+j+1; }
the_stack_data/178265785.c
// RUN: %clang -target x86_64-linux-gnu -fsanitize=undefined -fsanitize-trap=undefined %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-UNDEFINED-TRAP // RUN: %clang -target x86_64-linux-gnu -fsanitize=undefined -fsanitize-trap=undefined -fno-sanitize-trap=signed-integer-overflow %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-UNDEFINED-TRAP2 // RUN: %clang -target x86_64-linux-gnu -fsanitize=undefined -fsanitize-undefined-trap-on-error %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-UNDEFINED-TRAP // RUN: %clang -target x86_64-linux-gnu -fsanitize=undefined-trap -fsanitize-undefined-trap-on-error %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-UNDEFINED-TRAP // RUN: %clang -target x86_64-linux-gnu -fsanitize-undefined-trap-on-error -fsanitize=undefined-trap %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-UNDEFINED-TRAP // CHECK-UNDEFINED-TRAP-NOT: -fsanitize-recover // CHECK-UNDEFINED-TRAP: "-fsanitize={{((signed-integer-overflow|integer-divide-by-zero|shift-base|shift-exponent|unreachable|return|vla-bound|alignment|null|pointer-overflow|float-cast-overflow|array-bounds|enum|bool|builtin|returns-nonnull-attribute|nonnull-attribute|function),?){18}"}} // CHECK-UNDEFINED-TRAP: "-fsanitize-trap=alignment,array-bounds,bool,builtin,enum,float-cast-overflow,function,integer-divide-by-zero,nonnull-attribute,null,pointer-overflow,return,returns-nonnull-attribute,shift-base,shift-exponent,signed-integer-overflow,unreachable,vla-bound" // CHECK-UNDEFINED-TRAP2: "-fsanitize-trap=alignment,array-bounds,bool,builtin,enum,float-cast-overflow,function,integer-divide-by-zero,nonnull-attribute,null,pointer-overflow,return,returns-nonnull-attribute,shift-base,shift-exponent,unreachable,vla-bound" // RUN: %clang -target x86_64-linux-gnu -fsanitize=undefined %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-UNDEFINED // CHECK-UNDEFINED: "-fsanitize={{((signed-integer-overflow|integer-divide-by-zero|function|shift-base|shift-exponent|unreachable|return|vla-bound|alignment|null|vptr|pointer-overflow|float-cast-overflow|array-bounds|enum|bool|builtin|returns-nonnull-attribute|nonnull-attribute),?){19}"}} // RUN: %clang -target x86_64-apple-darwin10 -fsanitize=undefined %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-UNDEFINED-DARWIN // CHECK-UNDEFINED-DARWIN: "-fsanitize={{((signed-integer-overflow|integer-divide-by-zero|function|shift-base|shift-exponent|unreachable|return|vla-bound|alignment|null|pointer-overflow|float-cast-overflow|array-bounds|enum|bool|builtin|returns-nonnull-attribute|nonnull-attribute),?){18}"}} // RUN: %clang -target i386-pc-win32 -fsanitize=undefined %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-UNDEFINED-WIN --check-prefix=CHECK-UNDEFINED-WIN32 // RUN: %clang -target i386-pc-win32 -fsanitize=undefined -x c++ %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-UNDEFINED-WIN --check-prefix=CHECK-UNDEFINED-WIN32 --check-prefix=CHECK-UNDEFINED-WIN-CXX // RUN: %clang -target x86_64-pc-win32 -fsanitize=undefined %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-UNDEFINED-WIN --check-prefix=CHECK-UNDEFINED-WIN64 // RUN: %clang -target x86_64-w64-mingw32 -fsanitize=undefined %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-UNDEFINED-WIN --check-prefix=CHECK-UNDEFINED-WIN64-MINGW // RUN: %clang -target x86_64-pc-win32 -fsanitize=undefined -x c++ %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-UNDEFINED-WIN --check-prefix=CHECK-UNDEFINED-WIN64 --check-prefix=CHECK-UNDEFINED-WIN-CXX // CHECK-UNDEFINED-WIN32: "--dependent-lib={{[^"]*}}ubsan_standalone-i386.lib" // CHECK-UNDEFINED-WIN64: "--dependent-lib={{[^"]*}}ubsan_standalone-x86_64.lib" // CHECK-UNDEFINED-WIN64-MINGW: "--dependent-lib={{[^"]*}}libclang_rt.ubsan_standalone-x86_64.a" // CHECK-UNDEFINED-WIN-CXX: "--dependent-lib={{[^"]*}}ubsan_standalone_cxx{{[^"]*}}.lib" // CHECK-UNDEFINED-WIN-SAME: "-fsanitize={{((signed-integer-overflow|integer-divide-by-zero|shift-base|shift-exponent|unreachable|return|vla-bound|alignment|null|pointer-overflow|float-cast-overflow|array-bounds|enum|bool|builtin|returns-nonnull-attribute|nonnull-attribute),?){17}"}} // RUN: %clang -target i386-pc-win32 -fsanitize-coverage=bb %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-COVERAGE-WIN32 // CHECK-COVERAGE-WIN32: "--dependent-lib={{[^"]*}}ubsan_standalone-i386.lib" // RUN: %clang -target x86_64-pc-win32 -fsanitize-coverage=bb %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-COVERAGE-WIN64 // CHECK-COVERAGE-WIN64: "--dependent-lib={{[^"]*}}ubsan_standalone-x86_64.lib" // RUN: %clang -target %itanium_abi_triple -fsanitize=integer %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-INTEGER -implicit-check-not="-fsanitize-address-use-after-scope" // CHECK-INTEGER: "-fsanitize={{((signed-integer-overflow|unsigned-integer-overflow|integer-divide-by-zero|shift-base|shift-exponent|implicit-unsigned-integer-truncation|implicit-signed-integer-truncation|implicit-integer-sign-change),?){8}"}} // RUN: %clang -fsanitize=implicit-conversion %s -### 2>&1 | FileCheck %s --check-prefixes=CHECK-implicit-conversion,CHECK-implicit-conversion-RECOVER // RUN: %clang -fsanitize=implicit-conversion -fsanitize-recover=implicit-conversion %s -### 2>&1 | FileCheck %s --check-prefixes=CHECK-implicit-conversion,CHECK-implicit-conversion-RECOVER // RUN: %clang -fsanitize=implicit-conversion -fno-sanitize-recover=implicit-conversion %s -### 2>&1 | FileCheck %s --check-prefixes=CHECK-implicit-conversion,CHECK-implicit-conversion-NORECOVER // RUN: %clang -fsanitize=implicit-conversion -fsanitize-trap=implicit-conversion %s -### 2>&1 | FileCheck %s --check-prefixes=CHECK-implicit-conversion,CHECK-implicit-conversion-TRAP // CHECK-implicit-conversion: "-fsanitize={{((implicit-unsigned-integer-truncation|implicit-signed-integer-truncation|implicit-integer-sign-change),?){3}"}} // CHECK-implicit-conversion-RECOVER: "-fsanitize-recover={{((implicit-unsigned-integer-truncation|implicit-signed-integer-truncation|implicit-integer-sign-change),?){3}"}} // CHECK-implicit-conversion-RECOVER-NOT: "-fno-sanitize-recover={{((implicit-unsigned-integer-truncation|implicit-signed-integer-truncation|implicit-integer-sign-change),?){3}"}} // CHECK-implicit-conversion-RECOVER-NOT: "-fsanitize-trap={{((implicit-unsigned-integer-truncation|implicit-signed-integer-truncation|implicit-integer-sign-change),?){3}"}} // CHECK-implicit-conversion-NORECOVER-NOT: "-fno-sanitize-recover={{((implicit-unsigned-integer-truncation|implicit-signed-integer-truncation|implicit-integer-sign-change),?){3}"}} // ??? // CHECK-implicit-conversion-NORECOVER-NOT: "-fsanitize-recover={{((implicit-unsigned-integer-truncation|implicit-signed-integer-truncation|implicit-integer-sign-change),?){3}"}} // CHECK-implicit-conversion-NORECOVER-NOT: "-fsanitize-trap={{((implicit-unsigned-integer-truncation|implicit-signed-integer-truncation|implicit-integer-sign-change),?){3}"}} // CHECK-implicit-conversion-TRAP: "-fsanitize-trap={{((implicit-unsigned-integer-truncation|implicit-signed-integer-truncation|implicit-integer-sign-change),?){3}"}} // CHECK-implicit-conversion-TRAP-NOT: "-fsanitize-recover={{((implicit-unsigned-integer-truncation|implicit-signed-integer-truncation|implicit-integer-sign-change),?){3}"}} // CHECK-implicit-conversion-TRAP-NOT: "-fno-sanitize-recover={{((implicit-unsigned-integer-truncation|implicit-signed-integer-truncation|implicit-integer-sign-change),?){3}"}} // RUN: %clang -fsanitize=implicit-integer-arithmetic-value-change %s -### 2>&1 | FileCheck %s --check-prefixes=CHECK-implicit-integer-arithmetic-value-change,CHECK-implicit-integer-arithmetic-value-change-RECOVER // RUN: %clang -fsanitize=implicit-integer-arithmetic-value-change -fsanitize-recover=implicit-integer-arithmetic-value-change %s -### 2>&1 | FileCheck %s --check-prefixes=CHECK-implicit-integer-arithmetic-value-change,CHECK-implicit-integer-arithmetic-value-change-RECOVER // RUN: %clang -fsanitize=implicit-integer-arithmetic-value-change -fno-sanitize-recover=implicit-integer-arithmetic-value-change %s -### 2>&1 | FileCheck %s --check-prefixes=CHECK-implicit-integer-arithmetic-value-change,CHECK-implicit-integer-arithmetic-value-change-NORECOVER // RUN: %clang -fsanitize=implicit-integer-arithmetic-value-change -fsanitize-trap=implicit-integer-arithmetic-value-change %s -### 2>&1 | FileCheck %s --check-prefixes=CHECK-implicit-integer-arithmetic-value-change,CHECK-implicit-integer-arithmetic-value-change-TRAP // CHECK-implicit-integer-arithmetic-value-change: "-fsanitize={{((implicit-signed-integer-truncation|implicit-integer-sign-change),?){2}"}} // CHECK-implicit-integer-arithmetic-value-change-RECOVER: "-fsanitize-recover={{((implicit-signed-integer-truncation|implicit-integer-sign-change),?){2}"}} // CHECK-implicit-integer-arithmetic-value-change-RECOVER-NOT: "-fno-sanitize-recover={{((implicit-signed-integer-truncation|implicit-integer-sign-change),?){2}"}} // CHECK-implicit-integer-arithmetic-value-change-RECOVER-NOT: "-fsanitize-trap={{((implicit-signed-integer-truncation|implicit-integer-sign-change),?){2}"}} // CHECK-implicit-integer-arithmetic-value-change-NORECOVER-NOT: "-fno-sanitize-recover={{((implicit-signed-integer-truncation|implicit-integer-sign-change),?){2}"}} // ??? // CHECK-implicit-integer-arithmetic-value-change-NORECOVER-NOT: "-fsanitize-recover={{((implicit-signed-integer-truncation|implicit-integer-sign-change),?){2}"}} // CHECK-implicit-integer-arithmetic-value-change-NORECOVER-NOT: "-fsanitize-trap={{((implicit-signed-integer-truncation|implicit-integer-sign-change),?){2}"}} // CHECK-implicit-integer-arithmetic-value-change-TRAP: "-fsanitize-trap={{((implicit-signed-integer-truncation|implicit-integer-sign-change),?){2}"}} // CHECK-implicit-integer-arithmetic-value-change-TRAP-NOT: "-fsanitize-recover={{((implicit-signed-integer-truncation|implicit-integer-sign-change),?){2}"}} // CHECK-implicit-integer-arithmetic-value-change-TRAP-NOT: "-fno-sanitize-recover={{((implicit-signed-integer-truncation|implicit-integer-sign-change),?){2}"}} // RUN: %clang -fsanitize=implicit-integer-truncation %s -### 2>&1 | FileCheck %s --check-prefixes=CHECK-implicit-integer-truncation,CHECK-implicit-integer-truncation-RECOVER // RUN: %clang -fsanitize=implicit-integer-truncation -fsanitize-recover=implicit-integer-truncation %s -### 2>&1 | FileCheck %s --check-prefixes=CHECK-implicit-integer-truncation,CHECK-implicit-integer-truncation-RECOVER // RUN: %clang -fsanitize=implicit-integer-truncation -fno-sanitize-recover=implicit-integer-truncation %s -### 2>&1 | FileCheck %s --check-prefixes=CHECK-implicit-integer-truncation,CHECK-implicit-integer-truncation-NORECOVER // RUN: %clang -fsanitize=implicit-integer-truncation -fsanitize-trap=implicit-integer-truncation %s -### 2>&1 | FileCheck %s --check-prefixes=CHECK-implicit-integer-truncation,CHECK-implicit-integer-truncation-TRAP // CHECK-implicit-integer-truncation: "-fsanitize={{((implicit-unsigned-integer-truncation|implicit-signed-integer-truncation),?){2}"}} // CHECK-implicit-integer-truncation-RECOVER: "-fsanitize-recover={{((implicit-unsigned-integer-truncation|implicit-signed-integer-truncation),?){2}"}} // CHECK-implicit-integer-truncation-RECOVER-NOT: "-fno-sanitize-recover={{((implicit-unsigned-integer-truncation|implicit-signed-integer-truncation),?){2}"}} // CHECK-implicit-integer-truncation-RECOVER-NOT: "-fsanitize-trap={{((implicit-unsigned-integer-truncation|implicit-signed-integer-truncation),?){2}"}} // CHECK-implicit-integer-truncation-NORECOVER-NOT: "-fno-sanitize-recover={{((implicit-unsigned-integer-truncation|implicit-signed-integer-truncation),?){2}"}} // ??? // CHECK-implicit-integer-truncation-NORECOVER-NOT: "-fsanitize-recover={{((implicit-unsigned-integer-truncation|implicit-signed-integer-truncation),?){2}"}} // CHECK-implicit-integer-truncation-NORECOVER-NOT: "-fsanitize-trap={{((implicit-unsigned-integer-truncation|implicit-signed-integer-truncation),?){2}"}} // CHECK-implicit-integer-truncation-TRAP: "-fsanitize-trap={{((implicit-unsigned-integer-truncation|implicit-signed-integer-truncation),?){2}"}} // CHECK-implicit-integer-truncation-TRAP-NOT: "-fsanitize-recover={{((implicit-unsigned-integer-truncation|implicit-signed-integer-truncation),?){2}"}} // CHECK-implicit-integer-truncation-TRAP-NOT: "-fno-sanitize-recover={{((implicit-unsigned-integer-truncation|implicit-signed-integer-truncation),?){2}"}} // RUN: %clang -fsanitize=bounds -### -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix=CHECK-BOUNDS // CHECK-BOUNDS: "-fsanitize={{((array-bounds|local-bounds),?){2}"}} // RUN: %clang -target x86_64-linux-gnu -fsanitize=all %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-FSANITIZE-ALL // CHECK-FSANITIZE-ALL: error: unsupported argument 'all' to option 'fsanitize=' // RUN: %clang -target x86_64-linux-gnu -fsanitize=address,undefined -fno-sanitize=all -fsanitize=thread %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-FNO-SANITIZE-ALL // CHECK-FNO-SANITIZE-ALL: "-fsanitize=thread" // RUN: %clang -target x86_64-linux-gnu -fsanitize=thread,undefined -fno-sanitize=thread -fno-sanitize=float-cast-overflow,vptr,bool,builtin,enum %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-PARTIAL-UNDEFINED // CHECK-PARTIAL-UNDEFINED: "-fsanitize={{((signed-integer-overflow|integer-divide-by-zero|function|shift-base|shift-exponent|unreachable|return|vla-bound|alignment|null|pointer-overflow|array-bounds|returns-nonnull-attribute|nonnull-attribute),?){14}"}} // RUN: %clang -fsanitize=shift -fno-sanitize=shift-base %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-FSANITIZE-SHIFT-PARTIAL // CHECK-FSANITIZE-SHIFT-PARTIAL: "-fsanitize=shift-exponent" // RUN: %clang -target x86_64-linux-gnu -fsanitize=vptr -fsanitize-trap=undefined %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-VPTR-TRAP-UNDEF // RUN: %clang -target x86_64-linux-gnu -fsanitize=vptr -fsanitize-undefined-trap-on-error %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-VPTR-TRAP-UNDEF // CHECK-VPTR-TRAP-UNDEF: error: invalid argument '-fsanitize=vptr' not allowed with '-fsanitize-trap=undefined' // RUN: %clang -target x86_64-linux-gnu -fsanitize=vptr -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-VPTR-NO-RTTI // CHECK-VPTR-NO-RTTI: '-fsanitize=vptr' not allowed with '-fno-rtti' // RUN: %clang -fsanitize=undefined -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-UNDEFINED-NO-RTTI // CHECK-UNDEFINED-NO-RTTI-NOT: vptr // RUN: %clang -target x86_64-linux-gnu -fsanitize=address,thread -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANA-SANT // CHECK-SANA-SANT: '-fsanitize=address' not allowed with '-fsanitize=thread' // RUN: %clang -target x86_64-linux-gnu -fsanitize=address,memory -pie -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANA-SANM // CHECK-SANA-SANM: '-fsanitize=address' not allowed with '-fsanitize=memory' // RUN: %clang -target x86_64-linux-gnu -fsanitize=thread,memory -pie -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANT-SANM // CHECK-SANT-SANM: '-fsanitize=thread' not allowed with '-fsanitize=memory' // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory,thread -pie -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANM-SANT // CHECK-SANM-SANT: '-fsanitize=thread' not allowed with '-fsanitize=memory' // RUN: %clang -target x86_64-linux-gnu -fsanitize=leak,thread -pie -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANL-SANT // CHECK-SANL-SANT: '-fsanitize=leak' not allowed with '-fsanitize=thread' // RUN: %clang -target x86_64-linux-gnu -fsanitize=leak,memory -pie -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANL-SANM // CHECK-SANL-SANM: '-fsanitize=leak' not allowed with '-fsanitize=memory' // RUN: %clang -target x86_64-linux-gnu -fsanitize=kernel-memory,address -pie -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-KMSAN-ASAN // CHECK-KMSAN-ASAN: '-fsanitize=kernel-memory' not allowed with '-fsanitize=address' // RUN: %clang -target x86_64-linux-gnu -fsanitize=kernel-memory,hwaddress -pie -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-KMSAN-HWASAN // CHECK-KMSAN-HWASAN: '-fsanitize=kernel-memory' not allowed with '-fsanitize=hwaddress' // RUN: %clang -target x86_64-linux-gnu -fsanitize=kernel-memory,leak -pie -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-KMSAN-LSAN // CHECK-KMSAN-LSAN: '-fsanitize=kernel-memory' not allowed with '-fsanitize=leak' // RUN: %clang -target x86_64-linux-gnu -fsanitize=kernel-memory,thread -pie -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-KMSAN-TSAN // CHECK-KMSAN-TSAN: '-fsanitize=kernel-memory' not allowed with '-fsanitize=thread' // RUN: %clang -target x86_64-linux-gnu -fsanitize=kernel-memory,kernel-address -pie -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-KMSAN-KASAN // CHECK-KMSAN-KASAN: '-fsanitize=kernel-memory' not allowed with '-fsanitize=kernel-address' // RUN: %clang -target x86_64-linux-gnu -fsanitize=kernel-memory,memory -pie -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-KMSAN-MSAN // CHECK-KMSAN-MSAN: '-fsanitize=kernel-memory' not allowed with '-fsanitize=memory' // RUN: %clang -target x86_64-linux-gnu -fsanitize=kernel-memory,safe-stack -pie -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-KMSAN-SAFESTACK // CHECK-KMSAN-SAFESTACK: '-fsanitize=kernel-memory' not allowed with '-fsanitize=safe-stack' // RUN: %clang -target x86_64-linux-gnu -fsanitize=kernel-address,thread -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANKA-SANT // CHECK-SANKA-SANT: '-fsanitize=kernel-address' not allowed with '-fsanitize=thread' // RUN: %clang -target x86_64-linux-gnu -fsanitize=kernel-address,memory -pie -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANKA-SANM // CHECK-SANKA-SANM: '-fsanitize=kernel-address' not allowed with '-fsanitize=memory' // RUN: %clang -target x86_64-linux-gnu -fsanitize=kernel-address,address -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANKA-SANA // CHECK-SANKA-SANA: '-fsanitize=kernel-address' not allowed with '-fsanitize=address' // RUN: %clang -target x86_64-linux-gnu -fsanitize=kernel-address,leak -pie -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANKA-SANL // CHECK-SANKA-SANL: '-fsanitize=kernel-address' not allowed with '-fsanitize=leak' // RUN: %clang -target x86_64-linux-gnu -fsanitize=kernel-hwaddress,thread -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANKHA-SANT // CHECK-SANKHA-SANT: '-fsanitize=kernel-hwaddress' not allowed with '-fsanitize=thread' // RUN: %clang -target x86_64-linux-gnu -fsanitize=kernel-hwaddress,memory -pie -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANKHA-SANM // CHECK-SANKHA-SANM: '-fsanitize=kernel-hwaddress' not allowed with '-fsanitize=memory' // RUN: %clang -target x86_64-linux-gnu -fsanitize=kernel-hwaddress,address -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANKHA-SANA // CHECK-SANKHA-SANA: '-fsanitize=kernel-hwaddress' not allowed with '-fsanitize=address' // RUN: %clang -target x86_64-linux-gnu -fsanitize=kernel-hwaddress,leak -pie -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANKHA-SANL // CHECK-SANKHA-SANL: '-fsanitize=kernel-hwaddress' not allowed with '-fsanitize=leak' // RUN: %clang -target x86_64-linux-gnu -fsanitize=kernel-hwaddress,hwaddress -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANKHA-SANHA // CHECK-SANKHA-SANHA: '-fsanitize=kernel-hwaddress' not allowed with '-fsanitize=hwaddress' // RUN: %clang -target x86_64-linux-gnu -fsanitize=kernel-hwaddress,kernel-address -pie -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANKHA-SANKA // CHECK-SANKHA-SANKA: '-fsanitize=kernel-hwaddress' not allowed with '-fsanitize=kernel-address' // RUN: %clang -target x86_64-linux-gnu -fsanitize=hwaddress,thread -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANHA-SANT // CHECK-SANHA-SANT: '-fsanitize=hwaddress' not allowed with '-fsanitize=thread' // RUN: %clang -target x86_64-linux-gnu -fsanitize=hwaddress,memory -pie -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANHA-SANM // CHECK-SANHA-SANM: '-fsanitize=hwaddress' not allowed with '-fsanitize=memory' // RUN: %clang -target x86_64-linux-gnu -fsanitize=hwaddress,address -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANHA-SANA // CHECK-SANHA-SANA: '-fsanitize=hwaddress' not allowed with '-fsanitize=address' // RUN: %clang -target aarch64-linux-android -fsanitize=memtag,address -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANMT-SANA // CHECK-SANMT-SANA: '-fsanitize=memtag' not allowed with '-fsanitize=address' // RUN: %clang -target aarch64-linux-android -fsanitize=memtag,hwaddress -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANMT-SANHA // CHECK-SANMT-SANHA: '-fsanitize=memtag' not allowed with '-fsanitize=hwaddress' // RUN: %clang -target i386-linux-android -fsanitize=memtag -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANMT-BAD-ARCH // RUN: %clang -target x86_64-linux-android -fsanitize=memtag -fno-rtti %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANMT-BAD-ARCH // CHECK-SANMT-BAD-ARCH: unsupported option '-fsanitize=memtag' for target // RUN: %clang -target aarch64-linux -fsanitize=memtag -march=armv8-a+memtag %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANMT-MT // CHECK-SANMT-MT: "-target-feature" "+mte" // CHECK-SANMT-MT-SAME: "-fsanitize=memtag" // RUN: %clang -target aarch64-linux -fsanitize=memtag %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANMT-NOMT-0 // CHECK-SANMT-NOMT-0: '-fsanitize=memtag' requires hardware support (+memtag) // RUN: %clang -target aarch64-linux -fsanitize=memtag -I +mte %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANMT-NOMT-1 // CHECK-SANMT-NOMT-1: '-fsanitize=memtag' requires hardware support (+memtag) // RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fsanitize-address-use-after-scope %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-USE-AFTER-SCOPE // RUN: %clang_cl --target=x86_64-windows -fsanitize=address -fsanitize-address-use-after-scope -### -- %s 2>&1 | FileCheck %s --check-prefix=CHECK-USE-AFTER-SCOPE // CHECK-USE-AFTER-SCOPE: -cc1{{.*}}-fsanitize-address-use-after-scope // RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fno-sanitize-address-use-after-scope %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-USE-AFTER-SCOPE-OFF // RUN: %clang_cl --target=x86_64-windows -fsanitize=address -fno-sanitize-address-use-after-scope -### -- %s 2>&1 | FileCheck %s --check-prefix=CHECK-USE-AFTER-SCOPE-OFF // CHECK-USE-AFTER-SCOPE-OFF-NOT: -cc1{{.*}}address-use-after-scope // RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fno-sanitize-address-use-after-scope -fsanitize-address-use-after-scope %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-USE-AFTER-SCOPE-BOTH // RUN: %clang_cl --target=x86_64-windows -fsanitize=address -fno-sanitize-address-use-after-scope -fsanitize-address-use-after-scope -### -- %s 2>&1 | FileCheck %s --check-prefix=CHECK-USE-AFTER-SCOPE-BOTH // CHECK-USE-AFTER-SCOPE-BOTH: -cc1{{.*}}-fsanitize-address-use-after-scope // RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fsanitize-address-use-after-scope -fno-sanitize-address-use-after-scope %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-USE-AFTER-SCOPE-BOTH-OFF // CHECK-USE-AFTER-SCOPE-BOTH-OFF-NOT: -cc1{{.*}}address-use-after-scope // RUN: %clang -target x86_64-linux-gnu -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-WITHOUT-USE-AFTER-SCOPE // CHECK-ASAN-WITHOUT-USE-AFTER-SCOPE: -cc1{{.*}}address-use-after-scope // RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fsanitize-address-poison-custom-array-cookie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-POISON-CUSTOM-ARRAY-NEW-COOKIE // RUN: %clang_cl --target=x86_64-windows -fsanitize=address -fsanitize-address-poison-custom-array-cookie -### -- %s 2>&1 | FileCheck %s --check-prefix=CHECK-POISON-CUSTOM-ARRAY-NEW-COOKIE // CHECK-POISON-CUSTOM-ARRAY-NEW-COOKIE: -cc1{{.*}}-fsanitize-address-poison-custom-array-cookie // RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fno-sanitize-address-poison-custom-array-cookie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-POISON-CUSTOM-ARRAY-NEW-COOKIE-OFF // RUN: %clang_cl --target=x86_64-windows -fsanitize=address -fno-sanitize-address-poison-custom-array-cookie -### -- %s 2>&1 | FileCheck %s --check-prefix=CHECK-POISON-CUSTOM-ARRAY-NEW-COOKIE-OFF // CHECK-POISON-CUSTOM-ARRAY-NEW-COOKIE-OFF-NOT: -cc1{{.*}}address-poison-custom-array-cookie // RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fno-sanitize-address-poison-custom-array-cookie -fsanitize-address-poison-custom-array-cookie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-POISON-CUSTOM-ARRAY-NEW-COOKIE-BOTH // RUN: %clang_cl --target=x86_64-windows -fsanitize=address -fno-sanitize-address-poison-custom-array-cookie -fsanitize-address-poison-custom-array-cookie -### -- %s 2>&1 | FileCheck %s --check-prefix=CHECK-POISON-CUSTOM-ARRAY-NEW-COOKIE-BOTH // CHECK-POISON-CUSTOM-ARRAY-NEW-COOKIE-BOTH: -cc1{{.*}}-fsanitize-address-poison-custom-array-cookie // RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fsanitize-address-poison-custom-array-cookie -fno-sanitize-address-poison-custom-array-cookie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-POISON-CUSTOM-ARRAY-NEW-COOKIE-BOTH-OFF // CHECK-POISON-CUSTOM-ARRAY-NEW-COOKIE-BOTH-OFF-NOT: -cc1{{.*}}address-poison-custom-array-cookie // RUN: %clang -target x86_64-linux-gnu -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-WITHOUT-POISON-CUSTOM-ARRAY-NEW-COOKIE // CHECK-ASAN-WITHOUT-POISON-CUSTOM-ARRAY-NEW-COOKIE-NOT: -cc1{{.*}}address-poison-custom-array-cookie // RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fsanitize-address-globals-dead-stripping %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-GLOBALS // RUN: %clang -target x86_64-linux-gnu -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ASAN-GLOBALS // RUN: %clang_cl --target=x86_64-windows-msvc -fsanitize=address -fsanitize-address-globals-dead-stripping -### -- %s 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-GLOBALS // RUN: %clang_cl --target=x86_64-windows-msvc -fsanitize=address -### -- %s 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-GLOBALS // RUN: %clang -target x86_64-scei-ps4 -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-GLOBALS // CHECK-ASAN-GLOBALS: -cc1{{.*}}-fsanitize-address-globals-dead-stripping // CHECK-NO-ASAN-GLOBALS-NOT: -cc1{{.*}}-fsanitize-address-globals-dead-stripping // RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fsanitize-address-use-odr-indicator %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-ODR-INDICATOR // RUN: %clang_cl --target=x86_64-windows -fsanitize=address -fsanitize-address-use-odr-indicator -### -- %s 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-ODR-INDICATOR // CHECK-ASAN-ODR-INDICATOR: -cc1{{.*}}-fsanitize-address-use-odr-indicator // RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fno-sanitize-address-use-odr-indicator %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-ODR-INDICATOR-OFF // RUN: %clang_cl --target=x86_64-windows -fsanitize=address -fno-sanitize-address-use-odr-indicator -### -- %s 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-ODR-INDICATOR-OFF // CHECK-ASAN-ODR-INDICATOR-OFF-NOT: -cc1{{.*}}address-generate-odr-globals // RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fno-sanitize-address-use-odr-indicator -fsanitize-address-use-odr-indicator %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-ODR-INDICATOR-BOTH // RUN: %clang_cl --target=x86_64-windows -fsanitize=address -fno-sanitize-address-use-odr-indicator -fsanitize-address-use-odr-indicator -### -- %s 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-ODR-INDICATOR-BOTH // CHECK-ASAN-ODR-INDICATOR-BOTH: -cc1{{.*}}-fsanitize-address-use-odr-indicator // RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fsanitize-address-use-odr-indicator -fno-sanitize-address-use-odr-indicator %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-ODR-INDICATOR-BOTH-OFF // CHECK-ASAN-ODR-INDICATOR-BOTH-OFF-NOT: -cc1{{.*}}address-generate-odr-globals // RUN: %clang -target x86_64-linux-gnu -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-WITHOUT-ODR-INDICATOR // CHECK-ASAN-WITHOUT-ODR-INDICATOR-NOT: -cc1{{.*}}address-generate-odr-globals // RUN: %clang -target x86_64-linux-gnu -fsanitize-memory-track-origins -pie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ONLY-TRACK-ORIGINS // CHECK-ONLY-TRACK-ORIGINS: warning: argument unused during compilation: '-fsanitize-memory-track-origins' // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fno-sanitize=memory -fsanitize-memory-track-origins -pie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TRACK-ORIGINS-DISABLED-MSAN // CHECK-TRACK-ORIGINS-DISABLED-MSAN-NOT: warning: argument unused // RUN: %clang -target x86_64-linux-gnu -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-EXTRA-TRACK-ORIGINS // CHECK-NO-EXTRA-TRACK-ORIGINS-NOT: "-fsanitize-memory-track-origins" // RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fsanitize=alignment -fsanitize=vptr -fno-sanitize=vptr %s -### 2>&1 // OK // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -pie %s -### 2>&1 // OK // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fsanitize-memory-track-origins -pie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TRACK-ORIGINS-2 // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fsanitize-memory-track-origins=1 -pie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TRACK-ORIGINS-1 // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fsanitize-memory-track-origins=1 -fsanitize-memory-track-origins -pie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TRACK-ORIGINS-2 // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fsanitize-memory-track-origins=2 -fsanitize-memory-track-origins -pie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TRACK-ORIGINS-2 // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fno-sanitize-memory-track-origins -fsanitize-memory-track-origins -pie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TRACK-ORIGINS-2 // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fsanitize-memory-track-origins=0 -fsanitize-memory-track-origins=1 -pie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TRACK-ORIGINS-1 // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fsanitize-memory-track-origins=0 -fsanitize-memory-track-origins -pie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TRACK-ORIGINS-2 // CHECK-TRACK-ORIGINS-1: -fsanitize-memory-track-origins=1 // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fno-sanitize-memory-track-origins -pie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-TRACK-ORIGINS // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fsanitize-memory-track-origins=0 -pie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-TRACK-ORIGINS // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fsanitize-memory-track-origins -fno-sanitize-memory-track-origins -pie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-TRACK-ORIGINS // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fsanitize-memory-track-origins -fsanitize-memory-track-origins=0 -pie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-TRACK-ORIGINS // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fsanitize-memory-track-origins=2 -fno-sanitize-memory-track-origins -pie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-TRACK-ORIGINS // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fsanitize-memory-track-origins=2 -fsanitize-memory-track-origins=0 -pie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-TRACK-ORIGINS // CHECK-NO-TRACK-ORIGINS-NOT: sanitize-memory-track-origins // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fsanitize-memory-track-origins=2 -pie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TRACK-ORIGINS-2 // CHECK-TRACK-ORIGINS-2: -fsanitize-memory-track-origins=2 // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fsanitize-memory-track-origins=3 -pie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TRACK-ORIGINS-3 // CHECK-TRACK-ORIGINS-3: error: invalid value '3' in '-fsanitize-memory-track-origins=3' // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fsanitize-memory-use-after-dtor %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-USE-AFTER-DTOR // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fno-sanitize-memory-use-after-dtor -fsanitize-memory-use-after-dtor %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-USE-AFTER-DTOR // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-USE-AFTER-DTOR // CHECK-USE-AFTER-DTOR: -cc1{{.*}}-fsanitize-memory-use-after-dtor // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fno-sanitize-memory-use-after-dtor %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-USE-AFTER-DTOR-OFF // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fsanitize-memory-use-after-dtor -fno-sanitize-memory-use-after-dtor %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-USE-AFTER-DTOR-OFF // CHECK-USE-AFTER-DTOR-OFF-NOT: -cc1{{.*}}memory-use-after-dtor // RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fsanitize-address-field-padding=0 %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-FIELD-PADDING-0 // CHECK-ASAN-FIELD-PADDING-0-NOT: -fsanitize-address-field-padding // RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fsanitize-address-field-padding=1 %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-FIELD-PADDING-1 // CHECK-ASAN-FIELD-PADDING-1: -fsanitize-address-field-padding=1 // RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fsanitize-address-field-padding=2 %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-FIELD-PADDING-2 // CHECK-ASAN-FIELD-PADDING-2: -fsanitize-address-field-padding=2 // RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fsanitize-address-field-padding=3 %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-FIELD-PADDING-3 // CHECK-ASAN-FIELD-PADDING-3: error: invalid value '3' in '-fsanitize-address-field-padding=3' // RUN: %clang -target x86_64-linux-gnu -fsanitize-address-field-padding=2 %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-FIELD-PADDING-NO-ASAN // CHECK-ASAN-FIELD-PADDING-NO-ASAN: warning: argument unused during compilation: '-fsanitize-address-field-padding=2' // RUN: %clang -target x86_64-linux-gnu -fsanitize-address-field-padding=2 -fsanitize=address -fno-sanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-FIELD-PADDING-DISABLED-ASAN // CHECK-ASAN-FIELD-PADDING-DISABLED-ASAN-NOT: warning: argument unused // RUN: %clang -target x86_64-linux-gnu -fsanitize=vptr -fno-sanitize=vptr -fsanitize=undefined,address %s -### 2>&1 // OK // RUN: %clang -target x86_64-linux-gnu -fsanitize=thread %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-PIE // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-PIE // RUN: %clang -target x86_64-unknown-freebsd -fsanitize=memory %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-PIE // RUN: %clang -target aarch64-linux-gnu -fsanitize=memory %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-PIE // RUN: %clang -target arm-linux-androideabi -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-PIC-NO-PIE // RUN: %clang -target arm-linux-androideabi24 -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-PIE // RUN: %clang -target aarch64-linux-android -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-PIE // RUN: %clang -target x86_64-linux-gnu -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-PIE // RUN: %clang -target i386-linux-gnu -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-PIE // CHECK-NO-PIE-NOT: "-pie" // CHECK-NO-PIE: "-mrelocation-model" "static" // CHECK-NO-PIE-NOT: "-pie" // CHECK-PIC-NO-PIE-NOT: "-pie" // CHECK-PIC-NO-PIE: "-mrelocation-model" "pic" // CHECK-PIC-NO-PIE-NOT: "-pie" // CHECK-PIE: "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" // CHECK-PIE: "-pie" // RUN: %clang -target arm-linux-androideabi %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ANDROID-NO-ASAN // CHECK-ANDROID-NO-ASAN: "-mrelocation-model" "pic" // RUN: %clang -target x86_64-linux-gnu %s -fsanitize=undefined -### 2>&1 | FileCheck %s --check-prefix=CHECK-RECOVER-UBSAN // RUN: %clang -target x86_64-linux-gnu %s -fsanitize=undefined -fsanitize-recover -### 2>&1 | FileCheck %s --check-prefix=CHECK-RECOVER-UBSAN // RUN: %clang -target x86_64-linux-gnu %s -fsanitize=undefined -fsanitize-recover=all -### 2>&1 | FileCheck %s --check-prefix=CHECK-RECOVER-UBSAN // RUN: %clang -target x86_64-linux-gnu %s -fsanitize=undefined -fno-sanitize-recover -fsanitize-recover=undefined -### 2>&1 | FileCheck %s --check-prefix=CHECK-RECOVER-UBSAN // RUN: %clang -target x86_64-linux-gnu %s -fsanitize=undefined -fno-sanitize-recover=undefined -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-RECOVER-UBSAN // RUN: %clang -target x86_64-linux-gnu %s -fsanitize=undefined -fno-sanitize-recover=all -fsanitize-recover=thread -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-RECOVER-UBSAN // RUN: %clang -target x86_64-linux-gnu %s -fsanitize=undefined -fsanitize-recover=all -fno-sanitize-recover=undefined -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-RECOVER-UBSAN // CHECK-RECOVER-UBSAN: "-fsanitize-recover={{((signed-integer-overflow|integer-divide-by-zero|function|shift-base|shift-exponent|vla-bound|alignment|null|vptr|pointer-overflow|float-cast-overflow|array-bounds|enum|bool|builtin|returns-nonnull-attribute|nonnull-attribute),?){17}"}} // CHECK-NO-RECOVER-UBSAN-NOT: sanitize-recover // RUN: %clang -target x86_64-linux-gnu %s -fsanitize=undefined -fno-sanitize-recover=all -fsanitize-recover=object-size,shift-base -### 2>&1 | FileCheck %s --check-prefix=CHECK-PARTIAL-RECOVER // CHECK-PARTIAL-RECOVER: "-fsanitize-recover={{((shift-base),?){1}"}} // RUN: %clang -target x86_64-linux-gnu %s -fsanitize=address -fsanitize-recover=all -### 2>&1 | FileCheck %s --check-prefix=CHECK-RECOVER-ASAN // CHECK-RECOVER-ASAN: "-fsanitize-recover=address" // RUN: %clang -target x86_64-linux-gnu %s -fsanitize=undefined -fsanitize-recover=foobar,object-size,unreachable -### 2>&1 | FileCheck %s --check-prefix=CHECK-DIAG-RECOVER // CHECK-DIAG-RECOVER: unsupported argument 'foobar' to option 'fsanitize-recover=' // CHECK-DIAG-RECOVER: unsupported argument 'unreachable' to option 'fsanitize-recover=' // RUN: %clang -target x86_64-linux-gnu %s -fsanitize=undefined -fsanitize-recover -fno-sanitize-recover -### 2>&1 | FileCheck %s --check-prefix=CHECK-DEPRECATED-RECOVER // CHECK-DEPRECATED-RECOVER: argument '-fsanitize-recover' is deprecated, use '-fsanitize-recover=undefined,integer' or '-fsanitize-recover=all' instead // CHECK-DEPRECATED-RECOVER: argument '-fno-sanitize-recover' is deprecated, use '-fno-sanitize-recover=undefined,integer' or '-fno-sanitize-recover=all' instead // CHECK-DEPRECATED-RECOVER-NOT: is deprecated // RUN: %clang -target x86_64-linux-gnu %s -fsanitize=kernel-address -fno-sanitize-recover=kernel-address -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-RECOVER-KASAN // RUN: %clang -target x86_64-linux-gnu %s -fsanitize=kernel-hwaddress -fno-sanitize-recover=kernel-hwaddress -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-RECOVER-KHWASAN // CHECK-NO-RECOVER-KASAN: unsupported argument 'kernel-address' to option 'fno-sanitize-recover=' // CHECK-NO-RECOVER-KHWASAN: unsupported argument 'kernel-hwaddress' to option 'fno-sanitize-recover=' // RUN: %clang -target x86_64-linux-gnu -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANL // CHECK-SANL: "-fsanitize=leak" // RUN: %clang -target x86_64-linux-gnu -fsanitize=address,leak -fno-sanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANA-SANL-NO-SANA // CHECK-SANA-SANL-NO-SANA: "-fsanitize=leak" // RUN: %clang -target i686-linux-gnu -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANL-X86 // CHECK-SANL-X86: "-fsanitize=leak" // RUN: %clang -target i686-linux-gnu -fsanitize=address,leak -fno-sanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANA-SANL-NO-SANA-X86 // CHECK-SANA-SANL-NO-SANA-X86: "-fsanitize=leak" // RUN: %clang -target arm-linux-gnu -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANL-ARM // CHECK-SANL-ARM: "-fsanitize=leak" // RUN: %clang -target arm-linux-gnu -fsanitize=address,leak -fno-sanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANA-SANL-NO-SANA-ARM // CHECK-SANA-SANL-NO-SANA-ARM: "-fsanitize=leak" // RUN: %clang -target thumb-linux -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANL-THUMB // CHECK-SANL-THUMB: "-fsanitize=leak" // RUN: %clang -target thumb-linux -fsanitize=address,leak -fno-sanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANA-SANL-NO-SANA-THUMB // CHECK-SANA-SANL-NO-SANA-THUMB: "-fsanitize=leak" // RUN: %clang -target armeb-linux-gnu -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANL-ARMEB // CHECK-SANL-ARMEB: "-fsanitize=leak" // RUN: %clang -target armeb-linux-gnu -fsanitize=address,leak -fno-sanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANA-SANL-NO-SANA-ARMEB // CHECK-SANA-SANL-NO-SANA-ARMEB: "-fsanitize=leak" // RUN: %clang -target thumbeb-linux -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANL-THUMBEB // CHECK-SANL-THUMBEB: "-fsanitize=leak" // RUN: %clang -target thumbeb-linux -fsanitize=address,leak -fno-sanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANA-SANL-NO-SANA-THUMBEB // CHECK-SANA-SANL-NO-SANA-THUMBEB: "-fsanitize=leak" // RUN: %clang -target mips-unknown-linux -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANL-MIPS // CHECK-SANL-MIPS: unsupported option '-fsanitize=leak' for target 'mips-unknown-linux' // RUN: %clang -target mips-unknown-freebsd -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANL-MIPS-FREEBSD // CHECK-SANL-MIPS-FREEBSD: unsupported option '-fsanitize=leak' for target 'mips-unknown-freebsd' // RUN: %clang -target mips64-unknown-freebsd -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANL-MIPS64-FREEBSD // CHECK-SANL-MIPS64-FREEBSD: "-fsanitize=leak" // RUN: %clang -target powerpc64-unknown-linux -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANL-PPC64 // RUN: %clang -target powerpc64le-unknown-linux -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANL-PPC64 // CHECK-SANL-PPC64: "-fsanitize=leak" // RUN: %clang -target powerpc-unknown-linux -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANL-PPC // CHECK-SANL-PPC: unsupported option '-fsanitize=leak' for target 'powerpc-unknown-linux' // RUN: %clang -target x86_64-linux-gnu -fsanitize=memory %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-MSAN // CHECK-MSAN: "-fno-assume-sane-operator-new" // RUN: %clang -target x86_64-linux-gnu -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN // CHECK-ASAN: "-fno-assume-sane-operator-new" // RUN: %clang -target x86_64-linux-gnu -fsanitize=zzz %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-DIAG1 // CHECK-DIAG1: unsupported argument 'zzz' to option 'fsanitize=' // CHECK-DIAG1-NOT: unsupported argument 'zzz' to option 'fsanitize=' // RUN: %clang -target x86_64-apple-darwin10 -fsanitize=memory %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-MSAN-DARWIN // CHECK-MSAN-DARWIN: unsupported option '-fsanitize=memory' for target 'x86_64-apple-darwin10' // RUN: %clang -target x86_64-apple-darwin10 -fsanitize=memory -fno-sanitize=memory %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-MSAN-NOMSAN-DARWIN // CHECK-MSAN-NOMSAN-DARWIN-NOT: unsupported option // RUN: %clang -target x86_64-apple-darwin10 -fsanitize=memory -fsanitize=thread,memory %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-MSAN-TSAN-MSAN-DARWIN // CHECK-MSAN-TSAN-MSAN-DARWIN: unsupported option '-fsanitize=memory' for target 'x86_64-apple-darwin10' // CHECK-MSAN-TSAN-MSAN-DARWIN-NOT: unsupported option // RUN: %clang -target x86_64-apple-darwin10 -fsanitize=thread,memory -fsanitize=memory %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-MSAN-MSAN-DARWIN // CHECK-TSAN-MSAN-MSAN-DARWIN: unsupported option '-fsanitize=memory' for target 'x86_64-apple-darwin10' // CHECK-TSAN-MSAN-MSAN-DARWIN-NOT: unsupported option // RUN: %clang -target x86_64-apple-darwin -fsanitize=thread %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-X86-64-DARWIN // CHECK-TSAN-X86-64-DARWIN-NOT: unsupported option // RUN: %clang -target x86_64-apple-iossimulator -fsanitize=thread %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-X86-64-IOSSIMULATOR // CHECK-TSAN-X86-64-IOSSIMULATOR-NOT: unsupported option // RUN: %clang -target x86_64-apple-tvossimulator -fsanitize=thread %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-X86-64-TVOSSIMULATOR // CHECK-TSAN-X86-64-TVOSSIMULATOR-NOT: unsupported option // RUN: %clang -target i386-apple-darwin -fsanitize=thread %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-I386-DARWIN // CHECK-TSAN-I386-DARWIN: unsupported option '-fsanitize=thread' for target 'i386-apple-darwin' // RUN: %clang -target arm-apple-ios -fsanitize=thread %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-ARM-IOS // CHECK-TSAN-ARM-IOS: unsupported option '-fsanitize=thread' for target 'arm-apple-ios' // RUN: %clang -target i386-apple-iossimulator -fsanitize=thread %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-I386-IOSSIMULATOR // CHECK-TSAN-I386-IOSSIMULATOR: unsupported option '-fsanitize=thread' for target 'i386-apple-iossimulator-simulator' // RUN: %clang -target i386-apple-tvossimulator -fsanitize=thread %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-I386-TVOSSIMULATOR // CHECK-TSAN-I386-TVOSSIMULATOR: unsupported option '-fsanitize=thread' for target 'i386-apple-tvossimulator-simulator' // RUN: %clang -target x86_64-linux-gnu -fsanitize=thread -fsanitize-thread-memory-access %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-MEMORY-ACCESS // CHECK-TSAN-MEMORY-ACCESS-NOT: -cc1{{.*}}tsan-instrument-memory-accesses=0 // CHECK-TSAN-MEMORY-ACCESS-NOT: -cc1{{.*}}tsan-instrument-memintrinsics=0 // RUN: %clang -target x86_64-linux-gnu -fsanitize=thread -fno-sanitize-thread-memory-access %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-MEMORY-ACCESS-OFF // CHECK-TSAN-MEMORY-ACCESS-OFF: -cc1{{.*}}tsan-instrument-memory-accesses=0{{.*}}tsan-instrument-memintrinsics=0 // RUN: %clang -target x86_64-linux-gnu -fsanitize=thread -fno-sanitize-thread-memory-access -fsanitize-thread-memory-access %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-MEMORY-ACCESS-BOTH // CHECK-TSAN-MEMORY-ACCESS-BOTH-NOT: -cc1{{.*}}tsan-instrument-memory-accesses=0 // CHECK-TSAN-MEMORY-ACCESS-BOTH-NOT: -cc1{{.*}}tsan-instrument-memintrinsics=0 // RUN: %clang -target x86_64-linux-gnu -fsanitize=thread -fsanitize-thread-memory-access -fno-sanitize-thread-memory-access %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-MEMORY-ACCESS-BOTH-OFF // CHECK-TSAN-MEMORY-ACCESS-BOTH-OFF: -cc1{{.*}}tsan-instrument-memory-accesses=0{{.*}}tsan-instrument-memintrinsics=0 // RUN: %clang -target x86_64-linux-gnu -fsanitize=thread -fsanitize-thread-func-entry-exit %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-FUNC-ENTRY-EXIT // CHECK-TSAN-FUNC-ENTRY-EXIT-NOT: -cc1{{.*}}tsan-instrument-func-entry-exit=0 // RUN: %clang -target x86_64-linux-gnu -fsanitize=thread -fno-sanitize-thread-func-entry-exit %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-FUNC-ENTRY-EXIT-OFF // CHECK-TSAN-FUNC-ENTRY-EXIT-OFF: -cc1{{.*}}tsan-instrument-func-entry-exit=0 // RUN: %clang -target x86_64-linux-gnu -fsanitize=thread -fno-sanitize-thread-func-entry-exit -fsanitize-thread-func-entry-exit %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-FUNC-ENTRY-EXIT-BOTH // CHECK-TSAN-FUNC-ENTRY-EXIT-BOTH-NOT: -cc1{{.*}}tsan-instrument-func-entry-exit=0 // RUN: %clang -target x86_64-linux-gnu -fsanitize=thread -fsanitize-thread-func-entry-exit -fno-sanitize-thread-func-entry-exit %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-FUNC-ENTRY-EXIT-BOTH-OFF // CHECK-TSAN-FUNC-ENTRY-EXIT-BOTH-OFF: -cc1{{.*}}tsan-instrument-func-entry-exit=0 // RUN: %clang -target x86_64-linux-gnu -fsanitize=thread -fsanitize-thread-atomics %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-ATOMICS // CHECK-TSAN-ATOMICS-NOT: -cc1{{.*}}tsan-instrument-atomics=0 // RUN: %clang -target x86_64-linux-gnu -fsanitize=thread -fno-sanitize-thread-atomics %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-ATOMICS-OFF // CHECK-TSAN-ATOMICS-OFF: -cc1{{.*}}tsan-instrument-atomics=0 // RUN: %clang -target x86_64-linux-gnu -fsanitize=thread -fno-sanitize-thread-atomics -fsanitize-thread-atomics %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-ATOMICS-BOTH // CHECK-TSAN-ATOMICS-BOTH-NOT: -cc1{{.*}}tsan-instrument-atomics=0 // RUN: %clang -target x86_64-linux-gnu -fsanitize=thread -fsanitize-thread-atomics -fno-sanitize-thread-atomics %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-ATOMICS-BOTH-OFF // CHECK-TSAN-ATOMICS-BOTH-OFF: -cc1{{.*}}tsan-instrument-atomics=0 // RUN: %clang -target x86_64-apple-darwin10 -fsanitize=function %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-FSAN-DARWIN // RUN: %clang -target i386-apple-darwin10 -fsanitize=function %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-FSAN-DARWIN // CHECK-FSAN-DARWIN: -cc1{{.*}}"-fsanitize=function" "-fsanitize-recover=function" // RUN: %clang -target x86_64-apple-darwin10 -mmacosx-version-min=10.8 -fsanitize=vptr %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-VPTR-DARWIN-OLD // CHECK-VPTR-DARWIN-OLD: unsupported option '-fsanitize=vptr' for target 'x86_64-apple-darwin10' // RUN: %clang -target arm-apple-ios4 -fsanitize=vptr %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-VPTR-IOS-OLD // CHECK-VPTR-IOS-OLD: unsupported option '-fsanitize=vptr' for target 'arm-apple-ios4' // RUN: %clang -target aarch64-apple-darwin15.0.0 -fsanitize=vptr %s -### 2>&1 // OK // RUN: %clang -target x86_64-apple-darwin15.0.0-simulator -fsanitize=vptr %s -### 2>&1 // OK // RUN: %clang -target x86_64-apple-darwin10 -mmacosx-version-min=10.9 -fsanitize=alignment,vptr %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-VPTR-DARWIN-NEW // CHECK-VPTR-DARWIN-NEW: -fsanitize=alignment,vptr // RUN: %clang -target armv7-apple-ios7 -miphoneos-version-min=7.0 -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-IOS // CHECK-ASAN-IOS: -fsanitize=address // RUN %clang -target i386-pc-openbsd -fsanitize=undefined %s -### 2>&1 | FileCheck --check-prefix=CHECK-UBSAN-OPENBSD // CHECK-UBSAN-OPENBSD: -fsanitize=undefined // RUN: %clang -target i386-pc-openbsd -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-OPENBSD // CHECK-ASAN-OPENBSD: unsupported option '-fsanitize=address' for target 'i386-pc-openbsd' // RUN: %clang -target i386-pc-openbsd -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-LSAN-OPENBSD // CHECK-LSAN-OPENBSD: unsupported option '-fsanitize=leak' for target 'i386-pc-openbsd' // RUN: %clang -target i386-pc-openbsd -fsanitize=thread %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-OPENBSD // CHECK-TSAN-OPENBSD: unsupported option '-fsanitize=thread' for target 'i386-pc-openbsd' // RUN: %clang -target i386-pc-openbsd -fsanitize=memory %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-MSAN-OPENBSD // CHECK-MSAN-OPENBSD: unsupported option '-fsanitize=memory' for target 'i386-pc-openbsd' // RUN: %clang -target x86_64-apple-darwin -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-LSAN-X86-64-DARWIN // CHECK-LSAN-X86-64-DARWIN: unsupported option // RUN: %clang -target x86_64-apple-iossimulator -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-LSAN-X86-64-IOSSIMULATOR // CHECK-LSAN-X86-64-IOSSIMULATOR: unsupported option // RUN: %clang -target x86_64-apple-tvossimulator -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-LSAN-X86-64-TVOSSIMULATOR // CHECK-LSAN-X86-64-TVOSSIMULATOR: unsupported option // RUN: %clang -target i386-apple-darwin -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-LSAN-I386-DARWIN // CHECK-LSAN-I386-DARWIN: unsupported option // RUN: %clang -target arm-apple-ios -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-LSAN-ARM-IOS // CHECK-LSAN-ARM-IOS: unsupported option // RUN: %clang -target i386-apple-iossimulator -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-LSAN-I386-IOSSIMULATOR // CHECK-LSAN-I386-IOSSIMULATOR: unsupported option // RUN: %clang -target i386-apple-tvossimulator -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-LSAN-I386-TVOSSIMULATOR // CHECK-LSAN-I386-TVOSSIMULATOR: unsupported option // RUN: %clang -target x86_64-linux-gnu -fvisibility=hidden -fsanitize=cfi -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI // RUN: %clang -target x86_64-apple-darwin10 -fvisibility=hidden -fsanitize=cfi -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI // RUN: %clang -target x86_64-pc-win32 -fvisibility=hidden -fsanitize=cfi -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-NOMFCALL // RUN: %clang -target x86_64-linux-gnu -fvisibility=hidden -fsanitize=cfi -fsanitize-cfi-cross-dso -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-NOMFCALL // RUN: %clang -target x86_64-linux-gnu -fvisibility=hidden -fsanitize=cfi-derived-cast -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-DCAST // RUN: %clang -target x86_64-linux-gnu -fvisibility=hidden -fsanitize=cfi-unrelated-cast -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-UCAST // RUN: %clang -target x86_64-linux-gnu -flto -fvisibility=hidden -fsanitize=cfi-nvcall -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-NVCALL // RUN: %clang -target x86_64-linux-gnu -flto -fvisibility=hidden -fsanitize=cfi-vcall -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-VCALL // RUN: %clang -target arm-linux-gnu -fvisibility=hidden -fsanitize=cfi -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI // RUN: %clang -target aarch64-linux-gnu -fvisibility=hidden -fsanitize=cfi -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI // RUN: %clang -target arm-linux-android -fvisibility=hidden -fsanitize=cfi -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI // RUN: %clang -target aarch64-linux-android -fvisibility=hidden -fsanitize=cfi -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI // CHECK-CFI: -emit-llvm-bc{{.*}}-fsanitize=cfi-derived-cast,cfi-icall,cfi-mfcall,cfi-unrelated-cast,cfi-nvcall,cfi-vcall // CHECK-CFI-NOMFCALL: -emit-llvm-bc{{.*}}-fsanitize=cfi-derived-cast,cfi-icall,cfi-unrelated-cast,cfi-nvcall,cfi-vcall // CHECK-CFI-DCAST: -emit-llvm-bc{{.*}}-fsanitize=cfi-derived-cast // CHECK-CFI-UCAST: -emit-llvm-bc{{.*}}-fsanitize=cfi-unrelated-cast // CHECK-CFI-NVCALL: -emit-llvm-bc{{.*}}-fsanitize=cfi-nvcall // CHECK-CFI-VCALL: -emit-llvm-bc{{.*}}-fsanitize=cfi-vcall // RUN: %clang -target x86_64-linux-gnu -fvisibility=hidden -flto -fsanitize=cfi-derived-cast -fno-lto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-NOLTO // CHECK-CFI-NOLTO: '-fsanitize=cfi-derived-cast' only allowed with '-flto' // RUN: %clang -target x86_64-linux-gnu -flto -fsanitize=cfi-derived-cast -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-NOVIS // CHECK-CFI-NOVIS: '-fsanitize=cfi-derived-cast' only allowed with '-fvisibility=' // RUN: %clang -target x86_64-pc-win32 -flto -fsanitize=cfi-derived-cast -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-NOVIS-NOERROR // RUN: echo > %t.o // RUN: %clang -target x86_64-linux-gnu -flto -fsanitize=cfi-derived-cast %t.o -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-NOVIS-NOERROR // CHECK-CFI-NOVIS-NOERROR-NOT: only allowed with // RUN: %clang -target mips-unknown-linux -fsanitize=cfi-icall %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-ICALL-MIPS // CHECK-CFI-ICALL-MIPS: unsupported option '-fsanitize=cfi-icall' for target 'mips-unknown-linux' // RUN: %clang -target x86_64-linux-gnu -fsanitize-trap=address -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-TRAP // CHECK-ASAN-TRAP: error: unsupported argument 'address' to option '-fsanitize-trap' // RUN: %clang -target x86_64-linux-gnu -fsanitize-trap=hwaddress -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-HWASAN-TRAP // CHECK-HWASAN-TRAP: error: unsupported argument 'hwaddress' to option '-fsanitize-trap' // RUN: %clang -target x86_64-apple-darwin10 -mmacosx-version-min=10.7 -flto -fsanitize=cfi-vcall -fno-sanitize-trap=cfi -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-NOTRAP-OLD-MACOS // CHECK-CFI-NOTRAP-OLD-MACOS: error: unsupported option '-fno-sanitize-trap=cfi-vcall' for target 'x86_64-apple-darwin10' // RUN: %clang -target x86_64-pc-win32 -flto -fsanitize=cfi-vcall -fno-sanitize-trap=cfi -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-NOTRAP-WIN // CHECK-CFI-NOTRAP-WIN: -emit-llvm-bc // CHECK-CFI-NOTRAP-WIN-NOT: -fsanitize-trap=cfi // RUN: %clang -target x86_64-linux-gnu -fsanitize=cfi -fsanitize-cfi-cross-dso -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-CROSS-DSO // RUN: %clang -target x86_64-linux-gnu -fsanitize=cfi -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-NO-CROSS-DSO // RUN: %clang -target x86_64-linux-gnu -fsanitize=cfi -fsanitize-cfi-cross-dso -fno-sanitize-cfi-cross-dso -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-NO-CROSS-DSO // RUN: %clang -target x86_64-linux-gnu -fsanitize=cfi -fno-sanitize-cfi-cross-dso -fsanitize-cfi-cross-dso -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-CROSS-DSO // CHECK-CFI-CROSS-DSO: -emit-llvm-bc // CHECK-CFI-CROSS-DSO: -fsanitize-cfi-cross-dso // CHECK-CFI-NO-CROSS-DSO: -emit-llvm-bc // CHECK-CFI-NO-CROSS-DSO-NOT: -fsanitize-cfi-cross-dso // RUN: %clang -target x86_64-linux-gnu -fvisibility=hidden -fsanitize=cfi-mfcall -fsanitize-cfi-cross-dso -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-MFCALL-CROSS-DSO // CHECK-CFI-MFCALL-CROSS-DSO: '-fsanitize=cfi-mfcall' not allowed with '-fsanitize-cfi-cross-dso' // RUN: %clang -target x86_64-linux-gnu -fsanitize=cfi-icall -fsanitize-cfi-icall-generalize-pointers -fvisibility=hidden -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-GENERALIZE-POINTERS // RUN: %clang -target x86_64-linux-gnu -fsanitize=cfi-icall -fvisibility=hidden -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-CFI-GENERALIZE-POINTERS // CHECK-CFI-GENERALIZE-POINTERS: -fsanitize-cfi-icall-generalize-pointers // CHECK-NO-CFI-GENERALIZE-POINTERS-NOT: -fsanitize-cfi-icall-generalize-pointers // RUN: %clang -target x86_64-linux-gnu -fsanitize=cfi-icall -fsanitize-cfi-icall-generalize-pointers -fsanitize-cfi-cross-dso -fvisibility=hidden -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-GENERALIZE-AND-CROSS-DSO // CHECK-CFI-GENERALIZE-AND-CROSS-DSO: error: invalid argument '-fsanitize-cfi-cross-dso' not allowed with '-fsanitize-cfi-icall-generalize-pointers' // RUN: %clang -target x86_64-linux-gnu -fsanitize=cfi-icall -fsanitize-cfi-canonical-jump-tables -fvisibility=hidden -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-CANONICAL-JUMP-TABLES // RUN: %clang -target x86_64-linux-gnu -fsanitize=cfi-icall -fno-sanitize-cfi-canonical-jump-tables -fvisibility=hidden -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-CFI-CANONICAL-JUMP-TABLES // RUN: %clang -target x86_64-linux-gnu -fsanitize=cfi-icall -fvisibility=hidden -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-CANONICAL-JUMP-TABLES // CHECK-CFI-CANONICAL-JUMP-TABLES: -fsanitize-cfi-canonical-jump-tables // CHECK-NO-CFI-CANONICAL-JUMP-TABLES-NOT: -fsanitize-cfi-canonical-jump-tables // RUN: %clang -target x86_64-linux-gnu -fsanitize=cfi -fsanitize-stats -flto -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-STATS // CHECK-CFI-STATS: -fsanitize-stats // RUN: %clang_cl -fsanitize=address -c -MDd -### -- %s 2>&1 | FileCheck %s -check-prefix=CHECK-ASAN-DEBUGRTL // RUN: %clang_cl -fsanitize=address -c -MTd -### -- %s 2>&1 | FileCheck %s -check-prefix=CHECK-ASAN-DEBUGRTL // RUN: %clang_cl -fsanitize=address -c -LDd -### -- %s 2>&1 | FileCheck %s -check-prefix=CHECK-ASAN-DEBUGRTL // RUN: %clang_cl -fsanitize=address -c -MD -MDd -### -- %s 2>&1 | FileCheck %s -check-prefix=CHECK-ASAN-DEBUGRTL // RUN: %clang_cl -fsanitize=address -c -MT -MTd -### -- %s 2>&1 | FileCheck %s -check-prefix=CHECK-ASAN-DEBUGRTL // RUN: %clang_cl -fsanitize=address -c -LD -LDd -### -- %s 2>&1 | FileCheck %s -check-prefix=CHECK-ASAN-DEBUGRTL // CHECK-ASAN-DEBUGRTL: error: invalid argument // CHECK-ASAN-DEBUGRTL: not allowed with '-fsanitize=address' // CHECK-ASAN-DEBUGRTL: note: AddressSanitizer doesn't support linking with debug runtime libraries yet // RUN: %clang_cl -fsanitize=address -c -MT -### -- %s 2>&1 | FileCheck %s -check-prefix=CHECK-ASAN-RELEASERTL // RUN: %clang_cl -fsanitize=address -c -MD -### -- %s 2>&1 | FileCheck %s -check-prefix=CHECK-ASAN-RELEASERTL // RUN: %clang_cl -fsanitize=address -c -LD -### -- %s 2>&1 | FileCheck %s -check-prefix=CHECK-ASAN-RELEASERTL // RUN: %clang_cl -fsanitize=address -c -MTd -MT -### -- %s 2>&1 | FileCheck %s -check-prefix=CHECK-ASAN-RELEASERTL // RUN: %clang_cl -fsanitize=address -c -MDd -MD -### -- %s 2>&1 | FileCheck %s -check-prefix=CHECK-ASAN-RELEASERTL // RUN: %clang_cl -fsanitize=address -c -LDd -LD -### -- %s 2>&1 | FileCheck %s -check-prefix=CHECK-ASAN-RELEASERTL // CHECK-ASAN-RELEASERTL-NOT: error: invalid argument // RUN: %clang -fno-sanitize=safe-stack -### %s 2>&1 | FileCheck %s -check-prefix=NOSP // NOSP-NOT: "-fsanitize=safe-stack" // RUN: %clang -target x86_64-linux-gnu -fsanitize=safe-stack -### %s 2>&1 | FileCheck %s -check-prefix=NO-SP // RUN: %clang -target x86_64-linux-gnu -fsanitize=address,safe-stack -### %s 2>&1 | FileCheck %s -check-prefix=SP-ASAN // RUN: %clang -target x86_64-linux-gnu -fstack-protector -fsanitize=safe-stack -### %s 2>&1 | FileCheck %s -check-prefix=SP // RUN: %clang -target x86_64-linux-gnu -fsanitize=safe-stack -fstack-protector-all -### %s 2>&1 | FileCheck %s -check-prefix=SP // RUN: %clang -target arm-linux-androideabi -fsanitize=safe-stack -### %s 2>&1 | FileCheck %s -check-prefix=NO-SP // RUN: %clang -target aarch64-linux-android -fsanitize=safe-stack -### %s 2>&1 | FileCheck %s -check-prefix=NO-SP // RUN: %clang -target i386-contiki-unknown -fsanitize=safe-stack -### %s 2>&1 | FileCheck %s -check-prefix=NO-SP // NO-SP-NOT: stack-protector // NO-SP: "-fsanitize=safe-stack" // SP-ASAN: error: invalid argument '-fsanitize=safe-stack' not allowed with '-fsanitize=address' // SP: "-fsanitize=safe-stack" // SP: -stack-protector // NO-SP-NOT: stack-protector // RUN: %clang -target powerpc64-unknown-linux-gnu -fsanitize=memory %s -### 2>&1 | FileCheck %s -check-prefix=CHECK-SANM // RUN: %clang -target powerpc64le-unknown-linux-gnu -fsanitize=memory %s -### 2>&1 | FileCheck %s -check-prefix=CHECK-SANM // CHECK-SANM: "-fsanitize=memory" // RUN: %clang -target aarch64-unknown-cloudabi -fsanitize=safe-stack %s -### 2>&1 | FileCheck %s -check-prefix=SAFESTACK-CLOUDABI // RUN: %clang -target x86_64-unknown-cloudabi -fsanitize=safe-stack %s -### 2>&1 | FileCheck %s -check-prefix=SAFESTACK-CLOUDABI // SAFESTACK-CLOUDABI: "-fsanitize=safe-stack" // * NetBSD; please keep ordered as in Sanitizers.def * // RUN: %clang -target i386--netbsd -fsanitize=address %s -### 2>&1 | FileCheck %s -check-prefix=ADDRESS-NETBSD // RUN: %clang -target x86_64--netbsd -fsanitize=address %s -### 2>&1 | FileCheck %s -check-prefix=ADDRESS-NETBSD // ADDRESS-NETBSD: "-fsanitize=address" // RUN: %clang -target x86_64--netbsd -fsanitize=kernel-address %s -### 2>&1 | FileCheck %s -check-prefix=KERNEL-ADDRESS-NETBSD // KERNEL-ADDRESS-NETBSD: "-fsanitize=kernel-address" // RUN: %clang -target x86_64--netbsd -fsanitize=hwaddress %s -### 2>&1 | FileCheck %s -check-prefix=HWADDRESS-NETBSD // HWADDRESS-NETBSD: "-fsanitize=hwaddress" // RUN: %clang -target x86_64--netbsd -fsanitize=kernel-hwaddress %s -### 2>&1 | FileCheck %s -check-prefix=KERNEL-HWADDRESS-NETBSD // KERNEL-HWADDRESS-NETBSD: "-fsanitize=kernel-hwaddress" // RUN: %clang -target x86_64--netbsd -fsanitize=memory %s -### 2>&1 | FileCheck %s -check-prefix=MEMORY-NETBSD // MEMORY-NETBSD: "-fsanitize=memory" // RUN: %clang -target x86_64--netbsd -fsanitize=kernel-memory %s -### 2>&1 | FileCheck %s -check-prefix=KERNEL-MEMORY-NETBSD // KERNEL-MEMORY-NETBSD: "-fsanitize=kernel-memory" // RUN: %clang -target x86_64--netbsd -fsanitize=thread %s -### 2>&1 | FileCheck %s -check-prefix=THREAD-NETBSD // THREAD-NETBSD: "-fsanitize=thread" // RUN: %clang -target i386--netbsd -fsanitize=leak %s -### 2>&1 | FileCheck %s -check-prefix=LEAK-NETBSD // RUN: %clang -target x86_64--netbsd -fsanitize=leak %s -### 2>&1 | FileCheck %s -check-prefix=LEAK-NETBSD // LEAK-NETBSD: "-fsanitize=leak" // RUN: %clang -target i386--netbsd -fsanitize=function %s -### 2>&1 | FileCheck %s -check-prefix=FUNCTION-NETBSD // RUN: %clang -target x86_64--netbsd -fsanitize=function %s -### 2>&1 | FileCheck %s -check-prefix=FUNCTION-NETBSD // FUNCTION-NETBSD: "-fsanitize=function" // RUN: %clang -target i386--netbsd -fsanitize=vptr %s -### 2>&1 | FileCheck %s -check-prefix=VPTR-NETBSD // RUN: %clang -target x86_64--netbsd -fsanitize=vptr %s -### 2>&1 | FileCheck %s -check-prefix=VPTR-NETBSD // VPTR-NETBSD: "-fsanitize=vptr" // RUN: %clang -target x86_64--netbsd -fsanitize=dataflow %s -### 2>&1 | FileCheck %s -check-prefix=DATAFLOW-NETBSD // DATAFLOW-NETBSD: "-fsanitize=dataflow" // RUN: %clang -target i386--netbsd -fsanitize=cfi %s -### 2>&1 | FileCheck %s -check-prefix=CFI-NETBSD // RUN: %clang -target x86_64--netbsd -fsanitize=cfi %s -### 2>&1 | FileCheck %s -check-prefix=CFI-NETBSD // CFI-NETBSD: "-fsanitize=cfi-derived-cast,cfi-icall,cfi-mfcall,cfi-unrelated-cast,cfi-nvcall,cfi-vcall" // RUN: %clang -target i386--netbsd -fsanitize=safe-stack %s -### 2>&1 | FileCheck %s -check-prefix=SAFESTACK-NETBSD // RUN: %clang -target x86_64--netbsd -fsanitize=safe-stack %s -### 2>&1 | FileCheck %s -check-prefix=SAFESTACK-NETBSD // SAFESTACK-NETBSD: "-fsanitize=safe-stack" // RUN: %clang -target x86_64--netbsd -fsanitize=shadow-call-stack %s -### 2>&1 | FileCheck %s -check-prefix=SHADOW-CALL-STACK-NETBSD // SHADOW-CALL-STACK-NETBSD: "-fsanitize=shadow-call-stack" // RUN: %clang -target i386--netbsd -fsanitize=undefined %s -### 2>&1 | FileCheck %s -check-prefix=UNDEFINED-NETBSD // RUN: %clang -target x86_64--netbsd -fsanitize=undefined %s -### 2>&1 | FileCheck %s -check-prefix=UNDEFINED-NETBSD // UNDEFINED-NETBSD: "-fsanitize={{.*}} // RUN: %clang -target i386--netbsd -fsanitize=scudo %s -### 2>&1 | FileCheck %s -check-prefix=SCUDO-NETBSD // RUN: %clang -target x86_64--netbsd -fsanitize=scudo %s -### 2>&1 | FileCheck %s -check-prefix=SCUDO-NETBSD // SCUDO-NETBSD: "-fsanitize=scudo" // RUN: %clang -target i386--solaris -fsanitize=function %s -### 2>&1 | FileCheck %s -check-prefix=FUNCTION-SOLARIS // RUN: %clang -target x86_64--solaris -fsanitize=function %s -### 2>&1 | FileCheck %s -check-prefix=FUNCTION-SOLARIS // FUNCTION-SOLARIS: "-fsanitize=function" // RUN: %clang -target x86_64-scei-ps4 -fsanitize=function -fsanitize=undefined %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-FSAN-UBSAN-PS4 // CHECK-FSAN-UBSAN-PS4: unsupported option '-fsanitize=function' for target 'x86_64-scei-ps4' // RUN: %clang -target x86_64-scei-ps4 -fsanitize=function %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-FSAN-PS4 // CHECK-FSAN-PS4: unsupported option '-fsanitize=function' for target 'x86_64-scei-ps4' // RUN: %clang -target x86_64-scei-ps4 -fsanitize=dataflow %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-DFSAN-PS4 // CHECK-DFSAN-PS4: unsupported option '-fsanitize=dataflow' for target 'x86_64-scei-ps4' // RUN: %clang -target x86_64-scei-ps4 -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-LSAN-PS4 // CHECK-LSAN-PS4: unsupported option '-fsanitize=leak' for target 'x86_64-scei-ps4' // RUN: %clang -target x86_64-scei-ps4 -fsanitize=memory %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-MSAN-PS4 // CHECK-MSAN-PS4: unsupported option '-fsanitize=memory' for target 'x86_64-scei-ps4' // RUN: %clang -target x86_64-scei-ps4 -fsanitize=thread %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-PS4 // CHECK-TSAN-PS4: unsupported option '-fsanitize=thread' for target 'x86_64-scei-ps4' // RUN: %clang -target x86_64-scei-ps4 -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-PS4 // Make sure there are no *.{o,bc} or -l passed before the ASan library. // CHECK-ASAN-PS4-NOT: {{(\.(o|bc)"? |-l).*-lSceDbgAddressSanitizer_stub_weak}} // CHECK-ASAN-PS4: --dependent-lib=libSceDbgAddressSanitizer_stub_weak.a // CHECK-ASAN-PS4-NOT: {{(\.(o|bc)"? |-l).*-lSceDbgAddressSanitizer_stub_weak}} // CHECK-ASAN-PS4: -lSceDbgAddressSanitizer_stub_weak // RUN: %clang -target x86_64-scei-ps4 -fsanitize=address -nostdlib %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-NOLIB-PS4 // RUN: %clang -target x86_64-scei-ps4 -fsanitize=address -nodefaultlibs %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-NOLIB-PS4 // RUN: %clang -target x86_64-scei-ps4 -fsanitize=address -nodefaultlibs -nostdlib %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-NOLIB-PS4 // CHECK-ASAN-NOLIB-PS4-NOT: SceDbgAddressSanitizer_stub_weak // RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fsanitize-minimal-runtime %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-MINIMAL // CHECK-ASAN-MINIMAL: error: invalid argument '-fsanitize-minimal-runtime' not allowed with '-fsanitize=address' // RUN: %clang -target x86_64-linux-gnu -fsanitize=thread -fsanitize-minimal-runtime %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-MINIMAL // CHECK-TSAN-MINIMAL: error: invalid argument '-fsanitize-minimal-runtime' not allowed with '-fsanitize=thread' // RUN: %clang -target x86_64-linux-gnu -fsanitize=undefined -fsanitize-minimal-runtime %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-UBSAN-MINIMAL // CHECK-UBSAN-MINIMAL: "-fsanitize={{((signed-integer-overflow|integer-divide-by-zero|shift-base|shift-exponent|unreachable|return|vla-bound|alignment|null|pointer-overflow|float-cast-overflow|array-bounds|enum|bool|builtin|returns-nonnull-attribute|nonnull-attribute),?){17}"}} // CHECK-UBSAN-MINIMAL: "-fsanitize-minimal-runtime" // RUN: %clang -target x86_64-linux-gnu -fsanitize=undefined -fsanitize=function -fsanitize-minimal-runtime %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-UBSAN-FUNCTION-MINIMAL // CHECK-UBSAN-FUNCTION-MINIMAL: error: invalid argument '-fsanitize=function' not allowed with '-fsanitize-minimal-runtime' // RUN: %clang -target x86_64-linux-gnu -fsanitize=undefined -fsanitize=vptr -fsanitize-minimal-runtime %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-UBSAN-VPTR-MINIMAL // CHECK-UBSAN-VPTR-MINIMAL: error: invalid argument '-fsanitize=vptr' not allowed with '-fsanitize-minimal-runtime' // RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fsanitize-minimal-runtime -fsanitize=undefined %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-UBSAN-MINIMAL // CHECK-ASAN-UBSAN-MINIMAL: error: invalid argument '-fsanitize-minimal-runtime' not allowed with '-fsanitize=address' // RUN: %clang -target x86_64-linux-gnu -fsanitize=hwaddress -fsanitize-minimal-runtime %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-HWASAN-MINIMAL // CHECK-HWASAN-MINIMAL: error: invalid argument '-fsanitize-minimal-runtime' not allowed with '-fsanitize=hwaddress' // RUN: %clang -target x86_64-linux-gnu -fsanitize=cfi -flto -fvisibility=hidden -fsanitize-minimal-runtime %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-MINIMAL // CHECK-CFI-MINIMAL: "-fsanitize=cfi-derived-cast,cfi-icall,cfi-mfcall,cfi-unrelated-cast,cfi-nvcall,cfi-vcall" // CHECK-CFI-MINIMAL: "-fsanitize-trap=cfi-derived-cast,cfi-icall,cfi-mfcall,cfi-unrelated-cast,cfi-nvcall,cfi-vcall" // CHECK-CFI-MINIMAL: "-fsanitize-minimal-runtime" // RUN: %clang -target x86_64-linux-gnu -fsanitize=cfi -fno-sanitize-trap=cfi-icall -flto -fvisibility=hidden -fsanitize-minimal-runtime %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-NOTRAP-MINIMAL // CHECK-CFI-NOTRAP-MINIMAL: error: invalid argument 'fsanitize-minimal-runtime' only allowed with 'fsanitize-trap=cfi' // RUN: %clang -target x86_64-linux-gnu -fsanitize=cfi -fno-sanitize-trap=cfi-icall -fno-sanitize=cfi-icall -flto -fvisibility=hidden -fsanitize-minimal-runtime %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CFI-NOICALL-MINIMAL // CHECK-CFI-NOICALL-MINIMAL: "-fsanitize=cfi-derived-cast,cfi-mfcall,cfi-unrelated-cast,cfi-nvcall,cfi-vcall" // CHECK-CFI-NOICALL-MINIMAL: "-fsanitize-trap=cfi-derived-cast,cfi-mfcall,cfi-unrelated-cast,cfi-nvcall,cfi-vcall" // CHECK-CFI-NOICALL-MINIMAL: "-fsanitize-minimal-runtime" // RUN: %clang -target x86_64-linux-gnu -fsanitize=shadow-call-stack -fsanitize-minimal-runtime %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCS-MINIMAL // CHECK-SCS-MINIMAL: "-fsanitize=shadow-call-stack" // CHECK-SCS-MINIMAL: "-fsanitize-minimal-runtime" // RUN: %clang -target aarch64-linux-gnu -fsanitize=scudo %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO // RUN: %clang -target arm-linux-androideabi -fsanitize=scudo %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO // RUN: %clang -target x86_64-linux-gnu -fsanitize=scudo %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO // RUN: %clang -target i386-linux-gnu -fsanitize=scudo %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO // RUN: %clang -target mips64-unknown-linux-gnu -fsanitize=scudo %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO // RUN: %clang -target mips64el-unknown-linux-gnu -fsanitize=scudo %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO // RUN: %clang -target mips-unknown-linux-gnu -fsanitize=scudo %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO // RUN: %clang -target mipsel-unknown-linux-gnu -fsanitize=scudo %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO // RUN: %clang -target powerpc64-unknown-linux -fsanitize=scudo %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO // RUN: %clang -target powerpc64le-unknown-linux -fsanitize=scudo %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO // CHECK-SCUDO: "-fsanitize=scudo" // RUN: %clang -target x86_64-linux-gnu -fsanitize=scudo %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO-PIE // RUN: %clang -target arm-linux-androideabi -fsanitize=scudo %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO-PIE // CHECK-SCUDO-PIE: "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" // CHECK-SCUDO-PIE: "-pie" // RUN: %clang -target x86_64-linux-gnu -fsanitize=scudo,undefined %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO-UBSAN // CHECK-SCUDO-UBSAN: "-fsanitize={{.*}}scudo" // RUN: %clang -target x86_64-linux-gnu -fsanitize=scudo -fsanitize-minimal-runtime %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO-MINIMAL // CHECK-SCUDO-MINIMAL: "-fsanitize=scudo" // CHECK-SCUDO-MINIMAL: "-fsanitize-minimal-runtime" // RUN: %clang -target x86_64-linux-gnu -fsanitize=undefined,scudo -fsanitize-minimal-runtime %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO-UBSAN-MINIMAL // CHECK-SCUDO-UBSAN-MINIMAL: "-fsanitize={{.*}}scudo" // CHECK-SCUDO-UBSAN-MINIMAL: "-fsanitize-minimal-runtime" // RUN: %clang -target powerpc-unknown-linux -fsanitize=scudo %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-SCUDO // CHECK-NO-SCUDO: unsupported option // RUN: %clang -target x86_64-linux-gnu -fsanitize=scudo,address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO-ASAN // CHECK-SCUDO-ASAN: error: invalid argument '-fsanitize=scudo' not allowed with '-fsanitize=address' // RUN: %clang -target x86_64-linux-gnu -fsanitize=scudo,leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO-LSAN // CHECK-SCUDO-LSAN: error: invalid argument '-fsanitize=scudo' not allowed with '-fsanitize=leak' // RUN: %clang -target x86_64-linux-gnu -fsanitize=scudo,memory %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO-MSAN // CHECK-SCUDO-MSAN: error: invalid argument '-fsanitize=scudo' not allowed with '-fsanitize=memory' // RUN: %clang -target x86_64-linux-gnu -fsanitize=scudo,thread %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO-TSAN // CHECK-SCUDO-TSAN: error: invalid argument '-fsanitize=scudo' not allowed with '-fsanitize=thread' // RUN: %clang -target x86_64-linux-gnu -fsanitize=scudo,hwaddress %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO-HWASAN // CHECK-SCUDO-HWASAN: error: invalid argument '-fsanitize=scudo' not allowed with '-fsanitize=hwaddress' // // RUN: %clang -target x86_64-linux-gnu -fsanitize=scudo,kernel-memory %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO-KMSAN // CHECK-SCUDO-KMSAN: error: invalid argument '-fsanitize=kernel-memory' not allowed with '-fsanitize=scudo' // RUN: %clang -target x86_64-linux-gnu -fsanitize=hwaddress %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-HWASAN-INTERCEPTOR-ABI // RUN: %clang -target x86_64-linux-gnu -fsanitize=hwaddress -fsanitize-hwaddress-abi=interceptor %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-HWASAN-INTERCEPTOR-ABI // RUN: %clang -target x86_64-linux-gnu -fsanitize=hwaddress -fsanitize-hwaddress-abi=platform %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-HWASAN-PLATFORM-ABI // RUN: %clang -target x86_64-linux-gnu -fsanitize=hwaddress -fsanitize-hwaddress-abi=foo %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-HWASAN-FOO-ABI // CHECK-HWASAN-INTERCEPTOR-ABI: "-default-function-attr" "hwasan-abi=interceptor" // CHECK-HWASAN-INTERCEPTOR-ABI: "-target-feature" "+tagged-globals" // CHECK-HWASAN-PLATFORM-ABI: "-default-function-attr" "hwasan-abi=platform" // CHECK-HWASAN-PLATFORM-ABI: "-target-feature" "+tagged-globals" // CHECK-HWASAN-FOO-ABI: error: invalid value 'foo' in '-fsanitize-hwaddress-abi=foo' // RUN: %clang -target x86_64-linux-gnu -fsanitize=address,pointer-compare,pointer-subtract %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-POINTER-ALL // RUN: %clang -target x86_64-linux-gnu -fsanitize=pointer-compare %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-POINTER-CMP-NEEDS-ADDRESS // RUN: %clang -target x86_64-linux-gnu -fsanitize=pointer-subtract %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-POINTER-SUB-NEEDS-ADDRESS // RUN: %clang -target x86_64-linux-gnu -fsanitize=pointer-subtract -fno-sanitize=pointer-subtract %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-POINTER-SUB // RUN: %clang -target x86_64-linux-gnu -fsanitize=pointer-compare -fno-sanitize=pointer-compare %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-POINTER-CMP // CHECK-POINTER-ALL: -cc1{{.*}}-fsanitize={{[^"]*}}pointer-compare,pointer-subtract{{.*}}" {{.*}} "-mllvm" "-asan-detect-invalid-pointer-cmp" {{.*}}"-mllvm" "-asan-detect-invalid-pointer-sub" // CHECK-POINTER-CMP-NEEDS-ADDRESS: error: invalid argument '-fsanitize=pointer-compare' only allowed with '-fsanitize=address' // CHECK-POINTER-SUB-NEEDS-ADDRESS: error: invalid argument '-fsanitize=pointer-subtract' only allowed with '-fsanitize=address' // CHECK-NO-POINTER-SUB-NOT: {{.*}}asan-detect-invalid-pointer{{.*}} // CHECK-NO-POINTER-CMP-NOT: {{.*}}asan-detect-invalid-pointer{{.*}} // RUN: %clang -fsanitize=float-divide-by-zero %s -### 2>&1 | FileCheck %s --check-prefixes=CHECK-DIVBYZERO,CHECK-DIVBYZERO-RECOVER // RUN: %clang -fsanitize=float-divide-by-zero %s -fno-sanitize-recover=float-divide-by-zero -### 2>&1 | FileCheck %s --check-prefixes=CHECK-DIVBYZERO,CHECK-DIVBYZERO-NORECOVER // RUN: %clang -fsanitize=float-divide-by-zero -fsanitize-trap=float-divide-by-zero %s -### 2>&1 | FileCheck %s --check-prefixes=CHECK-DIVBYZERO,CHECK-DIVBYZERO-NORECOVER,CHECK-DIVBYZERO-TRAP // CHECK-DIVBYZERO: "-fsanitize=float-divide-by-zero" // CHECK-DIVBYZERO-RECOVER: "-fsanitize-recover=float-divide-by-zero" // CHECK-DIVBYZERO-NORECOVER-NOT: "-fsanitize-recover=float-divide-by-zero" // CHECK-DIVBYZERO-TRAP: "-fsanitize-trap=float-divide-by-zero" // RUN: %clang -fsanitize=float-divide-by-zero -fsanitize-minimal-runtime %s -### 2>&1 | FileCheck %s --check-prefixes=CHECK-DIVBYZERO,CHECK-DIVBYZERO-MINIMAL // CHECK-DIVBYZERO-MINIMAL: "-fsanitize-minimal-runtime" // RUN: %clang -fsanitize=undefined,float-divide-by-zero %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-DIVBYZERO-UBSAN // CHECK-DIVBYZERO-UBSAN: "-fsanitize={{.*}},float-divide-by-zero,{{.*}}"
the_stack_data/916476.c
/* $OpenBSD: strtol.c,v 1.9 2013/04/17 17:40:35 tedu Exp $ */ /*- * Copyright (c) 1990 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. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #include <ctype.h> #include <errno.h> #include <limits.h> #include <stdlib.h> /* * Convert a string to a long integer. * * Ignores `locale' stuff. Assumes that the upper and lower case * alphabets and digits are each contiguous. */ long strtol(const char *nptr, char **endptr, int base) { const char *s; long acc, cutoff; int c; int neg, any, cutlim; /* * Ensure that base is between 2 and 36 inclusive, or the special * value of 0. */ if (base != 0 && (base < 2 || base > 36)) { if (endptr != 0) *endptr = (char *)nptr; errno = EINVAL; return 0; } /* * Skip white space and pick up leading +/- sign if any. * If base is 0, allow 0x for hex and 0 for octal, else * assume decimal; if base is already 16, allow 0x. */ s = nptr; do { c = (unsigned char) *s++; } while (isspace(c)); if (c == '-') { neg = 1; c = *s++; } else { neg = 0; if (c == '+') c = *s++; } if ((base == 0 || base == 16) && c == '0' && (*s == 'x' || *s == 'X')) { c = s[1]; s += 2; base = 16; } if (base == 0) base = c == '0' ? 8 : 10; /* * Compute the cutoff value between legal numbers and illegal * numbers. That is the largest legal value, divided by the * base. An input number that is greater than this value, if * followed by a legal input character, is too big. One that * is equal to this value may be valid or not; the limit * between valid and invalid numbers is then based on the last * digit. For instance, if the range for longs is * [-2147483648..2147483647] and the input base is 10, * cutoff will be set to 214748364 and cutlim to either * 7 (neg==0) or 8 (neg==1), meaning that if we have accumulated * a value > 214748364, or equal but the next digit is > 7 (or 8), * the number is too big, and we will return a range error. * * Set any if any `digits' consumed; make it negative to indicate * overflow. */ cutoff = neg ? LONG_MIN : LONG_MAX; cutlim = cutoff % base; cutoff /= base; if (neg) { if (cutlim > 0) { cutlim -= base; cutoff += 1; } cutlim = -cutlim; } for (acc = 0, any = 0;; c = (unsigned char) *s++) { if (isdigit(c)) c -= '0'; else if (isalpha(c)) c -= isupper(c) ? 'A' - 10 : 'a' - 10; else break; if (c >= base) break; if (any < 0) continue; if (neg) { if (acc < cutoff || (acc == cutoff && c > cutlim)) { any = -1; acc = LONG_MIN; errno = ERANGE; } else { any = 1; acc *= base; acc -= c; } } else { if (acc > cutoff || (acc == cutoff && c > cutlim)) { any = -1; acc = LONG_MAX; errno = ERANGE; } else { any = 1; acc *= base; acc += c; } } } if (endptr != 0) *endptr = (char *) (any ? s - 1 : nptr); return (acc); }
the_stack_data/622492.c
// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null /* test that locals are renamed with . notation */ void abc(void *); void Test5(double X) { abc(&X); { int X; abc(&X); { float X; abc(&X); } } }
the_stack_data/181394124.c
#include <stdio.h> #include <stdlib.h> #include <string.h> /** * SHA-512 hash algorithm implementation * Code by Varul Srivastava */ #define MAX_LONG ((((1UL << 63) - 1) << 1) + 1) typedef unsigned long ul; ul W[80]; ul h[8] = {0x6a09e667f3bcc908, 0xbb67ae8584caa73b, 0x3c6ef372fe94f82b, 0xa54ff53a5f1d36f1, 0x510e527fade682d1, 0x9b05688c2b3e6c1f, 0x1f83d9abfb41bd6b, 0x5be0cd19137e2179}; ul K[80] = {0x428a2f98d728ae22, 0x7137449123ef65cd, 0xb5c0fbcfec4d3b2f, 0xe9b5dba58189dbbc, 0x3956c25bf348b538, 0x59f111f1b605d019, 0x923f82a4af194f9b, 0xab1c5ed5da6d8118, 0xd807aa98a3030242, 0x12835b0145706fbe, 0x243185be4ee4b28c, 0x550c7dc3d5ffb4e2, 0x72be5d74f27b896f, 0x80deb1fe3b1696b1, 0x9bdc06a725c71235, 0xc19bf174cf692694, 0xe49b69c19ef14ad2, 0xefbe4786384f25e3, 0x0fc19dc68b8cd5b5, 0x240ca1cc77ac9c65, 0x2de92c6f592b0275, 0x4a7484aa6ea6e483, 0x5cb0a9dcbd41fbd4, 0x76f988da831153b5, 0x983e5152ee66dfab, 0xa831c66d2db43210, 0xb00327c898fb213f, 0xbf597fc7beef0ee4, 0xc6e00bf33da88fc2, 0xd5a79147930aa725, 0x06ca6351e003826f, 0x142929670a0e6e70, 0x27b70a8546d22ffc, 0x2e1b21385c26c926, 0x4d2c6dfc5ac42aed, 0x53380d139d95b3df, 0x650a73548baf63de, 0x766a0abb3c77b2a8, 0x81c2c92e47edaee6, 0x92722c851482353b, 0xa2bfe8a14cf10364, 0xa81a664bbc423001, 0xc24b8b70d0f89791, 0xc76c51a30654be30, 0xd192e819d6ef5218, 0xd69906245565a910, 0xf40e35855771202a, 0x106aa07032bbd1b8, 0x19a4c116b8d2d0c8, 0x1e376c085141ab53, 0x2748774cdf8eeb99, 0x34b0bcb5e19b48a8, 0x391c0cb3c5c95a63, 0x4ed8aa4ae3418acb, 0x5b9cca4f7763e373, 0x682e6ff3d6b2b8a3, 0x748f82ee5defb2fc, 0x78a5636f43172f60, 0x84c87814a1f0ab72, 0x8cc702081a6439ec, 0x90befffa23631e28, 0xa4506cebde82bde9, 0xbef9a3f7b2c67915, 0xc67178f2e372532b, 0xca273eceea26619c, 0xd186b8c721c0c207, 0xeada7dd6cde0eb1e, 0xf57d4f7fee6ed178, 0x06f067aa72176fba, 0x0a637dc5a2c898a6, 0x113f9804bef90dae, 0x1b710b35131c471b, 0x28db77f523047d84, 0x32caab7b40c72493, 0x3c9ebe0a15c9bebc, 0x431d67c49c100d4c, 0x4cc5d4becb3e42b6, 0x597f299cfc657e2a, 0x5fcb6fab3ad6faec, 0x6c44198c4a475817}; ul majority(ul a, ul b, ul c) // O(1) { return ((a & b) ^ (b & c) ^ (c & a)); } ul rotate(ul n, int bits) // O(1) { ul tmp = (1L << bits) - 1; // printf("%lx ", tmp); tmp = (tmp & n); // printf("%lx ", tmp); n >>= bits; // printf("%lx ", n); tmp <<= (64 - bits); // printf("%lx ", tmp); n |= tmp; // printf("%lx ", n); return n; } ul conditional(ul a, ul b, ul c) // O(1) { return ((a & b) ^ ((~a) & c)); } ul rot_function1(ul a) { return (rotate(a, 28) ^ rotate(a, 34) ^ rotate(a, 39)); } ul rot_function2(ul a) { return (rotate(a, 14) ^ rotate(a, 18) ^ rotate(a, 41)); } ul overflow_addition(ul a, ul b) { return ((a + b) % MAX_LONG); } ul *round(ul *ar, int x) // return x and y as 2-D array { ul mixer_1 = overflow_addition(majority(ar[0], ar[1], ar[2]), rot_function1(ar[0])); ul mixer_2 = overflow_addition(overflow_addition(conditional(ar[4], ar[5], ar[6]), rot_function2(ar[4])), overflow_addition(overflow_addition(ar[7], W[x]), K[x])); ul *ar2 = (ul *)malloc(2 * sizeof(ul)); ar2[0] = overflow_addition(mixer_1, mixer_2); ar2[1] = overflow_addition(mixer_2, ar[3]); // printf(" Round %d X : %lx Y : %lx\n", x, ar2[0], ar2[1]); ar[7] = ar[6]; ar[6] = ar[5]; ar[5] = ar[4]; ar[4] = ar2[1]; ar[2] = ar[3]; ar[1] = ar[2]; ar[0] = ar[1]; ar[0] = ar2[0]; } void hash(ul *hashArr) { for (int x = 0; x < 80; x++) { round(hashArr, x); } for (int x = 0; x < 8; x++) { hashArr[x] = overflow_addition(hashArr[x], h[x]); } } void duplicate_W() { for (int i = 16; i < 79; i++) { ul s0 = (rotate(W[i - 15], 1) ^ rotate(W[i - 15], 8) ^ rotate(W[i - 15], 7)); ul s1 = (rotate(W[i - 2], 19) ^ rotate(W[i - 2], 61) ^ rotate(W[i - 2], 6)); W[i] = overflow_addition(overflow_addition(W[i - 16], s0), overflow_addition(W[i - 7], s1)); } } void displayHash(ul *ar, int l) { for (int x = 0; x < l; x++) { printf("%lx", ar[x]); } printf("\n"); } int main(int argc, char *argv[]) // for now assume size of string is less than 1024-64 bytes { // ul a = atol(argv[1]); // printf("\n[D]%lx Rotate right op\n", rotate(a, 3)); // exit(0); ul *ar = (ul *)malloc(sizeof(ul) * 8); int app_l = 1024; char argument[1024]; for (int x = 0; x < strlen(argv[1]); x++) { argument[x] = argv[1][x]; } for (int x = strlen(argv[1]); x < app_l; x++) { argument[x] = 0x00; } int max_x = 0; for (int x = 0; x < app_l; x += 8) { W[x / 8] = 0x00; for (int z = x; z < x + 8; z++) { W[x / 8] <<= 8; W[x / 8] |= argument[z]; } max_x = x / 8; } // for (int x = max_x + 1; x <= 15; x++) { // W[x] = (ul)0x0; // } for (int x = 0; x < 8; x++) { ar[x] = h[x]; } W[15] = (ul)strlen(argv[1]); duplicate_W(); hash(ar); displayHash(ar, 8); }
the_stack_data/25628.c
/* * fdisk_sun.c * * I think this is mostly, or entirely, due to * Jakub Jelinek ([email protected]), July 1996 * * Merged with fdisk for other architectures, aeb, June 1998. * * Sat Mar 20 EST 1999 Arnaldo Carvalho de Melo <[email protected]> * Internationalization * * Licensed under GPLv2, see file LICENSE in this source tree. */ #if ENABLE_FEATURE_SUN_LABEL #define SUNOS_SWAP 3 #define SUN_WHOLE_DISK 5 #define SUN_LABEL_MAGIC 0xDABE #define SUN_LABEL_MAGIC_SWAPPED 0xBEDA #define SUN_SSWAP16(x) (sun_other_endian ? fdisk_swap16(x) : (uint16_t)(x)) #define SUN_SSWAP32(x) (sun_other_endian ? fdisk_swap32(x) : (uint32_t)(x)) /* Copied from linux/major.h */ #define FLOPPY_MAJOR 2 #define SCSI_IOCTL_GET_IDLUN 0x5382 static smallint sun_other_endian; static smallint scsi_disk; static smallint floppy; #ifndef IDE0_MAJOR #define IDE0_MAJOR 3 #endif #ifndef IDE1_MAJOR #define IDE1_MAJOR 22 #endif static void guess_device_type(void) { struct stat bootstat; if (fstat(dev_fd, &bootstat) < 0) { scsi_disk = 0; floppy = 0; } else if (S_ISBLK(bootstat.st_mode) && (major(bootstat.st_rdev) == IDE0_MAJOR || major(bootstat.st_rdev) == IDE1_MAJOR)) { scsi_disk = 0; floppy = 0; } else if (S_ISBLK(bootstat.st_mode) && major(bootstat.st_rdev) == FLOPPY_MAJOR) { scsi_disk = 0; floppy = 1; } else { scsi_disk = 1; floppy = 0; } } static const char *const sun_sys_types[] = { "\x00" "Empty" , /* 0 */ "\x01" "Boot" , /* 1 */ "\x02" "SunOS root" , /* 2 */ "\x03" "SunOS swap" , /* SUNOS_SWAP */ "\x04" "SunOS usr" , /* 4 */ "\x05" "Whole disk" , /* SUN_WHOLE_DISK */ "\x06" "SunOS stand" , /* 6 */ "\x07" "SunOS var" , /* 7 */ "\x08" "SunOS home" , /* 8 */ "\x82" "Linux swap" , /* LINUX_SWAP */ "\x83" "Linux native", /* LINUX_NATIVE */ "\x8e" "Linux LVM" , /* 0x8e */ /* New (2.2.x) raid partition with autodetect using persistent superblock */ "\xfd" "Linux raid autodetect", /* 0xfd */ NULL }; static void set_sun_partition(int i, unsigned start, unsigned stop, int sysid) { sunlabel->infos[i].id = sysid; sunlabel->partitions[i].start_cylinder = SUN_SSWAP32(start / (g_heads * g_sectors)); sunlabel->partitions[i].num_sectors = SUN_SSWAP32(stop - start); set_changed(i); } static int check_sun_label(void) { unsigned short *ush; int csum; if (sunlabel->magic != SUN_LABEL_MAGIC && sunlabel->magic != SUN_LABEL_MAGIC_SWAPPED ) { current_label_type = LABEL_DOS; sun_other_endian = 0; return 0; } sun_other_endian = (sunlabel->magic == SUN_LABEL_MAGIC_SWAPPED); ush = ((unsigned short *) (sunlabel + 1)) - 1; for (csum = 0; ush >= (unsigned short *)sunlabel;) csum ^= *ush--; if (csum) { printf("Detected sun disklabel with wrong checksum.\n" "Probably you'll have to set all the values,\n" "e.g. heads, sectors, cylinders and partitions\n" "or force a fresh label (s command in main menu)\n"); } else { g_heads = SUN_SSWAP16(sunlabel->ntrks); g_cylinders = SUN_SSWAP16(sunlabel->ncyl); g_sectors = SUN_SSWAP16(sunlabel->nsect); } update_units(); current_label_type = LABEL_SUN; g_partitions = 8; return 1; } static const struct sun_predefined_drives { const char *vendor; const char *model; unsigned short sparecyl; unsigned short ncyl; unsigned short nacyl; unsigned short pcylcount; unsigned short ntrks; unsigned short nsect; unsigned short rspeed; } sun_drives[] = { { "Quantum","ProDrive 80S",1,832,2,834,6,34,3662}, { "Quantum","ProDrive 105S",1,974,2,1019,6,35,3662}, { "CDC","Wren IV 94171-344",3,1545,2,1549,9,46,3600}, { "IBM","DPES-31080",0,4901,2,4903,4,108,5400}, { "IBM","DORS-32160",0,1015,2,1017,67,62,5400}, { "IBM","DNES-318350",0,11199,2,11474,10,320,7200}, { "SEAGATE","ST34371",0,3880,2,3882,16,135,7228}, { "","SUN0104",1,974,2,1019,6,35,3662}, { "","SUN0207",4,1254,2,1272,9,36,3600}, { "","SUN0327",3,1545,2,1549,9,46,3600}, { "","SUN0340",0,1538,2,1544,6,72,4200}, { "","SUN0424",2,1151,2,2500,9,80,4400}, { "","SUN0535",0,1866,2,2500,7,80,5400}, { "","SUN0669",5,1614,2,1632,15,54,3600}, { "","SUN1.0G",5,1703,2,1931,15,80,3597}, { "","SUN1.05",0,2036,2,2038,14,72,5400}, { "","SUN1.3G",6,1965,2,3500,17,80,5400}, { "","SUN2.1G",0,2733,2,3500,19,80,5400}, { "IOMEGA","Jaz",0,1019,2,1021,64,32,5394}, }; static const struct sun_predefined_drives * sun_autoconfigure_scsi(void) { const struct sun_predefined_drives *p = NULL; #ifdef SCSI_IOCTL_GET_IDLUN unsigned int id[2]; char buffer[2048]; char buffer2[2048]; FILE *pfd; char *vendor; char *model; char *q; int i; if (ioctl(dev_fd, SCSI_IOCTL_GET_IDLUN, &id)) return NULL; sprintf(buffer, "Host: scsi%u Channel: %02u Id: %02u Lun: %02u\n", /* This is very wrong (works only if you have one HBA), but I haven't found a way how to get hostno from the current kernel */ 0, (id[0]>>16) & 0xff, id[0] & 0xff, (id[0]>>8) & 0xff ); pfd = fopen_for_read("/proc/scsi/scsi"); if (!pfd) { return NULL; } while (fgets(buffer2, 2048, pfd)) { if (strcmp(buffer, buffer2)) continue; if (!fgets(buffer2, 2048, pfd)) break; q = strstr(buffer2, "Vendor: "); if (!q) break; q += 8; vendor = q; q = strstr(q, " "); *q++ = '\0'; /* truncate vendor name */ q = strstr(q, "Model: "); if (!q) break; *q = '\0'; q += 7; model = q; q = strstr(q, " Rev: "); if (!q) break; *q = '\0'; for (i = 0; i < ARRAY_SIZE(sun_drives); i++) { if (*sun_drives[i].vendor && strcasecmp(sun_drives[i].vendor, vendor)) continue; if (!strstr(model, sun_drives[i].model)) continue; printf("Autoconfigure found a %s%s%s\n", sun_drives[i].vendor, (*sun_drives[i].vendor) ? " " : "", sun_drives[i].model); p = sun_drives + i; break; } break; } fclose(pfd); #endif return p; } static void create_sunlabel(void) { struct hd_geometry geometry; unsigned ndiv; unsigned char c; const struct sun_predefined_drives *p = NULL; printf(msg_building_new_label, "sun disklabel"); sun_other_endian = BB_LITTLE_ENDIAN; memset(MBRbuffer, 0, sizeof(MBRbuffer)); sunlabel->magic = SUN_SSWAP16(SUN_LABEL_MAGIC); if (!floppy) { unsigned i; puts("Drive type\n" " ? auto configure\n" " 0 custom (with hardware detected defaults)"); for (i = 0; i < ARRAY_SIZE(sun_drives); i++) { printf(" %c %s%s%s\n", i + 'a', sun_drives[i].vendor, (*sun_drives[i].vendor) ? " " : "", sun_drives[i].model); } while (1) { c = read_nonempty("Select type (? for auto, 0 for custom): "); if (c == '0') { break; } if (c >= 'a' && c < 'a' + ARRAY_SIZE(sun_drives)) { p = sun_drives + c - 'a'; break; } if (c >= 'A' && c < 'A' + ARRAY_SIZE(sun_drives)) { p = sun_drives + c - 'A'; break; } if (c == '?' && scsi_disk) { p = sun_autoconfigure_scsi(); if (p) break; printf("Autoconfigure failed\n"); } } } if (!p || floppy) { if (!ioctl(dev_fd, HDIO_GETGEO, &geometry)) { g_heads = geometry.heads; g_sectors = geometry.sectors; g_cylinders = geometry.cylinders; } else { g_heads = 0; g_sectors = 0; g_cylinders = 0; } if (floppy) { sunlabel->nacyl = 0; sunlabel->pcylcount = SUN_SSWAP16(g_cylinders); sunlabel->rspeed = SUN_SSWAP16(300); sunlabel->ilfact = SUN_SSWAP16(1); sunlabel->sparecyl = 0; } else { g_heads = read_int(1, g_heads, 1024, 0, "Heads"); g_sectors = read_int(1, g_sectors, 1024, 0, "Sectors/track"); if (g_cylinders) g_cylinders = read_int(1, g_cylinders - 2, 65535, 0, "Cylinders"); else g_cylinders = read_int(1, 0, 65535, 0, "Cylinders"); sunlabel->nacyl = SUN_SSWAP16(read_int(0, 2, 65535, 0, "Alternate cylinders")); sunlabel->pcylcount = SUN_SSWAP16(read_int(0, g_cylinders + SUN_SSWAP16(sunlabel->nacyl), 65535, 0, "Physical cylinders")); sunlabel->rspeed = SUN_SSWAP16(read_int(1, 5400, 100000, 0, "Rotation speed (rpm)")); sunlabel->ilfact = SUN_SSWAP16(read_int(1, 1, 32, 0, "Interleave factor")); sunlabel->sparecyl = SUN_SSWAP16(read_int(0, 0, g_sectors, 0, "Extra sectors per cylinder")); } } else { sunlabel->sparecyl = SUN_SSWAP16(p->sparecyl); sunlabel->ncyl = SUN_SSWAP16(p->ncyl); sunlabel->nacyl = SUN_SSWAP16(p->nacyl); sunlabel->pcylcount = SUN_SSWAP16(p->pcylcount); sunlabel->ntrks = SUN_SSWAP16(p->ntrks); sunlabel->nsect = SUN_SSWAP16(p->nsect); sunlabel->rspeed = SUN_SSWAP16(p->rspeed); sunlabel->ilfact = SUN_SSWAP16(1); g_cylinders = p->ncyl; g_heads = p->ntrks; g_sectors = p->nsect; puts("You may change all the disk params from the x menu"); } snprintf((char *)(sunlabel->info), sizeof(sunlabel->info), "%s%s%s cyl %u alt %u hd %u sec %u", p ? p->vendor : "", (p && *p->vendor) ? " " : "", p ? p->model : (floppy ? "3,5\" floppy" : "Linux custom"), g_cylinders, SUN_SSWAP16(sunlabel->nacyl), g_heads, g_sectors); sunlabel->ntrks = SUN_SSWAP16(g_heads); sunlabel->nsect = SUN_SSWAP16(g_sectors); sunlabel->ncyl = SUN_SSWAP16(g_cylinders); if (floppy) set_sun_partition(0, 0, g_cylinders * g_heads * g_sectors, LINUX_NATIVE); else { if (g_cylinders * g_heads * g_sectors >= 150 * 2048) { ndiv = g_cylinders - (50 * 2048 / (g_heads * g_sectors)); /* 50M swap */ } else ndiv = g_cylinders * 2 / 3; set_sun_partition(0, 0, ndiv * g_heads * g_sectors, LINUX_NATIVE); set_sun_partition(1, ndiv * g_heads * g_sectors, g_cylinders * g_heads * g_sectors, LINUX_SWAP); sunlabel->infos[1].flags |= 0x01; /* Not mountable */ } set_sun_partition(2, 0, g_cylinders * g_heads * g_sectors, SUN_WHOLE_DISK); { unsigned short *ush = (unsigned short *)sunlabel; unsigned short csum = 0; while (ush < (unsigned short *)(&sunlabel->csum)) csum ^= *ush++; sunlabel->csum = csum; } set_all_unchanged(); set_changed(0); check_sun_label(); get_boot(CREATE_EMPTY_SUN); } static void toggle_sunflags(int i, unsigned char mask) { if (sunlabel->infos[i].flags & mask) sunlabel->infos[i].flags &= ~mask; else sunlabel->infos[i].flags |= mask; set_changed(i); } static void fetch_sun(unsigned *starts, unsigned *lens, unsigned *start, unsigned *stop) { int i, continuous = 1; *start = 0; *stop = g_cylinders * g_heads * g_sectors; for (i = 0; i < g_partitions; i++) { if (sunlabel->partitions[i].num_sectors && sunlabel->infos[i].id && sunlabel->infos[i].id != SUN_WHOLE_DISK) { starts[i] = SUN_SSWAP32(sunlabel->partitions[i].start_cylinder) * g_heads * g_sectors; lens[i] = SUN_SSWAP32(sunlabel->partitions[i].num_sectors); if (continuous) { if (starts[i] == *start) *start += lens[i]; else if (starts[i] + lens[i] >= *stop) *stop = starts[i]; else continuous = 0; /* There will be probably more gaps than one, so lets check afterwards */ } } else { starts[i] = 0; lens[i] = 0; } } } static unsigned *verify_sun_starts; static int verify_sun_cmp(int *a, int *b) { if (*a == -1) return 1; if (*b == -1) return -1; if (verify_sun_starts[*a] > verify_sun_starts[*b]) return 1; return -1; } static void verify_sun(void) { unsigned starts[8], lens[8], start, stop; int i,j,k,starto,endo; int array[8]; verify_sun_starts = starts; fetch_sun(starts, lens, &start, &stop); for (k = 0; k < 7; k++) { for (i = 0; i < 8; i++) { if (k && (lens[i] % (g_heads * g_sectors))) { printf("Partition %u doesn't end on cylinder boundary\n", i+1); } if (lens[i]) { for (j = 0; j < i; j++) if (lens[j]) { if (starts[j] == starts[i]+lens[i]) { starts[j] = starts[i]; lens[j] += lens[i]; lens[i] = 0; } else if (starts[i] == starts[j]+lens[j]){ lens[j] += lens[i]; lens[i] = 0; } else if (!k) { if (starts[i] < starts[j]+lens[j] && starts[j] < starts[i]+lens[i]) { starto = starts[i]; if (starts[j] > starto) starto = starts[j]; endo = starts[i]+lens[i]; if (starts[j]+lens[j] < endo) endo = starts[j]+lens[j]; printf("Partition %u overlaps with others in " "sectors %u-%u\n", i+1, starto, endo); } } } } } } for (i = 0; i < 8; i++) { if (lens[i]) array[i] = i; else array[i] = -1; } qsort(array, ARRAY_SIZE(array), sizeof(array[0]), (int (*)(const void *,const void *)) verify_sun_cmp); if (array[0] == -1) { printf("No partitions defined\n"); return; } stop = g_cylinders * g_heads * g_sectors; if (starts[array[0]]) printf("Unused gap - sectors %u-%u\n", 0, starts[array[0]]); for (i = 0; i < 7 && array[i+1] != -1; i++) { printf("Unused gap - sectors %u-%u\n", starts[array[i]]+lens[array[i]], starts[array[i+1]]); } start = starts[array[i]] + lens[array[i]]; if (start < stop) printf("Unused gap - sectors %u-%u\n", start, stop); } static void add_sun_partition(int n, int sys) { unsigned start, stop, stop2; unsigned starts[8], lens[8]; int whole_disk = 0; char mesg[256]; int i, first, last; if (sunlabel->partitions[n].num_sectors && sunlabel->infos[n].id) { printf(msg_part_already_defined, n + 1); return; } fetch_sun(starts, lens, &start, &stop); if (stop <= start) { if (n == 2) whole_disk = 1; else { printf("Other partitions already cover the whole disk.\n" "Delete/shrink them before retry.\n"); return; } } snprintf(mesg, sizeof(mesg), "First %s", str_units(SINGULAR)); while (1) { if (whole_disk) first = read_int(0, 0, 0, 0, mesg); else first = read_int(scround(start), scround(stop)+1, scround(stop), 0, mesg); if (display_in_cyl_units) { first *= units_per_sector; } else { /* Starting sector has to be properly aligned */ first = (first + g_heads * g_sectors - 1) / (g_heads * g_sectors); first *= g_heads * g_sectors; } if (n == 2 && first != 0) printf("\ It is highly recommended that the third partition covers the whole disk\n\ and is of type 'Whole disk'\n"); /* ewt asks to add: "don't start a partition at cyl 0" However, [email protected] writes: "In addition to having a Sun partition table, to be able to boot from the disc, the first partition, /dev/sdX1, must start at cylinder 0. This means that /dev/sdX1 contains the partition table and the boot block, as these are the first two sectors of the disc. Therefore you must be careful what you use /dev/sdX1 for. In particular, you must not use a partition starting at cylinder 0 for Linux swap, as that would overwrite the partition table and the boot block. You may, however, use such a partition for a UFS or EXT2 file system, as these file systems leave the first 1024 bytes undisturbed. */ /* On the other hand, one should not use partitions starting at block 0 in an md, or the label will be trashed. */ for (i = 0; i < g_partitions; i++) if (lens[i] && starts[i] <= first && starts[i] + lens[i] > first) break; if (i < g_partitions && !whole_disk) { if (n == 2 && !first) { whole_disk = 1; break; } printf("Sector %u is already allocated\n", first); } else break; } stop = g_cylinders * g_heads * g_sectors; stop2 = stop; for (i = 0; i < g_partitions; i++) { if (starts[i] > first && starts[i] < stop) stop = starts[i]; } snprintf(mesg, sizeof(mesg), "Last %s or +size or +sizeM or +sizeK", str_units(SINGULAR)); if (whole_disk) last = read_int(scround(stop2), scround(stop2), scround(stop2), 0, mesg); else if (n == 2 && !first) last = read_int(scround(first), scround(stop2), scround(stop2), scround(first), mesg); else last = read_int(scround(first), scround(stop), scround(stop), scround(first), mesg); if (display_in_cyl_units) last *= units_per_sector; if (n == 2 && !first) { if (last >= stop2) { whole_disk = 1; last = stop2; } else if (last > stop) { printf( "You haven't covered the whole disk with the 3rd partition,\n" "but your value %u %s covers some other partition.\n" "Your entry has been changed to %u %s\n", scround(last), str_units(SINGULAR), scround(stop), str_units(SINGULAR)); last = stop; } } else if (!whole_disk && last > stop) last = stop; if (whole_disk) sys = SUN_WHOLE_DISK; set_sun_partition(n, first, last, sys); } static void sun_delete_partition(int i) { unsigned int nsec; if (i == 2 && sunlabel->infos[i].id == SUN_WHOLE_DISK && !sunlabel->partitions[i].start_cylinder && (nsec = SUN_SSWAP32(sunlabel->partitions[i].num_sectors)) == g_heads * g_sectors * g_cylinders) printf("If you want to maintain SunOS/Solaris compatibility, " "consider leaving this\n" "partition as Whole disk (5), starting at 0, with %u " "sectors\n", nsec); sunlabel->infos[i].id = 0; sunlabel->partitions[i].num_sectors = 0; } static void sun_change_sysid(int i, int sys) { if (sys == LINUX_SWAP && !sunlabel->partitions[i].start_cylinder) { read_maybe_empty( "It is highly recommended that the partition at offset 0\n" "is UFS, EXT2FS filesystem or SunOS swap. Putting Linux swap\n" "there may destroy your partition table and bootblock.\n" "Type YES if you're very sure you would like that partition\n" "tagged with 82 (Linux swap): "); if (strcmp(line_ptr, "YES") != 0) return; } switch (sys) { case SUNOS_SWAP: case LINUX_SWAP: /* swaps are not mountable by default */ sunlabel->infos[i].flags |= 0x01; break; default: /* assume other types are mountable; user can change it anyway */ sunlabel->infos[i].flags &= ~0x01; break; } sunlabel->infos[i].id = sys; } static void sun_list_table(int xtra) { int i, w; w = strlen(disk_device); if (xtra) printf( "\nDisk %s (Sun disk label): %u heads, %u sectors, %u rpm\n" "%u cylinders, %u alternate cylinders, %u physical cylinders\n" "%u extra sects/cyl, interleave %u:1\n" "%s\n" "Units = %s of %u * 512 bytes\n\n", disk_device, g_heads, g_sectors, SUN_SSWAP16(sunlabel->rspeed), g_cylinders, SUN_SSWAP16(sunlabel->nacyl), SUN_SSWAP16(sunlabel->pcylcount), SUN_SSWAP16(sunlabel->sparecyl), SUN_SSWAP16(sunlabel->ilfact), (char *)sunlabel, str_units(PLURAL), units_per_sector); else printf( "\nDisk %s (Sun disk label): %u heads, %u sectors, %u cylinders\n" "Units = %s of %u * 512 bytes\n\n", disk_device, g_heads, g_sectors, g_cylinders, str_units(PLURAL), units_per_sector); printf("%*s Flag Start End Blocks Id System\n", w + 1, "Device"); for (i = 0; i < g_partitions; i++) { if (sunlabel->partitions[i].num_sectors) { uint32_t start = SUN_SSWAP32(sunlabel->partitions[i].start_cylinder) * g_heads * g_sectors; uint32_t len = SUN_SSWAP32(sunlabel->partitions[i].num_sectors); printf("%s %c%c %9lu %9lu %9lu%c %2x %s\n", partname(disk_device, i+1, w), /* device */ (sunlabel->infos[i].flags & 0x01) ? 'u' : ' ', /* flags */ (sunlabel->infos[i].flags & 0x10) ? 'r' : ' ', (long) scround(start), /* start */ (long) scround(start+len), /* end */ (long) len / 2, len & 1 ? '+' : ' ', /* odd flag on end */ sunlabel->infos[i].id, /* type id */ partition_type(sunlabel->infos[i].id)); /* type name */ } } } #if ENABLE_FEATURE_FDISK_ADVANCED static void sun_set_alt_cyl(void) { sunlabel->nacyl = SUN_SSWAP16(read_int(0, SUN_SSWAP16(sunlabel->nacyl), 65535, 0, "Number of alternate cylinders")); } static void sun_set_ncyl(int cyl) { sunlabel->ncyl = SUN_SSWAP16(cyl); } static void sun_set_xcyl(void) { sunlabel->sparecyl = SUN_SSWAP16(read_int(0, SUN_SSWAP16(sunlabel->sparecyl), g_sectors, 0, "Extra sectors per cylinder")); } static void sun_set_ilfact(void) { sunlabel->ilfact = SUN_SSWAP16(read_int(1, SUN_SSWAP16(sunlabel->ilfact), 32, 0, "Interleave factor")); } static void sun_set_rspeed(void) { sunlabel->rspeed = SUN_SSWAP16(read_int(1, SUN_SSWAP16(sunlabel->rspeed), 100000, 0, "Rotation speed (rpm)")); } static void sun_set_pcylcount(void) { sunlabel->pcylcount = SUN_SSWAP16(read_int(0, SUN_SSWAP16(sunlabel->pcylcount), 65535, 0, "Number of physical cylinders")); } #endif /* FEATURE_FDISK_ADVANCED */ static void sun_write_table(void) { unsigned short *ush = (unsigned short *)sunlabel; unsigned short csum = 0; while (ush < (unsigned short *)(&sunlabel->csum)) csum ^= *ush++; sunlabel->csum = csum; write_sector(0, sunlabel); } #endif /* SUN_LABEL */
the_stack_data/25136869.c
#include <stdio.h> int main(){ int n; printf("请输入一个三位正整数:\n"); scanf("%d",&n); if((n/100)==(n%10)) printf("是回文数\n"); else printf("不是回文数\n"); return 0; }
the_stack_data/147488.c
#include <stdio.h> #include <time.h> #include <stdlib.h> int main() { int broj, random_num; srand(time(NULL)); random_num = rand() % 100 + 1; // printf("%d", random_num); printf("Izabrao sam broj. Probaj ga pogoditi (-1 za izlaz).\n"); LOOP: printf("Unesite broj: "); do{ scanf("%d", &broj); if(broj==-1){ printf("Kraj igre."); return 0; } else if(broj<0 || broj>100){ printf("Pogresan unos\n"); goto LOOP; } if(broj>random_num) printf("Broj je manji!\n"); else if(broj<random_num) printf("Broj je veci!\n"); }while(broj!=random_num); printf("Pogodak!"); return 0; }
the_stack_data/228261.c
int (main()) { foo: (1 + 1); goto foo; (2 + 2); }
the_stack_data/88339.c
#include <stdio.h> #include <stdlib.h> int main() { char* ptr; int n; printf("Enter number of elements:"); scanf("%d", &n); if (n>1024*1024){ printf("Too much memory requsted \n"); exit(0); } ptr = (char*)calloc (400,sizeof(char)); if (ptr == NULL) { printf("Memory not allocated.\n"); exit(0); } if (n >= 400) { n=400; } char c ='A'; for(int z=1; z<=n; z++){ printf("%c", c); if (z % 40 == 0){ printf("\n"); } if (c=='Z'){ c='A'-1; } c++; } return 0; }
the_stack_data/111078276.c
/* Copyright (C) 1997, 1998, 2000, 2001, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include <sys/stat.h> #include <sys/types.h> #include <fcntl.h> #include <unistd.h> #include <pwd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <wordexp.h> #define IFS " \n\t" struct test_case_struct { int retval; const char *env; const char *words; int flags; size_t wordc; const char *wordv[10]; const char *ifs; } test_case[] = { /* Simple word- and field-splitting */ { 0, NULL, "one", 0, 1, { "one", }, IFS }, { 0, NULL, "one two", 0, 2, { "one", "two", }, IFS }, { 0, NULL, "one two three", 0, 3, { "one", "two", "three", }, IFS }, { 0, NULL, " \tfoo\t\tbar ", 0, 2, { "foo", "bar", }, IFS }, { 0, NULL, "red , white blue", 0, 4, { "red", ",", "white", "blue", }, " ," }, { 0, NULL, "one two three", 0, 3, { "one", "two", "three", }, "" }, { 0, NULL, "one \"two three\"", 0, 2, { "one", "two three", }, IFS }, { 0, NULL, "one \"two three\"", 0, 2, { "one", "two three", }, "" }, { 0, "two three", "one \"$var\"", 0, 2, { "one", "two three", }, IFS }, { 0, "two three", "one $var", 0, 3, { "one", "two", "three", }, IFS }, { 0, "two three", "one \"$var\"", 0, 2, { "one", "two three", }, "" }, { 0, "two three", "one $var", 0, 2, { "one", "two three", }, "" }, /* The non-whitespace IFS char at the end delimits the second field * but does NOT start a new field. */ { 0, ":abc:", "$var", 0, 2, { "", "abc", }, ":" }, { 0, NULL, "$(echo :abc:)", 0, 2, { "", "abc", }, ":" }, { 0, NULL, "$(echo :abc:\\ )", 0, 2, { "", "abc", }, ": " }, { 0, NULL, "$(echo :abc\\ )", 0, 2, { "", "abc", }, ": " }, { 0, ":abc:", "$(echo $var)", 0, 2, { "", "abc", }, ":" }, { 0, NULL, ":abc:", 0, 1, { ":abc:", }, ":" }, { 0, NULL, "$(echo :abc:)def", 0, 3, { "", "abc", "def", }, ":" }, { 0, NULL, "$(echo abc:de)f", 0, 2, { "abc", "def", }, ":" }, { 0, NULL, "$(echo abc:de)f:ghi", 0, 2, { "abc", "def:ghi", }, ":" }, { 0, NULL, "abc:d$(echo ef:ghi)", 0, 2, { "abc:def", "ghi", }, ":" }, { 0, "abc:", "$var$(echo def:ghi)", 0, 3, { "abc", "def", "ghi", }, ":" }, { 0, "abc:d", "$var$(echo ef:ghi)", 0, 3, { "abc", "def", "ghi", }, ":" }, { 0, "def:ghi", "$(echo abc:)$var", 0, 3, { "abc", "def", "ghi", }, ":" }, { 0, "ef:ghi", "$(echo abc:d)$var", 0, 3, { "abc", "def", "ghi", }, ":" }, /* Simple parameter expansion */ { 0, "foo", "${var}", 0, 1, { "foo", }, IFS }, { 0, "foo", "$var", 0, 1, { "foo", }, IFS }, { 0, "foo", "\\\"$var\\\"", 0, 1, { "\"foo\"", }, IFS }, { 0, "foo", "%$var%", 0, 1, { "%foo%", }, IFS }, { 0, "foo", "-$var-", 0, 1, { "-foo-", }, IFS }, /* Simple quote removal */ { 0, NULL, "\"quoted\"", 0, 1, { "quoted", }, IFS }, { 0, "foo", "\"$var\"\"$var\"", 0, 1, { "foofoo", }, IFS }, { 0, NULL, "'singly-quoted'", 0, 1, { "singly-quoted", }, IFS }, { 0, NULL, "contin\\\nuation", 0, 1, { "continuation", }, IFS }, { 0, NULL, "explicit ''", 0, 2, { "explicit", "", }, IFS }, { 0, NULL, "explicit \"\"", 0, 2, { "explicit", "", }, IFS }, { 0, NULL, "explicit ``", 0, 1, { "explicit", }, IFS }, /* Simple command substitution */ { 0, NULL, "$(echo hello)", 0, 1, { "hello", }, IFS }, { 0, NULL, "$( (echo hello) )", 0, 1, { "hello", }, IFS }, { 0, NULL, "$((echo hello);(echo there))", 0, 2, { "hello", "there", }, IFS }, { 0, NULL, "`echo one two`", 0, 2, { "one", "two", }, IFS }, { 0, NULL, "$(echo ')')", 0, 1, { ")" }, IFS }, { 0, NULL, "$(echo hello; echo)", 0, 1, { "hello", }, IFS }, { 0, NULL, "a$(echo b)c", 0, 1, { "abc", }, IFS }, /* Simple arithmetic expansion */ { 0, NULL, "$((1 + 1))", 0, 1, { "2", }, IFS }, { 0, NULL, "$((2-3))", 0, 1, { "-1", }, IFS }, { 0, NULL, "$((-1))", 0, 1, { "-1", }, IFS }, { 0, NULL, "$[50+20]", 0, 1, { "70", }, IFS }, { 0, NULL, "$(((2+3)*(4+5)))", 0, 1, { "45", }, IFS }, { 0, NULL, "$((010))", 0, 1, { "8" }, IFS }, { 0, NULL, "$((0x10))", 0, 1, { "16" }, IFS }, { 0, NULL, "$((010+0x10))", 0, 1, { "24" }, IFS }, { 0, NULL, "$((-010+0x10))", 0, 1, { "8" }, IFS }, { 0, NULL, "$((-0x10+010))", 0, 1, { "-8" }, IFS }, /* Advanced parameter expansion */ { 0, NULL, "${var:-bar}", 0, 1, { "bar", }, IFS }, { 0, NULL, "${var-bar}", 0, 1, { "bar", }, IFS }, { 0, "", "${var:-bar}", 0, 1, { "bar", }, IFS }, { 0, "foo", "${var:-bar}", 0, 1, { "foo", }, IFS }, { 0, "", "${var-bar}", 0, 0, { NULL, }, IFS }, { 0, NULL, "${var:=bar}", 0, 1, { "bar", }, IFS }, { 0, NULL, "${var=bar}", 0, 1, { "bar", }, IFS }, { 0, "", "${var:=bar}", 0, 1, { "bar", }, IFS }, { 0, "foo", "${var:=bar}", 0, 1, { "foo", }, IFS }, { 0, "", "${var=bar}", 0, 0, { NULL, }, IFS }, { 0, "foo", "${var:?bar}", 0, 1, { "foo", }, IFS }, { 0, NULL, "${var:+bar}", 0, 0, { NULL, }, IFS }, { 0, NULL, "${var+bar}", 0, 0, { NULL, }, IFS }, { 0, "", "${var:+bar}", 0, 0, { NULL, }, IFS }, { 0, "foo", "${var:+bar}", 0, 1, { "bar", }, IFS }, { 0, "", "${var+bar}", 0, 1, { "bar", }, IFS }, { 0, "12345", "${#var}", 0, 1, { "5", }, IFS }, { 0, NULL, "${var:-'}'}", 0, 1, { "}", }, IFS }, { 0, NULL, "${var-}", 0, 0, { NULL }, IFS }, { 0, "pizza", "${var#${var}}", 0, 0, { NULL }, IFS }, { 0, "pepperoni", "${var%$(echo oni)}", 0, 1, { "pepper" }, IFS }, { 0, "6pack", "${var#$((6))}", 0, 1, { "pack" }, IFS }, { 0, "b*witched", "${var##b*}", 0, 0, { NULL }, IFS }, { 0, "b*witched", "${var##\"b*\"}", 0, 1, { "witched" }, IFS }, { 0, "banana", "${var%na*}", 0, 1, { "bana", }, IFS }, { 0, "banana", "${var%%na*}", 0, 1, { "ba", }, IFS }, { 0, "borabora-island", "${var#*bora}", 0, 1, { "bora-island", }, IFS }, { 0, "borabora-island", "${var##*bora}", 0, 1, { "-island", }, IFS }, { 0, "coconut", "${var##\\*co}", 0, 1, { "coconut", }, IFS }, { 0, "100%", "${var%0%}", 0, 1, { "10" }, IFS }, /* Pathname expansion */ { 0, NULL, "???", 0, 2, { "one", "two", }, IFS }, { 0, NULL, "[ot]??", 0, 2, { "one", "two", }, IFS }, { 0, NULL, "t*", 0, 2, { "three", "two", }, IFS }, { 0, NULL, "\"t\"*", 0, 2, { "three", "two", }, IFS }, /* Nested constructs */ { 0, "one two", "$var", 0, 2, { "one", "two", }, IFS }, { 0, "one two three", "$var", 0, 3, { "one", "two", "three", }, IFS }, { 0, " \tfoo\t\tbar ", "$var", 0, 2, { "foo", "bar", }, IFS }, { 0, " red , white blue", "$var", 0, 3, { "red", "white", "blue", }, ", \n\t" }, { 0, " red , white blue", "\"$var\"", 0, 1, { " red , white blue", }, ", \n\t" }, { 0, NULL, "\"$(echo hello there)\"", 0, 1, { "hello there", }, IFS }, { 0, NULL, "\"$(echo \"hello there\")\"", 0, 1, { "hello there", }, IFS }, { 0, NULL, "${var=one two} \"$var\"", 0, 3, { "one", "two", "one two", }, IFS }, { 0, "1", "$(( $(echo 3)+$var ))", 0, 1, { "4", }, IFS }, { 0, NULL, "\"$(echo \"*\")\"", 0, 1, { "*", }, IFS }, { 0, NULL, "\"a\n\n$(echo)b\"", 0, 1, { "a\n\nb", }, IFS }, { 0, "foo", "*$var*", 0, 1, { "*foo*", }, IFS }, { 0, "o thr", "*$var*", 0, 2, { "two", "three" }, IFS }, /* Different IFS values */ { 0, "a b\tc\nd ", "$var", 0, 4, { "a", "b", "c", "d" }, NULL /* unset */ }, { 0, "a b\tc d ", "$var", 0, 1, { "a b\tc d " }, "" /* `null' */ }, { 0, "a,b c\n, d", "$var", 0, 3, { "a", "b c", " d" }, "\t\n," }, /* Other things that should succeed */ { 0, NULL, "\\*\"|&;<>\"\\(\\)\\{\\}", 0, 1, { "*|&;<>(){}", }, IFS }, { 0, "???", "$var", 0, 1, { "???", }, IFS }, { 0, NULL, "$var", 0, 0, { NULL, }, IFS }, { 0, NULL, "\"\\n\"", 0, 1, { "\\n", }, IFS }, { 0, NULL, "", 0, 0, { NULL, }, IFS }, /* Flags not already covered (testit() has special handling for these) */ { 0, NULL, "one two", WRDE_DOOFFS, 2, { "one", "two", }, IFS }, { 0, NULL, "appended", WRDE_APPEND, 3, { "pre1", "pre2", "appended", }, IFS }, { 0, NULL, "appended", WRDE_DOOFFS|WRDE_APPEND, 3, { "pre1", "pre2", "appended", }, IFS }, /* Things that should fail */ { WRDE_BADCHAR, NULL, "new\nline", 0, 0, { NULL, }, "" /* \n not IFS */ }, { WRDE_BADCHAR, NULL, "pipe|symbol", 0, 0, { NULL, }, IFS }, { WRDE_BADCHAR, NULL, "&ampersand", 0, 0, { NULL, }, IFS }, { WRDE_BADCHAR, NULL, "semi;colon", 0, 0, { NULL, }, IFS }, { WRDE_BADCHAR, NULL, "<greater", 0, 0, { NULL, }, IFS }, { WRDE_BADCHAR, NULL, "less>", 0, 0, { NULL, }, IFS }, { WRDE_BADCHAR, NULL, "(open-paren", 0, 0, { NULL, }, IFS }, { WRDE_BADCHAR, NULL, "close-paren)", 0, 0, { NULL, }, IFS }, { WRDE_BADCHAR, NULL, "{open-brace", 0, 0, { NULL, }, IFS }, { WRDE_BADCHAR, NULL, "close-brace}", 0, 0, { NULL, }, IFS }, { WRDE_CMDSUB, NULL, "$(ls)", WRDE_NOCMD, 0, { NULL, }, IFS }, { WRDE_BADVAL, NULL, "$var", WRDE_UNDEF, 0, { NULL, }, IFS }, { WRDE_BADVAL, NULL, "$9", WRDE_UNDEF, 0, { NULL, }, IFS }, { WRDE_SYNTAX, NULL, "$[50+20))", 0, 0, { NULL, }, IFS }, { WRDE_SYNTAX, NULL, "${%%noparam}", 0, 0, { NULL, }, IFS }, { WRDE_SYNTAX, NULL, "${missing-brace", 0, 0, { NULL, }, IFS }, { WRDE_SYNTAX, NULL, "$(for i in)", 0, 0, { NULL, }, IFS }, { WRDE_SYNTAX, NULL, "$((2+))", 0, 0, { NULL, }, IFS }, { WRDE_SYNTAX, NULL, "`", 0, 0, { NULL, }, IFS }, { WRDE_SYNTAX, NULL, "$((010+4+))", 0, 0, { NULL }, IFS }, { -1, NULL, NULL, 0, 0, { NULL, }, IFS }, }; static int testit (struct test_case_struct *tc); static int tests; static void command_line_test (const char *words) { wordexp_t we; int i; int retval = wordexp (words, &we, 0); printf ("wordexp returned %d\n", retval); for (i = 0; i < we.we_wordc; i++) printf ("we_wordv[%d] = \"%s\"\n", i, we.we_wordv[i]); } int main (int argc, char *argv[]) { const char *globfile[] = { "one", "two", "three", NULL }; char tmpdir[32]; struct passwd *pw; const char *cwd; int test; int fail = 0; int i; struct test_case_struct ts; if (argc > 1) { command_line_test (argv[1]); return 0; } cwd = getcwd (NULL, 0); /* Set up arena for pathname expansion */ tmpnam (tmpdir); if (mkdir (tmpdir, S_IRWXU) || chdir (tmpdir)) return -1; else { int fd; for (i = 0; globfile[i]; ++i) if ((fd = creat (globfile[i], S_IRUSR | S_IWUSR)) == -1 || close (fd)) return -1; } for (test = 0; test_case[test].retval != -1; test++) if (testit (&test_case[test])) ++fail; /* Tilde-expansion tests. */ pw = getpwnam ("root"); if (pw != NULL) { ts.retval = 0; ts.env = NULL; ts.words = "~root "; ts.flags = 0; ts.wordc = 1; ts.wordv[0] = pw->pw_dir; ts.ifs = IFS; if (testit (&ts)) ++fail; ts.retval = 0; ts.env = pw->pw_dir; ts.words = "${var#~root}x"; ts.flags = 0; ts.wordc = 1; ts.wordv[0] = "x"; ts.ifs = IFS; if (testit (&ts)) ++fail; } /* "~" expands to value of $HOME when HOME is set */ setenv ("HOME", "/dummy/home", 1); ts.retval = 0; ts.env = NULL; ts.words = "~ ~/foo"; ts.flags = 0; ts.wordc = 2; ts.wordv[0] = "/dummy/home"; ts.wordv[1] = "/dummy/home/foo"; ts.ifs = IFS; if (testit (&ts)) ++fail; /* "~" expands to home dir from passwd file if HOME is not set */ pw = getpwuid (getuid ()); if (pw != NULL) { unsetenv ("HOME"); ts.retval = 0; ts.env = NULL; ts.words = "~"; ts.flags = 0; ts.wordc = 1; ts.wordv[0] = pw->pw_dir; ts.ifs = IFS; if (testit (&ts)) ++fail; } puts ("tests completed, now cleaning up"); /* Clean up */ for (i = 0; globfile[i]; ++i) remove (globfile[i]); if (cwd == NULL) cwd = ".."; chdir (cwd); rmdir (tmpdir); printf ("tests failed: %d\n", fail); return fail != 0; } static int testit (struct test_case_struct *tc) { int retval; wordexp_t we, sav_we; char *dummy; int bzzzt = 0; int start_offs = 0; int i; if (tc->env) setenv ("var", tc->env, 1); else unsetenv ("var"); if (tc->ifs) setenv ("IFS", tc->ifs, 1); else unsetenv ("IFS"); sav_we.we_wordc = 99; sav_we.we_wordv = &dummy; sav_we.we_offs = 3; we = sav_we; printf ("Test %d (%s): ", ++tests, tc->words); if (tc->flags & WRDE_APPEND) { /* initial wordexp() call, to be appended to */ if (wordexp ("pre1 pre2", &we, tc->flags & ~WRDE_APPEND) != 0) { printf ("FAILED setup\n"); return 1; } } retval = wordexp (tc->words, &we, tc->flags); if (tc->flags & WRDE_DOOFFS) start_offs = sav_we.we_offs; if (retval != tc->retval || (retval == 0 && we.we_wordc != tc->wordc)) bzzzt = 1; else if (retval == 0) { for (i = 0; i < start_offs; ++i) if (we.we_wordv[i] != NULL) { bzzzt = 1; break; } for (i = 0; i < we.we_wordc; ++i) if (we.we_wordv[i+start_offs] == NULL || strcmp (tc->wordv[i], we.we_wordv[i+start_offs]) != 0) { bzzzt = 1; break; } } if (bzzzt) { printf ("FAILED\n"); printf ("Test words: <%s>, need retval %d, wordc %Zd\n", tc->words, tc->retval, tc->wordc); if (start_offs != 0) printf ("(preceded by %d NULLs)\n", start_offs); printf ("Got retval %d, wordc %Zd: ", retval, we.we_wordc); if (retval == 0 || retval == WRDE_NOSPACE) { for (i = 0; i < we.we_wordc + start_offs; ++i) if (we.we_wordv[i] == NULL) printf ("NULL "); else printf ("<%s> ", we.we_wordv[i]); } printf ("\n"); } else if (retval != 0 && retval != WRDE_NOSPACE && (we.we_wordc != sav_we.we_wordc || we.we_wordv != sav_we.we_wordv || we.we_offs != sav_we.we_offs)) { bzzzt = 1; printf ("FAILED to restore wordexp_t members\n"); } else printf ("OK\n"); if (retval == 0 || retval == WRDE_NOSPACE) wordfree (&we); return bzzzt; }
the_stack_data/31386981.c
#include <stdio.h> #include <stdlib.h> #include <locale.h> int mediaVetor (int number) { int numbers[number]; for(int i = 0; i == number; i++){ printf("Digite aqui o número logo: \n"); scanf("%d", &numbers[i]); } int plus = 0; for(int j=0; j=number; j++){ plus = plus + numbers[j]; } int media = plus / number; printf("Media: %i ", media); return 0; } int main(void) { int number; printf("Digite aqui o número: \n"); scanf("%d", &number); mediaVetor(number); }
the_stack_data/146700.c
#include <unistd.h> #include <stdarg.h> int execle(const char *path, const char *argv0, ...) { int argc; va_list ap; va_start(ap, argv0); for (argc=1; va_arg(ap, const char *); argc++); va_end(ap); { int i; char *argv[argc+1]; char **envp; va_start(ap, argv0); argv[0] = (char *)argv0; for (i=1; i<=argc; i++) argv[i] = va_arg(ap, char *); envp = va_arg(ap, char **); va_end(ap); return execve(path, argv, envp); } }
the_stack_data/40763977.c
#include <fcntl.h> #include <unistd.h> int main() { int input_fd = open("/etc/passwd", O_RDONLY); int output_fd = open("saida.txt", O_CREAT | O_TRUNC | O_WRONLY, 0666); int error_fd = open("erros.txt", O_CREAT | O_TRUNC | O_WRONLY, 0666); int stdin_fd = dup2(input_fd, STDIN_FILENO); int stdout_fd = dup2(output_fd, STDOUT_FILENO); int stderr_fd = dup2(error_fd, STDERR_FILENO); if (stdin_fd < 0 || stdout_fd < 0 || stderr_fd < 0) return -1; close(input_fd); close(output_fd); close(error_fd); int i = 0; char buffer; char line[1024]; while ((read(STDIN_FILENO, &buffer, 1)) > 0) { line[i++] = buffer; if (buffer == '\n') { write(STDOUT_FILENO, line, i); write(STDERR_FILENO, line, i); i = 0; } } return 0; }
the_stack_data/50075.c
/******************************************************************************* * The BYTE UNIX Benchmarks - Release 3 * Module: hanoi.c SID: 3.3 5/15/91 19:30:20 * ******************************************************************************* * Bug reports, patches, comments, suggestions should be sent to: * * Ben Smith, Rick Grehan or Tom Yager * [email protected] [email protected] [email protected] * ******************************************************************************* * Modification Log: * $Header: /mounts/iacoma20/disks/0/cvsroot/benchmarks/kernels/hanoi/hanoi.c,v 1.1 2004/04/15 20:18:42 renau Exp $ * August 28, 1990 - Modified timing routines (ty) * ******************************************************************************/ char SCCSid[] = "@(#) @(#)hanoi.c:3.3 -- 5/15/91 19:30:20"; #define other(i,j) (6-(i+j)) #include <stdio.h> #include <stdlib.h> int iter = 0; int num[4]; long cnt; int conta=0; void mov(int n,int f,int t) { if(n == 1) { conta++; num[f]--; num[t]++; }else{ int o = other(f,t); mov(n-1,f,o); mov(1,f,t); mov(n-1,o,t); } } #define SCOORE int main(int argc, char **argv) { int disk=10; /* default number of disks */ int iterations; int i; #ifdef SCOORE iterations = 8878; disk = 12; #else if (argc < 2) { printf("Usage: %s iterations [disks]\n", argv[0]); exit(1); } iterations = atoi(argv[1]); if(argc > 2) disk = atoi(argv[2]); #endif num[1] = disk; for(i=0;i<iterations;i++) { mov(disk,1,3); iter++; } printf("Done %d %d\n",iter,conta); #ifdef SCOORE printf("Done should be 8878 36355410\n"); #endif exit(0); }
the_stack_data/77733.c
#include <stdio.h> #define KLIMIT 6 void fibonacci(int limit) { int i_1 = 0; int i_2 = 1; int j = 0; printf("The first %i Fibonacci numbers are:\n", limit); printf("%i\n", i_1); while (j < limit - 1) { printf("%i\n", i_2); int temp = i_2; i_2 += i_1; i_1 = temp; j++; } } main() { fibonacci(KLIMIT); }
the_stack_data/170453790.c
/** * 12.27 udp 回声服务器 * 客户端 * macOS 10.12 * by wjh */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <arpa/inet.h> #include <sys/socket.h> #define BUF_SIZE 100 int main(){ //创建套接字 int sock = socket(PF_INET, SOCK_DGRAM, 0); //服务器地址信息 struct sockaddr_in servAddr; memset(&servAddr, 0, sizeof(servAddr)); //每个字节都用0填充 servAddr.sin_family = PF_INET; servAddr.sin_addr.s_addr = inet_addr("127.0.0.1"); servAddr.sin_port = htons(1234); //不断获取用户输入并发送给服务器,然后接受服务器数据 struct sockaddr fromAddr; socklen_t addrLen = sizeof(fromAddr); while(1){ char buffer[BUF_SIZE] = {0}; printf("Input a string: "); gets(buffer); sendto(sock, buffer, strlen(buffer), 0, (struct sockaddr*)&servAddr, sizeof(servAddr)); int strLen = recvfrom(sock, buffer, BUF_SIZE, 0, (struct sockaddr *)&fromAddr, &addrLen); buffer[strLen] = 0; printf("Message form server: %s\n", buffer); } close(sock); return 0; }
the_stack_data/8172.c
#include<stdio.h> #define max(a,b) ((a) > (b) ? (a) : (b)) #define min(a,b) ((a) < (b) ? (a) : (b)) int n,k,i; long long ans=1; int main() { scanf("%d%d",&n,&k); for(i=0;i<k;++i) ans*=n-i; for(i=1;i<=k;++i) ans/=i; printf("%lld",ans); return 0; }
the_stack_data/691347.c
#include <stdio.h> //funkce, která najde největší číslo v matici. Princip je stejný jako u jednorozměrného pole. int max(int mat[][20],int n, int m) { int max = mat[0][0]; for(int y = 0; y < n; y++) { for(int x = 0; x < m; x++) { if(mat[y][x] > max) { max = mat[y][x]; } } } return max; } //funkce na doplnění, která vrací aritmetický průměr čísel v matici float prumer(int mat[][20],int n, int m) { float prumer = 0.0; for(int y = 0; y < n; y++) { for(int x = 0; x < m; x++) { prumer += mat[y][x]; } } return prumer/(n*m); } void nactiMatici(int mat[][20], int n, int m) { for(int y = 0; y < n; y++) { printf("Zadej sloupec cislo %d\n", y); for(int x = 0; x < m; x++) { scanf("%d", &mat[y][x]); } } } void vypisMatici(int mat[][20], int n, int m) { printf("Vypis matice\n"); for(int y = 0; y < n; y++) { for(int x = 0; x < m; x++) { printf("%d", mat[y][x]); } printf("\n"); } } // funkce pro načtení a výpis si napište sami int main(void) { int n=0, m=0; int matice[20][20];//definice matice do{ printf("Zadej pocet radku matice (<21): "); scanf("%d",&n); } while(n<1 || n>20); do{ printf("Zadej pocet sloupcu matice (<21): "); scanf("%d",&m); } while(m<1 || m>20); nactiMatici(matice,n,m); vypisMatici(matice,n,m); printf("Nejvetsi cislo v matici je %d\n",max(matice,n,m)); printf("Aritmeticky prumer cisel v matici je %.2f",prumer(matice,n,m)); return 0; }
the_stack_data/167330362.c
#include <assert.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <sys/time.h> #define TEST_ARRAY #define TEST_TREE #define N ( 32 * 1024 * 1024 ) #define M ( 10 * 1000 * 1000 ) #define F 32 typedef struct leaf_t leaf_t, *leaf_p; struct leaf_t { leaf_p left; unsigned data[F]; leaf_p right; }; typedef union seq_tree_t seq_tree_t, *seq_tree_p; union seq_tree_t { struct { unsigned range, child_n, child_max, tag; seq_tree_p _; } nodes[F]; struct { unsigned range; leaf_p _; } leaves[F]; }; typedef struct iterator_t iterator_t, *iterator_p; struct iterator_t { leaf_p l; unsigned i; }; int iterator_first( seq_tree_p t, unsigned tag, iterator_p i ) { if( tag ) { i->l = t->leaves[0]._; i->i = 0; return 0; } else { return iterator_first( t->nodes[ 0 ]._, t->nodes[ 0 ].tag, i ); } } int has_next( iterator_p i ) { return ( !!i->l->right ) || ( i->i < F ); } int advance( iterator_p i ) { ++i->i; if( i->i < F ) { return 0; } if( i->l->right ) { i->l = i->l->right; i->i = 0; __builtin_prefetch( i->l->right ); return 0; } return 0; } int get( iterator_p i, unsigned *res ) { if( i && i->l && i->i < F && res ) { *res = i->l->data[ i->i ]; return 0; } return 1; } seq_tree_p seq_alloc( unsigned level, unsigned *n, unsigned *max_range, unsigned *tag, leaf_p *prev ); int seq_set( seq_tree_p t, unsigned idx, unsigned val, unsigned max, unsigned n, unsigned tag ); static int seq_get( seq_tree_p t, unsigned idx, unsigned level, unsigned *p, unsigned max, unsigned n, unsigned tag ); int seq_set_mv( seq_tree_p t, unsigned idx, unsigned val, unsigned max, unsigned n, unsigned tag, seq_tree_p *res ); struct timeval time_diff( struct timeval start, struct timeval end ); int print_time( FILE *f, struct timeval tv ); int main( int argc, char** argv ) { struct timeval start, end, duration; srand( 42 ); unsigned x; #ifdef TEST_ARRAY printf( "Array alloc\n" ); assert( !gettimeofday( &start, NULL ) ); unsigned *a = (unsigned *)malloc( N * sizeof( a[0] ) ); assert( !gettimeofday( &end, NULL ) ); duration = time_diff( start, end ); assert( 0 < print_time( stdout, duration ) ); printf( "Array init\n" ); assert( !gettimeofday( &start, NULL ) ); for( unsigned i = 0; i < N; ++i ) { a[ i ] = rand(); } assert( !gettimeofday( &end, NULL ) ); duration = time_diff( start, end ); assert( 0 < print_time( stdout, duration ) ); x = 0; printf( "Array reads %u\n", x ); assert( !gettimeofday( &start, NULL ) ); // for( unsigned i = 0; i < M; ++i ) for( unsigned i = 0; i < M; ++i ) { unsigned idx = rand() % N; // unsigned idx = i % N; // printf( " %u %u", idx, a[ idx ] ); x += a[ idx ]; } assert( !gettimeofday( &end, NULL ) ); duration = time_diff( start, end ); assert( 0 < print_time( stdout, duration ) ); printf( "Magic number: %u\n", x ); free( a ); #endif srand( 42 ); assert( ( F * F * F * F * F ) == N ); #ifdef TEST_TREE unsigned levels = 5; printf( "Tree alloc\n" ); assert( !gettimeofday( &start, NULL ) ); unsigned n, max_range, tag; leaf_p prev = NULL; seq_tree_p t = seq_alloc( levels, &n, &max_range, &tag, &prev ); assert( !gettimeofday( &end, NULL ) ); duration = time_diff( start, end ); assert( 0 < print_time( stdout, duration ) ); printf( "??? %p\n", t->leaves[ 1 ]._->data ); printf( "Tree init %u mr=%u\n", t->nodes[ F /* XXX */ - 1 ].range, max_range ); assert( !gettimeofday( &start, NULL ) ); for( unsigned i = 0; i < N; ++i ) { unsigned val = rand(); seq_set( t, i, val, max_range, n, tag ); // seq_tree_p temp; // seq_set_mv( t, i, val, max_range, n, tag, &temp ); // t = temp; // printf( " set[%u] (4) %u", i, t->leaves[0]._[4] ); } assert( !gettimeofday( &end, NULL ) ); duration = time_diff( start, end ); assert( 0 < print_time( stdout, duration ) ); x = 0; printf( "Tree reads %u\n", x ); assert( !gettimeofday( &start, NULL ) ); #if 1 for( unsigned i = 0; i < M; ++i ) { unsigned v; unsigned idx = rand() % N; // unsigned idx = i % N; seq_get( t, idx, levels - 1, &v, max_range, n, tag ); // printf( " %u %u", idx, v ); x += v; } #else iterator_t iter; for( assert( !iterator_first( t, tag, &iter ) ); has_next( &iter ); assert( !advance( &iter ) ) ) { unsigned val; assert( !get( &iter, &val ) ); x += val; } #endif assert( !gettimeofday( &end, NULL ) ); duration = time_diff( start, end ); assert( 0 < print_time( stdout, duration ) ); printf( "Magic number: %u\n", x ); #endif return 0; } #define SUBR(t, tag, idx) ( tag ? t->leaves[ idx ].range : t->nodes[ idx ].range ) seq_tree_p seq_alloc( unsigned level, unsigned *n, unsigned *max_range, unsigned *tag, leaf_p *prev ) { seq_tree_p t = (seq_tree_p)malloc( sizeof(t[0]) ); if( level < 2 ) { /* XXX deprecated */ assert( 0 ); leaf_p leaf = (leaf_p)malloc( sizeof(leaf[0]) ); *n = 1; *max_range = F; t->leaves[0].range = F; t->leaves[0]._ = leaf; } else { *n = F; unsigned range = 0; for( unsigned i = 0; i < F; ++i ) { if( level > 2 ) { seq_tree_p nd = seq_alloc( level - 1, &t->nodes[i].child_n, &t->nodes[i].child_max, &t->nodes[i].tag, prev ); range += SUBR( nd, level == 3, t->nodes[i].child_n - 1); // printf( " r%u", range ); t->nodes[i]._ = nd; t->nodes[i].range = range; } else { range += F; t->leaves[i]._ = (leaf_p)malloc( sizeof( t->leaves[i]._[0] ) ); t->leaves[i].range = range; t->leaves[i]._->left = *prev; t->leaves[i]._->right = NULL; if( *prev ) { (*prev)->right = t->leaves[i]._; } *prev = t->leaves[i]._; // printf( " i=%u L%p\n", i, t->leaves[i]._ ); } } // printf( " r=%u", range ); *max_range = range; *tag = ( 2 == level ); } return t; } int seq_set( seq_tree_p t, unsigned idx, unsigned val, unsigned max, unsigned n, unsigned tag ) { // printf( "seq_set idx=%u t=%p n=%u m=%u\n", idx, t, n, max ); unsigned guess = idx / ( max / n ); while( 1 ) { if( idx >= SUBR( t, tag, guess ) ) { printf( "\n\nTOO HIGH %u\n\n", guess ); --guess; } else if( guess > 0 && idx < SUBR( t, tag, guess - 1 ) ) { printf( "\n\nTOO LOW %u\n\n", guess ); ++guess; } else { break; } } unsigned prev_range = guess < 1 ? 0 : SUBR( t, tag, guess - 1 ); unsigned next_idx = idx - prev_range; //printf( " g=%u prv=%u r=%u nx=%u v=%u\n", guess, prev_range, // SUBR( t, tag, guess ), next_idx, val ); if( tag ) { // printf( " set t=%p L=%p\n", t, t->leaves[ guess ]._ ); t->leaves[ guess ]._->data[ next_idx ] = val; // (t->leaves[ guess ]._)[ next_idx ] = val; return 0; } else { return seq_set( t->nodes[ guess ]._, next_idx, val, t->nodes[ guess ].child_max, t->nodes[ guess ].child_n, t->nodes[ guess ].tag ); } } int seq_set_mv( seq_tree_p t, unsigned idx, unsigned val, unsigned max, unsigned n, unsigned tag, seq_tree_p *res ) { // printf( "seq_set idx=%u t=%p n=%u m=%u\n", idx, t, n, max ); unsigned guess = idx / ( max / n ); while( 1 ) { if( idx >= SUBR( t, tag, guess ) ) { printf( "\n\nTOO HIGH %u\n\n", guess ); --guess; } else if( guess > 0 && idx < SUBR( t, tag, guess - 1 ) ) { printf( "\n\nTOO LOW %u\n\n", guess ); ++guess; } else { break; } } unsigned prev_range = guess < 1 ? 0 : SUBR( t, tag, guess - 1 ); unsigned next_idx = idx - prev_range; //printf( " g=%u prv=%u r=%u nx=%u v=%u\n", guess, prev_range, // SUBR( t, tag, guess ), next_idx, val ); if( tag ) { // printf( " set t=%p L=%p\n", t, t->leaves[ guess ]._ ); // (t->leaves[ guess ]._)[ next_idx ] = val; seq_tree_p t_new = (seq_tree_p)malloc( sizeof( t_new[0] ) ); memcpy( t_new, t, sizeof( t[0] ) ); t_new->leaves[ guess ]._ = (leaf_p)malloc( sizeof( t_new->leaves[guess]._[0] ) ); memcpy( t_new->leaves[ guess ]._, t->leaves[ guess ]._, F * sizeof( t_new->leaves[guess]._[0] ) ); t_new->leaves[ guess ]._->data[ next_idx ] = val; free( t->leaves[ guess ]._ ); free( t ); *res = t_new; return 0; } else { seq_tree_p child_new; int rc = seq_set_mv( t->nodes[ guess ]._, next_idx, val, t->nodes[ guess ].child_max, t->nodes[ guess ].child_n, t->nodes[ guess ].tag, &child_new ); seq_tree_p t_new = (seq_tree_p)malloc( sizeof( t_new[0] ) ); memcpy( t_new, t, sizeof( t[0] ) ); t_new->nodes[ guess ]._ = child_new; free( t ); *res = t_new; return rc; } } static int seq_get( seq_tree_p t, unsigned idx, unsigned level, unsigned *p, unsigned max, unsigned n, unsigned tag ) { #if 1 // printf( "seq_get t=%p n=%u r0=%u\n", t, t->n, t->ranges[0] ); // unsigned guess = idx / ( max / n ); unsigned guess = n * idx / max; // unsigned guess = idx >> ( level * 5 ); //printf( " %u %u %u %u ", // max / n, 1 << ( level * 5 ), guess, idx >> ( level * 5 ) ); // unsigned prev_range; while( 1 ) { if( idx >= SUBR( t, tag, guess ) ) { printf( "\n\nIDX TOO HIGH %u\n\n", guess ); ++guess; } else { if( guess > 0 && idx < SUBR( t, tag, guess - 1 ) ) { printf( "\n\nIDX TOO LOW %u\n\n", guess ); --guess; } else { break; } } } unsigned prev_range = guess < 1 ? 0 : SUBR( t, tag, guess - 1 ); unsigned next_idx = idx - prev_range; #else unsigned guess = 0; unsigned next_idx = 0; #endif if( tag ) { *p = t->leaves[ guess ]._->data[ next_idx ]; return 0; } else { return seq_get( t->nodes[ guess ]._, next_idx, level - 1, p, t->nodes[ guess ].child_max, t->nodes[ guess ].child_n, t->nodes[ guess ].tag ); } } struct timeval time_diff( struct timeval start, struct timeval end ) { struct timeval result; result.tv_sec = end.tv_sec - start.tv_sec; if( start.tv_usec > end.tv_usec ) { --result.tv_sec; end.tv_usec += 1000000; } result.tv_usec = end.tv_usec - start.tv_usec; return result; } int print_time( FILE *f, struct timeval tv ) { return fprintf( f, "%02ldm %02lds %03dms %03dus\n", tv.tv_sec / 60, tv.tv_sec % 60, tv.tv_usec / 1000, tv.tv_usec % 1000 ); }
the_stack_data/778674.c
#include <stdio.h> int main(void) { char line[150]; int i, j; printf("Enter a string: "); fgets(line, (sizeof line/ sizeof line[0]), stdin); for (i=0; line[i] != '\0'; ++i) { while ( !((line[i] >= 'a' && line[i] <= 'z') || (line[i] >= 'A' && line[i] <= 'Z') || line[i] == '\0')) { for (j=i; line[j] != '\0'; ++j) { line[j] = line[j+1]; } line[j] = '\0'; } } printf("Output: "); puts(line); return 0; }
the_stack_data/97275.c
/** *Licensed to the Apache Software Foundation (ASF) under one *or more contributor license agreements. See the NOTICE file *distributed with this work for additional information *regarding copyright ownership. The ASF licenses this file *to you under the Apache License, Version 2.0 (the *"License"); you may not use this file except in compliance *with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * *Unless required by applicable law or agreed to in writing, *software distributed under the License is distributed on an *"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the *specific language governing permissions and limitations *under the License. */ /* * component_registry.c * * \date Nov 15, 2012 * \author <a href="mailto:[email protected]">Apache Celix Project Team</a> * \copyright Apache License, Version 2.0 */
the_stack_data/170452418.c
#include <stdio.h> int main() { printf("Hello Body \n"); return 0; }
the_stack_data/62636486.c
/* expected enumerator */ enum a{ b, };
the_stack_data/23576225.c
/* * $Id: menubox.c,v 1.159 2018/06/21 23:28:56 tom Exp $ * * menubox.c -- implements the menu box * * Copyright 2000-2016,2018 Thomas E. Dickey * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Licens, version 2.1e * 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, write to * Free Software Foundation, Inc. * 51 Franklin St., Fifth Floor * Boston, MA 02110, USA. * * An earlier version of this program lists as authors * Savio Lam ([email protected]) */ #include <dialog.h> #include <dlg_keys.h> typedef enum { Unselected = 0, Selected, Editing } Mode; typedef struct { /* the outer-window */ WINDOW *dialog; int box_y; int box_x; int tag_x; int item_x; int menu_height; int menu_width; /* the inner-window */ WINDOW *menu; DIALOG_LISTITEM *items; int item_no; } ALL_DATA; #define MIN_HIGH (1 + (5 * MARGIN)) #define INPUT_ROWS 3 /* rows per inputmenu entry */ #define RowHeight(i) (is_inputmenu ? ((i) * INPUT_ROWS) : ((i) * 1)) #define ItemToRow(i) (is_inputmenu ? ((i) * INPUT_ROWS + 1) : (i)) #define RowToItem(i) (is_inputmenu ? ((i) / INPUT_ROWS + 0) : (i)) /* * Print menu item */ static void print_item(ALL_DATA * data, WINDOW *win, DIALOG_LISTITEM * item, int choice, Mode selected, bool is_inputmenu) { chtype save = dlg_get_attrs(win); int n; int climit = (data->item_x - data->tag_x - GUTTER); int my_width = data->menu_width; int my_x = data->item_x; int my_y = ItemToRow(choice); bool both = (!dialog_vars.no_tags && !dialog_vars.no_items); bool first = TRUE; chtype bordchar; const char *show = (dialog_vars.no_items ? item->name : item->text); switch (selected) { default: case Unselected: bordchar = item_attr; break; case Selected: bordchar = item_selected_attr; break; case Editing: bordchar = dialog_attr; break; } /* Clear 'residue' of last item and mark current current item */ if (is_inputmenu) { dlg_attrset(win, (selected != Unselected) ? item_selected_attr : item_attr); for (n = my_y - 1; n < my_y + INPUT_ROWS - 1; n++) { wmove(win, n, 0); wprintw(win, "%*s", my_width, " "); } } else { dlg_attrset(win, menubox_attr); wmove(win, my_y, 0); wprintw(win, "%*s", my_width, " "); } /* highlight first char of the tag to be special */ if (both) { (void) wmove(win, my_y, data->tag_x); dlg_print_listitem(win, item->name, climit, first, selected); first = FALSE; } /* Draw the input field box (only for inputmenu) */ (void) wmove(win, my_y, my_x); if (is_inputmenu) { my_width -= 1; dlg_draw_box(win, my_y - 1, my_x, INPUT_ROWS, my_width - my_x - data->tag_x, bordchar, bordchar); my_width -= 1; ++my_x; } /* print actual item */ wmove(win, my_y, my_x); dlg_print_listitem(win, show, my_width - my_x, first, selected); if (selected) { dlg_item_help(item->help); } dlg_attrset(win, save); } /* * Allow the user to edit the text of a menu entry. */ static int input_menu_edit(ALL_DATA * data, DIALOG_LISTITEM * items, int choice, char **resultp) { chtype save = dlg_get_attrs(data->menu); char *result; int offset = 0; int key = 0, fkey = 0; bool first = TRUE; /* see above */ bool is_inputmenu = TRUE; int y = ItemToRow(choice); int code = TRUE; int max_len = dlg_max_input(MAX((int) strlen(items->text) + 1, MAX_LEN)); result = dlg_malloc(char, (size_t) max_len); assert_ptr(result, "input_menu_edit"); /* original item is used to initialize the input string. */ result[0] = '\0'; strcpy(result, items->text); print_item(data, data->menu, items, choice, Editing, TRUE); /* taken out of inputbox.c - but somewhat modified */ for (;;) { if (!first) key = dlg_mouse_wgetch(data->menu, &fkey); if (dlg_edit_string(result, &offset, key, fkey, first)) { dlg_show_string(data->menu, result, offset, inputbox_attr, y, data->item_x + 1, data->menu_width - data->item_x - 3, FALSE, first); first = FALSE; } else if (key == ESC || key == TAB) { code = FALSE; break; } else { break; } } print_item(data, data->menu, items, choice, Selected, TRUE); dlg_attrset(data->menu, save); *resultp = result; return code; } static int handle_button(int code, DIALOG_LISTITEM * items, int choice) { char *help_result; switch (code) { case DLG_EXIT_OK: /* FALLTHRU */ case DLG_EXIT_EXTRA: dlg_add_string(items[choice].name); break; case DLG_EXIT_HELP: dlg_add_help_listitem(&code, &help_result, &items[choice]); dlg_add_string(help_result); break; } return code; } int dlg_renamed_menutext(DIALOG_LISTITEM * items, int current, char *newtext) { if (dialog_vars.input_result) dialog_vars.input_result[0] = '\0'; dlg_add_result("RENAMED "); dlg_add_string(items[current].name); dlg_add_result(" "); dlg_add_string(newtext); return DLG_EXIT_EXTRA; } int dlg_dummy_menutext(DIALOG_LISTITEM * items, int current, char *newtext) { (void) items; (void) current; (void) newtext; return DLG_EXIT_ERROR; } static void print_menu(ALL_DATA * data, int choice, int scrollamt, int max_choice, bool is_inputmenu) { int i; for (i = 0; i < max_choice; i++) { print_item(data, data->menu, &data->items[i + scrollamt], i, (i == choice) ? Selected : Unselected, is_inputmenu); } /* Clean bottom lines */ if (is_inputmenu) { int spare_lines, x_count; spare_lines = data->menu_height % INPUT_ROWS; dlg_attrset(data->menu, menubox_attr); for (; spare_lines; spare_lines--) { wmove(data->menu, data->menu_height - spare_lines, 0); for (x_count = 0; x_count < data->menu_width; x_count++) { waddch(data->menu, ' '); } } } (void) wnoutrefresh(data->menu); dlg_draw_scrollbar(data->dialog, scrollamt, scrollamt, scrollamt + max_choice, data->item_no, data->box_x, data->box_x + data->menu_width, data->box_y, data->box_y + data->menu_height + 1, menubox_border2_attr, menubox_border_attr); } static bool check_hotkey(DIALOG_LISTITEM * items, int choice) { bool result = FALSE; if (dlg_match_char(dlg_last_getc(), (dialog_vars.no_tags ? items[choice].text : items[choice].name))) { result = TRUE; } return result; } /* * This is an alternate interface to 'menu' which allows the application * to read the list item states back directly without putting them in the * output buffer. */ int dlg_menu(const char *title, const char *cprompt, int height, int width, int menu_height, int item_no, DIALOG_LISTITEM * items, int *current_item, DIALOG_INPUTMENU rename_menutext) { /* *INDENT-OFF* */ static DLG_KEYS_BINDING binding[] = { HELPKEY_BINDINGS, ENTERKEY_BINDINGS, TOGGLEKEY_BINDINGS, DLG_KEYS_DATA( DLGK_FIELD_NEXT, KEY_RIGHT ), DLG_KEYS_DATA( DLGK_FIELD_NEXT, TAB ), DLG_KEYS_DATA( DLGK_FIELD_PREV, KEY_BTAB ), DLG_KEYS_DATA( DLGK_FIELD_PREV, KEY_LEFT ), DLG_KEYS_DATA( DLGK_ITEM_NEXT, '+' ), DLG_KEYS_DATA( DLGK_ITEM_NEXT, KEY_DOWN ), DLG_KEYS_DATA( DLGK_ITEM_NEXT, CHR_NEXT ), DLG_KEYS_DATA( DLGK_ITEM_PREV, '-' ), DLG_KEYS_DATA( DLGK_ITEM_PREV, KEY_UP ), DLG_KEYS_DATA( DLGK_ITEM_PREV, CHR_PREVIOUS ), DLG_KEYS_DATA( DLGK_PAGE_FIRST, KEY_HOME ), DLG_KEYS_DATA( DLGK_PAGE_LAST, KEY_END ), DLG_KEYS_DATA( DLGK_PAGE_LAST, KEY_LL ), DLG_KEYS_DATA( DLGK_PAGE_NEXT, KEY_NPAGE ), DLG_KEYS_DATA( DLGK_PAGE_PREV, KEY_PPAGE ), END_KEYS_BINDING }; static DLG_KEYS_BINDING binding2[] = { INPUTSTR_BINDINGS, HELPKEY_BINDINGS, ENTERKEY_BINDINGS, END_KEYS_BINDING }; /* *INDENT-ON* */ #ifdef KEY_RESIZE int old_LINES = LINES; int old_COLS = COLS; int old_height = height; int old_width = width; #endif ALL_DATA all; int i, j, x, y, cur_x, cur_y; int key = 0, fkey; int button = dialog_state.visit_items ? -1 : dlg_default_button(); int choice = dlg_default_listitem(items); int result = DLG_EXIT_UNKNOWN; int scrollamt = 0; int max_choice; int found; int use_width, name_width, text_width, list_width; WINDOW *dialog, *menu; char *prompt = 0; const char **buttons = dlg_ok_labels(); bool is_inputmenu = ((rename_menutext != 0) && (rename_menutext != dlg_dummy_menutext)); DLG_TRACE(("# menubox args:\n")); DLG_TRACE2S("title", title); DLG_TRACE2S("message", cprompt); DLG_TRACE2N("height", height); DLG_TRACE2N("width", width); DLG_TRACE2N("lheight", menu_height); DLG_TRACE2N("llength", item_no); /* FIXME dump the items[][] too */ DLG_TRACE2N("current", *current_item); DLG_TRACE2N("rename", rename_menutext != 0); dialog_state.plain_buttons = TRUE; all.items = items; all.item_no = item_no; dlg_does_output(); #ifdef KEY_RESIZE retry: #endif prompt = dlg_strclone(cprompt); dlg_tab_correct_str(prompt); all.menu_height = menu_height; use_width = dlg_calc_list_width(item_no, items) + 10; use_width = MAX(26, use_width); if (all.menu_height == 0) { /* calculate height without items (4) */ dlg_auto_size(title, prompt, &height, &width, MIN_HIGH, use_width); dlg_calc_listh(&height, &all.menu_height, item_no); } else { dlg_auto_size(title, prompt, &height, &width, MIN_HIGH + all.menu_height, use_width); } dlg_button_layout(buttons, &width); dlg_print_size(height, width); dlg_ctl_size(height, width); x = dlg_box_x_ordinate(width); y = dlg_box_y_ordinate(height); dialog = dlg_new_window(height, width, y, x); all.dialog = dialog; dlg_register_window(dialog, "menubox", binding); dlg_register_buttons(dialog, "menubox", buttons); dlg_mouse_setbase(x, y); dlg_draw_box2(dialog, 0, 0, height, width, dialog_attr, border_attr, border2_attr); dlg_draw_bottom_box2(dialog, border_attr, border2_attr, dialog_attr); dlg_draw_title(dialog, title); dlg_attrset(dialog, dialog_attr); dlg_print_autowrap(dialog, prompt, height, width); all.menu_width = width - 6; getyx(dialog, cur_y, cur_x); all.box_y = cur_y + 1; all.box_x = (width - all.menu_width) / 2 - 1; /* * After displaying the prompt, we know how much space we really have. * Limit the list to avoid overwriting the ok-button. */ if (all.menu_height + MIN_HIGH > height - cur_y) all.menu_height = height - MIN_HIGH - cur_y; if (all.menu_height <= 0) all.menu_height = 1; /* Find out maximal number of displayable items at once. */ max_choice = MIN(all.menu_height, RowHeight(item_no)); if (is_inputmenu) max_choice /= INPUT_ROWS; /* create new window for the menu */ menu = dlg_sub_window(dialog, all.menu_height, all.menu_width, y + all.box_y + 1, x + all.box_x + 1); all.menu = menu; dlg_register_window(menu, "menu", binding2); dlg_register_buttons(menu, "menu", buttons); /* draw a box around the menu items */ dlg_draw_box(dialog, all.box_y, all.box_x, all.menu_height + 2, all.menu_width + 2, menubox_border_attr, menubox_border2_attr); name_width = 0; text_width = 0; /* Find length of longest item to center menu * * only if --menu was given, using --inputmenu * * won't be centered. */ for (i = 0; i < item_no; i++) { name_width = MAX(name_width, dlg_count_columns(items[i].name)); text_width = MAX(text_width, dlg_count_columns(items[i].text)); } /* If the name+text is wider than the list is allowed, then truncate * one or both of them. If the name is no wider than 30% of the list, * leave it intact. * * FIXME: the gutter width and name/list ratio should be configurable. */ use_width = (all.menu_width - GUTTER); if (dialog_vars.no_tags) { list_width = MIN(use_width, text_width); } else if (dialog_vars.no_items) { list_width = MIN(use_width, name_width); } else { if (text_width >= 0 && name_width >= 0 && use_width > 0 && text_width + name_width > use_width) { int need = (int) (0.30 * use_width); if (name_width > need) { int want = (int) (use_width * ((double) name_width) / (text_width + name_width)); name_width = (want > need) ? want : need; } text_width = use_width - name_width; } list_width = (text_width + name_width); } all.tag_x = (is_inputmenu ? 0 : (use_width - list_width) / 2); all.item_x = ((dialog_vars.no_tags ? 0 : (dialog_vars.no_items ? 0 : (GUTTER + name_width))) + all.tag_x); if (choice - scrollamt >= max_choice) { scrollamt = choice - (max_choice - 1); choice = max_choice - 1; } print_menu(&all, choice, scrollamt, max_choice, is_inputmenu); /* register the new window, along with its borders */ dlg_mouse_mkbigregion(all.box_y + 1, all.box_x, all.menu_height + 2, all.menu_width + 2, KEY_MAX, 1, 1, 1 /* by lines */ ); dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width); dlg_trace_win(dialog); while (result == DLG_EXIT_UNKNOWN) { if (button < 0) /* --visit-items */ wmove(dialog, all.box_y + ItemToRow(choice) + 1, all.box_x + all.tag_x + 1); key = dlg_mouse_wgetch(dialog, &fkey); if (dlg_result_key(key, fkey, &result)) break; found = FALSE; if (fkey) { /* * Allow a mouse-click on a box to switch selection to that box. * Handling a button click is a little more complicated, since we * push a KEY_ENTER back onto the input stream so we'll put the * cursor at the right place before handling the "keypress". */ if (key >= DLGK_MOUSE(KEY_MAX)) { key -= DLGK_MOUSE(KEY_MAX); i = RowToItem(key); if (i < max_choice) { found = TRUE; } else { beep(); continue; } } else if (is_DLGK_MOUSE(key) && dlg_ok_buttoncode(key - M_EVENT) >= 0) { button = (key - M_EVENT); ungetch('\n'); continue; } } else { /* * Check if key pressed matches first character of any item tag in * list. If there is more than one match, we will cycle through * each one as the same key is pressed repeatedly. */ if (button < 0 || !dialog_state.visit_items) { for (j = scrollamt + choice + 1; j < item_no; j++) { if (check_hotkey(items, j)) { found = TRUE; i = j - scrollamt; break; } } if (!found) { for (j = 0; j <= scrollamt + choice; j++) { if (check_hotkey(items, j)) { found = TRUE; i = j - scrollamt; break; } } } if (found) dlg_flush_getc(); } else if ((j = dlg_char_to_button(key, buttons)) >= 0) { button = j; ungetch('\n'); continue; } /* * A single digit (1-9) positions the selection to that line in the * current screen. */ if (!found && (key <= '9') && (key > '0') && (key - '1' < max_choice)) { found = TRUE; i = key - '1'; } } if (!found && fkey) { found = TRUE; switch (key) { case DLGK_PAGE_FIRST: i = -scrollamt; break; case DLGK_PAGE_LAST: i = item_no - 1 - scrollamt; break; case DLGK_MOUSE(KEY_PPAGE): case DLGK_PAGE_PREV: if (choice) i = 0; else if (scrollamt != 0) i = -MIN(scrollamt, max_choice); else continue; break; case DLGK_MOUSE(KEY_NPAGE): case DLGK_PAGE_NEXT: i = MIN(choice + max_choice, item_no - scrollamt - 1); break; case DLGK_ITEM_PREV: i = choice - 1; if (choice == 0 && scrollamt == 0) continue; break; case DLGK_ITEM_NEXT: i = choice + 1; if (scrollamt + choice >= item_no - 1) continue; break; default: found = FALSE; break; } } if (found) { if (i != choice) { getyx(dialog, cur_y, cur_x); if (i < 0 || i >= max_choice) { if (i < 0) { scrollamt += i; choice = 0; } else { choice = max_choice - 1; scrollamt += (i - max_choice + 1); } print_menu(&all, choice, scrollamt, max_choice, is_inputmenu); } else { choice = i; print_menu(&all, choice, scrollamt, max_choice, is_inputmenu); (void) wmove(dialog, cur_y, cur_x); wrefresh(dialog); } } continue; /* wait for another key press */ } if (fkey) { switch (key) { case DLGK_FIELD_PREV: button = dlg_prev_button(buttons, button); dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width); break; case DLGK_FIELD_NEXT: button = dlg_next_button(buttons, button); dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width); break; case DLGK_TOGGLE: case DLGK_ENTER: if (is_inputmenu) result = dlg_ok_buttoncode(button); else result = dlg_enter_buttoncode(button); /* * If dlg_menu() is called from dialog_menu(), we want to * capture the results into dialog_vars.input_result. */ if (result == DLG_EXIT_ERROR) { result = DLG_EXIT_UNKNOWN; } else if (is_inputmenu || rename_menutext == dlg_dummy_menutext) { result = handle_button(result, items, scrollamt + choice); } /* * If we have a rename_menutext function, interpret the Extra * button as a request to rename the menu's text. If that * function doesn't return "Unknown", we will exit from this * function. Usually that is done for dialog_menu(), so the * shell script can use the updated value. If it does return * "Unknown", update the list item only. A direct caller of * dlg_menu() can free the renamed value - we cannot. */ if (is_inputmenu && result == DLG_EXIT_EXTRA) { char *tmp; if (input_menu_edit(&all, &items[scrollamt + choice], choice, &tmp)) { result = rename_menutext(items, scrollamt + choice, tmp); if (result == DLG_EXIT_UNKNOWN) { items[scrollamt + choice].text = tmp; } else { free(tmp); } } else { result = DLG_EXIT_UNKNOWN; print_item(&all, menu, &items[scrollamt + choice], choice, Selected, is_inputmenu); (void) wnoutrefresh(menu); free(tmp); } if (result == DLG_EXIT_UNKNOWN) { dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width); } } break; #ifdef KEY_RESIZE case KEY_RESIZE: dlg_will_resize(dialog); /* reset data */ #define resizeit(name, NAME) \ name = ((NAME >= old_##NAME) \ ? (NAME - (old_##NAME - old_##name)) \ : old_##name) resizeit(height, LINES); resizeit(width, COLS); free(prompt); dlg_clear(); dlg_del_window(dialog); dlg_mouse_free_regions(); /* repaint */ goto retry; #endif default: flash(); break; } } } dlg_mouse_free_regions(); dlg_unregister_window(menu); dlg_del_window(dialog); free(prompt); *current_item = scrollamt + choice; return result; } /* * Display a menu for choosing among a number of options */ int dialog_menu(const char *title, const char *cprompt, int height, int width, int menu_height, int item_no, char **items) { int result; int choice; int i, j; DIALOG_LISTITEM *listitems; listitems = dlg_calloc(DIALOG_LISTITEM, (size_t) item_no + 1); assert_ptr(listitems, "dialog_menu"); for (i = j = 0; i < item_no; ++i) { listitems[i].name = items[j++]; listitems[i].text = (dialog_vars.no_items ? dlg_strempty() : items[j++]); listitems[i].help = ((dialog_vars.item_help) ? items[j++] : dlg_strempty()); } dlg_align_columns(&listitems[0].text, sizeof(DIALOG_LISTITEM), item_no); result = dlg_menu(title, cprompt, height, width, menu_height, item_no, listitems, &choice, (dialog_vars.input_menu ? dlg_renamed_menutext : dlg_dummy_menutext)); dlg_free_columns(&listitems[0].text, sizeof(DIALOG_LISTITEM), item_no); free(listitems); return result; }
the_stack_data/150141305.c
/* Taxonomy Classification: 0000000100000142000110 */ /* * WRITE/READ 0 write * WHICH BOUND 0 upper * DATA TYPE 0 char * MEMORY LOCATION 0 stack * SCOPE 0 same * CONTAINER 0 no * POINTER 0 no * INDEX COMPLEXITY 1 variable * ADDRESS COMPLEXITY 0 constant * LENGTH COMPLEXITY 0 N/A * ADDRESS ALIAS 0 none * INDEX ALIAS 0 none * LOCAL CONTROL FLOW 0 none * SECONDARY CONTROL FLOW 1 if * LOOP STRUCTURE 4 non-standard for * LOOP COMPLEXITY 2 one * ASYNCHRONY 0 no * TAINT 0 no * RUNTIME ENV. DEPENDENCE 0 no * MAGNITUDE 1 1 byte * CONTINUOUS/DISCRETE 1 continuous * SIGNEDNESS 0 no */ /* Copyright 2005 Massachusetts Institute of Technology All rights reserved. Redistribution and use of software 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 set of conditions and the disclaimer below. - Redistributions in binary form must reproduce the copyright notice, this set of conditions, and the disclaimer below in the documentation and/or other materials provided with the distribution. - Neither the name of the Massachusetts Institute of Technology 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". ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ int main(int argc, char *argv[]) { int test_value; int loop_counter; char buf[10]; test_value = 10; loop_counter = 0; for( ; ; ) { if (loop_counter > test_value) break; /* BAD */ buf[loop_counter] = 'A'; loop_counter++; } return 0; }
the_stack_data/200144349.c
#include <stdio.h> #include <string.h> #define SPACE ' ' int countSegments(char* s) { int i = strlen(s); if (i <= 0) return 0; int c = 0; int prevIsSpace = 1; while (i--) { if (s[i] == ' ') { prevIsSpace = 1; } else { if (prevIsSpace) c++; prevIsSpace = 0; } } return c; } void test(char *s) { printf("seg(`%s`) = %d\n", s, countSegments(s)); } int main(void) { test("Hello, my name is John"); test(" "); test(" Hello, word"); test(" H, 00 "); return 0; }
the_stack_data/133016.c
#include <stdio.h> /** * Recursive tree function. * Recursive statement is called more than one time inside the function. * * @param int n * * @return void */ void func(int n) { if (n > 0) { // statement at calling time printf("%d\n", n); // calling itself func(n - 1); // calling itself second time func(n - 1); } } /** * Main. */ int main () { int x = 3; // calling a recursive function func(x); return 0; }
the_stack_data/114750.c
#include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #include <stdlib.h> /********************** * * O_RDONLY - read only * O_WRONLY - write only * O_RDWR - read write * * O_APPEND - append buffer to witten data * O_TRUNC - truncate original data * O_CREAT - create a file if needed * O_EXCL - used with 0_CREAT * open() is atomic * **********************/ /********************** * * PERMISSIONS * * S_IRUSR - read, owner * S_IWUSR - write, owner * S_IXUSR - execute, owner * S_IRGRP - read, group * S_IWGRP - write, owner * S_IXGRP - execute, owner * S_IROTH - read, others * S_IWOTH - write, others * S_IXOTH - execute, others * **********************/ int main(int argc, char** argv) { char c; int in, out; in = open("file.in", O_RDONLY); out = open("file.out", O_WRONLY | O_CREAT, S_IWUSR | S_IRUSR); // while () return 0; }
the_stack_data/672991.c
#include <stdio.h> #include <stdlib.h> /* imprime en pantalla una cadena de caracteres de largo LARGO_CADENA */ /* formada por concatenaciones de "+----" */ #define LARGO_PATRON 5 /* cantidad de caracteres en el patron */ int main(int argc, char** argv){ int i; int patronesCompletos, resto, largoCadena; char* patron = "+----"; if(argc != 2){ printf("Error: Debe dar la cantidad LARGO de caracteres a imprimir como '~./ LARGO'\n"); return -1; } else{ largoCadena = atoi(argv[1]); patronesCompletos = largoCadena / LARGO_PATRON; resto = largoCadena % LARGO_PATRON; printf("\n"); for(i = 0; i < patronesCompletos + resto; i++) if(i < patronesCompletos) printf("%s", patron); else printf("%c", patron[i-patronesCompletos]); printf("\n\n"); return 0; } }
the_stack_data/26700886.c
#if defined(NEC_98) #include <windows.h> #include <malloc.h> #include <string.h> #include <stdlib.h> #include <conapi.h> #include "insignia.h" #include "host_def.h" #include "xt.h" #include "debug.h" #include "cg.h" #include "error.h" #include "nt_graph.h" #include <devioctl.h> #include <ntddvdeo.h> #include "host_rrr.h" #include "nt_fulsc.h" #include "tgdc.h" void cg_all_copy IPT0(); void gaij_save IPT1(unsigned short, value); void gaij_load IPT2(unsigned short, value, unsigned char *, pattern); void cg_half_load IPT2(unsigned short, value, unsigned char *, pattern); void cg_ank_load IPT2(unsigned short, value, unsigned char *, pattern); void cg_all_load IPT2(unsigned short, value, unsigned char *, pattern); #if 1 // 931022 void null_write IPT1(unsigned char *, pattern); // 931022 #else // 931022 void null_write IPT0(); #endif // 931022 unsigned short cg_font_load IPT2(unsigned short, value, unsigned char *, pattern); unsigned short set_bit_pattern IPT2(unsigned short, value,unsigned char *,pattern); void cg_save IPT0(); void host_set_gaij_data IPT1(unsigned short, value); void host_set_all_gaij_data IPT0(); void host_get_all_gaij_data IPT0(); extern TerminateVDM(); BOOL cg_flg = TRUE; unsigned char pat[32]; unsigned short old_code; unsigned short old_count; void *Base; GAIJ_GLOBS *gaijglobs; BOOL cg_lock; extern MODEFF_GLOBS modeffglobs; extern BOOL fontselchanged; extern BOOL independvsync; extern BOOL VDMForWOW; IMPORT BOOL is_vdm_register; void cg_all_copy IFN0() { unsigned char *src,*dst; int i; src = CG_WINDOW_START; dst = CG_WINDOW_START+32; for(i=1;i<120;i++) { memcpy(dst,src,32); dst += 32; } } void gaij_save IFN1(unsigned short, value) { unsigned short code; unsigned char *src,*dst; int i,j; BOOL call_console = FALSE; code = value - USER_GAIJ_START; if (code > 0x7F) code = (code & 0x00FF)+0x7F; gaijglobs[code].code = value; src = CG_WINDOW_START; dst = gaijglobs[code].pattern; src++; if (old_count & 0x20) src += 32; else dst++; for (i=0;i<16;i++,src+=2,dst+=2) if(*dst != *src) { *dst = *src; call_console = TRUE; } #ifdef VSYNC // VSYNC if (sc.ScreenState == FULLSCREEN && call_console) { host_set_gaij_data(code); } #endif // VSYNC } void gaij_load IFN2(unsigned short, value, unsigned char *, pattern) { unsigned short code; unsigned char *src; int i,j; half_access = TRUE; code = (value & 0x7f7f)- USER_GAIJ_START; if (code == 0x7F) { #if 1 // 931022 null_write(pattern); // 931022 #else // 931022 null_write(); #endif // 931022 return; } else { if (code > 0x7F) code = (code & 0x007F)+0x7F; src = gaijglobs[code].pattern; // if (HIRESO_MODE) ; // else { if (cg_flg) { if (!(cgglobs.counter & 0x20)) src++; for (i=0;i<32;i+=2,src+=2) { cgglobs.cgwindow_ptr[i] = 0xFF; cgglobs.cgwindow_ptr[i+1] = *src; } cg_all_copy(); } else { for (i=0;i<16;i++,src+=2,pattern++) *pattern = *src; src = gaijglobs[code].pattern; src++; for (i=16;i<32;i++,src+=2,pattern++) *pattern = *src; } // } } } void cg_half_load IFN2(unsigned short, value,unsigned char *, pattern) { unsigned char *src; int i,j; unsigned short Hi,Lo; half_access = TRUE; Hi = (value & 0x7F00) >>8; Lo = (value & 0x007F); src = (unsigned char *) Base + ((Hi-0x01)*94+(Lo-0x21))*32+0x1800; // if (HIRESO_MODE) ; // else { if (cg_flg) { if (!(cgglobs.counter & 0x20)) src++; for (i=0;i<32;i+=2,src+=2) { cgglobs.cgwindow_ptr[i] = 0xFF; cgglobs.cgwindow_ptr[i+1] = *src; } cg_all_copy(); } else { if ((value >= HALF_CHAR_START) && (value <= HALF_CHAR_END)) { for (i=0;i<16;src+=2,i++,pattern++) *pattern = *src; for (i=16;i<32;i++,pattern++) *pattern = 0x00; } else { for (i=0;i<16;i++,src+=2,pattern++) *pattern = *src; src = (unsigned char *) Base + ((Hi-0x01)*94+(Lo-0x21))*32+0x1800; src++; for (i=16;i<32;i++,src+=2,pattern++) *pattern = *src; } } // } } void cg_ank_load IFN2(unsigned short, value, unsigned char *, pattern) { unsigned char *src; int i,j; unsigned short Lo; half_access = TRUE; Lo = (value >> 8); // if (HIRESO_MODE) ; // else { if ((modeffglobs.modeff_data[3]) & 0x01) { src = (unsigned char *) Base + Lo*16+2048; if (cg_flg) { for (i=0;i<32;i+=2,src++) { cgglobs.cgwindow_ptr[i] = 0xFF; cgglobs.cgwindow_ptr[i+1] = *src; } cg_all_copy(); } else { for (i=0;i<16;i++,src++,pattern++) *pattern = *src; for (i=16;i<32;i++,pattern++) *pattern = 0x00; } } else { if (cg_flg) { src = (unsigned char *) Base + Lo*8; for (i=0;i<16;i+=2,src++) { cgglobs.cgwindow_ptr[i] = 0xFF; cgglobs.cgwindow_ptr[i+1] = *src; } for (i=16;i<32;i++) { cgglobs.cgwindow_ptr[i] = 0xff; } cg_all_copy(); } else { src = (unsigned char *) Base + Lo*16+2048; for (i=0;i<16;i++,src++,pattern++) *pattern = *src; for (i=16;i<32;i++,pattern++) *pattern = 0x00; } } // } } void cg_all_load IFN2(unsigned short, value, unsigned char *, pattern) { unsigned char *src; int i,j; unsigned short Hi,Lo; half_access = FALSE; Hi = (value & 0x7F00) >>8; Lo = (value & 0x007F); src = (unsigned char *) Base + ((Hi-0x01)*94+(Lo-0x21))*32+0x1800; // if (HIRESO_MODE) ; // else { if (cg_flg) { for (i=0;i<32;i++,src++) cgglobs.cgwindow_ptr[i] = *src; cg_all_copy(); } else { for (i=0;i<16;i++,src+=2,pattern++) *pattern = *src; src = (unsigned char *) Base + ((Hi-0x01)*94+(Lo-0x21))*32+0x1800; src++; for (i=16;i<32;i++,src+=2,pattern++) *pattern = *src; } // } } #if 1 // 931022 void null_write IFN1(unsigned char *, pattern) { // 931022 unsigned char *dst; // 931022 int i,j; // 931022 // 931022 if (cg_flg) { // 931022 dst = CG_WINDOW_START; // 931022 for (i=0;i<32;i++,dst++) { // 931022 *dst = 0x00; // 931022 } // 931022 cg_all_copy(); // 940113 bug fix } else { // 931022 for (i=0;i<32;i++,pattern++) // 931022 *pattern = 0x00; // 931022 } // 931022 } // 931022 #else // 931022 void null_write IFN0() { unsigned char *dst; int i,j; dst = CG_WINDOW_START; for (i=0;i<32;i++,dst++) { if (cg_flg) { *dst = 0x00; } } cg_all_copy(); } #endif // 931022 unsigned short cg_font_load IFN2(unsigned short, value, unsigned char *, pattern) { if(sc.ScreenState == FULLSCREEN && independvsync) return(0xFFFF); if ((cg_flg == FALSE) ||(! ((old_code == (value & 0x7F7F)) && (old_count == cgglobs.counter))) || (fontselchanged)) { if (cg_flg == TRUE) { if ((old_code >= USER_GAIJ_START) && (old_code <= USER_GAIJ_END)) gaij_save(old_code); } if ((value & 0x00FF) == 0) cg_ank_load(value,pattern); else { // cgglobs.code &= 0x7F7F; value &= 0x7F7F; if ((value >= USER_GAIJ_START) && (value <= USER_GAIJ_END)) gaij_load(value,pattern); else { if (((value & 0x007f) >= 0x21) && ((value & 0x007f) <= 0x7e)) { if (((value >= JIS1_CHAR_START) && (value <= JIS1_CHAR_END)) || ((value >= JIS1_KANJ_START) && (value <= JIS2_KANJ_END))) cg_all_load(value,pattern); else { if ((value >= HALF_CHAR_START) && (value <= LARG_KANJ_END)) cg_half_load(value,pattern); else { #if 1 // 931022 null_write(pattern);// 931022 #else // 931022 null_write(); #endif // 931022 return(0xFFFF); } } } else { #if 1 // 931022 null_write(pattern);// 931022 #else // 931022 null_write(); #endif // 931022 return(0xFFFF); } } } if (cg_flg) { old_code = (value & 0x7F7F); old_count = cgglobs.counter; } return(value); } } void mapping_init IFN0() { CHAR *szBinFileName; HANDLE File,Mapping; GAIJ_GLOBS *tmp; short err_no; int i; // if (HIRESO_MODE) // gaijglobs = (GAIJ_GLOBS *) host_malloc(18870); // else #if 1 // 941014 gaijglobs = (GAIJ_GLOBS *) host_malloc(sizeof(GAIJ_GLOBS) * 0x105); #else // 941014 gaijglobs = (GAIJ_GLOBS *) host_malloc(8670); #endif for (i=0; i<127; i++) gaijglobs[i].code = USER_GAIJ_START+i; for (i=127; i<254; i++) gaijglobs[i].code = USER_GAIJ_START+i+0x81; szBinFileName = (CHAR*) malloc(MAX_PATH); GetEnvironmentVariable("SystemRoot",szBinFileName,MAX_PATH); strncat(szBinFileName,"\\system32\\dot16.bin",MAX_PATH-strlen(szBinFileName)); // HIRESO_MODE dot24.bin szBinFileName[MAX_PATH - 1] = '\0'; File = CreateFile((LPSTR)szBinFileName, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL ); if (File == INVALID_HANDLE_VALUE) { err_no = host_error(EG_SYS_MISSING_FILE, ERR_QUIT, szBinFileName); free(szBinFileName); TerminateVDM(); } Mapping = CreateFileMapping(File, NULL, PAGE_READONLY, 0, 0, NULL ); CloseHandle( File ); if (Mapping == NULL) { err_no = host_error(EG_SYS_MISSING_FILE, ERR_QUIT, szBinFileName); free(szBinFileName); TerminateVDM(); } Base = MapViewOfFile(Mapping, FILE_MAP_READ, 0, 0, 0 ); CloseHandle( Mapping ); if (Base == NULL) { err_no = host_error(EG_SYS_MISSING_FILE, ERR_QUIT, szBinFileName); free(szBinFileName); TerminateVDM(); } free(szBinFileName); } unsigned short set_bit_pattern IFN2(unsigned short, value, unsigned char *, pattern) { int i; unsigned short r; cg_flg = FALSE; // if (value < 0x100) value <<= 8; value = (unsigned short) ((value <<8) | (value >>8)); // if (cg_font_load(value,pattern) == 0xFFFF) { // cg_flg = TRUE; // return(0xFFFF); // } else { // for (i=0;i<32;i++) // pattern[i] = pat[i]; // cg_flg = TRUE; // return(value); r=cg_font_load(value,pattern); cg_flg = TRUE; return(r); // } } unsigned short set_bit_pattern_20 IFN2(unsigned short, value, unsigned char *, pattern) { int i; *pattern++ = 0; *pattern++ = 0; if (set_bit_pattern(value,pattern) == 0xFFFF) return(0xFFFF); else { for (i=35;i>19;i--) // May 25 1994 pattern[i] = pattern[i-4]; for (i=16;i<20;i++) pattern[i] = 0; pattern[36] = 0; pattern[37] = 0; } return(value); } void cg_save IFN0() { if (((cgglobs.code & 0x7F7F)>= USER_GAIJ_START) && ((cgglobs.code & 0x7F7F)<= USER_GAIJ_END)) { // if((cgglobs.code & 0x7f)) if(cg_lock) return; cg_lock = TRUE; // gaij_save(cgglobs.code & ~0x80); // gaij_save(cgglobs.code); gaij_save(cgglobs.code&0x7F7F); cg_lock = FALSE; } } void host_set_gaij_data IFN1(unsigned short, value) { #ifdef VSYNC // VSYNC #if 1 VDM_IOCTL_PARAM param; if(is_vdm_register){ param.dwIoControlCode = IOCTL_VIDEO_SET_FONT_DATA; param.cbInBuffer = sizeof(VIDEO_FONT_DATA); param.lpvInBuffer = (LPVOID)&gaijglobs[value]; param.lpvOutBuffer = (LPVOID)NULL; param.cbOutBuffer = 0L; if(!VDMConsoleOperation(VDM_VIDEO_IOCTL, (LPDWORD)&param)){ ErrorExit(); } } #else LPVDM_USER_CHAR_PARAM param; param = (LPVDM_USER_CHAR_PARAM) &gaijglobs[value]; VDMConsoleOperation( VDM_SET_USER_CHAR, (LPDWORD) param ); // call Console API #endif #endif // VSYNC } void host_set_all_gaij_data IFN0() { #ifdef VSYNC // VSYNC #if 1 VDM_IOCTL_PARAM param; param.dwIoControlCode = IOCTL_VIDEO_SET_ALL_FONT_DATA; param.cbInBuffer = sizeof(VIDEO_ALL_FONT_DATA); param.lpvInBuffer = (LPVOID)gaijglobs; param.lpvOutBuffer = (LPVOID)NULL; param.cbOutBuffer = 0L; if(!VDMConsoleOperation(VDM_VIDEO_IOCTL, (LPDWORD)&param)){ ErrorExit(); } #else int i; for(i =0; i<254; i++) { // if ((gaijglobs[i].code < USER_GAIJ_START) || // (gaijglobs[i].code > USER_GAIJ_END)) { host_set_gaij_data((unsigned short) i); // } } #endif #endif // VSYNC } void host_sleep(i) int i; { Sleep(i); } void host_get_all_gaij_data IFN0() { VDM_IOCTL_PARAM param; param.dwIoControlCode = IOCTL_VIDEO_GET_ALL_FONT_DATA; param.cbInBuffer = 0L; param.lpvInBuffer = (LPVOID)NULL; param.lpvOutBuffer = (LPVOID)gaijglobs; param.cbOutBuffer = sizeof(VIDEO_ALL_FONT_DATA); if(!VDMConsoleOperation(VDM_VIDEO_IOCTL, (LPDWORD)&param)){ ErrorExit(); } } void video_real_out(DWORD ioctl, word port,word value) { VDM_IOCTL_PARAM param; DWORD io_data; io_data = (value << 16) + port; param.dwIoControlCode = ioctl; param.cbInBuffer = 4L; param.lpvInBuffer = (LPVOID)&io_data; param.cbOutBuffer = 0L; param.lpvOutBuffer = NULL; if(!VDMConsoleOperation(VDM_VIDEO_IOCTL, (LPDWORD)&param)){ ErrorExit(); } return; } word video_real_in(DWORD ioctl, word port,word value) { VDM_IOCTL_PARAM param; DWORD io_data; io_data = (value << 16) + port; param.dwIoControlCode = ioctl; param.cbInBuffer = 4L; param.lpvInBuffer = (LPVOID)&io_data; param.cbOutBuffer = 0L; param.lpvOutBuffer = NULL; if(!VDMConsoleOperation(VDM_VIDEO_IOCTL, (LPDWORD)&param)){ ErrorExit(); } param.dwIoControlCode = IOCTL_VIDEO_GET_IN_DATA; param.cbInBuffer = 0L; param.lpvInBuffer = NULL; param.cbOutBuffer = 4L; param.lpvOutBuffer = (LPVOID)&io_data; if(!VDMConsoleOperation(VDM_VIDEO_IOCTL, (LPDWORD)&param)){ ErrorExit(); } return((word)((io_data >> 16) & 0xffff)); } void protect_inb(word port,word *value) { if(VDMForWOW && port == 0x42) { *value = video_real_in(IOCTL_VIDEO_CHAR_IN, port, NULL); } } void protect_outb(word port,word value) { if(VDMForWOW && port == 0x40) { video_real_out(IOCTL_VIDEO_CHAR_OUT, port , value); } } void protect_inw(word port,word *value) { #if 0 *value = video_real_in(IOCTL_VIDEO_SHORT_IN, port , NULL); #endif } void protect_outw(word port,word value) { #if 0 video_real_out(IOCTL_VIDEO_SHORT_OUT, port, value); #endif } #endif // NEC_98
the_stack_data/25763.c
#include <math.h> void dftcor(float w, float delta, float a, float b, float endpts[], float *corre, float *corim, float *corfac) { void nrerror(char error_text[]); float a0i,a0r,a1i,a1r,a2i,a2r,a3i,a3r,arg,c,cl,cr,s,sl,sr,t; float t2,t4,t6; double cth,ctth,spth2,sth,sth4i,stth,th,th2,th4,tmth2,tth4i; th=w*delta; if (a >= b || th < 0.0e0 || th > 3.01416e0) nrerror("bad arguments to dftcor"); if (fabs(th) < 5.0e-2) { t=th; t2=t*t; t4=t2*t2; t6=t4*t2; *corfac=1.0-(11.0/720.0)*t4+(23.0/15120.0)*t6; a0r=(-2.0/3.0)+t2/45.0+(103.0/15120.0)*t4-(169.0/226800.0)*t6; a1r=(7.0/24.0)-(7.0/180.0)*t2+(5.0/3456.0)*t4-(7.0/259200.0)*t6; a2r=(-1.0/6.0)+t2/45.0-(5.0/6048.0)*t4+t6/64800.0; a3r=(1.0/24.0)-t2/180.0+(5.0/24192.0)*t4-t6/259200.0; a0i=t*(2.0/45.0+(2.0/105.0)*t2-(8.0/2835.0)*t4+(86.0/467775.0)*t6); a1i=t*(7.0/72.0-t2/168.0+(11.0/72576.0)*t4-(13.0/5987520.0)*t6); a2i=t*(-7.0/90.0+t2/210.0-(11.0/90720.0)*t4+(13.0/7484400.0)*t6); a3i=t*(7.0/360.0-t2/840.0+(11.0/362880.0)*t4-(13.0/29937600.0)*t6); } else { cth=cos(th); sth=sin(th); ctth=cth*cth-sth*sth; stth=2.0e0*sth*cth; th2=th*th; th4=th2*th2; tmth2=3.0e0-th2; spth2=6.0e0+th2; sth4i=1.0/(6.0e0*th4); tth4i=2.0e0*sth4i; *corfac=tth4i*spth2*(3.0e0-4.0e0*cth+ctth); a0r=sth4i*(-42.0e0+5.0e0*th2+spth2*(8.0e0*cth-ctth)); a0i=sth4i*(th*(-12.0e0+6.0e0*th2)+spth2*stth); a1r=sth4i*(14.0e0*tmth2-7.0e0*spth2*cth); a1i=sth4i*(30.0e0*th-5.0e0*spth2*sth); a2r=tth4i*(-4.0e0*tmth2+2.0e0*spth2*cth); a2i=tth4i*(-12.0e0*th+2.0e0*spth2*sth); a3r=sth4i*(2.0e0*tmth2-spth2*cth); a3i=sth4i*(6.0e0*th-spth2*sth); } cl=a0r*endpts[1]+a1r*endpts[2]+a2r*endpts[3]+a3r*endpts[4]; sl=a0i*endpts[1]+a1i*endpts[2]+a2i*endpts[3]+a3i*endpts[4]; cr=a0r*endpts[8]+a1r*endpts[7]+a2r*endpts[6]+a3r*endpts[5]; sr = -a0i*endpts[8]-a1i*endpts[7]-a2i*endpts[6]-a3i*endpts[5]; arg=w*(b-a); c=cos(arg); s=sin(arg); *corre=cl+c*cr-s*sr; *corim=sl+s*cr+c*sr; }
the_stack_data/89199249.c
int n; #include<stdio.h> // Define complex number typedef struct { float re; float im; } Cplfloat; float CplAbs(Cplfloat const * c) { return sqrtf(c->re*c->re+c->im*c->im); } void average_power(int Nth, int Nrg, int Nv, Cplfloat ptrin[Nth][Nrg][Nv], float Pow[Nth]) { int th, v, rg; for(th=0;th<Nth;++th) for (rg=0; rg<Nrg; rg++) for (v=0; v<Nv; v++) Pow[th]+=CplAbs(&ptrin[th][rg][v]); } int main(int argc, char *argv[]) { int i,j,k; int th,rg,v; // th=16,rg=13,v=12; { Cplfloat in[th][rg][v]; float pow[th]; for(i=0;i<th;i++) { pow[th]=0.; for(j=0;j<rg;j++) for(k=0;k<v;k++) { in[i][j][k].re=i*j*k; in[i][j][k].im=i*j+k; } } average_power(th,rg,v,in,pow); for(i=0;i<th;i++) pow[th]/=rg*v; /* only print with bad precision for validation */ for(i=0;i<th;i++) printf("-%d-%d-", ((int)pow[i])/10); } return 0; }
the_stack_data/839186.c
/* * File: abort.c * * Descrição: * Rotina para abortar o Boot Loader. * * 2015 - Created by Fred Nora. */ #include <stdio.h> extern void refresh_screen(); /* abort: Função principal para abortar o Boot Loader. */ void abort (void){ printf ("BL.BIN: [ABORT] * System halted\n"); refresh_screen (); while (1){ asm ("cli"); asm ("hlt"); }; } // // End. //
the_stack_data/45450135.c
#include <stdio.h> int main() { int n,k,p,a,i,s,countt=0,sum; scanf("%d",&a); for(i=0;i<a;i++){ scanf("%d %d %d",&n,&k,&p); s=(k+p)%n; if(k+p<n) printf("Case %d: %d\n",countt+1,k+p); else if(s==0) printf("Case %d: %d\n",countt+1,n); else printf("Case %d: %d\n",countt+1,s); countt++; } return 0; }
the_stack_data/604117.c
main () { int i = 0; if (sizeof (unsigned long int) == 4) { unsigned long int z = 0; do { z -= 0x00004000; i++; if (i > 0x00040000) abort (); } while (z > 0); exit (0); } else if (sizeof (unsigned int) == 4) { unsigned int z = 0; do { z -= 0x00004000; i++; if (i > 0x00040000) abort (); } while (z > 0); exit (0); } else exit (0); }
the_stack_data/145890.c
/***** *UPIITA-IPN México *Autor de este programa: Espindola Pizano Ariel Tonatiuh *CopyRight© Derechos Reservados */ #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h>//inet_ntoa #include <netdb.h> #include <stdio.h> #include <unistd.h> #include <string.h> #include <pthread.h> #include <stdlib.h> #include <time.h> #include <math.h> #define BUFF_SIZE 512 #define N 3 FILE *file[N]; char **fileName; pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; typedef struct Copy { unsigned int idPackage; unsigned int total_packages; unsigned int size_package; unsigned int size_file; int reads; int flag; unsigned char buffer[BUFF_SIZE]; }copy_f; FILE *createFile(const char *nameFile,char *format){ FILE *file = fopen(nameFile,format); if (file != NULL){return file;} else{printf("Error al crear/abrir archivo.\n"); exit(0);} } unsigned int remainingBytes(unsigned int idPackage,int buffer_size, unsigned int size_file){ return (size_file - (idPackage*buffer_size)); } void sendFile(int newsockfd, copy_f *data, int indice){ unsigned int pos = 0; unsigned int restante; do{ read(newsockfd,data,sizeof(copy_f)); printf("Paquete enviando: %u\n",data->size_package ); if(data->flag == 1) { data->flag = 1; write(newsockfd,data,sizeof(copy_f)); } if(data->flag == 0) { pthread_mutex_lock(&mutex); fseek(file[indice-1],pos,SEEK_SET); data->idPackage++; restante = remainingBytes(data->idPackage-1,BUFF_SIZE,data->size_file); data->size_package = ( restante < BUFF_SIZE )?restante : BUFF_SIZE; data->reads = fread(data->buffer,data->size_package,1,file[indice-1]); if(data->idPackage <= data->total_packages){ printf("Pos: %u, %u / %u Paquete: %u bytes\n", pos,data->idPackage, data->total_packages,data->size_package);} pos = ftell(file[indice-1]); pthread_mutex_unlock(&mutex); data->flag = 1; write(newsockfd,data,sizeof(copy_f)); } }while(!feof(file[indice-1])); printf(" [100--] \n"); } void initNameFile(char ***fileName){ (*fileName)[0] = "MATLAB_2014.zip"; (*fileName)[1] = "archivo2.pdf"; (*fileName)[2] = "archivo3.png"; printf("Nombre1: %s\n",(*fileName)[0]); printf("Nombre2: %s\n",(*fileName)[1]); printf("Nombre3: %s\n",(*fileName)[2]); } void error(const char *msg){ perror(msg); exit(1); } void *codigo_hilo_cliente(void *_newsockfd){ int newsockfd = *(int *)_newsockfd; copy_f *data; data = (copy_f*)malloc(sizeof(copy_f)); char buffer_char[256]; int indice; bzero(buffer_char,256); read(newsockfd,&indice,sizeof(indice)); printf("indice %d\n",indice); if(indice == 0){ printf("Dato 0 no valido. \n"); exit(0);} write(newsockfd,fileName[indice-1],sizeof(buffer_char)); pthread_mutex_lock(&mutex); fseek(file[indice-1],0,SEEK_END); data->size_file = ftell(file[indice-1]); if(data->size_file == 0) {printf("Archivo vacío, no se pudo leer\n"); exit(-1);} data->total_packages = (int)ceil((float)data->size_file / (float)BUFF_SIZE); printf("TOTAL: %u\n",data->total_packages); data->idPackage = 0; data->size_package = 0; fseek(file[indice-1],0,SEEK_SET); pthread_mutex_unlock(&mutex); data->flag = 0; write(newsockfd,data,sizeof(copy_f)); sendFile(newsockfd,data,indice); close(newsockfd); pthread_exit(&newsockfd); } int main(int argc, char *argv[]){ int sockfd; int portno; socklen_t clilen; struct sockaddr_in serv_addr, cli_addr; fileName = (char **)malloc(sizeof(char *)); initNameFile(&fileName); if (argc < 2) { fprintf(stderr,"ERROR, no se ha proveido puerto\n"); exit(1); } sockfd = socket(AF_INET, SOCK_STREAM, 0); if (sockfd < 0) error("ERROR al abrir socket"); bzero((char *) &serv_addr, sizeof(serv_addr)); portno = atoi(argv[1]); serv_addr.sin_family = AF_INET; serv_addr.sin_addr.s_addr = INADDR_ANY; serv_addr.sin_port = htons(portno); if (bind(sockfd, (struct sockaddr *) &serv_addr, sizeof(serv_addr)) < 0) error("ERROR en enlazar"); listen(sockfd,5); file[0] = createFile((const char*)fileName[0],"rb"); file[1] = createFile((const char*)fileName[1],"rb"); file[2] = createFile((const char*)fileName[2],"rb"); while(1){ int newsockfd; printf("Esperando a un cliente\n"); clilen = sizeof(cli_addr); newsockfd = accept(sockfd, (struct sockaddr *) &cli_addr, &clilen); printf("Cliente aceptado\n"); if (newsockfd < 0) error("ERROR en aceptar conecciones"); pthread_t hilo; pthread_create(&hilo,NULL,codigo_hilo_cliente,&newsockfd); } close(sockfd); return 0; }
the_stack_data/178264546.c
//@ ltl invariant negative: (<> ((<> AP(x_10 - x_21 > -8)) U AP(x_15 - x_13 >= 7))); float x_0; float x_1; float x_2; float x_3; float x_4; float x_5; float x_6; float x_7; float x_8; float x_9; float x_10; float x_11; float x_12; float x_13; float x_14; float x_15; float x_16; float x_17; float x_18; float x_19; float x_20; float x_21; float x_22; float x_23; int main() { float x_0_; float x_1_; float x_2_; float x_3_; float x_4_; float x_5_; float x_6_; float x_7_; float x_8_; float x_9_; float x_10_; float x_11_; float x_12_; float x_13_; float x_14_; float x_15_; float x_16_; float x_17_; float x_18_; float x_19_; float x_20_; float x_21_; float x_22_; float x_23_; while(1) { x_0_ = ((((6.0 + x_3) > ((15.0 + x_5) > (20.0 + x_8)? (15.0 + x_5) : (20.0 + x_8))? (6.0 + x_3) : ((15.0 + x_5) > (20.0 + x_8)? (15.0 + x_5) : (20.0 + x_8))) > ((13.0 + x_10) > ((5.0 + x_11) > (3.0 + x_12)? (5.0 + x_11) : (3.0 + x_12))? (13.0 + x_10) : ((5.0 + x_11) > (3.0 + x_12)? (5.0 + x_11) : (3.0 + x_12)))? ((6.0 + x_3) > ((15.0 + x_5) > (20.0 + x_8)? (15.0 + x_5) : (20.0 + x_8))? (6.0 + x_3) : ((15.0 + x_5) > (20.0 + x_8)? (15.0 + x_5) : (20.0 + x_8))) : ((13.0 + x_10) > ((5.0 + x_11) > (3.0 + x_12)? (5.0 + x_11) : (3.0 + x_12))? (13.0 + x_10) : ((5.0 + x_11) > (3.0 + x_12)? (5.0 + x_11) : (3.0 + x_12)))) > (((15.0 + x_14) > ((15.0 + x_15) > (11.0 + x_16)? (15.0 + x_15) : (11.0 + x_16))? (15.0 + x_14) : ((15.0 + x_15) > (11.0 + x_16)? (15.0 + x_15) : (11.0 + x_16))) > ((19.0 + x_21) > ((10.0 + x_22) > (10.0 + x_23)? (10.0 + x_22) : (10.0 + x_23))? (19.0 + x_21) : ((10.0 + x_22) > (10.0 + x_23)? (10.0 + x_22) : (10.0 + x_23)))? ((15.0 + x_14) > ((15.0 + x_15) > (11.0 + x_16)? (15.0 + x_15) : (11.0 + x_16))? (15.0 + x_14) : ((15.0 + x_15) > (11.0 + x_16)? (15.0 + x_15) : (11.0 + x_16))) : ((19.0 + x_21) > ((10.0 + x_22) > (10.0 + x_23)? (10.0 + x_22) : (10.0 + x_23))? (19.0 + x_21) : ((10.0 + x_22) > (10.0 + x_23)? (10.0 + x_22) : (10.0 + x_23))))? (((6.0 + x_3) > ((15.0 + x_5) > (20.0 + x_8)? (15.0 + x_5) : (20.0 + x_8))? (6.0 + x_3) : ((15.0 + x_5) > (20.0 + x_8)? (15.0 + x_5) : (20.0 + x_8))) > ((13.0 + x_10) > ((5.0 + x_11) > (3.0 + x_12)? (5.0 + x_11) : (3.0 + x_12))? (13.0 + x_10) : ((5.0 + x_11) > (3.0 + x_12)? (5.0 + x_11) : (3.0 + x_12)))? ((6.0 + x_3) > ((15.0 + x_5) > (20.0 + x_8)? (15.0 + x_5) : (20.0 + x_8))? (6.0 + x_3) : ((15.0 + x_5) > (20.0 + x_8)? (15.0 + x_5) : (20.0 + x_8))) : ((13.0 + x_10) > ((5.0 + x_11) > (3.0 + x_12)? (5.0 + x_11) : (3.0 + x_12))? (13.0 + x_10) : ((5.0 + x_11) > (3.0 + x_12)? (5.0 + x_11) : (3.0 + x_12)))) : (((15.0 + x_14) > ((15.0 + x_15) > (11.0 + x_16)? (15.0 + x_15) : (11.0 + x_16))? (15.0 + x_14) : ((15.0 + x_15) > (11.0 + x_16)? (15.0 + x_15) : (11.0 + x_16))) > ((19.0 + x_21) > ((10.0 + x_22) > (10.0 + x_23)? (10.0 + x_22) : (10.0 + x_23))? (19.0 + x_21) : ((10.0 + x_22) > (10.0 + x_23)? (10.0 + x_22) : (10.0 + x_23)))? ((15.0 + x_14) > ((15.0 + x_15) > (11.0 + x_16)? (15.0 + x_15) : (11.0 + x_16))? (15.0 + x_14) : ((15.0 + x_15) > (11.0 + x_16)? (15.0 + x_15) : (11.0 + x_16))) : ((19.0 + x_21) > ((10.0 + x_22) > (10.0 + x_23)? (10.0 + x_22) : (10.0 + x_23))? (19.0 + x_21) : ((10.0 + x_22) > (10.0 + x_23)? (10.0 + x_22) : (10.0 + x_23))))); x_1_ = ((((6.0 + x_3) > ((7.0 + x_5) > (13.0 + x_6)? (7.0 + x_5) : (13.0 + x_6))? (6.0 + x_3) : ((7.0 + x_5) > (13.0 + x_6)? (7.0 + x_5) : (13.0 + x_6))) > ((6.0 + x_9) > ((16.0 + x_11) > (13.0 + x_12)? (16.0 + x_11) : (13.0 + x_12))? (6.0 + x_9) : ((16.0 + x_11) > (13.0 + x_12)? (16.0 + x_11) : (13.0 + x_12)))? ((6.0 + x_3) > ((7.0 + x_5) > (13.0 + x_6)? (7.0 + x_5) : (13.0 + x_6))? (6.0 + x_3) : ((7.0 + x_5) > (13.0 + x_6)? (7.0 + x_5) : (13.0 + x_6))) : ((6.0 + x_9) > ((16.0 + x_11) > (13.0 + x_12)? (16.0 + x_11) : (13.0 + x_12))? (6.0 + x_9) : ((16.0 + x_11) > (13.0 + x_12)? (16.0 + x_11) : (13.0 + x_12)))) > (((1.0 + x_14) > ((12.0 + x_16) > (4.0 + x_17)? (12.0 + x_16) : (4.0 + x_17))? (1.0 + x_14) : ((12.0 + x_16) > (4.0 + x_17)? (12.0 + x_16) : (4.0 + x_17))) > ((20.0 + x_19) > ((8.0 + x_22) > (10.0 + x_23)? (8.0 + x_22) : (10.0 + x_23))? (20.0 + x_19) : ((8.0 + x_22) > (10.0 + x_23)? (8.0 + x_22) : (10.0 + x_23)))? ((1.0 + x_14) > ((12.0 + x_16) > (4.0 + x_17)? (12.0 + x_16) : (4.0 + x_17))? (1.0 + x_14) : ((12.0 + x_16) > (4.0 + x_17)? (12.0 + x_16) : (4.0 + x_17))) : ((20.0 + x_19) > ((8.0 + x_22) > (10.0 + x_23)? (8.0 + x_22) : (10.0 + x_23))? (20.0 + x_19) : ((8.0 + x_22) > (10.0 + x_23)? (8.0 + x_22) : (10.0 + x_23))))? (((6.0 + x_3) > ((7.0 + x_5) > (13.0 + x_6)? (7.0 + x_5) : (13.0 + x_6))? (6.0 + x_3) : ((7.0 + x_5) > (13.0 + x_6)? (7.0 + x_5) : (13.0 + x_6))) > ((6.0 + x_9) > ((16.0 + x_11) > (13.0 + x_12)? (16.0 + x_11) : (13.0 + x_12))? (6.0 + x_9) : ((16.0 + x_11) > (13.0 + x_12)? (16.0 + x_11) : (13.0 + x_12)))? ((6.0 + x_3) > ((7.0 + x_5) > (13.0 + x_6)? (7.0 + x_5) : (13.0 + x_6))? (6.0 + x_3) : ((7.0 + x_5) > (13.0 + x_6)? (7.0 + x_5) : (13.0 + x_6))) : ((6.0 + x_9) > ((16.0 + x_11) > (13.0 + x_12)? (16.0 + x_11) : (13.0 + x_12))? (6.0 + x_9) : ((16.0 + x_11) > (13.0 + x_12)? (16.0 + x_11) : (13.0 + x_12)))) : (((1.0 + x_14) > ((12.0 + x_16) > (4.0 + x_17)? (12.0 + x_16) : (4.0 + x_17))? (1.0 + x_14) : ((12.0 + x_16) > (4.0 + x_17)? (12.0 + x_16) : (4.0 + x_17))) > ((20.0 + x_19) > ((8.0 + x_22) > (10.0 + x_23)? (8.0 + x_22) : (10.0 + x_23))? (20.0 + x_19) : ((8.0 + x_22) > (10.0 + x_23)? (8.0 + x_22) : (10.0 + x_23)))? ((1.0 + x_14) > ((12.0 + x_16) > (4.0 + x_17)? (12.0 + x_16) : (4.0 + x_17))? (1.0 + x_14) : ((12.0 + x_16) > (4.0 + x_17)? (12.0 + x_16) : (4.0 + x_17))) : ((20.0 + x_19) > ((8.0 + x_22) > (10.0 + x_23)? (8.0 + x_22) : (10.0 + x_23))? (20.0 + x_19) : ((8.0 + x_22) > (10.0 + x_23)? (8.0 + x_22) : (10.0 + x_23))))); x_2_ = ((((5.0 + x_2) > ((11.0 + x_4) > (19.0 + x_6)? (11.0 + x_4) : (19.0 + x_6))? (5.0 + x_2) : ((11.0 + x_4) > (19.0 + x_6)? (11.0 + x_4) : (19.0 + x_6))) > ((3.0 + x_7) > ((4.0 + x_8) > (4.0 + x_10)? (4.0 + x_8) : (4.0 + x_10))? (3.0 + x_7) : ((4.0 + x_8) > (4.0 + x_10)? (4.0 + x_8) : (4.0 + x_10)))? ((5.0 + x_2) > ((11.0 + x_4) > (19.0 + x_6)? (11.0 + x_4) : (19.0 + x_6))? (5.0 + x_2) : ((11.0 + x_4) > (19.0 + x_6)? (11.0 + x_4) : (19.0 + x_6))) : ((3.0 + x_7) > ((4.0 + x_8) > (4.0 + x_10)? (4.0 + x_8) : (4.0 + x_10))? (3.0 + x_7) : ((4.0 + x_8) > (4.0 + x_10)? (4.0 + x_8) : (4.0 + x_10)))) > (((7.0 + x_12) > ((13.0 + x_15) > (18.0 + x_17)? (13.0 + x_15) : (18.0 + x_17))? (7.0 + x_12) : ((13.0 + x_15) > (18.0 + x_17)? (13.0 + x_15) : (18.0 + x_17))) > ((16.0 + x_19) > ((4.0 + x_20) > (16.0 + x_22)? (4.0 + x_20) : (16.0 + x_22))? (16.0 + x_19) : ((4.0 + x_20) > (16.0 + x_22)? (4.0 + x_20) : (16.0 + x_22)))? ((7.0 + x_12) > ((13.0 + x_15) > (18.0 + x_17)? (13.0 + x_15) : (18.0 + x_17))? (7.0 + x_12) : ((13.0 + x_15) > (18.0 + x_17)? (13.0 + x_15) : (18.0 + x_17))) : ((16.0 + x_19) > ((4.0 + x_20) > (16.0 + x_22)? (4.0 + x_20) : (16.0 + x_22))? (16.0 + x_19) : ((4.0 + x_20) > (16.0 + x_22)? (4.0 + x_20) : (16.0 + x_22))))? (((5.0 + x_2) > ((11.0 + x_4) > (19.0 + x_6)? (11.0 + x_4) : (19.0 + x_6))? (5.0 + x_2) : ((11.0 + x_4) > (19.0 + x_6)? (11.0 + x_4) : (19.0 + x_6))) > ((3.0 + x_7) > ((4.0 + x_8) > (4.0 + x_10)? (4.0 + x_8) : (4.0 + x_10))? (3.0 + x_7) : ((4.0 + x_8) > (4.0 + x_10)? (4.0 + x_8) : (4.0 + x_10)))? ((5.0 + x_2) > ((11.0 + x_4) > (19.0 + x_6)? (11.0 + x_4) : (19.0 + x_6))? (5.0 + x_2) : ((11.0 + x_4) > (19.0 + x_6)? (11.0 + x_4) : (19.0 + x_6))) : ((3.0 + x_7) > ((4.0 + x_8) > (4.0 + x_10)? (4.0 + x_8) : (4.0 + x_10))? (3.0 + x_7) : ((4.0 + x_8) > (4.0 + x_10)? (4.0 + x_8) : (4.0 + x_10)))) : (((7.0 + x_12) > ((13.0 + x_15) > (18.0 + x_17)? (13.0 + x_15) : (18.0 + x_17))? (7.0 + x_12) : ((13.0 + x_15) > (18.0 + x_17)? (13.0 + x_15) : (18.0 + x_17))) > ((16.0 + x_19) > ((4.0 + x_20) > (16.0 + x_22)? (4.0 + x_20) : (16.0 + x_22))? (16.0 + x_19) : ((4.0 + x_20) > (16.0 + x_22)? (4.0 + x_20) : (16.0 + x_22)))? ((7.0 + x_12) > ((13.0 + x_15) > (18.0 + x_17)? (13.0 + x_15) : (18.0 + x_17))? (7.0 + x_12) : ((13.0 + x_15) > (18.0 + x_17)? (13.0 + x_15) : (18.0 + x_17))) : ((16.0 + x_19) > ((4.0 + x_20) > (16.0 + x_22)? (4.0 + x_20) : (16.0 + x_22))? (16.0 + x_19) : ((4.0 + x_20) > (16.0 + x_22)? (4.0 + x_20) : (16.0 + x_22))))); x_3_ = ((((13.0 + x_2) > ((12.0 + x_6) > (14.0 + x_7)? (12.0 + x_6) : (14.0 + x_7))? (13.0 + x_2) : ((12.0 + x_6) > (14.0 + x_7)? (12.0 + x_6) : (14.0 + x_7))) > ((3.0 + x_8) > ((9.0 + x_10) > (6.0 + x_11)? (9.0 + x_10) : (6.0 + x_11))? (3.0 + x_8) : ((9.0 + x_10) > (6.0 + x_11)? (9.0 + x_10) : (6.0 + x_11)))? ((13.0 + x_2) > ((12.0 + x_6) > (14.0 + x_7)? (12.0 + x_6) : (14.0 + x_7))? (13.0 + x_2) : ((12.0 + x_6) > (14.0 + x_7)? (12.0 + x_6) : (14.0 + x_7))) : ((3.0 + x_8) > ((9.0 + x_10) > (6.0 + x_11)? (9.0 + x_10) : (6.0 + x_11))? (3.0 + x_8) : ((9.0 + x_10) > (6.0 + x_11)? (9.0 + x_10) : (6.0 + x_11)))) > (((9.0 + x_12) > ((6.0 + x_15) > (1.0 + x_17)? (6.0 + x_15) : (1.0 + x_17))? (9.0 + x_12) : ((6.0 + x_15) > (1.0 + x_17)? (6.0 + x_15) : (1.0 + x_17))) > ((6.0 + x_19) > ((8.0 + x_20) > (18.0 + x_22)? (8.0 + x_20) : (18.0 + x_22))? (6.0 + x_19) : ((8.0 + x_20) > (18.0 + x_22)? (8.0 + x_20) : (18.0 + x_22)))? ((9.0 + x_12) > ((6.0 + x_15) > (1.0 + x_17)? (6.0 + x_15) : (1.0 + x_17))? (9.0 + x_12) : ((6.0 + x_15) > (1.0 + x_17)? (6.0 + x_15) : (1.0 + x_17))) : ((6.0 + x_19) > ((8.0 + x_20) > (18.0 + x_22)? (8.0 + x_20) : (18.0 + x_22))? (6.0 + x_19) : ((8.0 + x_20) > (18.0 + x_22)? (8.0 + x_20) : (18.0 + x_22))))? (((13.0 + x_2) > ((12.0 + x_6) > (14.0 + x_7)? (12.0 + x_6) : (14.0 + x_7))? (13.0 + x_2) : ((12.0 + x_6) > (14.0 + x_7)? (12.0 + x_6) : (14.0 + x_7))) > ((3.0 + x_8) > ((9.0 + x_10) > (6.0 + x_11)? (9.0 + x_10) : (6.0 + x_11))? (3.0 + x_8) : ((9.0 + x_10) > (6.0 + x_11)? (9.0 + x_10) : (6.0 + x_11)))? ((13.0 + x_2) > ((12.0 + x_6) > (14.0 + x_7)? (12.0 + x_6) : (14.0 + x_7))? (13.0 + x_2) : ((12.0 + x_6) > (14.0 + x_7)? (12.0 + x_6) : (14.0 + x_7))) : ((3.0 + x_8) > ((9.0 + x_10) > (6.0 + x_11)? (9.0 + x_10) : (6.0 + x_11))? (3.0 + x_8) : ((9.0 + x_10) > (6.0 + x_11)? (9.0 + x_10) : (6.0 + x_11)))) : (((9.0 + x_12) > ((6.0 + x_15) > (1.0 + x_17)? (6.0 + x_15) : (1.0 + x_17))? (9.0 + x_12) : ((6.0 + x_15) > (1.0 + x_17)? (6.0 + x_15) : (1.0 + x_17))) > ((6.0 + x_19) > ((8.0 + x_20) > (18.0 + x_22)? (8.0 + x_20) : (18.0 + x_22))? (6.0 + x_19) : ((8.0 + x_20) > (18.0 + x_22)? (8.0 + x_20) : (18.0 + x_22)))? ((9.0 + x_12) > ((6.0 + x_15) > (1.0 + x_17)? (6.0 + x_15) : (1.0 + x_17))? (9.0 + x_12) : ((6.0 + x_15) > (1.0 + x_17)? (6.0 + x_15) : (1.0 + x_17))) : ((6.0 + x_19) > ((8.0 + x_20) > (18.0 + x_22)? (8.0 + x_20) : (18.0 + x_22))? (6.0 + x_19) : ((8.0 + x_20) > (18.0 + x_22)? (8.0 + x_20) : (18.0 + x_22))))); x_4_ = ((((13.0 + x_0) > ((10.0 + x_1) > (19.0 + x_2)? (10.0 + x_1) : (19.0 + x_2))? (13.0 + x_0) : ((10.0 + x_1) > (19.0 + x_2)? (10.0 + x_1) : (19.0 + x_2))) > ((1.0 + x_6) > ((14.0 + x_8) > (18.0 + x_9)? (14.0 + x_8) : (18.0 + x_9))? (1.0 + x_6) : ((14.0 + x_8) > (18.0 + x_9)? (14.0 + x_8) : (18.0 + x_9)))? ((13.0 + x_0) > ((10.0 + x_1) > (19.0 + x_2)? (10.0 + x_1) : (19.0 + x_2))? (13.0 + x_0) : ((10.0 + x_1) > (19.0 + x_2)? (10.0 + x_1) : (19.0 + x_2))) : ((1.0 + x_6) > ((14.0 + x_8) > (18.0 + x_9)? (14.0 + x_8) : (18.0 + x_9))? (1.0 + x_6) : ((14.0 + x_8) > (18.0 + x_9)? (14.0 + x_8) : (18.0 + x_9)))) > (((13.0 + x_10) > ((12.0 + x_12) > (17.0 + x_13)? (12.0 + x_12) : (17.0 + x_13))? (13.0 + x_10) : ((12.0 + x_12) > (17.0 + x_13)? (12.0 + x_12) : (17.0 + x_13))) > ((8.0 + x_14) > ((11.0 + x_15) > (8.0 + x_21)? (11.0 + x_15) : (8.0 + x_21))? (8.0 + x_14) : ((11.0 + x_15) > (8.0 + x_21)? (11.0 + x_15) : (8.0 + x_21)))? ((13.0 + x_10) > ((12.0 + x_12) > (17.0 + x_13)? (12.0 + x_12) : (17.0 + x_13))? (13.0 + x_10) : ((12.0 + x_12) > (17.0 + x_13)? (12.0 + x_12) : (17.0 + x_13))) : ((8.0 + x_14) > ((11.0 + x_15) > (8.0 + x_21)? (11.0 + x_15) : (8.0 + x_21))? (8.0 + x_14) : ((11.0 + x_15) > (8.0 + x_21)? (11.0 + x_15) : (8.0 + x_21))))? (((13.0 + x_0) > ((10.0 + x_1) > (19.0 + x_2)? (10.0 + x_1) : (19.0 + x_2))? (13.0 + x_0) : ((10.0 + x_1) > (19.0 + x_2)? (10.0 + x_1) : (19.0 + x_2))) > ((1.0 + x_6) > ((14.0 + x_8) > (18.0 + x_9)? (14.0 + x_8) : (18.0 + x_9))? (1.0 + x_6) : ((14.0 + x_8) > (18.0 + x_9)? (14.0 + x_8) : (18.0 + x_9)))? ((13.0 + x_0) > ((10.0 + x_1) > (19.0 + x_2)? (10.0 + x_1) : (19.0 + x_2))? (13.0 + x_0) : ((10.0 + x_1) > (19.0 + x_2)? (10.0 + x_1) : (19.0 + x_2))) : ((1.0 + x_6) > ((14.0 + x_8) > (18.0 + x_9)? (14.0 + x_8) : (18.0 + x_9))? (1.0 + x_6) : ((14.0 + x_8) > (18.0 + x_9)? (14.0 + x_8) : (18.0 + x_9)))) : (((13.0 + x_10) > ((12.0 + x_12) > (17.0 + x_13)? (12.0 + x_12) : (17.0 + x_13))? (13.0 + x_10) : ((12.0 + x_12) > (17.0 + x_13)? (12.0 + x_12) : (17.0 + x_13))) > ((8.0 + x_14) > ((11.0 + x_15) > (8.0 + x_21)? (11.0 + x_15) : (8.0 + x_21))? (8.0 + x_14) : ((11.0 + x_15) > (8.0 + x_21)? (11.0 + x_15) : (8.0 + x_21)))? ((13.0 + x_10) > ((12.0 + x_12) > (17.0 + x_13)? (12.0 + x_12) : (17.0 + x_13))? (13.0 + x_10) : ((12.0 + x_12) > (17.0 + x_13)? (12.0 + x_12) : (17.0 + x_13))) : ((8.0 + x_14) > ((11.0 + x_15) > (8.0 + x_21)? (11.0 + x_15) : (8.0 + x_21))? (8.0 + x_14) : ((11.0 + x_15) > (8.0 + x_21)? (11.0 + x_15) : (8.0 + x_21))))); x_5_ = ((((9.0 + x_2) > ((18.0 + x_5) > (9.0 + x_7)? (18.0 + x_5) : (9.0 + x_7))? (9.0 + x_2) : ((18.0 + x_5) > (9.0 + x_7)? (18.0 + x_5) : (9.0 + x_7))) > ((5.0 + x_11) > ((18.0 + x_12) > (10.0 + x_14)? (18.0 + x_12) : (10.0 + x_14))? (5.0 + x_11) : ((18.0 + x_12) > (10.0 + x_14)? (18.0 + x_12) : (10.0 + x_14)))? ((9.0 + x_2) > ((18.0 + x_5) > (9.0 + x_7)? (18.0 + x_5) : (9.0 + x_7))? (9.0 + x_2) : ((18.0 + x_5) > (9.0 + x_7)? (18.0 + x_5) : (9.0 + x_7))) : ((5.0 + x_11) > ((18.0 + x_12) > (10.0 + x_14)? (18.0 + x_12) : (10.0 + x_14))? (5.0 + x_11) : ((18.0 + x_12) > (10.0 + x_14)? (18.0 + x_12) : (10.0 + x_14)))) > (((19.0 + x_16) > ((15.0 + x_17) > (11.0 + x_18)? (15.0 + x_17) : (11.0 + x_18))? (19.0 + x_16) : ((15.0 + x_17) > (11.0 + x_18)? (15.0 + x_17) : (11.0 + x_18))) > ((20.0 + x_19) > ((1.0 + x_20) > (18.0 + x_23)? (1.0 + x_20) : (18.0 + x_23))? (20.0 + x_19) : ((1.0 + x_20) > (18.0 + x_23)? (1.0 + x_20) : (18.0 + x_23)))? ((19.0 + x_16) > ((15.0 + x_17) > (11.0 + x_18)? (15.0 + x_17) : (11.0 + x_18))? (19.0 + x_16) : ((15.0 + x_17) > (11.0 + x_18)? (15.0 + x_17) : (11.0 + x_18))) : ((20.0 + x_19) > ((1.0 + x_20) > (18.0 + x_23)? (1.0 + x_20) : (18.0 + x_23))? (20.0 + x_19) : ((1.0 + x_20) > (18.0 + x_23)? (1.0 + x_20) : (18.0 + x_23))))? (((9.0 + x_2) > ((18.0 + x_5) > (9.0 + x_7)? (18.0 + x_5) : (9.0 + x_7))? (9.0 + x_2) : ((18.0 + x_5) > (9.0 + x_7)? (18.0 + x_5) : (9.0 + x_7))) > ((5.0 + x_11) > ((18.0 + x_12) > (10.0 + x_14)? (18.0 + x_12) : (10.0 + x_14))? (5.0 + x_11) : ((18.0 + x_12) > (10.0 + x_14)? (18.0 + x_12) : (10.0 + x_14)))? ((9.0 + x_2) > ((18.0 + x_5) > (9.0 + x_7)? (18.0 + x_5) : (9.0 + x_7))? (9.0 + x_2) : ((18.0 + x_5) > (9.0 + x_7)? (18.0 + x_5) : (9.0 + x_7))) : ((5.0 + x_11) > ((18.0 + x_12) > (10.0 + x_14)? (18.0 + x_12) : (10.0 + x_14))? (5.0 + x_11) : ((18.0 + x_12) > (10.0 + x_14)? (18.0 + x_12) : (10.0 + x_14)))) : (((19.0 + x_16) > ((15.0 + x_17) > (11.0 + x_18)? (15.0 + x_17) : (11.0 + x_18))? (19.0 + x_16) : ((15.0 + x_17) > (11.0 + x_18)? (15.0 + x_17) : (11.0 + x_18))) > ((20.0 + x_19) > ((1.0 + x_20) > (18.0 + x_23)? (1.0 + x_20) : (18.0 + x_23))? (20.0 + x_19) : ((1.0 + x_20) > (18.0 + x_23)? (1.0 + x_20) : (18.0 + x_23)))? ((19.0 + x_16) > ((15.0 + x_17) > (11.0 + x_18)? (15.0 + x_17) : (11.0 + x_18))? (19.0 + x_16) : ((15.0 + x_17) > (11.0 + x_18)? (15.0 + x_17) : (11.0 + x_18))) : ((20.0 + x_19) > ((1.0 + x_20) > (18.0 + x_23)? (1.0 + x_20) : (18.0 + x_23))? (20.0 + x_19) : ((1.0 + x_20) > (18.0 + x_23)? (1.0 + x_20) : (18.0 + x_23))))); x_6_ = ((((12.0 + x_0) > ((4.0 + x_2) > (20.0 + x_3)? (4.0 + x_2) : (20.0 + x_3))? (12.0 + x_0) : ((4.0 + x_2) > (20.0 + x_3)? (4.0 + x_2) : (20.0 + x_3))) > ((2.0 + x_6) > ((7.0 + x_7) > (10.0 + x_11)? (7.0 + x_7) : (10.0 + x_11))? (2.0 + x_6) : ((7.0 + x_7) > (10.0 + x_11)? (7.0 + x_7) : (10.0 + x_11)))? ((12.0 + x_0) > ((4.0 + x_2) > (20.0 + x_3)? (4.0 + x_2) : (20.0 + x_3))? (12.0 + x_0) : ((4.0 + x_2) > (20.0 + x_3)? (4.0 + x_2) : (20.0 + x_3))) : ((2.0 + x_6) > ((7.0 + x_7) > (10.0 + x_11)? (7.0 + x_7) : (10.0 + x_11))? (2.0 + x_6) : ((7.0 + x_7) > (10.0 + x_11)? (7.0 + x_7) : (10.0 + x_11)))) > (((15.0 + x_13) > ((6.0 + x_14) > (15.0 + x_17)? (6.0 + x_14) : (15.0 + x_17))? (15.0 + x_13) : ((6.0 + x_14) > (15.0 + x_17)? (6.0 + x_14) : (15.0 + x_17))) > ((4.0 + x_18) > ((17.0 + x_22) > (8.0 + x_23)? (17.0 + x_22) : (8.0 + x_23))? (4.0 + x_18) : ((17.0 + x_22) > (8.0 + x_23)? (17.0 + x_22) : (8.0 + x_23)))? ((15.0 + x_13) > ((6.0 + x_14) > (15.0 + x_17)? (6.0 + x_14) : (15.0 + x_17))? (15.0 + x_13) : ((6.0 + x_14) > (15.0 + x_17)? (6.0 + x_14) : (15.0 + x_17))) : ((4.0 + x_18) > ((17.0 + x_22) > (8.0 + x_23)? (17.0 + x_22) : (8.0 + x_23))? (4.0 + x_18) : ((17.0 + x_22) > (8.0 + x_23)? (17.0 + x_22) : (8.0 + x_23))))? (((12.0 + x_0) > ((4.0 + x_2) > (20.0 + x_3)? (4.0 + x_2) : (20.0 + x_3))? (12.0 + x_0) : ((4.0 + x_2) > (20.0 + x_3)? (4.0 + x_2) : (20.0 + x_3))) > ((2.0 + x_6) > ((7.0 + x_7) > (10.0 + x_11)? (7.0 + x_7) : (10.0 + x_11))? (2.0 + x_6) : ((7.0 + x_7) > (10.0 + x_11)? (7.0 + x_7) : (10.0 + x_11)))? ((12.0 + x_0) > ((4.0 + x_2) > (20.0 + x_3)? (4.0 + x_2) : (20.0 + x_3))? (12.0 + x_0) : ((4.0 + x_2) > (20.0 + x_3)? (4.0 + x_2) : (20.0 + x_3))) : ((2.0 + x_6) > ((7.0 + x_7) > (10.0 + x_11)? (7.0 + x_7) : (10.0 + x_11))? (2.0 + x_6) : ((7.0 + x_7) > (10.0 + x_11)? (7.0 + x_7) : (10.0 + x_11)))) : (((15.0 + x_13) > ((6.0 + x_14) > (15.0 + x_17)? (6.0 + x_14) : (15.0 + x_17))? (15.0 + x_13) : ((6.0 + x_14) > (15.0 + x_17)? (6.0 + x_14) : (15.0 + x_17))) > ((4.0 + x_18) > ((17.0 + x_22) > (8.0 + x_23)? (17.0 + x_22) : (8.0 + x_23))? (4.0 + x_18) : ((17.0 + x_22) > (8.0 + x_23)? (17.0 + x_22) : (8.0 + x_23)))? ((15.0 + x_13) > ((6.0 + x_14) > (15.0 + x_17)? (6.0 + x_14) : (15.0 + x_17))? (15.0 + x_13) : ((6.0 + x_14) > (15.0 + x_17)? (6.0 + x_14) : (15.0 + x_17))) : ((4.0 + x_18) > ((17.0 + x_22) > (8.0 + x_23)? (17.0 + x_22) : (8.0 + x_23))? (4.0 + x_18) : ((17.0 + x_22) > (8.0 + x_23)? (17.0 + x_22) : (8.0 + x_23))))); x_7_ = ((((9.0 + x_0) > ((17.0 + x_1) > (19.0 + x_2)? (17.0 + x_1) : (19.0 + x_2))? (9.0 + x_0) : ((17.0 + x_1) > (19.0 + x_2)? (17.0 + x_1) : (19.0 + x_2))) > ((13.0 + x_3) > ((7.0 + x_6) > (10.0 + x_7)? (7.0 + x_6) : (10.0 + x_7))? (13.0 + x_3) : ((7.0 + x_6) > (10.0 + x_7)? (7.0 + x_6) : (10.0 + x_7)))? ((9.0 + x_0) > ((17.0 + x_1) > (19.0 + x_2)? (17.0 + x_1) : (19.0 + x_2))? (9.0 + x_0) : ((17.0 + x_1) > (19.0 + x_2)? (17.0 + x_1) : (19.0 + x_2))) : ((13.0 + x_3) > ((7.0 + x_6) > (10.0 + x_7)? (7.0 + x_6) : (10.0 + x_7))? (13.0 + x_3) : ((7.0 + x_6) > (10.0 + x_7)? (7.0 + x_6) : (10.0 + x_7)))) > (((17.0 + x_12) > ((16.0 + x_13) > (3.0 + x_15)? (16.0 + x_13) : (3.0 + x_15))? (17.0 + x_12) : ((16.0 + x_13) > (3.0 + x_15)? (16.0 + x_13) : (3.0 + x_15))) > ((9.0 + x_16) > ((2.0 + x_20) > (14.0 + x_22)? (2.0 + x_20) : (14.0 + x_22))? (9.0 + x_16) : ((2.0 + x_20) > (14.0 + x_22)? (2.0 + x_20) : (14.0 + x_22)))? ((17.0 + x_12) > ((16.0 + x_13) > (3.0 + x_15)? (16.0 + x_13) : (3.0 + x_15))? (17.0 + x_12) : ((16.0 + x_13) > (3.0 + x_15)? (16.0 + x_13) : (3.0 + x_15))) : ((9.0 + x_16) > ((2.0 + x_20) > (14.0 + x_22)? (2.0 + x_20) : (14.0 + x_22))? (9.0 + x_16) : ((2.0 + x_20) > (14.0 + x_22)? (2.0 + x_20) : (14.0 + x_22))))? (((9.0 + x_0) > ((17.0 + x_1) > (19.0 + x_2)? (17.0 + x_1) : (19.0 + x_2))? (9.0 + x_0) : ((17.0 + x_1) > (19.0 + x_2)? (17.0 + x_1) : (19.0 + x_2))) > ((13.0 + x_3) > ((7.0 + x_6) > (10.0 + x_7)? (7.0 + x_6) : (10.0 + x_7))? (13.0 + x_3) : ((7.0 + x_6) > (10.0 + x_7)? (7.0 + x_6) : (10.0 + x_7)))? ((9.0 + x_0) > ((17.0 + x_1) > (19.0 + x_2)? (17.0 + x_1) : (19.0 + x_2))? (9.0 + x_0) : ((17.0 + x_1) > (19.0 + x_2)? (17.0 + x_1) : (19.0 + x_2))) : ((13.0 + x_3) > ((7.0 + x_6) > (10.0 + x_7)? (7.0 + x_6) : (10.0 + x_7))? (13.0 + x_3) : ((7.0 + x_6) > (10.0 + x_7)? (7.0 + x_6) : (10.0 + x_7)))) : (((17.0 + x_12) > ((16.0 + x_13) > (3.0 + x_15)? (16.0 + x_13) : (3.0 + x_15))? (17.0 + x_12) : ((16.0 + x_13) > (3.0 + x_15)? (16.0 + x_13) : (3.0 + x_15))) > ((9.0 + x_16) > ((2.0 + x_20) > (14.0 + x_22)? (2.0 + x_20) : (14.0 + x_22))? (9.0 + x_16) : ((2.0 + x_20) > (14.0 + x_22)? (2.0 + x_20) : (14.0 + x_22)))? ((17.0 + x_12) > ((16.0 + x_13) > (3.0 + x_15)? (16.0 + x_13) : (3.0 + x_15))? (17.0 + x_12) : ((16.0 + x_13) > (3.0 + x_15)? (16.0 + x_13) : (3.0 + x_15))) : ((9.0 + x_16) > ((2.0 + x_20) > (14.0 + x_22)? (2.0 + x_20) : (14.0 + x_22))? (9.0 + x_16) : ((2.0 + x_20) > (14.0 + x_22)? (2.0 + x_20) : (14.0 + x_22))))); x_8_ = ((((19.0 + x_0) > ((10.0 + x_2) > (6.0 + x_3)? (10.0 + x_2) : (6.0 + x_3))? (19.0 + x_0) : ((10.0 + x_2) > (6.0 + x_3)? (10.0 + x_2) : (6.0 + x_3))) > ((16.0 + x_4) > ((19.0 + x_5) > (16.0 + x_7)? (19.0 + x_5) : (16.0 + x_7))? (16.0 + x_4) : ((19.0 + x_5) > (16.0 + x_7)? (19.0 + x_5) : (16.0 + x_7)))? ((19.0 + x_0) > ((10.0 + x_2) > (6.0 + x_3)? (10.0 + x_2) : (6.0 + x_3))? (19.0 + x_0) : ((10.0 + x_2) > (6.0 + x_3)? (10.0 + x_2) : (6.0 + x_3))) : ((16.0 + x_4) > ((19.0 + x_5) > (16.0 + x_7)? (19.0 + x_5) : (16.0 + x_7))? (16.0 + x_4) : ((19.0 + x_5) > (16.0 + x_7)? (19.0 + x_5) : (16.0 + x_7)))) > (((19.0 + x_10) > ((7.0 + x_12) > (11.0 + x_14)? (7.0 + x_12) : (11.0 + x_14))? (19.0 + x_10) : ((7.0 + x_12) > (11.0 + x_14)? (7.0 + x_12) : (11.0 + x_14))) > ((12.0 + x_17) > ((15.0 + x_20) > (6.0 + x_22)? (15.0 + x_20) : (6.0 + x_22))? (12.0 + x_17) : ((15.0 + x_20) > (6.0 + x_22)? (15.0 + x_20) : (6.0 + x_22)))? ((19.0 + x_10) > ((7.0 + x_12) > (11.0 + x_14)? (7.0 + x_12) : (11.0 + x_14))? (19.0 + x_10) : ((7.0 + x_12) > (11.0 + x_14)? (7.0 + x_12) : (11.0 + x_14))) : ((12.0 + x_17) > ((15.0 + x_20) > (6.0 + x_22)? (15.0 + x_20) : (6.0 + x_22))? (12.0 + x_17) : ((15.0 + x_20) > (6.0 + x_22)? (15.0 + x_20) : (6.0 + x_22))))? (((19.0 + x_0) > ((10.0 + x_2) > (6.0 + x_3)? (10.0 + x_2) : (6.0 + x_3))? (19.0 + x_0) : ((10.0 + x_2) > (6.0 + x_3)? (10.0 + x_2) : (6.0 + x_3))) > ((16.0 + x_4) > ((19.0 + x_5) > (16.0 + x_7)? (19.0 + x_5) : (16.0 + x_7))? (16.0 + x_4) : ((19.0 + x_5) > (16.0 + x_7)? (19.0 + x_5) : (16.0 + x_7)))? ((19.0 + x_0) > ((10.0 + x_2) > (6.0 + x_3)? (10.0 + x_2) : (6.0 + x_3))? (19.0 + x_0) : ((10.0 + x_2) > (6.0 + x_3)? (10.0 + x_2) : (6.0 + x_3))) : ((16.0 + x_4) > ((19.0 + x_5) > (16.0 + x_7)? (19.0 + x_5) : (16.0 + x_7))? (16.0 + x_4) : ((19.0 + x_5) > (16.0 + x_7)? (19.0 + x_5) : (16.0 + x_7)))) : (((19.0 + x_10) > ((7.0 + x_12) > (11.0 + x_14)? (7.0 + x_12) : (11.0 + x_14))? (19.0 + x_10) : ((7.0 + x_12) > (11.0 + x_14)? (7.0 + x_12) : (11.0 + x_14))) > ((12.0 + x_17) > ((15.0 + x_20) > (6.0 + x_22)? (15.0 + x_20) : (6.0 + x_22))? (12.0 + x_17) : ((15.0 + x_20) > (6.0 + x_22)? (15.0 + x_20) : (6.0 + x_22)))? ((19.0 + x_10) > ((7.0 + x_12) > (11.0 + x_14)? (7.0 + x_12) : (11.0 + x_14))? (19.0 + x_10) : ((7.0 + x_12) > (11.0 + x_14)? (7.0 + x_12) : (11.0 + x_14))) : ((12.0 + x_17) > ((15.0 + x_20) > (6.0 + x_22)? (15.0 + x_20) : (6.0 + x_22))? (12.0 + x_17) : ((15.0 + x_20) > (6.0 + x_22)? (15.0 + x_20) : (6.0 + x_22))))); x_9_ = ((((19.0 + x_0) > ((7.0 + x_2) > (20.0 + x_3)? (7.0 + x_2) : (20.0 + x_3))? (19.0 + x_0) : ((7.0 + x_2) > (20.0 + x_3)? (7.0 + x_2) : (20.0 + x_3))) > ((20.0 + x_5) > ((3.0 + x_9) > (20.0 + x_10)? (3.0 + x_9) : (20.0 + x_10))? (20.0 + x_5) : ((3.0 + x_9) > (20.0 + x_10)? (3.0 + x_9) : (20.0 + x_10)))? ((19.0 + x_0) > ((7.0 + x_2) > (20.0 + x_3)? (7.0 + x_2) : (20.0 + x_3))? (19.0 + x_0) : ((7.0 + x_2) > (20.0 + x_3)? (7.0 + x_2) : (20.0 + x_3))) : ((20.0 + x_5) > ((3.0 + x_9) > (20.0 + x_10)? (3.0 + x_9) : (20.0 + x_10))? (20.0 + x_5) : ((3.0 + x_9) > (20.0 + x_10)? (3.0 + x_9) : (20.0 + x_10)))) > (((6.0 + x_14) > ((13.0 + x_15) > (5.0 + x_16)? (13.0 + x_15) : (5.0 + x_16))? (6.0 + x_14) : ((13.0 + x_15) > (5.0 + x_16)? (13.0 + x_15) : (5.0 + x_16))) > ((13.0 + x_17) > ((14.0 + x_18) > (3.0 + x_19)? (14.0 + x_18) : (3.0 + x_19))? (13.0 + x_17) : ((14.0 + x_18) > (3.0 + x_19)? (14.0 + x_18) : (3.0 + x_19)))? ((6.0 + x_14) > ((13.0 + x_15) > (5.0 + x_16)? (13.0 + x_15) : (5.0 + x_16))? (6.0 + x_14) : ((13.0 + x_15) > (5.0 + x_16)? (13.0 + x_15) : (5.0 + x_16))) : ((13.0 + x_17) > ((14.0 + x_18) > (3.0 + x_19)? (14.0 + x_18) : (3.0 + x_19))? (13.0 + x_17) : ((14.0 + x_18) > (3.0 + x_19)? (14.0 + x_18) : (3.0 + x_19))))? (((19.0 + x_0) > ((7.0 + x_2) > (20.0 + x_3)? (7.0 + x_2) : (20.0 + x_3))? (19.0 + x_0) : ((7.0 + x_2) > (20.0 + x_3)? (7.0 + x_2) : (20.0 + x_3))) > ((20.0 + x_5) > ((3.0 + x_9) > (20.0 + x_10)? (3.0 + x_9) : (20.0 + x_10))? (20.0 + x_5) : ((3.0 + x_9) > (20.0 + x_10)? (3.0 + x_9) : (20.0 + x_10)))? ((19.0 + x_0) > ((7.0 + x_2) > (20.0 + x_3)? (7.0 + x_2) : (20.0 + x_3))? (19.0 + x_0) : ((7.0 + x_2) > (20.0 + x_3)? (7.0 + x_2) : (20.0 + x_3))) : ((20.0 + x_5) > ((3.0 + x_9) > (20.0 + x_10)? (3.0 + x_9) : (20.0 + x_10))? (20.0 + x_5) : ((3.0 + x_9) > (20.0 + x_10)? (3.0 + x_9) : (20.0 + x_10)))) : (((6.0 + x_14) > ((13.0 + x_15) > (5.0 + x_16)? (13.0 + x_15) : (5.0 + x_16))? (6.0 + x_14) : ((13.0 + x_15) > (5.0 + x_16)? (13.0 + x_15) : (5.0 + x_16))) > ((13.0 + x_17) > ((14.0 + x_18) > (3.0 + x_19)? (14.0 + x_18) : (3.0 + x_19))? (13.0 + x_17) : ((14.0 + x_18) > (3.0 + x_19)? (14.0 + x_18) : (3.0 + x_19)))? ((6.0 + x_14) > ((13.0 + x_15) > (5.0 + x_16)? (13.0 + x_15) : (5.0 + x_16))? (6.0 + x_14) : ((13.0 + x_15) > (5.0 + x_16)? (13.0 + x_15) : (5.0 + x_16))) : ((13.0 + x_17) > ((14.0 + x_18) > (3.0 + x_19)? (14.0 + x_18) : (3.0 + x_19))? (13.0 + x_17) : ((14.0 + x_18) > (3.0 + x_19)? (14.0 + x_18) : (3.0 + x_19))))); x_10_ = ((((16.0 + x_1) > ((20.0 + x_2) > (6.0 + x_5)? (20.0 + x_2) : (6.0 + x_5))? (16.0 + x_1) : ((20.0 + x_2) > (6.0 + x_5)? (20.0 + x_2) : (6.0 + x_5))) > ((18.0 + x_7) > ((2.0 + x_8) > (14.0 + x_10)? (2.0 + x_8) : (14.0 + x_10))? (18.0 + x_7) : ((2.0 + x_8) > (14.0 + x_10)? (2.0 + x_8) : (14.0 + x_10)))? ((16.0 + x_1) > ((20.0 + x_2) > (6.0 + x_5)? (20.0 + x_2) : (6.0 + x_5))? (16.0 + x_1) : ((20.0 + x_2) > (6.0 + x_5)? (20.0 + x_2) : (6.0 + x_5))) : ((18.0 + x_7) > ((2.0 + x_8) > (14.0 + x_10)? (2.0 + x_8) : (14.0 + x_10))? (18.0 + x_7) : ((2.0 + x_8) > (14.0 + x_10)? (2.0 + x_8) : (14.0 + x_10)))) > (((4.0 + x_12) > ((1.0 + x_13) > (8.0 + x_15)? (1.0 + x_13) : (8.0 + x_15))? (4.0 + x_12) : ((1.0 + x_13) > (8.0 + x_15)? (1.0 + x_13) : (8.0 + x_15))) > ((16.0 + x_18) > ((14.0 + x_20) > (18.0 + x_23)? (14.0 + x_20) : (18.0 + x_23))? (16.0 + x_18) : ((14.0 + x_20) > (18.0 + x_23)? (14.0 + x_20) : (18.0 + x_23)))? ((4.0 + x_12) > ((1.0 + x_13) > (8.0 + x_15)? (1.0 + x_13) : (8.0 + x_15))? (4.0 + x_12) : ((1.0 + x_13) > (8.0 + x_15)? (1.0 + x_13) : (8.0 + x_15))) : ((16.0 + x_18) > ((14.0 + x_20) > (18.0 + x_23)? (14.0 + x_20) : (18.0 + x_23))? (16.0 + x_18) : ((14.0 + x_20) > (18.0 + x_23)? (14.0 + x_20) : (18.0 + x_23))))? (((16.0 + x_1) > ((20.0 + x_2) > (6.0 + x_5)? (20.0 + x_2) : (6.0 + x_5))? (16.0 + x_1) : ((20.0 + x_2) > (6.0 + x_5)? (20.0 + x_2) : (6.0 + x_5))) > ((18.0 + x_7) > ((2.0 + x_8) > (14.0 + x_10)? (2.0 + x_8) : (14.0 + x_10))? (18.0 + x_7) : ((2.0 + x_8) > (14.0 + x_10)? (2.0 + x_8) : (14.0 + x_10)))? ((16.0 + x_1) > ((20.0 + x_2) > (6.0 + x_5)? (20.0 + x_2) : (6.0 + x_5))? (16.0 + x_1) : ((20.0 + x_2) > (6.0 + x_5)? (20.0 + x_2) : (6.0 + x_5))) : ((18.0 + x_7) > ((2.0 + x_8) > (14.0 + x_10)? (2.0 + x_8) : (14.0 + x_10))? (18.0 + x_7) : ((2.0 + x_8) > (14.0 + x_10)? (2.0 + x_8) : (14.0 + x_10)))) : (((4.0 + x_12) > ((1.0 + x_13) > (8.0 + x_15)? (1.0 + x_13) : (8.0 + x_15))? (4.0 + x_12) : ((1.0 + x_13) > (8.0 + x_15)? (1.0 + x_13) : (8.0 + x_15))) > ((16.0 + x_18) > ((14.0 + x_20) > (18.0 + x_23)? (14.0 + x_20) : (18.0 + x_23))? (16.0 + x_18) : ((14.0 + x_20) > (18.0 + x_23)? (14.0 + x_20) : (18.0 + x_23)))? ((4.0 + x_12) > ((1.0 + x_13) > (8.0 + x_15)? (1.0 + x_13) : (8.0 + x_15))? (4.0 + x_12) : ((1.0 + x_13) > (8.0 + x_15)? (1.0 + x_13) : (8.0 + x_15))) : ((16.0 + x_18) > ((14.0 + x_20) > (18.0 + x_23)? (14.0 + x_20) : (18.0 + x_23))? (16.0 + x_18) : ((14.0 + x_20) > (18.0 + x_23)? (14.0 + x_20) : (18.0 + x_23))))); x_11_ = ((((19.0 + x_1) > ((16.0 + x_3) > (19.0 + x_6)? (16.0 + x_3) : (19.0 + x_6))? (19.0 + x_1) : ((16.0 + x_3) > (19.0 + x_6)? (16.0 + x_3) : (19.0 + x_6))) > ((9.0 + x_7) > ((4.0 + x_10) > (20.0 + x_13)? (4.0 + x_10) : (20.0 + x_13))? (9.0 + x_7) : ((4.0 + x_10) > (20.0 + x_13)? (4.0 + x_10) : (20.0 + x_13)))? ((19.0 + x_1) > ((16.0 + x_3) > (19.0 + x_6)? (16.0 + x_3) : (19.0 + x_6))? (19.0 + x_1) : ((16.0 + x_3) > (19.0 + x_6)? (16.0 + x_3) : (19.0 + x_6))) : ((9.0 + x_7) > ((4.0 + x_10) > (20.0 + x_13)? (4.0 + x_10) : (20.0 + x_13))? (9.0 + x_7) : ((4.0 + x_10) > (20.0 + x_13)? (4.0 + x_10) : (20.0 + x_13)))) > (((12.0 + x_14) > ((19.0 + x_16) > (16.0 + x_18)? (19.0 + x_16) : (16.0 + x_18))? (12.0 + x_14) : ((19.0 + x_16) > (16.0 + x_18)? (19.0 + x_16) : (16.0 + x_18))) > ((14.0 + x_20) > ((5.0 + x_22) > (18.0 + x_23)? (5.0 + x_22) : (18.0 + x_23))? (14.0 + x_20) : ((5.0 + x_22) > (18.0 + x_23)? (5.0 + x_22) : (18.0 + x_23)))? ((12.0 + x_14) > ((19.0 + x_16) > (16.0 + x_18)? (19.0 + x_16) : (16.0 + x_18))? (12.0 + x_14) : ((19.0 + x_16) > (16.0 + x_18)? (19.0 + x_16) : (16.0 + x_18))) : ((14.0 + x_20) > ((5.0 + x_22) > (18.0 + x_23)? (5.0 + x_22) : (18.0 + x_23))? (14.0 + x_20) : ((5.0 + x_22) > (18.0 + x_23)? (5.0 + x_22) : (18.0 + x_23))))? (((19.0 + x_1) > ((16.0 + x_3) > (19.0 + x_6)? (16.0 + x_3) : (19.0 + x_6))? (19.0 + x_1) : ((16.0 + x_3) > (19.0 + x_6)? (16.0 + x_3) : (19.0 + x_6))) > ((9.0 + x_7) > ((4.0 + x_10) > (20.0 + x_13)? (4.0 + x_10) : (20.0 + x_13))? (9.0 + x_7) : ((4.0 + x_10) > (20.0 + x_13)? (4.0 + x_10) : (20.0 + x_13)))? ((19.0 + x_1) > ((16.0 + x_3) > (19.0 + x_6)? (16.0 + x_3) : (19.0 + x_6))? (19.0 + x_1) : ((16.0 + x_3) > (19.0 + x_6)? (16.0 + x_3) : (19.0 + x_6))) : ((9.0 + x_7) > ((4.0 + x_10) > (20.0 + x_13)? (4.0 + x_10) : (20.0 + x_13))? (9.0 + x_7) : ((4.0 + x_10) > (20.0 + x_13)? (4.0 + x_10) : (20.0 + x_13)))) : (((12.0 + x_14) > ((19.0 + x_16) > (16.0 + x_18)? (19.0 + x_16) : (16.0 + x_18))? (12.0 + x_14) : ((19.0 + x_16) > (16.0 + x_18)? (19.0 + x_16) : (16.0 + x_18))) > ((14.0 + x_20) > ((5.0 + x_22) > (18.0 + x_23)? (5.0 + x_22) : (18.0 + x_23))? (14.0 + x_20) : ((5.0 + x_22) > (18.0 + x_23)? (5.0 + x_22) : (18.0 + x_23)))? ((12.0 + x_14) > ((19.0 + x_16) > (16.0 + x_18)? (19.0 + x_16) : (16.0 + x_18))? (12.0 + x_14) : ((19.0 + x_16) > (16.0 + x_18)? (19.0 + x_16) : (16.0 + x_18))) : ((14.0 + x_20) > ((5.0 + x_22) > (18.0 + x_23)? (5.0 + x_22) : (18.0 + x_23))? (14.0 + x_20) : ((5.0 + x_22) > (18.0 + x_23)? (5.0 + x_22) : (18.0 + x_23))))); x_12_ = ((((16.0 + x_0) > ((5.0 + x_1) > (7.0 + x_6)? (5.0 + x_1) : (7.0 + x_6))? (16.0 + x_0) : ((5.0 + x_1) > (7.0 + x_6)? (5.0 + x_1) : (7.0 + x_6))) > ((5.0 + x_7) > ((20.0 + x_8) > (15.0 + x_9)? (20.0 + x_8) : (15.0 + x_9))? (5.0 + x_7) : ((20.0 + x_8) > (15.0 + x_9)? (20.0 + x_8) : (15.0 + x_9)))? ((16.0 + x_0) > ((5.0 + x_1) > (7.0 + x_6)? (5.0 + x_1) : (7.0 + x_6))? (16.0 + x_0) : ((5.0 + x_1) > (7.0 + x_6)? (5.0 + x_1) : (7.0 + x_6))) : ((5.0 + x_7) > ((20.0 + x_8) > (15.0 + x_9)? (20.0 + x_8) : (15.0 + x_9))? (5.0 + x_7) : ((20.0 + x_8) > (15.0 + x_9)? (20.0 + x_8) : (15.0 + x_9)))) > (((12.0 + x_11) > ((2.0 + x_12) > (9.0 + x_13)? (2.0 + x_12) : (9.0 + x_13))? (12.0 + x_11) : ((2.0 + x_12) > (9.0 + x_13)? (2.0 + x_12) : (9.0 + x_13))) > ((2.0 + x_19) > ((18.0 + x_21) > (5.0 + x_22)? (18.0 + x_21) : (5.0 + x_22))? (2.0 + x_19) : ((18.0 + x_21) > (5.0 + x_22)? (18.0 + x_21) : (5.0 + x_22)))? ((12.0 + x_11) > ((2.0 + x_12) > (9.0 + x_13)? (2.0 + x_12) : (9.0 + x_13))? (12.0 + x_11) : ((2.0 + x_12) > (9.0 + x_13)? (2.0 + x_12) : (9.0 + x_13))) : ((2.0 + x_19) > ((18.0 + x_21) > (5.0 + x_22)? (18.0 + x_21) : (5.0 + x_22))? (2.0 + x_19) : ((18.0 + x_21) > (5.0 + x_22)? (18.0 + x_21) : (5.0 + x_22))))? (((16.0 + x_0) > ((5.0 + x_1) > (7.0 + x_6)? (5.0 + x_1) : (7.0 + x_6))? (16.0 + x_0) : ((5.0 + x_1) > (7.0 + x_6)? (5.0 + x_1) : (7.0 + x_6))) > ((5.0 + x_7) > ((20.0 + x_8) > (15.0 + x_9)? (20.0 + x_8) : (15.0 + x_9))? (5.0 + x_7) : ((20.0 + x_8) > (15.0 + x_9)? (20.0 + x_8) : (15.0 + x_9)))? ((16.0 + x_0) > ((5.0 + x_1) > (7.0 + x_6)? (5.0 + x_1) : (7.0 + x_6))? (16.0 + x_0) : ((5.0 + x_1) > (7.0 + x_6)? (5.0 + x_1) : (7.0 + x_6))) : ((5.0 + x_7) > ((20.0 + x_8) > (15.0 + x_9)? (20.0 + x_8) : (15.0 + x_9))? (5.0 + x_7) : ((20.0 + x_8) > (15.0 + x_9)? (20.0 + x_8) : (15.0 + x_9)))) : (((12.0 + x_11) > ((2.0 + x_12) > (9.0 + x_13)? (2.0 + x_12) : (9.0 + x_13))? (12.0 + x_11) : ((2.0 + x_12) > (9.0 + x_13)? (2.0 + x_12) : (9.0 + x_13))) > ((2.0 + x_19) > ((18.0 + x_21) > (5.0 + x_22)? (18.0 + x_21) : (5.0 + x_22))? (2.0 + x_19) : ((18.0 + x_21) > (5.0 + x_22)? (18.0 + x_21) : (5.0 + x_22)))? ((12.0 + x_11) > ((2.0 + x_12) > (9.0 + x_13)? (2.0 + x_12) : (9.0 + x_13))? (12.0 + x_11) : ((2.0 + x_12) > (9.0 + x_13)? (2.0 + x_12) : (9.0 + x_13))) : ((2.0 + x_19) > ((18.0 + x_21) > (5.0 + x_22)? (18.0 + x_21) : (5.0 + x_22))? (2.0 + x_19) : ((18.0 + x_21) > (5.0 + x_22)? (18.0 + x_21) : (5.0 + x_22))))); x_13_ = ((((4.0 + x_6) > ((8.0 + x_7) > (6.0 + x_9)? (8.0 + x_7) : (6.0 + x_9))? (4.0 + x_6) : ((8.0 + x_7) > (6.0 + x_9)? (8.0 + x_7) : (6.0 + x_9))) > ((8.0 + x_12) > ((2.0 + x_13) > (16.0 + x_14)? (2.0 + x_13) : (16.0 + x_14))? (8.0 + x_12) : ((2.0 + x_13) > (16.0 + x_14)? (2.0 + x_13) : (16.0 + x_14)))? ((4.0 + x_6) > ((8.0 + x_7) > (6.0 + x_9)? (8.0 + x_7) : (6.0 + x_9))? (4.0 + x_6) : ((8.0 + x_7) > (6.0 + x_9)? (8.0 + x_7) : (6.0 + x_9))) : ((8.0 + x_12) > ((2.0 + x_13) > (16.0 + x_14)? (2.0 + x_13) : (16.0 + x_14))? (8.0 + x_12) : ((2.0 + x_13) > (16.0 + x_14)? (2.0 + x_13) : (16.0 + x_14)))) > (((19.0 + x_15) > ((14.0 + x_17) > (4.0 + x_18)? (14.0 + x_17) : (4.0 + x_18))? (19.0 + x_15) : ((14.0 + x_17) > (4.0 + x_18)? (14.0 + x_17) : (4.0 + x_18))) > ((19.0 + x_19) > ((13.0 + x_20) > (6.0 + x_23)? (13.0 + x_20) : (6.0 + x_23))? (19.0 + x_19) : ((13.0 + x_20) > (6.0 + x_23)? (13.0 + x_20) : (6.0 + x_23)))? ((19.0 + x_15) > ((14.0 + x_17) > (4.0 + x_18)? (14.0 + x_17) : (4.0 + x_18))? (19.0 + x_15) : ((14.0 + x_17) > (4.0 + x_18)? (14.0 + x_17) : (4.0 + x_18))) : ((19.0 + x_19) > ((13.0 + x_20) > (6.0 + x_23)? (13.0 + x_20) : (6.0 + x_23))? (19.0 + x_19) : ((13.0 + x_20) > (6.0 + x_23)? (13.0 + x_20) : (6.0 + x_23))))? (((4.0 + x_6) > ((8.0 + x_7) > (6.0 + x_9)? (8.0 + x_7) : (6.0 + x_9))? (4.0 + x_6) : ((8.0 + x_7) > (6.0 + x_9)? (8.0 + x_7) : (6.0 + x_9))) > ((8.0 + x_12) > ((2.0 + x_13) > (16.0 + x_14)? (2.0 + x_13) : (16.0 + x_14))? (8.0 + x_12) : ((2.0 + x_13) > (16.0 + x_14)? (2.0 + x_13) : (16.0 + x_14)))? ((4.0 + x_6) > ((8.0 + x_7) > (6.0 + x_9)? (8.0 + x_7) : (6.0 + x_9))? (4.0 + x_6) : ((8.0 + x_7) > (6.0 + x_9)? (8.0 + x_7) : (6.0 + x_9))) : ((8.0 + x_12) > ((2.0 + x_13) > (16.0 + x_14)? (2.0 + x_13) : (16.0 + x_14))? (8.0 + x_12) : ((2.0 + x_13) > (16.0 + x_14)? (2.0 + x_13) : (16.0 + x_14)))) : (((19.0 + x_15) > ((14.0 + x_17) > (4.0 + x_18)? (14.0 + x_17) : (4.0 + x_18))? (19.0 + x_15) : ((14.0 + x_17) > (4.0 + x_18)? (14.0 + x_17) : (4.0 + x_18))) > ((19.0 + x_19) > ((13.0 + x_20) > (6.0 + x_23)? (13.0 + x_20) : (6.0 + x_23))? (19.0 + x_19) : ((13.0 + x_20) > (6.0 + x_23)? (13.0 + x_20) : (6.0 + x_23)))? ((19.0 + x_15) > ((14.0 + x_17) > (4.0 + x_18)? (14.0 + x_17) : (4.0 + x_18))? (19.0 + x_15) : ((14.0 + x_17) > (4.0 + x_18)? (14.0 + x_17) : (4.0 + x_18))) : ((19.0 + x_19) > ((13.0 + x_20) > (6.0 + x_23)? (13.0 + x_20) : (6.0 + x_23))? (19.0 + x_19) : ((13.0 + x_20) > (6.0 + x_23)? (13.0 + x_20) : (6.0 + x_23))))); x_14_ = ((((2.0 + x_0) > ((15.0 + x_1) > (6.0 + x_6)? (15.0 + x_1) : (6.0 + x_6))? (2.0 + x_0) : ((15.0 + x_1) > (6.0 + x_6)? (15.0 + x_1) : (6.0 + x_6))) > ((17.0 + x_9) > ((7.0 + x_13) > (18.0 + x_15)? (7.0 + x_13) : (18.0 + x_15))? (17.0 + x_9) : ((7.0 + x_13) > (18.0 + x_15)? (7.0 + x_13) : (18.0 + x_15)))? ((2.0 + x_0) > ((15.0 + x_1) > (6.0 + x_6)? (15.0 + x_1) : (6.0 + x_6))? (2.0 + x_0) : ((15.0 + x_1) > (6.0 + x_6)? (15.0 + x_1) : (6.0 + x_6))) : ((17.0 + x_9) > ((7.0 + x_13) > (18.0 + x_15)? (7.0 + x_13) : (18.0 + x_15))? (17.0 + x_9) : ((7.0 + x_13) > (18.0 + x_15)? (7.0 + x_13) : (18.0 + x_15)))) > (((8.0 + x_17) > ((8.0 + x_18) > (2.0 + x_19)? (8.0 + x_18) : (2.0 + x_19))? (8.0 + x_17) : ((8.0 + x_18) > (2.0 + x_19)? (8.0 + x_18) : (2.0 + x_19))) > ((11.0 + x_21) > ((9.0 + x_22) > (13.0 + x_23)? (9.0 + x_22) : (13.0 + x_23))? (11.0 + x_21) : ((9.0 + x_22) > (13.0 + x_23)? (9.0 + x_22) : (13.0 + x_23)))? ((8.0 + x_17) > ((8.0 + x_18) > (2.0 + x_19)? (8.0 + x_18) : (2.0 + x_19))? (8.0 + x_17) : ((8.0 + x_18) > (2.0 + x_19)? (8.0 + x_18) : (2.0 + x_19))) : ((11.0 + x_21) > ((9.0 + x_22) > (13.0 + x_23)? (9.0 + x_22) : (13.0 + x_23))? (11.0 + x_21) : ((9.0 + x_22) > (13.0 + x_23)? (9.0 + x_22) : (13.0 + x_23))))? (((2.0 + x_0) > ((15.0 + x_1) > (6.0 + x_6)? (15.0 + x_1) : (6.0 + x_6))? (2.0 + x_0) : ((15.0 + x_1) > (6.0 + x_6)? (15.0 + x_1) : (6.0 + x_6))) > ((17.0 + x_9) > ((7.0 + x_13) > (18.0 + x_15)? (7.0 + x_13) : (18.0 + x_15))? (17.0 + x_9) : ((7.0 + x_13) > (18.0 + x_15)? (7.0 + x_13) : (18.0 + x_15)))? ((2.0 + x_0) > ((15.0 + x_1) > (6.0 + x_6)? (15.0 + x_1) : (6.0 + x_6))? (2.0 + x_0) : ((15.0 + x_1) > (6.0 + x_6)? (15.0 + x_1) : (6.0 + x_6))) : ((17.0 + x_9) > ((7.0 + x_13) > (18.0 + x_15)? (7.0 + x_13) : (18.0 + x_15))? (17.0 + x_9) : ((7.0 + x_13) > (18.0 + x_15)? (7.0 + x_13) : (18.0 + x_15)))) : (((8.0 + x_17) > ((8.0 + x_18) > (2.0 + x_19)? (8.0 + x_18) : (2.0 + x_19))? (8.0 + x_17) : ((8.0 + x_18) > (2.0 + x_19)? (8.0 + x_18) : (2.0 + x_19))) > ((11.0 + x_21) > ((9.0 + x_22) > (13.0 + x_23)? (9.0 + x_22) : (13.0 + x_23))? (11.0 + x_21) : ((9.0 + x_22) > (13.0 + x_23)? (9.0 + x_22) : (13.0 + x_23)))? ((8.0 + x_17) > ((8.0 + x_18) > (2.0 + x_19)? (8.0 + x_18) : (2.0 + x_19))? (8.0 + x_17) : ((8.0 + x_18) > (2.0 + x_19)? (8.0 + x_18) : (2.0 + x_19))) : ((11.0 + x_21) > ((9.0 + x_22) > (13.0 + x_23)? (9.0 + x_22) : (13.0 + x_23))? (11.0 + x_21) : ((9.0 + x_22) > (13.0 + x_23)? (9.0 + x_22) : (13.0 + x_23))))); x_15_ = ((((13.0 + x_0) > ((7.0 + x_2) > (16.0 + x_3)? (7.0 + x_2) : (16.0 + x_3))? (13.0 + x_0) : ((7.0 + x_2) > (16.0 + x_3)? (7.0 + x_2) : (16.0 + x_3))) > ((5.0 + x_4) > ((13.0 + x_6) > (12.0 + x_7)? (13.0 + x_6) : (12.0 + x_7))? (5.0 + x_4) : ((13.0 + x_6) > (12.0 + x_7)? (13.0 + x_6) : (12.0 + x_7)))? ((13.0 + x_0) > ((7.0 + x_2) > (16.0 + x_3)? (7.0 + x_2) : (16.0 + x_3))? (13.0 + x_0) : ((7.0 + x_2) > (16.0 + x_3)? (7.0 + x_2) : (16.0 + x_3))) : ((5.0 + x_4) > ((13.0 + x_6) > (12.0 + x_7)? (13.0 + x_6) : (12.0 + x_7))? (5.0 + x_4) : ((13.0 + x_6) > (12.0 + x_7)? (13.0 + x_6) : (12.0 + x_7)))) > (((2.0 + x_11) > ((11.0 + x_13) > (18.0 + x_14)? (11.0 + x_13) : (18.0 + x_14))? (2.0 + x_11) : ((11.0 + x_13) > (18.0 + x_14)? (11.0 + x_13) : (18.0 + x_14))) > ((18.0 + x_20) > ((6.0 + x_22) > (1.0 + x_23)? (6.0 + x_22) : (1.0 + x_23))? (18.0 + x_20) : ((6.0 + x_22) > (1.0 + x_23)? (6.0 + x_22) : (1.0 + x_23)))? ((2.0 + x_11) > ((11.0 + x_13) > (18.0 + x_14)? (11.0 + x_13) : (18.0 + x_14))? (2.0 + x_11) : ((11.0 + x_13) > (18.0 + x_14)? (11.0 + x_13) : (18.0 + x_14))) : ((18.0 + x_20) > ((6.0 + x_22) > (1.0 + x_23)? (6.0 + x_22) : (1.0 + x_23))? (18.0 + x_20) : ((6.0 + x_22) > (1.0 + x_23)? (6.0 + x_22) : (1.0 + x_23))))? (((13.0 + x_0) > ((7.0 + x_2) > (16.0 + x_3)? (7.0 + x_2) : (16.0 + x_3))? (13.0 + x_0) : ((7.0 + x_2) > (16.0 + x_3)? (7.0 + x_2) : (16.0 + x_3))) > ((5.0 + x_4) > ((13.0 + x_6) > (12.0 + x_7)? (13.0 + x_6) : (12.0 + x_7))? (5.0 + x_4) : ((13.0 + x_6) > (12.0 + x_7)? (13.0 + x_6) : (12.0 + x_7)))? ((13.0 + x_0) > ((7.0 + x_2) > (16.0 + x_3)? (7.0 + x_2) : (16.0 + x_3))? (13.0 + x_0) : ((7.0 + x_2) > (16.0 + x_3)? (7.0 + x_2) : (16.0 + x_3))) : ((5.0 + x_4) > ((13.0 + x_6) > (12.0 + x_7)? (13.0 + x_6) : (12.0 + x_7))? (5.0 + x_4) : ((13.0 + x_6) > (12.0 + x_7)? (13.0 + x_6) : (12.0 + x_7)))) : (((2.0 + x_11) > ((11.0 + x_13) > (18.0 + x_14)? (11.0 + x_13) : (18.0 + x_14))? (2.0 + x_11) : ((11.0 + x_13) > (18.0 + x_14)? (11.0 + x_13) : (18.0 + x_14))) > ((18.0 + x_20) > ((6.0 + x_22) > (1.0 + x_23)? (6.0 + x_22) : (1.0 + x_23))? (18.0 + x_20) : ((6.0 + x_22) > (1.0 + x_23)? (6.0 + x_22) : (1.0 + x_23)))? ((2.0 + x_11) > ((11.0 + x_13) > (18.0 + x_14)? (11.0 + x_13) : (18.0 + x_14))? (2.0 + x_11) : ((11.0 + x_13) > (18.0 + x_14)? (11.0 + x_13) : (18.0 + x_14))) : ((18.0 + x_20) > ((6.0 + x_22) > (1.0 + x_23)? (6.0 + x_22) : (1.0 + x_23))? (18.0 + x_20) : ((6.0 + x_22) > (1.0 + x_23)? (6.0 + x_22) : (1.0 + x_23))))); x_16_ = ((((18.0 + x_0) > ((14.0 + x_1) > (6.0 + x_2)? (14.0 + x_1) : (6.0 + x_2))? (18.0 + x_0) : ((14.0 + x_1) > (6.0 + x_2)? (14.0 + x_1) : (6.0 + x_2))) > ((13.0 + x_3) > ((2.0 + x_4) > (5.0 + x_10)? (2.0 + x_4) : (5.0 + x_10))? (13.0 + x_3) : ((2.0 + x_4) > (5.0 + x_10)? (2.0 + x_4) : (5.0 + x_10)))? ((18.0 + x_0) > ((14.0 + x_1) > (6.0 + x_2)? (14.0 + x_1) : (6.0 + x_2))? (18.0 + x_0) : ((14.0 + x_1) > (6.0 + x_2)? (14.0 + x_1) : (6.0 + x_2))) : ((13.0 + x_3) > ((2.0 + x_4) > (5.0 + x_10)? (2.0 + x_4) : (5.0 + x_10))? (13.0 + x_3) : ((2.0 + x_4) > (5.0 + x_10)? (2.0 + x_4) : (5.0 + x_10)))) > (((2.0 + x_14) > ((6.0 + x_15) > (4.0 + x_18)? (6.0 + x_15) : (4.0 + x_18))? (2.0 + x_14) : ((6.0 + x_15) > (4.0 + x_18)? (6.0 + x_15) : (4.0 + x_18))) > ((10.0 + x_19) > ((9.0 + x_20) > (4.0 + x_22)? (9.0 + x_20) : (4.0 + x_22))? (10.0 + x_19) : ((9.0 + x_20) > (4.0 + x_22)? (9.0 + x_20) : (4.0 + x_22)))? ((2.0 + x_14) > ((6.0 + x_15) > (4.0 + x_18)? (6.0 + x_15) : (4.0 + x_18))? (2.0 + x_14) : ((6.0 + x_15) > (4.0 + x_18)? (6.0 + x_15) : (4.0 + x_18))) : ((10.0 + x_19) > ((9.0 + x_20) > (4.0 + x_22)? (9.0 + x_20) : (4.0 + x_22))? (10.0 + x_19) : ((9.0 + x_20) > (4.0 + x_22)? (9.0 + x_20) : (4.0 + x_22))))? (((18.0 + x_0) > ((14.0 + x_1) > (6.0 + x_2)? (14.0 + x_1) : (6.0 + x_2))? (18.0 + x_0) : ((14.0 + x_1) > (6.0 + x_2)? (14.0 + x_1) : (6.0 + x_2))) > ((13.0 + x_3) > ((2.0 + x_4) > (5.0 + x_10)? (2.0 + x_4) : (5.0 + x_10))? (13.0 + x_3) : ((2.0 + x_4) > (5.0 + x_10)? (2.0 + x_4) : (5.0 + x_10)))? ((18.0 + x_0) > ((14.0 + x_1) > (6.0 + x_2)? (14.0 + x_1) : (6.0 + x_2))? (18.0 + x_0) : ((14.0 + x_1) > (6.0 + x_2)? (14.0 + x_1) : (6.0 + x_2))) : ((13.0 + x_3) > ((2.0 + x_4) > (5.0 + x_10)? (2.0 + x_4) : (5.0 + x_10))? (13.0 + x_3) : ((2.0 + x_4) > (5.0 + x_10)? (2.0 + x_4) : (5.0 + x_10)))) : (((2.0 + x_14) > ((6.0 + x_15) > (4.0 + x_18)? (6.0 + x_15) : (4.0 + x_18))? (2.0 + x_14) : ((6.0 + x_15) > (4.0 + x_18)? (6.0 + x_15) : (4.0 + x_18))) > ((10.0 + x_19) > ((9.0 + x_20) > (4.0 + x_22)? (9.0 + x_20) : (4.0 + x_22))? (10.0 + x_19) : ((9.0 + x_20) > (4.0 + x_22)? (9.0 + x_20) : (4.0 + x_22)))? ((2.0 + x_14) > ((6.0 + x_15) > (4.0 + x_18)? (6.0 + x_15) : (4.0 + x_18))? (2.0 + x_14) : ((6.0 + x_15) > (4.0 + x_18)? (6.0 + x_15) : (4.0 + x_18))) : ((10.0 + x_19) > ((9.0 + x_20) > (4.0 + x_22)? (9.0 + x_20) : (4.0 + x_22))? (10.0 + x_19) : ((9.0 + x_20) > (4.0 + x_22)? (9.0 + x_20) : (4.0 + x_22))))); x_17_ = ((((18.0 + x_0) > ((14.0 + x_3) > (4.0 + x_5)? (14.0 + x_3) : (4.0 + x_5))? (18.0 + x_0) : ((14.0 + x_3) > (4.0 + x_5)? (14.0 + x_3) : (4.0 + x_5))) > ((17.0 + x_6) > ((16.0 + x_10) > (3.0 + x_11)? (16.0 + x_10) : (3.0 + x_11))? (17.0 + x_6) : ((16.0 + x_10) > (3.0 + x_11)? (16.0 + x_10) : (3.0 + x_11)))? ((18.0 + x_0) > ((14.0 + x_3) > (4.0 + x_5)? (14.0 + x_3) : (4.0 + x_5))? (18.0 + x_0) : ((14.0 + x_3) > (4.0 + x_5)? (14.0 + x_3) : (4.0 + x_5))) : ((17.0 + x_6) > ((16.0 + x_10) > (3.0 + x_11)? (16.0 + x_10) : (3.0 + x_11))? (17.0 + x_6) : ((16.0 + x_10) > (3.0 + x_11)? (16.0 + x_10) : (3.0 + x_11)))) > (((15.0 + x_12) > ((14.0 + x_14) > (8.0 + x_15)? (14.0 + x_14) : (8.0 + x_15))? (15.0 + x_12) : ((14.0 + x_14) > (8.0 + x_15)? (14.0 + x_14) : (8.0 + x_15))) > ((4.0 + x_16) > ((8.0 + x_18) > (11.0 + x_21)? (8.0 + x_18) : (11.0 + x_21))? (4.0 + x_16) : ((8.0 + x_18) > (11.0 + x_21)? (8.0 + x_18) : (11.0 + x_21)))? ((15.0 + x_12) > ((14.0 + x_14) > (8.0 + x_15)? (14.0 + x_14) : (8.0 + x_15))? (15.0 + x_12) : ((14.0 + x_14) > (8.0 + x_15)? (14.0 + x_14) : (8.0 + x_15))) : ((4.0 + x_16) > ((8.0 + x_18) > (11.0 + x_21)? (8.0 + x_18) : (11.0 + x_21))? (4.0 + x_16) : ((8.0 + x_18) > (11.0 + x_21)? (8.0 + x_18) : (11.0 + x_21))))? (((18.0 + x_0) > ((14.0 + x_3) > (4.0 + x_5)? (14.0 + x_3) : (4.0 + x_5))? (18.0 + x_0) : ((14.0 + x_3) > (4.0 + x_5)? (14.0 + x_3) : (4.0 + x_5))) > ((17.0 + x_6) > ((16.0 + x_10) > (3.0 + x_11)? (16.0 + x_10) : (3.0 + x_11))? (17.0 + x_6) : ((16.0 + x_10) > (3.0 + x_11)? (16.0 + x_10) : (3.0 + x_11)))? ((18.0 + x_0) > ((14.0 + x_3) > (4.0 + x_5)? (14.0 + x_3) : (4.0 + x_5))? (18.0 + x_0) : ((14.0 + x_3) > (4.0 + x_5)? (14.0 + x_3) : (4.0 + x_5))) : ((17.0 + x_6) > ((16.0 + x_10) > (3.0 + x_11)? (16.0 + x_10) : (3.0 + x_11))? (17.0 + x_6) : ((16.0 + x_10) > (3.0 + x_11)? (16.0 + x_10) : (3.0 + x_11)))) : (((15.0 + x_12) > ((14.0 + x_14) > (8.0 + x_15)? (14.0 + x_14) : (8.0 + x_15))? (15.0 + x_12) : ((14.0 + x_14) > (8.0 + x_15)? (14.0 + x_14) : (8.0 + x_15))) > ((4.0 + x_16) > ((8.0 + x_18) > (11.0 + x_21)? (8.0 + x_18) : (11.0 + x_21))? (4.0 + x_16) : ((8.0 + x_18) > (11.0 + x_21)? (8.0 + x_18) : (11.0 + x_21)))? ((15.0 + x_12) > ((14.0 + x_14) > (8.0 + x_15)? (14.0 + x_14) : (8.0 + x_15))? (15.0 + x_12) : ((14.0 + x_14) > (8.0 + x_15)? (14.0 + x_14) : (8.0 + x_15))) : ((4.0 + x_16) > ((8.0 + x_18) > (11.0 + x_21)? (8.0 + x_18) : (11.0 + x_21))? (4.0 + x_16) : ((8.0 + x_18) > (11.0 + x_21)? (8.0 + x_18) : (11.0 + x_21))))); x_18_ = ((((20.0 + x_0) > ((4.0 + x_1) > (8.0 + x_2)? (4.0 + x_1) : (8.0 + x_2))? (20.0 + x_0) : ((4.0 + x_1) > (8.0 + x_2)? (4.0 + x_1) : (8.0 + x_2))) > ((4.0 + x_4) > ((4.0 + x_5) > (17.0 + x_7)? (4.0 + x_5) : (17.0 + x_7))? (4.0 + x_4) : ((4.0 + x_5) > (17.0 + x_7)? (4.0 + x_5) : (17.0 + x_7)))? ((20.0 + x_0) > ((4.0 + x_1) > (8.0 + x_2)? (4.0 + x_1) : (8.0 + x_2))? (20.0 + x_0) : ((4.0 + x_1) > (8.0 + x_2)? (4.0 + x_1) : (8.0 + x_2))) : ((4.0 + x_4) > ((4.0 + x_5) > (17.0 + x_7)? (4.0 + x_5) : (17.0 + x_7))? (4.0 + x_4) : ((4.0 + x_5) > (17.0 + x_7)? (4.0 + x_5) : (17.0 + x_7)))) > (((13.0 + x_9) > ((5.0 + x_11) > (20.0 + x_12)? (5.0 + x_11) : (20.0 + x_12))? (13.0 + x_9) : ((5.0 + x_11) > (20.0 + x_12)? (5.0 + x_11) : (20.0 + x_12))) > ((15.0 + x_15) > ((18.0 + x_19) > (20.0 + x_23)? (18.0 + x_19) : (20.0 + x_23))? (15.0 + x_15) : ((18.0 + x_19) > (20.0 + x_23)? (18.0 + x_19) : (20.0 + x_23)))? ((13.0 + x_9) > ((5.0 + x_11) > (20.0 + x_12)? (5.0 + x_11) : (20.0 + x_12))? (13.0 + x_9) : ((5.0 + x_11) > (20.0 + x_12)? (5.0 + x_11) : (20.0 + x_12))) : ((15.0 + x_15) > ((18.0 + x_19) > (20.0 + x_23)? (18.0 + x_19) : (20.0 + x_23))? (15.0 + x_15) : ((18.0 + x_19) > (20.0 + x_23)? (18.0 + x_19) : (20.0 + x_23))))? (((20.0 + x_0) > ((4.0 + x_1) > (8.0 + x_2)? (4.0 + x_1) : (8.0 + x_2))? (20.0 + x_0) : ((4.0 + x_1) > (8.0 + x_2)? (4.0 + x_1) : (8.0 + x_2))) > ((4.0 + x_4) > ((4.0 + x_5) > (17.0 + x_7)? (4.0 + x_5) : (17.0 + x_7))? (4.0 + x_4) : ((4.0 + x_5) > (17.0 + x_7)? (4.0 + x_5) : (17.0 + x_7)))? ((20.0 + x_0) > ((4.0 + x_1) > (8.0 + x_2)? (4.0 + x_1) : (8.0 + x_2))? (20.0 + x_0) : ((4.0 + x_1) > (8.0 + x_2)? (4.0 + x_1) : (8.0 + x_2))) : ((4.0 + x_4) > ((4.0 + x_5) > (17.0 + x_7)? (4.0 + x_5) : (17.0 + x_7))? (4.0 + x_4) : ((4.0 + x_5) > (17.0 + x_7)? (4.0 + x_5) : (17.0 + x_7)))) : (((13.0 + x_9) > ((5.0 + x_11) > (20.0 + x_12)? (5.0 + x_11) : (20.0 + x_12))? (13.0 + x_9) : ((5.0 + x_11) > (20.0 + x_12)? (5.0 + x_11) : (20.0 + x_12))) > ((15.0 + x_15) > ((18.0 + x_19) > (20.0 + x_23)? (18.0 + x_19) : (20.0 + x_23))? (15.0 + x_15) : ((18.0 + x_19) > (20.0 + x_23)? (18.0 + x_19) : (20.0 + x_23)))? ((13.0 + x_9) > ((5.0 + x_11) > (20.0 + x_12)? (5.0 + x_11) : (20.0 + x_12))? (13.0 + x_9) : ((5.0 + x_11) > (20.0 + x_12)? (5.0 + x_11) : (20.0 + x_12))) : ((15.0 + x_15) > ((18.0 + x_19) > (20.0 + x_23)? (18.0 + x_19) : (20.0 + x_23))? (15.0 + x_15) : ((18.0 + x_19) > (20.0 + x_23)? (18.0 + x_19) : (20.0 + x_23))))); x_19_ = ((((4.0 + x_1) > ((16.0 + x_2) > (18.0 + x_5)? (16.0 + x_2) : (18.0 + x_5))? (4.0 + x_1) : ((16.0 + x_2) > (18.0 + x_5)? (16.0 + x_2) : (18.0 + x_5))) > ((13.0 + x_8) > ((9.0 + x_10) > (3.0 + x_11)? (9.0 + x_10) : (3.0 + x_11))? (13.0 + x_8) : ((9.0 + x_10) > (3.0 + x_11)? (9.0 + x_10) : (3.0 + x_11)))? ((4.0 + x_1) > ((16.0 + x_2) > (18.0 + x_5)? (16.0 + x_2) : (18.0 + x_5))? (4.0 + x_1) : ((16.0 + x_2) > (18.0 + x_5)? (16.0 + x_2) : (18.0 + x_5))) : ((13.0 + x_8) > ((9.0 + x_10) > (3.0 + x_11)? (9.0 + x_10) : (3.0 + x_11))? (13.0 + x_8) : ((9.0 + x_10) > (3.0 + x_11)? (9.0 + x_10) : (3.0 + x_11)))) > (((2.0 + x_12) > ((20.0 + x_13) > (5.0 + x_14)? (20.0 + x_13) : (5.0 + x_14))? (2.0 + x_12) : ((20.0 + x_13) > (5.0 + x_14)? (20.0 + x_13) : (5.0 + x_14))) > ((19.0 + x_17) > ((3.0 + x_19) > (2.0 + x_23)? (3.0 + x_19) : (2.0 + x_23))? (19.0 + x_17) : ((3.0 + x_19) > (2.0 + x_23)? (3.0 + x_19) : (2.0 + x_23)))? ((2.0 + x_12) > ((20.0 + x_13) > (5.0 + x_14)? (20.0 + x_13) : (5.0 + x_14))? (2.0 + x_12) : ((20.0 + x_13) > (5.0 + x_14)? (20.0 + x_13) : (5.0 + x_14))) : ((19.0 + x_17) > ((3.0 + x_19) > (2.0 + x_23)? (3.0 + x_19) : (2.0 + x_23))? (19.0 + x_17) : ((3.0 + x_19) > (2.0 + x_23)? (3.0 + x_19) : (2.0 + x_23))))? (((4.0 + x_1) > ((16.0 + x_2) > (18.0 + x_5)? (16.0 + x_2) : (18.0 + x_5))? (4.0 + x_1) : ((16.0 + x_2) > (18.0 + x_5)? (16.0 + x_2) : (18.0 + x_5))) > ((13.0 + x_8) > ((9.0 + x_10) > (3.0 + x_11)? (9.0 + x_10) : (3.0 + x_11))? (13.0 + x_8) : ((9.0 + x_10) > (3.0 + x_11)? (9.0 + x_10) : (3.0 + x_11)))? ((4.0 + x_1) > ((16.0 + x_2) > (18.0 + x_5)? (16.0 + x_2) : (18.0 + x_5))? (4.0 + x_1) : ((16.0 + x_2) > (18.0 + x_5)? (16.0 + x_2) : (18.0 + x_5))) : ((13.0 + x_8) > ((9.0 + x_10) > (3.0 + x_11)? (9.0 + x_10) : (3.0 + x_11))? (13.0 + x_8) : ((9.0 + x_10) > (3.0 + x_11)? (9.0 + x_10) : (3.0 + x_11)))) : (((2.0 + x_12) > ((20.0 + x_13) > (5.0 + x_14)? (20.0 + x_13) : (5.0 + x_14))? (2.0 + x_12) : ((20.0 + x_13) > (5.0 + x_14)? (20.0 + x_13) : (5.0 + x_14))) > ((19.0 + x_17) > ((3.0 + x_19) > (2.0 + x_23)? (3.0 + x_19) : (2.0 + x_23))? (19.0 + x_17) : ((3.0 + x_19) > (2.0 + x_23)? (3.0 + x_19) : (2.0 + x_23)))? ((2.0 + x_12) > ((20.0 + x_13) > (5.0 + x_14)? (20.0 + x_13) : (5.0 + x_14))? (2.0 + x_12) : ((20.0 + x_13) > (5.0 + x_14)? (20.0 + x_13) : (5.0 + x_14))) : ((19.0 + x_17) > ((3.0 + x_19) > (2.0 + x_23)? (3.0 + x_19) : (2.0 + x_23))? (19.0 + x_17) : ((3.0 + x_19) > (2.0 + x_23)? (3.0 + x_19) : (2.0 + x_23))))); x_20_ = ((((4.0 + x_0) > ((9.0 + x_3) > (4.0 + x_4)? (9.0 + x_3) : (4.0 + x_4))? (4.0 + x_0) : ((9.0 + x_3) > (4.0 + x_4)? (9.0 + x_3) : (4.0 + x_4))) > ((3.0 + x_5) > ((2.0 + x_6) > (8.0 + x_7)? (2.0 + x_6) : (8.0 + x_7))? (3.0 + x_5) : ((2.0 + x_6) > (8.0 + x_7)? (2.0 + x_6) : (8.0 + x_7)))? ((4.0 + x_0) > ((9.0 + x_3) > (4.0 + x_4)? (9.0 + x_3) : (4.0 + x_4))? (4.0 + x_0) : ((9.0 + x_3) > (4.0 + x_4)? (9.0 + x_3) : (4.0 + x_4))) : ((3.0 + x_5) > ((2.0 + x_6) > (8.0 + x_7)? (2.0 + x_6) : (8.0 + x_7))? (3.0 + x_5) : ((2.0 + x_6) > (8.0 + x_7)? (2.0 + x_6) : (8.0 + x_7)))) > (((16.0 + x_10) > ((9.0 + x_11) > (19.0 + x_13)? (9.0 + x_11) : (19.0 + x_13))? (16.0 + x_10) : ((9.0 + x_11) > (19.0 + x_13)? (9.0 + x_11) : (19.0 + x_13))) > ((5.0 + x_14) > ((10.0 + x_16) > (3.0 + x_23)? (10.0 + x_16) : (3.0 + x_23))? (5.0 + x_14) : ((10.0 + x_16) > (3.0 + x_23)? (10.0 + x_16) : (3.0 + x_23)))? ((16.0 + x_10) > ((9.0 + x_11) > (19.0 + x_13)? (9.0 + x_11) : (19.0 + x_13))? (16.0 + x_10) : ((9.0 + x_11) > (19.0 + x_13)? (9.0 + x_11) : (19.0 + x_13))) : ((5.0 + x_14) > ((10.0 + x_16) > (3.0 + x_23)? (10.0 + x_16) : (3.0 + x_23))? (5.0 + x_14) : ((10.0 + x_16) > (3.0 + x_23)? (10.0 + x_16) : (3.0 + x_23))))? (((4.0 + x_0) > ((9.0 + x_3) > (4.0 + x_4)? (9.0 + x_3) : (4.0 + x_4))? (4.0 + x_0) : ((9.0 + x_3) > (4.0 + x_4)? (9.0 + x_3) : (4.0 + x_4))) > ((3.0 + x_5) > ((2.0 + x_6) > (8.0 + x_7)? (2.0 + x_6) : (8.0 + x_7))? (3.0 + x_5) : ((2.0 + x_6) > (8.0 + x_7)? (2.0 + x_6) : (8.0 + x_7)))? ((4.0 + x_0) > ((9.0 + x_3) > (4.0 + x_4)? (9.0 + x_3) : (4.0 + x_4))? (4.0 + x_0) : ((9.0 + x_3) > (4.0 + x_4)? (9.0 + x_3) : (4.0 + x_4))) : ((3.0 + x_5) > ((2.0 + x_6) > (8.0 + x_7)? (2.0 + x_6) : (8.0 + x_7))? (3.0 + x_5) : ((2.0 + x_6) > (8.0 + x_7)? (2.0 + x_6) : (8.0 + x_7)))) : (((16.0 + x_10) > ((9.0 + x_11) > (19.0 + x_13)? (9.0 + x_11) : (19.0 + x_13))? (16.0 + x_10) : ((9.0 + x_11) > (19.0 + x_13)? (9.0 + x_11) : (19.0 + x_13))) > ((5.0 + x_14) > ((10.0 + x_16) > (3.0 + x_23)? (10.0 + x_16) : (3.0 + x_23))? (5.0 + x_14) : ((10.0 + x_16) > (3.0 + x_23)? (10.0 + x_16) : (3.0 + x_23)))? ((16.0 + x_10) > ((9.0 + x_11) > (19.0 + x_13)? (9.0 + x_11) : (19.0 + x_13))? (16.0 + x_10) : ((9.0 + x_11) > (19.0 + x_13)? (9.0 + x_11) : (19.0 + x_13))) : ((5.0 + x_14) > ((10.0 + x_16) > (3.0 + x_23)? (10.0 + x_16) : (3.0 + x_23))? (5.0 + x_14) : ((10.0 + x_16) > (3.0 + x_23)? (10.0 + x_16) : (3.0 + x_23))))); x_21_ = ((((11.0 + x_0) > ((5.0 + x_3) > (10.0 + x_4)? (5.0 + x_3) : (10.0 + x_4))? (11.0 + x_0) : ((5.0 + x_3) > (10.0 + x_4)? (5.0 + x_3) : (10.0 + x_4))) > ((18.0 + x_5) > ((11.0 + x_7) > (16.0 + x_8)? (11.0 + x_7) : (16.0 + x_8))? (18.0 + x_5) : ((11.0 + x_7) > (16.0 + x_8)? (11.0 + x_7) : (16.0 + x_8)))? ((11.0 + x_0) > ((5.0 + x_3) > (10.0 + x_4)? (5.0 + x_3) : (10.0 + x_4))? (11.0 + x_0) : ((5.0 + x_3) > (10.0 + x_4)? (5.0 + x_3) : (10.0 + x_4))) : ((18.0 + x_5) > ((11.0 + x_7) > (16.0 + x_8)? (11.0 + x_7) : (16.0 + x_8))? (18.0 + x_5) : ((11.0 + x_7) > (16.0 + x_8)? (11.0 + x_7) : (16.0 + x_8)))) > (((6.0 + x_13) > ((14.0 + x_15) > (18.0 + x_19)? (14.0 + x_15) : (18.0 + x_19))? (6.0 + x_13) : ((14.0 + x_15) > (18.0 + x_19)? (14.0 + x_15) : (18.0 + x_19))) > ((18.0 + x_20) > ((2.0 + x_21) > (4.0 + x_23)? (2.0 + x_21) : (4.0 + x_23))? (18.0 + x_20) : ((2.0 + x_21) > (4.0 + x_23)? (2.0 + x_21) : (4.0 + x_23)))? ((6.0 + x_13) > ((14.0 + x_15) > (18.0 + x_19)? (14.0 + x_15) : (18.0 + x_19))? (6.0 + x_13) : ((14.0 + x_15) > (18.0 + x_19)? (14.0 + x_15) : (18.0 + x_19))) : ((18.0 + x_20) > ((2.0 + x_21) > (4.0 + x_23)? (2.0 + x_21) : (4.0 + x_23))? (18.0 + x_20) : ((2.0 + x_21) > (4.0 + x_23)? (2.0 + x_21) : (4.0 + x_23))))? (((11.0 + x_0) > ((5.0 + x_3) > (10.0 + x_4)? (5.0 + x_3) : (10.0 + x_4))? (11.0 + x_0) : ((5.0 + x_3) > (10.0 + x_4)? (5.0 + x_3) : (10.0 + x_4))) > ((18.0 + x_5) > ((11.0 + x_7) > (16.0 + x_8)? (11.0 + x_7) : (16.0 + x_8))? (18.0 + x_5) : ((11.0 + x_7) > (16.0 + x_8)? (11.0 + x_7) : (16.0 + x_8)))? ((11.0 + x_0) > ((5.0 + x_3) > (10.0 + x_4)? (5.0 + x_3) : (10.0 + x_4))? (11.0 + x_0) : ((5.0 + x_3) > (10.0 + x_4)? (5.0 + x_3) : (10.0 + x_4))) : ((18.0 + x_5) > ((11.0 + x_7) > (16.0 + x_8)? (11.0 + x_7) : (16.0 + x_8))? (18.0 + x_5) : ((11.0 + x_7) > (16.0 + x_8)? (11.0 + x_7) : (16.0 + x_8)))) : (((6.0 + x_13) > ((14.0 + x_15) > (18.0 + x_19)? (14.0 + x_15) : (18.0 + x_19))? (6.0 + x_13) : ((14.0 + x_15) > (18.0 + x_19)? (14.0 + x_15) : (18.0 + x_19))) > ((18.0 + x_20) > ((2.0 + x_21) > (4.0 + x_23)? (2.0 + x_21) : (4.0 + x_23))? (18.0 + x_20) : ((2.0 + x_21) > (4.0 + x_23)? (2.0 + x_21) : (4.0 + x_23)))? ((6.0 + x_13) > ((14.0 + x_15) > (18.0 + x_19)? (14.0 + x_15) : (18.0 + x_19))? (6.0 + x_13) : ((14.0 + x_15) > (18.0 + x_19)? (14.0 + x_15) : (18.0 + x_19))) : ((18.0 + x_20) > ((2.0 + x_21) > (4.0 + x_23)? (2.0 + x_21) : (4.0 + x_23))? (18.0 + x_20) : ((2.0 + x_21) > (4.0 + x_23)? (2.0 + x_21) : (4.0 + x_23))))); x_22_ = ((((8.0 + x_3) > ((18.0 + x_4) > (11.0 + x_5)? (18.0 + x_4) : (11.0 + x_5))? (8.0 + x_3) : ((18.0 + x_4) > (11.0 + x_5)? (18.0 + x_4) : (11.0 + x_5))) > ((5.0 + x_7) > ((5.0 + x_8) > (14.0 + x_12)? (5.0 + x_8) : (14.0 + x_12))? (5.0 + x_7) : ((5.0 + x_8) > (14.0 + x_12)? (5.0 + x_8) : (14.0 + x_12)))? ((8.0 + x_3) > ((18.0 + x_4) > (11.0 + x_5)? (18.0 + x_4) : (11.0 + x_5))? (8.0 + x_3) : ((18.0 + x_4) > (11.0 + x_5)? (18.0 + x_4) : (11.0 + x_5))) : ((5.0 + x_7) > ((5.0 + x_8) > (14.0 + x_12)? (5.0 + x_8) : (14.0 + x_12))? (5.0 + x_7) : ((5.0 + x_8) > (14.0 + x_12)? (5.0 + x_8) : (14.0 + x_12)))) > (((10.0 + x_14) > ((1.0 + x_17) > (15.0 + x_18)? (1.0 + x_17) : (15.0 + x_18))? (10.0 + x_14) : ((1.0 + x_17) > (15.0 + x_18)? (1.0 + x_17) : (15.0 + x_18))) > ((16.0 + x_19) > ((5.0 + x_20) > (14.0 + x_21)? (5.0 + x_20) : (14.0 + x_21))? (16.0 + x_19) : ((5.0 + x_20) > (14.0 + x_21)? (5.0 + x_20) : (14.0 + x_21)))? ((10.0 + x_14) > ((1.0 + x_17) > (15.0 + x_18)? (1.0 + x_17) : (15.0 + x_18))? (10.0 + x_14) : ((1.0 + x_17) > (15.0 + x_18)? (1.0 + x_17) : (15.0 + x_18))) : ((16.0 + x_19) > ((5.0 + x_20) > (14.0 + x_21)? (5.0 + x_20) : (14.0 + x_21))? (16.0 + x_19) : ((5.0 + x_20) > (14.0 + x_21)? (5.0 + x_20) : (14.0 + x_21))))? (((8.0 + x_3) > ((18.0 + x_4) > (11.0 + x_5)? (18.0 + x_4) : (11.0 + x_5))? (8.0 + x_3) : ((18.0 + x_4) > (11.0 + x_5)? (18.0 + x_4) : (11.0 + x_5))) > ((5.0 + x_7) > ((5.0 + x_8) > (14.0 + x_12)? (5.0 + x_8) : (14.0 + x_12))? (5.0 + x_7) : ((5.0 + x_8) > (14.0 + x_12)? (5.0 + x_8) : (14.0 + x_12)))? ((8.0 + x_3) > ((18.0 + x_4) > (11.0 + x_5)? (18.0 + x_4) : (11.0 + x_5))? (8.0 + x_3) : ((18.0 + x_4) > (11.0 + x_5)? (18.0 + x_4) : (11.0 + x_5))) : ((5.0 + x_7) > ((5.0 + x_8) > (14.0 + x_12)? (5.0 + x_8) : (14.0 + x_12))? (5.0 + x_7) : ((5.0 + x_8) > (14.0 + x_12)? (5.0 + x_8) : (14.0 + x_12)))) : (((10.0 + x_14) > ((1.0 + x_17) > (15.0 + x_18)? (1.0 + x_17) : (15.0 + x_18))? (10.0 + x_14) : ((1.0 + x_17) > (15.0 + x_18)? (1.0 + x_17) : (15.0 + x_18))) > ((16.0 + x_19) > ((5.0 + x_20) > (14.0 + x_21)? (5.0 + x_20) : (14.0 + x_21))? (16.0 + x_19) : ((5.0 + x_20) > (14.0 + x_21)? (5.0 + x_20) : (14.0 + x_21)))? ((10.0 + x_14) > ((1.0 + x_17) > (15.0 + x_18)? (1.0 + x_17) : (15.0 + x_18))? (10.0 + x_14) : ((1.0 + x_17) > (15.0 + x_18)? (1.0 + x_17) : (15.0 + x_18))) : ((16.0 + x_19) > ((5.0 + x_20) > (14.0 + x_21)? (5.0 + x_20) : (14.0 + x_21))? (16.0 + x_19) : ((5.0 + x_20) > (14.0 + x_21)? (5.0 + x_20) : (14.0 + x_21))))); x_23_ = ((((1.0 + x_1) > ((16.0 + x_4) > (12.0 + x_5)? (16.0 + x_4) : (12.0 + x_5))? (1.0 + x_1) : ((16.0 + x_4) > (12.0 + x_5)? (16.0 + x_4) : (12.0 + x_5))) > ((2.0 + x_7) > ((5.0 + x_9) > (9.0 + x_11)? (5.0 + x_9) : (9.0 + x_11))? (2.0 + x_7) : ((5.0 + x_9) > (9.0 + x_11)? (5.0 + x_9) : (9.0 + x_11)))? ((1.0 + x_1) > ((16.0 + x_4) > (12.0 + x_5)? (16.0 + x_4) : (12.0 + x_5))? (1.0 + x_1) : ((16.0 + x_4) > (12.0 + x_5)? (16.0 + x_4) : (12.0 + x_5))) : ((2.0 + x_7) > ((5.0 + x_9) > (9.0 + x_11)? (5.0 + x_9) : (9.0 + x_11))? (2.0 + x_7) : ((5.0 + x_9) > (9.0 + x_11)? (5.0 + x_9) : (9.0 + x_11)))) > (((8.0 + x_15) > ((17.0 + x_16) > (12.0 + x_17)? (17.0 + x_16) : (12.0 + x_17))? (8.0 + x_15) : ((17.0 + x_16) > (12.0 + x_17)? (17.0 + x_16) : (12.0 + x_17))) > ((13.0 + x_20) > ((14.0 + x_21) > (15.0 + x_22)? (14.0 + x_21) : (15.0 + x_22))? (13.0 + x_20) : ((14.0 + x_21) > (15.0 + x_22)? (14.0 + x_21) : (15.0 + x_22)))? ((8.0 + x_15) > ((17.0 + x_16) > (12.0 + x_17)? (17.0 + x_16) : (12.0 + x_17))? (8.0 + x_15) : ((17.0 + x_16) > (12.0 + x_17)? (17.0 + x_16) : (12.0 + x_17))) : ((13.0 + x_20) > ((14.0 + x_21) > (15.0 + x_22)? (14.0 + x_21) : (15.0 + x_22))? (13.0 + x_20) : ((14.0 + x_21) > (15.0 + x_22)? (14.0 + x_21) : (15.0 + x_22))))? (((1.0 + x_1) > ((16.0 + x_4) > (12.0 + x_5)? (16.0 + x_4) : (12.0 + x_5))? (1.0 + x_1) : ((16.0 + x_4) > (12.0 + x_5)? (16.0 + x_4) : (12.0 + x_5))) > ((2.0 + x_7) > ((5.0 + x_9) > (9.0 + x_11)? (5.0 + x_9) : (9.0 + x_11))? (2.0 + x_7) : ((5.0 + x_9) > (9.0 + x_11)? (5.0 + x_9) : (9.0 + x_11)))? ((1.0 + x_1) > ((16.0 + x_4) > (12.0 + x_5)? (16.0 + x_4) : (12.0 + x_5))? (1.0 + x_1) : ((16.0 + x_4) > (12.0 + x_5)? (16.0 + x_4) : (12.0 + x_5))) : ((2.0 + x_7) > ((5.0 + x_9) > (9.0 + x_11)? (5.0 + x_9) : (9.0 + x_11))? (2.0 + x_7) : ((5.0 + x_9) > (9.0 + x_11)? (5.0 + x_9) : (9.0 + x_11)))) : (((8.0 + x_15) > ((17.0 + x_16) > (12.0 + x_17)? (17.0 + x_16) : (12.0 + x_17))? (8.0 + x_15) : ((17.0 + x_16) > (12.0 + x_17)? (17.0 + x_16) : (12.0 + x_17))) > ((13.0 + x_20) > ((14.0 + x_21) > (15.0 + x_22)? (14.0 + x_21) : (15.0 + x_22))? (13.0 + x_20) : ((14.0 + x_21) > (15.0 + x_22)? (14.0 + x_21) : (15.0 + x_22)))? ((8.0 + x_15) > ((17.0 + x_16) > (12.0 + x_17)? (17.0 + x_16) : (12.0 + x_17))? (8.0 + x_15) : ((17.0 + x_16) > (12.0 + x_17)? (17.0 + x_16) : (12.0 + x_17))) : ((13.0 + x_20) > ((14.0 + x_21) > (15.0 + x_22)? (14.0 + x_21) : (15.0 + x_22))? (13.0 + x_20) : ((14.0 + x_21) > (15.0 + x_22)? (14.0 + x_21) : (15.0 + x_22))))); x_0 = x_0_; x_1 = x_1_; x_2 = x_2_; x_3 = x_3_; x_4 = x_4_; x_5 = x_5_; x_6 = x_6_; x_7 = x_7_; x_8 = x_8_; x_9 = x_9_; x_10 = x_10_; x_11 = x_11_; x_12 = x_12_; x_13 = x_13_; x_14 = x_14_; x_15 = x_15_; x_16 = x_16_; x_17 = x_17_; x_18 = x_18_; x_19 = x_19_; x_20 = x_20_; x_21 = x_21_; x_22 = x_22_; x_23 = x_23_; } return 0; }
the_stack_data/61075234.c
#include <stdio.h> #include <string.h> char* find( char *, char ); int main() { int i = 0; char arr[5000], letter = 'q', helper = 0; for( i = 0; helper != '\n' ; i++ ) { arr[i] = getchar(); helper = arr[i]; } scanf("%s", &letter); if( find( arr, letter ) == NULL ) { printf("-1"); } else { printf("%ld", find( arr, letter ) - arr ); } return 0; } char* find( char *haystack, char needle ) { int i = 0; for( i = 0; i < strlen( haystack ) ; i++ ) { if( i == strlen(haystack) ) { return NULL; } if( needle == haystack[i]) {// pointer is only 2 byte; return ( haystack + i ) ; } } return NULL; }