file
stringlengths
18
26
data
stringlengths
3
1.04M
the_stack_data/97870.c
// // Created by Shijie on 2021/12/3. // Test the help function of project.c: decoder // #include <stdio.h> typedef char BIT; #define TRUE 1 #define FALSE 0 /******************************************************************************/ // help function for testing /******************************************************************************/ BIT not_gate(BIT A) { if (A) return FALSE; else return TRUE; } BIT or_gate(BIT A, BIT B) { if (A || B) return TRUE; else return FALSE; } BIT or_gate3(BIT A, BIT B, BIT C) { return or_gate(A, or_gate(B, C)); } BIT and_gate(BIT A, BIT B) { if (A && B) return TRUE; else return FALSE; } BIT and_gate3(BIT A, BIT B, BIT C) { return and_gate(A, and_gate(B, C)); } /******************************************************************************/ // function need test /******************************************************************************/ void decoder2(BIT I0, BIT I1, BIT* O0, BIT* O1, BIT* O2, BIT* O3) { // Note: The input -> output mapping is slightly modified from before *O0 = and_gate(not_gate(I1), not_gate(I0)); *O1 = and_gate(not_gate(I1), I0); *O2 = and_gate(I1, not_gate(I0)); *O3 = and_gate(I1, I0); } void decoder3(BIT* I, BIT EN, BIT* O) { // TODO: implement 3-to-8 decoder using gates O[0] = and_gate3(not_gate(I[2]), not_gate(I[1]), not_gate(I[0])); O[1] = and_gate3(not_gate(I[2]), not_gate(I[1]), I[0]); O[2] = and_gate3(not_gate(I[2]), I[1], not_gate(I[0])); O[3] = and_gate3(not_gate(I[2]), I[1], I[0]); O[4] = and_gate3(I[2], not_gate(I[1]), not_gate(I[0])); O[5] = and_gate3(I[2], not_gate(I[1]), I[0]); O[6] = and_gate3(I[2], I[1], not_gate(I[0])); O[7] = and_gate3(I[2], I[1], I[0]); O[0] = and_gate(EN, O[0]); O[1] = and_gate(EN, O[1]); O[2] = and_gate(EN, O[2]); O[3] = and_gate(EN, O[3]); O[4] = and_gate(EN, O[4]); O[5] = and_gate(EN, O[5]); O[6] = and_gate(EN, O[6]); O[7] = and_gate(EN, O[7]); } void decoder5(BIT* I, BIT* O) { // TODO: implement 5-to-32 decoder using 2-to-4 and 3-to-8 decoders BIT EN[4] = {FALSE}; decoder2(I[3], I[4], &EN[0], &EN[1], &EN[2], &EN[3]); decoder3(I, EN[3], &O[24]); decoder3(I, EN[2], &O[16]); decoder3(I, EN[1], &O[8]); decoder3(I, EN[0], &O[0]); } int main() { // Unit test for 5-to-32 decoder printf("\n===== Unit test for 5-to-32 decoder =====\n"); printf("decoder( I4, I3, I2, I1, I0 ) | ( O31, O30, ..., O1, O0 )\n"); printf("------------------------------|--------------------------------------------------------------------------------------------------\n"); BIT I[5] = {0}; BIT O[32] = {0}; for (I[4] = 0; I[4] < 2; ++I[4]) for (I[3] = 0; I[3] < 2; ++I[3]) for (I[2] = 0; I[2] < 2; ++I[2]) for (I[1] = 0; I[1] < 2; ++I[1]) for (I[0] = 0; I[0] < 2; ++I[0]) { decoder5(I, O); printf("decoder( %2d, %2d, %2d, %2d, %2d, ) | ( ", I[4], I[3], I[2], I[1], I[0]); printf("%2d", O[31]); for (int i = 30; i >= 0; --i) printf(", %2d", O[i]); printf(" )\n"); } return 0; }
the_stack_data/38032.c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> int main(void) { int fd = open("/dev/watchdog", O_WRONLY); int ret = 0; if (fd == -1) { perror("watchdog"); exit(EXIT_FAILURE); } while (1) { ret = write(fd, "\0", 1); if (ret != 1) { ret = -1; break; } sleep(10); } close(fd); return ret; }
the_stack_data/212642697.c
#define kP 2 #define kD 0 float lastPosition = 0; float pid(float setpoint, float position) { float error = setpoint - position; float prop = kP * error; float deriv = kD * (position - lastPosition); //check if first pass through if (!floor(lastPosition)) { deriv = 0; } return prop - deriv; } int *drive(float speed, float pos, float setpoint) { float turn = pid(setpoint, pos); int speeds[2] = {round(speed - turn), round(speed + turn)}; return speeds; }
the_stack_data/167330967.c
#include <stdio.h> int main(int argc, char *argv[]) { int numbers[4] = {'Z','e','d','\0'}; char name[4] = { 'a', 'a', 'a'}; // first, print them out raw printf("numbers: %d %d %d %d\n", numbers[0], numbers[1], numbers[2], numbers[3]); printf("name each: %c %c %c %c \n", name[0], name[1], name[2], name[3]); printf("%s\n", name); // set up the numbers numbers[0] = 1; numbers[1] = 2; numbers[2] = 3; numbers[3] = 4; // setup the name name[0] = 'Z'; name[1] = 'e'; name[2] = 'd'; name[3] = '\0'; // then print them out initialized printf("numbers: %d %d %d %d\n", numbers[0], numbers[1], numbers[2], numbers[3]); printf("name each: %c %c %c %c\n", name[0], name[1], name[2], name[3]); // print the name like a string printf("name: %s\n", name); // another way to use name char *another = "Zed"; printf("another: %s\n", another); printf("another each: %c %c %c %c\n", another[0], another[1],another[2], another[3]); return 0; }
the_stack_data/150142690.c
#include "stdio.h" void main(){ FILE *infa; FILE *infb; FILE *outf; double f; long long int i; unsigned long long int a; unsigned long long int b; infa = fopen("stim/double_div_a", "r"); infb = fopen("stim/double_div_b", "r"); outf = fopen("stim/double_div_z_expected", "w"); while(1){ if(fscanf(infa, "%llu", &a) == EOF) break; if(fscanf(infb, "%llu", &b) == EOF) break; f = *(double*)&a / *(double*)&b; i = *(long long int*)&f; fprintf(outf, "%llu\n", i); } fclose(infa); fclose(infb); fclose(outf); }
the_stack_data/23574438.c
#include <stdio.h> int main(int argc, char ** argv) { printf("Hello AT&T Vendor Event world!\n"); return 0; }
the_stack_data/40763372.c
#ifndef MIN #define MIN(a,b) (((a)<(b))?(a):(b)) #endif void mmmul(float* C, const float* A, const float* B, int m, int n, int p, int bsize) { int i, j, k, ii, jj, kk; for(ii = 0; ii < m; ii += bsize) for(kk = 0; kk < n; kk += bsize) for(jj = 0; jj < p; jj += bsize) { float block[bsize*bsize]; for(k=0; k<bsize*bsize; ++k) block[k] = 0; for(i = ii; i < MIN(m, ii+bsize); i++) for(k = kk; k < MIN(n, kk+bsize); k++) for(j = jj; j < MIN(p, jj+bsize); j++) block[(i-ii)*bsize + (j-jj)] += A[n*i+k] * B[p*k+j]; for(i = ii; i < MIN(m, ii+bsize); i++) for(j = jj; j < MIN(p, jj+bsize); j++) C[p*i+j] = block[(i-ii)*bsize + (j-jj)]; } }
the_stack_data/1220333.c
/* { dg-do compile } */ /* { dg-options "-O2" } */ /* { dg-final { scan-assembler-not "bswap\[ \t\]" } } */ short foo (short x) { return __builtin_bswap16 (x); }
the_stack_data/150143518.c
#include<stdio.h> #include<stdlib.h> #include<math.h> #define tol 1e-7 #define niub 14944926 int difdiv(double *x, double *f, int n); double trapezis(double a, double b, int n); double richardson(double a,double b, int n, int m); double biseccio( double a ,double b, double precision ); double fun( double x ); int difdivherm(double *x, double *f, int n); double horner(double z, double *x, double *c, int n); int main() { int i,n,m; n = 2; m = 4; double* x = (double*) malloc( n*sizeof(double) ); double* f = (double*) malloc( n*sizeof(double) ); for( i = 0; i <= n ; i++ ) { x[i] = i; f[i] = fun(x[i]); } double a = -10; double b = 1; double z = 0; printf("%g\n", difdiv(x,f,n)); printf("%g\n", trapezis(a,b,n)); printf("%g\n", richardson(a,b,n,m)); printf("%g\n", biseccio(a,b,tol)); scanf(" "); /* printf("%lf\n", horner(z,x,f,n)); */ return 0; } int difdiv(double *x, double *f, int n) { int i,k; for( k = 1; k <= n; k++) { for( i = n; i >= k; i--) { double den = (x[i] - x[i-k]); if( fabs(den) > tol ) { f[i] = (f[i]-f[i-1]) / den; } else { return 1; } } } return 0; } double trapezis(double a, double b, int n) { int i; double h = (b-a)/n; double sum = (fun(a) + fun(b))/2; for( i=1; i <= n-1; i++) { sum += fun(a+i*h); } return h*sum; } double richardson(double a,double b, int n, int m) { double* aprox = (double*) malloc( (m+1)*sizeof(double) ); int k,i; for( i =0 ; i <= m; i++) { aprox[i] = trapezis(a,b,pow(2,i)*n); if( i > 0 && fabs(aprox[i]-aprox[i-1]) < tol ) { return aprox[i]; } printf("%d %d %e\n", 0, i, aprox[i]); } for( k=1; k <=m ; k++) { for( i = m; i >=k; i--) { aprox[i] = aprox[i] + 1/(pow(4,k)-1)*(aprox[i]-aprox[i-1]); printf("%d %d %e\n", k, i, aprox[i]); if( i < m && fabs(aprox[i]-aprox[i+1]) < tol ) { printf("fin"); return aprox[i]; } } } printf("se ha llegado al maximo de iteraciones"); return 1; } double biseccio( double a , double b , double precision) { double c; while( fabs(b-a) > precision ) { c = (a+b)/2; if( fun(c) * fun(a) <= 0 ) { b = c; } else { a = c; } } return c; } double fun( double x ) { return x*x*x+1; } int difdivherm(double *x, double *f, int n){ int i, k, m; m = 2*n + 1; for(i = m-1; i>=2; i = i - 2){ if((x[i]-x[i-1])< tol){ return -1; } f[i] = (f[i]-f[i-2])/(x[i]-x[i-1]); } for(k = 2; k < m+1; k++){ for(i = m; i >= k; i--){ if((x[i]-x[i-k])< tol){ return -1; } f[i] = (f[i]-f[i-1])/(x[i]-x[i-k]); } } return 0; } double horner (double z, double *x, double *c, int n){ double p; int i; p = c[n]; for(i = n-1; i >= 0; i--) { p = p*(z - x[i]) + c[i]; } return p; } int interprecurr(double *x, double *f, double *c, int n){ int i, j; double aux, aux2; c[0]=f[0]; c[1]=(f[1]-c[0])/(x[1]-x[0]); for (i=2; i<=n; i++){ aux=1; aux2=c[0]; for (j=1; j<=i-1; j++){ aux*=(x[i]-x[j-1]); aux2+=(c[j]*aux); } c[i]=(f[i]-aux2)/(aux*(x[i]-x[i-1])); } return 0; }
the_stack_data/359309.c
/*Using system library functions*/ #include <stdio.h> #include <ctype.h> int main (void) { if (isupper ('T') ) printf("Upper case\n") ; else printf("Lower case\n") ; if (isdigit ('!') ) printf("Digit\n") ; else printf("Non-digit\n") ; if (isalpha ('4') ) printf("Alphabet char\n") ; else printf("Non-alphabet char\n") ; return 0 ; }
the_stack_data/471344.c
#include <curses.h> int nonl(void) { return ERR; } /* XOPEN(4) LINK(curses) */
the_stack_data/1166102.c
/* * Copyright (C) 2016 Jones Chi * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <signal.h> #include <sys/select.h> #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <arpa/inet.h> #include <fcntl.h> #define USE_FIFO 0 #define READ 0 #define WRITE 1 #define DISCOVER_PORT 53515 #define DISCOVER_MSG "hello" #define LOCAL_SERVER_PORT 53516 #define DISCOVER_MSG_TEMPLATE "{\"port\":%d,\"name\":\"CsReceiver @ %s\",\"id\":\"%s\",\"width\":1280,\"height\":960,\"mirror\":\"h264\",\"audio\":\"pcm\",\"subtitles\":\"text/vtt\",\"proxyHeaders\":true,\"hls\":false,\"upsell\":true}" #define FIFO_PATH "/tmp/cast_fifo" pid_t popen2(const char **command, int *infp, int *outfp) { int p_stdin[2], p_stdout[2]; pid_t pid; if (pipe(p_stdin) != 0 || pipe(p_stdout) != 0) return -1; pid = fork(); if (pid < 0) return pid; else if (pid == 0) { close(p_stdin[WRITE]); dup2(p_stdin[READ], READ); close(p_stdout[READ]); dup2(p_stdout[WRITE], WRITE); execvp((const char *)*command, command); perror("execvp"); exit(1); } if (infp == NULL) close(p_stdin[WRITE]); else *infp = p_stdin[WRITE]; if (outfp == NULL) close(p_stdout[READ]); else *outfp = p_stdout[READ]; return pid; } int setup_udp_socket() { int udp_sock = -1; int so_reuseaddr = 1; int pktinfo = 1; struct sockaddr_in broadcast_addr; if ((udp_sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { perror("Error when creating udp socket"); return -1; } if (setsockopt(udp_sock, SOL_SOCKET, SO_REUSEADDR, &so_reuseaddr, sizeof(so_reuseaddr)) < 0) { perror("Error when setting reuseaddr for udp socket"); return -1; } if (setsockopt(udp_sock, IPPROTO_IP, IP_PKTINFO, &pktinfo, sizeof(pktinfo)) < 0) { perror("Error when setting pktinfo for udp socket"); return -1; } memset((char *)&broadcast_addr, 0, sizeof(broadcast_addr)); broadcast_addr.sin_family = AF_INET; broadcast_addr.sin_addr.s_addr = htonl(INADDR_ANY); broadcast_addr.sin_port = htons(DISCOVER_PORT); if (bind(udp_sock, (struct sockaddr *)&broadcast_addr, sizeof(broadcast_addr)) < 0) { perror("Error when binding broadcast port for udp socket"); return -1; } return udp_sock; } int main(int argc, char* argv[]) { int fifo_fp = -1; int udp_sock = -1; int tcp_sock = -1; int tcp_client_sock = -1; int max_sock = -1; struct sockaddr_in my_addr; struct sockaddr_in peer_addr; struct sockaddr_in receiver_addr; int addr_len; char resp_msg_buf[512]; char data_msg_buf[1024]; int len; fd_set fd_r; int gst_in_fp = -1; int gst_out_fp = -1; pid_t gst_pid = -1; int just_connect = 0; char *gst_sink; int no_data_count = 0; if (argc != 2 || strlen(argv[1]) <= 0) { perror("Missing sink setting"); return -1; } gst_sink = argv[1]; printf("Using sink: %s\n", gst_sink); #if USE_FIFO unlink(FIFO_PATH); if (mkfifo(FIFO_PATH, 0666) < 0) { perror("Error when creating fifo"); return 0; } #endif #ifdef CLIENT_MODE if ((tcp_client_sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) { perror("Error when creating tcp socket"); return 0; } memset((char *)&peer_addr, 0, sizeof(peer_addr)); peer_addr.sin_family = AF_INET; peer_addr.sin_addr.s_addr = inet_addr("127.0.0.1"); peer_addr.sin_port = htons(LOCAL_SERVER_PORT); if (connect(tcp_client_sock, (const struct sockaddr *)&peer_addr, sizeof(peer_addr)) < 0) { perror("Error when connecting to remote"); return 0; } if (send(tcp_client_sock, "mirror\n", 7, 0) < 0) { perror("Error when sending mirror command"); return 0; } just_connect = 1; #else udp_sock = setup_udp_socket(); if ((tcp_sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) { perror("Error when creating tcp socket"); return 0; } memset((char *)&my_addr, 0, sizeof(my_addr)); my_addr.sin_family = AF_INET; my_addr.sin_addr.s_addr = htonl(INADDR_ANY); my_addr.sin_port = htons(DISCOVER_PORT); if (bind(tcp_sock, (struct sockaddr *)&my_addr, sizeof(my_addr)) < 0) { perror("Error when binding tcp socket"); return 0; } if (listen(tcp_sock, 3) < 0) { perror("Error when listening tcp socket"); return 0; } #endif for (;;) { int timeout = 0; struct timeval tv; // set connect timeout tv.tv_sec = 3; tv.tv_usec = 0; FD_ZERO(&fd_r); FD_SET(udp_sock, &fd_r); FD_SET(tcp_sock, &fd_r); if (tcp_sock > udp_sock) { max_sock = tcp_sock; } else { max_sock = udp_sock; } if (tcp_client_sock > 0) { FD_SET(tcp_client_sock, &fd_r); if (tcp_client_sock > max_sock) { max_sock = tcp_client_sock; } } switch (select(max_sock + 1, &fd_r, NULL, NULL, &tv)) { case -1: printf("error occur, %s\n", strerror(errno)); break; case 0: timeout = 1; default: { if (FD_ISSET(udp_sock, &fd_r)) { size_t aux[128 / sizeof(size_t)]; char broadcast_msg_buf[128]; struct iovec io; struct msghdr msg; struct cmsghdr *cmsg; io.iov_base = broadcast_msg_buf; io.iov_len = sizeof(broadcast_msg_buf); memset(&msg, 0, sizeof(msg)); msg.msg_iov = &io; msg.msg_iovlen = 1; msg.msg_control = aux; msg.msg_controllen = sizeof(aux); msg.msg_flags = 0; msg.msg_name = &peer_addr; msg.msg_namelen = sizeof(peer_addr); len = recvmsg(udp_sock, &msg, 0); if (len < 0) { printf("Error when receiving data from discover socket, errno: %s\n", strerror(errno)); close(udp_sock); udp_sock = setup_udp_socket(); break; } printf("Receive broadcast msg: %s from: %s:%d\n", broadcast_msg_buf, inet_ntoa(peer_addr.sin_addr), ntohs(peer_addr.sin_port)); if (!strncmp(broadcast_msg_buf, DISCOVER_MSG, 5)) { printf("Receive discover msg: %s, from: %s\n", broadcast_msg_buf, inet_ntoa(peer_addr.sin_addr)); for (cmsg = CMSG_FIRSTHDR(&msg); cmsg != NULL; cmsg = CMSG_NXTHDR(&msg, cmsg)) { if (cmsg->cmsg_level == IPPROTO_IP) { struct in_pktinfo *i = (struct in_pktinfo*) CMSG_DATA(cmsg); printf("Response discover msg with local ip: %s\n", inet_ntoa(i->ipi_spec_dst)); memset(resp_msg_buf, 0, sizeof(resp_msg_buf)); snprintf(resp_msg_buf, sizeof(resp_msg_buf), DISCOVER_MSG_TEMPLATE, DISCOVER_PORT, inet_ntoa(i->ipi_spec_dst), inet_ntoa(i->ipi_spec_dst)); if (sendto(udp_sock, resp_msg_buf, strlen(resp_msg_buf), 0, (struct sockaddr *)&peer_addr, sizeof(peer_addr)) < 0) { printf("Error when send discover response to peer\n"); } } } } } else if (FD_ISSET(tcp_sock, &fd_r)) { if (tcp_client_sock < 0) { addr_len = sizeof(peer_addr); tcp_client_sock = accept(tcp_sock, (struct sockaddr *)&peer_addr, &addr_len); if (tcp_client_sock < 0) { printf("Error when accepting client\n"); } else { just_connect = 1; printf("Accept peer addr: %s:%d\n", inet_ntoa(peer_addr.sin_addr), ntohs(peer_addr.sin_port)); if (!strncmp(gst_sink, "ffplay", 6)) { #if USE_FIFO const char *command[] = {"ffplay", "-framerate", "50", "-infbuf", "-framedrop", "-analyzeduration", "1", FIFO_PATH, NULL}; #else const char *command[] = {"ffplay", "-framerate", "50", "-infbuf", "-framedrop", "-analyzeduration", "1", "-", NULL}; #endif gst_pid = popen2(command, &gst_in_fp, &gst_out_fp); } else { #if USE_FIFO char location_buf[32] = {0}; strcat(location_buf, "location="); strcat(location_buf, FIFO_PATH); #ifdef VPUDEC const char *command[] = {"gst-launch-0.10", "filesrc", location_buf, "do-timestamp=true", "!", "video\/x-h264,width=800,height=480,framerate=30\/1", "!", "vpudec", "framedrop=true", "frame-plus=1", "low-latency=true", "!", gst_sink, NULL}; #else const char *command[] = {"gst-launch-1.0", "filesrc", location_buf, "do-timestamp=true", "!", "h264parse", "!", "decodebin", "!", gst_sink, NULL}; #endif #else #ifdef VPUDEC const char *command[] = {"gst-launch-0.10", "fdsrc", "do-timestamp=true", "!", "video\/x-h264,width=800,height=480,framerate=30\/1", "!", "vpudec", "framedrop=true", "frame-plus=1", "low-latency=true", "!", gst_sink, NULL}; #else const char *command[] = {"gst-launch-1.0", "fdsrc", "do-timestamp=true", "!", "h264parse", "!", "decodebin", "!", gst_sink, NULL}; //const char *command[] = {"gst-launch-1.0", "fdsrc", "!", "video\/x-h264,width=800,height=480,framerate=0\/1,stream-format=avc", "!", "avdec_h264", "!", gst_sink, NULL}; #endif #endif gst_pid = popen2(command, &gst_in_fp, &gst_out_fp); } printf("gst pid: %d\n", gst_pid); #if USE_FIFO fifo_fp = open(FIFO_PATH, O_WRONLY); printf("fifo_fp: %d\n", fifo_fp); #endif } } else { printf("Could not accept client, another connection still exist\n"); } } else if (tcp_client_sock > 0 && FD_ISSET(tcp_client_sock, &fd_r)) { memset(data_msg_buf, 0, sizeof(data_msg_buf)); len = read(tcp_client_sock, data_msg_buf, sizeof(data_msg_buf)); //printf("Receive data len: %d\n", len); if (len > 0) { no_data_count = 0; } else { no_data_count++; } if (len < 0 || no_data_count > 2) { printf("Failed to receive from tcp client socket, close the socket\n"); close(tcp_client_sock); tcp_client_sock = -1; if (gst_pid > 0) { kill(gst_pid, SIGKILL); waitpid(gst_pid, NULL, 0); gst_pid = -1; gst_in_fp = -1; gst_out_fp = -1; } if (fifo_fp > 0) { close(fifo_fp); fifo_fp = -1; } #ifdef CLIENT_MODE return 0; #endif } else { if (just_connect && strstr(data_msg_buf, "\r\n")) { int width = 800; int height = 480; printf("Receive control data(%u): %s\n", len, data_msg_buf); char *control_end = strstr(data_msg_buf, "\r\n\r\n"); int bdata_len = 0; if (control_end + 4 - data_msg_buf > 0) { bdata_len = len - (control_end + 4 - data_msg_buf); control_end = control_end + 4; } char *info = strtok(data_msg_buf, "\r\n"); while (info) { //printf("info: %s\n", info); if (strstr(info, "X-WIDTH:")) { width = atoi(strstr(info, " ")); printf("width: %d\n", width); } if (strstr(info, "X-HEIGHT:")) { height = atoi(strstr(info, " ")); printf("height: %d\n", height); } info = strtok(NULL, "\r\n"); } if (!strncmp(gst_sink, "ffplay", 6)) { #if USE_FIFO const char *command[] = {"ffplay", "-framerate", "50", "-infbuf", "-framedrop", "-analyzeduration", "1", FIFO_PATH, NULL}; #else const char *command[] = {"ffplay", "-framerate", "50", "-infbuf", "-framedrop", "-analyzeduration", "1", "-", NULL}; #endif gst_pid = popen2(command, &gst_in_fp, &gst_out_fp); } else { #if USE_FIFO char location_buf[32] = {0}; strcat(location_buf, "location="); strcat(location_buf, FIFO_PATH); #ifdef VPUDEC char mime_buf[70] = {0}; snprintf(mime_buf, 70, "video\/x-h264,width=%d,height=%d,framerate=30\/1", width, height); //snprintf(mime_buf, 70, "video\/x-h264,width=%d,height=%d,framerate=30\/1,stream-format=avc", width, height); printf("Using cap: %s\n", mime_buf); const char *command[] = {"gst-launch-0.10", "filesrc", location_buf, "do-timestamp=true", "!", mime_buf, "!", "vpudec", "framedrop=true", "frame-plus=1", "low-latency=true", "!", gst_sink, NULL}; #else const char *command[] = {"gst-launch-1.0", "filesrc", location_buf, "do-timestamp=true", "!", "h264parse", "!", "decodebin", "!", gst_sink, NULL}; #endif #else #ifdef VPUDEC char mime_buf[70] = {0}; snprintf(mime_buf, 70, "video\/x-h264,width=%d,height=%d,framerate=30\/1", width, height); //snprintf(mime_buf, 70, "video\/x-h264,width=%d,height=%d,framerate=30\/1,stream-format=avc", width, height); printf("Using cap: %s\n", mime_buf); const char *command[] = {"gst-launch-0.10", "fdsrc", "do-timestamp=true", "!", mime_buf, "!", "vpudec", "framedrop=false", "frame-plus=1", "low-latency=true", "!", gst_sink, NULL}; #else const char *command[] = {"gst-launch-1.0", "fdsrc", "do-timestamp=true", "!", "h264parse", "!", "decodebin", "!", gst_sink, NULL}; #endif #endif gst_pid = popen2(command, &gst_in_fp, &gst_out_fp); } printf("gst pid: %d\n", gst_pid); printf("gst in fp: %d\n", gst_in_fp); #if USE_FIFO fifo_fp = open(FIFO_PATH, O_WRONLY); printf("fifo_fp: %d\n", fifo_fp); #endif just_connect = 0; if (bdata_len > 0) { #if USE_FIFO if (fifo_fp > 0) { len = write(fifo_fp, control_end, bdata_len); printf("Write non control data len: %d\n", len); } #else if (gst_in_fp > 0) { len = write(gst_in_fp, control_end, bdata_len); printf("Write non control data len: %d\n", len); } #endif } } else { #if USE_FIFO if (fifo_fp > 0) { len = write(fifo_fp, data_msg_buf, len); //printf("Write to fifo len: %d\n", len); if (len < 0) { printf("Pipe input error: %s\n", strerror(errno)); } } #else if (gst_in_fp > 0) { len = write(gst_in_fp, data_msg_buf, len); //printf("Piped len: %d\n", len); if (len < 0) { printf("Pipe input error: %s\n", strerror(errno)); } } #endif } } } else { if (timeout) { if (gst_pid > 0) { no_data_count++; // 3 * 10 = 30 seconds if (no_data_count > 10) { printf("No data for casting after 30 seconds, close the socket and receiver\n"); if (tcp_client_sock > 0) { close(tcp_client_sock); tcp_client_sock = -1; } if (gst_pid > 0) { kill(gst_pid, SIGKILL); waitpid(gst_pid, NULL, 0); gst_pid = -1; gst_in_fp = -1; gst_out_fp = -1; } if (fifo_fp > 0) { close(fifo_fp); fifo_fp = -1; } } } } } } } } return 0; }
the_stack_data/242330405.c
#include <stdio.h> /* gcc -static -o rop_pivot rop_pivot.c */ int main(int argc, char * argv[]) { char buffer[128] = {0}; int overwrite[1] = {0}; if(argc < 3) { printf("I need two arguments\n"); printf("Usage: %s [overwrite index] [overwrite address]\n", argv[0]); return 1; } /* create a pivot scenario */ printf("Overwriting 0x%08x with 0x%08x\n", \ overwrite[strtoul(argv[1], NULL, 10)], strtoul(argv[2], NULL, 10)); overwrite[strtoul(argv[1], NULL, 10)] = strtoul(argv[2], NULL, 10); /* read a rop chain */ printf("insert ropchain: "); fgets(buffer, 128, stdin); /* program always returns 0 */ return 0; }
the_stack_data/37024.c
int main(void) { void *m[300]; int i; while (i < 30) { m[i] = malloc(1024); printf("%3zu - %p\n", i, m[i]); memset(m[i], 0xff, 1024); printf("%3zu - %p\n", i, m[i]); free(m[i]); i++; } return (0); }
the_stack_data/98866.c
/* Created by pycrash */ /* Socket programming in c to implement client server paradigm, this program offers mainly two functionalities - chatting among server and client using sockets, and sending files from client to server */ /* stdio.h contains declarations for unput and output stdlib.h contains declarations of variable types, macros and functions We will be using atoi function of stlib which converts a string pointed to, by the argument into an int unistd.h contains read write close functions sys/types.h contains definitions of data types used in sysytem calls sys/socket.h contains structers needed for socket. sockaddr structure is in this file only netinet/in.h contains constants and structures needed for internet domain address. sockaddr_in is in this file only */ /*Server Model should have following functions 1) Socket 2) Bind 3) listen 4) Accept 5) Read 6) Write 7) close */ //Contains declarartions for input and output #include <stdio.h> //Defines 4 variable types, several macros and various functions //We will use atoi function to convert the string pointed to, by the argument to an integer #include <stdlib.h> //defines one variable type, one macro, and various functions for manipulating arrays of characters #include <string.h> //for read, write and close #include <unistd.h> //conatins definitions of a no. of data types used in system calls #include <sys/types.h> //contains constants and structures needed for internet domain addresses e.g. sockaddr_in #include <netinet/in.h> //definitions of structures needed for sockets e.g. defines sockaddr structure #include <sys/socket.h> //contains definition of Hostent structure #include <netdb.h> //declares several functions that are useful for testing and mapping characters. #include <ctype.h> // defines the structure of the data returned by the function fstat() #include <sys/stat.h> //defines the following requests and arguments for use by the functions fcntl() and open() #include <fcntl.h> //definitions for internet operations #include <arpa/inet.h> //contains system error numbers #include <errno.h> //Error function to exit the program void error(const char *msg) { /*perror is an inbuilt function that interprets the error no. and outputs the output error description by using STDERR */ perror(msg); exit(1); } int main(int argc, char *argv[]) { /*The user need to provide 2 arguments, first one the file name, and secondly the port no. */ //checking if user provided 2 arguments or not if (argc < 2) { //Terminating the program as user didnt provide 2 arguments fprintf(stderr, "Please provide a port number, program is terminated\n"); exit(1); } //socketfd and newsocketfd is file descriptor, newsocketfd is for client int socketfd, newsocketfd, portno, n; //file name variable char str[20]; int client_len, read_len, file_read_len; int des_fd; //variables for operation - send file, chat etc. int received_int, sub_received_int; int operation, return_status, sub_return_status; int sub_operation; //buffer will be transferred in a data stream char buffer[1024]; //sockaddr_in gives internet address struct sockaddr_in serv_address, client_address; socklen_t clilen; //socket function returns a file descriptor, if its less than 0 then there is an error opening socket /*socket function has 3 arguments, first one is domain, here we will use AF_INET which is an IPv4 protocol, second argument is type, we will use SOCK_STREAM as it for TCP protocol, If we were to use UDP protocl, we would have provide SOCK_DGRAM as second argument, third argument is protocol, which is 0 for TCP */ socketfd = socket(AF_INET, SOCK_STREAM, 0); if (socketfd < 0) { //File descrpitor is less than 0, error opening socket error("Error opening socket"); } //bzero clears data or anything in whatever it is refrenced to //clearing serv_address so as to do operations on it bzero((char*) &serv_address, sizeof(serv_address)); //converting the string argument into an int portno = atoi(argv[1]); /*getting info such as port, using htons - host to network short, converts port no. in host byte order to port no. in network byte order */ serv_address.sin_family = AF_INET; serv_address.sin_addr.s_addr = INADDR_ANY; serv_address.sin_port = htons(portno); /*bind assigns the address specified by addr */ if (bind(socketfd, (struct sockaddr *) &serv_address, sizeof(serv_address)) < 0) error("Binding Failed"); /*listen marks the socketfd as passive soocket i.e. A socket that will be used for accepting incoming connections using accept */ listen(socketfd, 5); clilen = sizeof(client_address); /*accept function also returns a file descriptor and waits for connect and whenever connect is triggered by client, accept is called by host */ newsocketfd = accept(socketfd, (struct sockaddr *) &client_address, &clilen); if (newsocketfd < 0) error("Error Accepting"); /*getting the operation by the user */ return_status = read(newsocketfd, &received_int, sizeof(received_int)); if (return_status > 0) { //printing the opeartion code fprintf(stdout, "Operation code = %d\n", ntohl(received_int)); operation = ntohl(received_int); } //performing the operation according to user switch (operation) { case 1: //user selected send file { //asking user which type of file he/she wants to send sub_return_status = read(newsocketfd, &sub_received_int, sizeof(sub_received_int)); if (return_status > 0) { //printing the sub operation code fprintf(stdout, "Sub Operation code = %d\n", ntohl(sub_received_int)); sub_operation = ntohl(sub_received_int); } switch (sub_operation) { //performing the sub operation according to user case 1: { //User selected txt file //reading the filename given by user bzero(str, 20); n = read(newsocketfd, str, 20); int len = strlen(str); //manupilating the file name, the last 4 chars are the extension, so removing the extension from the name str[len - 4] = '\0'; if (n < 0) error("Error Reading"); fprintf(stdout, "Received File Name = %s\n", str); //Starting the operation to receive the txt file FILE * fp; int ch = 0; fp = fopen(strcat(str, "_received.txt"), "a"); int words; read(newsocketfd, &words, sizeof(int)); //For counting words in txt file printf("No of words in file is : %d\n", words); /* Receiving the file until there are no words left */ //So we will keep sending the file through buffer until EOF is encountered while (ch != words) { read(newsocketfd, buffer, 512); fprintf(fp, " %s", buffer); //For printing every word of file //printf(" %s %d ", buffer, ch); ch++; } //The operation executed successfully //The file was recived successfully printf("The file was received successfully\n"); printf("The file is saved as %s\n", str); break; } case 2: { char file_name[1024]; // local val /*memset copies the character 0 (an unsigned char) to the first 1024 characters of the string pointed to, by the argument buffer */ memset(buffer, 0x00, 1024); /*file name */ read_len = read(newsocketfd, buffer, 1024); if (read_len > 0) { /*getting the file name and manupilating the file name, the last 4 chars are the extension, so removing the extension from the name*/ strcpy(file_name, buffer); int len = strlen(file_name); file_name[len - 4] = '\0'; } else { //Error reading the file name, terminating the program close(newsocketfd); break; } /*create file */ des_fd = open(strcat(file_name, "received.png"), O_WRONLY | O_CREAT | O_EXCL, 0700); if (!des_fd) { perror("file open error : "); break; } /*file save */ while (1) { memset(buffer, 0x00, 1024); file_read_len = read(newsocketfd, buffer, 1024); write(des_fd, buffer, file_read_len); if (file_read_len == EOF | file_read_len == 0) { //if block executed when EOF is encountered, meaning there is nothing left to receive //The operation executed successfully //The file was recived successfully printf("Received Image file\n"); printf("The file is saved as %s\n", file_name); break; } } break; } case 3: { char file_name[1024]; // local val /*memset copies the character 0 (an unsigned char) to the first 1024 characters of the string pointed to, by the argument buffer */ memset(buffer, 0x00, 1024); /*file name */ read_len = read(newsocketfd, buffer, 1024); if (read_len > 0) { /* getting the file name and manupilating the file name, the last 4 chars are the extension, so removing the extension from the name */ strcpy(file_name, buffer); int len = strlen(file_name); file_name[len - 4] = '\0'; } else { //Error reading the file name, terminating the program close(newsocketfd); break; } /*create file */ des_fd = open(strcat(file_name, "received.mp3"), O_WRONLY | O_CREAT | O_EXCL, 0700); if (!des_fd) { perror("file open error : "); break; } /*file save */ while (1) { memset(buffer, 0x00, 1024); file_read_len = read(newsocketfd, buffer, 1024); write(des_fd, buffer, file_read_len); if (file_read_len == EOF | file_read_len == 0) { //if block executed when EOF is encountered, meaning there is nothing left to receive //The operation executed successfully //The file was recived successfully printf("Received audio file\n"); printf("The file is saved as %s\n", file_name); break; } } break; } case 4: { char file_name[1024]; // local val /*memset copies the character 0 (an unsigned char) to the first 1024 characters of the string pointed to, by the argument buffer */ memset(buffer, 0x00, 1024); /*file name */ read_len = read(newsocketfd, buffer, 1024); if (read_len > 0) { /* getting the file name and manupilating the file name, the last 4 chars are the extension, so removing the extension from the name */ strcpy(file_name, buffer); int len = strlen(file_name); file_name[len - 4] = '\0'; } else { //Error reading the file name, terminating the program close(newsocketfd); break; } /*create file */ des_fd = open(strcat(file_name, "received.mp4"), O_WRONLY | O_CREAT | O_EXCL, 0700); if (!des_fd) { perror("file open error : "); break; } /*file save */ while (1) { memset(buffer, 0x00, 1024); file_read_len = read(newsocketfd, buffer, 1024); write(des_fd, buffer, file_read_len); if (file_read_len == EOF | file_read_len == 0) { //if block executed when EOF is encountered, meaning there is nothing left to receive //The operation executed successfully //The file was recived successfully printf("Received Video file\n"); printf("The file is saved as %s\n", file_name); break; } } break; } default: exit(0); } break; } case 2: //user selected to chat while (1) { //clearing buffer as will stream data through buffer only bzero(buffer, 1024); //reading data from client n = read(newsocketfd, buffer, 1024); if (n < 0) error("Error Reading"); printf("Client: %s\n", buffer); bzero(buffer, 1024); //fgets reads a line from the specified stream and stores it into the string pointed to by buffer. fgets(buffer, 1024, stdin); ////sending whatever is in buffer to client n = write(newsocketfd, buffer, strlen(buffer)); if (n < 0) error("Error Writing"); //Server or client can anytime close the chat with keyword "Bye" int i = strncmp("Bye", buffer, 3); if (i == 0) break; } break; default: //user entered other keyword, so we have to terminate the program printf("Other key entered, terminating\n"); exit(0); } //closing the socket close(newsocketfd); close(socketfd); return 0; }
the_stack_data/97012369.c
#include <stdio.h> #include <stdlib.h> #include <math.h> int main(){ double temp, x; int i; FILE *f = fopen("rand_exp.dat", "w"); for(i = 0 ; i < 100000 ; i ++){ //random numbers are taken between 0-(1/3) to make log part negative //so that we can have x larger than 0 temp = ((double)rand()/(double)RAND_MAX)*(1.0/3.0); x = -3.0*log(3.0*temp); fprintf(f,"%.12e\n",x); } fclose(f); return -1; }
the_stack_data/10762.c
/* $OpenBSD$ */ /* Copyright (C) 1995-1998 Eric Young ([email protected]) * All rights reserved. * * This package is an SSL implementation written * by Eric Young ([email protected]). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercial use as long as * the following conditions are aheared to. The following conditions * apply to all code found in this distribution, be it the RC4, RSA, * lhash, DES, etc., code; not just the SSL code. The SSL documentation * included with this distribution is covered by the same copyright terms * except that the holder is Tim Hudson ([email protected]). * * Copyright remains Eric Young's, and as such any Copyright notices in * the code are not to be removed. * If this package is used in a product, Eric Young should be given attribution * as the author of the parts of the library used. * This can be in the form of a textual message at program startup or * in documentation (online or textual) provided with the package. * * 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 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 cryptographic software written by * Eric Young ([email protected])" * The word 'cryptographic' can be left out if the rouines from the library * being used are not cryptographic related :-). * 4. If you include any Windows specific code (or a derivative thereof) from * the apps directory (application code) you must include an acknowledgement: * "This product includes software written by Tim Hudson ([email protected])" * * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``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 AUTHOR 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. * * The licence and distribution terms for any publically available version or * derivative of this code cannot be changed. i.e. this code cannot simply be * copied and put under another distribution licence * [including the GNU Public Licence.] */ #include <stdio.h> #include <string.h> #include <openssl/md4.h> #include <openssl/crypto.h> unsigned char *MD4(const unsigned char *d, size_t n, unsigned char *md) { MD4_CTX c; static unsigned char m[MD4_DIGEST_LENGTH]; if (md == NULL) md=m; if (!MD4_Init(&c)) return NULL; MD4_Update(&c,d,n); MD4_Final(md,&c); explicit_bzero(&c,sizeof(c)); return(md); }
the_stack_data/140764226.c
#include <stdio.h> //#include <stdlib.h> #define ACCTS 5 typedef struct Account { int name; double amount; } Account; static Account *accounts[ACCTS]; int main() { accounts[0] = (Account *) malloc(sizeof(Account)); __ESBMC_assume(accounts[0]); accounts[0]->name=1; assert(accounts[0]->name!=1); }
the_stack_data/121751.c
/* To check the behavior of conditional expressions, especially in the lhs. */ void lhs02() { int i = 2; int j = 2; *(i>2?&i:&j) = 3; j = i>2? i+1 : j+2; }
the_stack_data/106017.c
#include <stdlib.h> #include <stdint.h> #include <string.h> typedef unsigned char byte; void encryptFlag(byte *param_1) { byte *pbVar1; byte *pbVar2; uint uVar3; byte bVar4; uint uVar5; uint uVar6; bVar4 = *param_1; pbVar1 = param_1; if (bVar4 == 0) { return; } while( 1 ) { uVar5 = (uint)bVar4; uVar3 = uVar5 - 10 & 0xff; uVar6 = uVar5; if ((bVar4 < 0x50) && (uVar6 = uVar3, 0x50 < uVar3)) { uVar6 = uVar5 + 0x46 & 0xff; } uVar6 = (uVar6 - 7 ^ 0x43) & 0xff; pbVar2 = pbVar1 + 1; *pbVar1 = (byte)(uVar6 << 6) | (byte)(uVar6 >> 2); bVar4 = *pbVar2; if (bVar4 == 0) break; uVar6 = (int)(pbVar2 + -(int)param_1) % 5; bVar4 = bVar4 << (-uVar6 & 7) | bVar4 >> (uVar6 & 0xff); if (uVar6 == 2) { bVar4 = bVar4 - 1; } *pbVar2 = bVar4; bVar4 = *pbVar2; pbVar1 = pbVar2; } return; } int main() { char *printable_chars = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"; int npchars = strlen(printable_chars); byte nums[35] = {0x0A, 0xFB, 0xF4, 0x88, 0xDD, 0x9D, 0x7D, 0x5F, 0x9E, 0xA3, 0xC6, 0xBA, 0xF5, 0x95, 0x5D, 0x88, 0x3B, 0xE1, 0x31, 0x50, 0xC7, 0xFA, 0xF5, 0x81, 0x99, 0xC9, 0x7C, 0x23, 0xA1, 0x91, 0x87, 0xB5, 0xB1, 0x95, 0xE4}; byte flag[36] = {'r', 'g', 'b', 'C', 'T', 'F', '{', 0}; for (int cur = 0; cur < sizeof(flag); cur++) { for (int x = 0; x < npchars; x++) { char ch = printable_chars[x]; byte arr[36] = {0}; strcpy(arr,flag); arr[cur] = ch; encryptFlag(arr); if (nums[cur] == arr[cur]) { flag[cur] = ch; printf("%s\n",flag); break; } } } printf("\n"); }
the_stack_data/14199167.c
// RUN: %llvmgcc -emit-llvm -g -c %s -o %t.bc // RUN: rm -rf %t.klee-out // RUN: %klee --output-dir=%t.klee-out %t.bc > %t.log // RUN: FileCheck --input-file=%t.log %s #include <stdio.h> int main(int argc, char * argv[]) { // prevent CFGSimplificationPass optimisation void * dummy = &&one; switch(argc) { case 1: break; case 2: dummy = &&three; goto *dummy; default: goto *dummy; } // the real test void * lptr = &&two; goto *lptr; one: puts("Label one"); // CHECK-NOT: Label one return 1; two: puts("Label two"); // CHECK: Label two return 0; three: puts("Label three"); // CHECK-NOT: Label three return 1; }
the_stack_data/173578733.c
/** * @file * @brief * * @author Anton Kozlov * @date 22.05.2014 */ #include <errno.h> #include <stdio.h> #include <signal.h> int sigsuspend(const sigset_t *sigmask) { fprintf(stderr, ">>>%s\n", __func__); return -ENOSYS; }
the_stack_data/111077865.c
/* Exercise 1 - Calculations Write a C program to input marks of two subjects. Calculate and print the average of the two marks. */ #include <stdio.h> int main() { int mark_1,mark_2,total; float Average; printf("Enter the mark 1 :"); scanf("%d",&mark_1); printf("Enter the mark 2 :"); scanf("%d",&mark_2); total = mark_1 + mark_2; Average = total / 2.0 ; printf("Average is -->: %.2f",Average); return 0; }
the_stack_data/28168.c
#include <stdio.h> #include <stdlib.h> int main (){ int *p; int num; printf("\nDigite o tamanho do vetor-->"); scanf("%d", &num); p=(int *)malloc(num*sizeof(int)); if (!p){ printf ("** \n\nErro: Memoria Insuficiente\n\n **"); exit; }else{ printf ("** \n\nMemoria Alocada com Sucesso\n\n **"); } return (0); }
the_stack_data/381045.c
/* * NTLM patch for john (performance improvement and OpenCL 1.0 conformant) * * Written by Alain Espinosa <alainesp at gmail.com> in 2010 and modified * by Samuele Giovanni Tonon in 2011. No copyright is claimed, and * the software is hereby placed in the public domain. * In case this attempt to disclaim copyright and place the software in the * public domain is deemed null and void, then the software is * Copyright (c) 2010 Alain Espinosa * Copyright (c) 2011 Samuele Giovanni Tonon * Copyright (c) 2015 Sayantan Datta <sdatta at openwall.com> * Copyright (c) 2015 magnum * and it is hereby released to the general public under the following terms: * * Redistribution and use in source and binary forms, with or without * modification, are permitted. * * There's ABSOLUTELY NO WARRANTY, express or implied. * * (This is a heavily cut-down "BSD license".) */ #ifdef HAVE_OPENCL #if FMT_EXTERNS_H extern struct fmt_main fmt_opencl_NT; #elif FMT_REGISTERS_H john_register_one(&fmt_opencl_NT); #else #include <string.h> #include <assert.h> #include <sys/time.h> #include "arch.h" #include "params.h" #include "path.h" #include "common.h" #include "formats.h" #include "config.h" #include "options.h" #include "unicode.h" #include "mask_ext.h" #include "opencl_hash_check_128.h" #define FORMAT_LABEL "nt-opencl" #define FORMAT_NAME "NT" #define FORMAT_TAG "$NT$" #define FORMAT_TAG_LEN (sizeof(FORMAT_TAG)-1) #define ALGORITHM_NAME "MD4 OpenCL" #define BENCHMARK_COMMENT "" #define BENCHMARK_LENGTH -1 #define PLAINTEXT_LENGTH 27 /* At most 3 bytes of UTF-8 needed per character */ #define UTF8_MAX_LENGTH (3 * PLAINTEXT_LENGTH) #define BUFSIZE ((UTF8_MAX_LENGTH + 3) / 4 * 4) #define AUTOTUNE_LENGTH 8 #define CIPHERTEXT_LENGTH 32 #define BINARY_SIZE 16 #define BINARY_ALIGN MEM_ALIGN_WORD #define SALT_SIZE 0 #define SALT_ALIGN 1 #define MIN_KEYS_PER_CRYPT 1 #define MAX_KEYS_PER_CRYPT 1 /* Note: Some plaintexts will be replaced in init() depending on codepage */ static struct fmt_tests tests[] = { {"8846f7eaee8fb117ad06bdd830b7586c", "password"}, {"$NT$31d6cfe0d16ae931b73c59d7e0c089c0", ""}, {"$NT$31d6cfe0d16ae931b73c59d7e0c089c0", ""}, {"$NT$31d6cfe0d16ae931b73c59d7e0c089c0", ""}, {"$NT$31d6cfe0d16ae931b73c59d7e0c089c0", ""}, {"$NT$31d6cfe0d16ae931b73c59d7e0c089c0", ""}, {"$NT$7a21990fcd3d759941e45c490f143d5f", "12345"}, {"$NT$f9e37e83b83c47a93c2f09f66408631b", "abc123"}, {"$NT$b7e4b9022cd45f275334bbdb83bb5be5", "John the Ripper"}, {"$NT$2b2ac2d1c7c8fda6cea80b5fad7563aa", "computer"}, {"$NT$32ed87bdb5fdc5e9cba88547376818d4", "123456"}, {"$NT$b7e0ea9fbffcf6dd83086e905089effd", "tigger"}, {"$NT$7ce21f17c0aee7fb9ceba532d0546ad6", "1234"}, {"$NT$b23a90d0aad9da3615fafc27a1b8baeb", "a1b2c3"}, {"$NT$2d20d252a479f485cdf5e171d93985bf", "qwerty"}, {"$NT$3dbde697d71690a769204beb12283678", "123"}, {"$NT$c889c75b7c1aae1f7150c5681136e70e", "xxx"}, {"$NT$d5173c778e0f56d9fc47e3b3c829aca7", "money"}, {"$NT$0cb6948805f797bf2a82807973b89537", "test"}, {"$NT$0569fcf2b14b9c7f3d3b5f080cbd85e5", "carmen"}, {"$NT$f09ab1733a528f430353834152c8a90e", "mickey"}, {"$NT$878d8014606cda29677a44efa1353fc7", "secret"}, {"$NT$85ac333bbfcbaa62ba9f8afb76f06268", "summer"}, {"$NT$5962cc080506d90be8943118f968e164", "internet"}, {"$NT$f07206c3869bda5acd38a3d923a95d2a", "service"}, {"$NT$31d6cfe0d16ae931b73c59d7e0c089c0", ""}, {"$NT$d0dfc65e8f286ef82f6b172789a0ae1c", "canada"}, {"$NT$066ddfd4ef0e9cd7c256fe77191ef43c", "hello"}, {"$NT$39b8620e745b8aa4d1108e22f74f29e2", "ranger"}, {"$NT$8d4ef8654a9adc66d4f628e94f66e31b", "shadow"}, {"$NT$320a78179516c385e35a93ffa0b1c4ac", "baseball"}, {"$NT$e533d171ac592a4e70498a58b854717c", "donald"}, {"$NT$5eee54ce19b97c11fd02e531dd268b4c", "harley"}, {"$NT$6241f038703cbfb7cc837e3ee04f0f6b", "hockey"}, {"$NT$becedb42ec3c5c7f965255338be4453c", "letmein"}, {"$NT$ec2c9f3346af1fb8e4ee94f286bac5ad", "maggie"}, {"$NT$f5794cbd75cf43d1eb21fad565c7e21c", "mike"}, {"$NT$74ed32086b1317b742c3a92148df1019", "mustang"}, {"$NT$63af6e1f1dd9ecd82f17d37881cb92e6", "snoopy"}, {"$NT$58def5844fe58e8f26a65fff9deb3827", "buster"}, {"$NT$f7eb9c06fafaa23c4bcf22ba6781c1e2", "dragon"}, {"$NT$dd555241a4321657e8b827a40b67dd4a", "jordan"}, {"$NT$bb53a477af18526ada697ce2e51f76b3", "michael"}, {"$NT$92b7b06bb313bf666640c5a1e75e0c18", "michelle"}, {NULL} }; //Init values #define INIT_A 0x67452301 #define INIT_B 0xefcdab89 #define INIT_C 0x98badcfe #define INIT_D 0x10325476 #define SQRT_2 0x5a827999 #define SQRT_3 0x6ed9eba1 static cl_mem pinned_saved_keys, pinned_saved_idx, pinned_int_key_loc; static cl_mem buffer_keys, buffer_idx, buffer_int_keys, buffer_int_key_loc; static cl_uint *saved_plain, *saved_idx, *saved_int_key_loc; static int static_gpu_locations[MASK_FMT_INT_PLHDR]; static unsigned int shift64_ht_sz, shift64_ot_sz; static unsigned int key_idx = 0; static struct fmt_main *self; #define STEP 0 #define SEED 1024 static const char * warn[] = { "key xfer: ", ", idx xfer: ", ", crypt: ", ", res xfer: " }; //This file contains auto-tuning routine(s). Has to be included after formats definitions. #include "opencl-autotune.h" #include "memdbg.h" /* ------- Helper functions ------- */ static size_t get_task_max_work_group_size() { return autotune_get_task_max_work_group_size(FALSE, 0, crypt_kernel); } struct fmt_main fmt_opencl_NT; static void set_kernel_args_kpc() { HANDLE_CLERROR(clSetKernelArg(crypt_kernel, 0, sizeof(buffer_keys), (void *) &buffer_keys), "Error setting argument 1."); HANDLE_CLERROR(clSetKernelArg(crypt_kernel, 1, sizeof(buffer_idx), (void *) &buffer_idx), "Error setting argument 2."); HANDLE_CLERROR(clSetKernelArg(crypt_kernel, 2, sizeof(buffer_int_key_loc), (void *) &buffer_int_key_loc), "Error setting argument 3."); } static void set_kernel_args() { HANDLE_CLERROR(clSetKernelArg(crypt_kernel, 3, sizeof(buffer_int_keys), (void *) &buffer_int_keys), "Error setting argument 4."); } static void create_clobj(size_t kpc, struct fmt_main *self) { pinned_saved_keys = clCreateBuffer(context[gpu_id], CL_MEM_READ_ONLY | CL_MEM_ALLOC_HOST_PTR, BUFSIZE * kpc, NULL, &ret_code); if (ret_code != CL_SUCCESS) { saved_plain = (cl_uint *) mem_alloc(BUFSIZE * kpc); if (saved_plain == NULL) HANDLE_CLERROR(ret_code, "Error creating page-locked memory pinned_saved_keys."); } else { saved_plain = (cl_uint *) clEnqueueMapBuffer(queue[gpu_id], pinned_saved_keys, CL_TRUE, CL_MAP_READ | CL_MAP_WRITE, 0, BUFSIZE * kpc, 0, NULL, NULL, &ret_code); HANDLE_CLERROR(ret_code, "Error mapping page-locked memory saved_plain."); } pinned_saved_idx = clCreateBuffer(context[gpu_id], CL_MEM_READ_ONLY | CL_MEM_ALLOC_HOST_PTR, sizeof(cl_uint) * kpc, NULL, &ret_code); HANDLE_CLERROR(ret_code, "Error creating page-locked memory pinned_saved_idx."); saved_idx = (cl_uint *) clEnqueueMapBuffer(queue[gpu_id], pinned_saved_idx, CL_TRUE, CL_MAP_READ | CL_MAP_WRITE, 0, sizeof(cl_uint) * kpc, 0, NULL, NULL, &ret_code); HANDLE_CLERROR(ret_code, "Error mapping page-locked memory saved_idx."); pinned_int_key_loc = clCreateBuffer(context[gpu_id], CL_MEM_READ_ONLY | CL_MEM_ALLOC_HOST_PTR, sizeof(cl_uint) * kpc, NULL, &ret_code); HANDLE_CLERROR(ret_code, "Error creating page-locked memory pinned_int_key_loc."); saved_int_key_loc = (cl_uint *) clEnqueueMapBuffer(queue[gpu_id], pinned_int_key_loc, CL_TRUE, CL_MAP_READ | CL_MAP_WRITE, 0, sizeof(cl_uint) * kpc, 0, NULL, NULL, &ret_code); HANDLE_CLERROR(ret_code, "Error mapping page-locked memory saved_int_key_loc."); // create and set arguments buffer_keys = clCreateBuffer(context[gpu_id], CL_MEM_READ_ONLY, BUFSIZE * kpc, NULL, &ret_code); HANDLE_CLERROR(ret_code, "Error creating buffer argument buffer_keys."); buffer_idx = clCreateBuffer(context[gpu_id], CL_MEM_READ_ONLY, 4 * kpc, NULL, &ret_code); HANDLE_CLERROR(ret_code, "Error creating buffer argument buffer_idx."); buffer_int_key_loc = clCreateBuffer(context[gpu_id], CL_MEM_READ_ONLY, sizeof(cl_uint) * kpc, NULL, &ret_code); HANDLE_CLERROR(ret_code, "Error creating buffer argument buffer_int_key_loc."); set_kernel_args_kpc(); } static void create_base_clobj(void) { cl_uint dummy = 0; //dummy is used as dummy parameter buffer_int_keys = clCreateBuffer(context[gpu_id], CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR, 4 * mask_int_cand.num_int_cand, mask_int_cand.int_cand ? mask_int_cand.int_cand : (void *)&dummy, &ret_code); HANDLE_CLERROR(ret_code, "Error creating buffer argument buffer_int_keys."); ocl_hc_128_crobj(crypt_kernel); set_kernel_args(); } static void release_clobj(void) { if (buffer_idx) { if (pinned_saved_keys) { HANDLE_CLERROR(clEnqueueUnmapMemObject(queue[gpu_id], pinned_saved_keys, saved_plain, 0, NULL, NULL), "Error Unmapping saved_plain."); HANDLE_CLERROR(clReleaseMemObject(pinned_saved_keys), "Error Releasing pinned_saved_keys."); } else MEM_FREE(saved_plain); HANDLE_CLERROR(clEnqueueUnmapMemObject(queue[gpu_id], pinned_saved_idx, saved_idx, 0, NULL, NULL), "Error Unmapping saved_idx."); HANDLE_CLERROR(clEnqueueUnmapMemObject(queue[gpu_id], pinned_int_key_loc, saved_int_key_loc, 0, NULL, NULL), "Error Unmapping saved_int_key_loc."); HANDLE_CLERROR(clFinish(queue[gpu_id]), "Error releasing mappings."); HANDLE_CLERROR(clReleaseMemObject(buffer_keys), "Error Releasing buffer_keys."); HANDLE_CLERROR(clReleaseMemObject(buffer_idx), "Error Releasing buffer_idx."); HANDLE_CLERROR(clReleaseMemObject(buffer_int_key_loc), "Error Releasing buffer_int_key_loc."); HANDLE_CLERROR(clReleaseMemObject(pinned_saved_idx), "Error Releasing pinned_saved_idx."); HANDLE_CLERROR(clReleaseMemObject(pinned_int_key_loc), "Error Releasing pinned_int_key_loc."); buffer_idx = 0; } } static void release_base_clobj(void) { if (buffer_int_keys) { HANDLE_CLERROR(clReleaseMemObject(buffer_int_keys), "Error Releasing buffer_int_keys."); buffer_int_keys = 0; } ocl_hc_128_rlobj(); } static void done(void) { release_clobj(); release_base_clobj(); if (crypt_kernel) { HANDLE_CLERROR(clReleaseKernel(crypt_kernel), "Release kernel."); HANDLE_CLERROR(clReleaseProgram(program[gpu_id]), "Release Program."); crypt_kernel = NULL; } } static void init_kernel(unsigned int num_ld_hashes, char *bitmap_para) { char build_opts[5000]; int i; cl_ulong const_cache_size; clReleaseKernel(crypt_kernel); shift64_ht_sz = (((1ULL << 63) % hash_table_size_128) * 2) % hash_table_size_128; shift64_ot_sz = (((1ULL << 63) % offset_table_size) * 2) % offset_table_size; for (i = 0; i < MASK_FMT_INT_PLHDR; i++) if (mask_skip_ranges!= NULL && mask_skip_ranges[i] != -1) static_gpu_locations[i] = mask_int_cand.int_cpu_mask_ctx-> ranges[mask_skip_ranges[i]].pos; else static_gpu_locations[i] = -1; HANDLE_CLERROR(clGetDeviceInfo(devices[gpu_id], CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE, sizeof(cl_ulong), &const_cache_size, 0), "failed to get CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE."); sprintf(build_opts, "-D OFFSET_TABLE_SIZE=%u -D HASH_TABLE_SIZE=%u" #if !NT_FULL_UNICODE " -DUCS_2" #endif " -D SHIFT64_OT_SZ=%u -D SHIFT64_HT_SZ=%u -D NUM_LOADED_HASHES=%u" " -D NUM_INT_KEYS=%u %s -D IS_STATIC_GPU_MASK=%d" " -D CONST_CACHE_SIZE=%llu -D%s -D%s -DPLAINTEXT_LENGTH=%d -D LOC_0=%d" #if MASK_FMT_INT_PLHDR > 1 " -D LOC_1=%d " #endif #if MASK_FMT_INT_PLHDR > 2 "-D LOC_2=%d " #endif #if MASK_FMT_INT_PLHDR > 3 "-D LOC_3=%d" #endif ,offset_table_size, hash_table_size_128, shift64_ot_sz, shift64_ht_sz, num_ld_hashes, mask_int_cand.num_int_cand, bitmap_para, mask_gpu_is_static, (unsigned long long)const_cache_size, cp_id2macro(options.target_enc), options.internal_cp == UTF_8 ? cp_id2macro(ASCII) : cp_id2macro(options.internal_cp), PLAINTEXT_LENGTH, static_gpu_locations[0] #if MASK_FMT_INT_PLHDR > 1 , static_gpu_locations[1] #endif #if MASK_FMT_INT_PLHDR > 2 , static_gpu_locations[2] #endif #if MASK_FMT_INT_PLHDR > 3 , static_gpu_locations[3] #endif ); opencl_build_kernel("$JOHN/kernels/nt_kernel.cl", gpu_id, build_opts, 0); crypt_kernel = clCreateKernel(program[gpu_id], "nt", &ret_code); HANDLE_CLERROR(ret_code, "Error creating kernel. Double-check kernel name?"); } static void init(struct fmt_main *_self) { self = _self; num_loaded_hashes = 0; ocl_hc_128_init(_self); opencl_prepare_dev(gpu_id); mask_int_cand_target = opencl_speed_index(gpu_id) / 300; if (options.target_enc == UTF_8) { self->params.plaintext_length = MIN(125, UTF8_MAX_LENGTH); tests[1].plaintext = "\xC3\xBC"; // German u-umlaut in UTF-8 tests[1].ciphertext = "$NT$8bd6e4fb88e01009818749c5443ea712"; tests[2].plaintext = "\xC3\xBC\xC3\xBC"; // two of them tests[2].ciphertext = "$NT$cc1260adb6985ca749f150c7e0b22063"; tests[3].plaintext = "\xE2\x82\xAC"; // euro sign tests[3].ciphertext = "$NT$030926b781938db4365d46adc7cfbcb8"; tests[4].plaintext = "\xE2\x82\xAC\xE2\x82\xAC"; tests[4].ciphertext = "$NT$682467b963bb4e61943e170a04f7db46"; } else if (CP_to_Unicode[0xfc] == 0x00fc) { tests[1].plaintext = "\xFC"; // German u-umlaut in UTF-8 tests[1].ciphertext = "$NT$8bd6e4fb88e01009818749c5443ea712"; tests[2].plaintext = "\xFC\xFC"; // two of them tests[2].ciphertext = "$NT$cc1260adb6985ca749f150c7e0b22063"; tests[3].plaintext = "\xFC\xFC\xFC"; // 3 of them tests[3].ciphertext = "$NT$2e583e8c210fb101994c19877ac53b89"; tests[4].plaintext = "\xFC\xFC\xFC\xFC"; tests[4].ciphertext = "$NT$243bb98e7704797f92b1dd7ded6da0d0"; } } static char *split(char *ciphertext, int index, struct fmt_main *self) { static char out[CIPHERTEXT_LENGTH + FORMAT_TAG_LEN + 1]; if (!strncmp(ciphertext, FORMAT_TAG, FORMAT_TAG_LEN)) ciphertext += FORMAT_TAG_LEN; out[0] = '$'; out[1] = 'N'; out[2] = 'T'; out[3] = '$'; memcpy(&out[FORMAT_TAG_LEN], ciphertext, 32); out[36] = 0; strlwr(&out[FORMAT_TAG_LEN]); return out; } static int valid(char *ciphertext, struct fmt_main *self) { char *pos; if (!strncmp(ciphertext, FORMAT_TAG, FORMAT_TAG_LEN)) ciphertext += FORMAT_TAG_LEN; for (pos = ciphertext; atoi16[ARCH_INDEX(*pos)] != 0x7F; pos++); if (!*pos && pos - ciphertext == CIPHERTEXT_LENGTH) return 1; else return 0; } // here to 'handle' the pwdump files: user:uid:lmhash:ntlmhash::: // Note, we address the user id inside loader. static char *prepare(char *split_fields[10], struct fmt_main *self) { static char out[33+FORMAT_TAG_LEN+1]; if (!valid(split_fields[1], self)) { if (split_fields[3] && strlen(split_fields[3]) == 32) { sprintf(out, "%s%s", FORMAT_TAG, split_fields[3]); if (valid(out,self)) return out; } } return split_fields[1]; } static void *get_binary(char *ciphertext) { static unsigned int out[4]; unsigned int i=0; unsigned int temp; ciphertext+=4; for (; i<4; i++){ temp = (atoi16[ARCH_INDEX(ciphertext[i*8+0])])<<4; temp |= (atoi16[ARCH_INDEX(ciphertext[i*8+1])]); temp |= (atoi16[ARCH_INDEX(ciphertext[i*8+2])])<<12; temp |= (atoi16[ARCH_INDEX(ciphertext[i*8+3])])<<8; temp |= (atoi16[ARCH_INDEX(ciphertext[i*8+4])])<<20; temp |= (atoi16[ARCH_INDEX(ciphertext[i*8+5])])<<16; temp |= (atoi16[ARCH_INDEX(ciphertext[i*8+6])])<<28; temp |= (atoi16[ARCH_INDEX(ciphertext[i*8+7])])<<24; out[i]=temp; } out[0] -= INIT_A; out[1] -= INIT_B; out[2] -= INIT_C; out[3] -= INIT_D; out[1] = (out[1] >> 15) | (out[1] << 17); out[1] -= SQRT_3 + (out[2] ^ out[3] ^ out[0]); out[1] = (out[1] >> 15) | (out[1] << 17); out[1] -= SQRT_3; return out; } static int binary_hash_0(void *binary) { return ((unsigned int *)binary)[0] & PH_MASK_0; } static int binary_hash_1(void *binary) { return ((unsigned int *)binary)[0] & PH_MASK_1; } static int binary_hash_2(void *binary) { return ((unsigned int *)binary)[0] & PH_MASK_2; } static int binary_hash_3(void *binary) { return ((unsigned int *)binary)[0] & PH_MASK_3; } static int binary_hash_4(void *binary) { return ((unsigned int *)binary)[0] & PH_MASK_4; } static int binary_hash_5(void *binary) { return ((unsigned int *)binary)[0] & PH_MASK_5; } static int binary_hash_6(void *binary) { return ((unsigned int *)binary)[0] & PH_MASK_6; } static int get_hash_0(int index) { return hash_table_128[hash_ids[3 + 3 * index]] & PH_MASK_0; } static int get_hash_1(int index) { return hash_table_128[hash_ids[3 + 3 * index]] & PH_MASK_1; } static int get_hash_2(int index) { return hash_table_128[hash_ids[3 + 3 * index]] & PH_MASK_2; } static int get_hash_3(int index) { return hash_table_128[hash_ids[3 + 3 * index]] & PH_MASK_3; } static int get_hash_4(int index) { return hash_table_128[hash_ids[3 + 3 * index]] & PH_MASK_4; } static int get_hash_5(int index) { return hash_table_128[hash_ids[3 + 3 * index]] & PH_MASK_5; } static int get_hash_6(int index) { return hash_table_128[hash_ids[3 + 3 * index]] & PH_MASK_6; } static void clear_keys(void) { key_idx = 0; } static void set_key(char *_key, int index) { const ARCH_WORD_32 *key = (ARCH_WORD_32*)_key; int len = strlen(_key); if (mask_int_cand.num_int_cand > 1 && !mask_gpu_is_static) { int i; saved_int_key_loc[index] = 0; for (i = 0; i < MASK_FMT_INT_PLHDR; i++) { if (mask_skip_ranges[i] != -1) { saved_int_key_loc[index] |= ((mask_int_cand. int_cpu_mask_ctx->ranges[mask_skip_ranges[i]].offset + mask_int_cand.int_cpu_mask_ctx-> ranges[mask_skip_ranges[i]].pos) & 0xff) << (i << 3); } else saved_int_key_loc[index] |= 0x80 << (i << 3); } } saved_idx[index] = (key_idx << 7) | len; while (len > 4) { saved_plain[key_idx++] = *key++; len -= 4; } if (len) saved_plain[key_idx++] = *key & (0xffffffffU >> (32 - (len << 3))); } static char *get_key(int index) { static char out[UTF8_MAX_LENGTH + 1]; int i, len, int_index, t; char *key; if (hash_ids == NULL || hash_ids[0] == 0 || index >= hash_ids[0] || hash_ids[0] > num_loaded_hashes) { t = index; int_index = 0; } else { t = hash_ids[1 + 3 * index]; int_index = hash_ids[2 + 3 * index]; } if (t >= global_work_size) { //fprintf(stderr, "Get key error! %d %d\n", t, index); t = 0; } len = saved_idx[t] & 127; key = (char*)&saved_plain[saved_idx[t] >> 7]; for (i = 0; i < len; i++) out[i] = *key++; out[i] = 0; if (mask_skip_ranges && mask_int_cand.num_int_cand > 1) { for (i = 0; i < MASK_FMT_INT_PLHDR && mask_skip_ranges[i] != -1; i++) if (mask_gpu_is_static) out[static_gpu_locations[i]] = mask_int_cand.int_cand[int_index].x[i]; else out[(saved_int_key_loc[t]& (0xff << (i * 8))) >> (i * 8)] = mask_int_cand.int_cand[int_index].x[i]; } return out; } static int crypt_all(int *pcount, struct db_salt *salt) { const int count = *pcount; size_t *lws = local_work_size ? &local_work_size : NULL; size_t gws = GET_MULTIPLE_OR_BIGGER(count, local_work_size); //fprintf(stderr, "%s(%d) lws "Zu" gws "Zu" idx %u int_cand %d\n", __FUNCTION__, count, local_work_size, gws, key_idx, mask_int_cand.num_int_cand); // copy keys to the device if (key_idx) BENCH_CLERROR(clEnqueueWriteBuffer(queue[gpu_id], buffer_keys, CL_FALSE, 0, 4 * key_idx, saved_plain, 0, NULL, multi_profilingEvent[0]), "failed in clEnqueueWriteBuffer buffer_keys."); BENCH_CLERROR(clEnqueueWriteBuffer(queue[gpu_id], buffer_idx, CL_FALSE, 0, 4 * gws, saved_idx, 0, NULL, multi_profilingEvent[1]), "failed in clEnqueueWriteBuffer buffer_idx."); if (!mask_gpu_is_static) BENCH_CLERROR(clEnqueueWriteBuffer(queue[gpu_id], buffer_int_key_loc, CL_FALSE, 0, 4 * gws, saved_int_key_loc, 0, NULL, NULL), "failed in clEnqueueWriteBuffer buffer_int_key_loc."); return ocl_hc_128_extract_info(salt, set_kernel_args, set_kernel_args_kpc, init_kernel, gws, lws, pcount); } static void reset(struct db_main *db) { static int initialized; static size_t o_lws, o_gws; size_t gws_limit; //fprintf(stderr, "%s(%p), i=%d\n", __FUNCTION__, db, initialized); gws_limit = MIN((0xf << 21) * 4 / BUFSIZE, get_max_mem_alloc_size(gpu_id) / BUFSIZE); get_power_of_two(gws_limit); if (gws_limit > MIN((0xf << 21) * 4 / BUFSIZE, get_max_mem_alloc_size(gpu_id) / BUFSIZE)) gws_limit >>= 1; if (initialized) { // Forget the previous auto-tune local_work_size = o_lws; global_work_size = o_gws; release_base_clobj(); release_clobj(); } else { o_lws = local_work_size; o_gws = global_work_size; initialized = 1; } num_loaded_hashes = db->salts->count; ocl_hc_128_prepare_table(db->salts); init_kernel(num_loaded_hashes, ocl_hc_128_select_bitmap(num_loaded_hashes)); create_base_clobj(); // If real crack, do not auto tune for self test. if (!(options.flags & FLG_TEST_CHK) && db->real && db->real != db) opencl_get_sane_lws_gws_values(); // Initialize openCL tuning (library) for this format. opencl_init_auto_setup(SEED, 1, NULL, warn, 2, self, create_clobj, release_clobj, 2 * BUFSIZE, gws_limit, db); // Auto tune execution from shared/included code. autotune_run_extra(self, 1, gws_limit, 300, CL_TRUE); } struct fmt_main fmt_opencl_NT = { { FORMAT_LABEL, FORMAT_NAME, ALGORITHM_NAME, BENCHMARK_COMMENT, BENCHMARK_LENGTH, 0, PLAINTEXT_LENGTH, BINARY_SIZE, BINARY_ALIGN, SALT_SIZE, SALT_ALIGN, MIN_KEYS_PER_CRYPT, MAX_KEYS_PER_CRYPT, FMT_CASE | FMT_8_BIT | FMT_SPLIT_UNIFIES_CASE | FMT_UNICODE | FMT_UTF8 | FMT_REMOVE, { NULL }, { FORMAT_TAG }, tests }, { init, done, reset, prepare, valid, split, get_binary, fmt_default_salt, { NULL }, fmt_default_source, { binary_hash_0, binary_hash_1, binary_hash_2, binary_hash_3, binary_hash_4, binary_hash_5, binary_hash_6 }, fmt_default_salt_hash, NULL, fmt_default_set_salt, set_key, get_key, clear_keys, crypt_all, { get_hash_0, get_hash_1, get_hash_2, get_hash_3, get_hash_4, get_hash_5, get_hash_6 }, ocl_hc_128_cmp_all, ocl_hc_128_cmp_one, ocl_hc_128_cmp_exact } }; #endif /* plugin stanza */ #endif /* HAVE_OPENCL */
the_stack_data/76699167.c
#include <stdio.h> #define MAX 100 int strlength(char *s) { int L = 0; char* p; for(p = s; *p != '\0'; p++) L++; return L; } void f1(int a[MAX][MAX], int m, int *rez) { int *p, *w; for(p = a[0], w = a[0] + m - 1; p < a[0] + m * MAX, w < a[0] + m * MAX; p += MAX + 1, w += MAX - 1) { rez[0] += *p; //suma de pe Dp; rez[1] += *w; //suma de pe Ds; } } int f2(int a[MAX][MAX], int m, int n, int *rez) { int suma; int *p, *w; int count = 0; for(p = a[0]; p < a[0] + m * MAX; p += MAX) { suma = 0; for(w = p ; w < p + n; w++) { suma += *w; } if(suma >= 0) { //printf("%d\n",suma); rez[count] = (p - a[0]) / MAX; count++; } } return count; } int main(void) { //1. int x = 5; char *p = (char*) &x; if((*p) == 0) printf("Little endian\n"); else printf("Big endian\n"); printf("----------\n"); //--- //2. char c[3] = {'a', 'b', 'c'}; printf("Lungimea sirului c este %d\n", strlength(c)); printf("----------\n"); //--- //3. int m1, a[MAX][MAX], rez1[2] = {0, 0}; int i, j; printf("Introduceti dim. matricei: \n"); scanf("%d", &m1); for(i = 0; i < m1; i++) { for(j = 0; j < m1; j++) { scanf("%d", &a[i][j]); } } f1(a, m1, rez1); printf("Suma Dp = %d, Ds = %d\n", rez1[0], rez1[1]); printf("----------\n"); //--- //4. int m2, n2, b[MAX][MAX], rez2[MAX]; int k; printf("Introduceti m2, n2: "); scanf("%d%d", &m2, &n2); for(i = 0; i < m2; i++) { for(j = 0; j < n2; j++) { scanf("%d", &b[i][j]); } } int count = f2(b, m2, n2, rez2); printf("Indicii liniilor din matrice care au suma elementelor > 0: \n"); for(k = 0; k < count; k++) { printf("%d\n", rez2[k]); } printf("----------\n"); //--- return 0; }
the_stack_data/82950616.c
//@ ltl invariant positive:[](<>AP(y>=0)); #include <stdbool.h> extern int __VERIFIER_nondet_int() __attribute__ ((__noreturn__)); int v; // count the number of bits set in v int c; // c accumulates the total bits set in v int z, y; // word value to compute the parity of void* main(){ y = __VERIFIER_nondet_int(); v= __VERIFIER_nondet_int(); c=0; while (v>0) { v = v&(v - 1); // clear the least significant bit set c++; } y=-1; return (void*) z; }
the_stack_data/117327525.c
#include <stdio.h> main() { printf("hello, "); printf("world"); printf("\n"); }
the_stack_data/165767012.c
#include <stdio.h> #include <stdlib.h> int comb_num(int,int); int main() { int m,n; scanf("%d %d",&m,&n); printf("%d\n",comb_num(m,n)); return 0; } int comb_num(int m,int n){ if(m<n||m<1||n<1) return 0; if(n==1) return m; if(n==m) return 1; return comb_num(m-1,n)+comb_num(m-1,n-1); }
the_stack_data/42679.c
/* PR c/64709 */ /* { dg-do compile } */ /* { dg-options "-Wmissing-field-initializers" } */ struct S { int a, b; }; void foo (void) { struct S s[] = { { 1, 2 }, { 0 } }; /* { dg-bogus "missing initializer for field" } */ }
the_stack_data/150139353.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <arpa/inet.h> int main(int argc, char** argv) { int sockfd; struct sockaddr_in6 dest_addr; extern int errno; char buffer[100]; int n; if(argc < 3) { printf("Usage: client6 IPv6_Dest Port_Dest\n"); return -1; } sockfd = socket(PF_INET6, SOCK_DGRAM, 0); if(sockfd < 0) { printf("Error in socket opening ... exit!\n"); return -1; } memset(&dest_addr, 0, sizeof(dest_addr)); dest_addr.sin6_family = AF_INET6; inet_pton(AF_INET6, argv[1], &(dest_addr.sin6_addr)); dest_addr.sin6_port = htons(atoi(argv[2])); printf("Insert an integer:\n"); scanf("%d", &n); for(int i=0; i<10; i++) { sprintf(buffer, "%d", i+n); printf("sending %s\n", buffer); sendto(sockfd, buffer, strlen(buffer)+1, 0, (struct sockaddr*) &dest_addr, sizeof(dest_addr)); } }
the_stack_data/837956.c
#include <stdio.h> int main() { printf("%x",80); getchar(); }
the_stack_data/85479.c
/* This testcase is part of GDB, the GNU debugger. Copyright 2014-2016 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 void func1 (void) { } static void func2 (void) { } static void func3 (void) { } int main (void) { func1 (); func2 (); func3 (); return 0; }
the_stack_data/795472.c
double do_sum_novec(double* restrict var, long ncells) { double sum = 0.0; #pragma omp parallel for reduction(+:sum) for (long i = 0; i < ncells; i++){ sum += var[i]; } return(sum); }
the_stack_data/155284.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() { float x_34, _x_x_34; bool _J3877, _x__J3877; float x_5, _x_x_5; bool _J3868, _x__J3868; float x_35, _x_x_35; bool _J3860, _x__J3860; bool _EL_U_3840, _x__EL_U_3840; float x_30, _x_x_30; float x_17, _x_x_17; bool _EL_U_3842, _x__EL_U_3842; bool _EL_U_3837, _x__EL_U_3837; float x_31, _x_x_31; float x_3, _x_x_3; float x_21, _x_x_21; float x_2, _x_x_2; float x_1, _x_x_1; float x_6, _x_x_6; float x_7, _x_x_7; float x_9, _x_x_9; float x_8, _x_x_8; float x_11, _x_x_11; float x_10, _x_x_10; float x_12, _x_x_12; float x_13, _x_x_13; float x_14, _x_x_14; float x_16, _x_x_16; float x_19, _x_x_19; float x_15, _x_x_15; float x_22, _x_x_22; float x_0, _x_x_0; float x_18, _x_x_18; float x_23, _x_x_23; float x_20, _x_x_20; float x_25, _x_x_25; float x_26, _x_x_26; float x_24, _x_x_24; float x_28, _x_x_28; float x_27, _x_x_27; float x_29, _x_x_29; float x_32, _x_x_32; float x_33, _x_x_33; float x_4, _x_x_4; int __steps_to_fair = __VERIFIER_nondet_int(); x_34 = __VERIFIER_nondet_float(); _J3877 = __VERIFIER_nondet_bool(); x_5 = __VERIFIER_nondet_float(); _J3868 = __VERIFIER_nondet_bool(); x_35 = __VERIFIER_nondet_float(); _J3860 = __VERIFIER_nondet_bool(); _EL_U_3840 = __VERIFIER_nondet_bool(); x_30 = __VERIFIER_nondet_float(); x_17 = __VERIFIER_nondet_float(); _EL_U_3842 = __VERIFIER_nondet_bool(); _EL_U_3837 = __VERIFIER_nondet_bool(); x_31 = __VERIFIER_nondet_float(); x_3 = __VERIFIER_nondet_float(); x_21 = __VERIFIER_nondet_float(); x_2 = __VERIFIER_nondet_float(); x_1 = __VERIFIER_nondet_float(); x_6 = __VERIFIER_nondet_float(); x_7 = __VERIFIER_nondet_float(); x_9 = __VERIFIER_nondet_float(); x_8 = __VERIFIER_nondet_float(); x_11 = __VERIFIER_nondet_float(); x_10 = __VERIFIER_nondet_float(); x_12 = __VERIFIER_nondet_float(); x_13 = __VERIFIER_nondet_float(); x_14 = __VERIFIER_nondet_float(); x_16 = __VERIFIER_nondet_float(); x_19 = __VERIFIER_nondet_float(); x_15 = __VERIFIER_nondet_float(); x_22 = __VERIFIER_nondet_float(); x_0 = __VERIFIER_nondet_float(); x_18 = __VERIFIER_nondet_float(); x_23 = __VERIFIER_nondet_float(); x_20 = __VERIFIER_nondet_float(); x_25 = __VERIFIER_nondet_float(); x_26 = __VERIFIER_nondet_float(); x_24 = __VERIFIER_nondet_float(); x_28 = __VERIFIER_nondet_float(); x_27 = __VERIFIER_nondet_float(); x_29 = __VERIFIER_nondet_float(); x_32 = __VERIFIER_nondet_float(); x_33 = __VERIFIER_nondet_float(); x_4 = __VERIFIER_nondet_float(); bool __ok = (1 && (((( !(( !(( !(3.0 <= (x_3 + (-1.0 * x_31)))) || _EL_U_3837)) || (_EL_U_3842 && ( !(( !(19.0 <= (x_17 + (-1.0 * x_30)))) || _EL_U_3840))))) && ( !_J3860)) && ( !_J3868)) && ( !_J3877))); while (__steps_to_fair >= 0 && __ok) { if (((_J3860 && _J3868) && _J3877)) { __steps_to_fair = __VERIFIER_nondet_int(); } else { __steps_to_fair--; } _x_x_34 = __VERIFIER_nondet_float(); _x__J3877 = __VERIFIER_nondet_bool(); _x_x_5 = __VERIFIER_nondet_float(); _x__J3868 = __VERIFIER_nondet_bool(); _x_x_35 = __VERIFIER_nondet_float(); _x__J3860 = __VERIFIER_nondet_bool(); _x__EL_U_3840 = __VERIFIER_nondet_bool(); _x_x_30 = __VERIFIER_nondet_float(); _x_x_17 = __VERIFIER_nondet_float(); _x__EL_U_3842 = __VERIFIER_nondet_bool(); _x__EL_U_3837 = __VERIFIER_nondet_bool(); _x_x_31 = __VERIFIER_nondet_float(); _x_x_3 = __VERIFIER_nondet_float(); _x_x_21 = __VERIFIER_nondet_float(); _x_x_2 = __VERIFIER_nondet_float(); _x_x_1 = __VERIFIER_nondet_float(); _x_x_6 = __VERIFIER_nondet_float(); _x_x_7 = __VERIFIER_nondet_float(); _x_x_9 = __VERIFIER_nondet_float(); _x_x_8 = __VERIFIER_nondet_float(); _x_x_11 = __VERIFIER_nondet_float(); _x_x_10 = __VERIFIER_nondet_float(); _x_x_12 = __VERIFIER_nondet_float(); _x_x_13 = __VERIFIER_nondet_float(); _x_x_14 = __VERIFIER_nondet_float(); _x_x_16 = __VERIFIER_nondet_float(); _x_x_19 = __VERIFIER_nondet_float(); _x_x_15 = __VERIFIER_nondet_float(); _x_x_22 = __VERIFIER_nondet_float(); _x_x_0 = __VERIFIER_nondet_float(); _x_x_18 = __VERIFIER_nondet_float(); _x_x_23 = __VERIFIER_nondet_float(); _x_x_20 = __VERIFIER_nondet_float(); _x_x_25 = __VERIFIER_nondet_float(); _x_x_26 = __VERIFIER_nondet_float(); _x_x_24 = __VERIFIER_nondet_float(); _x_x_28 = __VERIFIER_nondet_float(); _x_x_27 = __VERIFIER_nondet_float(); _x_x_29 = __VERIFIER_nondet_float(); _x_x_32 = __VERIFIER_nondet_float(); _x_x_33 = __VERIFIER_nondet_float(); _x_x_4 = __VERIFIER_nondet_float(); __ok = ((((((((((((((((((((((((((((((((((((((((x_35 + (-1.0 * _x_x_0)) <= -4.0) && (((x_34 + (-1.0 * _x_x_0)) <= -19.0) && (((x_33 + (-1.0 * _x_x_0)) <= -17.0) && (((x_32 + (-1.0 * _x_x_0)) <= -16.0) && (((x_28 + (-1.0 * _x_x_0)) <= -5.0) && (((x_25 + (-1.0 * _x_x_0)) <= -17.0) && (((x_24 + (-1.0 * _x_x_0)) <= -12.0) && (((x_22 + (-1.0 * _x_x_0)) <= -3.0) && (((x_21 + (-1.0 * _x_x_0)) <= -7.0) && (((x_20 + (-1.0 * _x_x_0)) <= -2.0) && (((x_14 + (-1.0 * _x_x_0)) <= -8.0) && (((x_13 + (-1.0 * _x_x_0)) <= -13.0) && (((x_12 + (-1.0 * _x_x_0)) <= -8.0) && (((x_10 + (-1.0 * _x_x_0)) <= -2.0) && (((x_4 + (-1.0 * _x_x_0)) <= -18.0) && (((x_2 + (-1.0 * _x_x_0)) <= -10.0) && (((x_0 + (-1.0 * _x_x_0)) <= -10.0) && ((x_1 + (-1.0 * _x_x_0)) <= -3.0)))))))))))))))))) && (((x_35 + (-1.0 * _x_x_0)) == -4.0) || (((x_34 + (-1.0 * _x_x_0)) == -19.0) || (((x_33 + (-1.0 * _x_x_0)) == -17.0) || (((x_32 + (-1.0 * _x_x_0)) == -16.0) || (((x_28 + (-1.0 * _x_x_0)) == -5.0) || (((x_25 + (-1.0 * _x_x_0)) == -17.0) || (((x_24 + (-1.0 * _x_x_0)) == -12.0) || (((x_22 + (-1.0 * _x_x_0)) == -3.0) || (((x_21 + (-1.0 * _x_x_0)) == -7.0) || (((x_20 + (-1.0 * _x_x_0)) == -2.0) || (((x_14 + (-1.0 * _x_x_0)) == -8.0) || (((x_13 + (-1.0 * _x_x_0)) == -13.0) || (((x_12 + (-1.0 * _x_x_0)) == -8.0) || (((x_10 + (-1.0 * _x_x_0)) == -2.0) || (((x_4 + (-1.0 * _x_x_0)) == -18.0) || (((x_2 + (-1.0 * _x_x_0)) == -10.0) || (((x_0 + (-1.0 * _x_x_0)) == -10.0) || ((x_1 + (-1.0 * _x_x_0)) == -3.0))))))))))))))))))) && ((((x_34 + (-1.0 * _x_x_1)) <= -8.0) && (((x_33 + (-1.0 * _x_x_1)) <= -15.0) && (((x_32 + (-1.0 * _x_x_1)) <= -7.0) && (((x_31 + (-1.0 * _x_x_1)) <= -20.0) && (((x_30 + (-1.0 * _x_x_1)) <= -4.0) && (((x_29 + (-1.0 * _x_x_1)) <= -3.0) && (((x_27 + (-1.0 * _x_x_1)) <= -20.0) && (((x_24 + (-1.0 * _x_x_1)) <= -3.0) && (((x_23 + (-1.0 * _x_x_1)) <= -2.0) && (((x_22 + (-1.0 * _x_x_1)) <= -10.0) && (((x_21 + (-1.0 * _x_x_1)) <= -11.0) && (((x_20 + (-1.0 * _x_x_1)) <= -5.0) && (((x_16 + (-1.0 * _x_x_1)) <= -1.0) && (((x_11 + (-1.0 * _x_x_1)) <= -9.0) && (((x_8 + (-1.0 * _x_x_1)) <= -1.0) && (((x_2 + (-1.0 * _x_x_1)) <= -7.0) && (((x_0 + (-1.0 * _x_x_1)) <= -20.0) && ((x_1 + (-1.0 * _x_x_1)) <= -3.0)))))))))))))))))) && (((x_34 + (-1.0 * _x_x_1)) == -8.0) || (((x_33 + (-1.0 * _x_x_1)) == -15.0) || (((x_32 + (-1.0 * _x_x_1)) == -7.0) || (((x_31 + (-1.0 * _x_x_1)) == -20.0) || (((x_30 + (-1.0 * _x_x_1)) == -4.0) || (((x_29 + (-1.0 * _x_x_1)) == -3.0) || (((x_27 + (-1.0 * _x_x_1)) == -20.0) || (((x_24 + (-1.0 * _x_x_1)) == -3.0) || (((x_23 + (-1.0 * _x_x_1)) == -2.0) || (((x_22 + (-1.0 * _x_x_1)) == -10.0) || (((x_21 + (-1.0 * _x_x_1)) == -11.0) || (((x_20 + (-1.0 * _x_x_1)) == -5.0) || (((x_16 + (-1.0 * _x_x_1)) == -1.0) || (((x_11 + (-1.0 * _x_x_1)) == -9.0) || (((x_8 + (-1.0 * _x_x_1)) == -1.0) || (((x_2 + (-1.0 * _x_x_1)) == -7.0) || (((x_0 + (-1.0 * _x_x_1)) == -20.0) || ((x_1 + (-1.0 * _x_x_1)) == -3.0)))))))))))))))))))) && ((((x_35 + (-1.0 * _x_x_2)) <= -6.0) && (((x_33 + (-1.0 * _x_x_2)) <= -20.0) && (((x_32 + (-1.0 * _x_x_2)) <= -18.0) && (((x_31 + (-1.0 * _x_x_2)) <= -18.0) && (((x_30 + (-1.0 * _x_x_2)) <= -17.0) && (((x_23 + (-1.0 * _x_x_2)) <= -10.0) && (((x_22 + (-1.0 * _x_x_2)) <= -14.0) && (((x_20 + (-1.0 * _x_x_2)) <= -4.0) && (((x_19 + (-1.0 * _x_x_2)) <= -1.0) && (((x_16 + (-1.0 * _x_x_2)) <= -20.0) && (((x_15 + (-1.0 * _x_x_2)) <= -1.0) && (((x_14 + (-1.0 * _x_x_2)) <= -6.0) && (((x_13 + (-1.0 * _x_x_2)) <= -5.0) && (((x_9 + (-1.0 * _x_x_2)) <= -12.0) && (((x_7 + (-1.0 * _x_x_2)) <= -16.0) && (((x_6 + (-1.0 * _x_x_2)) <= -6.0) && (((x_3 + (-1.0 * _x_x_2)) <= -1.0) && ((x_5 + (-1.0 * _x_x_2)) <= -16.0)))))))))))))))))) && (((x_35 + (-1.0 * _x_x_2)) == -6.0) || (((x_33 + (-1.0 * _x_x_2)) == -20.0) || (((x_32 + (-1.0 * _x_x_2)) == -18.0) || (((x_31 + (-1.0 * _x_x_2)) == -18.0) || (((x_30 + (-1.0 * _x_x_2)) == -17.0) || (((x_23 + (-1.0 * _x_x_2)) == -10.0) || (((x_22 + (-1.0 * _x_x_2)) == -14.0) || (((x_20 + (-1.0 * _x_x_2)) == -4.0) || (((x_19 + (-1.0 * _x_x_2)) == -1.0) || (((x_16 + (-1.0 * _x_x_2)) == -20.0) || (((x_15 + (-1.0 * _x_x_2)) == -1.0) || (((x_14 + (-1.0 * _x_x_2)) == -6.0) || (((x_13 + (-1.0 * _x_x_2)) == -5.0) || (((x_9 + (-1.0 * _x_x_2)) == -12.0) || (((x_7 + (-1.0 * _x_x_2)) == -16.0) || (((x_6 + (-1.0 * _x_x_2)) == -6.0) || (((x_3 + (-1.0 * _x_x_2)) == -1.0) || ((x_5 + (-1.0 * _x_x_2)) == -16.0)))))))))))))))))))) && ((((x_33 + (-1.0 * _x_x_3)) <= -19.0) && (((x_32 + (-1.0 * _x_x_3)) <= -6.0) && (((x_28 + (-1.0 * _x_x_3)) <= -10.0) && (((x_25 + (-1.0 * _x_x_3)) <= -9.0) && (((x_24 + (-1.0 * _x_x_3)) <= -19.0) && (((x_23 + (-1.0 * _x_x_3)) <= -1.0) && (((x_21 + (-1.0 * _x_x_3)) <= -3.0) && (((x_20 + (-1.0 * _x_x_3)) <= -2.0) && (((x_19 + (-1.0 * _x_x_3)) <= -5.0) && (((x_16 + (-1.0 * _x_x_3)) <= -14.0) && (((x_15 + (-1.0 * _x_x_3)) <= -10.0) && (((x_11 + (-1.0 * _x_x_3)) <= -11.0) && (((x_8 + (-1.0 * _x_x_3)) <= -9.0) && (((x_7 + (-1.0 * _x_x_3)) <= -5.0) && (((x_5 + (-1.0 * _x_x_3)) <= -17.0) && (((x_3 + (-1.0 * _x_x_3)) <= -17.0) && (((x_0 + (-1.0 * _x_x_3)) <= -17.0) && ((x_1 + (-1.0 * _x_x_3)) <= -10.0)))))))))))))))))) && (((x_33 + (-1.0 * _x_x_3)) == -19.0) || (((x_32 + (-1.0 * _x_x_3)) == -6.0) || (((x_28 + (-1.0 * _x_x_3)) == -10.0) || (((x_25 + (-1.0 * _x_x_3)) == -9.0) || (((x_24 + (-1.0 * _x_x_3)) == -19.0) || (((x_23 + (-1.0 * _x_x_3)) == -1.0) || (((x_21 + (-1.0 * _x_x_3)) == -3.0) || (((x_20 + (-1.0 * _x_x_3)) == -2.0) || (((x_19 + (-1.0 * _x_x_3)) == -5.0) || (((x_16 + (-1.0 * _x_x_3)) == -14.0) || (((x_15 + (-1.0 * _x_x_3)) == -10.0) || (((x_11 + (-1.0 * _x_x_3)) == -11.0) || (((x_8 + (-1.0 * _x_x_3)) == -9.0) || (((x_7 + (-1.0 * _x_x_3)) == -5.0) || (((x_5 + (-1.0 * _x_x_3)) == -17.0) || (((x_3 + (-1.0 * _x_x_3)) == -17.0) || (((x_0 + (-1.0 * _x_x_3)) == -17.0) || ((x_1 + (-1.0 * _x_x_3)) == -10.0)))))))))))))))))))) && ((((x_33 + (-1.0 * _x_x_4)) <= -6.0) && (((x_32 + (-1.0 * _x_x_4)) <= -10.0) && (((x_31 + (-1.0 * _x_x_4)) <= -8.0) && (((x_30 + (-1.0 * _x_x_4)) <= -6.0) && (((x_26 + (-1.0 * _x_x_4)) <= -20.0) && (((x_23 + (-1.0 * _x_x_4)) <= -13.0) && (((x_18 + (-1.0 * _x_x_4)) <= -13.0) && (((x_17 + (-1.0 * _x_x_4)) <= -17.0) && (((x_16 + (-1.0 * _x_x_4)) <= -3.0) && (((x_15 + (-1.0 * _x_x_4)) <= -12.0) && (((x_14 + (-1.0 * _x_x_4)) <= -18.0) && (((x_12 + (-1.0 * _x_x_4)) <= -4.0) && (((x_10 + (-1.0 * _x_x_4)) <= -1.0) && (((x_9 + (-1.0 * _x_x_4)) <= -8.0) && (((x_8 + (-1.0 * _x_x_4)) <= -9.0) && (((x_6 + (-1.0 * _x_x_4)) <= -4.0) && (((x_0 + (-1.0 * _x_x_4)) <= -1.0) && ((x_3 + (-1.0 * _x_x_4)) <= -5.0)))))))))))))))))) && (((x_33 + (-1.0 * _x_x_4)) == -6.0) || (((x_32 + (-1.0 * _x_x_4)) == -10.0) || (((x_31 + (-1.0 * _x_x_4)) == -8.0) || (((x_30 + (-1.0 * _x_x_4)) == -6.0) || (((x_26 + (-1.0 * _x_x_4)) == -20.0) || (((x_23 + (-1.0 * _x_x_4)) == -13.0) || (((x_18 + (-1.0 * _x_x_4)) == -13.0) || (((x_17 + (-1.0 * _x_x_4)) == -17.0) || (((x_16 + (-1.0 * _x_x_4)) == -3.0) || (((x_15 + (-1.0 * _x_x_4)) == -12.0) || (((x_14 + (-1.0 * _x_x_4)) == -18.0) || (((x_12 + (-1.0 * _x_x_4)) == -4.0) || (((x_10 + (-1.0 * _x_x_4)) == -1.0) || (((x_9 + (-1.0 * _x_x_4)) == -8.0) || (((x_8 + (-1.0 * _x_x_4)) == -9.0) || (((x_6 + (-1.0 * _x_x_4)) == -4.0) || (((x_0 + (-1.0 * _x_x_4)) == -1.0) || ((x_3 + (-1.0 * _x_x_4)) == -5.0)))))))))))))))))))) && ((((x_33 + (-1.0 * _x_x_5)) <= -2.0) && (((x_32 + (-1.0 * _x_x_5)) <= -7.0) && (((x_30 + (-1.0 * _x_x_5)) <= -10.0) && (((x_28 + (-1.0 * _x_x_5)) <= -2.0) && (((x_27 + (-1.0 * _x_x_5)) <= -5.0) && (((x_26 + (-1.0 * _x_x_5)) <= -14.0) && (((x_25 + (-1.0 * _x_x_5)) <= -18.0) && (((x_24 + (-1.0 * _x_x_5)) <= -12.0) && (((x_22 + (-1.0 * _x_x_5)) <= -7.0) && (((x_20 + (-1.0 * _x_x_5)) <= -19.0) && (((x_19 + (-1.0 * _x_x_5)) <= -12.0) && (((x_17 + (-1.0 * _x_x_5)) <= -12.0) && (((x_15 + (-1.0 * _x_x_5)) <= -17.0) && (((x_14 + (-1.0 * _x_x_5)) <= -14.0) && (((x_10 + (-1.0 * _x_x_5)) <= -4.0) && (((x_6 + (-1.0 * _x_x_5)) <= -1.0) && (((x_0 + (-1.0 * _x_x_5)) <= -20.0) && ((x_2 + (-1.0 * _x_x_5)) <= -2.0)))))))))))))))))) && (((x_33 + (-1.0 * _x_x_5)) == -2.0) || (((x_32 + (-1.0 * _x_x_5)) == -7.0) || (((x_30 + (-1.0 * _x_x_5)) == -10.0) || (((x_28 + (-1.0 * _x_x_5)) == -2.0) || (((x_27 + (-1.0 * _x_x_5)) == -5.0) || (((x_26 + (-1.0 * _x_x_5)) == -14.0) || (((x_25 + (-1.0 * _x_x_5)) == -18.0) || (((x_24 + (-1.0 * _x_x_5)) == -12.0) || (((x_22 + (-1.0 * _x_x_5)) == -7.0) || (((x_20 + (-1.0 * _x_x_5)) == -19.0) || (((x_19 + (-1.0 * _x_x_5)) == -12.0) || (((x_17 + (-1.0 * _x_x_5)) == -12.0) || (((x_15 + (-1.0 * _x_x_5)) == -17.0) || (((x_14 + (-1.0 * _x_x_5)) == -14.0) || (((x_10 + (-1.0 * _x_x_5)) == -4.0) || (((x_6 + (-1.0 * _x_x_5)) == -1.0) || (((x_0 + (-1.0 * _x_x_5)) == -20.0) || ((x_2 + (-1.0 * _x_x_5)) == -2.0)))))))))))))))))))) && ((((x_35 + (-1.0 * _x_x_6)) <= -19.0) && (((x_34 + (-1.0 * _x_x_6)) <= -3.0) && (((x_31 + (-1.0 * _x_x_6)) <= -15.0) && (((x_29 + (-1.0 * _x_x_6)) <= -2.0) && (((x_28 + (-1.0 * _x_x_6)) <= -1.0) && (((x_24 + (-1.0 * _x_x_6)) <= -8.0) && (((x_22 + (-1.0 * _x_x_6)) <= -12.0) && (((x_21 + (-1.0 * _x_x_6)) <= -18.0) && (((x_19 + (-1.0 * _x_x_6)) <= -11.0) && (((x_17 + (-1.0 * _x_x_6)) <= -9.0) && (((x_16 + (-1.0 * _x_x_6)) <= -5.0) && (((x_13 + (-1.0 * _x_x_6)) <= -10.0) && (((x_10 + (-1.0 * _x_x_6)) <= -1.0) && (((x_9 + (-1.0 * _x_x_6)) <= -15.0) && (((x_8 + (-1.0 * _x_x_6)) <= -19.0) && (((x_7 + (-1.0 * _x_x_6)) <= -4.0) && (((x_0 + (-1.0 * _x_x_6)) <= -13.0) && ((x_2 + (-1.0 * _x_x_6)) <= -6.0)))))))))))))))))) && (((x_35 + (-1.0 * _x_x_6)) == -19.0) || (((x_34 + (-1.0 * _x_x_6)) == -3.0) || (((x_31 + (-1.0 * _x_x_6)) == -15.0) || (((x_29 + (-1.0 * _x_x_6)) == -2.0) || (((x_28 + (-1.0 * _x_x_6)) == -1.0) || (((x_24 + (-1.0 * _x_x_6)) == -8.0) || (((x_22 + (-1.0 * _x_x_6)) == -12.0) || (((x_21 + (-1.0 * _x_x_6)) == -18.0) || (((x_19 + (-1.0 * _x_x_6)) == -11.0) || (((x_17 + (-1.0 * _x_x_6)) == -9.0) || (((x_16 + (-1.0 * _x_x_6)) == -5.0) || (((x_13 + (-1.0 * _x_x_6)) == -10.0) || (((x_10 + (-1.0 * _x_x_6)) == -1.0) || (((x_9 + (-1.0 * _x_x_6)) == -15.0) || (((x_8 + (-1.0 * _x_x_6)) == -19.0) || (((x_7 + (-1.0 * _x_x_6)) == -4.0) || (((x_0 + (-1.0 * _x_x_6)) == -13.0) || ((x_2 + (-1.0 * _x_x_6)) == -6.0)))))))))))))))))))) && ((((x_35 + (-1.0 * _x_x_7)) <= -10.0) && (((x_34 + (-1.0 * _x_x_7)) <= -19.0) && (((x_33 + (-1.0 * _x_x_7)) <= -13.0) && (((x_29 + (-1.0 * _x_x_7)) <= -2.0) && (((x_27 + (-1.0 * _x_x_7)) <= -6.0) && (((x_26 + (-1.0 * _x_x_7)) <= -11.0) && (((x_24 + (-1.0 * _x_x_7)) <= -19.0) && (((x_23 + (-1.0 * _x_x_7)) <= -13.0) && (((x_21 + (-1.0 * _x_x_7)) <= -14.0) && (((x_19 + (-1.0 * _x_x_7)) <= -16.0) && (((x_16 + (-1.0 * _x_x_7)) <= -13.0) && (((x_15 + (-1.0 * _x_x_7)) <= -4.0) && (((x_14 + (-1.0 * _x_x_7)) <= -20.0) && (((x_13 + (-1.0 * _x_x_7)) <= -12.0) && (((x_11 + (-1.0 * _x_x_7)) <= -12.0) && (((x_8 + (-1.0 * _x_x_7)) <= -12.0) && (((x_0 + (-1.0 * _x_x_7)) <= -9.0) && ((x_4 + (-1.0 * _x_x_7)) <= -15.0)))))))))))))))))) && (((x_35 + (-1.0 * _x_x_7)) == -10.0) || (((x_34 + (-1.0 * _x_x_7)) == -19.0) || (((x_33 + (-1.0 * _x_x_7)) == -13.0) || (((x_29 + (-1.0 * _x_x_7)) == -2.0) || (((x_27 + (-1.0 * _x_x_7)) == -6.0) || (((x_26 + (-1.0 * _x_x_7)) == -11.0) || (((x_24 + (-1.0 * _x_x_7)) == -19.0) || (((x_23 + (-1.0 * _x_x_7)) == -13.0) || (((x_21 + (-1.0 * _x_x_7)) == -14.0) || (((x_19 + (-1.0 * _x_x_7)) == -16.0) || (((x_16 + (-1.0 * _x_x_7)) == -13.0) || (((x_15 + (-1.0 * _x_x_7)) == -4.0) || (((x_14 + (-1.0 * _x_x_7)) == -20.0) || (((x_13 + (-1.0 * _x_x_7)) == -12.0) || (((x_11 + (-1.0 * _x_x_7)) == -12.0) || (((x_8 + (-1.0 * _x_x_7)) == -12.0) || (((x_0 + (-1.0 * _x_x_7)) == -9.0) || ((x_4 + (-1.0 * _x_x_7)) == -15.0)))))))))))))))))))) && ((((x_34 + (-1.0 * _x_x_8)) <= -20.0) && (((x_30 + (-1.0 * _x_x_8)) <= -20.0) && (((x_28 + (-1.0 * _x_x_8)) <= -12.0) && (((x_27 + (-1.0 * _x_x_8)) <= -3.0) && (((x_24 + (-1.0 * _x_x_8)) <= -9.0) && (((x_22 + (-1.0 * _x_x_8)) <= -13.0) && (((x_21 + (-1.0 * _x_x_8)) <= -1.0) && (((x_20 + (-1.0 * _x_x_8)) <= -12.0) && (((x_19 + (-1.0 * _x_x_8)) <= -18.0) && (((x_17 + (-1.0 * _x_x_8)) <= -10.0) && (((x_16 + (-1.0 * _x_x_8)) <= -11.0) && (((x_12 + (-1.0 * _x_x_8)) <= -14.0) && (((x_11 + (-1.0 * _x_x_8)) <= -15.0) && (((x_10 + (-1.0 * _x_x_8)) <= -5.0) && (((x_8 + (-1.0 * _x_x_8)) <= -18.0) && (((x_6 + (-1.0 * _x_x_8)) <= -4.0) && (((x_1 + (-1.0 * _x_x_8)) <= -20.0) && ((x_5 + (-1.0 * _x_x_8)) <= -13.0)))))))))))))))))) && (((x_34 + (-1.0 * _x_x_8)) == -20.0) || (((x_30 + (-1.0 * _x_x_8)) == -20.0) || (((x_28 + (-1.0 * _x_x_8)) == -12.0) || (((x_27 + (-1.0 * _x_x_8)) == -3.0) || (((x_24 + (-1.0 * _x_x_8)) == -9.0) || (((x_22 + (-1.0 * _x_x_8)) == -13.0) || (((x_21 + (-1.0 * _x_x_8)) == -1.0) || (((x_20 + (-1.0 * _x_x_8)) == -12.0) || (((x_19 + (-1.0 * _x_x_8)) == -18.0) || (((x_17 + (-1.0 * _x_x_8)) == -10.0) || (((x_16 + (-1.0 * _x_x_8)) == -11.0) || (((x_12 + (-1.0 * _x_x_8)) == -14.0) || (((x_11 + (-1.0 * _x_x_8)) == -15.0) || (((x_10 + (-1.0 * _x_x_8)) == -5.0) || (((x_8 + (-1.0 * _x_x_8)) == -18.0) || (((x_6 + (-1.0 * _x_x_8)) == -4.0) || (((x_1 + (-1.0 * _x_x_8)) == -20.0) || ((x_5 + (-1.0 * _x_x_8)) == -13.0)))))))))))))))))))) && ((((x_34 + (-1.0 * _x_x_9)) <= -14.0) && (((x_33 + (-1.0 * _x_x_9)) <= -16.0) && (((x_32 + (-1.0 * _x_x_9)) <= -5.0) && (((x_30 + (-1.0 * _x_x_9)) <= -10.0) && (((x_27 + (-1.0 * _x_x_9)) <= -4.0) && (((x_23 + (-1.0 * _x_x_9)) <= -11.0) && (((x_21 + (-1.0 * _x_x_9)) <= -5.0) && (((x_20 + (-1.0 * _x_x_9)) <= -7.0) && (((x_19 + (-1.0 * _x_x_9)) <= -19.0) && (((x_17 + (-1.0 * _x_x_9)) <= -20.0) && (((x_13 + (-1.0 * _x_x_9)) <= -2.0) && (((x_10 + (-1.0 * _x_x_9)) <= -14.0) && (((x_9 + (-1.0 * _x_x_9)) <= -13.0) && (((x_7 + (-1.0 * _x_x_9)) <= -12.0) && (((x_3 + (-1.0 * _x_x_9)) <= -15.0) && (((x_2 + (-1.0 * _x_x_9)) <= -17.0) && (((x_0 + (-1.0 * _x_x_9)) <= -10.0) && ((x_1 + (-1.0 * _x_x_9)) <= -14.0)))))))))))))))))) && (((x_34 + (-1.0 * _x_x_9)) == -14.0) || (((x_33 + (-1.0 * _x_x_9)) == -16.0) || (((x_32 + (-1.0 * _x_x_9)) == -5.0) || (((x_30 + (-1.0 * _x_x_9)) == -10.0) || (((x_27 + (-1.0 * _x_x_9)) == -4.0) || (((x_23 + (-1.0 * _x_x_9)) == -11.0) || (((x_21 + (-1.0 * _x_x_9)) == -5.0) || (((x_20 + (-1.0 * _x_x_9)) == -7.0) || (((x_19 + (-1.0 * _x_x_9)) == -19.0) || (((x_17 + (-1.0 * _x_x_9)) == -20.0) || (((x_13 + (-1.0 * _x_x_9)) == -2.0) || (((x_10 + (-1.0 * _x_x_9)) == -14.0) || (((x_9 + (-1.0 * _x_x_9)) == -13.0) || (((x_7 + (-1.0 * _x_x_9)) == -12.0) || (((x_3 + (-1.0 * _x_x_9)) == -15.0) || (((x_2 + (-1.0 * _x_x_9)) == -17.0) || (((x_0 + (-1.0 * _x_x_9)) == -10.0) || ((x_1 + (-1.0 * _x_x_9)) == -14.0)))))))))))))))))))) && ((((x_28 + (-1.0 * _x_x_10)) <= -9.0) && (((x_25 + (-1.0 * _x_x_10)) <= -1.0) && (((x_24 + (-1.0 * _x_x_10)) <= -12.0) && (((x_23 + (-1.0 * _x_x_10)) <= -19.0) && (((x_19 + (-1.0 * _x_x_10)) <= -12.0) && (((x_15 + (-1.0 * _x_x_10)) <= -5.0) && (((x_14 + (-1.0 * _x_x_10)) <= -13.0) && (((x_13 + (-1.0 * _x_x_10)) <= -1.0) && (((x_10 + (-1.0 * _x_x_10)) <= -4.0) && (((x_9 + (-1.0 * _x_x_10)) <= -7.0) && (((x_8 + (-1.0 * _x_x_10)) <= -17.0) && (((x_6 + (-1.0 * _x_x_10)) <= -20.0) && (((x_5 + (-1.0 * _x_x_10)) <= -4.0) && (((x_4 + (-1.0 * _x_x_10)) <= -18.0) && (((x_3 + (-1.0 * _x_x_10)) <= -12.0) && (((x_2 + (-1.0 * _x_x_10)) <= -1.0) && (((x_0 + (-1.0 * _x_x_10)) <= -3.0) && ((x_1 + (-1.0 * _x_x_10)) <= -15.0)))))))))))))))))) && (((x_28 + (-1.0 * _x_x_10)) == -9.0) || (((x_25 + (-1.0 * _x_x_10)) == -1.0) || (((x_24 + (-1.0 * _x_x_10)) == -12.0) || (((x_23 + (-1.0 * _x_x_10)) == -19.0) || (((x_19 + (-1.0 * _x_x_10)) == -12.0) || (((x_15 + (-1.0 * _x_x_10)) == -5.0) || (((x_14 + (-1.0 * _x_x_10)) == -13.0) || (((x_13 + (-1.0 * _x_x_10)) == -1.0) || (((x_10 + (-1.0 * _x_x_10)) == -4.0) || (((x_9 + (-1.0 * _x_x_10)) == -7.0) || (((x_8 + (-1.0 * _x_x_10)) == -17.0) || (((x_6 + (-1.0 * _x_x_10)) == -20.0) || (((x_5 + (-1.0 * _x_x_10)) == -4.0) || (((x_4 + (-1.0 * _x_x_10)) == -18.0) || (((x_3 + (-1.0 * _x_x_10)) == -12.0) || (((x_2 + (-1.0 * _x_x_10)) == -1.0) || (((x_0 + (-1.0 * _x_x_10)) == -3.0) || ((x_1 + (-1.0 * _x_x_10)) == -15.0)))))))))))))))))))) && ((((x_35 + (-1.0 * _x_x_11)) <= -20.0) && (((x_34 + (-1.0 * _x_x_11)) <= -15.0) && (((x_33 + (-1.0 * _x_x_11)) <= -14.0) && (((x_30 + (-1.0 * _x_x_11)) <= -7.0) && (((x_27 + (-1.0 * _x_x_11)) <= -20.0) && (((x_26 + (-1.0 * _x_x_11)) <= -10.0) && (((x_25 + (-1.0 * _x_x_11)) <= -15.0) && (((x_22 + (-1.0 * _x_x_11)) <= -11.0) && (((x_21 + (-1.0 * _x_x_11)) <= -4.0) && (((x_20 + (-1.0 * _x_x_11)) <= -17.0) && (((x_19 + (-1.0 * _x_x_11)) <= -3.0) && (((x_18 + (-1.0 * _x_x_11)) <= -17.0) && (((x_16 + (-1.0 * _x_x_11)) <= -18.0) && (((x_13 + (-1.0 * _x_x_11)) <= -9.0) && (((x_8 + (-1.0 * _x_x_11)) <= -6.0) && (((x_7 + (-1.0 * _x_x_11)) <= -3.0) && (((x_2 + (-1.0 * _x_x_11)) <= -10.0) && ((x_5 + (-1.0 * _x_x_11)) <= -9.0)))))))))))))))))) && (((x_35 + (-1.0 * _x_x_11)) == -20.0) || (((x_34 + (-1.0 * _x_x_11)) == -15.0) || (((x_33 + (-1.0 * _x_x_11)) == -14.0) || (((x_30 + (-1.0 * _x_x_11)) == -7.0) || (((x_27 + (-1.0 * _x_x_11)) == -20.0) || (((x_26 + (-1.0 * _x_x_11)) == -10.0) || (((x_25 + (-1.0 * _x_x_11)) == -15.0) || (((x_22 + (-1.0 * _x_x_11)) == -11.0) || (((x_21 + (-1.0 * _x_x_11)) == -4.0) || (((x_20 + (-1.0 * _x_x_11)) == -17.0) || (((x_19 + (-1.0 * _x_x_11)) == -3.0) || (((x_18 + (-1.0 * _x_x_11)) == -17.0) || (((x_16 + (-1.0 * _x_x_11)) == -18.0) || (((x_13 + (-1.0 * _x_x_11)) == -9.0) || (((x_8 + (-1.0 * _x_x_11)) == -6.0) || (((x_7 + (-1.0 * _x_x_11)) == -3.0) || (((x_2 + (-1.0 * _x_x_11)) == -10.0) || ((x_5 + (-1.0 * _x_x_11)) == -9.0)))))))))))))))))))) && ((((x_35 + (-1.0 * _x_x_12)) <= -12.0) && (((x_33 + (-1.0 * _x_x_12)) <= -14.0) && (((x_32 + (-1.0 * _x_x_12)) <= -15.0) && (((x_31 + (-1.0 * _x_x_12)) <= -9.0) && (((x_27 + (-1.0 * _x_x_12)) <= -14.0) && (((x_25 + (-1.0 * _x_x_12)) <= -18.0) && (((x_24 + (-1.0 * _x_x_12)) <= -17.0) && (((x_23 + (-1.0 * _x_x_12)) <= -9.0) && (((x_20 + (-1.0 * _x_x_12)) <= -17.0) && (((x_13 + (-1.0 * _x_x_12)) <= -20.0) && (((x_12 + (-1.0 * _x_x_12)) <= -5.0) && (((x_11 + (-1.0 * _x_x_12)) <= -6.0) && (((x_9 + (-1.0 * _x_x_12)) <= -5.0) && (((x_7 + (-1.0 * _x_x_12)) <= -2.0) && (((x_6 + (-1.0 * _x_x_12)) <= -8.0) && (((x_4 + (-1.0 * _x_x_12)) <= -9.0) && (((x_1 + (-1.0 * _x_x_12)) <= -9.0) && ((x_2 + (-1.0 * _x_x_12)) <= -16.0)))))))))))))))))) && (((x_35 + (-1.0 * _x_x_12)) == -12.0) || (((x_33 + (-1.0 * _x_x_12)) == -14.0) || (((x_32 + (-1.0 * _x_x_12)) == -15.0) || (((x_31 + (-1.0 * _x_x_12)) == -9.0) || (((x_27 + (-1.0 * _x_x_12)) == -14.0) || (((x_25 + (-1.0 * _x_x_12)) == -18.0) || (((x_24 + (-1.0 * _x_x_12)) == -17.0) || (((x_23 + (-1.0 * _x_x_12)) == -9.0) || (((x_20 + (-1.0 * _x_x_12)) == -17.0) || (((x_13 + (-1.0 * _x_x_12)) == -20.0) || (((x_12 + (-1.0 * _x_x_12)) == -5.0) || (((x_11 + (-1.0 * _x_x_12)) == -6.0) || (((x_9 + (-1.0 * _x_x_12)) == -5.0) || (((x_7 + (-1.0 * _x_x_12)) == -2.0) || (((x_6 + (-1.0 * _x_x_12)) == -8.0) || (((x_4 + (-1.0 * _x_x_12)) == -9.0) || (((x_1 + (-1.0 * _x_x_12)) == -9.0) || ((x_2 + (-1.0 * _x_x_12)) == -16.0)))))))))))))))))))) && ((((x_34 + (-1.0 * _x_x_13)) <= -12.0) && (((x_27 + (-1.0 * _x_x_13)) <= -5.0) && (((x_26 + (-1.0 * _x_x_13)) <= -7.0) && (((x_22 + (-1.0 * _x_x_13)) <= -1.0) && (((x_21 + (-1.0 * _x_x_13)) <= -13.0) && (((x_20 + (-1.0 * _x_x_13)) <= -14.0) && (((x_17 + (-1.0 * _x_x_13)) <= -9.0) && (((x_16 + (-1.0 * _x_x_13)) <= -16.0) && (((x_15 + (-1.0 * _x_x_13)) <= -19.0) && (((x_14 + (-1.0 * _x_x_13)) <= -16.0) && (((x_13 + (-1.0 * _x_x_13)) <= -12.0) && (((x_12 + (-1.0 * _x_x_13)) <= -15.0) && (((x_10 + (-1.0 * _x_x_13)) <= -20.0) && (((x_9 + (-1.0 * _x_x_13)) <= -11.0) && (((x_8 + (-1.0 * _x_x_13)) <= -16.0) && (((x_5 + (-1.0 * _x_x_13)) <= -12.0) && (((x_1 + (-1.0 * _x_x_13)) <= -18.0) && ((x_3 + (-1.0 * _x_x_13)) <= -18.0)))))))))))))))))) && (((x_34 + (-1.0 * _x_x_13)) == -12.0) || (((x_27 + (-1.0 * _x_x_13)) == -5.0) || (((x_26 + (-1.0 * _x_x_13)) == -7.0) || (((x_22 + (-1.0 * _x_x_13)) == -1.0) || (((x_21 + (-1.0 * _x_x_13)) == -13.0) || (((x_20 + (-1.0 * _x_x_13)) == -14.0) || (((x_17 + (-1.0 * _x_x_13)) == -9.0) || (((x_16 + (-1.0 * _x_x_13)) == -16.0) || (((x_15 + (-1.0 * _x_x_13)) == -19.0) || (((x_14 + (-1.0 * _x_x_13)) == -16.0) || (((x_13 + (-1.0 * _x_x_13)) == -12.0) || (((x_12 + (-1.0 * _x_x_13)) == -15.0) || (((x_10 + (-1.0 * _x_x_13)) == -20.0) || (((x_9 + (-1.0 * _x_x_13)) == -11.0) || (((x_8 + (-1.0 * _x_x_13)) == -16.0) || (((x_5 + (-1.0 * _x_x_13)) == -12.0) || (((x_1 + (-1.0 * _x_x_13)) == -18.0) || ((x_3 + (-1.0 * _x_x_13)) == -18.0)))))))))))))))))))) && ((((x_29 + (-1.0 * _x_x_14)) <= -6.0) && (((x_24 + (-1.0 * _x_x_14)) <= -7.0) && (((x_22 + (-1.0 * _x_x_14)) <= -10.0) && (((x_21 + (-1.0 * _x_x_14)) <= -9.0) && (((x_20 + (-1.0 * _x_x_14)) <= -3.0) && (((x_19 + (-1.0 * _x_x_14)) <= -14.0) && (((x_18 + (-1.0 * _x_x_14)) <= -2.0) && (((x_16 + (-1.0 * _x_x_14)) <= -1.0) && (((x_15 + (-1.0 * _x_x_14)) <= -17.0) && (((x_14 + (-1.0 * _x_x_14)) <= -6.0) && (((x_13 + (-1.0 * _x_x_14)) <= -6.0) && (((x_12 + (-1.0 * _x_x_14)) <= -8.0) && (((x_8 + (-1.0 * _x_x_14)) <= -20.0) && (((x_6 + (-1.0 * _x_x_14)) <= -9.0) && (((x_5 + (-1.0 * _x_x_14)) <= -3.0) && (((x_3 + (-1.0 * _x_x_14)) <= -13.0) && (((x_0 + (-1.0 * _x_x_14)) <= -4.0) && ((x_1 + (-1.0 * _x_x_14)) <= -5.0)))))))))))))))))) && (((x_29 + (-1.0 * _x_x_14)) == -6.0) || (((x_24 + (-1.0 * _x_x_14)) == -7.0) || (((x_22 + (-1.0 * _x_x_14)) == -10.0) || (((x_21 + (-1.0 * _x_x_14)) == -9.0) || (((x_20 + (-1.0 * _x_x_14)) == -3.0) || (((x_19 + (-1.0 * _x_x_14)) == -14.0) || (((x_18 + (-1.0 * _x_x_14)) == -2.0) || (((x_16 + (-1.0 * _x_x_14)) == -1.0) || (((x_15 + (-1.0 * _x_x_14)) == -17.0) || (((x_14 + (-1.0 * _x_x_14)) == -6.0) || (((x_13 + (-1.0 * _x_x_14)) == -6.0) || (((x_12 + (-1.0 * _x_x_14)) == -8.0) || (((x_8 + (-1.0 * _x_x_14)) == -20.0) || (((x_6 + (-1.0 * _x_x_14)) == -9.0) || (((x_5 + (-1.0 * _x_x_14)) == -3.0) || (((x_3 + (-1.0 * _x_x_14)) == -13.0) || (((x_0 + (-1.0 * _x_x_14)) == -4.0) || ((x_1 + (-1.0 * _x_x_14)) == -5.0)))))))))))))))))))) && ((((x_35 + (-1.0 * _x_x_15)) <= -15.0) && (((x_33 + (-1.0 * _x_x_15)) <= -6.0) && (((x_32 + (-1.0 * _x_x_15)) <= -19.0) && (((x_31 + (-1.0 * _x_x_15)) <= -10.0) && (((x_30 + (-1.0 * _x_x_15)) <= -12.0) && (((x_28 + (-1.0 * _x_x_15)) <= -20.0) && (((x_27 + (-1.0 * _x_x_15)) <= -16.0) && (((x_25 + (-1.0 * _x_x_15)) <= -17.0) && (((x_23 + (-1.0 * _x_x_15)) <= -14.0) && (((x_21 + (-1.0 * _x_x_15)) <= -7.0) && (((x_20 + (-1.0 * _x_x_15)) <= -2.0) && (((x_18 + (-1.0 * _x_x_15)) <= -11.0) && (((x_16 + (-1.0 * _x_x_15)) <= -5.0) && (((x_15 + (-1.0 * _x_x_15)) <= -6.0) && (((x_13 + (-1.0 * _x_x_15)) <= -16.0) && (((x_4 + (-1.0 * _x_x_15)) <= -18.0) && (((x_2 + (-1.0 * _x_x_15)) <= -3.0) && ((x_3 + (-1.0 * _x_x_15)) <= -2.0)))))))))))))))))) && (((x_35 + (-1.0 * _x_x_15)) == -15.0) || (((x_33 + (-1.0 * _x_x_15)) == -6.0) || (((x_32 + (-1.0 * _x_x_15)) == -19.0) || (((x_31 + (-1.0 * _x_x_15)) == -10.0) || (((x_30 + (-1.0 * _x_x_15)) == -12.0) || (((x_28 + (-1.0 * _x_x_15)) == -20.0) || (((x_27 + (-1.0 * _x_x_15)) == -16.0) || (((x_25 + (-1.0 * _x_x_15)) == -17.0) || (((x_23 + (-1.0 * _x_x_15)) == -14.0) || (((x_21 + (-1.0 * _x_x_15)) == -7.0) || (((x_20 + (-1.0 * _x_x_15)) == -2.0) || (((x_18 + (-1.0 * _x_x_15)) == -11.0) || (((x_16 + (-1.0 * _x_x_15)) == -5.0) || (((x_15 + (-1.0 * _x_x_15)) == -6.0) || (((x_13 + (-1.0 * _x_x_15)) == -16.0) || (((x_4 + (-1.0 * _x_x_15)) == -18.0) || (((x_2 + (-1.0 * _x_x_15)) == -3.0) || ((x_3 + (-1.0 * _x_x_15)) == -2.0)))))))))))))))))))) && ((((x_35 + (-1.0 * _x_x_16)) <= -12.0) && (((x_34 + (-1.0 * _x_x_16)) <= -1.0) && (((x_31 + (-1.0 * _x_x_16)) <= -10.0) && (((x_28 + (-1.0 * _x_x_16)) <= -4.0) && (((x_26 + (-1.0 * _x_x_16)) <= -9.0) && (((x_24 + (-1.0 * _x_x_16)) <= -4.0) && (((x_23 + (-1.0 * _x_x_16)) <= -19.0) && (((x_20 + (-1.0 * _x_x_16)) <= -1.0) && (((x_19 + (-1.0 * _x_x_16)) <= -1.0) && (((x_16 + (-1.0 * _x_x_16)) <= -4.0) && (((x_15 + (-1.0 * _x_x_16)) <= -8.0) && (((x_14 + (-1.0 * _x_x_16)) <= -19.0) && (((x_13 + (-1.0 * _x_x_16)) <= -17.0) && (((x_11 + (-1.0 * _x_x_16)) <= -7.0) && (((x_9 + (-1.0 * _x_x_16)) <= -20.0) && (((x_7 + (-1.0 * _x_x_16)) <= -2.0) && (((x_0 + (-1.0 * _x_x_16)) <= -5.0) && ((x_2 + (-1.0 * _x_x_16)) <= -8.0)))))))))))))))))) && (((x_35 + (-1.0 * _x_x_16)) == -12.0) || (((x_34 + (-1.0 * _x_x_16)) == -1.0) || (((x_31 + (-1.0 * _x_x_16)) == -10.0) || (((x_28 + (-1.0 * _x_x_16)) == -4.0) || (((x_26 + (-1.0 * _x_x_16)) == -9.0) || (((x_24 + (-1.0 * _x_x_16)) == -4.0) || (((x_23 + (-1.0 * _x_x_16)) == -19.0) || (((x_20 + (-1.0 * _x_x_16)) == -1.0) || (((x_19 + (-1.0 * _x_x_16)) == -1.0) || (((x_16 + (-1.0 * _x_x_16)) == -4.0) || (((x_15 + (-1.0 * _x_x_16)) == -8.0) || (((x_14 + (-1.0 * _x_x_16)) == -19.0) || (((x_13 + (-1.0 * _x_x_16)) == -17.0) || (((x_11 + (-1.0 * _x_x_16)) == -7.0) || (((x_9 + (-1.0 * _x_x_16)) == -20.0) || (((x_7 + (-1.0 * _x_x_16)) == -2.0) || (((x_0 + (-1.0 * _x_x_16)) == -5.0) || ((x_2 + (-1.0 * _x_x_16)) == -8.0)))))))))))))))))))) && ((((x_35 + (-1.0 * _x_x_17)) <= -18.0) && (((x_29 + (-1.0 * _x_x_17)) <= -5.0) && (((x_26 + (-1.0 * _x_x_17)) <= -16.0) && (((x_23 + (-1.0 * _x_x_17)) <= -17.0) && (((x_22 + (-1.0 * _x_x_17)) <= -12.0) && (((x_20 + (-1.0 * _x_x_17)) <= -4.0) && (((x_17 + (-1.0 * _x_x_17)) <= -5.0) && (((x_16 + (-1.0 * _x_x_17)) <= -18.0) && (((x_15 + (-1.0 * _x_x_17)) <= -19.0) && (((x_13 + (-1.0 * _x_x_17)) <= -17.0) && (((x_12 + (-1.0 * _x_x_17)) <= -12.0) && (((x_11 + (-1.0 * _x_x_17)) <= -3.0) && (((x_9 + (-1.0 * _x_x_17)) <= -16.0) && (((x_6 + (-1.0 * _x_x_17)) <= -15.0) && (((x_5 + (-1.0 * _x_x_17)) <= -20.0) && (((x_4 + (-1.0 * _x_x_17)) <= -8.0) && (((x_0 + (-1.0 * _x_x_17)) <= -12.0) && ((x_2 + (-1.0 * _x_x_17)) <= -12.0)))))))))))))))))) && (((x_35 + (-1.0 * _x_x_17)) == -18.0) || (((x_29 + (-1.0 * _x_x_17)) == -5.0) || (((x_26 + (-1.0 * _x_x_17)) == -16.0) || (((x_23 + (-1.0 * _x_x_17)) == -17.0) || (((x_22 + (-1.0 * _x_x_17)) == -12.0) || (((x_20 + (-1.0 * _x_x_17)) == -4.0) || (((x_17 + (-1.0 * _x_x_17)) == -5.0) || (((x_16 + (-1.0 * _x_x_17)) == -18.0) || (((x_15 + (-1.0 * _x_x_17)) == -19.0) || (((x_13 + (-1.0 * _x_x_17)) == -17.0) || (((x_12 + (-1.0 * _x_x_17)) == -12.0) || (((x_11 + (-1.0 * _x_x_17)) == -3.0) || (((x_9 + (-1.0 * _x_x_17)) == -16.0) || (((x_6 + (-1.0 * _x_x_17)) == -15.0) || (((x_5 + (-1.0 * _x_x_17)) == -20.0) || (((x_4 + (-1.0 * _x_x_17)) == -8.0) || (((x_0 + (-1.0 * _x_x_17)) == -12.0) || ((x_2 + (-1.0 * _x_x_17)) == -12.0)))))))))))))))))))) && ((((x_35 + (-1.0 * _x_x_18)) <= -17.0) && (((x_34 + (-1.0 * _x_x_18)) <= -4.0) && (((x_33 + (-1.0 * _x_x_18)) <= -1.0) && (((x_28 + (-1.0 * _x_x_18)) <= -17.0) && (((x_26 + (-1.0 * _x_x_18)) <= -14.0) && (((x_25 + (-1.0 * _x_x_18)) <= -15.0) && (((x_24 + (-1.0 * _x_x_18)) <= -20.0) && (((x_23 + (-1.0 * _x_x_18)) <= -1.0) && (((x_20 + (-1.0 * _x_x_18)) <= -2.0) && (((x_19 + (-1.0 * _x_x_18)) <= -12.0) && (((x_18 + (-1.0 * _x_x_18)) <= -13.0) && (((x_12 + (-1.0 * _x_x_18)) <= -6.0) && (((x_11 + (-1.0 * _x_x_18)) <= -18.0) && (((x_9 + (-1.0 * _x_x_18)) <= -14.0) && (((x_5 + (-1.0 * _x_x_18)) <= -12.0) && (((x_4 + (-1.0 * _x_x_18)) <= -12.0) && (((x_0 + (-1.0 * _x_x_18)) <= -8.0) && ((x_2 + (-1.0 * _x_x_18)) <= -14.0)))))))))))))))))) && (((x_35 + (-1.0 * _x_x_18)) == -17.0) || (((x_34 + (-1.0 * _x_x_18)) == -4.0) || (((x_33 + (-1.0 * _x_x_18)) == -1.0) || (((x_28 + (-1.0 * _x_x_18)) == -17.0) || (((x_26 + (-1.0 * _x_x_18)) == -14.0) || (((x_25 + (-1.0 * _x_x_18)) == -15.0) || (((x_24 + (-1.0 * _x_x_18)) == -20.0) || (((x_23 + (-1.0 * _x_x_18)) == -1.0) || (((x_20 + (-1.0 * _x_x_18)) == -2.0) || (((x_19 + (-1.0 * _x_x_18)) == -12.0) || (((x_18 + (-1.0 * _x_x_18)) == -13.0) || (((x_12 + (-1.0 * _x_x_18)) == -6.0) || (((x_11 + (-1.0 * _x_x_18)) == -18.0) || (((x_9 + (-1.0 * _x_x_18)) == -14.0) || (((x_5 + (-1.0 * _x_x_18)) == -12.0) || (((x_4 + (-1.0 * _x_x_18)) == -12.0) || (((x_0 + (-1.0 * _x_x_18)) == -8.0) || ((x_2 + (-1.0 * _x_x_18)) == -14.0)))))))))))))))))))) && ((((x_35 + (-1.0 * _x_x_19)) <= -11.0) && (((x_33 + (-1.0 * _x_x_19)) <= -6.0) && (((x_32 + (-1.0 * _x_x_19)) <= -2.0) && (((x_29 + (-1.0 * _x_x_19)) <= -16.0) && (((x_27 + (-1.0 * _x_x_19)) <= -10.0) && (((x_24 + (-1.0 * _x_x_19)) <= -9.0) && (((x_21 + (-1.0 * _x_x_19)) <= -12.0) && (((x_19 + (-1.0 * _x_x_19)) <= -1.0) && (((x_18 + (-1.0 * _x_x_19)) <= -11.0) && (((x_15 + (-1.0 * _x_x_19)) <= -4.0) && (((x_12 + (-1.0 * _x_x_19)) <= -9.0) && (((x_10 + (-1.0 * _x_x_19)) <= -8.0) && (((x_9 + (-1.0 * _x_x_19)) <= -18.0) && (((x_6 + (-1.0 * _x_x_19)) <= -6.0) && (((x_5 + (-1.0 * _x_x_19)) <= -7.0) && (((x_4 + (-1.0 * _x_x_19)) <= -12.0) && (((x_1 + (-1.0 * _x_x_19)) <= -14.0) && ((x_3 + (-1.0 * _x_x_19)) <= -19.0)))))))))))))))))) && (((x_35 + (-1.0 * _x_x_19)) == -11.0) || (((x_33 + (-1.0 * _x_x_19)) == -6.0) || (((x_32 + (-1.0 * _x_x_19)) == -2.0) || (((x_29 + (-1.0 * _x_x_19)) == -16.0) || (((x_27 + (-1.0 * _x_x_19)) == -10.0) || (((x_24 + (-1.0 * _x_x_19)) == -9.0) || (((x_21 + (-1.0 * _x_x_19)) == -12.0) || (((x_19 + (-1.0 * _x_x_19)) == -1.0) || (((x_18 + (-1.0 * _x_x_19)) == -11.0) || (((x_15 + (-1.0 * _x_x_19)) == -4.0) || (((x_12 + (-1.0 * _x_x_19)) == -9.0) || (((x_10 + (-1.0 * _x_x_19)) == -8.0) || (((x_9 + (-1.0 * _x_x_19)) == -18.0) || (((x_6 + (-1.0 * _x_x_19)) == -6.0) || (((x_5 + (-1.0 * _x_x_19)) == -7.0) || (((x_4 + (-1.0 * _x_x_19)) == -12.0) || (((x_1 + (-1.0 * _x_x_19)) == -14.0) || ((x_3 + (-1.0 * _x_x_19)) == -19.0)))))))))))))))))))) && ((((x_33 + (-1.0 * _x_x_20)) <= -9.0) && (((x_31 + (-1.0 * _x_x_20)) <= -6.0) && (((x_30 + (-1.0 * _x_x_20)) <= -14.0) && (((x_28 + (-1.0 * _x_x_20)) <= -12.0) && (((x_26 + (-1.0 * _x_x_20)) <= -4.0) && (((x_25 + (-1.0 * _x_x_20)) <= -9.0) && (((x_24 + (-1.0 * _x_x_20)) <= -1.0) && (((x_20 + (-1.0 * _x_x_20)) <= -15.0) && (((x_19 + (-1.0 * _x_x_20)) <= -3.0) && (((x_15 + (-1.0 * _x_x_20)) <= -16.0) && (((x_13 + (-1.0 * _x_x_20)) <= -10.0) && (((x_11 + (-1.0 * _x_x_20)) <= -17.0) && (((x_8 + (-1.0 * _x_x_20)) <= -12.0) && (((x_6 + (-1.0 * _x_x_20)) <= -6.0) && (((x_5 + (-1.0 * _x_x_20)) <= -10.0) && (((x_4 + (-1.0 * _x_x_20)) <= -1.0) && (((x_2 + (-1.0 * _x_x_20)) <= -7.0) && ((x_3 + (-1.0 * _x_x_20)) <= -2.0)))))))))))))))))) && (((x_33 + (-1.0 * _x_x_20)) == -9.0) || (((x_31 + (-1.0 * _x_x_20)) == -6.0) || (((x_30 + (-1.0 * _x_x_20)) == -14.0) || (((x_28 + (-1.0 * _x_x_20)) == -12.0) || (((x_26 + (-1.0 * _x_x_20)) == -4.0) || (((x_25 + (-1.0 * _x_x_20)) == -9.0) || (((x_24 + (-1.0 * _x_x_20)) == -1.0) || (((x_20 + (-1.0 * _x_x_20)) == -15.0) || (((x_19 + (-1.0 * _x_x_20)) == -3.0) || (((x_15 + (-1.0 * _x_x_20)) == -16.0) || (((x_13 + (-1.0 * _x_x_20)) == -10.0) || (((x_11 + (-1.0 * _x_x_20)) == -17.0) || (((x_8 + (-1.0 * _x_x_20)) == -12.0) || (((x_6 + (-1.0 * _x_x_20)) == -6.0) || (((x_5 + (-1.0 * _x_x_20)) == -10.0) || (((x_4 + (-1.0 * _x_x_20)) == -1.0) || (((x_2 + (-1.0 * _x_x_20)) == -7.0) || ((x_3 + (-1.0 * _x_x_20)) == -2.0)))))))))))))))))))) && ((((x_31 + (-1.0 * _x_x_21)) <= -8.0) && (((x_30 + (-1.0 * _x_x_21)) <= -2.0) && (((x_24 + (-1.0 * _x_x_21)) <= -12.0) && (((x_23 + (-1.0 * _x_x_21)) <= -15.0) && (((x_21 + (-1.0 * _x_x_21)) <= -11.0) && (((x_20 + (-1.0 * _x_x_21)) <= -16.0) && (((x_19 + (-1.0 * _x_x_21)) <= -20.0) && (((x_18 + (-1.0 * _x_x_21)) <= -13.0) && (((x_17 + (-1.0 * _x_x_21)) <= -11.0) && (((x_16 + (-1.0 * _x_x_21)) <= -10.0) && (((x_15 + (-1.0 * _x_x_21)) <= -20.0) && (((x_12 + (-1.0 * _x_x_21)) <= -7.0) && (((x_10 + (-1.0 * _x_x_21)) <= -7.0) && (((x_6 + (-1.0 * _x_x_21)) <= -3.0) && (((x_5 + (-1.0 * _x_x_21)) <= -3.0) && (((x_4 + (-1.0 * _x_x_21)) <= -16.0) && (((x_0 + (-1.0 * _x_x_21)) <= -1.0) && ((x_1 + (-1.0 * _x_x_21)) <= -16.0)))))))))))))))))) && (((x_31 + (-1.0 * _x_x_21)) == -8.0) || (((x_30 + (-1.0 * _x_x_21)) == -2.0) || (((x_24 + (-1.0 * _x_x_21)) == -12.0) || (((x_23 + (-1.0 * _x_x_21)) == -15.0) || (((x_21 + (-1.0 * _x_x_21)) == -11.0) || (((x_20 + (-1.0 * _x_x_21)) == -16.0) || (((x_19 + (-1.0 * _x_x_21)) == -20.0) || (((x_18 + (-1.0 * _x_x_21)) == -13.0) || (((x_17 + (-1.0 * _x_x_21)) == -11.0) || (((x_16 + (-1.0 * _x_x_21)) == -10.0) || (((x_15 + (-1.0 * _x_x_21)) == -20.0) || (((x_12 + (-1.0 * _x_x_21)) == -7.0) || (((x_10 + (-1.0 * _x_x_21)) == -7.0) || (((x_6 + (-1.0 * _x_x_21)) == -3.0) || (((x_5 + (-1.0 * _x_x_21)) == -3.0) || (((x_4 + (-1.0 * _x_x_21)) == -16.0) || (((x_0 + (-1.0 * _x_x_21)) == -1.0) || ((x_1 + (-1.0 * _x_x_21)) == -16.0)))))))))))))))))))) && ((((x_35 + (-1.0 * _x_x_22)) <= -7.0) && (((x_34 + (-1.0 * _x_x_22)) <= -19.0) && (((x_29 + (-1.0 * _x_x_22)) <= -4.0) && (((x_28 + (-1.0 * _x_x_22)) <= -2.0) && (((x_24 + (-1.0 * _x_x_22)) <= -19.0) && (((x_22 + (-1.0 * _x_x_22)) <= -14.0) && (((x_21 + (-1.0 * _x_x_22)) <= -10.0) && (((x_20 + (-1.0 * _x_x_22)) <= -6.0) && (((x_15 + (-1.0 * _x_x_22)) <= -1.0) && (((x_14 + (-1.0 * _x_x_22)) <= -8.0) && (((x_13 + (-1.0 * _x_x_22)) <= -7.0) && (((x_12 + (-1.0 * _x_x_22)) <= -16.0) && (((x_11 + (-1.0 * _x_x_22)) <= -18.0) && (((x_9 + (-1.0 * _x_x_22)) <= -9.0) && (((x_8 + (-1.0 * _x_x_22)) <= -18.0) && (((x_7 + (-1.0 * _x_x_22)) <= -7.0) && (((x_2 + (-1.0 * _x_x_22)) <= -10.0) && ((x_3 + (-1.0 * _x_x_22)) <= -8.0)))))))))))))))))) && (((x_35 + (-1.0 * _x_x_22)) == -7.0) || (((x_34 + (-1.0 * _x_x_22)) == -19.0) || (((x_29 + (-1.0 * _x_x_22)) == -4.0) || (((x_28 + (-1.0 * _x_x_22)) == -2.0) || (((x_24 + (-1.0 * _x_x_22)) == -19.0) || (((x_22 + (-1.0 * _x_x_22)) == -14.0) || (((x_21 + (-1.0 * _x_x_22)) == -10.0) || (((x_20 + (-1.0 * _x_x_22)) == -6.0) || (((x_15 + (-1.0 * _x_x_22)) == -1.0) || (((x_14 + (-1.0 * _x_x_22)) == -8.0) || (((x_13 + (-1.0 * _x_x_22)) == -7.0) || (((x_12 + (-1.0 * _x_x_22)) == -16.0) || (((x_11 + (-1.0 * _x_x_22)) == -18.0) || (((x_9 + (-1.0 * _x_x_22)) == -9.0) || (((x_8 + (-1.0 * _x_x_22)) == -18.0) || (((x_7 + (-1.0 * _x_x_22)) == -7.0) || (((x_2 + (-1.0 * _x_x_22)) == -10.0) || ((x_3 + (-1.0 * _x_x_22)) == -8.0)))))))))))))))))))) && ((((x_34 + (-1.0 * _x_x_23)) <= -2.0) && (((x_30 + (-1.0 * _x_x_23)) <= -20.0) && (((x_29 + (-1.0 * _x_x_23)) <= -18.0) && (((x_28 + (-1.0 * _x_x_23)) <= -17.0) && (((x_27 + (-1.0 * _x_x_23)) <= -6.0) && (((x_24 + (-1.0 * _x_x_23)) <= -13.0) && (((x_22 + (-1.0 * _x_x_23)) <= -14.0) && (((x_21 + (-1.0 * _x_x_23)) <= -9.0) && (((x_17 + (-1.0 * _x_x_23)) <= -14.0) && (((x_15 + (-1.0 * _x_x_23)) <= -17.0) && (((x_14 + (-1.0 * _x_x_23)) <= -11.0) && (((x_12 + (-1.0 * _x_x_23)) <= -1.0) && (((x_8 + (-1.0 * _x_x_23)) <= -9.0) && (((x_7 + (-1.0 * _x_x_23)) <= -1.0) && (((x_5 + (-1.0 * _x_x_23)) <= -1.0) && (((x_4 + (-1.0 * _x_x_23)) <= -10.0) && (((x_0 + (-1.0 * _x_x_23)) <= -9.0) && ((x_1 + (-1.0 * _x_x_23)) <= -1.0)))))))))))))))))) && (((x_34 + (-1.0 * _x_x_23)) == -2.0) || (((x_30 + (-1.0 * _x_x_23)) == -20.0) || (((x_29 + (-1.0 * _x_x_23)) == -18.0) || (((x_28 + (-1.0 * _x_x_23)) == -17.0) || (((x_27 + (-1.0 * _x_x_23)) == -6.0) || (((x_24 + (-1.0 * _x_x_23)) == -13.0) || (((x_22 + (-1.0 * _x_x_23)) == -14.0) || (((x_21 + (-1.0 * _x_x_23)) == -9.0) || (((x_17 + (-1.0 * _x_x_23)) == -14.0) || (((x_15 + (-1.0 * _x_x_23)) == -17.0) || (((x_14 + (-1.0 * _x_x_23)) == -11.0) || (((x_12 + (-1.0 * _x_x_23)) == -1.0) || (((x_8 + (-1.0 * _x_x_23)) == -9.0) || (((x_7 + (-1.0 * _x_x_23)) == -1.0) || (((x_5 + (-1.0 * _x_x_23)) == -1.0) || (((x_4 + (-1.0 * _x_x_23)) == -10.0) || (((x_0 + (-1.0 * _x_x_23)) == -9.0) || ((x_1 + (-1.0 * _x_x_23)) == -1.0)))))))))))))))))))) && ((((x_35 + (-1.0 * _x_x_24)) <= -11.0) && (((x_31 + (-1.0 * _x_x_24)) <= -4.0) && (((x_30 + (-1.0 * _x_x_24)) <= -9.0) && (((x_25 + (-1.0 * _x_x_24)) <= -17.0) && (((x_24 + (-1.0 * _x_x_24)) <= -7.0) && (((x_22 + (-1.0 * _x_x_24)) <= -13.0) && (((x_19 + (-1.0 * _x_x_24)) <= -4.0) && (((x_18 + (-1.0 * _x_x_24)) <= -3.0) && (((x_17 + (-1.0 * _x_x_24)) <= -20.0) && (((x_14 + (-1.0 * _x_x_24)) <= -5.0) && (((x_12 + (-1.0 * _x_x_24)) <= -1.0) && (((x_10 + (-1.0 * _x_x_24)) <= -4.0) && (((x_9 + (-1.0 * _x_x_24)) <= -1.0) && (((x_5 + (-1.0 * _x_x_24)) <= -4.0) && (((x_4 + (-1.0 * _x_x_24)) <= -10.0) && (((x_2 + (-1.0 * _x_x_24)) <= -4.0) && (((x_0 + (-1.0 * _x_x_24)) <= -18.0) && ((x_1 + (-1.0 * _x_x_24)) <= -16.0)))))))))))))))))) && (((x_35 + (-1.0 * _x_x_24)) == -11.0) || (((x_31 + (-1.0 * _x_x_24)) == -4.0) || (((x_30 + (-1.0 * _x_x_24)) == -9.0) || (((x_25 + (-1.0 * _x_x_24)) == -17.0) || (((x_24 + (-1.0 * _x_x_24)) == -7.0) || (((x_22 + (-1.0 * _x_x_24)) == -13.0) || (((x_19 + (-1.0 * _x_x_24)) == -4.0) || (((x_18 + (-1.0 * _x_x_24)) == -3.0) || (((x_17 + (-1.0 * _x_x_24)) == -20.0) || (((x_14 + (-1.0 * _x_x_24)) == -5.0) || (((x_12 + (-1.0 * _x_x_24)) == -1.0) || (((x_10 + (-1.0 * _x_x_24)) == -4.0) || (((x_9 + (-1.0 * _x_x_24)) == -1.0) || (((x_5 + (-1.0 * _x_x_24)) == -4.0) || (((x_4 + (-1.0 * _x_x_24)) == -10.0) || (((x_2 + (-1.0 * _x_x_24)) == -4.0) || (((x_0 + (-1.0 * _x_x_24)) == -18.0) || ((x_1 + (-1.0 * _x_x_24)) == -16.0)))))))))))))))))))) && ((((x_33 + (-1.0 * _x_x_25)) <= -8.0) && (((x_32 + (-1.0 * _x_x_25)) <= -16.0) && (((x_31 + (-1.0 * _x_x_25)) <= -14.0) && (((x_30 + (-1.0 * _x_x_25)) <= -12.0) && (((x_29 + (-1.0 * _x_x_25)) <= -12.0) && (((x_25 + (-1.0 * _x_x_25)) <= -4.0) && (((x_24 + (-1.0 * _x_x_25)) <= -11.0) && (((x_21 + (-1.0 * _x_x_25)) <= -4.0) && (((x_20 + (-1.0 * _x_x_25)) <= -4.0) && (((x_18 + (-1.0 * _x_x_25)) <= -14.0) && (((x_15 + (-1.0 * _x_x_25)) <= -14.0) && (((x_14 + (-1.0 * _x_x_25)) <= -4.0) && (((x_9 + (-1.0 * _x_x_25)) <= -3.0) && (((x_8 + (-1.0 * _x_x_25)) <= -16.0) && (((x_6 + (-1.0 * _x_x_25)) <= -18.0) && (((x_3 + (-1.0 * _x_x_25)) <= -6.0) && (((x_1 + (-1.0 * _x_x_25)) <= -1.0) && ((x_2 + (-1.0 * _x_x_25)) <= -10.0)))))))))))))))))) && (((x_33 + (-1.0 * _x_x_25)) == -8.0) || (((x_32 + (-1.0 * _x_x_25)) == -16.0) || (((x_31 + (-1.0 * _x_x_25)) == -14.0) || (((x_30 + (-1.0 * _x_x_25)) == -12.0) || (((x_29 + (-1.0 * _x_x_25)) == -12.0) || (((x_25 + (-1.0 * _x_x_25)) == -4.0) || (((x_24 + (-1.0 * _x_x_25)) == -11.0) || (((x_21 + (-1.0 * _x_x_25)) == -4.0) || (((x_20 + (-1.0 * _x_x_25)) == -4.0) || (((x_18 + (-1.0 * _x_x_25)) == -14.0) || (((x_15 + (-1.0 * _x_x_25)) == -14.0) || (((x_14 + (-1.0 * _x_x_25)) == -4.0) || (((x_9 + (-1.0 * _x_x_25)) == -3.0) || (((x_8 + (-1.0 * _x_x_25)) == -16.0) || (((x_6 + (-1.0 * _x_x_25)) == -18.0) || (((x_3 + (-1.0 * _x_x_25)) == -6.0) || (((x_1 + (-1.0 * _x_x_25)) == -1.0) || ((x_2 + (-1.0 * _x_x_25)) == -10.0)))))))))))))))))))) && ((((x_34 + (-1.0 * _x_x_26)) <= -7.0) && (((x_31 + (-1.0 * _x_x_26)) <= -8.0) && (((x_30 + (-1.0 * _x_x_26)) <= -4.0) && (((x_28 + (-1.0 * _x_x_26)) <= -16.0) && (((x_27 + (-1.0 * _x_x_26)) <= -3.0) && (((x_24 + (-1.0 * _x_x_26)) <= -3.0) && (((x_22 + (-1.0 * _x_x_26)) <= -1.0) && (((x_17 + (-1.0 * _x_x_26)) <= -13.0) && (((x_16 + (-1.0 * _x_x_26)) <= -17.0) && (((x_15 + (-1.0 * _x_x_26)) <= -20.0) && (((x_14 + (-1.0 * _x_x_26)) <= -1.0) && (((x_12 + (-1.0 * _x_x_26)) <= -3.0) && (((x_11 + (-1.0 * _x_x_26)) <= -13.0) && (((x_10 + (-1.0 * _x_x_26)) <= -14.0) && (((x_9 + (-1.0 * _x_x_26)) <= -18.0) && (((x_8 + (-1.0 * _x_x_26)) <= -18.0) && (((x_2 + (-1.0 * _x_x_26)) <= -8.0) && ((x_7 + (-1.0 * _x_x_26)) <= -2.0)))))))))))))))))) && (((x_34 + (-1.0 * _x_x_26)) == -7.0) || (((x_31 + (-1.0 * _x_x_26)) == -8.0) || (((x_30 + (-1.0 * _x_x_26)) == -4.0) || (((x_28 + (-1.0 * _x_x_26)) == -16.0) || (((x_27 + (-1.0 * _x_x_26)) == -3.0) || (((x_24 + (-1.0 * _x_x_26)) == -3.0) || (((x_22 + (-1.0 * _x_x_26)) == -1.0) || (((x_17 + (-1.0 * _x_x_26)) == -13.0) || (((x_16 + (-1.0 * _x_x_26)) == -17.0) || (((x_15 + (-1.0 * _x_x_26)) == -20.0) || (((x_14 + (-1.0 * _x_x_26)) == -1.0) || (((x_12 + (-1.0 * _x_x_26)) == -3.0) || (((x_11 + (-1.0 * _x_x_26)) == -13.0) || (((x_10 + (-1.0 * _x_x_26)) == -14.0) || (((x_9 + (-1.0 * _x_x_26)) == -18.0) || (((x_8 + (-1.0 * _x_x_26)) == -18.0) || (((x_2 + (-1.0 * _x_x_26)) == -8.0) || ((x_7 + (-1.0 * _x_x_26)) == -2.0)))))))))))))))))))) && ((((x_35 + (-1.0 * _x_x_27)) <= -19.0) && (((x_33 + (-1.0 * _x_x_27)) <= -17.0) && (((x_30 + (-1.0 * _x_x_27)) <= -12.0) && (((x_28 + (-1.0 * _x_x_27)) <= -4.0) && (((x_27 + (-1.0 * _x_x_27)) <= -20.0) && (((x_24 + (-1.0 * _x_x_27)) <= -20.0) && (((x_23 + (-1.0 * _x_x_27)) <= -1.0) && (((x_19 + (-1.0 * _x_x_27)) <= -5.0) && (((x_18 + (-1.0 * _x_x_27)) <= -10.0) && (((x_17 + (-1.0 * _x_x_27)) <= -14.0) && (((x_14 + (-1.0 * _x_x_27)) <= -8.0) && (((x_11 + (-1.0 * _x_x_27)) <= -13.0) && (((x_10 + (-1.0 * _x_x_27)) <= -18.0) && (((x_9 + (-1.0 * _x_x_27)) <= -7.0) && (((x_8 + (-1.0 * _x_x_27)) <= -9.0) && (((x_5 + (-1.0 * _x_x_27)) <= -7.0) && (((x_0 + (-1.0 * _x_x_27)) <= -7.0) && ((x_3 + (-1.0 * _x_x_27)) <= -12.0)))))))))))))))))) && (((x_35 + (-1.0 * _x_x_27)) == -19.0) || (((x_33 + (-1.0 * _x_x_27)) == -17.0) || (((x_30 + (-1.0 * _x_x_27)) == -12.0) || (((x_28 + (-1.0 * _x_x_27)) == -4.0) || (((x_27 + (-1.0 * _x_x_27)) == -20.0) || (((x_24 + (-1.0 * _x_x_27)) == -20.0) || (((x_23 + (-1.0 * _x_x_27)) == -1.0) || (((x_19 + (-1.0 * _x_x_27)) == -5.0) || (((x_18 + (-1.0 * _x_x_27)) == -10.0) || (((x_17 + (-1.0 * _x_x_27)) == -14.0) || (((x_14 + (-1.0 * _x_x_27)) == -8.0) || (((x_11 + (-1.0 * _x_x_27)) == -13.0) || (((x_10 + (-1.0 * _x_x_27)) == -18.0) || (((x_9 + (-1.0 * _x_x_27)) == -7.0) || (((x_8 + (-1.0 * _x_x_27)) == -9.0) || (((x_5 + (-1.0 * _x_x_27)) == -7.0) || (((x_0 + (-1.0 * _x_x_27)) == -7.0) || ((x_3 + (-1.0 * _x_x_27)) == -12.0)))))))))))))))))))) && ((((x_35 + (-1.0 * _x_x_28)) <= -4.0) && (((x_34 + (-1.0 * _x_x_28)) <= -5.0) && (((x_33 + (-1.0 * _x_x_28)) <= -16.0) && (((x_32 + (-1.0 * _x_x_28)) <= -19.0) && (((x_30 + (-1.0 * _x_x_28)) <= -14.0) && (((x_29 + (-1.0 * _x_x_28)) <= -4.0) && (((x_27 + (-1.0 * _x_x_28)) <= -14.0) && (((x_23 + (-1.0 * _x_x_28)) <= -13.0) && (((x_21 + (-1.0 * _x_x_28)) <= -11.0) && (((x_18 + (-1.0 * _x_x_28)) <= -20.0) && (((x_16 + (-1.0 * _x_x_28)) <= -15.0) && (((x_14 + (-1.0 * _x_x_28)) <= -2.0) && (((x_12 + (-1.0 * _x_x_28)) <= -16.0) && (((x_10 + (-1.0 * _x_x_28)) <= -7.0) && (((x_9 + (-1.0 * _x_x_28)) <= -1.0) && (((x_7 + (-1.0 * _x_x_28)) <= -11.0) && (((x_0 + (-1.0 * _x_x_28)) <= -17.0) && ((x_5 + (-1.0 * _x_x_28)) <= -5.0)))))))))))))))))) && (((x_35 + (-1.0 * _x_x_28)) == -4.0) || (((x_34 + (-1.0 * _x_x_28)) == -5.0) || (((x_33 + (-1.0 * _x_x_28)) == -16.0) || (((x_32 + (-1.0 * _x_x_28)) == -19.0) || (((x_30 + (-1.0 * _x_x_28)) == -14.0) || (((x_29 + (-1.0 * _x_x_28)) == -4.0) || (((x_27 + (-1.0 * _x_x_28)) == -14.0) || (((x_23 + (-1.0 * _x_x_28)) == -13.0) || (((x_21 + (-1.0 * _x_x_28)) == -11.0) || (((x_18 + (-1.0 * _x_x_28)) == -20.0) || (((x_16 + (-1.0 * _x_x_28)) == -15.0) || (((x_14 + (-1.0 * _x_x_28)) == -2.0) || (((x_12 + (-1.0 * _x_x_28)) == -16.0) || (((x_10 + (-1.0 * _x_x_28)) == -7.0) || (((x_9 + (-1.0 * _x_x_28)) == -1.0) || (((x_7 + (-1.0 * _x_x_28)) == -11.0) || (((x_0 + (-1.0 * _x_x_28)) == -17.0) || ((x_5 + (-1.0 * _x_x_28)) == -5.0)))))))))))))))))))) && ((((x_33 + (-1.0 * _x_x_29)) <= -16.0) && (((x_32 + (-1.0 * _x_x_29)) <= -19.0) && (((x_31 + (-1.0 * _x_x_29)) <= -8.0) && (((x_30 + (-1.0 * _x_x_29)) <= -14.0) && (((x_29 + (-1.0 * _x_x_29)) <= -19.0) && (((x_26 + (-1.0 * _x_x_29)) <= -20.0) && (((x_25 + (-1.0 * _x_x_29)) <= -20.0) && (((x_21 + (-1.0 * _x_x_29)) <= -6.0) && (((x_15 + (-1.0 * _x_x_29)) <= -13.0) && (((x_13 + (-1.0 * _x_x_29)) <= -19.0) && (((x_12 + (-1.0 * _x_x_29)) <= -12.0) && (((x_11 + (-1.0 * _x_x_29)) <= -16.0) && (((x_8 + (-1.0 * _x_x_29)) <= -1.0) && (((x_7 + (-1.0 * _x_x_29)) <= -4.0) && (((x_6 + (-1.0 * _x_x_29)) <= -6.0) && (((x_5 + (-1.0 * _x_x_29)) <= -9.0) && (((x_0 + (-1.0 * _x_x_29)) <= -12.0) && ((x_4 + (-1.0 * _x_x_29)) <= -15.0)))))))))))))))))) && (((x_33 + (-1.0 * _x_x_29)) == -16.0) || (((x_32 + (-1.0 * _x_x_29)) == -19.0) || (((x_31 + (-1.0 * _x_x_29)) == -8.0) || (((x_30 + (-1.0 * _x_x_29)) == -14.0) || (((x_29 + (-1.0 * _x_x_29)) == -19.0) || (((x_26 + (-1.0 * _x_x_29)) == -20.0) || (((x_25 + (-1.0 * _x_x_29)) == -20.0) || (((x_21 + (-1.0 * _x_x_29)) == -6.0) || (((x_15 + (-1.0 * _x_x_29)) == -13.0) || (((x_13 + (-1.0 * _x_x_29)) == -19.0) || (((x_12 + (-1.0 * _x_x_29)) == -12.0) || (((x_11 + (-1.0 * _x_x_29)) == -16.0) || (((x_8 + (-1.0 * _x_x_29)) == -1.0) || (((x_7 + (-1.0 * _x_x_29)) == -4.0) || (((x_6 + (-1.0 * _x_x_29)) == -6.0) || (((x_5 + (-1.0 * _x_x_29)) == -9.0) || (((x_0 + (-1.0 * _x_x_29)) == -12.0) || ((x_4 + (-1.0 * _x_x_29)) == -15.0)))))))))))))))))))) && ((((x_35 + (-1.0 * _x_x_30)) <= -6.0) && (((x_32 + (-1.0 * _x_x_30)) <= -19.0) && (((x_31 + (-1.0 * _x_x_30)) <= -11.0) && (((x_27 + (-1.0 * _x_x_30)) <= -10.0) && (((x_26 + (-1.0 * _x_x_30)) <= -13.0) && (((x_25 + (-1.0 * _x_x_30)) <= -12.0) && (((x_22 + (-1.0 * _x_x_30)) <= -2.0) && (((x_19 + (-1.0 * _x_x_30)) <= -4.0) && (((x_18 + (-1.0 * _x_x_30)) <= -7.0) && (((x_17 + (-1.0 * _x_x_30)) <= -9.0) && (((x_15 + (-1.0 * _x_x_30)) <= -4.0) && (((x_14 + (-1.0 * _x_x_30)) <= -14.0) && (((x_13 + (-1.0 * _x_x_30)) <= -10.0) && (((x_11 + (-1.0 * _x_x_30)) <= -16.0) && (((x_9 + (-1.0 * _x_x_30)) <= -19.0) && (((x_4 + (-1.0 * _x_x_30)) <= -7.0) && (((x_1 + (-1.0 * _x_x_30)) <= -8.0) && ((x_3 + (-1.0 * _x_x_30)) <= -7.0)))))))))))))))))) && (((x_35 + (-1.0 * _x_x_30)) == -6.0) || (((x_32 + (-1.0 * _x_x_30)) == -19.0) || (((x_31 + (-1.0 * _x_x_30)) == -11.0) || (((x_27 + (-1.0 * _x_x_30)) == -10.0) || (((x_26 + (-1.0 * _x_x_30)) == -13.0) || (((x_25 + (-1.0 * _x_x_30)) == -12.0) || (((x_22 + (-1.0 * _x_x_30)) == -2.0) || (((x_19 + (-1.0 * _x_x_30)) == -4.0) || (((x_18 + (-1.0 * _x_x_30)) == -7.0) || (((x_17 + (-1.0 * _x_x_30)) == -9.0) || (((x_15 + (-1.0 * _x_x_30)) == -4.0) || (((x_14 + (-1.0 * _x_x_30)) == -14.0) || (((x_13 + (-1.0 * _x_x_30)) == -10.0) || (((x_11 + (-1.0 * _x_x_30)) == -16.0) || (((x_9 + (-1.0 * _x_x_30)) == -19.0) || (((x_4 + (-1.0 * _x_x_30)) == -7.0) || (((x_1 + (-1.0 * _x_x_30)) == -8.0) || ((x_3 + (-1.0 * _x_x_30)) == -7.0)))))))))))))))))))) && ((((x_34 + (-1.0 * _x_x_31)) <= -14.0) && (((x_32 + (-1.0 * _x_x_31)) <= -12.0) && (((x_31 + (-1.0 * _x_x_31)) <= -3.0) && (((x_30 + (-1.0 * _x_x_31)) <= -2.0) && (((x_28 + (-1.0 * _x_x_31)) <= -2.0) && (((x_25 + (-1.0 * _x_x_31)) <= -8.0) && (((x_21 + (-1.0 * _x_x_31)) <= -17.0) && (((x_19 + (-1.0 * _x_x_31)) <= -16.0) && (((x_18 + (-1.0 * _x_x_31)) <= -20.0) && (((x_17 + (-1.0 * _x_x_31)) <= -19.0) && (((x_14 + (-1.0 * _x_x_31)) <= -15.0) && (((x_12 + (-1.0 * _x_x_31)) <= -1.0) && (((x_7 + (-1.0 * _x_x_31)) <= -8.0) && (((x_6 + (-1.0 * _x_x_31)) <= -5.0) && (((x_5 + (-1.0 * _x_x_31)) <= -13.0) && (((x_4 + (-1.0 * _x_x_31)) <= -8.0) && (((x_0 + (-1.0 * _x_x_31)) <= -4.0) && ((x_2 + (-1.0 * _x_x_31)) <= -18.0)))))))))))))))))) && (((x_34 + (-1.0 * _x_x_31)) == -14.0) || (((x_32 + (-1.0 * _x_x_31)) == -12.0) || (((x_31 + (-1.0 * _x_x_31)) == -3.0) || (((x_30 + (-1.0 * _x_x_31)) == -2.0) || (((x_28 + (-1.0 * _x_x_31)) == -2.0) || (((x_25 + (-1.0 * _x_x_31)) == -8.0) || (((x_21 + (-1.0 * _x_x_31)) == -17.0) || (((x_19 + (-1.0 * _x_x_31)) == -16.0) || (((x_18 + (-1.0 * _x_x_31)) == -20.0) || (((x_17 + (-1.0 * _x_x_31)) == -19.0) || (((x_14 + (-1.0 * _x_x_31)) == -15.0) || (((x_12 + (-1.0 * _x_x_31)) == -1.0) || (((x_7 + (-1.0 * _x_x_31)) == -8.0) || (((x_6 + (-1.0 * _x_x_31)) == -5.0) || (((x_5 + (-1.0 * _x_x_31)) == -13.0) || (((x_4 + (-1.0 * _x_x_31)) == -8.0) || (((x_0 + (-1.0 * _x_x_31)) == -4.0) || ((x_2 + (-1.0 * _x_x_31)) == -18.0)))))))))))))))))))) && ((((x_34 + (-1.0 * _x_x_32)) <= -2.0) && (((x_29 + (-1.0 * _x_x_32)) <= -15.0) && (((x_28 + (-1.0 * _x_x_32)) <= -18.0) && (((x_27 + (-1.0 * _x_x_32)) <= -13.0) && (((x_26 + (-1.0 * _x_x_32)) <= -20.0) && (((x_25 + (-1.0 * _x_x_32)) <= -15.0) && (((x_23 + (-1.0 * _x_x_32)) <= -3.0) && (((x_21 + (-1.0 * _x_x_32)) <= -4.0) && (((x_20 + (-1.0 * _x_x_32)) <= -10.0) && (((x_19 + (-1.0 * _x_x_32)) <= -16.0) && (((x_14 + (-1.0 * _x_x_32)) <= -2.0) && (((x_13 + (-1.0 * _x_x_32)) <= -16.0) && (((x_10 + (-1.0 * _x_x_32)) <= -10.0) && (((x_9 + (-1.0 * _x_x_32)) <= -19.0) && (((x_6 + (-1.0 * _x_x_32)) <= -8.0) && (((x_5 + (-1.0 * _x_x_32)) <= -10.0) && (((x_3 + (-1.0 * _x_x_32)) <= -14.0) && ((x_4 + (-1.0 * _x_x_32)) <= -14.0)))))))))))))))))) && (((x_34 + (-1.0 * _x_x_32)) == -2.0) || (((x_29 + (-1.0 * _x_x_32)) == -15.0) || (((x_28 + (-1.0 * _x_x_32)) == -18.0) || (((x_27 + (-1.0 * _x_x_32)) == -13.0) || (((x_26 + (-1.0 * _x_x_32)) == -20.0) || (((x_25 + (-1.0 * _x_x_32)) == -15.0) || (((x_23 + (-1.0 * _x_x_32)) == -3.0) || (((x_21 + (-1.0 * _x_x_32)) == -4.0) || (((x_20 + (-1.0 * _x_x_32)) == -10.0) || (((x_19 + (-1.0 * _x_x_32)) == -16.0) || (((x_14 + (-1.0 * _x_x_32)) == -2.0) || (((x_13 + (-1.0 * _x_x_32)) == -16.0) || (((x_10 + (-1.0 * _x_x_32)) == -10.0) || (((x_9 + (-1.0 * _x_x_32)) == -19.0) || (((x_6 + (-1.0 * _x_x_32)) == -8.0) || (((x_5 + (-1.0 * _x_x_32)) == -10.0) || (((x_3 + (-1.0 * _x_x_32)) == -14.0) || ((x_4 + (-1.0 * _x_x_32)) == -14.0)))))))))))))))))))) && ((((x_35 + (-1.0 * _x_x_33)) <= -10.0) && (((x_32 + (-1.0 * _x_x_33)) <= -1.0) && (((x_31 + (-1.0 * _x_x_33)) <= -13.0) && (((x_30 + (-1.0 * _x_x_33)) <= -14.0) && (((x_29 + (-1.0 * _x_x_33)) <= -17.0) && (((x_26 + (-1.0 * _x_x_33)) <= -2.0) && (((x_25 + (-1.0 * _x_x_33)) <= -17.0) && (((x_22 + (-1.0 * _x_x_33)) <= -5.0) && (((x_19 + (-1.0 * _x_x_33)) <= -6.0) && (((x_17 + (-1.0 * _x_x_33)) <= -11.0) && (((x_16 + (-1.0 * _x_x_33)) <= -11.0) && (((x_14 + (-1.0 * _x_x_33)) <= -10.0) && (((x_13 + (-1.0 * _x_x_33)) <= -15.0) && (((x_12 + (-1.0 * _x_x_33)) <= -10.0) && (((x_11 + (-1.0 * _x_x_33)) <= -5.0) && (((x_7 + (-1.0 * _x_x_33)) <= -9.0) && (((x_1 + (-1.0 * _x_x_33)) <= -9.0) && ((x_2 + (-1.0 * _x_x_33)) <= -17.0)))))))))))))))))) && (((x_35 + (-1.0 * _x_x_33)) == -10.0) || (((x_32 + (-1.0 * _x_x_33)) == -1.0) || (((x_31 + (-1.0 * _x_x_33)) == -13.0) || (((x_30 + (-1.0 * _x_x_33)) == -14.0) || (((x_29 + (-1.0 * _x_x_33)) == -17.0) || (((x_26 + (-1.0 * _x_x_33)) == -2.0) || (((x_25 + (-1.0 * _x_x_33)) == -17.0) || (((x_22 + (-1.0 * _x_x_33)) == -5.0) || (((x_19 + (-1.0 * _x_x_33)) == -6.0) || (((x_17 + (-1.0 * _x_x_33)) == -11.0) || (((x_16 + (-1.0 * _x_x_33)) == -11.0) || (((x_14 + (-1.0 * _x_x_33)) == -10.0) || (((x_13 + (-1.0 * _x_x_33)) == -15.0) || (((x_12 + (-1.0 * _x_x_33)) == -10.0) || (((x_11 + (-1.0 * _x_x_33)) == -5.0) || (((x_7 + (-1.0 * _x_x_33)) == -9.0) || (((x_1 + (-1.0 * _x_x_33)) == -9.0) || ((x_2 + (-1.0 * _x_x_33)) == -17.0)))))))))))))))))))) && ((((x_33 + (-1.0 * _x_x_34)) <= -4.0) && (((x_32 + (-1.0 * _x_x_34)) <= -8.0) && (((x_30 + (-1.0 * _x_x_34)) <= -20.0) && (((x_28 + (-1.0 * _x_x_34)) <= -13.0) && (((x_27 + (-1.0 * _x_x_34)) <= -2.0) && (((x_25 + (-1.0 * _x_x_34)) <= -17.0) && (((x_23 + (-1.0 * _x_x_34)) <= -10.0) && (((x_22 + (-1.0 * _x_x_34)) <= -3.0) && (((x_19 + (-1.0 * _x_x_34)) <= -19.0) && (((x_16 + (-1.0 * _x_x_34)) <= -6.0) && (((x_15 + (-1.0 * _x_x_34)) <= -15.0) && (((x_13 + (-1.0 * _x_x_34)) <= -3.0) && (((x_12 + (-1.0 * _x_x_34)) <= -7.0) && (((x_10 + (-1.0 * _x_x_34)) <= -5.0) && (((x_8 + (-1.0 * _x_x_34)) <= -17.0) && (((x_7 + (-1.0 * _x_x_34)) <= -18.0) && (((x_1 + (-1.0 * _x_x_34)) <= -4.0) && ((x_6 + (-1.0 * _x_x_34)) <= -15.0)))))))))))))))))) && (((x_33 + (-1.0 * _x_x_34)) == -4.0) || (((x_32 + (-1.0 * _x_x_34)) == -8.0) || (((x_30 + (-1.0 * _x_x_34)) == -20.0) || (((x_28 + (-1.0 * _x_x_34)) == -13.0) || (((x_27 + (-1.0 * _x_x_34)) == -2.0) || (((x_25 + (-1.0 * _x_x_34)) == -17.0) || (((x_23 + (-1.0 * _x_x_34)) == -10.0) || (((x_22 + (-1.0 * _x_x_34)) == -3.0) || (((x_19 + (-1.0 * _x_x_34)) == -19.0) || (((x_16 + (-1.0 * _x_x_34)) == -6.0) || (((x_15 + (-1.0 * _x_x_34)) == -15.0) || (((x_13 + (-1.0 * _x_x_34)) == -3.0) || (((x_12 + (-1.0 * _x_x_34)) == -7.0) || (((x_10 + (-1.0 * _x_x_34)) == -5.0) || (((x_8 + (-1.0 * _x_x_34)) == -17.0) || (((x_7 + (-1.0 * _x_x_34)) == -18.0) || (((x_1 + (-1.0 * _x_x_34)) == -4.0) || ((x_6 + (-1.0 * _x_x_34)) == -15.0)))))))))))))))))))) && ((((x_35 + (-1.0 * _x_x_35)) <= -13.0) && (((x_34 + (-1.0 * _x_x_35)) <= -4.0) && (((x_33 + (-1.0 * _x_x_35)) <= -20.0) && (((x_32 + (-1.0 * _x_x_35)) <= -19.0) && (((x_29 + (-1.0 * _x_x_35)) <= -19.0) && (((x_27 + (-1.0 * _x_x_35)) <= -5.0) && (((x_26 + (-1.0 * _x_x_35)) <= -11.0) && (((x_20 + (-1.0 * _x_x_35)) <= -6.0) && (((x_18 + (-1.0 * _x_x_35)) <= -5.0) && (((x_15 + (-1.0 * _x_x_35)) <= -9.0) && (((x_14 + (-1.0 * _x_x_35)) <= -4.0) && (((x_13 + (-1.0 * _x_x_35)) <= -19.0) && (((x_12 + (-1.0 * _x_x_35)) <= -16.0) && (((x_11 + (-1.0 * _x_x_35)) <= -2.0) && (((x_9 + (-1.0 * _x_x_35)) <= -6.0) && (((x_7 + (-1.0 * _x_x_35)) <= -12.0) && (((x_1 + (-1.0 * _x_x_35)) <= -10.0) && ((x_2 + (-1.0 * _x_x_35)) <= -1.0)))))))))))))))))) && (((x_35 + (-1.0 * _x_x_35)) == -13.0) || (((x_34 + (-1.0 * _x_x_35)) == -4.0) || (((x_33 + (-1.0 * _x_x_35)) == -20.0) || (((x_32 + (-1.0 * _x_x_35)) == -19.0) || (((x_29 + (-1.0 * _x_x_35)) == -19.0) || (((x_27 + (-1.0 * _x_x_35)) == -5.0) || (((x_26 + (-1.0 * _x_x_35)) == -11.0) || (((x_20 + (-1.0 * _x_x_35)) == -6.0) || (((x_18 + (-1.0 * _x_x_35)) == -5.0) || (((x_15 + (-1.0 * _x_x_35)) == -9.0) || (((x_14 + (-1.0 * _x_x_35)) == -4.0) || (((x_13 + (-1.0 * _x_x_35)) == -19.0) || (((x_12 + (-1.0 * _x_x_35)) == -16.0) || (((x_11 + (-1.0 * _x_x_35)) == -2.0) || (((x_9 + (-1.0 * _x_x_35)) == -6.0) || (((x_7 + (-1.0 * _x_x_35)) == -12.0) || (((x_1 + (-1.0 * _x_x_35)) == -10.0) || ((x_2 + (-1.0 * _x_x_35)) == -1.0)))))))))))))))))))) && (((((_EL_U_3842 == ((_x__EL_U_3842 && ( !(_x__EL_U_3840 || ( !(19.0 <= (_x_x_17 + (-1.0 * _x_x_30))))))) || ( !(_x__EL_U_3837 || ( !(3.0 <= (_x_x_3 + (-1.0 * _x_x_31)))))))) && ((_EL_U_3837 == (_x__EL_U_3837 || ( !(3.0 <= (_x_x_3 + (-1.0 * _x_x_31)))))) && (_EL_U_3840 == (_x__EL_U_3840 || ( !(19.0 <= (_x_x_17 + (-1.0 * _x_x_30)))))))) && (_x__J3860 == (( !((_J3860 && _J3868) && _J3877)) && (((_J3860 && _J3868) && _J3877) || ((( !(3.0 <= (x_3 + (-1.0 * x_31)))) || ( !(( !(3.0 <= (x_3 + (-1.0 * x_31)))) || _EL_U_3837))) || _J3860))))) && (_x__J3868 == (( !((_J3860 && _J3868) && _J3877)) && (((_J3860 && _J3868) && _J3877) || ((( !(19.0 <= (x_17 + (-1.0 * x_30)))) || ( !(( !(19.0 <= (x_17 + (-1.0 * x_30)))) || _EL_U_3840))) || _J3868))))) && (_x__J3877 == (( !((_J3860 && _J3868) && _J3877)) && (((_J3860 && _J3868) && _J3877) || ((( !(( !(3.0 <= (x_3 + (-1.0 * x_31)))) || _EL_U_3837)) || ( !(( !(( !(3.0 <= (x_3 + (-1.0 * x_31)))) || _EL_U_3837)) || (_EL_U_3842 && ( !(( !(19.0 <= (x_17 + (-1.0 * x_30)))) || _EL_U_3840)))))) || _J3877)))))); x_34 = _x_x_34; _J3877 = _x__J3877; x_5 = _x_x_5; _J3868 = _x__J3868; x_35 = _x_x_35; _J3860 = _x__J3860; _EL_U_3840 = _x__EL_U_3840; x_30 = _x_x_30; x_17 = _x_x_17; _EL_U_3842 = _x__EL_U_3842; _EL_U_3837 = _x__EL_U_3837; x_31 = _x_x_31; x_3 = _x_x_3; x_21 = _x_x_21; x_2 = _x_x_2; x_1 = _x_x_1; x_6 = _x_x_6; x_7 = _x_x_7; x_9 = _x_x_9; x_8 = _x_x_8; x_11 = _x_x_11; x_10 = _x_x_10; x_12 = _x_x_12; x_13 = _x_x_13; x_14 = _x_x_14; x_16 = _x_x_16; x_19 = _x_x_19; x_15 = _x_x_15; x_22 = _x_x_22; x_0 = _x_x_0; x_18 = _x_x_18; x_23 = _x_x_23; x_20 = _x_x_20; x_25 = _x_x_25; x_26 = _x_x_26; x_24 = _x_x_24; x_28 = _x_x_28; x_27 = _x_x_27; x_29 = _x_x_29; x_32 = _x_x_32; x_33 = _x_x_33; x_4 = _x_x_4; } }
the_stack_data/87638912.c
#include<stdio.h> int main() { int t,n,m,i,j,k,p,v; scanf("%d",&t); while(t--) { scanf("%d%d",&n,&m); int P[m],C[n],V[n][101]; for(i=0;i<m;++i) scanf("%d",&P[i]); for(i=0;i<n;++i) { scanf("%d",&C[i]); for(j=0;j<C[i];++j) { scanf("%d",&p); for(k=j;k>0&&V[i][k-1]>p;--k) V[i][k]=V[i][k-1]; V[i][k]=p; } } for(i=v=0;i<m;++i) v+=C[P[i]]>0?V[P[i]][--C[P[i]]]:0; printf("%d\n",v); } return 0; }
the_stack_data/5632.c
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward declarations */ /* Type definitions */ typedef scalar_t__ u8 ; typedef int /*<<< orphan*/ u32 ; typedef int u16 ; struct rtl_priv {int dummy; } ; struct rtl_hal {scalar_t__ interfaceindex; scalar_t__ current_bandtype; } ; struct ieee80211_hw {int dummy; } ; /* Variables and functions */ int AGCTAB_2G_ARRAYLENGTH ; int AGCTAB_5G_ARRAYLENGTH ; int AGCTAB_ARRAYLENGTH ; scalar_t__ BAND_ON_2_4G ; scalar_t__ BASEBAND_CONFIG_AGC_TAB ; scalar_t__ BASEBAND_CONFIG_PHY_REG ; int /*<<< orphan*/ COMP_INIT ; int /*<<< orphan*/ DBG_LOUD ; int /*<<< orphan*/ DBG_TRACE ; int /*<<< orphan*/ MASKDWORD ; int PHY_REG_2T_ARRAYLENGTH ; int /*<<< orphan*/ RT_TRACE (struct rtl_priv*,int /*<<< orphan*/ ,int /*<<< orphan*/ ,char*,...) ; int /*<<< orphan*/ * rtl8192de_agctab_2garray ; int /*<<< orphan*/ * rtl8192de_agctab_5garray ; int /*<<< orphan*/ * rtl8192de_agctab_array ; int /*<<< orphan*/ * rtl8192de_phy_reg_2tarray ; int /*<<< orphan*/ rtl_addr_delay (int /*<<< orphan*/ ) ; struct rtl_hal* rtl_hal (struct rtl_priv*) ; struct rtl_priv* rtl_priv (struct ieee80211_hw*) ; int /*<<< orphan*/ rtl_set_bbreg (struct ieee80211_hw*,int /*<<< orphan*/ ,int /*<<< orphan*/ ,int /*<<< orphan*/ ) ; int /*<<< orphan*/ udelay (int) ; __attribute__((used)) static bool _rtl92d_phy_config_bb_with_headerfile(struct ieee80211_hw *hw, u8 configtype) { int i; u32 *phy_regarray_table; u32 *agctab_array_table = NULL; u32 *agctab_5garray_table; u16 phy_reg_arraylen, agctab_arraylen = 0, agctab_5garraylen; struct rtl_priv *rtlpriv = rtl_priv(hw); struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); /* Normal chip,Mac0 use AGC_TAB.txt for 2G and 5G band. */ if (rtlhal->interfaceindex == 0) { agctab_arraylen = AGCTAB_ARRAYLENGTH; agctab_array_table = rtl8192de_agctab_array; RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, " ===> phy:MAC0, Rtl819XAGCTAB_Array\n"); } else { if (rtlhal->current_bandtype == BAND_ON_2_4G) { agctab_arraylen = AGCTAB_2G_ARRAYLENGTH; agctab_array_table = rtl8192de_agctab_2garray; RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, " ===> phy:MAC1, Rtl819XAGCTAB_2GArray\n"); } else { agctab_5garraylen = AGCTAB_5G_ARRAYLENGTH; agctab_5garray_table = rtl8192de_agctab_5garray; RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, " ===> phy:MAC1, Rtl819XAGCTAB_5GArray\n"); } } phy_reg_arraylen = PHY_REG_2T_ARRAYLENGTH; phy_regarray_table = rtl8192de_phy_reg_2tarray; RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, " ===> phy:Rtl819XPHY_REG_Array_PG\n"); if (configtype == BASEBAND_CONFIG_PHY_REG) { for (i = 0; i < phy_reg_arraylen; i = i + 2) { rtl_addr_delay(phy_regarray_table[i]); rtl_set_bbreg(hw, phy_regarray_table[i], MASKDWORD, phy_regarray_table[i + 1]); udelay(1); RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, "The phy_regarray_table[0] is %x Rtl819XPHY_REGArray[1] is %x\n", phy_regarray_table[i], phy_regarray_table[i + 1]); } } else if (configtype == BASEBAND_CONFIG_AGC_TAB) { if (rtlhal->interfaceindex == 0) { for (i = 0; i < agctab_arraylen; i = i + 2) { rtl_set_bbreg(hw, agctab_array_table[i], MASKDWORD, agctab_array_table[i + 1]); /* Add 1us delay between BB/RF register * setting. */ udelay(1); RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, "The Rtl819XAGCTAB_Array_Table[0] is %u Rtl819XPHY_REGArray[1] is %u\n", agctab_array_table[i], agctab_array_table[i + 1]); } RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "Normal Chip, MAC0, load Rtl819XAGCTAB_Array\n"); } else { if (rtlhal->current_bandtype == BAND_ON_2_4G) { for (i = 0; i < agctab_arraylen; i = i + 2) { rtl_set_bbreg(hw, agctab_array_table[i], MASKDWORD, agctab_array_table[i + 1]); /* Add 1us delay between BB/RF register * setting. */ udelay(1); RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, "The Rtl819XAGCTAB_Array_Table[0] is %u Rtl819XPHY_REGArray[1] is %u\n", agctab_array_table[i], agctab_array_table[i + 1]); } RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "Load Rtl819XAGCTAB_2GArray\n"); } else { for (i = 0; i < agctab_5garraylen; i = i + 2) { rtl_set_bbreg(hw, agctab_5garray_table[i], MASKDWORD, agctab_5garray_table[i + 1]); /* Add 1us delay between BB/RF registeri * setting. */ udelay(1); RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, "The Rtl819XAGCTAB_5GArray_Table[0] is %u Rtl819XPHY_REGArray[1] is %u\n", agctab_5garray_table[i], agctab_5garray_table[i + 1]); } RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "Load Rtl819XAGCTAB_5GArray\n"); } } } return true; }
the_stack_data/1262372.c
/* The Computer Language Benchmarks Game * http://benchmarksgame.alioth.debian.org/ * * contributed by Christoph Bauer * slightly sped up by Petr Prokhorenkov */ #ifdef STATIC #undef STATIC #define STATIC static #else #define STATIC #endif #ifdef PRINTF #define PRINTF2(a,b) printf(a,b) #else #define PRINTF2(a,b) #endif #ifdef TIMER #define TIMER_START() intrinsic_label(TIMER_START) #define TIMER_STOP() intrinsic_label(TIMER_STOP) #else #define TIMER_START() #define TIMER_STOP() #endif #ifdef __Z88DK #include <intrinsic.h> #ifdef PRINTF // enable printf %f #pragma output CLIB_OPT_PRINTF = 0x04000000 #endif #endif #include <math.h> #include <stdio.h> #include <stdlib.h> #define pi 3.141592653589793 #define solar_mass (4 * pi * pi) #define days_per_year 365.24 struct planet { double x, y, z; double vx, vy, vz; double mass; }; /* * Here's one weird thing: inlining of this function * decreases performance by 25%. (I.e. do not compile this with -O3) * Advances with dt == 1.0 */ void advance(int nbodies, struct planet * bodies) { STATIC int i, j; STATIC struct planet *b, *b2; STATIC double dx, dy, dz; STATIC double inv_distance, mag; for (i = 0; i < nbodies; i++) { b = &(bodies[i]); for (j = i + 1; j < nbodies; j++) { b2 = &(bodies[j]); dx = b->x - b2->x; dy = b->y - b2->y; dz = b->z - b2->z; inv_distance = 1.0/sqrt(dx * dx + dy * dy + dz * dz); mag = inv_distance * inv_distance * inv_distance; b->vx -= dx * b2->mass * mag; b->vy -= dy * b2->mass * mag; b->vz -= dz * b2->mass * mag; b2->vx += dx * b->mass * mag; b2->vy += dy * b->mass * mag; b2->vz += dz * b->mass * mag; } } for (i = 0; i < nbodies; i++) { b = &(bodies[i]); b->x += b->vx; b->y += b->vy; b->z += b->vz; } } double energy(int nbodies, struct planet * bodies) { STATIC double e; STATIC int i, j; STATIC struct planet *b, *b2; STATIC double dx, dy, dz; STATIC double distance; e = 0.0; for (i = 0; i < nbodies; i++) { b = &(bodies[i]); e += 0.5 * b->mass * (b->vx * b->vx + b->vy * b->vy + b->vz * b->vz); for (j = i + 1; j < nbodies; j++) { b2 = &(bodies[j]); dx = b->x - b2->x; dy = b->y - b2->y; dz = b->z - b2->z; distance = sqrt(dx * dx + dy * dy + dz * dz); e -= (b->mass * b2->mass) / distance; } } return e; } void offset_momentum(int nbodies, struct planet * bodies) { STATIC double px, py, pz; STATIC int i; px = py = pz = 0.0; for (i = 0; i < nbodies; i++) { px += bodies[i].vx * bodies[i].mass; py += bodies[i].vy * bodies[i].mass; pz += bodies[i].vz * bodies[i].mass; } bodies[0].vx = - px / solar_mass; bodies[0].vy = - py / solar_mass; bodies[0].vz = - pz / solar_mass; } #define NBODIES 5 struct planet bodies[NBODIES] = { { /* sun */ 0, 0, 0, 0, 0, 0, solar_mass }, { /* jupiter */ 4.84143144246472090e+00, -1.16032004402742839e+00, -1.03622044471123109e-01, 1.66007664274403694e-03 * days_per_year, 7.69901118419740425e-03 * days_per_year, -6.90460016972063023e-05 * days_per_year, 9.54791938424326609e-04 * solar_mass }, { /* saturn */ 8.34336671824457987e+00, 4.12479856412430479e+00, -4.03523417114321381e-01, -2.76742510726862411e-03 * days_per_year, 4.99852801234917238e-03 * days_per_year, 2.30417297573763929e-05 * days_per_year, 2.85885980666130812e-04 * solar_mass }, { /* uranus */ 1.28943695621391310e+01, -1.51111514016986312e+01, -2.23307578892655734e-01, 2.96460137564761618e-03 * days_per_year, 2.37847173959480950e-03 * days_per_year, -2.96589568540237556e-05 * days_per_year, 4.36624404335156298e-05 * solar_mass }, { /* neptune */ 1.53796971148509165e+01, -2.59193146099879641e+01, 1.79258772950371181e-01, 2.68067772490389322e-03 * days_per_year, 1.62824170038242295e-03 * days_per_year, -9.51592254519715870e-05 * days_per_year, 5.15138902046611451e-05 * solar_mass } }; #define DT 1e-2 #define RECIP_DT (1.0/DT) /* * Rescale certain properties of bodies. That allows doing * consequential advance()'s as if dt were equal to 1.0. * * When all advances done, rescale bodies back to obtain correct energy. */ void scale_bodies(int nbodies, struct planet * bodies, double scale) { STATIC int i; for (i = 0; i < nbodies; i++) { bodies[i].mass *= scale*scale; bodies[i].vx *= scale; bodies[i].vy *= scale; bodies[i].vz *= scale; } } int main(int argc, char ** argv) { int i; int n = 1000; #ifdef COMMAND n = atoi(argv[1]); #endif TIMER_START(); offset_momentum(NBODIES, bodies); PRINTF2("%.9f\n", energy(NBODIES, bodies)); scale_bodies(NBODIES, bodies, DT); for (i = 1; i <= n; i++) { advance(NBODIES, bodies); } scale_bodies(NBODIES, bodies, RECIP_DT); PRINTF2("%.9f\n", energy(NBODIES, bodies)); TIMER_STOP(); return 0; }
the_stack_data/51699303.c
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2014 Broadcom Corporation. */ /* * Early system init. Currently empty. */ void s_init(void) { }
the_stack_data/68887031.c
#include <stdio.h> int main() { int total = 0, z =0, x, qtd; float sapos = 0.0,ratos = 0.0, coelho = 0.0; char tipo; scanf(" %d", &x); while(z < x) { scanf(" %d %c", &qtd, &tipo); if(tipo == 'C') { coelho += qtd; }else if(tipo == 'R') { ratos += qtd; }else{ sapos += qtd; } total += qtd; z++; } printf("Total: %d cobaias\n",total); printf("Total de coelhos: %.0f\n",coelho); printf("Total de ratos: %.0f\n",ratos); printf("Total de sapos: %.0f\n",sapos); printf("Percentual de coelhos: %.2f %%\n", (coelho*100.00)/total); printf("Percentual de ratos: %.2f %%\n", (ratos*100.00)/total); printf("Percentual de sapos: %.2f %%\n", (sapos*100.00)/total); return 0; }
the_stack_data/192084.c
// RUN: %libomptarget-compile-run-and-check-generic // XFAIL: nvptx64-nvidia-cuda // XFAIL: nvptx64-nvidia-cuda // XFAIL: nvptx64-nvidia-cuda-newDriver // Fails on amdgpu with error: GPU Memory Error // XFAIL: amdgcn-amd-amdhsa // XFAIL: amdgcn-amd-amdhsa-newDriver #include <stdio.h> #include <omp.h> // --------------------------------------------------------------------------- // Various definitions copied from OpenMP RTL extern void __tgt_register_requires(int64_t); // End of definitions copied from OpenMP RTL. // --------------------------------------------------------------------------- #pragma omp requires unified_shared_memory #define N 1024 void init(int A[], int B[], int C[]) { for (int i = 0; i < N; ++i) { A[i] = 0; B[i] = 1; C[i] = i; } } int main(int argc, char *argv[]) { const int device = omp_get_default_device(); // Manual registration of requires flags for Clang versions // that do not support requires. __tgt_register_requires(8); // CHECK: Initial device: [[INITIAL_DEVICE:[0-9]+]] printf("Initial device: %d\n", omp_get_initial_device()); // CHECK: Num devices: [[INITIAL_DEVICE]] printf("Num devices: %d\n", omp_get_num_devices()); // // Target alloc & target memcpy // int A[N], B[N], C[N]; // Init init(A, B, C); int *pA, *pB, *pC; // map ptrs pA = &A[0]; pB = &B[0]; pC = &C[0]; int *d_A = (int *)omp_target_alloc(N * sizeof(int), device); int *d_B = (int *)omp_target_alloc(N * sizeof(int), device); int *d_C = (int *)omp_target_alloc(N * sizeof(int), device); // CHECK: omp_target_alloc succeeded printf("omp_target_alloc %s\n", d_A && d_B && d_C ? "succeeded" : "failed"); omp_target_memcpy(d_B, pB, N * sizeof(int), 0, 0, device, omp_get_initial_device()); omp_target_memcpy(d_C, pC, N * sizeof(int), 0, 0, device, omp_get_initial_device()); #pragma omp target is_device_ptr(d_A, d_B, d_C) device(device) { #pragma omp parallel for schedule(static, 1) for (int i = 0; i < N; i++) { d_A[i] = d_B[i] + d_C[i] + 1; } } omp_target_memcpy(pA, d_A, N * sizeof(int), 0, 0, omp_get_initial_device(), device); // CHECK: Test omp_target_memcpy: Succeeded int fail = 0; for (int i = 0; i < N; ++i) { if (A[i] != i + 2) fail++; } if (fail) { printf("Test omp_target_memcpy: Failed\n"); } else { printf("Test omp_target_memcpy: Succeeded\n"); } // // target_is_present and target_associate/disassociate_ptr // init(A, B, C); // CHECK: B is not present, associating it... // CHECK: omp_target_associate_ptr B succeeded if (!omp_target_is_present(B, device)) { printf("B is not present, associating it...\n"); int rc = omp_target_associate_ptr(B, d_B, N * sizeof(int), 0, device); printf("omp_target_associate_ptr B %s\n", !rc ? "succeeded" : "failed"); } // CHECK: C is not present, associating it... // CHECK: omp_target_associate_ptr C succeeded if (!omp_target_is_present(C, device)) { printf("C is not present, associating it...\n"); int rc = omp_target_associate_ptr(C, d_C, N * sizeof(int), 0, device); printf("omp_target_associate_ptr C %s\n", !rc ? "succeeded" : "failed"); } // CHECK: Inside target data: A is not present // CHECK: Inside target data: B is present // CHECK: Inside target data: C is present #pragma omp target data map(from : B, C) device(device) { printf("Inside target data: A is%s present\n", omp_target_is_present(A, device) ? "" : " not"); printf("Inside target data: B is%s present\n", omp_target_is_present(B, device) ? "" : " not"); printf("Inside target data: C is%s present\n", omp_target_is_present(C, device) ? "" : " not"); #pragma omp target map(from : A) device(device) { #pragma omp parallel for schedule(static, 1) for (int i = 0; i < N; i++) A[i] = B[i] + C[i] + 1; } } // CHECK: B is present, disassociating it... // CHECK: omp_target_disassociate_ptr B succeeded // CHECK: C is present, disassociating it... // CHECK: omp_target_disassociate_ptr C succeeded if (omp_target_is_present(B, device)) { printf("B is present, disassociating it...\n"); int rc = omp_target_disassociate_ptr(B, device); printf("omp_target_disassociate_ptr B %s\n", !rc ? "succeeded" : "failed"); } if (omp_target_is_present(C, device)) { printf("C is present, disassociating it...\n"); int rc = omp_target_disassociate_ptr(C, device); printf("omp_target_disassociate_ptr C %s\n", !rc ? "succeeded" : "failed"); } // CHECK: Test omp_target_associate_ptr: Succeeded fail = 0; for (int i = 0; i < N; ++i) { if (A[i] != i + 2) fail++; } if (fail) { printf("Test omp_target_associate_ptr: Failed\n"); } else { printf("Test omp_target_associate_ptr: Succeeded\n"); } omp_target_free(d_A, device); omp_target_free(d_B, device); omp_target_free(d_C, device); printf("Done!\n"); return 0; }
the_stack_data/72012766.c
#include <stdio.h> #include <stdlib.h> // "Mutlitasking" demo for C. This is 100% legal C, using magic macros and // leveraging the little-understood fact that switch() is not actually block // oriented, it's much more like a computed goto. The C preprocessor must // support the __LINE__ macro. // task(NAME) creates a void function with specified name, and inserts preamble // code to initialize the function state and 'switch' to it. The 'static' // keyword can be used before task() if desired. #define task(name) void name(void){static int __taskstate = 0;switch(__taskstate){default:{ // yield() saves the current source line number to the function's __state // variable and returns. Then compiles a case statement for the same line // number, so the switch(__state) in the preamble will jump there upon // re-entry. #define yield() do{__taskstate=__LINE__;return;case __LINE__:;}while(0) // endtask cleans up the function semantics created by task() and also resets // the task state to 0. #define endtask }}__taskstate = 0;} // Notes: // Normally a task loops forever, yield()ing periodically. If the task // explicitly returns, it will restart from the last yield(). If the task // simply exits (without return statement), it will restart from the beginning. // Stack variables can't be maintained across yield(), use statics or globals // instead. The compiler should complain that "variable is used uninitialized" // if you try it, but this is unreliable as of gcc 8.3.0. // There can't be more than one yield() per source line. The compiler should // complain about "duplicate case value" if you try it. // Very Bad Bugs will result if you attempt to yield() from inside a switch // statement. As far as I know there's no way to make the compiler detect it. // So don't do that. // A simple loop task(one) { while (1) { printf("one 1\n"); yield(); printf("one 2\n"); yield(); } } endtask // Another simple loop with some setup code task(two) { printf("two setup\n"); yield(); while (1) { printf("two again\n"); yield(); } } endtask // Use of a transient variable not referenced across yield(). task(three) { int x; printf("three setup\n"); yield(); while(1) { printf("three"); for (x = 0; x < 3; x++) printf(" %d", x); printf("\n"); yield(); } } endtask // Use of a static variable referenced across yield(). In this case removing // the 'static' will cause invalid behavior does not reliably trigger a compile // error. task(four) { static int x; for (x = 0; x < 5; x++) { printf("four %d\n", x); yield(); } } endtask // Demonstrate the effect of implicit return. This is functionally identical // to task one. task(five) { printf("five 1\n"); yield(); printf("five 2\n"); // implicit return restarts at the top } endtask // Demonstrate the effect of an explicit return. This is functionally // identical to task two. task(six) { printf("six setup\n"); yield(); printf("six again\n"); return; // explcit return restarts at the last yield() } endtask void background(void) { // NULL-terminated list of tasks const void(*tasks[])(void) = {one, two, three, four, five, six, NULL}; // Run each for (int t = 0; tasks[t]; t++) tasks[t](); } int main(void) { printf("main setup\n"); // some foreground stuff background(); for (int i = 1; i < 7; i++) { printf("main %d\n", i); // more foreground stuff background(); } printf("Done\n"); }
the_stack_data/12636815.c
/* * Imported from NetBSD 5.1 with modifications to make it a vsnprintf(3) * function */ /* $NetBSD: subr_prf.c,v 1.124.4.1 2009/02/02 19:47:47 snj Exp $ */ /*- * Copyright (c) 1986, 1988, 1991, 1993 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)subr_prf.c 8.4 (Berkeley) 5/4/95 */ #include <unistd.h> #include <stdint.h> #include <string.h> #include <stdio.h> #include <stdarg.h> /* flags for kprintf */ #define TOCONS 0x0001 /* to the console */ #define TOTTY 0x0002 /* to the process' tty */ #define TOLOG 0x0004 /* to the kernel message buffer */ #define TOBUFONLY 0x0008 /* to the buffer (only) [for snprintf] */ #define TODDB 0x0010 /* to ddb console */ #define NOLOCK 0x1000 /* don't acquire a tty lock */ /* max size buffer kprintf needs to print quad_t [size in base 8 + \0] */ #define KPRINTF_BUFSIZE 23 /*(8 * 8 / 3 + 2) */ /* * The following macro is used to remove const cast-away warnings * from gcc -Wcast-qual; it should be used with caution because it * can hide valid errors; in particular most valid uses are in * situations where the API requires it, not to cast away string * constants. We don't use *intptr_t on purpose here and we are * explicit about unsigned long so that we don't have additional * dependencies. */ #define __UNCONST(a) ((void *)(unsigned long)(const void *)(a)) #define putchar(c, flags, tty) \ do { (void)(c); (void)(flags); (void)(tty); } while(0) static int kprintf(const char *fmt0, int oflags, void *vp, char *sbuf, va_list ap); static const char hexdigits[] = "0123456789abcdef"; static const char HEXDIGITS[] = "0123456789ABCDEF"; /* * snprintf: print a message to a buffer */ int snprintf(char *bf, size_t size, const char *fmt, ...) { int retval; va_list ap; char *p; if (size < 1) return -1; p = bf + size - 1; va_start(ap, fmt); retval = kprintf(fmt, TOBUFONLY, &p, bf, ap); va_end(ap); *(p) = 0; /* null terminate */ return retval; } /* * vsnprintf: print a message to a buffer [already have va_alist] */ int vsnprintf(char *bf, size_t size, const char *fmt, va_list ap) { int retval; char *p; if (size < 1) return -1; p = bf + size - 1; retval = kprintf(fmt, TOBUFONLY, &p, bf, ap); *(p) = 0; /* null terminate */ return retval; } /* * kprintf: scaled down version of printf(3). * * this version based on vfprintf() from libc which was derived from * software contributed to Berkeley by Chris Torek. * */ /* * macros for converting digits to letters and vice versa */ #define to_digit(c) ((c) - '0') #define is_digit(c) ((unsigned)to_digit(c) <= 9) #define to_char(n) ((n) + '0') /* * flags used during conversion. */ #define ALT 0x001 /* alternate form */ #define HEXPREFIX 0x002 /* add 0x or 0X prefix */ #define LADJUST 0x004 /* left adjustment */ #define LONGDBL 0x008 /* long double; unimplemented */ #define LONGINT 0x010 /* long integer */ #define SHORTINT 0x040 /* short integer */ #define MAXINT 0x080 /* intmax_t */ #define PTRINT 0x100 /* intptr_t */ #define SIZEINT 0x200 /* size_t */ #define ZEROPAD 0x400 /* zero (as opposed to blank) pad */ #define FPT 0x800 /* Floating point number */ /* * To extend shorts properly, we need both signed and unsigned * argument extraction methods. */ #define SARG() \ (flags&MAXINT ? va_arg(ap, intmax_t) : \ flags&PTRINT ? va_arg(ap, intptr_t) : \ flags&SIZEINT ? va_arg(ap, ssize_t) : /* XXX */ \ flags&LONGINT ? va_arg(ap, long) : \ flags&SHORTINT ? (long)(short)va_arg(ap, int) : \ (long)va_arg(ap, int)) #define UARG() \ (flags&MAXINT ? va_arg(ap, uintmax_t) : \ flags&PTRINT ? va_arg(ap, uintptr_t) : \ flags&SIZEINT ? va_arg(ap, size_t) : \ flags&LONGINT ? va_arg(ap, unsigned long) : \ flags&SHORTINT ? (unsigned long)(unsigned short)va_arg(ap, int) : \ (unsigned long)va_arg(ap, unsigned)) #define KPRINTF_PUTCHAR(C) { \ if (oflags == TOBUFONLY) { \ if ((vp != NULL) && (sbuf == tailp)) { \ ret += 1; /* indicate error */ \ goto overflow; \ } \ *sbuf++ = (C); \ } else { \ putchar((C), oflags, (struct tty *)vp); \ } \ } /* * Guts of kernel printf. Note, we already expect to be in a mutex! */ static int kprintf(const char *fmt0, int oflags, void *vp, char *sbuf, va_list ap) { const char *fmt; /* format string */ int ch; /* character from fmt */ int n; /* handy integer (short term usage) */ char *cp; /* handy char pointer (short term usage) */ int flags; /* flags as above */ int ret; /* return value accumulator */ int width; /* width from format (%8d), or 0 */ int prec; /* precision from format (%.3d), or -1 */ char sign; /* sign prefix (' ', '+', '-', or \0) */ uint32_t _uquad; /* integer arguments %[diouxX] */ enum { OCT, DEC, HEX } base; /* base for [diouxX] conversion */ int dprec; /* a copy of prec if [diouxX], 0 otherwise */ int realsz; /* field size expanded by dprec */ int size; /* size of converted field or string */ const char *xdigs; /* digits for [xX] conversion */ char bf[KPRINTF_BUFSIZE]; /* space for %c, %[diouxX] */ char *tailp; /* tail pointer for snprintf */ tailp = NULL; /* XXX: shutup gcc */ if (oflags == TOBUFONLY && (vp != NULL)) tailp = *(char **)vp; cp = NULL; /* XXX: shutup gcc */ size = 0; /* XXX: shutup gcc */ fmt = fmt0; ret = 0; xdigs = NULL; /* XXX: shut up gcc warning */ /* * Scan the format for conversions (`%' character). */ for (;;) { while (*fmt != '%' && *fmt) { ret++; KPRINTF_PUTCHAR(*fmt++); } if (*fmt == 0) goto done; fmt++; /* skip over '%' */ flags = 0; dprec = 0; width = 0; prec = -1; sign = '\0'; rflag: ch = *fmt++; reswitch: switch (ch) { case ' ': /* * ``If the space and + flags both appear, the space * flag will be ignored.'' * -- ANSI X3J11 */ if (!sign) sign = ' '; goto rflag; case '#': flags |= ALT; goto rflag; case '*': /* * ``A negative field width argument is taken as a * - flag followed by a positive field width.'' * -- ANSI X3J11 * They don't exclude field widths read from args. */ if ((width = va_arg(ap, int)) >= 0) goto rflag; width = -width; /* FALLTHROUGH */ case '-': flags |= LADJUST; goto rflag; case '+': sign = '+'; goto rflag; case '.': if ((ch = *fmt++) == '*') { n = va_arg(ap, int); prec = n < 0 ? -1 : n; goto rflag; } n = 0; while (is_digit(ch)) { n = 10 * n + to_digit(ch); ch = *fmt++; } prec = n < 0 ? -1 : n; goto reswitch; case '0': /* * ``Note that 0 is taken as a flag, not as the * beginning of a field width.'' * -- ANSI X3J11 */ flags |= ZEROPAD; goto rflag; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': n = 0; do { n = 10 * n + to_digit(ch); ch = *fmt++; } while (is_digit(ch)); width = n; goto reswitch; case 'h': flags |= SHORTINT; goto rflag; case 'j': flags |= MAXINT; goto rflag; case 'l': flags |= LONGINT; goto rflag; case 't': flags |= PTRINT; goto rflag; case 'z': flags |= SIZEINT; goto rflag; case 'c': *(cp = bf) = va_arg(ap, int); size = 1; sign = '\0'; break; case 'D': flags |= LONGINT; /* FALLTHROUGH */ case 'd': case 'i': _uquad = SARG(); if ((int32_t) _uquad < 0) { _uquad = -_uquad; sign = '-'; } base = DEC; goto number; case 'n': if (flags & MAXINT) *va_arg(ap, intmax_t *) = ret; else if (flags & PTRINT) *va_arg(ap, intptr_t *) = ret; else if (flags & SIZEINT) *va_arg(ap, ssize_t *) = ret; else if (flags & LONGINT) *va_arg(ap, long *) = ret; else if (flags & SHORTINT) *va_arg(ap, short *) = ret; else *va_arg(ap, int *) = ret; continue; /* no output */ case 'O': flags |= LONGINT; /* FALLTHROUGH */ case 'o': _uquad = UARG(); base = OCT; goto nosign; case 'p': /* * ``The argument shall be a pointer to void. The * value of the pointer is converted to a sequence * of printable characters, in an implementation- * defined manner.'' * -- ANSI X3J11 */ /* NOSTRICT */ _uquad = (unsigned long)va_arg(ap, void *); base = HEX; xdigs = hexdigits; flags |= HEXPREFIX; ch = 'x'; goto nosign; case 's': if ((cp = va_arg(ap, char *)) == NULL) /* XXXUNCONST */ cp = __UNCONST("(null)"); if (prec >= 0) { /* * can't use strlen; can only look for the * NUL in the first `prec' characters, and * strlen() will go further. */ char *p = memchr(cp, 0, prec); if (p != NULL) { size = p - cp; if (size > prec) size = prec; } else { size = prec; } } else { size = strlen(cp); } sign = '\0'; break; case 'U': flags |= LONGINT; /* FALLTHROUGH */ case 'u': _uquad = UARG(); base = DEC; goto nosign; case 'X': xdigs = HEXDIGITS; goto hex; case 'x': xdigs = hexdigits; hex: _uquad = UARG(); base = HEX; /* leading 0x/X only if non-zero */ if (flags & ALT && _uquad != 0) flags |= HEXPREFIX; /* unsigned conversions */ nosign: sign = '\0'; /* * ``... diouXx conversions ... if a precision is * specified, the 0 flag will be ignored.'' * -- ANSI X3J11 */ number: if ((dprec = prec) >= 0) flags &= ~ZEROPAD; /* * ``The result of converting a zero value with an * explicit precision of zero is no characters.'' * -- ANSI X3J11 */ cp = bf + KPRINTF_BUFSIZE; if (_uquad != 0 || prec != 0) { /* * Unsigned mod is hard, and unsigned mod * by a constant is easier than that by * a variable; hence this switch. */ switch (base) { case OCT: do { *--cp = to_char(_uquad & 7); _uquad >>= 3; } while (_uquad); /* handle octal leading 0 */ if (flags & ALT && *cp != '0') *--cp = '0'; break; case DEC: /* many numbers are 1 digit */ while (_uquad >= 10) { *--cp = to_char(_uquad % 10); _uquad /= 10; } *--cp = to_char(_uquad); break; case HEX: do { *--cp = xdigs[_uquad & 15]; _uquad >>= 4; } while (_uquad); break; default: /* XXXUNCONST */ cp = __UNCONST ("bug in kprintf: bad base"); size = strlen(cp); goto skipsize; } } size = bf + KPRINTF_BUFSIZE - cp; skipsize: break; default: /* "%?" prints ?, unless ? is NUL */ if (ch == '\0') goto done; /* pretend it was %c with argument ch */ cp = bf; *cp = ch; size = 1; sign = '\0'; break; } /* * All reasonable formats wind up here. At this point, `cp' * points to a string which (if not flags&LADJUST) should be * padded out to `width' places. If flags&ZEROPAD, it should * first be prefixed by any sign or other prefix; otherwise, * it should be blank padded before the prefix is emitted. * After any left-hand padding and prefixing, emit zeroes * required by a decimal [diouxX] precision, then print the * string proper, then emit zeroes required by any leftover * floating precision; finally, if LADJUST, pad with blanks. * * Compute actual size, so we know how much to pad. * size excludes decimal prec; realsz includes it. */ realsz = dprec > size ? dprec : size; if (sign) realsz++; else if (flags & HEXPREFIX) realsz += 2; /* adjust ret */ ret += width > realsz ? width : realsz; /* right-adjusting blank padding */ if ((flags & (LADJUST | ZEROPAD)) == 0) { n = width - realsz; while (n-- > 0) KPRINTF_PUTCHAR(' '); } /* prefix */ if (sign) { KPRINTF_PUTCHAR(sign); } else if (flags & HEXPREFIX) { KPRINTF_PUTCHAR('0'); KPRINTF_PUTCHAR(ch); } /* right-adjusting zero padding */ if ((flags & (LADJUST | ZEROPAD)) == ZEROPAD) { n = width - realsz; while (n-- > 0) KPRINTF_PUTCHAR('0'); } /* leading zeroes from decimal precision */ n = dprec - size; while (n-- > 0) KPRINTF_PUTCHAR('0'); /* the string or number proper */ while (size--) KPRINTF_PUTCHAR(*cp++); /* left-adjusting padding (always blank) */ if (flags & LADJUST) { n = width - realsz; while (n-- > 0) KPRINTF_PUTCHAR(' '); } } done: if ((oflags == TOBUFONLY) && (vp != NULL)) *(char **)vp = sbuf; overflow: return ret; }
the_stack_data/113790.c
#include <math.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <complex.h> #ifdef complex #undef complex #endif #ifdef I #undef I #endif #if defined(_WIN64) typedef long long BLASLONG; typedef unsigned long long BLASULONG; #else typedef long BLASLONG; typedef unsigned long BLASULONG; #endif #ifdef LAPACK_ILP64 typedef BLASLONG blasint; #if defined(_WIN64) #define blasabs(x) llabs(x) #else #define blasabs(x) labs(x) #endif #else typedef int blasint; #define blasabs(x) abs(x) #endif typedef blasint integer; typedef unsigned int uinteger; typedef char *address; typedef short int shortint; typedef float real; typedef double doublereal; typedef struct { real r, i; } complex; typedef struct { doublereal r, i; } doublecomplex; #ifdef _MSC_VER static inline _Fcomplex Cf(complex *z) {_Fcomplex zz={z->r , z->i}; return zz;} static inline _Dcomplex Cd(doublecomplex *z) {_Dcomplex zz={z->r , z->i};return zz;} static inline _Fcomplex * _pCf(complex *z) {return (_Fcomplex*)z;} static inline _Dcomplex * _pCd(doublecomplex *z) {return (_Dcomplex*)z;} #else static inline _Complex float Cf(complex *z) {return z->r + z->i*_Complex_I;} static inline _Complex double Cd(doublecomplex *z) {return z->r + z->i*_Complex_I;} static inline _Complex float * _pCf(complex *z) {return (_Complex float*)z;} static inline _Complex double * _pCd(doublecomplex *z) {return (_Complex double*)z;} #endif #define pCf(z) (*_pCf(z)) #define pCd(z) (*_pCd(z)) typedef int logical; typedef short int shortlogical; typedef char logical1; typedef char integer1; #define TRUE_ (1) #define FALSE_ (0) /* Extern is for use with -E */ #ifndef Extern #define Extern extern #endif /* I/O stuff */ typedef int flag; typedef int ftnlen; typedef int ftnint; /*external read, write*/ typedef struct { flag cierr; ftnint ciunit; flag ciend; char *cifmt; ftnint cirec; } cilist; /*internal read, write*/ typedef struct { flag icierr; char *iciunit; flag iciend; char *icifmt; ftnint icirlen; ftnint icirnum; } icilist; /*open*/ typedef struct { flag oerr; ftnint ounit; char *ofnm; ftnlen ofnmlen; char *osta; char *oacc; char *ofm; ftnint orl; char *oblnk; } olist; /*close*/ typedef struct { flag cerr; ftnint cunit; char *csta; } cllist; /*rewind, backspace, endfile*/ typedef struct { flag aerr; ftnint aunit; } alist; /* inquire */ typedef struct { flag inerr; ftnint inunit; char *infile; ftnlen infilen; ftnint *inex; /*parameters in standard's order*/ ftnint *inopen; ftnint *innum; ftnint *innamed; char *inname; ftnlen innamlen; char *inacc; ftnlen inacclen; char *inseq; ftnlen inseqlen; char *indir; ftnlen indirlen; char *infmt; ftnlen infmtlen; char *inform; ftnint informlen; char *inunf; ftnlen inunflen; ftnint *inrecl; ftnint *innrec; char *inblank; ftnlen inblanklen; } inlist; #define VOID void union Multitype { /* for multiple entry points */ integer1 g; shortint h; integer i; /* longint j; */ real r; doublereal d; complex c; doublecomplex z; }; typedef union Multitype Multitype; struct Vardesc { /* for Namelist */ char *name; char *addr; ftnlen *dims; int type; }; typedef struct Vardesc Vardesc; struct Namelist { char *name; Vardesc **vars; int nvars; }; typedef struct Namelist Namelist; #define abs(x) ((x) >= 0 ? (x) : -(x)) #define dabs(x) (fabs(x)) #define f2cmin(a,b) ((a) <= (b) ? (a) : (b)) #define f2cmax(a,b) ((a) >= (b) ? (a) : (b)) #define dmin(a,b) (f2cmin(a,b)) #define dmax(a,b) (f2cmax(a,b)) #define bit_test(a,b) ((a) >> (b) & 1) #define bit_clear(a,b) ((a) & ~((uinteger)1 << (b))) #define bit_set(a,b) ((a) | ((uinteger)1 << (b))) #define abort_() { sig_die("Fortran abort routine called", 1); } #define c_abs(z) (cabsf(Cf(z))) #define c_cos(R,Z) { pCf(R)=ccos(Cf(Z)); } #ifdef _MSC_VER #define c_div(c, a, b) {Cf(c)._Val[0] = (Cf(a)._Val[0]/Cf(b)._Val[0]); Cf(c)._Val[1]=(Cf(a)._Val[1]/Cf(b)._Val[1]);} #define z_div(c, a, b) {Cd(c)._Val[0] = (Cd(a)._Val[0]/Cd(b)._Val[0]); Cd(c)._Val[1]=(Cd(a)._Val[1]/df(b)._Val[1]);} #else #define c_div(c, a, b) {pCf(c) = Cf(a)/Cf(b);} #define z_div(c, a, b) {pCd(c) = Cd(a)/Cd(b);} #endif #define c_exp(R, Z) {pCf(R) = cexpf(Cf(Z));} #define c_log(R, Z) {pCf(R) = clogf(Cf(Z));} #define c_sin(R, Z) {pCf(R) = csinf(Cf(Z));} //#define c_sqrt(R, Z) {*(R) = csqrtf(Cf(Z));} #define c_sqrt(R, Z) {pCf(R) = csqrtf(Cf(Z));} #define d_abs(x) (fabs(*(x))) #define d_acos(x) (acos(*(x))) #define d_asin(x) (asin(*(x))) #define d_atan(x) (atan(*(x))) #define d_atn2(x, y) (atan2(*(x),*(y))) #define d_cnjg(R, Z) { pCd(R) = conj(Cd(Z)); } #define r_cnjg(R, Z) { pCf(R) = conjf(Cf(Z)); } #define d_cos(x) (cos(*(x))) #define d_cosh(x) (cosh(*(x))) #define d_dim(__a, __b) ( *(__a) > *(__b) ? *(__a) - *(__b) : 0.0 ) #define d_exp(x) (exp(*(x))) #define d_imag(z) (cimag(Cd(z))) #define r_imag(z) (cimagf(Cf(z))) #define d_int(__x) (*(__x)>0 ? floor(*(__x)) : -floor(- *(__x))) #define r_int(__x) (*(__x)>0 ? floor(*(__x)) : -floor(- *(__x))) #define d_lg10(x) ( 0.43429448190325182765 * log(*(x)) ) #define r_lg10(x) ( 0.43429448190325182765 * log(*(x)) ) #define d_log(x) (log(*(x))) #define d_mod(x, y) (fmod(*(x), *(y))) #define u_nint(__x) ((__x)>=0 ? floor((__x) + .5) : -floor(.5 - (__x))) #define d_nint(x) u_nint(*(x)) #define u_sign(__a,__b) ((__b) >= 0 ? ((__a) >= 0 ? (__a) : -(__a)) : -((__a) >= 0 ? (__a) : -(__a))) #define d_sign(a,b) u_sign(*(a),*(b)) #define r_sign(a,b) u_sign(*(a),*(b)) #define d_sin(x) (sin(*(x))) #define d_sinh(x) (sinh(*(x))) #define d_sqrt(x) (sqrt(*(x))) #define d_tan(x) (tan(*(x))) #define d_tanh(x) (tanh(*(x))) #define i_abs(x) abs(*(x)) #define i_dnnt(x) ((integer)u_nint(*(x))) #define i_len(s, n) (n) #define i_nint(x) ((integer)u_nint(*(x))) #define i_sign(a,b) ((integer)u_sign((integer)*(a),(integer)*(b))) #define pow_dd(ap, bp) ( pow(*(ap), *(bp))) #define pow_si(B,E) spow_ui(*(B),*(E)) #define pow_ri(B,E) spow_ui(*(B),*(E)) #define pow_di(B,E) dpow_ui(*(B),*(E)) #define pow_zi(p, a, b) {pCd(p) = zpow_ui(Cd(a), *(b));} #define pow_ci(p, a, b) {pCf(p) = cpow_ui(Cf(a), *(b));} #define pow_zz(R,A,B) {pCd(R) = cpow(Cd(A),*(B));} #define s_cat(lpp, rpp, rnp, np, llp) { ftnlen i, nc, ll; char *f__rp, *lp; ll = (llp); lp = (lpp); for(i=0; i < (int)*(np); ++i) { nc = ll; if((rnp)[i] < nc) nc = (rnp)[i]; ll -= nc; f__rp = (rpp)[i]; while(--nc >= 0) *lp++ = *(f__rp)++; } while(--ll >= 0) *lp++ = ' '; } #define s_cmp(a,b,c,d) ((integer)strncmp((a),(b),f2cmin((c),(d)))) #define s_copy(A,B,C,D) { int __i,__m; for (__i=0, __m=f2cmin((C),(D)); __i<__m && (B)[__i] != 0; ++__i) (A)[__i] = (B)[__i]; } #define sig_die(s, kill) { exit(1); } #define s_stop(s, n) {exit(0);} static char junk[] = "\n@(#)LIBF77 VERSION 19990503\n"; #define z_abs(z) (cabs(Cd(z))) #define z_exp(R, Z) {pCd(R) = cexp(Cd(Z));} #define z_sqrt(R, Z) {pCd(R) = csqrt(Cd(Z));} #define myexit_() break; #define mycycle() continue; #define myceiling(w) {ceil(w)} #define myhuge(w) {HUGE_VAL} //#define mymaxloc_(w,s,e,n) {if (sizeof(*(w)) == sizeof(double)) dmaxloc_((w),*(s),*(e),n); else dmaxloc_((w),*(s),*(e),n);} #define mymaxloc(w,s,e,n) {dmaxloc_(w,*(s),*(e),n)} /* procedure parameter types for -A and -C++ */ #define F2C_proc_par_types 1 #ifdef __cplusplus typedef logical (*L_fp)(...); #else typedef logical (*L_fp)(); #endif static float spow_ui(float x, integer n) { float pow=1.0; unsigned long int u; if(n != 0) { if(n < 0) n = -n, x = 1/x; for(u = n; ; ) { if(u & 01) pow *= x; if(u >>= 1) x *= x; else break; } } return pow; } static double dpow_ui(double x, integer n) { double pow=1.0; unsigned long int u; if(n != 0) { if(n < 0) n = -n, x = 1/x; for(u = n; ; ) { if(u & 01) pow *= x; if(u >>= 1) x *= x; else break; } } return pow; } #ifdef _MSC_VER static _Fcomplex cpow_ui(complex x, integer n) { complex pow={1.0,0.0}; unsigned long int u; if(n != 0) { if(n < 0) n = -n, x.r = 1/x.r, x.i=1/x.i; for(u = n; ; ) { if(u & 01) pow.r *= x.r, pow.i *= x.i; if(u >>= 1) x.r *= x.r, x.i *= x.i; else break; } } _Fcomplex p={pow.r, pow.i}; return p; } #else static _Complex float cpow_ui(_Complex float x, integer n) { _Complex float pow=1.0; unsigned long int u; if(n != 0) { if(n < 0) n = -n, x = 1/x; for(u = n; ; ) { if(u & 01) pow *= x; if(u >>= 1) x *= x; else break; } } return pow; } #endif #ifdef _MSC_VER static _Dcomplex zpow_ui(_Dcomplex x, integer n) { _Dcomplex pow={1.0,0.0}; unsigned long int u; if(n != 0) { if(n < 0) n = -n, x._Val[0] = 1/x._Val[0], x._Val[1] =1/x._Val[1]; for(u = n; ; ) { if(u & 01) pow._Val[0] *= x._Val[0], pow._Val[1] *= x._Val[1]; if(u >>= 1) x._Val[0] *= x._Val[0], x._Val[1] *= x._Val[1]; else break; } } _Dcomplex p = {pow._Val[0], pow._Val[1]}; return p; } #else static _Complex double zpow_ui(_Complex double x, integer n) { _Complex double pow=1.0; unsigned long int u; if(n != 0) { if(n < 0) n = -n, x = 1/x; for(u = n; ; ) { if(u & 01) pow *= x; if(u >>= 1) x *= x; else break; } } return pow; } #endif static integer pow_ii(integer x, integer n) { integer pow; unsigned long int u; if (n <= 0) { if (n == 0 || x == 1) pow = 1; else if (x != -1) pow = x == 0 ? 1/x : 0; else n = -n; } if ((n > 0) || !(n == 0 || x == 1 || x != -1)) { u = n; for(pow = 1; ; ) { if(u & 01) pow *= x; if(u >>= 1) x *= x; else break; } } return pow; } static integer dmaxloc_(double *w, integer s, integer e, integer *n) { double m; integer i, mi; for(m=w[s-1], mi=s, i=s+1; i<=e; i++) if (w[i-1]>m) mi=i ,m=w[i-1]; return mi-s+1; } static integer smaxloc_(float *w, integer s, integer e, integer *n) { float m; integer i, mi; for(m=w[s-1], mi=s, i=s+1; i<=e; i++) if (w[i-1]>m) mi=i ,m=w[i-1]; return mi-s+1; } static inline void cdotc_(complex *z, integer *n_, complex *x, integer *incx_, complex *y, integer *incy_) { integer n = *n_, incx = *incx_, incy = *incy_, i; #ifdef _MSC_VER _Fcomplex zdotc = {0.0, 0.0}; if (incx == 1 && incy == 1) { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc._Val[0] += conjf(Cf(&x[i]))._Val[0] * Cf(&y[i])._Val[0]; zdotc._Val[1] += conjf(Cf(&x[i]))._Val[1] * Cf(&y[i])._Val[1]; } } else { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc._Val[0] += conjf(Cf(&x[i*incx]))._Val[0] * Cf(&y[i*incy])._Val[0]; zdotc._Val[1] += conjf(Cf(&x[i*incx]))._Val[1] * Cf(&y[i*incy])._Val[1]; } } pCf(z) = zdotc; } #else _Complex float zdotc = 0.0; if (incx == 1 && incy == 1) { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += conjf(Cf(&x[i])) * Cf(&y[i]); } } else { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += conjf(Cf(&x[i*incx])) * Cf(&y[i*incy]); } } pCf(z) = zdotc; } #endif static inline void zdotc_(doublecomplex *z, integer *n_, doublecomplex *x, integer *incx_, doublecomplex *y, integer *incy_) { integer n = *n_, incx = *incx_, incy = *incy_, i; #ifdef _MSC_VER _Dcomplex zdotc = {0.0, 0.0}; if (incx == 1 && incy == 1) { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc._Val[0] += conj(Cd(&x[i]))._Val[0] * Cd(&y[i])._Val[0]; zdotc._Val[1] += conj(Cd(&x[i]))._Val[1] * Cd(&y[i])._Val[1]; } } else { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc._Val[0] += conj(Cd(&x[i*incx]))._Val[0] * Cd(&y[i*incy])._Val[0]; zdotc._Val[1] += conj(Cd(&x[i*incx]))._Val[1] * Cd(&y[i*incy])._Val[1]; } } pCd(z) = zdotc; } #else _Complex double zdotc = 0.0; if (incx == 1 && incy == 1) { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += conj(Cd(&x[i])) * Cd(&y[i]); } } else { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += conj(Cd(&x[i*incx])) * Cd(&y[i*incy]); } } pCd(z) = zdotc; } #endif static inline void cdotu_(complex *z, integer *n_, complex *x, integer *incx_, complex *y, integer *incy_) { integer n = *n_, incx = *incx_, incy = *incy_, i; #ifdef _MSC_VER _Fcomplex zdotc = {0.0, 0.0}; if (incx == 1 && incy == 1) { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc._Val[0] += Cf(&x[i])._Val[0] * Cf(&y[i])._Val[0]; zdotc._Val[1] += Cf(&x[i])._Val[1] * Cf(&y[i])._Val[1]; } } else { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc._Val[0] += Cf(&x[i*incx])._Val[0] * Cf(&y[i*incy])._Val[0]; zdotc._Val[1] += Cf(&x[i*incx])._Val[1] * Cf(&y[i*incy])._Val[1]; } } pCf(z) = zdotc; } #else _Complex float zdotc = 0.0; if (incx == 1 && incy == 1) { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += Cf(&x[i]) * Cf(&y[i]); } } else { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += Cf(&x[i*incx]) * Cf(&y[i*incy]); } } pCf(z) = zdotc; } #endif static inline void zdotu_(doublecomplex *z, integer *n_, doublecomplex *x, integer *incx_, doublecomplex *y, integer *incy_) { integer n = *n_, incx = *incx_, incy = *incy_, i; #ifdef _MSC_VER _Dcomplex zdotc = {0.0, 0.0}; if (incx == 1 && incy == 1) { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc._Val[0] += Cd(&x[i])._Val[0] * Cd(&y[i])._Val[0]; zdotc._Val[1] += Cd(&x[i])._Val[1] * Cd(&y[i])._Val[1]; } } else { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc._Val[0] += Cd(&x[i*incx])._Val[0] * Cd(&y[i*incy])._Val[0]; zdotc._Val[1] += Cd(&x[i*incx])._Val[1] * Cd(&y[i*incy])._Val[1]; } } pCd(z) = zdotc; } #else _Complex double zdotc = 0.0; if (incx == 1 && incy == 1) { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += Cd(&x[i]) * Cd(&y[i]); } } else { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += Cd(&x[i*incx]) * Cd(&y[i*incy]); } } pCd(z) = zdotc; } #endif /* -- translated by f2c (version 20000121). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ /* Table of constant values */ static real c_b4 = -1.f; static real c_b5 = 1.f; static integer c__1 = 1; static real c_b38 = 0.f; /* > \brief \b SLAHR2 reduces the specified number of first columns of a general rectangular matrix A so that elements below the specified subdiagonal are zero, and returns auxiliary matrices which are needed to apply the transformation to the unreduced part */ /* of A. */ /* =========== DOCUMENTATION =========== */ /* Online html documentation available at */ /* http://www.netlib.org/lapack/explore-html/ */ /* > \htmlonly */ /* > Download SLAHR2 + dependencies */ /* > <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/slahr2. f"> */ /* > [TGZ]</a> */ /* > <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/slahr2. f"> */ /* > [ZIP]</a> */ /* > <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/slahr2. f"> */ /* > [TXT]</a> */ /* > \endhtmlonly */ /* Definition: */ /* =========== */ /* SUBROUTINE SLAHR2( N, K, NB, A, LDA, TAU, T, LDT, Y, LDY ) */ /* INTEGER K, LDA, LDT, LDY, N, NB */ /* REAL A( LDA, * ), T( LDT, NB ), TAU( NB ), */ /* $ Y( LDY, NB ) */ /* > \par Purpose: */ /* ============= */ /* > */ /* > \verbatim */ /* > */ /* > SLAHR2 reduces the first NB columns of A real general n-BY-(n-k+1) */ /* > matrix A so that elements below the k-th subdiagonal are zero. The */ /* > reduction is performed by an orthogonal similarity transformation */ /* > Q**T * A * Q. The routine returns the matrices V and T which determine */ /* > Q as a block reflector I - V*T*V**T, and also the matrix Y = A * V * T. */ /* > */ /* > This is an auxiliary routine called by SGEHRD. */ /* > \endverbatim */ /* Arguments: */ /* ========== */ /* > \param[in] N */ /* > \verbatim */ /* > N is INTEGER */ /* > The order of the matrix A. */ /* > \endverbatim */ /* > */ /* > \param[in] K */ /* > \verbatim */ /* > K is INTEGER */ /* > The offset for the reduction. Elements below the k-th */ /* > subdiagonal in the first NB columns are reduced to zero. */ /* > K < N. */ /* > \endverbatim */ /* > */ /* > \param[in] NB */ /* > \verbatim */ /* > NB is INTEGER */ /* > The number of columns to be reduced. */ /* > \endverbatim */ /* > */ /* > \param[in,out] A */ /* > \verbatim */ /* > A is REAL array, dimension (LDA,N-K+1) */ /* > On entry, the n-by-(n-k+1) general matrix A. */ /* > On exit, the elements on and above the k-th subdiagonal in */ /* > the first NB columns are overwritten with the corresponding */ /* > elements of the reduced matrix; the elements below the k-th */ /* > subdiagonal, with the array TAU, represent the matrix Q as a */ /* > product of elementary reflectors. The other columns of A are */ /* > unchanged. See Further Details. */ /* > \endverbatim */ /* > */ /* > \param[in] LDA */ /* > \verbatim */ /* > LDA is INTEGER */ /* > The leading dimension of the array A. LDA >= f2cmax(1,N). */ /* > \endverbatim */ /* > */ /* > \param[out] TAU */ /* > \verbatim */ /* > TAU is REAL array, dimension (NB) */ /* > The scalar factors of the elementary reflectors. See Further */ /* > Details. */ /* > \endverbatim */ /* > */ /* > \param[out] T */ /* > \verbatim */ /* > T is REAL array, dimension (LDT,NB) */ /* > The upper triangular matrix T. */ /* > \endverbatim */ /* > */ /* > \param[in] LDT */ /* > \verbatim */ /* > LDT is INTEGER */ /* > The leading dimension of the array T. LDT >= NB. */ /* > \endverbatim */ /* > */ /* > \param[out] Y */ /* > \verbatim */ /* > Y is REAL array, dimension (LDY,NB) */ /* > The n-by-nb matrix Y. */ /* > \endverbatim */ /* > */ /* > \param[in] LDY */ /* > \verbatim */ /* > LDY is INTEGER */ /* > The leading dimension of the array Y. LDY >= N. */ /* > \endverbatim */ /* Authors: */ /* ======== */ /* > \author Univ. of Tennessee */ /* > \author Univ. of California Berkeley */ /* > \author Univ. of Colorado Denver */ /* > \author NAG Ltd. */ /* > \date December 2016 */ /* > \ingroup realOTHERauxiliary */ /* > \par Further Details: */ /* ===================== */ /* > */ /* > \verbatim */ /* > */ /* > The matrix Q is represented as a product of nb elementary reflectors */ /* > */ /* > Q = H(1) H(2) . . . H(nb). */ /* > */ /* > Each H(i) has the form */ /* > */ /* > H(i) = I - tau * v * v**T */ /* > */ /* > where tau is a real scalar, and v is a real vector with */ /* > v(1:i+k-1) = 0, v(i+k) = 1; v(i+k+1:n) is stored on exit in */ /* > A(i+k+1:n,i), and tau in TAU(i). */ /* > */ /* > The elements of the vectors v together form the (n-k+1)-by-nb matrix */ /* > V which is needed, with T and Y, to apply the transformation to the */ /* > unreduced part of the matrix, using an update of the form: */ /* > A := (I - V*T*V**T) * (A - Y*V**T). */ /* > */ /* > The contents of A on exit are illustrated by the following example */ /* > with n = 7, k = 3 and nb = 2: */ /* > */ /* > ( a a a a a ) */ /* > ( a a a a a ) */ /* > ( a a a a a ) */ /* > ( h h a a a ) */ /* > ( v1 h a a a ) */ /* > ( v1 v2 a a a ) */ /* > ( v1 v2 a a a ) */ /* > */ /* > where a denotes an element of the original matrix A, h denotes a */ /* > modified element of the upper Hessenberg matrix H, and vi denotes an */ /* > element of the vector defining H(i). */ /* > */ /* > This subroutine is a slight modification of LAPACK-3.0's DLAHRD */ /* > incorporating improvements proposed by Quintana-Orti and Van de */ /* > Gejin. Note that the entries of A(1:K,2:NB) differ from those */ /* > returned by the original LAPACK-3.0's DLAHRD routine. (This */ /* > subroutine is not backward compatible with LAPACK-3.0's DLAHRD.) */ /* > \endverbatim */ /* > \par References: */ /* ================ */ /* > */ /* > Gregorio Quintana-Orti and Robert van de Geijn, "Improving the */ /* > performance of reduction to Hessenberg form," ACM Transactions on */ /* > Mathematical Software, 32(2):180-194, June 2006. */ /* > */ /* ===================================================================== */ /* Subroutine */ int slahr2_(integer *n, integer *k, integer *nb, real *a, integer *lda, real *tau, real *t, integer *ldt, real *y, integer *ldy) { /* System generated locals */ integer a_dim1, a_offset, t_dim1, t_offset, y_dim1, y_offset, i__1, i__2, i__3; real r__1; /* Local variables */ integer i__; extern /* Subroutine */ int sscal_(integer *, real *, real *, integer *), sgemm_(char *, char *, integer *, integer *, integer *, real *, real *, integer *, real *, integer *, real *, real *, integer *), sgemv_(char *, integer *, integer *, real *, real *, integer *, real *, integer *, real *, real *, integer *), scopy_(integer *, real *, integer *, real *, integer *), strmm_(char *, char *, char *, char *, integer *, integer *, real *, real *, integer *, real *, integer *), saxpy_(integer *, real *, real *, integer *, real *, integer *), strmv_(char *, char *, char *, integer *, real *, integer *, real *, integer *); real ei; extern /* Subroutine */ int slarfg_(integer *, real *, real *, integer *, real *), slacpy_(char *, integer *, integer *, real *, integer *, real *, integer *); /* -- LAPACK auxiliary routine (version 3.7.0) -- */ /* -- LAPACK is a software package provided by Univ. of Tennessee, -- */ /* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..-- */ /* December 2016 */ /* ===================================================================== */ /* Quick return if possible */ /* Parameter adjustments */ --tau; a_dim1 = *lda; a_offset = 1 + a_dim1 * 1; a -= a_offset; t_dim1 = *ldt; t_offset = 1 + t_dim1 * 1; t -= t_offset; y_dim1 = *ldy; y_offset = 1 + y_dim1 * 1; y -= y_offset; /* Function Body */ if (*n <= 1) { return 0; } i__1 = *nb; for (i__ = 1; i__ <= i__1; ++i__) { if (i__ > 1) { /* Update A(K+1:N,I) */ /* Update I-th column of A - Y * V**T */ i__2 = *n - *k; i__3 = i__ - 1; sgemv_("NO TRANSPOSE", &i__2, &i__3, &c_b4, &y[*k + 1 + y_dim1], ldy, &a[*k + i__ - 1 + a_dim1], lda, &c_b5, &a[*k + 1 + i__ * a_dim1], &c__1); /* Apply I - V * T**T * V**T to this column (call it b) from the */ /* left, using the last column of T as workspace */ /* Let V = ( V1 ) and b = ( b1 ) (first I-1 rows) */ /* ( V2 ) ( b2 ) */ /* where V1 is unit lower triangular */ /* w := V1**T * b1 */ i__2 = i__ - 1; scopy_(&i__2, &a[*k + 1 + i__ * a_dim1], &c__1, &t[*nb * t_dim1 + 1], &c__1); i__2 = i__ - 1; strmv_("Lower", "Transpose", "UNIT", &i__2, &a[*k + 1 + a_dim1], lda, &t[*nb * t_dim1 + 1], &c__1); /* w := w + V2**T * b2 */ i__2 = *n - *k - i__ + 1; i__3 = i__ - 1; sgemv_("Transpose", &i__2, &i__3, &c_b5, &a[*k + i__ + a_dim1], lda, &a[*k + i__ + i__ * a_dim1], &c__1, &c_b5, &t[*nb * t_dim1 + 1], &c__1); /* w := T**T * w */ i__2 = i__ - 1; strmv_("Upper", "Transpose", "NON-UNIT", &i__2, &t[t_offset], ldt, &t[*nb * t_dim1 + 1], &c__1); /* b2 := b2 - V2*w */ i__2 = *n - *k - i__ + 1; i__3 = i__ - 1; sgemv_("NO TRANSPOSE", &i__2, &i__3, &c_b4, &a[*k + i__ + a_dim1], lda, &t[*nb * t_dim1 + 1], &c__1, &c_b5, &a[*k + i__ + i__ * a_dim1], &c__1); /* b1 := b1 - V1*w */ i__2 = i__ - 1; strmv_("Lower", "NO TRANSPOSE", "UNIT", &i__2, &a[*k + 1 + a_dim1] , lda, &t[*nb * t_dim1 + 1], &c__1); i__2 = i__ - 1; saxpy_(&i__2, &c_b4, &t[*nb * t_dim1 + 1], &c__1, &a[*k + 1 + i__ * a_dim1], &c__1); a[*k + i__ - 1 + (i__ - 1) * a_dim1] = ei; } /* Generate the elementary reflector H(I) to annihilate */ /* A(K+I+1:N,I) */ i__2 = *n - *k - i__ + 1; /* Computing MIN */ i__3 = *k + i__ + 1; slarfg_(&i__2, &a[*k + i__ + i__ * a_dim1], &a[f2cmin(i__3,*n) + i__ * a_dim1], &c__1, &tau[i__]); ei = a[*k + i__ + i__ * a_dim1]; a[*k + i__ + i__ * a_dim1] = 1.f; /* Compute Y(K+1:N,I) */ i__2 = *n - *k; i__3 = *n - *k - i__ + 1; sgemv_("NO TRANSPOSE", &i__2, &i__3, &c_b5, &a[*k + 1 + (i__ + 1) * a_dim1], lda, &a[*k + i__ + i__ * a_dim1], &c__1, &c_b38, &y[* k + 1 + i__ * y_dim1], &c__1); i__2 = *n - *k - i__ + 1; i__3 = i__ - 1; sgemv_("Transpose", &i__2, &i__3, &c_b5, &a[*k + i__ + a_dim1], lda, & a[*k + i__ + i__ * a_dim1], &c__1, &c_b38, &t[i__ * t_dim1 + 1], &c__1); i__2 = *n - *k; i__3 = i__ - 1; sgemv_("NO TRANSPOSE", &i__2, &i__3, &c_b4, &y[*k + 1 + y_dim1], ldy, &t[i__ * t_dim1 + 1], &c__1, &c_b5, &y[*k + 1 + i__ * y_dim1], &c__1); i__2 = *n - *k; sscal_(&i__2, &tau[i__], &y[*k + 1 + i__ * y_dim1], &c__1); /* Compute T(1:I,I) */ i__2 = i__ - 1; r__1 = -tau[i__]; sscal_(&i__2, &r__1, &t[i__ * t_dim1 + 1], &c__1); i__2 = i__ - 1; strmv_("Upper", "No Transpose", "NON-UNIT", &i__2, &t[t_offset], ldt, &t[i__ * t_dim1 + 1], &c__1) ; t[i__ + i__ * t_dim1] = tau[i__]; /* L10: */ } a[*k + *nb + *nb * a_dim1] = ei; /* Compute Y(1:K,1:NB) */ slacpy_("ALL", k, nb, &a[(a_dim1 << 1) + 1], lda, &y[y_offset], ldy); strmm_("RIGHT", "Lower", "NO TRANSPOSE", "UNIT", k, nb, &c_b5, &a[*k + 1 + a_dim1], lda, &y[y_offset], ldy); if (*n > *k + *nb) { i__1 = *n - *k - *nb; sgemm_("NO TRANSPOSE", "NO TRANSPOSE", k, nb, &i__1, &c_b5, &a[(*nb + 2) * a_dim1 + 1], lda, &a[*k + 1 + *nb + a_dim1], lda, &c_b5, &y[y_offset], ldy); } strmm_("RIGHT", "Upper", "NO TRANSPOSE", "NON-UNIT", k, nb, &c_b5, &t[ t_offset], ldt, &y[y_offset], ldy); return 0; /* End of SLAHR2 */ } /* slahr2_ */
the_stack_data/200143389.c
/* Author Kieran Date 09/10/2018 */ #include <stdio.h> #include <stdlib.h> // Compiler version gcc 6.3.0 /* The main method takes a number between 1 and 100 from the user and attempts to guess the number */ int main(void) { const int MIN = 1; const int MAX = 100; printf("My turn to guess! Input a value between 1 and 100\n"); int input; scanf("%d", &input); if (input < MIN || input > MAX){ printf("Input a value greater than 0 and less than 100"); exit(1); } int min = MIN - 1; int max = MAX + 1; int mean; for (int i = 1; i < 8; i ++){ printf("nth guess (%d)\n", i); mean = (min+max)/2; if (mean == input){ printf("I've got it! Your number is %d", mean); break; } else if(mean < input){ min = mean; } else{ max = mean; } } return 0; }
the_stack_data/112418.c
/** * main - ? * @argc: ? * @argv: ? * Return: Always (0) */ int main(int argc, char *argv[]) { (void)argc; (void)argv; return (0); }
the_stack_data/73863.c
/* $Id$ */ /* Copyright (c) 2017 Pierre Pronchery <[email protected]> */ /* This file is part of DeforaOS System libc */ /* All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include <sys/msg.h> #include <stdio.h> #include <string.h> #include <errno.h> /* msgctl */ static int _msgctl(char const * progname) { int qid; struct msqid_ds ds; int d; printf("%s: Testing %s()\n", progname, "msgctl"); if((qid = msgget(IPC_PRIVATE, IPC_CREAT)) == -1) { printf("%s: msgget(IPC_PRIVATE) => %d (%s)\n", progname, qid, strerror(errno)); return 2; } if((d = msgctl(qid, IPC_STAT, &ds)) != 0) printf("%s: msgctl(IPC_STAT) => %d (%s)\n", progname, d, strerror(errno)); if((d = msgctl(qid, IPC_RMID, NULL)) != 0) { printf("%s: msgctl(IPC_RMID) => %d (%s)\n", progname, d, strerror(errno)); return 2; } return 0; } /* main */ int main(int argc, char * argv[]) { int ret = 0; (void) argc; ret |= _msgctl(argv[0]); return (ret == 0) ? 0 : 2; }
the_stack_data/28261513.c
/*******************************************************************************************/ /* Name : Corrupt.c */ /* Description : This file contains code for corrupting data and pointer. It is linked at */ /* compiled time to the target code where fault(s) need to be injected */ /* */ /* Owner : This tool is owned by Gauss Research Group at School of Computing, */ /* University of Utah, Salt Lake City, USA. */ /* Please send your queries to: [email protected] */ /* Researh Group Home Page: http://www.cs.utah.edu/formal_verification/ */ /* Version : beta */ /* Last Edited : 03/12/2013 */ /* Copyright : Refer to LICENSE document for details */ /*******************************************************************************************/ #include <stdio.h> #include <stdlib.h> #include <time.h> /*random seed initialization flag*/ int rand_flag=1; /*Inject Once Status for data and pointer errors*/ int ijo_flag_data=0; int ijo_flag_add=0; /*fault injection count*/ int fault_injection_count=0; /*Fault Injection Statistics*/ int fault_site_count=0; int fault_site_intData16bit=0; int fault_site_intData32bit=0; int fault_site_intData64bit=0; int fault_site_float32bit=0; int fault_site_float64bit=0; int fault_site_adr=0; int print_faultStatistics(int inject_once, int ef, int tf, int byte_val){ printf("\n/*********************Fault Injection Statistics****************************/"); printf("\nTotal # fault sites enumerated : %d",fault_site_count); printf("\nFurther sub-categorization of fault sites below:"); printf("\nTotal # 16-bit Int Data fault sites enumerated : %d",fault_site_intData16bit); printf("\nTotal # 32-bit Int Data fault sites enumerated : %d",fault_site_intData32bit); printf("\nTotal # 64-bit Int Data fault sites enumerated : %d",fault_site_intData64bit); printf("\nTotal # 32-bit IEEE Float Data fault sites enumerated : %d",fault_site_float32bit); printf("\nTotal # 64-bit IEEE Float Data fault sites enumerated : %d",fault_site_float64bit); printf("\nTotal # Ptr fault sites enumerated : %d",fault_site_adr); printf("\n/*********************************End**************************************/\n"); return 0; } short corruptIntData_16bit(int fault_index, int inject_once, int ef, int tf, int byte_val, short inst_data){ unsigned int bPos; int rp; fault_site_count++; fault_site_intData16bit++; if(rand_flag){ srand(time(NULL)); rand_flag=0; } if(inject_once == 1) ijo_flag_data=1; if(ijo_flag_data == 1 && fault_injection_count>0) return inst_data; rp = rand()%tf+1; if(rp>ef) return inst_data; if(byte_val>1) bPos=(8*(byte_val%2))+rand()%8; else bPos=(8*byte_val)+rand()%8; fault_injection_count++; printf("\n/*********************************Start**************************************/"); printf("\nSucceffully injected 16-bit Integer Data error!!"); printf("\nTotal # faults injected : %d",fault_injection_count); printf("\nBit position is: %u",bPos); printf("\nIndex of the fault site : %d",fault_index); printf("\nUser defined probablity is: %d/%d",ef,tf); printf("\nChosen random probablity is: %d/%d",rp,tf); printf("\n/*********************************End**************************************/\n"); if ((inst_data>>bPos)&0x1) return inst_data & (~((short)0x1<< (bPos))); else return inst_data | ((short)0x1<< (bPos)); } int corruptIntData_32bit(int fault_index, int inject_once, int ef, int tf, int byte_val, int inst_data){ unsigned int bPos; int rp; fault_site_count++; fault_site_intData32bit++; if(rand_flag){ srand(time(NULL)); rand_flag=0; } if(inject_once == 1) ijo_flag_data=1; if(ijo_flag_data == 1 && fault_injection_count>0) return inst_data; rp = rand()%tf+1; if(rp>ef) return inst_data; if(byte_val>3) bPos=(8*(byte_val%4))+rand()%8; else bPos=(8*byte_val)+rand()%8; fault_injection_count++; printf("\n/*********************************Start**************************************/"); printf("\nSucceffully injected 32-bit Integer Data error!!"); printf("\nTotal # faults injected : %d",fault_injection_count); printf("\nBit position is: %u",bPos); printf("\nIndex of the fault site : %d",fault_index); printf("\nUser defined probablity is: %d/%d",ef,tf); printf("\nChosen random probablity is: %d/%d",rp,tf); printf("\n/*********************************End**************************************/\n"); if ((inst_data>>bPos)&0x1) return inst_data & (~((int)0x1<< (bPos))); else return inst_data | ((int)0x1<< (bPos)); } float corruptFloatData_32bit(int fault_index, int inject_once, int ef, int tf, int byte_val, float inst_data){ unsigned int bPos; int rp; fault_site_count++; fault_site_float32bit++; if(rand_flag){ srand(time(NULL)); rand_flag=0; } if(inject_once == 1) ijo_flag_data=1; if(ijo_flag_data == 1 && fault_injection_count>0) return inst_data; rp = rand()%tf+1; if(rp>ef) return inst_data; if(byte_val>3) bPos=(8*(byte_val%4))+rand()%8; else bPos=(8*byte_val)+rand()%8; fault_injection_count++; printf("\n/*********************************Start**************************************/"); printf("\nSucceffully injected 32-bit IEEE Float Data error!!"); printf("\nTotal # faults injected : %d",fault_injection_count); printf("\nBit position is: %u",bPos); printf("\nIndex of the fault site : %d",fault_index); printf("\nUser defined probablity is: %d/%d",ef,tf); printf("\nChosen random probablity is: %d/%d",rp,tf); printf("\n/*********************************End**************************************/\n"); if (((int)inst_data>>bPos)&0x1) return (float)((int)inst_data & (~((int)0x1<< (bPos)))); else return (float)((int)inst_data | ((int)0x1<< (bPos))); } long long corruptIntData_64bit(int fault_index, int inject_once, int ef, int tf, int byte_val, long long inst_data){ unsigned int bPos; int rp; fault_site_count++; fault_site_intData64bit++; if(rand_flag){ srand(time(NULL)); rand_flag=0; } if(inject_once == 1) ijo_flag_data=1; if(ijo_flag_data == 1 && fault_injection_count>0) return inst_data; rp = rand()%tf+1; if(rp>ef) return inst_data; bPos=(8*byte_val)+rand()%8; fault_injection_count++; printf("\n/*********************************Start**************************************/"); printf("\nSucceffully injected 64-bit Integer Data error!!"); printf("\nTotal # faults injected : %d",fault_injection_count); printf("\nBit position is: %u",bPos); printf("\nIndex of the fault site : %d",fault_index); printf("\nUser defined probablity is: %d/%d",ef,tf); printf("\nChosen random probablity is: %d/%d",rp,tf); printf("\n/*********************************End**************************************/\n"); if ((inst_data>>bPos)&0x1) return inst_data & (~((long long)0x1<< (bPos))); else return inst_data | ((long long)0x1<< (bPos)); } double corruptFloatData_64bit(int fault_index, int inject_once, int ef, int tf, int byte_val, double inst_data){ unsigned int bPos; int rp; fault_site_count++; fault_site_float64bit++; if(rand_flag){ srand(time(NULL)); rand_flag=0; } if(inject_once == 1) ijo_flag_data=1; if(ijo_flag_data == 1 && fault_injection_count>0) return inst_data; rp = rand()%tf+1; if(rp>ef) return inst_data; bPos=(8*byte_val)+rand()%8; fault_injection_count++; printf("\n/*********************************Start**************************************/"); printf("\nSucceffully injected 64-bit IEEE Float Data error!!"); printf("\nTotal # faults injected : %d",fault_injection_count); printf("\nBit position is: %u",bPos); printf("\nIndex of the fault site : %d",fault_index); printf("\nUser defined probablity is: %d/%d",ef,tf); printf("\nChosen random probablity is: %d/%d",rp,tf); printf("\n/*********************************End**************************************/\n"); if (((long long)inst_data>>bPos)&0x1) return (double)((long long)inst_data & (~((long long)0x1<< (bPos)))); else return (double)((long long)inst_data | ((long long)0x1<< (bPos))); } int* corruptIntAdr_32bit(int fault_index, int inject_once, int ef, int tf, int byte_val, int* inst_add){ unsigned int bPos; int rp; fault_site_count++; fault_site_adr++; if(rand_flag){ srand(time(NULL)); rand_flag=0; } if(inject_once == 1) ijo_flag_add=1; if(ijo_flag_add == 1 && fault_injection_count>0) return inst_add; rp = rand()%tf+1; if(rp>ef) return inst_add; bPos=(8*byte_val)+rand()%8; fault_injection_count++; printf("\n/*********************************Start**************************************/"); printf("\nSucceffully injected ptr error!!"); printf("\nTotal # faults injected : %d",fault_injection_count); printf("\nBit position is: %u",bPos); printf("\nIndex of the fault site : %d",fault_index); printf("\nUser defined probablity is: %d/%d",ef,tf); printf("\nChosen random probablity is: %d/%d",rp,tf); printf("\n/*********************************End**************************************/\n"); if (((long long)inst_add>>bPos)&0x1) return (int *)((long long)inst_add & (~((long long)0x1<< (bPos)))); else return (int *)((long long)inst_add | ((long long)0x1<< (bPos))); } long long* corruptIntAdr_64bit(int fault_index, int inject_once, int ef, int tf, int byte_val, long long* inst_add){ unsigned int bPos; int rp; fault_site_count++; fault_site_adr++; if(rand_flag){ srand(time(NULL)); rand_flag=0; } if(inject_once == 1) ijo_flag_add=1; if(ijo_flag_add == 1 && fault_injection_count>0) return inst_add; rp = rand()%tf+1; if(rp>ef) return inst_add; bPos=(8*byte_val)+rand()%8; fault_injection_count++; printf("\n/*********************************Start**************************************/"); printf("\nSucceffully injected ptr error!!"); printf("\nTotal # faults injected : %d",fault_injection_count); printf("\nBit position is: %u",bPos); printf("\nIndex of the fault site : %d",fault_index); printf("\nUser defined probablity is: %d/%d",ef,tf); printf("\nChosen random probablity is: %d/%d",rp,tf); printf("\n/*********************************End**************************************/\n"); if (((long long)inst_add>>bPos)&0x1) return (long long *)((long long)inst_add & (~((long long)0x1<< (bPos)))); else return (long long *)((long long)inst_add | ((long long)0x1<< (bPos))); } float* corruptFloatAdr_32bit(int fault_index, int inject_once, int ef, int tf, int byte_val, float* inst_add){ unsigned int bPos; int rp; fault_site_count++; fault_site_adr++; if(rand_flag){ srand(time(NULL)); rand_flag=0; } if(inject_once == 1) ijo_flag_add=1; if(ijo_flag_add == 1 && fault_injection_count>0) return inst_add; rp = rand()%tf+1; if(rp>ef) return inst_add; bPos=(8*byte_val)+rand()%8; fault_injection_count++; printf("\n/*********************************Start**************************************/"); printf("\nSucceffully injected ptr error!!"); printf("\nTotal # faults injected : %d",fault_injection_count); printf("\nBit position is: %u",bPos); printf("\nIndex of the fault site : %d",fault_index); printf("\nUser defined probablity is: %d/%d",ef,tf); printf("\nChosen random probablity is: %d/%d",rp,tf); printf("\n/*********************************End**************************************/\n"); if (((long long)inst_add>>bPos)&0x1) return (float *)((long long)inst_add & (~((long long)0x1<< (bPos)))); else return (float *)((long long)inst_add | ((long long)0x1<< (bPos))); } double* corruptFloatAdr_64bit(int fault_index, int inject_once, int ef, int tf, int byte_val, double* inst_add){ unsigned int bPos; int rp; fault_site_count++; fault_site_adr++; if(rand_flag){ srand(time(NULL)); rand_flag=0; } if(inject_once == 1) ijo_flag_add=1; if(ijo_flag_add == 1 && fault_injection_count>0) return inst_add; rp = rand()%tf+1; if(rp>ef) return inst_add; bPos=(8*byte_val)+rand()%8; fault_injection_count++; printf("\n/*********************************Start**************************************/"); printf("\nSucceffully injected ptr error!!"); printf("\nTotal # faults injected : %d",fault_injection_count); printf("\nBit position is: %u",bPos); printf("\nIndex of the fault site : %d",fault_index); printf("\nUser defined probablity is: %d/%d",ef,tf); printf("\nChosen random probablity is: %d/%d",rp,tf); printf("\n/*********************************End**************************************/\n"); if (((long long)inst_add>>bPos)&0x1) return (double *)((long long)inst_add & (~((long long)0x1<< (bPos)))); else return (double *)((long long)inst_add | ((long long)0x1<< (bPos))); }
the_stack_data/733420.c
/****************************************************************** * * Copyright 2018 Samsung Electronics All Rights Reserved. * * 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. * ******************************************************************/ /* ------------------------------------------------------------------ * Copyright (C) 1998-2009 PacketVideo * * 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. * ------------------------------------------------------------------- */ /* Filename: pv_sine.c ------------------------------------------------------------------------------ REVISION HISTORY Who: Date: MM/DD/YYYY Description: ------------------------------------------------------------------------------ INPUT AND OUTPUT DEFINITIONS Int32 x 32-bit integer angle (in Q30) between 0 and pi/2 ------------------------------------------------------------------------------ FUNCTION DESCRIPTION Find the sine of a number between 0 and pi/2 ------------------------------------------------------------------------------ REQUIREMENTS ------------------------------------------------------------------------------ REFERENCES ------------------------------------------------------------------------------ PSEUDO-CODE ------------------------------------------------------------------------------ */ /*---------------------------------------------------------------------------- ; INCLUDES ----------------------------------------------------------------------------*/ #ifdef AAC_PLUS #ifdef PARAMETRICSTEREO #include "pv_audio_type_defs.h" #include "fxp_mul32.h" #include "pv_sine.h" /*---------------------------------------------------------------------------- ; MACROS ; Define module specific macros here ----------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------- ; DEFINES ; Include all pre-processor statements here. Include conditional ; compile variables also. ----------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------- ; LOCAL FUNCTION DEFINITIONS ; Function Prototype declaration ----------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------- ; LOCAL STORE/BUFFER/POINTER DEFINITIONS ; Variable declaration - defined here and used outside this module ----------------------------------------------------------------------------*/ #define R_SHIFT 30 #define Q_fmt(x) (Int32)(x*((Int32)1<<R_SHIFT) + (x>=0?0.5F:-0.5F)) const Int32 sin_table[9] = { Q_fmt(0.00001724684028), Q_fmt(-0.00024606242846), Q_fmt(0.00007297328923), Q_fmt(0.00826706596417), Q_fmt(0.00003585160465), Q_fmt(-0.16667772526248), Q_fmt(0.00000174197440), Q_fmt(0.99999989138797), Q_fmt(0.00000000110513) }; /*---------------------------------------------------------------------------- ; EXTERNAL FUNCTION REFERENCES ; Declare functions defined elsewhere and referenced in this module ----------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------- ; EXTERNAL GLOBAL STORE/BUFFER/POINTER REFERENCES ; Declare variables used in this module but defined elsewhere ----------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------- ; FUNCTION CODE ----------------------------------------------------------------------------*/ Int32 pv_sine(Int32 z) { Int32 sine; Int32 i; const Int32 *pt_table = sin_table; Int32 sign = 0; if (z < 0) { z = -z; sign = 1; } if (z > Q_fmt(0.0015)) { sine = fxp_mul32_Q30(*(pt_table++), z); for (i = 7; i != 0; i--) { sine += *(pt_table++); sine = fxp_mul32_Q30(sine, z); } } else { sine = z; /* better approximation in this range */ } if (sign) { sine = -sine; } return sine; } Int32 pv_cosine(Int32 z) { Int32 cosine; if (z < 0) { z = -z; /* sign does not play a role in cosine */ } if (z > Q_fmt(0.0015)) { z = Q_fmt(1.57079632679490) - z; /* pi/2 - z */ cosine = pv_sine(z); } else { /* better approximation in this range */ cosine = Q_fmt(0.99999999906868) - (fxp_mul32_Q30(z, z) >> 1); } return cosine; } #endif #endif
the_stack_data/200142001.c
// RUN: %cml %s -o %t && %t | FileCheck %s #include <stdio.h> int main() { unsigned int a = 10; unsigned int b = 4; unsigned int c = a % b; // CHECK: 2 printf("%u\n", c); return 0; }
the_stack_data/36076353.c
/** ****************************************************************************** * @file stm32f2xx_ll_rcc.c * @author MCD Application Team * @brief RCC LL module driver. ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) 2017 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 "stm32f2xx_ll_rcc.h" #ifdef USE_FULL_ASSERT #include "stm32_assert.h" #else #define assert_param(expr) ((void)0U) #endif /** @addtogroup STM32F2xx_LL_Driver * @{ */ #if defined(RCC) /** @addtogroup RCC_LL * @{ */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /* Private macros ------------------------------------------------------------*/ /** @addtogroup RCC_LL_Private_Macros * @{ */ #define IS_LL_RCC_I2S_CLKSOURCE(__VALUE__) (((__VALUE__) == LL_RCC_I2S1_CLKSOURCE)) /** * @} */ /* Private function prototypes -----------------------------------------------*/ /** @defgroup RCC_LL_Private_Functions RCC Private functions * @{ */ uint32_t RCC_GetSystemClockFreq(void); uint32_t RCC_GetHCLKClockFreq(uint32_t SYSCLK_Frequency); uint32_t RCC_GetPCLK1ClockFreq(uint32_t HCLK_Frequency); uint32_t RCC_GetPCLK2ClockFreq(uint32_t HCLK_Frequency); uint32_t RCC_PLL_GetFreqDomain_SYS(void); uint32_t RCC_PLL_GetFreqDomain_48M(void); uint32_t RCC_PLLI2S_GetFreqDomain_I2S(void); /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @addtogroup RCC_LL_Exported_Functions * @{ */ /** @addtogroup RCC_LL_EF_Init * @{ */ /** * @brief Reset the RCC clock configuration to the default reset state. * @note The default reset state of the clock configuration is given below: * - HSI ON and used as system clock source * - HSE, PLL, PLLI2S OFF * - AHB, APB1 and APB2 prescaler set to 1. * - CSS, MCO OFF * - All interrupts disabled * @note This function doesn't modify the configuration of the * - Peripheral clocks * - LSI, LSE and RTC clocks * @retval An ErrorStatus enumeration value: * - SUCCESS: RCC registers are de-initialized * - ERROR: not applicable */ ErrorStatus LL_RCC_DeInit(void) { uint32_t vl_mask = 0U; /* Set HSION bit */ LL_RCC_HSI_Enable(); /* Wait for HSI READY bit */ while(LL_RCC_HSI_IsReady() != 1U) {} /* Reset CFGR register */ LL_RCC_WriteReg(CFGR, 0x00000000U); vl_mask = 0xFFFFFFFFU; /* Reset HSEON, PLLSYSON bits */ CLEAR_BIT(vl_mask, (RCC_CR_HSEON | RCC_CR_HSEBYP | RCC_CR_PLLON | RCC_CR_CSSON)); /* Reset PLLI2SON bit */ CLEAR_BIT(vl_mask, RCC_CR_PLLI2SON); /* Write new mask in CR register */ LL_RCC_WriteReg(CR, vl_mask); /* Set HSITRIM bits to the reset value*/ LL_RCC_HSI_SetCalibTrimming(0x10U); /* Wait for PLL READY bit to be reset */ while(LL_RCC_PLL_IsReady() != 0U) {} /* Wait for PLLI2S READY bit to be reset */ while(LL_RCC_PLLI2S_IsReady() != 0U) {} /* Reset PLLCFGR register */ LL_RCC_WriteReg(PLLCFGR, 0x24003010U); /* Reset PLLI2SCFGR register */ LL_RCC_WriteReg(PLLI2SCFGR, 0x20003000U); /* Disable all interrupts */ LL_RCC_WriteReg(CIR, 0x00000000U); /* Clear reset flags */ LL_RCC_ClearResetFlags(); return SUCCESS; } /** * @} */ /** @addtogroup RCC_LL_EF_Get_Freq * @brief Return the frequencies of different on chip clocks; System, AHB, APB1 and APB2 buses clocks * and different peripheral clocks available on the device. * @note If SYSCLK source is HSI, function returns values based on HSI_VALUE(**) * @note If SYSCLK source is HSE, function returns values based on HSE_VALUE(***) * @note If SYSCLK source is PLL, function returns values based on HSE_VALUE(***) * or HSI_VALUE(**) multiplied/divided by the PLL factors. * @note (**) HSI_VALUE is a constant defined in this file (default value * 16 MHz) but the real value may vary depending on the variations * in voltage and temperature. * @note (***) HSE_VALUE is a constant defined in this file (default value * 25 MHz), user has to ensure that HSE_VALUE is same as the real * frequency of the crystal used. Otherwise, this function may * have wrong result. * @note The result of this function could be incorrect when using fractional * value for HSE crystal. * @note This function can be used by the user application to compute the * baud-rate for the communication peripherals or configure other parameters. * @{ */ /** * @brief Return the frequencies of different on chip clocks; System, AHB, APB1 and APB2 buses clocks * @note Each time SYSCLK, HCLK, PCLK1 and/or PCLK2 clock changes, this function * must be called to update structure fields. Otherwise, any * configuration based on this function will be incorrect. * @param RCC_Clocks pointer to a @ref LL_RCC_ClocksTypeDef structure which will hold the clocks frequencies * @retval None */ void LL_RCC_GetSystemClocksFreq(LL_RCC_ClocksTypeDef *RCC_Clocks) { /* Get SYSCLK frequency */ RCC_Clocks->SYSCLK_Frequency = RCC_GetSystemClockFreq(); /* HCLK clock frequency */ RCC_Clocks->HCLK_Frequency = RCC_GetHCLKClockFreq(RCC_Clocks->SYSCLK_Frequency); /* PCLK1 clock frequency */ RCC_Clocks->PCLK1_Frequency = RCC_GetPCLK1ClockFreq(RCC_Clocks->HCLK_Frequency); /* PCLK2 clock frequency */ RCC_Clocks->PCLK2_Frequency = RCC_GetPCLK2ClockFreq(RCC_Clocks->HCLK_Frequency); } /** * @brief Return I2Sx clock frequency * @param I2SxSource This parameter can be one of the following values: * @arg @ref LL_RCC_I2S1_CLKSOURCE * @retval I2S clock frequency (in Hz) * - @ref LL_RCC_PERIPH_FREQUENCY_NO indicates that oscillator is not ready */ uint32_t LL_RCC_GetI2SClockFreq(uint32_t I2SxSource) { uint32_t i2s_frequency = LL_RCC_PERIPH_FREQUENCY_NO; /* Check parameter */ assert_param(IS_LL_RCC_I2S_CLKSOURCE(I2SxSource)); if (I2SxSource == LL_RCC_I2S1_CLKSOURCE) { /* I2S1 CLK clock frequency */ switch (LL_RCC_GetI2SClockSource(I2SxSource)) { case LL_RCC_I2S1_CLKSOURCE_PLLI2S: /* I2S1 Clock is PLLI2S */ if (LL_RCC_PLLI2S_IsReady()) { i2s_frequency = RCC_PLLI2S_GetFreqDomain_I2S(); } break; case LL_RCC_I2S1_CLKSOURCE_PIN: /* I2S1 Clock is External clock */ default: i2s_frequency = EXTERNAL_CLOCK_VALUE; break; } } return i2s_frequency; } /** * @} */ /** * @} */ /** @addtogroup RCC_LL_Private_Functions * @{ */ /** * @brief Return SYSTEM clock frequency * @retval SYSTEM clock frequency (in Hz) */ uint32_t RCC_GetSystemClockFreq(void) { uint32_t frequency = 0U; /* Get SYSCLK source -------------------------------------------------------*/ switch (LL_RCC_GetSysClkSource()) { case LL_RCC_SYS_CLKSOURCE_STATUS_HSI: /* HSI used as system clock source */ frequency = HSI_VALUE; break; case LL_RCC_SYS_CLKSOURCE_STATUS_HSE: /* HSE used as system clock source */ frequency = HSE_VALUE; break; case LL_RCC_SYS_CLKSOURCE_STATUS_PLL: /* PLL used as system clock source */ frequency = RCC_PLL_GetFreqDomain_SYS(); break; default: frequency = HSI_VALUE; break; } return frequency; } /** * @brief Return HCLK clock frequency * @param SYSCLK_Frequency SYSCLK clock frequency * @retval HCLK clock frequency (in Hz) */ uint32_t RCC_GetHCLKClockFreq(uint32_t SYSCLK_Frequency) { /* HCLK clock frequency */ return __LL_RCC_CALC_HCLK_FREQ(SYSCLK_Frequency, LL_RCC_GetAHBPrescaler()); } /** * @brief Return PCLK1 clock frequency * @param HCLK_Frequency HCLK clock frequency * @retval PCLK1 clock frequency (in Hz) */ uint32_t RCC_GetPCLK1ClockFreq(uint32_t HCLK_Frequency) { /* PCLK1 clock frequency */ return __LL_RCC_CALC_PCLK1_FREQ(HCLK_Frequency, LL_RCC_GetAPB1Prescaler()); } /** * @brief Return PCLK2 clock frequency * @param HCLK_Frequency HCLK clock frequency * @retval PCLK2 clock frequency (in Hz) */ uint32_t RCC_GetPCLK2ClockFreq(uint32_t HCLK_Frequency) { /* PCLK2 clock frequency */ return __LL_RCC_CALC_PCLK2_FREQ(HCLK_Frequency, LL_RCC_GetAPB2Prescaler()); } /** * @brief Return PLL clock frequency used for system domain * @retval PLL clock frequency (in Hz) */ uint32_t RCC_PLL_GetFreqDomain_SYS(void) { uint32_t pllinputfreq = 0U, pllsource = 0U; /* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLLM) * PLLN */ pllsource = LL_RCC_PLL_GetMainSource(); switch (pllsource) { case LL_RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */ pllinputfreq = HSI_VALUE; break; case LL_RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */ pllinputfreq = HSE_VALUE; break; default: pllinputfreq = HSI_VALUE; break; } return __LL_RCC_CALC_PLLCLK_FREQ(pllinputfreq, LL_RCC_PLL_GetDivider(), LL_RCC_PLL_GetN(), LL_RCC_PLL_GetP()); } /** * @brief Return PLL clock frequency used for 48 MHz domain * @retval PLL clock frequency (in Hz) */ uint32_t RCC_PLL_GetFreqDomain_48M(void) { uint32_t pllinputfreq = 0U, pllsource = 0U; /* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLLM ) * PLLN 48M Domain clock = PLL_VCO / PLLQ */ pllsource = LL_RCC_PLL_GetMainSource(); switch (pllsource) { case LL_RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */ pllinputfreq = HSI_VALUE; break; case LL_RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */ pllinputfreq = HSE_VALUE; break; default: pllinputfreq = HSI_VALUE; break; } return __LL_RCC_CALC_PLLCLK_48M_FREQ(pllinputfreq, LL_RCC_PLL_GetDivider(), LL_RCC_PLL_GetN(), LL_RCC_PLL_GetQ()); } /** * @brief Return PLLI2S clock frequency used for I2S domain * @retval PLLI2S clock frequency (in Hz) */ uint32_t RCC_PLLI2S_GetFreqDomain_I2S(void) { uint32_t pllinputfreq = 0U, pllsource = 0U; /* PLLI2S_VCO = (HSE_VALUE or HSI_VALUE / PLLM) * PLLI2SN I2S Domain clock = PLLI2S_VCO / PLLI2SR */ pllsource = LL_RCC_PLL_GetMainSource(); switch (pllsource) { case LL_RCC_PLLSOURCE_HSE: /* HSE used as PLLI2S clock source */ pllinputfreq = HSE_VALUE; break; case LL_RCC_PLLSOURCE_HSI: /* HSI used as PLLI2S clock source */ default: pllinputfreq = HSI_VALUE; break; } return __LL_RCC_CALC_PLLI2S_I2S_FREQ(pllinputfreq, LL_RCC_PLL_GetDivider(), LL_RCC_PLLI2S_GetN(), LL_RCC_PLLI2S_GetR()); } /** * @} */ /** * @} */ #endif /* defined(RCC) */ /** * @} */ #endif /* USE_FULL_LL_DRIVER */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
the_stack_data/45449331.c
#include <errno.h> #include <fcntl.h> #include <limits.h> #include <stdio.h> #include <string.h> #include <sys/stat.h> #define MAXTRIES 100 char* __randname(char*); char* tempnam(const char* dir, const char* pfx) { char s[PATH_MAX]; size_t l, dl, pl; int try ; int r; if (!dir) dir = P_tmpdir; if (!pfx) pfx = "temp"; dl = strlen(dir); pl = strlen(pfx); l = dl + 1 + pl + 1 + 6; if (l >= PATH_MAX) { errno = ENAMETOOLONG; return 0; } memcpy(s, dir, dl); s[dl] = '/'; memcpy(s + dl + 1, pfx, pl); s[dl + 1 + pl] = '_'; s[l] = 0; for (try = 0; try < MAXTRIES; try ++) { __randname(s + l - 6); r = lstat(s, &(struct stat){}); if (r == -1 && errno == ENOENT) { return strdup(s); } } return 0; }
the_stack_data/104828960.c
/*------------------------------------------------------------------------------ C_BANK2.C Copyright (c) 2012 ARM Ltd and ARM Germnay GmbH. All rights reserved. ------------------------------------------------------------------------------*/ #include <stdio.h> void func2(void) { printf("THIS IS A FUNCTION IN BANK 2! \n\n"); }
the_stack_data/443385.c
#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char fileName[] = "./example.txt"; char buffer[256]; char toRemove[] = "example"; FILE *input = fopen(fileName, "r"); FILE *output = fopen("./removed.txt", "w"); char *current, *found; int wordsCount = 0; while (fgets(buffer, 256, input)) { // If we find the word then delete it. if (strstr(buffer, toRemove)) { // Start at the beginning of the string. current = buffer; found = strstr(current, toRemove); while(found) { // Write all the characters until we reach the found substring. while (current != found) { fputc(*current, output); current += 1; } // Skip over the word; current += strlen(toRemove); // Increment the wordcount. wordsCount += 1; // Prepare for the next loop. found = strstr(current, toRemove); } // Write the rest of the characters. while(*current != '\0') { fputc(*current, output); current += 1; } } else { // Write the whole string. fputs(buffer, output); } } printf("Found the word: %d times\n", wordsCount); remove(fileName); rename("./removed.txt", fileName); fclose(input); fclose(output); return 0; }
the_stack_data/142850.c
#include <stdio.h> #include<stdlib.h> int main() { int **matriz=NULL, **matriz_com_borda, largura=0, altura=0, tamanho_da_borda=0, i=0,j=0, l=0, k=0; scanf("%d", &largura); //para determinar a largura da imagem scanf("%d", &altura); //para determinar a altura da imagem /*alocar uma matriz com as medidas da imagem*/ matriz=(int**)malloc((largura+1)*sizeof(int*)); for(i=0; i<altura; i++){ matriz[i]=(int*)malloc(10*sizeof(int)); } /*para preencher a matriz da imagem com valores*/ for(i=0; i<altura; i++){ for(j=0; j<largura; j++){ matriz[i][j]='\0'; scanf("%d", &matriz[i][j]); } } /*para determinar o tamanho da borda da imagem*/ scanf("%d", &tamanho_da_borda); /*alocar uma nova matriz com o tamanho da imagem+borda*/ matriz_com_borda=(int**)malloc((2*largura+(tamanho_da_borda*2)+1)*sizeof(int*)); for(i=0; i<altura+(tamanho_da_borda*2); i++){ matriz_com_borda[i]=(int*)malloc(15*sizeof(int)); } /*para preencer essa nova matriz com 0*/ for(i=0; i<(tamanho_da_borda*2)+altura; i++){ for(j=0; j<(tamanho_da_borda*2)+largura; j++){ matriz_com_borda[i][j]=0; } } /*para colocar os valores da matriz imagem no centro da matriz borda*/ k=0; j=tamanho_da_borda; while(j<tamanho_da_borda+largura){ l=0, i=tamanho_da_borda; while(i<tamanho_da_borda+altura){ matriz_com_borda[i][j]=matriz[l][k]; l++; i++; } k++; j++; } /*para imprmir a imagem+borda*/ for(i=0; i<(tamanho_da_borda*2)+altura; i++){ //loop para imprimir a matriz inicial j=0; while(j<(tamanho_da_borda*2)+largura){ printf("%d ",matriz_com_borda[i][j]); j++; } printf("\n"); } /*para imprmir a imagem sem borda*/ printf("\n"); for(i=0; i<altura; i++){ j=0; while(j<largura){ printf("%d ",matriz[i][j]); j++; } printf("\n"); } /*para liberar memoria*/ free(matriz_com_borda); free(matriz); return 0; }
the_stack_data/181392327.c
#include<stdio.h> int main() { int a[3][4]; int n,i,j; double x; int tx; for(i=0;i<3;i++) { for(j=0;j<4;j++) scanf("%d",&a[i][j]); } scanf("%d",&n); for(i=0;i<3;i++) { x+=a[n-1][i]; printf("%d ",a[n-1][i]); } x+=a[n-1][3]; printf("%d\n",a[n-1][3]); tx=(int)(x/4); if(tx==(x/4)) printf("%d",tx); else printf("%.2lf\n",x/4); return 0; }
the_stack_data/624691.c
//@ ltl invariant negative: ( ( ([] (<> AP((id == 1)))) || (! ([] ( (! ( (! AP((pc0_l2 != 0))) && ( AP((pc0_l0 != 0)) && AP((pc0_l1 != 0))))) || (! ( (! AP((pc1_l2 != 0))) && ( AP((pc1_l0 != 0)) && AP((pc1_l1 != 0))))))))) || (! ([] (<> AP((1.0 <= _diverge_delta)))))); extern float __VERIFIER_nondet_float(void); extern int __VERIFIER_nondet_int(void); char __VERIFIER_nondet_bool(void) { return __VERIFIER_nondet_int() != 0; } char pc21_l0, _x_pc21_l0; char pc21_evt1, _x_pc21_evt1; char pc21_evt0, _x_pc21_evt0; char pc20_l1, _x_pc20_l1; char pc20_l0, _x_pc20_l0; char pc20_evt0, _x_pc20_evt0; char pc19_l0, _x_pc19_l0; char pc19_evt1, _x_pc19_evt1; char pc19_evt0, _x_pc19_evt0; char pc18_l1, _x_pc18_l1; char pc18_evt0, _x_pc18_evt0; char pc17_l1, _x_pc17_l1; char pc17_l0, _x_pc17_l0; char pc17_evt1, _x_pc17_evt1; char pc17_evt0, _x_pc17_evt0; char pc16_l1, _x_pc16_l1; char pc16_l0, _x_pc16_l0; char pc15_l1, _x_pc15_l1; char pc15_l0, _x_pc15_l0; char pc15_evt1, _x_pc15_evt1; char pc21_l2, _x_pc21_l2; char pc15_evt0, _x_pc15_evt0; char pc14_l1, _x_pc14_l1; char pc14_evt1, _x_pc14_evt1; char pc20_l2, _x_pc20_l2; char pc14_evt0, _x_pc14_evt0; char pc13_l1, _x_pc13_l1; char pc13_l0, _x_pc13_l0; char pc13_evt1, _x_pc13_evt1; char pc12_l1, _x_pc12_l1; char pc12_l0, _x_pc12_l0; char pc12_evt1, _x_pc12_evt1; char pc18_l2, _x_pc18_l2; char pc12_evt0, _x_pc12_evt0; char pc11_l0, _x_pc11_l0; char pc11_evt1, _x_pc11_evt1; char pc17_l2, _x_pc17_l2; char pc11_evt0, _x_pc11_evt0; char pc10_l1, _x_pc10_l1; char pc10_l0, _x_pc10_l0; char pc16_l2, _x_pc16_l2; char pc10_evt0, _x_pc10_evt0; char pc9_l0, _x_pc9_l0; char pc9_l1, _x_pc9_l1; char a5_evt0, _x_a5_evt0; char a15_evt1, _x_a15_evt1; char pc18_evt1, _x_pc18_evt1; char a4_evt0, _x_a4_evt0; char a14_evt1, _x_a14_evt1; char a3_evt0, _x_a3_evt0; char pc0_l0, _x_pc0_l0; char pc3_l1, _x_pc3_l1; char a13_evt1, _x_a13_evt1; char a2_evt0, _x_a2_evt0; char pc14_l0, _x_pc14_l0; char a12_evt1, _x_a12_evt1; char a11_evt1, _x_a11_evt1; char a10_evt1, _x_a10_evt1; float delta, _x_delta; char pc2_evt1, _x_pc2_evt1; char pc5_l1, _x_pc5_l1; char a18_l, _x_a18_l; float pc7_x, _x_pc7_x; char pc19_l2, _x_pc19_l2; char pc13_evt0, _x_pc13_evt0; char a8_evt1, _x_a8_evt1; char pc19_l1, _x_pc19_l1; char a8_evt0, _x_a8_evt0; char pc16_evt1, _x_pc16_evt1; char a19_evt1, _x_a19_evt1; char pc9_evt1, _x_pc9_evt1; char pc20_evt1, _x_pc20_evt1; char a11_l, _x_a11_l; char a1_evt1, _x_a1_evt1; char a21_evt1, _x_a21_evt1; char a2_l, _x_a2_l; char a16_l, _x_a16_l; char a6_evt1, _x_a6_evt1; char a15_evt0, _x_a15_evt0; char a7_l, _x_a7_l; char pc11_l1, _x_pc11_l1; char a12_l, _x_a12_l; float pc10_x, _x_pc10_x; char pc1_l2, _x_pc1_l2; char a11_evt0, _x_a11_evt0; float pc5_x, _x_pc5_x; char a3_l, _x_a3_l; float pc9_x, _x_pc9_x; char a7_evt0, _x_a7_evt0; char a18_evt1, _x_a18_evt1; float pc19_x, _x_pc19_x; char pc10_l2, _x_pc10_l2; char pc4_evt0, _x_pc4_evt0; char a7_evt1, _x_a7_evt1; float pc21_x, _x_pc21_x; char pc12_l2, _x_pc12_l2; char pc6_evt0, _x_pc6_evt0; char a16_evt0, _x_a16_evt0; char pc10_evt1, _x_pc10_evt1; char a8_l, _x_a8_l; char a6_evt0, _x_a6_evt0; char a17_evt1, _x_a17_evt1; char a10_l, _x_a10_l; char c_initial, _x_c_initial; char c_move, _x_c_move; char a9_evt0, _x_a9_evt0; float _diverge_delta, _x__diverge_delta; char pc7_l1, _x_pc7_l1; char a20_evt1, _x_a20_evt1; char pc8_l0, _x_pc8_l0; char a1_l, _x_a1_l; char a17_evt0, _x_a17_evt0; char a0_evt1, _x_a0_evt1; char pc0_l2, _x_pc0_l2; int id, _x_id; char a14_l, _x_a14_l; char a4_evt1, _x_a4_evt1; char a5_l, _x_a5_l; char a13_l, _x_a13_l; char a3_evt1, _x_a3_evt1; char a0_evt0, _x_a0_evt0; char pc0_l1, _x_pc0_l1; float pc12_x, _x_pc12_x; char pc3_l2, _x_pc3_l2; char a12_evt0, _x_a12_evt0; char pc18_l0, _x_pc18_l0; char a4_l, _x_a4_l; char pc14_l2, _x_pc14_l2; char pc8_evt0, _x_pc8_evt0; char pc21_l1, _x_pc21_l1; char a15_l, _x_a15_l; char a14_evt0, _x_a14_evt0; char pc3_l0, _x_pc3_l0; char pc4_evt1, _x_pc4_evt1; char a18_evt0, _x_a18_evt0; char a19_l, _x_a19_l; char pc16_evt0, _x_pc16_evt0; char a19_evt0, _x_a19_evt0; char pc15_l2, _x_pc15_l2; char pc9_evt0, _x_pc9_evt0; char a6_l, _x_a6_l; float pc0_x, _x_pc0_x; char pc7_l0, _x_pc7_l0; char a20_evt0, _x_a20_evt0; char a21_l, _x_a21_l; char pc5_l0, _x_pc5_l0; float pc17_x, _x_pc17_x; char pc2_evt0, _x_pc2_evt0; char pc8_l2, _x_pc8_l2; char a21_evt0, _x_a21_evt0; char pc5_evt1, _x_pc5_evt1; char pc3_evt1, _x_pc3_evt1; float pc15_x, _x_pc15_x; char pc6_l2, _x_pc6_l2; char pc0_evt1, _x_pc0_evt1; char a10_evt0, _x_a10_evt0; float pc1_x, _x_pc1_x; char pc1_evt1, _x_pc1_evt1; char pc1_l0, _x_pc1_l0; float pc13_x, _x_pc13_x; char a20_l, _x_a20_l; char pc4_l2, _x_pc4_l2; char a9_l, _x_a9_l; char pc1_l1, _x_pc1_l1; float pc2_x, _x_pc2_x; char pc2_l0, _x_pc2_l0; float pc14_x, _x_pc14_x; char pc5_l2, _x_pc5_l2; char pc2_l1, _x_pc2_l1; float pc11_x, _x_pc11_x; char a13_evt0, _x_a13_evt0; char pc2_l2, _x_pc2_l2; char a17_l, _x_a17_l; float pc3_x, _x_pc3_x; float pc18_x, _x_pc18_x; char pc9_l2, _x_pc9_l2; char a5_evt1, _x_a5_evt1; char pc3_evt0, _x_pc3_evt0; float pc4_x, _x_pc4_x; char a9_evt1, _x_a9_evt1; char pc4_l0, _x_pc4_l0; float pc16_x, _x_pc16_x; char pc1_evt0, _x_pc1_evt0; char pc7_l2, _x_pc7_l2; char pc4_l1, _x_pc4_l1; float pc20_x, _x_pc20_x; char pc11_l2, _x_pc11_l2; char pc5_evt0, _x_pc5_evt0; char a0_l, _x_a0_l; float pc6_x, _x_pc6_x; char a16_evt1, _x_a16_evt1; char pc6_evt1, _x_pc6_evt1; char pc6_l0, _x_pc6_l0; char pc0_evt0, _x_pc0_evt0; char pc6_l1, _x_pc6_l1; char pc13_l2, _x_pc13_l2; char pc7_evt0, _x_pc7_evt0; char pc7_evt1, _x_pc7_evt1; char a2_evt1, _x_a2_evt1; float pc8_x, _x_pc8_x; char a1_evt0, _x_a1_evt0; char pc8_evt1, _x_pc8_evt1; char pc8_l1, _x_pc8_l1; int main() { pc21_l0 = __VERIFIER_nondet_bool(); pc21_evt1 = __VERIFIER_nondet_bool(); pc21_evt0 = __VERIFIER_nondet_bool(); pc20_l1 = __VERIFIER_nondet_bool(); pc20_l0 = __VERIFIER_nondet_bool(); pc20_evt0 = __VERIFIER_nondet_bool(); pc19_l0 = __VERIFIER_nondet_bool(); pc19_evt1 = __VERIFIER_nondet_bool(); pc19_evt0 = __VERIFIER_nondet_bool(); pc18_l1 = __VERIFIER_nondet_bool(); pc18_evt0 = __VERIFIER_nondet_bool(); pc17_l1 = __VERIFIER_nondet_bool(); pc17_l0 = __VERIFIER_nondet_bool(); pc17_evt1 = __VERIFIER_nondet_bool(); pc17_evt0 = __VERIFIER_nondet_bool(); pc16_l1 = __VERIFIER_nondet_bool(); pc16_l0 = __VERIFIER_nondet_bool(); pc15_l1 = __VERIFIER_nondet_bool(); pc15_l0 = __VERIFIER_nondet_bool(); pc15_evt1 = __VERIFIER_nondet_bool(); pc21_l2 = __VERIFIER_nondet_bool(); pc15_evt0 = __VERIFIER_nondet_bool(); pc14_l1 = __VERIFIER_nondet_bool(); pc14_evt1 = __VERIFIER_nondet_bool(); pc20_l2 = __VERIFIER_nondet_bool(); pc14_evt0 = __VERIFIER_nondet_bool(); pc13_l1 = __VERIFIER_nondet_bool(); pc13_l0 = __VERIFIER_nondet_bool(); pc13_evt1 = __VERIFIER_nondet_bool(); pc12_l1 = __VERIFIER_nondet_bool(); pc12_l0 = __VERIFIER_nondet_bool(); pc12_evt1 = __VERIFIER_nondet_bool(); pc18_l2 = __VERIFIER_nondet_bool(); pc12_evt0 = __VERIFIER_nondet_bool(); pc11_l0 = __VERIFIER_nondet_bool(); pc11_evt1 = __VERIFIER_nondet_bool(); pc17_l2 = __VERIFIER_nondet_bool(); pc11_evt0 = __VERIFIER_nondet_bool(); pc10_l1 = __VERIFIER_nondet_bool(); pc10_l0 = __VERIFIER_nondet_bool(); pc16_l2 = __VERIFIER_nondet_bool(); pc10_evt0 = __VERIFIER_nondet_bool(); pc9_l0 = __VERIFIER_nondet_bool(); pc9_l1 = __VERIFIER_nondet_bool(); a5_evt0 = __VERIFIER_nondet_bool(); a15_evt1 = __VERIFIER_nondet_bool(); pc18_evt1 = __VERIFIER_nondet_bool(); a4_evt0 = __VERIFIER_nondet_bool(); a14_evt1 = __VERIFIER_nondet_bool(); a3_evt0 = __VERIFIER_nondet_bool(); pc0_l0 = __VERIFIER_nondet_bool(); pc3_l1 = __VERIFIER_nondet_bool(); a13_evt1 = __VERIFIER_nondet_bool(); a2_evt0 = __VERIFIER_nondet_bool(); pc14_l0 = __VERIFIER_nondet_bool(); a12_evt1 = __VERIFIER_nondet_bool(); a11_evt1 = __VERIFIER_nondet_bool(); a10_evt1 = __VERIFIER_nondet_bool(); delta = __VERIFIER_nondet_float(); pc2_evt1 = __VERIFIER_nondet_bool(); pc5_l1 = __VERIFIER_nondet_bool(); a18_l = __VERIFIER_nondet_bool(); pc7_x = __VERIFIER_nondet_float(); pc19_l2 = __VERIFIER_nondet_bool(); pc13_evt0 = __VERIFIER_nondet_bool(); a8_evt1 = __VERIFIER_nondet_bool(); pc19_l1 = __VERIFIER_nondet_bool(); a8_evt0 = __VERIFIER_nondet_bool(); pc16_evt1 = __VERIFIER_nondet_bool(); a19_evt1 = __VERIFIER_nondet_bool(); pc9_evt1 = __VERIFIER_nondet_bool(); pc20_evt1 = __VERIFIER_nondet_bool(); a11_l = __VERIFIER_nondet_bool(); a1_evt1 = __VERIFIER_nondet_bool(); a21_evt1 = __VERIFIER_nondet_bool(); a2_l = __VERIFIER_nondet_bool(); a16_l = __VERIFIER_nondet_bool(); a6_evt1 = __VERIFIER_nondet_bool(); a15_evt0 = __VERIFIER_nondet_bool(); a7_l = __VERIFIER_nondet_bool(); pc11_l1 = __VERIFIER_nondet_bool(); a12_l = __VERIFIER_nondet_bool(); pc10_x = __VERIFIER_nondet_float(); pc1_l2 = __VERIFIER_nondet_bool(); a11_evt0 = __VERIFIER_nondet_bool(); pc5_x = __VERIFIER_nondet_float(); a3_l = __VERIFIER_nondet_bool(); pc9_x = __VERIFIER_nondet_float(); a7_evt0 = __VERIFIER_nondet_bool(); a18_evt1 = __VERIFIER_nondet_bool(); pc19_x = __VERIFIER_nondet_float(); pc10_l2 = __VERIFIER_nondet_bool(); pc4_evt0 = __VERIFIER_nondet_bool(); a7_evt1 = __VERIFIER_nondet_bool(); pc21_x = __VERIFIER_nondet_float(); pc12_l2 = __VERIFIER_nondet_bool(); pc6_evt0 = __VERIFIER_nondet_bool(); a16_evt0 = __VERIFIER_nondet_bool(); pc10_evt1 = __VERIFIER_nondet_bool(); a8_l = __VERIFIER_nondet_bool(); a6_evt0 = __VERIFIER_nondet_bool(); a17_evt1 = __VERIFIER_nondet_bool(); a10_l = __VERIFIER_nondet_bool(); c_initial = __VERIFIER_nondet_bool(); c_move = __VERIFIER_nondet_bool(); a9_evt0 = __VERIFIER_nondet_bool(); _diverge_delta = __VERIFIER_nondet_float(); pc7_l1 = __VERIFIER_nondet_bool(); a20_evt1 = __VERIFIER_nondet_bool(); pc8_l0 = __VERIFIER_nondet_bool(); a1_l = __VERIFIER_nondet_bool(); a17_evt0 = __VERIFIER_nondet_bool(); a0_evt1 = __VERIFIER_nondet_bool(); pc0_l2 = __VERIFIER_nondet_bool(); id = __VERIFIER_nondet_int(); a14_l = __VERIFIER_nondet_bool(); a4_evt1 = __VERIFIER_nondet_bool(); a5_l = __VERIFIER_nondet_bool(); a13_l = __VERIFIER_nondet_bool(); a3_evt1 = __VERIFIER_nondet_bool(); a0_evt0 = __VERIFIER_nondet_bool(); pc0_l1 = __VERIFIER_nondet_bool(); pc12_x = __VERIFIER_nondet_float(); pc3_l2 = __VERIFIER_nondet_bool(); a12_evt0 = __VERIFIER_nondet_bool(); pc18_l0 = __VERIFIER_nondet_bool(); a4_l = __VERIFIER_nondet_bool(); pc14_l2 = __VERIFIER_nondet_bool(); pc8_evt0 = __VERIFIER_nondet_bool(); pc21_l1 = __VERIFIER_nondet_bool(); a15_l = __VERIFIER_nondet_bool(); a14_evt0 = __VERIFIER_nondet_bool(); pc3_l0 = __VERIFIER_nondet_bool(); pc4_evt1 = __VERIFIER_nondet_bool(); a18_evt0 = __VERIFIER_nondet_bool(); a19_l = __VERIFIER_nondet_bool(); pc16_evt0 = __VERIFIER_nondet_bool(); a19_evt0 = __VERIFIER_nondet_bool(); pc15_l2 = __VERIFIER_nondet_bool(); pc9_evt0 = __VERIFIER_nondet_bool(); a6_l = __VERIFIER_nondet_bool(); pc0_x = __VERIFIER_nondet_float(); pc7_l0 = __VERIFIER_nondet_bool(); a20_evt0 = __VERIFIER_nondet_bool(); a21_l = __VERIFIER_nondet_bool(); pc5_l0 = __VERIFIER_nondet_bool(); pc17_x = __VERIFIER_nondet_float(); pc2_evt0 = __VERIFIER_nondet_bool(); pc8_l2 = __VERIFIER_nondet_bool(); a21_evt0 = __VERIFIER_nondet_bool(); pc5_evt1 = __VERIFIER_nondet_bool(); pc3_evt1 = __VERIFIER_nondet_bool(); pc15_x = __VERIFIER_nondet_float(); pc6_l2 = __VERIFIER_nondet_bool(); pc0_evt1 = __VERIFIER_nondet_bool(); a10_evt0 = __VERIFIER_nondet_bool(); pc1_x = __VERIFIER_nondet_float(); pc1_evt1 = __VERIFIER_nondet_bool(); pc1_l0 = __VERIFIER_nondet_bool(); pc13_x = __VERIFIER_nondet_float(); a20_l = __VERIFIER_nondet_bool(); pc4_l2 = __VERIFIER_nondet_bool(); a9_l = __VERIFIER_nondet_bool(); pc1_l1 = __VERIFIER_nondet_bool(); pc2_x = __VERIFIER_nondet_float(); pc2_l0 = __VERIFIER_nondet_bool(); pc14_x = __VERIFIER_nondet_float(); pc5_l2 = __VERIFIER_nondet_bool(); pc2_l1 = __VERIFIER_nondet_bool(); pc11_x = __VERIFIER_nondet_float(); a13_evt0 = __VERIFIER_nondet_bool(); pc2_l2 = __VERIFIER_nondet_bool(); a17_l = __VERIFIER_nondet_bool(); pc3_x = __VERIFIER_nondet_float(); pc18_x = __VERIFIER_nondet_float(); pc9_l2 = __VERIFIER_nondet_bool(); a5_evt1 = __VERIFIER_nondet_bool(); pc3_evt0 = __VERIFIER_nondet_bool(); pc4_x = __VERIFIER_nondet_float(); a9_evt1 = __VERIFIER_nondet_bool(); pc4_l0 = __VERIFIER_nondet_bool(); pc16_x = __VERIFIER_nondet_float(); pc1_evt0 = __VERIFIER_nondet_bool(); pc7_l2 = __VERIFIER_nondet_bool(); pc4_l1 = __VERIFIER_nondet_bool(); pc20_x = __VERIFIER_nondet_float(); pc11_l2 = __VERIFIER_nondet_bool(); pc5_evt0 = __VERIFIER_nondet_bool(); a0_l = __VERIFIER_nondet_bool(); pc6_x = __VERIFIER_nondet_float(); a16_evt1 = __VERIFIER_nondet_bool(); pc6_evt1 = __VERIFIER_nondet_bool(); pc6_l0 = __VERIFIER_nondet_bool(); pc0_evt0 = __VERIFIER_nondet_bool(); pc6_l1 = __VERIFIER_nondet_bool(); pc13_l2 = __VERIFIER_nondet_bool(); pc7_evt0 = __VERIFIER_nondet_bool(); pc7_evt1 = __VERIFIER_nondet_bool(); a2_evt1 = __VERIFIER_nondet_bool(); pc8_x = __VERIFIER_nondet_float(); a1_evt0 = __VERIFIER_nondet_bool(); pc8_evt1 = __VERIFIER_nondet_bool(); pc8_l1 = __VERIFIER_nondet_bool(); int __ok = (((((((( !(pc21_l2 != 0)) && (( !(pc21_l0 != 0)) && ( !(pc21_l1 != 0)))) && (pc21_x == 0.0)) && (((( !(pc21_evt0 != 0)) && ( !(pc21_evt1 != 0))) || ((pc21_evt1 != 0) && ( !(pc21_evt0 != 0)))) || (((pc21_evt0 != 0) && ( !(pc21_evt1 != 0))) || ((pc21_evt0 != 0) && (pc21_evt1 != 0))))) && ((( !(pc21_l2 != 0)) && ((pc21_l0 != 0) && (pc21_l1 != 0))) || ((((( !(pc21_l2 != 0)) && (( !(pc21_l0 != 0)) && ( !(pc21_l1 != 0)))) || ((pc21_l2 != 0) && (( !(pc21_l0 != 0)) && ( !(pc21_l1 != 0))))) || ((( !(pc21_l2 != 0)) && ((pc21_l1 != 0) && ( !(pc21_l0 != 0)))) || ((pc21_l2 != 0) && ((pc21_l1 != 0) && ( !(pc21_l0 != 0)))))) || ((( !(pc21_l2 != 0)) && ((pc21_l0 != 0) && ( !(pc21_l1 != 0)))) || ((pc21_l2 != 0) && ((pc21_l0 != 0) && ( !(pc21_l1 != 0)))))))) && (((((( !(pc20_l2 != 0)) && (( !(pc20_l0 != 0)) && ( !(pc20_l1 != 0)))) && (pc20_x == 0.0)) && (((( !(pc20_evt0 != 0)) && ( !(pc20_evt1 != 0))) || ((pc20_evt1 != 0) && ( !(pc20_evt0 != 0)))) || (((pc20_evt0 != 0) && ( !(pc20_evt1 != 0))) || ((pc20_evt0 != 0) && (pc20_evt1 != 0))))) && ((( !(pc20_l2 != 0)) && ((pc20_l0 != 0) && (pc20_l1 != 0))) || ((((( !(pc20_l2 != 0)) && (( !(pc20_l0 != 0)) && ( !(pc20_l1 != 0)))) || ((pc20_l2 != 0) && (( !(pc20_l0 != 0)) && ( !(pc20_l1 != 0))))) || ((( !(pc20_l2 != 0)) && ((pc20_l1 != 0) && ( !(pc20_l0 != 0)))) || ((pc20_l2 != 0) && ((pc20_l1 != 0) && ( !(pc20_l0 != 0)))))) || ((( !(pc20_l2 != 0)) && ((pc20_l0 != 0) && ( !(pc20_l1 != 0)))) || ((pc20_l2 != 0) && ((pc20_l0 != 0) && ( !(pc20_l1 != 0)))))))) && (((((( !(pc19_l2 != 0)) && (( !(pc19_l0 != 0)) && ( !(pc19_l1 != 0)))) && (pc19_x == 0.0)) && (((( !(pc19_evt0 != 0)) && ( !(pc19_evt1 != 0))) || ((pc19_evt1 != 0) && ( !(pc19_evt0 != 0)))) || (((pc19_evt0 != 0) && ( !(pc19_evt1 != 0))) || ((pc19_evt0 != 0) && (pc19_evt1 != 0))))) && ((( !(pc19_l2 != 0)) && ((pc19_l0 != 0) && (pc19_l1 != 0))) || ((((( !(pc19_l2 != 0)) && (( !(pc19_l0 != 0)) && ( !(pc19_l1 != 0)))) || ((pc19_l2 != 0) && (( !(pc19_l0 != 0)) && ( !(pc19_l1 != 0))))) || ((( !(pc19_l2 != 0)) && ((pc19_l1 != 0) && ( !(pc19_l0 != 0)))) || ((pc19_l2 != 0) && ((pc19_l1 != 0) && ( !(pc19_l0 != 0)))))) || ((( !(pc19_l2 != 0)) && ((pc19_l0 != 0) && ( !(pc19_l1 != 0)))) || ((pc19_l2 != 0) && ((pc19_l0 != 0) && ( !(pc19_l1 != 0)))))))) && (((((( !(pc18_l2 != 0)) && (( !(pc18_l0 != 0)) && ( !(pc18_l1 != 0)))) && (pc18_x == 0.0)) && (((( !(pc18_evt0 != 0)) && ( !(pc18_evt1 != 0))) || ((pc18_evt1 != 0) && ( !(pc18_evt0 != 0)))) || (((pc18_evt0 != 0) && ( !(pc18_evt1 != 0))) || ((pc18_evt0 != 0) && (pc18_evt1 != 0))))) && ((( !(pc18_l2 != 0)) && ((pc18_l0 != 0) && (pc18_l1 != 0))) || ((((( !(pc18_l2 != 0)) && (( !(pc18_l0 != 0)) && ( !(pc18_l1 != 0)))) || ((pc18_l2 != 0) && (( !(pc18_l0 != 0)) && ( !(pc18_l1 != 0))))) || ((( !(pc18_l2 != 0)) && ((pc18_l1 != 0) && ( !(pc18_l0 != 0)))) || ((pc18_l2 != 0) && ((pc18_l1 != 0) && ( !(pc18_l0 != 0)))))) || ((( !(pc18_l2 != 0)) && ((pc18_l0 != 0) && ( !(pc18_l1 != 0)))) || ((pc18_l2 != 0) && ((pc18_l0 != 0) && ( !(pc18_l1 != 0)))))))) && (((((( !(pc17_l2 != 0)) && (( !(pc17_l0 != 0)) && ( !(pc17_l1 != 0)))) && (pc17_x == 0.0)) && (((( !(pc17_evt0 != 0)) && ( !(pc17_evt1 != 0))) || ((pc17_evt1 != 0) && ( !(pc17_evt0 != 0)))) || (((pc17_evt0 != 0) && ( !(pc17_evt1 != 0))) || ((pc17_evt0 != 0) && (pc17_evt1 != 0))))) && ((( !(pc17_l2 != 0)) && ((pc17_l0 != 0) && (pc17_l1 != 0))) || ((((( !(pc17_l2 != 0)) && (( !(pc17_l0 != 0)) && ( !(pc17_l1 != 0)))) || ((pc17_l2 != 0) && (( !(pc17_l0 != 0)) && ( !(pc17_l1 != 0))))) || ((( !(pc17_l2 != 0)) && ((pc17_l1 != 0) && ( !(pc17_l0 != 0)))) || ((pc17_l2 != 0) && ((pc17_l1 != 0) && ( !(pc17_l0 != 0)))))) || ((( !(pc17_l2 != 0)) && ((pc17_l0 != 0) && ( !(pc17_l1 != 0)))) || ((pc17_l2 != 0) && ((pc17_l0 != 0) && ( !(pc17_l1 != 0)))))))) && (((((( !(pc16_l2 != 0)) && (( !(pc16_l0 != 0)) && ( !(pc16_l1 != 0)))) && (pc16_x == 0.0)) && (((( !(pc16_evt0 != 0)) && ( !(pc16_evt1 != 0))) || ((pc16_evt1 != 0) && ( !(pc16_evt0 != 0)))) || (((pc16_evt0 != 0) && ( !(pc16_evt1 != 0))) || ((pc16_evt0 != 0) && (pc16_evt1 != 0))))) && ((( !(pc16_l2 != 0)) && ((pc16_l0 != 0) && (pc16_l1 != 0))) || ((((( !(pc16_l2 != 0)) && (( !(pc16_l0 != 0)) && ( !(pc16_l1 != 0)))) || ((pc16_l2 != 0) && (( !(pc16_l0 != 0)) && ( !(pc16_l1 != 0))))) || ((( !(pc16_l2 != 0)) && ((pc16_l1 != 0) && ( !(pc16_l0 != 0)))) || ((pc16_l2 != 0) && ((pc16_l1 != 0) && ( !(pc16_l0 != 0)))))) || ((( !(pc16_l2 != 0)) && ((pc16_l0 != 0) && ( !(pc16_l1 != 0)))) || ((pc16_l2 != 0) && ((pc16_l0 != 0) && ( !(pc16_l1 != 0)))))))) && (((((( !(pc15_l2 != 0)) && (( !(pc15_l0 != 0)) && ( !(pc15_l1 != 0)))) && (pc15_x == 0.0)) && (((( !(pc15_evt0 != 0)) && ( !(pc15_evt1 != 0))) || ((pc15_evt1 != 0) && ( !(pc15_evt0 != 0)))) || (((pc15_evt0 != 0) && ( !(pc15_evt1 != 0))) || ((pc15_evt0 != 0) && (pc15_evt1 != 0))))) && ((( !(pc15_l2 != 0)) && ((pc15_l0 != 0) && (pc15_l1 != 0))) || ((((( !(pc15_l2 != 0)) && (( !(pc15_l0 != 0)) && ( !(pc15_l1 != 0)))) || ((pc15_l2 != 0) && (( !(pc15_l0 != 0)) && ( !(pc15_l1 != 0))))) || ((( !(pc15_l2 != 0)) && ((pc15_l1 != 0) && ( !(pc15_l0 != 0)))) || ((pc15_l2 != 0) && ((pc15_l1 != 0) && ( !(pc15_l0 != 0)))))) || ((( !(pc15_l2 != 0)) && ((pc15_l0 != 0) && ( !(pc15_l1 != 0)))) || ((pc15_l2 != 0) && ((pc15_l0 != 0) && ( !(pc15_l1 != 0)))))))) && (((((( !(pc14_l2 != 0)) && (( !(pc14_l0 != 0)) && ( !(pc14_l1 != 0)))) && (pc14_x == 0.0)) && (((( !(pc14_evt0 != 0)) && ( !(pc14_evt1 != 0))) || ((pc14_evt1 != 0) && ( !(pc14_evt0 != 0)))) || (((pc14_evt0 != 0) && ( !(pc14_evt1 != 0))) || ((pc14_evt0 != 0) && (pc14_evt1 != 0))))) && ((( !(pc14_l2 != 0)) && ((pc14_l0 != 0) && (pc14_l1 != 0))) || ((((( !(pc14_l2 != 0)) && (( !(pc14_l0 != 0)) && ( !(pc14_l1 != 0)))) || ((pc14_l2 != 0) && (( !(pc14_l0 != 0)) && ( !(pc14_l1 != 0))))) || ((( !(pc14_l2 != 0)) && ((pc14_l1 != 0) && ( !(pc14_l0 != 0)))) || ((pc14_l2 != 0) && ((pc14_l1 != 0) && ( !(pc14_l0 != 0)))))) || ((( !(pc14_l2 != 0)) && ((pc14_l0 != 0) && ( !(pc14_l1 != 0)))) || ((pc14_l2 != 0) && ((pc14_l0 != 0) && ( !(pc14_l1 != 0)))))))) && (((((( !(pc13_l2 != 0)) && (( !(pc13_l0 != 0)) && ( !(pc13_l1 != 0)))) && (pc13_x == 0.0)) && (((( !(pc13_evt0 != 0)) && ( !(pc13_evt1 != 0))) || ((pc13_evt1 != 0) && ( !(pc13_evt0 != 0)))) || (((pc13_evt0 != 0) && ( !(pc13_evt1 != 0))) || ((pc13_evt0 != 0) && (pc13_evt1 != 0))))) && ((( !(pc13_l2 != 0)) && ((pc13_l0 != 0) && (pc13_l1 != 0))) || ((((( !(pc13_l2 != 0)) && (( !(pc13_l0 != 0)) && ( !(pc13_l1 != 0)))) || ((pc13_l2 != 0) && (( !(pc13_l0 != 0)) && ( !(pc13_l1 != 0))))) || ((( !(pc13_l2 != 0)) && ((pc13_l1 != 0) && ( !(pc13_l0 != 0)))) || ((pc13_l2 != 0) && ((pc13_l1 != 0) && ( !(pc13_l0 != 0)))))) || ((( !(pc13_l2 != 0)) && ((pc13_l0 != 0) && ( !(pc13_l1 != 0)))) || ((pc13_l2 != 0) && ((pc13_l0 != 0) && ( !(pc13_l1 != 0)))))))) && (((((( !(pc12_l2 != 0)) && (( !(pc12_l0 != 0)) && ( !(pc12_l1 != 0)))) && (pc12_x == 0.0)) && (((( !(pc12_evt0 != 0)) && ( !(pc12_evt1 != 0))) || ((pc12_evt1 != 0) && ( !(pc12_evt0 != 0)))) || (((pc12_evt0 != 0) && ( !(pc12_evt1 != 0))) || ((pc12_evt0 != 0) && (pc12_evt1 != 0))))) && ((( !(pc12_l2 != 0)) && ((pc12_l0 != 0) && (pc12_l1 != 0))) || ((((( !(pc12_l2 != 0)) && (( !(pc12_l0 != 0)) && ( !(pc12_l1 != 0)))) || ((pc12_l2 != 0) && (( !(pc12_l0 != 0)) && ( !(pc12_l1 != 0))))) || ((( !(pc12_l2 != 0)) && ((pc12_l1 != 0) && ( !(pc12_l0 != 0)))) || ((pc12_l2 != 0) && ((pc12_l1 != 0) && ( !(pc12_l0 != 0)))))) || ((( !(pc12_l2 != 0)) && ((pc12_l0 != 0) && ( !(pc12_l1 != 0)))) || ((pc12_l2 != 0) && ((pc12_l0 != 0) && ( !(pc12_l1 != 0)))))))) && (((((( !(pc11_l2 != 0)) && (( !(pc11_l0 != 0)) && ( !(pc11_l1 != 0)))) && (pc11_x == 0.0)) && (((( !(pc11_evt0 != 0)) && ( !(pc11_evt1 != 0))) || ((pc11_evt1 != 0) && ( !(pc11_evt0 != 0)))) || (((pc11_evt0 != 0) && ( !(pc11_evt1 != 0))) || ((pc11_evt0 != 0) && (pc11_evt1 != 0))))) && ((( !(pc11_l2 != 0)) && ((pc11_l0 != 0) && (pc11_l1 != 0))) || ((((( !(pc11_l2 != 0)) && (( !(pc11_l0 != 0)) && ( !(pc11_l1 != 0)))) || ((pc11_l2 != 0) && (( !(pc11_l0 != 0)) && ( !(pc11_l1 != 0))))) || ((( !(pc11_l2 != 0)) && ((pc11_l1 != 0) && ( !(pc11_l0 != 0)))) || ((pc11_l2 != 0) && ((pc11_l1 != 0) && ( !(pc11_l0 != 0)))))) || ((( !(pc11_l2 != 0)) && ((pc11_l0 != 0) && ( !(pc11_l1 != 0)))) || ((pc11_l2 != 0) && ((pc11_l0 != 0) && ( !(pc11_l1 != 0)))))))) && (((((( !(pc10_l2 != 0)) && (( !(pc10_l0 != 0)) && ( !(pc10_l1 != 0)))) && (pc10_x == 0.0)) && (((( !(pc10_evt0 != 0)) && ( !(pc10_evt1 != 0))) || ((pc10_evt1 != 0) && ( !(pc10_evt0 != 0)))) || (((pc10_evt0 != 0) && ( !(pc10_evt1 != 0))) || ((pc10_evt0 != 0) && (pc10_evt1 != 0))))) && ((( !(pc10_l2 != 0)) && ((pc10_l0 != 0) && (pc10_l1 != 0))) || ((((( !(pc10_l2 != 0)) && (( !(pc10_l0 != 0)) && ( !(pc10_l1 != 0)))) || ((pc10_l2 != 0) && (( !(pc10_l0 != 0)) && ( !(pc10_l1 != 0))))) || ((( !(pc10_l2 != 0)) && ((pc10_l1 != 0) && ( !(pc10_l0 != 0)))) || ((pc10_l2 != 0) && ((pc10_l1 != 0) && ( !(pc10_l0 != 0)))))) || ((( !(pc10_l2 != 0)) && ((pc10_l0 != 0) && ( !(pc10_l1 != 0)))) || ((pc10_l2 != 0) && ((pc10_l0 != 0) && ( !(pc10_l1 != 0)))))))) && (((((( !(pc9_l2 != 0)) && (( !(pc9_l0 != 0)) && ( !(pc9_l1 != 0)))) && (pc9_x == 0.0)) && (((( !(pc9_evt0 != 0)) && ( !(pc9_evt1 != 0))) || ((pc9_evt1 != 0) && ( !(pc9_evt0 != 0)))) || (((pc9_evt0 != 0) && ( !(pc9_evt1 != 0))) || ((pc9_evt0 != 0) && (pc9_evt1 != 0))))) && ((( !(pc9_l2 != 0)) && ((pc9_l0 != 0) && (pc9_l1 != 0))) || ((((( !(pc9_l2 != 0)) && (( !(pc9_l0 != 0)) && ( !(pc9_l1 != 0)))) || ((pc9_l2 != 0) && (( !(pc9_l0 != 0)) && ( !(pc9_l1 != 0))))) || ((( !(pc9_l2 != 0)) && ((pc9_l1 != 0) && ( !(pc9_l0 != 0)))) || ((pc9_l2 != 0) && ((pc9_l1 != 0) && ( !(pc9_l0 != 0)))))) || ((( !(pc9_l2 != 0)) && ((pc9_l0 != 0) && ( !(pc9_l1 != 0)))) || ((pc9_l2 != 0) && ((pc9_l0 != 0) && ( !(pc9_l1 != 0)))))))) && (((((( !(pc8_l2 != 0)) && (( !(pc8_l0 != 0)) && ( !(pc8_l1 != 0)))) && (pc8_x == 0.0)) && (((( !(pc8_evt0 != 0)) && ( !(pc8_evt1 != 0))) || ((pc8_evt1 != 0) && ( !(pc8_evt0 != 0)))) || (((pc8_evt0 != 0) && ( !(pc8_evt1 != 0))) || ((pc8_evt0 != 0) && (pc8_evt1 != 0))))) && ((( !(pc8_l2 != 0)) && ((pc8_l0 != 0) && (pc8_l1 != 0))) || ((((( !(pc8_l2 != 0)) && (( !(pc8_l0 != 0)) && ( !(pc8_l1 != 0)))) || ((pc8_l2 != 0) && (( !(pc8_l0 != 0)) && ( !(pc8_l1 != 0))))) || ((( !(pc8_l2 != 0)) && ((pc8_l1 != 0) && ( !(pc8_l0 != 0)))) || ((pc8_l2 != 0) && ((pc8_l1 != 0) && ( !(pc8_l0 != 0)))))) || ((( !(pc8_l2 != 0)) && ((pc8_l0 != 0) && ( !(pc8_l1 != 0)))) || ((pc8_l2 != 0) && ((pc8_l0 != 0) && ( !(pc8_l1 != 0)))))))) && (((((( !(pc7_l2 != 0)) && (( !(pc7_l0 != 0)) && ( !(pc7_l1 != 0)))) && (pc7_x == 0.0)) && (((( !(pc7_evt0 != 0)) && ( !(pc7_evt1 != 0))) || ((pc7_evt1 != 0) && ( !(pc7_evt0 != 0)))) || (((pc7_evt0 != 0) && ( !(pc7_evt1 != 0))) || ((pc7_evt0 != 0) && (pc7_evt1 != 0))))) && ((( !(pc7_l2 != 0)) && ((pc7_l0 != 0) && (pc7_l1 != 0))) || ((((( !(pc7_l2 != 0)) && (( !(pc7_l0 != 0)) && ( !(pc7_l1 != 0)))) || ((pc7_l2 != 0) && (( !(pc7_l0 != 0)) && ( !(pc7_l1 != 0))))) || ((( !(pc7_l2 != 0)) && ((pc7_l1 != 0) && ( !(pc7_l0 != 0)))) || ((pc7_l2 != 0) && ((pc7_l1 != 0) && ( !(pc7_l0 != 0)))))) || ((( !(pc7_l2 != 0)) && ((pc7_l0 != 0) && ( !(pc7_l1 != 0)))) || ((pc7_l2 != 0) && ((pc7_l0 != 0) && ( !(pc7_l1 != 0)))))))) && (((((( !(pc6_l2 != 0)) && (( !(pc6_l0 != 0)) && ( !(pc6_l1 != 0)))) && (pc6_x == 0.0)) && (((( !(pc6_evt0 != 0)) && ( !(pc6_evt1 != 0))) || ((pc6_evt1 != 0) && ( !(pc6_evt0 != 0)))) || (((pc6_evt0 != 0) && ( !(pc6_evt1 != 0))) || ((pc6_evt0 != 0) && (pc6_evt1 != 0))))) && ((( !(pc6_l2 != 0)) && ((pc6_l0 != 0) && (pc6_l1 != 0))) || ((((( !(pc6_l2 != 0)) && (( !(pc6_l0 != 0)) && ( !(pc6_l1 != 0)))) || ((pc6_l2 != 0) && (( !(pc6_l0 != 0)) && ( !(pc6_l1 != 0))))) || ((( !(pc6_l2 != 0)) && ((pc6_l1 != 0) && ( !(pc6_l0 != 0)))) || ((pc6_l2 != 0) && ((pc6_l1 != 0) && ( !(pc6_l0 != 0)))))) || ((( !(pc6_l2 != 0)) && ((pc6_l0 != 0) && ( !(pc6_l1 != 0)))) || ((pc6_l2 != 0) && ((pc6_l0 != 0) && ( !(pc6_l1 != 0)))))))) && (((((( !(pc5_l2 != 0)) && (( !(pc5_l0 != 0)) && ( !(pc5_l1 != 0)))) && (pc5_x == 0.0)) && (((( !(pc5_evt0 != 0)) && ( !(pc5_evt1 != 0))) || ((pc5_evt1 != 0) && ( !(pc5_evt0 != 0)))) || (((pc5_evt0 != 0) && ( !(pc5_evt1 != 0))) || ((pc5_evt0 != 0) && (pc5_evt1 != 0))))) && ((( !(pc5_l2 != 0)) && ((pc5_l0 != 0) && (pc5_l1 != 0))) || ((((( !(pc5_l2 != 0)) && (( !(pc5_l0 != 0)) && ( !(pc5_l1 != 0)))) || ((pc5_l2 != 0) && (( !(pc5_l0 != 0)) && ( !(pc5_l1 != 0))))) || ((( !(pc5_l2 != 0)) && ((pc5_l1 != 0) && ( !(pc5_l0 != 0)))) || ((pc5_l2 != 0) && ((pc5_l1 != 0) && ( !(pc5_l0 != 0)))))) || ((( !(pc5_l2 != 0)) && ((pc5_l0 != 0) && ( !(pc5_l1 != 0)))) || ((pc5_l2 != 0) && ((pc5_l0 != 0) && ( !(pc5_l1 != 0)))))))) && (((((( !(pc4_l2 != 0)) && (( !(pc4_l0 != 0)) && ( !(pc4_l1 != 0)))) && (pc4_x == 0.0)) && (((( !(pc4_evt0 != 0)) && ( !(pc4_evt1 != 0))) || ((pc4_evt1 != 0) && ( !(pc4_evt0 != 0)))) || (((pc4_evt0 != 0) && ( !(pc4_evt1 != 0))) || ((pc4_evt0 != 0) && (pc4_evt1 != 0))))) && ((( !(pc4_l2 != 0)) && ((pc4_l0 != 0) && (pc4_l1 != 0))) || ((((( !(pc4_l2 != 0)) && (( !(pc4_l0 != 0)) && ( !(pc4_l1 != 0)))) || ((pc4_l2 != 0) && (( !(pc4_l0 != 0)) && ( !(pc4_l1 != 0))))) || ((( !(pc4_l2 != 0)) && ((pc4_l1 != 0) && ( !(pc4_l0 != 0)))) || ((pc4_l2 != 0) && ((pc4_l1 != 0) && ( !(pc4_l0 != 0)))))) || ((( !(pc4_l2 != 0)) && ((pc4_l0 != 0) && ( !(pc4_l1 != 0)))) || ((pc4_l2 != 0) && ((pc4_l0 != 0) && ( !(pc4_l1 != 0)))))))) && (((((( !(pc3_l2 != 0)) && (( !(pc3_l0 != 0)) && ( !(pc3_l1 != 0)))) && (pc3_x == 0.0)) && (((( !(pc3_evt0 != 0)) && ( !(pc3_evt1 != 0))) || ((pc3_evt1 != 0) && ( !(pc3_evt0 != 0)))) || (((pc3_evt0 != 0) && ( !(pc3_evt1 != 0))) || ((pc3_evt0 != 0) && (pc3_evt1 != 0))))) && ((( !(pc3_l2 != 0)) && ((pc3_l0 != 0) && (pc3_l1 != 0))) || ((((( !(pc3_l2 != 0)) && (( !(pc3_l0 != 0)) && ( !(pc3_l1 != 0)))) || ((pc3_l2 != 0) && (( !(pc3_l0 != 0)) && ( !(pc3_l1 != 0))))) || ((( !(pc3_l2 != 0)) && ((pc3_l1 != 0) && ( !(pc3_l0 != 0)))) || ((pc3_l2 != 0) && ((pc3_l1 != 0) && ( !(pc3_l0 != 0)))))) || ((( !(pc3_l2 != 0)) && ((pc3_l0 != 0) && ( !(pc3_l1 != 0)))) || ((pc3_l2 != 0) && ((pc3_l0 != 0) && ( !(pc3_l1 != 0)))))))) && (((((( !(pc2_l2 != 0)) && (( !(pc2_l0 != 0)) && ( !(pc2_l1 != 0)))) && (pc2_x == 0.0)) && (((( !(pc2_evt0 != 0)) && ( !(pc2_evt1 != 0))) || ((pc2_evt1 != 0) && ( !(pc2_evt0 != 0)))) || (((pc2_evt0 != 0) && ( !(pc2_evt1 != 0))) || ((pc2_evt0 != 0) && (pc2_evt1 != 0))))) && ((( !(pc2_l2 != 0)) && ((pc2_l0 != 0) && (pc2_l1 != 0))) || ((((( !(pc2_l2 != 0)) && (( !(pc2_l0 != 0)) && ( !(pc2_l1 != 0)))) || ((pc2_l2 != 0) && (( !(pc2_l0 != 0)) && ( !(pc2_l1 != 0))))) || ((( !(pc2_l2 != 0)) && ((pc2_l1 != 0) && ( !(pc2_l0 != 0)))) || ((pc2_l2 != 0) && ((pc2_l1 != 0) && ( !(pc2_l0 != 0)))))) || ((( !(pc2_l2 != 0)) && ((pc2_l0 != 0) && ( !(pc2_l1 != 0)))) || ((pc2_l2 != 0) && ((pc2_l0 != 0) && ( !(pc2_l1 != 0)))))))) && (((((( !(pc1_l2 != 0)) && (( !(pc1_l0 != 0)) && ( !(pc1_l1 != 0)))) && (pc1_x == 0.0)) && (((( !(pc1_evt0 != 0)) && ( !(pc1_evt1 != 0))) || ((pc1_evt1 != 0) && ( !(pc1_evt0 != 0)))) || (((pc1_evt0 != 0) && ( !(pc1_evt1 != 0))) || ((pc1_evt0 != 0) && (pc1_evt1 != 0))))) && ((( !(pc1_l2 != 0)) && ((pc1_l0 != 0) && (pc1_l1 != 0))) || ((((( !(pc1_l2 != 0)) && (( !(pc1_l0 != 0)) && ( !(pc1_l1 != 0)))) || ((pc1_l2 != 0) && (( !(pc1_l0 != 0)) && ( !(pc1_l1 != 0))))) || ((( !(pc1_l2 != 0)) && ((pc1_l1 != 0) && ( !(pc1_l0 != 0)))) || ((pc1_l2 != 0) && ((pc1_l1 != 0) && ( !(pc1_l0 != 0)))))) || ((( !(pc1_l2 != 0)) && ((pc1_l0 != 0) && ( !(pc1_l1 != 0)))) || ((pc1_l2 != 0) && ((pc1_l0 != 0) && ( !(pc1_l1 != 0)))))))) && (((((( !(pc0_l2 != 0)) && (( !(pc0_l0 != 0)) && ( !(pc0_l1 != 0)))) && (pc0_x == 0.0)) && (((( !(pc0_evt0 != 0)) && ( !(pc0_evt1 != 0))) || ((pc0_evt1 != 0) && ( !(pc0_evt0 != 0)))) || (((pc0_evt0 != 0) && ( !(pc0_evt1 != 0))) || ((pc0_evt0 != 0) && (pc0_evt1 != 0))))) && ((( !(pc0_l2 != 0)) && ((pc0_l0 != 0) && (pc0_l1 != 0))) || ((((( !(pc0_l2 != 0)) && (( !(pc0_l0 != 0)) && ( !(pc0_l1 != 0)))) || ((pc0_l2 != 0) && (( !(pc0_l0 != 0)) && ( !(pc0_l1 != 0))))) || ((( !(pc0_l2 != 0)) && ((pc0_l1 != 0) && ( !(pc0_l0 != 0)))) || ((pc0_l2 != 0) && ((pc0_l1 != 0) && ( !(pc0_l0 != 0)))))) || ((( !(pc0_l2 != 0)) && ((pc0_l0 != 0) && ( !(pc0_l1 != 0)))) || ((pc0_l2 != 0) && ((pc0_l0 != 0) && ( !(pc0_l1 != 0)))))))) && ((( !(a21_l != 0)) && ((( !(a21_evt0 != 0)) && ( !(a21_evt1 != 0))) || (((a21_evt1 != 0) && ( !(a21_evt0 != 0))) || ((a21_evt0 != 0) && ( !(a21_evt1 != 0)))))) && ((( !(a20_l != 0)) && ((( !(a20_evt0 != 0)) && ( !(a20_evt1 != 0))) || (((a20_evt1 != 0) && ( !(a20_evt0 != 0))) || ((a20_evt0 != 0) && ( !(a20_evt1 != 0)))))) && ((( !(a19_l != 0)) && ((( !(a19_evt0 != 0)) && ( !(a19_evt1 != 0))) || (((a19_evt1 != 0) && ( !(a19_evt0 != 0))) || ((a19_evt0 != 0) && ( !(a19_evt1 != 0)))))) && ((( !(a18_l != 0)) && ((( !(a18_evt0 != 0)) && ( !(a18_evt1 != 0))) || (((a18_evt1 != 0) && ( !(a18_evt0 != 0))) || ((a18_evt0 != 0) && ( !(a18_evt1 != 0)))))) && ((( !(a17_l != 0)) && ((( !(a17_evt0 != 0)) && ( !(a17_evt1 != 0))) || (((a17_evt1 != 0) && ( !(a17_evt0 != 0))) || ((a17_evt0 != 0) && ( !(a17_evt1 != 0)))))) && ((( !(a16_l != 0)) && ((( !(a16_evt0 != 0)) && ( !(a16_evt1 != 0))) || (((a16_evt1 != 0) && ( !(a16_evt0 != 0))) || ((a16_evt0 != 0) && ( !(a16_evt1 != 0)))))) && ((( !(a15_l != 0)) && ((( !(a15_evt0 != 0)) && ( !(a15_evt1 != 0))) || (((a15_evt1 != 0) && ( !(a15_evt0 != 0))) || ((a15_evt0 != 0) && ( !(a15_evt1 != 0)))))) && ((( !(a14_l != 0)) && ((( !(a14_evt0 != 0)) && ( !(a14_evt1 != 0))) || (((a14_evt1 != 0) && ( !(a14_evt0 != 0))) || ((a14_evt0 != 0) && ( !(a14_evt1 != 0)))))) && ((( !(a13_l != 0)) && ((( !(a13_evt0 != 0)) && ( !(a13_evt1 != 0))) || (((a13_evt1 != 0) && ( !(a13_evt0 != 0))) || ((a13_evt0 != 0) && ( !(a13_evt1 != 0)))))) && ((( !(a12_l != 0)) && ((( !(a12_evt0 != 0)) && ( !(a12_evt1 != 0))) || (((a12_evt1 != 0) && ( !(a12_evt0 != 0))) || ((a12_evt0 != 0) && ( !(a12_evt1 != 0)))))) && ((( !(a11_l != 0)) && ((( !(a11_evt0 != 0)) && ( !(a11_evt1 != 0))) || (((a11_evt1 != 0) && ( !(a11_evt0 != 0))) || ((a11_evt0 != 0) && ( !(a11_evt1 != 0)))))) && ((( !(a10_l != 0)) && ((( !(a10_evt0 != 0)) && ( !(a10_evt1 != 0))) || (((a10_evt1 != 0) && ( !(a10_evt0 != 0))) || ((a10_evt0 != 0) && ( !(a10_evt1 != 0)))))) && ((( !(a9_l != 0)) && ((( !(a9_evt0 != 0)) && ( !(a9_evt1 != 0))) || (((a9_evt1 != 0) && ( !(a9_evt0 != 0))) || ((a9_evt0 != 0) && ( !(a9_evt1 != 0)))))) && ((( !(a8_l != 0)) && ((( !(a8_evt0 != 0)) && ( !(a8_evt1 != 0))) || (((a8_evt1 != 0) && ( !(a8_evt0 != 0))) || ((a8_evt0 != 0) && ( !(a8_evt1 != 0)))))) && ((( !(a7_l != 0)) && ((( !(a7_evt0 != 0)) && ( !(a7_evt1 != 0))) || (((a7_evt1 != 0) && ( !(a7_evt0 != 0))) || ((a7_evt0 != 0) && ( !(a7_evt1 != 0)))))) && ((( !(a6_l != 0)) && ((( !(a6_evt0 != 0)) && ( !(a6_evt1 != 0))) || (((a6_evt1 != 0) && ( !(a6_evt0 != 0))) || ((a6_evt0 != 0) && ( !(a6_evt1 != 0)))))) && ((( !(a5_l != 0)) && ((( !(a5_evt0 != 0)) && ( !(a5_evt1 != 0))) || (((a5_evt1 != 0) && ( !(a5_evt0 != 0))) || ((a5_evt0 != 0) && ( !(a5_evt1 != 0)))))) && ((( !(a4_l != 0)) && ((( !(a4_evt0 != 0)) && ( !(a4_evt1 != 0))) || (((a4_evt1 != 0) && ( !(a4_evt0 != 0))) || ((a4_evt0 != 0) && ( !(a4_evt1 != 0)))))) && ((( !(a3_l != 0)) && ((( !(a3_evt0 != 0)) && ( !(a3_evt1 != 0))) || (((a3_evt1 != 0) && ( !(a3_evt0 != 0))) || ((a3_evt0 != 0) && ( !(a3_evt1 != 0)))))) && ((( !(a2_l != 0)) && ((( !(a2_evt0 != 0)) && ( !(a2_evt1 != 0))) || (((a2_evt1 != 0) && ( !(a2_evt0 != 0))) || ((a2_evt0 != 0) && ( !(a2_evt1 != 0)))))) && ((( !(a1_l != 0)) && ((( !(a1_evt0 != 0)) && ( !(a1_evt1 != 0))) || (((a1_evt1 != 0) && ( !(a1_evt0 != 0))) || ((a1_evt0 != 0) && ( !(a1_evt1 != 0)))))) && ((( !(a0_l != 0)) && ((( !(a0_evt0 != 0)) && ( !(a0_evt1 != 0))) || (((a0_evt1 != 0) && ( !(a0_evt0 != 0))) || ((a0_evt0 != 0) && ( !(a0_evt1 != 0)))))) && ((c_initial != 0) && (0.0 <= delta)))))))))))))))))))))))))))))))))))))))))))))) && ((id == 21) || ((id == 20) || ((id == 19) || ((id == 18) || ((id == 17) || ((id == 16) || ((id == 15) || ((id == 14) || ((id == 13) || ((id == 12) || ((id == 11) || ((id == 10) || ((id == 9) || ((id == 8) || ((id == 7) || ((id == 6) || ((id == 5) || ((id == 4) || ((id == 3) || ((id == 2) || ((id == 0) || (id == 1))))))))))))))))))))))) && (delta == _diverge_delta)); while (__ok) { _x_pc21_l0 = __VERIFIER_nondet_bool(); _x_pc21_evt1 = __VERIFIER_nondet_bool(); _x_pc21_evt0 = __VERIFIER_nondet_bool(); _x_pc20_l1 = __VERIFIER_nondet_bool(); _x_pc20_l0 = __VERIFIER_nondet_bool(); _x_pc20_evt0 = __VERIFIER_nondet_bool(); _x_pc19_l0 = __VERIFIER_nondet_bool(); _x_pc19_evt1 = __VERIFIER_nondet_bool(); _x_pc19_evt0 = __VERIFIER_nondet_bool(); _x_pc18_l1 = __VERIFIER_nondet_bool(); _x_pc18_evt0 = __VERIFIER_nondet_bool(); _x_pc17_l1 = __VERIFIER_nondet_bool(); _x_pc17_l0 = __VERIFIER_nondet_bool(); _x_pc17_evt1 = __VERIFIER_nondet_bool(); _x_pc17_evt0 = __VERIFIER_nondet_bool(); _x_pc16_l1 = __VERIFIER_nondet_bool(); _x_pc16_l0 = __VERIFIER_nondet_bool(); _x_pc15_l1 = __VERIFIER_nondet_bool(); _x_pc15_l0 = __VERIFIER_nondet_bool(); _x_pc15_evt1 = __VERIFIER_nondet_bool(); _x_pc21_l2 = __VERIFIER_nondet_bool(); _x_pc15_evt0 = __VERIFIER_nondet_bool(); _x_pc14_l1 = __VERIFIER_nondet_bool(); _x_pc14_evt1 = __VERIFIER_nondet_bool(); _x_pc20_l2 = __VERIFIER_nondet_bool(); _x_pc14_evt0 = __VERIFIER_nondet_bool(); _x_pc13_l1 = __VERIFIER_nondet_bool(); _x_pc13_l0 = __VERIFIER_nondet_bool(); _x_pc13_evt1 = __VERIFIER_nondet_bool(); _x_pc12_l1 = __VERIFIER_nondet_bool(); _x_pc12_l0 = __VERIFIER_nondet_bool(); _x_pc12_evt1 = __VERIFIER_nondet_bool(); _x_pc18_l2 = __VERIFIER_nondet_bool(); _x_pc12_evt0 = __VERIFIER_nondet_bool(); _x_pc11_l0 = __VERIFIER_nondet_bool(); _x_pc11_evt1 = __VERIFIER_nondet_bool(); _x_pc17_l2 = __VERIFIER_nondet_bool(); _x_pc11_evt0 = __VERIFIER_nondet_bool(); _x_pc10_l1 = __VERIFIER_nondet_bool(); _x_pc10_l0 = __VERIFIER_nondet_bool(); _x_pc16_l2 = __VERIFIER_nondet_bool(); _x_pc10_evt0 = __VERIFIER_nondet_bool(); _x_pc9_l0 = __VERIFIER_nondet_bool(); _x_pc9_l1 = __VERIFIER_nondet_bool(); _x_a5_evt0 = __VERIFIER_nondet_bool(); _x_a15_evt1 = __VERIFIER_nondet_bool(); _x_pc18_evt1 = __VERIFIER_nondet_bool(); _x_a4_evt0 = __VERIFIER_nondet_bool(); _x_a14_evt1 = __VERIFIER_nondet_bool(); _x_a3_evt0 = __VERIFIER_nondet_bool(); _x_pc0_l0 = __VERIFIER_nondet_bool(); _x_pc3_l1 = __VERIFIER_nondet_bool(); _x_a13_evt1 = __VERIFIER_nondet_bool(); _x_a2_evt0 = __VERIFIER_nondet_bool(); _x_pc14_l0 = __VERIFIER_nondet_bool(); _x_a12_evt1 = __VERIFIER_nondet_bool(); _x_a11_evt1 = __VERIFIER_nondet_bool(); _x_a10_evt1 = __VERIFIER_nondet_bool(); _x_delta = __VERIFIER_nondet_float(); _x_pc2_evt1 = __VERIFIER_nondet_bool(); _x_pc5_l1 = __VERIFIER_nondet_bool(); _x_a18_l = __VERIFIER_nondet_bool(); _x_pc7_x = __VERIFIER_nondet_float(); _x_pc19_l2 = __VERIFIER_nondet_bool(); _x_pc13_evt0 = __VERIFIER_nondet_bool(); _x_a8_evt1 = __VERIFIER_nondet_bool(); _x_pc19_l1 = __VERIFIER_nondet_bool(); _x_a8_evt0 = __VERIFIER_nondet_bool(); _x_pc16_evt1 = __VERIFIER_nondet_bool(); _x_a19_evt1 = __VERIFIER_nondet_bool(); _x_pc9_evt1 = __VERIFIER_nondet_bool(); _x_pc20_evt1 = __VERIFIER_nondet_bool(); _x_a11_l = __VERIFIER_nondet_bool(); _x_a1_evt1 = __VERIFIER_nondet_bool(); _x_a21_evt1 = __VERIFIER_nondet_bool(); _x_a2_l = __VERIFIER_nondet_bool(); _x_a16_l = __VERIFIER_nondet_bool(); _x_a6_evt1 = __VERIFIER_nondet_bool(); _x_a15_evt0 = __VERIFIER_nondet_bool(); _x_a7_l = __VERIFIER_nondet_bool(); _x_pc11_l1 = __VERIFIER_nondet_bool(); _x_a12_l = __VERIFIER_nondet_bool(); _x_pc10_x = __VERIFIER_nondet_float(); _x_pc1_l2 = __VERIFIER_nondet_bool(); _x_a11_evt0 = __VERIFIER_nondet_bool(); _x_pc5_x = __VERIFIER_nondet_float(); _x_a3_l = __VERIFIER_nondet_bool(); _x_pc9_x = __VERIFIER_nondet_float(); _x_a7_evt0 = __VERIFIER_nondet_bool(); _x_a18_evt1 = __VERIFIER_nondet_bool(); _x_pc19_x = __VERIFIER_nondet_float(); _x_pc10_l2 = __VERIFIER_nondet_bool(); _x_pc4_evt0 = __VERIFIER_nondet_bool(); _x_a7_evt1 = __VERIFIER_nondet_bool(); _x_pc21_x = __VERIFIER_nondet_float(); _x_pc12_l2 = __VERIFIER_nondet_bool(); _x_pc6_evt0 = __VERIFIER_nondet_bool(); _x_a16_evt0 = __VERIFIER_nondet_bool(); _x_pc10_evt1 = __VERIFIER_nondet_bool(); _x_a8_l = __VERIFIER_nondet_bool(); _x_a6_evt0 = __VERIFIER_nondet_bool(); _x_a17_evt1 = __VERIFIER_nondet_bool(); _x_a10_l = __VERIFIER_nondet_bool(); _x_c_initial = __VERIFIER_nondet_bool(); _x_c_move = __VERIFIER_nondet_bool(); _x_a9_evt0 = __VERIFIER_nondet_bool(); _x__diverge_delta = __VERIFIER_nondet_float(); _x_pc7_l1 = __VERIFIER_nondet_bool(); _x_a20_evt1 = __VERIFIER_nondet_bool(); _x_pc8_l0 = __VERIFIER_nondet_bool(); _x_a1_l = __VERIFIER_nondet_bool(); _x_a17_evt0 = __VERIFIER_nondet_bool(); _x_a0_evt1 = __VERIFIER_nondet_bool(); _x_pc0_l2 = __VERIFIER_nondet_bool(); _x_id = __VERIFIER_nondet_int(); _x_a14_l = __VERIFIER_nondet_bool(); _x_a4_evt1 = __VERIFIER_nondet_bool(); _x_a5_l = __VERIFIER_nondet_bool(); _x_a13_l = __VERIFIER_nondet_bool(); _x_a3_evt1 = __VERIFIER_nondet_bool(); _x_a0_evt0 = __VERIFIER_nondet_bool(); _x_pc0_l1 = __VERIFIER_nondet_bool(); _x_pc12_x = __VERIFIER_nondet_float(); _x_pc3_l2 = __VERIFIER_nondet_bool(); _x_a12_evt0 = __VERIFIER_nondet_bool(); _x_pc18_l0 = __VERIFIER_nondet_bool(); _x_a4_l = __VERIFIER_nondet_bool(); _x_pc14_l2 = __VERIFIER_nondet_bool(); _x_pc8_evt0 = __VERIFIER_nondet_bool(); _x_pc21_l1 = __VERIFIER_nondet_bool(); _x_a15_l = __VERIFIER_nondet_bool(); _x_a14_evt0 = __VERIFIER_nondet_bool(); _x_pc3_l0 = __VERIFIER_nondet_bool(); _x_pc4_evt1 = __VERIFIER_nondet_bool(); _x_a18_evt0 = __VERIFIER_nondet_bool(); _x_a19_l = __VERIFIER_nondet_bool(); _x_pc16_evt0 = __VERIFIER_nondet_bool(); _x_a19_evt0 = __VERIFIER_nondet_bool(); _x_pc15_l2 = __VERIFIER_nondet_bool(); _x_pc9_evt0 = __VERIFIER_nondet_bool(); _x_a6_l = __VERIFIER_nondet_bool(); _x_pc0_x = __VERIFIER_nondet_float(); _x_pc7_l0 = __VERIFIER_nondet_bool(); _x_a20_evt0 = __VERIFIER_nondet_bool(); _x_a21_l = __VERIFIER_nondet_bool(); _x_pc5_l0 = __VERIFIER_nondet_bool(); _x_pc17_x = __VERIFIER_nondet_float(); _x_pc2_evt0 = __VERIFIER_nondet_bool(); _x_pc8_l2 = __VERIFIER_nondet_bool(); _x_a21_evt0 = __VERIFIER_nondet_bool(); _x_pc5_evt1 = __VERIFIER_nondet_bool(); _x_pc3_evt1 = __VERIFIER_nondet_bool(); _x_pc15_x = __VERIFIER_nondet_float(); _x_pc6_l2 = __VERIFIER_nondet_bool(); _x_pc0_evt1 = __VERIFIER_nondet_bool(); _x_a10_evt0 = __VERIFIER_nondet_bool(); _x_pc1_x = __VERIFIER_nondet_float(); _x_pc1_evt1 = __VERIFIER_nondet_bool(); _x_pc1_l0 = __VERIFIER_nondet_bool(); _x_pc13_x = __VERIFIER_nondet_float(); _x_a20_l = __VERIFIER_nondet_bool(); _x_pc4_l2 = __VERIFIER_nondet_bool(); _x_a9_l = __VERIFIER_nondet_bool(); _x_pc1_l1 = __VERIFIER_nondet_bool(); _x_pc2_x = __VERIFIER_nondet_float(); _x_pc2_l0 = __VERIFIER_nondet_bool(); _x_pc14_x = __VERIFIER_nondet_float(); _x_pc5_l2 = __VERIFIER_nondet_bool(); _x_pc2_l1 = __VERIFIER_nondet_bool(); _x_pc11_x = __VERIFIER_nondet_float(); _x_a13_evt0 = __VERIFIER_nondet_bool(); _x_pc2_l2 = __VERIFIER_nondet_bool(); _x_a17_l = __VERIFIER_nondet_bool(); _x_pc3_x = __VERIFIER_nondet_float(); _x_pc18_x = __VERIFIER_nondet_float(); _x_pc9_l2 = __VERIFIER_nondet_bool(); _x_a5_evt1 = __VERIFIER_nondet_bool(); _x_pc3_evt0 = __VERIFIER_nondet_bool(); _x_pc4_x = __VERIFIER_nondet_float(); _x_a9_evt1 = __VERIFIER_nondet_bool(); _x_pc4_l0 = __VERIFIER_nondet_bool(); _x_pc16_x = __VERIFIER_nondet_float(); _x_pc1_evt0 = __VERIFIER_nondet_bool(); _x_pc7_l2 = __VERIFIER_nondet_bool(); _x_pc4_l1 = __VERIFIER_nondet_bool(); _x_pc20_x = __VERIFIER_nondet_float(); _x_pc11_l2 = __VERIFIER_nondet_bool(); _x_pc5_evt0 = __VERIFIER_nondet_bool(); _x_a0_l = __VERIFIER_nondet_bool(); _x_pc6_x = __VERIFIER_nondet_float(); _x_a16_evt1 = __VERIFIER_nondet_bool(); _x_pc6_evt1 = __VERIFIER_nondet_bool(); _x_pc6_l0 = __VERIFIER_nondet_bool(); _x_pc0_evt0 = __VERIFIER_nondet_bool(); _x_pc6_l1 = __VERIFIER_nondet_bool(); _x_pc13_l2 = __VERIFIER_nondet_bool(); _x_pc7_evt0 = __VERIFIER_nondet_bool(); _x_pc7_evt1 = __VERIFIER_nondet_bool(); _x_a2_evt1 = __VERIFIER_nondet_bool(); _x_pc8_x = __VERIFIER_nondet_float(); _x_a1_evt0 = __VERIFIER_nondet_bool(); _x_pc8_evt1 = __VERIFIER_nondet_bool(); _x_pc8_l1 = __VERIFIER_nondet_bool(); __ok = (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((( !(_x_pc21_evt0 != 0)) && ( !(_x_pc21_evt1 != 0))) || ((_x_pc21_evt1 != 0) && ( !(_x_pc21_evt0 != 0)))) || (((_x_pc21_evt0 != 0) && ( !(_x_pc21_evt1 != 0))) || ((_x_pc21_evt0 != 0) && (_x_pc21_evt1 != 0)))) && ((( !(_x_pc21_l2 != 0)) && ((_x_pc21_l0 != 0) && (_x_pc21_l1 != 0))) || ((((( !(_x_pc21_l2 != 0)) && (( !(_x_pc21_l0 != 0)) && ( !(_x_pc21_l1 != 0)))) || ((_x_pc21_l2 != 0) && (( !(_x_pc21_l0 != 0)) && ( !(_x_pc21_l1 != 0))))) || ((( !(_x_pc21_l2 != 0)) && ((_x_pc21_l1 != 0) && ( !(_x_pc21_l0 != 0)))) || ((_x_pc21_l2 != 0) && ((_x_pc21_l1 != 0) && ( !(_x_pc21_l0 != 0)))))) || ((( !(_x_pc21_l2 != 0)) && ((_x_pc21_l0 != 0) && ( !(_x_pc21_l1 != 0)))) || ((_x_pc21_l2 != 0) && ((_x_pc21_l0 != 0) && ( !(_x_pc21_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc21_l0 != 0) == (_x_pc21_l0 != 0)) && ((pc21_l1 != 0) == (_x_pc21_l1 != 0))) && ((pc21_l2 != 0) == (_x_pc21_l2 != 0))) && ((delta + (pc21_x + (-1.0 * _x_pc21_x))) == 0.0)))) && ((((((pc21_l0 != 0) == (_x_pc21_l0 != 0)) && ((pc21_l1 != 0) == (_x_pc21_l1 != 0))) && ((pc21_l2 != 0) == (_x_pc21_l2 != 0))) && ((delta + (pc21_x + (-1.0 * _x_pc21_x))) == 0.0)) || ( !(( !(pc21_evt0 != 0)) && ( !(pc21_evt1 != 0)))))) && (((((pc21_evt0 != 0) && (pc21_evt1 != 0)) && (pc21_x <= 50.0)) && (((_x_pc21_l2 != 0) && (( !(_x_pc21_l0 != 0)) && ( !(_x_pc21_l1 != 0)))) && (_x_pc21_x == 0.0))) || ( !((( !(pc21_l2 != 0)) && (( !(pc21_l0 != 0)) && ( !(pc21_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc21_evt0 != 0)) && ( !(pc21_evt1 != 0))))))))) && ((((pc21_evt0 != 0) && (pc21_evt1 != 0)) && ((( !(_x_pc21_l2 != 0)) && (( !(_x_pc21_l0 != 0)) && ( !(_x_pc21_l1 != 0)))) || (( !(_x_pc21_l2 != 0)) && ((_x_pc21_l1 != 0) && ( !(_x_pc21_l0 != 0)))))) || ( !(((pc21_l2 != 0) && (( !(pc21_l0 != 0)) && ( !(pc21_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc21_evt0 != 0)) && ( !(pc21_evt1 != 0))))))))) && (((_x_pc21_x == 0.0) && (25.0 <= pc21_x)) || ( !((( !(_x_pc21_l2 != 0)) && (( !(_x_pc21_l0 != 0)) && ( !(_x_pc21_l1 != 0)))) && ((pc21_l2 != 0) && (( !(pc21_l0 != 0)) && ( !(pc21_l1 != 0)))))))) && (((pc21_x <= 24.0) && (pc21_x == _x_pc21_x)) || ( !(((pc21_l2 != 0) && (( !(pc21_l0 != 0)) && ( !(pc21_l1 != 0)))) && (( !(_x_pc21_l2 != 0)) && ((_x_pc21_l1 != 0) && ( !(_x_pc21_l0 != 0)))))))) && (((_x_pc21_x == 0.0) && (((pc21_evt1 != 0) && ( !(pc21_evt0 != 0))) && ((_x_pc21_l2 != 0) && ((_x_pc21_l1 != 0) && ( !(_x_pc21_l0 != 0)))))) || ( !((( !(pc21_l2 != 0)) && ((pc21_l1 != 0) && ( !(pc21_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc21_evt0 != 0)) && ( !(pc21_evt1 != 0))))))))) && (((( !(_x_pc21_l2 != 0)) && ((_x_pc21_l0 != 0) && ( !(_x_pc21_l1 != 0)))) || (( !(_x_pc21_l2 != 0)) && ((_x_pc21_l0 != 0) && (_x_pc21_l1 != 0)))) || ( !(((pc21_l2 != 0) && ((pc21_l1 != 0) && ( !(pc21_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc21_evt0 != 0)) && ( !(pc21_evt1 != 0))))))))) && (((pc21_x == _x_pc21_x) && (((pc21_evt0 != 0) && (pc21_evt1 != 0)) && (50.0 <= pc21_x))) || ( !(((pc21_l2 != 0) && ((pc21_l1 != 0) && ( !(pc21_l0 != 0)))) && (( !(_x_pc21_l2 != 0)) && ((_x_pc21_l0 != 0) && (_x_pc21_l1 != 0))))))) && (((_x_pc21_x == 0.0) && (((pc21_evt0 != 0) && ( !(pc21_evt1 != 0))) && (pc21_x <= 25.0))) || ( !(((pc21_l2 != 0) && ((pc21_l1 != 0) && ( !(pc21_l0 != 0)))) && (( !(_x_pc21_l2 != 0)) && ((_x_pc21_l0 != 0) && ( !(_x_pc21_l1 != 0)))))))) && (((((pc21_evt0 != 0) && (pc21_evt1 != 0)) && (pc21_x == _x_pc21_x)) && (((_x_pc21_l2 != 0) && ((_x_pc21_l0 != 0) && ( !(_x_pc21_l1 != 0)))) || (( !(_x_pc21_l2 != 0)) && ((_x_pc21_l0 != 0) && (_x_pc21_l1 != 0))))) || ( !((( !(pc21_l2 != 0)) && ((pc21_l0 != 0) && ( !(pc21_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc21_evt0 != 0)) && ( !(pc21_evt1 != 0))))))))) && ((25.0 <= pc21_x) || ( !((( !(pc21_l2 != 0)) && ((pc21_l0 != 0) && ( !(pc21_l1 != 0)))) && (( !(_x_pc21_l2 != 0)) && ((_x_pc21_l0 != 0) && (_x_pc21_l1 != 0))))))) && ((pc21_x <= 24.0) || ( !((( !(pc21_l2 != 0)) && ((pc21_l0 != 0) && ( !(pc21_l1 != 0)))) && ((_x_pc21_l2 != 0) && ((_x_pc21_l0 != 0) && ( !(_x_pc21_l1 != 0)))))))) && ((( !(_x_pc21_l2 != 0)) && ((_x_pc21_l0 != 0) && (_x_pc21_l1 != 0))) || ( !((( !(pc21_l2 != 0)) && ((pc21_l0 != 0) && (pc21_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc21_evt0 != 0)) && ( !(pc21_evt1 != 0))))))))) && ((( !(_x_pc21_l2 != 0)) && (( !(_x_pc21_l0 != 0)) && ( !(_x_pc21_l1 != 0)))) || ( !(((pc21_l2 != 0) && ((pc21_l0 != 0) && ( !(pc21_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc21_evt0 != 0)) && ( !(pc21_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc20_evt0 != 0)) && ( !(_x_pc20_evt1 != 0))) || ((_x_pc20_evt1 != 0) && ( !(_x_pc20_evt0 != 0)))) || (((_x_pc20_evt0 != 0) && ( !(_x_pc20_evt1 != 0))) || ((_x_pc20_evt0 != 0) && (_x_pc20_evt1 != 0)))) && ((( !(_x_pc20_l2 != 0)) && ((_x_pc20_l0 != 0) && (_x_pc20_l1 != 0))) || ((((( !(_x_pc20_l2 != 0)) && (( !(_x_pc20_l0 != 0)) && ( !(_x_pc20_l1 != 0)))) || ((_x_pc20_l2 != 0) && (( !(_x_pc20_l0 != 0)) && ( !(_x_pc20_l1 != 0))))) || ((( !(_x_pc20_l2 != 0)) && ((_x_pc20_l1 != 0) && ( !(_x_pc20_l0 != 0)))) || ((_x_pc20_l2 != 0) && ((_x_pc20_l1 != 0) && ( !(_x_pc20_l0 != 0)))))) || ((( !(_x_pc20_l2 != 0)) && ((_x_pc20_l0 != 0) && ( !(_x_pc20_l1 != 0)))) || ((_x_pc20_l2 != 0) && ((_x_pc20_l0 != 0) && ( !(_x_pc20_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc20_l0 != 0) == (_x_pc20_l0 != 0)) && ((pc20_l1 != 0) == (_x_pc20_l1 != 0))) && ((pc20_l2 != 0) == (_x_pc20_l2 != 0))) && ((delta + (pc20_x + (-1.0 * _x_pc20_x))) == 0.0)))) && ((((((pc20_l0 != 0) == (_x_pc20_l0 != 0)) && ((pc20_l1 != 0) == (_x_pc20_l1 != 0))) && ((pc20_l2 != 0) == (_x_pc20_l2 != 0))) && ((delta + (pc20_x + (-1.0 * _x_pc20_x))) == 0.0)) || ( !(( !(pc20_evt0 != 0)) && ( !(pc20_evt1 != 0)))))) && (((((pc20_evt0 != 0) && (pc20_evt1 != 0)) && (pc20_x <= 50.0)) && (((_x_pc20_l2 != 0) && (( !(_x_pc20_l0 != 0)) && ( !(_x_pc20_l1 != 0)))) && (_x_pc20_x == 0.0))) || ( !((( !(pc20_l2 != 0)) && (( !(pc20_l0 != 0)) && ( !(pc20_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc20_evt0 != 0)) && ( !(pc20_evt1 != 0))))))))) && ((((pc20_evt0 != 0) && (pc20_evt1 != 0)) && ((( !(_x_pc20_l2 != 0)) && (( !(_x_pc20_l0 != 0)) && ( !(_x_pc20_l1 != 0)))) || (( !(_x_pc20_l2 != 0)) && ((_x_pc20_l1 != 0) && ( !(_x_pc20_l0 != 0)))))) || ( !(((pc20_l2 != 0) && (( !(pc20_l0 != 0)) && ( !(pc20_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc20_evt0 != 0)) && ( !(pc20_evt1 != 0))))))))) && (((_x_pc20_x == 0.0) && (25.0 <= pc20_x)) || ( !((( !(_x_pc20_l2 != 0)) && (( !(_x_pc20_l0 != 0)) && ( !(_x_pc20_l1 != 0)))) && ((pc20_l2 != 0) && (( !(pc20_l0 != 0)) && ( !(pc20_l1 != 0)))))))) && (((pc20_x <= 24.0) && (pc20_x == _x_pc20_x)) || ( !(((pc20_l2 != 0) && (( !(pc20_l0 != 0)) && ( !(pc20_l1 != 0)))) && (( !(_x_pc20_l2 != 0)) && ((_x_pc20_l1 != 0) && ( !(_x_pc20_l0 != 0)))))))) && (((_x_pc20_x == 0.0) && (((pc20_evt1 != 0) && ( !(pc20_evt0 != 0))) && ((_x_pc20_l2 != 0) && ((_x_pc20_l1 != 0) && ( !(_x_pc20_l0 != 0)))))) || ( !((( !(pc20_l2 != 0)) && ((pc20_l1 != 0) && ( !(pc20_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc20_evt0 != 0)) && ( !(pc20_evt1 != 0))))))))) && (((( !(_x_pc20_l2 != 0)) && ((_x_pc20_l0 != 0) && ( !(_x_pc20_l1 != 0)))) || (( !(_x_pc20_l2 != 0)) && ((_x_pc20_l0 != 0) && (_x_pc20_l1 != 0)))) || ( !(((pc20_l2 != 0) && ((pc20_l1 != 0) && ( !(pc20_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc20_evt0 != 0)) && ( !(pc20_evt1 != 0))))))))) && (((pc20_x == _x_pc20_x) && (((pc20_evt0 != 0) && (pc20_evt1 != 0)) && (50.0 <= pc20_x))) || ( !(((pc20_l2 != 0) && ((pc20_l1 != 0) && ( !(pc20_l0 != 0)))) && (( !(_x_pc20_l2 != 0)) && ((_x_pc20_l0 != 0) && (_x_pc20_l1 != 0))))))) && (((_x_pc20_x == 0.0) && (((pc20_evt0 != 0) && ( !(pc20_evt1 != 0))) && (pc20_x <= 25.0))) || ( !(((pc20_l2 != 0) && ((pc20_l1 != 0) && ( !(pc20_l0 != 0)))) && (( !(_x_pc20_l2 != 0)) && ((_x_pc20_l0 != 0) && ( !(_x_pc20_l1 != 0)))))))) && (((((pc20_evt0 != 0) && (pc20_evt1 != 0)) && (pc20_x == _x_pc20_x)) && (((_x_pc20_l2 != 0) && ((_x_pc20_l0 != 0) && ( !(_x_pc20_l1 != 0)))) || (( !(_x_pc20_l2 != 0)) && ((_x_pc20_l0 != 0) && (_x_pc20_l1 != 0))))) || ( !((( !(pc20_l2 != 0)) && ((pc20_l0 != 0) && ( !(pc20_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc20_evt0 != 0)) && ( !(pc20_evt1 != 0))))))))) && ((25.0 <= pc20_x) || ( !((( !(pc20_l2 != 0)) && ((pc20_l0 != 0) && ( !(pc20_l1 != 0)))) && (( !(_x_pc20_l2 != 0)) && ((_x_pc20_l0 != 0) && (_x_pc20_l1 != 0))))))) && ((pc20_x <= 24.0) || ( !((( !(pc20_l2 != 0)) && ((pc20_l0 != 0) && ( !(pc20_l1 != 0)))) && ((_x_pc20_l2 != 0) && ((_x_pc20_l0 != 0) && ( !(_x_pc20_l1 != 0)))))))) && ((( !(_x_pc20_l2 != 0)) && ((_x_pc20_l0 != 0) && (_x_pc20_l1 != 0))) || ( !((( !(pc20_l2 != 0)) && ((pc20_l0 != 0) && (pc20_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc20_evt0 != 0)) && ( !(pc20_evt1 != 0))))))))) && ((( !(_x_pc20_l2 != 0)) && (( !(_x_pc20_l0 != 0)) && ( !(_x_pc20_l1 != 0)))) || ( !(((pc20_l2 != 0) && ((pc20_l0 != 0) && ( !(pc20_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc20_evt0 != 0)) && ( !(pc20_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc19_evt0 != 0)) && ( !(_x_pc19_evt1 != 0))) || ((_x_pc19_evt1 != 0) && ( !(_x_pc19_evt0 != 0)))) || (((_x_pc19_evt0 != 0) && ( !(_x_pc19_evt1 != 0))) || ((_x_pc19_evt0 != 0) && (_x_pc19_evt1 != 0)))) && ((( !(_x_pc19_l2 != 0)) && ((_x_pc19_l0 != 0) && (_x_pc19_l1 != 0))) || ((((( !(_x_pc19_l2 != 0)) && (( !(_x_pc19_l0 != 0)) && ( !(_x_pc19_l1 != 0)))) || ((_x_pc19_l2 != 0) && (( !(_x_pc19_l0 != 0)) && ( !(_x_pc19_l1 != 0))))) || ((( !(_x_pc19_l2 != 0)) && ((_x_pc19_l1 != 0) && ( !(_x_pc19_l0 != 0)))) || ((_x_pc19_l2 != 0) && ((_x_pc19_l1 != 0) && ( !(_x_pc19_l0 != 0)))))) || ((( !(_x_pc19_l2 != 0)) && ((_x_pc19_l0 != 0) && ( !(_x_pc19_l1 != 0)))) || ((_x_pc19_l2 != 0) && ((_x_pc19_l0 != 0) && ( !(_x_pc19_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc19_l0 != 0) == (_x_pc19_l0 != 0)) && ((pc19_l1 != 0) == (_x_pc19_l1 != 0))) && ((pc19_l2 != 0) == (_x_pc19_l2 != 0))) && ((delta + (pc19_x + (-1.0 * _x_pc19_x))) == 0.0)))) && ((((((pc19_l0 != 0) == (_x_pc19_l0 != 0)) && ((pc19_l1 != 0) == (_x_pc19_l1 != 0))) && ((pc19_l2 != 0) == (_x_pc19_l2 != 0))) && ((delta + (pc19_x + (-1.0 * _x_pc19_x))) == 0.0)) || ( !(( !(pc19_evt0 != 0)) && ( !(pc19_evt1 != 0)))))) && (((((pc19_evt0 != 0) && (pc19_evt1 != 0)) && (pc19_x <= 50.0)) && (((_x_pc19_l2 != 0) && (( !(_x_pc19_l0 != 0)) && ( !(_x_pc19_l1 != 0)))) && (_x_pc19_x == 0.0))) || ( !((( !(pc19_l2 != 0)) && (( !(pc19_l0 != 0)) && ( !(pc19_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc19_evt0 != 0)) && ( !(pc19_evt1 != 0))))))))) && ((((pc19_evt0 != 0) && (pc19_evt1 != 0)) && ((( !(_x_pc19_l2 != 0)) && (( !(_x_pc19_l0 != 0)) && ( !(_x_pc19_l1 != 0)))) || (( !(_x_pc19_l2 != 0)) && ((_x_pc19_l1 != 0) && ( !(_x_pc19_l0 != 0)))))) || ( !(((pc19_l2 != 0) && (( !(pc19_l0 != 0)) && ( !(pc19_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc19_evt0 != 0)) && ( !(pc19_evt1 != 0))))))))) && (((_x_pc19_x == 0.0) && (25.0 <= pc19_x)) || ( !((( !(_x_pc19_l2 != 0)) && (( !(_x_pc19_l0 != 0)) && ( !(_x_pc19_l1 != 0)))) && ((pc19_l2 != 0) && (( !(pc19_l0 != 0)) && ( !(pc19_l1 != 0)))))))) && (((pc19_x <= 24.0) && (pc19_x == _x_pc19_x)) || ( !(((pc19_l2 != 0) && (( !(pc19_l0 != 0)) && ( !(pc19_l1 != 0)))) && (( !(_x_pc19_l2 != 0)) && ((_x_pc19_l1 != 0) && ( !(_x_pc19_l0 != 0)))))))) && (((_x_pc19_x == 0.0) && (((pc19_evt1 != 0) && ( !(pc19_evt0 != 0))) && ((_x_pc19_l2 != 0) && ((_x_pc19_l1 != 0) && ( !(_x_pc19_l0 != 0)))))) || ( !((( !(pc19_l2 != 0)) && ((pc19_l1 != 0) && ( !(pc19_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc19_evt0 != 0)) && ( !(pc19_evt1 != 0))))))))) && (((( !(_x_pc19_l2 != 0)) && ((_x_pc19_l0 != 0) && ( !(_x_pc19_l1 != 0)))) || (( !(_x_pc19_l2 != 0)) && ((_x_pc19_l0 != 0) && (_x_pc19_l1 != 0)))) || ( !(((pc19_l2 != 0) && ((pc19_l1 != 0) && ( !(pc19_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc19_evt0 != 0)) && ( !(pc19_evt1 != 0))))))))) && (((pc19_x == _x_pc19_x) && (((pc19_evt0 != 0) && (pc19_evt1 != 0)) && (50.0 <= pc19_x))) || ( !(((pc19_l2 != 0) && ((pc19_l1 != 0) && ( !(pc19_l0 != 0)))) && (( !(_x_pc19_l2 != 0)) && ((_x_pc19_l0 != 0) && (_x_pc19_l1 != 0))))))) && (((_x_pc19_x == 0.0) && (((pc19_evt0 != 0) && ( !(pc19_evt1 != 0))) && (pc19_x <= 25.0))) || ( !(((pc19_l2 != 0) && ((pc19_l1 != 0) && ( !(pc19_l0 != 0)))) && (( !(_x_pc19_l2 != 0)) && ((_x_pc19_l0 != 0) && ( !(_x_pc19_l1 != 0)))))))) && (((((pc19_evt0 != 0) && (pc19_evt1 != 0)) && (pc19_x == _x_pc19_x)) && (((_x_pc19_l2 != 0) && ((_x_pc19_l0 != 0) && ( !(_x_pc19_l1 != 0)))) || (( !(_x_pc19_l2 != 0)) && ((_x_pc19_l0 != 0) && (_x_pc19_l1 != 0))))) || ( !((( !(pc19_l2 != 0)) && ((pc19_l0 != 0) && ( !(pc19_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc19_evt0 != 0)) && ( !(pc19_evt1 != 0))))))))) && ((25.0 <= pc19_x) || ( !((( !(pc19_l2 != 0)) && ((pc19_l0 != 0) && ( !(pc19_l1 != 0)))) && (( !(_x_pc19_l2 != 0)) && ((_x_pc19_l0 != 0) && (_x_pc19_l1 != 0))))))) && ((pc19_x <= 24.0) || ( !((( !(pc19_l2 != 0)) && ((pc19_l0 != 0) && ( !(pc19_l1 != 0)))) && ((_x_pc19_l2 != 0) && ((_x_pc19_l0 != 0) && ( !(_x_pc19_l1 != 0)))))))) && ((( !(_x_pc19_l2 != 0)) && ((_x_pc19_l0 != 0) && (_x_pc19_l1 != 0))) || ( !((( !(pc19_l2 != 0)) && ((pc19_l0 != 0) && (pc19_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc19_evt0 != 0)) && ( !(pc19_evt1 != 0))))))))) && ((( !(_x_pc19_l2 != 0)) && (( !(_x_pc19_l0 != 0)) && ( !(_x_pc19_l1 != 0)))) || ( !(((pc19_l2 != 0) && ((pc19_l0 != 0) && ( !(pc19_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc19_evt0 != 0)) && ( !(pc19_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc18_evt0 != 0)) && ( !(_x_pc18_evt1 != 0))) || ((_x_pc18_evt1 != 0) && ( !(_x_pc18_evt0 != 0)))) || (((_x_pc18_evt0 != 0) && ( !(_x_pc18_evt1 != 0))) || ((_x_pc18_evt0 != 0) && (_x_pc18_evt1 != 0)))) && ((( !(_x_pc18_l2 != 0)) && ((_x_pc18_l0 != 0) && (_x_pc18_l1 != 0))) || ((((( !(_x_pc18_l2 != 0)) && (( !(_x_pc18_l0 != 0)) && ( !(_x_pc18_l1 != 0)))) || ((_x_pc18_l2 != 0) && (( !(_x_pc18_l0 != 0)) && ( !(_x_pc18_l1 != 0))))) || ((( !(_x_pc18_l2 != 0)) && ((_x_pc18_l1 != 0) && ( !(_x_pc18_l0 != 0)))) || ((_x_pc18_l2 != 0) && ((_x_pc18_l1 != 0) && ( !(_x_pc18_l0 != 0)))))) || ((( !(_x_pc18_l2 != 0)) && ((_x_pc18_l0 != 0) && ( !(_x_pc18_l1 != 0)))) || ((_x_pc18_l2 != 0) && ((_x_pc18_l0 != 0) && ( !(_x_pc18_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc18_l0 != 0) == (_x_pc18_l0 != 0)) && ((pc18_l1 != 0) == (_x_pc18_l1 != 0))) && ((pc18_l2 != 0) == (_x_pc18_l2 != 0))) && ((delta + (pc18_x + (-1.0 * _x_pc18_x))) == 0.0)))) && ((((((pc18_l0 != 0) == (_x_pc18_l0 != 0)) && ((pc18_l1 != 0) == (_x_pc18_l1 != 0))) && ((pc18_l2 != 0) == (_x_pc18_l2 != 0))) && ((delta + (pc18_x + (-1.0 * _x_pc18_x))) == 0.0)) || ( !(( !(pc18_evt0 != 0)) && ( !(pc18_evt1 != 0)))))) && (((((pc18_evt0 != 0) && (pc18_evt1 != 0)) && (pc18_x <= 50.0)) && (((_x_pc18_l2 != 0) && (( !(_x_pc18_l0 != 0)) && ( !(_x_pc18_l1 != 0)))) && (_x_pc18_x == 0.0))) || ( !((( !(pc18_l2 != 0)) && (( !(pc18_l0 != 0)) && ( !(pc18_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc18_evt0 != 0)) && ( !(pc18_evt1 != 0))))))))) && ((((pc18_evt0 != 0) && (pc18_evt1 != 0)) && ((( !(_x_pc18_l2 != 0)) && (( !(_x_pc18_l0 != 0)) && ( !(_x_pc18_l1 != 0)))) || (( !(_x_pc18_l2 != 0)) && ((_x_pc18_l1 != 0) && ( !(_x_pc18_l0 != 0)))))) || ( !(((pc18_l2 != 0) && (( !(pc18_l0 != 0)) && ( !(pc18_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc18_evt0 != 0)) && ( !(pc18_evt1 != 0))))))))) && (((_x_pc18_x == 0.0) && (25.0 <= pc18_x)) || ( !((( !(_x_pc18_l2 != 0)) && (( !(_x_pc18_l0 != 0)) && ( !(_x_pc18_l1 != 0)))) && ((pc18_l2 != 0) && (( !(pc18_l0 != 0)) && ( !(pc18_l1 != 0)))))))) && (((pc18_x <= 24.0) && (pc18_x == _x_pc18_x)) || ( !(((pc18_l2 != 0) && (( !(pc18_l0 != 0)) && ( !(pc18_l1 != 0)))) && (( !(_x_pc18_l2 != 0)) && ((_x_pc18_l1 != 0) && ( !(_x_pc18_l0 != 0)))))))) && (((_x_pc18_x == 0.0) && (((pc18_evt1 != 0) && ( !(pc18_evt0 != 0))) && ((_x_pc18_l2 != 0) && ((_x_pc18_l1 != 0) && ( !(_x_pc18_l0 != 0)))))) || ( !((( !(pc18_l2 != 0)) && ((pc18_l1 != 0) && ( !(pc18_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc18_evt0 != 0)) && ( !(pc18_evt1 != 0))))))))) && (((( !(_x_pc18_l2 != 0)) && ((_x_pc18_l0 != 0) && ( !(_x_pc18_l1 != 0)))) || (( !(_x_pc18_l2 != 0)) && ((_x_pc18_l0 != 0) && (_x_pc18_l1 != 0)))) || ( !(((pc18_l2 != 0) && ((pc18_l1 != 0) && ( !(pc18_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc18_evt0 != 0)) && ( !(pc18_evt1 != 0))))))))) && (((pc18_x == _x_pc18_x) && (((pc18_evt0 != 0) && (pc18_evt1 != 0)) && (50.0 <= pc18_x))) || ( !(((pc18_l2 != 0) && ((pc18_l1 != 0) && ( !(pc18_l0 != 0)))) && (( !(_x_pc18_l2 != 0)) && ((_x_pc18_l0 != 0) && (_x_pc18_l1 != 0))))))) && (((_x_pc18_x == 0.0) && (((pc18_evt0 != 0) && ( !(pc18_evt1 != 0))) && (pc18_x <= 25.0))) || ( !(((pc18_l2 != 0) && ((pc18_l1 != 0) && ( !(pc18_l0 != 0)))) && (( !(_x_pc18_l2 != 0)) && ((_x_pc18_l0 != 0) && ( !(_x_pc18_l1 != 0)))))))) && (((((pc18_evt0 != 0) && (pc18_evt1 != 0)) && (pc18_x == _x_pc18_x)) && (((_x_pc18_l2 != 0) && ((_x_pc18_l0 != 0) && ( !(_x_pc18_l1 != 0)))) || (( !(_x_pc18_l2 != 0)) && ((_x_pc18_l0 != 0) && (_x_pc18_l1 != 0))))) || ( !((( !(pc18_l2 != 0)) && ((pc18_l0 != 0) && ( !(pc18_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc18_evt0 != 0)) && ( !(pc18_evt1 != 0))))))))) && ((25.0 <= pc18_x) || ( !((( !(pc18_l2 != 0)) && ((pc18_l0 != 0) && ( !(pc18_l1 != 0)))) && (( !(_x_pc18_l2 != 0)) && ((_x_pc18_l0 != 0) && (_x_pc18_l1 != 0))))))) && ((pc18_x <= 24.0) || ( !((( !(pc18_l2 != 0)) && ((pc18_l0 != 0) && ( !(pc18_l1 != 0)))) && ((_x_pc18_l2 != 0) && ((_x_pc18_l0 != 0) && ( !(_x_pc18_l1 != 0)))))))) && ((( !(_x_pc18_l2 != 0)) && ((_x_pc18_l0 != 0) && (_x_pc18_l1 != 0))) || ( !((( !(pc18_l2 != 0)) && ((pc18_l0 != 0) && (pc18_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc18_evt0 != 0)) && ( !(pc18_evt1 != 0))))))))) && ((( !(_x_pc18_l2 != 0)) && (( !(_x_pc18_l0 != 0)) && ( !(_x_pc18_l1 != 0)))) || ( !(((pc18_l2 != 0) && ((pc18_l0 != 0) && ( !(pc18_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc18_evt0 != 0)) && ( !(pc18_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc17_evt0 != 0)) && ( !(_x_pc17_evt1 != 0))) || ((_x_pc17_evt1 != 0) && ( !(_x_pc17_evt0 != 0)))) || (((_x_pc17_evt0 != 0) && ( !(_x_pc17_evt1 != 0))) || ((_x_pc17_evt0 != 0) && (_x_pc17_evt1 != 0)))) && ((( !(_x_pc17_l2 != 0)) && ((_x_pc17_l0 != 0) && (_x_pc17_l1 != 0))) || ((((( !(_x_pc17_l2 != 0)) && (( !(_x_pc17_l0 != 0)) && ( !(_x_pc17_l1 != 0)))) || ((_x_pc17_l2 != 0) && (( !(_x_pc17_l0 != 0)) && ( !(_x_pc17_l1 != 0))))) || ((( !(_x_pc17_l2 != 0)) && ((_x_pc17_l1 != 0) && ( !(_x_pc17_l0 != 0)))) || ((_x_pc17_l2 != 0) && ((_x_pc17_l1 != 0) && ( !(_x_pc17_l0 != 0)))))) || ((( !(_x_pc17_l2 != 0)) && ((_x_pc17_l0 != 0) && ( !(_x_pc17_l1 != 0)))) || ((_x_pc17_l2 != 0) && ((_x_pc17_l0 != 0) && ( !(_x_pc17_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc17_l0 != 0) == (_x_pc17_l0 != 0)) && ((pc17_l1 != 0) == (_x_pc17_l1 != 0))) && ((pc17_l2 != 0) == (_x_pc17_l2 != 0))) && ((delta + (pc17_x + (-1.0 * _x_pc17_x))) == 0.0)))) && ((((((pc17_l0 != 0) == (_x_pc17_l0 != 0)) && ((pc17_l1 != 0) == (_x_pc17_l1 != 0))) && ((pc17_l2 != 0) == (_x_pc17_l2 != 0))) && ((delta + (pc17_x + (-1.0 * _x_pc17_x))) == 0.0)) || ( !(( !(pc17_evt0 != 0)) && ( !(pc17_evt1 != 0)))))) && (((((pc17_evt0 != 0) && (pc17_evt1 != 0)) && (pc17_x <= 50.0)) && (((_x_pc17_l2 != 0) && (( !(_x_pc17_l0 != 0)) && ( !(_x_pc17_l1 != 0)))) && (_x_pc17_x == 0.0))) || ( !((( !(pc17_l2 != 0)) && (( !(pc17_l0 != 0)) && ( !(pc17_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc17_evt0 != 0)) && ( !(pc17_evt1 != 0))))))))) && ((((pc17_evt0 != 0) && (pc17_evt1 != 0)) && ((( !(_x_pc17_l2 != 0)) && (( !(_x_pc17_l0 != 0)) && ( !(_x_pc17_l1 != 0)))) || (( !(_x_pc17_l2 != 0)) && ((_x_pc17_l1 != 0) && ( !(_x_pc17_l0 != 0)))))) || ( !(((pc17_l2 != 0) && (( !(pc17_l0 != 0)) && ( !(pc17_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc17_evt0 != 0)) && ( !(pc17_evt1 != 0))))))))) && (((_x_pc17_x == 0.0) && (25.0 <= pc17_x)) || ( !((( !(_x_pc17_l2 != 0)) && (( !(_x_pc17_l0 != 0)) && ( !(_x_pc17_l1 != 0)))) && ((pc17_l2 != 0) && (( !(pc17_l0 != 0)) && ( !(pc17_l1 != 0)))))))) && (((pc17_x <= 24.0) && (pc17_x == _x_pc17_x)) || ( !(((pc17_l2 != 0) && (( !(pc17_l0 != 0)) && ( !(pc17_l1 != 0)))) && (( !(_x_pc17_l2 != 0)) && ((_x_pc17_l1 != 0) && ( !(_x_pc17_l0 != 0)))))))) && (((_x_pc17_x == 0.0) && (((pc17_evt1 != 0) && ( !(pc17_evt0 != 0))) && ((_x_pc17_l2 != 0) && ((_x_pc17_l1 != 0) && ( !(_x_pc17_l0 != 0)))))) || ( !((( !(pc17_l2 != 0)) && ((pc17_l1 != 0) && ( !(pc17_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc17_evt0 != 0)) && ( !(pc17_evt1 != 0))))))))) && (((( !(_x_pc17_l2 != 0)) && ((_x_pc17_l0 != 0) && ( !(_x_pc17_l1 != 0)))) || (( !(_x_pc17_l2 != 0)) && ((_x_pc17_l0 != 0) && (_x_pc17_l1 != 0)))) || ( !(((pc17_l2 != 0) && ((pc17_l1 != 0) && ( !(pc17_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc17_evt0 != 0)) && ( !(pc17_evt1 != 0))))))))) && (((pc17_x == _x_pc17_x) && (((pc17_evt0 != 0) && (pc17_evt1 != 0)) && (50.0 <= pc17_x))) || ( !(((pc17_l2 != 0) && ((pc17_l1 != 0) && ( !(pc17_l0 != 0)))) && (( !(_x_pc17_l2 != 0)) && ((_x_pc17_l0 != 0) && (_x_pc17_l1 != 0))))))) && (((_x_pc17_x == 0.0) && (((pc17_evt0 != 0) && ( !(pc17_evt1 != 0))) && (pc17_x <= 25.0))) || ( !(((pc17_l2 != 0) && ((pc17_l1 != 0) && ( !(pc17_l0 != 0)))) && (( !(_x_pc17_l2 != 0)) && ((_x_pc17_l0 != 0) && ( !(_x_pc17_l1 != 0)))))))) && (((((pc17_evt0 != 0) && (pc17_evt1 != 0)) && (pc17_x == _x_pc17_x)) && (((_x_pc17_l2 != 0) && ((_x_pc17_l0 != 0) && ( !(_x_pc17_l1 != 0)))) || (( !(_x_pc17_l2 != 0)) && ((_x_pc17_l0 != 0) && (_x_pc17_l1 != 0))))) || ( !((( !(pc17_l2 != 0)) && ((pc17_l0 != 0) && ( !(pc17_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc17_evt0 != 0)) && ( !(pc17_evt1 != 0))))))))) && ((25.0 <= pc17_x) || ( !((( !(pc17_l2 != 0)) && ((pc17_l0 != 0) && ( !(pc17_l1 != 0)))) && (( !(_x_pc17_l2 != 0)) && ((_x_pc17_l0 != 0) && (_x_pc17_l1 != 0))))))) && ((pc17_x <= 24.0) || ( !((( !(pc17_l2 != 0)) && ((pc17_l0 != 0) && ( !(pc17_l1 != 0)))) && ((_x_pc17_l2 != 0) && ((_x_pc17_l0 != 0) && ( !(_x_pc17_l1 != 0)))))))) && ((( !(_x_pc17_l2 != 0)) && ((_x_pc17_l0 != 0) && (_x_pc17_l1 != 0))) || ( !((( !(pc17_l2 != 0)) && ((pc17_l0 != 0) && (pc17_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc17_evt0 != 0)) && ( !(pc17_evt1 != 0))))))))) && ((( !(_x_pc17_l2 != 0)) && (( !(_x_pc17_l0 != 0)) && ( !(_x_pc17_l1 != 0)))) || ( !(((pc17_l2 != 0) && ((pc17_l0 != 0) && ( !(pc17_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc17_evt0 != 0)) && ( !(pc17_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc16_evt0 != 0)) && ( !(_x_pc16_evt1 != 0))) || ((_x_pc16_evt1 != 0) && ( !(_x_pc16_evt0 != 0)))) || (((_x_pc16_evt0 != 0) && ( !(_x_pc16_evt1 != 0))) || ((_x_pc16_evt0 != 0) && (_x_pc16_evt1 != 0)))) && ((( !(_x_pc16_l2 != 0)) && ((_x_pc16_l0 != 0) && (_x_pc16_l1 != 0))) || ((((( !(_x_pc16_l2 != 0)) && (( !(_x_pc16_l0 != 0)) && ( !(_x_pc16_l1 != 0)))) || ((_x_pc16_l2 != 0) && (( !(_x_pc16_l0 != 0)) && ( !(_x_pc16_l1 != 0))))) || ((( !(_x_pc16_l2 != 0)) && ((_x_pc16_l1 != 0) && ( !(_x_pc16_l0 != 0)))) || ((_x_pc16_l2 != 0) && ((_x_pc16_l1 != 0) && ( !(_x_pc16_l0 != 0)))))) || ((( !(_x_pc16_l2 != 0)) && ((_x_pc16_l0 != 0) && ( !(_x_pc16_l1 != 0)))) || ((_x_pc16_l2 != 0) && ((_x_pc16_l0 != 0) && ( !(_x_pc16_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc16_l0 != 0) == (_x_pc16_l0 != 0)) && ((pc16_l1 != 0) == (_x_pc16_l1 != 0))) && ((pc16_l2 != 0) == (_x_pc16_l2 != 0))) && ((delta + (pc16_x + (-1.0 * _x_pc16_x))) == 0.0)))) && ((((((pc16_l0 != 0) == (_x_pc16_l0 != 0)) && ((pc16_l1 != 0) == (_x_pc16_l1 != 0))) && ((pc16_l2 != 0) == (_x_pc16_l2 != 0))) && ((delta + (pc16_x + (-1.0 * _x_pc16_x))) == 0.0)) || ( !(( !(pc16_evt0 != 0)) && ( !(pc16_evt1 != 0)))))) && (((((pc16_evt0 != 0) && (pc16_evt1 != 0)) && (pc16_x <= 50.0)) && (((_x_pc16_l2 != 0) && (( !(_x_pc16_l0 != 0)) && ( !(_x_pc16_l1 != 0)))) && (_x_pc16_x == 0.0))) || ( !((( !(pc16_l2 != 0)) && (( !(pc16_l0 != 0)) && ( !(pc16_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc16_evt0 != 0)) && ( !(pc16_evt1 != 0))))))))) && ((((pc16_evt0 != 0) && (pc16_evt1 != 0)) && ((( !(_x_pc16_l2 != 0)) && (( !(_x_pc16_l0 != 0)) && ( !(_x_pc16_l1 != 0)))) || (( !(_x_pc16_l2 != 0)) && ((_x_pc16_l1 != 0) && ( !(_x_pc16_l0 != 0)))))) || ( !(((pc16_l2 != 0) && (( !(pc16_l0 != 0)) && ( !(pc16_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc16_evt0 != 0)) && ( !(pc16_evt1 != 0))))))))) && (((_x_pc16_x == 0.0) && (25.0 <= pc16_x)) || ( !((( !(_x_pc16_l2 != 0)) && (( !(_x_pc16_l0 != 0)) && ( !(_x_pc16_l1 != 0)))) && ((pc16_l2 != 0) && (( !(pc16_l0 != 0)) && ( !(pc16_l1 != 0)))))))) && (((pc16_x <= 24.0) && (pc16_x == _x_pc16_x)) || ( !(((pc16_l2 != 0) && (( !(pc16_l0 != 0)) && ( !(pc16_l1 != 0)))) && (( !(_x_pc16_l2 != 0)) && ((_x_pc16_l1 != 0) && ( !(_x_pc16_l0 != 0)))))))) && (((_x_pc16_x == 0.0) && (((pc16_evt1 != 0) && ( !(pc16_evt0 != 0))) && ((_x_pc16_l2 != 0) && ((_x_pc16_l1 != 0) && ( !(_x_pc16_l0 != 0)))))) || ( !((( !(pc16_l2 != 0)) && ((pc16_l1 != 0) && ( !(pc16_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc16_evt0 != 0)) && ( !(pc16_evt1 != 0))))))))) && (((( !(_x_pc16_l2 != 0)) && ((_x_pc16_l0 != 0) && ( !(_x_pc16_l1 != 0)))) || (( !(_x_pc16_l2 != 0)) && ((_x_pc16_l0 != 0) && (_x_pc16_l1 != 0)))) || ( !(((pc16_l2 != 0) && ((pc16_l1 != 0) && ( !(pc16_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc16_evt0 != 0)) && ( !(pc16_evt1 != 0))))))))) && (((pc16_x == _x_pc16_x) && (((pc16_evt0 != 0) && (pc16_evt1 != 0)) && (50.0 <= pc16_x))) || ( !(((pc16_l2 != 0) && ((pc16_l1 != 0) && ( !(pc16_l0 != 0)))) && (( !(_x_pc16_l2 != 0)) && ((_x_pc16_l0 != 0) && (_x_pc16_l1 != 0))))))) && (((_x_pc16_x == 0.0) && (((pc16_evt0 != 0) && ( !(pc16_evt1 != 0))) && (pc16_x <= 25.0))) || ( !(((pc16_l2 != 0) && ((pc16_l1 != 0) && ( !(pc16_l0 != 0)))) && (( !(_x_pc16_l2 != 0)) && ((_x_pc16_l0 != 0) && ( !(_x_pc16_l1 != 0)))))))) && (((((pc16_evt0 != 0) && (pc16_evt1 != 0)) && (pc16_x == _x_pc16_x)) && (((_x_pc16_l2 != 0) && ((_x_pc16_l0 != 0) && ( !(_x_pc16_l1 != 0)))) || (( !(_x_pc16_l2 != 0)) && ((_x_pc16_l0 != 0) && (_x_pc16_l1 != 0))))) || ( !((( !(pc16_l2 != 0)) && ((pc16_l0 != 0) && ( !(pc16_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc16_evt0 != 0)) && ( !(pc16_evt1 != 0))))))))) && ((25.0 <= pc16_x) || ( !((( !(pc16_l2 != 0)) && ((pc16_l0 != 0) && ( !(pc16_l1 != 0)))) && (( !(_x_pc16_l2 != 0)) && ((_x_pc16_l0 != 0) && (_x_pc16_l1 != 0))))))) && ((pc16_x <= 24.0) || ( !((( !(pc16_l2 != 0)) && ((pc16_l0 != 0) && ( !(pc16_l1 != 0)))) && ((_x_pc16_l2 != 0) && ((_x_pc16_l0 != 0) && ( !(_x_pc16_l1 != 0)))))))) && ((( !(_x_pc16_l2 != 0)) && ((_x_pc16_l0 != 0) && (_x_pc16_l1 != 0))) || ( !((( !(pc16_l2 != 0)) && ((pc16_l0 != 0) && (pc16_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc16_evt0 != 0)) && ( !(pc16_evt1 != 0))))))))) && ((( !(_x_pc16_l2 != 0)) && (( !(_x_pc16_l0 != 0)) && ( !(_x_pc16_l1 != 0)))) || ( !(((pc16_l2 != 0) && ((pc16_l0 != 0) && ( !(pc16_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc16_evt0 != 0)) && ( !(pc16_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc15_evt0 != 0)) && ( !(_x_pc15_evt1 != 0))) || ((_x_pc15_evt1 != 0) && ( !(_x_pc15_evt0 != 0)))) || (((_x_pc15_evt0 != 0) && ( !(_x_pc15_evt1 != 0))) || ((_x_pc15_evt0 != 0) && (_x_pc15_evt1 != 0)))) && ((( !(_x_pc15_l2 != 0)) && ((_x_pc15_l0 != 0) && (_x_pc15_l1 != 0))) || ((((( !(_x_pc15_l2 != 0)) && (( !(_x_pc15_l0 != 0)) && ( !(_x_pc15_l1 != 0)))) || ((_x_pc15_l2 != 0) && (( !(_x_pc15_l0 != 0)) && ( !(_x_pc15_l1 != 0))))) || ((( !(_x_pc15_l2 != 0)) && ((_x_pc15_l1 != 0) && ( !(_x_pc15_l0 != 0)))) || ((_x_pc15_l2 != 0) && ((_x_pc15_l1 != 0) && ( !(_x_pc15_l0 != 0)))))) || ((( !(_x_pc15_l2 != 0)) && ((_x_pc15_l0 != 0) && ( !(_x_pc15_l1 != 0)))) || ((_x_pc15_l2 != 0) && ((_x_pc15_l0 != 0) && ( !(_x_pc15_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc15_l0 != 0) == (_x_pc15_l0 != 0)) && ((pc15_l1 != 0) == (_x_pc15_l1 != 0))) && ((pc15_l2 != 0) == (_x_pc15_l2 != 0))) && ((delta + (pc15_x + (-1.0 * _x_pc15_x))) == 0.0)))) && ((((((pc15_l0 != 0) == (_x_pc15_l0 != 0)) && ((pc15_l1 != 0) == (_x_pc15_l1 != 0))) && ((pc15_l2 != 0) == (_x_pc15_l2 != 0))) && ((delta + (pc15_x + (-1.0 * _x_pc15_x))) == 0.0)) || ( !(( !(pc15_evt0 != 0)) && ( !(pc15_evt1 != 0)))))) && (((((pc15_evt0 != 0) && (pc15_evt1 != 0)) && (pc15_x <= 50.0)) && (((_x_pc15_l2 != 0) && (( !(_x_pc15_l0 != 0)) && ( !(_x_pc15_l1 != 0)))) && (_x_pc15_x == 0.0))) || ( !((( !(pc15_l2 != 0)) && (( !(pc15_l0 != 0)) && ( !(pc15_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc15_evt0 != 0)) && ( !(pc15_evt1 != 0))))))))) && ((((pc15_evt0 != 0) && (pc15_evt1 != 0)) && ((( !(_x_pc15_l2 != 0)) && (( !(_x_pc15_l0 != 0)) && ( !(_x_pc15_l1 != 0)))) || (( !(_x_pc15_l2 != 0)) && ((_x_pc15_l1 != 0) && ( !(_x_pc15_l0 != 0)))))) || ( !(((pc15_l2 != 0) && (( !(pc15_l0 != 0)) && ( !(pc15_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc15_evt0 != 0)) && ( !(pc15_evt1 != 0))))))))) && (((_x_pc15_x == 0.0) && (25.0 <= pc15_x)) || ( !((( !(_x_pc15_l2 != 0)) && (( !(_x_pc15_l0 != 0)) && ( !(_x_pc15_l1 != 0)))) && ((pc15_l2 != 0) && (( !(pc15_l0 != 0)) && ( !(pc15_l1 != 0)))))))) && (((pc15_x <= 24.0) && (pc15_x == _x_pc15_x)) || ( !(((pc15_l2 != 0) && (( !(pc15_l0 != 0)) && ( !(pc15_l1 != 0)))) && (( !(_x_pc15_l2 != 0)) && ((_x_pc15_l1 != 0) && ( !(_x_pc15_l0 != 0)))))))) && (((_x_pc15_x == 0.0) && (((pc15_evt1 != 0) && ( !(pc15_evt0 != 0))) && ((_x_pc15_l2 != 0) && ((_x_pc15_l1 != 0) && ( !(_x_pc15_l0 != 0)))))) || ( !((( !(pc15_l2 != 0)) && ((pc15_l1 != 0) && ( !(pc15_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc15_evt0 != 0)) && ( !(pc15_evt1 != 0))))))))) && (((( !(_x_pc15_l2 != 0)) && ((_x_pc15_l0 != 0) && ( !(_x_pc15_l1 != 0)))) || (( !(_x_pc15_l2 != 0)) && ((_x_pc15_l0 != 0) && (_x_pc15_l1 != 0)))) || ( !(((pc15_l2 != 0) && ((pc15_l1 != 0) && ( !(pc15_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc15_evt0 != 0)) && ( !(pc15_evt1 != 0))))))))) && (((pc15_x == _x_pc15_x) && (((pc15_evt0 != 0) && (pc15_evt1 != 0)) && (50.0 <= pc15_x))) || ( !(((pc15_l2 != 0) && ((pc15_l1 != 0) && ( !(pc15_l0 != 0)))) && (( !(_x_pc15_l2 != 0)) && ((_x_pc15_l0 != 0) && (_x_pc15_l1 != 0))))))) && (((_x_pc15_x == 0.0) && (((pc15_evt0 != 0) && ( !(pc15_evt1 != 0))) && (pc15_x <= 25.0))) || ( !(((pc15_l2 != 0) && ((pc15_l1 != 0) && ( !(pc15_l0 != 0)))) && (( !(_x_pc15_l2 != 0)) && ((_x_pc15_l0 != 0) && ( !(_x_pc15_l1 != 0)))))))) && (((((pc15_evt0 != 0) && (pc15_evt1 != 0)) && (pc15_x == _x_pc15_x)) && (((_x_pc15_l2 != 0) && ((_x_pc15_l0 != 0) && ( !(_x_pc15_l1 != 0)))) || (( !(_x_pc15_l2 != 0)) && ((_x_pc15_l0 != 0) && (_x_pc15_l1 != 0))))) || ( !((( !(pc15_l2 != 0)) && ((pc15_l0 != 0) && ( !(pc15_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc15_evt0 != 0)) && ( !(pc15_evt1 != 0))))))))) && ((25.0 <= pc15_x) || ( !((( !(pc15_l2 != 0)) && ((pc15_l0 != 0) && ( !(pc15_l1 != 0)))) && (( !(_x_pc15_l2 != 0)) && ((_x_pc15_l0 != 0) && (_x_pc15_l1 != 0))))))) && ((pc15_x <= 24.0) || ( !((( !(pc15_l2 != 0)) && ((pc15_l0 != 0) && ( !(pc15_l1 != 0)))) && ((_x_pc15_l2 != 0) && ((_x_pc15_l0 != 0) && ( !(_x_pc15_l1 != 0)))))))) && ((( !(_x_pc15_l2 != 0)) && ((_x_pc15_l0 != 0) && (_x_pc15_l1 != 0))) || ( !((( !(pc15_l2 != 0)) && ((pc15_l0 != 0) && (pc15_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc15_evt0 != 0)) && ( !(pc15_evt1 != 0))))))))) && ((( !(_x_pc15_l2 != 0)) && (( !(_x_pc15_l0 != 0)) && ( !(_x_pc15_l1 != 0)))) || ( !(((pc15_l2 != 0) && ((pc15_l0 != 0) && ( !(pc15_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc15_evt0 != 0)) && ( !(pc15_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc14_evt0 != 0)) && ( !(_x_pc14_evt1 != 0))) || ((_x_pc14_evt1 != 0) && ( !(_x_pc14_evt0 != 0)))) || (((_x_pc14_evt0 != 0) && ( !(_x_pc14_evt1 != 0))) || ((_x_pc14_evt0 != 0) && (_x_pc14_evt1 != 0)))) && ((( !(_x_pc14_l2 != 0)) && ((_x_pc14_l0 != 0) && (_x_pc14_l1 != 0))) || ((((( !(_x_pc14_l2 != 0)) && (( !(_x_pc14_l0 != 0)) && ( !(_x_pc14_l1 != 0)))) || ((_x_pc14_l2 != 0) && (( !(_x_pc14_l0 != 0)) && ( !(_x_pc14_l1 != 0))))) || ((( !(_x_pc14_l2 != 0)) && ((_x_pc14_l1 != 0) && ( !(_x_pc14_l0 != 0)))) || ((_x_pc14_l2 != 0) && ((_x_pc14_l1 != 0) && ( !(_x_pc14_l0 != 0)))))) || ((( !(_x_pc14_l2 != 0)) && ((_x_pc14_l0 != 0) && ( !(_x_pc14_l1 != 0)))) || ((_x_pc14_l2 != 0) && ((_x_pc14_l0 != 0) && ( !(_x_pc14_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc14_l0 != 0) == (_x_pc14_l0 != 0)) && ((pc14_l1 != 0) == (_x_pc14_l1 != 0))) && ((pc14_l2 != 0) == (_x_pc14_l2 != 0))) && ((delta + (pc14_x + (-1.0 * _x_pc14_x))) == 0.0)))) && ((((((pc14_l0 != 0) == (_x_pc14_l0 != 0)) && ((pc14_l1 != 0) == (_x_pc14_l1 != 0))) && ((pc14_l2 != 0) == (_x_pc14_l2 != 0))) && ((delta + (pc14_x + (-1.0 * _x_pc14_x))) == 0.0)) || ( !(( !(pc14_evt0 != 0)) && ( !(pc14_evt1 != 0)))))) && (((((pc14_evt0 != 0) && (pc14_evt1 != 0)) && (pc14_x <= 50.0)) && (((_x_pc14_l2 != 0) && (( !(_x_pc14_l0 != 0)) && ( !(_x_pc14_l1 != 0)))) && (_x_pc14_x == 0.0))) || ( !((( !(pc14_l2 != 0)) && (( !(pc14_l0 != 0)) && ( !(pc14_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc14_evt0 != 0)) && ( !(pc14_evt1 != 0))))))))) && ((((pc14_evt0 != 0) && (pc14_evt1 != 0)) && ((( !(_x_pc14_l2 != 0)) && (( !(_x_pc14_l0 != 0)) && ( !(_x_pc14_l1 != 0)))) || (( !(_x_pc14_l2 != 0)) && ((_x_pc14_l1 != 0) && ( !(_x_pc14_l0 != 0)))))) || ( !(((pc14_l2 != 0) && (( !(pc14_l0 != 0)) && ( !(pc14_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc14_evt0 != 0)) && ( !(pc14_evt1 != 0))))))))) && (((_x_pc14_x == 0.0) && (25.0 <= pc14_x)) || ( !((( !(_x_pc14_l2 != 0)) && (( !(_x_pc14_l0 != 0)) && ( !(_x_pc14_l1 != 0)))) && ((pc14_l2 != 0) && (( !(pc14_l0 != 0)) && ( !(pc14_l1 != 0)))))))) && (((pc14_x <= 24.0) && (pc14_x == _x_pc14_x)) || ( !(((pc14_l2 != 0) && (( !(pc14_l0 != 0)) && ( !(pc14_l1 != 0)))) && (( !(_x_pc14_l2 != 0)) && ((_x_pc14_l1 != 0) && ( !(_x_pc14_l0 != 0)))))))) && (((_x_pc14_x == 0.0) && (((pc14_evt1 != 0) && ( !(pc14_evt0 != 0))) && ((_x_pc14_l2 != 0) && ((_x_pc14_l1 != 0) && ( !(_x_pc14_l0 != 0)))))) || ( !((( !(pc14_l2 != 0)) && ((pc14_l1 != 0) && ( !(pc14_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc14_evt0 != 0)) && ( !(pc14_evt1 != 0))))))))) && (((( !(_x_pc14_l2 != 0)) && ((_x_pc14_l0 != 0) && ( !(_x_pc14_l1 != 0)))) || (( !(_x_pc14_l2 != 0)) && ((_x_pc14_l0 != 0) && (_x_pc14_l1 != 0)))) || ( !(((pc14_l2 != 0) && ((pc14_l1 != 0) && ( !(pc14_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc14_evt0 != 0)) && ( !(pc14_evt1 != 0))))))))) && (((pc14_x == _x_pc14_x) && (((pc14_evt0 != 0) && (pc14_evt1 != 0)) && (50.0 <= pc14_x))) || ( !(((pc14_l2 != 0) && ((pc14_l1 != 0) && ( !(pc14_l0 != 0)))) && (( !(_x_pc14_l2 != 0)) && ((_x_pc14_l0 != 0) && (_x_pc14_l1 != 0))))))) && (((_x_pc14_x == 0.0) && (((pc14_evt0 != 0) && ( !(pc14_evt1 != 0))) && (pc14_x <= 25.0))) || ( !(((pc14_l2 != 0) && ((pc14_l1 != 0) && ( !(pc14_l0 != 0)))) && (( !(_x_pc14_l2 != 0)) && ((_x_pc14_l0 != 0) && ( !(_x_pc14_l1 != 0)))))))) && (((((pc14_evt0 != 0) && (pc14_evt1 != 0)) && (pc14_x == _x_pc14_x)) && (((_x_pc14_l2 != 0) && ((_x_pc14_l0 != 0) && ( !(_x_pc14_l1 != 0)))) || (( !(_x_pc14_l2 != 0)) && ((_x_pc14_l0 != 0) && (_x_pc14_l1 != 0))))) || ( !((( !(pc14_l2 != 0)) && ((pc14_l0 != 0) && ( !(pc14_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc14_evt0 != 0)) && ( !(pc14_evt1 != 0))))))))) && ((25.0 <= pc14_x) || ( !((( !(pc14_l2 != 0)) && ((pc14_l0 != 0) && ( !(pc14_l1 != 0)))) && (( !(_x_pc14_l2 != 0)) && ((_x_pc14_l0 != 0) && (_x_pc14_l1 != 0))))))) && ((pc14_x <= 24.0) || ( !((( !(pc14_l2 != 0)) && ((pc14_l0 != 0) && ( !(pc14_l1 != 0)))) && ((_x_pc14_l2 != 0) && ((_x_pc14_l0 != 0) && ( !(_x_pc14_l1 != 0)))))))) && ((( !(_x_pc14_l2 != 0)) && ((_x_pc14_l0 != 0) && (_x_pc14_l1 != 0))) || ( !((( !(pc14_l2 != 0)) && ((pc14_l0 != 0) && (pc14_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc14_evt0 != 0)) && ( !(pc14_evt1 != 0))))))))) && ((( !(_x_pc14_l2 != 0)) && (( !(_x_pc14_l0 != 0)) && ( !(_x_pc14_l1 != 0)))) || ( !(((pc14_l2 != 0) && ((pc14_l0 != 0) && ( !(pc14_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc14_evt0 != 0)) && ( !(pc14_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc13_evt0 != 0)) && ( !(_x_pc13_evt1 != 0))) || ((_x_pc13_evt1 != 0) && ( !(_x_pc13_evt0 != 0)))) || (((_x_pc13_evt0 != 0) && ( !(_x_pc13_evt1 != 0))) || ((_x_pc13_evt0 != 0) && (_x_pc13_evt1 != 0)))) && ((( !(_x_pc13_l2 != 0)) && ((_x_pc13_l0 != 0) && (_x_pc13_l1 != 0))) || ((((( !(_x_pc13_l2 != 0)) && (( !(_x_pc13_l0 != 0)) && ( !(_x_pc13_l1 != 0)))) || ((_x_pc13_l2 != 0) && (( !(_x_pc13_l0 != 0)) && ( !(_x_pc13_l1 != 0))))) || ((( !(_x_pc13_l2 != 0)) && ((_x_pc13_l1 != 0) && ( !(_x_pc13_l0 != 0)))) || ((_x_pc13_l2 != 0) && ((_x_pc13_l1 != 0) && ( !(_x_pc13_l0 != 0)))))) || ((( !(_x_pc13_l2 != 0)) && ((_x_pc13_l0 != 0) && ( !(_x_pc13_l1 != 0)))) || ((_x_pc13_l2 != 0) && ((_x_pc13_l0 != 0) && ( !(_x_pc13_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc13_l0 != 0) == (_x_pc13_l0 != 0)) && ((pc13_l1 != 0) == (_x_pc13_l1 != 0))) && ((pc13_l2 != 0) == (_x_pc13_l2 != 0))) && ((delta + (pc13_x + (-1.0 * _x_pc13_x))) == 0.0)))) && ((((((pc13_l0 != 0) == (_x_pc13_l0 != 0)) && ((pc13_l1 != 0) == (_x_pc13_l1 != 0))) && ((pc13_l2 != 0) == (_x_pc13_l2 != 0))) && ((delta + (pc13_x + (-1.0 * _x_pc13_x))) == 0.0)) || ( !(( !(pc13_evt0 != 0)) && ( !(pc13_evt1 != 0)))))) && (((((pc13_evt0 != 0) && (pc13_evt1 != 0)) && (pc13_x <= 50.0)) && (((_x_pc13_l2 != 0) && (( !(_x_pc13_l0 != 0)) && ( !(_x_pc13_l1 != 0)))) && (_x_pc13_x == 0.0))) || ( !((( !(pc13_l2 != 0)) && (( !(pc13_l0 != 0)) && ( !(pc13_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc13_evt0 != 0)) && ( !(pc13_evt1 != 0))))))))) && ((((pc13_evt0 != 0) && (pc13_evt1 != 0)) && ((( !(_x_pc13_l2 != 0)) && (( !(_x_pc13_l0 != 0)) && ( !(_x_pc13_l1 != 0)))) || (( !(_x_pc13_l2 != 0)) && ((_x_pc13_l1 != 0) && ( !(_x_pc13_l0 != 0)))))) || ( !(((pc13_l2 != 0) && (( !(pc13_l0 != 0)) && ( !(pc13_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc13_evt0 != 0)) && ( !(pc13_evt1 != 0))))))))) && (((_x_pc13_x == 0.0) && (25.0 <= pc13_x)) || ( !((( !(_x_pc13_l2 != 0)) && (( !(_x_pc13_l0 != 0)) && ( !(_x_pc13_l1 != 0)))) && ((pc13_l2 != 0) && (( !(pc13_l0 != 0)) && ( !(pc13_l1 != 0)))))))) && (((pc13_x <= 24.0) && (pc13_x == _x_pc13_x)) || ( !(((pc13_l2 != 0) && (( !(pc13_l0 != 0)) && ( !(pc13_l1 != 0)))) && (( !(_x_pc13_l2 != 0)) && ((_x_pc13_l1 != 0) && ( !(_x_pc13_l0 != 0)))))))) && (((_x_pc13_x == 0.0) && (((pc13_evt1 != 0) && ( !(pc13_evt0 != 0))) && ((_x_pc13_l2 != 0) && ((_x_pc13_l1 != 0) && ( !(_x_pc13_l0 != 0)))))) || ( !((( !(pc13_l2 != 0)) && ((pc13_l1 != 0) && ( !(pc13_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc13_evt0 != 0)) && ( !(pc13_evt1 != 0))))))))) && (((( !(_x_pc13_l2 != 0)) && ((_x_pc13_l0 != 0) && ( !(_x_pc13_l1 != 0)))) || (( !(_x_pc13_l2 != 0)) && ((_x_pc13_l0 != 0) && (_x_pc13_l1 != 0)))) || ( !(((pc13_l2 != 0) && ((pc13_l1 != 0) && ( !(pc13_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc13_evt0 != 0)) && ( !(pc13_evt1 != 0))))))))) && (((pc13_x == _x_pc13_x) && (((pc13_evt0 != 0) && (pc13_evt1 != 0)) && (50.0 <= pc13_x))) || ( !(((pc13_l2 != 0) && ((pc13_l1 != 0) && ( !(pc13_l0 != 0)))) && (( !(_x_pc13_l2 != 0)) && ((_x_pc13_l0 != 0) && (_x_pc13_l1 != 0))))))) && (((_x_pc13_x == 0.0) && (((pc13_evt0 != 0) && ( !(pc13_evt1 != 0))) && (pc13_x <= 25.0))) || ( !(((pc13_l2 != 0) && ((pc13_l1 != 0) && ( !(pc13_l0 != 0)))) && (( !(_x_pc13_l2 != 0)) && ((_x_pc13_l0 != 0) && ( !(_x_pc13_l1 != 0)))))))) && (((((pc13_evt0 != 0) && (pc13_evt1 != 0)) && (pc13_x == _x_pc13_x)) && (((_x_pc13_l2 != 0) && ((_x_pc13_l0 != 0) && ( !(_x_pc13_l1 != 0)))) || (( !(_x_pc13_l2 != 0)) && ((_x_pc13_l0 != 0) && (_x_pc13_l1 != 0))))) || ( !((( !(pc13_l2 != 0)) && ((pc13_l0 != 0) && ( !(pc13_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc13_evt0 != 0)) && ( !(pc13_evt1 != 0))))))))) && ((25.0 <= pc13_x) || ( !((( !(pc13_l2 != 0)) && ((pc13_l0 != 0) && ( !(pc13_l1 != 0)))) && (( !(_x_pc13_l2 != 0)) && ((_x_pc13_l0 != 0) && (_x_pc13_l1 != 0))))))) && ((pc13_x <= 24.0) || ( !((( !(pc13_l2 != 0)) && ((pc13_l0 != 0) && ( !(pc13_l1 != 0)))) && ((_x_pc13_l2 != 0) && ((_x_pc13_l0 != 0) && ( !(_x_pc13_l1 != 0)))))))) && ((( !(_x_pc13_l2 != 0)) && ((_x_pc13_l0 != 0) && (_x_pc13_l1 != 0))) || ( !((( !(pc13_l2 != 0)) && ((pc13_l0 != 0) && (pc13_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc13_evt0 != 0)) && ( !(pc13_evt1 != 0))))))))) && ((( !(_x_pc13_l2 != 0)) && (( !(_x_pc13_l0 != 0)) && ( !(_x_pc13_l1 != 0)))) || ( !(((pc13_l2 != 0) && ((pc13_l0 != 0) && ( !(pc13_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc13_evt0 != 0)) && ( !(pc13_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc12_evt0 != 0)) && ( !(_x_pc12_evt1 != 0))) || ((_x_pc12_evt1 != 0) && ( !(_x_pc12_evt0 != 0)))) || (((_x_pc12_evt0 != 0) && ( !(_x_pc12_evt1 != 0))) || ((_x_pc12_evt0 != 0) && (_x_pc12_evt1 != 0)))) && ((( !(_x_pc12_l2 != 0)) && ((_x_pc12_l0 != 0) && (_x_pc12_l1 != 0))) || ((((( !(_x_pc12_l2 != 0)) && (( !(_x_pc12_l0 != 0)) && ( !(_x_pc12_l1 != 0)))) || ((_x_pc12_l2 != 0) && (( !(_x_pc12_l0 != 0)) && ( !(_x_pc12_l1 != 0))))) || ((( !(_x_pc12_l2 != 0)) && ((_x_pc12_l1 != 0) && ( !(_x_pc12_l0 != 0)))) || ((_x_pc12_l2 != 0) && ((_x_pc12_l1 != 0) && ( !(_x_pc12_l0 != 0)))))) || ((( !(_x_pc12_l2 != 0)) && ((_x_pc12_l0 != 0) && ( !(_x_pc12_l1 != 0)))) || ((_x_pc12_l2 != 0) && ((_x_pc12_l0 != 0) && ( !(_x_pc12_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc12_l0 != 0) == (_x_pc12_l0 != 0)) && ((pc12_l1 != 0) == (_x_pc12_l1 != 0))) && ((pc12_l2 != 0) == (_x_pc12_l2 != 0))) && ((delta + (pc12_x + (-1.0 * _x_pc12_x))) == 0.0)))) && ((((((pc12_l0 != 0) == (_x_pc12_l0 != 0)) && ((pc12_l1 != 0) == (_x_pc12_l1 != 0))) && ((pc12_l2 != 0) == (_x_pc12_l2 != 0))) && ((delta + (pc12_x + (-1.0 * _x_pc12_x))) == 0.0)) || ( !(( !(pc12_evt0 != 0)) && ( !(pc12_evt1 != 0)))))) && (((((pc12_evt0 != 0) && (pc12_evt1 != 0)) && (pc12_x <= 50.0)) && (((_x_pc12_l2 != 0) && (( !(_x_pc12_l0 != 0)) && ( !(_x_pc12_l1 != 0)))) && (_x_pc12_x == 0.0))) || ( !((( !(pc12_l2 != 0)) && (( !(pc12_l0 != 0)) && ( !(pc12_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc12_evt0 != 0)) && ( !(pc12_evt1 != 0))))))))) && ((((pc12_evt0 != 0) && (pc12_evt1 != 0)) && ((( !(_x_pc12_l2 != 0)) && (( !(_x_pc12_l0 != 0)) && ( !(_x_pc12_l1 != 0)))) || (( !(_x_pc12_l2 != 0)) && ((_x_pc12_l1 != 0) && ( !(_x_pc12_l0 != 0)))))) || ( !(((pc12_l2 != 0) && (( !(pc12_l0 != 0)) && ( !(pc12_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc12_evt0 != 0)) && ( !(pc12_evt1 != 0))))))))) && (((_x_pc12_x == 0.0) && (25.0 <= pc12_x)) || ( !((( !(_x_pc12_l2 != 0)) && (( !(_x_pc12_l0 != 0)) && ( !(_x_pc12_l1 != 0)))) && ((pc12_l2 != 0) && (( !(pc12_l0 != 0)) && ( !(pc12_l1 != 0)))))))) && (((pc12_x <= 24.0) && (pc12_x == _x_pc12_x)) || ( !(((pc12_l2 != 0) && (( !(pc12_l0 != 0)) && ( !(pc12_l1 != 0)))) && (( !(_x_pc12_l2 != 0)) && ((_x_pc12_l1 != 0) && ( !(_x_pc12_l0 != 0)))))))) && (((_x_pc12_x == 0.0) && (((pc12_evt1 != 0) && ( !(pc12_evt0 != 0))) && ((_x_pc12_l2 != 0) && ((_x_pc12_l1 != 0) && ( !(_x_pc12_l0 != 0)))))) || ( !((( !(pc12_l2 != 0)) && ((pc12_l1 != 0) && ( !(pc12_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc12_evt0 != 0)) && ( !(pc12_evt1 != 0))))))))) && (((( !(_x_pc12_l2 != 0)) && ((_x_pc12_l0 != 0) && ( !(_x_pc12_l1 != 0)))) || (( !(_x_pc12_l2 != 0)) && ((_x_pc12_l0 != 0) && (_x_pc12_l1 != 0)))) || ( !(((pc12_l2 != 0) && ((pc12_l1 != 0) && ( !(pc12_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc12_evt0 != 0)) && ( !(pc12_evt1 != 0))))))))) && (((pc12_x == _x_pc12_x) && (((pc12_evt0 != 0) && (pc12_evt1 != 0)) && (50.0 <= pc12_x))) || ( !(((pc12_l2 != 0) && ((pc12_l1 != 0) && ( !(pc12_l0 != 0)))) && (( !(_x_pc12_l2 != 0)) && ((_x_pc12_l0 != 0) && (_x_pc12_l1 != 0))))))) && (((_x_pc12_x == 0.0) && (((pc12_evt0 != 0) && ( !(pc12_evt1 != 0))) && (pc12_x <= 25.0))) || ( !(((pc12_l2 != 0) && ((pc12_l1 != 0) && ( !(pc12_l0 != 0)))) && (( !(_x_pc12_l2 != 0)) && ((_x_pc12_l0 != 0) && ( !(_x_pc12_l1 != 0)))))))) && (((((pc12_evt0 != 0) && (pc12_evt1 != 0)) && (pc12_x == _x_pc12_x)) && (((_x_pc12_l2 != 0) && ((_x_pc12_l0 != 0) && ( !(_x_pc12_l1 != 0)))) || (( !(_x_pc12_l2 != 0)) && ((_x_pc12_l0 != 0) && (_x_pc12_l1 != 0))))) || ( !((( !(pc12_l2 != 0)) && ((pc12_l0 != 0) && ( !(pc12_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc12_evt0 != 0)) && ( !(pc12_evt1 != 0))))))))) && ((25.0 <= pc12_x) || ( !((( !(pc12_l2 != 0)) && ((pc12_l0 != 0) && ( !(pc12_l1 != 0)))) && (( !(_x_pc12_l2 != 0)) && ((_x_pc12_l0 != 0) && (_x_pc12_l1 != 0))))))) && ((pc12_x <= 24.0) || ( !((( !(pc12_l2 != 0)) && ((pc12_l0 != 0) && ( !(pc12_l1 != 0)))) && ((_x_pc12_l2 != 0) && ((_x_pc12_l0 != 0) && ( !(_x_pc12_l1 != 0)))))))) && ((( !(_x_pc12_l2 != 0)) && ((_x_pc12_l0 != 0) && (_x_pc12_l1 != 0))) || ( !((( !(pc12_l2 != 0)) && ((pc12_l0 != 0) && (pc12_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc12_evt0 != 0)) && ( !(pc12_evt1 != 0))))))))) && ((( !(_x_pc12_l2 != 0)) && (( !(_x_pc12_l0 != 0)) && ( !(_x_pc12_l1 != 0)))) || ( !(((pc12_l2 != 0) && ((pc12_l0 != 0) && ( !(pc12_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc12_evt0 != 0)) && ( !(pc12_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc11_evt0 != 0)) && ( !(_x_pc11_evt1 != 0))) || ((_x_pc11_evt1 != 0) && ( !(_x_pc11_evt0 != 0)))) || (((_x_pc11_evt0 != 0) && ( !(_x_pc11_evt1 != 0))) || ((_x_pc11_evt0 != 0) && (_x_pc11_evt1 != 0)))) && ((( !(_x_pc11_l2 != 0)) && ((_x_pc11_l0 != 0) && (_x_pc11_l1 != 0))) || ((((( !(_x_pc11_l2 != 0)) && (( !(_x_pc11_l0 != 0)) && ( !(_x_pc11_l1 != 0)))) || ((_x_pc11_l2 != 0) && (( !(_x_pc11_l0 != 0)) && ( !(_x_pc11_l1 != 0))))) || ((( !(_x_pc11_l2 != 0)) && ((_x_pc11_l1 != 0) && ( !(_x_pc11_l0 != 0)))) || ((_x_pc11_l2 != 0) && ((_x_pc11_l1 != 0) && ( !(_x_pc11_l0 != 0)))))) || ((( !(_x_pc11_l2 != 0)) && ((_x_pc11_l0 != 0) && ( !(_x_pc11_l1 != 0)))) || ((_x_pc11_l2 != 0) && ((_x_pc11_l0 != 0) && ( !(_x_pc11_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc11_l0 != 0) == (_x_pc11_l0 != 0)) && ((pc11_l1 != 0) == (_x_pc11_l1 != 0))) && ((pc11_l2 != 0) == (_x_pc11_l2 != 0))) && ((delta + (pc11_x + (-1.0 * _x_pc11_x))) == 0.0)))) && ((((((pc11_l0 != 0) == (_x_pc11_l0 != 0)) && ((pc11_l1 != 0) == (_x_pc11_l1 != 0))) && ((pc11_l2 != 0) == (_x_pc11_l2 != 0))) && ((delta + (pc11_x + (-1.0 * _x_pc11_x))) == 0.0)) || ( !(( !(pc11_evt0 != 0)) && ( !(pc11_evt1 != 0)))))) && (((((pc11_evt0 != 0) && (pc11_evt1 != 0)) && (pc11_x <= 50.0)) && (((_x_pc11_l2 != 0) && (( !(_x_pc11_l0 != 0)) && ( !(_x_pc11_l1 != 0)))) && (_x_pc11_x == 0.0))) || ( !((( !(pc11_l2 != 0)) && (( !(pc11_l0 != 0)) && ( !(pc11_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc11_evt0 != 0)) && ( !(pc11_evt1 != 0))))))))) && ((((pc11_evt0 != 0) && (pc11_evt1 != 0)) && ((( !(_x_pc11_l2 != 0)) && (( !(_x_pc11_l0 != 0)) && ( !(_x_pc11_l1 != 0)))) || (( !(_x_pc11_l2 != 0)) && ((_x_pc11_l1 != 0) && ( !(_x_pc11_l0 != 0)))))) || ( !(((pc11_l2 != 0) && (( !(pc11_l0 != 0)) && ( !(pc11_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc11_evt0 != 0)) && ( !(pc11_evt1 != 0))))))))) && (((_x_pc11_x == 0.0) && (25.0 <= pc11_x)) || ( !((( !(_x_pc11_l2 != 0)) && (( !(_x_pc11_l0 != 0)) && ( !(_x_pc11_l1 != 0)))) && ((pc11_l2 != 0) && (( !(pc11_l0 != 0)) && ( !(pc11_l1 != 0)))))))) && (((pc11_x <= 24.0) && (pc11_x == _x_pc11_x)) || ( !(((pc11_l2 != 0) && (( !(pc11_l0 != 0)) && ( !(pc11_l1 != 0)))) && (( !(_x_pc11_l2 != 0)) && ((_x_pc11_l1 != 0) && ( !(_x_pc11_l0 != 0)))))))) && (((_x_pc11_x == 0.0) && (((pc11_evt1 != 0) && ( !(pc11_evt0 != 0))) && ((_x_pc11_l2 != 0) && ((_x_pc11_l1 != 0) && ( !(_x_pc11_l0 != 0)))))) || ( !((( !(pc11_l2 != 0)) && ((pc11_l1 != 0) && ( !(pc11_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc11_evt0 != 0)) && ( !(pc11_evt1 != 0))))))))) && (((( !(_x_pc11_l2 != 0)) && ((_x_pc11_l0 != 0) && ( !(_x_pc11_l1 != 0)))) || (( !(_x_pc11_l2 != 0)) && ((_x_pc11_l0 != 0) && (_x_pc11_l1 != 0)))) || ( !(((pc11_l2 != 0) && ((pc11_l1 != 0) && ( !(pc11_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc11_evt0 != 0)) && ( !(pc11_evt1 != 0))))))))) && (((pc11_x == _x_pc11_x) && (((pc11_evt0 != 0) && (pc11_evt1 != 0)) && (50.0 <= pc11_x))) || ( !(((pc11_l2 != 0) && ((pc11_l1 != 0) && ( !(pc11_l0 != 0)))) && (( !(_x_pc11_l2 != 0)) && ((_x_pc11_l0 != 0) && (_x_pc11_l1 != 0))))))) && (((_x_pc11_x == 0.0) && (((pc11_evt0 != 0) && ( !(pc11_evt1 != 0))) && (pc11_x <= 25.0))) || ( !(((pc11_l2 != 0) && ((pc11_l1 != 0) && ( !(pc11_l0 != 0)))) && (( !(_x_pc11_l2 != 0)) && ((_x_pc11_l0 != 0) && ( !(_x_pc11_l1 != 0)))))))) && (((((pc11_evt0 != 0) && (pc11_evt1 != 0)) && (pc11_x == _x_pc11_x)) && (((_x_pc11_l2 != 0) && ((_x_pc11_l0 != 0) && ( !(_x_pc11_l1 != 0)))) || (( !(_x_pc11_l2 != 0)) && ((_x_pc11_l0 != 0) && (_x_pc11_l1 != 0))))) || ( !((( !(pc11_l2 != 0)) && ((pc11_l0 != 0) && ( !(pc11_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc11_evt0 != 0)) && ( !(pc11_evt1 != 0))))))))) && ((25.0 <= pc11_x) || ( !((( !(pc11_l2 != 0)) && ((pc11_l0 != 0) && ( !(pc11_l1 != 0)))) && (( !(_x_pc11_l2 != 0)) && ((_x_pc11_l0 != 0) && (_x_pc11_l1 != 0))))))) && ((pc11_x <= 24.0) || ( !((( !(pc11_l2 != 0)) && ((pc11_l0 != 0) && ( !(pc11_l1 != 0)))) && ((_x_pc11_l2 != 0) && ((_x_pc11_l0 != 0) && ( !(_x_pc11_l1 != 0)))))))) && ((( !(_x_pc11_l2 != 0)) && ((_x_pc11_l0 != 0) && (_x_pc11_l1 != 0))) || ( !((( !(pc11_l2 != 0)) && ((pc11_l0 != 0) && (pc11_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc11_evt0 != 0)) && ( !(pc11_evt1 != 0))))))))) && ((( !(_x_pc11_l2 != 0)) && (( !(_x_pc11_l0 != 0)) && ( !(_x_pc11_l1 != 0)))) || ( !(((pc11_l2 != 0) && ((pc11_l0 != 0) && ( !(pc11_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc11_evt0 != 0)) && ( !(pc11_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc10_evt0 != 0)) && ( !(_x_pc10_evt1 != 0))) || ((_x_pc10_evt1 != 0) && ( !(_x_pc10_evt0 != 0)))) || (((_x_pc10_evt0 != 0) && ( !(_x_pc10_evt1 != 0))) || ((_x_pc10_evt0 != 0) && (_x_pc10_evt1 != 0)))) && ((( !(_x_pc10_l2 != 0)) && ((_x_pc10_l0 != 0) && (_x_pc10_l1 != 0))) || ((((( !(_x_pc10_l2 != 0)) && (( !(_x_pc10_l0 != 0)) && ( !(_x_pc10_l1 != 0)))) || ((_x_pc10_l2 != 0) && (( !(_x_pc10_l0 != 0)) && ( !(_x_pc10_l1 != 0))))) || ((( !(_x_pc10_l2 != 0)) && ((_x_pc10_l1 != 0) && ( !(_x_pc10_l0 != 0)))) || ((_x_pc10_l2 != 0) && ((_x_pc10_l1 != 0) && ( !(_x_pc10_l0 != 0)))))) || ((( !(_x_pc10_l2 != 0)) && ((_x_pc10_l0 != 0) && ( !(_x_pc10_l1 != 0)))) || ((_x_pc10_l2 != 0) && ((_x_pc10_l0 != 0) && ( !(_x_pc10_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc10_l0 != 0) == (_x_pc10_l0 != 0)) && ((pc10_l1 != 0) == (_x_pc10_l1 != 0))) && ((pc10_l2 != 0) == (_x_pc10_l2 != 0))) && ((delta + (pc10_x + (-1.0 * _x_pc10_x))) == 0.0)))) && ((((((pc10_l0 != 0) == (_x_pc10_l0 != 0)) && ((pc10_l1 != 0) == (_x_pc10_l1 != 0))) && ((pc10_l2 != 0) == (_x_pc10_l2 != 0))) && ((delta + (pc10_x + (-1.0 * _x_pc10_x))) == 0.0)) || ( !(( !(pc10_evt0 != 0)) && ( !(pc10_evt1 != 0)))))) && (((((pc10_evt0 != 0) && (pc10_evt1 != 0)) && (pc10_x <= 50.0)) && (((_x_pc10_l2 != 0) && (( !(_x_pc10_l0 != 0)) && ( !(_x_pc10_l1 != 0)))) && (_x_pc10_x == 0.0))) || ( !((( !(pc10_l2 != 0)) && (( !(pc10_l0 != 0)) && ( !(pc10_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc10_evt0 != 0)) && ( !(pc10_evt1 != 0))))))))) && ((((pc10_evt0 != 0) && (pc10_evt1 != 0)) && ((( !(_x_pc10_l2 != 0)) && (( !(_x_pc10_l0 != 0)) && ( !(_x_pc10_l1 != 0)))) || (( !(_x_pc10_l2 != 0)) && ((_x_pc10_l1 != 0) && ( !(_x_pc10_l0 != 0)))))) || ( !(((pc10_l2 != 0) && (( !(pc10_l0 != 0)) && ( !(pc10_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc10_evt0 != 0)) && ( !(pc10_evt1 != 0))))))))) && (((_x_pc10_x == 0.0) && (25.0 <= pc10_x)) || ( !((( !(_x_pc10_l2 != 0)) && (( !(_x_pc10_l0 != 0)) && ( !(_x_pc10_l1 != 0)))) && ((pc10_l2 != 0) && (( !(pc10_l0 != 0)) && ( !(pc10_l1 != 0)))))))) && (((pc10_x <= 24.0) && (pc10_x == _x_pc10_x)) || ( !(((pc10_l2 != 0) && (( !(pc10_l0 != 0)) && ( !(pc10_l1 != 0)))) && (( !(_x_pc10_l2 != 0)) && ((_x_pc10_l1 != 0) && ( !(_x_pc10_l0 != 0)))))))) && (((_x_pc10_x == 0.0) && (((pc10_evt1 != 0) && ( !(pc10_evt0 != 0))) && ((_x_pc10_l2 != 0) && ((_x_pc10_l1 != 0) && ( !(_x_pc10_l0 != 0)))))) || ( !((( !(pc10_l2 != 0)) && ((pc10_l1 != 0) && ( !(pc10_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc10_evt0 != 0)) && ( !(pc10_evt1 != 0))))))))) && (((( !(_x_pc10_l2 != 0)) && ((_x_pc10_l0 != 0) && ( !(_x_pc10_l1 != 0)))) || (( !(_x_pc10_l2 != 0)) && ((_x_pc10_l0 != 0) && (_x_pc10_l1 != 0)))) || ( !(((pc10_l2 != 0) && ((pc10_l1 != 0) && ( !(pc10_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc10_evt0 != 0)) && ( !(pc10_evt1 != 0))))))))) && (((pc10_x == _x_pc10_x) && (((pc10_evt0 != 0) && (pc10_evt1 != 0)) && (50.0 <= pc10_x))) || ( !(((pc10_l2 != 0) && ((pc10_l1 != 0) && ( !(pc10_l0 != 0)))) && (( !(_x_pc10_l2 != 0)) && ((_x_pc10_l0 != 0) && (_x_pc10_l1 != 0))))))) && (((_x_pc10_x == 0.0) && (((pc10_evt0 != 0) && ( !(pc10_evt1 != 0))) && (pc10_x <= 25.0))) || ( !(((pc10_l2 != 0) && ((pc10_l1 != 0) && ( !(pc10_l0 != 0)))) && (( !(_x_pc10_l2 != 0)) && ((_x_pc10_l0 != 0) && ( !(_x_pc10_l1 != 0)))))))) && (((((pc10_evt0 != 0) && (pc10_evt1 != 0)) && (pc10_x == _x_pc10_x)) && (((_x_pc10_l2 != 0) && ((_x_pc10_l0 != 0) && ( !(_x_pc10_l1 != 0)))) || (( !(_x_pc10_l2 != 0)) && ((_x_pc10_l0 != 0) && (_x_pc10_l1 != 0))))) || ( !((( !(pc10_l2 != 0)) && ((pc10_l0 != 0) && ( !(pc10_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc10_evt0 != 0)) && ( !(pc10_evt1 != 0))))))))) && ((25.0 <= pc10_x) || ( !((( !(pc10_l2 != 0)) && ((pc10_l0 != 0) && ( !(pc10_l1 != 0)))) && (( !(_x_pc10_l2 != 0)) && ((_x_pc10_l0 != 0) && (_x_pc10_l1 != 0))))))) && ((pc10_x <= 24.0) || ( !((( !(pc10_l2 != 0)) && ((pc10_l0 != 0) && ( !(pc10_l1 != 0)))) && ((_x_pc10_l2 != 0) && ((_x_pc10_l0 != 0) && ( !(_x_pc10_l1 != 0)))))))) && ((( !(_x_pc10_l2 != 0)) && ((_x_pc10_l0 != 0) && (_x_pc10_l1 != 0))) || ( !((( !(pc10_l2 != 0)) && ((pc10_l0 != 0) && (pc10_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc10_evt0 != 0)) && ( !(pc10_evt1 != 0))))))))) && ((( !(_x_pc10_l2 != 0)) && (( !(_x_pc10_l0 != 0)) && ( !(_x_pc10_l1 != 0)))) || ( !(((pc10_l2 != 0) && ((pc10_l0 != 0) && ( !(pc10_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc10_evt0 != 0)) && ( !(pc10_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc9_evt0 != 0)) && ( !(_x_pc9_evt1 != 0))) || ((_x_pc9_evt1 != 0) && ( !(_x_pc9_evt0 != 0)))) || (((_x_pc9_evt0 != 0) && ( !(_x_pc9_evt1 != 0))) || ((_x_pc9_evt0 != 0) && (_x_pc9_evt1 != 0)))) && ((( !(_x_pc9_l2 != 0)) && ((_x_pc9_l0 != 0) && (_x_pc9_l1 != 0))) || ((((( !(_x_pc9_l2 != 0)) && (( !(_x_pc9_l0 != 0)) && ( !(_x_pc9_l1 != 0)))) || ((_x_pc9_l2 != 0) && (( !(_x_pc9_l0 != 0)) && ( !(_x_pc9_l1 != 0))))) || ((( !(_x_pc9_l2 != 0)) && ((_x_pc9_l1 != 0) && ( !(_x_pc9_l0 != 0)))) || ((_x_pc9_l2 != 0) && ((_x_pc9_l1 != 0) && ( !(_x_pc9_l0 != 0)))))) || ((( !(_x_pc9_l2 != 0)) && ((_x_pc9_l0 != 0) && ( !(_x_pc9_l1 != 0)))) || ((_x_pc9_l2 != 0) && ((_x_pc9_l0 != 0) && ( !(_x_pc9_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc9_l0 != 0) == (_x_pc9_l0 != 0)) && ((pc9_l1 != 0) == (_x_pc9_l1 != 0))) && ((pc9_l2 != 0) == (_x_pc9_l2 != 0))) && ((delta + (pc9_x + (-1.0 * _x_pc9_x))) == 0.0)))) && ((((((pc9_l0 != 0) == (_x_pc9_l0 != 0)) && ((pc9_l1 != 0) == (_x_pc9_l1 != 0))) && ((pc9_l2 != 0) == (_x_pc9_l2 != 0))) && ((delta + (pc9_x + (-1.0 * _x_pc9_x))) == 0.0)) || ( !(( !(pc9_evt0 != 0)) && ( !(pc9_evt1 != 0)))))) && (((((pc9_evt0 != 0) && (pc9_evt1 != 0)) && (pc9_x <= 50.0)) && (((_x_pc9_l2 != 0) && (( !(_x_pc9_l0 != 0)) && ( !(_x_pc9_l1 != 0)))) && (_x_pc9_x == 0.0))) || ( !((( !(pc9_l2 != 0)) && (( !(pc9_l0 != 0)) && ( !(pc9_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc9_evt0 != 0)) && ( !(pc9_evt1 != 0))))))))) && ((((pc9_evt0 != 0) && (pc9_evt1 != 0)) && ((( !(_x_pc9_l2 != 0)) && (( !(_x_pc9_l0 != 0)) && ( !(_x_pc9_l1 != 0)))) || (( !(_x_pc9_l2 != 0)) && ((_x_pc9_l1 != 0) && ( !(_x_pc9_l0 != 0)))))) || ( !(((pc9_l2 != 0) && (( !(pc9_l0 != 0)) && ( !(pc9_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc9_evt0 != 0)) && ( !(pc9_evt1 != 0))))))))) && (((_x_pc9_x == 0.0) && (25.0 <= pc9_x)) || ( !((( !(_x_pc9_l2 != 0)) && (( !(_x_pc9_l0 != 0)) && ( !(_x_pc9_l1 != 0)))) && ((pc9_l2 != 0) && (( !(pc9_l0 != 0)) && ( !(pc9_l1 != 0)))))))) && (((pc9_x <= 24.0) && (pc9_x == _x_pc9_x)) || ( !(((pc9_l2 != 0) && (( !(pc9_l0 != 0)) && ( !(pc9_l1 != 0)))) && (( !(_x_pc9_l2 != 0)) && ((_x_pc9_l1 != 0) && ( !(_x_pc9_l0 != 0)))))))) && (((_x_pc9_x == 0.0) && (((pc9_evt1 != 0) && ( !(pc9_evt0 != 0))) && ((_x_pc9_l2 != 0) && ((_x_pc9_l1 != 0) && ( !(_x_pc9_l0 != 0)))))) || ( !((( !(pc9_l2 != 0)) && ((pc9_l1 != 0) && ( !(pc9_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc9_evt0 != 0)) && ( !(pc9_evt1 != 0))))))))) && (((( !(_x_pc9_l2 != 0)) && ((_x_pc9_l0 != 0) && ( !(_x_pc9_l1 != 0)))) || (( !(_x_pc9_l2 != 0)) && ((_x_pc9_l0 != 0) && (_x_pc9_l1 != 0)))) || ( !(((pc9_l2 != 0) && ((pc9_l1 != 0) && ( !(pc9_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc9_evt0 != 0)) && ( !(pc9_evt1 != 0))))))))) && (((pc9_x == _x_pc9_x) && (((pc9_evt0 != 0) && (pc9_evt1 != 0)) && (50.0 <= pc9_x))) || ( !(((pc9_l2 != 0) && ((pc9_l1 != 0) && ( !(pc9_l0 != 0)))) && (( !(_x_pc9_l2 != 0)) && ((_x_pc9_l0 != 0) && (_x_pc9_l1 != 0))))))) && (((_x_pc9_x == 0.0) && (((pc9_evt0 != 0) && ( !(pc9_evt1 != 0))) && (pc9_x <= 25.0))) || ( !(((pc9_l2 != 0) && ((pc9_l1 != 0) && ( !(pc9_l0 != 0)))) && (( !(_x_pc9_l2 != 0)) && ((_x_pc9_l0 != 0) && ( !(_x_pc9_l1 != 0)))))))) && (((((pc9_evt0 != 0) && (pc9_evt1 != 0)) && (pc9_x == _x_pc9_x)) && (((_x_pc9_l2 != 0) && ((_x_pc9_l0 != 0) && ( !(_x_pc9_l1 != 0)))) || (( !(_x_pc9_l2 != 0)) && ((_x_pc9_l0 != 0) && (_x_pc9_l1 != 0))))) || ( !((( !(pc9_l2 != 0)) && ((pc9_l0 != 0) && ( !(pc9_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc9_evt0 != 0)) && ( !(pc9_evt1 != 0))))))))) && ((25.0 <= pc9_x) || ( !((( !(pc9_l2 != 0)) && ((pc9_l0 != 0) && ( !(pc9_l1 != 0)))) && (( !(_x_pc9_l2 != 0)) && ((_x_pc9_l0 != 0) && (_x_pc9_l1 != 0))))))) && ((pc9_x <= 24.0) || ( !((( !(pc9_l2 != 0)) && ((pc9_l0 != 0) && ( !(pc9_l1 != 0)))) && ((_x_pc9_l2 != 0) && ((_x_pc9_l0 != 0) && ( !(_x_pc9_l1 != 0)))))))) && ((( !(_x_pc9_l2 != 0)) && ((_x_pc9_l0 != 0) && (_x_pc9_l1 != 0))) || ( !((( !(pc9_l2 != 0)) && ((pc9_l0 != 0) && (pc9_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc9_evt0 != 0)) && ( !(pc9_evt1 != 0))))))))) && ((( !(_x_pc9_l2 != 0)) && (( !(_x_pc9_l0 != 0)) && ( !(_x_pc9_l1 != 0)))) || ( !(((pc9_l2 != 0) && ((pc9_l0 != 0) && ( !(pc9_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc9_evt0 != 0)) && ( !(pc9_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc8_evt0 != 0)) && ( !(_x_pc8_evt1 != 0))) || ((_x_pc8_evt1 != 0) && ( !(_x_pc8_evt0 != 0)))) || (((_x_pc8_evt0 != 0) && ( !(_x_pc8_evt1 != 0))) || ((_x_pc8_evt0 != 0) && (_x_pc8_evt1 != 0)))) && ((( !(_x_pc8_l2 != 0)) && ((_x_pc8_l0 != 0) && (_x_pc8_l1 != 0))) || ((((( !(_x_pc8_l2 != 0)) && (( !(_x_pc8_l0 != 0)) && ( !(_x_pc8_l1 != 0)))) || ((_x_pc8_l2 != 0) && (( !(_x_pc8_l0 != 0)) && ( !(_x_pc8_l1 != 0))))) || ((( !(_x_pc8_l2 != 0)) && ((_x_pc8_l1 != 0) && ( !(_x_pc8_l0 != 0)))) || ((_x_pc8_l2 != 0) && ((_x_pc8_l1 != 0) && ( !(_x_pc8_l0 != 0)))))) || ((( !(_x_pc8_l2 != 0)) && ((_x_pc8_l0 != 0) && ( !(_x_pc8_l1 != 0)))) || ((_x_pc8_l2 != 0) && ((_x_pc8_l0 != 0) && ( !(_x_pc8_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc8_l0 != 0) == (_x_pc8_l0 != 0)) && ((pc8_l1 != 0) == (_x_pc8_l1 != 0))) && ((pc8_l2 != 0) == (_x_pc8_l2 != 0))) && ((delta + (pc8_x + (-1.0 * _x_pc8_x))) == 0.0)))) && ((((((pc8_l0 != 0) == (_x_pc8_l0 != 0)) && ((pc8_l1 != 0) == (_x_pc8_l1 != 0))) && ((pc8_l2 != 0) == (_x_pc8_l2 != 0))) && ((delta + (pc8_x + (-1.0 * _x_pc8_x))) == 0.0)) || ( !(( !(pc8_evt0 != 0)) && ( !(pc8_evt1 != 0)))))) && (((((pc8_evt0 != 0) && (pc8_evt1 != 0)) && (pc8_x <= 50.0)) && (((_x_pc8_l2 != 0) && (( !(_x_pc8_l0 != 0)) && ( !(_x_pc8_l1 != 0)))) && (_x_pc8_x == 0.0))) || ( !((( !(pc8_l2 != 0)) && (( !(pc8_l0 != 0)) && ( !(pc8_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc8_evt0 != 0)) && ( !(pc8_evt1 != 0))))))))) && ((((pc8_evt0 != 0) && (pc8_evt1 != 0)) && ((( !(_x_pc8_l2 != 0)) && (( !(_x_pc8_l0 != 0)) && ( !(_x_pc8_l1 != 0)))) || (( !(_x_pc8_l2 != 0)) && ((_x_pc8_l1 != 0) && ( !(_x_pc8_l0 != 0)))))) || ( !(((pc8_l2 != 0) && (( !(pc8_l0 != 0)) && ( !(pc8_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc8_evt0 != 0)) && ( !(pc8_evt1 != 0))))))))) && (((_x_pc8_x == 0.0) && (25.0 <= pc8_x)) || ( !((( !(_x_pc8_l2 != 0)) && (( !(_x_pc8_l0 != 0)) && ( !(_x_pc8_l1 != 0)))) && ((pc8_l2 != 0) && (( !(pc8_l0 != 0)) && ( !(pc8_l1 != 0)))))))) && (((pc8_x <= 24.0) && (pc8_x == _x_pc8_x)) || ( !(((pc8_l2 != 0) && (( !(pc8_l0 != 0)) && ( !(pc8_l1 != 0)))) && (( !(_x_pc8_l2 != 0)) && ((_x_pc8_l1 != 0) && ( !(_x_pc8_l0 != 0)))))))) && (((_x_pc8_x == 0.0) && (((pc8_evt1 != 0) && ( !(pc8_evt0 != 0))) && ((_x_pc8_l2 != 0) && ((_x_pc8_l1 != 0) && ( !(_x_pc8_l0 != 0)))))) || ( !((( !(pc8_l2 != 0)) && ((pc8_l1 != 0) && ( !(pc8_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc8_evt0 != 0)) && ( !(pc8_evt1 != 0))))))))) && (((( !(_x_pc8_l2 != 0)) && ((_x_pc8_l0 != 0) && ( !(_x_pc8_l1 != 0)))) || (( !(_x_pc8_l2 != 0)) && ((_x_pc8_l0 != 0) && (_x_pc8_l1 != 0)))) || ( !(((pc8_l2 != 0) && ((pc8_l1 != 0) && ( !(pc8_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc8_evt0 != 0)) && ( !(pc8_evt1 != 0))))))))) && (((pc8_x == _x_pc8_x) && (((pc8_evt0 != 0) && (pc8_evt1 != 0)) && (50.0 <= pc8_x))) || ( !(((pc8_l2 != 0) && ((pc8_l1 != 0) && ( !(pc8_l0 != 0)))) && (( !(_x_pc8_l2 != 0)) && ((_x_pc8_l0 != 0) && (_x_pc8_l1 != 0))))))) && (((_x_pc8_x == 0.0) && (((pc8_evt0 != 0) && ( !(pc8_evt1 != 0))) && (pc8_x <= 25.0))) || ( !(((pc8_l2 != 0) && ((pc8_l1 != 0) && ( !(pc8_l0 != 0)))) && (( !(_x_pc8_l2 != 0)) && ((_x_pc8_l0 != 0) && ( !(_x_pc8_l1 != 0)))))))) && (((((pc8_evt0 != 0) && (pc8_evt1 != 0)) && (pc8_x == _x_pc8_x)) && (((_x_pc8_l2 != 0) && ((_x_pc8_l0 != 0) && ( !(_x_pc8_l1 != 0)))) || (( !(_x_pc8_l2 != 0)) && ((_x_pc8_l0 != 0) && (_x_pc8_l1 != 0))))) || ( !((( !(pc8_l2 != 0)) && ((pc8_l0 != 0) && ( !(pc8_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc8_evt0 != 0)) && ( !(pc8_evt1 != 0))))))))) && ((25.0 <= pc8_x) || ( !((( !(pc8_l2 != 0)) && ((pc8_l0 != 0) && ( !(pc8_l1 != 0)))) && (( !(_x_pc8_l2 != 0)) && ((_x_pc8_l0 != 0) && (_x_pc8_l1 != 0))))))) && ((pc8_x <= 24.0) || ( !((( !(pc8_l2 != 0)) && ((pc8_l0 != 0) && ( !(pc8_l1 != 0)))) && ((_x_pc8_l2 != 0) && ((_x_pc8_l0 != 0) && ( !(_x_pc8_l1 != 0)))))))) && ((( !(_x_pc8_l2 != 0)) && ((_x_pc8_l0 != 0) && (_x_pc8_l1 != 0))) || ( !((( !(pc8_l2 != 0)) && ((pc8_l0 != 0) && (pc8_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc8_evt0 != 0)) && ( !(pc8_evt1 != 0))))))))) && ((( !(_x_pc8_l2 != 0)) && (( !(_x_pc8_l0 != 0)) && ( !(_x_pc8_l1 != 0)))) || ( !(((pc8_l2 != 0) && ((pc8_l0 != 0) && ( !(pc8_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc8_evt0 != 0)) && ( !(pc8_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc7_evt0 != 0)) && ( !(_x_pc7_evt1 != 0))) || ((_x_pc7_evt1 != 0) && ( !(_x_pc7_evt0 != 0)))) || (((_x_pc7_evt0 != 0) && ( !(_x_pc7_evt1 != 0))) || ((_x_pc7_evt0 != 0) && (_x_pc7_evt1 != 0)))) && ((( !(_x_pc7_l2 != 0)) && ((_x_pc7_l0 != 0) && (_x_pc7_l1 != 0))) || ((((( !(_x_pc7_l2 != 0)) && (( !(_x_pc7_l0 != 0)) && ( !(_x_pc7_l1 != 0)))) || ((_x_pc7_l2 != 0) && (( !(_x_pc7_l0 != 0)) && ( !(_x_pc7_l1 != 0))))) || ((( !(_x_pc7_l2 != 0)) && ((_x_pc7_l1 != 0) && ( !(_x_pc7_l0 != 0)))) || ((_x_pc7_l2 != 0) && ((_x_pc7_l1 != 0) && ( !(_x_pc7_l0 != 0)))))) || ((( !(_x_pc7_l2 != 0)) && ((_x_pc7_l0 != 0) && ( !(_x_pc7_l1 != 0)))) || ((_x_pc7_l2 != 0) && ((_x_pc7_l0 != 0) && ( !(_x_pc7_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc7_l0 != 0) == (_x_pc7_l0 != 0)) && ((pc7_l1 != 0) == (_x_pc7_l1 != 0))) && ((pc7_l2 != 0) == (_x_pc7_l2 != 0))) && ((delta + (pc7_x + (-1.0 * _x_pc7_x))) == 0.0)))) && ((((((pc7_l0 != 0) == (_x_pc7_l0 != 0)) && ((pc7_l1 != 0) == (_x_pc7_l1 != 0))) && ((pc7_l2 != 0) == (_x_pc7_l2 != 0))) && ((delta + (pc7_x + (-1.0 * _x_pc7_x))) == 0.0)) || ( !(( !(pc7_evt0 != 0)) && ( !(pc7_evt1 != 0)))))) && (((((pc7_evt0 != 0) && (pc7_evt1 != 0)) && (pc7_x <= 50.0)) && (((_x_pc7_l2 != 0) && (( !(_x_pc7_l0 != 0)) && ( !(_x_pc7_l1 != 0)))) && (_x_pc7_x == 0.0))) || ( !((( !(pc7_l2 != 0)) && (( !(pc7_l0 != 0)) && ( !(pc7_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc7_evt0 != 0)) && ( !(pc7_evt1 != 0))))))))) && ((((pc7_evt0 != 0) && (pc7_evt1 != 0)) && ((( !(_x_pc7_l2 != 0)) && (( !(_x_pc7_l0 != 0)) && ( !(_x_pc7_l1 != 0)))) || (( !(_x_pc7_l2 != 0)) && ((_x_pc7_l1 != 0) && ( !(_x_pc7_l0 != 0)))))) || ( !(((pc7_l2 != 0) && (( !(pc7_l0 != 0)) && ( !(pc7_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc7_evt0 != 0)) && ( !(pc7_evt1 != 0))))))))) && (((_x_pc7_x == 0.0) && (25.0 <= pc7_x)) || ( !((( !(_x_pc7_l2 != 0)) && (( !(_x_pc7_l0 != 0)) && ( !(_x_pc7_l1 != 0)))) && ((pc7_l2 != 0) && (( !(pc7_l0 != 0)) && ( !(pc7_l1 != 0)))))))) && (((pc7_x <= 24.0) && (pc7_x == _x_pc7_x)) || ( !(((pc7_l2 != 0) && (( !(pc7_l0 != 0)) && ( !(pc7_l1 != 0)))) && (( !(_x_pc7_l2 != 0)) && ((_x_pc7_l1 != 0) && ( !(_x_pc7_l0 != 0)))))))) && (((_x_pc7_x == 0.0) && (((pc7_evt1 != 0) && ( !(pc7_evt0 != 0))) && ((_x_pc7_l2 != 0) && ((_x_pc7_l1 != 0) && ( !(_x_pc7_l0 != 0)))))) || ( !((( !(pc7_l2 != 0)) && ((pc7_l1 != 0) && ( !(pc7_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc7_evt0 != 0)) && ( !(pc7_evt1 != 0))))))))) && (((( !(_x_pc7_l2 != 0)) && ((_x_pc7_l0 != 0) && ( !(_x_pc7_l1 != 0)))) || (( !(_x_pc7_l2 != 0)) && ((_x_pc7_l0 != 0) && (_x_pc7_l1 != 0)))) || ( !(((pc7_l2 != 0) && ((pc7_l1 != 0) && ( !(pc7_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc7_evt0 != 0)) && ( !(pc7_evt1 != 0))))))))) && (((pc7_x == _x_pc7_x) && (((pc7_evt0 != 0) && (pc7_evt1 != 0)) && (50.0 <= pc7_x))) || ( !(((pc7_l2 != 0) && ((pc7_l1 != 0) && ( !(pc7_l0 != 0)))) && (( !(_x_pc7_l2 != 0)) && ((_x_pc7_l0 != 0) && (_x_pc7_l1 != 0))))))) && (((_x_pc7_x == 0.0) && (((pc7_evt0 != 0) && ( !(pc7_evt1 != 0))) && (pc7_x <= 25.0))) || ( !(((pc7_l2 != 0) && ((pc7_l1 != 0) && ( !(pc7_l0 != 0)))) && (( !(_x_pc7_l2 != 0)) && ((_x_pc7_l0 != 0) && ( !(_x_pc7_l1 != 0)))))))) && (((((pc7_evt0 != 0) && (pc7_evt1 != 0)) && (pc7_x == _x_pc7_x)) && (((_x_pc7_l2 != 0) && ((_x_pc7_l0 != 0) && ( !(_x_pc7_l1 != 0)))) || (( !(_x_pc7_l2 != 0)) && ((_x_pc7_l0 != 0) && (_x_pc7_l1 != 0))))) || ( !((( !(pc7_l2 != 0)) && ((pc7_l0 != 0) && ( !(pc7_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc7_evt0 != 0)) && ( !(pc7_evt1 != 0))))))))) && ((25.0 <= pc7_x) || ( !((( !(pc7_l2 != 0)) && ((pc7_l0 != 0) && ( !(pc7_l1 != 0)))) && (( !(_x_pc7_l2 != 0)) && ((_x_pc7_l0 != 0) && (_x_pc7_l1 != 0))))))) && ((pc7_x <= 24.0) || ( !((( !(pc7_l2 != 0)) && ((pc7_l0 != 0) && ( !(pc7_l1 != 0)))) && ((_x_pc7_l2 != 0) && ((_x_pc7_l0 != 0) && ( !(_x_pc7_l1 != 0)))))))) && ((( !(_x_pc7_l2 != 0)) && ((_x_pc7_l0 != 0) && (_x_pc7_l1 != 0))) || ( !((( !(pc7_l2 != 0)) && ((pc7_l0 != 0) && (pc7_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc7_evt0 != 0)) && ( !(pc7_evt1 != 0))))))))) && ((( !(_x_pc7_l2 != 0)) && (( !(_x_pc7_l0 != 0)) && ( !(_x_pc7_l1 != 0)))) || ( !(((pc7_l2 != 0) && ((pc7_l0 != 0) && ( !(pc7_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc7_evt0 != 0)) && ( !(pc7_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc6_evt0 != 0)) && ( !(_x_pc6_evt1 != 0))) || ((_x_pc6_evt1 != 0) && ( !(_x_pc6_evt0 != 0)))) || (((_x_pc6_evt0 != 0) && ( !(_x_pc6_evt1 != 0))) || ((_x_pc6_evt0 != 0) && (_x_pc6_evt1 != 0)))) && ((( !(_x_pc6_l2 != 0)) && ((_x_pc6_l0 != 0) && (_x_pc6_l1 != 0))) || ((((( !(_x_pc6_l2 != 0)) && (( !(_x_pc6_l0 != 0)) && ( !(_x_pc6_l1 != 0)))) || ((_x_pc6_l2 != 0) && (( !(_x_pc6_l0 != 0)) && ( !(_x_pc6_l1 != 0))))) || ((( !(_x_pc6_l2 != 0)) && ((_x_pc6_l1 != 0) && ( !(_x_pc6_l0 != 0)))) || ((_x_pc6_l2 != 0) && ((_x_pc6_l1 != 0) && ( !(_x_pc6_l0 != 0)))))) || ((( !(_x_pc6_l2 != 0)) && ((_x_pc6_l0 != 0) && ( !(_x_pc6_l1 != 0)))) || ((_x_pc6_l2 != 0) && ((_x_pc6_l0 != 0) && ( !(_x_pc6_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc6_l0 != 0) == (_x_pc6_l0 != 0)) && ((pc6_l1 != 0) == (_x_pc6_l1 != 0))) && ((pc6_l2 != 0) == (_x_pc6_l2 != 0))) && ((delta + (pc6_x + (-1.0 * _x_pc6_x))) == 0.0)))) && ((((((pc6_l0 != 0) == (_x_pc6_l0 != 0)) && ((pc6_l1 != 0) == (_x_pc6_l1 != 0))) && ((pc6_l2 != 0) == (_x_pc6_l2 != 0))) && ((delta + (pc6_x + (-1.0 * _x_pc6_x))) == 0.0)) || ( !(( !(pc6_evt0 != 0)) && ( !(pc6_evt1 != 0)))))) && (((((pc6_evt0 != 0) && (pc6_evt1 != 0)) && (pc6_x <= 50.0)) && (((_x_pc6_l2 != 0) && (( !(_x_pc6_l0 != 0)) && ( !(_x_pc6_l1 != 0)))) && (_x_pc6_x == 0.0))) || ( !((( !(pc6_l2 != 0)) && (( !(pc6_l0 != 0)) && ( !(pc6_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc6_evt0 != 0)) && ( !(pc6_evt1 != 0))))))))) && ((((pc6_evt0 != 0) && (pc6_evt1 != 0)) && ((( !(_x_pc6_l2 != 0)) && (( !(_x_pc6_l0 != 0)) && ( !(_x_pc6_l1 != 0)))) || (( !(_x_pc6_l2 != 0)) && ((_x_pc6_l1 != 0) && ( !(_x_pc6_l0 != 0)))))) || ( !(((pc6_l2 != 0) && (( !(pc6_l0 != 0)) && ( !(pc6_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc6_evt0 != 0)) && ( !(pc6_evt1 != 0))))))))) && (((_x_pc6_x == 0.0) && (25.0 <= pc6_x)) || ( !((( !(_x_pc6_l2 != 0)) && (( !(_x_pc6_l0 != 0)) && ( !(_x_pc6_l1 != 0)))) && ((pc6_l2 != 0) && (( !(pc6_l0 != 0)) && ( !(pc6_l1 != 0)))))))) && (((pc6_x <= 24.0) && (pc6_x == _x_pc6_x)) || ( !(((pc6_l2 != 0) && (( !(pc6_l0 != 0)) && ( !(pc6_l1 != 0)))) && (( !(_x_pc6_l2 != 0)) && ((_x_pc6_l1 != 0) && ( !(_x_pc6_l0 != 0)))))))) && (((_x_pc6_x == 0.0) && (((pc6_evt1 != 0) && ( !(pc6_evt0 != 0))) && ((_x_pc6_l2 != 0) && ((_x_pc6_l1 != 0) && ( !(_x_pc6_l0 != 0)))))) || ( !((( !(pc6_l2 != 0)) && ((pc6_l1 != 0) && ( !(pc6_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc6_evt0 != 0)) && ( !(pc6_evt1 != 0))))))))) && (((( !(_x_pc6_l2 != 0)) && ((_x_pc6_l0 != 0) && ( !(_x_pc6_l1 != 0)))) || (( !(_x_pc6_l2 != 0)) && ((_x_pc6_l0 != 0) && (_x_pc6_l1 != 0)))) || ( !(((pc6_l2 != 0) && ((pc6_l1 != 0) && ( !(pc6_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc6_evt0 != 0)) && ( !(pc6_evt1 != 0))))))))) && (((pc6_x == _x_pc6_x) && (((pc6_evt0 != 0) && (pc6_evt1 != 0)) && (50.0 <= pc6_x))) || ( !(((pc6_l2 != 0) && ((pc6_l1 != 0) && ( !(pc6_l0 != 0)))) && (( !(_x_pc6_l2 != 0)) && ((_x_pc6_l0 != 0) && (_x_pc6_l1 != 0))))))) && (((_x_pc6_x == 0.0) && (((pc6_evt0 != 0) && ( !(pc6_evt1 != 0))) && (pc6_x <= 25.0))) || ( !(((pc6_l2 != 0) && ((pc6_l1 != 0) && ( !(pc6_l0 != 0)))) && (( !(_x_pc6_l2 != 0)) && ((_x_pc6_l0 != 0) && ( !(_x_pc6_l1 != 0)))))))) && (((((pc6_evt0 != 0) && (pc6_evt1 != 0)) && (pc6_x == _x_pc6_x)) && (((_x_pc6_l2 != 0) && ((_x_pc6_l0 != 0) && ( !(_x_pc6_l1 != 0)))) || (( !(_x_pc6_l2 != 0)) && ((_x_pc6_l0 != 0) && (_x_pc6_l1 != 0))))) || ( !((( !(pc6_l2 != 0)) && ((pc6_l0 != 0) && ( !(pc6_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc6_evt0 != 0)) && ( !(pc6_evt1 != 0))))))))) && ((25.0 <= pc6_x) || ( !((( !(pc6_l2 != 0)) && ((pc6_l0 != 0) && ( !(pc6_l1 != 0)))) && (( !(_x_pc6_l2 != 0)) && ((_x_pc6_l0 != 0) && (_x_pc6_l1 != 0))))))) && ((pc6_x <= 24.0) || ( !((( !(pc6_l2 != 0)) && ((pc6_l0 != 0) && ( !(pc6_l1 != 0)))) && ((_x_pc6_l2 != 0) && ((_x_pc6_l0 != 0) && ( !(_x_pc6_l1 != 0)))))))) && ((( !(_x_pc6_l2 != 0)) && ((_x_pc6_l0 != 0) && (_x_pc6_l1 != 0))) || ( !((( !(pc6_l2 != 0)) && ((pc6_l0 != 0) && (pc6_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc6_evt0 != 0)) && ( !(pc6_evt1 != 0))))))))) && ((( !(_x_pc6_l2 != 0)) && (( !(_x_pc6_l0 != 0)) && ( !(_x_pc6_l1 != 0)))) || ( !(((pc6_l2 != 0) && ((pc6_l0 != 0) && ( !(pc6_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc6_evt0 != 0)) && ( !(pc6_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc5_evt0 != 0)) && ( !(_x_pc5_evt1 != 0))) || ((_x_pc5_evt1 != 0) && ( !(_x_pc5_evt0 != 0)))) || (((_x_pc5_evt0 != 0) && ( !(_x_pc5_evt1 != 0))) || ((_x_pc5_evt0 != 0) && (_x_pc5_evt1 != 0)))) && ((( !(_x_pc5_l2 != 0)) && ((_x_pc5_l0 != 0) && (_x_pc5_l1 != 0))) || ((((( !(_x_pc5_l2 != 0)) && (( !(_x_pc5_l0 != 0)) && ( !(_x_pc5_l1 != 0)))) || ((_x_pc5_l2 != 0) && (( !(_x_pc5_l0 != 0)) && ( !(_x_pc5_l1 != 0))))) || ((( !(_x_pc5_l2 != 0)) && ((_x_pc5_l1 != 0) && ( !(_x_pc5_l0 != 0)))) || ((_x_pc5_l2 != 0) && ((_x_pc5_l1 != 0) && ( !(_x_pc5_l0 != 0)))))) || ((( !(_x_pc5_l2 != 0)) && ((_x_pc5_l0 != 0) && ( !(_x_pc5_l1 != 0)))) || ((_x_pc5_l2 != 0) && ((_x_pc5_l0 != 0) && ( !(_x_pc5_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc5_l0 != 0) == (_x_pc5_l0 != 0)) && ((pc5_l1 != 0) == (_x_pc5_l1 != 0))) && ((pc5_l2 != 0) == (_x_pc5_l2 != 0))) && ((delta + (pc5_x + (-1.0 * _x_pc5_x))) == 0.0)))) && ((((((pc5_l0 != 0) == (_x_pc5_l0 != 0)) && ((pc5_l1 != 0) == (_x_pc5_l1 != 0))) && ((pc5_l2 != 0) == (_x_pc5_l2 != 0))) && ((delta + (pc5_x + (-1.0 * _x_pc5_x))) == 0.0)) || ( !(( !(pc5_evt0 != 0)) && ( !(pc5_evt1 != 0)))))) && (((((pc5_evt0 != 0) && (pc5_evt1 != 0)) && (pc5_x <= 50.0)) && (((_x_pc5_l2 != 0) && (( !(_x_pc5_l0 != 0)) && ( !(_x_pc5_l1 != 0)))) && (_x_pc5_x == 0.0))) || ( !((( !(pc5_l2 != 0)) && (( !(pc5_l0 != 0)) && ( !(pc5_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc5_evt0 != 0)) && ( !(pc5_evt1 != 0))))))))) && ((((pc5_evt0 != 0) && (pc5_evt1 != 0)) && ((( !(_x_pc5_l2 != 0)) && (( !(_x_pc5_l0 != 0)) && ( !(_x_pc5_l1 != 0)))) || (( !(_x_pc5_l2 != 0)) && ((_x_pc5_l1 != 0) && ( !(_x_pc5_l0 != 0)))))) || ( !(((pc5_l2 != 0) && (( !(pc5_l0 != 0)) && ( !(pc5_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc5_evt0 != 0)) && ( !(pc5_evt1 != 0))))))))) && (((_x_pc5_x == 0.0) && (25.0 <= pc5_x)) || ( !((( !(_x_pc5_l2 != 0)) && (( !(_x_pc5_l0 != 0)) && ( !(_x_pc5_l1 != 0)))) && ((pc5_l2 != 0) && (( !(pc5_l0 != 0)) && ( !(pc5_l1 != 0)))))))) && (((pc5_x <= 24.0) && (pc5_x == _x_pc5_x)) || ( !(((pc5_l2 != 0) && (( !(pc5_l0 != 0)) && ( !(pc5_l1 != 0)))) && (( !(_x_pc5_l2 != 0)) && ((_x_pc5_l1 != 0) && ( !(_x_pc5_l0 != 0)))))))) && (((_x_pc5_x == 0.0) && (((pc5_evt1 != 0) && ( !(pc5_evt0 != 0))) && ((_x_pc5_l2 != 0) && ((_x_pc5_l1 != 0) && ( !(_x_pc5_l0 != 0)))))) || ( !((( !(pc5_l2 != 0)) && ((pc5_l1 != 0) && ( !(pc5_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc5_evt0 != 0)) && ( !(pc5_evt1 != 0))))))))) && (((( !(_x_pc5_l2 != 0)) && ((_x_pc5_l0 != 0) && ( !(_x_pc5_l1 != 0)))) || (( !(_x_pc5_l2 != 0)) && ((_x_pc5_l0 != 0) && (_x_pc5_l1 != 0)))) || ( !(((pc5_l2 != 0) && ((pc5_l1 != 0) && ( !(pc5_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc5_evt0 != 0)) && ( !(pc5_evt1 != 0))))))))) && (((pc5_x == _x_pc5_x) && (((pc5_evt0 != 0) && (pc5_evt1 != 0)) && (50.0 <= pc5_x))) || ( !(((pc5_l2 != 0) && ((pc5_l1 != 0) && ( !(pc5_l0 != 0)))) && (( !(_x_pc5_l2 != 0)) && ((_x_pc5_l0 != 0) && (_x_pc5_l1 != 0))))))) && (((_x_pc5_x == 0.0) && (((pc5_evt0 != 0) && ( !(pc5_evt1 != 0))) && (pc5_x <= 25.0))) || ( !(((pc5_l2 != 0) && ((pc5_l1 != 0) && ( !(pc5_l0 != 0)))) && (( !(_x_pc5_l2 != 0)) && ((_x_pc5_l0 != 0) && ( !(_x_pc5_l1 != 0)))))))) && (((((pc5_evt0 != 0) && (pc5_evt1 != 0)) && (pc5_x == _x_pc5_x)) && (((_x_pc5_l2 != 0) && ((_x_pc5_l0 != 0) && ( !(_x_pc5_l1 != 0)))) || (( !(_x_pc5_l2 != 0)) && ((_x_pc5_l0 != 0) && (_x_pc5_l1 != 0))))) || ( !((( !(pc5_l2 != 0)) && ((pc5_l0 != 0) && ( !(pc5_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc5_evt0 != 0)) && ( !(pc5_evt1 != 0))))))))) && ((25.0 <= pc5_x) || ( !((( !(pc5_l2 != 0)) && ((pc5_l0 != 0) && ( !(pc5_l1 != 0)))) && (( !(_x_pc5_l2 != 0)) && ((_x_pc5_l0 != 0) && (_x_pc5_l1 != 0))))))) && ((pc5_x <= 24.0) || ( !((( !(pc5_l2 != 0)) && ((pc5_l0 != 0) && ( !(pc5_l1 != 0)))) && ((_x_pc5_l2 != 0) && ((_x_pc5_l0 != 0) && ( !(_x_pc5_l1 != 0)))))))) && ((( !(_x_pc5_l2 != 0)) && ((_x_pc5_l0 != 0) && (_x_pc5_l1 != 0))) || ( !((( !(pc5_l2 != 0)) && ((pc5_l0 != 0) && (pc5_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc5_evt0 != 0)) && ( !(pc5_evt1 != 0))))))))) && ((( !(_x_pc5_l2 != 0)) && (( !(_x_pc5_l0 != 0)) && ( !(_x_pc5_l1 != 0)))) || ( !(((pc5_l2 != 0) && ((pc5_l0 != 0) && ( !(pc5_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc5_evt0 != 0)) && ( !(pc5_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc4_evt0 != 0)) && ( !(_x_pc4_evt1 != 0))) || ((_x_pc4_evt1 != 0) && ( !(_x_pc4_evt0 != 0)))) || (((_x_pc4_evt0 != 0) && ( !(_x_pc4_evt1 != 0))) || ((_x_pc4_evt0 != 0) && (_x_pc4_evt1 != 0)))) && ((( !(_x_pc4_l2 != 0)) && ((_x_pc4_l0 != 0) && (_x_pc4_l1 != 0))) || ((((( !(_x_pc4_l2 != 0)) && (( !(_x_pc4_l0 != 0)) && ( !(_x_pc4_l1 != 0)))) || ((_x_pc4_l2 != 0) && (( !(_x_pc4_l0 != 0)) && ( !(_x_pc4_l1 != 0))))) || ((( !(_x_pc4_l2 != 0)) && ((_x_pc4_l1 != 0) && ( !(_x_pc4_l0 != 0)))) || ((_x_pc4_l2 != 0) && ((_x_pc4_l1 != 0) && ( !(_x_pc4_l0 != 0)))))) || ((( !(_x_pc4_l2 != 0)) && ((_x_pc4_l0 != 0) && ( !(_x_pc4_l1 != 0)))) || ((_x_pc4_l2 != 0) && ((_x_pc4_l0 != 0) && ( !(_x_pc4_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc4_l0 != 0) == (_x_pc4_l0 != 0)) && ((pc4_l1 != 0) == (_x_pc4_l1 != 0))) && ((pc4_l2 != 0) == (_x_pc4_l2 != 0))) && ((delta + (pc4_x + (-1.0 * _x_pc4_x))) == 0.0)))) && ((((((pc4_l0 != 0) == (_x_pc4_l0 != 0)) && ((pc4_l1 != 0) == (_x_pc4_l1 != 0))) && ((pc4_l2 != 0) == (_x_pc4_l2 != 0))) && ((delta + (pc4_x + (-1.0 * _x_pc4_x))) == 0.0)) || ( !(( !(pc4_evt0 != 0)) && ( !(pc4_evt1 != 0)))))) && (((((pc4_evt0 != 0) && (pc4_evt1 != 0)) && (pc4_x <= 50.0)) && (((_x_pc4_l2 != 0) && (( !(_x_pc4_l0 != 0)) && ( !(_x_pc4_l1 != 0)))) && (_x_pc4_x == 0.0))) || ( !((( !(pc4_l2 != 0)) && (( !(pc4_l0 != 0)) && ( !(pc4_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc4_evt0 != 0)) && ( !(pc4_evt1 != 0))))))))) && ((((pc4_evt0 != 0) && (pc4_evt1 != 0)) && ((( !(_x_pc4_l2 != 0)) && (( !(_x_pc4_l0 != 0)) && ( !(_x_pc4_l1 != 0)))) || (( !(_x_pc4_l2 != 0)) && ((_x_pc4_l1 != 0) && ( !(_x_pc4_l0 != 0)))))) || ( !(((pc4_l2 != 0) && (( !(pc4_l0 != 0)) && ( !(pc4_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc4_evt0 != 0)) && ( !(pc4_evt1 != 0))))))))) && (((_x_pc4_x == 0.0) && (25.0 <= pc4_x)) || ( !((( !(_x_pc4_l2 != 0)) && (( !(_x_pc4_l0 != 0)) && ( !(_x_pc4_l1 != 0)))) && ((pc4_l2 != 0) && (( !(pc4_l0 != 0)) && ( !(pc4_l1 != 0)))))))) && (((pc4_x <= 24.0) && (pc4_x == _x_pc4_x)) || ( !(((pc4_l2 != 0) && (( !(pc4_l0 != 0)) && ( !(pc4_l1 != 0)))) && (( !(_x_pc4_l2 != 0)) && ((_x_pc4_l1 != 0) && ( !(_x_pc4_l0 != 0)))))))) && (((_x_pc4_x == 0.0) && (((pc4_evt1 != 0) && ( !(pc4_evt0 != 0))) && ((_x_pc4_l2 != 0) && ((_x_pc4_l1 != 0) && ( !(_x_pc4_l0 != 0)))))) || ( !((( !(pc4_l2 != 0)) && ((pc4_l1 != 0) && ( !(pc4_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc4_evt0 != 0)) && ( !(pc4_evt1 != 0))))))))) && (((( !(_x_pc4_l2 != 0)) && ((_x_pc4_l0 != 0) && ( !(_x_pc4_l1 != 0)))) || (( !(_x_pc4_l2 != 0)) && ((_x_pc4_l0 != 0) && (_x_pc4_l1 != 0)))) || ( !(((pc4_l2 != 0) && ((pc4_l1 != 0) && ( !(pc4_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc4_evt0 != 0)) && ( !(pc4_evt1 != 0))))))))) && (((pc4_x == _x_pc4_x) && (((pc4_evt0 != 0) && (pc4_evt1 != 0)) && (50.0 <= pc4_x))) || ( !(((pc4_l2 != 0) && ((pc4_l1 != 0) && ( !(pc4_l0 != 0)))) && (( !(_x_pc4_l2 != 0)) && ((_x_pc4_l0 != 0) && (_x_pc4_l1 != 0))))))) && (((_x_pc4_x == 0.0) && (((pc4_evt0 != 0) && ( !(pc4_evt1 != 0))) && (pc4_x <= 25.0))) || ( !(((pc4_l2 != 0) && ((pc4_l1 != 0) && ( !(pc4_l0 != 0)))) && (( !(_x_pc4_l2 != 0)) && ((_x_pc4_l0 != 0) && ( !(_x_pc4_l1 != 0)))))))) && (((((pc4_evt0 != 0) && (pc4_evt1 != 0)) && (pc4_x == _x_pc4_x)) && (((_x_pc4_l2 != 0) && ((_x_pc4_l0 != 0) && ( !(_x_pc4_l1 != 0)))) || (( !(_x_pc4_l2 != 0)) && ((_x_pc4_l0 != 0) && (_x_pc4_l1 != 0))))) || ( !((( !(pc4_l2 != 0)) && ((pc4_l0 != 0) && ( !(pc4_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc4_evt0 != 0)) && ( !(pc4_evt1 != 0))))))))) && ((25.0 <= pc4_x) || ( !((( !(pc4_l2 != 0)) && ((pc4_l0 != 0) && ( !(pc4_l1 != 0)))) && (( !(_x_pc4_l2 != 0)) && ((_x_pc4_l0 != 0) && (_x_pc4_l1 != 0))))))) && ((pc4_x <= 24.0) || ( !((( !(pc4_l2 != 0)) && ((pc4_l0 != 0) && ( !(pc4_l1 != 0)))) && ((_x_pc4_l2 != 0) && ((_x_pc4_l0 != 0) && ( !(_x_pc4_l1 != 0)))))))) && ((( !(_x_pc4_l2 != 0)) && ((_x_pc4_l0 != 0) && (_x_pc4_l1 != 0))) || ( !((( !(pc4_l2 != 0)) && ((pc4_l0 != 0) && (pc4_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc4_evt0 != 0)) && ( !(pc4_evt1 != 0))))))))) && ((( !(_x_pc4_l2 != 0)) && (( !(_x_pc4_l0 != 0)) && ( !(_x_pc4_l1 != 0)))) || ( !(((pc4_l2 != 0) && ((pc4_l0 != 0) && ( !(pc4_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc4_evt0 != 0)) && ( !(pc4_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc3_evt0 != 0)) && ( !(_x_pc3_evt1 != 0))) || ((_x_pc3_evt1 != 0) && ( !(_x_pc3_evt0 != 0)))) || (((_x_pc3_evt0 != 0) && ( !(_x_pc3_evt1 != 0))) || ((_x_pc3_evt0 != 0) && (_x_pc3_evt1 != 0)))) && ((( !(_x_pc3_l2 != 0)) && ((_x_pc3_l0 != 0) && (_x_pc3_l1 != 0))) || ((((( !(_x_pc3_l2 != 0)) && (( !(_x_pc3_l0 != 0)) && ( !(_x_pc3_l1 != 0)))) || ((_x_pc3_l2 != 0) && (( !(_x_pc3_l0 != 0)) && ( !(_x_pc3_l1 != 0))))) || ((( !(_x_pc3_l2 != 0)) && ((_x_pc3_l1 != 0) && ( !(_x_pc3_l0 != 0)))) || ((_x_pc3_l2 != 0) && ((_x_pc3_l1 != 0) && ( !(_x_pc3_l0 != 0)))))) || ((( !(_x_pc3_l2 != 0)) && ((_x_pc3_l0 != 0) && ( !(_x_pc3_l1 != 0)))) || ((_x_pc3_l2 != 0) && ((_x_pc3_l0 != 0) && ( !(_x_pc3_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc3_l0 != 0) == (_x_pc3_l0 != 0)) && ((pc3_l1 != 0) == (_x_pc3_l1 != 0))) && ((pc3_l2 != 0) == (_x_pc3_l2 != 0))) && ((delta + (pc3_x + (-1.0 * _x_pc3_x))) == 0.0)))) && ((((((pc3_l0 != 0) == (_x_pc3_l0 != 0)) && ((pc3_l1 != 0) == (_x_pc3_l1 != 0))) && ((pc3_l2 != 0) == (_x_pc3_l2 != 0))) && ((delta + (pc3_x + (-1.0 * _x_pc3_x))) == 0.0)) || ( !(( !(pc3_evt0 != 0)) && ( !(pc3_evt1 != 0)))))) && (((((pc3_evt0 != 0) && (pc3_evt1 != 0)) && (pc3_x <= 50.0)) && (((_x_pc3_l2 != 0) && (( !(_x_pc3_l0 != 0)) && ( !(_x_pc3_l1 != 0)))) && (_x_pc3_x == 0.0))) || ( !((( !(pc3_l2 != 0)) && (( !(pc3_l0 != 0)) && ( !(pc3_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc3_evt0 != 0)) && ( !(pc3_evt1 != 0))))))))) && ((((pc3_evt0 != 0) && (pc3_evt1 != 0)) && ((( !(_x_pc3_l2 != 0)) && (( !(_x_pc3_l0 != 0)) && ( !(_x_pc3_l1 != 0)))) || (( !(_x_pc3_l2 != 0)) && ((_x_pc3_l1 != 0) && ( !(_x_pc3_l0 != 0)))))) || ( !(((pc3_l2 != 0) && (( !(pc3_l0 != 0)) && ( !(pc3_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc3_evt0 != 0)) && ( !(pc3_evt1 != 0))))))))) && (((_x_pc3_x == 0.0) && (25.0 <= pc3_x)) || ( !((( !(_x_pc3_l2 != 0)) && (( !(_x_pc3_l0 != 0)) && ( !(_x_pc3_l1 != 0)))) && ((pc3_l2 != 0) && (( !(pc3_l0 != 0)) && ( !(pc3_l1 != 0)))))))) && (((pc3_x <= 24.0) && (pc3_x == _x_pc3_x)) || ( !(((pc3_l2 != 0) && (( !(pc3_l0 != 0)) && ( !(pc3_l1 != 0)))) && (( !(_x_pc3_l2 != 0)) && ((_x_pc3_l1 != 0) && ( !(_x_pc3_l0 != 0)))))))) && (((_x_pc3_x == 0.0) && (((pc3_evt1 != 0) && ( !(pc3_evt0 != 0))) && ((_x_pc3_l2 != 0) && ((_x_pc3_l1 != 0) && ( !(_x_pc3_l0 != 0)))))) || ( !((( !(pc3_l2 != 0)) && ((pc3_l1 != 0) && ( !(pc3_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc3_evt0 != 0)) && ( !(pc3_evt1 != 0))))))))) && (((( !(_x_pc3_l2 != 0)) && ((_x_pc3_l0 != 0) && ( !(_x_pc3_l1 != 0)))) || (( !(_x_pc3_l2 != 0)) && ((_x_pc3_l0 != 0) && (_x_pc3_l1 != 0)))) || ( !(((pc3_l2 != 0) && ((pc3_l1 != 0) && ( !(pc3_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc3_evt0 != 0)) && ( !(pc3_evt1 != 0))))))))) && (((pc3_x == _x_pc3_x) && (((pc3_evt0 != 0) && (pc3_evt1 != 0)) && (50.0 <= pc3_x))) || ( !(((pc3_l2 != 0) && ((pc3_l1 != 0) && ( !(pc3_l0 != 0)))) && (( !(_x_pc3_l2 != 0)) && ((_x_pc3_l0 != 0) && (_x_pc3_l1 != 0))))))) && (((_x_pc3_x == 0.0) && (((pc3_evt0 != 0) && ( !(pc3_evt1 != 0))) && (pc3_x <= 25.0))) || ( !(((pc3_l2 != 0) && ((pc3_l1 != 0) && ( !(pc3_l0 != 0)))) && (( !(_x_pc3_l2 != 0)) && ((_x_pc3_l0 != 0) && ( !(_x_pc3_l1 != 0)))))))) && (((((pc3_evt0 != 0) && (pc3_evt1 != 0)) && (pc3_x == _x_pc3_x)) && (((_x_pc3_l2 != 0) && ((_x_pc3_l0 != 0) && ( !(_x_pc3_l1 != 0)))) || (( !(_x_pc3_l2 != 0)) && ((_x_pc3_l0 != 0) && (_x_pc3_l1 != 0))))) || ( !((( !(pc3_l2 != 0)) && ((pc3_l0 != 0) && ( !(pc3_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc3_evt0 != 0)) && ( !(pc3_evt1 != 0))))))))) && ((25.0 <= pc3_x) || ( !((( !(pc3_l2 != 0)) && ((pc3_l0 != 0) && ( !(pc3_l1 != 0)))) && (( !(_x_pc3_l2 != 0)) && ((_x_pc3_l0 != 0) && (_x_pc3_l1 != 0))))))) && ((pc3_x <= 24.0) || ( !((( !(pc3_l2 != 0)) && ((pc3_l0 != 0) && ( !(pc3_l1 != 0)))) && ((_x_pc3_l2 != 0) && ((_x_pc3_l0 != 0) && ( !(_x_pc3_l1 != 0)))))))) && ((( !(_x_pc3_l2 != 0)) && ((_x_pc3_l0 != 0) && (_x_pc3_l1 != 0))) || ( !((( !(pc3_l2 != 0)) && ((pc3_l0 != 0) && (pc3_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc3_evt0 != 0)) && ( !(pc3_evt1 != 0))))))))) && ((( !(_x_pc3_l2 != 0)) && (( !(_x_pc3_l0 != 0)) && ( !(_x_pc3_l1 != 0)))) || ( !(((pc3_l2 != 0) && ((pc3_l0 != 0) && ( !(pc3_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc3_evt0 != 0)) && ( !(pc3_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc2_evt0 != 0)) && ( !(_x_pc2_evt1 != 0))) || ((_x_pc2_evt1 != 0) && ( !(_x_pc2_evt0 != 0)))) || (((_x_pc2_evt0 != 0) && ( !(_x_pc2_evt1 != 0))) || ((_x_pc2_evt0 != 0) && (_x_pc2_evt1 != 0)))) && ((( !(_x_pc2_l2 != 0)) && ((_x_pc2_l0 != 0) && (_x_pc2_l1 != 0))) || ((((( !(_x_pc2_l2 != 0)) && (( !(_x_pc2_l0 != 0)) && ( !(_x_pc2_l1 != 0)))) || ((_x_pc2_l2 != 0) && (( !(_x_pc2_l0 != 0)) && ( !(_x_pc2_l1 != 0))))) || ((( !(_x_pc2_l2 != 0)) && ((_x_pc2_l1 != 0) && ( !(_x_pc2_l0 != 0)))) || ((_x_pc2_l2 != 0) && ((_x_pc2_l1 != 0) && ( !(_x_pc2_l0 != 0)))))) || ((( !(_x_pc2_l2 != 0)) && ((_x_pc2_l0 != 0) && ( !(_x_pc2_l1 != 0)))) || ((_x_pc2_l2 != 0) && ((_x_pc2_l0 != 0) && ( !(_x_pc2_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc2_l0 != 0) == (_x_pc2_l0 != 0)) && ((pc2_l1 != 0) == (_x_pc2_l1 != 0))) && ((pc2_l2 != 0) == (_x_pc2_l2 != 0))) && ((delta + (pc2_x + (-1.0 * _x_pc2_x))) == 0.0)))) && ((((((pc2_l0 != 0) == (_x_pc2_l0 != 0)) && ((pc2_l1 != 0) == (_x_pc2_l1 != 0))) && ((pc2_l2 != 0) == (_x_pc2_l2 != 0))) && ((delta + (pc2_x + (-1.0 * _x_pc2_x))) == 0.0)) || ( !(( !(pc2_evt0 != 0)) && ( !(pc2_evt1 != 0)))))) && (((((pc2_evt0 != 0) && (pc2_evt1 != 0)) && (pc2_x <= 50.0)) && (((_x_pc2_l2 != 0) && (( !(_x_pc2_l0 != 0)) && ( !(_x_pc2_l1 != 0)))) && (_x_pc2_x == 0.0))) || ( !((( !(pc2_l2 != 0)) && (( !(pc2_l0 != 0)) && ( !(pc2_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc2_evt0 != 0)) && ( !(pc2_evt1 != 0))))))))) && ((((pc2_evt0 != 0) && (pc2_evt1 != 0)) && ((( !(_x_pc2_l2 != 0)) && (( !(_x_pc2_l0 != 0)) && ( !(_x_pc2_l1 != 0)))) || (( !(_x_pc2_l2 != 0)) && ((_x_pc2_l1 != 0) && ( !(_x_pc2_l0 != 0)))))) || ( !(((pc2_l2 != 0) && (( !(pc2_l0 != 0)) && ( !(pc2_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc2_evt0 != 0)) && ( !(pc2_evt1 != 0))))))))) && (((_x_pc2_x == 0.0) && (25.0 <= pc2_x)) || ( !((( !(_x_pc2_l2 != 0)) && (( !(_x_pc2_l0 != 0)) && ( !(_x_pc2_l1 != 0)))) && ((pc2_l2 != 0) && (( !(pc2_l0 != 0)) && ( !(pc2_l1 != 0)))))))) && (((pc2_x <= 24.0) && (pc2_x == _x_pc2_x)) || ( !(((pc2_l2 != 0) && (( !(pc2_l0 != 0)) && ( !(pc2_l1 != 0)))) && (( !(_x_pc2_l2 != 0)) && ((_x_pc2_l1 != 0) && ( !(_x_pc2_l0 != 0)))))))) && (((_x_pc2_x == 0.0) && (((pc2_evt1 != 0) && ( !(pc2_evt0 != 0))) && ((_x_pc2_l2 != 0) && ((_x_pc2_l1 != 0) && ( !(_x_pc2_l0 != 0)))))) || ( !((( !(pc2_l2 != 0)) && ((pc2_l1 != 0) && ( !(pc2_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc2_evt0 != 0)) && ( !(pc2_evt1 != 0))))))))) && (((( !(_x_pc2_l2 != 0)) && ((_x_pc2_l0 != 0) && ( !(_x_pc2_l1 != 0)))) || (( !(_x_pc2_l2 != 0)) && ((_x_pc2_l0 != 0) && (_x_pc2_l1 != 0)))) || ( !(((pc2_l2 != 0) && ((pc2_l1 != 0) && ( !(pc2_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc2_evt0 != 0)) && ( !(pc2_evt1 != 0))))))))) && (((pc2_x == _x_pc2_x) && (((pc2_evt0 != 0) && (pc2_evt1 != 0)) && (50.0 <= pc2_x))) || ( !(((pc2_l2 != 0) && ((pc2_l1 != 0) && ( !(pc2_l0 != 0)))) && (( !(_x_pc2_l2 != 0)) && ((_x_pc2_l0 != 0) && (_x_pc2_l1 != 0))))))) && (((_x_pc2_x == 0.0) && (((pc2_evt0 != 0) && ( !(pc2_evt1 != 0))) && (pc2_x <= 25.0))) || ( !(((pc2_l2 != 0) && ((pc2_l1 != 0) && ( !(pc2_l0 != 0)))) && (( !(_x_pc2_l2 != 0)) && ((_x_pc2_l0 != 0) && ( !(_x_pc2_l1 != 0)))))))) && (((((pc2_evt0 != 0) && (pc2_evt1 != 0)) && (pc2_x == _x_pc2_x)) && (((_x_pc2_l2 != 0) && ((_x_pc2_l0 != 0) && ( !(_x_pc2_l1 != 0)))) || (( !(_x_pc2_l2 != 0)) && ((_x_pc2_l0 != 0) && (_x_pc2_l1 != 0))))) || ( !((( !(pc2_l2 != 0)) && ((pc2_l0 != 0) && ( !(pc2_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc2_evt0 != 0)) && ( !(pc2_evt1 != 0))))))))) && ((25.0 <= pc2_x) || ( !((( !(pc2_l2 != 0)) && ((pc2_l0 != 0) && ( !(pc2_l1 != 0)))) && (( !(_x_pc2_l2 != 0)) && ((_x_pc2_l0 != 0) && (_x_pc2_l1 != 0))))))) && ((pc2_x <= 24.0) || ( !((( !(pc2_l2 != 0)) && ((pc2_l0 != 0) && ( !(pc2_l1 != 0)))) && ((_x_pc2_l2 != 0) && ((_x_pc2_l0 != 0) && ( !(_x_pc2_l1 != 0)))))))) && ((( !(_x_pc2_l2 != 0)) && ((_x_pc2_l0 != 0) && (_x_pc2_l1 != 0))) || ( !((( !(pc2_l2 != 0)) && ((pc2_l0 != 0) && (pc2_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc2_evt0 != 0)) && ( !(pc2_evt1 != 0))))))))) && ((( !(_x_pc2_l2 != 0)) && (( !(_x_pc2_l0 != 0)) && ( !(_x_pc2_l1 != 0)))) || ( !(((pc2_l2 != 0) && ((pc2_l0 != 0) && ( !(pc2_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc2_evt0 != 0)) && ( !(pc2_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc1_evt0 != 0)) && ( !(_x_pc1_evt1 != 0))) || ((_x_pc1_evt1 != 0) && ( !(_x_pc1_evt0 != 0)))) || (((_x_pc1_evt0 != 0) && ( !(_x_pc1_evt1 != 0))) || ((_x_pc1_evt0 != 0) && (_x_pc1_evt1 != 0)))) && ((( !(_x_pc1_l2 != 0)) && ((_x_pc1_l0 != 0) && (_x_pc1_l1 != 0))) || ((((( !(_x_pc1_l2 != 0)) && (( !(_x_pc1_l0 != 0)) && ( !(_x_pc1_l1 != 0)))) || ((_x_pc1_l2 != 0) && (( !(_x_pc1_l0 != 0)) && ( !(_x_pc1_l1 != 0))))) || ((( !(_x_pc1_l2 != 0)) && ((_x_pc1_l1 != 0) && ( !(_x_pc1_l0 != 0)))) || ((_x_pc1_l2 != 0) && ((_x_pc1_l1 != 0) && ( !(_x_pc1_l0 != 0)))))) || ((( !(_x_pc1_l2 != 0)) && ((_x_pc1_l0 != 0) && ( !(_x_pc1_l1 != 0)))) || ((_x_pc1_l2 != 0) && ((_x_pc1_l0 != 0) && ( !(_x_pc1_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc1_l0 != 0) == (_x_pc1_l0 != 0)) && ((pc1_l1 != 0) == (_x_pc1_l1 != 0))) && ((pc1_l2 != 0) == (_x_pc1_l2 != 0))) && ((delta + (pc1_x + (-1.0 * _x_pc1_x))) == 0.0)))) && ((((((pc1_l0 != 0) == (_x_pc1_l0 != 0)) && ((pc1_l1 != 0) == (_x_pc1_l1 != 0))) && ((pc1_l2 != 0) == (_x_pc1_l2 != 0))) && ((delta + (pc1_x + (-1.0 * _x_pc1_x))) == 0.0)) || ( !(( !(pc1_evt0 != 0)) && ( !(pc1_evt1 != 0)))))) && (((((pc1_evt0 != 0) && (pc1_evt1 != 0)) && (pc1_x <= 50.0)) && (((_x_pc1_l2 != 0) && (( !(_x_pc1_l0 != 0)) && ( !(_x_pc1_l1 != 0)))) && (_x_pc1_x == 0.0))) || ( !((( !(pc1_l2 != 0)) && (( !(pc1_l0 != 0)) && ( !(pc1_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc1_evt0 != 0)) && ( !(pc1_evt1 != 0))))))))) && ((((pc1_evt0 != 0) && (pc1_evt1 != 0)) && ((( !(_x_pc1_l2 != 0)) && (( !(_x_pc1_l0 != 0)) && ( !(_x_pc1_l1 != 0)))) || (( !(_x_pc1_l2 != 0)) && ((_x_pc1_l1 != 0) && ( !(_x_pc1_l0 != 0)))))) || ( !(((pc1_l2 != 0) && (( !(pc1_l0 != 0)) && ( !(pc1_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc1_evt0 != 0)) && ( !(pc1_evt1 != 0))))))))) && (((_x_pc1_x == 0.0) && (25.0 <= pc1_x)) || ( !((( !(_x_pc1_l2 != 0)) && (( !(_x_pc1_l0 != 0)) && ( !(_x_pc1_l1 != 0)))) && ((pc1_l2 != 0) && (( !(pc1_l0 != 0)) && ( !(pc1_l1 != 0)))))))) && (((pc1_x <= 24.0) && (pc1_x == _x_pc1_x)) || ( !(((pc1_l2 != 0) && (( !(pc1_l0 != 0)) && ( !(pc1_l1 != 0)))) && (( !(_x_pc1_l2 != 0)) && ((_x_pc1_l1 != 0) && ( !(_x_pc1_l0 != 0)))))))) && (((_x_pc1_x == 0.0) && (((pc1_evt1 != 0) && ( !(pc1_evt0 != 0))) && ((_x_pc1_l2 != 0) && ((_x_pc1_l1 != 0) && ( !(_x_pc1_l0 != 0)))))) || ( !((( !(pc1_l2 != 0)) && ((pc1_l1 != 0) && ( !(pc1_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc1_evt0 != 0)) && ( !(pc1_evt1 != 0))))))))) && (((( !(_x_pc1_l2 != 0)) && ((_x_pc1_l0 != 0) && ( !(_x_pc1_l1 != 0)))) || (( !(_x_pc1_l2 != 0)) && ((_x_pc1_l0 != 0) && (_x_pc1_l1 != 0)))) || ( !(((pc1_l2 != 0) && ((pc1_l1 != 0) && ( !(pc1_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc1_evt0 != 0)) && ( !(pc1_evt1 != 0))))))))) && (((pc1_x == _x_pc1_x) && (((pc1_evt0 != 0) && (pc1_evt1 != 0)) && (50.0 <= pc1_x))) || ( !(((pc1_l2 != 0) && ((pc1_l1 != 0) && ( !(pc1_l0 != 0)))) && (( !(_x_pc1_l2 != 0)) && ((_x_pc1_l0 != 0) && (_x_pc1_l1 != 0))))))) && (((_x_pc1_x == 0.0) && (((pc1_evt0 != 0) && ( !(pc1_evt1 != 0))) && (pc1_x <= 25.0))) || ( !(((pc1_l2 != 0) && ((pc1_l1 != 0) && ( !(pc1_l0 != 0)))) && (( !(_x_pc1_l2 != 0)) && ((_x_pc1_l0 != 0) && ( !(_x_pc1_l1 != 0)))))))) && (((((pc1_evt0 != 0) && (pc1_evt1 != 0)) && (pc1_x == _x_pc1_x)) && (((_x_pc1_l2 != 0) && ((_x_pc1_l0 != 0) && ( !(_x_pc1_l1 != 0)))) || (( !(_x_pc1_l2 != 0)) && ((_x_pc1_l0 != 0) && (_x_pc1_l1 != 0))))) || ( !((( !(pc1_l2 != 0)) && ((pc1_l0 != 0) && ( !(pc1_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc1_evt0 != 0)) && ( !(pc1_evt1 != 0))))))))) && ((25.0 <= pc1_x) || ( !((( !(pc1_l2 != 0)) && ((pc1_l0 != 0) && ( !(pc1_l1 != 0)))) && (( !(_x_pc1_l2 != 0)) && ((_x_pc1_l0 != 0) && (_x_pc1_l1 != 0))))))) && ((pc1_x <= 24.0) || ( !((( !(pc1_l2 != 0)) && ((pc1_l0 != 0) && ( !(pc1_l1 != 0)))) && ((_x_pc1_l2 != 0) && ((_x_pc1_l0 != 0) && ( !(_x_pc1_l1 != 0)))))))) && ((( !(_x_pc1_l2 != 0)) && ((_x_pc1_l0 != 0) && (_x_pc1_l1 != 0))) || ( !((( !(pc1_l2 != 0)) && ((pc1_l0 != 0) && (pc1_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc1_evt0 != 0)) && ( !(pc1_evt1 != 0))))))))) && ((( !(_x_pc1_l2 != 0)) && (( !(_x_pc1_l0 != 0)) && ( !(_x_pc1_l1 != 0)))) || ( !(((pc1_l2 != 0) && ((pc1_l0 != 0) && ( !(pc1_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc1_evt0 != 0)) && ( !(pc1_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_pc0_evt0 != 0)) && ( !(_x_pc0_evt1 != 0))) || ((_x_pc0_evt1 != 0) && ( !(_x_pc0_evt0 != 0)))) || (((_x_pc0_evt0 != 0) && ( !(_x_pc0_evt1 != 0))) || ((_x_pc0_evt0 != 0) && (_x_pc0_evt1 != 0)))) && ((( !(_x_pc0_l2 != 0)) && ((_x_pc0_l0 != 0) && (_x_pc0_l1 != 0))) || ((((( !(_x_pc0_l2 != 0)) && (( !(_x_pc0_l0 != 0)) && ( !(_x_pc0_l1 != 0)))) || ((_x_pc0_l2 != 0) && (( !(_x_pc0_l0 != 0)) && ( !(_x_pc0_l1 != 0))))) || ((( !(_x_pc0_l2 != 0)) && ((_x_pc0_l1 != 0) && ( !(_x_pc0_l0 != 0)))) || ((_x_pc0_l2 != 0) && ((_x_pc0_l1 != 0) && ( !(_x_pc0_l0 != 0)))))) || ((( !(_x_pc0_l2 != 0)) && ((_x_pc0_l0 != 0) && ( !(_x_pc0_l1 != 0)))) || ((_x_pc0_l2 != 0) && ((_x_pc0_l0 != 0) && ( !(_x_pc0_l1 != 0)))))))) && ((delta <= 0.0) || (((((pc0_l0 != 0) == (_x_pc0_l0 != 0)) && ((pc0_l1 != 0) == (_x_pc0_l1 != 0))) && ((pc0_l2 != 0) == (_x_pc0_l2 != 0))) && ((delta + (pc0_x + (-1.0 * _x_pc0_x))) == 0.0)))) && ((((((pc0_l0 != 0) == (_x_pc0_l0 != 0)) && ((pc0_l1 != 0) == (_x_pc0_l1 != 0))) && ((pc0_l2 != 0) == (_x_pc0_l2 != 0))) && ((delta + (pc0_x + (-1.0 * _x_pc0_x))) == 0.0)) || ( !(( !(pc0_evt0 != 0)) && ( !(pc0_evt1 != 0)))))) && (((((pc0_evt0 != 0) && (pc0_evt1 != 0)) && (pc0_x <= 50.0)) && (((_x_pc0_l2 != 0) && (( !(_x_pc0_l0 != 0)) && ( !(_x_pc0_l1 != 0)))) && (_x_pc0_x == 0.0))) || ( !((( !(pc0_l2 != 0)) && (( !(pc0_l0 != 0)) && ( !(pc0_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc0_evt0 != 0)) && ( !(pc0_evt1 != 0))))))))) && ((((pc0_evt0 != 0) && (pc0_evt1 != 0)) && ((( !(_x_pc0_l2 != 0)) && (( !(_x_pc0_l0 != 0)) && ( !(_x_pc0_l1 != 0)))) || (( !(_x_pc0_l2 != 0)) && ((_x_pc0_l1 != 0) && ( !(_x_pc0_l0 != 0)))))) || ( !(((pc0_l2 != 0) && (( !(pc0_l0 != 0)) && ( !(pc0_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc0_evt0 != 0)) && ( !(pc0_evt1 != 0))))))))) && (((_x_pc0_x == 0.0) && (25.0 <= pc0_x)) || ( !((( !(_x_pc0_l2 != 0)) && (( !(_x_pc0_l0 != 0)) && ( !(_x_pc0_l1 != 0)))) && ((pc0_l2 != 0) && (( !(pc0_l0 != 0)) && ( !(pc0_l1 != 0)))))))) && (((pc0_x <= 24.0) && (pc0_x == _x_pc0_x)) || ( !(((pc0_l2 != 0) && (( !(pc0_l0 != 0)) && ( !(pc0_l1 != 0)))) && (( !(_x_pc0_l2 != 0)) && ((_x_pc0_l1 != 0) && ( !(_x_pc0_l0 != 0)))))))) && (((_x_pc0_x == 0.0) && (((pc0_evt1 != 0) && ( !(pc0_evt0 != 0))) && ((_x_pc0_l2 != 0) && ((_x_pc0_l1 != 0) && ( !(_x_pc0_l0 != 0)))))) || ( !((( !(pc0_l2 != 0)) && ((pc0_l1 != 0) && ( !(pc0_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc0_evt0 != 0)) && ( !(pc0_evt1 != 0))))))))) && (((( !(_x_pc0_l2 != 0)) && ((_x_pc0_l0 != 0) && ( !(_x_pc0_l1 != 0)))) || (( !(_x_pc0_l2 != 0)) && ((_x_pc0_l0 != 0) && (_x_pc0_l1 != 0)))) || ( !(((pc0_l2 != 0) && ((pc0_l1 != 0) && ( !(pc0_l0 != 0)))) && ((delta == 0.0) && ( !(( !(pc0_evt0 != 0)) && ( !(pc0_evt1 != 0))))))))) && (((pc0_x == _x_pc0_x) && (((pc0_evt0 != 0) && (pc0_evt1 != 0)) && (50.0 <= pc0_x))) || ( !(((pc0_l2 != 0) && ((pc0_l1 != 0) && ( !(pc0_l0 != 0)))) && (( !(_x_pc0_l2 != 0)) && ((_x_pc0_l0 != 0) && (_x_pc0_l1 != 0))))))) && (((_x_pc0_x == 0.0) && (((pc0_evt0 != 0) && ( !(pc0_evt1 != 0))) && (pc0_x <= 25.0))) || ( !(((pc0_l2 != 0) && ((pc0_l1 != 0) && ( !(pc0_l0 != 0)))) && (( !(_x_pc0_l2 != 0)) && ((_x_pc0_l0 != 0) && ( !(_x_pc0_l1 != 0)))))))) && (((((pc0_evt0 != 0) && (pc0_evt1 != 0)) && (pc0_x == _x_pc0_x)) && (((_x_pc0_l2 != 0) && ((_x_pc0_l0 != 0) && ( !(_x_pc0_l1 != 0)))) || (( !(_x_pc0_l2 != 0)) && ((_x_pc0_l0 != 0) && (_x_pc0_l1 != 0))))) || ( !((( !(pc0_l2 != 0)) && ((pc0_l0 != 0) && ( !(pc0_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc0_evt0 != 0)) && ( !(pc0_evt1 != 0))))))))) && ((25.0 <= pc0_x) || ( !((( !(pc0_l2 != 0)) && ((pc0_l0 != 0) && ( !(pc0_l1 != 0)))) && (( !(_x_pc0_l2 != 0)) && ((_x_pc0_l0 != 0) && (_x_pc0_l1 != 0))))))) && ((pc0_x <= 24.0) || ( !((( !(pc0_l2 != 0)) && ((pc0_l0 != 0) && ( !(pc0_l1 != 0)))) && ((_x_pc0_l2 != 0) && ((_x_pc0_l0 != 0) && ( !(_x_pc0_l1 != 0)))))))) && ((( !(_x_pc0_l2 != 0)) && ((_x_pc0_l0 != 0) && (_x_pc0_l1 != 0))) || ( !((( !(pc0_l2 != 0)) && ((pc0_l0 != 0) && (pc0_l1 != 0))) && ((delta == 0.0) && ( !(( !(pc0_evt0 != 0)) && ( !(pc0_evt1 != 0))))))))) && ((( !(_x_pc0_l2 != 0)) && (( !(_x_pc0_l0 != 0)) && ( !(_x_pc0_l1 != 0)))) || ( !(((pc0_l2 != 0) && ((pc0_l0 != 0) && ( !(pc0_l1 != 0)))) && ((delta == 0.0) && ( !(( !(pc0_evt0 != 0)) && ( !(pc0_evt1 != 0))))))))) && ((((((( !(_x_a21_evt0 != 0)) && ( !(_x_a21_evt1 != 0))) || (((_x_a21_evt1 != 0) && ( !(_x_a21_evt0 != 0))) || ((_x_a21_evt0 != 0) && ( !(_x_a21_evt1 != 0))))) && (((a21_l != 0) == (_x_a21_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a21_evt0 != 0)) && ( !(a21_evt1 != 0))))))) && (((_x_id == 0) && ((((a21_evt1 != 0) && ( !(a21_evt0 != 0))) && (_x_a21_l != 0)) && (id == 22))) || ( !(( !(a21_l != 0)) && ((delta == 0.0) && ( !(( !(a21_evt0 != 0)) && ( !(a21_evt1 != 0))))))))) && (((((a21_evt0 != 0) && ( !(a21_evt1 != 0))) && ( !(_x_a21_l != 0))) && (_x_id == 22)) || ( !((a21_l != 0) && ((delta == 0.0) && ( !(( !(a21_evt0 != 0)) && ( !(a21_evt1 != 0))))))))) && ((((((( !(_x_a20_evt0 != 0)) && ( !(_x_a20_evt1 != 0))) || (((_x_a20_evt1 != 0) && ( !(_x_a20_evt0 != 0))) || ((_x_a20_evt0 != 0) && ( !(_x_a20_evt1 != 0))))) && (((a20_l != 0) == (_x_a20_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a20_evt0 != 0)) && ( !(a20_evt1 != 0))))))) && (((_x_id == 0) && ((((a20_evt1 != 0) && ( !(a20_evt0 != 0))) && (_x_a20_l != 0)) && (id == 21))) || ( !(( !(a20_l != 0)) && ((delta == 0.0) && ( !(( !(a20_evt0 != 0)) && ( !(a20_evt1 != 0))))))))) && (((((a20_evt0 != 0) && ( !(a20_evt1 != 0))) && ( !(_x_a20_l != 0))) && (_x_id == 21)) || ( !((a20_l != 0) && ((delta == 0.0) && ( !(( !(a20_evt0 != 0)) && ( !(a20_evt1 != 0))))))))) && ((((((( !(_x_a19_evt0 != 0)) && ( !(_x_a19_evt1 != 0))) || (((_x_a19_evt1 != 0) && ( !(_x_a19_evt0 != 0))) || ((_x_a19_evt0 != 0) && ( !(_x_a19_evt1 != 0))))) && (((a19_l != 0) == (_x_a19_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a19_evt0 != 0)) && ( !(a19_evt1 != 0))))))) && (((_x_id == 0) && ((((a19_evt1 != 0) && ( !(a19_evt0 != 0))) && (_x_a19_l != 0)) && (id == 20))) || ( !(( !(a19_l != 0)) && ((delta == 0.0) && ( !(( !(a19_evt0 != 0)) && ( !(a19_evt1 != 0))))))))) && (((((a19_evt0 != 0) && ( !(a19_evt1 != 0))) && ( !(_x_a19_l != 0))) && (_x_id == 20)) || ( !((a19_l != 0) && ((delta == 0.0) && ( !(( !(a19_evt0 != 0)) && ( !(a19_evt1 != 0))))))))) && ((((((( !(_x_a18_evt0 != 0)) && ( !(_x_a18_evt1 != 0))) || (((_x_a18_evt1 != 0) && ( !(_x_a18_evt0 != 0))) || ((_x_a18_evt0 != 0) && ( !(_x_a18_evt1 != 0))))) && (((a18_l != 0) == (_x_a18_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a18_evt0 != 0)) && ( !(a18_evt1 != 0))))))) && (((_x_id == 0) && ((((a18_evt1 != 0) && ( !(a18_evt0 != 0))) && (_x_a18_l != 0)) && (id == 19))) || ( !(( !(a18_l != 0)) && ((delta == 0.0) && ( !(( !(a18_evt0 != 0)) && ( !(a18_evt1 != 0))))))))) && (((((a18_evt0 != 0) && ( !(a18_evt1 != 0))) && ( !(_x_a18_l != 0))) && (_x_id == 19)) || ( !((a18_l != 0) && ((delta == 0.0) && ( !(( !(a18_evt0 != 0)) && ( !(a18_evt1 != 0))))))))) && ((((((( !(_x_a17_evt0 != 0)) && ( !(_x_a17_evt1 != 0))) || (((_x_a17_evt1 != 0) && ( !(_x_a17_evt0 != 0))) || ((_x_a17_evt0 != 0) && ( !(_x_a17_evt1 != 0))))) && (((a17_l != 0) == (_x_a17_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a17_evt0 != 0)) && ( !(a17_evt1 != 0))))))) && (((_x_id == 0) && ((((a17_evt1 != 0) && ( !(a17_evt0 != 0))) && (_x_a17_l != 0)) && (id == 18))) || ( !(( !(a17_l != 0)) && ((delta == 0.0) && ( !(( !(a17_evt0 != 0)) && ( !(a17_evt1 != 0))))))))) && (((((a17_evt0 != 0) && ( !(a17_evt1 != 0))) && ( !(_x_a17_l != 0))) && (_x_id == 18)) || ( !((a17_l != 0) && ((delta == 0.0) && ( !(( !(a17_evt0 != 0)) && ( !(a17_evt1 != 0))))))))) && ((((((( !(_x_a16_evt0 != 0)) && ( !(_x_a16_evt1 != 0))) || (((_x_a16_evt1 != 0) && ( !(_x_a16_evt0 != 0))) || ((_x_a16_evt0 != 0) && ( !(_x_a16_evt1 != 0))))) && (((a16_l != 0) == (_x_a16_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a16_evt0 != 0)) && ( !(a16_evt1 != 0))))))) && (((_x_id == 0) && ((((a16_evt1 != 0) && ( !(a16_evt0 != 0))) && (_x_a16_l != 0)) && (id == 17))) || ( !(( !(a16_l != 0)) && ((delta == 0.0) && ( !(( !(a16_evt0 != 0)) && ( !(a16_evt1 != 0))))))))) && (((((a16_evt0 != 0) && ( !(a16_evt1 != 0))) && ( !(_x_a16_l != 0))) && (_x_id == 17)) || ( !((a16_l != 0) && ((delta == 0.0) && ( !(( !(a16_evt0 != 0)) && ( !(a16_evt1 != 0))))))))) && ((((((( !(_x_a15_evt0 != 0)) && ( !(_x_a15_evt1 != 0))) || (((_x_a15_evt1 != 0) && ( !(_x_a15_evt0 != 0))) || ((_x_a15_evt0 != 0) && ( !(_x_a15_evt1 != 0))))) && (((a15_l != 0) == (_x_a15_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a15_evt0 != 0)) && ( !(a15_evt1 != 0))))))) && (((_x_id == 0) && ((((a15_evt1 != 0) && ( !(a15_evt0 != 0))) && (_x_a15_l != 0)) && (id == 16))) || ( !(( !(a15_l != 0)) && ((delta == 0.0) && ( !(( !(a15_evt0 != 0)) && ( !(a15_evt1 != 0))))))))) && (((((a15_evt0 != 0) && ( !(a15_evt1 != 0))) && ( !(_x_a15_l != 0))) && (_x_id == 16)) || ( !((a15_l != 0) && ((delta == 0.0) && ( !(( !(a15_evt0 != 0)) && ( !(a15_evt1 != 0))))))))) && ((((((( !(_x_a14_evt0 != 0)) && ( !(_x_a14_evt1 != 0))) || (((_x_a14_evt1 != 0) && ( !(_x_a14_evt0 != 0))) || ((_x_a14_evt0 != 0) && ( !(_x_a14_evt1 != 0))))) && (((a14_l != 0) == (_x_a14_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a14_evt0 != 0)) && ( !(a14_evt1 != 0))))))) && (((_x_id == 0) && ((((a14_evt1 != 0) && ( !(a14_evt0 != 0))) && (_x_a14_l != 0)) && (id == 15))) || ( !(( !(a14_l != 0)) && ((delta == 0.0) && ( !(( !(a14_evt0 != 0)) && ( !(a14_evt1 != 0))))))))) && (((((a14_evt0 != 0) && ( !(a14_evt1 != 0))) && ( !(_x_a14_l != 0))) && (_x_id == 15)) || ( !((a14_l != 0) && ((delta == 0.0) && ( !(( !(a14_evt0 != 0)) && ( !(a14_evt1 != 0))))))))) && ((((((( !(_x_a13_evt0 != 0)) && ( !(_x_a13_evt1 != 0))) || (((_x_a13_evt1 != 0) && ( !(_x_a13_evt0 != 0))) || ((_x_a13_evt0 != 0) && ( !(_x_a13_evt1 != 0))))) && (((a13_l != 0) == (_x_a13_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a13_evt0 != 0)) && ( !(a13_evt1 != 0))))))) && (((_x_id == 0) && ((((a13_evt1 != 0) && ( !(a13_evt0 != 0))) && (_x_a13_l != 0)) && (id == 14))) || ( !(( !(a13_l != 0)) && ((delta == 0.0) && ( !(( !(a13_evt0 != 0)) && ( !(a13_evt1 != 0))))))))) && (((((a13_evt0 != 0) && ( !(a13_evt1 != 0))) && ( !(_x_a13_l != 0))) && (_x_id == 14)) || ( !((a13_l != 0) && ((delta == 0.0) && ( !(( !(a13_evt0 != 0)) && ( !(a13_evt1 != 0))))))))) && ((((((( !(_x_a12_evt0 != 0)) && ( !(_x_a12_evt1 != 0))) || (((_x_a12_evt1 != 0) && ( !(_x_a12_evt0 != 0))) || ((_x_a12_evt0 != 0) && ( !(_x_a12_evt1 != 0))))) && (((a12_l != 0) == (_x_a12_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a12_evt0 != 0)) && ( !(a12_evt1 != 0))))))) && (((_x_id == 0) && ((((a12_evt1 != 0) && ( !(a12_evt0 != 0))) && (_x_a12_l != 0)) && (id == 13))) || ( !(( !(a12_l != 0)) && ((delta == 0.0) && ( !(( !(a12_evt0 != 0)) && ( !(a12_evt1 != 0))))))))) && (((((a12_evt0 != 0) && ( !(a12_evt1 != 0))) && ( !(_x_a12_l != 0))) && (_x_id == 13)) || ( !((a12_l != 0) && ((delta == 0.0) && ( !(( !(a12_evt0 != 0)) && ( !(a12_evt1 != 0))))))))) && ((((((( !(_x_a11_evt0 != 0)) && ( !(_x_a11_evt1 != 0))) || (((_x_a11_evt1 != 0) && ( !(_x_a11_evt0 != 0))) || ((_x_a11_evt0 != 0) && ( !(_x_a11_evt1 != 0))))) && (((a11_l != 0) == (_x_a11_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a11_evt0 != 0)) && ( !(a11_evt1 != 0))))))) && (((_x_id == 0) && ((((a11_evt1 != 0) && ( !(a11_evt0 != 0))) && (_x_a11_l != 0)) && (id == 12))) || ( !(( !(a11_l != 0)) && ((delta == 0.0) && ( !(( !(a11_evt0 != 0)) && ( !(a11_evt1 != 0))))))))) && (((((a11_evt0 != 0) && ( !(a11_evt1 != 0))) && ( !(_x_a11_l != 0))) && (_x_id == 12)) || ( !((a11_l != 0) && ((delta == 0.0) && ( !(( !(a11_evt0 != 0)) && ( !(a11_evt1 != 0))))))))) && ((((((( !(_x_a10_evt0 != 0)) && ( !(_x_a10_evt1 != 0))) || (((_x_a10_evt1 != 0) && ( !(_x_a10_evt0 != 0))) || ((_x_a10_evt0 != 0) && ( !(_x_a10_evt1 != 0))))) && (((a10_l != 0) == (_x_a10_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a10_evt0 != 0)) && ( !(a10_evt1 != 0))))))) && (((_x_id == 0) && ((((a10_evt1 != 0) && ( !(a10_evt0 != 0))) && (_x_a10_l != 0)) && (id == 11))) || ( !(( !(a10_l != 0)) && ((delta == 0.0) && ( !(( !(a10_evt0 != 0)) && ( !(a10_evt1 != 0))))))))) && (((((a10_evt0 != 0) && ( !(a10_evt1 != 0))) && ( !(_x_a10_l != 0))) && (_x_id == 11)) || ( !((a10_l != 0) && ((delta == 0.0) && ( !(( !(a10_evt0 != 0)) && ( !(a10_evt1 != 0))))))))) && ((((((( !(_x_a9_evt0 != 0)) && ( !(_x_a9_evt1 != 0))) || (((_x_a9_evt1 != 0) && ( !(_x_a9_evt0 != 0))) || ((_x_a9_evt0 != 0) && ( !(_x_a9_evt1 != 0))))) && (((a9_l != 0) == (_x_a9_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a9_evt0 != 0)) && ( !(a9_evt1 != 0))))))) && (((_x_id == 0) && ((((a9_evt1 != 0) && ( !(a9_evt0 != 0))) && (_x_a9_l != 0)) && (id == 10))) || ( !(( !(a9_l != 0)) && ((delta == 0.0) && ( !(( !(a9_evt0 != 0)) && ( !(a9_evt1 != 0))))))))) && (((((a9_evt0 != 0) && ( !(a9_evt1 != 0))) && ( !(_x_a9_l != 0))) && (_x_id == 10)) || ( !((a9_l != 0) && ((delta == 0.0) && ( !(( !(a9_evt0 != 0)) && ( !(a9_evt1 != 0))))))))) && ((((((( !(_x_a8_evt0 != 0)) && ( !(_x_a8_evt1 != 0))) || (((_x_a8_evt1 != 0) && ( !(_x_a8_evt0 != 0))) || ((_x_a8_evt0 != 0) && ( !(_x_a8_evt1 != 0))))) && (((a8_l != 0) == (_x_a8_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a8_evt0 != 0)) && ( !(a8_evt1 != 0))))))) && (((_x_id == 0) && ((((a8_evt1 != 0) && ( !(a8_evt0 != 0))) && (_x_a8_l != 0)) && (id == 9))) || ( !(( !(a8_l != 0)) && ((delta == 0.0) && ( !(( !(a8_evt0 != 0)) && ( !(a8_evt1 != 0))))))))) && (((((a8_evt0 != 0) && ( !(a8_evt1 != 0))) && ( !(_x_a8_l != 0))) && (_x_id == 9)) || ( !((a8_l != 0) && ((delta == 0.0) && ( !(( !(a8_evt0 != 0)) && ( !(a8_evt1 != 0))))))))) && ((((((( !(_x_a7_evt0 != 0)) && ( !(_x_a7_evt1 != 0))) || (((_x_a7_evt1 != 0) && ( !(_x_a7_evt0 != 0))) || ((_x_a7_evt0 != 0) && ( !(_x_a7_evt1 != 0))))) && (((a7_l != 0) == (_x_a7_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a7_evt0 != 0)) && ( !(a7_evt1 != 0))))))) && (((_x_id == 0) && ((((a7_evt1 != 0) && ( !(a7_evt0 != 0))) && (_x_a7_l != 0)) && (id == 8))) || ( !(( !(a7_l != 0)) && ((delta == 0.0) && ( !(( !(a7_evt0 != 0)) && ( !(a7_evt1 != 0))))))))) && (((((a7_evt0 != 0) && ( !(a7_evt1 != 0))) && ( !(_x_a7_l != 0))) && (_x_id == 8)) || ( !((a7_l != 0) && ((delta == 0.0) && ( !(( !(a7_evt0 != 0)) && ( !(a7_evt1 != 0))))))))) && ((((((( !(_x_a6_evt0 != 0)) && ( !(_x_a6_evt1 != 0))) || (((_x_a6_evt1 != 0) && ( !(_x_a6_evt0 != 0))) || ((_x_a6_evt0 != 0) && ( !(_x_a6_evt1 != 0))))) && (((a6_l != 0) == (_x_a6_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a6_evt0 != 0)) && ( !(a6_evt1 != 0))))))) && (((_x_id == 0) && ((((a6_evt1 != 0) && ( !(a6_evt0 != 0))) && (_x_a6_l != 0)) && (id == 7))) || ( !(( !(a6_l != 0)) && ((delta == 0.0) && ( !(( !(a6_evt0 != 0)) && ( !(a6_evt1 != 0))))))))) && (((((a6_evt0 != 0) && ( !(a6_evt1 != 0))) && ( !(_x_a6_l != 0))) && (_x_id == 7)) || ( !((a6_l != 0) && ((delta == 0.0) && ( !(( !(a6_evt0 != 0)) && ( !(a6_evt1 != 0))))))))) && ((((((( !(_x_a5_evt0 != 0)) && ( !(_x_a5_evt1 != 0))) || (((_x_a5_evt1 != 0) && ( !(_x_a5_evt0 != 0))) || ((_x_a5_evt0 != 0) && ( !(_x_a5_evt1 != 0))))) && (((a5_l != 0) == (_x_a5_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a5_evt0 != 0)) && ( !(a5_evt1 != 0))))))) && (((_x_id == 0) && ((((a5_evt1 != 0) && ( !(a5_evt0 != 0))) && (_x_a5_l != 0)) && (id == 6))) || ( !(( !(a5_l != 0)) && ((delta == 0.0) && ( !(( !(a5_evt0 != 0)) && ( !(a5_evt1 != 0))))))))) && (((((a5_evt0 != 0) && ( !(a5_evt1 != 0))) && ( !(_x_a5_l != 0))) && (_x_id == 6)) || ( !((a5_l != 0) && ((delta == 0.0) && ( !(( !(a5_evt0 != 0)) && ( !(a5_evt1 != 0))))))))) && ((((((( !(_x_a4_evt0 != 0)) && ( !(_x_a4_evt1 != 0))) || (((_x_a4_evt1 != 0) && ( !(_x_a4_evt0 != 0))) || ((_x_a4_evt0 != 0) && ( !(_x_a4_evt1 != 0))))) && (((a4_l != 0) == (_x_a4_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a4_evt0 != 0)) && ( !(a4_evt1 != 0))))))) && (((_x_id == 0) && ((((a4_evt1 != 0) && ( !(a4_evt0 != 0))) && (_x_a4_l != 0)) && (id == 5))) || ( !(( !(a4_l != 0)) && ((delta == 0.0) && ( !(( !(a4_evt0 != 0)) && ( !(a4_evt1 != 0))))))))) && (((((a4_evt0 != 0) && ( !(a4_evt1 != 0))) && ( !(_x_a4_l != 0))) && (_x_id == 5)) || ( !((a4_l != 0) && ((delta == 0.0) && ( !(( !(a4_evt0 != 0)) && ( !(a4_evt1 != 0))))))))) && ((((((( !(_x_a3_evt0 != 0)) && ( !(_x_a3_evt1 != 0))) || (((_x_a3_evt1 != 0) && ( !(_x_a3_evt0 != 0))) || ((_x_a3_evt0 != 0) && ( !(_x_a3_evt1 != 0))))) && (((a3_l != 0) == (_x_a3_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a3_evt0 != 0)) && ( !(a3_evt1 != 0))))))) && (((_x_id == 0) && ((((a3_evt1 != 0) && ( !(a3_evt0 != 0))) && (_x_a3_l != 0)) && (id == 4))) || ( !(( !(a3_l != 0)) && ((delta == 0.0) && ( !(( !(a3_evt0 != 0)) && ( !(a3_evt1 != 0))))))))) && (((((a3_evt0 != 0) && ( !(a3_evt1 != 0))) && ( !(_x_a3_l != 0))) && (_x_id == 4)) || ( !((a3_l != 0) && ((delta == 0.0) && ( !(( !(a3_evt0 != 0)) && ( !(a3_evt1 != 0))))))))) && ((((((( !(_x_a2_evt0 != 0)) && ( !(_x_a2_evt1 != 0))) || (((_x_a2_evt1 != 0) && ( !(_x_a2_evt0 != 0))) || ((_x_a2_evt0 != 0) && ( !(_x_a2_evt1 != 0))))) && (((a2_l != 0) == (_x_a2_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a2_evt0 != 0)) && ( !(a2_evt1 != 0))))))) && (((_x_id == 0) && ((((a2_evt1 != 0) && ( !(a2_evt0 != 0))) && (_x_a2_l != 0)) && (id == 3))) || ( !(( !(a2_l != 0)) && ((delta == 0.0) && ( !(( !(a2_evt0 != 0)) && ( !(a2_evt1 != 0))))))))) && (((((a2_evt0 != 0) && ( !(a2_evt1 != 0))) && ( !(_x_a2_l != 0))) && (_x_id == 3)) || ( !((a2_l != 0) && ((delta == 0.0) && ( !(( !(a2_evt0 != 0)) && ( !(a2_evt1 != 0))))))))) && ((((((( !(_x_a1_evt0 != 0)) && ( !(_x_a1_evt1 != 0))) || (((_x_a1_evt1 != 0) && ( !(_x_a1_evt0 != 0))) || ((_x_a1_evt0 != 0) && ( !(_x_a1_evt1 != 0))))) && (((a1_l != 0) == (_x_a1_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a1_evt0 != 0)) && ( !(a1_evt1 != 0))))))) && (((_x_id == 0) && ((((a1_evt1 != 0) && ( !(a1_evt0 != 0))) && (_x_a1_l != 0)) && (id == 2))) || ( !(( !(a1_l != 0)) && ((delta == 0.0) && ( !(( !(a1_evt0 != 0)) && ( !(a1_evt1 != 0))))))))) && (((((a1_evt0 != 0) && ( !(a1_evt1 != 0))) && ( !(_x_a1_l != 0))) && (_x_id == 2)) || ( !((a1_l != 0) && ((delta == 0.0) && ( !(( !(a1_evt0 != 0)) && ( !(a1_evt1 != 0))))))))) && ((((((( !(_x_a0_evt0 != 0)) && ( !(_x_a0_evt1 != 0))) || (((_x_a0_evt1 != 0) && ( !(_x_a0_evt0 != 0))) || ((_x_a0_evt0 != 0) && ( !(_x_a0_evt1 != 0))))) && (((a0_l != 0) == (_x_a0_l != 0)) || ( !(( !(delta <= 0.0)) || (( !(a0_evt0 != 0)) && ( !(a0_evt1 != 0))))))) && ((((((a0_evt1 != 0) && ( !(a0_evt0 != 0))) && (_x_a0_l != 0)) && (id == 1)) && (_x_id == 0)) || ( !(( !(a0_l != 0)) && ((delta == 0.0) && ( !(( !(a0_evt0 != 0)) && ( !(a0_evt1 != 0))))))))) && (((_x_id == 1) && (((a0_evt0 != 0) && ( !(a0_evt1 != 0))) && ( !(_x_a0_l != 0)))) || ( !((a0_l != 0) && ((delta == 0.0) && ( !(( !(a0_evt0 != 0)) && ( !(a0_evt1 != 0))))))))) && ((((((((c_initial != 0) == (_x_c_initial != 0)) || ( !(( !(c_move != 0)) || ( !(delta <= 0.0))))) && ((((id == 0) && (_x_id == 1)) && ( !(_x_c_initial != 0))) || ( !((delta == 0.0) && ((c_move != 0) && (c_initial != 0)))))) && (( !(_x_c_initial != 0)) || ( !(((c_move != 0) && (delta == 0.0)) && ( !(c_initial != 0)))))) && ((_x_id == 1) || ( !(((delta == 0.0) && (22 <= id)) && (( !(_x_c_initial != 0)) && ( !(c_initial != 0))))))) && ((_x_id == 1) || ( !((( !(_x_c_initial != 0)) && ( !(c_initial != 0))) && ((delta == 0.0) && ( !(22 <= id))))))) && (0.0 <= _x_delta)))))))))))))))))))))))))))))))))))))))))))))) && ((_x_id == 21) || ((_x_id == 20) || ((_x_id == 19) || ((_x_id == 18) || ((_x_id == 17) || ((_x_id == 16) || ((_x_id == 15) || ((_x_id == 14) || ((_x_id == 13) || ((_x_id == 12) || ((_x_id == 11) || ((_x_id == 10) || ((_x_id == 9) || ((_x_id == 8) || ((_x_id == 7) || ((_x_id == 6) || ((_x_id == 5) || ((_x_id == 4) || ((_x_id == 3) || ((_x_id == 2) || ((_x_id == 1) || (_x_id == 0))))))))))))))))))))))) && ((id == _x_id) || ( !((( !(pc21_evt0 != 0)) && ( !(pc21_evt1 != 0))) && ((( !(pc20_evt0 != 0)) && ( !(pc20_evt1 != 0))) && ((( !(pc19_evt0 != 0)) && ( !(pc19_evt1 != 0))) && ((( !(pc18_evt0 != 0)) && ( !(pc18_evt1 != 0))) && ((( !(pc17_evt0 != 0)) && ( !(pc17_evt1 != 0))) && ((( !(pc16_evt0 != 0)) && ( !(pc16_evt1 != 0))) && ((( !(pc15_evt0 != 0)) && ( !(pc15_evt1 != 0))) && ((( !(pc14_evt0 != 0)) && ( !(pc14_evt1 != 0))) && ((( !(pc13_evt0 != 0)) && ( !(pc13_evt1 != 0))) && ((( !(pc12_evt0 != 0)) && ( !(pc12_evt1 != 0))) && ((( !(pc11_evt0 != 0)) && ( !(pc11_evt1 != 0))) && ((( !(pc10_evt0 != 0)) && ( !(pc10_evt1 != 0))) && ((( !(pc9_evt0 != 0)) && ( !(pc9_evt1 != 0))) && ((( !(pc8_evt0 != 0)) && ( !(pc8_evt1 != 0))) && ((( !(pc7_evt0 != 0)) && ( !(pc7_evt1 != 0))) && ((( !(pc6_evt0 != 0)) && ( !(pc6_evt1 != 0))) && ((( !(pc5_evt0 != 0)) && ( !(pc5_evt1 != 0))) && ((( !(pc4_evt0 != 0)) && ( !(pc4_evt1 != 0))) && ((( !(pc3_evt0 != 0)) && ( !(pc3_evt1 != 0))) && ((( !(pc2_evt0 != 0)) && ( !(pc2_evt1 != 0))) && ((( !(pc1_evt0 != 0)) && ( !(pc1_evt1 != 0))) && ((( !(pc0_evt0 != 0)) && ( !(pc0_evt1 != 0))) && ((( !(a21_evt0 != 0)) && ( !(a21_evt1 != 0))) && ((( !(a20_evt0 != 0)) && ( !(a20_evt1 != 0))) && ((( !(a19_evt0 != 0)) && ( !(a19_evt1 != 0))) && ((( !(a18_evt0 != 0)) && ( !(a18_evt1 != 0))) && ((( !(a17_evt0 != 0)) && ( !(a17_evt1 != 0))) && ((( !(a16_evt0 != 0)) && ( !(a16_evt1 != 0))) && ((( !(a15_evt0 != 0)) && ( !(a15_evt1 != 0))) && ((( !(a14_evt0 != 0)) && ( !(a14_evt1 != 0))) && ((( !(a13_evt0 != 0)) && ( !(a13_evt1 != 0))) && ((( !(a12_evt0 != 0)) && ( !(a12_evt1 != 0))) && ((( !(a11_evt0 != 0)) && ( !(a11_evt1 != 0))) && ((( !(a10_evt0 != 0)) && ( !(a10_evt1 != 0))) && ((( !(a9_evt0 != 0)) && ( !(a9_evt1 != 0))) && ((( !(a8_evt0 != 0)) && ( !(a8_evt1 != 0))) && ((( !(a7_evt0 != 0)) && ( !(a7_evt1 != 0))) && ((( !(a6_evt0 != 0)) && ( !(a6_evt1 != 0))) && ((( !(a5_evt0 != 0)) && ( !(a5_evt1 != 0))) && ((( !(a4_evt0 != 0)) && ( !(a4_evt1 != 0))) && ((( !(a3_evt0 != 0)) && ( !(a3_evt1 != 0))) && ((( !(a2_evt0 != 0)) && ( !(a2_evt1 != 0))) && ((( !(a1_evt0 != 0)) && ( !(a1_evt1 != 0))) && (( !(c_move != 0)) && (( !(a0_evt0 != 0)) && ( !(a0_evt1 != 0)))))))))))))))))))))))))))))))))))))))))))))))))) && ((((a0_evt1 != 0) && ( !(a0_evt0 != 0))) == ((pc0_evt1 != 0) && ( !(pc0_evt0 != 0)))) || ( !(delta == 0.0)))) && (( !(delta == 0.0)) || (((a0_evt0 != 0) && ( !(a0_evt1 != 0))) == ((pc0_evt0 != 0) && ( !(pc0_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a1_evt1 != 0) && ( !(a1_evt0 != 0))) == ((pc1_evt1 != 0) && ( !(pc1_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a1_evt0 != 0) && ( !(a1_evt1 != 0))) == ((pc1_evt0 != 0) && ( !(pc1_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a2_evt1 != 0) && ( !(a2_evt0 != 0))) == ((pc2_evt1 != 0) && ( !(pc2_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a2_evt0 != 0) && ( !(a2_evt1 != 0))) == ((pc2_evt0 != 0) && ( !(pc2_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a3_evt1 != 0) && ( !(a3_evt0 != 0))) == ((pc3_evt1 != 0) && ( !(pc3_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a3_evt0 != 0) && ( !(a3_evt1 != 0))) == ((pc3_evt0 != 0) && ( !(pc3_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a4_evt1 != 0) && ( !(a4_evt0 != 0))) == ((pc4_evt1 != 0) && ( !(pc4_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a4_evt0 != 0) && ( !(a4_evt1 != 0))) == ((pc4_evt0 != 0) && ( !(pc4_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a5_evt1 != 0) && ( !(a5_evt0 != 0))) == ((pc5_evt1 != 0) && ( !(pc5_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a5_evt0 != 0) && ( !(a5_evt1 != 0))) == ((pc5_evt0 != 0) && ( !(pc5_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a6_evt1 != 0) && ( !(a6_evt0 != 0))) == ((pc6_evt1 != 0) && ( !(pc6_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a6_evt0 != 0) && ( !(a6_evt1 != 0))) == ((pc6_evt0 != 0) && ( !(pc6_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a7_evt1 != 0) && ( !(a7_evt0 != 0))) == ((pc7_evt1 != 0) && ( !(pc7_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a7_evt0 != 0) && ( !(a7_evt1 != 0))) == ((pc7_evt0 != 0) && ( !(pc7_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a8_evt1 != 0) && ( !(a8_evt0 != 0))) == ((pc8_evt1 != 0) && ( !(pc8_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a8_evt0 != 0) && ( !(a8_evt1 != 0))) == ((pc8_evt0 != 0) && ( !(pc8_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a9_evt1 != 0) && ( !(a9_evt0 != 0))) == ((pc9_evt1 != 0) && ( !(pc9_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a9_evt0 != 0) && ( !(a9_evt1 != 0))) == ((pc9_evt0 != 0) && ( !(pc9_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a10_evt1 != 0) && ( !(a10_evt0 != 0))) == ((pc10_evt1 != 0) && ( !(pc10_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a10_evt0 != 0) && ( !(a10_evt1 != 0))) == ((pc10_evt0 != 0) && ( !(pc10_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a11_evt1 != 0) && ( !(a11_evt0 != 0))) == ((pc11_evt1 != 0) && ( !(pc11_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a11_evt0 != 0) && ( !(a11_evt1 != 0))) == ((pc11_evt0 != 0) && ( !(pc11_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a12_evt1 != 0) && ( !(a12_evt0 != 0))) == ((pc12_evt1 != 0) && ( !(pc12_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a12_evt0 != 0) && ( !(a12_evt1 != 0))) == ((pc12_evt0 != 0) && ( !(pc12_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a13_evt1 != 0) && ( !(a13_evt0 != 0))) == ((pc13_evt1 != 0) && ( !(pc13_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a13_evt0 != 0) && ( !(a13_evt1 != 0))) == ((pc13_evt0 != 0) && ( !(pc13_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a14_evt1 != 0) && ( !(a14_evt0 != 0))) == ((pc14_evt1 != 0) && ( !(pc14_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a14_evt0 != 0) && ( !(a14_evt1 != 0))) == ((pc14_evt0 != 0) && ( !(pc14_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a15_evt1 != 0) && ( !(a15_evt0 != 0))) == ((pc15_evt1 != 0) && ( !(pc15_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a15_evt0 != 0) && ( !(a15_evt1 != 0))) == ((pc15_evt0 != 0) && ( !(pc15_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a16_evt1 != 0) && ( !(a16_evt0 != 0))) == ((pc16_evt1 != 0) && ( !(pc16_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a16_evt0 != 0) && ( !(a16_evt1 != 0))) == ((pc16_evt0 != 0) && ( !(pc16_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a17_evt1 != 0) && ( !(a17_evt0 != 0))) == ((pc17_evt1 != 0) && ( !(pc17_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a17_evt0 != 0) && ( !(a17_evt1 != 0))) == ((pc17_evt0 != 0) && ( !(pc17_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a18_evt1 != 0) && ( !(a18_evt0 != 0))) == ((pc18_evt1 != 0) && ( !(pc18_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a18_evt0 != 0) && ( !(a18_evt1 != 0))) == ((pc18_evt0 != 0) && ( !(pc18_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a19_evt1 != 0) && ( !(a19_evt0 != 0))) == ((pc19_evt1 != 0) && ( !(pc19_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a19_evt0 != 0) && ( !(a19_evt1 != 0))) == ((pc19_evt0 != 0) && ( !(pc19_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a20_evt1 != 0) && ( !(a20_evt0 != 0))) == ((pc20_evt1 != 0) && ( !(pc20_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a20_evt0 != 0) && ( !(a20_evt1 != 0))) == ((pc20_evt0 != 0) && ( !(pc20_evt1 != 0)))))) && (( !(delta == 0.0)) || (((a21_evt1 != 0) && ( !(a21_evt0 != 0))) == ((pc21_evt1 != 0) && ( !(pc21_evt0 != 0)))))) && (( !(delta == 0.0)) || (((a21_evt0 != 0) && ( !(a21_evt1 != 0))) == ((pc21_evt0 != 0) && ( !(pc21_evt1 != 0)))))) && (((delta == _x__diverge_delta) || ( !(1.0 <= _diverge_delta))) && ((1.0 <= _diverge_delta) || ((delta + (_diverge_delta + (-1.0 * _x__diverge_delta))) == 0.0)))); pc21_l0 = _x_pc21_l0; pc21_evt1 = _x_pc21_evt1; pc21_evt0 = _x_pc21_evt0; pc20_l1 = _x_pc20_l1; pc20_l0 = _x_pc20_l0; pc20_evt0 = _x_pc20_evt0; pc19_l0 = _x_pc19_l0; pc19_evt1 = _x_pc19_evt1; pc19_evt0 = _x_pc19_evt0; pc18_l1 = _x_pc18_l1; pc18_evt0 = _x_pc18_evt0; pc17_l1 = _x_pc17_l1; pc17_l0 = _x_pc17_l0; pc17_evt1 = _x_pc17_evt1; pc17_evt0 = _x_pc17_evt0; pc16_l1 = _x_pc16_l1; pc16_l0 = _x_pc16_l0; pc15_l1 = _x_pc15_l1; pc15_l0 = _x_pc15_l0; pc15_evt1 = _x_pc15_evt1; pc21_l2 = _x_pc21_l2; pc15_evt0 = _x_pc15_evt0; pc14_l1 = _x_pc14_l1; pc14_evt1 = _x_pc14_evt1; pc20_l2 = _x_pc20_l2; pc14_evt0 = _x_pc14_evt0; pc13_l1 = _x_pc13_l1; pc13_l0 = _x_pc13_l0; pc13_evt1 = _x_pc13_evt1; pc12_l1 = _x_pc12_l1; pc12_l0 = _x_pc12_l0; pc12_evt1 = _x_pc12_evt1; pc18_l2 = _x_pc18_l2; pc12_evt0 = _x_pc12_evt0; pc11_l0 = _x_pc11_l0; pc11_evt1 = _x_pc11_evt1; pc17_l2 = _x_pc17_l2; pc11_evt0 = _x_pc11_evt0; pc10_l1 = _x_pc10_l1; pc10_l0 = _x_pc10_l0; pc16_l2 = _x_pc16_l2; pc10_evt0 = _x_pc10_evt0; pc9_l0 = _x_pc9_l0; pc9_l1 = _x_pc9_l1; a5_evt0 = _x_a5_evt0; a15_evt1 = _x_a15_evt1; pc18_evt1 = _x_pc18_evt1; a4_evt0 = _x_a4_evt0; a14_evt1 = _x_a14_evt1; a3_evt0 = _x_a3_evt0; pc0_l0 = _x_pc0_l0; pc3_l1 = _x_pc3_l1; a13_evt1 = _x_a13_evt1; a2_evt0 = _x_a2_evt0; pc14_l0 = _x_pc14_l0; a12_evt1 = _x_a12_evt1; a11_evt1 = _x_a11_evt1; a10_evt1 = _x_a10_evt1; delta = _x_delta; pc2_evt1 = _x_pc2_evt1; pc5_l1 = _x_pc5_l1; a18_l = _x_a18_l; pc7_x = _x_pc7_x; pc19_l2 = _x_pc19_l2; pc13_evt0 = _x_pc13_evt0; a8_evt1 = _x_a8_evt1; pc19_l1 = _x_pc19_l1; a8_evt0 = _x_a8_evt0; pc16_evt1 = _x_pc16_evt1; a19_evt1 = _x_a19_evt1; pc9_evt1 = _x_pc9_evt1; pc20_evt1 = _x_pc20_evt1; a11_l = _x_a11_l; a1_evt1 = _x_a1_evt1; a21_evt1 = _x_a21_evt1; a2_l = _x_a2_l; a16_l = _x_a16_l; a6_evt1 = _x_a6_evt1; a15_evt0 = _x_a15_evt0; a7_l = _x_a7_l; pc11_l1 = _x_pc11_l1; a12_l = _x_a12_l; pc10_x = _x_pc10_x; pc1_l2 = _x_pc1_l2; a11_evt0 = _x_a11_evt0; pc5_x = _x_pc5_x; a3_l = _x_a3_l; pc9_x = _x_pc9_x; a7_evt0 = _x_a7_evt0; a18_evt1 = _x_a18_evt1; pc19_x = _x_pc19_x; pc10_l2 = _x_pc10_l2; pc4_evt0 = _x_pc4_evt0; a7_evt1 = _x_a7_evt1; pc21_x = _x_pc21_x; pc12_l2 = _x_pc12_l2; pc6_evt0 = _x_pc6_evt0; a16_evt0 = _x_a16_evt0; pc10_evt1 = _x_pc10_evt1; a8_l = _x_a8_l; a6_evt0 = _x_a6_evt0; a17_evt1 = _x_a17_evt1; a10_l = _x_a10_l; c_initial = _x_c_initial; c_move = _x_c_move; a9_evt0 = _x_a9_evt0; _diverge_delta = _x__diverge_delta; pc7_l1 = _x_pc7_l1; a20_evt1 = _x_a20_evt1; pc8_l0 = _x_pc8_l0; a1_l = _x_a1_l; a17_evt0 = _x_a17_evt0; a0_evt1 = _x_a0_evt1; pc0_l2 = _x_pc0_l2; id = _x_id; a14_l = _x_a14_l; a4_evt1 = _x_a4_evt1; a5_l = _x_a5_l; a13_l = _x_a13_l; a3_evt1 = _x_a3_evt1; a0_evt0 = _x_a0_evt0; pc0_l1 = _x_pc0_l1; pc12_x = _x_pc12_x; pc3_l2 = _x_pc3_l2; a12_evt0 = _x_a12_evt0; pc18_l0 = _x_pc18_l0; a4_l = _x_a4_l; pc14_l2 = _x_pc14_l2; pc8_evt0 = _x_pc8_evt0; pc21_l1 = _x_pc21_l1; a15_l = _x_a15_l; a14_evt0 = _x_a14_evt0; pc3_l0 = _x_pc3_l0; pc4_evt1 = _x_pc4_evt1; a18_evt0 = _x_a18_evt0; a19_l = _x_a19_l; pc16_evt0 = _x_pc16_evt0; a19_evt0 = _x_a19_evt0; pc15_l2 = _x_pc15_l2; pc9_evt0 = _x_pc9_evt0; a6_l = _x_a6_l; pc0_x = _x_pc0_x; pc7_l0 = _x_pc7_l0; a20_evt0 = _x_a20_evt0; a21_l = _x_a21_l; pc5_l0 = _x_pc5_l0; pc17_x = _x_pc17_x; pc2_evt0 = _x_pc2_evt0; pc8_l2 = _x_pc8_l2; a21_evt0 = _x_a21_evt0; pc5_evt1 = _x_pc5_evt1; pc3_evt1 = _x_pc3_evt1; pc15_x = _x_pc15_x; pc6_l2 = _x_pc6_l2; pc0_evt1 = _x_pc0_evt1; a10_evt0 = _x_a10_evt0; pc1_x = _x_pc1_x; pc1_evt1 = _x_pc1_evt1; pc1_l0 = _x_pc1_l0; pc13_x = _x_pc13_x; a20_l = _x_a20_l; pc4_l2 = _x_pc4_l2; a9_l = _x_a9_l; pc1_l1 = _x_pc1_l1; pc2_x = _x_pc2_x; pc2_l0 = _x_pc2_l0; pc14_x = _x_pc14_x; pc5_l2 = _x_pc5_l2; pc2_l1 = _x_pc2_l1; pc11_x = _x_pc11_x; a13_evt0 = _x_a13_evt0; pc2_l2 = _x_pc2_l2; a17_l = _x_a17_l; pc3_x = _x_pc3_x; pc18_x = _x_pc18_x; pc9_l2 = _x_pc9_l2; a5_evt1 = _x_a5_evt1; pc3_evt0 = _x_pc3_evt0; pc4_x = _x_pc4_x; a9_evt1 = _x_a9_evt1; pc4_l0 = _x_pc4_l0; pc16_x = _x_pc16_x; pc1_evt0 = _x_pc1_evt0; pc7_l2 = _x_pc7_l2; pc4_l1 = _x_pc4_l1; pc20_x = _x_pc20_x; pc11_l2 = _x_pc11_l2; pc5_evt0 = _x_pc5_evt0; a0_l = _x_a0_l; pc6_x = _x_pc6_x; a16_evt1 = _x_a16_evt1; pc6_evt1 = _x_pc6_evt1; pc6_l0 = _x_pc6_l0; pc0_evt0 = _x_pc0_evt0; pc6_l1 = _x_pc6_l1; pc13_l2 = _x_pc13_l2; pc7_evt0 = _x_pc7_evt0; pc7_evt1 = _x_pc7_evt1; a2_evt1 = _x_a2_evt1; pc8_x = _x_pc8_x; a1_evt0 = _x_a1_evt0; pc8_evt1 = _x_pc8_evt1; pc8_l1 = _x_pc8_l1; } }
the_stack_data/92328270.c
#include <stdio.h> #define MAX_N 200 void Qshort(int* tab,int first,int last); int main() { int matrix[MAX_N]={0}; int N,i,j; scanf("%d",&N); int tmp; for (i = 0; i < N; i++) { for (j = 0; j < N; j++) { scanf("%d",&tmp); matrix[j] += tmp; } } Qshort(matrix,0,N-1); for (i = 0;i<N-1 && matrix[i] + matrix[i + 1]< 0; i += 2) { matrix[i] *= -1; matrix[i + 1] *= -1; } int sum = 0; for (i = 0; i < N; i++) { sum += matrix[i]; } printf("%d ",sum); return 0; } void Qshort(int* tab,int first,int last) { if(first>=last) return; int i=first; int j=last; int pivot=tab[first]; while(i<j) { while(i<j&&tab[j]>=pivot) --j; tab[i]=tab[j]; while(i<j&&tab[i]<pivot) ++i; tab[j]=tab[i]; } tab[i]=pivot; Qshort(tab,first,i-1); Qshort(tab,i+1,last); }
the_stack_data/37637772.c
// RUN: %bmc -bound 10 "%s" | FileCheck "%s" // RUN: %bmc -bound 10 -math-int "%s" | FileCheck "%s" // CHECK: Verification {{(SUCCESSFUL|BOUND REACHED)}} extern void __VERIFIER_error() __attribute__ ((__noreturn__)); extern int __VERIFIER_nondet_int(); int main() { int p1 = __VERIFIER_nondet_int(); // condition variable int lk1; // lock variable int p2 = __VERIFIER_nondet_int(); // condition variable int lk2; // lock variable int p3 = __VERIFIER_nondet_int(); // condition variable int lk3; // lock variable int p4 = __VERIFIER_nondet_int(); // condition variable int lk4; // lock variable int p5 = __VERIFIER_nondet_int(); // condition variable int lk5; // lock variable int p6 = __VERIFIER_nondet_int(); // condition variable int lk6; // lock variable int p7 = __VERIFIER_nondet_int(); // condition variable int lk7; // lock variable int p8 = __VERIFIER_nondet_int(); // condition variable int lk8; // lock variable int p9 = __VERIFIER_nondet_int(); // condition variable int lk9; // lock variable int p10 = __VERIFIER_nondet_int(); // condition variable int lk10; // lock variable int p11 = __VERIFIER_nondet_int(); // condition variable int lk11; // lock variable int p12 = __VERIFIER_nondet_int(); // condition variable int lk12; // lock variable int p13 = __VERIFIER_nondet_int(); // condition variable int lk13; // lock variable int p14 = __VERIFIER_nondet_int(); // condition variable int lk14; // lock variable int p15 = __VERIFIER_nondet_int(); // condition variable int lk15; // lock variable int cond; while(1) { cond = __VERIFIER_nondet_int(); if (cond == 0) { goto out; } else {} lk1 = 0; // initially lock is open lk2 = 0; // initially lock is open lk3 = 0; // initially lock is open lk4 = 0; // initially lock is open lk5 = 0; // initially lock is open lk6 = 0; // initially lock is open lk7 = 0; // initially lock is open lk8 = 0; // initially lock is open lk9 = 0; // initially lock is open lk10 = 0; // initially lock is open lk11 = 0; // initially lock is open lk12 = 0; // initially lock is open lk13 = 0; // initially lock is open lk14 = 0; // initially lock is open lk15 = 0; // initially lock is open // lock phase if (p1 != 0) { lk1 = 1; // acquire lock } else {} if (p2 != 0) { lk2 = 1; // acquire lock } else {} if (p3 != 0) { lk3 = 1; // acquire lock } else {} if (p4 != 0) { lk4 = 1; // acquire lock } else {} if (p5 != 0) { lk5 = 1; // acquire lock } else {} if (p6 != 0) { lk6 = 1; // acquire lock } else {} if (p7 != 0) { lk7 = 1; // acquire lock } else {} if (p8 != 0) { lk8 = 1; // acquire lock } else {} if (p9 != 0) { lk9 = 1; // acquire lock } else {} if (p10 != 0) { lk10 = 1; // acquire lock } else {} if (p11 != 0) { lk11 = 1; // acquire lock } else {} if (p12 != 0) { lk12 = 1; // acquire lock } else {} if (p13 != 0) { lk13 = 1; // acquire lock } else {} if (p14 != 0) { lk14 = 1; // acquire lock } else {} if (p15 != 0) { lk15 = 1; // acquire lock } else {} // unlock phase if (p1 != 0) { if (lk1 != 1) goto ERROR; // assertion failure lk1 = 0; } else {} if (p2 != 0) { if (lk2 != 1) goto ERROR; // assertion failure lk2 = 0; } else {} if (p3 != 0) { if (lk3 != 1) goto ERROR; // assertion failure lk3 = 0; } else {} if (p4 != 0) { if (lk4 != 1) goto ERROR; // assertion failure lk4 = 0; } else {} if (p5 != 0) { if (lk5 != 1) goto ERROR; // assertion failure lk5 = 0; } else {} if (p6 != 0) { if (lk6 != 1) goto ERROR; // assertion failure lk6 = 0; } else {} if (p7 != 0) { if (lk7 != 1) goto ERROR; // assertion failure lk7 = 0; } else {} if (p8 != 0) { if (lk8 != 1) goto ERROR; // assertion failure lk8 = 0; } else {} if (p9 != 0) { if (lk9 != 1) goto ERROR; // assertion failure lk9 = 0; } else {} if (p10 != 0) { if (lk10 != 1) goto ERROR; // assertion failure lk10 = 0; } else {} if (p11 != 0) { if (lk11 != 1) goto ERROR; // assertion failure lk11 = 0; } else {} if (p12 != 0) { if (lk12 != 1) goto ERROR; // assertion failure lk12 = 0; } else {} if (p13 != 0) { if (lk13 != 1) goto ERROR; // assertion failure lk13 = 0; } else {} if (p14 != 0) { if (lk14 != 1) goto ERROR; // assertion failure lk14 = 0; } else {} if (p15 != 0) { if (lk15 != 1) goto ERROR; // assertion failure lk15 = 0; } else {} } out: return 0; ERROR: __VERIFIER_error(); return 0; }
the_stack_data/244773.c
unsigned char helloworld_msgpack[] = { #if 0 // 20 bytes of notes metadata clutter 0x07, 0x00, 0x00, 0x00, 0xe5, 0x01, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x41, 0x4d, 0x44, 0x47, 0x50, 0x55, 0x00, 0x00, #endif 0x82, 0xae, 0x61, 0x6d, 0x64, 0x68, 0x73, 0x61, 0x2e, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x73, 0x91, 0x8f, 0xa5, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x91, 0x86, 0xae, 0x2e, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x73, 0x70, 0x61, 0x63, 0x65, 0xa7, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0xa5, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0xa6, 0x69, 0x73, 0x48, 0x6f, 0x73, 0x74, 0xa7, 0x2e, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x00, 0xa5, 0x2e, 0x73, 0x69, 0x7a, 0x65, 0x08, 0xab, 0x2e, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0xad, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0xab, 0x2e, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0xa3, 0x69, 0x33, 0x32, 0xb9, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0xcd, 0x03, 0x94, 0xb6, 0x2e, 0x6b, 0x65, 0x72, 0x6e, 0x61, 0x72, 0x67, 0x5f, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x67, 0x6e, 0x08, 0xb5, 0x2e, 0x6b, 0x65, 0x72, 0x6e, 0x61, 0x72, 0x67, 0x5f, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x08, 0xa9, 0x2e, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0xa8, 0x4f, 0x70, 0x65, 0x6e, 0x43, 0x4c, 0x20, 0x43, 0xb1, 0x2e, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x92, 0x02, 0x00, 0xb8, 0x2e, 0x6d, 0x61, 0x78, 0x5f, 0x66, 0x6c, 0x61, 0x74, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0xcd, 0x01, 0x00, 0xa5, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0xd9, 0x24, 0x5f, 0x5f, 0x6f, 0x6d, 0x70, 0x5f, 0x6f, 0x66, 0x66, 0x6c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x64, 0x30, 0x30, 0x5f, 0x32, 0x36, 0x31, 0x62, 0x38, 0x36, 0x5f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6c, 0x37, 0xbb, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x00, 0xab, 0x2e, 0x73, 0x67, 0x70, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0xb1, 0x2e, 0x73, 0x67, 0x70, 0x72, 0x5f, 0x73, 0x70, 0x69, 0x6c, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x00, 0xa7, 0x2e, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0xd9, 0x27, 0x5f, 0x5f, 0x6f, 0x6d, 0x70, 0x5f, 0x6f, 0x66, 0x66, 0x6c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x64, 0x30, 0x30, 0x5f, 0x32, 0x36, 0x31, 0x62, 0x38, 0x36, 0x5f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6c, 0x37, 0x2e, 0x6b, 0x64, 0xab, 0x2e, 0x76, 0x67, 0x70, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x16, 0xb1, 0x2e, 0x76, 0x67, 0x70, 0x72, 0x5f, 0x73, 0x70, 0x69, 0x6c, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x00, 0xaf, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x40, 0xae, 0x61, 0x6d, 0x64, 0x68, 0x73, 0x61, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x92, 0x01, 0x00, 0x00, 0x00, 0x00 }; unsigned int helloworld_msgpack_len = 508 - 20;
the_stack_data/182953217.c
/* * Copyright (C) 2017 XRADIO TECHNOLOGY CO., LTD. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the * distribution. * 3. Neither the name of XRADIO TECHNOLOGY CO., LTD. nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #if PRJCONF_NET_EN #include "cmd_util.h" #include "common/iperf/iperf.h" #include "common/framework/net_ctrl.h" enum cmd_status cmd_iperf_exec(char *cmd) { int argc, handle, ret; char *argv[20]; argc = cmd_parse_argv(cmd, &argv[1], cmd_nitems(argv) - 1); argv[0] = "iperf"; handle = iperf_parse_argv(argc + 1, argv); if (handle == -1) { CMD_DBG("handle=%d\n", handle); return CMD_STATUS_FAIL; } struct netif *nif = g_wlan_netif; if (nif == NULL || !NET_IS_IP4_VALID(nif)) { CMD_ERR("net is down, iperf start failed\n"); iperf_handle_free(handle); return CMD_STATUS_FAIL; } if (handle >= 0 && handle < IPERF_ARG_HANDLE_MAX) { ret = iperf_handle_start(g_wlan_netif, handle); if (ret == -1) iperf_handle_free(handle); } return CMD_STATUS_OK; } #endif /* PRJCONF_NET_EN */
the_stack_data/175144279.c
#include <math.h> #define ALEN(a,b,c,d) sqrt(((b)-(a))*((b)-(a))+((d)-(c))*((d)-(c))) float revcst(float x[], float y[], int iorder[], int ncity, int n[]) { float xx[5],yy[5],de; int j,ii; n[3]=1 + ((n[1]+ncity-2) % ncity); n[4]=1 + (n[2] % ncity); for (j=1;j<=4;j++) { ii=iorder[n[j]]; xx[j]=x[ii]; yy[j]=y[ii]; } de = -ALEN(xx[1],xx[3],yy[1],yy[3]); de -= ALEN(xx[2],xx[4],yy[2],yy[4]); de += ALEN(xx[1],xx[4],yy[1],yy[4]); de += ALEN(xx[2],xx[3],yy[2],yy[3]); return de; } #undef ALEN
the_stack_data/21978.c
#include <stdio.h> #include <stdlib.h> int main() { int n,s,i,j,choice,pgflt=0,pgh,ci=0; printf("Enter the number of pages:\n"); scanf("%d",&n); int pages[n]; printf("Enter the pages:\n"); for(i=0;i<n;i++) scanf("%d",&pages[i]); printf("Enter the size of stack:\n"); scanf("%d",&s); int stack[s]; printf("Do you want to initialize stack?(1-Yes,0-No)\n"); scanf("%d",&choice); switch(choice) { case 0: for(i=0;i<s;i++) stack[i]=-1; break; case 1: printf("Enter the initialization stack:\n"); for(i=0;i<s;i++) scanf("%d",&stack[i]); break; default: printf("Wrong choice,exiting execution!"); exit(0); } for(i=0;i<n;i++) { pgh=0; for(j=0;j<s;j++) { if(stack[j]==pages[i]) pgh=1; } if(pgh==0) { printf("Page fault detected:%d replacing %d\n",pages[i],stack[ci]); stack[ci]=pages[i]; ci=(ci+1)%s; pgflt++; } } printf("Page Faults are %d with stack size %d\n",pgflt,s); }
the_stack_data/140503.c
#include <sys/stat.h> #include <errno.h> #include <fcntl.h> #include "syscall.h" void __procfdname(char *, unsigned); int fchmod(int fd, mode_t mode) { int ret = __syscall(SYS_fchmod, fd, mode); if (ret != -EBADF || __syscall(SYS_fcntl, fd, F_GETFD) < 0) return __syscall_ret(ret); char buf[15+3*sizeof(int)]; __procfdname(buf, fd); #ifdef SYS_chmod return syscall(SYS_chmod, buf, mode); #else return syscall(SYS_fchmodat, AT_FDCWD, buf, mode); #endif }
the_stack_data/15761458.c
#include <stdio.h> #include <math.h> #define INCHES_IN_A_FOOT 12 #define FEET_IN_A_YARD 3 float inches_mantissa(float original) { float floor_val; float mantissa; floor_val = floorf(original); mantissa = original - floor_val; return mantissa * (float)INCHES_IN_A_FOOT; } float distance_feet(int distance) { return (float)distance / (float)INCHES_IN_A_FOOT; } float distance_yards(int distance) { return distance_feet(distance) / FEET_IN_A_YARD; } int main(void) { int distance; float yards; float feet; printf("enter a distance in inches: "); scanf("%d", &distance); printf("\nThe distance in inches is: %d\n", distance); printf("The distance in feet is: %.0f\' %.0f\"\n", floorf(distance_feet(distance)), inches_mantissa(distance_feet(distance)) ); printf("The distance in yards is: %.2f\n", distance_yards(distance)); return 0; }
the_stack_data/190766895.c
int condor_dummy = 0;
the_stack_data/11076137.c
#include <pthread.h> #include <stdio.h> #include <string.h> // Global variable: int i = 2; void* foo(void* p) { // Print value received as argument: printf("Value received as argument in starting routine: "); printf("%i\n", *(int*)p); // Return reference to global variable: pthread_exit(&i); } int main(void) { // Declare variable for thread's ID: pthread_t id; int j = 150; pthread_create(&id, NULL, foo, &j); int* ptr; // Wait for foo() and retrieve value in ptr; pthread_join(id, (void**)&ptr); printf("Value received by parent from child: "); printf("%i\n", *ptr); }
the_stack_data/1269631.c
#include<stdio.h> #include<math.h> int main() { int x,a,i; scanf("%d",&x); for(a=x+1;;a++){ int flag=0; for(i=2;i<=sqrt(a);i++){ if(a%i==0){ flag=1; break; } } if(flag==0){ printf("%d",a); break; } } return 0; }
the_stack_data/206393230.c
// Copyright (C) 2017-2018 Baidu, Inc. 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 Baidu, Inc., nor the names of its // contributors may be used to endorse or promote products derived // from this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <sys/types.h> #include <sys/stat.h> #include <sys/mman.h> #include <errno.h> #include <fcntl.h> #include <unistd.h> int u_backtrace_open_ocall(int * error, const char * pathname, int flags) { int ret = open(pathname, flags); if (error) { *error = ret == -1 ? errno : 0; } return ret; } int u_backtrace_close_ocall(int * error, int fd) { int ret = close(fd); if (error) { *error = ret == -1 ? errno : 0; } return ret; } int u_backtrace_fcntl_ocall(int * error, int fd, int cmd, int arg) { int ret = fcntl(fd, cmd, arg); if (error) { *error = ret == -1 ? errno : 0; } return ret; } void * u_backtrace_mmap_ocall(int * error, void * start, size_t length, int prot, int flags, int fd, off_t offset) { void * ret = mmap(start, length, prot, flags, fd, offset); if (error) { *error = ret == MAP_FAILED ? errno : 0; } return ret; } int u_backtrace_munmap_ocall(int * error, void * start, size_t length) { int ret = munmap(start, length); if (error) { *error = ret == -1 ? errno : 0; } return ret; }
the_stack_data/91076.c
#include<stdlib.h> int main(int argc, char** argv) { double a = 1.0; double b = (double)argc; if (a + b == 3.0) { return 0; } return 1; }
the_stack_data/397919.c
/* * Tiny McCarthy style Lisp, but with CDR coding * * Copyright (C) 2018 Tommy Thorn <[email protected]> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #define SYMBOLS 50 #define HEAPSIZE 1000 typedef unsigned long val; val heap[HEAPSIZE]; val *hp = heap + HEAPSIZE; // We chose F to be zero to make the C code simpler #undef NULL enum { F = 0, T = 4, NIL = 8, CAR = 12, CDR = 16, CONS = 20, ATOM = 24, EQ = 28, LAMBDA = 32, LABEL = 36, QUOTE = 40, NULL = 44, COND = 48, }; val next_symbol = COND/4 + 1; char *symbol_name[SYMBOLS] = { "f", "t", "nil", "car", "cdr", "cons", "atom", "eq", "lambda", "label", "quote", "null", "cond", 0 }; enum { TAG_NORMAL, TAG_NEXT, TAG_NIL, TAG_EXTENDED }; static inline val atom(val x) { return 0 <= x/4 && x/4 < SYMBOLS; } static inline val car(val x) { assert(!atom(x) && x - (unsigned long)heap < HEAPSIZE*sizeof(val)); val *p = (val *)x; switch (p[0] & 3) { default: case TAG_NORMAL: case TAG_NEXT: case TAG_NIL: return p[0] &~ 3; case TAG_EXTENDED: return ((val *)(*p &~ 3))[0];}} static inline val cdr(val x) { assert(!atom(x) && x - (unsigned long)heap < HEAPSIZE*sizeof(val)); val *p = (val *)x; switch (p[0] & 3) { default: case TAG_NORMAL: return p[1] &~ 3; case TAG_NEXT: return (val) &p[1]; case TAG_NIL: return NIL; case TAG_EXTENDED: return ((val *)(*p &~ 3))[1];}} static int nil_saved, next_saved; static inline val cons(val a, val d) { assert(hp - 2 >= heap); assert((a & 3) == 0); assert((d & 3) == 0); if (d == NIL) { *--hp = a + TAG_NIL; ++nil_saved; return (val) hp; } if (d == (val)hp) { *--hp = a + TAG_NEXT; ++next_saved; return (val) hp; } *--hp = d; *--hp = a; return (val) hp;} #define cddr(x) cdr(cdr(x)) // "drop 2" #define cdddr(x) cdr(cddr(x)) // "drop 3" #define cddddr(x) cdr(cdddr(x)) // "drop 4" #define cadr(x) car(cdr(x)) // "2nd" #define caddr(x) car(cddr(x)) // "3rd" #define cadddr(x) car(cdddr(x)) // "4th" #define caddddr(x) car(cddddr(x)) // "5th" #define caar(x) car(car(x)) #define cadr(x) car(cdr(x)) #define cdar(x) cdr(car(x)) #define cadar(x) car(cdr(car(x))) #define eq(x,y) ((x) == (y) ? T : F) #define null(x) eq(x,NIL) val printNL(val a); val trace(const char *func, int lineno, const char *msg, val a) { printf("%s:%d:%s: ", func, lineno, msg); printNL(a); return a; } val eval(val x, val a); val equal(val x, val y) { if (atom(x)) { if (atom(y)) return eq(x,y); if (T) return F; } if (equal(car(x),car(y))) return (equal(cdr(x),cdr(y))); if (T) return F; } val pairlis(val x, val y, val a) { if (null(x)) return a; if (T) return cons(cons(car(x),car(y)), pairlis(cdr(x),cdr(y),a)); } val assoc(val x, val a) { if (equal(caar(a),x)) return car(a); if (T) return assoc(x,cdr(a)); } val evcon(val c, val a) { if (eval(caar(c),a)) return eval(cadar(c),a); if (T) return evcon(cdr(c),a); } val evlis(val m, val a) { if (null(m)) return NIL; if (T) return cons(eval(car(m),a),evlis(cdr(m),a)); } val apply(val fn, val x, val a) { if (atom(fn)) { if (eq(fn, CAR)) return caar(x); if (eq(fn, CDR)) return cdar(x); if (eq(fn, CONS)) return cons(car(x), cadr(x)); if (eq(fn, ATOM)) return atom(car(x)); if (eq(fn, EQ)) return eq(car(x), cadr(x)); if (eq(fn, NULL)) return null(car(x)); // Added for reverse example below if (T) return apply(eval(fn,a),x,a); } if (eq(car(fn), LAMBDA)) return eval(caddr(fn),pairlis(cadr(fn),x,a)); if (eq(car(fn), LABEL)) return apply(caddr(fn),x,cons(cons(cadr(fn),caddr(fn)),a)); if (T) assert(0); return F; } val eval(val e, val a) { if (atom(e)) return cdr(assoc(e,a)); if (atom(car(e))) { if (eq(car(e),QUOTE)) return cadr(e); if (eq(car(e),COND)) return evcon(cdr(e),a); if (T) return apply(car(e),evlis(cdr(e),a),a); } if (T) return apply(car(e),evlis(cdr(e),a),a); } /* Test it -- this code isn't from McCarthy */ val reader_tail(void), reader_(void); static const char *reader_source, *reader_p; void skipsp() { while (*reader_p == ' ') ++reader_p; if (!*reader_p) printf("ERROR: reached EOF on %s\n", reader_source); assert(*reader_p); } val reader(const char *source) {reader_p = reader_source = source; return reader_();} void expect(char c) { skipsp(); if (c == *reader_p) {reader_p++; return; } printf("\n%s\n", reader_source); for (int i = 0; reader_source + i != reader_p; ++i) putchar(' '); printf("^ expected %c\n", c); exit(1); } val match(char c) { skipsp(); if (c == *reader_p) { ++reader_p; return T; } return F; } val reader_(void) { static char buf[99]; char *sym = buf; if (match('(')) return reader_tail(); if (match('\'')) return cons(QUOTE, cons(reader_(), NIL)); while (*reader_p && *reader_p != '(' && *reader_p != ')' && *reader_p != ' ' && sym < buf + 98) *sym++ = *reader_p++; *sym = 0; for (int i = 0; i < next_symbol; ++i) if (strcmp(buf, symbol_name[i]) == 0) return i*4; assert(next_symbol < SYMBOLS); symbol_name[next_symbol++] = strdup(buf); return 4*(next_symbol - 1); } val reader_tail() { skipsp(); if (match(')')) return NIL; val a = reader_(); if (match('.')) { val d = reader_(); expect(')'); return cons(a, d); } return cons(a,reader_tail()); } void print(val a) { if (null(a)) { printf("()"); return; } if (atom(a)) { printf("%s", symbol_name[a/4]); return; } if (eq(car(a),QUOTE) && null(cddr(a))) { printf("'"); print(cadr(a)); return; } printf("("); for (;;) { print(car(a)); if (null(cdr(a))) { printf(")"); return; }; if (atom(cdr(a))) { printf(" . "); print(cdr(a)); printf(")"); return; } a = cdr(a); printf(" ");}} val env0; void repl(char *txt) { val e = reader(txt); print(eval(e, env0)); printf("\n");} val printNL(val a) { print(a); putchar('\n'); return a; } // Test reader and printer void test(const char *e_s, const char *want_s) { val e = reader(e_s); val want = reader(want_s); val got = eval(e,env0); if (!equal(want,got)) { printf("Failed test:\n "); print(e); printf("\nexpected:\n "); print(want); printf("\ngot:\n "); print(got); printf("\n");}} int main(int argc, char *argv[]) { env0 = cons(cons(T, T), NIL); test("(null '())", "t"); test("(null '(1))", "f"); test("(cond ((null '()) 'good) (t t)) ", "good"); test("(cond ((null '(b)) 'bad) (t 'also-good)) ", "also-good"); test("((lambda (x y) (cons (car x) y)) '(a b) '(c d))", "(a c d)"); test("((label reverse" " (lambda (ls new)" " (cond ((null ls) new)" " (t (reverse (cdr ls) (cons (car ls) new))))))" " '(a b c d e 1 2 3) '())", "(3 2 1 e d c b a)"); for (int i = 1; i < argc; ++i) repl(argv[i]); printf("\n%ld heap cells used\n", HEAPSIZE - (hp - heap)); printf("%d NILs saved\n", nil_saved); printf("%d nexts saved\n", next_saved); return 0; }
the_stack_data/677402.c
#include<stdio.h> #include<math.h> #include<ctype.h> #include<string.h> #include<stdlib.h> #define STACK_SIZE 50 int stack[STACK_SIZE]; int top=-1; void push(int a) { stack[++top]=a; return; } int pop() { return (stack[top--]); } int eval(char s[]) { int i,temp,op1,op2,result; char symbol[1]; for(i=0;i<strlen(s);i++) { if(isalnum(s[i])) { if(isdigit(s[i])) { symbol[0]=s[i]; temp=atoi(symbol); push(temp); } else { printf("\nEnter value of %c:",s[i]); scanf("%d",&temp); push(temp); } } else { op2=pop(); op1=pop(); switch(s[i]) { case '^':result=pow(op1,op2) ;break; case '*':result= op1*op2;break; case '/': if(op2==0) { printf("Invalid expr"); exit(0); } else result=op1/op2; break; case '%': if(op2==0) { printf("Invalid expression"); exit(0); } else result=op1%op2; break; case '+':result= op1+op2;break; case '-':result=op1-op2 ;break; default:printf("Invalid expr"); exit(0); } push(result); } } result=pop(); if(top!=-1) { printf("Invalid expr"); exit(0); } return result; } void main() { system("color a"); char s[50]; printf("Evaluation of postfix expression"); printf("\nEnter postfix expression:\n"); gets(s); printf("Result of evaluation is %d",eval(s)); }
the_stack_data/247017903.c
#include <stdio.h> extern int testExe1lib(void); int main(int argc, const char* argv[]) { if(argc < 2) { fprintf(stderr, "Must specify output file.\n"); return 1; } { FILE* f = fopen(argv[1], "w"); if(f) { fprintf(f, "int generated_by_testExe1() { return 0; }\n"); fclose(f); } else { fprintf(stderr, "Error writing to %s\n", argv[1]); return 1; } } return testExe1lib(); }
the_stack_data/805997.c
/* * Do not #include anything here. Do it in mach/proto/as/comm0.h */
the_stack_data/28263840.c
#include <stdio.h> #include <stdbool.h> void cextrema(const float *data, size_t imax, size_t jmax, float *extrema, size_t min_max_length, int *maxima_x, int *maxima_y, int *minima_x, int *minima_y, int *maxima_length, int *minima_length) { size_t i; size_t j; size_t inner_i; size_t inner_j; bool is_max; bool is_min; float data_val; int max_length = 0; int min_length = 0; for (i = 1; i < imax - 1; ++i) { for (j = 1; j < jmax - 1; ++j) { is_max = true; is_min = true; data_val = data[i * jmax + j]; for (inner_i = i - 1; inner_i < i + 2; ++inner_i) { for (inner_j = j - 1; inner_j < j + 2; ++inner_j) { if (data[inner_i * jmax + inner_j] > data_val) { is_max = false; } if (data[inner_i * jmax + inner_j] < data_val) { is_min = false; } } } if (is_max) { extrema[i * jmax + j] = 1; if (max_length < min_max_length) { maxima_x[max_length] = i; maxima_y[max_length] = j; max_length += 1; } } else if (is_min) { if (min_length < min_max_length) { extrema[i * jmax + j] = -1; minima_x[min_length] = i; minima_y[min_length] = j; min_length += 1; } } } *maxima_length = max_length; *minima_length = min_length; } }
the_stack_data/98575877.c
#include <stdio.h> void swap(int *a, int *b) { printf("a = %d, b = %d\n", *a, *b); int c = *a; *a = *b; *b = c; printf("a = %d, b = %d\n", *a, *b); } int main() { int num1 = 4, num2 = 6; printf("num1 = %d, num2 = %d\n", num1, num2); swap(&num1, &num2); printf("num1 = %d, num2 = %d\n", num1, num2); return 0; }
the_stack_data/176706608.c
extern void __VERIFIER_error() __attribute__ ((__noreturn__)); void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } #define N 75 int main ( ) { int a [N]; int b [N]; int i = 0; while ( i < N ) { a[i] = 42; i = i + 1; } for ( i = 0 ; i < N ; i++ ) { b[i] = a[i]; } for ( i = 0 ; i < N ; i++ ) { a[i] = b[i] + i; } int x; for ( x = 0 ; x < N ; x++ ) { __VERIFIER_assert( b[x] == 42 + x ); } return 0; }
the_stack_data/965028.c
#include<stdio.h> #define MAX 1000 int main() { int n, k, b, bill[MAX], i, sum=0; scanf("%d", &n); scanf("%d", &k); for(i=0; i<n; i++) scanf("%d", &bill[i]); scanf("%d", &b); for(i=0; i<n; i++) sum = sum +bill[i]; sum = sum - bill[k]; if(sum/2 < b) printf("%d", b - (sum/2)); else printf("Bon Appetit"); return 0; }
the_stack_data/71530.c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <arpa/inet.h> #include <sys/socket.h> #include <unistd.h> #define BUFLEN 512 // Tamanho do buffer #define PORT 9876 // Porto para recepção das mensagens void erro(char *s) { perror(s); exit(1); } int main(void) { struct sockaddr_in si_minha, si_outra; int s,recv_len; socklen_t slen = sizeof(si_outra); char buf[BUFLEN]; // Cria um socket para recepção de pacotes UDP if((s=socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) { erro("Erro na criação do socket"); } si_minha.sin_family = AF_INET; si_minha.sin_port = htons(PORT); si_minha.sin_addr.s_addr = htonl(INADDR_ANY); // Associa o socket à informação de endereço if(bind(s,(struct sockaddr*)&si_minha, sizeof(si_minha)) == -1) { erro("Erro no bind"); } // Espera recepção de mensagem (a chamada é bloqueante) if((recv_len = recvfrom(s, buf, BUFLEN, 0, (struct sockaddr *) &si_outra, (socklen_t *)&slen)) == -1) { erro("Erro no recvfrom"); } // Para ignorar o restante conteúdo (anterior do buffer) buf[recv_len]='\0'; printf("Recebi uma mensagem do sistema com o endereço %s e o porto %d\n", inet_ntoa(si_outra.sin_addr), ntohs(si_outra.sin_port)); printf("Conteúdo da mensagem: %s\n" , buf); // Fecha socket e termina programa close(s); return 0; }
the_stack_data/56276.c
#include <stdio.h> #include <stdlib.h> struct list{ int value; struct list * next; }; struct list * creatList(int value); int findValue(struct list * list,int startNum,int value); int getValue(struct list * list,int num); void insNode(struct list * list,int num,int value); struct list * invertedOrder(struct list * list); int main(){ struct list * head = creatList(1); for (int i = 2; i < 101; ++i) { insNode(head,i,i); } for (int i = 1; i < 101; ++i) { printf("Node%3d:%3d\n",i, getValue(head,i)); } head = invertedOrder(head); printf("\n"); for (int i = 1; i < 101; ++i) { printf("Node%3d:%3d\n",i, getValue(head,i)); } int num = findValue(head, 1, 5); if(num != -1){ printf("node%3d is 5.\n", num); } else{ printf("No 5 in the list.\n"); } num = findValue(head, num + 1, 5); if(num != -1){ printf("node%3d is 5.\n", num); } else{ printf("No more 5 in the list.\n"); } } struct list * creatList(int value){ struct list *head = NULL; head = malloc(sizeof(struct list)); if(head != NULL){ head->value = value; head->next = NULL; } return head; } int findValue(struct list * list,int startNum,int value){ for (int i = 1; i < startNum; ++i) { list = list->next; } while(list != NULL){ if(list->value == value){ return startNum; } else{ list=list->next; ++startNum; } } return -1; } int getValue(struct list * list,int num){ for (int i = 1; i < num; ++i) { list = list->next; } return list->value; } void insNode(struct list * list,int num,int value){ for (int i = 1; i < num-1; ++i) { list = list->next; } struct list *tem = list->next; list->next= malloc(sizeof(struct list)); list = list->next; list->next = tem; list->value = value; } struct list * invertedOrder(struct list * list){ struct list *tem1,*tem2; tem1 = list; list = list->next; tem1 -> next=NULL; while(list != NULL){ tem2 = list->next; list->next = tem1; tem1 = list; list = tem2; } return tem1; }
the_stack_data/215767709.c
// RUN: clang %S/../Inputs/test-3.c -o %t.so --target=%arm_triple -fuse-ld=lld -shared // RUN: llvm-mctoll -d %t.so // RUN: clang -o %t1 %s %t-dis.ll -mx32 // RUN: %t1 2>&1 | FileCheck %s // CHECK: test_3_func result 66 #include <stdio.h> extern int test_3_func(int a, int b); int main() { printf("test_3_func result %d\n", test_3_func(234, 300)); return 0; }
the_stack_data/1069971.c
#include <threads.h> #include <pthread.h> void *tss_get(tss_t key) { return pthread_getspecific(key); } /* STDC(201112) */
the_stack_data/29826632.c
#include<stdio.h> #include<stdlib.h> struct Element{ int i; int j; int x; }; struct Sparse{ int m; int n; int num; struct Element *ele; }; void create(struct Sparse *s){ int i; printf("Eneter Dimensions"); scanf("%d%d",&s->m,&s->n); printf("Number of non-zero"); scanf("%d",&s->num); s->ele=(struct Element *)malloc(s->num*sizeof(struct Element)); printf("Eneter non-zero Elements"); for(i=0;i<s->num;i++) scanf("%d%d%d",&s->ele[i].i,&s->ele[i].j,&s->ele[i].x); } void display(struct Sparse s){ int i,j,k=0; for(i=0;i<s.m;i++){ for(j=0;j<s.n;j++){ if(i==s.ele[k].i && j==s.ele[k].j) printf("%d ",s.ele[k++].x); else printf("0 "); } printf("\n"); } } struct Sparse * add(struct Sparse *s1,struct Sparse *s2){ struct Sparse *sum; int i,j,k; i=j=k=0; if(s1->n != s2->n && s1->m != s2->m) return NULL; sum=(struct Sparse *)malloc(sizeof(struct Sparse)); sum->ele=(struct Element *)malloc((s1->num+s2->num)*sizeof(struct Element)); while(i<s1->num && j<s2->num){ if(s1->ele[i].i<s2->ele[j].i) sum->ele[k++]=s1->ele[i++]; else if(s1->ele[i].i>s2->ele[j].i) sum->ele[k++]=s2->ele[j++]; else{ if(s1->ele[i].j<s2->ele[j].j) sum->ele[k++]=s1->ele[i++]; else if(s1->ele[i].j>s2->ele[j].j) sum->ele[k++]=s2->ele[j++]; else{ sum->ele[k]=s1->ele[i]; sum->ele[k++].x=s1->ele[i++].x+s2->ele[j++].x; } } } for(;i<s1->num;i++) sum->ele[k++]=s1->ele[i]; for(;j<s2->num;j++) sum->ele[k++]=s2->ele[j]; sum->m=s1->m; sum->n=s1->n; sum->num=k; return sum; } int main(){ struct Sparse s1,s2,*s3; create(&s1); create(&s2); s3=add(&s1,&s2); printf("First Matrix\n"); display(s1); printf("Second Matrix\n"); display(s2); printf("Sum Matrix\n"); display(*s3); return 0; }
the_stack_data/1367.c
//parallelo #include <errno.h> #include <fcntl.h> #include <netinet/in.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #define MAXL 255 int main(int argc, char **argv) { char is_separator[256]; char buf[MAXL + 1]; int sd, port, len, ris, pid, fd, counter, i, nReceived; unsigned char ch; const int on = 1; struct sockaddr_in cliaddr, servaddr; struct hostent *clienthost; // Inizializzazione tabella dei separatori memset(is_separator, 0, sizeof(is_separator)); memset(is_separator, 1, (1 + '/') * sizeof(char)); memset(is_separator + ':', 1, (1 + '@' - ':') * sizeof(char)); memset(is_separator + '[', 1, (1 + '`' - '[') * sizeof(char)); // Controllo argomenti if (argc != 2) { printf("Errore: %s port\n", argv[0]); exit(2); } else { // Verifica intero for (i = 0; argv[1][i] != '\0'; i++) if (argv[1][i] < '0' || argv[1][i] > '9') { printf("Errore: %s port\n", argv[0]); exit(2); } port = atoi(argv[1]); if (port < 1024 || port > 65535) { // Porta nel range porte disponibili printf("Errore: %s port\n", argv[0]); exit(2); } } memset((char *)&servaddr, 0, sizeof(servaddr)); // Inizializzazione indirizzo servaddr.sin_family = AF_INET; servaddr.sin_addr.s_addr = INADDR_ANY; servaddr.sin_port = htons(port); sd = socket(AF_INET, SOCK_DGRAM, 0); // Creazione, bind e settaggio socket if (sd < 0) { perror("Errore: creazione socket non riuscita.\n"); exit(1); } printf("Server: creata la socket, sd = %d\n", sd); if (setsockopt(sd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) < 0) { perror("Errore: set opzioni socket non riuscita.\n"); exit(1); } if (bind(sd, (struct sockaddr *)&servaddr, sizeof(servaddr)) < 0) { perror("Errore: bind socket non riuscita.\n"); exit(1); } printf("Server: bind socket ok.\n"); signal(SIGCHLD, SIG_IGN); // Ciclo infinito di ricezione e servizio while (1) { len = sizeof(struct sockaddr_in); if ((nReceived = recvfrom(sd, buf, MAXL, 0, (struct sockaddr *)&cliaddr, &len)) < 0) { perror("Errore: recvfrom non riuscita.\n"); continue; } if (!(pid = fork())) { //figlio buf[nReceived] = '\0'; //metto il terminatore fd = open(buf, O_RDONLY); if (fd < 0) ris = -1; else { ris = 0; counter = 0; while (read(fd, &ch, sizeof(char))) { //calcolo parola più lunga if (is_separator[ch]) { if (counter > ris) ris = counter; counter = 0; } else counter++; } close(fd); } if (sendto(sd, &ris, sizeof(int), 0, (struct sockaddr *)&cliaddr, len) < 0) { perror("Errore: sendto non riuscita.\n"); exit(1); } return 0; } if (pid < 0) { perror("Errore: fork non riuscita.\n"); } } }
the_stack_data/125140030.c
#include <ctype.h> #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> uint32_t string_to_int(char *str, int base) { uint32_t rv = 0; uint32_t place_val = 1; int len = strlen(str) - 1; int digit; for (int i = len; i >= 0; i--) { char ch = tolower(str[i]); if (ch >= '0' && ch <= '9') { digit = ch - '0'; } else if (ch >= 'a' && ch <= 'f') { digit = ch - 'a' + 10; } rv += digit * place_val; place_val *= base; } return rv; } int main(int argc, char **argv) { int base = 10; char *str = argv[1]; if (strlen(str) > 2) { if (!strncmp(str, "0b", 2)) { base = 2; str += 2; } else if (!strncmp(str, "0x", 2)) { base = 16; str += 2; } } uint32_t value = string_to_int(str, base); printf("%d\n", value); return 0; }
the_stack_data/59260.c
/******************************************************************************* * * Copyright (C) 2014-2018 Wave Computing, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. Neither the name of the copyright holder nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * ******************************************************************************/ /* * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms are permitted * provided that the above copyright notice and this paragraph are * duplicated in all such forms and that any documentation, * advertising materials, and other materials related to such * distribution and use acknowledge that the software was developed * by the University of California, Berkeley. The name of the * University may not be used to endorse or promote products derived * from this software without specific prior written permission. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ #include <stdio.h> #undef getchar /* * Read a byte from stdin. */ int getchar (void) { return fgetc (stdin); }/* getchar */
the_stack_data/32950860.c
#include <stdio.h> char* strcpy(char*, const char *); int main(){ char arr1[] = "I love you "; char arr2[] = "banana!"; printf("arr1=%s, arr2=%s\n",arr1,arr2); strcpy(arr1,arr2); printf("after copy, arr1[] = %s\n", arr1); return 0; } char* strcpy(char*dest, const char *src){ int i = 0; for(i=0; *(src+i) != '\0';i++){ *(dest+i) = *(src+i); } *(dest+i) = '\0'; return dest; }
the_stack_data/1266627.c
// list04.txt のソースコードを入力してください。
the_stack_data/150459.c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strncat.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: cado-car <[email protected]> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2021/06/14 23:12:05 by cado-car #+# #+# */ /* Updated: 2021/06/14 23:12:06 by cado-car ### ########.fr */ /* */ /* ************************************************************************** */ char *ft_strncat(char *dest, char *src, unsigned int nb) { unsigned int i; unsigned int c; i = 0; c = 0; while (dest[i] != '\0') i++; while (src[c] != '\0' && c < nb) { dest[i] = src[c]; i++; c++; } dest[i] = '\0'; return (dest); }
the_stack_data/247018915.c
/* PR optimization/7189 This was a missing warning caused by a cfg cleanup after sibling call optimization. The return clobber insn was cleaned up and the warning was never issued. */ /* { dg-do compile } */ /* { dg-options "-O -foptimize-sibling-calls -Wreturn-type" } */ extern void foo(void); int bar (void) { foo(); } /* { dg-warning "control reaches end of non-void function" "warning for falling off end of non-void function" } */
the_stack_data/215769497.c
// REQUIRES: bpf-registered-target // RUN: %clang -target bpf -emit-llvm -S -g -Xclang -disable-llvm-passes %s -o - | FileCheck %s unsigned test1(int a) { return __builtin_btf_type_id(a, 0); } unsigned test2(int a) { return __builtin_btf_type_id(&a, 0); } struct t1 { int a; }; typedef struct t1 __t1; unsigned test3() { return __builtin_btf_type_id(*(struct t1 *)0, 1) + __builtin_btf_type_id(*(__t1 *)0, 1); } // CHECK: define dso_local i32 @test1 // CHECK: call i64 @llvm.bpf.btf.type.id(i32 0, i64 0), !dbg !{{[0-9]+}}, !llvm.preserve.access.index ![[INT:[0-9]+]] // CHECK: define dso_local i32 @test2 // CHECK: call i64 @llvm.bpf.btf.type.id(i32 1, i64 0), !dbg !{{[0-9]+}}, !llvm.preserve.access.index ![[INT_POINTER:[0-9]+]] // CHECK: define dso_local i32 @test3 // CHECK: call i64 @llvm.bpf.btf.type.id(i32 2, i64 1), !dbg !{{[0-9]+}}, !llvm.preserve.access.index ![[STRUCT_T1:[0-9]+]] // CHECK: call i64 @llvm.bpf.btf.type.id(i32 3, i64 1), !dbg !{{[0-9]+}}, !llvm.preserve.access.index ![[TYPEDEF_T1:[0-9]+]] // // CHECK: ![[INT]] = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed // CHECK: ![[INT_POINTER]] = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: ![[INT]], size: 64 // CHECK: ![[TYPEDEF_T1]] = !DIDerivedType(tag: DW_TAG_typedef, name: "__t1" // CHECK: ![[STRUCT_T1]] = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "t1"
the_stack_data/438646.c
// RUN: %clang_builtins %s %librt -o %t && %run %t // REQUIRES: librt_has_multf3 //===--------------- multf3_test.c - Test __multf3 ------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file tests __multf3 for the compiler_rt library. // //===----------------------------------------------------------------------===// #include <stdio.h> #if __LDBL_MANT_DIG__ == 113 #include "int_lib.h" #include "fp_test.h" // Returns: a * b COMPILER_RT_ABI long double __multf3(long double a, long double b); int test__multf3(long double a, long double b, uint64_t expectedHi, uint64_t expectedLo) { long double x = __multf3(a, b); int ret = compareResultLD(x, expectedHi, expectedLo); if (ret){ printf("error in test__multf3(%.20Lf, %.20Lf) = %.20Lf, " "expected %.20Lf\n", a, b, x, fromRep128(expectedHi, expectedLo)); } return ret; } char assumption_1[sizeof(long double) * CHAR_BIT == 128] = {0}; #endif int main() { #if __LDBL_MANT_DIG__ == 113 // qNaN * any = qNaN if (test__multf3(makeQNaN128(), 0x1.23456789abcdefp+5L, UINT64_C(0x7fff800000000000), UINT64_C(0x0))) return 1; // NaN * any = NaN if (test__multf3(makeNaN128(UINT64_C(0x800030000000)), 0x1.23456789abcdefp+5L, UINT64_C(0x7fff800000000000), UINT64_C(0x0))) return 1; // inf * any = inf if (test__multf3(makeInf128(), 0x1.23456789abcdefp+5L, UINT64_C(0x7fff000000000000), UINT64_C(0x0))) return 1; // any * any if (test__multf3(0x1.2eab345678439abcdefea56782346p+5L, 0x1.edcb34a235253948765432134674fp-1L, UINT64_C(0x400423e7f9e3c9fc), UINT64_C(0xd906c2c2a85777c4))) return 1; if (test__multf3(0x1.353e45674d89abacc3a2ebf3ff4ffp-50L, 0x1.ed8764648369535adf4be3214567fp-9L, UINT64_C(0x3fc52a163c6223fc), UINT64_C(0xc94c4bf0430768b4))) return 1; if (test__multf3(0x1.234425696abcad34a35eeffefdcbap+456L, 0x451.ed98d76e5d46e5f24323dff21ffp+600L, UINT64_C(0x44293a91de5e0e94), UINT64_C(0xe8ed17cc2cdf64ac))) return 1; if (test__multf3(0x1.4356473c82a9fabf2d22ace345defp-234L, 0x1.eda98765476743ab21da23d45678fp-455L, UINT64_C(0x3d4f37c1a3137cae), UINT64_C(0xfc6807048bc2836a))) return 1; // underflow if (test__multf3(0x1.23456734245345p-10000L, 0x1.edcba524498724p-6497L, UINT64_C(0x0), UINT64_C(0x0))) return 1; #else printf("skipped\n"); #endif return 0; }
the_stack_data/31822.c
// ** // In Section 3.6.6, we examined the following code as a candidate for the use // of conditional data transfer: // // long cread(long *xp) { // return (xp ? *xp : 0); // } // // We showed a trial implementation using a conditional move instruction but // argued that it was not valid, since it could attempt to read from a null // address. // Write a C function cread_alt that has the same behaviour as cread, except // that it can be compiled to use conditional data transfer. When compiled, the // generated code should use a conditional move instruction rather than one of // the jump instruction. long cread(long *xp) { // Interestingly, when I declare z as const static, // the compiler folds the constant and generates jmp again. static long z = 0L; return *(xp ? xp : &z); }
the_stack_data/93886462.c
#include <stdio.h> int main (void) { printf("Ola Mundo\n"); return 0; }
the_stack_data/154831736.c
// [ACM] #101 - The Blocks Problem // Problem Status CPU Date&Time(UTC) ID Best CPU // 101 Accepted 0.014 2007-04-29 09:57:25 554341 0.000 #include<stdio.h> #include<string.h> void move(int a, int number[][24], int add[], int now[][2]); void on(int a, int b, int number[][24], int add[], int now[][2]); int main(void) { int n, i, j, a, b, number[24][24], add[24], now[24][2]; char str1[5], str2[5]; while(scanf("%d\n" , &n) == 1) { for(i = 0; i < n; i ++) { number[i][0] = i; add[i] = 0; now[i][0] = i; now[i][1] = 0; } while(scanf("%s" , str1)) { if(str1[0] == 'q') { for(i = 0; i < n; i ++) { printf("%d:" , i); for(j = 0; j <= add[i]; j ++) printf(" %d" , number[i][j]); printf("\n"); } break; } else { scanf(" %d %s %d\n" , &a, str2, &b); if(now[a][0] != now[b][0]) { if(str1[0] == 'm' && str2[1] == 'n') { move(a, number, add, now); move(b, number, add, now); on(a, b, number, add, now); } else if(str1[0] == 'm' && str2[1] == 'v') { move(a, number, add, now); on(a, b, number, add, now); } else if(str1[0] == 'p' && str2[1] == 'n') { move(b, number, add, now); on(a, b, number, add, now); } else on(a, b, number, add, now); } } } } return 0; } void move(int a, int number[][24], int add[], int now[][2]) { int i, j, t, d; i = now[a][0]; for(j = add[i]; j > now[a][1]; j --) { t = number[i][j]; add[t] ++; d = add[t]; number[t][d] = t; add[i] --; now[t][0] = t; now[t][1] = d; } } void on(int a, int b, int number[][24], int add[], int now[][2]) { int i, j, t, d, n = 0, p; i = now[a][0]; for(j = now[a][1]; j <= add[i]; j ++) { p = now[b][0]; add[p] ++; d = add[p]; t = number[i][j]; number[p][d] = t; now[t][0] = p; now[t][1] = d; n ++; } add[i] -= n; }
the_stack_data/100811.c
/** ****************************************************************************** * @file stm32h7xx_ll_tim.c * @author MCD Application Team * @brief TIM LL module driver. ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) 2017 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 "stm32h7xx_ll_tim.h" #include "stm32h7xx_ll_bus.h" #ifdef USE_FULL_ASSERT #include "stm32_assert.h" #else #define assert_param(expr) ((void)0U) #endif /* USE_FULL_ASSERT */ /** @addtogroup STM32H7xx_LL_Driver * @{ */ #if defined (TIM1) || defined (TIM2) || defined (TIM3) || defined (TIM4) || defined (TIM5) || defined (TIM6) || defined (TIM7) || defined (TIM8) || defined (TIM12) || defined (TIM13) || defined (TIM14) || defined (TIM15) || defined (TIM16) || defined (TIM17) /** @addtogroup TIM_LL * @{ */ /* Private types -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private constants ---------------------------------------------------------*/ /* Private macros ------------------------------------------------------------*/ /** @addtogroup TIM_LL_Private_Macros * @{ */ #define IS_LL_TIM_COUNTERMODE(__VALUE__) (((__VALUE__) == LL_TIM_COUNTERMODE_UP) \ || ((__VALUE__) == LL_TIM_COUNTERMODE_DOWN) \ || ((__VALUE__) == LL_TIM_COUNTERMODE_CENTER_UP) \ || ((__VALUE__) == LL_TIM_COUNTERMODE_CENTER_DOWN) \ || ((__VALUE__) == LL_TIM_COUNTERMODE_CENTER_UP_DOWN)) #define IS_LL_TIM_CLOCKDIVISION(__VALUE__) (((__VALUE__) == LL_TIM_CLOCKDIVISION_DIV1) \ || ((__VALUE__) == LL_TIM_CLOCKDIVISION_DIV2) \ || ((__VALUE__) == LL_TIM_CLOCKDIVISION_DIV4)) #define IS_LL_TIM_OCMODE(__VALUE__) (((__VALUE__) == LL_TIM_OCMODE_FROZEN) \ || ((__VALUE__) == LL_TIM_OCMODE_ACTIVE) \ || ((__VALUE__) == LL_TIM_OCMODE_INACTIVE) \ || ((__VALUE__) == LL_TIM_OCMODE_TOGGLE) \ || ((__VALUE__) == LL_TIM_OCMODE_FORCED_INACTIVE) \ || ((__VALUE__) == LL_TIM_OCMODE_FORCED_ACTIVE) \ || ((__VALUE__) == LL_TIM_OCMODE_PWM1) \ || ((__VALUE__) == LL_TIM_OCMODE_PWM2) \ || ((__VALUE__) == LL_TIM_OCMODE_RETRIG_OPM1) \ || ((__VALUE__) == LL_TIM_OCMODE_RETRIG_OPM2) \ || ((__VALUE__) == LL_TIM_OCMODE_COMBINED_PWM1) \ || ((__VALUE__) == LL_TIM_OCMODE_COMBINED_PWM2) \ || ((__VALUE__) == LL_TIM_OCMODE_ASSYMETRIC_PWM1) \ || ((__VALUE__) == LL_TIM_OCMODE_ASSYMETRIC_PWM2)) #define IS_LL_TIM_OCSTATE(__VALUE__) (((__VALUE__) == LL_TIM_OCSTATE_DISABLE) \ || ((__VALUE__) == LL_TIM_OCSTATE_ENABLE)) #define IS_LL_TIM_OCPOLARITY(__VALUE__) (((__VALUE__) == LL_TIM_OCPOLARITY_HIGH) \ || ((__VALUE__) == LL_TIM_OCPOLARITY_LOW)) #define IS_LL_TIM_OCIDLESTATE(__VALUE__) (((__VALUE__) == LL_TIM_OCIDLESTATE_LOW) \ || ((__VALUE__) == LL_TIM_OCIDLESTATE_HIGH)) #define IS_LL_TIM_ACTIVEINPUT(__VALUE__) (((__VALUE__) == LL_TIM_ACTIVEINPUT_DIRECTTI) \ || ((__VALUE__) == LL_TIM_ACTIVEINPUT_INDIRECTTI) \ || ((__VALUE__) == LL_TIM_ACTIVEINPUT_TRC)) #define IS_LL_TIM_ICPSC(__VALUE__) (((__VALUE__) == LL_TIM_ICPSC_DIV1) \ || ((__VALUE__) == LL_TIM_ICPSC_DIV2) \ || ((__VALUE__) == LL_TIM_ICPSC_DIV4) \ || ((__VALUE__) == LL_TIM_ICPSC_DIV8)) #define IS_LL_TIM_IC_FILTER(__VALUE__) (((__VALUE__) == LL_TIM_IC_FILTER_FDIV1) \ || ((__VALUE__) == LL_TIM_IC_FILTER_FDIV1_N2) \ || ((__VALUE__) == LL_TIM_IC_FILTER_FDIV1_N4) \ || ((__VALUE__) == LL_TIM_IC_FILTER_FDIV1_N8) \ || ((__VALUE__) == LL_TIM_IC_FILTER_FDIV2_N6) \ || ((__VALUE__) == LL_TIM_IC_FILTER_FDIV2_N8) \ || ((__VALUE__) == LL_TIM_IC_FILTER_FDIV4_N6) \ || ((__VALUE__) == LL_TIM_IC_FILTER_FDIV4_N8) \ || ((__VALUE__) == LL_TIM_IC_FILTER_FDIV8_N6) \ || ((__VALUE__) == LL_TIM_IC_FILTER_FDIV8_N8) \ || ((__VALUE__) == LL_TIM_IC_FILTER_FDIV16_N5) \ || ((__VALUE__) == LL_TIM_IC_FILTER_FDIV16_N6) \ || ((__VALUE__) == LL_TIM_IC_FILTER_FDIV16_N8) \ || ((__VALUE__) == LL_TIM_IC_FILTER_FDIV32_N5) \ || ((__VALUE__) == LL_TIM_IC_FILTER_FDIV32_N6) \ || ((__VALUE__) == LL_TIM_IC_FILTER_FDIV32_N8)) #define IS_LL_TIM_IC_POLARITY(__VALUE__) (((__VALUE__) == LL_TIM_IC_POLARITY_RISING) \ || ((__VALUE__) == LL_TIM_IC_POLARITY_FALLING) \ || ((__VALUE__) == LL_TIM_IC_POLARITY_BOTHEDGE)) #define IS_LL_TIM_ENCODERMODE(__VALUE__) (((__VALUE__) == LL_TIM_ENCODERMODE_X2_TI1) \ || ((__VALUE__) == LL_TIM_ENCODERMODE_X2_TI2) \ || ((__VALUE__) == LL_TIM_ENCODERMODE_X4_TI12)) #define IS_LL_TIM_IC_POLARITY_ENCODER(__VALUE__) (((__VALUE__) == LL_TIM_IC_POLARITY_RISING) \ || ((__VALUE__) == LL_TIM_IC_POLARITY_FALLING)) #define IS_LL_TIM_OSSR_STATE(__VALUE__) (((__VALUE__) == LL_TIM_OSSR_DISABLE) \ || ((__VALUE__) == LL_TIM_OSSR_ENABLE)) #define IS_LL_TIM_OSSI_STATE(__VALUE__) (((__VALUE__) == LL_TIM_OSSI_DISABLE) \ || ((__VALUE__) == LL_TIM_OSSI_ENABLE)) #define IS_LL_TIM_LOCK_LEVEL(__VALUE__) (((__VALUE__) == LL_TIM_LOCKLEVEL_OFF) \ || ((__VALUE__) == LL_TIM_LOCKLEVEL_1) \ || ((__VALUE__) == LL_TIM_LOCKLEVEL_2) \ || ((__VALUE__) == LL_TIM_LOCKLEVEL_3)) #define IS_LL_TIM_BREAK_STATE(__VALUE__) (((__VALUE__) == LL_TIM_BREAK_DISABLE) \ || ((__VALUE__) == LL_TIM_BREAK_ENABLE)) #define IS_LL_TIM_BREAK_POLARITY(__VALUE__) (((__VALUE__) == LL_TIM_BREAK_POLARITY_LOW) \ || ((__VALUE__) == LL_TIM_BREAK_POLARITY_HIGH)) #define IS_LL_TIM_BREAK_FILTER(__VALUE__) (((__VALUE__) == LL_TIM_BREAK_FILTER_FDIV1) \ || ((__VALUE__) == LL_TIM_BREAK_FILTER_FDIV1_N2) \ || ((__VALUE__) == LL_TIM_BREAK_FILTER_FDIV1_N4) \ || ((__VALUE__) == LL_TIM_BREAK_FILTER_FDIV1_N8) \ || ((__VALUE__) == LL_TIM_BREAK_FILTER_FDIV2_N6) \ || ((__VALUE__) == LL_TIM_BREAK_FILTER_FDIV2_N8) \ || ((__VALUE__) == LL_TIM_BREAK_FILTER_FDIV4_N6) \ || ((__VALUE__) == LL_TIM_BREAK_FILTER_FDIV4_N8) \ || ((__VALUE__) == LL_TIM_BREAK_FILTER_FDIV8_N6) \ || ((__VALUE__) == LL_TIM_BREAK_FILTER_FDIV8_N8) \ || ((__VALUE__) == LL_TIM_BREAK_FILTER_FDIV16_N5) \ || ((__VALUE__) == LL_TIM_BREAK_FILTER_FDIV16_N6) \ || ((__VALUE__) == LL_TIM_BREAK_FILTER_FDIV16_N8) \ || ((__VALUE__) == LL_TIM_BREAK_FILTER_FDIV32_N5) \ || ((__VALUE__) == LL_TIM_BREAK_FILTER_FDIV32_N6) \ || ((__VALUE__) == LL_TIM_BREAK_FILTER_FDIV32_N8)) #define IS_LL_TIM_BREAK2_STATE(__VALUE__) (((__VALUE__) == LL_TIM_BREAK2_DISABLE) \ || ((__VALUE__) == LL_TIM_BREAK2_ENABLE)) #define IS_LL_TIM_BREAK2_POLARITY(__VALUE__) (((__VALUE__) == LL_TIM_BREAK2_POLARITY_LOW) \ || ((__VALUE__) == LL_TIM_BREAK2_POLARITY_HIGH)) #define IS_LL_TIM_BREAK2_FILTER(__VALUE__) (((__VALUE__) == LL_TIM_BREAK2_FILTER_FDIV1) \ || ((__VALUE__) == LL_TIM_BREAK2_FILTER_FDIV1_N2) \ || ((__VALUE__) == LL_TIM_BREAK2_FILTER_FDIV1_N4) \ || ((__VALUE__) == LL_TIM_BREAK2_FILTER_FDIV1_N8) \ || ((__VALUE__) == LL_TIM_BREAK2_FILTER_FDIV2_N6) \ || ((__VALUE__) == LL_TIM_BREAK2_FILTER_FDIV2_N8) \ || ((__VALUE__) == LL_TIM_BREAK2_FILTER_FDIV4_N6) \ || ((__VALUE__) == LL_TIM_BREAK2_FILTER_FDIV4_N8) \ || ((__VALUE__) == LL_TIM_BREAK2_FILTER_FDIV8_N6) \ || ((__VALUE__) == LL_TIM_BREAK2_FILTER_FDIV8_N8) \ || ((__VALUE__) == LL_TIM_BREAK2_FILTER_FDIV16_N5) \ || ((__VALUE__) == LL_TIM_BREAK2_FILTER_FDIV16_N6) \ || ((__VALUE__) == LL_TIM_BREAK2_FILTER_FDIV16_N8) \ || ((__VALUE__) == LL_TIM_BREAK2_FILTER_FDIV32_N5) \ || ((__VALUE__) == LL_TIM_BREAK2_FILTER_FDIV32_N6) \ || ((__VALUE__) == LL_TIM_BREAK2_FILTER_FDIV32_N8)) #define IS_LL_TIM_AUTOMATIC_OUTPUT_STATE(__VALUE__) (((__VALUE__) == LL_TIM_AUTOMATICOUTPUT_DISABLE) \ || ((__VALUE__) == LL_TIM_AUTOMATICOUTPUT_ENABLE)) /** * @} */ /* Private function prototypes -----------------------------------------------*/ /** @defgroup TIM_LL_Private_Functions TIM Private Functions * @{ */ static ErrorStatus OC1Config(TIM_TypeDef *TIMx, LL_TIM_OC_InitTypeDef *TIM_OCInitStruct); static ErrorStatus OC2Config(TIM_TypeDef *TIMx, LL_TIM_OC_InitTypeDef *TIM_OCInitStruct); static ErrorStatus OC3Config(TIM_TypeDef *TIMx, LL_TIM_OC_InitTypeDef *TIM_OCInitStruct); static ErrorStatus OC4Config(TIM_TypeDef *TIMx, LL_TIM_OC_InitTypeDef *TIM_OCInitStruct); static ErrorStatus OC5Config(TIM_TypeDef *TIMx, LL_TIM_OC_InitTypeDef *TIM_OCInitStruct); static ErrorStatus OC6Config(TIM_TypeDef *TIMx, LL_TIM_OC_InitTypeDef *TIM_OCInitStruct); static ErrorStatus IC1Config(TIM_TypeDef *TIMx, LL_TIM_IC_InitTypeDef *TIM_ICInitStruct); static ErrorStatus IC2Config(TIM_TypeDef *TIMx, LL_TIM_IC_InitTypeDef *TIM_ICInitStruct); static ErrorStatus IC3Config(TIM_TypeDef *TIMx, LL_TIM_IC_InitTypeDef *TIM_ICInitStruct); static ErrorStatus IC4Config(TIM_TypeDef *TIMx, LL_TIM_IC_InitTypeDef *TIM_ICInitStruct); /** * @} */ /* Exported functions --------------------------------------------------------*/ /** @addtogroup TIM_LL_Exported_Functions * @{ */ /** @addtogroup TIM_LL_EF_Init * @{ */ /** * @brief Set TIMx registers to their reset values. * @param TIMx Timer instance * @retval An ErrorStatus enumeration value: * - SUCCESS: TIMx registers are de-initialized * - ERROR: invalid TIMx instance */ ErrorStatus LL_TIM_DeInit(TIM_TypeDef *TIMx) { ErrorStatus result = SUCCESS; /* Check the parameters */ assert_param(IS_TIM_INSTANCE(TIMx)); if (TIMx == TIM1) { LL_APB2_GRP1_ForceReset(LL_APB2_GRP1_PERIPH_TIM1); LL_APB2_GRP1_ReleaseReset(LL_APB2_GRP1_PERIPH_TIM1); } #if defined(TIM2) else if (TIMx == TIM2) { LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_TIM2); LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_TIM2); } #endif #if defined(TIM3) else if (TIMx == TIM3) { LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_TIM3); LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_TIM3); } #endif #if defined(TIM4) else if (TIMx == TIM4) { LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_TIM4); LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_TIM4); } #endif #if defined(TIM5) else if (TIMx == TIM5) { LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_TIM5); LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_TIM5); } #endif #if defined(TIM6) else if (TIMx == TIM6) { LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_TIM6); LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_TIM6); } #endif #if defined (TIM7) else if (TIMx == TIM7) { LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_TIM7); LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_TIM7); } #endif #if defined(TIM8) else if (TIMx == TIM8) { LL_APB2_GRP1_ForceReset(LL_APB2_GRP1_PERIPH_TIM8); LL_APB2_GRP1_ReleaseReset(LL_APB2_GRP1_PERIPH_TIM8); } #endif #if defined(TIM12) else if (TIMx == TIM12) { LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_TIM12); LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_TIM12); } #endif #if defined(TIM13) else if (TIMx == TIM13) { LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_TIM13); LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_TIM13); } #endif #if defined(TIM14) else if (TIMx == TIM14) { LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_TIM14); LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_TIM14); } #endif #if defined(TIM15) else if (TIMx == TIM15) { LL_APB2_GRP1_ForceReset(LL_APB2_GRP1_PERIPH_TIM15); LL_APB2_GRP1_ReleaseReset(LL_APB2_GRP1_PERIPH_TIM15); } #endif #if defined(TIM16) else if (TIMx == TIM16) { LL_APB2_GRP1_ForceReset(LL_APB2_GRP1_PERIPH_TIM16); LL_APB2_GRP1_ReleaseReset(LL_APB2_GRP1_PERIPH_TIM16); } #endif #if defined(TIM17) else if (TIMx == TIM17) { LL_APB2_GRP1_ForceReset(LL_APB2_GRP1_PERIPH_TIM17); LL_APB2_GRP1_ReleaseReset(LL_APB2_GRP1_PERIPH_TIM17); } #endif else { result = ERROR; } return result; } /** * @brief Set the fields of the time base unit configuration data structure * to their default values. * @param TIM_InitStruct pointer to a @ref LL_TIM_InitTypeDef structure (time base unit configuration data structure) * @retval None */ void LL_TIM_StructInit(LL_TIM_InitTypeDef *TIM_InitStruct) { /* Set the default configuration */ TIM_InitStruct->Prescaler = (uint16_t)0x0000; TIM_InitStruct->CounterMode = LL_TIM_COUNTERMODE_UP; TIM_InitStruct->Autoreload = 0xFFFFFFFFU; TIM_InitStruct->ClockDivision = LL_TIM_CLOCKDIVISION_DIV1; TIM_InitStruct->RepetitionCounter = (uint8_t)0x00; } /** * @brief Configure the TIMx time base unit. * @param TIMx Timer Instance * @param TIM_InitStruct pointer to a @ref LL_TIM_InitTypeDef structure (TIMx time base unit configuration data structure) * @retval An ErrorStatus enumeration value: * - SUCCESS: TIMx registers are de-initialized * - ERROR: not applicable */ ErrorStatus LL_TIM_Init(TIM_TypeDef *TIMx, LL_TIM_InitTypeDef *TIM_InitStruct) { uint32_t tmpcr1; /* Check the parameters */ assert_param(IS_TIM_INSTANCE(TIMx)); assert_param(IS_LL_TIM_COUNTERMODE(TIM_InitStruct->CounterMode)); assert_param(IS_LL_TIM_CLOCKDIVISION(TIM_InitStruct->ClockDivision)); tmpcr1 = LL_TIM_ReadReg(TIMx, CR1); if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx)) { /* Select the Counter Mode */ MODIFY_REG(tmpcr1, (TIM_CR1_DIR | TIM_CR1_CMS), TIM_InitStruct->CounterMode); } if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx)) { /* Set the clock division */ MODIFY_REG(tmpcr1, TIM_CR1_CKD, TIM_InitStruct->ClockDivision); } /* Write to TIMx CR1 */ LL_TIM_WriteReg(TIMx, CR1, tmpcr1); /* Set the Autoreload value */ LL_TIM_SetAutoReload(TIMx, TIM_InitStruct->Autoreload); /* Set the Prescaler value */ LL_TIM_SetPrescaler(TIMx, TIM_InitStruct->Prescaler); if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx)) { /* Set the Repetition Counter value */ LL_TIM_SetRepetitionCounter(TIMx, TIM_InitStruct->RepetitionCounter); } /* Generate an update event to reload the Prescaler and the repetition counter value (if applicable) immediately */ LL_TIM_GenerateEvent_UPDATE(TIMx); return SUCCESS; } /** * @brief Set the fields of the TIMx output channel configuration data * structure to their default values. * @param TIM_OC_InitStruct pointer to a @ref LL_TIM_OC_InitTypeDef structure (the output channel configuration data structure) * @retval None */ void LL_TIM_OC_StructInit(LL_TIM_OC_InitTypeDef *TIM_OC_InitStruct) { /* Set the default configuration */ TIM_OC_InitStruct->OCMode = LL_TIM_OCMODE_FROZEN; TIM_OC_InitStruct->OCState = LL_TIM_OCSTATE_DISABLE; TIM_OC_InitStruct->OCNState = LL_TIM_OCSTATE_DISABLE; TIM_OC_InitStruct->CompareValue = 0x00000000U; TIM_OC_InitStruct->OCPolarity = LL_TIM_OCPOLARITY_HIGH; TIM_OC_InitStruct->OCNPolarity = LL_TIM_OCPOLARITY_HIGH; TIM_OC_InitStruct->OCIdleState = LL_TIM_OCIDLESTATE_LOW; TIM_OC_InitStruct->OCNIdleState = LL_TIM_OCIDLESTATE_LOW; } /** * @brief Configure the TIMx output channel. * @param TIMx Timer Instance * @param Channel This parameter can be one of the following values: * @arg @ref LL_TIM_CHANNEL_CH1 * @arg @ref LL_TIM_CHANNEL_CH2 * @arg @ref LL_TIM_CHANNEL_CH3 * @arg @ref LL_TIM_CHANNEL_CH4 * @arg @ref LL_TIM_CHANNEL_CH5 * @arg @ref LL_TIM_CHANNEL_CH6 * @param TIM_OC_InitStruct pointer to a @ref LL_TIM_OC_InitTypeDef structure (TIMx output channel configuration data structure) * @retval An ErrorStatus enumeration value: * - SUCCESS: TIMx output channel is initialized * - ERROR: TIMx output channel is not initialized */ ErrorStatus LL_TIM_OC_Init(TIM_TypeDef *TIMx, uint32_t Channel, LL_TIM_OC_InitTypeDef *TIM_OC_InitStruct) { ErrorStatus result = ERROR; switch (Channel) { case LL_TIM_CHANNEL_CH1: result = OC1Config(TIMx, TIM_OC_InitStruct); break; case LL_TIM_CHANNEL_CH2: result = OC2Config(TIMx, TIM_OC_InitStruct); break; case LL_TIM_CHANNEL_CH3: result = OC3Config(TIMx, TIM_OC_InitStruct); break; case LL_TIM_CHANNEL_CH4: result = OC4Config(TIMx, TIM_OC_InitStruct); break; case LL_TIM_CHANNEL_CH5: result = OC5Config(TIMx, TIM_OC_InitStruct); break; case LL_TIM_CHANNEL_CH6: result = OC6Config(TIMx, TIM_OC_InitStruct); break; default: break; } return result; } /** * @brief Set the fields of the TIMx input channel configuration data * structure to their default values. * @param TIM_ICInitStruct pointer to a @ref LL_TIM_IC_InitTypeDef structure (the input channel configuration data structure) * @retval None */ void LL_TIM_IC_StructInit(LL_TIM_IC_InitTypeDef *TIM_ICInitStruct) { /* Set the default configuration */ TIM_ICInitStruct->ICPolarity = LL_TIM_IC_POLARITY_RISING; TIM_ICInitStruct->ICActiveInput = LL_TIM_ACTIVEINPUT_DIRECTTI; TIM_ICInitStruct->ICPrescaler = LL_TIM_ICPSC_DIV1; TIM_ICInitStruct->ICFilter = LL_TIM_IC_FILTER_FDIV1; } /** * @brief Configure the TIMx input channel. * @param TIMx Timer Instance * @param Channel This parameter can be one of the following values: * @arg @ref LL_TIM_CHANNEL_CH1 * @arg @ref LL_TIM_CHANNEL_CH2 * @arg @ref LL_TIM_CHANNEL_CH3 * @arg @ref LL_TIM_CHANNEL_CH4 * @param TIM_IC_InitStruct pointer to a @ref LL_TIM_IC_InitTypeDef structure (TIMx input channel configuration data structure) * @retval An ErrorStatus enumeration value: * - SUCCESS: TIMx output channel is initialized * - ERROR: TIMx output channel is not initialized */ ErrorStatus LL_TIM_IC_Init(TIM_TypeDef *TIMx, uint32_t Channel, LL_TIM_IC_InitTypeDef *TIM_IC_InitStruct) { ErrorStatus result = ERROR; switch (Channel) { case LL_TIM_CHANNEL_CH1: result = IC1Config(TIMx, TIM_IC_InitStruct); break; case LL_TIM_CHANNEL_CH2: result = IC2Config(TIMx, TIM_IC_InitStruct); break; case LL_TIM_CHANNEL_CH3: result = IC3Config(TIMx, TIM_IC_InitStruct); break; case LL_TIM_CHANNEL_CH4: result = IC4Config(TIMx, TIM_IC_InitStruct); break; default: break; } return result; } /** * @brief Fills each TIM_EncoderInitStruct field with its default value * @param TIM_EncoderInitStruct pointer to a @ref LL_TIM_ENCODER_InitTypeDef structure (encoder interface configuration data structure) * @retval None */ void LL_TIM_ENCODER_StructInit(LL_TIM_ENCODER_InitTypeDef *TIM_EncoderInitStruct) { /* Set the default configuration */ TIM_EncoderInitStruct->EncoderMode = LL_TIM_ENCODERMODE_X2_TI1; TIM_EncoderInitStruct->IC1Polarity = LL_TIM_IC_POLARITY_RISING; TIM_EncoderInitStruct->IC1ActiveInput = LL_TIM_ACTIVEINPUT_DIRECTTI; TIM_EncoderInitStruct->IC1Prescaler = LL_TIM_ICPSC_DIV1; TIM_EncoderInitStruct->IC1Filter = LL_TIM_IC_FILTER_FDIV1; TIM_EncoderInitStruct->IC2Polarity = LL_TIM_IC_POLARITY_RISING; TIM_EncoderInitStruct->IC2ActiveInput = LL_TIM_ACTIVEINPUT_DIRECTTI; TIM_EncoderInitStruct->IC2Prescaler = LL_TIM_ICPSC_DIV1; TIM_EncoderInitStruct->IC2Filter = LL_TIM_IC_FILTER_FDIV1; } /** * @brief Configure the encoder interface of the timer instance. * @param TIMx Timer Instance * @param TIM_EncoderInitStruct pointer to a @ref LL_TIM_ENCODER_InitTypeDef structure (TIMx encoder interface configuration data structure) * @retval An ErrorStatus enumeration value: * - SUCCESS: TIMx registers are de-initialized * - ERROR: not applicable */ ErrorStatus LL_TIM_ENCODER_Init(TIM_TypeDef *TIMx, LL_TIM_ENCODER_InitTypeDef *TIM_EncoderInitStruct) { uint32_t tmpccmr1; uint32_t tmpccer; /* Check the parameters */ assert_param(IS_TIM_ENCODER_INTERFACE_INSTANCE(TIMx)); assert_param(IS_LL_TIM_ENCODERMODE(TIM_EncoderInitStruct->EncoderMode)); assert_param(IS_LL_TIM_IC_POLARITY_ENCODER(TIM_EncoderInitStruct->IC1Polarity)); assert_param(IS_LL_TIM_ACTIVEINPUT(TIM_EncoderInitStruct->IC1ActiveInput)); assert_param(IS_LL_TIM_ICPSC(TIM_EncoderInitStruct->IC1Prescaler)); assert_param(IS_LL_TIM_IC_FILTER(TIM_EncoderInitStruct->IC1Filter)); assert_param(IS_LL_TIM_IC_POLARITY_ENCODER(TIM_EncoderInitStruct->IC2Polarity)); assert_param(IS_LL_TIM_ACTIVEINPUT(TIM_EncoderInitStruct->IC2ActiveInput)); assert_param(IS_LL_TIM_ICPSC(TIM_EncoderInitStruct->IC2Prescaler)); assert_param(IS_LL_TIM_IC_FILTER(TIM_EncoderInitStruct->IC2Filter)); /* Disable the CC1 and CC2: Reset the CC1E and CC2E Bits */ TIMx->CCER &= (uint32_t)~(TIM_CCER_CC1E | TIM_CCER_CC2E); /* Get the TIMx CCMR1 register value */ tmpccmr1 = LL_TIM_ReadReg(TIMx, CCMR1); /* Get the TIMx CCER register value */ tmpccer = LL_TIM_ReadReg(TIMx, CCER); /* Configure TI1 */ tmpccmr1 &= (uint32_t)~(TIM_CCMR1_CC1S | TIM_CCMR1_IC1F | TIM_CCMR1_IC1PSC); tmpccmr1 |= (uint32_t)(TIM_EncoderInitStruct->IC1ActiveInput >> 16U); tmpccmr1 |= (uint32_t)(TIM_EncoderInitStruct->IC1Filter >> 16U); tmpccmr1 |= (uint32_t)(TIM_EncoderInitStruct->IC1Prescaler >> 16U); /* Configure TI2 */ tmpccmr1 &= (uint32_t)~(TIM_CCMR1_CC2S | TIM_CCMR1_IC2F | TIM_CCMR1_IC2PSC); tmpccmr1 |= (uint32_t)(TIM_EncoderInitStruct->IC2ActiveInput >> 8U); tmpccmr1 |= (uint32_t)(TIM_EncoderInitStruct->IC2Filter >> 8U); tmpccmr1 |= (uint32_t)(TIM_EncoderInitStruct->IC2Prescaler >> 8U); /* Set TI1 and TI2 polarity and enable TI1 and TI2 */ tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC1Polarity); tmpccer |= (uint32_t)(TIM_EncoderInitStruct->IC2Polarity << 4U); tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); /* Set encoder mode */ LL_TIM_SetEncoderMode(TIMx, TIM_EncoderInitStruct->EncoderMode); /* Write to TIMx CCMR1 */ LL_TIM_WriteReg(TIMx, CCMR1, tmpccmr1); /* Write to TIMx CCER */ LL_TIM_WriteReg(TIMx, CCER, tmpccer); return SUCCESS; } /** * @brief Set the fields of the TIMx Hall sensor interface configuration data * structure to their default values. * @param TIM_HallSensorInitStruct pointer to a @ref LL_TIM_HALLSENSOR_InitTypeDef structure (HALL sensor interface configuration data structure) * @retval None */ void LL_TIM_HALLSENSOR_StructInit(LL_TIM_HALLSENSOR_InitTypeDef *TIM_HallSensorInitStruct) { /* Set the default configuration */ TIM_HallSensorInitStruct->IC1Polarity = LL_TIM_IC_POLARITY_RISING; TIM_HallSensorInitStruct->IC1Prescaler = LL_TIM_ICPSC_DIV1; TIM_HallSensorInitStruct->IC1Filter = LL_TIM_IC_FILTER_FDIV1; TIM_HallSensorInitStruct->CommutationDelay = 0U; } /** * @brief Configure the Hall sensor interface of the timer instance. * @note TIMx CH1, CH2 and CH3 inputs connected through a XOR * to the TI1 input channel * @note TIMx slave mode controller is configured in reset mode. Selected internal trigger is TI1F_ED. * @note Channel 1 is configured as input, IC1 is mapped on TRC. * @note Captured value stored in TIMx_CCR1 correspond to the time elapsed * between 2 changes on the inputs. It gives information about motor speed. * @note Channel 2 is configured in output PWM 2 mode. * @note Compare value stored in TIMx_CCR2 corresponds to the commutation delay. * @note OC2REF is selected as trigger output on TRGO. * @note LL_TIM_IC_POLARITY_BOTHEDGE must not be used for TI1 when it is used * when TIMx operates in Hall sensor interface mode. * @param TIMx Timer Instance * @param TIM_HallSensorInitStruct pointer to a @ref LL_TIM_HALLSENSOR_InitTypeDef structure (TIMx HALL sensor interface configuration data structure) * @retval An ErrorStatus enumeration value: * - SUCCESS: TIMx registers are de-initialized * - ERROR: not applicable */ ErrorStatus LL_TIM_HALLSENSOR_Init(TIM_TypeDef *TIMx, LL_TIM_HALLSENSOR_InitTypeDef *TIM_HallSensorInitStruct) { uint32_t tmpcr2; uint32_t tmpccmr1; uint32_t tmpccer; uint32_t tmpsmcr; /* Check the parameters */ assert_param(IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(TIMx)); assert_param(IS_LL_TIM_IC_POLARITY_ENCODER(TIM_HallSensorInitStruct->IC1Polarity)); assert_param(IS_LL_TIM_ICPSC(TIM_HallSensorInitStruct->IC1Prescaler)); assert_param(IS_LL_TIM_IC_FILTER(TIM_HallSensorInitStruct->IC1Filter)); /* Disable the CC1 and CC2: Reset the CC1E and CC2E Bits */ TIMx->CCER &= (uint32_t)~(TIM_CCER_CC1E | TIM_CCER_CC2E); /* Get the TIMx CR2 register value */ tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); /* Get the TIMx CCMR1 register value */ tmpccmr1 = LL_TIM_ReadReg(TIMx, CCMR1); /* Get the TIMx CCER register value */ tmpccer = LL_TIM_ReadReg(TIMx, CCER); /* Get the TIMx SMCR register value */ tmpsmcr = LL_TIM_ReadReg(TIMx, SMCR); /* Connect TIMx_CH1, CH2 and CH3 pins to the TI1 input */ tmpcr2 |= TIM_CR2_TI1S; /* OC2REF signal is used as trigger output (TRGO) */ tmpcr2 |= LL_TIM_TRGO_OC2REF; /* Configure the slave mode controller */ tmpsmcr &= (uint32_t)~(TIM_SMCR_TS | TIM_SMCR_SMS); tmpsmcr |= LL_TIM_TS_TI1F_ED; tmpsmcr |= LL_TIM_SLAVEMODE_RESET; /* Configure input channel 1 */ tmpccmr1 &= (uint32_t)~(TIM_CCMR1_CC1S | TIM_CCMR1_IC1F | TIM_CCMR1_IC1PSC); tmpccmr1 |= (uint32_t)(LL_TIM_ACTIVEINPUT_TRC >> 16U); tmpccmr1 |= (uint32_t)(TIM_HallSensorInitStruct->IC1Filter >> 16U); tmpccmr1 |= (uint32_t)(TIM_HallSensorInitStruct->IC1Prescaler >> 16U); /* Configure input channel 2 */ tmpccmr1 &= (uint32_t)~(TIM_CCMR1_OC2M | TIM_CCMR1_OC2FE | TIM_CCMR1_OC2PE | TIM_CCMR1_OC2CE); tmpccmr1 |= (uint32_t)(LL_TIM_OCMODE_PWM2 << 8U); /* Set Channel 1 polarity and enable Channel 1 and Channel2 */ tmpccer &= (uint32_t)~(TIM_CCER_CC1P | TIM_CCER_CC1NP | TIM_CCER_CC2P | TIM_CCER_CC2NP); tmpccer |= (uint32_t)(TIM_HallSensorInitStruct->IC1Polarity); tmpccer |= (uint32_t)(TIM_CCER_CC1E | TIM_CCER_CC2E); /* Write to TIMx CR2 */ LL_TIM_WriteReg(TIMx, CR2, tmpcr2); /* Write to TIMx SMCR */ LL_TIM_WriteReg(TIMx, SMCR, tmpsmcr); /* Write to TIMx CCMR1 */ LL_TIM_WriteReg(TIMx, CCMR1, tmpccmr1); /* Write to TIMx CCER */ LL_TIM_WriteReg(TIMx, CCER, tmpccer); /* Write to TIMx CCR2 */ LL_TIM_OC_SetCompareCH2(TIMx, TIM_HallSensorInitStruct->CommutationDelay); return SUCCESS; } /** * @brief Set the fields of the Break and Dead Time configuration data structure * to their default values. * @param TIM_BDTRInitStruct pointer to a @ref LL_TIM_BDTR_InitTypeDef structure (Break and Dead Time configuration data structure) * @retval None */ void LL_TIM_BDTR_StructInit(LL_TIM_BDTR_InitTypeDef *TIM_BDTRInitStruct) { /* Set the default configuration */ TIM_BDTRInitStruct->OSSRState = LL_TIM_OSSR_DISABLE; TIM_BDTRInitStruct->OSSIState = LL_TIM_OSSI_DISABLE; TIM_BDTRInitStruct->LockLevel = LL_TIM_LOCKLEVEL_OFF; TIM_BDTRInitStruct->DeadTime = (uint8_t)0x00; TIM_BDTRInitStruct->BreakState = LL_TIM_BREAK_DISABLE; TIM_BDTRInitStruct->BreakPolarity = LL_TIM_BREAK_POLARITY_LOW; TIM_BDTRInitStruct->BreakFilter = LL_TIM_BREAK_FILTER_FDIV1; TIM_BDTRInitStruct->Break2State = LL_TIM_BREAK2_DISABLE; TIM_BDTRInitStruct->Break2Polarity = LL_TIM_BREAK2_POLARITY_LOW; TIM_BDTRInitStruct->Break2Filter = LL_TIM_BREAK2_FILTER_FDIV1; TIM_BDTRInitStruct->AutomaticOutput = LL_TIM_AUTOMATICOUTPUT_DISABLE; } /** * @brief Configure the Break and Dead Time feature of the timer instance. * @note As the bits BK2P, BK2E, BK2F[3:0], BKF[3:0], AOE, BKP, BKE, OSSI, OSSR * and DTG[7:0] can be write-locked depending on the LOCK configuration, it * can be necessary to configure all of them during the first write access to * the TIMx_BDTR register. * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not * a timer instance provides a break input. * @note Macro IS_TIM_BKIN2_INSTANCE(TIMx) can be used to check whether or not * a timer instance provides a second break input. * @param TIMx Timer Instance * @param TIM_BDTRInitStruct pointer to a @ref LL_TIM_BDTR_InitTypeDef structure (Break and Dead Time configuration data structure) * @retval An ErrorStatus enumeration value: * - SUCCESS: Break and Dead Time is initialized * - ERROR: not applicable */ ErrorStatus LL_TIM_BDTR_Init(TIM_TypeDef *TIMx, LL_TIM_BDTR_InitTypeDef *TIM_BDTRInitStruct) { uint32_t tmpbdtr = 0; /* Check the parameters */ assert_param(IS_TIM_BREAK_INSTANCE(TIMx)); assert_param(IS_LL_TIM_OSSR_STATE(TIM_BDTRInitStruct->OSSRState)); assert_param(IS_LL_TIM_OSSI_STATE(TIM_BDTRInitStruct->OSSIState)); assert_param(IS_LL_TIM_LOCK_LEVEL(TIM_BDTRInitStruct->LockLevel)); assert_param(IS_LL_TIM_BREAK_STATE(TIM_BDTRInitStruct->BreakState)); assert_param(IS_LL_TIM_BREAK_POLARITY(TIM_BDTRInitStruct->BreakPolarity)); assert_param(IS_LL_TIM_AUTOMATIC_OUTPUT_STATE(TIM_BDTRInitStruct->AutomaticOutput)); /* Set the Lock level, the Break enable Bit and the Polarity, the OSSR State, the OSSI State, the dead time value and the Automatic Output Enable Bit */ /* Set the BDTR bits */ MODIFY_REG(tmpbdtr, TIM_BDTR_DTG, TIM_BDTRInitStruct->DeadTime); MODIFY_REG(tmpbdtr, TIM_BDTR_LOCK, TIM_BDTRInitStruct->LockLevel); MODIFY_REG(tmpbdtr, TIM_BDTR_OSSI, TIM_BDTRInitStruct->OSSIState); MODIFY_REG(tmpbdtr, TIM_BDTR_OSSR, TIM_BDTRInitStruct->OSSRState); MODIFY_REG(tmpbdtr, TIM_BDTR_BKE, TIM_BDTRInitStruct->BreakState); MODIFY_REG(tmpbdtr, TIM_BDTR_BKP, TIM_BDTRInitStruct->BreakPolarity); MODIFY_REG(tmpbdtr, TIM_BDTR_AOE, TIM_BDTRInitStruct->AutomaticOutput); MODIFY_REG(tmpbdtr, TIM_BDTR_MOE, TIM_BDTRInitStruct->AutomaticOutput); if (IS_TIM_ADVANCED_INSTANCE(TIMx)) { assert_param(IS_LL_TIM_BREAK_FILTER(TIM_BDTRInitStruct->BreakFilter)); MODIFY_REG(tmpbdtr, TIM_BDTR_BKF, TIM_BDTRInitStruct->BreakFilter); } if (IS_TIM_BKIN2_INSTANCE(TIMx)) { assert_param(IS_LL_TIM_BREAK2_STATE(TIM_BDTRInitStruct->Break2State)); assert_param(IS_LL_TIM_BREAK2_POLARITY(TIM_BDTRInitStruct->Break2Polarity)); assert_param(IS_LL_TIM_BREAK2_FILTER(TIM_BDTRInitStruct->Break2Filter)); /* Set the BREAK2 input related BDTR bit-fields */ MODIFY_REG(tmpbdtr, TIM_BDTR_BK2F, (TIM_BDTRInitStruct->Break2Filter)); MODIFY_REG(tmpbdtr, TIM_BDTR_BK2E, TIM_BDTRInitStruct->Break2State); MODIFY_REG(tmpbdtr, TIM_BDTR_BK2P, TIM_BDTRInitStruct->Break2Polarity); } /* Set TIMx_BDTR */ LL_TIM_WriteReg(TIMx, BDTR, tmpbdtr); return SUCCESS; } /** * @} */ /** * @} */ /** @addtogroup TIM_LL_Private_Functions TIM Private Functions * @brief Private functions * @{ */ /** * @brief Configure the TIMx output channel 1. * @param TIMx Timer Instance * @param TIM_OCInitStruct pointer to the the TIMx output channel 1 configuration data structure * @retval An ErrorStatus enumeration value: * - SUCCESS: TIMx registers are de-initialized * - ERROR: not applicable */ static ErrorStatus OC1Config(TIM_TypeDef *TIMx, LL_TIM_OC_InitTypeDef *TIM_OCInitStruct) { uint32_t tmpccmr1; uint32_t tmpccer; uint32_t tmpcr2; /* Check the parameters */ assert_param(IS_TIM_CC1_INSTANCE(TIMx)); assert_param(IS_LL_TIM_OCMODE(TIM_OCInitStruct->OCMode)); assert_param(IS_LL_TIM_OCSTATE(TIM_OCInitStruct->OCState)); assert_param(IS_LL_TIM_OCPOLARITY(TIM_OCInitStruct->OCPolarity)); assert_param(IS_LL_TIM_OCSTATE(TIM_OCInitStruct->OCNState)); assert_param(IS_LL_TIM_OCPOLARITY(TIM_OCInitStruct->OCNPolarity)); /* Disable the Channel 1: Reset the CC1E Bit */ CLEAR_BIT(TIMx->CCER, TIM_CCER_CC1E); /* Get the TIMx CCER register value */ tmpccer = LL_TIM_ReadReg(TIMx, CCER); /* Get the TIMx CR2 register value */ tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); /* Get the TIMx CCMR1 register value */ tmpccmr1 = LL_TIM_ReadReg(TIMx, CCMR1); /* Reset Capture/Compare selection Bits */ CLEAR_BIT(tmpccmr1, TIM_CCMR1_CC1S); /* Set the Output Compare Mode */ MODIFY_REG(tmpccmr1, TIM_CCMR1_OC1M, TIM_OCInitStruct->OCMode); /* Set the Output Compare Polarity */ MODIFY_REG(tmpccer, TIM_CCER_CC1P, TIM_OCInitStruct->OCPolarity); /* Set the Output State */ MODIFY_REG(tmpccer, TIM_CCER_CC1E, TIM_OCInitStruct->OCState); if (IS_TIM_BREAK_INSTANCE(TIMx)) { assert_param(IS_LL_TIM_OCIDLESTATE(TIM_OCInitStruct->OCNIdleState)); assert_param(IS_LL_TIM_OCIDLESTATE(TIM_OCInitStruct->OCIdleState)); /* Set the complementary output Polarity */ MODIFY_REG(tmpccer, TIM_CCER_CC1NP, TIM_OCInitStruct->OCNPolarity << 2U); /* Set the complementary output State */ MODIFY_REG(tmpccer, TIM_CCER_CC1NE, TIM_OCInitStruct->OCNState << 2U); /* Set the Output Idle state */ MODIFY_REG(tmpcr2, TIM_CR2_OIS1, TIM_OCInitStruct->OCIdleState); /* Set the complementary output Idle state */ MODIFY_REG(tmpcr2, TIM_CR2_OIS1N, TIM_OCInitStruct->OCNIdleState << 1U); } /* Write to TIMx CR2 */ LL_TIM_WriteReg(TIMx, CR2, tmpcr2); /* Write to TIMx CCMR1 */ LL_TIM_WriteReg(TIMx, CCMR1, tmpccmr1); /* Set the Capture Compare Register value */ LL_TIM_OC_SetCompareCH1(TIMx, TIM_OCInitStruct->CompareValue); /* Write to TIMx CCER */ LL_TIM_WriteReg(TIMx, CCER, tmpccer); return SUCCESS; } /** * @brief Configure the TIMx output channel 2. * @param TIMx Timer Instance * @param TIM_OCInitStruct pointer to the the TIMx output channel 2 configuration data structure * @retval An ErrorStatus enumeration value: * - SUCCESS: TIMx registers are de-initialized * - ERROR: not applicable */ static ErrorStatus OC2Config(TIM_TypeDef *TIMx, LL_TIM_OC_InitTypeDef *TIM_OCInitStruct) { uint32_t tmpccmr1; uint32_t tmpccer; uint32_t tmpcr2; /* Check the parameters */ assert_param(IS_TIM_CC2_INSTANCE(TIMx)); assert_param(IS_LL_TIM_OCMODE(TIM_OCInitStruct->OCMode)); assert_param(IS_LL_TIM_OCSTATE(TIM_OCInitStruct->OCState)); assert_param(IS_LL_TIM_OCPOLARITY(TIM_OCInitStruct->OCPolarity)); assert_param(IS_LL_TIM_OCSTATE(TIM_OCInitStruct->OCNState)); assert_param(IS_LL_TIM_OCPOLARITY(TIM_OCInitStruct->OCNPolarity)); /* Disable the Channel 2: Reset the CC2E Bit */ CLEAR_BIT(TIMx->CCER, TIM_CCER_CC2E); /* Get the TIMx CCER register value */ tmpccer = LL_TIM_ReadReg(TIMx, CCER); /* Get the TIMx CR2 register value */ tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); /* Get the TIMx CCMR1 register value */ tmpccmr1 = LL_TIM_ReadReg(TIMx, CCMR1); /* Reset Capture/Compare selection Bits */ CLEAR_BIT(tmpccmr1, TIM_CCMR1_CC2S); /* Select the Output Compare Mode */ MODIFY_REG(tmpccmr1, TIM_CCMR1_OC2M, TIM_OCInitStruct->OCMode << 8U); /* Set the Output Compare Polarity */ MODIFY_REG(tmpccer, TIM_CCER_CC2P, TIM_OCInitStruct->OCPolarity << 4U); /* Set the Output State */ MODIFY_REG(tmpccer, TIM_CCER_CC2E, TIM_OCInitStruct->OCState << 4U); if (IS_TIM_BREAK_INSTANCE(TIMx)) { assert_param(IS_LL_TIM_OCIDLESTATE(TIM_OCInitStruct->OCNIdleState)); assert_param(IS_LL_TIM_OCIDLESTATE(TIM_OCInitStruct->OCIdleState)); /* Set the complementary output Polarity */ MODIFY_REG(tmpccer, TIM_CCER_CC2NP, TIM_OCInitStruct->OCNPolarity << 6U); /* Set the complementary output State */ MODIFY_REG(tmpccer, TIM_CCER_CC2NE, TIM_OCInitStruct->OCNState << 6U); /* Set the Output Idle state */ MODIFY_REG(tmpcr2, TIM_CR2_OIS2, TIM_OCInitStruct->OCIdleState << 2U); /* Set the complementary output Idle state */ MODIFY_REG(tmpcr2, TIM_CR2_OIS2N, TIM_OCInitStruct->OCNIdleState << 3U); } /* Write to TIMx CR2 */ LL_TIM_WriteReg(TIMx, CR2, tmpcr2); /* Write to TIMx CCMR1 */ LL_TIM_WriteReg(TIMx, CCMR1, tmpccmr1); /* Set the Capture Compare Register value */ LL_TIM_OC_SetCompareCH2(TIMx, TIM_OCInitStruct->CompareValue); /* Write to TIMx CCER */ LL_TIM_WriteReg(TIMx, CCER, tmpccer); return SUCCESS; } /** * @brief Configure the TIMx output channel 3. * @param TIMx Timer Instance * @param TIM_OCInitStruct pointer to the the TIMx output channel 3 configuration data structure * @retval An ErrorStatus enumeration value: * - SUCCESS: TIMx registers are de-initialized * - ERROR: not applicable */ static ErrorStatus OC3Config(TIM_TypeDef *TIMx, LL_TIM_OC_InitTypeDef *TIM_OCInitStruct) { uint32_t tmpccmr2; uint32_t tmpccer; uint32_t tmpcr2; /* Check the parameters */ assert_param(IS_TIM_CC3_INSTANCE(TIMx)); assert_param(IS_LL_TIM_OCMODE(TIM_OCInitStruct->OCMode)); assert_param(IS_LL_TIM_OCSTATE(TIM_OCInitStruct->OCState)); assert_param(IS_LL_TIM_OCPOLARITY(TIM_OCInitStruct->OCPolarity)); assert_param(IS_LL_TIM_OCSTATE(TIM_OCInitStruct->OCNState)); assert_param(IS_LL_TIM_OCPOLARITY(TIM_OCInitStruct->OCNPolarity)); /* Disable the Channel 3: Reset the CC3E Bit */ CLEAR_BIT(TIMx->CCER, TIM_CCER_CC3E); /* Get the TIMx CCER register value */ tmpccer = LL_TIM_ReadReg(TIMx, CCER); /* Get the TIMx CR2 register value */ tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); /* Get the TIMx CCMR2 register value */ tmpccmr2 = LL_TIM_ReadReg(TIMx, CCMR2); /* Reset Capture/Compare selection Bits */ CLEAR_BIT(tmpccmr2, TIM_CCMR2_CC3S); /* Select the Output Compare Mode */ MODIFY_REG(tmpccmr2, TIM_CCMR2_OC3M, TIM_OCInitStruct->OCMode); /* Set the Output Compare Polarity */ MODIFY_REG(tmpccer, TIM_CCER_CC3P, TIM_OCInitStruct->OCPolarity << 8U); /* Set the Output State */ MODIFY_REG(tmpccer, TIM_CCER_CC3E, TIM_OCInitStruct->OCState << 8U); if (IS_TIM_BREAK_INSTANCE(TIMx)) { assert_param(IS_LL_TIM_OCIDLESTATE(TIM_OCInitStruct->OCNIdleState)); assert_param(IS_LL_TIM_OCIDLESTATE(TIM_OCInitStruct->OCIdleState)); /* Set the complementary output Polarity */ MODIFY_REG(tmpccer, TIM_CCER_CC3NP, TIM_OCInitStruct->OCNPolarity << 10U); /* Set the complementary output State */ MODIFY_REG(tmpccer, TIM_CCER_CC3NE, TIM_OCInitStruct->OCNState << 10U); /* Set the Output Idle state */ MODIFY_REG(tmpcr2, TIM_CR2_OIS3, TIM_OCInitStruct->OCIdleState << 4U); /* Set the complementary output Idle state */ MODIFY_REG(tmpcr2, TIM_CR2_OIS3N, TIM_OCInitStruct->OCNIdleState << 5U); } /* Write to TIMx CR2 */ LL_TIM_WriteReg(TIMx, CR2, tmpcr2); /* Write to TIMx CCMR2 */ LL_TIM_WriteReg(TIMx, CCMR2, tmpccmr2); /* Set the Capture Compare Register value */ LL_TIM_OC_SetCompareCH3(TIMx, TIM_OCInitStruct->CompareValue); /* Write to TIMx CCER */ LL_TIM_WriteReg(TIMx, CCER, tmpccer); return SUCCESS; } /** * @brief Configure the TIMx output channel 4. * @param TIMx Timer Instance * @param TIM_OCInitStruct pointer to the the TIMx output channel 4 configuration data structure * @retval An ErrorStatus enumeration value: * - SUCCESS: TIMx registers are de-initialized * - ERROR: not applicable */ static ErrorStatus OC4Config(TIM_TypeDef *TIMx, LL_TIM_OC_InitTypeDef *TIM_OCInitStruct) { uint32_t tmpccmr2; uint32_t tmpccer; uint32_t tmpcr2; /* Check the parameters */ assert_param(IS_TIM_CC4_INSTANCE(TIMx)); assert_param(IS_LL_TIM_OCMODE(TIM_OCInitStruct->OCMode)); assert_param(IS_LL_TIM_OCSTATE(TIM_OCInitStruct->OCState)); assert_param(IS_LL_TIM_OCPOLARITY(TIM_OCInitStruct->OCPolarity)); assert_param(IS_LL_TIM_OCPOLARITY(TIM_OCInitStruct->OCNPolarity)); assert_param(IS_LL_TIM_OCSTATE(TIM_OCInitStruct->OCNState)); /* Disable the Channel 4: Reset the CC4E Bit */ CLEAR_BIT(TIMx->CCER, TIM_CCER_CC4E); /* Get the TIMx CCER register value */ tmpccer = LL_TIM_ReadReg(TIMx, CCER); /* Get the TIMx CR2 register value */ tmpcr2 = LL_TIM_ReadReg(TIMx, CR2); /* Get the TIMx CCMR2 register value */ tmpccmr2 = LL_TIM_ReadReg(TIMx, CCMR2); /* Reset Capture/Compare selection Bits */ CLEAR_BIT(tmpccmr2, TIM_CCMR2_CC4S); /* Select the Output Compare Mode */ MODIFY_REG(tmpccmr2, TIM_CCMR2_OC4M, TIM_OCInitStruct->OCMode << 8U); /* Set the Output Compare Polarity */ MODIFY_REG(tmpccer, TIM_CCER_CC4P, TIM_OCInitStruct->OCPolarity << 12U); /* Set the Output State */ MODIFY_REG(tmpccer, TIM_CCER_CC4E, TIM_OCInitStruct->OCState << 12U); if (IS_TIM_BREAK_INSTANCE(TIMx)) { assert_param(IS_LL_TIM_OCIDLESTATE(TIM_OCInitStruct->OCNIdleState)); assert_param(IS_LL_TIM_OCIDLESTATE(TIM_OCInitStruct->OCIdleState)); /* Set the Output Idle state */ MODIFY_REG(tmpcr2, TIM_CR2_OIS4, TIM_OCInitStruct->OCIdleState << 6U); } /* Write to TIMx CR2 */ LL_TIM_WriteReg(TIMx, CR2, tmpcr2); /* Write to TIMx CCMR2 */ LL_TIM_WriteReg(TIMx, CCMR2, tmpccmr2); /* Set the Capture Compare Register value */ LL_TIM_OC_SetCompareCH4(TIMx, TIM_OCInitStruct->CompareValue); /* Write to TIMx CCER */ LL_TIM_WriteReg(TIMx, CCER, tmpccer); return SUCCESS; } /** * @brief Configure the TIMx output channel 5. * @param TIMx Timer Instance * @param TIM_OCInitStruct pointer to the the TIMx output channel 5 configuration data structure * @retval An ErrorStatus enumeration value: * - SUCCESS: TIMx registers are de-initialized * - ERROR: not applicable */ static ErrorStatus OC5Config(TIM_TypeDef *TIMx, LL_TIM_OC_InitTypeDef *TIM_OCInitStruct) { uint32_t tmpccmr3; uint32_t tmpccer; /* Check the parameters */ assert_param(IS_TIM_CC5_INSTANCE(TIMx)); assert_param(IS_LL_TIM_OCMODE(TIM_OCInitStruct->OCMode)); assert_param(IS_LL_TIM_OCSTATE(TIM_OCInitStruct->OCState)); assert_param(IS_LL_TIM_OCPOLARITY(TIM_OCInitStruct->OCPolarity)); assert_param(IS_LL_TIM_OCPOLARITY(TIM_OCInitStruct->OCNPolarity)); assert_param(IS_LL_TIM_OCSTATE(TIM_OCInitStruct->OCNState)); /* Disable the Channel 5: Reset the CC5E Bit */ CLEAR_BIT(TIMx->CCER, TIM_CCER_CC5E); /* Get the TIMx CCER register value */ tmpccer = LL_TIM_ReadReg(TIMx, CCER); /* Get the TIMx CCMR3 register value */ tmpccmr3 = LL_TIM_ReadReg(TIMx, CCMR3); /* Select the Output Compare Mode */ MODIFY_REG(tmpccmr3, TIM_CCMR3_OC5M, TIM_OCInitStruct->OCMode); /* Set the Output Compare Polarity */ MODIFY_REG(tmpccer, TIM_CCER_CC5P, TIM_OCInitStruct->OCPolarity << 16U); /* Set the Output State */ MODIFY_REG(tmpccer, TIM_CCER_CC5E, TIM_OCInitStruct->OCState << 16U); if (IS_TIM_BREAK_INSTANCE(TIMx)) { assert_param(IS_LL_TIM_OCIDLESTATE(TIM_OCInitStruct->OCNIdleState)); assert_param(IS_LL_TIM_OCIDLESTATE(TIM_OCInitStruct->OCIdleState)); /* Set the Output Idle state */ MODIFY_REG(TIMx->CR2, TIM_CR2_OIS5, TIM_OCInitStruct->OCIdleState << 8U); } /* Write to TIMx CCMR3 */ LL_TIM_WriteReg(TIMx, CCMR3, tmpccmr3); /* Set the Capture Compare Register value */ LL_TIM_OC_SetCompareCH5(TIMx, TIM_OCInitStruct->CompareValue); /* Write to TIMx CCER */ LL_TIM_WriteReg(TIMx, CCER, tmpccer); return SUCCESS; } /** * @brief Configure the TIMx output channel 6. * @param TIMx Timer Instance * @param TIM_OCInitStruct pointer to the the TIMx output channel 6 configuration data structure * @retval An ErrorStatus enumeration value: * - SUCCESS: TIMx registers are de-initialized * - ERROR: not applicable */ static ErrorStatus OC6Config(TIM_TypeDef *TIMx, LL_TIM_OC_InitTypeDef *TIM_OCInitStruct) { uint32_t tmpccmr3; uint32_t tmpccer; /* Check the parameters */ assert_param(IS_TIM_CC6_INSTANCE(TIMx)); assert_param(IS_LL_TIM_OCMODE(TIM_OCInitStruct->OCMode)); assert_param(IS_LL_TIM_OCSTATE(TIM_OCInitStruct->OCState)); assert_param(IS_LL_TIM_OCPOLARITY(TIM_OCInitStruct->OCPolarity)); assert_param(IS_LL_TIM_OCPOLARITY(TIM_OCInitStruct->OCNPolarity)); assert_param(IS_LL_TIM_OCSTATE(TIM_OCInitStruct->OCNState)); /* Disable the Channel 5: Reset the CC6E Bit */ CLEAR_BIT(TIMx->CCER, TIM_CCER_CC6E); /* Get the TIMx CCER register value */ tmpccer = LL_TIM_ReadReg(TIMx, CCER); /* Get the TIMx CCMR3 register value */ tmpccmr3 = LL_TIM_ReadReg(TIMx, CCMR3); /* Select the Output Compare Mode */ MODIFY_REG(tmpccmr3, TIM_CCMR3_OC6M, TIM_OCInitStruct->OCMode << 8U); /* Set the Output Compare Polarity */ MODIFY_REG(tmpccer, TIM_CCER_CC6P, TIM_OCInitStruct->OCPolarity << 20U); /* Set the Output State */ MODIFY_REG(tmpccer, TIM_CCER_CC6E, TIM_OCInitStruct->OCState << 20U); if (IS_TIM_BREAK_INSTANCE(TIMx)) { assert_param(IS_LL_TIM_OCIDLESTATE(TIM_OCInitStruct->OCNIdleState)); assert_param(IS_LL_TIM_OCIDLESTATE(TIM_OCInitStruct->OCIdleState)); /* Set the Output Idle state */ MODIFY_REG(TIMx->CR2, TIM_CR2_OIS6, TIM_OCInitStruct->OCIdleState << 10U); } /* Write to TIMx CCMR3 */ LL_TIM_WriteReg(TIMx, CCMR3, tmpccmr3); /* Set the Capture Compare Register value */ LL_TIM_OC_SetCompareCH6(TIMx, TIM_OCInitStruct->CompareValue); /* Write to TIMx CCER */ LL_TIM_WriteReg(TIMx, CCER, tmpccer); return SUCCESS; } /** * @brief Configure the TIMx input channel 1. * @param TIMx Timer Instance * @param TIM_ICInitStruct pointer to the the TIMx input channel 1 configuration data structure * @retval An ErrorStatus enumeration value: * - SUCCESS: TIMx registers are de-initialized * - ERROR: not applicable */ static ErrorStatus IC1Config(TIM_TypeDef *TIMx, LL_TIM_IC_InitTypeDef *TIM_ICInitStruct) { /* Check the parameters */ assert_param(IS_TIM_CC1_INSTANCE(TIMx)); assert_param(IS_LL_TIM_IC_POLARITY(TIM_ICInitStruct->ICPolarity)); assert_param(IS_LL_TIM_ACTIVEINPUT(TIM_ICInitStruct->ICActiveInput)); assert_param(IS_LL_TIM_ICPSC(TIM_ICInitStruct->ICPrescaler)); assert_param(IS_LL_TIM_IC_FILTER(TIM_ICInitStruct->ICFilter)); /* Disable the Channel 1: Reset the CC1E Bit */ TIMx->CCER &= (uint32_t)~TIM_CCER_CC1E; /* Select the Input and set the filter and the prescaler value */ MODIFY_REG(TIMx->CCMR1, (TIM_CCMR1_CC1S | TIM_CCMR1_IC1F | TIM_CCMR1_IC1PSC), (TIM_ICInitStruct->ICActiveInput | TIM_ICInitStruct->ICFilter | TIM_ICInitStruct->ICPrescaler) >> 16U); /* Select the Polarity and set the CC1E Bit */ MODIFY_REG(TIMx->CCER, (TIM_CCER_CC1P | TIM_CCER_CC1NP), (TIM_ICInitStruct->ICPolarity | TIM_CCER_CC1E)); return SUCCESS; } /** * @brief Configure the TIMx input channel 2. * @param TIMx Timer Instance * @param TIM_ICInitStruct pointer to the the TIMx input channel 2 configuration data structure * @retval An ErrorStatus enumeration value: * - SUCCESS: TIMx registers are de-initialized * - ERROR: not applicable */ static ErrorStatus IC2Config(TIM_TypeDef *TIMx, LL_TIM_IC_InitTypeDef *TIM_ICInitStruct) { /* Check the parameters */ assert_param(IS_TIM_CC2_INSTANCE(TIMx)); assert_param(IS_LL_TIM_IC_POLARITY(TIM_ICInitStruct->ICPolarity)); assert_param(IS_LL_TIM_ACTIVEINPUT(TIM_ICInitStruct->ICActiveInput)); assert_param(IS_LL_TIM_ICPSC(TIM_ICInitStruct->ICPrescaler)); assert_param(IS_LL_TIM_IC_FILTER(TIM_ICInitStruct->ICFilter)); /* Disable the Channel 2: Reset the CC2E Bit */ TIMx->CCER &= (uint32_t)~TIM_CCER_CC2E; /* Select the Input and set the filter and the prescaler value */ MODIFY_REG(TIMx->CCMR1, (TIM_CCMR1_CC2S | TIM_CCMR1_IC2F | TIM_CCMR1_IC2PSC), (TIM_ICInitStruct->ICActiveInput | TIM_ICInitStruct->ICFilter | TIM_ICInitStruct->ICPrescaler) >> 8U); /* Select the Polarity and set the CC2E Bit */ MODIFY_REG(TIMx->CCER, (TIM_CCER_CC2P | TIM_CCER_CC2NP), ((TIM_ICInitStruct->ICPolarity << 4U) | TIM_CCER_CC2E)); return SUCCESS; } /** * @brief Configure the TIMx input channel 3. * @param TIMx Timer Instance * @param TIM_ICInitStruct pointer to the the TIMx input channel 3 configuration data structure * @retval An ErrorStatus enumeration value: * - SUCCESS: TIMx registers are de-initialized * - ERROR: not applicable */ static ErrorStatus IC3Config(TIM_TypeDef *TIMx, LL_TIM_IC_InitTypeDef *TIM_ICInitStruct) { /* Check the parameters */ assert_param(IS_TIM_CC3_INSTANCE(TIMx)); assert_param(IS_LL_TIM_IC_POLARITY(TIM_ICInitStruct->ICPolarity)); assert_param(IS_LL_TIM_ACTIVEINPUT(TIM_ICInitStruct->ICActiveInput)); assert_param(IS_LL_TIM_ICPSC(TIM_ICInitStruct->ICPrescaler)); assert_param(IS_LL_TIM_IC_FILTER(TIM_ICInitStruct->ICFilter)); /* Disable the Channel 3: Reset the CC3E Bit */ TIMx->CCER &= (uint32_t)~TIM_CCER_CC3E; /* Select the Input and set the filter and the prescaler value */ MODIFY_REG(TIMx->CCMR2, (TIM_CCMR2_CC3S | TIM_CCMR2_IC3F | TIM_CCMR2_IC3PSC), (TIM_ICInitStruct->ICActiveInput | TIM_ICInitStruct->ICFilter | TIM_ICInitStruct->ICPrescaler) >> 16U); /* Select the Polarity and set the CC3E Bit */ MODIFY_REG(TIMx->CCER, (TIM_CCER_CC3P | TIM_CCER_CC3NP), ((TIM_ICInitStruct->ICPolarity << 8U) | TIM_CCER_CC3E)); return SUCCESS; } /** * @brief Configure the TIMx input channel 4. * @param TIMx Timer Instance * @param TIM_ICInitStruct pointer to the the TIMx input channel 4 configuration data structure * @retval An ErrorStatus enumeration value: * - SUCCESS: TIMx registers are de-initialized * - ERROR: not applicable */ static ErrorStatus IC4Config(TIM_TypeDef *TIMx, LL_TIM_IC_InitTypeDef *TIM_ICInitStruct) { /* Check the parameters */ assert_param(IS_TIM_CC4_INSTANCE(TIMx)); assert_param(IS_LL_TIM_IC_POLARITY(TIM_ICInitStruct->ICPolarity)); assert_param(IS_LL_TIM_ACTIVEINPUT(TIM_ICInitStruct->ICActiveInput)); assert_param(IS_LL_TIM_ICPSC(TIM_ICInitStruct->ICPrescaler)); assert_param(IS_LL_TIM_IC_FILTER(TIM_ICInitStruct->ICFilter)); /* Disable the Channel 4: Reset the CC4E Bit */ TIMx->CCER &= (uint32_t)~TIM_CCER_CC4E; /* Select the Input and set the filter and the prescaler value */ MODIFY_REG(TIMx->CCMR2, (TIM_CCMR2_CC4S | TIM_CCMR2_IC4F | TIM_CCMR2_IC4PSC), (TIM_ICInitStruct->ICActiveInput | TIM_ICInitStruct->ICFilter | TIM_ICInitStruct->ICPrescaler) >> 8U); /* Select the Polarity and set the CC2E Bit */ MODIFY_REG(TIMx->CCER, (TIM_CCER_CC4P | TIM_CCER_CC4NP), ((TIM_ICInitStruct->ICPolarity << 12U) | TIM_CCER_CC4E)); return SUCCESS; } /** * @} */ /** * @} */ #endif /* TIM1 || TIM2 || TIM3 || TIM4 || TIM5 || TIM6 || TIM7 || TIM8 || TIM12 || TIM13 ||TIM14 || TIM15 || TIM16 || TIM17 */ /** * @} */ #endif /* USE_FULL_LL_DRIVER */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
the_stack_data/975172.c
#include <stdio.h> int main() { int num1, num2, sum =0; int *ptr1 = &num1; int *ptr2 = &num2; int *ptr3 = &sum; printf("Enter 2 values please \n"); scanf("%d", &num1); scanf("%d", &num2); printf("Entered %d \n", *ptr1); printf("Entered %d \n", *ptr2); *ptr3 = *ptr1 + *ptr2 ; printf("%d is the sum", *ptr3); flushall(); getchar(); return(0); }
the_stack_data/126702441.c
/**************************************************************************** * Copyright (c) 2016, Zerotronic * * 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. * * * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * * LIMITED TO,THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A * * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED * * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ****************************************************************************/ // Includes #include <time.h> #include <stdlib.h> #include <stdio.h> #include <string.h> // Declare new struct to hold values typedef struct dt { char *sdate; char *stime; }DTS; // Function to clear memory of DTS void DestroyDTS(DTS *x) { free(x->sdate); free(x->stime); } // Function to create a DTS struct DTS CreateDTS(size_t dsz, size_t tsz) { // Try to allocate DTS structure. DTS *retVal = malloc (sizeof(DTS)); if (retVal == NULL) { printf("struct memory allocation failed.\n"); exit(1); } // Try to allocate DTS data, free structure if fail. retVal->sdate = malloc (dsz); retVal->stime = malloc (tsz); if (retVal->sdate == NULL) { free (retVal); printf("sdate memory allocation failed.\n"); exit(1); } if (retVal->stime == NULL) { free (retVal); printf("stime memory allocation failed.\n"); exit(1); } return *retVal; } // Function to write data to file void dt_write(char* txtfile) { // Get system date and time time_t system_date = time(NULL); // Construct the tm struct struct tm *system_date_struct = localtime(&system_date); // Find out sizes for date and time DTS elements size_t sdatesz = sizeof(system_date_struct->tm_year) + sizeof(system_date_struct->tm_mon) + sizeof(system_date_struct->tm_mday) + 2 * sizeof(char); size_t stimesz = sizeof(system_date_struct->tm_hour) + sizeof(system_date_struct->tm_min) + sizeof(char); // Create a DTS struct DTS pdt_str = CreateDTS(sdatesz, stimesz); // Populate elements of DTS struct with date amd time strftime(pdt_str.sdate, sdatesz, "%Y/%m/%d", system_date_struct); strftime(pdt_str.stime, stimesz, "%H:%M", system_date_struct); // Open file to append data FILE *f = fopen(txtfile, "a"); if (f == NULL) { printf("Error opening file!\n"); exit(1); } // append data fprintf(f, "{'%s':['OUT','%s']}\n", pdt_str.sdate, pdt_str.stime); // Close file fclose(f); // Free memory DestroyDTS(&pdt_str); } int main(void) { dt_write("TIME.json"); }
the_stack_data/187642583.c
/** 操作步骤: 1. 打开设备文件。 int fd=open(”/dev/video0″,O_RDWR); 2. 取得设备的capability,看看设备具有什么功能,比如是否具有视频输入,或者音频输入输出等。VIDIOC_QUERYCAP,struct v4l2_capability 3. 选择视频输入,一个视频设备可以有多个视频输入。VIDIOC_S_INPUT,struct v4l2_input 4. 设置视频的制式和帧格式,制式包括PAL,NTSC,帧的格式个包括宽度和高度等。 VIDIOC_S_STD,VIDIOC_S_FMT,struct v4l2_std_id,struct v4l2_format 5. 向驱动申请帧缓冲,一般不超过5个。struct v4l2_requestbuffers 6. 将申请到的帧缓冲映射到用户空间,这样就可以直接操作采集到的帧了,而不必去复制。mmap 7. 将申请到的帧缓冲全部入队列,以便存放采集到的数据.VIDIOC_QBUF,struct v4l2_buffer 8. 开始视频的采集。VIDIOC_STREAMON 9. 出队列以取得已采集数据的帧缓冲,取得原始采集数据。VIDIOC_DQBUF 10. 将缓冲重新入队列尾,这样可以循环采集。VIDIOC_QBUF 11. 停止视频的采集。VIDIOC_STREAMOFF 12. 关闭视频设备。close(fd); */ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/ioctl.h> #include <linux/videodev2.h> #include <string.h> #include <sys/mman.h> #include <assert.h> #include <poll.h> #include <errno.h> #pragma pack(1) typedef struct BITMAPFILEHEADER { unsigned short bfType;//位图文件的类型, unsigned long bfSize;//位图文件的大小,以字节为单位 unsigned short bfReserved1;//位图文件保留字,必须为0 unsigned short bfReserved2;//同上 unsigned long bfOffBits;//位图阵列的起始位置,以相对于位图文件 或者说是头的偏移量表示,以字节为单位 } BITMAPFILEHEADER; #pragma pack() typedef struct BITMAPINFOHEADER//位图信息头类型的数据结构,用于说明位图的尺寸 { unsigned long biSize;//位图信息头的长度,以字节为单位 unsigned long biWidth;//位图的宽度,以像素为单位 unsigned long biHeight;//位图的高度,以像素为单位 unsigned short biPlanes;//目标设备的级别,必须为1 unsigned short biBitCount;//每个像素所需的位数,必须是1(单色),4(16色),8(256色)或24(2^24色)之一 unsigned long biCompression;//位图的压缩类型,必须是0-不压缩,1-BI_RLE8压缩类型或2-BI_RLE4压缩类型之一 unsigned long biSizeImage;//位图大小,以字节为单位 unsigned long biXPelsPerMeter;//位图目标设备水平分辨率,以每米像素数为单位 unsigned long biYPelsPerMeter;//位图目标设备垂直分辨率,以每米像素数为单位 unsigned long biClrUsed;//位图实际使用的颜色表中的颜色变址数 unsigned long biClrImportant;//位图显示过程中被认为重要颜色的变址数 } BITMAPINFOHEADER; void yuv422_2_rgb(); static void yuyv422toBGRY(unsigned char *src); #define videocount 3 #define JEPG_FILE "yuyv.jpg" #define RGB_FILE "rgb.bmp" #define YUV_VIDEO "video.yuv" FILE *file = NULL; static int fd = 0; static int width = 640; static int height = 480; static struct v4l2_fmtdesc fmtdesc; struct videobuffer{ unsigned int length; void* start; }; static struct videobuffer framebuf[videocount]; static struct v4l2_buffer buf; unsigned char* starter; unsigned char* newBuf; struct BITMAPFILEHEADER bfh; struct BITMAPINFOHEADER bih; void create_bmp_header() { bfh.bfType = (unsigned short)0x4D42; bfh.bfSize = (unsigned long)(14 + 40 + width * height*3); bfh.bfReserved1 = 0; bfh.bfReserved2 = 0; bfh.bfOffBits= (unsigned long)(14 + 40); bih.biBitCount = 24; bih.biWidth = width; bih.biHeight = height; bih.biSizeImage = width * height * 3; bih.biClrImportant = 0; bih.biClrUsed = 0; bih.biCompression = 0; bih.biPlanes = 1; bih.biSize = 40;//sizeof(bih); bih.biXPelsPerMeter = 0x00000ec4; bih.biYPelsPerMeter=0x00000ec4; } /* 1\打开设备 */ int openCamera(int id) { char devicename[12];; sprintf(devicename,"/dev/video%d",id); //fd = open("/dev/video1", O_RDWR | O_NONBLOCK, 0); fd = open(devicename, O_RDWR | O_NONBLOCK, 0); if(fd <0 ){ printf("open video0 fail.\n"); return -1; } return 0; } /* 2、查看设备能力 */ void capabilityCamera() { struct v4l2_capability cap; ioctl(fd, VIDIOC_QUERYCAP, &cap); printf("--------------capability------------------\n"); printf("driver:%s \ncard:%s \ncapabilities:%x\n",cap.driver,cap.card,cap.capabilities); } /* 3、查看支持的数据格式 */ void enumfmtCamera() { int ret; int i; memset(&fmtdesc, 0, sizeof(fmtdesc)); fmtdesc.index = 0; fmtdesc.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; printf("-------------VIDIOC_ENUM_FMT--------------\n"); while((ioctl(fd, VIDIOC_ENUM_FMT, &fmtdesc)) != -1) { printf("index:%d \npixelformat:%c%c%c%c \ndescription:%s\n",fmtdesc.index, fmtdesc.pixelformat&0xff,(fmtdesc.pixelformat>>8)&0xff,(fmtdesc.pixelformat>>16)&0xff, (fmtdesc.pixelformat>>24)&0xff,fmtdesc.description); fmtdesc.index++; } } /* 4、设置视频格式 VIDIOC_S_FMT struct v4l2_format */ int setfmtCamera() { int ret; struct v4l2_format format; format.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; format.fmt.pix.width = width; format.fmt.pix.height = height; format.fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV; // 设置为yuyv格式数据 format.fmt.pix.field = V4L2_FIELD_INTERLACED; ret = ioctl(fd, VIDIOC_S_FMT, &format); if(ret < 0){ printf("VIDIOC_S_FMT fail\n"); return -1; } memset(&format, 0, sizeof(format)); format.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; ret = ioctl(fd, VIDIOC_G_FMT, &format); if(ret < 0) { printf("VIDIOC_G_FMT fail\n"); return -1; } printf("-----------------VIDIOC_G_FMT----------------------\n"); printf("width:%d \nheight:%d \ntype:%x pixelformat:%c%c%c%c\n",format.fmt.pix.width,format.fmt.pix.height, format.type,format.fmt.pix.pixelformat&0xff,(format.fmt.pix.pixelformat>>8)&0xff,(format.fmt.pix.pixelformat>>16)&0xff, (format.fmt.pix.pixelformat>>24)&0xff); return 0; } /* 5、申请内存作为缓冲区VIDIOC_REQBUFS struct v4l2_requestbuffers, * 查询缓冲区状态后映射到用于空间 VIDIOC_QUERYBUF struct v4l2_buffer mmap,然后将缓冲区放入队列 VIDIOC_QBUF */ int initmmap() { struct v4l2_requestbuffers reqbuf; int i, ret; reqbuf.count = videocount; reqbuf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; reqbuf.memory = V4L2_MEMORY_MMAP; ret = ioctl(fd, VIDIOC_REQBUFS, &reqbuf); if(0 != ret){ printf("VIDIOC_REQBUFS fail\n"); return -1; } //v4l2_buffer printf("----------------mmap----------------\n"); for(i =0; i < reqbuf.count; i++){ struct v4l2_buffer buf; memset(&buf, 0, sizeof(buf)); buf.index = i; buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; buf.memory = V4L2_MEMORY_MMAP; ret = ioctl(fd, VIDIOC_QUERYBUF, &buf); framebuf[i].length = buf.length; framebuf[i].start = mmap(NULL, buf.length, PROT_READ|PROT_WRITE, MAP_SHARED, fd, buf.m.offset); if(framebuf[i].start == MAP_FAILED){ perror("mmap fail.\n"); return -1; } printf("start:%x length:%d\n",(unsigned int)framebuf[i].start,framebuf[i].length); } return 0; } /* 6、开始采集视频数据 * 将缓冲区如队列 VIDIOC_QBUF struct v4l2_buffer * 开始流传输 VIDIOC_STREAMON */ static int startcap() { int ret = -1, i = 0; for(i=0;i < videocount; i++){ memset(&buf, 0, sizeof(buf)); buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; buf.memory = V4L2_MEMORY_MMAP; buf.index = i; ret = ioctl(fd, VIDIOC_QBUF, &buf); if(0 != ret){ perror("VIDIOC_QBUF fail.\n"); return -1; } } enum v4l2_buf_type type; type = V4L2_BUF_TYPE_VIDEO_CAPTURE; ret = ioctl(fd, VIDIOC_STREAMON, &type); return 0; } /* 6、判断缓冲区是否有数据 使用poll函数 * 缓冲区有数据后取出队列 VIDIOC_DQBUF */ static int readfram() { struct pollfd pollfd; int ret,i; char filename[50]; for(;;){ memset(&pollfd, 0, sizeof(pollfd)); pollfd.fd = fd; pollfd.events = POLLIN; ret = poll(&pollfd, 1, 800); if(-1 == ret){ perror("VIDIOC_QBUF fail.\n"); return -1; }else if(0 == ret){ printf("poll time out\n"); continue; } printf("-------------poll success---------------\n"); // static struct v4l2_buffer buf; if(pollfd.revents & POLLIN){ memset(&buf, 0, sizeof(buf)); buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; buf.memory = V4L2_MEMORY_MMAP; ret = ioctl(fd, VIDIOC_DQBUF, &buf); if(0 != ret){ perror("VIDIOC_QBUF fail.\n"); return -1; } //v4l2_buffer // 直接保存的yuyv数据的视频 ret = fwrite((char*)framebuf[buf.index].start, 1, buf.length, file); // RGB格式数据的bmp图片 /* starter = (unsigned char*)framebuf[buf.index].start; newBuf = (unsigned char*)calloc((unsigned int)(framebuf[buf.index].length*3/2),sizeof(unsigned char)); yuv422_2_rgb(); create_bmp_header(); //yuyv422toBGRY(starter); sprintf(filename,"rgb%d.bmp",i); FILE *file1 = fopen(filename, "wb"); fwrite(&bfh,sizeof(bfh),1,file1); fwrite(&bih,sizeof(bih),1,file1); fwrite(newBuf, 1, buf.length*3/2, file1); //fwrite(rgb, 1, width*height*3, file1); fclose(file1); */ ret = ioctl(fd, VIDIOC_QBUF, &buf); } } return ret; } /* 最后关闭摄像头数据流和设备 */ static void closeCamera() { int ret=-1, i; enum v4l2_buf_type type; type = V4L2_BUF_TYPE_VIDEO_CAPTURE; ret = ioctl(fd,VIDIOC_STREAMOFF, &type); if(0 != ret){ perror("VIDIOC_QBUF fail.\n"); return ; } for(i = 0; i < videocount; i++){ munmap(framebuf[i].start, framebuf[i].length); } close(fd); } void yuv422_2_rgb() { unsigned char YUV[4],RGB[6]; int i,j,k=0; unsigned int location = 0; for(i = 0;i < framebuf[buf.index].length; i+=4) { YUV[0] = starter[i]; // y YUV[1] = starter[i+1]; // u YUV[2] = starter[i+2]; // y YUV[3] = starter[i+3]; // v if(YUV[0] < 0){ RGB[0]=0; RGB[1]=0; RGB[2]=0; }else{ RGB[0] = YUV[0] + 1.772*(YUV[1]-128); // b RGB[1] = YUV[0] - 0.34414*(YUV[1]-128) - 0.71414*(YUV[3]-128); // g RGB[2] = YUV[0 ]+ 1.402*(YUV[3]-128); // r } if(YUV[2] < 0) { RGB[3]=0; RGB[4]=0; RGB[5]=0; }else{ RGB[3] = YUV[2] + 1.772*(YUV[1]-128); // b RGB[4] = YUV[2] - 0.34414*(YUV[1]-128) - 0.71414*(YUV[3]-128); // g RGB[5] = YUV[2] + 1.402*(YUV[3]-128) ; // r } for(j = 0; j < 6; j++){ if(RGB[j] < 0) RGB[j] = 0; if(RGB[j] > 255) RGB[j] = 255; } //请记住:扫描行在位图文件中是反向存储的! if(k%(width*3)==0)//定位存储位置 { location=(height-k/(width*3))*(width*3); } bcopy(RGB,newBuf+location+(k%(width*3)),sizeof(RGB)); k+=6; } return ; } int main(int argc, char* argv[]) { if(argc != 2){ printf("usage:%s [0|1] \n",argv[0]); return -1; } printf("use video %s\n",argv[1]); if(!strcmp(argv[1], "0")){ printf("video 0"); openCamera(0); } else if(!strcmp(argv[1], "1")){ printf("video 1\n"); openCamera(1); }else if(!strcmp(argv[1], "4")){ printf("video 1\n"); openCamera(4); }else{ exit(0);} capabilityCamera(); enumfmtCamera(); setfmtCamera(); initmmap(); startcap(); file = fopen(YUV_VIDEO, "wa+"); readfram(); fclose(file); closeCamera(); return 0; }
the_stack_data/148578808.c
#include <stdio.h> void preenchevet(int x[],int y) { int i; for(i=0;i<y;i++){ printf("digite os valores: "); scanf("%d",&x[i]); } } void buscador(int x[],int y) { int i,buscador,buscou=0; printf("\ndigite um valor para ser buscado: "); scanf("%d",&buscador); for(i=0;i<y;i++){ if(buscador==x[i]){ printf("\nValor: %d ---- posicao: %d",x[i],i); buscou=1; } else{ buscou=buscou; } } if(buscou==1){ printf("\no valor foi achado"); } else{ printf("\no valor nao foi achado"); } } main() { int v[3]; preenchevet(v,3); buscador(v,3); }