file
stringlengths
18
26
data
stringlengths
3
1.04M
the_stack_data/150142992.c
#include <stdio.h> int main(){ int x,y, i; scanf("%d%d", &x,&y); for(i=1;i<=y;i++){ if (i%x==0) printf("%d\n", i); else printf("%d ", i); } return 0; }
the_stack_data/212642995.c
/* 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 */ #include <stdio.h> int main(){ int row = 5; for(int i = 0; i < row; i++){ for(int j = 0; j <= row + i; j++){ while(j < row -i){ printf(" "); j--; } } printf("\n"); } return 0; }
the_stack_data/167330665.c
/***************************************************************************/ /* */ /* ttpic.c */ /* */ /* The FreeType position independent code services for truetype module. */ /* */ /* Copyright 2009, 2010 by */ /* Oran Agra and Mickey Gabel. */ /* */ /* This file is part of the FreeType project, and may only be used, */ /* modified, and distributed under the terms of the FreeType project */ /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ /* this file you indicate that you have read the license and */ /* understand and accept it fully. */ /* */ /***************************************************************************/ #ifdef FT_CONFIG_OPTION_PIC /* forward declaration of PIC init functions from ttdriver.c */ FT_Error FT_Create_Class_tt_services( FT_Library, FT_ServiceDescRec**); void FT_Destroy_Class_tt_services( FT_Library, FT_ServiceDescRec*); void FT_Init_Class_tt_service_gx_multi_masters(FT_Service_MultiMastersRec*); void FT_Init_Class_tt_service_truetype_glyf(FT_Service_TTGlyfRec*); void tt_driver_class_pic_free( FT_Library library ) { FT_PIC_Container* pic_container = &library->pic_container; FT_Memory memory = library->memory; if ( pic_container->truetype ) { TTModulePIC* container = (TTModulePIC*)pic_container->truetype; if(container->tt_services) FT_Destroy_Class_tt_services(library, container->tt_services); container->tt_services = NULL; FT_FREE( container ); pic_container->truetype = NULL; } } FT_Error tt_driver_class_pic_init( FT_Library library ) { FT_PIC_Container* pic_container = &library->pic_container; FT_Error error = TT_Err_Ok; TTModulePIC* container; FT_Memory memory = library->memory; /* allocate pointer, clear and set global container pointer */ if ( FT_ALLOC ( container, sizeof ( *container ) ) ) return error; FT_MEM_SET( container, 0, sizeof(*container) ); pic_container->truetype = container; /* initialize pointer table - this is how the module usually expects this data */ error = FT_Create_Class_tt_services(library, &container->tt_services); if(error) goto Exit; #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT FT_Init_Class_tt_service_gx_multi_masters(&container->tt_service_gx_multi_masters); #endif FT_Init_Class_tt_service_truetype_glyf(&container->tt_service_truetype_glyf); Exit: if(error) tt_driver_class_pic_free(library); return error; } #endif /* FT_CONFIG_OPTION_PIC */ /* END */
the_stack_data/656440.c
#include <stdlib.h> #include <stdio.h> #include <sys/stat.h> size_t read_all_bytes(const char * fileName,void ** mem) { FILE * file; struct stat mystat; void * content; *mem = NULL; if(0 != stat(fileName,&mystat)) { return 0; } file = fopen(fileName,"rb"); if(!file) { printf("Read file failed.\n"); return 0; } content = malloc(mystat.st_size + 1); if(content == NULL) { printf("Malloc failed.\n"); return 0; } ((char*)content)[mystat.st_size] = 0; if( mystat.st_size != fread(content,1,mystat.st_size,file)) { goto FREE_CONTENT; } *mem = content; return mystat.st_size; FREE_CONTENT: free(content); return 0; } void free_all_bytes(void * mem) { free(mem); }
the_stack_data/97772.c
/* Taxonomy Classification: 0000000100000152000310 */ /* * 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 5 non-standard do-while * LOOP COMPLEXITY 2 one * ASYNCHRONY 0 no * TAINT 0 no * RUNTIME ENV. DEPENDENCE 0 no * MAGNITUDE 3 4096 bytes * 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 = 4105; loop_counter = 0; do { /* BAD */ buf[loop_counter] = 'A'; if (loop_counter >= test_value) break; } while(++loop_counter); return 0; }
the_stack_data/710931.c
/* Program to introduce getchar() and putchar() */ #include <stdio.h> main() { char ch; printf( "Press a key and then press Enter " ) ; ch = getchar() ; printf( "\nYou pressed " ) ; putchar( ch ) ; /* Display the character and */ putchar ( '\n' ) ; /* skip to a new line. */ }
the_stack_data/154827168.c
#include <stdio.h> #include <stdlib.h> #define N 26 void flush(int *p){ for (int j = 0; j < N; j++){ p[j] = 0; } } int * get_set(){ int *a = (int *)malloc(N*sizeof(int)); return a; } int * create_set(){ int *p = get_set(); int k; scanf("%d", &k); printf("Value of k = %d", k); flush(p); char c; for (int i = 0; i < k ; i++){ //char c; scanf(" %c", &c); int d = c - 'a'; p[d] = 1; } return p; } void print_ll(int *k){ printf("\n"); for (int i = 0; i < N; i++){ if (k[i] == 1){ printf("%c ", 'a'+i); } } } int * union_set(int *k, int *l){ int *t = get_set(); int Z=0; while (Z<26){ if (k[Z] == l[Z]){ printf("%c", Z-'a'); t[Z] = k[Z]; Z++; } else { t[Z] = k[Z]; Z++; t[Z] = l[Z]; Z++; } } return t; } void main(){ int *k = create_set(); print_ll(k); int * m = create_set(); print_ll(m); int * t = union_set(k,m); print_ll(t); }
the_stack_data/8475.c
#include<stdio.h> int zhishu(int x); int main() { int n,m; scanf("%d",&n); m=n+1; while(zhishu(m)==0) { m++; } printf("%d",m); return 0; } int zhishu(int x) { int i=0,j=1; while(j<x) { if(x%j==0) i++; j++; } if(i==1) return 1; else return 0; }
the_stack_data/131909.c
#ifdef __GNUC__ #define __fsc_attribute__(x) #endif struct __fsc_attribute__((named "test_foo")) foo *func(void); struct __fsc_attribute__((named "test_foo")) foo { int n; } x; int main(int argc, char **argv){ return 0; }
the_stack_data/50572.c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> /* * Use : vigenere.out KEY < input.txt > output */ int main(int argc, char *argv[]) { char *key; unsigned char decrypted, encrypted; size_t key_idx = 0, key_len; if(argc < 2) return 1; key = argv[1]; key_len = strlen(key); while (read(STDIN_FILENO, &decrypted, 1)) { encrypted = decrypted ^ key[key_idx]; write(STDOUT_FILENO, &encrypted, 1); key_idx = (key_idx+1) % key_len; } return 0x00; }
the_stack_data/170453297.c
/* ALSA I/O * * This is slightly redundant since SoapySDR also has an audio module, * but directly using the ALSA API lets us use snd_pcm_link to * start the recording and playback streams synchronously. * Recovery from a stream underrun can also be handled properly by * restarting both streams to re-establish synchronization. */ #if ENABLE_ALSA #include "alsa_io.h" #include "suo_macros.h" #include "conversion.h" #include <alsa/asoundlib.h> #include <alsa/control.h> #include <assert.h> #include <stdio.h> typedef int16_t cs16_t[2]; struct alsa_io { const struct receiver_code *receiver; void *receiver_arg; const struct transmitter_code *transmitter; void *transmitter_arg; snd_pcm_t *rx_pcm, *tx_pcm; struct alsa_io_conf conf; }; #define ALSACHECK(a) do {\ int retcheck = a; \ if (retcheck < 0) { \ fprintf(stderr, "\nALSA error in %s: %s\n", #a, snd_strerror(retcheck)); \ goto err; } } while(0) snd_pcm_t *open_alsa(const struct alsa_io_conf *conf, snd_pcm_stream_t dir) { snd_pcm_t *pcm = NULL; snd_pcm_hw_params_t *hwp; ALSACHECK(snd_pcm_open(&pcm, (dir == SND_PCM_STREAM_PLAYBACK) ? conf->tx_name : conf->rx_name, dir, 0)); ALSACHECK(snd_pcm_hw_params_malloc(&hwp)); ALSACHECK(snd_pcm_hw_params_any(pcm, hwp)); ALSACHECK(snd_pcm_hw_params_set_access(pcm, hwp, SND_PCM_ACCESS_RW_INTERLEAVED)); ALSACHECK(snd_pcm_hw_params_set_format(pcm, hwp, SND_PCM_FORMAT_S16_LE)); unsigned fs = conf->samplerate; ALSACHECK(snd_pcm_hw_params_set_rate(pcm, hwp, fs, 0)); ALSACHECK(snd_pcm_hw_params_set_channels(pcm, hwp, 2)); unsigned frags = conf->buffer; ALSACHECK(snd_pcm_hw_params_set_periods_near(pcm, hwp, &frags, 0)); // Make the total buffer size a couple of times tx_latency snd_pcm_uframes_t bufsize = conf->tx_latency * 2; ALSACHECK(snd_pcm_hw_params_set_buffer_size_near(pcm, hwp, &bufsize)); ALSACHECK(snd_pcm_hw_params(pcm, hwp)); fprintf(stderr, "fs=%d, frags=%u, bufsize=%u\n", fs, frags, (unsigned)bufsize); return pcm; err: return NULL; } /* Convert a number of samples to a timestamp while avoiding * accumulation of rounding errors. * Sample rate needs to be an integer (in Hz). */ static timestamp_t samples_to_ns(uint64_t n, uint32_t fs) { return n / fs * 1000000000ULL + (uint64_t)((float)(n % fs) * (1000000000.0f / fs)); } static void *init(const void *confv) { struct alsa_io *self = calloc(1, sizeof(*self)); if (self == NULL) return self; self->conf = *(const struct alsa_io_conf *)confv; if (self->conf.rx_on) { fprintf(stderr, "ALSA: Opening capture\n"); self->rx_pcm = open_alsa(&self->conf, SND_PCM_STREAM_CAPTURE); if(self->rx_pcm == NULL) goto err; } if (self->conf.tx_on) { fprintf(stderr, "ALSA: Opening playback\n"); self->tx_pcm = open_alsa(&self->conf, SND_PCM_STREAM_PLAYBACK); if(self->tx_pcm == NULL) goto err; } if (self->conf.rx_on && self->conf.tx_on) ALSACHECK(snd_pcm_link(self->rx_pcm, self->tx_pcm)); return self; err: // TODO: close device return NULL; } static int execute(void *arg) { struct alsa_io *self = arg; struct alsa_io_conf *conf = &self->conf; snd_pcm_t *rx_pcm = self->rx_pcm, *tx_pcm = self->tx_pcm; char streaming = 0; snd_pcm_uframes_t blksize = self->conf.buffer; snd_pcm_uframes_t tx_latency = self->conf.tx_latency; // Reserve buffer somewhat bigger than blksize size_t buf_max = blksize * 2; cs16_t *silence = calloc(tx_latency, sizeof(cs16_t)); cs16_t *buf_int = malloc(sizeof(cs16_t) * buf_max); sample_t *buf_flt = malloc(sizeof(sample_t) * buf_max); // RX and TX samples since starting the stream uint64_t rx_samps = 0, tx_samps = 0; /* Total samples before the stream was started. * This is to keep timestamp progressing if stream is restarted. */ uint64_t base_samps = 0; for (;;) { snd_pcm_sframes_t ret; if (!streaming) { base_samps += rx_samps; rx_samps = 0; tx_samps = 0; //fprintf(stderr, "ALSA: (Re)starting streams\n"); // http://www.saunalahti.fi/~s7l/blog/2005/08/21/Full%20Duplex%20ALSA ALSACHECK(snd_pcm_drop(rx_pcm)); ALSACHECK(snd_pcm_drop(tx_pcm)); ALSACHECK(snd_pcm_prepare(tx_pcm)); ret = snd_pcm_writei(tx_pcm, silence, tx_latency); fprintf(stderr, "ALSA first write: %ld/%ld\n", ret, tx_latency); if (ret > 0) { tx_samps = ret; streaming = 1; } // TODO: handle rx-only (or non-linked) case } if (conf->rx_on) { ret = snd_pcm_readi(rx_pcm, buf_int, blksize); if (ret < 0) { fprintf(stderr, "ALSA read: %s\n", snd_strerror(ret)); streaming = 0; continue; } size_t n = ret; assert(n <= buf_max); cs16_to_cf(buf_int, buf_flt, n); self->receiver->execute(self->receiver_arg, buf_flt, n, samples_to_ns(base_samps + rx_samps, conf->samplerate)); rx_samps += n; } else { // RX disabled. Increment rx_samps anyway to make TX work rx_samps += blksize; } if (conf->tx_on) { tx_return_t ntx = { 0, 0, 0 }; uint64_t tx_until = rx_samps + tx_latency; // How many samples needed now uint64_t tx_n = tx_until - tx_samps; //printf("tx_n = %lu ", (long unsigned)tx_n); if (tx_n > buf_max) tx_n = buf_max; ntx = self->transmitter->execute(self->transmitter_arg, buf_flt, tx_n, samples_to_ns(base_samps + tx_samps, conf->samplerate)); size_t n = ntx.len; assert(n <= buf_max); cf_to_cs16(buf_flt, buf_int, n); ret = snd_pcm_writei(tx_pcm, buf_int, n); if (ret < 0) { fprintf(stderr, "ALSA write: %s\n", snd_strerror(ret)); streaming = 0; continue; } else if (ret != ntx.len) { fprintf(stderr, "ALSA: short write (%ld/%d)\n", ret, ntx.len); } tx_samps += ret; } } err: free(silence); free(buf_int); free(buf_flt); return -1; } static int destroy(void *arg) { // TODO (void)arg; return 0; } static int set_callbacks(void *arg, const struct receiver_code *receiver, void *receiver_arg, const struct transmitter_code *transmitter, void *transmitter_arg) { struct alsa_io *self = arg; self->receiver = receiver; self->receiver_arg = receiver_arg; self->transmitter = transmitter; self->transmitter_arg = transmitter_arg; return 0; } const struct alsa_io_conf alsa_io_defaults = { .rx_on = 1, .tx_on = 1, .samplerate = 48000, .buffer = 96, .tx_latency = 96*4, .rx_name = "hw:0,0", .tx_name = "hw:0,0" }; CONFIG_BEGIN(alsa_io) CONFIG_I(rx_on) CONFIG_I(tx_on) CONFIG_I(samplerate) CONFIG_I(buffer) CONFIG_I(tx_latency) CONFIG_C(rx_name) CONFIG_C(tx_name) CONFIG_END() const struct signal_io_code alsa_io_code = { "alsa_io", init, destroy, init_conf, set_conf, set_callbacks, execute }; #endif
the_stack_data/62637209.c
#include <stdio.h> #include <stdlib.h> int main() { printf("Hello, which product do you want to buy?\n"); printf("1) IPhone 12\n"); printf("2) IPhone 12 Pro\n"); printf("3) IPhone 12 Pro Max Max\n"); // Get item int item_choice; scanf("%d", &item_choice); makeTainted("item_choice"); printf("Great device, how many?\n"); int item_quantity; scanf("%d", &item_quantity); makeTainted("item_quantity"); if (item_quantity <= 0) { makeTainted("item_quantity"); printf("You should buy at least one Iphone!\n"); return -1; } int insurance = 1200; if (item_choice == 3) { int price = 1500 * item_quantity + insurance; makeCondTainted("price", array("item_quantity")); if (isTainted("price") && isIntegerOverflowAttack(price)) { printf("%s", "Integer overflow detected!"); exit(-1); } if (price == 0) { makeTainted("price"); printf("You solved the problem\n"); printf("The Iphone Max Max is yours\n"); return 1; } printf("You have to pay €%d\n", price); } else { if (item_quantity > 3) { makeTainted("item_quantity"); printf("You can buy maximum 3\n"); return -1; } // makeUntainted("item_quantity"); int price = 1000 * item_quantity; makeCondTainted("price", array("item_quantity")); if (isTainted("price") && isIntegerOverflowAttack(price)) { printf("%s", "Integer overflow detected!"); exit(-1); } printf("You have to pay €%d\n", price); } return 0; }
the_stack_data/77234.c
// 0.Documentation Section // C7_SOS, main.c // Runs on LM4F120 or TM4C123 LaunchPad // Input from PF4(SW1) and PF0(SW2), output to PF3 (Green LED) // Pressing SW1 starts SOS (Green LED flashes SOS). // S: Toggle light 3 times with 1/2 sec gap between ON....1/2sec....OFF // O: Toggle light 3 times with 2 sec gap between ON....2sec....OFF // S: Toggle light 3 times with 1/2 sec gap between ON....1/2sec....OFF // 5 second delay between SOS // Pressing SW2 stops SOS // Authors: Daniel Valvano, Jonathan Valvano and Ramesh Yerraballi // Date: July 15, 2013 // 1. Pre-processor Directives Section // Constant declarations to access port registers using // symbolic names instead of addresses #define GPIO_PORTF_DATA_R (*((volatile unsigned long *)0x400253FC)) #define GPIO_PORTF_DIR_R (*((volatile unsigned long *)0x40025400)) #define GPIO_PORTF_AFSEL_R (*((volatile unsigned long *)0x40025420)) #define GPIO_PORTF_PUR_R (*((volatile unsigned long *)0x40025510)) #define GPIO_PORTF_DEN_R (*((volatile unsigned long *)0x4002551C)) #define GPIO_PORTF_LOCK_R (*((volatile unsigned long *)0x40025520)) #define GPIO_PORTF_CR_R (*((volatile unsigned long *)0x40025524)) #define GPIO_PORTF_AMSEL_R (*((volatile unsigned long *)0x40025528)) #define GPIO_PORTF_PCTL_R (*((volatile unsigned long *)0x4002552C)) #define SYSCTL_RCGC2_R (*((volatile unsigned long *)0x400FE108)) // 2. Declarations Section // Global Variables unsigned long SW1; // input from PF4 unsigned long SW2; // input from PF0 // Function Prototypes void PortF_Init(void); void FlashSOS(void); void delay(unsigned long halfsecs); // 3. Subroutines Section // MAIN: Mandatory for a C Program to be executable int main(void){ PortF_Init(); // Init port PF4 PF2 PF0 while(1){ do{ SW1 = GPIO_PORTF_DATA_R&0x10; // PF4 into SW1 }while(SW1 == 0x10); do{ FlashSOS(); SW2 = GPIO_PORTF_DATA_R&0x01; // PF0 into SW2 }while(SW2 == 0x01); } } // Subroutine to initialize port F pins for input and output // PF4 is input SW1 and PF2 is output Blue LED // Inputs: None // Outputs: None // Notes: ... void PortF_Init(void){ volatile unsigned long delay; SYSCTL_RCGC2_R |= 0x00000020; // 1) F clock delay = SYSCTL_RCGC2_R; // delay GPIO_PORTF_LOCK_R = 0x4C4F434B; // 2) unlock PortF PF0 GPIO_PORTF_CR_R |= 0x1F; // allow changes to PF4-0 GPIO_PORTF_AMSEL_R &= 0x00; // 3) disable analog function GPIO_PORTF_PCTL_R &= 0x00000000; // 4) GPIO clear bit PCTL GPIO_PORTF_DIR_R &= ~0x11; // 5.1) PF4,PF0 input, GPIO_PORTF_DIR_R |= 0x08; // 5.2) PF3 output GPIO_PORTF_AFSEL_R &= 0x00; // 6) no alternate function GPIO_PORTF_PUR_R |= 0x11; // enable pullup resistors on PF4,PF0 GPIO_PORTF_DEN_R |= 0x1F; // 7) enable digital pins PF4-PF0 } // Color LED(s) PortF // dark --- 0 // red R-- 0x02 // blue --B 0x04 // green -G- 0x08 // yellow RG- 0x0A // sky blue -GB 0x0C // white RGB 0x0E // Subroutine to Flash a green LED SOS once // PF3 is green LED: SOS // S: Toggle light 3 times with 1/2 sec gap between ON....1/2sec....OFF // O: Toggle light 3 times with 2 sec gap between ON....2sec....OFF // S: Toggle light 3 times with 1/2 sec gap between ON....1/2sec....OFF // Inputs: None // Outputs: None // Notes: ... void FlashSOS(void){ //S GPIO_PORTF_DATA_R |= 0x08; delay(1); GPIO_PORTF_DATA_R &= ~0x08; delay(1); GPIO_PORTF_DATA_R |= 0x08; delay(1); GPIO_PORTF_DATA_R &= ~0x08; delay(1); GPIO_PORTF_DATA_R |= 0x08; delay(1); GPIO_PORTF_DATA_R &= ~0x08; delay(1); //O GPIO_PORTF_DATA_R |= 0x08; delay(4); GPIO_PORTF_DATA_R &= ~0x08;delay(4); GPIO_PORTF_DATA_R |= 0x08; delay(4); GPIO_PORTF_DATA_R &= ~0x08;delay(4); GPIO_PORTF_DATA_R |= 0x08; delay(4); GPIO_PORTF_DATA_R &= ~0x08;delay(4); //S GPIO_PORTF_DATA_R |= 0x08; delay(1); GPIO_PORTF_DATA_R &= ~0x08;delay(1); GPIO_PORTF_DATA_R |= 0x08; delay(1); GPIO_PORTF_DATA_R &= ~0x08;delay(1); GPIO_PORTF_DATA_R |= 0x08; delay(1); GPIO_PORTF_DATA_R &= ~0x08;delay(1); delay(10); // Delay for 5 secs in between flashes } // Subroutine to delay in units of half seconds // We will make a precise estimate later: // For now we assume it takes 1/2 sec to count down // from 2,000,000 down to zero // Inputs: Number of half seconds to delay // Outputs: None // Notes: ... void delay(unsigned long halfsecs){ unsigned long count; while(halfsecs > 0 ) { // repeat while there are still halfsecs to delay count = 1538460; // 400000*0.5/0.13 that it takes 0.13 sec to count down to zero while (count > 0) { count--; } // This while loop takes approximately 3 cycles halfsecs--; } }
the_stack_data/20451202.c
/* ヘッダファイルのインクルード */ #include <stdio.h> /* 標準入出力 */ #include <string.h> /* 文字列処理 */ /* main関数の定義 */ int main(void){ /* 初期化 */ char target[] = "ABC,DEF,GHI\nJKL MNO PQR"; /* targetを"ABC,DEF,GHI\nJKL MNO PQR"で初期化. */ char *s = target; /* 文字列の開始位置sをtargetの先頭アドレスで初期化. */ char *p = NULL; /* トークンのアドレスpをNULLで初期化. */ int d = 0; /* 距離dを0で初期化. */ char token[256] = {0}; /* tokenを{0}で初期化. */ char *e = &target[strlen(target)]; /* eを最後の文字の次のNULL文字('\0')のアドレスで初期化. */ /* do-while文でトークン切り出し. */ do{ /* do-while文 */ /* 文字列を渡して, トークンを取得. */ p = strpbrk(s, ",\n "); /* ",\n "のいずれかで区切り, トークンのアドレスをpに格納. */ if (p != NULL){ /* pがNULLでない場合. */ d = p - s; /* pからsを引くと, ポインタ演算により, 距離dが求められる. */ strncpy(token, s, d); /* tokenにsからd文字分コピー. */ printf("token = %s\n", token); /* tokenを出力. */ s = p + 1; /* sをp + 1に再設定する. */ } else{ /* pがNULLの場合. */ d = e - s; /* eからsを引くと, ポインタ演算により, 距離dが求められる. */ strncpy(token, s, d); /* tokenにsからd文字分コピー. */ printf("token = %s\n", token); /* tokenを出力. */ } } while (p != NULL); /* pがNULLでない間は繰り返す. */ /* 最後にtargetを出力. */ printf("target = %s\n", target); /* targetを出力. */ /* プログラムの終了 */ return 0; /* 0を返して正常終了. */ }
the_stack_data/248580903.c
/* * Program that reduces the fraction to its lowest terms. */ #include <stdio.h> static int gcd(int m, int n); static void reduce( int numer, int denom, int *reduced_numer, int *reduced_denom ); int main(void) { int n, d; printf("Enter a fraction: "); (void)scanf("%d /%d", &n, &d); reduce(n, d, &n, &d); printf("In lowest terms: %d/%d\n", n, d); return 0; } int gcd(int m, int n) { return n == 0 ? m < 0 ? ~m + 1 : m : gcd(n, m % n); } void reduce( int numer, int denom, int *reduced_numer, int *reduced_denom ) { int g = gcd(numer, denom); *reduced_numer = numer / g; *reduced_denom = denom / g; }
the_stack_data/146207.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> #define VALIDATE 0 #if VALIDATE #include "validate.h" #endif int dot_prod(const size_t, const int * restrict, const int * restrict); void usage(char**); int main(int argc, char **argv) { int *u,*v,uv; size_t i,n; double t0,t1; if(argc==2) sscanf(argv[1],"%zu",&n); else { usage(argv); return 1; } u = (int*)malloc(n*sizeof(int)); v = (int*)malloc(n*sizeof(int)); for(i=0; i<n; ++i) u[i]=v[i]=i; t0 = omp_get_wtime(); uv = dot_prod(n,u,v); t1 = omp_get_wtime(); #if VALIDATE if(!validate_dot_prod(n,u,v,uv)) { printf("Validation failed.\n"); return 1; } #endif printf("dot(u,v) = %d\n",uv); printf("Total time taken: %f.\n",t1-t0); free(u); free(v); return 0; } int dot_prod(const size_t n, const int * restrict u, const int * restrict v) { int sum=0; size_t i; #pragma omp parallel for \ default(none) shared(u,v) private(i) reduction(+:sum) for(i=0; i<n; ++i) sum += u[i]+v[i]; return sum; } void usage(char **argv) { printf("Usage: %s <length>\n",argv[0]); }
the_stack_data/173577827.c
/** ****************************************************************************** * @file stm32f3xx_ll_gpio.c * @author MCD Application Team * @brief GPIO LL module driver. ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) 2016 STMicroelectronics. * All rights reserved.</center></h2> * * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ #if defined(USE_FULL_LL_DRIVER) /* Includes ------------------------------------------------------------------*/ #include "stm32f3xx_ll_gpio.h" #include "stm32f3xx_ll_bus.h" #ifdef USE_FULL_ASSERT #include "stm32_assert.h" #else #define assert_param(expr) ((void)0U) #endif /** @addtogroup STM32F3xx_LL_Driver * @{ */ #if defined (GPIOA) || defined (GPIOB) || defined (GPIOC) || defined (GPIOD) || defined (GPIOE) || defined (GPIOF) || defined (GPIOG) || defined (GPIOH) /** @addtogroup GPIO_LL * @{ */ /** MISRA C:2012 deviation rule has been granted for following rules: * Rule-12.2 - Medium: RHS argument is in interval [0,INF] which is out of * range of the shift operator in following API : * LL_GPIO_Init * LL_GPIO_DeInit * LL_GPIO_SetPinMode * LL_GPIO_GetPinMode * LL_GPIO_SetPinSpeed * LL_GPIO_GetPinSpeed * LL_GPIO_SetPinPull * LL_GPIO_GetPinPull * LL_GPIO_GetAFPin_0_7 * LL_GPIO_SetAFPin_0_7 * LL_GPIO_SetAFPin_8_15 * LL_GPIO_GetAFPin_8_15 */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /* Private macros ------------------------------------------------------------*/ /** @addtogroup GPIO_LL_Private_Macros * @{ */ #define IS_LL_GPIO_PIN(__VALUE__) (((0x00u) < (__VALUE__)) && ((__VALUE__) <= (LL_GPIO_PIN_ALL))) #define IS_LL_GPIO_MODE(__VALUE__) (((__VALUE__) == LL_GPIO_MODE_INPUT) ||\ ((__VALUE__) == LL_GPIO_MODE_OUTPUT) ||\ ((__VALUE__) == LL_GPIO_MODE_ALTERNATE) ||\ ((__VALUE__) == LL_GPIO_MODE_ANALOG)) #define IS_LL_GPIO_OUTPUT_TYPE(__VALUE__) (((__VALUE__) == LL_GPIO_OUTPUT_PUSHPULL) ||\ ((__VALUE__) == LL_GPIO_OUTPUT_OPENDRAIN)) #define IS_LL_GPIO_SPEED(__VALUE__) (((__VALUE__) == LL_GPIO_SPEED_FREQ_LOW) ||\ ((__VALUE__) == LL_GPIO_SPEED_FREQ_MEDIUM) ||\ ((__VALUE__) == LL_GPIO_SPEED_FREQ_HIGH)) #define IS_LL_GPIO_PULL(__VALUE__) (((__VALUE__) == LL_GPIO_PULL_NO) ||\ ((__VALUE__) == LL_GPIO_PULL_UP) ||\ ((__VALUE__) == LL_GPIO_PULL_DOWN)) #define IS_LL_GPIO_ALTERNATE(__VALUE__) (((__VALUE__) == LL_GPIO_AF_0 ) ||\ ((__VALUE__) == LL_GPIO_AF_1 ) ||\ ((__VALUE__) == LL_GPIO_AF_2 ) ||\ ((__VALUE__) == LL_GPIO_AF_3 ) ||\ ((__VALUE__) == LL_GPIO_AF_4 ) ||\ ((__VALUE__) == LL_GPIO_AF_5 ) ||\ ((__VALUE__) == LL_GPIO_AF_6 ) ||\ ((__VALUE__) == LL_GPIO_AF_7 ) ||\ ((__VALUE__) == LL_GPIO_AF_8 ) ||\ ((__VALUE__) == LL_GPIO_AF_9 ) ||\ ((__VALUE__) == LL_GPIO_AF_10 ) ||\ ((__VALUE__) == LL_GPIO_AF_11 ) ||\ ((__VALUE__) == LL_GPIO_AF_12 ) ||\ ((__VALUE__) == LL_GPIO_AF_13 ) ||\ ((__VALUE__) == LL_GPIO_AF_14 ) ||\ ((__VALUE__) == LL_GPIO_AF_15 )) /** * @} */ /* Private function prototypes -----------------------------------------------*/ /* Exported functions --------------------------------------------------------*/ /** @addtogroup GPIO_LL_Exported_Functions * @{ */ /** @addtogroup GPIO_LL_EF_Init * @{ */ /** * @brief De-initialize GPIO registers (Registers restored to their default values). * @param GPIOx GPIO Port * @retval An ErrorStatus enumeration value: * - SUCCESS: GPIO registers are de-initialized * - ERROR: Wrong GPIO Port */ ErrorStatus LL_GPIO_DeInit(GPIO_TypeDef *GPIOx) { ErrorStatus status = SUCCESS; /* Check the parameters */ assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); /* Force and Release reset on clock of GPIOx Port */ if (GPIOx == GPIOA) { LL_AHB1_GRP1_ForceReset(LL_AHB1_GRP1_PERIPH_GPIOA); LL_AHB1_GRP1_ReleaseReset(LL_AHB1_GRP1_PERIPH_GPIOA); } else if (GPIOx == GPIOB) { LL_AHB1_GRP1_ForceReset(LL_AHB1_GRP1_PERIPH_GPIOB); LL_AHB1_GRP1_ReleaseReset(LL_AHB1_GRP1_PERIPH_GPIOB); } else if (GPIOx == GPIOC) { LL_AHB1_GRP1_ForceReset(LL_AHB1_GRP1_PERIPH_GPIOC); LL_AHB1_GRP1_ReleaseReset(LL_AHB1_GRP1_PERIPH_GPIOC); } #if defined(GPIOD) else if (GPIOx == GPIOD) { LL_AHB1_GRP1_ForceReset(LL_AHB1_GRP1_PERIPH_GPIOD); LL_AHB1_GRP1_ReleaseReset(LL_AHB1_GRP1_PERIPH_GPIOD); } #endif /* GPIOD */ #if defined(GPIOE) else if (GPIOx == GPIOE) { LL_AHB1_GRP1_ForceReset(LL_AHB1_GRP1_PERIPH_GPIOE); LL_AHB1_GRP1_ReleaseReset(LL_AHB1_GRP1_PERIPH_GPIOE); } #endif /* GPIOE */ #if defined(GPIOF) else if (GPIOx == GPIOF) { LL_AHB1_GRP1_ForceReset(LL_AHB1_GRP1_PERIPH_GPIOF); LL_AHB1_GRP1_ReleaseReset(LL_AHB1_GRP1_PERIPH_GPIOF); } #endif /* GPIOF */ #if defined(GPIOG) else if (GPIOx == GPIOG) { LL_AHB1_GRP1_ForceReset(LL_AHB1_GRP1_PERIPH_GPIOG); LL_AHB1_GRP1_ReleaseReset(LL_AHB1_GRP1_PERIPH_GPIOG); } #endif /* GPIOG */ #if defined(GPIOH) else if (GPIOx == GPIOH) { LL_AHB1_GRP1_ForceReset(LL_AHB1_GRP1_PERIPH_GPIOH); LL_AHB1_GRP1_ReleaseReset(LL_AHB1_GRP1_PERIPH_GPIOH); } #endif /* GPIOH */ else { status = ERROR; } return (status); } /** * @brief Initialize GPIO registers according to the specified parameters in GPIO_InitStruct. * @param GPIOx GPIO Port * @param GPIO_InitStruct pointer to a @ref LL_GPIO_InitTypeDef structure * that contains the configuration information for the specified GPIO peripheral. * @retval An ErrorStatus enumeration value: * - SUCCESS: GPIO registers are initialized according to GPIO_InitStruct content * - ERROR: Not applicable */ ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) { uint32_t pinpos; uint32_t currentpin; /* Check the parameters */ assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); /* ------------------------- Configure the port pins ---------------- */ /* Initialize pinpos on first pin set */ pinpos = POSITION_VAL(GPIO_InitStruct->Pin); /* Configure the port pins */ while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00u) { /* Get current io position */ currentpin = (GPIO_InitStruct->Pin) & (0x00000001uL << pinpos); if (currentpin != 0x00u) { if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTERNATE)) { /* Check Speed mode parameters */ assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); /* Speed mode configuration */ LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); /* Check Output mode parameters */ assert_param(IS_LL_GPIO_OUTPUT_TYPE(GPIO_InitStruct->OutputType)); /* Output mode configuration*/ LL_GPIO_SetPinOutputType(GPIOx, GPIO_InitStruct->Pin, GPIO_InitStruct->OutputType); } /* Pull-up Pull down resistor configuration*/ LL_GPIO_SetPinPull(GPIOx, currentpin, GPIO_InitStruct->Pull); if (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTERNATE) { /* Check Alternate parameter */ assert_param(IS_LL_GPIO_ALTERNATE(GPIO_InitStruct->Alternate)); /* Speed mode configuration */ if (POSITION_VAL(currentpin) < 0x00000008U) { LL_GPIO_SetAFPin_0_7(GPIOx, currentpin, GPIO_InitStruct->Alternate); } else { LL_GPIO_SetAFPin_8_15(GPIOx, currentpin, GPIO_InitStruct->Alternate); } } /* Pin Mode configuration */ LL_GPIO_SetPinMode(GPIOx, currentpin, GPIO_InitStruct->Mode); } pinpos++; } return (SUCCESS); } /** * @brief Set each @ref LL_GPIO_InitTypeDef field to default value. * @param GPIO_InitStruct pointer to a @ref LL_GPIO_InitTypeDef structure * whose fields will be set to default values. * @retval None */ void LL_GPIO_StructInit(LL_GPIO_InitTypeDef *GPIO_InitStruct) { /* Reset GPIO init structure parameters values */ GPIO_InitStruct->Pin = LL_GPIO_PIN_ALL; GPIO_InitStruct->Mode = LL_GPIO_MODE_ANALOG; GPIO_InitStruct->Speed = LL_GPIO_SPEED_FREQ_LOW; GPIO_InitStruct->OutputType = LL_GPIO_OUTPUT_PUSHPULL; GPIO_InitStruct->Pull = LL_GPIO_PULL_NO; GPIO_InitStruct->Alternate = LL_GPIO_AF_0; } /** * @} */ /** * @} */ /** * @} */ #endif /* defined (GPIOA) || defined (GPIOB) || defined (GPIOC) || defined (GPIOD) || defined (GPIOE) || defined (GPIOF) || defined (GPIOG) || defined (GPIOH) */ /** * @} */ #endif /* USE_FULL_LL_DRIVER */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
the_stack_data/61075678.c
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <time.h> #define N 1000 #define NCHAR 26 // 2018-08-07 // 最长公共子串 // // F[i][j] = a[i]==b[j] ? F[i-1][j-1]+1 : 0; char* substring; int lcss(char* a, char* b) { int ans = 0, lenb = strlen(b); size_t sz = (lenb + 1) * sizeof(int); // 状态压缩 int* dp = malloc(sz); memset(dp, 0x00, sz); for (int i=1; i<=strlen(a); i++) // TODO: 逆序保证无后效性? for (int j=lenb; j>=1; j--) { dp[j] = a[i-1]==b[i-1] ? dp[j-1]+1 : 0; if (ans < dp[j]) { ans = dp[j]; substring = &a[i-1]; } } free(dp); return ans; } void print_lcss(int len) { substring -= len; while (len--) printf("%c", *(substring++)); puts(""); } int main() { srand(time(NULL)); char a[N], b[N]; int r = rand() % 10 + 1; while (r--) { int lena = rand() % N; for (int i=0; i<lena; i++) a[i] = rand() % NCHAR + 'a'; a[lena] = '\0'; int lenb = rand() % N; for (int i=0; i<lenb; i++) b[i] = rand() % NCHAR + 'a'; b[lenb] = '\0'; int ans = lcss(a, b); printf("lcs: %d\n", ans); print_lcss(ans); } return 0; }
the_stack_data/111078771.c
//Francis German //V00893968 //University of Victoria //Fall 2021 //CSC 360 Assignment 1 // Used code from stackoverflow, includehelp.com, geeksforgeeks, stackexchange and youtube(code vault) #include <readline/readline.h> #include <readline/history.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <stdlib.h> #include <signal.h> //prototype void bg(char **, int); int bglist( int); void CreateProcess(pid_t,char*); void bgkill(pid_t, int); void bgstop(pid_t id); void bgstart(pid_t id); void pstat(pid_t id); void check_zombieProcess(); void remove_process_from_list(pid_t id); // background process record typedef struct Node{ pid_t id; char* word; struct Node* next; }Node; Node* head = NULL; int main(){ char* cmdtok; char* cmd; char *strs[7]= {"bg", "bglist", "bgkill","bgstop","bgstart", "pstat" }; //supported commands int Arr_len = sizeof(strs) / sizeof(strs[0]); while(1){ int count = 0; char *inputArr[20]; // contains user inputs int count1 = 0; //string token cmd = readline("PMan: > "); cmdtok = strtok(cmd, " "); /* parse the input cmd (e.g., with strtok) */ for(int i=0; i<5;i++){ inputArr[i] = cmdtok; cmdtok = strtok(NULL, " "); } for (int i=0;i<Arr_len-1;i++){ if(strcmp(inputArr[0],strs[i]) == 0){ count++; } } if(count == 0){ printf("PMan: > %s:", cmd); printf("\tcommand not found\n"); } if (strcmp(inputArr[0], "bg")==0){ bg(inputArr, 1); } else if(strcmp(inputArr[0], "bglist")==0){ bglist(count1); } else if(strcmp(inputArr[0], "bgkill")==0){ //convert string to int int x = atoi(inputArr[1]); bgkill(x,count1); } else if(strcmp(inputArr[0], "bgstop")==0){ //convert string to int int x = atoi(inputArr[1]); bgstop(x); } else if(strcmp(inputArr[0], "bgstart")==0){ //convert string to int int x = atoi(inputArr[1]); bgstart(x); } else if(strcmp(inputArr[0], "pstat")==0){ //convert string to int int x = atoi(inputArr[1]); pstat(x); } check_zombieProcess(); } return 0; } // this command executes a process in background void bg(char **program, int n) { pid_t id; id = fork(); //child process if(id == 0){ if(execvp(program[n], program) < 0){ perror("Error on execvp"); } exit(-1); } //parent process else if(id > 0) { // store information of the background child process in your data structures CreateProcess(id,program[1]); sleep(1); } } //this function displays a list of programs running in the background int bglist(int count1) { count1 = 0; // Initialize count struct Node* curr = head; // Initialize current while (curr != NULL){ count1++; printf("%d:\t %s \n",curr->id,curr->word); curr = curr->next; } printf("Total background jobs:%d\n", count1); return count1; } //this function creates a process in background by storing process in linkedlist void CreateProcess(pid_t id, char* word){ Node* root = malloc(sizeof(Node)); root->id = id; root->word = word; root->next = NULL; Node* curr1 = head; if (head == NULL) { head = root; } else { while (curr1->next != NULL) { curr1 = curr1->next; } curr1->next = root; } } //this function sends the SIGKILL signal to a process id and terminates the process in background void bgkill(pid_t id, int count1){ // Check if process is in linkedlist int count = 0; Node* temp3 = head; while (temp3 != NULL) { if (temp3->id == id) { count++; } temp3 = temp3->next; } if (count ==1){ kill(id, SIGKILL); printf("Backgroung job %d has been terminated\n",id); }else{ printf("Process does not exist\n"); } remove_process_from_list(id); } //this function sends the SIGSTOP signal to a process id to stop it temporarily void bgstop(pid_t id) { // Check if process is in linkedlist int count = 0; Node* temp = head; while (temp != NULL) { if (temp->id == id) { count++; } temp = temp->next; } if (count ==1){ kill(id, SIGSTOP); printf("Backgroung job %d has been stopped\n",id); }else{ printf("Process does not exist\n"); } } //this function sends the SIGCONT signal to a process id to stop it continue execution void bgstart(pid_t id) { // Check if process is in linkedlist int count = 0; Node* temp = head; while (temp != NULL) { if (temp->id == id) { count++; } temp = temp->next; } if (count==1){ kill(id, SIGCONT); printf("Backgroung job %d has been resumed\n",id); }else{ printf("Process does not exist\n"); } } // this function list information about a process id void pstat(pid_t id){ // Check if process is in linkedlist int count = 0; Node* temp3 = head; while (temp3 != NULL) { if (temp3->id == id) { count++; } temp3 = temp3->next; } if (count ==1){ char filename[1000]; char filename1[1000]; sprintf(filename, "/proc/%d/stat", id); FILE *f = fopen(filename, "r"); sprintf(filename1, "/proc/%d/status", id); FILE *fp = fopen(filename1, "r"); char comm[100]; char state; int ppid; float utime; float stime; unsigned int rss; int voluntary_ctxt_switches ; int involuntary_ctxt_switches ; fscanf(f, "%*d %s %c %d %*d %*d %*d %*d %*u %*u %*u %*u %*u %f %f %*d %*d %*d %*d %*u %*u %*d %*u %u", comm, &state, &ppid, &utime, &stime, &rss ); fscanf(f, "%*d %*s %*c %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d %*D %*d %*D %*d %*D %*d %*d %*d %*d %*d %*d %d %d ",&voluntary_ctxt_switches, &involuntary_ctxt_switches ); utime = utime/ sysconf(_SC_CLK_TCK); stime = stime/ sysconf(_SC_CLK_TCK); printf("comm = %s\n", comm); printf("state = %c\n", state); printf("utime = %f\n", utime); printf("stime = %f\n", stime); printf("rss = %u\n", rss); printf("voluntary_ctxt_switches = %d\n", voluntary_ctxt_switches); printf("involuntary_ctxt_switches = %d\n", involuntary_ctxt_switches); fclose(f); fclose(fp); }else{ printf("Invalid process id\n"); } } // this function checks if a process does not executes void check_zombieProcess(void){ int status; int retVal = 0; while(1) { usleep(1000); if(head == NULL){ return ; } retVal = waitpid(-1, &status, WNOHANG); if(retVal > 0) { //remove the background process from your data structure if (WIFSIGNALED(status)) { printf("Background process %d was killed.\n", retVal); remove_process_from_list(retVal); } if (WIFEXITED(status)) { printf("Background process %d terminated.\n", retVal); remove_process_from_list(retVal); } } else if(retVal == 0){ break; } else{ perror("waitpid failed"); exit(EXIT_FAILURE); } } return ; } //this function removes a process from data structure void remove_process_from_list(pid_t id){ // Store head node Node* temp = head; Node* temp2 = NULL; while (temp != NULL) { if (temp->id == id) { break; } temp2 = temp; temp = temp->next; } if (temp == NULL) { printf(""); } else if (temp2 == NULL) { head = temp->next; } else { temp2->next = temp->next; } free(temp); }
the_stack_data/875615.c
/* * AVICAP32: * * profile.c * * win32/win16 utility functions to read and write profile items * for VFW * * ONLY mmGetProfileIntA is supported here * */ #if defined(_WIN32) && defined(UNICODE) // This whole file is only used for 32 bit code. It is the implementation // that allows Win GetProfilexxx calls to use the registry. #include <windows.h> #include <windowsx.h> #include <profile.key> #include <win32.h> #include <stdlib.h> // for atoi #include "profile.h" static HKEY GetKeyA(LPCSTR appname, BOOL fCreate) { HKEY key = 0; char achName[MAX_PATH]; lstrcpyA(achName, KEYNAMEA); lstrcpynA(achName + NUMELMS(KEYNAMEA) - 1, appname, NUMELMS(achName) - NUMELMS(KEYNAMEA) + 1); if ((!fCreate && RegOpenKeyA(ROOTKEY, achName, &key) == ERROR_SUCCESS) || (fCreate && RegCreateKeyA(ROOTKEY, achName, &key) == ERROR_SUCCESS)) { } return(key); } #define GetKey GetKeyA /* * read a UINT from the profile, or return default if * not found. */ UINT mmGetProfileIntA(LPCSTR appname, LPCSTR valuename, INT uDefault) { DWORD dwType; INT value = uDefault; DWORD dwData; int cbData; HKEY key = GetKeyA(appname, FALSE); if (key) { cbData = sizeof(dwData); if (RegQueryValueExA( key, (LPSTR)valuename, NULL, &dwType, (PBYTE) &dwData, &cbData) == ERROR_SUCCESS) { if (dwType == REG_DWORD || dwType == REG_BINARY) { value = (INT)dwData; } else if (dwType == REG_SZ) { value = atoi((LPSTR) &dwData); } } RegCloseKey(key); } return((UINT)value); } #endif // DAYTONA
the_stack_data/68378.c
#include <stdio.h> int main(void) { int integer, a, b, c, d, e, f; //Getting a positive integer from user of maximum 6 digits do { printf("Please enter a positive integer (maximum 6 digits): "); scanf("%i", &integer); printf("\n"); } while(integer < 0 || integer > 999999); /*Characterize the integer based on the number of digits and extract each digit and print it in words*/ //One digit integer if (integer >= 0 && integer < 10) { switch(integer) { case 0: printf("Zero\n"); break; case 1: printf("One\n"); break; case 2: printf("Two\n"); break; case 3: printf("Three\n"); break; case 4: printf("Four\n"); break; case 5: printf("Five\n"); break; case 6: printf("Six\n"); break; case 7: printf("Seven\n"); break; case 8: printf("Eight\n"); break; case 9: printf("Nine\n"); break; } } //Two digits else if (integer > 9 && integer < 100) { //Splitting the digits into seperate variable 'a' and 'b' b = integer % 10; integer /= 10; a = integer % 10; //Testing and printing 'a' and 'b' switch(a) { case 0: printf("Zero "); break; case 1: printf("One "); break; case 2: printf("Two "); break; case 3: printf("Three "); break; case 4: printf("Four "); break; case 5: printf("Five "); break; case 6: printf("Six "); break; case 7: printf("Seven "); break; case 8: printf("Eight "); break; case 9: printf("Nine "); break; } switch (b) { case 0: printf("zero\n"); break; case 1: printf("one\n"); break; case 2: printf("two\n"); break; case 3: printf("three\n"); break; case 4: printf("four\n"); break; case 5: printf("five\n"); break; case 6: printf("six\n"); break; case 7: printf("seven\n"); break; case 8: printf("eight\n"); break; case 9: printf("nine\n"); break; } } //Three digits else if (integer > 99 && integer < 1000) { //Splitting the digits into seperate variable 'a', 'b' and 'c' c = integer % 10; integer /= 10; b = integer % 10; integer /= 10; a = integer % 10; //Testing and printing a, b and c switch(a) { case 0: printf("Zero "); break; case 1: printf("One "); break; case 2: printf("Two "); break; case 3: printf("Three "); break; case 4: printf("Four "); break; case 5: printf("Five "); break; case 6: printf("Six "); break; case 7: printf("Seven "); break; case 8: printf("Eight "); break; case 9: printf("Nine "); break; } switch(b) { case 0: printf("zero "); break; case 1: printf("one "); break; case 2: printf("two "); break; case 3: printf("three "); break; case 4: printf("four "); break; case 5: printf("five "); break; case 6: printf("six "); break; case 7: printf("seven "); break; case 8: printf("eight "); break; case 9: printf("nine "); break; } switch(c) { case 0: printf("zero\n"); break; case 1: printf("one\n"); break; case 2: printf("two\n"); break; case 3: printf("three\n"); break; case 4: printf("four\n"); break; case 5: printf("five\n"); break; case 6: printf("six\n"); break; case 7: printf("seven\n"); break; case 8: printf("eight\n"); break; case 9: printf("nine\n"); break; } } //Four digits else if (integer > 999 && integer < 10000) { //Splitting the digits into seperate variable 'a', 'b', 'c' and 'd' d = integer % 10; integer /= 10; c = integer % 10; integer /= 10; b = integer % 10; integer /= 10; a = integer % 10; //Testing and printing variables a, b, c and d switch(a) { case 0: printf("Zero "); break; case 1: printf("One "); break; case 2: printf("Two "); break; case 3: printf("Three "); break; case 4: printf("Four "); break; case 5: printf("Five "); break; case 6: printf("Six "); break; case 7: printf("Seven "); break; case 8: printf("Eight "); break; case 9: printf("Nine "); break; } switch(b) { case 0: printf("zero "); break; case 1: printf("one "); break; case 2: printf("two "); break; case 3: printf("three "); break; case 4: printf("four "); break; case 5: printf("five "); break; case 6: printf("six "); break; case 7: printf("seven "); break; case 8: printf("eight "); break; case 9: printf("nine "); break; } switch(c) { case 0: printf("zero "); break; case 1: printf("one "); break; case 2: printf("two "); break; case 3: printf("three "); break; case 4: printf("four "); break; case 5: printf("five "); break; case 6: printf("six "); break; case 7: printf("seven "); break; case 8: printf("eight "); break; case 9: printf("nine "); break; } switch(d) { case 0: printf("zero\n"); break; case 1: printf("one\n"); break; case 2: printf("two\n"); break; case 3: printf("three\n"); break; case 4: printf("four\n"); break; case 5: printf("five\n"); break; case 6: printf("six\n"); break; case 7: printf("seven\n"); break; case 8: printf("eight\n"); break; case 9: printf("nine\n"); break; } } //Five digits else if (integer > 9999 && integer < 100000) { //Splitting and storing digits in variables 'a', 'b', 'c', 'd' and 'e' e = integer % 10; integer /= 10; d = integer % 10; integer /= 10; c = integer % 10; integer /= 10; b = integer % 10; integer /= 10; a = integer % 10; //Testing and printing a, b, c, d and e switch(a) { case 0: printf("Zero "); break; case 1: printf("One "); break; case 2: printf("Two "); break; case 3: printf("Three "); break; case 4: printf("Four "); break; case 5: printf("Five "); break; case 6: printf("Six "); break; case 7: printf("Seven "); break; case 8: printf("Eight "); break; case 9: printf("Nine "); break; } switch(b) { case 0: printf("zero "); break; case 1: printf("one "); break; case 2: printf("two "); break; case 3: printf("three "); break; case 4: printf("four "); break; case 5: printf("five "); break; case 6: printf("six "); break; case 7: printf("seven "); break; case 8: printf("eight "); break; case 9: printf("nine "); break; } switch(c) { case 0: printf("zero "); break; case 1: printf("one "); break; case 2: printf("two "); break; case 3: printf("three "); break; case 4: printf("four "); break; case 5: printf("five "); break; case 6: printf("six "); break; case 7: printf("seven "); break; case 8: printf("eight "); break; case 9: printf("nine "); break; } switch(d) { case 0: printf("zero "); break; case 1: printf("one "); break; case 2: printf("two "); break; case 3: printf("three "); break; case 4: printf("four "); break; case 5: printf("five "); break; case 6: printf("six "); break; case 7: printf("seven "); break; case 8: printf("eight "); break; case 9: printf("nine "); break; } switch(e) { case 0: printf("zero\n"); break; case 1: printf("one\n"); break; case 2: printf("two\n"); break; case 3: printf("three\n"); break; case 4: printf("four\n"); break; case 5: printf("five\n"); break; case 6: printf("six\n"); break; case 7: printf("seven\n"); break; case 8: printf("eight\n"); break; case 9: printf("nine\n"); break; } } //Six digits else if (integer > 99999 && integer < 1000000) { //Splitting and storing the digits in variables 'a', 'b', 'c', 'd', 'e' and 'f' f = integer % 10; integer /= 10; e = integer % 10; integer /= 10; d = integer % 10; integer /= 10; c = integer % 10; integer /= 10; b = integer % 10; integer /= 10; a = integer % 10; //Testing and printing a, b, c, d, e and f switch(a) { case 0: printf("Zero "); break; case 1: printf("One "); break; case 2: printf("Two "); break; case 3: printf("Three "); break; case 4: printf("Four "); break; case 5: printf("Five "); break; case 6: printf("Six "); break; case 7: printf("Seven "); break; case 8: printf("Eight "); break; case 9: printf("Nine "); break; } switch(b) { case 0: printf("zero "); break; case 1: printf("one "); break; case 2: printf("two "); break; case 3: printf("three "); break; case 4: printf("four "); break; case 5: printf("five "); break; case 6: printf("six "); break; case 7: printf("seven "); break; case 8: printf("eight "); break; case 9: printf("nine "); break; } switch(c) { case 0: printf("zero "); break; case 1: printf("one "); break; case 2: printf("two "); break; case 3: printf("three "); break; case 4: printf("four "); break; case 5: printf("five "); break; case 6: printf("six "); break; case 7: printf("seven "); break; case 8: printf("eight "); break; case 9: printf("nine "); break; } switch(d) { case 0: printf("zero "); break; case 1: printf("one "); break; case 2: printf("two "); break; case 3: printf("three "); break; case 4: printf("four "); break; case 5: printf("five "); break; case 6: printf("six "); break; case 7: printf("seven "); break; case 8: printf("eight "); break; case 9: printf("nine "); break; } switch(e) { case 0: printf("zero "); break; case 1: printf("one "); break; case 2: printf("two "); break; case 3: printf("three "); break; case 4: printf("four "); break; case 5: printf("five "); break; case 6: printf("six "); break; case 7: printf("seven "); break; case 8: printf("eight "); break; case 9: printf("nine "); break; } switch(f) { case 0: printf("zero\n"); break; case 1: printf("one\n"); break; case 2: printf("two\n"); break; case 3: printf("three\n"); break; case 4: printf("four\n"); break; case 5: printf("five\n"); break; case 6: printf("six\n"); break; case 7: printf("seven\n"); break; case 8: printf("eight\n"); break; case 9: printf("nine\n"); break; } } }
the_stack_data/181394423.c
/* PR optimization/12260. */ extern int f(void); extern int g(int); static char buf[512]; void h(int l) { while (l) { char *op = buf; if (f() == 0) break; if (g(op - buf + 1)) break; } }
the_stack_data/178265282.c
#if __MSX #pragma bank 4 // This function isn't used, and is just used to push the rom size // to above 64k so it works in Takeda/MSX void func_bank4() { } #endif
the_stack_data/1174209.c
#include <stdio.h> #include <stdlib.h> int main() { struct { char nome[80]; int idade; } reg; strcpy(reg.nome,"Maria"); reg.idade = 24; printf("%s", reg.nome); printf(" tem "); printf("%d", reg.idade); printf(" anos"); return 0; }
the_stack_data/45450579.c
#include<stdio.h> int N(int l,int r,int a[],int n){ int t,i; for(i=l,t=0;i<r+1;i++){ t=t+a[i]; } t=t%n; return t; } int M(int l,int r,int a[],int n){ int t,i; for(i=l,t=1;i<r+1;i++){ t=(t*a[i])%n; } t=t%n; return t; } int max(int a,int b){ if(a>b) return a; else return b; } int min(int a,int b){ if(a<b) return a; else return b; } int H(int l,int r,int a[]){ int i,t; for(i=l+1,t=a[l];i<r+1;i++){ t=t^a[i]; } return t; } int main() { int n,k,l,r,a[110],x,y,g,h,i; scanf("%d%d",&n,&k); int z[k]; for(i=0;i<n;i++){ scanf("%d",&a[i]); } for(i=0;i<k;i++){ scanf("%d%d",&l,&r); x=N(l,r,a,n); y=M(l,r,a,n); g=min(x,y); h=max(x,y); z[i]=H(g,h,a); } for(i=0;i<k;i++){ printf("%d\n",z[i]); } return 0; }
the_stack_data/86076227.c
/* Here is a column 1 comment with tab tab and tab In the columns: ^ ^ ^ those */ main () { int i = 33; /* Here there everywhere here.. and that's it tab ^--------^------------^-----------^------------- */ foo (i); }
the_stack_data/89199605.c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <math.h> struct spe_header{ int reclA; /* 24 */ char title[8]; int dim; int a1, a2, a3, reclB; /* 1 1 1 24 */ }; static int write_spectrum(float *spec, int nchs, char *name) { FILE *fp; int record_length; struct spe_header header; header.reclA = header.reclB = 24; header.title[0] = header.title[1] = 0; header.a1 = header.a2 = header.a3 = 1; fp = fopen(name,"w"); if (fp == NULL){ fprintf(stderr,"Error! Unable to open spectrum file %s \n",name); return 1; } header.dim = nchs; memcpy(header.title, name, 8); record_length = sizeof(float)*header.dim; fwrite(&header, sizeof(header), 1, fp); fwrite(&record_length, sizeof(record_length), 1, fp); fwrite(spec, sizeof(float), nchs, fp); fwrite(&record_length, sizeof(record_length), 1,fp); fclose(fp); return 0; } int main(int argc, char **argv) { int i, nchs = 0, column = 0, reverse = 0; char line[120]; float spec[16384] = {0}, spec2[16384], f[5], factor = -1; // NOTE default factor is -1, for p-type detectors in mjd_fieldgen FILE *fp; if (argc < 4) { printf("Usage: %s <csv_file_name> <column_number> <output_file_name> [<optional_factor>] [-r]\n" " Use .spe or .dat as the output file name extension\n" " Column number starts at 1\n" " Default factor value is -1, for p-type detectors in mjd_fieldgen\n" " -r: Reverse ordering of spectrum for use with mjd_fieldgen\n", argv[0]); return 1; } if (argc > 4) factor = atof(argv[4]); if (factor == 0) factor = -1; if ((argc > 4 && strstr(argv[4], "-r")) || (argc > 5 && strstr(argv[5], "-r"))) reverse = 1; if ((fp = fopen(argv[1], "r")) == NULL) { printf("Error: Cannot open input file %s\n", argv[1]); return 1; } // skip first line of file (one-line header) // fgets(line, 120, fp); column = atoi(argv[2]); if (column < 1 || column> 5) { printf("Error: Invalid column number %d\n", column); return 1; } /* read data */ printf("\nReading file %s, column %d, factor %f, reverse = %d\n", argv[1], column, factor, reverse); while (nchs < 16384 && fgets(line, 120, fp)) { if (sscanf(line, "%f,%f,%f,%f,%f", f, f+1, f+2, f+3, f+4) >= column) { spec[nchs++] = f[column - 1] * factor; } } fclose(fp); printf("%i channels read\n", nchs); if (nchs < 4) { printf("Cannot read input file %s\n", argv[1]); return 1; } /* ------------ if profile slope has wrong direction, then reverse ordering of spectrum for use with mjd_fieldgen ---------- */ if ( (reverse || fabs(spec[0]) < fabs(spec[nchs-1])) && !(reverse && fabs(spec[0]) < fabs(spec[nchs-1]))) { memcpy(spec2, spec, sizeof(spec)); for (i=0; i<nchs; i++) spec[i] = spec2[nchs - i - 1]; } if (nchs < 200) nchs = 200; /* write .spe or .dat file */ if (strstr(argv[3], ".spe")) { if (write_spectrum(spec, nchs, argv[3])) return 1; } else if (strstr(argv[3], ".dat")) { if (!(fp = fopen(argv[3], "w"))) { printf("Error: Cannot open ioutput file %s!\n", argv[3]); return 1; } fwrite(spec, sizeof(float), nchs, fp); fclose(fp); } else { printf("Error: Invalid file name extension in %s!\n", argv[3]); return 1; } printf("\n Success. Wrote %d chs to %s\n\n", nchs, argv[3]); return 0; }
the_stack_data/115094.c
#include <stdio.h> #include <stdlib.h> int main() { double a, b; scanf("%d", &a); scanf("%d", &b); printf("%.5d\nMEDIA = ", (a + b) / 2); return 0; }
the_stack_data/64201188.c
#include <stdio.h> #include <math.h> #define jet_countof(x) (sizeof(x) / sizeof(x[0])) void printarrf(const double* const x, int n) { n--; printf("["); for (int i = 0; i < n; i++) printf("%g, ", x[i]); printf("%g]\n", x[n]); } void printarrd(int* x, int n) { n--; printf("["); for (int i = 0; i < n; i++) printf("%d, ", x[i]); printf("%d]\n", x[n]); } // int funca()[3] { return (int[]) { 1, 2, 3 }; } // struct SA {int count;double x[6];}; int main() { double m = 3.2; const double x[] = { 4, 5, 6, 7, 4 + sin(m), cos(1.5) }; // struct SA sx = { 4, {5, 6, 7, 4 + sin(m), cos(1.5)} }; double xnew[jet_countof(x)]; for (int i = 0; i < jet_countof(x); i++) xnew[i] = x[i] / 2.0; // double* xp = x; printarrf(x, jet_countof(x)); printarrf(xnew, jet_countof(x)); printarrd((int[]) { 3, 4, 6 }, 3); } // var x as Number[] = [ 3, 4, 5, sin(x) ] // ----------------------------------------------- // Number _1[] = { 3, 4, 5, sin(x) }; // Array_initWith_cArray(Number)(x, _1, jet_countof(_1)); // x = [ 1, 2, cos(x) ] // ----------------------------------------------- // Number _2[] = { 1, 2, cos(x) }; // Array_initWith_cArray(Number)(_x, jet_countof(_x));
the_stack_data/800048.c
/*numPass=4, numTotal=5 Verdict:ACCEPTED, Visibility:1, Input:"2", ExpOutput:"2 -3 2 ", Output:"2 -3 2 " Verdict:WRONG_ANSWER, Visibility:1, Input:"20", ExpOutput:"20 15 10 5 0 5 10 15 20 ", Output:"20 15 10 5 0 -5 0 5 10 15 20 " Verdict:ACCEPTED, Visibility:1, Input:"4", ExpOutput:"4 -1 4 ", Output:"4 -1 4 " Verdict:ACCEPTED, Visibility:0, Input:"16", ExpOutput:"16 11 6 1 -4 1 6 11 16 ", Output:"16 11 6 1 -4 1 6 11 16 " Verdict:ACCEPTED, Visibility:0, Input:"8", ExpOutput:"8 3 -2 3 8 ", Output:"8 3 -2 3 8 " */ #include <stdio.h> int main(){ int n,a; scanf("%d",&n); a=n; sub(n,a); return 0; } int sub(int n,int a) { if(n>=0) { printf("%d ",n); sub(n-5,a); } if(n<=a) printf("%d ",n); } /* int sub2(int n) { if(n) { printf("%d ",n); sub(n+5); } }*/
the_stack_data/1082676.c
/* ************************************************ username : smmehrab fullname : s.m.mehrabul islam email : [email protected] institute : university of dhaka, bangladesh session : 2017-2018 ************************************************ */ #include <stdio.h> #include <math.h> int isprime(int i, int rt, int n) { if(n < 2) return 0; if(i > rt) return 1; if(n%i==0) return 0; return isprime(i+1, rt, n); } int main() { int n; while(scanf("%d", &n)==1) { if(isprime(2, (int)sqrt(n), n)==1) printf("prime\n"); else printf("not prime\n"); } return 0; }
the_stack_data/59512002.c
#include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <string.h> int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size); #define MAX_INSTR_SIZE 64 #define MAX_LINE_SIZE 128 int main(int argc, char** argv) { FILE * fp; uint8_t Data[MAX_INSTR_SIZE]; char line[MAX_LINE_SIZE]; size_t Size; char arch[MAX_LINE_SIZE]; char mode[MAX_LINE_SIZE]; unsigned int value; int i; if (argc < 2) { return 1; } for (i = 1; i < argc; i++) { //opens the file, get its size, and reads it into a buffer fp = fopen(argv[i], "rb"); if (fp == NULL) { return 2; } printf("Trying %s\n", argv[i]); if (fgets(line, MAX_LINE_SIZE, fp) == NULL) { break; } if (line[0] == '#') { if (sscanf(line, "# %[^,], %[^,]", arch, mode) != 2) { printf("Wrong mode %s\n", line); return 1; } if (strcmp(arch, "CS_ARCH_X86") == 0 && strcmp(mode, "CS_MODE_32") == 0) { Data[0] = 0; } else if (strcmp(arch, "CS_ARCH_X86") == 0 && strcmp(mode, "CS_MODE_64") == 0) { Data[0] = 1; } else if (strcmp(arch, "CS_ARCH_ARM") == 0 && strcmp(mode, "CS_MODE_ARM") == 0) { Data[0] = 2; } else if (strcmp(arch, "CS_ARCH_ARM") == 0 && strcmp(mode, "CS_MODE_THUMB") == 0) { Data[0] = 3; } else if (strcmp(arch, "CS_ARCH_ARM") == 0 && strcmp(mode, "CS_MODE_ARM+CS_MODE_V8") == 0) { Data[0] = 4; } else if (strcmp(arch, "CS_ARCH_ARM") == 0 && strcmp(mode, "CS_MODE_THUMB+CS_MODE_V8") == 0) { Data[0] = 5; } else if (strcmp(arch, "CS_ARCH_ARM") == 0 && strcmp(mode, "CS_MODE_THUMB+CS_MODE_MCLASS") == 0) { Data[0] = 6; } else if (strcmp(arch, "CS_ARCH_ARM64") == 0 && strcmp(mode, "0") == 0) { Data[0] = 7; } else if (strcmp(arch, "CS_ARCH_MIPS") == 0 && strcmp(mode, "CS_MODE_MIPS32+CS_MODE_BIG_ENDIAN") == 0) { Data[0] = 8; } else if (strcmp(arch, "CS_ARCH_MIPS") == 0 && strcmp(mode, "CS_MODE_MIPS32+CS_MODE_MICRO") == 0) { Data[0] = 9; } else if (strcmp(arch, "CS_ARCH_MIPS") == 0 && strcmp(mode, "CS_MODE_MIPS64") == 0) { Data[0] = 10; } else if (strcmp(arch, "CS_ARCH_MIPS") == 0 && strcmp(mode, "CS_MODE_MIPS32") == 0) { Data[0] = 11; } else if (strcmp(arch, "CS_ARCH_MIPS") == 0 && strcmp(mode, "CS_MODE_MIPS64+CS_MODE_BIG_ENDIAN") == 0) { Data[0] = 12; } else if (strcmp(arch, "CS_ARCH_MIPS") == 0 && strcmp(mode, "CS_MODE_MIPS32+CS_MODE_MICRO+CS_MODE_BIG_ENDIAN") == 0) { Data[0] = 13; } else if (strcmp(arch, "CS_ARCH_MIPS") == 0 && strcmp(mode, "CS_MODE_MIPS32+CS_MODE_BIG_ENDIAN+CS_MODE_MICRO") == 0) { Data[0] = 13; } else if (strcmp(arch, "CS_ARCH_PPC") == 0 && strcmp(mode, "CS_MODE_BIG_ENDIAN") == 0) { Data[0] = 14; } else if (strcmp(arch, "CS_ARCH_SPARC") == 0 && strcmp(mode, "CS_MODE_BIG_ENDIAN") == 0) { Data[0] = 15; } else if (strcmp(arch, "CS_ARCH_SPARC") == 0 && strcmp(mode, "CS_MODE_BIG_ENDIAN + CS_MODE_V9") == 0) { Data[0] = 16; } else if (strcmp(arch, "CS_ARCH_SYSZ") == 0 && strcmp(mode, "0") == 0) { Data[0] = 17; } else if (strcmp(arch, "CS_ARCH_XCORE") == 0 && strcmp(mode, "0") == 0) { Data[0] = 18; } else if (strcmp(arch, "CS_ARCH_MIPS") == 0 && strcmp(mode, "CS_MODE_MIPS32R6+CS_MODE_BIG_ENDIAN") == 0) { Data[0] = 19; } else if (strcmp(arch, "CS_ARCH_MIPS") == 0 && strcmp(mode, "CS_MODE_MIPS32R6+CS_MODE_MICRO+CS_MODE_BIG_ENDIAN") == 0) { Data[0] = 20; } else if (strcmp(arch, "CS_ARCH_MIPS") == 0 && strcmp(mode, "CS_MODE_MIPS32R6") == 0) { Data[0] = 21; } else if (strcmp(arch, "CS_ARCH_MIPS") == 0 && strcmp(mode, "CS_MODE_MIPS32R6+CS_MODE_MICRO") == 0) { Data[0] = 22; } else if (strcmp(arch, "CS_ARCH_M68K") == 0 && strcmp(mode, "0") == 0) { Data[0] = 23; } else if (strcmp(arch, "CS_ARCH_M680X") == 0 && strcmp(mode, "CS_MODE_M680X_6809") == 0) { Data[0] = 24; } else if (strcmp(arch, "CS_ARCH_EVM") == 0 && strcmp(mode, "0") == 0) { Data[0] = 25; } else if (strcmp(arch, "CS_ARCH_BPF") == 0 && strstr(mode, "CS_MODE_BPF_CLASSIC") != NULL) { Data[0] = 29; } else if (strcmp(arch, "CS_ARCH_BPF") == 0 && strstr(mode, "CS_MODE_BPF_EXTENDED") != NULL) { Data[0] = 30; } else if (strcmp(arch, "CS_ARCH_RISCV") == 0 && strcmp(mode, "CS_MODE_RISCV32") == 0) { Data[0] = 44; } else if (strcmp(arch, "CS_ARCH_RISCV") == 0 && strcmp(mode, "CS_MODE_RISCV64") == 0) { Data[0] = 45; } else { printf("Unknown mode\n"); //fail instead of continue return 1; } } else { printf("No mode\n"); //fail instead of continue return 1; } while(1) { if (fgets(line, MAX_LINE_SIZE, fp) == NULL) { break; } Size = 1; // we start line at offset 0 and Data buffer at offset 1 // since Data[0] is option : arch + mode while (sscanf(line+(Size-1)*5, "0x%02x", &value) == 1) { Data[Size] = value; Size++; if (line[(Size-1)*5-1] != ',') { //end of pattern break; } else if (MAX_LINE_SIZE < (Size-1)*5) { printf("Line overflow\n"); return 1; } } //lauch fuzzer LLVMFuzzerTestOneInput(Data, Size); } fclose(fp); } return 0; }
the_stack_data/198579362.c
// Simple C livecode example #include <unistd.h> #include <math.h> // CAREFUL: make sure these match the input or bad things will happen const size_t BUFSIZE = 1024; const size_t CHANNELS = 2; // processing function: absolute value distortion void f(float frame[CHANNELS]) { for (size_t i = 0; i < CHANNELS; i++) frame[i] = fabs(frame[i])*2-1; } int main() { float buffer[BUFSIZE][CHANNELS]; for(;;) { read(STDIN_FILENO, buffer, sizeof buffer); for (size_t i = 0; i < BUFSIZE; i++) f(buffer[i]); write(STDOUT_FILENO, buffer, sizeof buffer); } }
the_stack_data/23576669.c
#include<stdio.h> void primenum(int n) { int count=1, flag, i=2, j; while(count <= n) { flag = 0; for(j=2; j <= i/2; j++) { if(i%j==0) { flag=1; break; } } if(flag==0) { printf("%d\t",i); count++; } i++; } } void main() { int n; printf("How many prime numbers? \n"); scanf("%d", &n); primenum(n); }
the_stack_data/6388476.c
/* * */ /* * File: server.c * Author: Kenneth Bonilla * * Created on April 22, 2017, 3:29 PM * * Multi threaded TCP server, sends plaintext files in same directory. * Quit program by typing 'q' enter, WARNING: do not exit with active connections * 'c' enter to see how many clients are on the server * Port must be entered as argument ./server 8888 * default port is 8899 * Capable of handling multiple active connections. * Capable of dynamic file size * file name limited to 256 char */ #include <stdio.h> #include <stdlib.h> #include <sys/socket.h> #include <arpa/inet.h> #include <sys/types.h> #include <string.h> #include <unistd.h> #include <pthread.h> #define CONS 5 ////////////////////////////// typedef struct { int flag; }arg_run; int cl_count = 0; int sockid; ////////////////////////////// //reads the message to the client void* file_runner(void* arg){ int client_sock = *(int*)arg; int fl_nm_sz; int size; int i; char file_name[256]; char *cl_message; //Receive file request while( (fl_nm_sz = recv(client_sock, file_name, 256, 0)) > 0) { printf("Search for %s\n", file_name); FILE* file =fopen(file_name, "r"); if(file == NULL){ puts("NOT FOUND"); size = -1; //flag to terminate client file not found write(client_sock, &size, sizeof(size)); //tell client file not found break; //if file not found, escape } fseek(file, 0, SEEK_END); size = ftell(file); rewind(file); cl_message = (char*) malloc(size * sizeof(char)); //READ FILE for(i=0;i<size;i++){ fread(&cl_message[i], sizeof(char), 1, file); } if(cl_message == NULL){ puts("Malloc error."); fclose(file); break; //if unable to cast malloc, close file and end loop } //Sends client size of file so client can malloc appropriate space write(client_sock, &size, sizeof(size)); //Send client file write(client_sock, cl_message, size); puts("File sent"); free(cl_message); } close(client_sock); cl_count--; pthread_exit(0); } //Handles stdin functions for server void* exit_runner(void *arg){ arg_run *args = (arg_run*) arg; char buf[32] = {0}; puts("Type 'q' enter to exit program."); puts("Type 'c' enter to show number of clients."); while(buf[0] != 'q'){ fgets(buf, sizeof(buf),stdin); if(buf[0] == 'c'){ printf("Clients connected: %d\n", cl_count); } } close(sockid); exit(EXIT_SUCCESS); pthread_exit(0); } /* * */ int main(int argc, char** argv) { int port_id; if(argc < 2) { printf("Using default port\n"); port_id = 8899; }else{ port_id = atoi(argv[1]);} //get port number from arguments sockid=socket(AF_INET, SOCK_STREAM, 0); //create socket and return id if(sockid < 0) { puts("Failed to open socket.\nExiting\n"); return 1;} //Fail if socket did not open int client_sock, fl_nm_sz, size, i; struct sockaddr_in server_addr, client_addr; socklen_t client_len; client_len = sizeof(client_addr); memset(&server_addr, 0, sizeof(server_addr)); //zero the struct //set server_addr struct server_addr.sin_family = AF_INET; //always AF_INET server_addr.sin_addr.s_addr = inet_addr("127.0.0.1"); //localhost //server_addr.sin_addr.s_addr = htons(INADDR_ANY); //all/any interfaces server_addr.sin_port = htons(port_id); //converts host to network short //puts("struct built"); //bind returns 0 if success, -1 if fail if((bind(sockid,(struct sockaddr *)&server_addr , sizeof(server_addr))) < 0) { puts("Failed to bind.\nExiting\n"); return 1; } //puts("socket bind"); listen(sockid, CONS); printf("Listening on port: %d\t...\twaiting for connections...\n", port_id); pthread_t tids; pthread_t liner; arg_run argg; argg.flag=0; pthread_create(&liner, NULL, exit_runner, &argg); pthread_detach(liner); while(1){ client_sock = accept(sockid, (struct sockaddr *)&client_addr, &client_len); if(client_sock<0) { puts("Accept Failed.\nExiting\n"); //return 1; continue; } cl_count++; printf("Client connected: %d\n", cl_count); pthread_attr_t attr; pthread_attr_init(&attr); //puts("starting thread"); pthread_create(&tids, &attr, file_runner, &client_sock); //puts("detaching thread"); pthread_detach(tids); } close(client_sock); close(sockid); return (EXIT_SUCCESS); }
the_stack_data/52821.c
// autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include <arpa/inet.h> #include <dirent.h> #include <endian.h> #include <errno.h> #include <fcntl.h> #include <net/if.h> #include <netinet/in.h> #include <signal.h> #include <stdarg.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/prctl.h> #include <sys/socket.h> #include <sys/stat.h> #include <sys/syscall.h> #include <sys/types.h> #include <sys/wait.h> #include <time.h> #include <unistd.h> #include <linux/genetlink.h> #include <linux/if_addr.h> #include <linux/if_link.h> #include <linux/in6.h> #include <linux/neighbour.h> #include <linux/net.h> #include <linux/netlink.h> #include <linux/rtnetlink.h> #include <linux/veth.h> static void sleep_ms(uint64_t ms) { usleep(ms * 1000); } static uint64_t current_time_ms(void) { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts)) exit(1); return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000; } static bool write_file(const char* file, const char* what, ...) { char buf[1024]; va_list args; va_start(args, what); vsnprintf(buf, sizeof(buf), what, args); va_end(args); buf[sizeof(buf) - 1] = 0; int len = strlen(buf); int fd = open(file, O_WRONLY | O_CLOEXEC); if (fd == -1) return false; if (write(fd, buf, len) != len) { int err = errno; close(fd); errno = err; return false; } close(fd); return true; } struct nlmsg { char* pos; int nesting; struct nlattr* nested[8]; char buf[1024]; }; static struct nlmsg nlmsg; static void netlink_init(struct nlmsg* nlmsg, int typ, int flags, const void* data, int size) { memset(nlmsg, 0, sizeof(*nlmsg)); struct nlmsghdr* hdr = (struct nlmsghdr*)nlmsg->buf; hdr->nlmsg_type = typ; hdr->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | flags; memcpy(hdr + 1, data, size); nlmsg->pos = (char*)(hdr + 1) + NLMSG_ALIGN(size); } static void netlink_attr(struct nlmsg* nlmsg, int typ, const void* data, int size) { struct nlattr* attr = (struct nlattr*)nlmsg->pos; attr->nla_len = sizeof(*attr) + size; attr->nla_type = typ; memcpy(attr + 1, data, size); nlmsg->pos += NLMSG_ALIGN(attr->nla_len); } static int netlink_send_ext(struct nlmsg* nlmsg, int sock, uint16_t reply_type, int* reply_len) { if (nlmsg->pos > nlmsg->buf + sizeof(nlmsg->buf) || nlmsg->nesting) exit(1); struct nlmsghdr* hdr = (struct nlmsghdr*)nlmsg->buf; hdr->nlmsg_len = nlmsg->pos - nlmsg->buf; struct sockaddr_nl addr; memset(&addr, 0, sizeof(addr)); addr.nl_family = AF_NETLINK; unsigned n = sendto(sock, nlmsg->buf, hdr->nlmsg_len, 0, (struct sockaddr*)&addr, sizeof(addr)); if (n != hdr->nlmsg_len) exit(1); n = recv(sock, nlmsg->buf, sizeof(nlmsg->buf), 0); if (hdr->nlmsg_type == NLMSG_DONE) { *reply_len = 0; return 0; } if (n < sizeof(struct nlmsghdr)) exit(1); if (reply_len && hdr->nlmsg_type == reply_type) { *reply_len = n; return 0; } if (n < sizeof(struct nlmsghdr) + sizeof(struct nlmsgerr)) exit(1); if (hdr->nlmsg_type != NLMSG_ERROR) exit(1); return -((struct nlmsgerr*)(hdr + 1))->error; } static int netlink_send(struct nlmsg* nlmsg, int sock) { return netlink_send_ext(nlmsg, sock, 0, NULL); } static int netlink_next_msg(struct nlmsg* nlmsg, unsigned int offset, unsigned int total_len) { struct nlmsghdr* hdr = (struct nlmsghdr*)(nlmsg->buf + offset); if (offset == total_len || offset + hdr->nlmsg_len > total_len) return -1; return hdr->nlmsg_len; } static void netlink_device_change(struct nlmsg* nlmsg, int sock, const char* name, bool up, const char* master, const void* mac, int macsize, const char* new_name) { struct ifinfomsg hdr; memset(&hdr, 0, sizeof(hdr)); if (up) hdr.ifi_flags = hdr.ifi_change = IFF_UP; hdr.ifi_index = if_nametoindex(name); netlink_init(nlmsg, RTM_NEWLINK, 0, &hdr, sizeof(hdr)); if (new_name) netlink_attr(nlmsg, IFLA_IFNAME, new_name, strlen(new_name)); if (master) { int ifindex = if_nametoindex(master); netlink_attr(nlmsg, IFLA_MASTER, &ifindex, sizeof(ifindex)); } if (macsize) netlink_attr(nlmsg, IFLA_ADDRESS, mac, macsize); int err = netlink_send(nlmsg, sock); (void)err; } const int kInitNetNsFd = 239; #define DEVLINK_FAMILY_NAME "devlink" #define DEVLINK_CMD_PORT_GET 5 #define DEVLINK_CMD_RELOAD 37 #define DEVLINK_ATTR_BUS_NAME 1 #define DEVLINK_ATTR_DEV_NAME 2 #define DEVLINK_ATTR_NETDEV_NAME 7 #define DEVLINK_ATTR_NETNS_FD 138 static int netlink_devlink_id_get(struct nlmsg* nlmsg, int sock) { struct genlmsghdr genlhdr; struct nlattr* attr; int err, n; uint16_t id = 0; memset(&genlhdr, 0, sizeof(genlhdr)); genlhdr.cmd = CTRL_CMD_GETFAMILY; netlink_init(nlmsg, GENL_ID_CTRL, 0, &genlhdr, sizeof(genlhdr)); netlink_attr(nlmsg, CTRL_ATTR_FAMILY_NAME, DEVLINK_FAMILY_NAME, strlen(DEVLINK_FAMILY_NAME) + 1); err = netlink_send_ext(nlmsg, sock, GENL_ID_CTRL, &n); if (err) { return -1; } attr = (struct nlattr*)(nlmsg->buf + NLMSG_HDRLEN + NLMSG_ALIGN(sizeof(genlhdr))); for (; (char*)attr < nlmsg->buf + n; attr = (struct nlattr*)((char*)attr + NLMSG_ALIGN(attr->nla_len))) { if (attr->nla_type == CTRL_ATTR_FAMILY_ID) { id = *(uint16_t*)(attr + 1); break; } } if (!id) { return -1; } recv(sock, nlmsg->buf, sizeof(nlmsg->buf), 0); /* recv ack */ return id; } static void netlink_devlink_netns_move(const char* bus_name, const char* dev_name, int netns_fd) { struct genlmsghdr genlhdr; int sock; int id, err; sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); if (sock == -1) exit(1); id = netlink_devlink_id_get(&nlmsg, sock); if (id == -1) goto error; memset(&genlhdr, 0, sizeof(genlhdr)); genlhdr.cmd = DEVLINK_CMD_RELOAD; netlink_init(&nlmsg, id, 0, &genlhdr, sizeof(genlhdr)); netlink_attr(&nlmsg, DEVLINK_ATTR_BUS_NAME, bus_name, strlen(bus_name) + 1); netlink_attr(&nlmsg, DEVLINK_ATTR_DEV_NAME, dev_name, strlen(dev_name) + 1); netlink_attr(&nlmsg, DEVLINK_ATTR_NETNS_FD, &netns_fd, sizeof(netns_fd)); err = netlink_send(&nlmsg, sock); if (err) { } error: close(sock); } static struct nlmsg nlmsg2; static void initialize_devlink_ports(const char* bus_name, const char* dev_name, const char* netdev_prefix) { struct genlmsghdr genlhdr; int len, total_len, id, err, offset; uint16_t netdev_index; int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); if (sock == -1) exit(1); int rtsock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); if (rtsock == -1) exit(1); id = netlink_devlink_id_get(&nlmsg, sock); if (id == -1) goto error; memset(&genlhdr, 0, sizeof(genlhdr)); genlhdr.cmd = DEVLINK_CMD_PORT_GET; netlink_init(&nlmsg, id, NLM_F_DUMP, &genlhdr, sizeof(genlhdr)); netlink_attr(&nlmsg, DEVLINK_ATTR_BUS_NAME, bus_name, strlen(bus_name) + 1); netlink_attr(&nlmsg, DEVLINK_ATTR_DEV_NAME, dev_name, strlen(dev_name) + 1); err = netlink_send_ext(&nlmsg, sock, id, &total_len); if (err) { goto error; } offset = 0; netdev_index = 0; while ((len = netlink_next_msg(&nlmsg, offset, total_len)) != -1) { struct nlattr* attr = (struct nlattr*)(nlmsg.buf + offset + NLMSG_HDRLEN + NLMSG_ALIGN(sizeof(genlhdr))); for (; (char*)attr < nlmsg.buf + offset + len; attr = (struct nlattr*)((char*)attr + NLMSG_ALIGN(attr->nla_len))) { if (attr->nla_type == DEVLINK_ATTR_NETDEV_NAME) { char* port_name; char netdev_name[IFNAMSIZ]; port_name = (char*)(attr + 1); snprintf(netdev_name, sizeof(netdev_name), "%s%d", netdev_prefix, netdev_index); netlink_device_change(&nlmsg2, rtsock, port_name, true, 0, 0, 0, netdev_name); break; } } offset += len; netdev_index++; } error: close(rtsock); close(sock); } static void initialize_devlink_pci(void) { int netns = open("/proc/self/ns/net", O_RDONLY); if (netns == -1) exit(1); int ret = setns(kInitNetNsFd, 0); if (ret == -1) exit(1); netlink_devlink_netns_move("pci", "0000:00:10.0", netns); ret = setns(netns, 0); if (ret == -1) exit(1); close(netns); initialize_devlink_ports("pci", "0000:00:10.0", "netpci"); } static int inject_fault(int nth) { int fd; fd = open("/proc/thread-self/fail-nth", O_RDWR); if (fd == -1) exit(1); char buf[16]; sprintf(buf, "%d", nth + 1); if (write(fd, buf, strlen(buf)) != (ssize_t)strlen(buf)) exit(1); return fd; } static void kill_and_wait(int pid, int* status) { kill(-pid, SIGKILL); kill(pid, SIGKILL); int i; for (i = 0; i < 100; i++) { if (waitpid(-1, status, WNOHANG | __WALL) == pid) return; usleep(1000); } DIR* dir = opendir("/sys/fs/fuse/connections"); if (dir) { for (;;) { struct dirent* ent = readdir(dir); if (!ent) break; if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) continue; char abort[300]; snprintf(abort, sizeof(abort), "/sys/fs/fuse/connections/%s/abort", ent->d_name); int fd = open(abort, O_WRONLY); if (fd == -1) { continue; } if (write(fd, abort, 1) < 0) { } close(fd); } closedir(dir); } else { } while (waitpid(-1, status, __WALL) != pid) { } } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); write_file("/proc/self/oom_score_adj", "1000"); } static void setup_fault() { static struct { const char* file; const char* val; bool fatal; } files[] = { {"/sys/kernel/debug/failslab/ignore-gfp-wait", "N", true}, {"/sys/kernel/debug/fail_futex/ignore-private", "N", false}, {"/sys/kernel/debug/fail_page_alloc/ignore-gfp-highmem", "N", false}, {"/sys/kernel/debug/fail_page_alloc/ignore-gfp-wait", "N", false}, {"/sys/kernel/debug/fail_page_alloc/min-order", "0", false}, }; unsigned i; for (i = 0; i < sizeof(files) / sizeof(files[0]); i++) { if (!write_file(files[i].file, files[i].val)) { if (files[i].fatal) exit(1); } } } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { int iter; for (iter = 0;; iter++) { int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { setup_test(); execute_one(); exit(0); } int status = 0; uint64_t start = current_time_ms(); for (;;) { if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; sleep_ms(1); if (current_time_ms() - start < 5 * 1000) continue; kill_and_wait(pid, &status); break; } } } #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif uint64_t r[1] = {0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; syscall(__NR_memfd_create, 0ul, 0ul); syscall(__NR_sendmsg, -1, 0ul, 0ul); syscall(__NR_perf_event_open, 0ul, 0, -1ul, -1, 0ul); syscall(__NR_lsetxattr, 0ul, 0ul, 0ul, 0ul, 0ul); memcpy((void*)0x20000000, "/dev/ptmx\000", 10); res = syscall(__NR_openat, 0xffffffffffffff9cul, 0x20000000ul, 0ul, 0ul); if (res != -1) r[0] = res; *(uint32_t*)0x20000080 = 0x15; inject_fault(10); syscall(__NR_ioctl, r[0], 0x5423ul, 0x20000080ul); } int main(void) { syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 3ul, 0x32ul, -1, 0); setup_fault(); loop(); return 0; }
the_stack_data/87637606.c
// tag-#anon#ST[ARR16{U64}$U64$'__bits'|] // file /usr/include/x86_64-linux-gnu/bits/sched.h line 125 struct anonymous$1; // tag-#anon#ST[ARR16{U64}$U64$'__val'|] // file /usr/include/x86_64-linux-gnu/bits/sigset.h line 27 struct anonymous$2; // tag-#anon#UN[ARR4{S8}$S8$'__size'||S32'__align'|] // file /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h line 130 union anonymous$0; // tag-#anon#UN[SYM#tag-__pthread_mutex_s#'__data'||ARR40{S8}$S8$'__size'||S64'__align'|] // file /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h line 90 union anonymous; // tag-_IO_FILE // file /usr/include/stdio.h line 44 struct _IO_FILE; // tag-_IO_marker // file /usr/include/libio.h line 160 struct _IO_marker; // tag-__pthread_internal_list // file /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h line 75 struct __pthread_internal_list; // tag-__pthread_mutex_s // file /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h line 92 struct __pthread_mutex_s; // tag-option // file /usr/include/getopt.h line 104 struct option; // tag-params // file src/ptsematest/ptsematest.c line 56 struct params; // tag-pthread_attr_t // file /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h line 63 union pthread_attr_t; // tag-sched_attr // file src/include/rt-sched.h line 59 struct sched_attr; // tag-sched_param // file /usr/include/x86_64-linux-gnu/bits/sched.h line 72 struct sched_param; // tag-stat // file /usr/include/x86_64-linux-gnu/bits/stat.h line 46 struct stat; // tag-timespec // file /usr/include/time.h line 120 struct timespec; // tag-timeval // file /usr/include/x86_64-linux-gnu/bits/time.h line 30 struct timeval; // tag-timezone // file /usr/include/x86_64-linux-gnu/sys/time.h line 55 struct timezone; #ifndef NULL #define NULL ((void*)0) #endif // __errno_location // file /usr/include/x86_64-linux-gnu/bits/errno.h line 50 extern signed int * __errno_location(void); // __xstat // file /usr/include/x86_64-linux-gnu/sys/stat.h line 400 extern signed int __xstat(signed int, const char *, struct stat *); // atoi // file /usr/include/stdlib.h line 278 static inline signed int atoi(const char *__nptr); // calloc // file /usr/include/stdlib.h line 468 extern void * calloc(unsigned long int, unsigned long int); // check_privs // file src/include/rt-utils.h line 10 signed int check_privs(void); // close // file /usr/include/unistd.h line 353 extern signed int close(signed int); // debug // file src/lib/error.c line 49 void debug(char *fmt, ...); // display_help // file src/ptsematest/ptsematest.c line 163 static void display_help(void); // err_doit // file src/lib/error.c line 90 void err_doit(signed int err, const char *fmt, void **ap); // err_exit // file src/lib/error.c line 10 void err_exit(signed int err, char *fmt, ...); // err_msg // file src/lib/error.c line 20 void err_msg(char *fmt, ...); // err_msg_n // file src/lib/error.c line 30 void err_msg_n(signed int err, char *fmt, ...); // err_quit // file src/lib/error.c line 40 void err_quit(char *fmt, ...); // event_disable // file src/lib/rt-utils.c line 243 signed int event_disable(char *event); // event_disable_all // file src/lib/rt-utils.c line 230 signed int event_disable_all(void); // event_enable // file src/lib/rt-utils.c line 235 signed int event_enable(char *event); // event_enable_all // file src/lib/rt-utils.c line 225 signed int event_enable_all(void); // exit // file /usr/include/stdlib.h line 543 extern void exit(signed int); // fatal // file src/lib/error.c line 79 void fatal(char *fmt, ...); // fclose // file /usr/include/stdio.h line 237 extern signed int fclose(struct _IO_FILE *); // fopen // file /usr/include/stdio.h line 272 extern struct _IO_FILE * fopen(const char *, const char *); // fprintf // file /usr/include/stdio.h line 356 extern signed int fprintf(struct _IO_FILE *, const char *, ...); // fputs // file /usr/include/stdio.h line 689 extern signed int fputs(const char *, struct _IO_FILE *); // fread // file /usr/include/stdio.h line 709 extern unsigned long int fread(void *, unsigned long int, unsigned long int, struct _IO_FILE *); // fscanf // file /usr/include/stdio.h line 425 extern signed int fscanf(struct _IO_FILE *, const char *, ...); // get_cpu // file src/include/rt-get_cpu.h line 12 static inline signed int get_cpu(void); // get_debugfileprefix // file src/include/rt-utils.h line 11 char * get_debugfileprefix(void); // get_tracers // file src/lib/rt-utils.c line 121 signed int get_tracers(char ***list); // getopt_long // file /usr/include/getopt.h line 173 extern signed int getopt_long(signed int, char * const *, const char *, struct option *, signed int *); // gettid // file src/lib/rt-utils.c line 320 signed int gettid(void); // gettimeofday // file /usr/include/x86_64-linux-gnu/sys/time.h line 71 extern signed int gettimeofday(struct timeval *, struct timezone *); // info // file src/lib/error.c line 59 void info(char *fmt, ...); // malloc // file /usr/include/stdlib.h line 466 extern void * malloc(unsigned long int); // memcpy // file /usr/include/string.h line 46 extern void * memcpy(void *, const void *, unsigned long int); // memset // file /usr/include/string.h line 66 extern void * memset(void *, signed int, unsigned long int); // mlockall // file /usr/include/x86_64-linux-gnu/sys/mman.h line 111 extern signed int mlockall(signed int); // mount_debugfs // file src/lib/rt-utils.c line 86 signed int mount_debugfs(char *path); // nanosleep // file /usr/include/time.h line 334 extern signed int nanosleep(struct timespec *, struct timespec *); // open // file /usr/include/fcntl.h line 146 extern signed int open(const char *, signed int, ...); // perror // file /usr/include/stdio.h line 846 extern void perror(const char *); // policy_to_string // file src/lib/rt-utils.c line 282 const char * policy_to_string(signed int policy); // printf // file /usr/include/stdio.h line 362 extern signed int printf(const char *, ...); // process_options // file src/ptsematest/ptsematest.c line 198 static void process_options(signed int argc, char **argv); // pthread_create // file /usr/include/pthread.h line 235 extern signed int pthread_create(unsigned long int *, const union pthread_attr_t *, void * (*)(void *), void *); // pthread_kill // file /usr/include/x86_64-linux-gnu/bits/sigthread.h line 35 extern signed int pthread_kill(unsigned long int, signed int); // pthread_mutex_destroy // file /usr/include/pthread.h line 756 extern signed int pthread_mutex_destroy(union anonymous *); // pthread_mutex_init // file /usr/include/pthread.h line 751 extern signed int pthread_mutex_init(union anonymous *, const union anonymous$0 *); // pthread_mutex_lock // file /usr/include/pthread.h line 764 extern signed int pthread_mutex_lock(union anonymous *); // pthread_mutex_unlock // file /usr/include/pthread.h line 775 extern signed int pthread_mutex_unlock(union anonymous *); // pthread_sigmask // file /usr/include/x86_64-linux-gnu/bits/sigthread.h line 30 extern signed int pthread_sigmask(signed int, const struct anonymous$2 *, struct anonymous$2 *); // puts // file /usr/include/stdio.h line 695 extern signed int puts(const char *); // realloc // file /usr/include/stdlib.h line 480 extern void * realloc(void *, unsigned long int); // sched_getattr // file src/lib/rt-sched.c line 37 signed int sched_getattr(signed int pid, struct sched_attr *attr, unsigned int size, unsigned int flags); // sched_getparam // file /usr/include/sched.h line 55 extern signed int sched_getparam(signed int, struct sched_param *); // sched_getscheduler // file /usr/include/sched.h line 62 extern signed int sched_getscheduler(signed int); // sched_setaffinity // file /usr/include/sched.h line 118 extern signed int sched_setaffinity(signed int, unsigned long int, const struct anonymous$1 *); // sched_setattr // file src/lib/rt-sched.c line 30 signed int sched_setattr(signed int pid, struct sched_attr *attr, unsigned int flags); // sched_setscheduler // file /usr/include/sched.h line 58 extern signed int sched_setscheduler(signed int, signed int, struct sched_param *); // semathread // file src/ptsematest/ptsematest.c line 77 void * semathread(void *param); // setevent // file src/lib/rt-utils.c line 204 signed int setevent(char *event, char *val); // sigaddset // file /usr/include/signal.h line 221 extern signed int sigaddset(struct anonymous$2 *, signed int); // sigemptyset // file /usr/include/signal.h line 215 extern signed int sigemptyset(struct anonymous$2 *); // sighand // file src/ptsematest/ptsematest.c line 293 static void sighand(signed int sig); // signal // file /usr/include/signal.h line 102 extern void (*signal(signed int, void (*)(signed int)))(signed int); // snprintf // file /usr/include/stdio.h line 386 extern signed int snprintf(char *, unsigned long int, const char *, ...); // sprintf // file /usr/include/stdio.h line 364 extern signed int sprintf(char *, const char *, ...); // stat // file /usr/include/x86_64-linux-gnu/sys/stat.h line 452 static inline signed int stat(const char *__path, struct stat *__statbuf); // strcat // file /usr/include/string.h line 137 extern char * strcat(char *, const char *); // strcpy // file /usr/include/string.h line 129 extern char * strcpy(char *, const char *); // strerror // file /usr/include/string.h line 412 extern char * strerror(signed int); // string_to_policy // file src/lib/rt-utils.c line 302 unsigned int string_to_policy(const char *str); // strlen // file /usr/include/string.h line 398 extern unsigned long int strlen(const char *); // strncmp // file /usr/include/string.h line 147 extern signed int strncmp(const char *, const char *, unsigned long int); // strtok // file /usr/include/string.h line 347 extern char * strtok(char *, const char *); // strtol // file /usr/include/stdlib.h line 183 extern signed long int strtol(const char *, char ** restrict , signed int); // syscall // file /usr/include/unistd.h line 1058 extern signed long int syscall(signed long int, ...); // sysconf // file /usr/include/unistd.h line 619 extern signed long int sysconf(signed int); // system // file /usr/include/stdlib.h line 716 extern signed int system(const char *); // valid_tracer // file src/lib/rt-utils.c line 186 signed int valid_tracer(char *tracername); // vfprintf // file /usr/include/stdio.h line 371 extern signed int vfprintf(struct _IO_FILE *, const char *, void **); // warn // file src/include/error.h line 15 void warn(char *fmt, ...); // write // file /usr/include/unistd.h line 366 extern signed long int write(signed int, const void *, unsigned long int); struct anonymous$1 { // __bits unsigned long int __bits[16l]; }; struct anonymous$2 { // __val unsigned long int __val[16l]; }; union anonymous$0 { // __size char __size[4l]; // __align signed int __align; }; struct __pthread_internal_list { // __prev struct __pthread_internal_list *__prev; // __next struct __pthread_internal_list *__next; }; struct __pthread_mutex_s { // __lock signed int __lock; // __count unsigned int __count; // __owner signed int __owner; // __nusers unsigned int __nusers; // __kind signed int __kind; // __spins signed short int __spins; // __elision signed short int __elision; // __list struct __pthread_internal_list __list; }; union anonymous { // __data struct __pthread_mutex_s __data; // __size char __size[40l]; // __align signed long int __align; }; struct _IO_FILE { // _flags signed int _flags; // _IO_read_ptr char *_IO_read_ptr; // _IO_read_end char *_IO_read_end; // _IO_read_base char *_IO_read_base; // _IO_write_base char *_IO_write_base; // _IO_write_ptr char *_IO_write_ptr; // _IO_write_end char *_IO_write_end; // _IO_buf_base char *_IO_buf_base; // _IO_buf_end char *_IO_buf_end; // _IO_save_base char *_IO_save_base; // _IO_backup_base char *_IO_backup_base; // _IO_save_end char *_IO_save_end; // _markers struct _IO_marker *_markers; // _chain struct _IO_FILE *_chain; // _fileno signed int _fileno; // _flags2 signed int _flags2; // _old_offset signed long int _old_offset; // _cur_column unsigned short int _cur_column; // _vtable_offset signed char _vtable_offset; // _shortbuf char _shortbuf[1l]; // _lock void *_lock; // _offset signed long int _offset; // __pad1 void *__pad1; // __pad2 void *__pad2; // __pad3 void *__pad3; // __pad4 void *__pad4; // __pad5 unsigned long int __pad5; // _mode signed int _mode; // _unused2 char _unused2[(signed long int)(sizeof(signed int) * 5) /*20l*/ ]; }; struct _IO_marker { // _next struct _IO_marker *_next; // _sbuf struct _IO_FILE *_sbuf; // _pos signed int _pos; }; struct option { // name const char *name; // has_arg signed int has_arg; // flag signed int *flag; // val signed int val; }; struct timespec { // tv_sec signed long int tv_sec; // tv_nsec signed long int tv_nsec; }; struct timeval { // tv_sec signed long int tv_sec; // tv_usec signed long int tv_usec; }; struct params { // num signed int num; // cpu signed int cpu; // priority signed int priority; // affinity signed int affinity; // sender signed int sender; // samples signed int samples; // max_cycles signed int max_cycles; // tracelimit signed int tracelimit; // tid signed int tid; // shutdown signed int shutdown; // stopped signed int stopped; // delay struct timespec delay; // mindiff unsigned int mindiff; // maxdiff unsigned int maxdiff; // sumdiff double sumdiff; // unblocked struct timeval unblocked; // received struct timeval received; // diff struct timeval diff; // threadid unsigned long int threadid; // neighbor struct params *neighbor; // error char error[512l]; }; union pthread_attr_t { // __size char __size[56l]; // __align signed long int __align; }; struct sched_attr { // size unsigned int size; // sched_policy unsigned int sched_policy; // sched_flags unsigned long int sched_flags; // sched_nice signed int sched_nice; // sched_priority unsigned int sched_priority; // sched_runtime unsigned long int sched_runtime; // sched_deadline unsigned long int sched_deadline; // sched_period unsigned long int sched_period; }; struct sched_param { // __sched_priority signed int __sched_priority; }; struct stat { // st_dev unsigned long int st_dev; // st_ino unsigned long int st_ino; // st_nlink unsigned long int st_nlink; // st_mode unsigned int st_mode; // st_uid unsigned int st_uid; // st_gid unsigned int st_gid; // __pad0 signed int __pad0; // st_rdev unsigned long int st_rdev; // st_size signed long int st_size; // st_blksize signed long int st_blksize; // st_blocks signed long int st_blocks; // st_atim struct timespec st_atim; // st_mtim struct timespec st_mtim; // st_ctim struct timespec st_ctim; // __glibc_reserved signed long int __glibc_reserved[3l]; }; struct timezone { // tz_minuteswest signed int tz_minuteswest; // tz_dsttime signed int tz_dsttime; }; // affinity // file src/ptsematest/ptsematest.c line 188 static signed int affinity; // debugfileprefix // file src/lib/rt-utils.c line 25 static char debugfileprefix[256l]; // distance // file src/ptsematest/ptsematest.c line 194 static signed int distance = 500; // interval // file src/ptsematest/ptsematest.c line 193 static signed int interval = 1000; // max_cycles // file src/ptsematest/ptsematest.c line 192 static signed int max_cycles; // num_threads // file src/ptsematest/ptsematest.c line 191 static signed int num_threads = 1; // num_tracers // file src/lib/rt-utils.c line 114 static signed int num_tracers; // optarg // file /usr/include/getopt.h line 57 extern char *optarg; // optind // file /usr/include/getopt.h line 71 extern signed int optind; // priority // file src/ptsematest/ptsematest.c line 190 static signed int priority; // sameprio // file src/ptsematest/ptsematest.c line 196 static signed int sameprio; // setaffinity // file src/ptsematest/ptsematest.c line 187 static signed int setaffinity = 0; // shutdown // file src/ptsematest/ptsematest.c line 291 static volatile signed int shutdown; // smp // file src/ptsematest/ptsematest.c line 195 static signed int smp; // stderr // file /usr/include/stdio.h line 170 extern struct _IO_FILE *stderr; // syncmutex // file src/ptsematest/ptsematest.c line 54 static union anonymous *syncmutex; // testmutex // file src/ptsematest/ptsematest.c line 53 static union anonymous *testmutex; // tracelimit // file src/ptsematest/ptsematest.c line 189 static signed int tracelimit; // tracer_buffer // file src/lib/rt-utils.c line 113 static char *tracer_buffer; // tracer_list // file src/lib/rt-utils.c line 112 static char **tracer_list; // atoi // file /usr/include/stdlib.h line 278 static inline signed int atoi(const char *__nptr) { signed long int return_value_strtol$1; return_value_strtol$1=strtol(__nptr, (char **)(void *)0, 10); return (signed int)return_value_strtol$1; } // check_privs // file src/include/rt-utils.h line 10 signed int check_privs(void) { signed int policy; policy=sched_getscheduler(0); struct sched_param param; struct sched_param old_param; if(policy == 1 || policy == 2) return 0; else { signed int return_value_sched_getparam$1; return_value_sched_getparam$1=sched_getparam(0, &old_param); if(!(return_value_sched_getparam$1 == 0)) { fprintf(stderr, "unable to get scheduler parameters\n"); return 1; } else { param = old_param; param.__sched_priority = 1; signed int return_value_sched_setscheduler$2; return_value_sched_setscheduler$2=sched_setscheduler(0, 1, &param); if(!(return_value_sched_setscheduler$2 == 0)) { fprintf(stderr, "Unable to change scheduling policy!\n"); fprintf(stderr, "Probably missing capabilities, either run as root or increase RLIMIT_RTPRIO limits.\n"); return 1; } else { signed int return_value_sched_setscheduler$3; return_value_sched_setscheduler$3=sched_setscheduler(0, policy, &old_param); return return_value_sched_setscheduler$3; } } } } // debug // file src/lib/error.c line 49 void debug(char *fmt, ...) { void **ap = (void **)&fmt; fputs("DEBUG: ", stderr); err_doit(0, fmt, ap); ap = ((void **)NULL); } // display_help // file src/ptsematest/ptsematest.c line 163 static void display_help(void) { printf("ptsematest V %1.2f\n", 0.96); puts("Usage: ptsematest <options>"); puts("Function: test POSIX threads mutex latency"); puts("Options:\n-a [NUM] --affinity run thread #N on processor #N, if possible\n with NUM pin all threads to the processor NUM\n-b USEC --breaktrace=USEC send break trace command when latency > USEC\n-d DIST --distance=DIST distance of thread intervals in us default=500\n-i INTV --interval=INTV base interval of thread in us default=1000\n-l LOOPS --loops=LOOPS number of loops: default=0(endless)\n-p PRIO --prio=PRIO priority\n-S --smp SMP testing: options -a -t and same priority\n of all threads\n-t --threads one thread per available processor\n-t [NUM] --threads=NUM number of threads:\n without NUM, threads = max_cpus\n without -t default = 1\n"); exit(1); } // err_doit // file src/lib/error.c line 90 void err_doit(signed int err, const char *fmt, void **ap) { vfprintf(stderr, fmt, ap); char *return_value_strerror$1; if(!(err == 0)) { return_value_strerror$1=strerror(err); fprintf(stderr, ": %s\n", return_value_strerror$1); } goto __CPROVER_DUMP_L2; __CPROVER_DUMP_L2: ; } // err_exit // file src/lib/error.c line 10 void err_exit(signed int err, char *fmt, ...) { void **ap = (void **)&fmt; err_doit(err, fmt, ap); ap = ((void **)NULL); exit(err); } // err_msg // file src/lib/error.c line 20 void err_msg(char *fmt, ...) { void **ap = (void **)&fmt; err_doit(0, fmt, ap); ap = ((void **)NULL); goto __CPROVER_DUMP_L1; __CPROVER_DUMP_L1: ; } // err_msg_n // file src/lib/error.c line 30 void err_msg_n(signed int err, char *fmt, ...) { void **ap = (void **)&fmt; err_doit(err, fmt, ap); ap = ((void **)NULL); goto __CPROVER_DUMP_L1; __CPROVER_DUMP_L1: ; } // err_quit // file src/lib/error.c line 40 void err_quit(char *fmt, ...) { void **ap = (void **)&fmt; err_doit(0, fmt, ap); ap = ((void **)NULL); exit(1); } // event_disable // file src/lib/rt-utils.c line 243 signed int event_disable(char *event) { char path[256l]; sprintf(path, "events/%s/enable", event); signed int return_value_setevent$1; return_value_setevent$1=setevent(path, "0"); return return_value_setevent$1; } // event_disable_all // file src/lib/rt-utils.c line 230 signed int event_disable_all(void) { signed int return_value_setevent$1; return_value_setevent$1=setevent("events/enable", "0"); return return_value_setevent$1; } // event_enable // file src/lib/rt-utils.c line 235 signed int event_enable(char *event) { char path[256l]; sprintf(path, "events/%s/enable", event); signed int return_value_setevent$1; return_value_setevent$1=setevent(path, "1"); return return_value_setevent$1; } // event_enable_all // file src/lib/rt-utils.c line 225 signed int event_enable_all(void) { signed int return_value_setevent$1; return_value_setevent$1=setevent("events/enable", "1"); return return_value_setevent$1; } // fatal // file src/lib/error.c line 79 void fatal(char *fmt, ...) { void **ap = (void **)&fmt; fputs("FATAL: ", stderr); err_doit(0, fmt, ap); ap = ((void **)NULL); exit(1); } // get_cpu // file src/include/rt-get_cpu.h line 12 static inline signed int get_cpu(void) { signed int c; signed int s; signed long int return_value_syscall$1; return_value_syscall$1=syscall((signed long int)309, &c, (void *)0, (void *)0); s = (signed int)return_value_syscall$1; return s == -1 ? s : c; } // get_debugfileprefix // file src/include/rt-utils.h line 11 char * get_debugfileprefix(void) { char type[100l]; struct _IO_FILE *fp; signed int size; signed int found = 0; struct stat s; signed int return_value_stat$1; signed int return_value_stat$2; signed int return_value_fscanf$3; signed int tmp_statement_expression$4; signed int tmp_statement_expression$8; signed int tmp_statement_expression$6; unsigned long int return_value_strlen$10; if((signed int)debugfileprefix[0l] == 0) { return_value_stat$1=stat("/sys/kernel/debug/tracing", &s); if(return_value_stat$1 == 0) { if(!((61440u & s.st_mode) == 16384u)) goto __CPROVER_DUMP_L1; strcpy(debugfileprefix, "/sys/kernel/debug/tracing/"); } else { __CPROVER_DUMP_L1: ; return_value_stat$2=stat("/debug/tracing", &s); if(return_value_stat$2 == 0) { if(!((61440u & s.st_mode) == 16384u)) goto __CPROVER_DUMP_L2; strcpy(debugfileprefix, "/debug/tracing/"); } else { __CPROVER_DUMP_L2: ; fp=fopen("/proc/mounts", "r"); if(!(fp == ((struct _IO_FILE *)NULL))) { do { return_value_fscanf$3=fscanf(fp, "%*s %256s %99s %*s %*d %*d\n", (const void *)debugfileprefix, (const void *)type); if(!(return_value_fscanf$3 == 2)) break; unsigned long int get_debugfileprefix$$1$$3$$1$$__s1_len; unsigned long int get_debugfileprefix$$1$$3$$1$$__s2_len; signed int return_value___builtin_strcmp$5; return_value___builtin_strcmp$5=__builtin_strcmp(type, "debugfs"); tmp_statement_expression$4 = return_value___builtin_strcmp$5; if(tmp_statement_expression$4 == 0) { found = 1; break; } unsigned long int get_debugfileprefix$$1$$3$$3$$__s1_len; unsigned long int get_debugfileprefix$$1$$3$$3$$__s2_len; signed int return_value___builtin_strcmp$9; return_value___builtin_strcmp$9=__builtin_strcmp(debugfileprefix, "/sys/kernel/debug"); tmp_statement_expression$8 = return_value___builtin_strcmp$9; if(tmp_statement_expression$8 == 0) { unsigned long int __s1_len; unsigned long int __s2_len; signed int return_value___builtin_strcmp$7; return_value___builtin_strcmp$7=__builtin_strcmp(type, "systemd"); tmp_statement_expression$6 = return_value___builtin_strcmp$7; if(tmp_statement_expression$6 == 0) { found = 1; break; } } } while((_Bool)1); fclose(fp); if(found == 0) debugfileprefix[(signed long int)0] = (char)0; else { return_value_strlen$10=strlen(debugfileprefix); size = (signed int)(sizeof(char [256l]) /*256ul*/ - return_value_strlen$10); __builtin_strncat(debugfileprefix, "/tracing/", (unsigned long int)size); } } } } } out: ; return debugfileprefix; } // get_tracers // file src/lib/rt-utils.c line 121 signed int get_tracers(char ***list) { signed int ret; struct _IO_FILE *fp; char buffer[1024l]; char *prefix; prefix=get_debugfileprefix(); char *tmpbuf = (char *)(void *)0; char *ptr; signed int tmpsz = 0; unsigned long int return_value_fread$2; signed int tmp_post$5; if(!(tracer_list == ((char **)NULL))) { *list = tracer_list; return num_tracers; } else { sprintf(buffer, "%savailable_tracers", prefix); fp=fopen(buffer, "r"); if(fp == ((struct _IO_FILE *)NULL)) fatal("Can't open %s for reading\n", (const void *)buffer); void *return_value_malloc$1; return_value_malloc$1=malloc((unsigned long int)1024); tmpbuf = (char *)return_value_malloc$1; ptr = tmpbuf; if(ptr == ((char *)NULL)) fatal("error allocating initial space for tracer list\n"); do { return_value_fread$2=fread((void *)buffer, sizeof(char) /*1ul*/ , (unsigned long int)1024, fp); ret = (signed int)return_value_fread$2; if(ret == 0) break; if(!(tmpbuf + (signed long int)tmpsz >= ptr + (signed long int)ret + 1l)) { void *return_value_realloc$3; return_value_realloc$3=realloc((void *)tmpbuf, (unsigned long int)(tmpsz + 1024)); tmpbuf = (char *)return_value_realloc$3; if(tmpbuf == ((char *)NULL)) fatal("error allocating space for list of valid tracers\n"); tmpsz = tmpsz + 1024; } __builtin_strncpy(ptr, buffer, (unsigned long int)ret); ptr = ptr + (signed long int)ret; } while((_Bool)1); fclose(fp); if(tmpsz == 0) fatal("error reading available tracers\n"); tracer_buffer = tmpbuf; void *return_value_malloc$4; return_value_malloc$4=malloc(sizeof(char *) /*8ul*/ ); tracer_list = (char **)return_value_malloc$4; if(tracer_list == ((char **)NULL)) fatal("error allocatinging tracer list buffer\n"); ptr=strtok(tmpbuf, " \t\n\r"); do { tmp_post$5 = num_tracers; num_tracers = num_tracers + 1; tracer_list[(signed long int)tmp_post$5] = ptr; void *return_value_realloc$6; return_value_realloc$6=realloc((void *)tracer_list, sizeof(char *) /*8ul*/ * (unsigned long int)(num_tracers + 1)); tracer_list = (char **)return_value_realloc$6; tracer_list[(signed long int)num_tracers] = (char *)(void *)0; ptr=strtok((char *)(void *)0, " \t\n\r"); } while(!(ptr == ((char *)NULL))); *list = tracer_list; return num_tracers; } } // gettid // file src/lib/rt-utils.c line 320 signed int gettid(void) { signed long int return_value_syscall$1; return_value_syscall$1=syscall((signed long int)186); return (signed int)return_value_syscall$1; } // info // file src/lib/error.c line 59 void info(char *fmt, ...) { void **ap = (void **)&fmt; fputs("INFO: ", stderr); err_doit(0, fmt, ap); ap = ((void **)NULL); } // main // file src/ptsematest/ptsematest.c line 298 signed int main(signed int argc, char **argv) { signed int i; signed int max_cpus; signed long int return_value_sysconf$1; return_value_sysconf$1=sysconf(83); max_cpus = (signed int)return_value_sysconf$1; signed int oldsamples = 1; struct params *receiver = (struct params *)(void *)0; struct params *sender = (struct params *)(void *)0; struct anonymous$2 sigset; struct timespec maindelay; process_options(argc, argv); signed int return_value_check_privs$2; return_value_check_privs$2=check_privs(); void *return_value_calloc$6; void *return_value_calloc$7; if(!(return_value_check_privs$2 == 0)) return 1; else { signed int return_value_mlockall$3; return_value_mlockall$3=mlockall(1 | 2); if(return_value_mlockall$3 == -1) { perror("mlockall"); return 1; } else { signal(2, sighand); signal(15, sighand); void *return_value_calloc$4; return_value_calloc$4=calloc((unsigned long int)num_threads, sizeof(struct params) /*656ul*/ ); receiver = (struct params *)return_value_calloc$4; void *return_value_calloc$5; return_value_calloc$5=calloc((unsigned long int)num_threads, sizeof(struct params) /*656ul*/ ); sender = (struct params *)return_value_calloc$5; if(!(receiver == ((struct params *)NULL)) && !(sender == ((struct params *)NULL))) { return_value_calloc$6=calloc((unsigned long int)num_threads, sizeof(union anonymous) /*40ul*/ ); testmutex = (union anonymous *)return_value_calloc$6; return_value_calloc$7=calloc((unsigned long int)num_threads, sizeof(union anonymous) /*40ul*/ ); syncmutex = (union anonymous *)return_value_calloc$7; if(!(syncmutex == ((union anonymous *)NULL)) && !(testmutex == ((union anonymous *)NULL))) { i = 0; for( ; !(i >= num_threads); i = i + 1) { (receiver + (signed long int)i)->mindiff = (unsigned int)0x7fffffff * 2U + 1U; (receiver + (signed long int)i)->maxdiff = (unsigned int)0; (receiver + (signed long int)i)->sumdiff = 0.0; pthread_mutex_init(&testmutex[(signed long int)i], (const union anonymous$0 *)(void *)0); pthread_mutex_init(&syncmutex[(signed long int)i], (const union anonymous$0 *)(void *)0); pthread_mutex_lock(&testmutex[(signed long int)i]); (receiver + (signed long int)i)->num = i; (receiver + (signed long int)i)->cpu = i; switch(setaffinity) { case 0: { (receiver + (signed long int)i)->cpu = -1; break; } case 1: { (receiver + (signed long int)i)->cpu = affinity; break; } case 2: (receiver + (signed long int)i)->cpu = i % max_cpus; } (receiver + (signed long int)i)->priority = priority; (receiver + (signed long int)i)->tracelimit = tracelimit; if(sameprio == 0 && priority >= 2) priority = priority - 1; (receiver + (signed long int)i)->delay.tv_sec = (signed long int)(interval / 1000000); (receiver + (signed long int)i)->delay.tv_nsec = (signed long int)((interval % 1000000) * 1000); interval = interval + distance; (receiver + (signed long int)i)->max_cycles = max_cycles; (receiver + (signed long int)i)->sender = 0; (receiver + (signed long int)i)->neighbor = &sender[(signed long int)i]; pthread_create(&(receiver + (signed long int)i)->threadid, (const union pthread_attr_t *)(void *)0, semathread, (void *)&receiver[(signed long int)i]); memcpy((void *)&sender[(signed long int)i], (const void *)&receiver[(signed long int)i], sizeof(struct params) /*656ul*/ ); (sender + (signed long int)i)->sender = 1; (sender + (signed long int)i)->neighbor = &receiver[(signed long int)i]; pthread_create(&(sender + (signed long int)i)->threadid, (const union pthread_attr_t *)(void *)0, semathread, (void *)&sender[(signed long int)i]); } maindelay.tv_sec = (signed long int)0; maindelay.tv_nsec = (signed long int)50000000; while(shutdown == 0) { signed int printed; signed int errorlines = 0; i = 0; for( ; !(i >= num_threads); i = i + 1) shutdown = shutdown | (receiver + (signed long int)i)->shutdown | (sender + (signed long int)i)->shutdown; if(!(shutdown == 0) || !(oldsamples >= receiver->samples)) { i = 0; for( ; !(i >= num_threads); i = i + 1) printf("#%1d: ID%d, P%d, CPU%d, I%ld; #%1d: ID%d, P%d, CPU%d, Cycles %d\n", i * 2, (receiver + (signed long int)i)->tid, (receiver + (signed long int)i)->priority, (receiver + (signed long int)i)->cpu, (receiver + (signed long int)i)->delay.tv_nsec / (signed long int)1000, i * 2 + 1, (sender + (signed long int)i)->tid, (sender + (signed long int)i)->priority, (sender + (signed long int)i)->cpu, (sender + (signed long int)i)->samples); i = 0; for( ; !(i >= num_threads); i = i + 1) { printf("#%d -> #%d, Min %4d, Cur %4d, Avg %4d, Max %4d\n", i * 2 + 1, i * 2, (receiver + (signed long int)i)->mindiff, (signed int)(receiver + (signed long int)i)->diff.tv_usec, (signed int)((receiver + (signed long int)i)->sumdiff / (double)(receiver + (signed long int)i)->samples + 0.5), (receiver + (signed long int)i)->maxdiff); if(!((signed int)(receiver + (signed long int)i)->error[0l] == 0)) { printf("%s", (const void *)(receiver + (signed long int)i)->error); errorlines = errorlines + 1; (receiver + (signed long int)i)->error[(signed long int)0] = (char)0; } if(!((signed int)(sender + (signed long int)i)->error[0l] == 0)) { printf("%s", (const void *)(sender + (signed long int)i)->error); errorlines = errorlines + 1; (receiver + (signed long int)i)->error[(signed long int)0] = (char)0; } } printed = 1; } else printed = 0; sigemptyset(&sigset); sigaddset(&sigset, 15); sigaddset(&sigset, 2); pthread_sigmask(2, &sigset, (struct anonymous$2 *)(void *)0); nanosleep(&maindelay, (struct timespec *)(void *)0); sigemptyset(&sigset); pthread_sigmask(2, &sigset, (struct anonymous$2 *)(void *)0); if(shutdown == 0 && !(printed == 0)) printf("\033[%dA", num_threads * 2 + errorlines); } i = 0; for( ; !(i >= num_threads); i = i + 1) { (receiver + (signed long int)i)->shutdown = 1; (sender + (signed long int)i)->shutdown = 1; pthread_mutex_unlock(&testmutex[(signed long int)i]); pthread_mutex_unlock(&syncmutex[(signed long int)i]); } nanosleep(&(receiver + (signed long int)0)->delay, (struct timespec *)(void *)0); i = 0; for( ; !(i >= num_threads); i = i + 1) { if((receiver + (signed long int)i)->stopped == 0) pthread_kill((receiver + (signed long int)i)->threadid, 15); if((sender + (signed long int)i)->stopped == 0) pthread_kill((sender + (signed long int)i)->threadid, 15); } i = 0; for( ; !(i >= num_threads); i = i + 1) { pthread_mutex_destroy(&testmutex[(signed long int)i]); pthread_mutex_destroy(&syncmutex[(signed long int)i]); } } } nomem: ; return 0; } } } // mount_debugfs // file src/lib/rt-utils.c line 86 signed int mount_debugfs(char *path) { char *mountpoint = path; char cmd[256l]; char *prefix; signed int ret; prefix=get_debugfileprefix(); unsigned long int return_value_strlen$1; return_value_strlen$1=strlen(prefix); if(!(return_value_strlen$1 == 0ul)) { info("debugfs mountpoint: %s\n", prefix); return 0; } else { if(mountpoint == ((char *)NULL)) mountpoint = "/sys/kernel/debug"; sprintf(cmd, "mount -t debugfs debugfs %s", mountpoint); ret=system(cmd); if(!(ret == 0)) { signed int *return_value___errno_location$2; return_value___errno_location$2=__errno_location(); char *return_value_strerror$3; return_value_strerror$3=strerror(*return_value___errno_location$2); fprintf(stderr, "Error mounting debugfs at %s: %s\n", mountpoint, return_value_strerror$3); return -1; } return 0; } } // policy_to_string // file src/lib/rt-utils.c line 282 const char * policy_to_string(signed int policy) { switch(policy) { case 0: return "SCHED_OTHER"; case 1: return "SCHED_FIFO"; case 2: return "SCHED_RR"; case 3: return "SCHED_BATCH"; case 5: return "SCHED_IDLE"; case 6: return "SCHED_DEADLINE"; default: return "unknown"; } } // process_options // file src/ptsematest/ptsematest.c line 198 static void process_options(signed int argc, char **argv) { signed int error = 0; signed int max_cpus; signed long int return_value_sysconf$1; return_value_sysconf$1=sysconf(83); max_cpus = (signed int)return_value_sysconf$1; _Bool tmp_if_expr$3; signed int return_value_atoi$2; _Bool tmp_if_expr$5; signed int return_value_atoi$4; do { signed int option_index = 0; signed int c; static struct option long_options[10l] = { { .name="affinity", .has_arg=2, .flag=(signed int *)(void *)0, .val=97 }, { .name="breaktrace", .has_arg=1, .flag=(signed int *)(void *)0, .val=98 }, { .name="distance", .has_arg=1, .flag=(signed int *)(void *)0, .val=100 }, { .name="interval", .has_arg=1, .flag=(signed int *)(void *)0, .val=105 }, { .name="loops", .has_arg=1, .flag=(signed int *)(void *)0, .val=108 }, { .name="priority", .has_arg=1, .flag=(signed int *)(void *)0, .val=112 }, { .name="smp", .has_arg=0, .flag=(signed int *)(void *)0, .val=83 }, { .name="threads", .has_arg=2, .flag=(signed int *)(void *)0, .val=116 }, { .name="help", .has_arg=0, .flag=(signed int *)(void *)0, .val=63 }, { .name=(const char *)(void *)0, .has_arg=0, .flag=(signed int *)(void *)0, .val=0 } }; c=getopt_long(argc, argv, "a::b:d:i:l:p:St::", long_options, &option_index); if(c == -1) break; switch(c) { case 97: { if(!(smp == 0)) { warn("-a ignored due to --smp\n"); break; } if(!(optarg == ((char *)NULL))) { affinity=atoi(optarg); setaffinity = 1; } else { if(!(optind >= argc)) { return_value_atoi$2=atoi(argv[(signed long int)optind]); tmp_if_expr$3 = return_value_atoi$2 != 0 ? (_Bool)1 : (_Bool)0; } else tmp_if_expr$3 = (_Bool)0; if(tmp_if_expr$3) { affinity=atoi(argv[(signed long int)optind]); setaffinity = 1; } else setaffinity = 2; } break; } case 98: { tracelimit=atoi(optarg); break; } case 100: { distance=atoi(optarg); break; } case 105: { interval=atoi(optarg); break; } case 108: { max_cycles=atoi(optarg); break; } case 112: { priority=atoi(optarg); break; } case 83: { smp = 1; num_threads = max_cpus; setaffinity = 2; break; } case 116: { if(!(smp == 0)) { warn("-t ignored due to --smp\n"); break; } if(!(optarg == ((char *)NULL))) num_threads=atoi(optarg); else { if(!(optind >= argc)) { return_value_atoi$4=atoi(argv[(signed long int)optind]); tmp_if_expr$5 = return_value_atoi$4 != 0 ? (_Bool)1 : (_Bool)0; } else tmp_if_expr$5 = (_Bool)0; if(tmp_if_expr$5) num_threads=atoi(argv[(signed long int)optind]); else num_threads = max_cpus; } break; } case 63: error = 1; } } while((_Bool)1); if(setaffinity == 1) { if(!(affinity >= 0)) error = 1; if(affinity >= max_cpus) { fprintf(stderr, "ERROR: CPU #%d not found, only %d CPUs available\n", affinity, max_cpus); error = 1; } } if(num_threads >= 256 || !(num_threads >= 0)) error = 1; if(priority >= 100 || !(priority >= 0)) error = 1; if(!(num_threads >= 1)) error = 1; if(!(priority == 0) && !(smp == 0)) sameprio = 1; if(!(error == 0)) display_help(); } // sched_getattr // file src/lib/rt-sched.c line 37 signed int sched_getattr(signed int pid, struct sched_attr *attr, unsigned int size, unsigned int flags) { signed long int return_value_syscall$1; return_value_syscall$1=syscall((signed long int)315, pid, attr, size, flags); return (signed int)return_value_syscall$1; } // sched_setattr // file src/lib/rt-sched.c line 30 signed int sched_setattr(signed int pid, struct sched_attr *attr, unsigned int flags) { signed long int return_value_syscall$1; return_value_syscall$1=syscall((signed long int)314, pid, attr, flags); return (signed int)return_value_syscall$1; } // semathread // file src/ptsematest/ptsematest.c line 77 void * semathread(void *param) { signed int mustgetcpu = 0; signed int first = 1; struct params *par = (struct params *)param; struct anonymous$1 mask; signed int policy = 1; struct sched_param schedp; memset((void *)&schedp, 0, sizeof(struct sched_param) /*4ul*/ ); schedp.__sched_priority = par->priority; sched_setscheduler(0, policy, &schedp); if(!(par->cpu == -1)) { do __builtin_memset((void *)&mask, 0, sizeof(struct anonymous$1) /*128ul*/ ); while((_Bool)0); unsigned long int __cpu = (unsigned long int)par->cpu; if(!(__cpu / 8ul >= sizeof(struct anonymous$1) /*128ul*/ )) ((unsigned long int *)(&mask)->__bits)[(signed long int)(__cpu / ((unsigned long int)8 * sizeof(unsigned long int) /*8ul*/ ))] = ((unsigned long int *)(&mask)->__bits)[(signed long int)(__cpu / ((unsigned long int)8 * sizeof(unsigned long int) /*8ul*/ ))] | (unsigned long int)1 << __cpu % ((unsigned long int)8 * sizeof(unsigned long int) /*8ul*/ ); else (unsigned long int)0; signed int return_value_sched_setaffinity$1; return_value_sched_setaffinity$1=sched_setaffinity(0, sizeof(struct anonymous$1) /*128ul*/ , &mask); if(return_value_sched_setaffinity$1 == -1) fprintf(stderr, "WARNING: Could not set CPU affinity to CPU #%d\n", par->cpu); } else mustgetcpu = 1; signed long int return_value_syscall$2; return_value_syscall$2=syscall((signed long int)186); par->tid = (signed int)return_value_syscall$2; while(par->shutdown == 0) if(!(par->sender == 0)) { pthread_mutex_lock(&syncmutex[(signed long int)par->num]); gettimeofday(&par->unblocked, (struct timezone *)(void *)0); pthread_mutex_unlock(&testmutex[(signed long int)par->num]); par->samples = par->samples + 1; if(!(par->max_cycles == 0)) { if(par->samples >= par->max_cycles) par->shutdown = 1; } if(!(mustgetcpu == 0)) par->cpu=get_cpu(); } else { if(first == 0) { pthread_mutex_lock(&syncmutex[(signed long int)par->num]); first = 1; } pthread_mutex_lock(&testmutex[(signed long int)par->num]); gettimeofday(&par->received, (struct timezone *)(void *)0); par->samples = par->samples + 1; do { (&par->diff)->tv_sec = (&par->received)->tv_sec - (&par->neighbor->unblocked)->tv_sec; (&par->diff)->tv_usec = (&par->received)->tv_usec - (&par->neighbor->unblocked)->tv_usec; if(!(par->diff.tv_usec >= 0l)) { (&par->diff)->tv_sec = (&par->diff)->tv_sec - 1l; (&par->diff)->tv_usec = (&par->diff)->tv_usec + (signed long int)1000000; } } while((_Bool)0); if(!(par->diff.tv_usec >= (signed long int)par->mindiff)) par->mindiff = (unsigned int)par->diff.tv_usec; if(!((signed long int)par->maxdiff >= par->diff.tv_usec)) par->maxdiff = (unsigned int)par->diff.tv_usec; par->sumdiff = par->sumdiff + (double)par->diff.tv_usec; if(!(par->tracelimit == 0)) { if(!((unsigned int)par->tracelimit >= par->maxdiff)) { char tracing_enabled_file[256l]; char *return_value_get_debugfileprefix$3; return_value_get_debugfileprefix$3=get_debugfileprefix(); strcpy(tracing_enabled_file, return_value_get_debugfileprefix$3); strcat(tracing_enabled_file, "tracing_enabled"); signed int tracing_enabled; tracing_enabled=open(tracing_enabled_file, 01); if(tracing_enabled >= 0) { write(tracing_enabled, (const void *)"0", (unsigned long int)1); close(tracing_enabled); } else snprintf(par->error, sizeof(char [512l]) /*512ul*/ , "Could not access %s\n", (const void *)tracing_enabled_file); par->shutdown = 1; par->neighbor->shutdown = 1; } } if(!(par->max_cycles == 0)) { if(par->samples >= par->max_cycles) par->shutdown = 1; } if(!(mustgetcpu == 0)) par->cpu=get_cpu(); nanosleep(&par->delay, (struct timespec *)(void *)0); pthread_mutex_unlock(&syncmutex[(signed long int)par->num]); } par->stopped = 1; return (void *)0; } // setevent // file src/lib/rt-utils.c line 204 signed int setevent(char *event, char *val) { char *prefix; prefix=get_debugfileprefix(); char buffer[256l]; signed int fd; signed int ret; sprintf(buffer, "%s%s", prefix, event); fd=open(buffer, 01); if(!(fd >= 0)) { warn("unable to open %s\n", (const void *)buffer); return -1; } else { unsigned long int return_value_strlen$1; return_value_strlen$1=strlen(val); signed long int return_value_write$2; return_value_write$2=write(fd, (const void *)val, return_value_strlen$1); ret = (signed int)return_value_write$2; if(!(ret >= 0)) { warn("unable to write %s to %s\n", val, (const void *)buffer); close(fd); return -1; } else { close(fd); return 0; } } } // sighand // file src/ptsematest/ptsematest.c line 293 static void sighand(signed int sig) { shutdown = 1; } // stat // file /usr/include/x86_64-linux-gnu/sys/stat.h line 452 static inline signed int stat(const char *__path, struct stat *__statbuf) { signed int return_value___xstat$1; return_value___xstat$1=__xstat(1, __path, __statbuf); return return_value___xstat$1; } // string_to_policy // file src/lib/rt-utils.c line 302 unsigned int string_to_policy(const char *str) { signed int tmp_statement_expression$11; unsigned long int string_to_policy$$1$$1$$__s1_len; unsigned long int string_to_policy$$1$$1$$__s2_len; signed int return_value___builtin_strcmp$12; return_value___builtin_strcmp$12=__builtin_strcmp(str, "other"); tmp_statement_expression$11 = return_value___builtin_strcmp$12; signed int tmp_statement_expression$9; signed int tmp_statement_expression$7; signed int tmp_statement_expression$5; signed int tmp_statement_expression$3; signed int tmp_statement_expression$1; if(tmp_statement_expression$11 == 0) return (unsigned int)0; else { unsigned long int __s1_len; unsigned long int __s2_len; signed int return_value___builtin_strcmp$10; return_value___builtin_strcmp$10=__builtin_strcmp(str, "fifo"); tmp_statement_expression$9 = return_value___builtin_strcmp$10; if(tmp_statement_expression$9 == 0) return (unsigned int)1; else { unsigned long int string_to_policy$$1$$3$$__s1_len; unsigned long int string_to_policy$$1$$3$$__s2_len; signed int return_value___builtin_strcmp$8; return_value___builtin_strcmp$8=__builtin_strcmp(str, "rr"); tmp_statement_expression$7 = return_value___builtin_strcmp$8; if(tmp_statement_expression$7 == 0) return (unsigned int)2; else { unsigned long int string_to_policy$$1$$4$$__s1_len; unsigned long int string_to_policy$$1$$4$$__s2_len; signed int return_value___builtin_strcmp$6; return_value___builtin_strcmp$6=__builtin_strcmp(str, "batch"); tmp_statement_expression$5 = return_value___builtin_strcmp$6; if(tmp_statement_expression$5 == 0) return (unsigned int)3; else { unsigned long int string_to_policy$$1$$5$$__s1_len; unsigned long int string_to_policy$$1$$5$$__s2_len; signed int return_value___builtin_strcmp$4; return_value___builtin_strcmp$4=__builtin_strcmp(str, "idle"); tmp_statement_expression$3 = return_value___builtin_strcmp$4; if(tmp_statement_expression$3 == 0) return (unsigned int)5; else { unsigned long int string_to_policy$$1$$6$$__s1_len; unsigned long int string_to_policy$$1$$6$$__s2_len; signed int return_value___builtin_strcmp$2; return_value___builtin_strcmp$2=__builtin_strcmp(str, "deadline"); tmp_statement_expression$1 = return_value___builtin_strcmp$2; if(tmp_statement_expression$1 == 0) return (unsigned int)6; } } } } } return (unsigned int)0; } // valid_tracer // file src/lib/rt-utils.c line 186 signed int valid_tracer(char *tracername) { char **list; signed int ntracers; signed int i; ntracers=get_tracers(&list); unsigned long int return_value_strlen$1; signed int return_value_strncmp$2; if(tracername == ((char *)NULL) || ntracers == 0) return 0; else { i = 0; for( ; !(i >= ntracers); i = i + 1) { return_value_strlen$1=strlen(list[(signed long int)i]); return_value_strncmp$2=strncmp(list[(signed long int)i], tracername, return_value_strlen$1); if(return_value_strncmp$2 == 0) return 1; } return 0; } } // warn // file src/include/error.h line 15 void warn(char *fmt, ...) { void **ap = (void **)&fmt; fputs("WARN: ", stderr); err_doit(0, fmt, ap); ap = ((void **)NULL); }
the_stack_data/150141749.c
#include <stdio.h> int binarySearch(int arr[], int l, int r, int x) { if (r >= l) { int mid = l + (r - l) / 2; if (arr[mid] == x) return mid; if (arr[mid] > x) return binarySearch(arr, l, mid - 1, x); return binarySearch(arr, mid + 1, r, x); } return -1; } int main(void) { int arr[50], n, temp, x; printf("Enter the number of elements: "); scanf("%d", &n); temp = n; printf("Enter the elements: \n"); while (temp--) { scanf("%d", &arr[n - 1 - temp]); } printf("Enter the number to be searched: "); scanf("%d", &x); int result = binarySearch(arr, 0, n - 1, x); (result == -1) ? printf("Element is not present in array\n") : printf("Element is present at index %d\n", result); return 0; }
the_stack_data/132953363.c
/** * \file * * \brief SAM I2C Master Interrupt Driver * * Copyright (C) 2012-2015 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * 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. The name of Atmel may not be used to endorse or promote products derived * from this software without specific prior written permission. * * 4. This software may only be redistributed and used in connection with an * Atmel microcontroller product. * * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL 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. * * \asf_license_stop * */ /* * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a> */ #ifdef I2C_MASTER_CALLBACK_MODE #include "i2c_master_interrupt.h" extern enum status_code _i2c_master_wait_for_bus( struct i2c_master_module *const module); extern enum status_code _i2c_master_address_response( struct i2c_master_module *const module); extern enum status_code _i2c_master_send_hs_master_code( struct i2c_master_module *const module, uint8_t hs_master_code);; /** * \internal * Read next data. Used by interrupt handler to get next data byte from slave. * * \param[in,out] module Pointer to software module structure */ static void _i2c_master_read( struct i2c_master_module *const module) { /* Sanity check arguments. */ Assert(module); Assert(module->hw); SercomI2cm *const i2c_module = &(module->hw->I2CM); bool sclsm_flag = i2c_module->CTRLA.bit.SCLSM; /* Find index to save next value in buffer */ uint16_t buffer_index = module->buffer_length; buffer_index -= module->buffer_remaining; module->buffer_remaining--; if (sclsm_flag) { if (module->send_nack && module->buffer_remaining == 1) { /* Set action to NACK. */ i2c_module->CTRLB.reg |= SERCOM_I2CM_CTRLB_ACKACT; } } else { if (module->send_nack && module->buffer_remaining == 0) { /* Set action to NACK. */ i2c_module->CTRLB.reg |= SERCOM_I2CM_CTRLB_ACKACT; } } if (module->buffer_remaining == 0) { if (module->send_stop) { /* Send stop condition */ _i2c_master_wait_for_sync(module); i2c_module->CTRLB.reg |= SERCOM_I2CM_CTRLB_CMD(3); } } /* Read byte from slave and put in buffer */ _i2c_master_wait_for_sync(module); module->buffer[buffer_index] = i2c_module->DATA.reg; } /** * \internal * * Write next data. Used by interrupt handler to send next data byte to slave. * * \param[in,out] module Pointer to software module structure */ static void _i2c_master_write(struct i2c_master_module *const module) { /* Sanity check arguments. */ Assert(module); Assert(module->hw); SercomI2cm *const i2c_module = &(module->hw->I2CM); /* Check for ack from slave */ if (i2c_module->STATUS.reg & SERCOM_I2CM_STATUS_RXNACK) { /* Set status */ module->status = STATUS_ERR_OVERFLOW; /* Do not write more data */ return; } /* Find index to get next byte in buffer */ uint16_t buffer_index = module->buffer_length; buffer_index -= module->buffer_remaining; module->buffer_remaining--; /* Write byte from buffer to slave */ _i2c_master_wait_for_sync(module); i2c_module->DATA.reg = module->buffer[buffer_index]; } /** * \internal * Acts on slave address response. Checks for errors concerning master->slave * handshake. * * \param[in,out] module Pointer to software module structure */ static void _i2c_master_async_address_response( struct i2c_master_module *const module) { /* Sanity check arguments. */ Assert(module); Assert(module->hw); SercomI2cm *const i2c_module = &(module->hw->I2CM); /* Check for error. Ignore bus-error; workaround for bus state stuck in * BUSY. */ if (i2c_module->INTFLAG.reg & SERCOM_I2CM_INTFLAG_MB) { /* Clear write interrupt flag */ i2c_module->INTFLAG.reg = SERCOM_I2CM_INTENCLR_MB; /* Check arbitration */ if (i2c_module->STATUS.reg & SERCOM_I2CM_STATUS_ARBLOST) { /* Return busy */ module->status = STATUS_ERR_PACKET_COLLISION; } } else if (i2c_module->STATUS.reg & SERCOM_I2CM_STATUS_RXNACK) { /* Return bad address value */ module->status = STATUS_ERR_BAD_ADDRESS; module->buffer_remaining = 0; if (module->send_stop) { /* Send stop condition */ _i2c_master_wait_for_sync(module); i2c_module->CTRLB.reg |= SERCOM_I2CM_CTRLB_CMD(3); } } module->buffer_length = module->buffer_remaining; /* Check for status OK. */ if (module->status == STATUS_BUSY) { /* Call function based on transfer direction. */ if (module->transfer_direction == I2C_TRANSFER_WRITE) { _i2c_master_write(module); } else { _i2c_master_read(module); } } } /** * \brief Registers callback for the specified callback type * * Associates the given callback function with the * specified callback type. * * To enable the callback, the \ref i2c_master_enable_callback function * must be used. * * \param[in,out] module Pointer to the software module struct * \param[in] callback Pointer to the function desired for the * specified callback * \param[in] callback_type Callback type to register */ void i2c_master_register_callback( struct i2c_master_module *const module, const i2c_master_callback_t callback, enum i2c_master_callback callback_type) { /* Sanity check */ Assert(module); Assert(module->hw); Assert(callback); /* Register callback */ module->callbacks[callback_type] = callback; /* Set corresponding bit to set callback as registered */ module->registered_callback |= (1 << callback_type); } /** * \brief Unregisters callback for the specified callback type * * When called, the currently registered callback for the given callback type * will be removed. * * \param[in,out] module Pointer to the software module struct * \param[in] callback_type Specifies the callback type to unregister */ void i2c_master_unregister_callback( struct i2c_master_module *const module, enum i2c_master_callback callback_type) { /* Sanity check */ Assert(module); Assert(module->hw); /* Register callback */ module->callbacks[callback_type] = NULL; /* Clear corresponding bit to set callback as unregistered */ module->registered_callback &= ~(1 << callback_type); } /** * \internal * Starts a read bytes operation. * * \param[in,out] module Pointer to software module struct * \param[in,out] packet Pointer to I<SUP>2</SUP>C packet to transfer * * \return Status of starting reading I<SUP>2</SUP>C packet. * \retval STATUS_OK If reading was started successfully * \retval STATUS_BUSY If module is currently busy with another transfer */ enum status_code i2c_master_read_bytes( struct i2c_master_module *const module, struct i2c_master_packet *const packet) { /* Sanity check */ Assert(module); Assert(module->hw); SercomI2cm *const i2c_module = &(module->hw->I2CM); /* Save packet to software module */ module->buffer = packet->data; module->buffer_remaining = packet->data_length; module->transfer_direction = I2C_TRANSFER_READ; module->status = STATUS_BUSY; module->send_stop = false; module->send_nack = false; /* Enable interrupts */ i2c_module->INTENSET.reg = SERCOM_I2CM_INTENSET_MB | SERCOM_I2CM_INTENSET_SB; return STATUS_OK; } /** * \internal * Starts a read packet operation. * * \param[in,out] module Pointer to software module struct * \param[in,out] packet Pointer to I<SUP>2</SUP>C packet to transfer * * \return Status of starting reading I<SUP>2</SUP>C packet. * \retval STATUS_OK If reading was started successfully * \retval STATUS_BUSY If module is currently busy with another transfer */ static enum status_code _i2c_master_read_packet( struct i2c_master_module *const module, struct i2c_master_packet *const packet) { /* Sanity check */ Assert(module); Assert(module->hw); SercomI2cm *const i2c_module = &(module->hw->I2CM); enum status_code tmp_status; /* Save packet to software module */ module->buffer = packet->data; module->buffer_remaining = packet->data_length; module->transfer_direction = I2C_TRANSFER_READ; module->status = STATUS_BUSY; /* Switch to high speed mode */ if (packet->high_speed) { _i2c_master_send_hs_master_code(module, packet->hs_master_code); } /* Set action to ACK. */ i2c_module->CTRLB.reg &= ~SERCOM_I2CM_CTRLB_ACKACT; if (packet->ten_bit_address) { /* * Write ADDR.ADDR[10:1] with the 10-bit address. ADDR.TENBITEN must * be set and read/write bit (ADDR.ADDR[0]) equal to 0. */ i2c_module->ADDR.reg = (packet->address << 1) | (packet->high_speed << SERCOM_I2CM_ADDR_HS_Pos) | SERCOM_I2CM_ADDR_TENBITEN; /* Wait for response on bus. */ tmp_status = _i2c_master_wait_for_bus(module); /* Set action to ack. */ i2c_module->CTRLB.reg &= ~SERCOM_I2CM_CTRLB_ACKACT; /* Check for address response error unless previous error is * detected. */ if (tmp_status == STATUS_OK) { tmp_status = _i2c_master_address_response(module); } if (tmp_status == STATUS_OK) { /* Enable interrupts */ i2c_module->INTENSET.reg = SERCOM_I2CM_INTENSET_MB | SERCOM_I2CM_INTENSET_SB; /* * Write ADDR[7:0] register to "11110 address[9:8] 1" * ADDR.TENBITEN must be cleared */ i2c_module->ADDR.reg = (((packet->address >> 8) | 0x78) << 1) | (packet->high_speed << SERCOM_I2CM_ADDR_HS_Pos) | I2C_TRANSFER_READ; } else { return tmp_status; } } else { /* Enable interrupts */ i2c_module->INTENSET.reg = SERCOM_I2CM_INTENSET_MB | SERCOM_I2CM_INTENSET_SB; /* Set address and direction bit. Will send start command on bus */ i2c_module->ADDR.reg = (packet->address << 1) | I2C_TRANSFER_READ | (packet->high_speed << SERCOM_I2CM_ADDR_HS_Pos); } return STATUS_OK; } /** * \brief Initiates a read packet operation * * Reads a data packet from the specified slave address on the I<SUP>2</SUP>C * bus. This is the non-blocking equivalent of \ref i2c_master_read_packet_wait. * * \param[in,out] module Pointer to software module struct * \param[in,out] packet Pointer to I<SUP>2</SUP>C packet to transfer * * \return Status of starting reading I<SUP>2</SUP>C packet. * \retval STATUS_OK If reading was started successfully * \retval STATUS_BUSY If module is currently busy with another transfer */ enum status_code i2c_master_read_packet_job( struct i2c_master_module *const module, struct i2c_master_packet *const packet) { /* Sanity check */ Assert(module); Assert(module->hw); Assert(packet); /* Check if the I2C module is busy with a job */ if (module->buffer_remaining > 0) { return STATUS_BUSY; } /* Make sure we send STOP */ module->send_stop = true; module->send_nack = true; /* Start reading */ return _i2c_master_read_packet(module, packet); } /** * \brief Initiates a read packet operation without sending a STOP condition when done * * Reads a data packet from the specified slave address on the I<SUP>2</SUP>C bus without * sending a stop condition, thus retaining ownership of the bus when done. * To end the transaction, a \ref i2c_master_read_packet_wait "read" or * \ref i2c_master_write_packet_wait "write" with stop condition must be * performed. * * This is the non-blocking equivalent of \ref i2c_master_read_packet_wait_no_stop. * * \param[in,out] module Pointer to software module struct * \param[in,out] packet Pointer to I<SUP>2</SUP>C packet to transfer * * \return Status of starting reading I<SUP>2</SUP>C packet. * \retval STATUS_OK If reading was started successfully * \retval STATUS_BUSY If module is currently busy with another operation */ enum status_code i2c_master_read_packet_job_no_stop( struct i2c_master_module *const module, struct i2c_master_packet *const packet) { /* Sanity check */ Assert(module); Assert(module->hw); Assert(packet); /* Check if the I2C module is busy with a job */ if (module->buffer_remaining > 0) { return STATUS_BUSY; } /* Make sure we don't send STOP */ module->send_stop = false; module->send_nack = true; /* Start reading */ return _i2c_master_read_packet(module, packet); } /** * \brief Initiates a read packet operation without sending a NACK signal and a * STOP condition when done * * Reads a data packet from the specified slave address on the I<SUP>2</SUP>C bus without * sending a nack and a stop condition, thus retaining ownership of the bus when done. * To end the transaction, a \ref i2c_master_read_packet_wait "read" or * \ref i2c_master_write_packet_wait "write" with stop condition must be * performed. * * This is the non-blocking equivalent of \ref i2c_master_read_packet_wait_no_stop. * * \param[in,out] module Pointer to software module struct * \param[in,out] packet Pointer to I<SUP>2</SUP>C packet to transfer * * \return Status of starting reading I<SUP>2</SUP>C packet. * \retval STATUS_OK If reading was started successfully * \retval STATUS_BUSY If module is currently busy with another operation */ enum status_code i2c_master_read_packet_job_no_nack( struct i2c_master_module *const module, struct i2c_master_packet *const packet) { /* Sanity check */ Assert(module); Assert(module->hw); Assert(packet); /* Check if the I2C module is busy with a job */ if (module->buffer_remaining > 0) { return STATUS_BUSY; } /* Make sure we don't send STOP */ module->send_stop = false; module->send_nack = false; /* Start reading */ return _i2c_master_read_packet(module, packet); } /** * \internal * Starts a write bytes operation. * * \param[in,out] module Pointer to software module struct * \param[in,out] packet Pointer to I<SUP>2</SUP>C packet to transfer * * \return Status of starting write I<SUP>2</SUP>C bytes. * \retval STATUS_OK If writing was started successfully * \retval STATUS_BUSY If module is currently busy with another transfer */ enum status_code i2c_master_write_bytes( struct i2c_master_module *const module, struct i2c_master_packet *const packet) { /* Sanity check */ Assert(module); Assert(module->hw); SercomI2cm *const i2c_module = &(module->hw->I2CM); /* Save packet to software module */ module->buffer = packet->data; module->buffer_remaining = packet->data_length; module->transfer_direction = I2C_TRANSFER_WRITE; module->status = STATUS_BUSY; module->send_stop = false; module->send_nack = false; /* Enable interrupts */ i2c_module->INTENSET.reg = SERCOM_I2CM_INTENSET_MB | SERCOM_I2CM_INTENSET_SB; return STATUS_OK; } /** * \internal Initiates a write packet operation * * \param[in,out] module Pointer to software module struct * \param[in,out] packet Pointer to I<SUP>2</SUP>C packet to transfer * * \return Status of starting writing I<SUP>2</SUP>C packet job. * \retval STATUS_OK If writing was started successfully * \retval STATUS_BUSY If module is currently busy with another transfer */ static enum status_code _i2c_master_write_packet( struct i2c_master_module *const module, struct i2c_master_packet *const packet) { /* Sanity check */ Assert(module); Assert(module->hw); SercomI2cm *const i2c_module = &(module->hw->I2CM); /* Switch to high speed mode */ if (packet->high_speed) { _i2c_master_send_hs_master_code(module, packet->hs_master_code); } /* Set action to ACK. */ i2c_module->CTRLB.reg &= ~SERCOM_I2CM_CTRLB_ACKACT; /* Save packet to software module */ module->buffer = packet->data; module->buffer_remaining = packet->data_length; module->transfer_direction = I2C_TRANSFER_WRITE; module->status = STATUS_BUSY; /* Enable interrupts */ i2c_module->INTENSET.reg = SERCOM_I2CM_INTENSET_MB | SERCOM_I2CM_INTENSET_SB; /* Set address and direction bit, will send start command on bus */ if (packet->ten_bit_address) { i2c_module->ADDR.reg = (packet->address << 1) | I2C_TRANSFER_WRITE | (packet->high_speed << SERCOM_I2CM_ADDR_HS_Pos) | SERCOM_I2CM_ADDR_TENBITEN; } else { i2c_module->ADDR.reg = (packet->address << 1) | I2C_TRANSFER_WRITE | (packet->high_speed << SERCOM_I2CM_ADDR_HS_Pos); } return STATUS_OK; } /** * \brief Initiates a write packet operation * * Writes a data packet to the specified slave address on the I<SUP>2</SUP>C * bus. This is the non-blocking equivalent of \ref i2c_master_write_packet_wait. * * \param[in,out] module Pointer to software module struct * \param[in,out] packet Pointer to I<SUP>2</SUP>C packet to transfer * * \return Status of starting writing I<SUP>2</SUP>C packet job. * \retval STATUS_OK If writing was started successfully * \retval STATUS_BUSY If module is currently busy with another transfer */ enum status_code i2c_master_write_packet_job( struct i2c_master_module *const module, struct i2c_master_packet *const packet) { /* Sanity check */ Assert(module); Assert(module->hw); Assert(packet); /* Check if the I2C module is busy with another job. */ if (module->buffer_remaining > 0) { return STATUS_BUSY; } /* Make sure we send STOP at end*/ module->send_stop = true; module->send_nack = true; /* Start write operation */ return _i2c_master_write_packet(module, packet); } /** * \brief Initiates a write packet operation without sending a STOP condition when done * * Writes a data packet to the specified slave address on the I<SUP>2</SUP>C bus * without sending a stop condition, thus retaining ownership of the bus when * done. To end the transaction, a \ref i2c_master_read_packet_wait "read" or * \ref i2c_master_write_packet_wait "write" with stop condition or sending * a stop with the \ref i2c_master_send_stop function must be performed. * * This is the non-blocking equivalent of \ref i2c_master_write_packet_wait_no_stop. * * \param[in,out] module Pointer to software module struct * \param[in,out] packet Pointer to I<SUP>2</SUP>C packet to transfer * * \return Status of starting writing I<SUP>2</SUP>C packet job. * \retval STATUS_OK If writing was started successfully * \retval STATUS_BUSY If module is currently busy with another */ enum status_code i2c_master_write_packet_job_no_stop( struct i2c_master_module *const module, struct i2c_master_packet *const packet) { /* Sanity check */ Assert(module); Assert(module->hw); Assert(packet); /* Check if the I2C module is busy with another job. */ if (module->buffer_remaining > 0) { return STATUS_BUSY; } /* Do not send stop condition when done */ module->send_stop = false; module->send_nack = true; /* Start write operation */ return _i2c_master_write_packet(module, packet); } /** * \internal * Interrupt handler for I<SUP>2</SUP>C master. * * \param[in] instance SERCOM instance that triggered the interrupt */ void _i2c_master_interrupt_handler( uint8_t instance) { /* Get software module for callback handling */ struct i2c_master_module *module = (struct i2c_master_module*)_sercom_instances[instance]; Assert(module); SercomI2cm *const i2c_module = &(module->hw->I2CM); bool sclsm_flag = i2c_module->CTRLA.bit.SCLSM; /* Combine callback registered and enabled masks */ uint8_t callback_mask = module->enabled_callback; callback_mask &= module->registered_callback; /* Check if the module should respond to address ack */ if ((module->buffer_length <= 0) && (module->buffer_remaining > 0)) { /* Call function for address response */ _i2c_master_async_address_response(module); /* Check if buffer write is done */ } else if ((module->buffer_length > 0) && (module->buffer_remaining <= 0) && (module->status == STATUS_BUSY) && (module->transfer_direction == I2C_TRANSFER_WRITE)) { /* Stop packet operation */ i2c_module->INTENCLR.reg = SERCOM_I2CM_INTENCLR_MB | SERCOM_I2CM_INTENCLR_SB; module->buffer_length = 0; module->status = STATUS_OK; if (module->send_stop) { /* Send stop condition */ _i2c_master_wait_for_sync(module); i2c_module->CTRLB.reg |= SERCOM_I2CM_CTRLB_CMD(3); } else { /* Clear write interrupt flag */ i2c_module->INTFLAG.reg = SERCOM_I2CM_INTFLAG_MB; } if (callback_mask & (1 << I2C_MASTER_CALLBACK_WRITE_COMPLETE)) { module->callbacks[I2C_MASTER_CALLBACK_WRITE_COMPLETE](module); } /* Continue buffer write/read */ } else if ((module->buffer_length > 0) && (module->buffer_remaining > 0)){ /* Check that bus ownership is not lost */ if ((!(i2c_module->STATUS.reg & SERCOM_I2CM_STATUS_BUSSTATE(2))) && (!(sclsm_flag && (module->buffer_remaining == 1)))) { module->status = STATUS_ERR_PACKET_COLLISION; } else if (module->transfer_direction == I2C_TRANSFER_WRITE) { _i2c_master_write(module); } else { _i2c_master_read(module); } } /* Check if read buffer transfer is complete */ if ((module->buffer_length > 0) && (module->buffer_remaining <= 0) && (module->status == STATUS_BUSY) && (module->transfer_direction == I2C_TRANSFER_READ)) { /* Clear read interrupt flag */ if (i2c_module->INTFLAG.reg & SERCOM_I2CM_INTFLAG_SB) { i2c_module->INTFLAG.reg = SERCOM_I2CM_INTFLAG_SB; } /* Stop packet operation */ i2c_module->INTENCLR.reg = SERCOM_I2CM_INTENCLR_MB | SERCOM_I2CM_INTENCLR_SB; module->buffer_length = 0; module->status = STATUS_OK; /* Call appropriate callback if enabled and registered */ if ((callback_mask & (1 << I2C_MASTER_CALLBACK_READ_COMPLETE)) && (module->transfer_direction == I2C_TRANSFER_READ)) { module->callbacks[I2C_MASTER_CALLBACK_READ_COMPLETE](module); } else if ((callback_mask & (1 << I2C_MASTER_CALLBACK_WRITE_COMPLETE)) && (module->transfer_direction == I2C_TRANSFER_WRITE)) { module->callbacks[I2C_MASTER_CALLBACK_WRITE_COMPLETE](module); } } /* Check for error */ if ((module->status != STATUS_BUSY) && (module->status != STATUS_OK)) { /* Stop packet operation */ i2c_module->INTENCLR.reg = SERCOM_I2CM_INTENCLR_MB | SERCOM_I2CM_INTENCLR_SB; module->buffer_length = 0; module->buffer_remaining = 0; /* Send nack and stop command unless arbitration is lost */ if ((module->status != STATUS_ERR_PACKET_COLLISION) && module->send_stop) { _i2c_master_wait_for_sync(module); i2c_module->CTRLB.reg |= SERCOM_I2CM_CTRLB_ACKACT | SERCOM_I2CM_CTRLB_CMD(3); } /* Call error callback if enabled and registered */ if (callback_mask & (1 << I2C_MASTER_CALLBACK_ERROR)) { module->callbacks[I2C_MASTER_CALLBACK_ERROR](module); } } } #endif /* I2C_MASTER_CALLBACK_MODE */
the_stack_data/64200200.c
#include <stdio.h> int sum(int num1, int num2); int main (int arg, char* argv[]) { int a, b, s; //Variables locales a=10; b=20; s=0; s= sum(a,b); printf("La suma de los n%cmeros: %d \n",163, s); return 0; } int sum(int num1, int num2) { int result; //Variable local result= num1+num2; return result; }
the_stack_data/131842.c
#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <unistd.h> int match_line(int fd, char *str); typedef struct { pthread_t Thread; char *FileName; } thread_info; char *SearchStr; void *threadRoutine(void *RawArg) { thread_info *Arg = (thread_info *)RawArg; int FileDesc = open(Arg->FileName, O_RDONLY); if(FileDesc < 0) { return 0; } int LineNumber; while((LineNumber = match_line(FileDesc, SearchStr)) != 0) { printf("%s:\t%d\n", Arg->FileName, LineNumber); } close(FileDesc); return 0; } int main(int ArgCount, char *ArgVals[]) { if(ArgCount < 3) { fprintf(stderr, "Usage: %s [Text to search] [Files to search...]\n", ArgVals[0]); exit(1); } SearchStr = ArgVals[1]; int NumberOfThreads = ArgCount - 2; thread_info *Threads = malloc(sizeof(*Threads)*NumberOfThreads); for(int Idx = 0; Idx < NumberOfThreads; ++Idx) { thread_info *Thread = Threads + Idx; Thread->FileName = ArgVals[2 + Idx]; pthread_create(&Thread->Thread, 0, threadRoutine, Thread); } for(int Idx = 0; Idx < NumberOfThreads; ++Idx) { thread_info *Thread = Threads + Idx; pthread_join(Thread->Thread, 0); } free(Threads); return 0; }
the_stack_data/62637342.c
// SPDX-License-Identifier: X11 // 2020-08-15 (Live) // Walking Takahashi (300pt) #include <stdio.h> int main() { long long X,K,D; scanf("%lld %lld %lld", &X, &K, &D); if (X < 0) X = 0 - X; if (K <= X / D) { printf("%lld\n", X - K * D); return 0; } if (X % D > D / 2) { if ((X / D % 2 && !(K % 2)) || (!(X / D % 2) && K % 2)) { printf("%lld\n", 0 - (X % D - D)); return 0; } else { printf("%lld\n", X % D); return 0; } } else { if ((X / D % 2 && K % 2) || (!(X / D % 2) && !(K % 2))) { printf("%lld\n", X % D); return 0; } else { printf("%lld\n", 0 - (X % D - D)); return 0; } } }
the_stack_data/220456390.c
/************************************** * Algorithms, 2020-2021 * * Set 2, Exercise 2: Bazaar * * Polyvios Papakonstantinou 03114892 * **************************************/ #include<stdio.h> #include<stdlib.h> #include<limits.h> // Global declarations. unsigned int N, M, _1A[1500][2], _1B[1500][2], _1C[1500][2], _2A[1500][2], _2B[1500][2], _2C[1500][2], _3A[1500][2], _3B[1500][2], _3C[1500][2]; unsigned int _1Afin[1501][5001], _1Bfin[1501][5001], _1Cfin[1501][5001], _2Afin[1501][5001], _2Bfin[1501][5001], _2Cfin[1501][5001], _3Afin[1501][5001], _3Bfin[1501][5001], _3Cfin[1501][5001]; unsigned int min(unsigned int a, unsigned int b) { if (a >= b) { return b; } else { return a; } } /* * A custom KnapSack function for our problem. * 0 or INT_MAX in K[i][j] means that there is no solution * for such i and j. * array -> the array in which we have stored our input. * cap -> a "pointer" for how many elements of the array we actually use. * K -> the array in which we will store the results of our algorithm. */ void customKnapSack(unsigned int array[1500][2], unsigned int cap, unsigned int K[1501][5001]) { unsigned int i, j; //K[i][j] -> the best price for the first i offers, when we want j items. for (i = 0; i <= cap; ++i) { for (j = 0; j <= N; ++j) { if (j == 0) { K[i][j] = 0; } else if (i == 0) { K[i][j] = INT_MAX; } else if (j < array[i-1][1]) { K[i][j] = min(K[i-1][j], array[i-1][0]); } else { K[i][j] = min(K[i-1][j], K[i-1][j - array[i-1][1]] + array[i-1][0]); } } } } /**************************************/ int main() { long int fin; unsigned int i, j, k, x; unsigned int _1Aptr, _1Bptr, _1Cptr, _2Aptr, _2Bptr, _2Cptr, _3Aptr, _3Bptr, _3Cptr; _1Aptr = _1Bptr = _1Cptr = _2Aptr = _2Bptr = _2Cptr = _3Aptr = _3Bptr = _3Cptr = 0; char y; // Start reading input... scanf("%u", &N); scanf("%u", &M); for (i = 0; i < M; ++i) { // xy A P // x -> vendor: 1, 2, 3 // y -> item: A, B, C // A -> quantity // P -> price scanf("%u", &x); scanf("%c", &y); switch(x) { case 1: switch(y) { case 'A': scanf("%u", &_1A[_1Aptr][1]); scanf("%u", &_1A[_1Aptr][0]); _1Aptr++; break; case 'B': scanf("%u", &_1B[_1Bptr][1]); scanf("%u", &_1B[_1Bptr][0]); _1Bptr++; break; case 'C': scanf("%u", &_1C[_1Cptr][1]); scanf("%u", &_1C[_1Cptr][0]); _1Cptr++; break; } break; case 2: switch(y) { case 'A': scanf("%u", &_2A[_2Aptr][1]); scanf("%u", &_2A[_2Aptr][0]); _2Aptr++; break; case 'B': scanf("%u", &_2B[_2Bptr][1]); scanf("%u", &_2B[_2Bptr][0]); _2Bptr++; break; case 'C': scanf("%u", &_2C[_2Cptr][1]); scanf("%u", &_2C[_2Cptr][0]); _2Cptr++; break; } break; case 3: switch(y) { case 'A': scanf("%u", &_3A[_3Aptr][1]); scanf("%u", &_3A[_3Aptr][0]); _3Aptr++; break; case 'B': scanf("%u", &_3B[_3Bptr][1]); scanf("%u", &_3B[_3Bptr][0]); _3Bptr++; break; case 'C': scanf("%u", &_3C[_3Cptr][1]); scanf("%u", &_3C[_3Cptr][0]); _3Cptr++; break; } break; } } /* * Input was separated for each type of item and each vendor, * meaning we have to use our KnapSack algorithm 9 times. */ customKnapSack(_1A, _1Aptr, _1Afin); customKnapSack(_1B, _1Bptr, _1Bfin); customKnapSack(_1C, _1Cptr, _1Cfin); unsigned int sets1 = 0; /* * Now that we have computed KnapSack for 1st vendor's all items, * find how many sets we can buy from him. */ for (j = 1; j<= N; ++j) { if ((_1Afin[_1Aptr][j] != INT_MAX)&&(_1Bfin[_1Bptr][j] != INT_MAX)&&(_1Cfin[_1Cptr][j] != INT_MAX)) { sets1++; _1Afin[_1Aptr][j] = _1Afin[_1Aptr][j] + _1Bfin[_1Bptr][j] + _1Cfin[_1Cptr][j]; } else { break; } } customKnapSack(_2A, _2Aptr, _2Afin); customKnapSack(_2B, _2Bptr, _2Bfin); customKnapSack(_2C, _2Cptr, _2Cfin); unsigned int sets2 = 0; for (j = 1; j<= N; ++j) { if((_2Afin[_2Aptr][j] != INT_MAX)&&(_2Bfin[_2Bptr][j] != INT_MAX)&&(_2Cfin[_2Cptr][j] != INT_MAX)) { sets2++; _2Afin[_2Aptr][j] = _2Afin[_2Aptr][j] + _2Bfin[_2Bptr][j] + _2Cfin[_2Cptr][j]; } else { break; } } customKnapSack(_3A, _3Aptr, _3Afin); customKnapSack(_3B, _3Bptr, _3Bfin); customKnapSack(_3C, _3Cptr, _3Cfin); unsigned int sets3 = 0; for (j = 1; j<= N; ++j) { if((_3Afin[_3Aptr][j] != INT_MAX)&&(_3Bfin[_3Bptr][j] != INT_MAX)&&(_3Cfin[_3Cptr][j] != INT_MAX)) { sets3++; _3Afin[_3Aptr][j] = _3Afin[_3Aptr][j] + _3Bfin[_3Bptr][j] + _3Cfin[_3Cptr][j]; } else { break; } } fin = LONG_MAX; // Compute the final answer. for (i = 0; i <= sets1; ++i) { for (j = 0; j <= sets2; ++j) { for (k = 0; k <= sets3; ++k) { if (i + j + k == N) { if ((_1Afin[_1Aptr][i] + _2Afin[_2Aptr][j] + _3Afin[_3Aptr][k] < fin)&&((_1Afin[_1Aptr][i]!=INT_MAX)||(_2Afin[_2Aptr][j] != INT_MAX)||(_3Afin[_3Aptr][k] != INT_MAX))) { fin = _1Afin[_1Aptr][i] + _2Afin[_2Aptr][j] + _3Afin[_3Aptr][k]; } } } } } if (fin == LONG_MAX) { fin = -1; } printf("%ld\n", fin); }
the_stack_data/944121.c
//@ ltl invariant negative: ((<> AP(x_7 - x_24 > 3)) && (X AP(x_20 - x_8 > -9))); 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_1) > ((14.0 + x_2) > (11.0 + x_3)? (14.0 + x_2) : (11.0 + x_3))? (6.0 + x_1) : ((14.0 + x_2) > (11.0 + x_3)? (14.0 + x_2) : (11.0 + x_3))) > (((1.0 + x_4) > (7.0 + x_6)? (1.0 + x_4) : (7.0 + x_6)) > ((8.0 + x_7) > (1.0 + x_11)? (8.0 + x_7) : (1.0 + x_11))? ((1.0 + x_4) > (7.0 + x_6)? (1.0 + x_4) : (7.0 + x_6)) : ((8.0 + x_7) > (1.0 + x_11)? (8.0 + x_7) : (1.0 + x_11)))? ((6.0 + x_1) > ((14.0 + x_2) > (11.0 + x_3)? (14.0 + x_2) : (11.0 + x_3))? (6.0 + x_1) : ((14.0 + x_2) > (11.0 + x_3)? (14.0 + x_2) : (11.0 + x_3))) : (((1.0 + x_4) > (7.0 + x_6)? (1.0 + x_4) : (7.0 + x_6)) > ((8.0 + x_7) > (1.0 + x_11)? (8.0 + x_7) : (1.0 + x_11))? ((1.0 + x_4) > (7.0 + x_6)? (1.0 + x_4) : (7.0 + x_6)) : ((8.0 + x_7) > (1.0 + x_11)? (8.0 + x_7) : (1.0 + x_11)))) > (((3.0 + x_13) > ((11.0 + x_16) > (12.0 + x_19)? (11.0 + x_16) : (12.0 + x_19))? (3.0 + x_13) : ((11.0 + x_16) > (12.0 + x_19)? (11.0 + x_16) : (12.0 + x_19))) > (((9.0 + x_20) > (5.0 + x_22)? (9.0 + x_20) : (5.0 + x_22)) > ((18.0 + x_25) > (10.0 + x_27)? (18.0 + x_25) : (10.0 + x_27))? ((9.0 + x_20) > (5.0 + x_22)? (9.0 + x_20) : (5.0 + x_22)) : ((18.0 + x_25) > (10.0 + x_27)? (18.0 + x_25) : (10.0 + x_27)))? ((3.0 + x_13) > ((11.0 + x_16) > (12.0 + x_19)? (11.0 + x_16) : (12.0 + x_19))? (3.0 + x_13) : ((11.0 + x_16) > (12.0 + x_19)? (11.0 + x_16) : (12.0 + x_19))) : (((9.0 + x_20) > (5.0 + x_22)? (9.0 + x_20) : (5.0 + x_22)) > ((18.0 + x_25) > (10.0 + x_27)? (18.0 + x_25) : (10.0 + x_27))? ((9.0 + x_20) > (5.0 + x_22)? (9.0 + x_20) : (5.0 + x_22)) : ((18.0 + x_25) > (10.0 + x_27)? (18.0 + x_25) : (10.0 + x_27))))? (((6.0 + x_1) > ((14.0 + x_2) > (11.0 + x_3)? (14.0 + x_2) : (11.0 + x_3))? (6.0 + x_1) : ((14.0 + x_2) > (11.0 + x_3)? (14.0 + x_2) : (11.0 + x_3))) > (((1.0 + x_4) > (7.0 + x_6)? (1.0 + x_4) : (7.0 + x_6)) > ((8.0 + x_7) > (1.0 + x_11)? (8.0 + x_7) : (1.0 + x_11))? ((1.0 + x_4) > (7.0 + x_6)? (1.0 + x_4) : (7.0 + x_6)) : ((8.0 + x_7) > (1.0 + x_11)? (8.0 + x_7) : (1.0 + x_11)))? ((6.0 + x_1) > ((14.0 + x_2) > (11.0 + x_3)? (14.0 + x_2) : (11.0 + x_3))? (6.0 + x_1) : ((14.0 + x_2) > (11.0 + x_3)? (14.0 + x_2) : (11.0 + x_3))) : (((1.0 + x_4) > (7.0 + x_6)? (1.0 + x_4) : (7.0 + x_6)) > ((8.0 + x_7) > (1.0 + x_11)? (8.0 + x_7) : (1.0 + x_11))? ((1.0 + x_4) > (7.0 + x_6)? (1.0 + x_4) : (7.0 + x_6)) : ((8.0 + x_7) > (1.0 + x_11)? (8.0 + x_7) : (1.0 + x_11)))) : (((3.0 + x_13) > ((11.0 + x_16) > (12.0 + x_19)? (11.0 + x_16) : (12.0 + x_19))? (3.0 + x_13) : ((11.0 + x_16) > (12.0 + x_19)? (11.0 + x_16) : (12.0 + x_19))) > (((9.0 + x_20) > (5.0 + x_22)? (9.0 + x_20) : (5.0 + x_22)) > ((18.0 + x_25) > (10.0 + x_27)? (18.0 + x_25) : (10.0 + x_27))? ((9.0 + x_20) > (5.0 + x_22)? (9.0 + x_20) : (5.0 + x_22)) : ((18.0 + x_25) > (10.0 + x_27)? (18.0 + x_25) : (10.0 + x_27)))? ((3.0 + x_13) > ((11.0 + x_16) > (12.0 + x_19)? (11.0 + x_16) : (12.0 + x_19))? (3.0 + x_13) : ((11.0 + x_16) > (12.0 + x_19)? (11.0 + x_16) : (12.0 + x_19))) : (((9.0 + x_20) > (5.0 + x_22)? (9.0 + x_20) : (5.0 + x_22)) > ((18.0 + x_25) > (10.0 + x_27)? (18.0 + x_25) : (10.0 + x_27))? ((9.0 + x_20) > (5.0 + x_22)? (9.0 + x_20) : (5.0 + x_22)) : ((18.0 + x_25) > (10.0 + x_27)? (18.0 + x_25) : (10.0 + x_27))))); x_1_ = ((((5.0 + x_0) > ((7.0 + x_1) > (19.0 + x_2)? (7.0 + x_1) : (19.0 + x_2))? (5.0 + x_0) : ((7.0 + x_1) > (19.0 + x_2)? (7.0 + x_1) : (19.0 + x_2))) > (((2.0 + x_3) > (3.0 + x_5)? (2.0 + x_3) : (3.0 + x_5)) > ((11.0 + x_8) > (14.0 + x_9)? (11.0 + x_8) : (14.0 + x_9))? ((2.0 + x_3) > (3.0 + x_5)? (2.0 + x_3) : (3.0 + x_5)) : ((11.0 + x_8) > (14.0 + x_9)? (11.0 + x_8) : (14.0 + x_9)))? ((5.0 + x_0) > ((7.0 + x_1) > (19.0 + x_2)? (7.0 + x_1) : (19.0 + x_2))? (5.0 + x_0) : ((7.0 + x_1) > (19.0 + x_2)? (7.0 + x_1) : (19.0 + x_2))) : (((2.0 + x_3) > (3.0 + x_5)? (2.0 + x_3) : (3.0 + x_5)) > ((11.0 + x_8) > (14.0 + x_9)? (11.0 + x_8) : (14.0 + x_9))? ((2.0 + x_3) > (3.0 + x_5)? (2.0 + x_3) : (3.0 + x_5)) : ((11.0 + x_8) > (14.0 + x_9)? (11.0 + x_8) : (14.0 + x_9)))) > (((14.0 + x_10) > ((10.0 + x_13) > (8.0 + x_14)? (10.0 + x_13) : (8.0 + x_14))? (14.0 + x_10) : ((10.0 + x_13) > (8.0 + x_14)? (10.0 + x_13) : (8.0 + x_14))) > (((2.0 + x_15) > (19.0 + x_16)? (2.0 + x_15) : (19.0 + x_16)) > ((17.0 + x_22) > (5.0 + x_25)? (17.0 + x_22) : (5.0 + x_25))? ((2.0 + x_15) > (19.0 + x_16)? (2.0 + x_15) : (19.0 + x_16)) : ((17.0 + x_22) > (5.0 + x_25)? (17.0 + x_22) : (5.0 + x_25)))? ((14.0 + x_10) > ((10.0 + x_13) > (8.0 + x_14)? (10.0 + x_13) : (8.0 + x_14))? (14.0 + x_10) : ((10.0 + x_13) > (8.0 + x_14)? (10.0 + x_13) : (8.0 + x_14))) : (((2.0 + x_15) > (19.0 + x_16)? (2.0 + x_15) : (19.0 + x_16)) > ((17.0 + x_22) > (5.0 + x_25)? (17.0 + x_22) : (5.0 + x_25))? ((2.0 + x_15) > (19.0 + x_16)? (2.0 + x_15) : (19.0 + x_16)) : ((17.0 + x_22) > (5.0 + x_25)? (17.0 + x_22) : (5.0 + x_25))))? (((5.0 + x_0) > ((7.0 + x_1) > (19.0 + x_2)? (7.0 + x_1) : (19.0 + x_2))? (5.0 + x_0) : ((7.0 + x_1) > (19.0 + x_2)? (7.0 + x_1) : (19.0 + x_2))) > (((2.0 + x_3) > (3.0 + x_5)? (2.0 + x_3) : (3.0 + x_5)) > ((11.0 + x_8) > (14.0 + x_9)? (11.0 + x_8) : (14.0 + x_9))? ((2.0 + x_3) > (3.0 + x_5)? (2.0 + x_3) : (3.0 + x_5)) : ((11.0 + x_8) > (14.0 + x_9)? (11.0 + x_8) : (14.0 + x_9)))? ((5.0 + x_0) > ((7.0 + x_1) > (19.0 + x_2)? (7.0 + x_1) : (19.0 + x_2))? (5.0 + x_0) : ((7.0 + x_1) > (19.0 + x_2)? (7.0 + x_1) : (19.0 + x_2))) : (((2.0 + x_3) > (3.0 + x_5)? (2.0 + x_3) : (3.0 + x_5)) > ((11.0 + x_8) > (14.0 + x_9)? (11.0 + x_8) : (14.0 + x_9))? ((2.0 + x_3) > (3.0 + x_5)? (2.0 + x_3) : (3.0 + x_5)) : ((11.0 + x_8) > (14.0 + x_9)? (11.0 + x_8) : (14.0 + x_9)))) : (((14.0 + x_10) > ((10.0 + x_13) > (8.0 + x_14)? (10.0 + x_13) : (8.0 + x_14))? (14.0 + x_10) : ((10.0 + x_13) > (8.0 + x_14)? (10.0 + x_13) : (8.0 + x_14))) > (((2.0 + x_15) > (19.0 + x_16)? (2.0 + x_15) : (19.0 + x_16)) > ((17.0 + x_22) > (5.0 + x_25)? (17.0 + x_22) : (5.0 + x_25))? ((2.0 + x_15) > (19.0 + x_16)? (2.0 + x_15) : (19.0 + x_16)) : ((17.0 + x_22) > (5.0 + x_25)? (17.0 + x_22) : (5.0 + x_25)))? ((14.0 + x_10) > ((10.0 + x_13) > (8.0 + x_14)? (10.0 + x_13) : (8.0 + x_14))? (14.0 + x_10) : ((10.0 + x_13) > (8.0 + x_14)? (10.0 + x_13) : (8.0 + x_14))) : (((2.0 + x_15) > (19.0 + x_16)? (2.0 + x_15) : (19.0 + x_16)) > ((17.0 + x_22) > (5.0 + x_25)? (17.0 + x_22) : (5.0 + x_25))? ((2.0 + x_15) > (19.0 + x_16)? (2.0 + x_15) : (19.0 + x_16)) : ((17.0 + x_22) > (5.0 + x_25)? (17.0 + x_22) : (5.0 + x_25))))); x_2_ = ((((18.0 + x_3) > ((11.0 + x_8) > (10.0 + x_9)? (11.0 + x_8) : (10.0 + x_9))? (18.0 + x_3) : ((11.0 + x_8) > (10.0 + x_9)? (11.0 + x_8) : (10.0 + x_9))) > (((9.0 + x_10) > (9.0 + x_13)? (9.0 + x_10) : (9.0 + x_13)) > ((17.0 + x_14) > (16.0 + x_16)? (17.0 + x_14) : (16.0 + x_16))? ((9.0 + x_10) > (9.0 + x_13)? (9.0 + x_10) : (9.0 + x_13)) : ((17.0 + x_14) > (16.0 + x_16)? (17.0 + x_14) : (16.0 + x_16)))? ((18.0 + x_3) > ((11.0 + x_8) > (10.0 + x_9)? (11.0 + x_8) : (10.0 + x_9))? (18.0 + x_3) : ((11.0 + x_8) > (10.0 + x_9)? (11.0 + x_8) : (10.0 + x_9))) : (((9.0 + x_10) > (9.0 + x_13)? (9.0 + x_10) : (9.0 + x_13)) > ((17.0 + x_14) > (16.0 + x_16)? (17.0 + x_14) : (16.0 + x_16))? ((9.0 + x_10) > (9.0 + x_13)? (9.0 + x_10) : (9.0 + x_13)) : ((17.0 + x_14) > (16.0 + x_16)? (17.0 + x_14) : (16.0 + x_16)))) > (((6.0 + x_17) > ((8.0 + x_18) > (11.0 + x_19)? (8.0 + x_18) : (11.0 + x_19))? (6.0 + x_17) : ((8.0 + x_18) > (11.0 + x_19)? (8.0 + x_18) : (11.0 + x_19))) > (((12.0 + x_20) > (13.0 + x_25)? (12.0 + x_20) : (13.0 + x_25)) > ((8.0 + x_26) > (9.0 + x_27)? (8.0 + x_26) : (9.0 + x_27))? ((12.0 + x_20) > (13.0 + x_25)? (12.0 + x_20) : (13.0 + x_25)) : ((8.0 + x_26) > (9.0 + x_27)? (8.0 + x_26) : (9.0 + x_27)))? ((6.0 + x_17) > ((8.0 + x_18) > (11.0 + x_19)? (8.0 + x_18) : (11.0 + x_19))? (6.0 + x_17) : ((8.0 + x_18) > (11.0 + x_19)? (8.0 + x_18) : (11.0 + x_19))) : (((12.0 + x_20) > (13.0 + x_25)? (12.0 + x_20) : (13.0 + x_25)) > ((8.0 + x_26) > (9.0 + x_27)? (8.0 + x_26) : (9.0 + x_27))? ((12.0 + x_20) > (13.0 + x_25)? (12.0 + x_20) : (13.0 + x_25)) : ((8.0 + x_26) > (9.0 + x_27)? (8.0 + x_26) : (9.0 + x_27))))? (((18.0 + x_3) > ((11.0 + x_8) > (10.0 + x_9)? (11.0 + x_8) : (10.0 + x_9))? (18.0 + x_3) : ((11.0 + x_8) > (10.0 + x_9)? (11.0 + x_8) : (10.0 + x_9))) > (((9.0 + x_10) > (9.0 + x_13)? (9.0 + x_10) : (9.0 + x_13)) > ((17.0 + x_14) > (16.0 + x_16)? (17.0 + x_14) : (16.0 + x_16))? ((9.0 + x_10) > (9.0 + x_13)? (9.0 + x_10) : (9.0 + x_13)) : ((17.0 + x_14) > (16.0 + x_16)? (17.0 + x_14) : (16.0 + x_16)))? ((18.0 + x_3) > ((11.0 + x_8) > (10.0 + x_9)? (11.0 + x_8) : (10.0 + x_9))? (18.0 + x_3) : ((11.0 + x_8) > (10.0 + x_9)? (11.0 + x_8) : (10.0 + x_9))) : (((9.0 + x_10) > (9.0 + x_13)? (9.0 + x_10) : (9.0 + x_13)) > ((17.0 + x_14) > (16.0 + x_16)? (17.0 + x_14) : (16.0 + x_16))? ((9.0 + x_10) > (9.0 + x_13)? (9.0 + x_10) : (9.0 + x_13)) : ((17.0 + x_14) > (16.0 + x_16)? (17.0 + x_14) : (16.0 + x_16)))) : (((6.0 + x_17) > ((8.0 + x_18) > (11.0 + x_19)? (8.0 + x_18) : (11.0 + x_19))? (6.0 + x_17) : ((8.0 + x_18) > (11.0 + x_19)? (8.0 + x_18) : (11.0 + x_19))) > (((12.0 + x_20) > (13.0 + x_25)? (12.0 + x_20) : (13.0 + x_25)) > ((8.0 + x_26) > (9.0 + x_27)? (8.0 + x_26) : (9.0 + x_27))? ((12.0 + x_20) > (13.0 + x_25)? (12.0 + x_20) : (13.0 + x_25)) : ((8.0 + x_26) > (9.0 + x_27)? (8.0 + x_26) : (9.0 + x_27)))? ((6.0 + x_17) > ((8.0 + x_18) > (11.0 + x_19)? (8.0 + x_18) : (11.0 + x_19))? (6.0 + x_17) : ((8.0 + x_18) > (11.0 + x_19)? (8.0 + x_18) : (11.0 + x_19))) : (((12.0 + x_20) > (13.0 + x_25)? (12.0 + x_20) : (13.0 + x_25)) > ((8.0 + x_26) > (9.0 + x_27)? (8.0 + x_26) : (9.0 + x_27))? ((12.0 + x_20) > (13.0 + x_25)? (12.0 + x_20) : (13.0 + x_25)) : ((8.0 + x_26) > (9.0 + x_27)? (8.0 + x_26) : (9.0 + x_27))))); x_3_ = ((((9.0 + x_0) > ((3.0 + x_2) > (15.0 + x_4)? (3.0 + x_2) : (15.0 + x_4))? (9.0 + x_0) : ((3.0 + x_2) > (15.0 + x_4)? (3.0 + x_2) : (15.0 + x_4))) > (((10.0 + x_6) > (15.0 + x_7)? (10.0 + x_6) : (15.0 + x_7)) > ((20.0 + x_8) > (14.0 + x_12)? (20.0 + x_8) : (14.0 + x_12))? ((10.0 + x_6) > (15.0 + x_7)? (10.0 + x_6) : (15.0 + x_7)) : ((20.0 + x_8) > (14.0 + x_12)? (20.0 + x_8) : (14.0 + x_12)))? ((9.0 + x_0) > ((3.0 + x_2) > (15.0 + x_4)? (3.0 + x_2) : (15.0 + x_4))? (9.0 + x_0) : ((3.0 + x_2) > (15.0 + x_4)? (3.0 + x_2) : (15.0 + x_4))) : (((10.0 + x_6) > (15.0 + x_7)? (10.0 + x_6) : (15.0 + x_7)) > ((20.0 + x_8) > (14.0 + x_12)? (20.0 + x_8) : (14.0 + x_12))? ((10.0 + x_6) > (15.0 + x_7)? (10.0 + x_6) : (15.0 + x_7)) : ((20.0 + x_8) > (14.0 + x_12)? (20.0 + x_8) : (14.0 + x_12)))) > (((12.0 + x_15) > ((7.0 + x_16) > (11.0 + x_18)? (7.0 + x_16) : (11.0 + x_18))? (12.0 + x_15) : ((7.0 + x_16) > (11.0 + x_18)? (7.0 + x_16) : (11.0 + x_18))) > (((16.0 + x_22) > (19.0 + x_23)? (16.0 + x_22) : (19.0 + x_23)) > ((8.0 + x_24) > (7.0 + x_25)? (8.0 + x_24) : (7.0 + x_25))? ((16.0 + x_22) > (19.0 + x_23)? (16.0 + x_22) : (19.0 + x_23)) : ((8.0 + x_24) > (7.0 + x_25)? (8.0 + x_24) : (7.0 + x_25)))? ((12.0 + x_15) > ((7.0 + x_16) > (11.0 + x_18)? (7.0 + x_16) : (11.0 + x_18))? (12.0 + x_15) : ((7.0 + x_16) > (11.0 + x_18)? (7.0 + x_16) : (11.0 + x_18))) : (((16.0 + x_22) > (19.0 + x_23)? (16.0 + x_22) : (19.0 + x_23)) > ((8.0 + x_24) > (7.0 + x_25)? (8.0 + x_24) : (7.0 + x_25))? ((16.0 + x_22) > (19.0 + x_23)? (16.0 + x_22) : (19.0 + x_23)) : ((8.0 + x_24) > (7.0 + x_25)? (8.0 + x_24) : (7.0 + x_25))))? (((9.0 + x_0) > ((3.0 + x_2) > (15.0 + x_4)? (3.0 + x_2) : (15.0 + x_4))? (9.0 + x_0) : ((3.0 + x_2) > (15.0 + x_4)? (3.0 + x_2) : (15.0 + x_4))) > (((10.0 + x_6) > (15.0 + x_7)? (10.0 + x_6) : (15.0 + x_7)) > ((20.0 + x_8) > (14.0 + x_12)? (20.0 + x_8) : (14.0 + x_12))? ((10.0 + x_6) > (15.0 + x_7)? (10.0 + x_6) : (15.0 + x_7)) : ((20.0 + x_8) > (14.0 + x_12)? (20.0 + x_8) : (14.0 + x_12)))? ((9.0 + x_0) > ((3.0 + x_2) > (15.0 + x_4)? (3.0 + x_2) : (15.0 + x_4))? (9.0 + x_0) : ((3.0 + x_2) > (15.0 + x_4)? (3.0 + x_2) : (15.0 + x_4))) : (((10.0 + x_6) > (15.0 + x_7)? (10.0 + x_6) : (15.0 + x_7)) > ((20.0 + x_8) > (14.0 + x_12)? (20.0 + x_8) : (14.0 + x_12))? ((10.0 + x_6) > (15.0 + x_7)? (10.0 + x_6) : (15.0 + x_7)) : ((20.0 + x_8) > (14.0 + x_12)? (20.0 + x_8) : (14.0 + x_12)))) : (((12.0 + x_15) > ((7.0 + x_16) > (11.0 + x_18)? (7.0 + x_16) : (11.0 + x_18))? (12.0 + x_15) : ((7.0 + x_16) > (11.0 + x_18)? (7.0 + x_16) : (11.0 + x_18))) > (((16.0 + x_22) > (19.0 + x_23)? (16.0 + x_22) : (19.0 + x_23)) > ((8.0 + x_24) > (7.0 + x_25)? (8.0 + x_24) : (7.0 + x_25))? ((16.0 + x_22) > (19.0 + x_23)? (16.0 + x_22) : (19.0 + x_23)) : ((8.0 + x_24) > (7.0 + x_25)? (8.0 + x_24) : (7.0 + x_25)))? ((12.0 + x_15) > ((7.0 + x_16) > (11.0 + x_18)? (7.0 + x_16) : (11.0 + x_18))? (12.0 + x_15) : ((7.0 + x_16) > (11.0 + x_18)? (7.0 + x_16) : (11.0 + x_18))) : (((16.0 + x_22) > (19.0 + x_23)? (16.0 + x_22) : (19.0 + x_23)) > ((8.0 + x_24) > (7.0 + x_25)? (8.0 + x_24) : (7.0 + x_25))? ((16.0 + x_22) > (19.0 + x_23)? (16.0 + x_22) : (19.0 + x_23)) : ((8.0 + x_24) > (7.0 + x_25)? (8.0 + x_24) : (7.0 + x_25))))); x_4_ = ((((3.0 + x_1) > ((4.0 + x_2) > (10.0 + x_7)? (4.0 + x_2) : (10.0 + x_7))? (3.0 + x_1) : ((4.0 + x_2) > (10.0 + x_7)? (4.0 + x_2) : (10.0 + x_7))) > (((5.0 + x_13) > (15.0 + x_14)? (5.0 + x_13) : (15.0 + x_14)) > ((5.0 + x_18) > (13.0 + x_19)? (5.0 + x_18) : (13.0 + x_19))? ((5.0 + x_13) > (15.0 + x_14)? (5.0 + x_13) : (15.0 + x_14)) : ((5.0 + x_18) > (13.0 + x_19)? (5.0 + x_18) : (13.0 + x_19)))? ((3.0 + x_1) > ((4.0 + x_2) > (10.0 + x_7)? (4.0 + x_2) : (10.0 + x_7))? (3.0 + x_1) : ((4.0 + x_2) > (10.0 + x_7)? (4.0 + x_2) : (10.0 + x_7))) : (((5.0 + x_13) > (15.0 + x_14)? (5.0 + x_13) : (15.0 + x_14)) > ((5.0 + x_18) > (13.0 + x_19)? (5.0 + x_18) : (13.0 + x_19))? ((5.0 + x_13) > (15.0 + x_14)? (5.0 + x_13) : (15.0 + x_14)) : ((5.0 + x_18) > (13.0 + x_19)? (5.0 + x_18) : (13.0 + x_19)))) > (((17.0 + x_20) > ((15.0 + x_21) > (10.0 + x_22)? (15.0 + x_21) : (10.0 + x_22))? (17.0 + x_20) : ((15.0 + x_21) > (10.0 + x_22)? (15.0 + x_21) : (10.0 + x_22))) > (((2.0 + x_23) > (16.0 + x_25)? (2.0 + x_23) : (16.0 + x_25)) > ((16.0 + x_26) > (14.0 + x_27)? (16.0 + x_26) : (14.0 + x_27))? ((2.0 + x_23) > (16.0 + x_25)? (2.0 + x_23) : (16.0 + x_25)) : ((16.0 + x_26) > (14.0 + x_27)? (16.0 + x_26) : (14.0 + x_27)))? ((17.0 + x_20) > ((15.0 + x_21) > (10.0 + x_22)? (15.0 + x_21) : (10.0 + x_22))? (17.0 + x_20) : ((15.0 + x_21) > (10.0 + x_22)? (15.0 + x_21) : (10.0 + x_22))) : (((2.0 + x_23) > (16.0 + x_25)? (2.0 + x_23) : (16.0 + x_25)) > ((16.0 + x_26) > (14.0 + x_27)? (16.0 + x_26) : (14.0 + x_27))? ((2.0 + x_23) > (16.0 + x_25)? (2.0 + x_23) : (16.0 + x_25)) : ((16.0 + x_26) > (14.0 + x_27)? (16.0 + x_26) : (14.0 + x_27))))? (((3.0 + x_1) > ((4.0 + x_2) > (10.0 + x_7)? (4.0 + x_2) : (10.0 + x_7))? (3.0 + x_1) : ((4.0 + x_2) > (10.0 + x_7)? (4.0 + x_2) : (10.0 + x_7))) > (((5.0 + x_13) > (15.0 + x_14)? (5.0 + x_13) : (15.0 + x_14)) > ((5.0 + x_18) > (13.0 + x_19)? (5.0 + x_18) : (13.0 + x_19))? ((5.0 + x_13) > (15.0 + x_14)? (5.0 + x_13) : (15.0 + x_14)) : ((5.0 + x_18) > (13.0 + x_19)? (5.0 + x_18) : (13.0 + x_19)))? ((3.0 + x_1) > ((4.0 + x_2) > (10.0 + x_7)? (4.0 + x_2) : (10.0 + x_7))? (3.0 + x_1) : ((4.0 + x_2) > (10.0 + x_7)? (4.0 + x_2) : (10.0 + x_7))) : (((5.0 + x_13) > (15.0 + x_14)? (5.0 + x_13) : (15.0 + x_14)) > ((5.0 + x_18) > (13.0 + x_19)? (5.0 + x_18) : (13.0 + x_19))? ((5.0 + x_13) > (15.0 + x_14)? (5.0 + x_13) : (15.0 + x_14)) : ((5.0 + x_18) > (13.0 + x_19)? (5.0 + x_18) : (13.0 + x_19)))) : (((17.0 + x_20) > ((15.0 + x_21) > (10.0 + x_22)? (15.0 + x_21) : (10.0 + x_22))? (17.0 + x_20) : ((15.0 + x_21) > (10.0 + x_22)? (15.0 + x_21) : (10.0 + x_22))) > (((2.0 + x_23) > (16.0 + x_25)? (2.0 + x_23) : (16.0 + x_25)) > ((16.0 + x_26) > (14.0 + x_27)? (16.0 + x_26) : (14.0 + x_27))? ((2.0 + x_23) > (16.0 + x_25)? (2.0 + x_23) : (16.0 + x_25)) : ((16.0 + x_26) > (14.0 + x_27)? (16.0 + x_26) : (14.0 + x_27)))? ((17.0 + x_20) > ((15.0 + x_21) > (10.0 + x_22)? (15.0 + x_21) : (10.0 + x_22))? (17.0 + x_20) : ((15.0 + x_21) > (10.0 + x_22)? (15.0 + x_21) : (10.0 + x_22))) : (((2.0 + x_23) > (16.0 + x_25)? (2.0 + x_23) : (16.0 + x_25)) > ((16.0 + x_26) > (14.0 + x_27)? (16.0 + x_26) : (14.0 + x_27))? ((2.0 + x_23) > (16.0 + x_25)? (2.0 + x_23) : (16.0 + x_25)) : ((16.0 + x_26) > (14.0 + x_27)? (16.0 + x_26) : (14.0 + x_27))))); x_5_ = ((((1.0 + x_0) > ((7.0 + x_1) > (2.0 + x_4)? (7.0 + x_1) : (2.0 + x_4))? (1.0 + x_0) : ((7.0 + x_1) > (2.0 + x_4)? (7.0 + x_1) : (2.0 + x_4))) > (((17.0 + x_5) > (3.0 + x_8)? (17.0 + x_5) : (3.0 + x_8)) > ((15.0 + x_9) > (15.0 + x_11)? (15.0 + x_9) : (15.0 + x_11))? ((17.0 + x_5) > (3.0 + x_8)? (17.0 + x_5) : (3.0 + x_8)) : ((15.0 + x_9) > (15.0 + x_11)? (15.0 + x_9) : (15.0 + x_11)))? ((1.0 + x_0) > ((7.0 + x_1) > (2.0 + x_4)? (7.0 + x_1) : (2.0 + x_4))? (1.0 + x_0) : ((7.0 + x_1) > (2.0 + x_4)? (7.0 + x_1) : (2.0 + x_4))) : (((17.0 + x_5) > (3.0 + x_8)? (17.0 + x_5) : (3.0 + x_8)) > ((15.0 + x_9) > (15.0 + x_11)? (15.0 + x_9) : (15.0 + x_11))? ((17.0 + x_5) > (3.0 + x_8)? (17.0 + x_5) : (3.0 + x_8)) : ((15.0 + x_9) > (15.0 + x_11)? (15.0 + x_9) : (15.0 + x_11)))) > (((2.0 + x_12) > ((3.0 + x_13) > (12.0 + x_16)? (3.0 + x_13) : (12.0 + x_16))? (2.0 + x_12) : ((3.0 + x_13) > (12.0 + x_16)? (3.0 + x_13) : (12.0 + x_16))) > (((19.0 + x_18) > (11.0 + x_23)? (19.0 + x_18) : (11.0 + x_23)) > ((13.0 + x_25) > (15.0 + x_26)? (13.0 + x_25) : (15.0 + x_26))? ((19.0 + x_18) > (11.0 + x_23)? (19.0 + x_18) : (11.0 + x_23)) : ((13.0 + x_25) > (15.0 + x_26)? (13.0 + x_25) : (15.0 + x_26)))? ((2.0 + x_12) > ((3.0 + x_13) > (12.0 + x_16)? (3.0 + x_13) : (12.0 + x_16))? (2.0 + x_12) : ((3.0 + x_13) > (12.0 + x_16)? (3.0 + x_13) : (12.0 + x_16))) : (((19.0 + x_18) > (11.0 + x_23)? (19.0 + x_18) : (11.0 + x_23)) > ((13.0 + x_25) > (15.0 + x_26)? (13.0 + x_25) : (15.0 + x_26))? ((19.0 + x_18) > (11.0 + x_23)? (19.0 + x_18) : (11.0 + x_23)) : ((13.0 + x_25) > (15.0 + x_26)? (13.0 + x_25) : (15.0 + x_26))))? (((1.0 + x_0) > ((7.0 + x_1) > (2.0 + x_4)? (7.0 + x_1) : (2.0 + x_4))? (1.0 + x_0) : ((7.0 + x_1) > (2.0 + x_4)? (7.0 + x_1) : (2.0 + x_4))) > (((17.0 + x_5) > (3.0 + x_8)? (17.0 + x_5) : (3.0 + x_8)) > ((15.0 + x_9) > (15.0 + x_11)? (15.0 + x_9) : (15.0 + x_11))? ((17.0 + x_5) > (3.0 + x_8)? (17.0 + x_5) : (3.0 + x_8)) : ((15.0 + x_9) > (15.0 + x_11)? (15.0 + x_9) : (15.0 + x_11)))? ((1.0 + x_0) > ((7.0 + x_1) > (2.0 + x_4)? (7.0 + x_1) : (2.0 + x_4))? (1.0 + x_0) : ((7.0 + x_1) > (2.0 + x_4)? (7.0 + x_1) : (2.0 + x_4))) : (((17.0 + x_5) > (3.0 + x_8)? (17.0 + x_5) : (3.0 + x_8)) > ((15.0 + x_9) > (15.0 + x_11)? (15.0 + x_9) : (15.0 + x_11))? ((17.0 + x_5) > (3.0 + x_8)? (17.0 + x_5) : (3.0 + x_8)) : ((15.0 + x_9) > (15.0 + x_11)? (15.0 + x_9) : (15.0 + x_11)))) : (((2.0 + x_12) > ((3.0 + x_13) > (12.0 + x_16)? (3.0 + x_13) : (12.0 + x_16))? (2.0 + x_12) : ((3.0 + x_13) > (12.0 + x_16)? (3.0 + x_13) : (12.0 + x_16))) > (((19.0 + x_18) > (11.0 + x_23)? (19.0 + x_18) : (11.0 + x_23)) > ((13.0 + x_25) > (15.0 + x_26)? (13.0 + x_25) : (15.0 + x_26))? ((19.0 + x_18) > (11.0 + x_23)? (19.0 + x_18) : (11.0 + x_23)) : ((13.0 + x_25) > (15.0 + x_26)? (13.0 + x_25) : (15.0 + x_26)))? ((2.0 + x_12) > ((3.0 + x_13) > (12.0 + x_16)? (3.0 + x_13) : (12.0 + x_16))? (2.0 + x_12) : ((3.0 + x_13) > (12.0 + x_16)? (3.0 + x_13) : (12.0 + x_16))) : (((19.0 + x_18) > (11.0 + x_23)? (19.0 + x_18) : (11.0 + x_23)) > ((13.0 + x_25) > (15.0 + x_26)? (13.0 + x_25) : (15.0 + x_26))? ((19.0 + x_18) > (11.0 + x_23)? (19.0 + x_18) : (11.0 + x_23)) : ((13.0 + x_25) > (15.0 + x_26)? (13.0 + x_25) : (15.0 + x_26))))); x_6_ = ((((12.0 + x_3) > ((8.0 + x_4) > (9.0 + x_5)? (8.0 + x_4) : (9.0 + x_5))? (12.0 + x_3) : ((8.0 + x_4) > (9.0 + x_5)? (8.0 + x_4) : (9.0 + x_5))) > (((19.0 + x_6) > (1.0 + x_7)? (19.0 + x_6) : (1.0 + x_7)) > ((19.0 + x_10) > (9.0 + x_11)? (19.0 + x_10) : (9.0 + x_11))? ((19.0 + x_6) > (1.0 + x_7)? (19.0 + x_6) : (1.0 + x_7)) : ((19.0 + x_10) > (9.0 + x_11)? (19.0 + x_10) : (9.0 + x_11)))? ((12.0 + x_3) > ((8.0 + x_4) > (9.0 + x_5)? (8.0 + x_4) : (9.0 + x_5))? (12.0 + x_3) : ((8.0 + x_4) > (9.0 + x_5)? (8.0 + x_4) : (9.0 + x_5))) : (((19.0 + x_6) > (1.0 + x_7)? (19.0 + x_6) : (1.0 + x_7)) > ((19.0 + x_10) > (9.0 + x_11)? (19.0 + x_10) : (9.0 + x_11))? ((19.0 + x_6) > (1.0 + x_7)? (19.0 + x_6) : (1.0 + x_7)) : ((19.0 + x_10) > (9.0 + x_11)? (19.0 + x_10) : (9.0 + x_11)))) > (((10.0 + x_13) > ((1.0 + x_14) > (7.0 + x_16)? (1.0 + x_14) : (7.0 + x_16))? (10.0 + x_13) : ((1.0 + x_14) > (7.0 + x_16)? (1.0 + x_14) : (7.0 + x_16))) > (((16.0 + x_20) > (2.0 + x_21)? (16.0 + x_20) : (2.0 + x_21)) > ((16.0 + x_24) > (17.0 + x_26)? (16.0 + x_24) : (17.0 + x_26))? ((16.0 + x_20) > (2.0 + x_21)? (16.0 + x_20) : (2.0 + x_21)) : ((16.0 + x_24) > (17.0 + x_26)? (16.0 + x_24) : (17.0 + x_26)))? ((10.0 + x_13) > ((1.0 + x_14) > (7.0 + x_16)? (1.0 + x_14) : (7.0 + x_16))? (10.0 + x_13) : ((1.0 + x_14) > (7.0 + x_16)? (1.0 + x_14) : (7.0 + x_16))) : (((16.0 + x_20) > (2.0 + x_21)? (16.0 + x_20) : (2.0 + x_21)) > ((16.0 + x_24) > (17.0 + x_26)? (16.0 + x_24) : (17.0 + x_26))? ((16.0 + x_20) > (2.0 + x_21)? (16.0 + x_20) : (2.0 + x_21)) : ((16.0 + x_24) > (17.0 + x_26)? (16.0 + x_24) : (17.0 + x_26))))? (((12.0 + x_3) > ((8.0 + x_4) > (9.0 + x_5)? (8.0 + x_4) : (9.0 + x_5))? (12.0 + x_3) : ((8.0 + x_4) > (9.0 + x_5)? (8.0 + x_4) : (9.0 + x_5))) > (((19.0 + x_6) > (1.0 + x_7)? (19.0 + x_6) : (1.0 + x_7)) > ((19.0 + x_10) > (9.0 + x_11)? (19.0 + x_10) : (9.0 + x_11))? ((19.0 + x_6) > (1.0 + x_7)? (19.0 + x_6) : (1.0 + x_7)) : ((19.0 + x_10) > (9.0 + x_11)? (19.0 + x_10) : (9.0 + x_11)))? ((12.0 + x_3) > ((8.0 + x_4) > (9.0 + x_5)? (8.0 + x_4) : (9.0 + x_5))? (12.0 + x_3) : ((8.0 + x_4) > (9.0 + x_5)? (8.0 + x_4) : (9.0 + x_5))) : (((19.0 + x_6) > (1.0 + x_7)? (19.0 + x_6) : (1.0 + x_7)) > ((19.0 + x_10) > (9.0 + x_11)? (19.0 + x_10) : (9.0 + x_11))? ((19.0 + x_6) > (1.0 + x_7)? (19.0 + x_6) : (1.0 + x_7)) : ((19.0 + x_10) > (9.0 + x_11)? (19.0 + x_10) : (9.0 + x_11)))) : (((10.0 + x_13) > ((1.0 + x_14) > (7.0 + x_16)? (1.0 + x_14) : (7.0 + x_16))? (10.0 + x_13) : ((1.0 + x_14) > (7.0 + x_16)? (1.0 + x_14) : (7.0 + x_16))) > (((16.0 + x_20) > (2.0 + x_21)? (16.0 + x_20) : (2.0 + x_21)) > ((16.0 + x_24) > (17.0 + x_26)? (16.0 + x_24) : (17.0 + x_26))? ((16.0 + x_20) > (2.0 + x_21)? (16.0 + x_20) : (2.0 + x_21)) : ((16.0 + x_24) > (17.0 + x_26)? (16.0 + x_24) : (17.0 + x_26)))? ((10.0 + x_13) > ((1.0 + x_14) > (7.0 + x_16)? (1.0 + x_14) : (7.0 + x_16))? (10.0 + x_13) : ((1.0 + x_14) > (7.0 + x_16)? (1.0 + x_14) : (7.0 + x_16))) : (((16.0 + x_20) > (2.0 + x_21)? (16.0 + x_20) : (2.0 + x_21)) > ((16.0 + x_24) > (17.0 + x_26)? (16.0 + x_24) : (17.0 + x_26))? ((16.0 + x_20) > (2.0 + x_21)? (16.0 + x_20) : (2.0 + x_21)) : ((16.0 + x_24) > (17.0 + x_26)? (16.0 + x_24) : (17.0 + x_26))))); x_7_ = ((((6.0 + x_0) > ((5.0 + x_2) > (8.0 + x_3)? (5.0 + x_2) : (8.0 + x_3))? (6.0 + x_0) : ((5.0 + x_2) > (8.0 + x_3)? (5.0 + x_2) : (8.0 + x_3))) > (((6.0 + x_4) > (19.0 + x_7)? (6.0 + x_4) : (19.0 + x_7)) > ((1.0 + x_9) > (5.0 + x_10)? (1.0 + x_9) : (5.0 + x_10))? ((6.0 + x_4) > (19.0 + x_7)? (6.0 + x_4) : (19.0 + x_7)) : ((1.0 + x_9) > (5.0 + x_10)? (1.0 + x_9) : (5.0 + x_10)))? ((6.0 + x_0) > ((5.0 + x_2) > (8.0 + x_3)? (5.0 + x_2) : (8.0 + x_3))? (6.0 + x_0) : ((5.0 + x_2) > (8.0 + x_3)? (5.0 + x_2) : (8.0 + x_3))) : (((6.0 + x_4) > (19.0 + x_7)? (6.0 + x_4) : (19.0 + x_7)) > ((1.0 + x_9) > (5.0 + x_10)? (1.0 + x_9) : (5.0 + x_10))? ((6.0 + x_4) > (19.0 + x_7)? (6.0 + x_4) : (19.0 + x_7)) : ((1.0 + x_9) > (5.0 + x_10)? (1.0 + x_9) : (5.0 + x_10)))) > (((8.0 + x_11) > ((2.0 + x_13) > (7.0 + x_16)? (2.0 + x_13) : (7.0 + x_16))? (8.0 + x_11) : ((2.0 + x_13) > (7.0 + x_16)? (2.0 + x_13) : (7.0 + x_16))) > (((13.0 + x_17) > (19.0 + x_18)? (13.0 + x_17) : (19.0 + x_18)) > ((6.0 + x_25) > (13.0 + x_27)? (6.0 + x_25) : (13.0 + x_27))? ((13.0 + x_17) > (19.0 + x_18)? (13.0 + x_17) : (19.0 + x_18)) : ((6.0 + x_25) > (13.0 + x_27)? (6.0 + x_25) : (13.0 + x_27)))? ((8.0 + x_11) > ((2.0 + x_13) > (7.0 + x_16)? (2.0 + x_13) : (7.0 + x_16))? (8.0 + x_11) : ((2.0 + x_13) > (7.0 + x_16)? (2.0 + x_13) : (7.0 + x_16))) : (((13.0 + x_17) > (19.0 + x_18)? (13.0 + x_17) : (19.0 + x_18)) > ((6.0 + x_25) > (13.0 + x_27)? (6.0 + x_25) : (13.0 + x_27))? ((13.0 + x_17) > (19.0 + x_18)? (13.0 + x_17) : (19.0 + x_18)) : ((6.0 + x_25) > (13.0 + x_27)? (6.0 + x_25) : (13.0 + x_27))))? (((6.0 + x_0) > ((5.0 + x_2) > (8.0 + x_3)? (5.0 + x_2) : (8.0 + x_3))? (6.0 + x_0) : ((5.0 + x_2) > (8.0 + x_3)? (5.0 + x_2) : (8.0 + x_3))) > (((6.0 + x_4) > (19.0 + x_7)? (6.0 + x_4) : (19.0 + x_7)) > ((1.0 + x_9) > (5.0 + x_10)? (1.0 + x_9) : (5.0 + x_10))? ((6.0 + x_4) > (19.0 + x_7)? (6.0 + x_4) : (19.0 + x_7)) : ((1.0 + x_9) > (5.0 + x_10)? (1.0 + x_9) : (5.0 + x_10)))? ((6.0 + x_0) > ((5.0 + x_2) > (8.0 + x_3)? (5.0 + x_2) : (8.0 + x_3))? (6.0 + x_0) : ((5.0 + x_2) > (8.0 + x_3)? (5.0 + x_2) : (8.0 + x_3))) : (((6.0 + x_4) > (19.0 + x_7)? (6.0 + x_4) : (19.0 + x_7)) > ((1.0 + x_9) > (5.0 + x_10)? (1.0 + x_9) : (5.0 + x_10))? ((6.0 + x_4) > (19.0 + x_7)? (6.0 + x_4) : (19.0 + x_7)) : ((1.0 + x_9) > (5.0 + x_10)? (1.0 + x_9) : (5.0 + x_10)))) : (((8.0 + x_11) > ((2.0 + x_13) > (7.0 + x_16)? (2.0 + x_13) : (7.0 + x_16))? (8.0 + x_11) : ((2.0 + x_13) > (7.0 + x_16)? (2.0 + x_13) : (7.0 + x_16))) > (((13.0 + x_17) > (19.0 + x_18)? (13.0 + x_17) : (19.0 + x_18)) > ((6.0 + x_25) > (13.0 + x_27)? (6.0 + x_25) : (13.0 + x_27))? ((13.0 + x_17) > (19.0 + x_18)? (13.0 + x_17) : (19.0 + x_18)) : ((6.0 + x_25) > (13.0 + x_27)? (6.0 + x_25) : (13.0 + x_27)))? ((8.0 + x_11) > ((2.0 + x_13) > (7.0 + x_16)? (2.0 + x_13) : (7.0 + x_16))? (8.0 + x_11) : ((2.0 + x_13) > (7.0 + x_16)? (2.0 + x_13) : (7.0 + x_16))) : (((13.0 + x_17) > (19.0 + x_18)? (13.0 + x_17) : (19.0 + x_18)) > ((6.0 + x_25) > (13.0 + x_27)? (6.0 + x_25) : (13.0 + x_27))? ((13.0 + x_17) > (19.0 + x_18)? (13.0 + x_17) : (19.0 + x_18)) : ((6.0 + x_25) > (13.0 + x_27)? (6.0 + x_25) : (13.0 + x_27))))); x_8_ = ((((6.0 + x_3) > ((19.0 + x_6) > (17.0 + x_7)? (19.0 + x_6) : (17.0 + x_7))? (6.0 + x_3) : ((19.0 + x_6) > (17.0 + x_7)? (19.0 + x_6) : (17.0 + x_7))) > (((3.0 + x_9) > (11.0 + x_10)? (3.0 + x_9) : (11.0 + x_10)) > ((19.0 + x_11) > (16.0 + x_13)? (19.0 + x_11) : (16.0 + x_13))? ((3.0 + x_9) > (11.0 + x_10)? (3.0 + x_9) : (11.0 + x_10)) : ((19.0 + x_11) > (16.0 + x_13)? (19.0 + x_11) : (16.0 + x_13)))? ((6.0 + x_3) > ((19.0 + x_6) > (17.0 + x_7)? (19.0 + x_6) : (17.0 + x_7))? (6.0 + x_3) : ((19.0 + x_6) > (17.0 + x_7)? (19.0 + x_6) : (17.0 + x_7))) : (((3.0 + x_9) > (11.0 + x_10)? (3.0 + x_9) : (11.0 + x_10)) > ((19.0 + x_11) > (16.0 + x_13)? (19.0 + x_11) : (16.0 + x_13))? ((3.0 + x_9) > (11.0 + x_10)? (3.0 + x_9) : (11.0 + x_10)) : ((19.0 + x_11) > (16.0 + x_13)? (19.0 + x_11) : (16.0 + x_13)))) > (((7.0 + x_15) > ((9.0 + x_16) > (14.0 + x_17)? (9.0 + x_16) : (14.0 + x_17))? (7.0 + x_15) : ((9.0 + x_16) > (14.0 + x_17)? (9.0 + x_16) : (14.0 + x_17))) > (((10.0 + x_18) > (8.0 + x_22)? (10.0 + x_18) : (8.0 + x_22)) > ((6.0 + x_26) > (9.0 + x_27)? (6.0 + x_26) : (9.0 + x_27))? ((10.0 + x_18) > (8.0 + x_22)? (10.0 + x_18) : (8.0 + x_22)) : ((6.0 + x_26) > (9.0 + x_27)? (6.0 + x_26) : (9.0 + x_27)))? ((7.0 + x_15) > ((9.0 + x_16) > (14.0 + x_17)? (9.0 + x_16) : (14.0 + x_17))? (7.0 + x_15) : ((9.0 + x_16) > (14.0 + x_17)? (9.0 + x_16) : (14.0 + x_17))) : (((10.0 + x_18) > (8.0 + x_22)? (10.0 + x_18) : (8.0 + x_22)) > ((6.0 + x_26) > (9.0 + x_27)? (6.0 + x_26) : (9.0 + x_27))? ((10.0 + x_18) > (8.0 + x_22)? (10.0 + x_18) : (8.0 + x_22)) : ((6.0 + x_26) > (9.0 + x_27)? (6.0 + x_26) : (9.0 + x_27))))? (((6.0 + x_3) > ((19.0 + x_6) > (17.0 + x_7)? (19.0 + x_6) : (17.0 + x_7))? (6.0 + x_3) : ((19.0 + x_6) > (17.0 + x_7)? (19.0 + x_6) : (17.0 + x_7))) > (((3.0 + x_9) > (11.0 + x_10)? (3.0 + x_9) : (11.0 + x_10)) > ((19.0 + x_11) > (16.0 + x_13)? (19.0 + x_11) : (16.0 + x_13))? ((3.0 + x_9) > (11.0 + x_10)? (3.0 + x_9) : (11.0 + x_10)) : ((19.0 + x_11) > (16.0 + x_13)? (19.0 + x_11) : (16.0 + x_13)))? ((6.0 + x_3) > ((19.0 + x_6) > (17.0 + x_7)? (19.0 + x_6) : (17.0 + x_7))? (6.0 + x_3) : ((19.0 + x_6) > (17.0 + x_7)? (19.0 + x_6) : (17.0 + x_7))) : (((3.0 + x_9) > (11.0 + x_10)? (3.0 + x_9) : (11.0 + x_10)) > ((19.0 + x_11) > (16.0 + x_13)? (19.0 + x_11) : (16.0 + x_13))? ((3.0 + x_9) > (11.0 + x_10)? (3.0 + x_9) : (11.0 + x_10)) : ((19.0 + x_11) > (16.0 + x_13)? (19.0 + x_11) : (16.0 + x_13)))) : (((7.0 + x_15) > ((9.0 + x_16) > (14.0 + x_17)? (9.0 + x_16) : (14.0 + x_17))? (7.0 + x_15) : ((9.0 + x_16) > (14.0 + x_17)? (9.0 + x_16) : (14.0 + x_17))) > (((10.0 + x_18) > (8.0 + x_22)? (10.0 + x_18) : (8.0 + x_22)) > ((6.0 + x_26) > (9.0 + x_27)? (6.0 + x_26) : (9.0 + x_27))? ((10.0 + x_18) > (8.0 + x_22)? (10.0 + x_18) : (8.0 + x_22)) : ((6.0 + x_26) > (9.0 + x_27)? (6.0 + x_26) : (9.0 + x_27)))? ((7.0 + x_15) > ((9.0 + x_16) > (14.0 + x_17)? (9.0 + x_16) : (14.0 + x_17))? (7.0 + x_15) : ((9.0 + x_16) > (14.0 + x_17)? (9.0 + x_16) : (14.0 + x_17))) : (((10.0 + x_18) > (8.0 + x_22)? (10.0 + x_18) : (8.0 + x_22)) > ((6.0 + x_26) > (9.0 + x_27)? (6.0 + x_26) : (9.0 + x_27))? ((10.0 + x_18) > (8.0 + x_22)? (10.0 + x_18) : (8.0 + x_22)) : ((6.0 + x_26) > (9.0 + x_27)? (6.0 + x_26) : (9.0 + x_27))))); x_9_ = ((((20.0 + x_5) > ((17.0 + x_6) > (19.0 + x_7)? (17.0 + x_6) : (19.0 + x_7))? (20.0 + x_5) : ((17.0 + x_6) > (19.0 + x_7)? (17.0 + x_6) : (19.0 + x_7))) > (((4.0 + x_13) > (5.0 + x_14)? (4.0 + x_13) : (5.0 + x_14)) > ((8.0 + x_16) > (17.0 + x_20)? (8.0 + x_16) : (17.0 + x_20))? ((4.0 + x_13) > (5.0 + x_14)? (4.0 + x_13) : (5.0 + x_14)) : ((8.0 + x_16) > (17.0 + x_20)? (8.0 + x_16) : (17.0 + x_20)))? ((20.0 + x_5) > ((17.0 + x_6) > (19.0 + x_7)? (17.0 + x_6) : (19.0 + x_7))? (20.0 + x_5) : ((17.0 + x_6) > (19.0 + x_7)? (17.0 + x_6) : (19.0 + x_7))) : (((4.0 + x_13) > (5.0 + x_14)? (4.0 + x_13) : (5.0 + x_14)) > ((8.0 + x_16) > (17.0 + x_20)? (8.0 + x_16) : (17.0 + x_20))? ((4.0 + x_13) > (5.0 + x_14)? (4.0 + x_13) : (5.0 + x_14)) : ((8.0 + x_16) > (17.0 + x_20)? (8.0 + x_16) : (17.0 + x_20)))) > (((9.0 + x_21) > ((4.0 + x_22) > (1.0 + x_23)? (4.0 + x_22) : (1.0 + x_23))? (9.0 + x_21) : ((4.0 + x_22) > (1.0 + x_23)? (4.0 + x_22) : (1.0 + x_23))) > (((8.0 + x_24) > (17.0 + x_25)? (8.0 + x_24) : (17.0 + x_25)) > ((2.0 + x_26) > (16.0 + x_27)? (2.0 + x_26) : (16.0 + x_27))? ((8.0 + x_24) > (17.0 + x_25)? (8.0 + x_24) : (17.0 + x_25)) : ((2.0 + x_26) > (16.0 + x_27)? (2.0 + x_26) : (16.0 + x_27)))? ((9.0 + x_21) > ((4.0 + x_22) > (1.0 + x_23)? (4.0 + x_22) : (1.0 + x_23))? (9.0 + x_21) : ((4.0 + x_22) > (1.0 + x_23)? (4.0 + x_22) : (1.0 + x_23))) : (((8.0 + x_24) > (17.0 + x_25)? (8.0 + x_24) : (17.0 + x_25)) > ((2.0 + x_26) > (16.0 + x_27)? (2.0 + x_26) : (16.0 + x_27))? ((8.0 + x_24) > (17.0 + x_25)? (8.0 + x_24) : (17.0 + x_25)) : ((2.0 + x_26) > (16.0 + x_27)? (2.0 + x_26) : (16.0 + x_27))))? (((20.0 + x_5) > ((17.0 + x_6) > (19.0 + x_7)? (17.0 + x_6) : (19.0 + x_7))? (20.0 + x_5) : ((17.0 + x_6) > (19.0 + x_7)? (17.0 + x_6) : (19.0 + x_7))) > (((4.0 + x_13) > (5.0 + x_14)? (4.0 + x_13) : (5.0 + x_14)) > ((8.0 + x_16) > (17.0 + x_20)? (8.0 + x_16) : (17.0 + x_20))? ((4.0 + x_13) > (5.0 + x_14)? (4.0 + x_13) : (5.0 + x_14)) : ((8.0 + x_16) > (17.0 + x_20)? (8.0 + x_16) : (17.0 + x_20)))? ((20.0 + x_5) > ((17.0 + x_6) > (19.0 + x_7)? (17.0 + x_6) : (19.0 + x_7))? (20.0 + x_5) : ((17.0 + x_6) > (19.0 + x_7)? (17.0 + x_6) : (19.0 + x_7))) : (((4.0 + x_13) > (5.0 + x_14)? (4.0 + x_13) : (5.0 + x_14)) > ((8.0 + x_16) > (17.0 + x_20)? (8.0 + x_16) : (17.0 + x_20))? ((4.0 + x_13) > (5.0 + x_14)? (4.0 + x_13) : (5.0 + x_14)) : ((8.0 + x_16) > (17.0 + x_20)? (8.0 + x_16) : (17.0 + x_20)))) : (((9.0 + x_21) > ((4.0 + x_22) > (1.0 + x_23)? (4.0 + x_22) : (1.0 + x_23))? (9.0 + x_21) : ((4.0 + x_22) > (1.0 + x_23)? (4.0 + x_22) : (1.0 + x_23))) > (((8.0 + x_24) > (17.0 + x_25)? (8.0 + x_24) : (17.0 + x_25)) > ((2.0 + x_26) > (16.0 + x_27)? (2.0 + x_26) : (16.0 + x_27))? ((8.0 + x_24) > (17.0 + x_25)? (8.0 + x_24) : (17.0 + x_25)) : ((2.0 + x_26) > (16.0 + x_27)? (2.0 + x_26) : (16.0 + x_27)))? ((9.0 + x_21) > ((4.0 + x_22) > (1.0 + x_23)? (4.0 + x_22) : (1.0 + x_23))? (9.0 + x_21) : ((4.0 + x_22) > (1.0 + x_23)? (4.0 + x_22) : (1.0 + x_23))) : (((8.0 + x_24) > (17.0 + x_25)? (8.0 + x_24) : (17.0 + x_25)) > ((2.0 + x_26) > (16.0 + x_27)? (2.0 + x_26) : (16.0 + x_27))? ((8.0 + x_24) > (17.0 + x_25)? (8.0 + x_24) : (17.0 + x_25)) : ((2.0 + x_26) > (16.0 + x_27)? (2.0 + x_26) : (16.0 + x_27))))); x_10_ = ((((6.0 + x_2) > ((10.0 + x_3) > (12.0 + x_7)? (10.0 + x_3) : (12.0 + x_7))? (6.0 + x_2) : ((10.0 + x_3) > (12.0 + x_7)? (10.0 + x_3) : (12.0 + x_7))) > (((17.0 + x_9) > (19.0 + x_11)? (17.0 + x_9) : (19.0 + x_11)) > ((17.0 + x_12) > (20.0 + x_14)? (17.0 + x_12) : (20.0 + x_14))? ((17.0 + x_9) > (19.0 + x_11)? (17.0 + x_9) : (19.0 + x_11)) : ((17.0 + x_12) > (20.0 + x_14)? (17.0 + x_12) : (20.0 + x_14)))? ((6.0 + x_2) > ((10.0 + x_3) > (12.0 + x_7)? (10.0 + x_3) : (12.0 + x_7))? (6.0 + x_2) : ((10.0 + x_3) > (12.0 + x_7)? (10.0 + x_3) : (12.0 + x_7))) : (((17.0 + x_9) > (19.0 + x_11)? (17.0 + x_9) : (19.0 + x_11)) > ((17.0 + x_12) > (20.0 + x_14)? (17.0 + x_12) : (20.0 + x_14))? ((17.0 + x_9) > (19.0 + x_11)? (17.0 + x_9) : (19.0 + x_11)) : ((17.0 + x_12) > (20.0 + x_14)? (17.0 + x_12) : (20.0 + x_14)))) > (((7.0 + x_16) > ((12.0 + x_17) > (9.0 + x_20)? (12.0 + x_17) : (9.0 + x_20))? (7.0 + x_16) : ((12.0 + x_17) > (9.0 + x_20)? (12.0 + x_17) : (9.0 + x_20))) > (((12.0 + x_22) > (17.0 + x_23)? (12.0 + x_22) : (17.0 + x_23)) > ((3.0 + x_24) > (15.0 + x_25)? (3.0 + x_24) : (15.0 + x_25))? ((12.0 + x_22) > (17.0 + x_23)? (12.0 + x_22) : (17.0 + x_23)) : ((3.0 + x_24) > (15.0 + x_25)? (3.0 + x_24) : (15.0 + x_25)))? ((7.0 + x_16) > ((12.0 + x_17) > (9.0 + x_20)? (12.0 + x_17) : (9.0 + x_20))? (7.0 + x_16) : ((12.0 + x_17) > (9.0 + x_20)? (12.0 + x_17) : (9.0 + x_20))) : (((12.0 + x_22) > (17.0 + x_23)? (12.0 + x_22) : (17.0 + x_23)) > ((3.0 + x_24) > (15.0 + x_25)? (3.0 + x_24) : (15.0 + x_25))? ((12.0 + x_22) > (17.0 + x_23)? (12.0 + x_22) : (17.0 + x_23)) : ((3.0 + x_24) > (15.0 + x_25)? (3.0 + x_24) : (15.0 + x_25))))? (((6.0 + x_2) > ((10.0 + x_3) > (12.0 + x_7)? (10.0 + x_3) : (12.0 + x_7))? (6.0 + x_2) : ((10.0 + x_3) > (12.0 + x_7)? (10.0 + x_3) : (12.0 + x_7))) > (((17.0 + x_9) > (19.0 + x_11)? (17.0 + x_9) : (19.0 + x_11)) > ((17.0 + x_12) > (20.0 + x_14)? (17.0 + x_12) : (20.0 + x_14))? ((17.0 + x_9) > (19.0 + x_11)? (17.0 + x_9) : (19.0 + x_11)) : ((17.0 + x_12) > (20.0 + x_14)? (17.0 + x_12) : (20.0 + x_14)))? ((6.0 + x_2) > ((10.0 + x_3) > (12.0 + x_7)? (10.0 + x_3) : (12.0 + x_7))? (6.0 + x_2) : ((10.0 + x_3) > (12.0 + x_7)? (10.0 + x_3) : (12.0 + x_7))) : (((17.0 + x_9) > (19.0 + x_11)? (17.0 + x_9) : (19.0 + x_11)) > ((17.0 + x_12) > (20.0 + x_14)? (17.0 + x_12) : (20.0 + x_14))? ((17.0 + x_9) > (19.0 + x_11)? (17.0 + x_9) : (19.0 + x_11)) : ((17.0 + x_12) > (20.0 + x_14)? (17.0 + x_12) : (20.0 + x_14)))) : (((7.0 + x_16) > ((12.0 + x_17) > (9.0 + x_20)? (12.0 + x_17) : (9.0 + x_20))? (7.0 + x_16) : ((12.0 + x_17) > (9.0 + x_20)? (12.0 + x_17) : (9.0 + x_20))) > (((12.0 + x_22) > (17.0 + x_23)? (12.0 + x_22) : (17.0 + x_23)) > ((3.0 + x_24) > (15.0 + x_25)? (3.0 + x_24) : (15.0 + x_25))? ((12.0 + x_22) > (17.0 + x_23)? (12.0 + x_22) : (17.0 + x_23)) : ((3.0 + x_24) > (15.0 + x_25)? (3.0 + x_24) : (15.0 + x_25)))? ((7.0 + x_16) > ((12.0 + x_17) > (9.0 + x_20)? (12.0 + x_17) : (9.0 + x_20))? (7.0 + x_16) : ((12.0 + x_17) > (9.0 + x_20)? (12.0 + x_17) : (9.0 + x_20))) : (((12.0 + x_22) > (17.0 + x_23)? (12.0 + x_22) : (17.0 + x_23)) > ((3.0 + x_24) > (15.0 + x_25)? (3.0 + x_24) : (15.0 + x_25))? ((12.0 + x_22) > (17.0 + x_23)? (12.0 + x_22) : (17.0 + x_23)) : ((3.0 + x_24) > (15.0 + x_25)? (3.0 + x_24) : (15.0 + x_25))))); x_11_ = ((((8.0 + x_0) > ((2.0 + x_1) > (4.0 + x_3)? (2.0 + x_1) : (4.0 + x_3))? (8.0 + x_0) : ((2.0 + x_1) > (4.0 + x_3)? (2.0 + x_1) : (4.0 + x_3))) > (((2.0 + x_4) > (14.0 + x_11)? (2.0 + x_4) : (14.0 + x_11)) > ((2.0 + x_14) > (20.0 + x_15)? (2.0 + x_14) : (20.0 + x_15))? ((2.0 + x_4) > (14.0 + x_11)? (2.0 + x_4) : (14.0 + x_11)) : ((2.0 + x_14) > (20.0 + x_15)? (2.0 + x_14) : (20.0 + x_15)))? ((8.0 + x_0) > ((2.0 + x_1) > (4.0 + x_3)? (2.0 + x_1) : (4.0 + x_3))? (8.0 + x_0) : ((2.0 + x_1) > (4.0 + x_3)? (2.0 + x_1) : (4.0 + x_3))) : (((2.0 + x_4) > (14.0 + x_11)? (2.0 + x_4) : (14.0 + x_11)) > ((2.0 + x_14) > (20.0 + x_15)? (2.0 + x_14) : (20.0 + x_15))? ((2.0 + x_4) > (14.0 + x_11)? (2.0 + x_4) : (14.0 + x_11)) : ((2.0 + x_14) > (20.0 + x_15)? (2.0 + x_14) : (20.0 + x_15)))) > (((9.0 + x_17) > ((5.0 + x_18) > (1.0 + x_22)? (5.0 + x_18) : (1.0 + x_22))? (9.0 + x_17) : ((5.0 + x_18) > (1.0 + x_22)? (5.0 + x_18) : (1.0 + x_22))) > (((17.0 + x_23) > (14.0 + x_24)? (17.0 + x_23) : (14.0 + x_24)) > ((15.0 + x_25) > (15.0 + x_26)? (15.0 + x_25) : (15.0 + x_26))? ((17.0 + x_23) > (14.0 + x_24)? (17.0 + x_23) : (14.0 + x_24)) : ((15.0 + x_25) > (15.0 + x_26)? (15.0 + x_25) : (15.0 + x_26)))? ((9.0 + x_17) > ((5.0 + x_18) > (1.0 + x_22)? (5.0 + x_18) : (1.0 + x_22))? (9.0 + x_17) : ((5.0 + x_18) > (1.0 + x_22)? (5.0 + x_18) : (1.0 + x_22))) : (((17.0 + x_23) > (14.0 + x_24)? (17.0 + x_23) : (14.0 + x_24)) > ((15.0 + x_25) > (15.0 + x_26)? (15.0 + x_25) : (15.0 + x_26))? ((17.0 + x_23) > (14.0 + x_24)? (17.0 + x_23) : (14.0 + x_24)) : ((15.0 + x_25) > (15.0 + x_26)? (15.0 + x_25) : (15.0 + x_26))))? (((8.0 + x_0) > ((2.0 + x_1) > (4.0 + x_3)? (2.0 + x_1) : (4.0 + x_3))? (8.0 + x_0) : ((2.0 + x_1) > (4.0 + x_3)? (2.0 + x_1) : (4.0 + x_3))) > (((2.0 + x_4) > (14.0 + x_11)? (2.0 + x_4) : (14.0 + x_11)) > ((2.0 + x_14) > (20.0 + x_15)? (2.0 + x_14) : (20.0 + x_15))? ((2.0 + x_4) > (14.0 + x_11)? (2.0 + x_4) : (14.0 + x_11)) : ((2.0 + x_14) > (20.0 + x_15)? (2.0 + x_14) : (20.0 + x_15)))? ((8.0 + x_0) > ((2.0 + x_1) > (4.0 + x_3)? (2.0 + x_1) : (4.0 + x_3))? (8.0 + x_0) : ((2.0 + x_1) > (4.0 + x_3)? (2.0 + x_1) : (4.0 + x_3))) : (((2.0 + x_4) > (14.0 + x_11)? (2.0 + x_4) : (14.0 + x_11)) > ((2.0 + x_14) > (20.0 + x_15)? (2.0 + x_14) : (20.0 + x_15))? ((2.0 + x_4) > (14.0 + x_11)? (2.0 + x_4) : (14.0 + x_11)) : ((2.0 + x_14) > (20.0 + x_15)? (2.0 + x_14) : (20.0 + x_15)))) : (((9.0 + x_17) > ((5.0 + x_18) > (1.0 + x_22)? (5.0 + x_18) : (1.0 + x_22))? (9.0 + x_17) : ((5.0 + x_18) > (1.0 + x_22)? (5.0 + x_18) : (1.0 + x_22))) > (((17.0 + x_23) > (14.0 + x_24)? (17.0 + x_23) : (14.0 + x_24)) > ((15.0 + x_25) > (15.0 + x_26)? (15.0 + x_25) : (15.0 + x_26))? ((17.0 + x_23) > (14.0 + x_24)? (17.0 + x_23) : (14.0 + x_24)) : ((15.0 + x_25) > (15.0 + x_26)? (15.0 + x_25) : (15.0 + x_26)))? ((9.0 + x_17) > ((5.0 + x_18) > (1.0 + x_22)? (5.0 + x_18) : (1.0 + x_22))? (9.0 + x_17) : ((5.0 + x_18) > (1.0 + x_22)? (5.0 + x_18) : (1.0 + x_22))) : (((17.0 + x_23) > (14.0 + x_24)? (17.0 + x_23) : (14.0 + x_24)) > ((15.0 + x_25) > (15.0 + x_26)? (15.0 + x_25) : (15.0 + x_26))? ((17.0 + x_23) > (14.0 + x_24)? (17.0 + x_23) : (14.0 + x_24)) : ((15.0 + x_25) > (15.0 + x_26)? (15.0 + x_25) : (15.0 + x_26))))); x_12_ = ((((3.0 + x_0) > ((13.0 + x_1) > (19.0 + x_2)? (13.0 + x_1) : (19.0 + x_2))? (3.0 + x_0) : ((13.0 + x_1) > (19.0 + x_2)? (13.0 + x_1) : (19.0 + x_2))) > (((18.0 + x_5) > (18.0 + x_6)? (18.0 + x_5) : (18.0 + x_6)) > ((14.0 + x_8) > (14.0 + x_13)? (14.0 + x_8) : (14.0 + x_13))? ((18.0 + x_5) > (18.0 + x_6)? (18.0 + x_5) : (18.0 + x_6)) : ((14.0 + x_8) > (14.0 + x_13)? (14.0 + x_8) : (14.0 + x_13)))? ((3.0 + x_0) > ((13.0 + x_1) > (19.0 + x_2)? (13.0 + x_1) : (19.0 + x_2))? (3.0 + x_0) : ((13.0 + x_1) > (19.0 + x_2)? (13.0 + x_1) : (19.0 + x_2))) : (((18.0 + x_5) > (18.0 + x_6)? (18.0 + x_5) : (18.0 + x_6)) > ((14.0 + x_8) > (14.0 + x_13)? (14.0 + x_8) : (14.0 + x_13))? ((18.0 + x_5) > (18.0 + x_6)? (18.0 + x_5) : (18.0 + x_6)) : ((14.0 + x_8) > (14.0 + x_13)? (14.0 + x_8) : (14.0 + x_13)))) > (((7.0 + x_16) > ((2.0 + x_18) > (20.0 + x_21)? (2.0 + x_18) : (20.0 + x_21))? (7.0 + x_16) : ((2.0 + x_18) > (20.0 + x_21)? (2.0 + x_18) : (20.0 + x_21))) > (((16.0 + x_22) > (8.0 + x_24)? (16.0 + x_22) : (8.0 + x_24)) > ((8.0 + x_25) > (13.0 + x_26)? (8.0 + x_25) : (13.0 + x_26))? ((16.0 + x_22) > (8.0 + x_24)? (16.0 + x_22) : (8.0 + x_24)) : ((8.0 + x_25) > (13.0 + x_26)? (8.0 + x_25) : (13.0 + x_26)))? ((7.0 + x_16) > ((2.0 + x_18) > (20.0 + x_21)? (2.0 + x_18) : (20.0 + x_21))? (7.0 + x_16) : ((2.0 + x_18) > (20.0 + x_21)? (2.0 + x_18) : (20.0 + x_21))) : (((16.0 + x_22) > (8.0 + x_24)? (16.0 + x_22) : (8.0 + x_24)) > ((8.0 + x_25) > (13.0 + x_26)? (8.0 + x_25) : (13.0 + x_26))? ((16.0 + x_22) > (8.0 + x_24)? (16.0 + x_22) : (8.0 + x_24)) : ((8.0 + x_25) > (13.0 + x_26)? (8.0 + x_25) : (13.0 + x_26))))? (((3.0 + x_0) > ((13.0 + x_1) > (19.0 + x_2)? (13.0 + x_1) : (19.0 + x_2))? (3.0 + x_0) : ((13.0 + x_1) > (19.0 + x_2)? (13.0 + x_1) : (19.0 + x_2))) > (((18.0 + x_5) > (18.0 + x_6)? (18.0 + x_5) : (18.0 + x_6)) > ((14.0 + x_8) > (14.0 + x_13)? (14.0 + x_8) : (14.0 + x_13))? ((18.0 + x_5) > (18.0 + x_6)? (18.0 + x_5) : (18.0 + x_6)) : ((14.0 + x_8) > (14.0 + x_13)? (14.0 + x_8) : (14.0 + x_13)))? ((3.0 + x_0) > ((13.0 + x_1) > (19.0 + x_2)? (13.0 + x_1) : (19.0 + x_2))? (3.0 + x_0) : ((13.0 + x_1) > (19.0 + x_2)? (13.0 + x_1) : (19.0 + x_2))) : (((18.0 + x_5) > (18.0 + x_6)? (18.0 + x_5) : (18.0 + x_6)) > ((14.0 + x_8) > (14.0 + x_13)? (14.0 + x_8) : (14.0 + x_13))? ((18.0 + x_5) > (18.0 + x_6)? (18.0 + x_5) : (18.0 + x_6)) : ((14.0 + x_8) > (14.0 + x_13)? (14.0 + x_8) : (14.0 + x_13)))) : (((7.0 + x_16) > ((2.0 + x_18) > (20.0 + x_21)? (2.0 + x_18) : (20.0 + x_21))? (7.0 + x_16) : ((2.0 + x_18) > (20.0 + x_21)? (2.0 + x_18) : (20.0 + x_21))) > (((16.0 + x_22) > (8.0 + x_24)? (16.0 + x_22) : (8.0 + x_24)) > ((8.0 + x_25) > (13.0 + x_26)? (8.0 + x_25) : (13.0 + x_26))? ((16.0 + x_22) > (8.0 + x_24)? (16.0 + x_22) : (8.0 + x_24)) : ((8.0 + x_25) > (13.0 + x_26)? (8.0 + x_25) : (13.0 + x_26)))? ((7.0 + x_16) > ((2.0 + x_18) > (20.0 + x_21)? (2.0 + x_18) : (20.0 + x_21))? (7.0 + x_16) : ((2.0 + x_18) > (20.0 + x_21)? (2.0 + x_18) : (20.0 + x_21))) : (((16.0 + x_22) > (8.0 + x_24)? (16.0 + x_22) : (8.0 + x_24)) > ((8.0 + x_25) > (13.0 + x_26)? (8.0 + x_25) : (13.0 + x_26))? ((16.0 + x_22) > (8.0 + x_24)? (16.0 + x_22) : (8.0 + x_24)) : ((8.0 + x_25) > (13.0 + x_26)? (8.0 + x_25) : (13.0 + x_26))))); x_13_ = ((((7.0 + x_0) > ((10.0 + x_1) > (8.0 + x_2)? (10.0 + x_1) : (8.0 + x_2))? (7.0 + x_0) : ((10.0 + x_1) > (8.0 + x_2)? (10.0 + x_1) : (8.0 + x_2))) > (((3.0 + x_3) > (3.0 + x_4)? (3.0 + x_3) : (3.0 + x_4)) > ((2.0 + x_5) > (6.0 + x_11)? (2.0 + x_5) : (6.0 + x_11))? ((3.0 + x_3) > (3.0 + x_4)? (3.0 + x_3) : (3.0 + x_4)) : ((2.0 + x_5) > (6.0 + x_11)? (2.0 + x_5) : (6.0 + x_11)))? ((7.0 + x_0) > ((10.0 + x_1) > (8.0 + x_2)? (10.0 + x_1) : (8.0 + x_2))? (7.0 + x_0) : ((10.0 + x_1) > (8.0 + x_2)? (10.0 + x_1) : (8.0 + x_2))) : (((3.0 + x_3) > (3.0 + x_4)? (3.0 + x_3) : (3.0 + x_4)) > ((2.0 + x_5) > (6.0 + x_11)? (2.0 + x_5) : (6.0 + x_11))? ((3.0 + x_3) > (3.0 + x_4)? (3.0 + x_3) : (3.0 + x_4)) : ((2.0 + x_5) > (6.0 + x_11)? (2.0 + x_5) : (6.0 + x_11)))) > (((19.0 + x_13) > ((7.0 + x_18) > (4.0 + x_19)? (7.0 + x_18) : (4.0 + x_19))? (19.0 + x_13) : ((7.0 + x_18) > (4.0 + x_19)? (7.0 + x_18) : (4.0 + x_19))) > (((20.0 + x_22) > (19.0 + x_23)? (20.0 + x_22) : (19.0 + x_23)) > ((18.0 + x_24) > (16.0 + x_27)? (18.0 + x_24) : (16.0 + x_27))? ((20.0 + x_22) > (19.0 + x_23)? (20.0 + x_22) : (19.0 + x_23)) : ((18.0 + x_24) > (16.0 + x_27)? (18.0 + x_24) : (16.0 + x_27)))? ((19.0 + x_13) > ((7.0 + x_18) > (4.0 + x_19)? (7.0 + x_18) : (4.0 + x_19))? (19.0 + x_13) : ((7.0 + x_18) > (4.0 + x_19)? (7.0 + x_18) : (4.0 + x_19))) : (((20.0 + x_22) > (19.0 + x_23)? (20.0 + x_22) : (19.0 + x_23)) > ((18.0 + x_24) > (16.0 + x_27)? (18.0 + x_24) : (16.0 + x_27))? ((20.0 + x_22) > (19.0 + x_23)? (20.0 + x_22) : (19.0 + x_23)) : ((18.0 + x_24) > (16.0 + x_27)? (18.0 + x_24) : (16.0 + x_27))))? (((7.0 + x_0) > ((10.0 + x_1) > (8.0 + x_2)? (10.0 + x_1) : (8.0 + x_2))? (7.0 + x_0) : ((10.0 + x_1) > (8.0 + x_2)? (10.0 + x_1) : (8.0 + x_2))) > (((3.0 + x_3) > (3.0 + x_4)? (3.0 + x_3) : (3.0 + x_4)) > ((2.0 + x_5) > (6.0 + x_11)? (2.0 + x_5) : (6.0 + x_11))? ((3.0 + x_3) > (3.0 + x_4)? (3.0 + x_3) : (3.0 + x_4)) : ((2.0 + x_5) > (6.0 + x_11)? (2.0 + x_5) : (6.0 + x_11)))? ((7.0 + x_0) > ((10.0 + x_1) > (8.0 + x_2)? (10.0 + x_1) : (8.0 + x_2))? (7.0 + x_0) : ((10.0 + x_1) > (8.0 + x_2)? (10.0 + x_1) : (8.0 + x_2))) : (((3.0 + x_3) > (3.0 + x_4)? (3.0 + x_3) : (3.0 + x_4)) > ((2.0 + x_5) > (6.0 + x_11)? (2.0 + x_5) : (6.0 + x_11))? ((3.0 + x_3) > (3.0 + x_4)? (3.0 + x_3) : (3.0 + x_4)) : ((2.0 + x_5) > (6.0 + x_11)? (2.0 + x_5) : (6.0 + x_11)))) : (((19.0 + x_13) > ((7.0 + x_18) > (4.0 + x_19)? (7.0 + x_18) : (4.0 + x_19))? (19.0 + x_13) : ((7.0 + x_18) > (4.0 + x_19)? (7.0 + x_18) : (4.0 + x_19))) > (((20.0 + x_22) > (19.0 + x_23)? (20.0 + x_22) : (19.0 + x_23)) > ((18.0 + x_24) > (16.0 + x_27)? (18.0 + x_24) : (16.0 + x_27))? ((20.0 + x_22) > (19.0 + x_23)? (20.0 + x_22) : (19.0 + x_23)) : ((18.0 + x_24) > (16.0 + x_27)? (18.0 + x_24) : (16.0 + x_27)))? ((19.0 + x_13) > ((7.0 + x_18) > (4.0 + x_19)? (7.0 + x_18) : (4.0 + x_19))? (19.0 + x_13) : ((7.0 + x_18) > (4.0 + x_19)? (7.0 + x_18) : (4.0 + x_19))) : (((20.0 + x_22) > (19.0 + x_23)? (20.0 + x_22) : (19.0 + x_23)) > ((18.0 + x_24) > (16.0 + x_27)? (18.0 + x_24) : (16.0 + x_27))? ((20.0 + x_22) > (19.0 + x_23)? (20.0 + x_22) : (19.0 + x_23)) : ((18.0 + x_24) > (16.0 + x_27)? (18.0 + x_24) : (16.0 + x_27))))); x_14_ = ((((13.0 + x_1) > ((12.0 + x_2) > (8.0 + x_3)? (12.0 + x_2) : (8.0 + x_3))? (13.0 + x_1) : ((12.0 + x_2) > (8.0 + x_3)? (12.0 + x_2) : (8.0 + x_3))) > (((16.0 + x_4) > (19.0 + x_7)? (16.0 + x_4) : (19.0 + x_7)) > ((10.0 + x_8) > (17.0 + x_11)? (10.0 + x_8) : (17.0 + x_11))? ((16.0 + x_4) > (19.0 + x_7)? (16.0 + x_4) : (19.0 + x_7)) : ((10.0 + x_8) > (17.0 + x_11)? (10.0 + x_8) : (17.0 + x_11)))? ((13.0 + x_1) > ((12.0 + x_2) > (8.0 + x_3)? (12.0 + x_2) : (8.0 + x_3))? (13.0 + x_1) : ((12.0 + x_2) > (8.0 + x_3)? (12.0 + x_2) : (8.0 + x_3))) : (((16.0 + x_4) > (19.0 + x_7)? (16.0 + x_4) : (19.0 + x_7)) > ((10.0 + x_8) > (17.0 + x_11)? (10.0 + x_8) : (17.0 + x_11))? ((16.0 + x_4) > (19.0 + x_7)? (16.0 + x_4) : (19.0 + x_7)) : ((10.0 + x_8) > (17.0 + x_11)? (10.0 + x_8) : (17.0 + x_11)))) > (((14.0 + x_12) > ((16.0 + x_13) > (10.0 + x_14)? (16.0 + x_13) : (10.0 + x_14))? (14.0 + x_12) : ((16.0 + x_13) > (10.0 + x_14)? (16.0 + x_13) : (10.0 + x_14))) > (((18.0 + x_15) > (3.0 + x_25)? (18.0 + x_15) : (3.0 + x_25)) > ((20.0 + x_26) > (13.0 + x_27)? (20.0 + x_26) : (13.0 + x_27))? ((18.0 + x_15) > (3.0 + x_25)? (18.0 + x_15) : (3.0 + x_25)) : ((20.0 + x_26) > (13.0 + x_27)? (20.0 + x_26) : (13.0 + x_27)))? ((14.0 + x_12) > ((16.0 + x_13) > (10.0 + x_14)? (16.0 + x_13) : (10.0 + x_14))? (14.0 + x_12) : ((16.0 + x_13) > (10.0 + x_14)? (16.0 + x_13) : (10.0 + x_14))) : (((18.0 + x_15) > (3.0 + x_25)? (18.0 + x_15) : (3.0 + x_25)) > ((20.0 + x_26) > (13.0 + x_27)? (20.0 + x_26) : (13.0 + x_27))? ((18.0 + x_15) > (3.0 + x_25)? (18.0 + x_15) : (3.0 + x_25)) : ((20.0 + x_26) > (13.0 + x_27)? (20.0 + x_26) : (13.0 + x_27))))? (((13.0 + x_1) > ((12.0 + x_2) > (8.0 + x_3)? (12.0 + x_2) : (8.0 + x_3))? (13.0 + x_1) : ((12.0 + x_2) > (8.0 + x_3)? (12.0 + x_2) : (8.0 + x_3))) > (((16.0 + x_4) > (19.0 + x_7)? (16.0 + x_4) : (19.0 + x_7)) > ((10.0 + x_8) > (17.0 + x_11)? (10.0 + x_8) : (17.0 + x_11))? ((16.0 + x_4) > (19.0 + x_7)? (16.0 + x_4) : (19.0 + x_7)) : ((10.0 + x_8) > (17.0 + x_11)? (10.0 + x_8) : (17.0 + x_11)))? ((13.0 + x_1) > ((12.0 + x_2) > (8.0 + x_3)? (12.0 + x_2) : (8.0 + x_3))? (13.0 + x_1) : ((12.0 + x_2) > (8.0 + x_3)? (12.0 + x_2) : (8.0 + x_3))) : (((16.0 + x_4) > (19.0 + x_7)? (16.0 + x_4) : (19.0 + x_7)) > ((10.0 + x_8) > (17.0 + x_11)? (10.0 + x_8) : (17.0 + x_11))? ((16.0 + x_4) > (19.0 + x_7)? (16.0 + x_4) : (19.0 + x_7)) : ((10.0 + x_8) > (17.0 + x_11)? (10.0 + x_8) : (17.0 + x_11)))) : (((14.0 + x_12) > ((16.0 + x_13) > (10.0 + x_14)? (16.0 + x_13) : (10.0 + x_14))? (14.0 + x_12) : ((16.0 + x_13) > (10.0 + x_14)? (16.0 + x_13) : (10.0 + x_14))) > (((18.0 + x_15) > (3.0 + x_25)? (18.0 + x_15) : (3.0 + x_25)) > ((20.0 + x_26) > (13.0 + x_27)? (20.0 + x_26) : (13.0 + x_27))? ((18.0 + x_15) > (3.0 + x_25)? (18.0 + x_15) : (3.0 + x_25)) : ((20.0 + x_26) > (13.0 + x_27)? (20.0 + x_26) : (13.0 + x_27)))? ((14.0 + x_12) > ((16.0 + x_13) > (10.0 + x_14)? (16.0 + x_13) : (10.0 + x_14))? (14.0 + x_12) : ((16.0 + x_13) > (10.0 + x_14)? (16.0 + x_13) : (10.0 + x_14))) : (((18.0 + x_15) > (3.0 + x_25)? (18.0 + x_15) : (3.0 + x_25)) > ((20.0 + x_26) > (13.0 + x_27)? (20.0 + x_26) : (13.0 + x_27))? ((18.0 + x_15) > (3.0 + x_25)? (18.0 + x_15) : (3.0 + x_25)) : ((20.0 + x_26) > (13.0 + x_27)? (20.0 + x_26) : (13.0 + x_27))))); x_15_ = ((((19.0 + x_1) > ((4.0 + x_2) > (6.0 + x_5)? (4.0 + x_2) : (6.0 + x_5))? (19.0 + x_1) : ((4.0 + x_2) > (6.0 + x_5)? (4.0 + x_2) : (6.0 + x_5))) > (((11.0 + x_6) > (11.0 + x_7)? (11.0 + x_6) : (11.0 + x_7)) > ((1.0 + x_9) > (11.0 + x_10)? (1.0 + x_9) : (11.0 + x_10))? ((11.0 + x_6) > (11.0 + x_7)? (11.0 + x_6) : (11.0 + x_7)) : ((1.0 + x_9) > (11.0 + x_10)? (1.0 + x_9) : (11.0 + x_10)))? ((19.0 + x_1) > ((4.0 + x_2) > (6.0 + x_5)? (4.0 + x_2) : (6.0 + x_5))? (19.0 + x_1) : ((4.0 + x_2) > (6.0 + x_5)? (4.0 + x_2) : (6.0 + x_5))) : (((11.0 + x_6) > (11.0 + x_7)? (11.0 + x_6) : (11.0 + x_7)) > ((1.0 + x_9) > (11.0 + x_10)? (1.0 + x_9) : (11.0 + x_10))? ((11.0 + x_6) > (11.0 + x_7)? (11.0 + x_6) : (11.0 + x_7)) : ((1.0 + x_9) > (11.0 + x_10)? (1.0 + x_9) : (11.0 + x_10)))) > (((11.0 + x_13) > ((4.0 + x_14) > (15.0 + x_15)? (4.0 + x_14) : (15.0 + x_15))? (11.0 + x_13) : ((4.0 + x_14) > (15.0 + x_15)? (4.0 + x_14) : (15.0 + x_15))) > (((4.0 + x_20) > (18.0 + x_24)? (4.0 + x_20) : (18.0 + x_24)) > ((3.0 + x_25) > (12.0 + x_27)? (3.0 + x_25) : (12.0 + x_27))? ((4.0 + x_20) > (18.0 + x_24)? (4.0 + x_20) : (18.0 + x_24)) : ((3.0 + x_25) > (12.0 + x_27)? (3.0 + x_25) : (12.0 + x_27)))? ((11.0 + x_13) > ((4.0 + x_14) > (15.0 + x_15)? (4.0 + x_14) : (15.0 + x_15))? (11.0 + x_13) : ((4.0 + x_14) > (15.0 + x_15)? (4.0 + x_14) : (15.0 + x_15))) : (((4.0 + x_20) > (18.0 + x_24)? (4.0 + x_20) : (18.0 + x_24)) > ((3.0 + x_25) > (12.0 + x_27)? (3.0 + x_25) : (12.0 + x_27))? ((4.0 + x_20) > (18.0 + x_24)? (4.0 + x_20) : (18.0 + x_24)) : ((3.0 + x_25) > (12.0 + x_27)? (3.0 + x_25) : (12.0 + x_27))))? (((19.0 + x_1) > ((4.0 + x_2) > (6.0 + x_5)? (4.0 + x_2) : (6.0 + x_5))? (19.0 + x_1) : ((4.0 + x_2) > (6.0 + x_5)? (4.0 + x_2) : (6.0 + x_5))) > (((11.0 + x_6) > (11.0 + x_7)? (11.0 + x_6) : (11.0 + x_7)) > ((1.0 + x_9) > (11.0 + x_10)? (1.0 + x_9) : (11.0 + x_10))? ((11.0 + x_6) > (11.0 + x_7)? (11.0 + x_6) : (11.0 + x_7)) : ((1.0 + x_9) > (11.0 + x_10)? (1.0 + x_9) : (11.0 + x_10)))? ((19.0 + x_1) > ((4.0 + x_2) > (6.0 + x_5)? (4.0 + x_2) : (6.0 + x_5))? (19.0 + x_1) : ((4.0 + x_2) > (6.0 + x_5)? (4.0 + x_2) : (6.0 + x_5))) : (((11.0 + x_6) > (11.0 + x_7)? (11.0 + x_6) : (11.0 + x_7)) > ((1.0 + x_9) > (11.0 + x_10)? (1.0 + x_9) : (11.0 + x_10))? ((11.0 + x_6) > (11.0 + x_7)? (11.0 + x_6) : (11.0 + x_7)) : ((1.0 + x_9) > (11.0 + x_10)? (1.0 + x_9) : (11.0 + x_10)))) : (((11.0 + x_13) > ((4.0 + x_14) > (15.0 + x_15)? (4.0 + x_14) : (15.0 + x_15))? (11.0 + x_13) : ((4.0 + x_14) > (15.0 + x_15)? (4.0 + x_14) : (15.0 + x_15))) > (((4.0 + x_20) > (18.0 + x_24)? (4.0 + x_20) : (18.0 + x_24)) > ((3.0 + x_25) > (12.0 + x_27)? (3.0 + x_25) : (12.0 + x_27))? ((4.0 + x_20) > (18.0 + x_24)? (4.0 + x_20) : (18.0 + x_24)) : ((3.0 + x_25) > (12.0 + x_27)? (3.0 + x_25) : (12.0 + x_27)))? ((11.0 + x_13) > ((4.0 + x_14) > (15.0 + x_15)? (4.0 + x_14) : (15.0 + x_15))? (11.0 + x_13) : ((4.0 + x_14) > (15.0 + x_15)? (4.0 + x_14) : (15.0 + x_15))) : (((4.0 + x_20) > (18.0 + x_24)? (4.0 + x_20) : (18.0 + x_24)) > ((3.0 + x_25) > (12.0 + x_27)? (3.0 + x_25) : (12.0 + x_27))? ((4.0 + x_20) > (18.0 + x_24)? (4.0 + x_20) : (18.0 + x_24)) : ((3.0 + x_25) > (12.0 + x_27)? (3.0 + x_25) : (12.0 + x_27))))); x_16_ = ((((13.0 + x_0) > ((7.0 + x_6) > (6.0 + x_10)? (7.0 + x_6) : (6.0 + x_10))? (13.0 + x_0) : ((7.0 + x_6) > (6.0 + x_10)? (7.0 + x_6) : (6.0 + x_10))) > (((4.0 + x_11) > (14.0 + x_16)? (4.0 + x_11) : (14.0 + x_16)) > ((17.0 + x_17) > (2.0 + x_18)? (17.0 + x_17) : (2.0 + x_18))? ((4.0 + x_11) > (14.0 + x_16)? (4.0 + x_11) : (14.0 + x_16)) : ((17.0 + x_17) > (2.0 + x_18)? (17.0 + x_17) : (2.0 + x_18)))? ((13.0 + x_0) > ((7.0 + x_6) > (6.0 + x_10)? (7.0 + x_6) : (6.0 + x_10))? (13.0 + x_0) : ((7.0 + x_6) > (6.0 + x_10)? (7.0 + x_6) : (6.0 + x_10))) : (((4.0 + x_11) > (14.0 + x_16)? (4.0 + x_11) : (14.0 + x_16)) > ((17.0 + x_17) > (2.0 + x_18)? (17.0 + x_17) : (2.0 + x_18))? ((4.0 + x_11) > (14.0 + x_16)? (4.0 + x_11) : (14.0 + x_16)) : ((17.0 + x_17) > (2.0 + x_18)? (17.0 + x_17) : (2.0 + x_18)))) > (((20.0 + x_19) > ((7.0 + x_20) > (16.0 + x_21)? (7.0 + x_20) : (16.0 + x_21))? (20.0 + x_19) : ((7.0 + x_20) > (16.0 + x_21)? (7.0 + x_20) : (16.0 + x_21))) > (((9.0 + x_22) > (13.0 + x_23)? (9.0 + x_22) : (13.0 + x_23)) > ((19.0 + x_25) > (9.0 + x_27)? (19.0 + x_25) : (9.0 + x_27))? ((9.0 + x_22) > (13.0 + x_23)? (9.0 + x_22) : (13.0 + x_23)) : ((19.0 + x_25) > (9.0 + x_27)? (19.0 + x_25) : (9.0 + x_27)))? ((20.0 + x_19) > ((7.0 + x_20) > (16.0 + x_21)? (7.0 + x_20) : (16.0 + x_21))? (20.0 + x_19) : ((7.0 + x_20) > (16.0 + x_21)? (7.0 + x_20) : (16.0 + x_21))) : (((9.0 + x_22) > (13.0 + x_23)? (9.0 + x_22) : (13.0 + x_23)) > ((19.0 + x_25) > (9.0 + x_27)? (19.0 + x_25) : (9.0 + x_27))? ((9.0 + x_22) > (13.0 + x_23)? (9.0 + x_22) : (13.0 + x_23)) : ((19.0 + x_25) > (9.0 + x_27)? (19.0 + x_25) : (9.0 + x_27))))? (((13.0 + x_0) > ((7.0 + x_6) > (6.0 + x_10)? (7.0 + x_6) : (6.0 + x_10))? (13.0 + x_0) : ((7.0 + x_6) > (6.0 + x_10)? (7.0 + x_6) : (6.0 + x_10))) > (((4.0 + x_11) > (14.0 + x_16)? (4.0 + x_11) : (14.0 + x_16)) > ((17.0 + x_17) > (2.0 + x_18)? (17.0 + x_17) : (2.0 + x_18))? ((4.0 + x_11) > (14.0 + x_16)? (4.0 + x_11) : (14.0 + x_16)) : ((17.0 + x_17) > (2.0 + x_18)? (17.0 + x_17) : (2.0 + x_18)))? ((13.0 + x_0) > ((7.0 + x_6) > (6.0 + x_10)? (7.0 + x_6) : (6.0 + x_10))? (13.0 + x_0) : ((7.0 + x_6) > (6.0 + x_10)? (7.0 + x_6) : (6.0 + x_10))) : (((4.0 + x_11) > (14.0 + x_16)? (4.0 + x_11) : (14.0 + x_16)) > ((17.0 + x_17) > (2.0 + x_18)? (17.0 + x_17) : (2.0 + x_18))? ((4.0 + x_11) > (14.0 + x_16)? (4.0 + x_11) : (14.0 + x_16)) : ((17.0 + x_17) > (2.0 + x_18)? (17.0 + x_17) : (2.0 + x_18)))) : (((20.0 + x_19) > ((7.0 + x_20) > (16.0 + x_21)? (7.0 + x_20) : (16.0 + x_21))? (20.0 + x_19) : ((7.0 + x_20) > (16.0 + x_21)? (7.0 + x_20) : (16.0 + x_21))) > (((9.0 + x_22) > (13.0 + x_23)? (9.0 + x_22) : (13.0 + x_23)) > ((19.0 + x_25) > (9.0 + x_27)? (19.0 + x_25) : (9.0 + x_27))? ((9.0 + x_22) > (13.0 + x_23)? (9.0 + x_22) : (13.0 + x_23)) : ((19.0 + x_25) > (9.0 + x_27)? (19.0 + x_25) : (9.0 + x_27)))? ((20.0 + x_19) > ((7.0 + x_20) > (16.0 + x_21)? (7.0 + x_20) : (16.0 + x_21))? (20.0 + x_19) : ((7.0 + x_20) > (16.0 + x_21)? (7.0 + x_20) : (16.0 + x_21))) : (((9.0 + x_22) > (13.0 + x_23)? (9.0 + x_22) : (13.0 + x_23)) > ((19.0 + x_25) > (9.0 + x_27)? (19.0 + x_25) : (9.0 + x_27))? ((9.0 + x_22) > (13.0 + x_23)? (9.0 + x_22) : (13.0 + x_23)) : ((19.0 + x_25) > (9.0 + x_27)? (19.0 + x_25) : (9.0 + x_27))))); x_17_ = ((((8.0 + x_0) > ((19.0 + x_3) > (3.0 + x_5)? (19.0 + x_3) : (3.0 + x_5))? (8.0 + x_0) : ((19.0 + x_3) > (3.0 + x_5)? (19.0 + x_3) : (3.0 + x_5))) > (((11.0 + x_6) > (8.0 + x_7)? (11.0 + x_6) : (8.0 + x_7)) > ((2.0 + x_8) > (12.0 + x_9)? (2.0 + x_8) : (12.0 + x_9))? ((11.0 + x_6) > (8.0 + x_7)? (11.0 + x_6) : (8.0 + x_7)) : ((2.0 + x_8) > (12.0 + x_9)? (2.0 + x_8) : (12.0 + x_9)))? ((8.0 + x_0) > ((19.0 + x_3) > (3.0 + x_5)? (19.0 + x_3) : (3.0 + x_5))? (8.0 + x_0) : ((19.0 + x_3) > (3.0 + x_5)? (19.0 + x_3) : (3.0 + x_5))) : (((11.0 + x_6) > (8.0 + x_7)? (11.0 + x_6) : (8.0 + x_7)) > ((2.0 + x_8) > (12.0 + x_9)? (2.0 + x_8) : (12.0 + x_9))? ((11.0 + x_6) > (8.0 + x_7)? (11.0 + x_6) : (8.0 + x_7)) : ((2.0 + x_8) > (12.0 + x_9)? (2.0 + x_8) : (12.0 + x_9)))) > (((2.0 + x_11) > ((11.0 + x_12) > (16.0 + x_16)? (11.0 + x_12) : (16.0 + x_16))? (2.0 + x_11) : ((11.0 + x_12) > (16.0 + x_16)? (11.0 + x_12) : (16.0 + x_16))) > (((13.0 + x_18) > (17.0 + x_19)? (13.0 + x_18) : (17.0 + x_19)) > ((5.0 + x_24) > (15.0 + x_25)? (5.0 + x_24) : (15.0 + x_25))? ((13.0 + x_18) > (17.0 + x_19)? (13.0 + x_18) : (17.0 + x_19)) : ((5.0 + x_24) > (15.0 + x_25)? (5.0 + x_24) : (15.0 + x_25)))? ((2.0 + x_11) > ((11.0 + x_12) > (16.0 + x_16)? (11.0 + x_12) : (16.0 + x_16))? (2.0 + x_11) : ((11.0 + x_12) > (16.0 + x_16)? (11.0 + x_12) : (16.0 + x_16))) : (((13.0 + x_18) > (17.0 + x_19)? (13.0 + x_18) : (17.0 + x_19)) > ((5.0 + x_24) > (15.0 + x_25)? (5.0 + x_24) : (15.0 + x_25))? ((13.0 + x_18) > (17.0 + x_19)? (13.0 + x_18) : (17.0 + x_19)) : ((5.0 + x_24) > (15.0 + x_25)? (5.0 + x_24) : (15.0 + x_25))))? (((8.0 + x_0) > ((19.0 + x_3) > (3.0 + x_5)? (19.0 + x_3) : (3.0 + x_5))? (8.0 + x_0) : ((19.0 + x_3) > (3.0 + x_5)? (19.0 + x_3) : (3.0 + x_5))) > (((11.0 + x_6) > (8.0 + x_7)? (11.0 + x_6) : (8.0 + x_7)) > ((2.0 + x_8) > (12.0 + x_9)? (2.0 + x_8) : (12.0 + x_9))? ((11.0 + x_6) > (8.0 + x_7)? (11.0 + x_6) : (8.0 + x_7)) : ((2.0 + x_8) > (12.0 + x_9)? (2.0 + x_8) : (12.0 + x_9)))? ((8.0 + x_0) > ((19.0 + x_3) > (3.0 + x_5)? (19.0 + x_3) : (3.0 + x_5))? (8.0 + x_0) : ((19.0 + x_3) > (3.0 + x_5)? (19.0 + x_3) : (3.0 + x_5))) : (((11.0 + x_6) > (8.0 + x_7)? (11.0 + x_6) : (8.0 + x_7)) > ((2.0 + x_8) > (12.0 + x_9)? (2.0 + x_8) : (12.0 + x_9))? ((11.0 + x_6) > (8.0 + x_7)? (11.0 + x_6) : (8.0 + x_7)) : ((2.0 + x_8) > (12.0 + x_9)? (2.0 + x_8) : (12.0 + x_9)))) : (((2.0 + x_11) > ((11.0 + x_12) > (16.0 + x_16)? (11.0 + x_12) : (16.0 + x_16))? (2.0 + x_11) : ((11.0 + x_12) > (16.0 + x_16)? (11.0 + x_12) : (16.0 + x_16))) > (((13.0 + x_18) > (17.0 + x_19)? (13.0 + x_18) : (17.0 + x_19)) > ((5.0 + x_24) > (15.0 + x_25)? (5.0 + x_24) : (15.0 + x_25))? ((13.0 + x_18) > (17.0 + x_19)? (13.0 + x_18) : (17.0 + x_19)) : ((5.0 + x_24) > (15.0 + x_25)? (5.0 + x_24) : (15.0 + x_25)))? ((2.0 + x_11) > ((11.0 + x_12) > (16.0 + x_16)? (11.0 + x_12) : (16.0 + x_16))? (2.0 + x_11) : ((11.0 + x_12) > (16.0 + x_16)? (11.0 + x_12) : (16.0 + x_16))) : (((13.0 + x_18) > (17.0 + x_19)? (13.0 + x_18) : (17.0 + x_19)) > ((5.0 + x_24) > (15.0 + x_25)? (5.0 + x_24) : (15.0 + x_25))? ((13.0 + x_18) > (17.0 + x_19)? (13.0 + x_18) : (17.0 + x_19)) : ((5.0 + x_24) > (15.0 + x_25)? (5.0 + x_24) : (15.0 + x_25))))); x_18_ = ((((18.0 + x_0) > ((19.0 + x_2) > (10.0 + x_3)? (19.0 + x_2) : (10.0 + x_3))? (18.0 + x_0) : ((19.0 + x_2) > (10.0 + x_3)? (19.0 + x_2) : (10.0 + x_3))) > (((3.0 + x_4) > (2.0 + x_7)? (3.0 + x_4) : (2.0 + x_7)) > ((10.0 + x_8) > (17.0 + x_9)? (10.0 + x_8) : (17.0 + x_9))? ((3.0 + x_4) > (2.0 + x_7)? (3.0 + x_4) : (2.0 + x_7)) : ((10.0 + x_8) > (17.0 + x_9)? (10.0 + x_8) : (17.0 + x_9)))? ((18.0 + x_0) > ((19.0 + x_2) > (10.0 + x_3)? (19.0 + x_2) : (10.0 + x_3))? (18.0 + x_0) : ((19.0 + x_2) > (10.0 + x_3)? (19.0 + x_2) : (10.0 + x_3))) : (((3.0 + x_4) > (2.0 + x_7)? (3.0 + x_4) : (2.0 + x_7)) > ((10.0 + x_8) > (17.0 + x_9)? (10.0 + x_8) : (17.0 + x_9))? ((3.0 + x_4) > (2.0 + x_7)? (3.0 + x_4) : (2.0 + x_7)) : ((10.0 + x_8) > (17.0 + x_9)? (10.0 + x_8) : (17.0 + x_9)))) > (((19.0 + x_10) > ((8.0 + x_11) > (17.0 + x_17)? (8.0 + x_11) : (17.0 + x_17))? (19.0 + x_10) : ((8.0 + x_11) > (17.0 + x_17)? (8.0 + x_11) : (17.0 + x_17))) > (((18.0 + x_21) > (10.0 + x_24)? (18.0 + x_21) : (10.0 + x_24)) > ((16.0 + x_26) > (4.0 + x_27)? (16.0 + x_26) : (4.0 + x_27))? ((18.0 + x_21) > (10.0 + x_24)? (18.0 + x_21) : (10.0 + x_24)) : ((16.0 + x_26) > (4.0 + x_27)? (16.0 + x_26) : (4.0 + x_27)))? ((19.0 + x_10) > ((8.0 + x_11) > (17.0 + x_17)? (8.0 + x_11) : (17.0 + x_17))? (19.0 + x_10) : ((8.0 + x_11) > (17.0 + x_17)? (8.0 + x_11) : (17.0 + x_17))) : (((18.0 + x_21) > (10.0 + x_24)? (18.0 + x_21) : (10.0 + x_24)) > ((16.0 + x_26) > (4.0 + x_27)? (16.0 + x_26) : (4.0 + x_27))? ((18.0 + x_21) > (10.0 + x_24)? (18.0 + x_21) : (10.0 + x_24)) : ((16.0 + x_26) > (4.0 + x_27)? (16.0 + x_26) : (4.0 + x_27))))? (((18.0 + x_0) > ((19.0 + x_2) > (10.0 + x_3)? (19.0 + x_2) : (10.0 + x_3))? (18.0 + x_0) : ((19.0 + x_2) > (10.0 + x_3)? (19.0 + x_2) : (10.0 + x_3))) > (((3.0 + x_4) > (2.0 + x_7)? (3.0 + x_4) : (2.0 + x_7)) > ((10.0 + x_8) > (17.0 + x_9)? (10.0 + x_8) : (17.0 + x_9))? ((3.0 + x_4) > (2.0 + x_7)? (3.0 + x_4) : (2.0 + x_7)) : ((10.0 + x_8) > (17.0 + x_9)? (10.0 + x_8) : (17.0 + x_9)))? ((18.0 + x_0) > ((19.0 + x_2) > (10.0 + x_3)? (19.0 + x_2) : (10.0 + x_3))? (18.0 + x_0) : ((19.0 + x_2) > (10.0 + x_3)? (19.0 + x_2) : (10.0 + x_3))) : (((3.0 + x_4) > (2.0 + x_7)? (3.0 + x_4) : (2.0 + x_7)) > ((10.0 + x_8) > (17.0 + x_9)? (10.0 + x_8) : (17.0 + x_9))? ((3.0 + x_4) > (2.0 + x_7)? (3.0 + x_4) : (2.0 + x_7)) : ((10.0 + x_8) > (17.0 + x_9)? (10.0 + x_8) : (17.0 + x_9)))) : (((19.0 + x_10) > ((8.0 + x_11) > (17.0 + x_17)? (8.0 + x_11) : (17.0 + x_17))? (19.0 + x_10) : ((8.0 + x_11) > (17.0 + x_17)? (8.0 + x_11) : (17.0 + x_17))) > (((18.0 + x_21) > (10.0 + x_24)? (18.0 + x_21) : (10.0 + x_24)) > ((16.0 + x_26) > (4.0 + x_27)? (16.0 + x_26) : (4.0 + x_27))? ((18.0 + x_21) > (10.0 + x_24)? (18.0 + x_21) : (10.0 + x_24)) : ((16.0 + x_26) > (4.0 + x_27)? (16.0 + x_26) : (4.0 + x_27)))? ((19.0 + x_10) > ((8.0 + x_11) > (17.0 + x_17)? (8.0 + x_11) : (17.0 + x_17))? (19.0 + x_10) : ((8.0 + x_11) > (17.0 + x_17)? (8.0 + x_11) : (17.0 + x_17))) : (((18.0 + x_21) > (10.0 + x_24)? (18.0 + x_21) : (10.0 + x_24)) > ((16.0 + x_26) > (4.0 + x_27)? (16.0 + x_26) : (4.0 + x_27))? ((18.0 + x_21) > (10.0 + x_24)? (18.0 + x_21) : (10.0 + x_24)) : ((16.0 + x_26) > (4.0 + x_27)? (16.0 + x_26) : (4.0 + x_27))))); x_19_ = ((((4.0 + x_0) > ((17.0 + x_4) > (13.0 + x_5)? (17.0 + x_4) : (13.0 + x_5))? (4.0 + x_0) : ((17.0 + x_4) > (13.0 + x_5)? (17.0 + x_4) : (13.0 + x_5))) > (((12.0 + x_8) > (2.0 + x_9)? (12.0 + x_8) : (2.0 + x_9)) > ((2.0 + x_10) > (5.0 + x_13)? (2.0 + x_10) : (5.0 + x_13))? ((12.0 + x_8) > (2.0 + x_9)? (12.0 + x_8) : (2.0 + x_9)) : ((2.0 + x_10) > (5.0 + x_13)? (2.0 + x_10) : (5.0 + x_13)))? ((4.0 + x_0) > ((17.0 + x_4) > (13.0 + x_5)? (17.0 + x_4) : (13.0 + x_5))? (4.0 + x_0) : ((17.0 + x_4) > (13.0 + x_5)? (17.0 + x_4) : (13.0 + x_5))) : (((12.0 + x_8) > (2.0 + x_9)? (12.0 + x_8) : (2.0 + x_9)) > ((2.0 + x_10) > (5.0 + x_13)? (2.0 + x_10) : (5.0 + x_13))? ((12.0 + x_8) > (2.0 + x_9)? (12.0 + x_8) : (2.0 + x_9)) : ((2.0 + x_10) > (5.0 + x_13)? (2.0 + x_10) : (5.0 + x_13)))) > (((10.0 + x_16) > ((8.0 + x_17) > (18.0 + x_18)? (8.0 + x_17) : (18.0 + x_18))? (10.0 + x_16) : ((8.0 + x_17) > (18.0 + x_18)? (8.0 + x_17) : (18.0 + x_18))) > (((9.0 + x_20) > (14.0 + x_21)? (9.0 + x_20) : (14.0 + x_21)) > ((19.0 + x_25) > (14.0 + x_27)? (19.0 + x_25) : (14.0 + x_27))? ((9.0 + x_20) > (14.0 + x_21)? (9.0 + x_20) : (14.0 + x_21)) : ((19.0 + x_25) > (14.0 + x_27)? (19.0 + x_25) : (14.0 + x_27)))? ((10.0 + x_16) > ((8.0 + x_17) > (18.0 + x_18)? (8.0 + x_17) : (18.0 + x_18))? (10.0 + x_16) : ((8.0 + x_17) > (18.0 + x_18)? (8.0 + x_17) : (18.0 + x_18))) : (((9.0 + x_20) > (14.0 + x_21)? (9.0 + x_20) : (14.0 + x_21)) > ((19.0 + x_25) > (14.0 + x_27)? (19.0 + x_25) : (14.0 + x_27))? ((9.0 + x_20) > (14.0 + x_21)? (9.0 + x_20) : (14.0 + x_21)) : ((19.0 + x_25) > (14.0 + x_27)? (19.0 + x_25) : (14.0 + x_27))))? (((4.0 + x_0) > ((17.0 + x_4) > (13.0 + x_5)? (17.0 + x_4) : (13.0 + x_5))? (4.0 + x_0) : ((17.0 + x_4) > (13.0 + x_5)? (17.0 + x_4) : (13.0 + x_5))) > (((12.0 + x_8) > (2.0 + x_9)? (12.0 + x_8) : (2.0 + x_9)) > ((2.0 + x_10) > (5.0 + x_13)? (2.0 + x_10) : (5.0 + x_13))? ((12.0 + x_8) > (2.0 + x_9)? (12.0 + x_8) : (2.0 + x_9)) : ((2.0 + x_10) > (5.0 + x_13)? (2.0 + x_10) : (5.0 + x_13)))? ((4.0 + x_0) > ((17.0 + x_4) > (13.0 + x_5)? (17.0 + x_4) : (13.0 + x_5))? (4.0 + x_0) : ((17.0 + x_4) > (13.0 + x_5)? (17.0 + x_4) : (13.0 + x_5))) : (((12.0 + x_8) > (2.0 + x_9)? (12.0 + x_8) : (2.0 + x_9)) > ((2.0 + x_10) > (5.0 + x_13)? (2.0 + x_10) : (5.0 + x_13))? ((12.0 + x_8) > (2.0 + x_9)? (12.0 + x_8) : (2.0 + x_9)) : ((2.0 + x_10) > (5.0 + x_13)? (2.0 + x_10) : (5.0 + x_13)))) : (((10.0 + x_16) > ((8.0 + x_17) > (18.0 + x_18)? (8.0 + x_17) : (18.0 + x_18))? (10.0 + x_16) : ((8.0 + x_17) > (18.0 + x_18)? (8.0 + x_17) : (18.0 + x_18))) > (((9.0 + x_20) > (14.0 + x_21)? (9.0 + x_20) : (14.0 + x_21)) > ((19.0 + x_25) > (14.0 + x_27)? (19.0 + x_25) : (14.0 + x_27))? ((9.0 + x_20) > (14.0 + x_21)? (9.0 + x_20) : (14.0 + x_21)) : ((19.0 + x_25) > (14.0 + x_27)? (19.0 + x_25) : (14.0 + x_27)))? ((10.0 + x_16) > ((8.0 + x_17) > (18.0 + x_18)? (8.0 + x_17) : (18.0 + x_18))? (10.0 + x_16) : ((8.0 + x_17) > (18.0 + x_18)? (8.0 + x_17) : (18.0 + x_18))) : (((9.0 + x_20) > (14.0 + x_21)? (9.0 + x_20) : (14.0 + x_21)) > ((19.0 + x_25) > (14.0 + x_27)? (19.0 + x_25) : (14.0 + x_27))? ((9.0 + x_20) > (14.0 + x_21)? (9.0 + x_20) : (14.0 + x_21)) : ((19.0 + x_25) > (14.0 + x_27)? (19.0 + x_25) : (14.0 + x_27))))); x_20_ = ((((11.0 + x_1) > ((18.0 + x_4) > (6.0 + x_6)? (18.0 + x_4) : (6.0 + x_6))? (11.0 + x_1) : ((18.0 + x_4) > (6.0 + x_6)? (18.0 + x_4) : (6.0 + x_6))) > (((18.0 + x_8) > (2.0 + x_9)? (18.0 + x_8) : (2.0 + x_9)) > ((3.0 + x_11) > (16.0 + x_12)? (3.0 + x_11) : (16.0 + x_12))? ((18.0 + x_8) > (2.0 + x_9)? (18.0 + x_8) : (2.0 + x_9)) : ((3.0 + x_11) > (16.0 + x_12)? (3.0 + x_11) : (16.0 + x_12)))? ((11.0 + x_1) > ((18.0 + x_4) > (6.0 + x_6)? (18.0 + x_4) : (6.0 + x_6))? (11.0 + x_1) : ((18.0 + x_4) > (6.0 + x_6)? (18.0 + x_4) : (6.0 + x_6))) : (((18.0 + x_8) > (2.0 + x_9)? (18.0 + x_8) : (2.0 + x_9)) > ((3.0 + x_11) > (16.0 + x_12)? (3.0 + x_11) : (16.0 + x_12))? ((18.0 + x_8) > (2.0 + x_9)? (18.0 + x_8) : (2.0 + x_9)) : ((3.0 + x_11) > (16.0 + x_12)? (3.0 + x_11) : (16.0 + x_12)))) > (((4.0 + x_13) > ((7.0 + x_16) > (1.0 + x_17)? (7.0 + x_16) : (1.0 + x_17))? (4.0 + x_13) : ((7.0 + x_16) > (1.0 + x_17)? (7.0 + x_16) : (1.0 + x_17))) > (((12.0 + x_19) > (2.0 + x_21)? (12.0 + x_19) : (2.0 + x_21)) > ((16.0 + x_22) > (1.0 + x_25)? (16.0 + x_22) : (1.0 + x_25))? ((12.0 + x_19) > (2.0 + x_21)? (12.0 + x_19) : (2.0 + x_21)) : ((16.0 + x_22) > (1.0 + x_25)? (16.0 + x_22) : (1.0 + x_25)))? ((4.0 + x_13) > ((7.0 + x_16) > (1.0 + x_17)? (7.0 + x_16) : (1.0 + x_17))? (4.0 + x_13) : ((7.0 + x_16) > (1.0 + x_17)? (7.0 + x_16) : (1.0 + x_17))) : (((12.0 + x_19) > (2.0 + x_21)? (12.0 + x_19) : (2.0 + x_21)) > ((16.0 + x_22) > (1.0 + x_25)? (16.0 + x_22) : (1.0 + x_25))? ((12.0 + x_19) > (2.0 + x_21)? (12.0 + x_19) : (2.0 + x_21)) : ((16.0 + x_22) > (1.0 + x_25)? (16.0 + x_22) : (1.0 + x_25))))? (((11.0 + x_1) > ((18.0 + x_4) > (6.0 + x_6)? (18.0 + x_4) : (6.0 + x_6))? (11.0 + x_1) : ((18.0 + x_4) > (6.0 + x_6)? (18.0 + x_4) : (6.0 + x_6))) > (((18.0 + x_8) > (2.0 + x_9)? (18.0 + x_8) : (2.0 + x_9)) > ((3.0 + x_11) > (16.0 + x_12)? (3.0 + x_11) : (16.0 + x_12))? ((18.0 + x_8) > (2.0 + x_9)? (18.0 + x_8) : (2.0 + x_9)) : ((3.0 + x_11) > (16.0 + x_12)? (3.0 + x_11) : (16.0 + x_12)))? ((11.0 + x_1) > ((18.0 + x_4) > (6.0 + x_6)? (18.0 + x_4) : (6.0 + x_6))? (11.0 + x_1) : ((18.0 + x_4) > (6.0 + x_6)? (18.0 + x_4) : (6.0 + x_6))) : (((18.0 + x_8) > (2.0 + x_9)? (18.0 + x_8) : (2.0 + x_9)) > ((3.0 + x_11) > (16.0 + x_12)? (3.0 + x_11) : (16.0 + x_12))? ((18.0 + x_8) > (2.0 + x_9)? (18.0 + x_8) : (2.0 + x_9)) : ((3.0 + x_11) > (16.0 + x_12)? (3.0 + x_11) : (16.0 + x_12)))) : (((4.0 + x_13) > ((7.0 + x_16) > (1.0 + x_17)? (7.0 + x_16) : (1.0 + x_17))? (4.0 + x_13) : ((7.0 + x_16) > (1.0 + x_17)? (7.0 + x_16) : (1.0 + x_17))) > (((12.0 + x_19) > (2.0 + x_21)? (12.0 + x_19) : (2.0 + x_21)) > ((16.0 + x_22) > (1.0 + x_25)? (16.0 + x_22) : (1.0 + x_25))? ((12.0 + x_19) > (2.0 + x_21)? (12.0 + x_19) : (2.0 + x_21)) : ((16.0 + x_22) > (1.0 + x_25)? (16.0 + x_22) : (1.0 + x_25)))? ((4.0 + x_13) > ((7.0 + x_16) > (1.0 + x_17)? (7.0 + x_16) : (1.0 + x_17))? (4.0 + x_13) : ((7.0 + x_16) > (1.0 + x_17)? (7.0 + x_16) : (1.0 + x_17))) : (((12.0 + x_19) > (2.0 + x_21)? (12.0 + x_19) : (2.0 + x_21)) > ((16.0 + x_22) > (1.0 + x_25)? (16.0 + x_22) : (1.0 + x_25))? ((12.0 + x_19) > (2.0 + x_21)? (12.0 + x_19) : (2.0 + x_21)) : ((16.0 + x_22) > (1.0 + x_25)? (16.0 + x_22) : (1.0 + x_25))))); x_21_ = ((((5.0 + x_0) > ((4.0 + x_1) > (9.0 + x_5)? (4.0 + x_1) : (9.0 + x_5))? (5.0 + x_0) : ((4.0 + x_1) > (9.0 + x_5)? (4.0 + x_1) : (9.0 + x_5))) > (((12.0 + x_8) > (2.0 + x_9)? (12.0 + x_8) : (2.0 + x_9)) > ((15.0 + x_10) > (16.0 + x_13)? (15.0 + x_10) : (16.0 + x_13))? ((12.0 + x_8) > (2.0 + x_9)? (12.0 + x_8) : (2.0 + x_9)) : ((15.0 + x_10) > (16.0 + x_13)? (15.0 + x_10) : (16.0 + x_13)))? ((5.0 + x_0) > ((4.0 + x_1) > (9.0 + x_5)? (4.0 + x_1) : (9.0 + x_5))? (5.0 + x_0) : ((4.0 + x_1) > (9.0 + x_5)? (4.0 + x_1) : (9.0 + x_5))) : (((12.0 + x_8) > (2.0 + x_9)? (12.0 + x_8) : (2.0 + x_9)) > ((15.0 + x_10) > (16.0 + x_13)? (15.0 + x_10) : (16.0 + x_13))? ((12.0 + x_8) > (2.0 + x_9)? (12.0 + x_8) : (2.0 + x_9)) : ((15.0 + x_10) > (16.0 + x_13)? (15.0 + x_10) : (16.0 + x_13)))) > (((11.0 + x_14) > ((13.0 + x_17) > (5.0 + x_19)? (13.0 + x_17) : (5.0 + x_19))? (11.0 + x_14) : ((13.0 + x_17) > (5.0 + x_19)? (13.0 + x_17) : (5.0 + x_19))) > (((7.0 + x_23) > (2.0 + x_24)? (7.0 + x_23) : (2.0 + x_24)) > ((10.0 + x_25) > (13.0 + x_26)? (10.0 + x_25) : (13.0 + x_26))? ((7.0 + x_23) > (2.0 + x_24)? (7.0 + x_23) : (2.0 + x_24)) : ((10.0 + x_25) > (13.0 + x_26)? (10.0 + x_25) : (13.0 + x_26)))? ((11.0 + x_14) > ((13.0 + x_17) > (5.0 + x_19)? (13.0 + x_17) : (5.0 + x_19))? (11.0 + x_14) : ((13.0 + x_17) > (5.0 + x_19)? (13.0 + x_17) : (5.0 + x_19))) : (((7.0 + x_23) > (2.0 + x_24)? (7.0 + x_23) : (2.0 + x_24)) > ((10.0 + x_25) > (13.0 + x_26)? (10.0 + x_25) : (13.0 + x_26))? ((7.0 + x_23) > (2.0 + x_24)? (7.0 + x_23) : (2.0 + x_24)) : ((10.0 + x_25) > (13.0 + x_26)? (10.0 + x_25) : (13.0 + x_26))))? (((5.0 + x_0) > ((4.0 + x_1) > (9.0 + x_5)? (4.0 + x_1) : (9.0 + x_5))? (5.0 + x_0) : ((4.0 + x_1) > (9.0 + x_5)? (4.0 + x_1) : (9.0 + x_5))) > (((12.0 + x_8) > (2.0 + x_9)? (12.0 + x_8) : (2.0 + x_9)) > ((15.0 + x_10) > (16.0 + x_13)? (15.0 + x_10) : (16.0 + x_13))? ((12.0 + x_8) > (2.0 + x_9)? (12.0 + x_8) : (2.0 + x_9)) : ((15.0 + x_10) > (16.0 + x_13)? (15.0 + x_10) : (16.0 + x_13)))? ((5.0 + x_0) > ((4.0 + x_1) > (9.0 + x_5)? (4.0 + x_1) : (9.0 + x_5))? (5.0 + x_0) : ((4.0 + x_1) > (9.0 + x_5)? (4.0 + x_1) : (9.0 + x_5))) : (((12.0 + x_8) > (2.0 + x_9)? (12.0 + x_8) : (2.0 + x_9)) > ((15.0 + x_10) > (16.0 + x_13)? (15.0 + x_10) : (16.0 + x_13))? ((12.0 + x_8) > (2.0 + x_9)? (12.0 + x_8) : (2.0 + x_9)) : ((15.0 + x_10) > (16.0 + x_13)? (15.0 + x_10) : (16.0 + x_13)))) : (((11.0 + x_14) > ((13.0 + x_17) > (5.0 + x_19)? (13.0 + x_17) : (5.0 + x_19))? (11.0 + x_14) : ((13.0 + x_17) > (5.0 + x_19)? (13.0 + x_17) : (5.0 + x_19))) > (((7.0 + x_23) > (2.0 + x_24)? (7.0 + x_23) : (2.0 + x_24)) > ((10.0 + x_25) > (13.0 + x_26)? (10.0 + x_25) : (13.0 + x_26))? ((7.0 + x_23) > (2.0 + x_24)? (7.0 + x_23) : (2.0 + x_24)) : ((10.0 + x_25) > (13.0 + x_26)? (10.0 + x_25) : (13.0 + x_26)))? ((11.0 + x_14) > ((13.0 + x_17) > (5.0 + x_19)? (13.0 + x_17) : (5.0 + x_19))? (11.0 + x_14) : ((13.0 + x_17) > (5.0 + x_19)? (13.0 + x_17) : (5.0 + x_19))) : (((7.0 + x_23) > (2.0 + x_24)? (7.0 + x_23) : (2.0 + x_24)) > ((10.0 + x_25) > (13.0 + x_26)? (10.0 + x_25) : (13.0 + x_26))? ((7.0 + x_23) > (2.0 + x_24)? (7.0 + x_23) : (2.0 + x_24)) : ((10.0 + x_25) > (13.0 + x_26)? (10.0 + x_25) : (13.0 + x_26))))); x_22_ = ((((11.0 + x_2) > ((10.0 + x_3) > (13.0 + x_4)? (10.0 + x_3) : (13.0 + x_4))? (11.0 + x_2) : ((10.0 + x_3) > (13.0 + x_4)? (10.0 + x_3) : (13.0 + x_4))) > (((6.0 + x_6) > (18.0 + x_7)? (6.0 + x_6) : (18.0 + x_7)) > ((14.0 + x_8) > (6.0 + x_11)? (14.0 + x_8) : (6.0 + x_11))? ((6.0 + x_6) > (18.0 + x_7)? (6.0 + x_6) : (18.0 + x_7)) : ((14.0 + x_8) > (6.0 + x_11)? (14.0 + x_8) : (6.0 + x_11)))? ((11.0 + x_2) > ((10.0 + x_3) > (13.0 + x_4)? (10.0 + x_3) : (13.0 + x_4))? (11.0 + x_2) : ((10.0 + x_3) > (13.0 + x_4)? (10.0 + x_3) : (13.0 + x_4))) : (((6.0 + x_6) > (18.0 + x_7)? (6.0 + x_6) : (18.0 + x_7)) > ((14.0 + x_8) > (6.0 + x_11)? (14.0 + x_8) : (6.0 + x_11))? ((6.0 + x_6) > (18.0 + x_7)? (6.0 + x_6) : (18.0 + x_7)) : ((14.0 + x_8) > (6.0 + x_11)? (14.0 + x_8) : (6.0 + x_11)))) > (((5.0 + x_12) > ((2.0 + x_17) > (5.0 + x_19)? (2.0 + x_17) : (5.0 + x_19))? (5.0 + x_12) : ((2.0 + x_17) > (5.0 + x_19)? (2.0 + x_17) : (5.0 + x_19))) > (((8.0 + x_21) > (7.0 + x_23)? (8.0 + x_21) : (7.0 + x_23)) > ((18.0 + x_24) > (12.0 + x_27)? (18.0 + x_24) : (12.0 + x_27))? ((8.0 + x_21) > (7.0 + x_23)? (8.0 + x_21) : (7.0 + x_23)) : ((18.0 + x_24) > (12.0 + x_27)? (18.0 + x_24) : (12.0 + x_27)))? ((5.0 + x_12) > ((2.0 + x_17) > (5.0 + x_19)? (2.0 + x_17) : (5.0 + x_19))? (5.0 + x_12) : ((2.0 + x_17) > (5.0 + x_19)? (2.0 + x_17) : (5.0 + x_19))) : (((8.0 + x_21) > (7.0 + x_23)? (8.0 + x_21) : (7.0 + x_23)) > ((18.0 + x_24) > (12.0 + x_27)? (18.0 + x_24) : (12.0 + x_27))? ((8.0 + x_21) > (7.0 + x_23)? (8.0 + x_21) : (7.0 + x_23)) : ((18.0 + x_24) > (12.0 + x_27)? (18.0 + x_24) : (12.0 + x_27))))? (((11.0 + x_2) > ((10.0 + x_3) > (13.0 + x_4)? (10.0 + x_3) : (13.0 + x_4))? (11.0 + x_2) : ((10.0 + x_3) > (13.0 + x_4)? (10.0 + x_3) : (13.0 + x_4))) > (((6.0 + x_6) > (18.0 + x_7)? (6.0 + x_6) : (18.0 + x_7)) > ((14.0 + x_8) > (6.0 + x_11)? (14.0 + x_8) : (6.0 + x_11))? ((6.0 + x_6) > (18.0 + x_7)? (6.0 + x_6) : (18.0 + x_7)) : ((14.0 + x_8) > (6.0 + x_11)? (14.0 + x_8) : (6.0 + x_11)))? ((11.0 + x_2) > ((10.0 + x_3) > (13.0 + x_4)? (10.0 + x_3) : (13.0 + x_4))? (11.0 + x_2) : ((10.0 + x_3) > (13.0 + x_4)? (10.0 + x_3) : (13.0 + x_4))) : (((6.0 + x_6) > (18.0 + x_7)? (6.0 + x_6) : (18.0 + x_7)) > ((14.0 + x_8) > (6.0 + x_11)? (14.0 + x_8) : (6.0 + x_11))? ((6.0 + x_6) > (18.0 + x_7)? (6.0 + x_6) : (18.0 + x_7)) : ((14.0 + x_8) > (6.0 + x_11)? (14.0 + x_8) : (6.0 + x_11)))) : (((5.0 + x_12) > ((2.0 + x_17) > (5.0 + x_19)? (2.0 + x_17) : (5.0 + x_19))? (5.0 + x_12) : ((2.0 + x_17) > (5.0 + x_19)? (2.0 + x_17) : (5.0 + x_19))) > (((8.0 + x_21) > (7.0 + x_23)? (8.0 + x_21) : (7.0 + x_23)) > ((18.0 + x_24) > (12.0 + x_27)? (18.0 + x_24) : (12.0 + x_27))? ((8.0 + x_21) > (7.0 + x_23)? (8.0 + x_21) : (7.0 + x_23)) : ((18.0 + x_24) > (12.0 + x_27)? (18.0 + x_24) : (12.0 + x_27)))? ((5.0 + x_12) > ((2.0 + x_17) > (5.0 + x_19)? (2.0 + x_17) : (5.0 + x_19))? (5.0 + x_12) : ((2.0 + x_17) > (5.0 + x_19)? (2.0 + x_17) : (5.0 + x_19))) : (((8.0 + x_21) > (7.0 + x_23)? (8.0 + x_21) : (7.0 + x_23)) > ((18.0 + x_24) > (12.0 + x_27)? (18.0 + x_24) : (12.0 + x_27))? ((8.0 + x_21) > (7.0 + x_23)? (8.0 + x_21) : (7.0 + x_23)) : ((18.0 + x_24) > (12.0 + x_27)? (18.0 + x_24) : (12.0 + x_27))))); x_23_ = ((((12.0 + x_2) > ((8.0 + x_4) > (14.0 + x_6)? (8.0 + x_4) : (14.0 + x_6))? (12.0 + x_2) : ((8.0 + x_4) > (14.0 + x_6)? (8.0 + x_4) : (14.0 + x_6))) > (((11.0 + x_10) > (20.0 + x_11)? (11.0 + x_10) : (20.0 + x_11)) > ((17.0 + x_13) > (16.0 + x_16)? (17.0 + x_13) : (16.0 + x_16))? ((11.0 + x_10) > (20.0 + x_11)? (11.0 + x_10) : (20.0 + x_11)) : ((17.0 + x_13) > (16.0 + x_16)? (17.0 + x_13) : (16.0 + x_16)))? ((12.0 + x_2) > ((8.0 + x_4) > (14.0 + x_6)? (8.0 + x_4) : (14.0 + x_6))? (12.0 + x_2) : ((8.0 + x_4) > (14.0 + x_6)? (8.0 + x_4) : (14.0 + x_6))) : (((11.0 + x_10) > (20.0 + x_11)? (11.0 + x_10) : (20.0 + x_11)) > ((17.0 + x_13) > (16.0 + x_16)? (17.0 + x_13) : (16.0 + x_16))? ((11.0 + x_10) > (20.0 + x_11)? (11.0 + x_10) : (20.0 + x_11)) : ((17.0 + x_13) > (16.0 + x_16)? (17.0 + x_13) : (16.0 + x_16)))) > (((2.0 + x_18) > ((14.0 + x_19) > (6.0 + x_21)? (14.0 + x_19) : (6.0 + x_21))? (2.0 + x_18) : ((14.0 + x_19) > (6.0 + x_21)? (14.0 + x_19) : (6.0 + x_21))) > (((1.0 + x_22) > (6.0 + x_24)? (1.0 + x_22) : (6.0 + x_24)) > ((8.0 + x_26) > (9.0 + x_27)? (8.0 + x_26) : (9.0 + x_27))? ((1.0 + x_22) > (6.0 + x_24)? (1.0 + x_22) : (6.0 + x_24)) : ((8.0 + x_26) > (9.0 + x_27)? (8.0 + x_26) : (9.0 + x_27)))? ((2.0 + x_18) > ((14.0 + x_19) > (6.0 + x_21)? (14.0 + x_19) : (6.0 + x_21))? (2.0 + x_18) : ((14.0 + x_19) > (6.0 + x_21)? (14.0 + x_19) : (6.0 + x_21))) : (((1.0 + x_22) > (6.0 + x_24)? (1.0 + x_22) : (6.0 + x_24)) > ((8.0 + x_26) > (9.0 + x_27)? (8.0 + x_26) : (9.0 + x_27))? ((1.0 + x_22) > (6.0 + x_24)? (1.0 + x_22) : (6.0 + x_24)) : ((8.0 + x_26) > (9.0 + x_27)? (8.0 + x_26) : (9.0 + x_27))))? (((12.0 + x_2) > ((8.0 + x_4) > (14.0 + x_6)? (8.0 + x_4) : (14.0 + x_6))? (12.0 + x_2) : ((8.0 + x_4) > (14.0 + x_6)? (8.0 + x_4) : (14.0 + x_6))) > (((11.0 + x_10) > (20.0 + x_11)? (11.0 + x_10) : (20.0 + x_11)) > ((17.0 + x_13) > (16.0 + x_16)? (17.0 + x_13) : (16.0 + x_16))? ((11.0 + x_10) > (20.0 + x_11)? (11.0 + x_10) : (20.0 + x_11)) : ((17.0 + x_13) > (16.0 + x_16)? (17.0 + x_13) : (16.0 + x_16)))? ((12.0 + x_2) > ((8.0 + x_4) > (14.0 + x_6)? (8.0 + x_4) : (14.0 + x_6))? (12.0 + x_2) : ((8.0 + x_4) > (14.0 + x_6)? (8.0 + x_4) : (14.0 + x_6))) : (((11.0 + x_10) > (20.0 + x_11)? (11.0 + x_10) : (20.0 + x_11)) > ((17.0 + x_13) > (16.0 + x_16)? (17.0 + x_13) : (16.0 + x_16))? ((11.0 + x_10) > (20.0 + x_11)? (11.0 + x_10) : (20.0 + x_11)) : ((17.0 + x_13) > (16.0 + x_16)? (17.0 + x_13) : (16.0 + x_16)))) : (((2.0 + x_18) > ((14.0 + x_19) > (6.0 + x_21)? (14.0 + x_19) : (6.0 + x_21))? (2.0 + x_18) : ((14.0 + x_19) > (6.0 + x_21)? (14.0 + x_19) : (6.0 + x_21))) > (((1.0 + x_22) > (6.0 + x_24)? (1.0 + x_22) : (6.0 + x_24)) > ((8.0 + x_26) > (9.0 + x_27)? (8.0 + x_26) : (9.0 + x_27))? ((1.0 + x_22) > (6.0 + x_24)? (1.0 + x_22) : (6.0 + x_24)) : ((8.0 + x_26) > (9.0 + x_27)? (8.0 + x_26) : (9.0 + x_27)))? ((2.0 + x_18) > ((14.0 + x_19) > (6.0 + x_21)? (14.0 + x_19) : (6.0 + x_21))? (2.0 + x_18) : ((14.0 + x_19) > (6.0 + x_21)? (14.0 + x_19) : (6.0 + x_21))) : (((1.0 + x_22) > (6.0 + x_24)? (1.0 + x_22) : (6.0 + x_24)) > ((8.0 + x_26) > (9.0 + x_27)? (8.0 + x_26) : (9.0 + x_27))? ((1.0 + x_22) > (6.0 + x_24)? (1.0 + x_22) : (6.0 + x_24)) : ((8.0 + x_26) > (9.0 + x_27)? (8.0 + x_26) : (9.0 + x_27))))); x_24_ = ((((6.0 + x_3) > ((5.0 + x_5) > (16.0 + x_13)? (5.0 + x_5) : (16.0 + x_13))? (6.0 + x_3) : ((5.0 + x_5) > (16.0 + x_13)? (5.0 + x_5) : (16.0 + x_13))) > (((10.0 + x_14) > (9.0 + x_16)? (10.0 + x_14) : (9.0 + x_16)) > ((15.0 + x_17) > (8.0 + x_19)? (15.0 + x_17) : (8.0 + x_19))? ((10.0 + x_14) > (9.0 + x_16)? (10.0 + x_14) : (9.0 + x_16)) : ((15.0 + x_17) > (8.0 + x_19)? (15.0 + x_17) : (8.0 + x_19)))? ((6.0 + x_3) > ((5.0 + x_5) > (16.0 + x_13)? (5.0 + x_5) : (16.0 + x_13))? (6.0 + x_3) : ((5.0 + x_5) > (16.0 + x_13)? (5.0 + x_5) : (16.0 + x_13))) : (((10.0 + x_14) > (9.0 + x_16)? (10.0 + x_14) : (9.0 + x_16)) > ((15.0 + x_17) > (8.0 + x_19)? (15.0 + x_17) : (8.0 + x_19))? ((10.0 + x_14) > (9.0 + x_16)? (10.0 + x_14) : (9.0 + x_16)) : ((15.0 + x_17) > (8.0 + x_19)? (15.0 + x_17) : (8.0 + x_19)))) > (((17.0 + x_20) > ((18.0 + x_21) > (12.0 + x_22)? (18.0 + x_21) : (12.0 + x_22))? (17.0 + x_20) : ((18.0 + x_21) > (12.0 + x_22)? (18.0 + x_21) : (12.0 + x_22))) > (((7.0 + x_23) > (19.0 + x_25)? (7.0 + x_23) : (19.0 + x_25)) > ((11.0 + x_26) > (12.0 + x_27)? (11.0 + x_26) : (12.0 + x_27))? ((7.0 + x_23) > (19.0 + x_25)? (7.0 + x_23) : (19.0 + x_25)) : ((11.0 + x_26) > (12.0 + x_27)? (11.0 + x_26) : (12.0 + x_27)))? ((17.0 + x_20) > ((18.0 + x_21) > (12.0 + x_22)? (18.0 + x_21) : (12.0 + x_22))? (17.0 + x_20) : ((18.0 + x_21) > (12.0 + x_22)? (18.0 + x_21) : (12.0 + x_22))) : (((7.0 + x_23) > (19.0 + x_25)? (7.0 + x_23) : (19.0 + x_25)) > ((11.0 + x_26) > (12.0 + x_27)? (11.0 + x_26) : (12.0 + x_27))? ((7.0 + x_23) > (19.0 + x_25)? (7.0 + x_23) : (19.0 + x_25)) : ((11.0 + x_26) > (12.0 + x_27)? (11.0 + x_26) : (12.0 + x_27))))? (((6.0 + x_3) > ((5.0 + x_5) > (16.0 + x_13)? (5.0 + x_5) : (16.0 + x_13))? (6.0 + x_3) : ((5.0 + x_5) > (16.0 + x_13)? (5.0 + x_5) : (16.0 + x_13))) > (((10.0 + x_14) > (9.0 + x_16)? (10.0 + x_14) : (9.0 + x_16)) > ((15.0 + x_17) > (8.0 + x_19)? (15.0 + x_17) : (8.0 + x_19))? ((10.0 + x_14) > (9.0 + x_16)? (10.0 + x_14) : (9.0 + x_16)) : ((15.0 + x_17) > (8.0 + x_19)? (15.0 + x_17) : (8.0 + x_19)))? ((6.0 + x_3) > ((5.0 + x_5) > (16.0 + x_13)? (5.0 + x_5) : (16.0 + x_13))? (6.0 + x_3) : ((5.0 + x_5) > (16.0 + x_13)? (5.0 + x_5) : (16.0 + x_13))) : (((10.0 + x_14) > (9.0 + x_16)? (10.0 + x_14) : (9.0 + x_16)) > ((15.0 + x_17) > (8.0 + x_19)? (15.0 + x_17) : (8.0 + x_19))? ((10.0 + x_14) > (9.0 + x_16)? (10.0 + x_14) : (9.0 + x_16)) : ((15.0 + x_17) > (8.0 + x_19)? (15.0 + x_17) : (8.0 + x_19)))) : (((17.0 + x_20) > ((18.0 + x_21) > (12.0 + x_22)? (18.0 + x_21) : (12.0 + x_22))? (17.0 + x_20) : ((18.0 + x_21) > (12.0 + x_22)? (18.0 + x_21) : (12.0 + x_22))) > (((7.0 + x_23) > (19.0 + x_25)? (7.0 + x_23) : (19.0 + x_25)) > ((11.0 + x_26) > (12.0 + x_27)? (11.0 + x_26) : (12.0 + x_27))? ((7.0 + x_23) > (19.0 + x_25)? (7.0 + x_23) : (19.0 + x_25)) : ((11.0 + x_26) > (12.0 + x_27)? (11.0 + x_26) : (12.0 + x_27)))? ((17.0 + x_20) > ((18.0 + x_21) > (12.0 + x_22)? (18.0 + x_21) : (12.0 + x_22))? (17.0 + x_20) : ((18.0 + x_21) > (12.0 + x_22)? (18.0 + x_21) : (12.0 + x_22))) : (((7.0 + x_23) > (19.0 + x_25)? (7.0 + x_23) : (19.0 + x_25)) > ((11.0 + x_26) > (12.0 + x_27)? (11.0 + x_26) : (12.0 + x_27))? ((7.0 + x_23) > (19.0 + x_25)? (7.0 + x_23) : (19.0 + x_25)) : ((11.0 + x_26) > (12.0 + x_27)? (11.0 + x_26) : (12.0 + x_27))))); x_25_ = ((((5.0 + x_1) > ((13.0 + x_2) > (10.0 + x_3)? (13.0 + x_2) : (10.0 + x_3))? (5.0 + x_1) : ((13.0 + x_2) > (10.0 + x_3)? (13.0 + x_2) : (10.0 + x_3))) > (((11.0 + x_4) > (18.0 + x_10)? (11.0 + x_4) : (18.0 + x_10)) > ((19.0 + x_12) > (19.0 + x_13)? (19.0 + x_12) : (19.0 + x_13))? ((11.0 + x_4) > (18.0 + x_10)? (11.0 + x_4) : (18.0 + x_10)) : ((19.0 + x_12) > (19.0 + x_13)? (19.0 + x_12) : (19.0 + x_13)))? ((5.0 + x_1) > ((13.0 + x_2) > (10.0 + x_3)? (13.0 + x_2) : (10.0 + x_3))? (5.0 + x_1) : ((13.0 + x_2) > (10.0 + x_3)? (13.0 + x_2) : (10.0 + x_3))) : (((11.0 + x_4) > (18.0 + x_10)? (11.0 + x_4) : (18.0 + x_10)) > ((19.0 + x_12) > (19.0 + x_13)? (19.0 + x_12) : (19.0 + x_13))? ((11.0 + x_4) > (18.0 + x_10)? (11.0 + x_4) : (18.0 + x_10)) : ((19.0 + x_12) > (19.0 + x_13)? (19.0 + x_12) : (19.0 + x_13)))) > (((10.0 + x_14) > ((12.0 + x_18) > (8.0 + x_19)? (12.0 + x_18) : (8.0 + x_19))? (10.0 + x_14) : ((12.0 + x_18) > (8.0 + x_19)? (12.0 + x_18) : (8.0 + x_19))) > (((5.0 + x_20) > (7.0 + x_23)? (5.0 + x_20) : (7.0 + x_23)) > ((8.0 + x_25) > (8.0 + x_27)? (8.0 + x_25) : (8.0 + x_27))? ((5.0 + x_20) > (7.0 + x_23)? (5.0 + x_20) : (7.0 + x_23)) : ((8.0 + x_25) > (8.0 + x_27)? (8.0 + x_25) : (8.0 + x_27)))? ((10.0 + x_14) > ((12.0 + x_18) > (8.0 + x_19)? (12.0 + x_18) : (8.0 + x_19))? (10.0 + x_14) : ((12.0 + x_18) > (8.0 + x_19)? (12.0 + x_18) : (8.0 + x_19))) : (((5.0 + x_20) > (7.0 + x_23)? (5.0 + x_20) : (7.0 + x_23)) > ((8.0 + x_25) > (8.0 + x_27)? (8.0 + x_25) : (8.0 + x_27))? ((5.0 + x_20) > (7.0 + x_23)? (5.0 + x_20) : (7.0 + x_23)) : ((8.0 + x_25) > (8.0 + x_27)? (8.0 + x_25) : (8.0 + x_27))))? (((5.0 + x_1) > ((13.0 + x_2) > (10.0 + x_3)? (13.0 + x_2) : (10.0 + x_3))? (5.0 + x_1) : ((13.0 + x_2) > (10.0 + x_3)? (13.0 + x_2) : (10.0 + x_3))) > (((11.0 + x_4) > (18.0 + x_10)? (11.0 + x_4) : (18.0 + x_10)) > ((19.0 + x_12) > (19.0 + x_13)? (19.0 + x_12) : (19.0 + x_13))? ((11.0 + x_4) > (18.0 + x_10)? (11.0 + x_4) : (18.0 + x_10)) : ((19.0 + x_12) > (19.0 + x_13)? (19.0 + x_12) : (19.0 + x_13)))? ((5.0 + x_1) > ((13.0 + x_2) > (10.0 + x_3)? (13.0 + x_2) : (10.0 + x_3))? (5.0 + x_1) : ((13.0 + x_2) > (10.0 + x_3)? (13.0 + x_2) : (10.0 + x_3))) : (((11.0 + x_4) > (18.0 + x_10)? (11.0 + x_4) : (18.0 + x_10)) > ((19.0 + x_12) > (19.0 + x_13)? (19.0 + x_12) : (19.0 + x_13))? ((11.0 + x_4) > (18.0 + x_10)? (11.0 + x_4) : (18.0 + x_10)) : ((19.0 + x_12) > (19.0 + x_13)? (19.0 + x_12) : (19.0 + x_13)))) : (((10.0 + x_14) > ((12.0 + x_18) > (8.0 + x_19)? (12.0 + x_18) : (8.0 + x_19))? (10.0 + x_14) : ((12.0 + x_18) > (8.0 + x_19)? (12.0 + x_18) : (8.0 + x_19))) > (((5.0 + x_20) > (7.0 + x_23)? (5.0 + x_20) : (7.0 + x_23)) > ((8.0 + x_25) > (8.0 + x_27)? (8.0 + x_25) : (8.0 + x_27))? ((5.0 + x_20) > (7.0 + x_23)? (5.0 + x_20) : (7.0 + x_23)) : ((8.0 + x_25) > (8.0 + x_27)? (8.0 + x_25) : (8.0 + x_27)))? ((10.0 + x_14) > ((12.0 + x_18) > (8.0 + x_19)? (12.0 + x_18) : (8.0 + x_19))? (10.0 + x_14) : ((12.0 + x_18) > (8.0 + x_19)? (12.0 + x_18) : (8.0 + x_19))) : (((5.0 + x_20) > (7.0 + x_23)? (5.0 + x_20) : (7.0 + x_23)) > ((8.0 + x_25) > (8.0 + x_27)? (8.0 + x_25) : (8.0 + x_27))? ((5.0 + x_20) > (7.0 + x_23)? (5.0 + x_20) : (7.0 + x_23)) : ((8.0 + x_25) > (8.0 + x_27)? (8.0 + x_25) : (8.0 + x_27))))); x_26_ = ((((16.0 + x_2) > ((8.0 + x_5) > (4.0 + x_9)? (8.0 + x_5) : (4.0 + x_9))? (16.0 + x_2) : ((8.0 + x_5) > (4.0 + x_9)? (8.0 + x_5) : (4.0 + x_9))) > (((2.0 + x_10) > (2.0 + x_12)? (2.0 + x_10) : (2.0 + x_12)) > ((2.0 + x_13) > (18.0 + x_14)? (2.0 + x_13) : (18.0 + x_14))? ((2.0 + x_10) > (2.0 + x_12)? (2.0 + x_10) : (2.0 + x_12)) : ((2.0 + x_13) > (18.0 + x_14)? (2.0 + x_13) : (18.0 + x_14)))? ((16.0 + x_2) > ((8.0 + x_5) > (4.0 + x_9)? (8.0 + x_5) : (4.0 + x_9))? (16.0 + x_2) : ((8.0 + x_5) > (4.0 + x_9)? (8.0 + x_5) : (4.0 + x_9))) : (((2.0 + x_10) > (2.0 + x_12)? (2.0 + x_10) : (2.0 + x_12)) > ((2.0 + x_13) > (18.0 + x_14)? (2.0 + x_13) : (18.0 + x_14))? ((2.0 + x_10) > (2.0 + x_12)? (2.0 + x_10) : (2.0 + x_12)) : ((2.0 + x_13) > (18.0 + x_14)? (2.0 + x_13) : (18.0 + x_14)))) > (((7.0 + x_15) > ((19.0 + x_17) > (17.0 + x_18)? (19.0 + x_17) : (17.0 + x_18))? (7.0 + x_15) : ((19.0 + x_17) > (17.0 + x_18)? (19.0 + x_17) : (17.0 + x_18))) > (((20.0 + x_19) > (7.0 + x_22)? (20.0 + x_19) : (7.0 + x_22)) > ((1.0 + x_23) > (1.0 + x_26)? (1.0 + x_23) : (1.0 + x_26))? ((20.0 + x_19) > (7.0 + x_22)? (20.0 + x_19) : (7.0 + x_22)) : ((1.0 + x_23) > (1.0 + x_26)? (1.0 + x_23) : (1.0 + x_26)))? ((7.0 + x_15) > ((19.0 + x_17) > (17.0 + x_18)? (19.0 + x_17) : (17.0 + x_18))? (7.0 + x_15) : ((19.0 + x_17) > (17.0 + x_18)? (19.0 + x_17) : (17.0 + x_18))) : (((20.0 + x_19) > (7.0 + x_22)? (20.0 + x_19) : (7.0 + x_22)) > ((1.0 + x_23) > (1.0 + x_26)? (1.0 + x_23) : (1.0 + x_26))? ((20.0 + x_19) > (7.0 + x_22)? (20.0 + x_19) : (7.0 + x_22)) : ((1.0 + x_23) > (1.0 + x_26)? (1.0 + x_23) : (1.0 + x_26))))? (((16.0 + x_2) > ((8.0 + x_5) > (4.0 + x_9)? (8.0 + x_5) : (4.0 + x_9))? (16.0 + x_2) : ((8.0 + x_5) > (4.0 + x_9)? (8.0 + x_5) : (4.0 + x_9))) > (((2.0 + x_10) > (2.0 + x_12)? (2.0 + x_10) : (2.0 + x_12)) > ((2.0 + x_13) > (18.0 + x_14)? (2.0 + x_13) : (18.0 + x_14))? ((2.0 + x_10) > (2.0 + x_12)? (2.0 + x_10) : (2.0 + x_12)) : ((2.0 + x_13) > (18.0 + x_14)? (2.0 + x_13) : (18.0 + x_14)))? ((16.0 + x_2) > ((8.0 + x_5) > (4.0 + x_9)? (8.0 + x_5) : (4.0 + x_9))? (16.0 + x_2) : ((8.0 + x_5) > (4.0 + x_9)? (8.0 + x_5) : (4.0 + x_9))) : (((2.0 + x_10) > (2.0 + x_12)? (2.0 + x_10) : (2.0 + x_12)) > ((2.0 + x_13) > (18.0 + x_14)? (2.0 + x_13) : (18.0 + x_14))? ((2.0 + x_10) > (2.0 + x_12)? (2.0 + x_10) : (2.0 + x_12)) : ((2.0 + x_13) > (18.0 + x_14)? (2.0 + x_13) : (18.0 + x_14)))) : (((7.0 + x_15) > ((19.0 + x_17) > (17.0 + x_18)? (19.0 + x_17) : (17.0 + x_18))? (7.0 + x_15) : ((19.0 + x_17) > (17.0 + x_18)? (19.0 + x_17) : (17.0 + x_18))) > (((20.0 + x_19) > (7.0 + x_22)? (20.0 + x_19) : (7.0 + x_22)) > ((1.0 + x_23) > (1.0 + x_26)? (1.0 + x_23) : (1.0 + x_26))? ((20.0 + x_19) > (7.0 + x_22)? (20.0 + x_19) : (7.0 + x_22)) : ((1.0 + x_23) > (1.0 + x_26)? (1.0 + x_23) : (1.0 + x_26)))? ((7.0 + x_15) > ((19.0 + x_17) > (17.0 + x_18)? (19.0 + x_17) : (17.0 + x_18))? (7.0 + x_15) : ((19.0 + x_17) > (17.0 + x_18)? (19.0 + x_17) : (17.0 + x_18))) : (((20.0 + x_19) > (7.0 + x_22)? (20.0 + x_19) : (7.0 + x_22)) > ((1.0 + x_23) > (1.0 + x_26)? (1.0 + x_23) : (1.0 + x_26))? ((20.0 + x_19) > (7.0 + x_22)? (20.0 + x_19) : (7.0 + x_22)) : ((1.0 + x_23) > (1.0 + x_26)? (1.0 + x_23) : (1.0 + x_26))))); x_27_ = ((((10.0 + x_2) > ((10.0 + x_3) > (17.0 + x_4)? (10.0 + x_3) : (17.0 + x_4))? (10.0 + x_2) : ((10.0 + x_3) > (17.0 + x_4)? (10.0 + x_3) : (17.0 + x_4))) > (((18.0 + x_5) > (4.0 + x_8)? (18.0 + x_5) : (4.0 + x_8)) > ((17.0 + x_9) > (3.0 + x_11)? (17.0 + x_9) : (3.0 + x_11))? ((18.0 + x_5) > (4.0 + x_8)? (18.0 + x_5) : (4.0 + x_8)) : ((17.0 + x_9) > (3.0 + x_11)? (17.0 + x_9) : (3.0 + x_11)))? ((10.0 + x_2) > ((10.0 + x_3) > (17.0 + x_4)? (10.0 + x_3) : (17.0 + x_4))? (10.0 + x_2) : ((10.0 + x_3) > (17.0 + x_4)? (10.0 + x_3) : (17.0 + x_4))) : (((18.0 + x_5) > (4.0 + x_8)? (18.0 + x_5) : (4.0 + x_8)) > ((17.0 + x_9) > (3.0 + x_11)? (17.0 + x_9) : (3.0 + x_11))? ((18.0 + x_5) > (4.0 + x_8)? (18.0 + x_5) : (4.0 + x_8)) : ((17.0 + x_9) > (3.0 + x_11)? (17.0 + x_9) : (3.0 + x_11)))) > (((1.0 + x_12) > ((13.0 + x_15) > (3.0 + x_18)? (13.0 + x_15) : (3.0 + x_18))? (1.0 + x_12) : ((13.0 + x_15) > (3.0 + x_18)? (13.0 + x_15) : (3.0 + x_18))) > (((20.0 + x_19) > (11.0 + x_21)? (20.0 + x_19) : (11.0 + x_21)) > ((13.0 + x_23) > (6.0 + x_25)? (13.0 + x_23) : (6.0 + x_25))? ((20.0 + x_19) > (11.0 + x_21)? (20.0 + x_19) : (11.0 + x_21)) : ((13.0 + x_23) > (6.0 + x_25)? (13.0 + x_23) : (6.0 + x_25)))? ((1.0 + x_12) > ((13.0 + x_15) > (3.0 + x_18)? (13.0 + x_15) : (3.0 + x_18))? (1.0 + x_12) : ((13.0 + x_15) > (3.0 + x_18)? (13.0 + x_15) : (3.0 + x_18))) : (((20.0 + x_19) > (11.0 + x_21)? (20.0 + x_19) : (11.0 + x_21)) > ((13.0 + x_23) > (6.0 + x_25)? (13.0 + x_23) : (6.0 + x_25))? ((20.0 + x_19) > (11.0 + x_21)? (20.0 + x_19) : (11.0 + x_21)) : ((13.0 + x_23) > (6.0 + x_25)? (13.0 + x_23) : (6.0 + x_25))))? (((10.0 + x_2) > ((10.0 + x_3) > (17.0 + x_4)? (10.0 + x_3) : (17.0 + x_4))? (10.0 + x_2) : ((10.0 + x_3) > (17.0 + x_4)? (10.0 + x_3) : (17.0 + x_4))) > (((18.0 + x_5) > (4.0 + x_8)? (18.0 + x_5) : (4.0 + x_8)) > ((17.0 + x_9) > (3.0 + x_11)? (17.0 + x_9) : (3.0 + x_11))? ((18.0 + x_5) > (4.0 + x_8)? (18.0 + x_5) : (4.0 + x_8)) : ((17.0 + x_9) > (3.0 + x_11)? (17.0 + x_9) : (3.0 + x_11)))? ((10.0 + x_2) > ((10.0 + x_3) > (17.0 + x_4)? (10.0 + x_3) : (17.0 + x_4))? (10.0 + x_2) : ((10.0 + x_3) > (17.0 + x_4)? (10.0 + x_3) : (17.0 + x_4))) : (((18.0 + x_5) > (4.0 + x_8)? (18.0 + x_5) : (4.0 + x_8)) > ((17.0 + x_9) > (3.0 + x_11)? (17.0 + x_9) : (3.0 + x_11))? ((18.0 + x_5) > (4.0 + x_8)? (18.0 + x_5) : (4.0 + x_8)) : ((17.0 + x_9) > (3.0 + x_11)? (17.0 + x_9) : (3.0 + x_11)))) : (((1.0 + x_12) > ((13.0 + x_15) > (3.0 + x_18)? (13.0 + x_15) : (3.0 + x_18))? (1.0 + x_12) : ((13.0 + x_15) > (3.0 + x_18)? (13.0 + x_15) : (3.0 + x_18))) > (((20.0 + x_19) > (11.0 + x_21)? (20.0 + x_19) : (11.0 + x_21)) > ((13.0 + x_23) > (6.0 + x_25)? (13.0 + x_23) : (6.0 + x_25))? ((20.0 + x_19) > (11.0 + x_21)? (20.0 + x_19) : (11.0 + x_21)) : ((13.0 + x_23) > (6.0 + x_25)? (13.0 + x_23) : (6.0 + x_25)))? ((1.0 + x_12) > ((13.0 + x_15) > (3.0 + x_18)? (13.0 + x_15) : (3.0 + x_18))? (1.0 + x_12) : ((13.0 + x_15) > (3.0 + x_18)? (13.0 + x_15) : (3.0 + x_18))) : (((20.0 + x_19) > (11.0 + x_21)? (20.0 + x_19) : (11.0 + x_21)) > ((13.0 + x_23) > (6.0 + x_25)? (13.0 + x_23) : (6.0 + x_25))? ((20.0 + x_19) > (11.0 + x_21)? (20.0 + x_19) : (11.0 + x_21)) : ((13.0 + x_23) > (6.0 + x_25)? (13.0 + x_23) : (6.0 + x_25))))); 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/50439.c
// unused inside expression list with return statment int main() { ( 4, ({ int c = 42; ({return 0;}); }) ); ERROR: // unreachable return 1; }
the_stack_data/154827023.c
#include <stdio.h> #include <stdlib.h> extern void func3(void) { printf("func3\n"); }
the_stack_data/220457018.c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <math.h> #include <string.h> int main(int argc, char **argv){ // char *command = argv[1]; // printf("\n%s\n", command); if(argc < 2){ printf("\nin null\n"); char *arguments[] = {"ps", "-aux", NULL}; execv("/bin/ps", arguments); } if(strcmp(argv[1], "search") == 0){ printf("\nin search\n"); char *search = argv[2]; printf("\n%s\n", search); char *arguments[] = {"ps", "-aux", NULL}; execv("/bin/ps", arguments); } else if(strcmp(argv[1], "kill") == 0){ printf("\nin kill\n"); int process = atoi(argv[2]); char *arguments[] = {"kill", argv[2], NULL}; execv("/bin/kill", arguments); } // char *argv[] = {"kill", "2800", NULL}; // execv("/bin/kill", argv); // printf("I shall not be executed"); return 0; }
the_stack_data/170452054.c
#include <stdio.h> #include <stdlib.h> int main() { int a,b; int r; char *huge_array; r = scanf("%d %d",&a,&b); huge_array = (char *)malloc(5000000); if(huge_array==NULL) printf("NO!"); else printf("%d\n",a+b); a+=r; return 0; }
the_stack_data/97639.c
#include <stdio.h> main() { FILE *in, *out, *fopen(); int i=0; char name[20], temp[200], t1[200], t2[200]; printf("Enter name: "); scanf("%s", name); in = fopen(name,"r"); out = fopen("temp", "w"); while ( fgets(temp, 200, in) ) { sscanf(temp, "%s %s %s", name,t1,t2); if (strcmp(name,"evtmsg")!=0) fprintf(out,"%s", temp); else fprintf(out,"tell %s %s 0 %s", t1, t2, temp+strlen(name)+strlen(t1)+strlen(t2)+3); } fclose(in); fclose(out); }
the_stack_data/690483.c
#if ENABLE_FEATURE_GPT_LABEL /* * Copyright (C) 2010 Kevin Cernekee <[email protected]> * * Licensed under GPLv2, see file LICENSE in this source tree. */ #define GPT_MAGIC 0x5452415020494645ULL enum { LEGACY_GPT_TYPE = 0xee, GPT_MAX_PARTS = 256, GPT_MAX_PART_ENTRY_LEN = 4096, GUID_LEN = 16, }; typedef struct { uint64_t magic; uint32_t revision; uint32_t hdr_size; uint32_t hdr_crc32; uint32_t reserved; uint64_t current_lba; uint64_t backup_lba; uint64_t first_usable_lba; uint64_t last_usable_lba; uint8_t disk_guid[GUID_LEN]; uint64_t first_part_lba; uint32_t n_parts; uint32_t part_entry_len; uint32_t part_array_crc32; } gpt_header; typedef struct { uint8_t type_guid[GUID_LEN]; uint8_t part_guid[GUID_LEN]; uint64_t lba_start; uint64_t lba_end; uint64_t flags; uint16_t name[36]; } gpt_partition; static gpt_header *gpt_hdr; static char *part_array; static unsigned int n_parts; static unsigned int part_array_len; static unsigned int part_entry_len; static inline gpt_partition * gpt_part(int i) { if (i >= n_parts) { return NULL; } return (gpt_partition *)&part_array[i * part_entry_len]; } static uint32_t gpt_crc32(void *buf, int len) { return ~crc32_block_endian0(0xffffffff, buf, len, global_crc32_table); } static void gpt_print_guid(uint8_t *buf) { printf( "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x", buf[3], buf[2], buf[1], buf[0], buf[5], buf[4], buf[7], buf[6], buf[8], buf[9], buf[10], buf[11], buf[12], buf[13], buf[14], buf[15]); } /* TODO: real unicode support */ static void gpt_print_wide(uint16_t *s, int max_len) { int i = 0; while (i < max_len) { if (*s == 0) return; fputc(*s, stdout); s++; } } static void gpt_list_table(int xtra UNUSED_PARAM) { int i; char numstr6[6]; numstr6[5] = '\0'; smart_ulltoa5(total_number_of_sectors, numstr6, " KMGTPEZY"); printf("Disk %s: %llu sectors, %s\n", disk_device, (unsigned long long)total_number_of_sectors, numstr6); printf("Logical sector size: %u\n", sector_size); printf("Disk identifier (GUID): "); gpt_print_guid(gpt_hdr->disk_guid); printf("\nPartition table holds up to %u entries\n", (int)SWAP_LE32(gpt_hdr->n_parts)); printf("First usable sector is %llu, last usable sector is %llu\n\n", (unsigned long long)SWAP_LE64(gpt_hdr->first_usable_lba), (unsigned long long)SWAP_LE64(gpt_hdr->last_usable_lba)); printf("Number Start (sector) End (sector) Size Code Name\n"); for (i = 0; i < n_parts; i++) { gpt_partition *p = gpt_part(i); if (p->lba_start) { smart_ulltoa5(1 + SWAP_LE64(p->lba_end) - SWAP_LE64(p->lba_start), numstr6, " KMGTPEZY"); printf("%4u %15llu %15llu %11s %04x ", i + 1, (unsigned long long)SWAP_LE64(p->lba_start), (unsigned long long)SWAP_LE64(p->lba_end), numstr6, 0x0700 /* FIXME */); gpt_print_wide(p->name, 18); printf("\n"); } } } static int check_gpt_label(void) { struct partition *first = pt_offset(MBRbuffer, 0); struct pte pe; uint32_t crc; /* LBA 0 contains the legacy MBR */ if (!valid_part_table_flag(MBRbuffer) || first->sys_ind != LEGACY_GPT_TYPE ) { current_label_type = 0; return 0; } /* LBA 1 contains the GPT header */ read_pte(&pe, 1); gpt_hdr = (void *)pe.sectorbuffer; if (gpt_hdr->magic != SWAP_LE64(GPT_MAGIC)) { current_label_type = 0; return 0; } if (!global_crc32_table) { global_crc32_table = crc32_filltable(NULL, 0); } crc = SWAP_LE32(gpt_hdr->hdr_crc32); gpt_hdr->hdr_crc32 = 0; if (gpt_crc32(gpt_hdr, SWAP_LE32(gpt_hdr->hdr_size)) != crc) { /* FIXME: read the backup table */ puts("\nwarning: GPT header CRC is invalid\n"); } n_parts = SWAP_LE32(gpt_hdr->n_parts); part_entry_len = SWAP_LE32(gpt_hdr->part_entry_len); if (n_parts > GPT_MAX_PARTS || part_entry_len > GPT_MAX_PART_ENTRY_LEN || SWAP_LE32(gpt_hdr->hdr_size) > sector_size ) { puts("\nwarning: unable to parse GPT disklabel\n"); current_label_type = 0; return 0; } part_array_len = n_parts * part_entry_len; part_array = xmalloc(part_array_len); seek_sector(SWAP_LE64(gpt_hdr->first_part_lba)); if (full_read(dev_fd, part_array, part_array_len) != part_array_len) { fdisk_fatal(unable_to_read); } if (gpt_crc32(part_array, part_array_len) != gpt_hdr->part_array_crc32) { /* FIXME: read the backup table */ puts("\nwarning: GPT array CRC is invalid\n"); } puts("Found valid GPT with protective MBR; using GPT\n"); current_label_type = LABEL_GPT; return 1; } #endif /* GPT_LABEL */
the_stack_data/68233.c
#include <stdio.h> void main(){ unsigned a = input("a"); assert(fget_float(a)==1); assert(fget_float(a)==2); assert(fget_float(a)==3); assert(fget_float(a)==4); assert(fget_float(a)==5); assert(fget_float(a)==6); assert(fget_float(a)==7); assert(fget_float(a)==8); assert(fget_float(a)==9); assert(fget_float(a)==10); report(1); }
the_stack_data/61075733.c
// possible deadlock in brd_probe // https://syzkaller.appspot.com/bug?id=fd01c5d29a476390728d // status:0 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include <endian.h> #include <errno.h> #include <fcntl.h> #include <pthread.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/syscall.h> #include <sys/types.h> #include <time.h> #include <unistd.h> #include <linux/futex.h> static void sleep_ms(uint64_t ms) { usleep(ms * 1000); } static uint64_t current_time_ms(void) { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts)) exit(1); return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000; } static void thread_start(void* (*fn)(void*), void* arg) { pthread_t th; pthread_attr_t attr; pthread_attr_init(&attr); pthread_attr_setstacksize(&attr, 128 << 10); int i = 0; for (; i < 100; i++) { if (pthread_create(&th, &attr, fn, arg) == 0) { pthread_attr_destroy(&attr); return; } if (errno == EAGAIN) { usleep(50); continue; } break; } exit(1); } typedef struct { int state; } event_t; static void event_init(event_t* ev) { ev->state = 0; } static void event_reset(event_t* ev) { ev->state = 0; } static void event_set(event_t* ev) { if (ev->state) exit(1); __atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE); syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000); } static void event_wait(event_t* ev) { while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0); } static int event_isset(event_t* ev) { return __atomic_load_n(&ev->state, __ATOMIC_ACQUIRE); } static int event_timedwait(event_t* ev, uint64_t timeout) { uint64_t start = current_time_ms(); uint64_t now = start; for (;;) { uint64_t remain = timeout - (now - start); struct timespec ts; ts.tv_sec = remain / 1000; ts.tv_nsec = (remain % 1000) * 1000 * 1000; syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, &ts); if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) return 1; now = current_time_ms(); if (now - start > timeout) return 0; } } #define FUSE_MIN_READ_BUFFER 8192 enum fuse_opcode { FUSE_LOOKUP = 1, FUSE_FORGET = 2, FUSE_GETATTR = 3, FUSE_SETATTR = 4, FUSE_READLINK = 5, FUSE_SYMLINK = 6, FUSE_MKNOD = 8, FUSE_MKDIR = 9, FUSE_UNLINK = 10, FUSE_RMDIR = 11, FUSE_RENAME = 12, FUSE_LINK = 13, FUSE_OPEN = 14, FUSE_READ = 15, FUSE_WRITE = 16, FUSE_STATFS = 17, FUSE_RELEASE = 18, FUSE_FSYNC = 20, FUSE_SETXATTR = 21, FUSE_GETXATTR = 22, FUSE_LISTXATTR = 23, FUSE_REMOVEXATTR = 24, FUSE_FLUSH = 25, FUSE_INIT = 26, FUSE_OPENDIR = 27, FUSE_READDIR = 28, FUSE_RELEASEDIR = 29, FUSE_FSYNCDIR = 30, FUSE_GETLK = 31, FUSE_SETLK = 32, FUSE_SETLKW = 33, FUSE_ACCESS = 34, FUSE_CREATE = 35, FUSE_INTERRUPT = 36, FUSE_BMAP = 37, FUSE_DESTROY = 38, FUSE_IOCTL = 39, FUSE_POLL = 40, FUSE_NOTIFY_REPLY = 41, FUSE_BATCH_FORGET = 42, FUSE_FALLOCATE = 43, FUSE_READDIRPLUS = 44, FUSE_RENAME2 = 45, FUSE_LSEEK = 46, FUSE_COPY_FILE_RANGE = 47, FUSE_SETUPMAPPING = 48, FUSE_REMOVEMAPPING = 49, CUSE_INIT = 4096, CUSE_INIT_BSWAP_RESERVED = 1048576, FUSE_INIT_BSWAP_RESERVED = 436207616, }; struct fuse_in_header { uint32_t len; uint32_t opcode; uint64_t unique; uint64_t nodeid; uint32_t uid; uint32_t gid; uint32_t pid; uint32_t padding; }; struct fuse_out_header { uint32_t len; uint32_t error; uint64_t unique; }; struct syz_fuse_req_out { struct fuse_out_header* init; struct fuse_out_header* lseek; struct fuse_out_header* bmap; struct fuse_out_header* poll; struct fuse_out_header* getxattr; struct fuse_out_header* lk; struct fuse_out_header* statfs; struct fuse_out_header* write; struct fuse_out_header* read; struct fuse_out_header* open; struct fuse_out_header* attr; struct fuse_out_header* entry; struct fuse_out_header* dirent; struct fuse_out_header* direntplus; struct fuse_out_header* create_open; struct fuse_out_header* ioctl; }; static int fuse_send_response(int fd, const struct fuse_in_header* in_hdr, struct fuse_out_header* out_hdr) { if (!out_hdr) { return -1; } out_hdr->unique = in_hdr->unique; if (write(fd, out_hdr, out_hdr->len) == -1) { return -1; } return 0; } static volatile long syz_fuse_handle_req(volatile long a0, volatile long a1, volatile long a2, volatile long a3) { struct syz_fuse_req_out* req_out = (struct syz_fuse_req_out*)a3; struct fuse_out_header* out_hdr = NULL; char* buf = (char*)a1; int buf_len = (int)a2; int fd = (int)a0; if (!req_out) { return -1; } if (buf_len < FUSE_MIN_READ_BUFFER) { return -1; } int ret = read(fd, buf, buf_len); if (ret == -1) { return -1; } if ((size_t)ret < sizeof(struct fuse_in_header)) { return -1; } const struct fuse_in_header* in_hdr = (const struct fuse_in_header*)buf; if (in_hdr->len > (uint32_t)ret) { return -1; } switch (in_hdr->opcode) { case FUSE_GETATTR: case FUSE_SETATTR: out_hdr = req_out->attr; break; case FUSE_LOOKUP: case FUSE_SYMLINK: case FUSE_LINK: case FUSE_MKNOD: case FUSE_MKDIR: out_hdr = req_out->entry; break; case FUSE_OPEN: case FUSE_OPENDIR: out_hdr = req_out->open; break; case FUSE_STATFS: out_hdr = req_out->statfs; break; case FUSE_RMDIR: case FUSE_RENAME: case FUSE_RENAME2: case FUSE_FALLOCATE: case FUSE_SETXATTR: case FUSE_REMOVEXATTR: case FUSE_FSYNCDIR: case FUSE_FSYNC: case FUSE_SETLKW: case FUSE_SETLK: case FUSE_ACCESS: case FUSE_FLUSH: case FUSE_RELEASE: case FUSE_RELEASEDIR: case FUSE_UNLINK: case FUSE_DESTROY: out_hdr = req_out->init; if (!out_hdr) { return -1; } out_hdr->len = sizeof(struct fuse_out_header); break; case FUSE_READ: out_hdr = req_out->read; break; case FUSE_READDIR: out_hdr = req_out->dirent; break; case FUSE_READDIRPLUS: out_hdr = req_out->direntplus; break; case FUSE_INIT: out_hdr = req_out->init; break; case FUSE_LSEEK: out_hdr = req_out->lseek; break; case FUSE_GETLK: out_hdr = req_out->lk; break; case FUSE_BMAP: out_hdr = req_out->bmap; break; case FUSE_POLL: out_hdr = req_out->poll; break; case FUSE_GETXATTR: case FUSE_LISTXATTR: out_hdr = req_out->getxattr; break; case FUSE_WRITE: case FUSE_COPY_FILE_RANGE: out_hdr = req_out->write; break; case FUSE_FORGET: case FUSE_BATCH_FORGET: return 0; case FUSE_CREATE: out_hdr = req_out->create_open; break; case FUSE_IOCTL: out_hdr = req_out->ioctl; break; default: return -1; } return fuse_send_response(fd, in_hdr, out_hdr); } struct thread_t { int created, call; event_t ready, done; }; static struct thread_t threads[16]; static void execute_call(int call); static int running; static void* thr(void* arg) { struct thread_t* th = (struct thread_t*)arg; for (;;) { event_wait(&th->ready); event_reset(&th->ready); execute_call(th->call); __atomic_fetch_sub(&running, 1, __ATOMIC_RELAXED); event_set(&th->done); } return 0; } static void loop(void) { int i, call, thread; for (call = 0; call < 7; call++) { for (thread = 0; thread < (int)(sizeof(threads) / sizeof(threads[0])); thread++) { struct thread_t* th = &threads[thread]; if (!th->created) { th->created = 1; event_init(&th->ready); event_init(&th->done); event_set(&th->done); thread_start(thr, th); } if (!event_isset(&th->done)) continue; event_reset(&th->done); th->call = call; __atomic_fetch_add(&running, 1, __ATOMIC_RELAXED); event_set(&th->ready); event_timedwait(&th->done, 45); break; } } for (i = 0; i < 100 && __atomic_load_n(&running, __ATOMIC_RELAXED); i++) sleep_ms(1); } uint64_t r[2] = {0xffffffffffffffff, 0x0}; void execute_call(int call) { intptr_t res = 0; switch (call) { case 0: memcpy((void*)0x20000400, "./file0\000", 8); syscall(__NR_mkdir, 0x20000400ul, 0ul); break; case 1: memcpy((void*)0x20002080, "/dev/fuse\000", 10); res = syscall(__NR_openat, 0xffffffffffffff9cul, 0x20002080ul, 0x42ul, 0ul); if (res != -1) r[0] = res; break; case 2: memcpy((void*)0x200042c0, "./file0\000", 8); memcpy((void*)0x20002000, "fuse\000", 5); memcpy((void*)0x20002140, "fd=", 3); sprintf((char*)0x20002143, "0x%016llx", (long long)r[0]); memcpy((void*)0x20002155, ",rootmode=00000000000000000040000,user_id=", 42); sprintf((char*)0x2000217f, "%020llu", (long long)0); memcpy((void*)0x20002193, ",group_id=", 10); sprintf((char*)0x2000219d, "%020llu", (long long)0); syscall(__NR_mount, 0ul, 0x200042c0ul, 0x20002000ul, 0ul, 0x20002140ul); break; case 3: res = syscall(__NR_read, r[0], 0x200021c0ul, 0x2020ul); if (res != -1) r[1] = *(uint64_t*)0x200021c8; break; case 4: *(uint32_t*)0x20004200 = 0x50; *(uint32_t*)0x20004204 = 0; *(uint64_t*)0x20004208 = r[1]; *(uint32_t*)0x20004210 = 7; *(uint32_t*)0x20004214 = 0x20; *(uint32_t*)0x20004218 = 0; *(uint32_t*)0x2000421c = 0; *(uint16_t*)0x20004220 = 0; *(uint16_t*)0x20004222 = 0; *(uint32_t*)0x20004224 = 0; *(uint32_t*)0x20004228 = 0; *(uint16_t*)0x2000422c = 0; *(uint16_t*)0x2000422e = 0; *(uint32_t*)0x20004230 = 0; *(uint32_t*)0x20004234 = 0; *(uint32_t*)0x20004238 = 0; *(uint32_t*)0x2000423c = 0; *(uint32_t*)0x20004240 = 0; *(uint32_t*)0x20004244 = 0; *(uint32_t*)0x20004248 = 0; *(uint32_t*)0x2000424c = 0; syscall(__NR_write, r[0], 0x20004200ul, 0x50ul); break; case 5: memcpy( (void*)0x20000000, "\x9e\xda\x43\x88\x38\x74\x3b\xd4\xe9\x72\x0b\xee\x57\x09\x35\x15\xdc" "\x18\x9a\x5e\xa6\x85\xe9\x55\x6c\x1c\x2c\x3c\xfc\x4d\xf5\x0d\x66\xd3" "\x1a\x48\xaa\x31\x26\x63\xb6\x8d\x18\xc5\x82\x6b\x5b\x55\xfb\x73\x82" "\x08\x86\x3d\xac\x0f\x10\xf4\x23\xae\xe7\xa5\xd8\xdd\xc4\x5e\xbd\xfe" "\xb7\x42\x4b\xae\x85\x9d\x7c\x37\xec\xfc\x4b\x63\x91\x4d\x5a\x56\xd9" "\x10\x17\xdd\x22\xbc\x84\xf7\x59\xa1\x59\x69\x95\x1a\xef\x9d\x5c\x88" "\xc9\x65\x60\x89\x69\x88\xfa\x18\xcd\x94\x6c\xfc\xc3\xa0\xf1\xc9\x93" "\x34\x83\x77\x90\x4e\xac\x32\xc9\x80\xbd\xf7\x97\x6e\xbc\xa2\xb4\x99" "\xca\xb6\x3c\x4e\x84\x15\x14\x27\x7f\xc7\x1d\x46\x20\xe2\x9a\x92\x52" "\x34\x02\x48\x5d\xe0\xe8\x28\x96\x48\x4c\x0a\xe4\x97\xa4\xd6\x86\xdf" "\x23\xca\x7b\x68\xc3\xfd\x5e\x62\x4d\x35\x10\xd7\xf9\x48\x38\xe5\x4a" "\xf8\x77\xca\x58\xa0\x0c\x5a\x67\x2b\xba\x11\xf5\xaa\x1e\xd1\x98\x0d" "\xfe\xf4\x7b\x99\x73\xd0\xbf\x45\x6d\xed\x5e\x72\xf1\x70\x2b\x3d\xc5" "\x19\x7f\xce\x39\xcb\xa5\x3a\x03\x8d\x8d\xc0\xec\x78\x3c\xe7\x05\x77" "\x10\x7d\xc5\xe8\xb2\x99\xe6\x4a\x0b\x7f\x11\x91\xf0\x92\x6b\xd2\x57" "\x62\x37\x01\x91\x71\x0b\xab\x2f\x44\xe9\x06\x9f\x55\xf8\xa3\xf8\x7e" "\x4c\xb4\x88\xa2\xfb\x33\x48\xc0\xbf\x3b\x38\x74\x29\x1f\x83\xe4\x77" "\x6b\x16\x0e\xa7\x3a\xaf\xa3\x91\x9c\x7c\x06\x9c\x73\xc0\x05\x21\x73" "\xa6\x31\x58\xdb\x8b\x65\x54\x1d\x16\x1f\x9c\x96\x49\x26\xad\x7f\x06" "\xbd\xd6\xcb\x6a\x32\x13\x5b\x04\xe3\x57\x01\xc2\xe1\x3c\x49\xc1\xf7" "\x5d\xc7\xa2\x5d\x62\x33\x78\x86\x06\x92\xd1\x72\xec\x3f\x1e\x1f\x2d" "\x9d\xc7\x7c\x01\x5c\x13\x72\x1e\xfc\xb1\x01\xc2\x39\x0a\xbb\x84\x7e" "\x87\x11\x32\xf4\x72\xa3\x7c\xc0\x16\x3b\x39\xb1\xd5\x75\xa5\x44\x4e" "\x24\x6a\x08\xa1\xaf\xb1\xa6\x96\xca\xba\xb2\x94\x98\xa3\x14\x42\x9a" "\x3b\x9f\x44\xc4\x3b\xa2\x9f\x71\xfa\xc1\xfb\xe0\xd0\x1c\x3c\x16\xd2" "\x27\x30\x93\x27\x04\xbc\xfb\x0c\x1b\x7a\x43\x2b\xc5\x1d\xd3\xf5\xdd" "\x5a\xfc\x3b\x34\x2c\xbe\x6a\x6f\xf8\x99\x03\x9e\x28\xf9\xa5\x18\x81" "\xb1\xd4\x6f\xdc\xf3\x17\x67\xcb\x6f\x5c\x5c\x69\xab\x3c\x80\x61\x5d" "\x77\xc4\xd1\x66\x4f\xc4\xec\x83\x1b\x8c\xea\x2e\x75\x2b\xbb\x7a\x9c" "\xe7\x9d\xf8\x75\xb2\x9f\x1e\x23\x27\x51\xda\xf3\x2a\x1a\x0c\x4f\xfc" "\xbd\x06\x88\xe2\xb8\xe2\xd6\x68\xb8\xa7\x7e\x20\xa9\xeb\x6e\xc2\xe2" "\xc2\x3b\x94\xe5\x07\xba\xea\xcb\xcf\xa3\x1f\xb6\xe1\xca\x33\x43\x66" "\x8f\x43\xe3\xaa\x6d\x85\xe7\xc2\x9b\xf0\xbb\x4d\xbd\xab\xdd\xc9\x2b" "\xe7\xf4\xa6\xf5\xd2\x1b\x19\xe6\xda\x17\xbf\xb6\xcc\x92\x6e\x38\x47" "\x53\x2f\xae\x29\xc7\xb6\x2f\xb9\x09\x13\x0e\xc3\x72\xd3\xc1\x6c\xfe" "\x6a\xaf\x3c\xe2\xaf\x0f\xe7\x61\x0f\xde\x7a\xad\x61\xbc\x80\xd2\xf9" "\x6b\x99\x9c\x8c\xcf\x6d\x22\xcf\x90\x3c\xa8\xae\x8b\x87\x9e\xc4\xa4" "\x16\xf3\x34\x98\x2e\x98\x10\xc0\x14\x0a\x18\xd4\xdc\x81\xb5\xed\xaa" "\xe2\x3e\x9f\x4a\xba\xf4\x0e\xd7\x15\x12\xae\xbb\xba\x5b\xb2\x51\x54" "\x5e\x18\x8d\xb7\x89\x55\x8a\x84\x5a\x28\x77\xb1\x4b\xda\xee\xc3\xc7" "\x38\xb7\xd7\x30\xc0\x86\x05\x31\xbf\x55\x17\xd4\xf0\xe8\xf9\x5e\xd3" "\x57\x1f\x8a\x35\x81\x6d\x51\x16\xfc\xb8\xd7\xcb\xf4\x2b\x7d\x5d\x5e" "\x65\x54\x15\x08\xc8\x98\xbb\x2e\x0f\xe9\x62\x97\xd2\xab\x71\x35\x66" "\x2d\xe3\x9d\xf0\x99\xeb\xae\xd5\x87\x11\x11\xf5\x34\x62\x78\xce\xe5" "\x72\x8c\xec\x51\x2e\x6c\x0a\x0d\x65\xb5\x1e\x3d\x62\x78\x73\x19\x5b" "\x84\x10\x33\x41\xc2\xbc\x83\xb6\xc8\xfd\xd8\xba\x17\xf5\x95\x74\x13" "\xf6\x1c\x69\xd6\x18\xc9\xb9\xd0\xb1\xf0\x8d\xc8\x19\x21\xb6\xc6\x62" "\xee\x1d\xa3\xbf\xa0\x19\xb0\x95\xe9\xa0\x3c\x2d\xb4\xd6\x45\xcc\xb7" "\x36\x4e\x89\x50\x98\xcb\xf7\xd9\x32\xc7\x2d\x80\x66\x3c\x7a\x16\x94" "\xd1\x22\xf7\x34\x83\x93\x07\x92\x23\xc1\x1d\x36\xc6\x4a\x58\x56\xea" "\xe0\x39\x7a\xb9\xa9\xd9\x48\x20\x4b\x74\xe5\x65\x25\xa9\xd5\x52\xdd" "\x09\x16\xde\x81\xcb\xb5\xaf\x3c\x59\xb3\xd7\xf8\xf9\x15\x44\x23\xce" "\x2c\xb4\x5a\x5b\xc8\x08\xe2\x4b\xef\x13\x21\x20\x19\xa1\x95\x45\xfe" "\x54\xba\x84\xd0\x15\x34\x35\x83\x80\x19\x2b\x8c\x7b\x0e\xda\x90\x78" "\x10\x37\x5b\xb6\x6a\x57\x8a\x58\xfe\xc3\x92\xb4\x79\x91\x27\x1c\x83" "\x67\xb9\x1d\x71\x0e\x8a\x17\x6b\xc1\xa4\xe9\x6f\x0e\x13\x7d\x4c\x25" "\xfb\xb0\x3e\xdd\xc3\x92\xf9\xf1\x70\xdd\x74\x44\x72\xb8\x64\xfb\xba" "\xe7\xc9\x3d\x86\xe6\x82\x30\x8b\x21\xb7\x3c\x56\x52\x06\x5d\x72\xcf" "\x02\xe1\x15\x2b\x44\x02\x4a\x90\xa3\xb5\x2e\xb0\xbb\x3c\xb4\x12\xe5" "\x18\xd3\x7a\x68\xaa\x4c\x7f\x46\x78\x9c\x54\xab\x30\xd3\xa7\x3d\x0a" "\x87\x12\x29\x4c\xda\x2a\xa1\xcc\xf1\x64\x93\x0b\x9b\x1d\x17\x80\x1d" "\x4f\xbb\x06\xe8\x49\xd3\x9b\xf2\xb5\x14\x13\x30\xca\xa0\xd2\x61\x8b" "\x61\x6f\x1c\x67\xe1\xca\x57\x08\x0e\x79\xed\x90\x92\xba\x7a\x55\xe8" "\x12\x1c\xfc\x82\x5c\xd2\x6a\x01\x99\xa4\x79\xa7\xab\x1b\x7b\x23\xd2" "\xa4\xdd\x82\xfa\x6d\x04\xee\x41\xca\x68\x04\x35\xef\xc9\x34\xf0\x45" "\x1e\x86\x5e\x86\x32\xac\x2f\x11\x15\xf4\xcd\xd3\x3b\x0f\xcc\xb7\xa2" "\x32\x61\x27\xfa\xf2\x0c\xba\x37\xc8\x28\x61\x3d\xba\x5a\x98\xf4\xe1" "\xad\x25\xeb\x6b\x91\x07\x8c\xf7\x3d\x87\x3d\xf9\xef\x91\x53\x14\x76" "\xf6\x4b\x83\x55\x9f\xf7\xcc\xdc\x4c\x07\x0d\x47\x8b\x18\x19\x6e\xa0" "\x5f\xe8\xd4\xea\x02\x16\xee\x52\x73\xdf\xab\xbd\x04\x58\x2f\x40\xf0" "\x64\xc9\x78\x1a\xfd\x2c\xbf\x30\x90\x1f\x28\xcd\x09\xcc\x93\x4f\x1b" "\x2d\x50\x88\x37\x78\x27\x41\x77\xe3\xdb\xa8\xaf\x0a\x1b\x93\x1d\x80" "\xce\x1a\x6c\x40\x85\x78\x0e\xa2\x19\x5b\x65\xec\xfd\x29\x53\xf7\x8a" "\x52\x90\xfe\x56\x0d\x0c\xd6\xa5\xe7\x38\x90\xa5\xa8\x2d\xc4\x10\xb9" "\x2a\x3e\xf2\xbe\x05\xec\x56\x07\x82\x0f\xd4\xca\x6b\x9c\x3a\xa2\x58" "\xd5\x90\x22\xfd\xcb\x21\x66\x5f\x1c\xe4\xe8\xaa\xd8\xfd\x91\x8c\x43" "\xbd\x3c\x2a\xfe\x3d\xc2\x23\xff\x9f\x48\x83\x1d\x40\x1c\x8b\x69\x96" "\x19\x07\x93\xd1\xdd\x75\x51\xf8\x51\x1b\x69\x28\x39\x92\x39\x8d\x8f" "\x9b\x4b\xd2\xb3\x39\x8d\x3b\x8c\x6f\x3c\x5d\x8b\x80\x2c\xa5\x28\x2b" "\x70\x24\x2d\xf2\xb7\xbe\x4b\x38\xe7\x0c\x30\x65\xf8\xda\x88\x86\x31" "\x37\x5a\xfc\xc0\x5c\xe5\x78\x08\x9c\x4f\x78\x37\x76\xb2\x86\xb7\xa6" "\x0d\x1b\x5e\x18\x9e\x27\x42\xa3\x24\x0c\x10\x36\xa9\x53\xd8\x86\x88" "\x54\x22\xee\xf0\x14\x13\xc3\x80\x99\xb6\x45\x05\xfd\x5a\x73\x48\x8a" "\xcb\x4e\x61\x18\x20\x67\x4c\x58\xae\x74\xd6\xc6\x4a\x88\x5d\x4b\xed" "\xa9\xbd\x79\x03\xbc\xdc\x71\xe3\x71\x1e\x2a\x05\x7c\x0e\xab\x21\x00" "\xc3\x21\x05\x0a\xb1\x4c\x6e\x45\x3c\x53\x18\x25\x77\xad\x31\x78\x60" "\x3c\xd9\xaf\xde\x40\xa7\x01\x12\x0e\x9a\x36\x07\x4f\xd5\x82\x42\x8c" "\x74\xe0\x27\x81\x31\x8e\x6c\x65\x45\x0f\x8f\x02\x0b\xd2\x24\x75\x69" "\x6f\xe1\x3b\x8c\x59\x26\x0e\x53\xa0\x6d\x16\xea\xbd\x13\x5e\x88\x7a" "\x0a\x6b\xbc\x8a\xd2\x1b\xe7\x66\x1d\xf7\x6f\xec\x5b\x13\x84\x4f\x68" "\xb8\xee\xd1\xa7\x37\x97\x13\x73\x8b\xea\xc9\xf2\x3c\x7a\x26\x52\x0e" "\x19\x79\x7a\x91\x0c\xde\x9f\xb2\x85\x17\x95\x26\x88\x9b\x90\x8b\x7e" "\xb4\x9b\xb0\x6f\x70\xf6\x27\x1f\xba\x87\x12\xc1\xa4\x26\x9e\xbc\xf4" "\xb7\xd0\x43\xe9\x24\xe3\xd2\xc4\xc7\x53\xfd\x7e\x54\x7d\x95\x84\x1e" "\x33\x51\x79\x83\x6f\x76\x42\x4e\x72\x88\x10\xd7\xf3\x2b\x78\x25\x6e" "\xa3\x0c\x79\xd9\x23\x8a\x65\x88\x42\x6e\x1f\x2d\x4c\x0b\x03\xd5\x60" "\x5b\xd8\x26\xed\x24\xf0\xf1\x13\x26\xb4\xcf\x95\x86\x32\xb8\x6e\x01" "\x7a\xa8\x0e\x14\x2d\xb1\x58\x0c\x44\xf7\x6d\x9c\x98\x19\x6f\x3f\x68" "\x52\xab\x2b\xfc\x6a\x01\xa3\x55\x3a\x13\x0c\x2d\x17\x19\x57\xf5\xa4" "\x5c\x35\x50\xfb\xbc\x99\x0e\xf8\x74\x2a\x98\xa8\x6b\x28\x0a\x57\xb9" "\xf1\x98\xff\x43\x6b\xc0\x11\x61\xad\xa5\x0e\x6f\x23\x02\x6c\x32\x54" "\xad\xf2\x32\x1b\xff\x7e\x20\xaa\x54\x08\x0b\xbb\x57\xd8\xd5\x2c\x6a" "\x6d\xf6\x10\x77\x06\xa2\xe5\xbc\x6d\xa6\x8f\x17\xb4\x74\xc0\xed\xd3" "\x94\x01\xd7\x65\x08\x6e\x88\x5c\xf7\x99\x24\x05\xf8\x56\x55\x79\x15" "\x60\x3c\xbe\x88\x94\x67\x6e\x99\x6b\xba\xdb\xb6\x49\xa5\xe7\x49\x8b" "\x91\xf9\xbd\x2f\x69\x7d\xd9\xeb\xbe\x4d\x38\x60\x50\x25\x8b\x9f\x4c" "\x94\x78\x1e\x61\xc6\x60\x65\x1c\x3f\x1e\x3a\xe5\x1f\x8c\x03\x5e\xca" "\x36\x5b\xf1\x5d\x6d\xb4\x8e\xa9\xce\x18\x35\x15\xf4\xa2\x08\xd0\x10" "\xf7\xc2\x3d\xca\xcb\xd6\xe2\x25\x49\x0d\x7e\x9c\x13\x35\x25\xf5\xc9" "\x01\x8d\x75\x2b\x21\xb4\x89\x7b\xf1\x8b\x64\xb6\xa9\x93\x6f\x53\x8a" "\x0a\x89\x58\xfc\x93\x44\x40\xae\xea\xad\x2b\x68\xac\x84\x4d\x76\xf0" "\x90\x0a\x6c\x95\xbd\x0b\x35\x3d\x85\xd4\xfb\x62\xeb\x88\x36\x01\x12" "\x23\x7f\xd8\xc6\x36\xa8\x0e\x31\x30\xb2\x1d\x66\xae\x8e\xc5\x8a\x4b" "\x76\xcb\xa0\x60\x2f\x96\xda\x91\x9f\x7e\x84\xfd\x37\xe3\xec\x23\x79" "\xf5\x8e\x38\x9a\x39\xc7\x8d\x24\x82\xe0\x3c\xc5\xe5\xd3\x55\x49\xad" "\x63\xa7\x6e\x37\x07\xec\xff\x07\xd2\xfc\xb0\xc9\xdf\xc5\x24\xca\xb4" "\x9e\x69\xa0\x9c\x92\xe4\xf8\x87\x14\x33\x5c\xb5\x7d\x3f\x61\x84\xd0" "\x7b\xef\x96\x57\x28\x0f\xb5\xc9\xfd\x2d\x8f\x94\x0f\x7a\xc6\xc5\x40" "\x7e\x30\x77\xaa\x2e\x4b\xa8\xe2\x17\xe0\xee\x19\xe3\x02\xd6\xd9\x0e" "\x3b\xe0\x5a\x86\xda\xde\x35\xd2\xe4\x54\xe5\x11\xaf\xb5\xcf\x59\x36" "\xf1\xd1\x1f\x2f\xa6\xbe\x6c\xea\xa8\x17\xdb\xdc\x7a\x6a\xab\xf2\xfa" "\xd8\xff\x3e\xfa\x83\x82\xa2\x50\x99\xf0\xc5\x98\x9d\x2a\xd5\x6a\xe0" "\xf4\x96\x8b\x2c\xfc\xfc\x67\xb4\xf1\xc1\x61\xc7\x59\x00\xb4\x84\x8f" "\x59\xa3\xc0\x37\x6d\xfc\xb7\x99\x7b\xf2\x8e\x9e\x85\xd6\xdd\x94\x2a" "\x36\x05\x16\xde\x38\xe1\xc1\xa0\x38\xa7\x96\xf9\xa7\x7f\xf2\xb0\xc7" "\xe5\xe8\xf4\x93\x23\x91\xa0\xe5\x8e\x76\xda\xcc\x6f\x97\x64\x17\x8a" "\x21\x1d\xfd\xe3\xe7\x5d\x36\x7d\x29\x11\xff\x39\x81\x26\xff\xdf\x83" "\xcf\x2f\xbd\xf1\xad\x52\x32\xbe\xd9\x15\x5f\x7a\x16\x86\x38\xa5\x72" "\x09\x4a\x9e\x93\x4d\x49\x69\xb3\x58\xcf\x6e\x12\x1d\x7f\xd2\xae\xae" "\x2f\x49\x90\x68\xb4\x2c\x15\x2f\x0e\x34\x03\xa2\x30\x88\x5d\x6f\x92" "\xf0\x38\xdd\xaa\x23\x49\x9f\x80\x4f\xfb\x06\xab\xdb\xab\xb5\x1f\x6c" "\x38\xc9\x2f\xb1\xa6\x27\x1a\x4b\x13\xd6\xd1\x11\x25\xb8\xec\x12\xef" "\xa5\x90\x7d\xc6\x50\x62\x79\x7f\xb9\xcc\xa1\x5e\x2f\x25\x4e\x76\xb1" "\x82\xd3\xfc\xdb\x4e\x96\xac\x4d\xe3\x6d\x6d\xf7\xe7\xbb\xa5\xc3\x2f" "\x42\x22\x86\xb1\xbe\x3b\x79\xbf\xfb\x6f\xd6\x93\x76\x19\x52\xd1\x95" "\xa8\x4a\xd9\xce\xb0\x72\x87\xa0\xfb\xef\xab\x9e\x03\x47\xb5\x13\xc5" "\xf6\x02\x33\xcc\xd4\xb5\x2d\x90\xec\x14\x4a\x2f\x89\x6d\x9d\xc7\xf2" "\x79\xf8\xaa\x93\x03\x8f\x3e\xfa\x28\x6e\x1c\x30\x06\x93\x3a\x4d\x71" "\x83\xd9\x52\xf8\xd2\x8b\x14\x1b\x28\xb2\xaf\x35\x5b\x5b\xd8\x19\x8d" "\xfd\xe1\xff\xb8\xd0\x92\x02\xaf\xf0\xd1\x6c\xa3\xfe\xc1\x94\x66\x28" "\x92\xa4\x9f\x82\x98\x13\x97\x13\x45\x20\xf1\x22\x8a\xa0\x3d\x21\x1a" "\x45\xbe\xd3\xb2\xe0\x5b\xf1\xf1\x0b\x1a\x15\x27\x61\xe7\xb6\xc6\xdd" "\xea\x86\x3a\x3c\x02\x22\x42\x56\x09\x2c\x70\xca\x70\xdc\x18\x5c\x4c" "\x38\x5d\xd9\x8b\x09\xe2\x68\x26\x61\xe1\xe6\x6f\x71\xd9\xc4\x03\x70" "\x48\xeb\x70\xe8\xa1\xcb\xe5\x7d\xe8\x7e\xc4\x37\x13\xab\xf5\xfd\xcf" "\x63\xb9\xc4\x82\xf3\x18\xe3\xbe\xc3\x7e\x87\x8d\xad\xba\xe1\x5a\x02" "\xd7\x31\xe6\xc8\x57\x4e\xb1\x4c\x05\x9d\x72\xf7\x3b\xe5\x17\x4a\xdd" "\x78\x6d\x06\xb5\x85\xa2\x8a\x06\xd3\x49\xd8\xe4\x34\xa4\x91\xb3\x48" "\x97\xb3\xc1\xad\x78\x6e\xc8\x28\x0d\x7f\x57\xed\xd4\xfb\xc6\xae\xa5" "\x48\x5d\x65\x9b\x59\xd3\x93\xe3\x31\xcf\x91\xe6\xed\x76\xf3\x40\xfc" "\xf7\xcf\x46\x08\x92\xfa\x73\x18\xfc\x42\xb8\x83\xf6\x1d\x88\x8a\xd9" "\x82\xa7\x51\xac\xcb\x61\x3c\x66\x66\x1f\xba\x5f\x3d\x6d\xe7\x51\xa6" "\xa9\xef\x8a\x47\x00\x31\x6a\xaa\xd0\x4e\x99\x1a\xab\x79\x03\xf4\xef" "\x01\x2e\xc2\xa8\xc0\x92\x23\x4e\x74\xef\x33\x5d\xaf\x36\x0a\xe4\x7b" "\xbd\x2b\xbc\x6a\xd8\xc1\xa4\xf8\x1e\xfe\x8b\xbd\x70\x3c\xb5\x5e\xf3" "\x6b\x32\xb4\xe3\x0c\xb5\xa3\xb1\x65\xc0\x2b\xa2\x95\xd0\xe1\xc4\x0c" "\xe6\xff\x8f\x47\x9a\x74\xf0\x12\x75\xf1\x13\xeb\xfa\x8a\xde\x37\xa5" "\x9c\xe7\x0e\x6c\xa2\xa6\xf4\x8f\x1b\xe0\x85\xf6\x1b\xf7\x72\xe2\xc2" "\xda\x52\x3a\x2c\xfe\x63\xe9\x9c\x57\xbd\xb1\xff\x23\x13\x9d\x4f\xca" "\x49\xef\xf7\x54\x7e\x98\x80\xee\xfd\x3f\x75\x11\xa6\x77\xef\xa2\x3b" "\x52\x09\x8b\xa8\x90\x37\xc4\x8d\xfc\xda\x2e\x8c\x1c\xfb\x9f\x89\x21" "\x61\x04\x9e\x53\xf8\xce\xe5\x52\x56\x27\x95\x12\xae\xca\xb8\xc4\x41" "\x60\x0d\xae\x0f\xd9\x57\x88\x32\x73\x04\x7c\xf5\xc6\x6b\xa2\x09\xf8" "\x30\xaa\x2c\xe0\xcb\xe4\x1c\xa0\x8c\x0c\xef\x4a\xed\x7f\x43\x24\x00" "\x92\x00\x66\x1a\x7c\xe6\x80\xe5\xa8\xdf\x2d\x05\x1c\x1d\x8b\x2f\x63" "\xd2\x5d\x8d\x74\xd0\x5c\x75\xc4\x6c\x8f\x3f\x24\xd6\x25\x53\x9e\x63" "\x45\x96\x50\x96\x04\x98\xa5\x4e\xc3\xb1\x62\x25\xbb\xbf\x4d\x39\x30" "\x00\x9d\xf2\x65\x83\x9d\x72\x61\x1f\x53\x32\xa9\x04\xcd\xeb\xad\xa1" "\x08\x23\x6e\x44\x14\xa2\x90\x9a\xd0\x1e\xc4\x4b\x9d\x7f\x75\xde\x43" "\x85\xad\x7c\xa5\x15\x2e\x89\x0a\x09\x19\xb3\x63\x9f\xd1\xbc\xbc\xa3" "\xb7\x37\xeb\xb8\xd9\xae\x54\x1b\x12\x71\xcf\x21\x66\xba\x15\x83\x0e" "\x66\xf3\xd3\xaf\xd3\xb7\x54\xa7\xf8\x1a\xd4\xf0\x99\x97\x04\xae\x99" "\xc1\x14\x90\x7c\x5b\xe4\xa4\x79\x7f\x13\xb8\x05\x64\xf2\x34\x72\x3a" "\x34\xdb\xe1\x37\xda\xbf\xd7\xfa\x23\x56\x2d\xf6\x79\xf5\x4a\x6a\xb5" "\x4d\xef\x6d\x63\xde\xae\x98\x44\xf7\x2f\xd7\x3e\xfd\x04\x13\x55\x1f" "\x5c\x4b\x9e\xe8\x26\xeb\x3b\x7f\xaf\x92\xa5\x9e\xa3\x4a\x16\x72\x3b" "\x4f\xea\x14\xd1\xc8\x81\x5a\x4e\x2d\x39\xfc\x48\xd1\xdb\xce\x52\x6a" "\x7c\x53\xf5\xa9\x6d\x0e\xf6\x46\x3a\x0c\xee\x73\xfd\x35\x05\xf5\xc7" "\x64\xa2\x64\xb8\x3c\x4a\x21\xf8\x0e\x8b\x61\xc8\x2d\x24\x44\x2d\x13" "\xda\x99\xd1\x8d\xc1\xb2\x53\x8e\x7a\x51\x0f\x60\x93\xd9\xef\x2b\xc5" "\xcc\x77\x7d\x4f\x98\x41\x1e\x93\x91\x9e\xdd\xfd\x69\xd6\xe2\x0d\x22" "\x7c\xb6\x1c\x50\xf3\x58\xea\x22\x7f\x4d\xe9\x41\xfb\x08\x0c\x1c\xf6" "\xb1\xf6\xe2\x55\x33\x76\x8f\xe1\x33\xdb\xfc\x3f\x9d\x29\xc6\x03\xbe" "\xd3\x8a\xa3\xc5\xaf\x5b\x81\xa7\x06\xb0\x06\x7b\x40\xb8\x8f\x99\x26" "\x10\xd0\x4c\x7c\xc3\x6b\x8f\x64\x96\x97\xcd\x6a\x93\xfa\xe5\x11\x38" "\x16\x18\x91\xae\x75\xa7\x14\x77\x80\xfc\x59\xaf\x5a\x6e\x18\xc5\x4f" "\x9d\x2a\x4f\xe7\xfa\x92\x31\x4b\x39\x9a\xfb\xa9\xa4\x0d\x0c\xc2\x4f" "\x70\xa2\x59\x3a\xcf\x8d\x17\x92\x15\xe0\x6b\x7a\x9a\x88\x22\x4b\xaf" "\xcb\x2c\xbf\x60\xca\xf5\xfe\x4f\xf3\x82\x08\xa7\x07\x93\xb5\xdc\x33" "\xcd\x57\x29\x56\x26\x0e\x1c\x86\x31\x2d\x3b\xa9\xb3\xa4\xb2\xb4\x43" "\x76\xf2\xe7\x8c\x61\x6a\x6c\x08\x80\xac\x8d\xcb\xaa\x30\xb9\xf7\x61" "\xd5\x00\xfd\x03\xa8\x51\x8d\xd0\x50\x91\x57\xb1\x84\xa2\xd9\x5e\x0c" "\xaf\x3f\xfc\x8a\xc2\xdb\x6c\x54\xd8\x0c\x71\xa1\xe5\xb9\xea\x3b\xf5" "\x10\x71\xe2\x11\x8a\xf2\x04\x12\x3d\xac\xee\xb0\x4e\x4f\x6f\x31\xf3" "\x2a\x4d\x3f\xbb\x76\xee\x49\x44\x0c\xab\xda\x2c\x12\x1c\x1b\x99\xac" "\xab\x5b\x87\xce\xcc\x37\xc3\xf9\x06\x6a\xf3\x4a\xb2\x9d\x65\x98\xbb" "\xfd\x91\x04\x7a\x2a\xc7\xce\x3a\x8f\x30\x27\xff\x5e\x6d\x74\x35\x06" "\xf1\x61\x08\x72\x78\x89\x6a\x98\xed\x37\x12\x2b\xa2\x08\xb6\x1c\xf5" "\x4d\x39\x29\x55\x5a\xb0\x6b\x56\x4c\xd5\xe4\xf4\x6f\x47\x55\xa6\xcf" "\xa2\xef\x2b\x30\xd2\x9e\xa6\x6f\x27\x49\xd4\x06\x0d\x41\x1f\xa9\x16" "\x0c\x91\xb6\xf5\x5c\xf0\x71\xac\x82\x22\xc6\x31\x3d\xf1\x87\x59\xe2" "\x95\x8c\xdd\xfe\x3d\xb4\xcb\xeb\x9c\xd3\x9a\xbc\xf5\xf0\xbe\xae\xca" "\xe8\x43\x78\x13\x99\x5c\xb7\xed\x0b\x87\xd4\x2c\xa9\x42\xff\x72\x45" "\xec\xe2\x04\x79\x8d\x01\x36\x1c\x5f\x00\x8e\x0d\x82\xbd\xf7\x66\x60" "\x51\x5b\xc7\x8f\x7f\x8f\x40\x9c\xcf\x68\x61\x4b\x2c\xb5\x0f\x5a\xf2" "\x61\x56\x61\x32\x6f\xd9\x71\xbc\x57\xee\xea\xde\x71\xea\x90\x6b\x8d" "\xf1\xcb\x0d\xfa\xfd\x31\x8c\xd2\xc3\x96\x30\x9c\x32\x9d\x04\x69\xca" "\x19\x2a\xa8\xf5\x1d\x7c\x42\x27\x68\x54\x40\xf0\x73\x98\x32\x55\xba" "\xf0\x54\xb9\x7b\x9d\x7b\xe1\xd1\x47\x0d\x7e\xab\xd5\xc0\x9b\x21\x16" "\xb4\xe8\x6b\x05\x67\xb7\xe9\x7e\x08\x87\x17\xa4\xfe\x3d\xbd\xd3\x10" "\xa1\xc3\x91\x36\xea\x4d\x2c\x47\x49\x20\x01\xf9\x88\x5d\xba\x03\xbf" "\x97\xe7\xda\x37\x61\x71\xd6\x66\x44\x1c\xdc\x2f\x99\x9d\xb1\x37\x60" "\x3d\x57\xdf\x32\xb4\x26\x0f\xa0\x16\x5e\x82\x91\x7b\xb1\x63\x1e\xa3" "\x14\xe7\xa7\x43\x7e\x66\xfc\x68\xce\xf2\x2c\xda\x8f\x45\x6d\x6e\x58" "\x3f\x6e\x32\x37\xe0\xbc\x79\x98\x7a\x91\x03\xf7\xcf\x09\x18\xe2\x68" "\x81\xf6\x7e\xa5\x82\xe1\xff\x3a\x49\x17\x75\x99\xd3\x85\xbf\x6e\x42" "\x57\x2a\x25\x47\x93\x3a\xed\xdb\x82\x65\x30\xe9\xed\xf3\x0d\xd8\x4c" "\x3a\x7f\xae\x5c\x4c\x26\xf6\xc6\xf3\xa9\xf0\x90\x6d\xec\xd3\x14\xe2" "\x40\x78\x25\xab\xef\x95\x9c\x54\x16\xd1\x8a\x92\xff\x34\xe6\xc5\x21" "\xa1\x6e\x8a\x0a\x29\x93\x7c\x77\xd4\xee\x99\xb4\x1d\x53\x0a\x73\x2a" "\xcb\xe0\xbf\x5d\x27\x4d\xf9\xd4\x96\xb4\x7a\x9a\x62\x45\x46\xbd\xcf" "\x99\x76\xcd\xe1\x2e\xc9\x89\xcb\x2a\x70\xb3\x3a\x7c\x8a\x3a\x77\x65" "\x20\x23\x16\x46\x95\xf9\xdb\x30\xdf\xcf\x58\x7f\x0c\xd4\xf7\x3e\x38" "\x57\x30\xbc\xbd\xd6\x88\xf6\xdc\xb0\x8b\xa0\xef\xbb\x9f\x57\x92\x20" "\xaf\xef\xa4\xac\xfe\xa5\x22\xe8\x64\xfc\xe9\xb1\x78\x2c\xe9\xf1\x48" "\x24\xd1\x6e\x9d\x33\xa2\x60\x9c\x23\xba\x3c\x5a\x1a\xf0\x25\x49\x35" "\x7a\x0d\xcc\x12\xe3\x78\x19\xd7\x78\x02\x17\x62\xcf\x89\x5a\xbe\xac" "\x11\x25\xb7\x44\xc8\xb8\x22\x5a\x09\x1e\x7b\xe9\xde\xd9\x99\x3c\xfa" "\x3c\xa9\xab\xb8\x3e\x25\xc8\xf5\x59\x00\x99\x77\xa2\xed\x93\x74\xa8" "\x96\x19\xfa\xe5\xef\x6d\x16\x4b\xb7\x3d\x24\x20\x04\xdc\x84\x28\xe4" "\x46\x89\xb3\x3e\xe3\xbb\xe8\x8b\xb4\x96\x2a\xb0\xa3\x2a\x90\xe7\xae" "\xa0\x44\xf0\x84\x10\x75\x2c\xb2\xd7\xae\xaf\x31\x96\x64\x8a\x3a\x99" "\x09\x26\x65\xb4\x78\xbb\x39\x4b\x48\xf7\x9b\x36\xdb\x0e\xfc\x7f\x50" "\xd6\xa5\x17\x9c\x94\x5f\x52\x98\xcf\xaa\xc5\xe5\xde\xa7\x15\x29\x6f" "\x92\xab\xc0\x47\xdd\xb2\x54\xfe\x9a\x8a\xb9\xf4\x98\xb0\xc1\xae\x09" "\xff\xd0\x1a\x3d\x8d\x42\x7f\xee\x7e\x36\xc5\x1e\x0e\x5c\x2f\xee\x22" "\x45\xfb\x84\x64\x62\x6a\xb5\xc9\x85\x7e\xbc\xe9\x1f\x7d\x22\xbf\x02" "\x4d\x10\xc2\xd7\x10\x21\xcd\x69\x26\x84\x72\xde\x41\x9e\x6c\xef\xd9" "\x70\xcc\x3a\x8e\x4d\x1b\xbe\x64\x96\x79\x9a\xa7\xf1\x00\x41\x17\x66" "\xe7\x12\xaf\xf0\x8b\x73\x14\x60\xf1\x4f\x9d\x73\x56\xdb\x12\xcf\x8e" "\x1c\x61\x21\x96\x8d\xc6\x8b\x1d\x81\xc0\x86\xb3\x25\xca\x4c\xe6\xfe" "\x1f\x47\x67\x07\xe0\x8f\xa9\x13\x14\x4b\x75\x7c\x6b\xe1\x7c\xf9\x31" "\x50\xdb\x29\x54\x4d\x20\x7f\x09\xa8\x96\xf3\x3b\x73\x35\xd9\x33\x92" "\x15\xda\x75\x1e\x7a\xf2\xc6\xbd\xd1\x9d\xb6\xf5\x21\xaf\x2c\x8a\x59" "\x98\xdc\x60\x7f\x97\x02\x6d\x07\x11\x14\x88\x74\x11\x34\xc1\xc8\x6e" "\xba\x12\x32\x73\xd1\xfd\x5e\xe4\xb4\x71\xe8\x6f\x9a\xe9\x47\x8a\x04" "\xc7\x48\x20\x76\xab\x34\xa1\xec\xa5\xc6\x4f\x89\xe5\x10\x6e\xed\x44" "\xbc\xee\xc0\x19\xc6\x7c\x12\xfb\x4d\xb4\xfd\xac\x15\x3f\x4a\xc3\xb6" "\x3f\xfe\xb6\xd3\x0d\xe5\x8e\xc0\x39\xe2\xdd\x3c\x18\x1e\x25\x4c\xd9" "\x4d\x0a\x2b\x0b\x44\x49\x03\x84\xcc\x59\x15\xb5\x4e\xe1\xdb\x2b\x6d" "\x05\x98\x79\xbf\x81\x26\xc9\xca\x97\x6d\x0f\x78\x62\xda\x07\xec\xd3" "\x50\x93\x0a\x08\x18\x10\xa7\xaf\xd7\x2b\x2a\xd3\xf6\x5b\x96\xae\x9c" "\x7f\x91\x22\x7a\x2b\x55\x13\xa5\x59\xf3\x6b\x90\xfe\x01\xbe\x9a\xe5" "\xad\x3c\xa6\x5e\x2c\x26\xf3\x58\xfc\x26\xb8\x58\xa3\x63\x3f\xda\x7a" "\xe4\x9a\x5f\xb7\x05\x22\x0a\x58\x19\xb3\xcc\xa4\x1b\x1c\xcc\x21\xd7" "\xc4\x0f\x5f\xa9\xc4\x22\x28\x8e\xfa\x53\x94\xe4\x31\x26\x75\x89\x9d" "\x70\x4a\x2a\xab\x62\xb8\x36\x3f\x58\xfd\x4b\xc1\x2a\x8b\xea\x6f\xfc" "\x45\xb4\x41\x42\x37\xbf\x5f\x01\x93\x21\x20\x6d\xbb\xa4\x39\xac\xb5" "\xef\x26\x64\x1f\x30\xfd\xac\x20\xf9\x64\x35\x4b\xce\x94\xe4\xc9\xd7" "\x3e\x13\x7f\x98\x06\xde\xef\xaf\x6f\x4a\xca\xa0\xe7\x6a\xd4\xfe\xf9" "\xf6\xcb\x7f\xc0\x1b\xba\xbd\xa9\x61\x2c\x05\xad\xbe\x46\xaf\xcf\x94" "\x81\x9e\x8a\x4b\x4b\x49\xff\x76\x47\x84\xfa\x43\x2d\x47\xfb\x6d\x42" "\x30\x90\x00\x43\xd1\xb4\x52\x1c\xd6\x83\x9f\xe8\xc5\xdf\x4d\x18\x99" "\xfd\xfb\x13\x88\x0e\x20\x7c\xac\x73\xf0\xa2\x90\x20\xbd\xd5\x63\xbd" "\x9c\x2f\x6b\xcd\x1e\xc5\x23\xb3\xe0\x3e\xbf\x61\x64\xfc\x65\xaf\x00" "\x18\x30\xc5\x13\x96\xf9\xdf\x2d\x34\x6f\x83\xa5\x9c\xfc\x82\x20\x1c" "\xf1\x15\x0e\xa5\x72\x59\xd5\x79\xfc\x2e\xd1\x99\xb3\xfb\xe4\x2d\x51" "\x88\xc8\x4e\x43\x54\x61\x07\x43\xe5\xb2\x3a\x26\x52\x46\x31\x3c\xc6" "\x39\x13\xf1\x74\x12\xfa\x00\xd9\x8b\x37\x9b\x80\xb9\x6d\x93\x29\x69" "\x57\x2e\x11\x31\x6b\xc8\x92\x6c\xb2\x31\x15\x18\x6f\x3b\x23\x87\xb8" "\x2c\x38\x98\xfa\x41\xbf\x16\xa3\x08\xda\x62\xd5\xa3\xeb\x36\x09\xaf" "\x19\x43\xfd\xdd\xe0\x8a\x40\x36\xeb\x2a\x41\xb7\x29\x2c\xaa\xd9\xeb" "\x08\x26\x14\xb0\x2a\x1f\xa2\x55\xbc\x7a\xbd\x4d\x0e\x3b\x4e\xc1\x80" "\x1e\x13\x1e\x68\xc7\xaa\x9d\xa1\xa0\xff\x10\xf9\xde\x87\xde\xc8\xfa" "\xd1\xad\x8b\xfa\x99\xca\xa4\x9e\x20\x3a\x7b\x9c\x33\xe0\x44\xd4\x54" "\x4a\x53\x74\x71\xe7\xa4\x52\x46\x8b\x82\x19\x59\xbc\x48\x8c\x6b\x8c" "\xbf\x81\xe9\x00\x81\xa2\x6d\xe2\x73\xad\x12\x03\xcc\x06\xad\xb6\xaf" "\x24\x2a\xb1\x9f\x96\xc1\xc6\x6b\x58\xc3\x7e\x2c\x93\x09\x70\x4f\xba" "\x63\xaf\x99\xa8\xd9\xc5\xef\xc6\x51\xaf\xb6\x31\xfe\x9f\x54\x6b\x93" "\x8c\xc3\xb8\xe5\x26\xc4\x15\x9e\x5c\x9f\x7a\xfb\x29\xfd\x1d\x55\xfa" "\xbf\x09\x36\x7c\xe2\xa6\x3a\x35\xe7\xa2\x06\x2d\x1c\x77\x2e\xd9\x81" "\xfd\x77\x15\x7a\x84\x7f\x68\x7a\x17\x7c\xf9\x88\x6c\xe4\x1d\xf8\xcc" "\x50\x93\x02\xb4\x6b\xc1\xe2\xba\x89\x6b\x1c\x16\x56\xa1\xbb\xfd\xf4" "\xcd\x9a\xc3\x9c\xf8\x51\x0d\x1c\x82\x30\x75\xf1\x65\x50\xfd\x04\x4a" "\xac\xc8\xd4\x2a\x56\xf0\x37\x18\xf7\xb1\x84\x75\xcd\xc3\x99\x9f\xae" "\xb2\x5a\xb3\xdd\x8a\x80\x7e\xe0\x4d\x8e\x5d\x83\x1d\x08\xb4\xe3\x09" "\xdf\xf5\x03\x30\x68\x51\x38\x79\x7e\x10\xc6\x36\x26\x36\xf5\x3f\x22" "\xbf\xc1\xf3\xd5\x09\x0a\x5d\x36\x92\x82\xd9\xde\x36\xbb\x4e\x25\x05" "\x41\x1c\xcc\x6e\xa3\x95\xaf\xa1\x56\x7b\x15\xa2\xfb\x4b\xe2\xad\xee" "\xa7\x12\x6b\x1a\x8e\x80\x03\x41\x05\xe0\xd9\x8b\xdd\x78\xe7\x96\xce" "\x1c\xdc\x06\xa4\xae\x66\x6f\xc0\xba\xec\x5c\x52\x61\x43\x40\xed\x99" "\x76\x73\xe2\x6e\xc4\x7c\x88\x84\x6c\x00\x0b\xb7\xc9\x07\x73\x37\xcd" "\x44\xf5\xc0\x41\xfd\xcc\x64\x98\x6e\x5e\x1c\x0f\x48\x81\x48\xf0\xee" "\x6f\x84\x2c\x44\xc0\xb7\x2e\x82\x10\x92\x70\x34\x1b\xba\x6e\x90\x80" "\xb7\x0f\xcf\x93\x0d\x0f\x10\xbe\x5a\x36\x79\x8e\x70\x11\x1f\xed\x72" "\x72\x7b\x72\x28\x2f\xf1\x64\xfc\x08\x31\x9d\x74\xf1\xf5\x7c\xde\x71" "\xb5\x7c\xb3\x97\xa9\xe7\x53\xf8\x7b\x97\x72\x9b\xaf\xba\x01\x7a\x24" "\xcb\xfd\xee\x5d\xfe\x7f\xc2\x96\xc1\x12\xe9\x3b\xb8\xfc\xe5\x60\xca" "\x80\xa3\xaf\xd8\x37\x0b\xaa\xa7\x9a\xd7\x83\xb5\x13\x52\xb5\x44\x0b" "\x14\x4a\x47\x37\x8c\x9a\xe2\x2e\xda\x57\x94\x32\x8e\x95\xbc\xca\x22" "\x0f\xd0\x7b\xb5\x69\x15\x52\x9b\x15\x5c\x61\x85\x8e\xfe\x89\xad\x36" "\xa7\x92\x88\xe7\x4c\x0e\x25\x1a\xdd\xcf\xaf\x79\x74\x32\x17\x5a\x55" "\x62\xb4\x6e\xff\x5e\x3a\xeb\xeb\x74\x62\x3e\x18\xbe\xef\x85\x38\x93" "\x83\xc6\x04\xd8\x88\x44\x31\xb0\x7d\xc4\xbe\xa0\x17\x4a\xad\xc3\x37" "\xff\x41\xf5\x58\xa6\x3f\x16\x69\x0f\xea\xe4\x7e\xfa\x2a\x5d\x13\x18" "\xb7\x39\x7e\x1e\x4b\xa3\x98\x72\x7d\x28\x67\x91\xb7\x16\x10\xe1\xd7" "\x8d\x32\x80\x0e\x7e\x11\x3c\x12\xab\xf0\xf6\x0b\x6c\xa4\x40\x1e\xcd" "\x23\xb7\xaa\xcd\x99\x06\x33\xb2\xb0\x17\xda\xf6\xbf\xef\x1b\x23\x61" "\xec\xe7\x4b\x7d\xbc\xbb\x1a\x73\xd4\xbc\x1f\x9d\x2e\x5c\x9f\xb0\xb7" "\x98\x0d\x25\xcc\x44\xd1\xb1\x0c\x09\xef\x5a\x6a\x05\xc8\x46\x69\x29" "\x4a\x5c\xad\xf0\xcd\x88\xab\x44\x9f\x9f\x0b\xcd\xd8\xc4\x85\x90\xd4" "\x16\xc5\xc1\xfe\xaa\x49\x4a\x21\x45\x94\x9c\x2a\x33\x73\xdf\x7c\x60" "\x14\x22\x5f\x27\x45\xbb\xeb\x20\xff\x29\x4d\x22\xc0\xd9\x6c\xa1\x11" "\xe6\x92\x69\x46\x20\x7c\xab\x56\xa0\x31\x62\xa4\x9e\x68\x96\x8e\x39" "\x8f\x70\x69\x01\x88\xee\x3c\xa8\x47\xef\x42\x17\x42\xd6\x0b\x9a\x6a" "\xd0\x29\xe8\xa3\xd6\x07\x95\x0b\x2b\xf8\xad\x8f\xf2\x97\xcb\x39\xac" "\xc9\x49\x05\x63\x57\x70\x43\x6e\x13\x44\x35\xe2\x82\x05\x14\x03\x31" "\xb5\x10\x0d\x9f\x64\x46\x97\x92\xff\xfa\xc8\x7b\xca\x08\x35\xcb\xc6" "\x17\x44\x6f\xf8\x6a\x7b\x50\x41\x8c\x30\x5f\x32\xe6\x58\xb3\x21\x30" "\xe4\x91\xe3\x87\x09\xfd\x36\x97\x01\x7a\xc8\x08\x4c\xdf\x1e\xd8\x1a" "\x28\x37\x5a\xed\x09\x2a\xb4\xe3\x2c\xa8\x8a\x93\x31\x54\xdd\x3a\x9e" "\x99\x35\x1a\xcb\xad\xa9\x26\xb6\x7b\x31\x0c\x70\x70\xac\x1a\x41\x4a" "\x28\xc5\xab\xfe\x1f\x45\x47\x62\x49\xa1\x2f\x18\xca\x2d\x98\x15\x28" "\xd8\x81\xed\x3c\x50\x72\xe4\x6a\x6e\xff\x3c\xdf\x37\xdc\xbc\x89\xc7" "\xf7\x9c\x88\xa1\xf8\xd1\x5d\x15\xbe\xb6\x6a\x0e\x44\x40\xc7\xb9\x3e" "\x37\x9c\x4e\x2b\xac\x1d\x5c\x8e\x85\xf1\x85\x28\x87\xe2\xcf\xeb\x17" "\x8f\xba\x1c\x67\xcc\x2a\xdb\x0c\x87\xdf\x8c\xa4\x44\x4c\xa7\xf4\x55" "\x50\x9f\x49\x2e\xff\xb5\x00\x13\x28\xb8\xcc\x69\x6e\x29\x33\x20\x7a" "\x2d\x78\xbb\xce\x85\x62\xca\x34\xa2\x48\x19\x3c\x91\x44\x06\xb1\x61" "\xc8\x14\x14\x79\xd8\x91\xb0\xc6\x11\x0e\xc1\xe2\x5c\xad\x38\x29\x9b" "\x48\x9f\x2e\xc4\x37\x01\x7c\xad\xba\x67\xdc\xb5\x8a\xbd\x49\x33\xc9" "\x5b\x35\x26\xf1\xd4\x74\x7b\x87\x01\xa7\xd7\x1e\x44\x6e\x4b\x62\xe2" "\x94\x1d\x42\x81\xfa\xca\x0c\xf2\x29\x14\xbe\x5a\xad\x80\xf4\x71\x00" "\x00\x00\x00\xce\xb2\x4e\x82\x50\x8f\xe5\x5a\x92\xfb\x6d\xb7\x0d\x03" "\xd1\xc1\xec\x09\xcf\xee\x31\x63\x93\x41\x75\x6a\x46\x30\xa0\xea\xae" "\xca\xc7\xbf\xbd\xdf\x9d\x30\xc4\x2c\xbd\x45\xeb\x18\x1d\x5b\xd3\x41" "\x30\x7a\xd2\x6f\x49\x6b\xb0\x42\xe2\xb6\x55\xc0\x3a\xc3\xdc\xc5\x87" "\xac\xbf\x50\xf7\x9b\x5c\x23\x9b\xe9\x93\x8b\x62\xd3\x25\x1b\x19\x9f" "\x84\x13\xb0\x20\x60\x5d\x5d\x05\x52\xcf\xd9\xc3\x9c\x91\x32\x71\x9d" "\x6d\x0a\x32\x6b\x00\x0e\x12\xfc\xb5\x1b\xc2\x74\xdf\x79\xd1\x14\x30" "\x06\x0d\x05\x97\x8c\xdd\x50\x58\x3f\x1b\xca\x82\xc5\x7d\xbe\xe6\x05" "\xe2\xd0\x0f\xcb\x54\x14\xaf\x13\xa5\x96\xd3\x5c\xb5\xba\x62\xde\x6a" "\x28\xcb\xcc\xc8\x57\xd2\x35\x47\xb1\xc7\xfd\x5a\xc8\xfb\xf6\x75\x8d" "\x5b\x84\x51\xfa\x46\xd9\xac\xc0\x03\x44\xdc\x2e\x56\x56\x74\xb1\xdd" "\x35\x47\xeb\x8f\x8a\xa5\xff\xf9\x90\x42\xf8\xd1\xd5\x9e\x6a\xd2\xf5" "\x33\x79\x21\x1e\x68\x32\xfc\xb6\x8f\x57\x77\xeb\x2d\xb8\x5b\x28\xf7" "\x24\xf4\xe4\xce\x63\x42\xcf\x55\x71\x3f\xf7\xb0\xcb\x4f\x7f\x47\xdd" "\x12\xa6\x56\x6b\x86\x70\x9e\xae\xfa\xe0\x24\x37\x32\x67\xce\x72\xa8" "\x9e\x7f\x3e\x42\xab\x48\xed\xcc\xcc\x96\xb5\xd0\x40\x3f\xe9\x3a\x92" "\x7e\x5c\xcf\x47\x00\x14\xf2\x20\xb8\x25\x73\x93\x22\x6c\xd7\xb9\x96" "\xf2\x0e\x6a\x34\xf8\x12\x06\x73\x3a\x9f\xdc\xe0\x3b\x70\x19\x43\xc1" "\xb5\x60\xd3\xea\xb6\x8c\x2c\x22\x5c\xf7\xf7\xf2\xb5\x61\x23\xbe\x2b" "\xb1\x73\xe9\xe5\xb3\x7f\x4d\x33\x48\xf6\xb9\x87\x76\x4a\xd0\x7c\x2a" "\xcd\x44\x51\x4f\xf2\x64\xd7\xed\xa3\x1e\x5e\x51\x7a\x17\x94\x14\x84" "\x1a\xd4\x55\x3d\x51\xc0\x8f\x43\x5e\x05\xf1\x0a\xa8\x2d\x74\xb9\x7a" "\x9b\xa3\xa1\x33\xe6\xc9\x17\x5f\xdc\xd4\xf3\xdc\x9c\x16\xd3\xbe\x1d" "\x5b\xba\xf1\x32\x40\x17\x70\x81\xac\x1d\x56\x68\x1b\xfa\x98\x8a\x93" "\xaf\x09\x86\x8a\xfd\x60\x85\x20\xc0\xbf\xd7\x1d\x85\x7a\x66\x61\xfd" "\xaf\x6f\x2e\x16\x69\x87\xeb\x00\x74\x49\xdd\x26\x33\x4a\xe9\x32\xc5" "\x00\x3f\xef\xc0\xf9\x83\xb9\xe4\x9c\xbf\xce\xa3\x25\xf2\xde\x16\xa9" "\xae\x93\x5c\xaa\x46\xf5\xb3\x43\x39\x57\xfb\x37\x09\x71\xed\x95\x7f" "\x13\x8f\x08\xa6\x0f\xed\x5b\x84\x99\x5e\x42\x8e\x7a\xe7\xd5\xc2\x20" "\x21\xff\x01\x6b\xae\xf0\xe7\x13\xa1\x18\x34\x4c\x01\x6a\x99\xad\x46" "\x93\x13\xba\x7f\x24\x52\xda\x0d\xd8\x2e\x01\x9f\x64\xaa\x22\x9c\xf8" "\x0a\x69\xb3\xe0\x8a\xc5\x84\x7f\x10\xd2\x47\x17\x98\x55\x54\x63\x13" "\x23\x2f\x23\xe0\x55\xc2\xf7\x4e\xce\xf1\x4e\x0f\xdc\xc2\x9a\x9b\xf0" "\x97\x6f\xbb\x24\x9b\xd5\xc7\x90\x31\x83\xd2\xa5\x3c\x70\x96\x0a\x18" "\x36\x30\xe7\xd4\x92\x8d\xaa\x70\x91\xa8\x5a\xd9\x87\xd2\xa4\xa5\xb8" "\xf6\xbe\x66\x12\xfa\x72\xd9\xfb\xb3\x3c\x67\xbb\x38\xef\xf1\x9f\x2e" "\x78\x4f\x94\xe0\x35\x4c\xf6\xd3\x5a\x5b\x2c\x62\x23\x3c\x03\x9d\xe3" "\x73\x4b\x38\xe9\x7e\xc7\x2b\xd6\x73\xfe\xf0\x9f\xd5\x6f\xec\x32\x98" "\x18\xcc\x68\xcd\xf1\x2c\xb5\x2f\x7d\x37\xa8\x35\x0c\x16\xe9\x42\x08" "\x88\x0b\xfc\xd3\xe8\x95\xd7\xaa\x44\x89\xe3\xdd\x15\xdb\x4a\x90\x26" "\xf0\xd2\xa4\x6f\x1e\x89\xc3\x58\x45\xdb\xd9\x76\xa1\x99\x2b\x87\xc1" "\x5a\x0c\x75\x80\xe6\x42\x4b\x87\x92\xa7\xbb\x7b\x93\x3d\x7c\x54\x33" "\xd4\x13\x3b\xa4\xdb\xbc\xf7\x99\x5d\x6e\xd3\xfe\xaa\x32\xf8\x76\xa2" "\x87\xfe\xeb\x9c\xc6\x10\x77\x78\xc1\xf8\x3e\x01\x19\xd9\x80\xb9\xe9" "\x94\xc2\xa3\xae\x3d\xe2\x4a\x10\x3e\xfb\x3c\xac\xb7\x46\xb4\x9d\x1a" "\xd8\x57\x46\xb2\x33\xab\x4a\xaf\x0e\x98\x8e\xc2\xa7\x86\xbc\x93\xf3" "\x20\x40\xd3\xbd\xc3\x00\x80\x31\x63\x4c\xdf\xde\xd5\xac\x95\xb2\x27" "\x9e\x09\x62\x43\x22\x82\x96\x59\x1e\x7b\xa5\x3c\x4a\x12\x77\x72\xcc" "\x46\x20\xe6\xb2\x38\xcc\xad\x25\x06\x29\x19\x45\x33\xd0\xa6\x69\xff" "\x33\x66\xc5\x2d\x64\x92\x86\x93\xe0\xb0\xcb\xb0\xb8\xe2\xc6\x02\x90" "\x89\xd4\xdf\xe2\xb4\xb6\xc5\xdc\xd8\x5f\x1a\x02\x77\x06\x11\xe6\x50" "\x01\xe4\x8a\x32\xa8\xb0\x43\x1a\x3b\x9d\x77\xfa\x3a\x95\xbe\x38\xa0" "\x43\x6a\x70\x4c\x05\xa8\xe0\x18\x3f\x32\x14\xc2\x55\x31\xa6\x37\x96" "\xf6\x79\xbf\x72\x88\x5a\xa7\x66\x46\x8d\x42\xb2\x54\x35\x42\xd7\xe8" "\x25\x44\xef\xc5\xc5\xe8\x1e\x6a\x91\xa0\xf5\xd4\xe6\x80\x00\xcf\xf6" "\x87\xd6\x3e\x45\xc9\xa1\x1d\x4e\xf5\x15\x05\x0d\xaa\x59\x2c\x9a\x82" "\x8a\xc7\xc0\x48\x8e\x7c\xdb\x3d\x6f\xda\xef\x5e\x91\x76\xee\x68\xd9" "\x81\xea\x50\xd3\x86\xd7\x4d\xf3\xb4\x06\x60\x35\x17\x36\xde\xb0\x3b" "\xfc\xeb\x72\x18\x78\xcf\x98\x94\xb0\x30\x2d\xf1\x59\x64\x24\x2a\xb6" "\xb9\xf7\x7f\x98\xba\x1c\x79\x93\x73\x59\x83\xd2\xb0\x22\x60\x0a\xb7" "\x4a\x19\xe3\x63\x6e\x14\x00\xd0\x8b\xa4\x5d\x3a\x5c\x27\x74\xcb\x06" "\xa1\xc3\x58\xbb\xfc\x11\xd2\x7e\xfa\xf7\xca\x53\xc2\xe7\x75\x7c\x8c" "\x76\xda\x24\x70\x7d\x91\xa4\xa5\x24\x42\x62\x89\x8d\x68\x08\x3f\xf9" "\x1c\x51\x4d\x9b\x9b\x1e\xba\xa0\xcb\x0b\x10\x25\x4f\xda\x1b\x1e\x82" "\xb9\xa1\xa4\x7f\x11\x7b\x5b\x28\x0d\xdb\xec\x1f\x67\x32\xd1\x11\x17" "\xef\x1a\x7a\x67\x46\x99\xdf\x87\xfe\x79\x5d\x12\x43\xcb\x9c\x45\x27" "\xe3\x64\xe2\xb7\x11\xb6\x56\x2a\x87\xfa\xfc\x13\x0c\xe0\xba\xf1\x70" "\x16\x86\x63\x9b\x05\xf0\xc8\xdc\x70\x8f\x00\x8b\x1e\x6a\xb8\x9e\x8d" "\x62\x3b\xb8\x3f\x3d\x54\xb7\xbc\xdb\xda\xcd\x05\x5a\xc4\xec\xcb\xd3" "\x6b\xbe\x0a\xf0\xf6\x5a\x00\xe3\xd6\xdd\x98\x5a\xe8\x85\x1d\x17\x69" "\x76\xcf\xb5\x81\x6d\x1f\xc2\xa6\x3d\x35\x46\xae\xca\xa4\xe7\x12\xca" "\x69\x61\xd1\xf1\x81\x31\x5d\x55\x3d\xe6\xb5\x34\x85\xfa\xed\x0d\xcf" "\xcf\x81\x9a\x1b\xa3\xba\xdf\xfe\x79\x73\x77\xd3\xd1\xdd\xae\xd8\xe7" "\xa0\xac\xc0\xc3\xd2\x77\x76\x22\x62\xa1\x39\xf9\x4d\xe4\x9f\xac\xa1" "\x67\xb1\x1b\xf0\x4f\x21\x04\xa5\xab\x9a\x73\x36\x7a\x64\x61\xf7\x12" "\x4c\x91\xa2\xc4\x22\x9e\xf9\x8e\x6e\xbd\xe9\xaa\xc2\x83\xc7\xd0\x29" "\x40\x0d\x71\x29\x3f\x48\x8b\xa1\x69\xb6\x2c\x1e\x94\x68\x9c\xf5\xb2" "\x48\xed\x4a\xea\x62\xb8\x8d\x65\xbb\x76\x4c\xfe\x27\xd5\x23\x1a\x58" "\x48\x6e\x73\x81\xdf\x51\x8f\x4e\xd8\x1c\xb9\x05\x10\x8c\x54\xa5\x05" "\x0a\x94\xca\x0e\x94\xda\x20\xd3\x79\x4b\xc5\xfa\xb9\x12\x7d\xc9\x5b" "\x64\x04\xb1\xe2\x7b\x4e\x28\x13\x6f\xc2\x78\x06\xf7\xbe\x79\x84\x44" "\xc3\x3a\xca\x88\xff\xd4\x5b\x86\x0e\xba\x0d\x50\x33\x83\x9f\x5a\x09" "\x28\x63\x95\x46\x04\xf1\x95\x2b\xd6\x1d\xad\x23\xb1\x16\x43\xfe\x14" "\xf3\xad\xe0\x81\x16\xaa\x2c\x13\xee\xe7\x01\xcc\xd1\x3e\x50\x6b\xd6" "\x5a\x10\x60\xbf\x69\x57\x9a\xea\x8c\x81\x43\xcd\x38\xc0\x89\x1a\x30" "\x65\xf2\x51\xeb\xa0\xc2\x0a\xb9\xc6\x9d\xdf\x28\xe3\xbd\x64\x00\xcc" "\x20\x3b\xac\x8d\xe1\x88\x22\x39\xad\x4e\x1b\x97\xb0\xae\x2f\x1a\xbb" "\x7b\xac\x7c\x0d\x8e\xf8\x2b\x97\xeb\xfb\x1f\x55\x77\xf0\x6a\x3a\x13" "\x77\xb0\x9a\xda\x4d\xb8\x7d\x34\x2f\x20\xab\x0e\xca\x4b\x9c\x20\x60" "\x42\x47\x13\x07\x51\x14\x29\xcb\x57\xa5\x78\x21\x1f\x92\xd3\x64\x71" "\x89\x86\x1c\xad\x91\x45\xf5\xeb\x26\xab\x69\x6a\xbe\x50\xa2\xa6\xc1" "\xb4\x69\xdf\x97\xda\x28\xab\xa4\xe7\x9b\x58\x6c\x34\x8a\x43\x0f\x5e" "\xa6\x1c\x4b\xe1\x03\x2f\xa6\x1d\x18\x58\x1f\x05\xa0\x7f\xb8\x70\x7c" "\x89\x96\xe0\xff\xf1\xc3\xed\xa5\x9b\x99\x26\x87\xfa\x12\x48\x3b\x93" "\x27\xe1\x02\x24\xb2\x0d\x42\xe8\xb3\xfc\x46\x70\xbf\x07\x0c\xed\x60" "\x22\x83\x27\x3d\x68\x18\xac\xd1\xf6\xda\x56\x7c\x44\xd3\xf5\xe1\x37" "\x70\x65\xd4\x3d\x87\xd8\x89\x84\x3a\xe4\x8e\x7f\xa8\xba\x16\x34\x81" "\x56\x95\xb8\xc4\x80\xca\x27\x1e\x6e\x83\x37\x99\xc7\x0d\xa8\x0f\xd7" "\x9a\xcc\x09\xb9\x89\x66\x7a\x22\x94\xde\x5d\xa7\x3f\x03\x63\xdf\x9a" "\x33\xad\x4d\xab\x8d\x27\xcf\x7b\xed\x0a\x06\x83\x86\x72\xe3\xd0\x7d" "\x52\xb6\x39\x6e\x9b\x55\x76\x02\x1d\x5e\x92\x5a\xbd\x53\x3b\xf1\x61" "\xc9\x44\x79\x50\x65\xfd\xd4\x4e\x84\x62\xe3\x07\x0c\x47\x9f\x1c\x11" "\x82\x76\x65\x34\x88\xdd\x9b\x2f\x1a\x67\x3f\x8c\xad\x36\x12\xca\x1f" "\xab\x43\x88\xec\x9c\x8f\x83\x4a\x01\xa4\x99\xad\xb7\xb3\xa9\xa9\x77" "\x67\x2f\x6d\x75\xb4\x1b\xbd\xd7\xf9\x1c\xeb\x7e\x7a\x88\x56\x8d\x17" "\xbb\x43\x2b\xe9\xe4\xe9\x6e\x11\x50\x75\xbc\xe1\x97\xef\x47\x54\xd2" "\x91\x4c\x2c\x59\xe2\xd7\xf4\xc0\x8f\x0d\xbe\x34\xd3\x1f\x22\x94\x28" "\xf2\x11\xbf\x1d\x7e\x8f\x5c\x31\x9e\xd4\xa8\x27\x3c\xb6\x25\x5e\xb3" "\x18\x85\x1a\xc4\x55\x7b\x02\x78\xfa\xc6\x31\x07\xa5\x4d\x40\x7c\x42" "\xf3\x00\xb8\x43\xa1\x2a\xbd\x3b\x89\x3b\x46\xc7\xef\xac\x2e\x38\x8a" "\xb4\x2b\x87\xae\xbe\x25\x43\xbd\x4c\x15\xf4\x59\xbc\x50\xaa\xd1\x0f" "\xfe\x1c\x11\x96\xfb\x52\xc2\x6e\x54\xbd\xaa\x7f\xbd\x52\x45\x1f\x20" "\x7f\xfb\x07\x3e\xf4\xb3\xf7\x1e\xed\xd7\xda\x40\xc8\x95\x05\x01\x97" "\x39\xe3\xfa\x73\x3b\xcd\xc8\x4f\xf4\x91\x9e\x8f\xe2\x35\x81\x29\xef" "\x28\x29\x1b\xe1\xd6\x42\x6b\x8b\xaf\xe8\x84\x63\xb1\xd3\xcd\x72\x73" "\x74\x53\x81\xc7\xf6\x52\x21\x89\x8e\x6a\xd3\x61\xe8\x8b\x24\xc5\x4c" "\xcc\x7a\xc9\xa8\x30\x14\x5b\x6d\xc0\x96\xe2\xd7\x1e\xf7\x1e\xc4\xf0" "\x35\x24\xcb\x87\x0b\x72\x4e\x08\xd2\x23\xbd\xec\x2f\x6f\xdd\xe6\x20" "\x02\x17\xa1\x3b\x51\x36\x00\x4d\x45\x5d\x66\x54\x7f\x5a\x17\x93\xe0" "\xca\xd8\x56\x77\xd4\x9e\x5c\x55\x88\x52\x10\x70\x07\xc8\x13\x68\x12" "\xcf\x02\x1a\xfa\xf6\xf7\xe8\xf5\x98\x83\x37\x1b\xe4\x6c\xda\x41\x2d" "\xd9\xc6\xfc\xf1\x87\xc3\x12\x52\xce\xb5\x75\x89\x01\xd3\x9c\xd5\x35" "\x5a\xb3\x86\xd9\xa7\xfe\x6e\xa4\x6e\xbf\x27\x7a\xaf\x80\x9c\x30\x23" "\x21\x1e\xa9\xaa\x18\x9d\xe4\xd4\x22\x08\x0e\xbb\x9f\xec\x50\xff\xab" "\x6b\x95\xba\x4a\xe5\x01\x8a\xcc\xc4\x97\xe7\x91\x49\xed\x60\x47\xce" "\x56\x1c\xcc\x10\xe9\x19\x4c\xdc\xcd\x5c\x9f\xb7\x51\x75\xc8\xdb\xc9" "\xd0\xa9\x16\xad\x59\x28\x8f\x01\x0d\xef\xbb\xb5\x0d\x26\x30\x41\xab" "\x37\xaa\xc0\xf9\x32\x53\xbe\xf6\xf8\x98\xcd\x08\x25\xd9\x9d\x27\x22" "\x4f\x26\x18\x1f\x97\x13\xb8\x97\x9d\xa6\x47\x56\xc9\x5e\x75\x05\xf2" "\x5a\x26\x88\x96\x0d\x61\x55\xc3\x61\x3d\xcc\x31\xb6\xc3\x37\xa6\xdb" "\xfc\x6b\x12\xcf\xde\x1d\xb2\x2b\x93\xbb\xd5\xe4\x85\x34\xfb\x0b\xda" "\x8b\x21\x25\x77\xa1\x4d\xcf\x66\x5c\x83\x4b\x0b\xd2\x4e\x5f\x62\x4d" "\x24\x55\xfe\x04\x8d\xbe\x93\x03\x28\xd7\xcb\x63\x2d\xb3\xb0\xe2\x44" "\xbb\x5d\x43\x39\x0b\x42\x0b\x15\x15\x7a\x33\x94\x87\xfc\x78\x97\x6f" "\x86\x7d\x3a\x36\x1a\xaf\xdd\x3f\x50\xa9\x3c\x01\x88\x2d\xa7\xc2\x20" "\x08\x9a\x54\x43\x81\xdb\x22\xe2\xc8\x6b\x22\x8d\xc2\xbe\x01\x82\x04" "\x68\x46\x04\x37\x58\x89\x52\xa5\x49\xd3\x74\x98\xe5\x29\xe6\x2a\xa6" "\x2b\xad\x15\x80\x54\x6b\xcb\x1e\x9a\x6e\xd1\x87\x0b\x78\x38\xd0\x5d" "\x12\xf6\xe3\xa0\x41\xe7\x8b\x1b\xdb\x80\x89\x46\x26\xf2\x08\x89\xcc" "\xb3\xa4\x68\xaa\x4f\xb2\x4b\x9c\x87\xcb\xb2\x86\x23\xce\x59\xc6\xb3" "\xc6\x28\x6d\xb3\x66\xd0\x80\x04\x55\x1a\x25\xfe\x4d\x8d\x19\x4a\x2b" "\xb7\xc5\x2e\x1c\x85\xa5\xfb\xe4\xcb\x15\xb1\x71\x48\x9d\xa1\x21\xbe" "\xa1\xc4\x69\xa6\xbb\x18\x5d\x63\x21\x30\x84\xe3\xa8\x1e\xe5\x4d\xc0" "\x3a\x94\xdc\x5e\xcd\xda\x7b\xfa\xad\x1d\xf6\x80\x21\xaa\xf4\x62\x7c" "\x9d\x52\x9f\x13\xe5\xc8\x1b\x5e\xe4\xdd\x22\x89\x49\xca\x16\xb9\xa6" "\x1d\x18\x62\x11\xd1\x53\x29\x44\x70\x90\x75\x57\xe5\xe1\x4a\xe6\x65" "\x01\x3f\x28\x5f\xe4\xd3\x76\x6e\x7b\x3d\x8c\xe5\xe2\xa1\x46\x92\x07" "\x2d\x4d\x8f\x79\x35\x4b\xcc\x8d\xb8\xa2\xa3\x6c\x8b\xcd\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 8192); *(uint64_t*)0x200069c0 = 0; *(uint64_t*)0x200069c8 = 0; *(uint64_t*)0x200069d0 = 0; *(uint64_t*)0x200069d8 = 0; *(uint64_t*)0x200069e0 = 0; *(uint64_t*)0x200069e8 = 0; *(uint64_t*)0x200069f0 = 0; *(uint64_t*)0x200069f8 = 0; *(uint64_t*)0x20006a00 = 0; *(uint64_t*)0x20006a08 = 0; *(uint64_t*)0x20006a10 = 0; *(uint64_t*)0x20006a18 = 0x200066c0; *(uint32_t*)0x200066c0 = 0x90; *(uint32_t*)0x200066c4 = 0; *(uint64_t*)0x200066c8 = 0; *(uint64_t*)0x200066d0 = 9; *(uint64_t*)0x200066d8 = 0; *(uint64_t*)0x200066e0 = 0; *(uint64_t*)0x200066e8 = 0; *(uint32_t*)0x200066f0 = 0xff; *(uint32_t*)0x200066f4 = 0; *(uint64_t*)0x200066f8 = 0; *(uint64_t*)0x20006700 = 0; *(uint64_t*)0x20006708 = 0; *(uint64_t*)0x20006710 = 0; *(uint64_t*)0x20006718 = 0; *(uint64_t*)0x20006720 = 0; *(uint32_t*)0x20006728 = 0; *(uint32_t*)0x2000672c = 0; *(uint32_t*)0x20006730 = 0; *(uint32_t*)0x20006734 = 0x6000; *(uint32_t*)0x20006738 = 0; *(uint32_t*)0x2000673c = 0; *(uint32_t*)0x20006740 = 0; *(uint32_t*)0x20006744 = 0x183; *(uint32_t*)0x20006748 = 0; *(uint32_t*)0x2000674c = 0; *(uint64_t*)0x20006a20 = 0; *(uint64_t*)0x20006a28 = 0; *(uint64_t*)0x20006a30 = 0; *(uint64_t*)0x20006a38 = 0; syz_fuse_handle_req(r[0], 0x20000000, 0x2000, 0x200069c0); break; case 6: memcpy((void*)0x20002040, "./file0/file0\000", 14); syscall(__NR_openat, 0xffffff9c, 0x20002040ul, 0ul, 0ul); break; } } int main(void) { syscall(__NR_mmap, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); loop(); return 0; }
the_stack_data/88775.c
int main() { int I; I = 0; goto head; body: I = I + 1; #pragma sapfor analysis loop(implicit) #pragma sapfor analysis dependency(<I,4>) explicitaccess(<I,4>) head: if (I < 10) goto end; goto body; end: return 0; }
the_stack_data/237642431.c
int main(void) { int *p; return *p; }
the_stack_data/20451349.c
#ifdef CS333_P3 // A starting point for writing your own p3 test program(s). // Notes // 1. The parent never gets to the wait() call, so killing any child will cause that // child to move to zombie indefinitely. // 2. When running as a background process, the parent of the main process // will be init. This is how background processes work. Read sh.c for details. // 3. Useful test: run in background then kill a child. Child will be in zombie. Now // kill parent. Should get "zombie!" equal to the number of zombies. // ps or ^p should now show init as the parent of all child processes. // init will then reap the zombies. // 4. Can also be used to show that the RUNNABLE list is still round robin. #include "types.h" #include "user.h" #include "param.h" #include "pdx.h" int main(int argc, char *argv[]) { int rc, i = 0, childCount = 20; if (argc > 1) { childCount = atoi(argv[1]); } if (!childCount) { printf(1, "No children to create, so %s is exiting.\n", argv[0]); exit(); } printf(1, "Starting %d child processes that will run forever\n", childCount); do { rc = fork(); if (rc < 0) { printf(2, "Fork failed!\n"); exit(); } if (rc == 0) { // child process while(1) i++; // infinite exit(); // not reachable. } childCount--; } while(childCount); printf(1, "All child processes created\n"); sleep(5*TPS); printf(1, "\nDone sleeping\n"); kill(3); exit(); // not reachable } #endif // CS333_P3
the_stack_data/248580848.c
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<time.h> #include<sys/stat.h> #include<unistd.h> #include<sys/types.h> #include<limits.h> #include<dirent.h> #include<grp.h> #include<pwd.h> #include<errno.h> #include<stdlib.h> #define PARAM_NONE 0 #define PARAM_A 1 #define PARAM_L 2 #define PARAM_R 4 #define MAXROWLEN 80 char PATH[PATH_MAX+1]; //用于存储路径 int flag; int g_leave_len = MAXROWLEN; int g_maxlen; void my_err(const char* err_string,int line); void display_dir(char* path); void my_err(const char* err_string,int line) { fprintf(stderr,"line:%d",__LINE__); perror(err_string); exit(1); } void display_attribute(char* name) //-l参数时按照相应格式打印 { struct stat buf; char buff_time[32]; struct passwd* psd; //从该结构体接收文件所有者用户名 struct group* grp; //获取组名 if(lstat(name,&buf)==-1) { my_err("stat",__LINE__); } if(S_ISLNK(buf.st_mode)) printf("l"); else if(S_ISREG(buf.st_mode)) printf("-"); else if(S_ISDIR(buf.st_mode)) printf("d"); else if(S_ISCHR(buf.st_mode)) printf("c"); else if(S_ISBLK(buf.st_mode)) printf("b"); else if(S_ISFIFO(buf.st_mode)) printf("f"); else if(S_ISSOCK(buf.st_mode)) printf("s"); //获取打印文件所有者权限 if(buf.st_mode&S_IRUSR) printf("r"); else printf("-"); if(buf.st_mode&S_IWUSR) printf("w"); else printf("-"); if(buf.st_mode&S_IXUSR) printf("x"); else printf("-"); //所有组权限 if(buf.st_mode&S_IRGRP) printf("r"); else printf("-"); if(buf.st_mode&S_IWGRP) printf("w"); else printf("-"); if(buf.st_mode&S_IXGRP) printf("x"); else printf("-"); //其他人权限 if(buf.st_mode&S_IROTH) printf("r"); else printf("-"); if(buf.st_mode&S_IWOTH) printf("w"); else printf("-"); if(buf.st_mode&S_IXOTH) printf("x"); else printf("-"); printf(" "); //根据uid和gid获取文件所有者的用户名和组名 psd=getpwuid(buf.st_uid); grp=getgrgid(buf.st_gid); printf("%4d ",buf.st_nlink); //链接数 printf("%-8s ",psd->pw_name); printf("%-8s ",grp->gr_name); printf("%6d",buf.st_size); strcpy(buff_time,ctime(&buf.st_mtime)); buff_time[strlen(buff_time)-1]='\0'; //buff_time自带换行,因此要去掉后面的换行符 printf(" %s ",buff_time); //printf("%-s",buf.st_mode) //cprint(name,buf.st_mode); //printf("\n"); } void displayR_attribute(char* name) //当l和R都有时,先调用display_attribute打印,然后该函数负责递归 { struct stat buf; if(lstat(name,&buf)==-1) { my_err("stat",__LINE__); } if(S_ISDIR(buf.st_mode)) { display_dir(name); free(name); char* p=PATH; while(*++p); while(*--p!='/'); *p='\0'; //每次递归完成之后将原来的路径回退至递归前 chdir(".."); //跳转到当前目录的上一层目录 return; } } void display_single(char* name) //打印文件 { int len ; struct stat buf; if(lstat(name,&buf)==-1) { return; } if(g_leave_len<g_maxlen) { printf("\n"); g_leave_len=MAXROWLEN; } len=strlen(name); len=g_maxlen-len; printf("%-s",name); for(int i=0;i<len;i++) printf(" "); printf(" "); g_leave_len=g_leave_len-(g_maxlen+2); } void display_dir(char* path) //该函数用以对目录进行处理 { DIR* dir; //接受opendir返回的文件描述符 struct dirent* ptr; //接受readdir返回的结构体 int count=0; char path_dir[1000]; struct stat buf; if(chdir(path)<0) { my_err("chdir",__LINE__); } if(getcwd(path_dir,1000)<0) { my_err("getcwd",__LINE__); } printf("%s:\n",path_dir); /* if((flag&PARAM_R)!=0) { int len =strlen(PATH); if(len>0) { if(PATH[len-1]=='/') PATH[len-1]='\0'; } if(path[0]=='.'||path[0]=='/') { strcat(PATH,path); } else { strcat(PATH,"/"); strcat(PATH,path); } printf("%s:\n",PATH); } */ //获取文件数和最长文件名长度 dir = opendir(path_dir); if(dir==NULL) my_err("opendir",__LINE__); g_maxlen=0; while((ptr=readdir(dir))!=NULL) { if(g_maxlen<strlen(ptr->d_name)) g_maxlen=strlen(ptr->d_name); count++; } closedir(dir); char **filenames=(char**)malloc(count*(sizeof(char *))); memset(filenames,0,sizeof(char *)*count); //初始化 char **temp[PATH_MAX+1]; for(int i=0;i<count;i++) { filenames[i]=(char*)malloc((PATH_MAX+1)*sizeof(char)); memset(filenames[i],0,sizeof(char)*(PATH_MAX+1)); //初始化 } int i,j; //获取该目录下所有的文件名 dir=opendir(path); for(i=0;i<count;i++) { ptr=readdir(dir); if(ptr==NULL) { my_err("readdir",__LINE__); } strcpy(filenames[i],ptr->d_name); } //以文件名按照字典序排序 for(i=0;i<count-1;i++) { for(j=0;j<count-1-i;j++) { if(strcmp(filenames[j],filenames[j+1])>0) { strcpy(temp,filenames[j]); strcpy(filenames[j],filenames[j+1]); strcpy(filenames[j+1],temp); } } } for(i=0;i<count;i++) display(filenames,count); printf("\n"); if(flag>3) { if((flag&PARAM_R!=0)) { for(i=0;i<count;i++) { if(lstat(filenames[i],&buf)== -1) my_err("lstat",__LINE__); if(strcmp(filenames[i],".")==0) continue; if(strcmp(filenames[i],"..")==0) continue; if(S_ISDIR(buf.st_mode)) display_dir(filenames[i]); else continue; } chdir("../"); //处理完一个目录之后返回上一层 } // R l // R a // R a l } for(i=0;i<count;i++) free(filenames[i]); free(filenames); closedir(dir); } void display(char **name ,int count) //根据flag去调用不同的函数 { switch(flag) { int i; case PARAM_NONE: for(i=0;i<count;i++) { if(name[i][0]!='.') //排除.., .,以及隐藏文件 display_single(name[i]); } break; case PARAM_A: for(i=0;i<count;i++) { display_single(name[i]); } break; case PARAM_L: for(i=0;i<count;i++) { if(name[i][0]!='.') { display_attribute(name[i]); printf(" %-s\n",name[i]); } } break; case PARAM_R: for(i=0;i<count;i++) { if(name[i][0]!='.') { display_single(name[i]); } } for(i=0;i<count;i++) { display_dir(name[i]); } break; case PARAM_R+PARAM_L: for(i=0;i<count;i++) { if(name[i][0]!='.') { display_attribute(name[i]); printf("%-s",name[i]); } } for(i=0;i<count;i++) { if(name[i][0]!='.') { displayR_attribute(name[i]); } } break; case PARAM_A+PARAM_L: for(i=0;i<count;i++) { display_attribute(name[i]); printf("%-s\n",name[i]); } break; default: break; } } int main(int argc,char** argv) { int i,j,k=0,num=0; char param[32]=""; //param保存命令行参数 char *path[1]; //保存路径(指针数组) path[0]=(char*)malloc(sizeof(char)*(PATH_MAX+1)); flag=PARAM_NONE; struct stat buf; //命令行参数解析,将-后面的参数保存至param中 for(i=1;i<argc;i++) { if(argv[i][0]=='-') { for(j=1;j<strlen(argv[i]);j++) { param[k]=argv[i][j]; k++; } num++; } } param[k]='\0'; /* 判断参数 */ for(i=0;i<k;i++) { if(param[i]=='a') flag|=PARAM_A; else if(param[i]=='l') flag|=PARAM_L; else if(param[i]=='R') flag|=PARAM_R; else { printf("my_ls:invalid option -%c\n",param[i]); exit(0); } } //如果没有输入目标文件或目录,就显示当前目录 if(num+1==argc) { strcpy(path[0],"."); display_dir(path[0]); return 0; } i=1; do { if(argv[i][0]=='-') { i++; continue; } else { strcpy(path[0],argv[i]); //判断目录或文件是否存在 if(stat(argv[i],&buf)==-1) { my_err("stat",__LINE__); } if(S_ISDIR(buf.st_mode)) //判断是否为目录 { display_dir(path[0]); i++; } else { display(path,1); i++; } } }while(i<argc); printf("\n"); return 0; }
the_stack_data/175142436.c
#include <stdio.h> #include <stdlib.h> #include <getopt.h> // Program to find best sum of squares for all integers #define MAX_N 100 // max integer (squared) #define MAX_M MAX_N // max covering square #define MAX_DEPTH 10 struct global { long long int * SQ ; int n ; int m ; long long int nn ; long long int mm ; int depth ; int count ; int power ; } Global = { NULL, MAX_N, MAX_M, 0, 0, MAX_DEPTH, 0, 2 } ; long long int power( int value ) { int p ; long long int result = value ; for ( p=Global.power; p>1 ; --p ) { result *= value ; } return result ; } void SetupSQ( void ) { int i; Global.mm = power(Global.m); Global.nn = power(Global.n); Global.SQ = calloc( Global.mm, sizeof(Global.SQ[0]) ) ; if (Global.SQ==NULL) exit(1) ; for ( i=0 ; i<Global.mm ; ++i ) { Global.SQ[i] = power(i+1); if ( i < 10 ) printf("%d->%lld\n",i,Global.SQ[i]) ; } } int small_decomp( long long int N, int lim, int depth_left, long long int * loc ) { int i ; long long int d; //printf("\ndepth %d N %d ",depth_left,N); for (i=0 ; i<= lim ; ++i ) { d = N - Global.SQ[i] ; if (d<0) return -1 ; if ( depth_left == 0 ) { if ( d==0 ) { loc[0] = i+1 ; return 0 ; } } else { if ( d==0 ) return -1 ; loc[0] = i+1 ; if ( small_decomp( d, i, depth_left-1, loc+1 ) == 0 ) return 0 ; } } return -1 ; } int big_decomp( long long int N ) { int dp ; long long int components[Global.depth] ; for ( dp = 0 ; dp < Global.depth ; ++dp ) { //printf("\n Try Depth %d N=%d",dp,N); if ( small_decomp( N, Global.mm-1, dp, components ) == 0 ) { if ( Global.count == 0 ) { int j ; for (j=0;j<=dp;++j) printf(",%8lld",components[j]) ; printf("\n") ; } else { printf( ",%8d\n",dp+1); } return 0 ; } } if ( Global.count == 0 ) { printf("\tGreater than %d components\n",Global.depth ) ; } else { printf( ", >%7d\n",Global.depth) ; } return -1 ; } void usage( char * prog ) { printf( "Sum-of-squares decomposition: Find the minimum number of integer squares thqt sum to a given number\n"); printf( "\t{c} 2018 Paul H Alfille see github.com\n" ); printf( "Usage %s number\n",prog); printf( "\tlook for sums up to <number> squared (default 100)\n"); printf( "\t-m --max max_number used for squares\n"); printf( "\t-d --depth max number of squares summed (default 10)\n"); printf( "\t-3 --cube look for cubed number sums\n" ); printf( "\t-4 --fourth power sums\n"); printf( "\t-5 --fifth power sums\n"); printf( "\t-6 --sixth power sums\n"); printf( "\t-p --power up to 10th\n"); printf( "\t-c --count number of terms rather than list them\n"); printf( "\t-h --help this summary\n") ; exit(0) ; } void commandline( int argc, char * argv[] ) { // options int opt ; int long_index = 0 ; // dummy static struct option long_opts[] = { { "max", required_argument, 0, 'm' }, { "depth", required_argument, 0, 'd' } , { "cube", no_argument, 0, '3' } , { "fourth", no_argument, 0, '4' } , { "fifth", no_argument, 0, '5' } , { "sixth", no_argument, 0, '6' } , { "count", no_argument, 0, 'c' } , { "power", required_argument, 0, 'p' } , { "help", no_argument, 0, 'h' } , { 0, 0, 0, 0, }, } ; while ( (opt=getopt_long(argc, argv, "m:d:p:3456ch", long_opts, &long_index)) != -1){ switch (opt) { case 'm': if ( optarg != NULL ) { Global.m = atoi(optarg) ; } else { fprintf(stderr,"Option %c needs a following value -- ignoring\n",opt); } break ; case 'd': if ( optarg != NULL ) { Global.depth = atoi(optarg) ; } else { fprintf(stderr,"Option %c needs a following value -- ignoring\n",opt); } break ; case 'p': if ( optarg != NULL ) { Global.power = atoi(optarg) ; if (Global.power > 10) { fprintf(stderr,"Power too large %d > 10\n",Global.power) ; exit(1) ; } else if ( Global.power < 1 ) { fprintf(stderr,"Power too small %d < 1\n",Global.power) ; exit(1) ; } } else { fprintf(stderr,"Option %c needs a following value -- ignoring\n",opt); } break ; case '3': Global.power = 3 ; break ; case '4': Global.power = 4 ; break ; case '5': Global.power = 4 ; break ; case '6': Global.power = 4 ; break ; case '?': case 'h': usage(argv[0]); exit(0); case 'c': Global.count = 1 ; break ; default: usage(argv[0]) ; exit(1); } } if ( optind < argc ) { Global.n = atoi( argv[optind] ) ; } } int main( int argc, char * argv[] ) { int i; commandline( argc, argv ) ; SetupSQ() ; for (i=1;i<Global.nn;++i) { printf("%8d",i); big_decomp( i ) ; } return 0 ; }
the_stack_data/853390.c
/* Recursion 4 : Sum of digits */ #include <stdio.h> int computeSum(int n); int main(){ int n; printf("Enter the value of n\n"); scanf("%d",&n); printf("The sum of digits in %d is %d",n,computeSum(n)); return 0; } int computeSum(int n){ if(n==0) return 0; else return (n%10)+computeSum(n/10); }
the_stack_data/740432.c
#include <stdio.h> #include <string.h> int main(void) { char dest[6]; char str[] = "hello"; printf("%s", strcpy(dest, str)); return 0; }
the_stack_data/45450432.c
#include <stdio.h> #include <stdlib.h> #define INPUT_FILENAME "mergesort_input.csv" #define OUTPUT_FILENAME "mergesort_output.csv" // Dynamic array typedef struct { int *array; size_t used; // Length of the array size_t size; } Array; void init_array(Array *arr, size_t initial_size) { arr->array = malloc(initial_size * sizeof(int)); arr->used = 0; arr->size = initial_size; } void append_to_array(Array *arr, int element) { // arr->used is the number of used entries, because arr->array[arr->used++] updates arr->used only *after* the array has been accessed. // Therefore arr->used can go up to arr->size if (arr->used == arr->size) { arr->size *= 2; arr->array = realloc(arr->array, arr->size * sizeof(int)); } arr->array[arr->used++] = element; } void free_array(Array *arr) { free(arr->array); arr->array = NULL; arr->used = arr->size = 0; } // Function to merge two subarrays after sorting them void merge(int arr[], int left_idx, int mid_idx, int right_idx) { int i, j, k; int a = mid_idx - left_idx + 1; // Size of the first subarray int b = right_idx - mid_idx; // Size of the second subarray // Temporary arrays to store the two subarrays int arr1[a], arr2[b]; // Copy data to temp arrays arr1 and arr2 for (i = 0; i < a; i++) { arr1[i] = arr[left_idx + i]; } for (j = 0; j < b; j++) { arr2[j] = arr[mid_idx + 1 + j]; } i = 0; // Initial index of first subarray j = 0; // Initial index of second subarray k = left_idx; // Initial index of merged subarray // Compare the two subarrays and merge them while (i < a && j < b) { if (arr1[i] <= arr2[j]) { arr[k] = arr1[i]; i++; } else { arr[k] = arr2[j]; j++; } k++; } // Copy the remaining elements of arr1, if there are any (only one element is left) while (i < a) { arr[k] = arr1[i]; i++; k++; } // Copy the remaining elements of arr2, if there are any (only one element is left) while (j < b) { arr[k] = arr2[j]; j++; k++; } } void sort(int arr[], int left_idx, int right_idx) { // Recursive call until only one element is left in the array if (left_idx < right_idx) { // To handle overflow, mid-point is calculated this way int mid_idx = left_idx + (right_idx - left_idx) / 2; // Divide the array passed into two halves and sort them sort(arr, left_idx, mid_idx); sort(arr, mid_idx + 1, right_idx); // Merge the two sorted halves merge(arr, left_idx, mid_idx, right_idx); } } int main() { FILE *fp_input = fopen(INPUT_FILENAME, "rb"); FILE *fp_output = fopen(OUTPUT_FILENAME, "wb"); if (fp_input == NULL) { printf("%s can't be accessed", INPUT_FILENAME); exit(1); } if (fp_output == NULL) { printf("%s can't be accessed", OUTPUT_FILENAME); exit(1); } Array arr; init_array(&arr, 25); // Initially, each line is assumed to have 25 numbers int num = 0; char ch; while (1) { ch = fgetc(fp_input); if (ch == EOF) { break; } else if (ch >= '0' && ch <= '9') { // Conversion of string integer to the corresponding integer num = num * 10 + ch - '0'; } else if (ch == '\n') { // End of individual line of numbers // Sort the array of numbers and append to the output file them in csv format sort(arr.array, 0, arr.used - 1); for (int i = 0; i < arr.used; i++) { if (i == arr.used - 1) { // Last element of the array fprintf(fp_output, "%d\n", arr.array[i]); } else { fprintf(fp_output, "%d,", arr.array[i]); } } free_array(&arr); init_array(&arr, 25); // Initially, each line is assumed to have 25 numbers num = 0; } else { // Comma append_to_array(&arr, num); // Automatically resizes if necessary num = 0; } } fclose(fp_input); fclose(fp_output); return 0; }
the_stack_data/1153404.c
/** ****************************************************************************** * @file stm32g0xx_ll_crs.h * @author MCD Application Team * @brief CRS LL module driver. ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) 2019 STMicroelectronics. * All rights reserved.</center></h2> * * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ #if defined(USE_FULL_LL_DRIVER) /* Includes ------------------------------------------------------------------*/ #include "stm32g0xx_ll_crs.h" #include "stm32g0xx_ll_bus.h" /** @addtogroup STM32G0xx_LL_Driver * @{ */ #if defined(CRS) /** @defgroup CRS_LL CRS * @{ */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /* Private macros ------------------------------------------------------------*/ /* Private function prototypes -----------------------------------------------*/ /* Exported functions --------------------------------------------------------*/ /** @addtogroup CRS_LL_Exported_Functions * @{ */ /** @addtogroup CRS_LL_EF_Init * @{ */ /** * @brief De-Initializes CRS peripheral registers to their default reset values. * @retval An ErrorStatus enumeration value: * - SUCCESS: CRS registers are de-initialized * - ERROR: not applicable */ ErrorStatus LL_CRS_DeInit(void) { LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_CRS); LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_CRS); return SUCCESS; } /** * @} */ /** * @} */ /** * @} */ #endif /* defined(CRS) */ /** * @} */ #endif /* USE_FULL_LL_DRIVER */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
the_stack_data/444642.c
#include <stdio.h> #include <string.h> #include <stdlib.h> char str[1000000]; int wcount(char *s) { long long key = 1, sum =0; for (unsigned int i = 0; i < strlen(s); i++) if (s[i] == ' ') key = 1; else if (key && s[i] != ' ') { sum++; key = 0; } return sum; } int main() { long n; gets(str); n = wcount(str); printf("%ld", n); }
the_stack_data/1174342.c
/* Write a program that reads a text file and prints on the console its odd lines. */ #include <stdio.h> #include <stdlib.h> #include <errno.h> void error(const char *msg); ssize_t read_line(char **bufferPtr, size_t *bufSize, FILE *stream); int main() { char *fileName = "oddLines.txt"; FILE *srcFile = fopen(fileName, "r"); if (!srcFile) { error(fileName); } char *buffer = NULL; size_t size = 0; int lineNumber = 1; while (!feof(srcFile)) { lineNumber %= 2; read_line(&buffer, &size, srcFile); if (lineNumber != 0) { printf("%s\n", buffer); } lineNumber++; } free(buffer); fclose(srcFile); return (EXIT_SUCCESS); } void error(const char *msg) { if (errno) { perror(msg); } else { fprintf(stderr, "ERROR: %s", msg); } exit(1); } ssize_t read_line(char **bufferPtr, size_t *bufSize, FILE *stream) { char *buffer = *bufferPtr; size_t size = *bufSize; if (buffer == NULL) { buffer = malloc(64); size = 64; if (!buffer) return 0; } size_t i = 0; char c = fgetc(stream); while (!feof(stream)) { if (i == size - 1) { char *resized = realloc(buffer, 2 * size); if (!resized) { return 0; } buffer = resized; size *= 2; } if (c == '\n') { buffer[i] = '\0'; *bufferPtr = buffer; *bufSize = size; return i; } buffer[i] = c; i++; c = fgetc(stream); } buffer[i] = '\0'; *bufferPtr = buffer; *bufSize = size; return -1; }
the_stack_data/876985.c
#include <stdio.h> #include <stdlib.h> #define CL_USE_DEPRECATED_OPENCL_2_0_APIS #define CL_SILENCE_DEPRECATION #ifdef __APPLE__ #include <OpenCL/opencl.h> #else #include <CL/cl.h> #endif // Use a static data size for simplicity #define DATA_SIZE (20*1024*1024) // Simple compute kernel that computes the square of an input array const char *KernelSource = "\n" \ "__kernel void square( \n" \ " __global float* input, \n" \ " __global float* output, \n" \ " const unsigned int count) \n" \ "{ \n" \ " int i = get_global_id(0); \n" \ " if(i < count) \n" \ " output[i] = input[i] * input[i]; \n" \ "} \n" \ "\n"; //////////////////////////////////////////////////////////////////////////////// int main(int argc, char** argv) { int err; // error code returned from api calls float* data; // original data set given to device float* results; // results returned from device unsigned int correct; // number of correct results returned size_t global; // global domain size for our calculation size_t local; // local domain size for our calculation cl_platform_id platform_id; // compute platform id cl_device_id device_id; // compute device id cl_context context; // compute context cl_command_queue commands; // compute command queue cl_program program; // compute program cl_kernel kernel; // compute kernel cl_mem input; // device memory used for the input array cl_mem output; // device memory used for the output array // Allocate chunks on host data = malloc(DATA_SIZE*sizeof(float)); results = malloc(DATA_SIZE*sizeof(float)); if (data == NULL || results == NULL) { printf("Error: Failed to allocate input/output buffers on host!\n"); return EXIT_FAILURE; } // Fill our data set with random float values // int i = 0; unsigned int count = DATA_SIZE; for(i = 0; i < count; i++) data[i] = rand() / (float)RAND_MAX; // Connect to a platform err = clGetPlatformIDs(1, &platform_id, NULL); if (err != CL_SUCCESS) { printf("Error: no OpenCL platform available!\n"); return EXIT_FAILURE; } // Connect to a compute device // try to connect to a GPU err = clGetDeviceIDs(platform_id, CL_DEVICE_TYPE_GPU, 1, &device_id, NULL); if (err != CL_SUCCESS) { // if no GPU is available, use CPU err = clGetDeviceIDs(platform_id, CL_DEVICE_TYPE_CPU, 1, &device_id, NULL); if (err != CL_SUCCESS) { printf("Error: no device available!\n"); return EXIT_FAILURE; } } // Create a compute context // context = clCreateContext(0, 1, &device_id, NULL, NULL, &err); if (!context) { printf("Error: Failed to create a compute context!\n"); return EXIT_FAILURE; } // Create a command commands // commands = clCreateCommandQueue(context, device_id, 0, &err); if (!commands) { printf("Error: Failed to create a command commands!\n"); return EXIT_FAILURE; } // Create the compute program from the source buffer // program = clCreateProgramWithSource( context, 1, (const char **) & KernelSource, NULL, &err); if (!program) { printf("Error: Failed to create compute program!\n"); return EXIT_FAILURE; } // Build the program executable // err = clBuildProgram(program, 0, NULL, NULL, NULL, NULL); if (err != CL_SUCCESS) { size_t len; char buffer[2048]; printf("Error: Failed to build program executable!\n"); clGetProgramBuildInfo(program, device_id, CL_PROGRAM_BUILD_LOG, sizeof(buffer), buffer, &len); printf("%s\n", buffer); return EXIT_FAILURE; } // Create the compute kernel in the program we wish to run // kernel = clCreateKernel(program, "square", &err); if (!kernel || err != CL_SUCCESS) { printf("Error: Failed to create compute kernel!\n"); return EXIT_FAILURE; } // Create the input and output arrays in device memory for our calculation // input = clCreateBuffer(context, CL_MEM_READ_ONLY, sizeof(float) * count, NULL, NULL); output = clCreateBuffer(context, CL_MEM_WRITE_ONLY, sizeof(float) * count, NULL, NULL); if (!input || !output) { printf("Error: Failed to allocate device memory!\n"); return EXIT_FAILURE; } // Write our data set into the input array in device memory // err = clEnqueueWriteBuffer(commands, input, CL_TRUE, 0, sizeof(float) * count, data, 0, NULL, NULL); if (err != CL_SUCCESS) { printf("Error: Failed to write to source array!\n"); return EXIT_FAILURE; } // Set the arguments to our compute kernel // err = 0; err = clSetKernelArg(kernel, 0, sizeof(cl_mem), &input); err |= clSetKernelArg(kernel, 1, sizeof(cl_mem), &output); err |= clSetKernelArg(kernel, 2, sizeof(unsigned int), &count); if (err != CL_SUCCESS) { printf("Error: Failed to set kernel arguments! %d\n", err); return EXIT_FAILURE; } // Get the maximum work group size for executing the kernel on the device // err = clGetKernelWorkGroupInfo(kernel, device_id, CL_KERNEL_WORK_GROUP_SIZE, sizeof(local), &local, NULL); if (err != CL_SUCCESS) { printf("Error: Failed to retrieve kernel work group info! %d\n", err); return EXIT_FAILURE; } printf("-- local size = %lu items\n", local); // Execute the kernel over the entire range of our 1d input data set // using the maximum number of work group items for this device // global = ((count+local-1)/local)*local; err = clEnqueueNDRangeKernel(commands, kernel, 1, NULL, &global, &local, 0, NULL, NULL); if (err != CL_SUCCESS) { printf("Error: Failed to execute kernel!\n"); return EXIT_FAILURE; } // Wait for the command commands to get serviced before reading back results // clFinish(commands); // Read back the results from the device to verify the output // err = clEnqueueReadBuffer( commands, output, CL_TRUE, 0, sizeof(float) * count, results, 0, NULL, NULL ); if (err != CL_SUCCESS) { printf("Error: Failed to read output array! %d\n", err); return EXIT_FAILURE; } // Validate our results // correct = 0; for (i = 0; i < count; i++) if(results[i] == data[i] * data[i]) correct++; // Print a brief summary detailing the results // printf("Computed '%d/%d' correct values!\n", correct, count); // Shutdown and cleanup // clReleaseMemObject(input); clReleaseMemObject(output); clReleaseProgram(program); clReleaseKernel(kernel); clReleaseCommandQueue(commands); clReleaseContext(context); free(data); free(results); // Sayonara... return 0; }
the_stack_data/742961.c
/* */ #include <memory.h> int main(void){return 0;}
the_stack_data/25264.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #define INIT_BLOCK 43 #define SAMPLING_RATE 44100 int main() { FILE *fp = NULL; FILE *fp1 = NULL; FILE *fp2 = NULL; long int i = 0; void* buf; void* buf2; int t; int t1 = 8820; double g = 0.707; double order = 3; double* buft; double* buftt; fp = fopen("data.wav", "r"); if(fp == NULL) { printf("FILE COULD NOT BE READ\n"); exit(-1); } fp1 = fopen("Newdata.wav", "w"); if(fp1 == NULL) { printf("FILE COULD NOT BE OPENED\n"); exit(-1); } fp2 = fopen("rev.txt", "w"); if(fp2 == NULL) { printf("FILE COULD NOT BE OPENED\n"); exit(-1); } printf("PLEASE SET TIME OF SAMPLING : "); scanf("%d", &t); t = 2*t; getchar(); buf = malloc(INIT_BLOCK*sizeof(short)); buf2 = malloc(t*SAMPLING_RATE*(sizeof(short))); buft = malloc(t*SAMPLING_RATE*(sizeof(double))); buftt = malloc(t*SAMPLING_RATE*(sizeof(double))); //============= Reading from file part ===================// i = 0; while(i<(INIT_BLOCK-1)) { i = i + fread(buf+i*sizeof(short), sizeof(short), INIT_BLOCK-i, fp); printf("%ld\n",i); } i = 0; while(i<(t*SAMPLING_RATE-1)) { i = i + fread(buf2+i*sizeof(short), sizeof(short), t*SAMPLING_RATE-i, fp); printf("%ld\n",i); } //=======================================================// i=0; while(i<(t*SAMPLING_RATE-1)) { *(buft+i) = 0.05*(double)*(short*)(buf2+i*sizeof(short)); i++; } for(i = (order*t1); i<t*SAMPLING_RATE; i++) { *(buftt+i) = ( -g*( *(buft+i) ) + (1.0-g*g)*( *(buft+(i-t1)) + g*( *(buft+(i-2*t1))) + g*g*( *(buft+(i-3*t1)))) ); } t1 = (int)((double)t1*0.33); for(i = (order*t1); i<t*SAMPLING_RATE; i++) { *(buft+i) = ( -g*( *(buftt+i) ) + (1.0-g*g)*( *(buftt+(i-t1)) + g*( *(buftt+(i-2*t1))) + g*g*( *(buftt+(i-3*t1)))) ); } t1 = (int)((double)t1*0.31); for(i = (order*t1); i<t*SAMPLING_RATE; i++) { *(buftt+i) = ( -g*( *(buft+i) ) + (1.0-g*g)*( *(buft+(i-t1)) + g*( *(buft+(i-2*t1))) + g*g*( *(buft+(i-3*t1)))) ); } t1 = (int)((double)t1*0.34); for(i = (order*t1); i<t*SAMPLING_RATE; i++) { *(buft+i) = ( -g*( *(buftt+i) ) + (1.0-g*g)*( *(buftt+(i-t1)) + g*( *(buftt+(i-2*t1))) + g*g*( *(buftt+(i-3*t1)))) ); } t1 = (int)((double)t1*0.36); for(i = (order*t1); i<t*SAMPLING_RATE; i++) { *(buftt+i) = ( -g*( *(buft+i) ) + (1.0-g*g)*( *(buft+(i-t1)) + g*( *(buft+(i-2*t1))) + g*g*( *(buft+(i-3*t1)))) ); } t1 = (int)((double)t1*0.34); for(i = (order*t1); i<t*SAMPLING_RATE; i++) { *(buft+i) = ( -g*( *(buftt+i) ) + (1.0-g*g)*( *(buftt+(i-t1)) + g*( *(buftt+(i-2*t1))) + g*g*( *(buftt+(i-3*t1)))) ); } t1 = (int)((double)t1*0.32); for(i = (order*t1); i<t*SAMPLING_RATE; i++) { *(buftt+i) = ( -g*( *(buft+i) ) + (1.0-g*g)*( *(buft+(i-t1)) + g*( *(buft+(i-2*t1))) + g*g*( *(buft+(i-3*t1)))) ); } i = 0; while(i<(t*SAMPLING_RATE-1)) { *(buftt+i) = *(buftt+i)*22.0; fprintf(fp2, "%lf\n", *(buftt+i)); *(short*)(buf2+i*sizeof(short)) = (short)(*(buftt+i)); i++; } free(buft); free(buftt); //========== Writing to file part =======================// i = 0; while(i<INIT_BLOCK-1) i = i + fwrite(buf+i*sizeof(short), sizeof(short), INIT_BLOCK-i, fp1); i = 0; while(i<(t*SAMPLING_RATE-1)) i = i + fwrite(buf2+i*sizeof(short), sizeof(short), t*SAMPLING_RATE-i, fp1); //=======================================================// free(buf); free(buf2); fclose(fp); fclose(fp1); fclose(fp2); return 0; }
the_stack_data/181394568.c
#include <string.h> #include <stdlib.h> #include <locale.h> /* * Implementations of the various locale-specific string conversion routines. Currently, these * just punt on through to the non-locale aware implementations. * * TODO: implement correctly */
the_stack_data/150141602.c
#include <stdio.h> #define SIZE 20 /* ES1. Scrivere un programma in C che acquisisce 20 numeri interi salvandoli in una array a1. Il programma copia il contenuto di a1 in un secondo array a2 mettendo prima i numeri pari e poi quelli dispari. Infine il programma visualizza il risultato. */ int main() { int a1[SIZE], a2[SIZE], i, l; for (i = 0; i < SIZE; i++) scanf("%d", &a1[i]); l = 0; for (i = 0; i < SIZE; i++) { if ((a1[i] % 2) == 0) { a2[l] = a1[i]; l++; } } for (i = 0; i < SIZE; i++) { if (a1[i] % 2) { a2[l] = a1[i]; l++; } } for (i = 0; i < l; i++) printf("%d ", a2[i]); printf("\n"); return 0; }
the_stack_data/132953228.c
// RUN: %clang %s -emit-llvm %O0opt -c -o %t2.bc // RUN: rm -rf %t.klee-out // RUN: %klee --output-dir=%t.klee-out --posix-runtime --exit-on-error %t2.bc --sym-files 1 10 #include <assert.h> #include <fcntl.h> int main(int argc, char **argv) { int fd = open("A", O_RDWR|O_TRUNC); if (fd == -1) klee_silent_exit(0); assert(fd == 3); assert((fcntl(fd, F_GETFD) & FD_CLOEXEC) == 0); assert(fcntl(fd, F_SETFD, FD_CLOEXEC, 1) == 0); assert((fcntl(fd, F_GETFD) & FD_CLOEXEC) != 0); return 0; }
the_stack_data/133511.c
// REQUIRES: x86-registered-target // REQUIRES: aarch64-registered-target // RUN: %clang -target i386-apple-darwin10 -mappletvsimulator-version-min=9.0 -arch x86_64 -S -o - %s | FileCheck %s // RUN: %clang -target armv7s-apple-darwin10 -mappletvos-version-min=9.0 -arch arm64 -S -o - %s | FileCheck %s // RUN: env TVOS_DEPLOYMENT_TARGET=9.0 %clang -isysroot SDKs/MacOSX10.9.sdk -target i386-apple-darwin10 -arch x86_64 -S -o - %s | FileCheck %s int main() { return 0; } // CHECK: .tvos_version_min 9, 0
the_stack_data/114257.c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* sort_int_tab.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: exam <[email protected]> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2018/08/03 19:36:16 by exam #+# #+# */ /* Updated: 2018/08/03 19:45:21 by exam ### ########.fr */ /* */ /* ************************************************************************** */ void sort_int_tab(int *tab, unsigned int size) { unsigned int i; unsigned int j; int temp; i = 0; while (i < size) { j = i + 1; while (j < size) { if (tab[i] > tab[j]) { temp = tab[i]; tab[i] = tab[j]; tab[j] = temp; } j++; } i++; } }
the_stack_data/156392960.c
#include <stdio.h> #include <stdlib.h> #include <math.h> static FILE *in, *out; static long do_file(char *, char *, long noRecords); main(int argc, char *argv[]) { int noRecords; if(argc != 3) exit(EXIT_FAILURE); noRecords = do_file(argv[1], argv[2], 0L); if(noRecords < 1) exit(EXIT_FAILURE); do_file(argv[1], argv[2], noRecords); exit(EXIT_SUCCESS); } static void out_c(char *); static void out_4(long); static void out_2(short); static long do_file(char *in_file, char *out_file, long noRecords) { long unix_time; long tension; float x_acc, y_acc, z_acc, total_acc; char human_time[30]; long tick; long noLines = 0; in = fopen(in_file, "r"); out = fopen(out_file, "wb"); if(!in || !out) exit(EXIT_FAILURE); while(1==1) { int n, tmp; int ch = fgetc(in); /* Peek at 1st char of line */ if(ch == EOF) break; if(ch != '1') /* Skip non-data lines */ { while(ch != '\n') { ch = fgetc(in); if(ch == EOF) break; /* Handle incomplete line */ } continue; /* Process next record */ } ungetc(ch, in); /* Put the 1st char back */ n = fscanf(in, "%ld %ld %f %f %f %f\n", &unix_time, &tension, &x_acc, &y_acc, &z_acc, &total_acc); if(n != 6) /* Number of fields is bad */ continue; noLines += 1; /* Good line. Count it. */ if(noRecords != 0) /* Process it */ { if(noLines == 1) { out_c("RIFF"); out_4(44 + (4 * noRecords)); out_c("WAVE"); out_c("fmt "); out_4(16); out_2(1); out_2(2); out_4(64); out_4(256); out_2(4); out_2(16); out_c("data"); out_4(4 * noRecords); } out_2(tension / 100); out_2((short)(total_acc * 1000.0)); if(1==0) printf("%ld %ld %f %f %f %f\n", unix_time, tension, x_acc, y_acc, z_acc, total_acc); } } fclose(in); return noLines; } static void out_c(char *p) { fputc(*p++, out); fputc(*p++, out); fputc(*p++, out); fputc(*p++, out); } static void out_4(long i) { fputc((i >> 0) & 0xff, out); fputc((i >> 8) & 0xff, out); fputc((i >> 16) & 0xff, out); fputc((i >> 24) & 0xff, out); } static void out_2(short i) { fputc((i >> 0) & 0xff, out); fputc((i >> 8) & 0xff, out); }
the_stack_data/59512149.c
#include <stdio.h> #include <stdlib.h> #include <sys/socket.h> #include <sys/un.h> #include <unistd.h> #include <netinet/in.h> #include <arpa/inet.h> #include <string.h> #include <sys/ipc.h> #include <sys/msg.h> #include <sys/types.h> #include <signal.h> #define MAX 1024 #define port 8080 struct msg_buf { long mtype; char mtext[100]; }; /*Global variables for signal actuation*/ int WAIT_CHOOSE = 0; int WAIT_PUT = 0; void handler_USR1(int sifid, siginfo_t *info, void *context) { WAIT_CHOOSE = 1; } void handler_USR2(int sifid, siginfo_t *info, void *context) { WAIT_PUT = 1; } int main() { /*HAndling SIGUSR1*/ struct sigaction act={0}; act.sa_flags = SA_SIGINFO; act.sa_sigaction = &handler_USR1; sigaction(SIGUSR1,&act,NULL); /*Handling SIGUSR2*/ struct sigaction action={0}; action.sa_flags = SA_SIGINFO; action.sa_sigaction = &handler_USR2; sigaction(SIGUSR2,&action,NULL); /*Init of Message Queue*/ key_t key = ftok("./queue",0); int msqid = msgget(key, IPC_CREAT|0666); struct msg_buf message; while(WAIT_CHOOSE == 0 && WAIT_PUT == 0) {} /*PID retrieval*/ int fd = fileno(popen("pidof ./anchor", "r")); char s[1024]; read(fd,&s,1024); close(fd); pid_t pid_anchor = atoi(s); pid_t pid_judge[2]; fd = fileno(popen("pidof ./judge3", "r")); read(fd,&s,1024); pid_judge[1] = atoi(s); fd = fileno(popen("pidof ./judge2", "r")); read(fd,&s,1024); pid_judge[1] = atoi(s); if(WAIT_CHOOSE > 0) { for(int i=0; i<3;i++) { message.mtype = getpid(); sprintf(message.mtext, "random_question\n"); msgsnd(msqid,&message,sizeof(message.mtext),0); } message.mtype = getpid(); sprintf(message.mtext, "done"); msgsnd(msqid,&message,sizeof(message.mtext),0); kill(pid_judge[0],SIGUSR2); kill(pid_judge[1],SIGUSR2); } message.mtype = getpid(); sprintf(message.mtext, "%d", 15); msgsnd(msqid,&message,sizeof(message.mtext),0); kill(pid_anchor, SIGUSR2); }
the_stack_data/132699.c
/* ======================================================================== * Copyright 1988-2008 University of Washington * * 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 * * ======================================================================== */ /* * Program: Standalone Mailbox Lock program * * Author: Mark Crispin * * Date: 8 February 1999 * Last Edited: 3 March 2008 */ #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <sysexits.h> #include <syslog.h> #include <grp.h> #include <unistd.h> #include <sys/types.h> #include <sys/file.h> #include <sys/stat.h> #include <sys/param.h> #include <stdlib.h> #include <netdb.h> #include <ctype.h> #include <string.h> #include <time.h> #define LOCKTIMEOUT 5 /* lock timeout in minutes */ #define LOCKPROTECTION 0664 #ifndef MAXHOSTNAMELEN /* Solaris still sucks */ #define MAXHOSTNAMELEN 256 #endif /* Fatal error * Accepts: Message string * exit code * Returns: code */ int die(char *msg, int code) { syslog(LOG_NOTICE, "(%u) %s", code, msg); write(1, "?", 1); /* indicate "impossible" failure */ return code; } int main(int argc, char *argv[]) { int ld, i; int tries = LOCKTIMEOUT * 60 - 1; char *s, *dir, *file, *lock, *hitch, tmp[1024]; size_t dlen, len; struct stat sb, fsb; struct group *grp = getgrnam("mail"); /* get syslog */ openlog(argv[0], LOG_PID, LOG_MAIL); if (!grp || (grp->gr_gid != getegid())) return die("not setgid mail", EX_USAGE); if (argc != 3) return die("invalid arguments", EX_USAGE); for (s = argv[1]; *s; s++) if (!isdigit(*s)) return die("invalid fd", EX_USAGE); /* find directory */ if ((*argv[2] != '/') || !(file = strrchr(argv[2], '/')) || !file[1]) return die("invalid path", EX_USAGE); /* calculate lengths of directory and file */ if (!(dlen = file - argv[2])) dlen = 1; len = strlen(++file); /* make buffers */ dir = (char *)malloc(dlen + 1); lock = (char *)malloc(len + 6); hitch = (char *)malloc(len + 6 + 40 + MAXHOSTNAMELEN); if (!dir || !lock || !hitch) return die("malloc failure", errno); strncpy(dir, argv[2], dlen); /* connect to desired directory */ dir[dlen] = '\0'; printf("dir=%s, file=%s\n", dir, file); chdir(dir); /* get device/inode of file descriptor */ if (fstat(atoi(argv[1]), &fsb)) return die("fstat failure", errno); /* better be a regular file */ if ((fsb.st_mode & S_IFMT) != S_IFREG) return die("fd not regular file", EX_USAGE); /* now get device/inode of file */ if (lstat(file, &sb)) return die("lstat failure", errno); /* does it match? */ if ((sb.st_mode & S_IFMT) != S_IFREG) return die("name not regular file", EX_USAGE); if ((sb.st_dev != fsb.st_dev) || (sb.st_ino != fsb.st_ino)) return die("fd and name different", EX_USAGE); /* build lock filename */ sprintf(lock, "%s.lock", file); if (!lstat(lock, &sb) && ((sb.st_mode & S_IFMT) != S_IFREG)) return die("existing lock not regular file", EX_NOPERM); do { /* until OK or out of tries */ if (!stat(lock, &sb) && (time(0) > (sb.st_ctime + LOCKTIMEOUT * 60))) unlink(lock); /* time out lock if enough time has passed */ /* build hitching post file name */ sprintf(hitch, "%s.%lu.%lu.", lock, (unsigned long)time(0), (unsigned long)getpid()); len = strlen(hitch); /* append local host name */ gethostname(hitch + len, MAXHOSTNAMELEN); /* try to get hitching-post file */ if ((ld = open(hitch, O_WRONLY | O_CREAT | O_EXCL, LOCKPROTECTION)) >= 0) { /* make sure others can break the lock */ chmod(hitch, LOCKPROTECTION); /* get device/inode of hitch file */ if (fstat(ld, &fsb)) return die("hitch fstat failure", errno); close(ld); /* close the hitching-post */ /* Note: link() may return an error even if it actually succeeded. So we * always check for success via the link count, and ignore the error if * the link count is right. */ /* tie hitching-post to lock */ i = link(hitch, lock) ? errno : 0; /* success if link count now 2 */ if (stat(hitch, &sb) || (sb.st_nlink != 2) || (fsb.st_dev != sb.st_dev) || (fsb.st_ino != sb.st_ino)) { ld = -1; /* failed to hitch */ if (i == EPERM) { /* was it because links not allowed? */ /* Probably a FAT filesystem on Linux. It can't be NFS, so try * creating the lock file directly. */ if ((ld = open(lock, O_WRONLY | O_CREAT | O_EXCL, LOCKPROTECTION)) >= 0) { /* get device/inode of lock file */ if (fstat(ld, &fsb)) return die("lock fstat failure", errno); close(ld); /* close the file */ } /* give up immediately if protection failure */ else if (errno != EEXIST) tries = 0; } } unlink(hitch); /* flush hitching post */ } /* give up immediately if protection failure */ else if (errno == EACCES) tries = 0; if (ld < 0) { /* lock failed */ if (tries--) sleep(1); /* sleep 1 second and try again */ else { write(1, "-", 1); /* hard failure */ return EX_CANTCREAT; } } } while (ld < 0); write(1, "+", 1); /* indicate that all is well */ read(0, tmp, 1); /* read continue signal from parent */ /* flush the lock file */ if (!stat(lock, &sb) && (fsb.st_dev == sb.st_dev) && (fsb.st_ino == sb.st_ino)) unlink(lock); else syslog(LOG_NOTICE, "lock file %s/%s changed dev/inode", dir, lock); return EX_OK; }
the_stack_data/159514395.c
// REQUIRES: x86-registered-target // Play around with backend reporting: // _REGULAR_: Regular behavior, no warning switch enabled. // _PROMOTE_: Promote warning to error. // _IGNORE_: Drop backend warning. // // RUN: not %clang_cc1 %s -fwarn-stack-size=0 -no-integrated-as -S -o - -triple=i386-apple-darwin 2> %t.err // RUN: FileCheck < %t.err %s --check-prefix=REGULAR --check-prefix=ASM // RUN: not %clang_cc1 %s -fwarn-stack-size=0 -no-integrated-as -S -o - -triple=i386-apple-darwin -Werror=frame-larger-than 2> %t.err // RUN: FileCheck < %t.err %s --check-prefix=PROMOTE --check-prefix=ASM // RUN: not %clang_cc1 %s -fwarn-stack-size=0 -no-integrated-as -S -o - -triple=i386-apple-darwin -Wno-frame-larger-than 2> %t.err // RUN: FileCheck < %t.err %s --check-prefix=IGNORE --check-prefix=ASM // // RUN: %clang_cc1 %s -S -o - -triple=i386-apple-darwin -verify -no-integrated-as extern void doIt(char *); // REGULAR: warning: stack frame size ([[#]]) exceeds limit ([[#]]) in 'stackSizeWarning' // PROMOTE: error: stack frame size ([[#]]) exceeds limit ([[#]]) in 'stackSizeWarning' // IGNORE-NOT: stack frame size ([[#]]) exceeds limit ([[#]]) in 'stackSizeWarning' void stackSizeWarning() { char buffer[80]; doIt(buffer); } // ASM: inline assembly requires more registers than available void inlineAsmError(int x0, int x1, int x2, int x3, int x4, int x5, int x6, int x7, int x8, int x9) { __asm__("hello world": : "r" (x0),"r" (x1),"r" (x2),"r" (x3), // expected-error + {{inline assembly requires more registers than available}} "r" (x4),"r" (x5),"r" (x6),"r" (x7),"r" (x8),"r" (x9)); }
the_stack_data/173803.c
/* ** client.c -- a stream socket client demo */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <netdb.h> #include <sys/types.h> #include <netinet/in.h> #include <sys/socket.h> #include <arpa/inet.h> #define PORT "3490" // the port client will be connecting to #define MAXDATASIZE 100 // max number of bytes we can get at once // get sockaddr, IPv4 or IPv6: void *get_in_addr(struct sockaddr *sa) { if (sa->sa_family == AF_INET) return &(((struct sockaddr_in*)sa)->sin_addr); return &(((struct sockaddr_in6*)sa)->sin6_addr); } int main(int argc, char *argv[]) { int sockfd, numbytes; char buf[MAXDATASIZE]; struct addrinfo hints, *servinfo, *p; int rv; char s[INET6_ADDRSTRLEN]; if (argc != 2) { fprintf(stderr,"usage: client hostname\n"); exit(1); } memset(&hints, 0, sizeof hints); hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; if((rv = getaddrinfo(argv[1], PORT, &hints, &servinfo)) != 0) { fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(rv)); return 1; } // loop through all the results and connect to the first we can for(p = servinfo; p != NULL; p = p->ai_next) { if ((sockfd = socket(p->ai_family, p->ai_socktype, p->ai_protocol)) == -1) { perror("client: socket"); continue; } if (connect(sockfd, p->ai_addr, p->ai_addrlen) == -1) { close(sockfd); perror("client: connect"); continue; } break; } if (p == NULL) { fprintf(stderr, "client: failed to connect\n"); return 2; } inet_ntop(p->ai_family, get_in_addr((struct sockaddr *)p->ai_addr), s, sizeof s); printf("client: connecting to %s\n", s); freeaddrinfo(servinfo); // all done with this structure if ((numbytes = recv(sockfd, buf, MAXDATASIZE-1, 0)) == -1) { perror("recv"); exit(1); } buf[numbytes] = '\0'; printf("client: received '%s'\n",buf); close(sockfd); return 0; }
the_stack_data/12478.c
// Test strict_string_checks option in strpbrk function // RUN: %clang_asan %s -o %t && %run %t 2>&1 // RUN: env ASAN_OPTIONS=$ASAN_OPTIONS:strict_string_checks=false %run %t 2>&1 // RUN: env ASAN_OPTIONS=$ASAN_OPTIONS:strict_string_checks=true not %run %t 2>&1 | FileCheck %s #include <assert.h> #include <stdlib.h> #include <string.h> int main(int argc, char **argv) { size_t size = 100; char fill = 'o'; char *s1 = (char*)malloc(size); char *s2 = (char*)malloc(2); memset(s1, fill, size); s2[0] = fill; s2[1]='\0'; char* r = strpbrk(s1, s2); // CHECK: {{.*ERROR: AddressSanitizer: heap-buffer-overflow on address}} // CHECK: READ of size 101 assert(r == s1); free(s1); free(s2); return 0; }
the_stack_data/231392295.c
//Classification: #intrinsic/n/ZD/MIE/aS/fmod/lc/ln //Written by: Sergey Pomelov //Reviewed by: Igor Eremeev //Comment: #include <math.h> #include <stdio.h> int main(void) { double a; double b; a = fmod(1.6,0.8); b = 1 / a; printf("%f",b); return 0; }
the_stack_data/105085.c
enum a { b } c; d; e(long f) { enum a g = h(); long i = 0 == c ?: f ?: e; j(i); if (d && g) return f; if (0 == d && g == d) k(); }
the_stack_data/565167.c
#include<stdio.h> #include<string.h> #include<stdlib.h> #include<malloc.h> #include<math.h> #define NULL 0 int k=0; typedef struct btnode{ char data; struct btnode *lchild,*rchild; }btnode,*bitree; typedef struct{ btnode *s[10000]; int f,r; }qnode,*que; int getroot(char *a,char x){ int i; for(i=0;a[i]!='\n';i++){ if(a[i]==x) return i; } return -1; } btnode *creat(btnode *t,char *a,char *b,int n){ if(n==0) return NULL; int i=getroot(b,*a); t=(btnode *)malloc(sizeof(btnode)); t->data=*a; t->lchild=NULL; t->rchild=NULL; t->lchild=creat(t->lchild,a+1,b,i); t->rchild=creat(t->rchild,a+i+1,b+i+1,n-(i+1)); return t; } void pos(btnode *t){ if(t){ pos(t->lchild); pos(t->rchild); printf("%c",t->data); } } void cen(btnode *t){ qnode *q=(qnode *)malloc(sizeof(qnode)); q->f=0; q->r=0; int i; if(t==NULL) return; printf("%c",t->data); btnode *p=t; q->s[q->r]=t; (q->r)++; while((q->f)<(q->r)){ t=q->s[q->f]; (q->f)++; if(t->lchild!=NULL){ q->s[q->r]=t->lchild; printf("%c",t->lchild->data); (q->r)++; } if(t->rchild!=NULL){ q->s[q->r]=t->rchild; printf("%c",t->rchild->data); (q->r)++; } } } int main(){ char a[10000]; char b[10000]; btnode *t=NULL; int num; scanf("%d",&num); while(num--){ scanf("%s",a); scanf("%s",b); //puts(a); //puts(b); int n=strlen(a); t=creat(t,a,b,n); pos(t); /*printf(" "); cen(t);*/ printf("\n"); } return 0; }
the_stack_data/48574256.c
// { dg-do compile } void foo(int n, int i) { int A[n]; #pragma omp parallel shared(A) { A[i] = sizeof(A); } }
the_stack_data/42830.c
int g_j = 1; void foo(void) { return; } int doOp(int k) { int v = g_j; g_j += k; return v; }
the_stack_data/87763.c
#include<stdio.h> int main() { int i,zhong,ge,k,shu[100000]={0}; scanf("%d",&ge); for(i=1;i<=ge;i++){ scanf("%d",&zhong); shu[zhong]++; } scanf("%d",&k); for(i=99999;;i--){ if(shu[i]!=0) k--; if(0==k){ printf("%d %d",i,shu[i]); break; } } return 0; }
the_stack_data/661317.c
// clang-format off // RUN: %c-to-llvm %s | %apply-typeart -typeart-alloca -call-filter -call-filter-impl=deprecated::default -S 2>&1 | FileCheck %s // RUN: %c-to-llvm %s | %apply-typeart -typeart-alloca -call-filter -S 2>&1 | FileCheck %s // clang-format on extern int d; void empty() { int a = 1; int b = 2; int c = 3; if (d > c) { b = a * c; } else { b = c * c; } } // Standard filter // CHECK: > Stack Memory // CHECK-NEXT: Alloca : 3.00 // CHECK-NEXT: Stack call filtered % : 100.00
the_stack_data/40563.c
/* $NetBSD: kgdb_glue.c,v 1.1.1.1 1996/05/05 12:17:25 oki Exp $ */ /* * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. * * This software was developed by the Computer Systems Engineering group * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and * contributed to Berkeley. * * 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, Lawrence Berkeley Laboratories. * * 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. * * @(#)kgdb_glue.c 8.2 (Berkeley) 1/12/94 */ /* * This file must be compiled with gcc -fno-defer-pop. */ #ifdef KGDB #include <sys/param.h> #include <machine/frame.h> #include <machine/reg.h> #ifndef lint static char rcsid[] = "$NetBSD: kgdb_glue.c,v 1.1.1.1 1996/05/05 12:17:25 oki Exp $"; #endif #define KGDB_STACKSIZE 0x800 #define KGDB_STACKWORDS (KGDB_STACKSIZE / sizeof(u_long)) u_long kgdb_stack[KGDB_STACKWORDS]; #define getsp(v) asm("movl sp, %0" : "=r" (v)) #define setsp(v) asm("movl %0, sp" :: "r" (v)) static inline void copywords(src, dst, nbytes) register u_long *src, *dst; register u_int nbytes; { u_long *limit = src + (nbytes / sizeof(u_long)); do { *dst++ = *src++; } while (src < limit); if (nbytes & 2) *(u_short *)dst = *(u_short *)src; } kgdb_trap_glue(type, frame) int type; struct frame frame; { u_long osp, nsp; u_int fsize, s; extern short exframesize[]; /* * After a kernel mode trap, the saved sp doesn't point to the right * place. The correct value is the top of the frame (i.e. before the * KGDB trap). * * XXX this may have to change if we implement an interrupt stack. */ fsize = sizeof(frame) - sizeof(frame.F_u) + exframesize[frame.f_format]; frame.f_regs[SP] = (u_long)&frame + fsize; /* * Copy the interrupt context and frame to the new stack. * We're throwing away trap()'s frame since we're going to do * our own rte. */ nsp = (u_long)&kgdb_stack[KGDB_STACKWORDS] - roundup(fsize, sizeof(u_long)); copywords((u_long *)&frame, (u_long *)nsp, fsize); s = splhigh(); getsp(osp); setsp(nsp); if (kgdb_trap(type, (struct frame *)nsp) == 0) { /* * Get back on kernel stack. This thread of control * will return back up through trap(). If kgdb_trap() * returns 0, it didn't handle the trap at all so * the stack is still intact and everything will * unwind okay from here up. */ setsp(osp); splx(s); return 0; } /* * Copy back context, which has possibly changed. Even the * sp might have changed. */ osp = ((struct frame *)nsp)->f_regs[SP] - fsize; copywords((u_long *)nsp, (u_long *)osp, fsize); setsp(osp); /* * Restore the possible new context from frame, pop the * unneeded usp (we trapped from kernel mode) and pad word, * and return to the trapped thread. */ asm("moveml sp@+,#0x7FFF; addql #8,sp; rte"); } int kgdb_testval; kgdb_test(i) int i; { ++kgdb_testval; return (i + 1); } #endif /* KGDB */
the_stack_data/67225.c
/* Impact of conditions on points-to * * Check equality to NULL: q cannot be NULL on return */ #include <stdio.h> int if16(int *p) { int * q, i; if(p!=NULL) q = p; else q = &i; return 0; }
the_stack_data/308280.c
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD // // 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.
the_stack_data/121918.c
#include <stdlib.h> #include <stdio.h> #include <time.h> #define ORDER 3 int rrange(int, int); int main() { srand(time(NULL)); int addTo = rrange(10, 200); int square[ORDER][ORDER]; for(int i = 0; i < ORDER; i++) { for(int j = 0; j < ORDER; j++) { square[i][j] = 0; } } int solved = 1; printf("Welcome to the magic square game.the game of Nim.\n"); printf("You must fill the following grid of numbers, so that\n"); printf("each row, column and diagonal adds up to %i.\n", addTo); printf("To enter a number in the grid, type the column, followed\n"); printf("by a comma, followed by the row, then another comma, then the\n"); printf("number to put into that square. For example: \n"); printf("2,3,14 would put the number 14 into the square in the second\n"); printf("column, third row.\n"); printf("====================================================\n"); do { printf("Column number: 1 2 3\n"); printf(" +---+---+---+\n"); printf("Row 1 |%3i|%3i|%3i|\n", square[0][0], square[1][0], square[2][0]); printf(" +---+---+---+\n"); printf("Row 2 |%3i|%3i|%3i|\n", square[0][1], square[1][1], square[2][1]); printf(" +---+---+---+\n"); printf("Row 3 |%3i|%3i|%3i|\n", square[0][2], square[1][2], square[2][2]); printf(" +---+---+---+\n"); if(solved == 0) { printf("You solved the magic square!\n"); return 0; } printf("Please enter a column, row and number to put into the square (or type -1,-1,-1 to quit): "); int row = 0, column = 0, num = 0; int temp = scanf("%i,%i,%i", &column, &row, &num); if(temp == EOF) { printf("Please enter a valid input, according to the instructions\n"); printf("defined at the beginning of this game.\n"); } else if(row == -1 && column == -1 && num == -1) { return 0; } else if(column < 0 || column > ORDER) { printf("Please enter a column number between 0 and 3.\n"); } else if(row < 0 || row > ORDER) { printf("Please enter a row number between 0 and 3.\n"); } else if(num < 0 || num > addTo) { printf("Please enter a number at least 0, and not more than %i.\n", addTo); } else { square[column - 1][row - 1] = num; if((square[0][0] + square[1][0] + square[2][0]) != addTo) solved = 0; if((square[0][1] + square[1][1] + square[2][1]) != addTo) solved = 0; if((square[0][2] + square[1][2] + square[2][2]) != addTo) solved = 0; if((square[0][0] + square[0][1] + square[0][2]) != addTo) solved = 0; if((square[1][0] + square[1][1] + square[1][2]) != addTo) solved = 0; if((square[2][0] + square[2][1] + square[2][2]) != addTo) solved = 0; if((square[0][0] + square[1][1] + square[2][2]) != addTo) solved = 0; if((square[0][2] + square[1][1] + square[2][0]) != addTo) solved = 0; } } while(1); } int rrange(int a, int b) { int temp = rand(); while(temp < a || temp > b) { temp = rand(); } return temp; }
the_stack_data/168892325.c
extern const unsigned char LoginVersionString[]; extern const double LoginVersionNumber; const unsigned char LoginVersionString[] __attribute__ ((used)) = "@(#)PROGRAM:Login PROJECT:Pods-1" "\n"; const double LoginVersionNumber __attribute__ ((used)) = (double)1.;
the_stack_data/165765308.c
#include <stdio.h> #include <unistd.h> int main() { int marvel = 0, dc = 0, invalid = 0, times, question; printf("Gente a entrevistar: "); scanf("%i", &times); printf("Escribe un numero: DC (1), Marvel (2), Salir del programa (0)\n"); for (int a = 1; a < times + 1; a++) { printf("Persona %d: ", a); scanf("%i", &question); if (question == 0) { a = times; } else if (question == 1) { dc++; } else if (question == 2) { marvel++; } else { invalid++; } } printf("Votos por DC: %i\n", dc); printf("Votos por Marvel: %i\n", marvel); printf("Votos no validos: %i\n", invalid); sleep(5); return 0; }
the_stack_data/156216.c
#include <time.h> #include <errno.h> #include "syscall.h" #if __EMSCRIPTEN__ #include <errno.h> #include <emscripten/threading.h> #endif #define IS32BIT(x) !((x)+0x80000000ULL>>32) #define CLAMP(x) (int)(IS32BIT(x) ? (x) : 0x7fffffffU+((0ULL+(x))>>63)) int __clock_nanosleep(clockid_t clk, int flags, const struct timespec *req, struct timespec *rem) { if (clk == CLOCK_THREAD_CPUTIME_ID) return EINVAL; #if __EMSCRIPTEN__ if (!req || req->tv_nsec < 0 || req->tv_nsec > 999999999L || req->tv_sec < 0) { return EINVAL; } emscripten_thread_sleep(req->tv_sec * 1000.0 + req->tv_nsec / 1e6); return 0; #else #ifdef SYS_clock_nanosleep_time64 time_t s = req->tv_sec; long ns = req->tv_nsec; int r = -ENOSYS; if (SYS_clock_nanosleep == SYS_clock_nanosleep_time64 || !IS32BIT(s)) r = __syscall_cp(SYS_clock_nanosleep_time64, clk, flags, ((long long[]){s, ns}), rem); if (SYS_clock_nanosleep == SYS_clock_nanosleep_time64 || r!=-ENOSYS) return -r; long long extra = s - CLAMP(s); long ts32[2] = { CLAMP(s), ns }; if (clk == CLOCK_REALTIME && !flags) r = __syscall_cp(SYS_nanosleep, &ts32, &ts32); else r = __syscall_cp(SYS_clock_nanosleep, clk, flags, &ts32, &ts32); if (r==-EINTR && rem && !(flags & TIMER_ABSTIME)) { rem->tv_sec = ts32[0] + extra; rem->tv_nsec = ts32[1]; } return -r; #else if (clk == CLOCK_REALTIME && !flags) return -__syscall_cp(SYS_nanosleep, req, rem); return -__syscall_cp(SYS_clock_nanosleep, clk, flags, req, rem); #endif #endif } weak_alias(__clock_nanosleep, clock_nanosleep);
the_stack_data/171550.c
/* udcFuse - FUSE (Filesystem in USErspace) filesystem for lib/udc.c (Url Data Cache). */ /* Copyright (C) 2011 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #ifdef USE_FUSE #include "common.h" #include "portable.h" #include "errCatch.h" #include "udc.h" #include <sys/types.h> #include <dirent.h> #include <pthread.h> #ifndef FUSE_USE_VERSION #define FUSE_USE_VERSION 26 #endif #include "fuse.h" void usage() /* Explain usage and exit. */ { errAbort( "udcFuse - FUSE (Filesystem in USErspace) filesystem for lib/udc.c (Url Data Cache)\n" "usage:\n" " udcFuse [options] emptyDirMountPoint [udcCacheDir]\n" "options:\n" " -d: run in debug mode\n" ); } // Important bits from http://sourceforge.net/apps/mediawiki/fuse/index.php?title=FuseInvariants: // -------------------------------------------------------------------------- // * All requests are absolute, i.e. all paths begin with / and // include the complete path to a file or a directory. Symlinks, // . and .. are already resolved. // * For every request you can get except for getattr(), read() and // write(), usually for every path argument (both source and // destination for link and rename, but only the source for // symlink), you will get a getattr() request just before the // callback. // For example, suppose I store file names of files in a filesystem // also into a database. To keep data in sync, I would like, for // each filesystem operation that succeeds, to check if the file // exists on the database. I just do this in the getattr() call, // since all other calls will be preceded by a getattr. // * The arguments for every request are already verified as much as // possible. This means that, for example // * readdir() is only called with an existing directory name // ... // * read() and write() are only called if the file has been opened // with the correct flags // -------------------------------------------------------------------------- // Since this is run by a kernel module and can't just bail when there // is a problem. Wrap errCatch (which has been made pthread-safe) // around any calls to kent/src code. #define ERR_CATCH_START() \ { \ struct errCatch *catch = errCatchNew(); \ if (errCatchStart(catch)) \ { // code that can errAbort goes between ERR_CATCH_START and ERR_CATCH_END, // calling ERR_CATCH_FREE if it does its own return statement: #define ERR_CATCH_FREE() errCatchFree(&catch) #define ERR_CATCH_END(msg) \ } \ errCatchEnd(catch); \ if (catch->gotError) \ { \ fprintf(stderr, "%s errCatch: %s", (msg), catch->message->string); \ ERR_CATCH_FREE(); \ return -1; \ } \ ERR_CATCH_FREE(); \ } static int checkForFile(const char *path, char *udcCachePath, struct stat *stbuf, int pid) /* When a udc cache directory has "bitmap" and "sparseData" files, it * corresponds to a file URL and a udcFile object. Modify stbuf->st_mode * to reflect a file not a directory. */ { if (stbuf->st_mode | S_IFDIR) { DIR *dirHandle = opendir(udcCachePath); if (dirHandle != NULL) { // should we make sure that there are not also subdirectories?? boolean gotBitmap = FALSE, gotSparse = FALSE; int isEmpty = TRUE; struct dirent *dirInfo; while ((dirInfo = readdir(dirHandle)) != NULL) { if (sameString(dirInfo->d_name, ".") || sameString(dirInfo->d_name, "..")) continue; isEmpty = FALSE; if (sameString(dirInfo->d_name, "bitmap")) gotBitmap = TRUE; else if (sameString(dirInfo->d_name, "sparseData")) gotSparse = TRUE; if (gotBitmap && gotSparse) break; } // fuse gets confused when a cache path is an empty dir, and then suddenly morphs // into a regular file, as happens when old cache files are removed by the // trash cleaner but then reappear due to a new udc access. So if empty dir, // just tell fuse that it doesn't exist. if (isEmpty) return -ENOENT; if (gotBitmap || gotSparse) { if (gotBitmap ^ gotSparse) fprintf(stderr, "...[%d] getattr: got one cache file but not the other - stale?\n", pid); stbuf->st_mode &= ~(S_IFDIR | S_IXUSR | S_IXGRP | S_IXOTH); stbuf->st_mode |= S_IFREG; // Now we need to set the actual size in stbuf, otherwise fuse will think // the size is 4096 or however many bytes have been cached so far, and will // prevent callers from reading past that. char buf[4096]; char *url = NULL; long long size = -1; ERR_CATCH_START(); url = udcPathToUrl(path, buf, sizeof(buf), NULL); size = udcSizeFromCache(url, NULL); ERR_CATCH_END("udcPathToUrl or udcSizeFromCache"); if (size < 0) fprintf(stderr, "...[%d] getattr: failed to get udc cache size for %s", pid, url); else stbuf->st_size = size; } closedir(dirHandle); } else { fprintf(stderr, "...[%d] getattr: failed to opendir(%s)!: %s\n", pid, udcCachePath, strerror(errno)); return -errno; } } return 0; } #define HTTP_PATH_PREFIX "/http/" #define QENCODED_AT_SIGN "Q40" static int fusePathToUdcPath(const char *path, char *udcPath, size_t udcPathSize) /* The udc cache path is almost always just udcDefaultDir() + fuse path, * except when the fuse path includes qEncoded http auth info -- necessary for * reconstructing the URL, but not included in the udc cache path. * Return -1 for problem, 0 for OK. */ { char *httpHost = NULL; if (startsWith(HTTP_PATH_PREFIX, path)) httpHost = (char *)path + strlen(HTTP_PATH_PREFIX); if (httpHost) { char *atSign = strstr(httpHost, QENCODED_AT_SIGN); char *nextSlash = strchr(httpHost, '/'); if (atSign != NULL && (nextSlash == NULL || atSign < nextSlash)) { ERR_CATCH_START(); safef(udcPath, udcPathSize, "%s" HTTP_PATH_PREFIX "%s", udcDefaultDir(), atSign+strlen(QENCODED_AT_SIGN)); ERR_CATCH_END("safef udcPath (skipping auth)"); return 0; } } ERR_CATCH_START(); safef(udcPath, udcPathSize, "%s%s", udcDefaultDir(), path); ERR_CATCH_END("safef udcPath"); return 0; } static int udcfs_getattr(const char *path, struct stat *stbuf) /* According to http://sourceforge.net/apps/mediawiki/fuse/index.php?title=FuseInvariants , * getattr() is called to test existence before every other command except read, write and * getattr itself. Give stat of corresponding udc cache file (but make it read-only). */ { unsigned int pid = pthread_self(); char udcCachePath[4096]; if (fusePathToUdcPath(path, udcCachePath, sizeof(udcCachePath)) < 0) return -1; int res = stat(udcCachePath, stbuf); if (res != 0) { fprintf(stderr, "...[%d] getattr: stat(%s) failed (%d): %s\n", pid, udcCachePath, res, strerror(errno)); return -errno; } // Force read-only permissions: stbuf->st_mode &= ~(S_IWUSR | S_IWGRP | S_IWOTH); int ret = checkForFile(path, udcCachePath, stbuf, pid); fprintf(stderr, "...[%d] getattr %s finish %ld\n", pid, path, clock1000()); return ret; } static boolean isEmptyDir(char *udcCachePath, char *subdir) /* Return TRUE if subdir of path is a directory with no children. */ { boolean isDir = FALSE, isEmpty = TRUE; char fullPath[4096]; ERR_CATCH_START(); safef(fullPath, sizeof(fullPath), "%s/%s", udcCachePath, subdir); ERR_CATCH_END("safef fullPath"); DIR *dirHandle = opendir(fullPath); if (dirHandle != NULL) { isDir = TRUE; struct dirent *dirInfo; while ((dirInfo = readdir(dirHandle)) != NULL) { if (sameString(dirInfo->d_name, ".") || sameString(dirInfo->d_name, "..")) continue; isEmpty = FALSE; break; } closedir(dirHandle); } return isDir && isEmpty; } static int udcfs_readdir(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fi) /* Read the corresponding udc cache directory. */ { unsigned int pid = pthread_self(); char udcCachePath[4096]; if (fusePathToUdcPath(path, udcCachePath, sizeof(udcCachePath)) < 0) return -1; DIR *dirHandle = opendir(udcCachePath); if (dirHandle == NULL) { fprintf(stderr, "...[%d] readdir: opendir(%s) failed!: %s\n", pid, udcCachePath, strerror(errno)); return -errno; } struct dirent *dirInfo; while ((dirInfo = readdir(dirHandle)) != NULL) // getattr denies the existence of empty udcCache directories because they // might get bitmap and sparseData files and then we report them as regular // files not directories. Filter out components here that are empty directories: if (sameString(".", dirInfo->d_name) || sameString("..", dirInfo->d_name) || !isEmptyDir(udcCachePath, dirInfo->d_name)) { if (filler(buf, dirInfo->d_name, NULL, 0)) break; } int ret = closedir(dirHandle); fprintf(stderr, "...[%d] readdir %s finish %ld\n", pid, path, clock1000()); return ret; } static int udcfs_open(const char *path, struct fuse_file_info *fi) /* Call udcOpen() and stash the handle in fi->fh for use by later calls. */ { if ((fi->flags & (O_RDONLY | O_WRONLY | O_RDWR)) != O_RDONLY) return -EACCES; unsigned int pid = pthread_self(); fprintf(stderr, "...[%d] open(%s) start %ld\n", pid, path, clock1000()); struct udcFile *udcf = NULL; ERR_CATCH_START(); char buf[4096]; char *url = udcPathToUrl(path, buf, sizeof(buf), NULL); if (url != NULL) { if (udcCacheAge(url, NULL) < udcCacheTimeout()) fi->keep_cache = 1; udcf = udcFileMayOpen(url, NULL); fprintf(stderr, "...[%d] open -> udcFileMayOpen(%s) -> 0x%llx\n", pid, url, (long long)udcf); } else { fprintf(stderr, "...[%d] open: Unable to translate path %s to URL!\n", pid, path); ERR_CATCH_FREE(); return -1; } ERR_CATCH_END("udcPathToUrl, udcCacheAge or udcFileMayOpen"); if (udcf == NULL) { fprintf(stderr, "...[%d] open: Unable to open udcFile for %s!\n", pid, path); return -1; } fi->fh = (uint64_t)udcf; fprintf(stderr, "...[%d] open fh=0x%llx finish %ld\n", pid, (long long)(fi->fh), clock1000()); return 0; } static int udcfs_read(const char *path, char *buf, size_t size, off_t offset, struct fuse_file_info *fi) /* udcSeek to specified offset, udcRead size bytes into buf, return #bytes read. */ { unsigned int pid = pthread_self(); fprintf(stderr, "...[%d] read(%s, size=%lld, offset=%lld, fh=0x%llx) start %ld\n", pid, path, (long long)size, (long long)offset, (long long)(fi->fh), clock1000()); struct udcFile *udcf = (struct udcFile *)(fi->fh); if (udcf == NULL) { fprintf(stderr, "...[%d] read: fuse_file_info fh is NULL -- can't read.\n", pid); return -1; } ERR_CATCH_START(); udcSeek(udcf, (bits64)offset); size = udcRead(udcf, buf, size); ERR_CATCH_END("udcSeek or udcRead"); fprintf(stderr, "...[%d] read %lld bytes finish %ld\n", pid, (long long)size, clock1000()); return size; } static int udcfs_release(const char *path, struct fuse_file_info *fi) // Close the udcFile stored as fi->fh. { unsigned int pid = pthread_self(); fprintf(stderr, "...[%d] release %s (0x%llx) %ld\n", pid, path, (long long)(fi->fh), clock1000()); ERR_CATCH_START(); udcFileClose((struct udcFile **)&(fi->fh)); ERR_CATCH_END("udcFileClose"); return 0; } static struct fuse_operations udcfs_oper = { .getattr = udcfs_getattr, .readdir = udcfs_readdir, .open = udcfs_open, .read = udcfs_read, .release = udcfs_release, }; void checkUdcCacheDir() /* Make sure udcDefaultDir() is a readable directory. */ { DIR *udcCacheHandle = opendir(udcDefaultDir()); if (udcCacheHandle == NULL) { fprintf(stderr, "Error: Can't open udc local cache directory '%s': %s\n", udcDefaultDir(), strerror(errno)); exit(1); } closedir(udcCacheHandle); } int main(int argc, char *argv[]) /* udcFuse - FUSE (Filesystem in USErspace) filesystem for lib/udc.c (Url Data Cache). */ { int minArgc = 2; int i; for (i = 1; i < argc; i++) { if (argv[i][0] == '-') minArgc++; } if (argc < minArgc || argc > minArgc+1) usage(); if (argc == minArgc+1) { udcSetDefaultDir(argv[argc-1]); // Fuse does not like getting an extra arg. argc--; } // Use kernel caching, and tell udc not to ping server, if cache files are // less than an hour old. (Should make this a command-line opt.) udcSetCacheTimeout(3600); #ifndef UDC_TEST return fuse_main(argc, argv, &udcfs_oper, NULL); #else // TEST MAIN -- don't call fuse, just call methods the way we imagine // fuse would call them. #define TESTFILLER_BUFSIZE 256 int testFiller(void *buf, const char *name, const struct stat *stbuf, off_t off) // Impersonate fuse's readdir callback (type fuse_fill_dir_t) { printf(" -> testFiller(%s)\n", name); return 0; } #define checkRet(ret) \ { \ if (ret < 0) \ { \ printf("Doh!: %s\n", strerror(-ret)); \ exit(1); \ } \ } #define UDC_TEST_PATH "/ftp/ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/data/NA12878/alignment/NA12878.chrom22.SLX.maq.SRP000032.2009_07.bam" #define UDC_TEST_PATH2 "/ftp/ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/data/NA12878/alignment/NA12878.chrom21.SLX.maq.SRP000032.2009_07.bam" udcfs_oper.getattr = udcfs_oper.getattr; // avoid unused-var warning. struct fuse_file_info fi; memset(&fi, 0, sizeof(fi)); struct stat stbuf; char buf[TESTFILLER_BUFSIZE]; int ret; ret = udcfs_getattr(UDC_TEST_PATH, &stbuf); printf("Got %d from getattr; stbuf.st_mode=0%llo\n\n", ret, (long long)stbuf.st_mode); checkRet(ret); ret = udcfs_readdir("/", buf, testFiller, 0, &fi); printf("Got %d from readdir\n\n", ret); checkRet(ret); ret = udcfs_readdir("/ftp", buf, testFiller, 0, &fi); printf("Got %d from readdir\n\n", ret); checkRet(ret); ret = udcfs_open(UDC_TEST_PATH, &fi); printf("Got %d from open -> udc handle 0x%llx\n\n", ret, (long long)(fi.fh)); checkRet(ret); ret = udcfs_read(UDC_TEST_PATH, buf, 4, 0, &fi); printf("Got %d bytes: 0x%x from read @0 on 0x%llx!\n\n", ret, *(unsigned int *)buf, (long long)(fi.fh)); checkRet(ret); // Make sure we can have two open handles on the same file at the same time: struct fuse_file_info fi2; memset(&fi2, 0, sizeof(fi2)); ret = udcfs_open(UDC_TEST_PATH2, &fi2); printf("Got %d from open -> second udc handle 0x%llx\n\n", ret, (long long)(fi2.fh)); checkRet(ret); ret = udcfs_read(UDC_TEST_PATH2, buf, 4, 8, &fi2); printf("Got %d bytes: 0x%x from read @8 on second handle 0x%llx!\n\n", ret, *(unsigned int *)buf, (long long)(fi2.fh)); checkRet(ret); ret = udcfs_read(UDC_TEST_PATH2, buf, 4, 8, &fi); printf("Got %d bytes: 0x%x from read @8 on first handle 0x%llx!\n\n", ret, *(unsigned int *)buf, (long long)(fi.fh)); checkRet(ret); ret = udcfs_read(UDC_TEST_PATH, buf, 8, 9000, &fi2); printf("Got %d bytes: 0x%llx from read @9000 on second handle 0x%llx!\n\n", ret, *(unsigned long long *)buf, (long long)(fi2.fh)); checkRet(ret); ret = udcfs_release(UDC_TEST_PATH2, &fi2); printf("Got %d from release of second handle; now fi2.fh is 0x%llx\n\n", ret, (long long)(fi2.fh)); checkRet(ret); ret = udcfs_read(UDC_TEST_PATH, buf, 8, 9000, &fi); printf("Got %d bytes: 0x%llx from read @9000 on 0x%llx!\n\n", ret, *(unsigned long long *)buf, (long long)(fi.fh)); checkRet(ret); ret = udcfs_release(UDC_TEST_PATH, &fi); printf("Got %d from release; now fi.fh is 0x%llx\n\n", ret, (long long)(fi.fh)); checkRet(ret); // Now try to getattr something that has not (at the moment anyway) yet been opened in udc first: #define UDC_TEST_PATH3 "/ftp/ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/data/NA12878/alignment/NA12878.chrom9.SLX.maq.SRP000032.2009_07.bam" memset(&stbuf, 0, sizeof(stbuf)); ret = udcfs_getattr(UDC_TEST_PATH3, &stbuf); printf("Got %d from getattr; stbuf.st_mode=0%llo\n\n", ret, (long long)stbuf.st_mode); checkRet(ret); return 0; #endif//def UDC_TEST } #else // no USE_FUSE #include <stdio.h> int main(int argc, char *argv[]) { printf("udcFuse requires the FUSE (filesystem in userspace) library -- make sure that is installed and add USE_FUSE=1 to your enviroment.\n"); return 0; } #endif//def USE_FUSE
the_stack_data/243892293.c
extern float __VERIFIER_nondet_float(void); extern int __VERIFIER_nondet_int(void); typedef enum {false, true} bool; bool __VERIFIER_nondet_bool(void) { return __VERIFIER_nondet_int() != 0; } int main() { bool _EL_X_519, _x__EL_X_519; float x_11, _x_x_11; float x_1, _x_x_1; float x_7, _x_x_7; bool _EL_U_518, _x__EL_U_518; float x_10, _x_x_10; float x_9, _x_x_9; float x_8, _x_x_8; float x_5, _x_x_5; float x_0, _x_x_0; float x_4, _x_x_4; float x_2, _x_x_2; float x_3, _x_x_3; float x_6, _x_x_6; int __steps_to_fair = __VERIFIER_nondet_int(); _EL_X_519 = __VERIFIER_nondet_bool(); x_11 = __VERIFIER_nondet_float(); x_1 = __VERIFIER_nondet_float(); x_7 = __VERIFIER_nondet_float(); _EL_U_518 = __VERIFIER_nondet_bool(); x_10 = __VERIFIER_nondet_float(); x_9 = __VERIFIER_nondet_float(); x_8 = __VERIFIER_nondet_float(); x_5 = __VERIFIER_nondet_float(); x_0 = __VERIFIER_nondet_float(); x_4 = __VERIFIER_nondet_float(); x_2 = __VERIFIER_nondet_float(); x_3 = __VERIFIER_nondet_float(); x_6 = __VERIFIER_nondet_float(); bool __ok = (1 && ( !((2.0 <= (x_10 + (-1.0 * x_11))) && _EL_X_519))); while (__steps_to_fair >= 0 && __ok) { if ((( !((x_2 + (-1.0 * x_4)) <= 10.0)) || ( !(( !((x_2 + (-1.0 * x_4)) <= 10.0)) || _EL_U_518)))) { __steps_to_fair = __VERIFIER_nondet_int(); } else { __steps_to_fair--; } _x__EL_X_519 = __VERIFIER_nondet_bool(); _x_x_11 = __VERIFIER_nondet_float(); _x_x_1 = __VERIFIER_nondet_float(); _x_x_7 = __VERIFIER_nondet_float(); _x__EL_U_518 = __VERIFIER_nondet_bool(); _x_x_10 = __VERIFIER_nondet_float(); _x_x_9 = __VERIFIER_nondet_float(); _x_x_8 = __VERIFIER_nondet_float(); _x_x_5 = __VERIFIER_nondet_float(); _x_x_0 = __VERIFIER_nondet_float(); _x_x_4 = __VERIFIER_nondet_float(); _x_x_2 = __VERIFIER_nondet_float(); _x_x_3 = __VERIFIER_nondet_float(); _x_x_6 = __VERIFIER_nondet_float(); __ok = ((((((((((((((((x_11 + (-1.0 * _x_x_0)) <= -2.0) && (((x_8 + (-1.0 * _x_x_0)) <= -20.0) && (((x_5 + (-1.0 * _x_x_0)) <= -6.0) && (((x_4 + (-1.0 * _x_x_0)) <= -9.0) && (((x_0 + (-1.0 * _x_x_0)) <= -2.0) && ((x_2 + (-1.0 * _x_x_0)) <= -5.0)))))) && (((x_11 + (-1.0 * _x_x_0)) == -2.0) || (((x_8 + (-1.0 * _x_x_0)) == -20.0) || (((x_5 + (-1.0 * _x_x_0)) == -6.0) || (((x_4 + (-1.0 * _x_x_0)) == -9.0) || (((x_0 + (-1.0 * _x_x_0)) == -2.0) || ((x_2 + (-1.0 * _x_x_0)) == -5.0))))))) && ((((x_11 + (-1.0 * _x_x_1)) <= -8.0) && (((x_10 + (-1.0 * _x_x_1)) <= -4.0) && (((x_7 + (-1.0 * _x_x_1)) <= -19.0) && (((x_5 + (-1.0 * _x_x_1)) <= -6.0) && (((x_1 + (-1.0 * _x_x_1)) <= -19.0) && ((x_2 + (-1.0 * _x_x_1)) <= -3.0)))))) && (((x_11 + (-1.0 * _x_x_1)) == -8.0) || (((x_10 + (-1.0 * _x_x_1)) == -4.0) || (((x_7 + (-1.0 * _x_x_1)) == -19.0) || (((x_5 + (-1.0 * _x_x_1)) == -6.0) || (((x_1 + (-1.0 * _x_x_1)) == -19.0) || ((x_2 + (-1.0 * _x_x_1)) == -3.0)))))))) && ((((x_10 + (-1.0 * _x_x_2)) <= -13.0) && (((x_9 + (-1.0 * _x_x_2)) <= -3.0) && (((x_6 + (-1.0 * _x_x_2)) <= -2.0) && (((x_3 + (-1.0 * _x_x_2)) <= -15.0) && (((x_1 + (-1.0 * _x_x_2)) <= -2.0) && ((x_2 + (-1.0 * _x_x_2)) <= -8.0)))))) && (((x_10 + (-1.0 * _x_x_2)) == -13.0) || (((x_9 + (-1.0 * _x_x_2)) == -3.0) || (((x_6 + (-1.0 * _x_x_2)) == -2.0) || (((x_3 + (-1.0 * _x_x_2)) == -15.0) || (((x_1 + (-1.0 * _x_x_2)) == -2.0) || ((x_2 + (-1.0 * _x_x_2)) == -8.0)))))))) && ((((x_10 + (-1.0 * _x_x_3)) <= -10.0) && (((x_9 + (-1.0 * _x_x_3)) <= -11.0) && (((x_8 + (-1.0 * _x_x_3)) <= -8.0) && (((x_7 + (-1.0 * _x_x_3)) <= -3.0) && (((x_4 + (-1.0 * _x_x_3)) <= -7.0) && ((x_5 + (-1.0 * _x_x_3)) <= -8.0)))))) && (((x_10 + (-1.0 * _x_x_3)) == -10.0) || (((x_9 + (-1.0 * _x_x_3)) == -11.0) || (((x_8 + (-1.0 * _x_x_3)) == -8.0) || (((x_7 + (-1.0 * _x_x_3)) == -3.0) || (((x_4 + (-1.0 * _x_x_3)) == -7.0) || ((x_5 + (-1.0 * _x_x_3)) == -8.0)))))))) && ((((x_11 + (-1.0 * _x_x_4)) <= -8.0) && (((x_9 + (-1.0 * _x_x_4)) <= -5.0) && (((x_7 + (-1.0 * _x_x_4)) <= -10.0) && (((x_6 + (-1.0 * _x_x_4)) <= -12.0) && (((x_2 + (-1.0 * _x_x_4)) <= -1.0) && ((x_3 + (-1.0 * _x_x_4)) <= -12.0)))))) && (((x_11 + (-1.0 * _x_x_4)) == -8.0) || (((x_9 + (-1.0 * _x_x_4)) == -5.0) || (((x_7 + (-1.0 * _x_x_4)) == -10.0) || (((x_6 + (-1.0 * _x_x_4)) == -12.0) || (((x_2 + (-1.0 * _x_x_4)) == -1.0) || ((x_3 + (-1.0 * _x_x_4)) == -12.0)))))))) && ((((x_11 + (-1.0 * _x_x_5)) <= -13.0) && (((x_10 + (-1.0 * _x_x_5)) <= -6.0) && (((x_9 + (-1.0 * _x_x_5)) <= -3.0) && (((x_7 + (-1.0 * _x_x_5)) <= -2.0) && (((x_1 + (-1.0 * _x_x_5)) <= -14.0) && ((x_2 + (-1.0 * _x_x_5)) <= -4.0)))))) && (((x_11 + (-1.0 * _x_x_5)) == -13.0) || (((x_10 + (-1.0 * _x_x_5)) == -6.0) || (((x_9 + (-1.0 * _x_x_5)) == -3.0) || (((x_7 + (-1.0 * _x_x_5)) == -2.0) || (((x_1 + (-1.0 * _x_x_5)) == -14.0) || ((x_2 + (-1.0 * _x_x_5)) == -4.0)))))))) && ((((x_7 + (-1.0 * _x_x_6)) <= -14.0) && (((x_5 + (-1.0 * _x_x_6)) <= -1.0) && (((x_4 + (-1.0 * _x_x_6)) <= -8.0) && (((x_2 + (-1.0 * _x_x_6)) <= -3.0) && (((x_0 + (-1.0 * _x_x_6)) <= -8.0) && ((x_1 + (-1.0 * _x_x_6)) <= -15.0)))))) && (((x_7 + (-1.0 * _x_x_6)) == -14.0) || (((x_5 + (-1.0 * _x_x_6)) == -1.0) || (((x_4 + (-1.0 * _x_x_6)) == -8.0) || (((x_2 + (-1.0 * _x_x_6)) == -3.0) || (((x_0 + (-1.0 * _x_x_6)) == -8.0) || ((x_1 + (-1.0 * _x_x_6)) == -15.0)))))))) && ((((x_11 + (-1.0 * _x_x_7)) <= -19.0) && (((x_10 + (-1.0 * _x_x_7)) <= -14.0) && (((x_8 + (-1.0 * _x_x_7)) <= -5.0) && (((x_7 + (-1.0 * _x_x_7)) <= -7.0) && (((x_3 + (-1.0 * _x_x_7)) <= -13.0) && ((x_4 + (-1.0 * _x_x_7)) <= -3.0)))))) && (((x_11 + (-1.0 * _x_x_7)) == -19.0) || (((x_10 + (-1.0 * _x_x_7)) == -14.0) || (((x_8 + (-1.0 * _x_x_7)) == -5.0) || (((x_7 + (-1.0 * _x_x_7)) == -7.0) || (((x_3 + (-1.0 * _x_x_7)) == -13.0) || ((x_4 + (-1.0 * _x_x_7)) == -3.0)))))))) && ((((x_9 + (-1.0 * _x_x_8)) <= -11.0) && (((x_4 + (-1.0 * _x_x_8)) <= -2.0) && (((x_3 + (-1.0 * _x_x_8)) <= -13.0) && (((x_2 + (-1.0 * _x_x_8)) <= -10.0) && (((x_0 + (-1.0 * _x_x_8)) <= -18.0) && ((x_1 + (-1.0 * _x_x_8)) <= -13.0)))))) && (((x_9 + (-1.0 * _x_x_8)) == -11.0) || (((x_4 + (-1.0 * _x_x_8)) == -2.0) || (((x_3 + (-1.0 * _x_x_8)) == -13.0) || (((x_2 + (-1.0 * _x_x_8)) == -10.0) || (((x_0 + (-1.0 * _x_x_8)) == -18.0) || ((x_1 + (-1.0 * _x_x_8)) == -13.0)))))))) && ((((x_11 + (-1.0 * _x_x_9)) <= -16.0) && (((x_10 + (-1.0 * _x_x_9)) <= -10.0) && (((x_8 + (-1.0 * _x_x_9)) <= -19.0) && (((x_7 + (-1.0 * _x_x_9)) <= -20.0) && (((x_4 + (-1.0 * _x_x_9)) <= -16.0) && ((x_5 + (-1.0 * _x_x_9)) <= -11.0)))))) && (((x_11 + (-1.0 * _x_x_9)) == -16.0) || (((x_10 + (-1.0 * _x_x_9)) == -10.0) || (((x_8 + (-1.0 * _x_x_9)) == -19.0) || (((x_7 + (-1.0 * _x_x_9)) == -20.0) || (((x_4 + (-1.0 * _x_x_9)) == -16.0) || ((x_5 + (-1.0 * _x_x_9)) == -11.0)))))))) && ((((x_9 + (-1.0 * _x_x_10)) <= -12.0) && (((x_8 + (-1.0 * _x_x_10)) <= -7.0) && (((x_7 + (-1.0 * _x_x_10)) <= -17.0) && (((x_6 + (-1.0 * _x_x_10)) <= -3.0) && (((x_1 + (-1.0 * _x_x_10)) <= -1.0) && ((x_5 + (-1.0 * _x_x_10)) <= -20.0)))))) && (((x_9 + (-1.0 * _x_x_10)) == -12.0) || (((x_8 + (-1.0 * _x_x_10)) == -7.0) || (((x_7 + (-1.0 * _x_x_10)) == -17.0) || (((x_6 + (-1.0 * _x_x_10)) == -3.0) || (((x_1 + (-1.0 * _x_x_10)) == -1.0) || ((x_5 + (-1.0 * _x_x_10)) == -20.0)))))))) && ((((x_11 + (-1.0 * _x_x_11)) <= -6.0) && (((x_9 + (-1.0 * _x_x_11)) <= -8.0) && (((x_7 + (-1.0 * _x_x_11)) <= -4.0) && (((x_6 + (-1.0 * _x_x_11)) <= -3.0) && (((x_4 + (-1.0 * _x_x_11)) <= -20.0) && ((x_5 + (-1.0 * _x_x_11)) <= -5.0)))))) && (((x_11 + (-1.0 * _x_x_11)) == -6.0) || (((x_9 + (-1.0 * _x_x_11)) == -8.0) || (((x_7 + (-1.0 * _x_x_11)) == -4.0) || (((x_6 + (-1.0 * _x_x_11)) == -3.0) || (((x_4 + (-1.0 * _x_x_11)) == -20.0) || ((x_5 + (-1.0 * _x_x_11)) == -5.0)))))))) && ((_EL_U_518 == (_x__EL_U_518 || ( !((_x_x_2 + (-1.0 * _x_x_4)) <= 10.0)))) && (_EL_X_519 == (_x__EL_U_518 || ( !((_x_x_2 + (-1.0 * _x_x_4)) <= 10.0)))))); _EL_X_519 = _x__EL_X_519; x_11 = _x_x_11; x_1 = _x_x_1; x_7 = _x_x_7; _EL_U_518 = _x__EL_U_518; x_10 = _x_x_10; x_9 = _x_x_9; x_8 = _x_x_8; x_5 = _x_x_5; x_0 = _x_x_0; x_4 = _x_x_4; x_2 = _x_x_2; x_3 = _x_x_3; x_6 = _x_x_6; } }
the_stack_data/62638354.c
//Example of program that uses parameters in the main function #include <stdio.h> int main(int argc, char **argv) { int i; printf("argc = %d\n", argc); for(i = 0; i < argc; i++) printf("argv[%d] = %s\n", i, argv[i]); return 0; }
the_stack_data/78369.c
int x = 17; int main(){ if(x >= 12 && x <= 15){ x = 45; }else{ x = 48; } return x; }
the_stack_data/3263038.c
/* This testcase is part of GDB, the GNU debugger. Copyright (C) 2012-2015 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ static int function (void) { return 1; /* step stops here */ } int main () { function (); return 0; }
the_stack_data/7528.c
/* https://www.hackerrank.com/challenges/hello-world-c/problem */ #include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main() { char s[100]; scanf("%[^\n]%*c", &s); printf("Hello, World!\n%s",s); return 0; }
the_stack_data/154828035.c
/* * @file startup_efm32jg12b.c * @brief CMSIS Compatible EFM32JG12B startup file in C. * Should be used with GCC 'GNU Tools ARM Embedded' * @version 5.2.1 * Date: 12 June 2014 * */ /* Copyright (c) 2011 - 2014 ARM LIMITED All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - Neither the name of ARM 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 COPYRIGHT HOLDERS AND 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 <stdint.h> /*---------------------------------------------------------------------------- Linker generated Symbols *----------------------------------------------------------------------------*/ extern uint32_t __etext; extern uint32_t __data_start__; extern uint32_t __data_end__; extern uint32_t __copy_table_start__; extern uint32_t __copy_table_end__; extern uint32_t __zero_table_start__; extern uint32_t __zero_table_end__; extern uint32_t __bss_start__; extern uint32_t __bss_end__; extern uint32_t __StackTop; /*---------------------------------------------------------------------------- Exception / Interrupt Handler Function Prototype *----------------------------------------------------------------------------*/ typedef void( *pFunc )( void ); /*---------------------------------------------------------------------------- External References *----------------------------------------------------------------------------*/ #ifndef __START extern void _start(void) __attribute__((noreturn)); /* Pre Main (C library entry point) */ #else extern int __START(void) __attribute__((noreturn)); /* main entry point */ #endif #ifndef __NO_SYSTEM_INIT extern void SystemInit (void); /* CMSIS System Initialization */ #endif /*---------------------------------------------------------------------------- Internal References *----------------------------------------------------------------------------*/ void Default_Handler(void); /* Default empty handler */ void Reset_Handler(void); /* Reset Handler */ /*---------------------------------------------------------------------------- User Initial Stack & Heap *----------------------------------------------------------------------------*/ #ifndef __STACK_SIZE #define __STACK_SIZE 0x00000400 #endif static uint8_t stack[__STACK_SIZE] __attribute__ ((aligned(8), used, section(".stack"))); #ifndef __HEAP_SIZE #define __HEAP_SIZE 0x00000C00 #endif #if __HEAP_SIZE > 0 static uint8_t heap[__HEAP_SIZE] __attribute__ ((aligned(8), used, section(".heap"))); #endif /*---------------------------------------------------------------------------- Exception / Interrupt Handler *----------------------------------------------------------------------------*/ /* Cortex-M Processor Exceptions */ void NMI_Handler (void) __attribute__ ((weak, alias("Default_Handler"))); void HardFault_Handler (void) __attribute__ ((weak, alias("Default_Handler"))); void MemManage_Handler (void) __attribute__ ((weak, alias("Default_Handler"))); void BusFault_Handler (void) __attribute__ ((weak, alias("Default_Handler"))); void UsageFault_Handler (void) __attribute__ ((weak, alias("Default_Handler"))); void DebugMon_Handler (void) __attribute__ ((weak, alias("Default_Handler"))); void SVC_Handler (void) __attribute__ ((weak, alias("Default_Handler"))); void PendSV_Handler (void) __attribute__ ((weak, alias("Default_Handler"))); void SysTick_Handler (void) __attribute__ ((weak, alias("Default_Handler"))); /* Part Specific Interrupts */ void EMU_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void WDOG0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void WDOG1_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void LDMA_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void GPIO_EVEN_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void TIMER0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void USART0_RX_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void USART0_TX_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void ACMP0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void ADC0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void IDAC0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void I2C0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void GPIO_ODD_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void TIMER1_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void USART1_RX_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void USART1_TX_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void LEUART0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void PCNT0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void CMU_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void MSC_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void CRYPTO0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void LETIMER0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void RTCC_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void CRYOTIMER_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void SMU_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void WTIMER0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void WTIMER1_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void PCNT1_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void PCNT2_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void USART2_RX_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void USART2_TX_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void I2C1_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void USART3_RX_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void USART3_TX_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void VDAC0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void CSEN_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void LESENSE_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void CRYPTO1_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void TRNG0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); /*---------------------------------------------------------------------------- Exception / Interrupt Vector table *----------------------------------------------------------------------------*/ const pFunc __Vectors[] __attribute__ ((section(".vectors"))) = { /* Cortex-M Exception Handlers */ (pFunc)&__StackTop, /* Initial Stack Pointer */ Reset_Handler, /* Reset Handler */ NMI_Handler, /* NMI Handler */ HardFault_Handler, /* Hard Fault Handler */ MemManage_Handler, /* MPU Fault Handler */ BusFault_Handler, /* Bus Fault Handler */ UsageFault_Handler, /* Usage Fault Handler */ Default_Handler, /* Reserved */ Default_Handler, /* Reserved */ Default_Handler, /* Reserved */ Default_Handler, /* Reserved */ SVC_Handler, /* SVCall Handler */ DebugMon_Handler, /* Debug Monitor Handler */ Default_Handler, /* Reserved */ PendSV_Handler, /* PendSV Handler */ SysTick_Handler, /* SysTick Handler */ /* External interrupts */ EMU_IRQHandler, /* 0 - EMU */ Default_Handler, /* 1 - Reserved */ WDOG0_IRQHandler, /* 2 - WDOG0 */ WDOG1_IRQHandler, /* 3 - WDOG1 */ Default_Handler, /* 4 - Reserved */ Default_Handler, /* 5 - Reserved */ Default_Handler, /* 6 - Reserved */ Default_Handler, /* 7 - Reserved */ Default_Handler, /* 8 - Reserved */ LDMA_IRQHandler, /* 9 - LDMA */ GPIO_EVEN_IRQHandler, /* 10 - GPIO_EVEN */ TIMER0_IRQHandler, /* 11 - TIMER0 */ USART0_RX_IRQHandler, /* 12 - USART0_RX */ USART0_TX_IRQHandler, /* 13 - USART0_TX */ ACMP0_IRQHandler, /* 14 - ACMP0 */ ADC0_IRQHandler, /* 15 - ADC0 */ IDAC0_IRQHandler, /* 16 - IDAC0 */ I2C0_IRQHandler, /* 17 - I2C0 */ GPIO_ODD_IRQHandler, /* 18 - GPIO_ODD */ TIMER1_IRQHandler, /* 19 - TIMER1 */ USART1_RX_IRQHandler, /* 20 - USART1_RX */ USART1_TX_IRQHandler, /* 21 - USART1_TX */ LEUART0_IRQHandler, /* 22 - LEUART0 */ PCNT0_IRQHandler, /* 23 - PCNT0 */ CMU_IRQHandler, /* 24 - CMU */ MSC_IRQHandler, /* 25 - MSC */ CRYPTO0_IRQHandler, /* 26 - CRYPTO0 */ LETIMER0_IRQHandler, /* 27 - LETIMER0 */ Default_Handler, /* 28 - Reserved */ Default_Handler, /* 29 - Reserved */ RTCC_IRQHandler, /* 30 - RTCC */ Default_Handler, /* 31 - Reserved */ CRYOTIMER_IRQHandler, /* 32 - CRYOTIMER */ Default_Handler, /* 33 - Reserved */ Default_Handler, /* 34 - Reserved */ SMU_IRQHandler, /* 35 - SMU */ WTIMER0_IRQHandler, /* 36 - WTIMER0 */ WTIMER1_IRQHandler, /* 37 - WTIMER1 */ PCNT1_IRQHandler, /* 38 - PCNT1 */ PCNT2_IRQHandler, /* 39 - PCNT2 */ USART2_RX_IRQHandler, /* 40 - USART2_RX */ USART2_TX_IRQHandler, /* 41 - USART2_TX */ I2C1_IRQHandler, /* 42 - I2C1 */ USART3_RX_IRQHandler, /* 43 - USART3_RX */ USART3_TX_IRQHandler, /* 44 - USART3_TX */ VDAC0_IRQHandler, /* 45 - VDAC0 */ CSEN_IRQHandler, /* 46 - CSEN */ LESENSE_IRQHandler, /* 47 - LESENSE */ CRYPTO1_IRQHandler, /* 48 - CRYPTO1 */ TRNG0_IRQHandler, /* 49 - TRNG0 */ Default_Handler, /* 50 - Reserved */ }; /*---------------------------------------------------------------------------- Reset Handler called on controller reset *----------------------------------------------------------------------------*/ void Reset_Handler(void) { uint32_t *pSrc, *pDest; uint32_t *pTable __attribute__((unused)); #ifndef __NO_SYSTEM_INIT SystemInit(); #endif /* Firstly it copies data from read only memory to RAM. There are two schemes * to copy. One can copy more than one sections. Another can only copy * one section. The former scheme needs more instructions and read-only * data to implement than the latter. * Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes. */ #ifdef __STARTUP_COPY_MULTIPLE /* Multiple sections scheme. * * Between symbol address __copy_table_start__ and __copy_table_end__, * there are array of triplets, each of which specify: * offset 0: LMA of start of a section to copy from * offset 4: VMA of start of a section to copy to * offset 8: size of the section to copy. Must be multiply of 4 * * All addresses must be aligned to 4 bytes boundary. */ pTable = &__copy_table_start__; for (; pTable < &__copy_table_end__; pTable = pTable + 3) { pSrc = (uint32_t*)*(pTable + 0); pDest = (uint32_t*)*(pTable + 1); for (; pDest < (uint32_t*)(*(pTable + 1) + *(pTable + 2)) ; ) { *pDest++ = *pSrc++; } } #else /* Single section scheme. * * The ranges of copy from/to are specified by following symbols * __etext: LMA of start of the section to copy from. Usually end of text * __data_start__: VMA of start of the section to copy to * __data_end__: VMA of end of the section to copy to * * All addresses must be aligned to 4 bytes boundary. */ pSrc = &__etext; pDest = &__data_start__; for ( ; pDest < &__data_end__ ; ) { *pDest++ = *pSrc++; } #endif /*__STARTUP_COPY_MULTIPLE */ /* This part of work usually is done in C library startup code. Otherwise, * define this macro to enable it in this startup. * * There are two schemes too. One can clear multiple BSS sections. Another * can only clear one section. The former is more size expensive than the * latter. * * Define macro __STARTUP_CLEAR_BSS_MULTIPLE to choose the former. * Otherwise efine macro __STARTUP_CLEAR_BSS to choose the later. */ #ifdef __STARTUP_CLEAR_BSS_MULTIPLE /* Multiple sections scheme. * * Between symbol address __zero_table_start__ and __zero_table_end__, * there are array of tuples specifying: * offset 0: Start of a BSS section * offset 4: Size of this BSS section. Must be multiply of 4 */ pTable = &__zero_table_start__; for (; pTable < &__zero_table_end__; pTable = pTable + 2) { pDest = (uint32_t*)*(pTable + 0); for (; pDest < (uint32_t*)(*(pTable + 0) + *(pTable + 1)) ; ) { *pDest++ = 0; } } #elif defined (__STARTUP_CLEAR_BSS) /* Single BSS section scheme. * * The BSS section is specified by following symbols * __bss_start__: start of the BSS section. * __bss_end__: end of the BSS section. * * Both addresses must be aligned to 4 bytes boundary. */ pDest = &__bss_start__; for ( ; pDest < &__bss_end__ ; ) { *pDest++ = 0ul; } #endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */ #ifndef __START #define __START _start #endif __START(); } /*---------------------------------------------------------------------------- Default Handler for Exceptions / Interrupts *----------------------------------------------------------------------------*/ void Default_Handler(void) { while(1); }
the_stack_data/192329349.c
/* * Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR * FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #include <stdio.h> int main () { static int a[] = { 0, 1, 2 }; int *i = &a[sizeof(a)/sizeof(*a)] - 1; while (i > a) { printf("%d\n", *i); i--; } }
the_stack_data/90764777.c
#include<stdio.h> int main() { int n,i,avg,sum=0; printf("Enter number of elements :"); scanf("%d",&n); int arr[n]; int *ptr=arr; printf("Enter the numbers:"); for( i=0; i<n; i++ ) { scanf("%d",ptr+i); sum+=*(ptr+i); } avg=sum/n; printf("%d",avg); return 0; }